/* Shared site header: brand, desktop navigation, action, and mobile drawer. */
site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: block;
}

.site-header {
  color: #0a2342;
  background: #ffffff;
  border-bottom: 1px solid #dbe3ec;
  box-shadow: 0 4px 14px rgba(10, 35, 66, 0.1);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(10, 35, 66, 0.16);
}

.site-header__inner {
  width: min(1280px, calc(100% - 48px));
  height: 96px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__brand-group {
  min-width: max-content;
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header__menu-button,
.site-header__close-button {
  appearance: none;
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #1a365d;
  background: #f1f5f9;
  border: 1px solid #dbe3ec;
  border-radius: 3px;
  cursor: pointer;
}

.site-header__menu-button svg,
.site-header__close-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 2;
}

.site-header__logo {
  display: block;
  width: 112px;
  height: 58px;
  object-fit: contain;
}

.site-header__brand {
  color: #0a2342;
  text-decoration: none;
  line-height: 1;
}

.site-header__brand strong,
.site-header__brand span {
  display: block;
}

.site-header__brand strong {
  font: 700 28px/1 Georgia, 'Times New Roman', serif;
}

.site-header__brand span {
  margin-top: 7px;
  color: #526176;
  font: 500 12px/1.1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-header__desktop {
  min-width: 0;
  display: flex;
  align-items: center;
}

.site-primary-nav {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  background: #081d38;
  border: 1px solid #173b63;
  border-radius: 0;
  box-shadow: 0 6px 18px rgba(10, 35, 66, 0.24);
}

.site-primary-nav__link {
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: #cbd5e1;
  background: transparent;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
  font: 700 13.5px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.site-primary-nav__link:hover,
.site-primary-nav__link:focus-visible {
  color: #ffffff;
  background: #102c4d;
}

.site-primary-nav__link.is-active {
  position: relative;
  z-index: 1;
  color: #ffcc00;
  background: linear-gradient(145deg, #285d91 0%, #12365e 58%, #0d2b4e 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 5px 0 #06172b,
    0 9px 14px rgba(0, 0, 0, 0.28);
  transform: translateY(-4px);
}

.site-header__apply {
  min-width: max-content;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 25px;
  color: #0a2342;
  background: #ffcc00;
  border: 1px solid #e7b900;
  border-radius: 0;
  box-shadow: 0 4px 0 #c79e00;
  text-decoration: none;
  font: 700 13px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-header__apply:hover,
.site-header__apply:focus-visible {
  background: #ffe066;
}

.site-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  visibility: hidden;
  opacity: 0;
  background: rgba(6, 23, 43, 0.78);
  transition: opacity 220ms ease, visibility 220ms ease;
}

.site-mobile-overlay.is-open {
  visibility: visible;
  opacity: 1;
}

.site-mobile-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 70;
  width: min(330px, 88vw);
  padding: 24px 18px;
  color: #0a2342;
  background: #ffffff;
  border-right: 4px solid #ffcc00;
  box-shadow: 18px 0 40px rgba(6, 23, 43, 0.28);
  visibility: hidden;
  transform: translateX(-105%);
  transition: transform 240ms ease, visibility 240ms ease;
}

.site-mobile-drawer.is-open {
  visibility: visible;
  transform: translateX(0);
}

.site-mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px 20px;
  border-bottom: 1px solid #dbe3ec;
}

.site-mobile-drawer__title {
  margin: 0;
  color: #0a2342;
  font: 700 22px/1.2 Georgia, 'Times New Roman', serif;
}

.site-header__close-button {
  display: grid;
  flex: 0 0 auto;
}

.site-mobile-nav {
  display: grid;
  gap: 7px;
  margin-top: 22px;
}

.site-mobile-nav__link {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  color: #243247;
  background: #f5f7fa;
  border-left: 4px solid transparent;
  text-decoration: none;
  font: 700 14px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-mobile-nav__link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.site-mobile-nav__link:hover,
.site-mobile-nav__link:focus-visible {
  color: #0a2342;
  background: #e7edf5;
}

.site-mobile-nav__link.is-active {
  color: #ffcc00;
  background: #0a2342;
  border-left-color: #ffcc00;
}

.site-primary-nav__link:focus-visible,
.site-header__apply:focus-visible,
.site-header__menu-button:focus-visible,
.site-header__close-button:focus-visible,
.site-mobile-nav__link:focus-visible {
  outline: 2px solid #ffcc00;
  outline-offset: 2px;
}

body.site-mobile-nav-open {
  overflow: hidden;
}

@media (max-width: 1160px) {
  .site-header__inner {
    width: min(100% - 32px, 1280px);
  }

  .site-header__menu-button {
    display: grid;
  }

  .site-header__desktop,
  .site-header__apply {
    display: none;
  }
}

@media (min-width: 1161px) {
  .site-mobile-overlay,
  .site-mobile-drawer {
    display: none !important;
  }
}

@media (max-width: 560px) {
  .site-header__inner {
    width: calc(100% - 24px);
    height: 82px;
  }

  .site-header__brand-group {
    gap: 9px;
  }

  .site-header__logo {
    width: 76px;
    height: 48px;
  }

  .site-header__brand strong {
    font-size: 22px;
  }

  .site-header__brand span {
    font-size: 10px;
    letter-spacing: 0.12em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-mobile-overlay,
  .site-mobile-drawer {
    transition: none;
  }
}

@media print {
  site-header {
    display: none !important;
  }
}
