.cmg-topbar,
.cmg-site-header {
  --cmg-nav-blue: #678da8;
  --cmg-nav-blue-dark: #435f75;
  --cmg-nav-glass: rgba(55, 58, 61, 0.74);
  --cmg-nav-line: rgba(255, 255, 255, 0.18);
  font-family: Inter, Arial, sans-serif;
}

.cmg-topbar *,
.cmg-site-header * {
  box-sizing: border-box;
}

.cmg-nav-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.cmg-topbar {
  position: relative;
  z-index: 1001;
  color: #fff;
  background: var(--cmg-nav-blue-dark);
  font-size: 13px;
}

.cmg-topbar__inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.cmg-topbar a {
  color: inherit;
  text-decoration: none;
}

.cmg-topbar a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cmg-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: #fff;
  border-bottom: 1px solid var(--cmg-nav-line);
  background: var(--cmg-nav-glass);
  box-shadow: 0 12px 32px rgba(12, 14, 16, 0.12);
  -webkit-backdrop-filter: blur(22px) saturate(108%);
  backdrop-filter: blur(22px) saturate(108%);
  transition:
    background-color 320ms ease,
    border-color 320ms ease,
    box-shadow 320ms ease,
    backdrop-filter 320ms ease;
}

.cmg-site-header--overlay {
  margin-bottom: -108px;
  border-bottom-color: transparent;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.cmg-site-header--overlay.is-scrolled {
  border-bottom-color: var(--cmg-nav-line);
  background: var(--cmg-nav-glass);
  box-shadow: 0 12px 32px rgba(12, 14, 16, 0.14);
  -webkit-backdrop-filter: blur(22px) saturate(108%);
  backdrop-filter: blur(22px) saturate(108%);
}

.cmg-primary-nav {
  min-height: 108px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto max-content;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.cmg-brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  color: inherit;
  text-decoration: none;
}

.cmg-brand img {
  width: 78px;
  height: 78px;
  display: block;
  object-fit: contain;
  transform: scale(1);
  transform-origin: left center;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cmg-site-header--overlay.is-scrolled .cmg-brand img {
  transform: scale(0.72);
}

.cmg-nav-links {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.25vw, 20px);
}

.cmg-nav-links a {
  position: relative;
  padding-block: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(11.5px, 1vw, 14px);
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease, opacity 180ms ease;
}

.cmg-nav-links a:hover,
.cmg-nav-links a[aria-current="page"] {
  color: #fff;
}

.cmg-nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cmg-nav-links a:hover::after,
.cmg-nav-links a:focus-visible::after,
.cmg-nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.cmg-nav-cta {
  min-width: 146px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding-inline: 20px;
  color: #fff;
  background: rgba(103, 141, 168, 0.9);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 180ms ease, transform 180ms ease;
}

html[data-cmg-language="en"] .cmg-nav-cta {
  padding-inline: 16px;
  font-size: 13px;
}

.cmg-language-switch {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: inline-flex;
  visibility: visible;
  align-items: center;
  justify-self: end;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 3px;
  background: rgba(35, 50, 61, 0.78);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  opacity: 1;
}

.cmg-language-switch button {
  min-width: 35px;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  padding: 0 9px;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.cmg-language-switch button:hover,
.cmg-language-switch button:focus-visible,
.cmg-language-switch button.is-active {
  color: #23323d;
  background: #fff;
  outline: none;
}

[data-cmg-language-host] .cmg-language-switch {
  background: #435f75;
}

.cmg-nav-cta:hover {
  color: #fff;
  background: #7899b0;
  transform: translateY(-1px);
}

.cmg-menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  padding: 0;
  color: #fff;
  background: rgba(20, 24, 27, 0.12);
  cursor: pointer;
}

.cmg-menu-toggle span {
  width: 18px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.cmg-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.cmg-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.cmg-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1240px) {
  .cmg-primary-nav {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }

  .cmg-brand img {
    width: 72px;
    height: 72px;
  }

  .cmg-menu-toggle {
    display: flex;
    grid-column: 4;
  }

  .cmg-language-switch {
    grid-column: 3;
    grid-row: 1;
  }

  .cmg-nav-cta {
    display: none;
  }

  .cmg-nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    max-height: calc(100vh - 108px);
    display: flex;
    overflow-y: auto;
    visibility: hidden;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    padding: 14px max(20px, calc((100vw - 1180px) / 2)) 24px;
    background: rgba(45, 48, 52, 0.96);
    box-shadow: 0 18px 34px rgba(12, 14, 16, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
  }

  .cmg-nav-links.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .cmg-nav-links a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 14px;
    font-size: 14px;
  }

  .cmg-nav-links a:last-child {
    border-bottom: 0;
  }

  .cmg-nav-links a::after {
    display: none;
  }
}

@media (max-width: 900px) {
  .cmg-site-header--overlay {
    margin-bottom: -84px;
  }

  .cmg-primary-nav {
    min-height: 84px;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }

  .cmg-brand img {
    width: 62px;
    height: 62px;
  }

  .cmg-menu-toggle {
    grid-column: 4;
  }

  .cmg-nav-links {
    max-height: calc(100vh - 84px);
  }
}

@media (max-width: 780px) {
  .cmg-topbar {
    display: none;
  }
}

@media (max-width: 520px) {
  .cmg-nav-shell {
    width: min(100% - 26px, 1180px);
  }

  .cmg-primary-nav {
    gap: 8px;
  }

  .cmg-language-switch button {
    min-width: 31px;
    min-height: 30px;
    padding-inline: 7px;
    font-size: 11px;
  }
}

.cmg-global-footer {
  position: relative;
  z-index: 2;
  margin: 0;
  border: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.84);
  background:
    linear-gradient(90deg, rgba(104, 143, 168, 0.11), transparent 38%),
    #263946;
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
}

.cmg-global-footer *,
.cmg-global-footer *::before,
.cmg-global-footer *::after {
  box-sizing: border-box;
}

.cmg-global-footer__inner {
  width: min(1380px, calc(100% - 36px));
  margin-inline: auto;
  padding: 15px 0;
}

.cmg-global-footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 9px 18px;
}

.cmg-global-footer address,
.cmg-global-footer p {
  margin: 0;
  padding: 0;
  color: inherit;
  background: none;
  font: inherit;
  font-style: normal;
}

.cmg-global-footer a,
.cmg-global-footer button {
  color: inherit;
  font: inherit;
  text-decoration: none;
}

.cmg-global-footer a:hover,
.cmg-global-footer a:focus-visible,
.cmg-global-footer button:hover,
.cmg-global-footer button:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.cmg-global-footer__copyright {
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  white-space: nowrap;
}

.cmg-global-footer__contact {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 520px;
  flex-wrap: wrap;
  gap: 5px 9px;
}

.cmg-global-footer__contact a {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 5px 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 9.5px;
  font-weight: 700;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.cmg-global-footer__contact a span {
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
}

.cmg-global-footer__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.cmg-global-footer__actions a,
.cmg-global-footer__actions button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px 7px;
  background: transparent;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.cmg-global-footer__social-link span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

@media (max-width: 1120px) {
  .cmg-global-footer__copyright {
    flex: 1 1 100%;
    text-align: center;
  }
}

@media (max-width: 620px) {
  .cmg-global-footer__inner {
    width: min(100% - 30px, 1180px);
    padding: 16px 0;
  }

  .cmg-global-footer__contact {
    align-items: stretch;
    flex: 1 1 100%;
    flex-direction: column;
    gap: 2px;
  }

  .cmg-global-footer__contact a {
    justify-content: flex-start;
    overflow-wrap: anywhere;
  }

  .cmg-global-footer__actions {
    justify-content: center;
    width: 100%;
  }

  .cmg-global-footer__actions a,
  .cmg-global-footer__actions button {
    padding-inline: 7px;
  }

  .cmg-global-footer__copyright {
    white-space: normal;
    text-align: center;
  }
}

.cmg-consent-banner,
.cmg-consent-dialog,
.cmg-external-placeholder {
  font-family: Inter, Arial, sans-serif;
}

.cmg-consent-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 10000;
  max-width: 1160px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-inline: auto;
  border: 1px solid rgba(43, 66, 80, 0.16);
  border-radius: 22px;
  padding: 22px;
  color: #24343e;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 60px rgba(24, 36, 44, 0.24);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.cmg-consent-banner[hidden] {
  display: none;
}

.cmg-consent-banner h2,
.cmg-consent-dialog h2 {
  margin: 0 0 8px;
  color: #20313c;
  font: 700 clamp(24px, 2.4vw, 34px)/1.08 Georgia, "Times New Roman", serif;
}

.cmg-consent-banner p,
.cmg-consent-dialog > form > p {
  max-width: 760px;
  margin: 0 0 8px;
  color: #5b6870;
  font-size: 14px;
  line-height: 1.55;
}

.cmg-consent-banner a {
  color: #466f89;
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.cmg-consent-actions,
.cmg-consent-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.cmg-consent-actions button,
.cmg-consent-dialog-actions button,
.cmg-external-placeholder button {
  min-height: 44px;
  border: 1px solid #668ca6;
  border-radius: 999px;
  padding: 10px 18px;
  color: #365267;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.cmg-consent-actions button:hover,
.cmg-consent-actions button:focus-visible,
.cmg-consent-dialog-actions button:hover,
.cmg-consent-dialog-actions button:focus-visible,
.cmg-external-placeholder button:hover,
.cmg-external-placeholder button:focus-visible {
  color: #fff;
  background: #587f99;
  outline: none;
}

.cmg-consent-actions button.is-primary,
.cmg-consent-actions button.is-equivalent,
.cmg-consent-dialog-actions button.is-primary {
  color: #fff;
  background: #587f99;
}

.cmg-consent-actions button.is-primary:hover,
.cmg-consent-actions button.is-equivalent:hover,
.cmg-consent-dialog-actions button.is-primary:hover {
  background: #41667e;
}

.cmg-consent-dialog {
  width: min(680px, calc(100% - 28px));
  max-height: min(780px, calc(100vh - 28px));
  overflow: auto;
  border: 0;
  border-radius: 24px;
  padding: 0;
  color: #24343e;
  background: #fff;
  box-shadow: 0 30px 90px rgba(13, 25, 32, 0.34);
}

.cmg-consent-dialog::backdrop {
  background: rgba(19, 28, 34, 0.64);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.cmg-consent-dialog form {
  padding: clamp(22px, 5vw, 38px);
}

.cmg-consent-options {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.cmg-consent-option {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid #dce4e8;
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
}

.cmg-consent-option:has(input:focus-visible) {
  outline: 3px solid rgba(89, 132, 159, 0.25);
  outline-offset: 2px;
}

.cmg-consent-option strong,
.cmg-consent-option small {
  display: block;
}

.cmg-consent-option strong {
  margin-bottom: 4px;
  color: #24343e;
  font-size: 15px;
}

.cmg-consent-option small {
  color: #69767e;
  font-size: 12px;
  line-height: 1.45;
}

.cmg-consent-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cmg-consent-toggle {
  position: relative;
  width: 48px;
  height: 28px;
  flex: none;
  border-radius: 999px;
  background: #bbc6cc;
  transition: background-color 160ms ease;
}

.cmg-consent-toggle::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(19, 34, 43, 0.28);
  content: "";
  transition: transform 160ms ease;
}

.cmg-consent-option input:checked + .cmg-consent-toggle {
  background: #5c8a72;
}

.cmg-consent-option input:checked + .cmg-consent-toggle::after {
  transform: translateX(20px);
}

.cmg-consent-option input:disabled + .cmg-consent-toggle {
  opacity: 0.72;
}

.cmg-external-placeholder {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  border: 1px dashed #9db0bc;
  border-radius: 18px;
  padding: 24px;
  color: #50636f;
  background: #f4f7f8;
  text-align: center;
}

.cmg-external-placeholder p {
  max-width: 430px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.cmg-external-placeholder--widget {
  min-height: 300px;
}

.cmg-external-badge-placeholder {
  width: min(300px, 100%);
  min-height: 75px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(81, 111, 130, 0.28);
  border-radius: 12px;
  padding: 10px 14px;
  color: #415d70;
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.cmg-consent-blocked-media {
  display: none !important;
}

@media (max-width: 780px) {
  .cmg-consent-banner {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 18px;
  }

  .cmg-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }

  .cmg-consent-actions button {
    width: 100%;
  }

  .cmg-consent-actions button.is-primary {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

@media (max-width: 520px) {
  .cmg-consent-banner {
    right: 8px;
    bottom: 8px;
    left: 8px;
    max-height: calc(100vh - 16px);
    overflow: auto;
    border-radius: 18px;
  }

  .cmg-consent-actions {
    grid-template-columns: 1fr;
  }

  .cmg-consent-actions button.is-primary {
    grid-column: auto;
  }

  .cmg-consent-option {
    gap: 10px;
    padding: 14px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .cmg-site-header,
  .cmg-brand img,
  .cmg-nav-links,
  .cmg-menu-toggle span,
  .cmg-nav-cta {
    transition: none;
  }
}

@media print {
  .cmg-topbar,
  .cmg-site-header,
  [data-cmg-consent-root],
  .cmg-external-placeholder {
    display: none !important;
  }
}
