:root {
  --site-header-bg: rgba(4, 12, 33, 0.88);
  --site-header-border: rgba(255, 220, 128, 0.24);
  --site-header-text: #eaf1ff;
  --site-header-text-muted: rgba(228, 238, 255, 0.86);
  --site-header-accent: #f4ce6c;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  backdrop-filter: blur(12px);
  padding-top: max(0.2rem, env(safe-area-inset-top));
  width: 100%;
  align-self: stretch;
}

.site-header__inner {
  width: min(1280px, calc(100% - 1.5rem));
  margin: clamp(0.6rem, 2vw, 1rem) auto 0;
  border-radius: 20px;
  border: 1px solid var(--site-header-border);
  background: linear-gradient(180deg, rgba(7, 17, 46, 0.94), rgba(5, 13, 35, 0.9));
  box-shadow: 0 14px 36px rgba(2, 8, 26, 0.52);
  padding: 0.55rem 0.72rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 0.52rem;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.46rem;
  text-decoration: none;
  color: var(--site-header-text);
  font-weight: 800;
  white-space: nowrap;
  border-radius: 12px;
  padding: 0.3rem 0.45rem;
  -webkit-tap-highlight-color: transparent;
  border: 1px solid rgba(255, 219, 132, 0.26);
  background: linear-gradient(145deg, rgba(255, 231, 162, 0.12), rgba(255, 231, 162, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 242, 206, 0.22);
}

.site-header__brand:hover,
.site-header__brand:active,
.site-header__brand:focus,
.site-header__brand:focus-visible,
.site-header__brand[aria-current="page"] {
  color: var(--site-header-text);
  text-decoration: none;
  background: linear-gradient(145deg, rgba(255, 231, 162, 0.16), rgba(255, 231, 162, 0.06));
}

.site-header__brand:focus-visible {
  outline: 2px solid rgba(255, 220, 128, 0.55);
  outline-offset: 3px;
}

.site-header__logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #102046;
  background: linear-gradient(145deg, #ffe7a2, #f4ce6c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.site-header__logo--glyph {
  display: none !important;
  position: absolute;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-header__brand:hover .site-header__logo--glyph,
.site-header__brand:active .site-header__logo--glyph,
.site-header__brand:focus .site-header__logo--glyph,
.site-header__brand:focus-visible .site-header__logo--glyph,
.site-header__brand[aria-current="page"] .site-header__logo--glyph {
  display: none !important;
  opacity: 0;
  visibility: hidden;
}

.site-header__logo--brand-image {
  display: block;
  width: 46px;
  height: 33px;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.site-header__brand-text {
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.site-header__nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.2rem;
  justify-content: flex-start;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-header__nav::-webkit-scrollbar {
  display: none;
}

.site-header__nav-shell {
  border-inline: 1px solid rgba(255, 220, 128, 0.26);
  padding: 0.22rem 0.54rem;
  border-radius: 999px;
  background: rgba(8, 18, 48, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24);
  min-width: 0;
}

.site-header__link {
  text-decoration: none;
  color: var(--site-header-text-muted);
  padding: 0.42rem 0.58rem;
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.site-header__link:hover,
.site-header__link:focus-visible {
  color: #fff6d7;
  background: rgba(255, 220, 128, 0.15);
  outline: none;
}

.site-header__link[aria-current="page"] {
  color: #091734;
  background: linear-gradient(145deg, #ffe7a2, #f4ce6c);
  box-shadow:
    0 0 0 1px rgba(255, 244, 210, 0.54) inset,
    0 6px 16px rgba(244, 206, 108, 0.2);
  font-weight: 800;
}

.site-header__cta-shell {
  padding-inline-start: 0.1rem;
  border-inline-start: 1px solid rgba(255, 220, 128, 0.2);
  margin-inline-start: 0.05rem;
}

.site-header__utility {
  position: relative;
}

.site-header__support-toggle {
  border: 1px solid rgba(255, 220, 128, 0.34);
  background: rgba(10, 21, 53, 0.72);
  color: rgba(236, 244, 255, 0.92);
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.site-header__support-toggle:hover,
.site-header__support-toggle:focus-visible,
.site-header__support-toggle.is-active {
  color: #fff4cd;
  border-color: rgba(255, 220, 128, 0.58);
  background: rgba(255, 220, 128, 0.14);
  outline: none;
}

.site-header__support-toggle.is-active {
  color: #091734;
  background: linear-gradient(145deg, #ffe7a2, #f4ce6c);
}

.site-header__support-menu {
  position: absolute;
  top: calc(100% + 0.44rem);
  inset-inline-end: 0;
  display: none;
  min-width: 170px;
  border-radius: 14px;
  border: 1px solid var(--site-header-border);
  background: rgba(6, 14, 37, 0.97);
  box-shadow: 0 14px 32px rgba(1, 7, 24, 0.48);
  padding: 0.28rem;
}

.site-header--support-open .site-header__support-menu {
  display: grid;
}

.site-header__support-link {
  text-decoration: none;
  color: rgba(233, 242, 255, 0.92);
  border-radius: 10px;
  padding: 0.46rem 0.6rem;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}

.site-header__support-link:hover,
.site-header__support-link:focus-visible {
  background: rgba(255, 220, 128, 0.12);
  color: #fff4cd;
  outline: none;
}

.site-header__support-link[aria-current="page"] {
  color: #091734;
  background: linear-gradient(145deg, #ffe7a2, #f4ce6c);
}

.site-header__cta {
  text-decoration: none;
  background: linear-gradient(145deg, #ffe7a2, #f4ce6c);
  color: #081532;
  border-radius: 12px;
  padding: 0.52rem 0.82rem;
  font-weight: 760;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow:
    0 0 0 1px rgba(255, 247, 227, 0.42) inset,
    0 8px 18px rgba(244, 206, 108, 0.2);
}

.site-header__toggle {
  display: none;
  border: 1px solid rgba(244, 206, 108, 0.45);
  background: rgba(10, 24, 58, 0.8);
  color: #ffe8a7;
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
  font-size: 0.92rem;
}

.site-header__panel {
  display: none;
  width: min(1120px, calc(100% - 1.5rem));
  margin: 0.55rem auto 0;
  border-radius: 14px;
  border: 1px solid var(--site-header-border);
  background: rgba(6, 14, 37, 0.97);
  padding: 0.7rem;
}

.site-header__panel-links {
  display: grid;
  gap: 0.35rem;
}

.site-header__panel .site-header__link {
  border-radius: 10px;
}

.site-header--open .site-header__panel {
  display: block;
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 140;
  }

  .site-header__inner {
    position: relative;
    grid-template-columns: auto 1fr auto;
    width: min(1120px, calc(100% - 1rem));
    margin-top: 0.32rem;
    border-radius: 14px;
    padding: 0.48rem 0.62rem;
    gap: 0.58rem;
  }

  .site-header__nav,
  .site-header__cta,
  .site-header__nav-shell,
  .site-header__cta-shell,
  .site-header__utility {
    display: none;
  }

  .site-header__brand {
    gap: 0.42rem;
    padding-inline-start: 0.06rem;
  }

  .site-header__brand-text {
    font-size: 0.98rem;
    letter-spacing: 0.01em;
  }

  .site-header__logo--brand-image {
    width: 42px;
    height: 30px;
  }

  .site-header__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 41px;
    min-width: 66px;
    padding: 0.34rem 0.62rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
  }

  .site-header__panel {
    position: static;
    width: min(1120px, calc(100% - 1rem));
    margin-top: 0.32rem;
    border-radius: 12px;
    padding: 0.52rem;
    box-shadow: 0 12px 26px rgba(1, 7, 24, 0.42);
  }

  .site-header__panel-links {
    gap: 0.28rem;
  }

  .site-header__panel .site-header__link {
    min-height: 42px;
    padding: 0.5rem 0.66rem;
    font-size: 0.9rem;
    border-radius: 9px;
  }

  .site-header__panel .site-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    margin-top: 0.22rem;
  }
}
