:root { --layout-unit: 1vw; --header-unit: 1vw; --site-header-height: 72px; --site-font: "Noto Sans SC", "Noto Sans", sans-serif; }
:root {
  --header-unit: 1vw;
  --header-unit: calc(1vw);
  --header-unit: calc(min(1vw, 19.2px));
  --site-header-height: 60px;
  --site-header-height: calc(60px);
  --site-header-height: calc(max(60px, min(5vw, 96px)));
}

body {
  padding-top: 0;
}

[id] {
  scroll-margin-top: calc(80px);
  scroll-margin-top: calc(20px + max(60px, min(5vw, 96px)));
  scroll-margin-top: calc(20px + var(--site-header-height));
}

.desktop,
.home-content {
  position: relative;
}

.desktop > .overlay-layer,
.home-content > .overlay-layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
}

.desktop > .overlay-layer > *,
.home-content > .overlay-layer > * {
  pointer-events: auto;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  z-index: 1000;
  height: calc(60px);
  height: calc(max(60px, min(5vw, 96px)));
  height: var(--site-header-height);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease;
  color: #fff;
  font-family: "Noto Sans SC", sans-serif;
}

.site-header.is-scrolled,
.site-header.is-menu-open {
  background: #0b3e72;
  border-bottom-color: rgba(255,255,255,0.07843);
}

#home,
#m-home {
  scroll-margin-top: 0;
}

.site-header-inner {
  display: grid;
  grid-template-columns: calc(8.33333vw) calc(6.61458vw) calc(40.3125vw) calc(2.23958vw) auto;
  grid-template-columns: calc(8.33333 * min(1vw, 19.2px)) calc(6.61458 * min(1vw, 19.2px)) calc(40.3125 * min(1vw, 19.2px)) calc(2.23958 * min(1vw, 19.2px)) auto;
  grid-template-columns: calc(8.33333 * var(--header-unit)) calc(6.61458 * var(--header-unit)) calc(40.3125 * var(--header-unit)) calc(2.23958 * var(--header-unit)) auto;
  align-items: center;
  width: calc(75.625vw);
  width: calc(min(75.625 * min(1vw, 19.2px), 1452px));
  width: 75.625 * var(--header-unit);
  width: min(75.625 * var(--header-unit), 1452px);
  height: 100%;
  margin-left: auto;
  margin-right: auto;
}

.site-logo {
  grid-column: 1;
  display: block;
  width: calc(8.33333vw);
  width: calc(8.33333 * min(1vw, 19.2px));
  width: calc(8.33333 * var(--header-unit));
  line-height: 0;
}

.site-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.site-header .site-navigation {
  position: static;
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  font-size: calc(.83333vw);
  font-size: calc(.83333 * min(1vw, 19.2px));
  font-size: calc(.83333 * var(--header-unit));
  line-height: 1.5;
}

.site-header .header-tools {
  grid-column: 5;
  display: grid;
  grid-template-columns: calc(3.64583vw) calc(1.14583vw) calc(1.14583vw) calc(3.90625vw) calc(7.91667vw);
  grid-template-columns: calc(3.64583 * min(1vw, 19.2px)) calc(1.14583 * min(1vw, 19.2px)) calc(1.14583 * min(1vw, 19.2px)) calc(3.90625 * min(1vw, 19.2px)) calc(7.91667 * min(1vw, 19.2px));
  grid-template-columns: calc(3.64583 * var(--header-unit)) calc(1.14583 * var(--header-unit)) calc(1.14583 * var(--header-unit)) calc(3.90625 * var(--header-unit)) calc(7.91667 * var(--header-unit));
  align-items: center;
  grid-gap: 0;
  gap: 0;
  margin: 0;
}

.header-language {
  grid-column: 1;
  color: #fff;
}

.header-language > summary {
  justify-content: space-between;
  height: calc(2.29167vw);
  height: calc(2.29167 * min(1vw, 19.2px));
  height: calc(2.29167 * var(--header-unit));
  padding: 0;
  font-size: calc(.83333vw);
  font-size: calc(.83333 * min(1vw, 19.2px));
  font-size: calc(.83333 * var(--header-unit));
}

.language-flag {
  display: block;
  flex-shrink: 0;
  width: calc(1.14583vw);
  width: calc(1.14583 * min(1vw, 19.2px));
  width: calc(1.14583 * var(--header-unit));
  height: auto;
}

.site-header .header-search {
  position: static;
  grid-column: 3;
  justify-self: center;
  width: calc(2.29167vw);
  width: calc(2.29167 * min(1vw, 19.2px));
  width: calc(2.29167 * var(--header-unit));
  height: calc(2.29167vw);
  height: calc(2.29167 * min(1vw, 19.2px));
  height: calc(2.29167 * var(--header-unit));
  background: transparent;
}

.site-header .header-search svg {
  width: calc(1.14583vw);
  width: calc(1.14583 * min(1vw, 19.2px));
  width: calc(1.14583 * var(--header-unit));
  height: calc(1.14583vw);
  height: calc(1.14583 * min(1vw, 19.2px));
  height: calc(1.14583 * var(--header-unit));
  visibility: visible;
}

.header-quote {
  grid-column: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: calc(2.29167vw);
  height: calc(2.29167 * min(1vw, 19.2px));
  height: calc(2.29167 * var(--header-unit));
  border-radius: 3px;
  background: #ff9900;
  color: #fff;
  font-size: calc(.83333vw);
  font-size: calc(.83333 * min(1vw, 19.2px));
  font-size: calc(.83333 * var(--header-unit));
  font-weight: 700;
  white-space: nowrap;
}

.header-quote:hover {
  background: #ed8b00;
}

.site-menu-toggle {
  display: none;
}

html[lang="en"] .site-header .site-navigation,
html[lang="ru"] .site-header .site-navigation {
  width: 100%;
  font-size: calc(.68vw);
  font-size: calc(.68 * min(1vw, 19.2px));
  font-size: calc(.68 * var(--header-unit));
}

@media (max-width: 1199.98px) {
  :root {
    --site-header-height: 72px;
  }

  .site-header-inner {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding-left: 16px;
    padding-left: max(16px, 50% - 560px);
    padding-right: 16px;
    padding-right: max(16px, 50% - 560px);
  }

  .site-logo {
    width: 105px;
    flex-shrink: 0;
  }

  .site-header .header-tools {
    display: flex;
    gap: 8px;
    margin-left: auto;
  }

  .header-language > summary {
    justify-content: center;
    gap: 6px;
    min-width: 52px;
    height: 44px;
    font-size: 14px;
  }

  .language-flag {
    width: 18px;
  }

  .site-header .header-search {
    width: 44px;
    height: 44px;
  }

  .site-header .header-search svg {
    width: 22px;
    height: 22px;
  }

  .header-quote {
    display: none;
  }

  .site-menu-toggle {
    display: block;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 25px;
    cursor: pointer;
  }

  .site-header .site-navigation,

  html[lang="en"] .site-header .site-navigation,

  html[lang="ru"] .site-header .site-navigation {
    position: absolute;
    top: 100%;
    right: 0;
    bottom: auto;
    left: 0;
    display: none;
    width: 100%;
    max-height: calc(100vh - 60px);
    max-height: calc(100vh - max(60px, min(5vw, 96px)));
    max-height: calc(100vh - var(--site-header-height));
    max-height: calc(100dvh - 60px);
    max-height: calc(100dvh - max(60px, min(5vw, 96px)));
    max-height: calc(100dvh - var(--site-header-height));
    padding: 16px 20px;
    padding: 16px max(20px, 50% - 560px);
    overflow-y: auto;
    background: #0b3e72;
    border-top: 1px solid rgba(255,255,255,0.12157);
    font-size: 15px;
  }

  .site-header .site-navigation.open {
    display: grid;
    grid-gap: 4px;
    gap: 4px;
  }

  .site-navigation > a,
  .site-navigation > .nav-dropdown > summary {
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .site-header .site-navigation .dropdown-menu {
    position: static;
    min-width: 0;
    margin-bottom: 8px;
    border: 0;
    border-left: 2px solid #ff9900;
    background: rgba(255,255,255,0.05098);
    box-shadow: none;
  }

  .site-header .site-navigation .dropdown-menu a {
    color: #fff;
  }

  .site-header .site-navigation .dropdown-menu a:hover {
    color: #ffbd59;
    background: rgba(255,255,255,0.05098);
  }

  .header-language .language-options {
    min-width: 150px;
  }
}

/* Leave breathing room below the primary labels without breaking hover travel. */
@media (min-width: 1200px) {
  .site-navigation .dropdown-menu {
    top: calc(100% + 24px);
  }

  .site-navigation .dropdown-menu::before {
    position: absolute;
    top: -26px;
    right: 0;
    bottom: auto;
    left: 0;
    height: 26px;
    content: "";
  }
}

/* Keep the navigation fixed even when CMS styles are also loaded. */
.site-header {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  width: 100%;
  transform: none !important;
}

/* All languages share the same desktop header geometry. */
@media (min-width: 1200px) {
  .site-header { height: 96px; height: 72px; height: calc(72px); height: calc(max(72px, min(5vw, 96px))); }
  .site-header-inner { display: flex; width: 100% - 48px; width: min(100% - 48px, 1760px); gap: 20px; }
  .site-logo { flex: 0 0 auto; width: 112px; width: calc(112px); width: calc(max(112px, min(8.333vw, 160px))); }
  .site-header .site-navigation,

  html:lang(en) .site-header .site-navigation,

  html:lang(ru) .site-header .site-navigation {
    flex: 1 1 auto; min-width: 0; width: auto;
    justify-content: center; flex-wrap: nowrap;
    gap: 16px;
    gap: calc(16px);
    gap: calc(max(16px, min(1.3vw, 24px)));
    margin: 0 0 0 24px;
    margin: 0 0 0 calc(24px);
    margin: 0 0 0 calc(max(24px, min(3vw, 56px)));
    font-size: 16px !important;
    font-size: calc(16px) !important;
    font-size: calc(max(16px, min(1.05vw, 18px))) !important;
  }
  .site-header .site-navigation > a,
  .site-header .site-navigation > .nav-dropdown {
    flex: 0 0 auto; width: auto; white-space: nowrap;
  }
  .site-header .site-navigation > .nav-dropdown > summary { white-space: nowrap; }
  .site-header .header-tools { display: flex; flex: 0 0 auto; gap: 12px; }
  .header-language { width: 60px; }
  .header-language > summary { height: 44px; font-size: 16px; }
  .site-header .header-search { width: 44px; height: 44px; }
  .site-header .header-search svg { width: 20px; height: 20px; }
  .header-quote { width: 140px; height: 44px; font-size: 15px; }
}
@media (min-width: 1200px) and (max-width: 1399px) {
  .header-quote { display: none; }
  .site-header-inner { gap: 12px; }
  .site-header .site-navigation,

  html:lang(en) .site-header .site-navigation,

  html:lang(ru) .site-header .site-navigation {
    gap: 12px; margin-left: 20px; font-size: 14px !important;
  }
}
@media (min-width: 1400px) and (max-width: 1699px) {
  .header-quote { display: none; }
}
@media (max-width: 1199.98px) {
  .site-header .site-navigation,

  html:lang(en) .site-header .site-navigation,

  html:lang(ru) .site-header .site-navigation { font-size: 16px !important; }
}
body { container-type: normal !important; contain: none !important; }

/* Open state must win over every language-specific hidden navigation rule. */
@media (max-width: 1199.98px) {
  .site-header #site-nav.open {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 4px;
    visibility: visible;
    pointer-events: auto;
  }
  .site-header #site-nav:not(.open) { display: none !important; }
  .site-header #site-nav > * { flex: none; width: 100%; margin: 0; }
}

