
:root {
  --shared-header-logo-height: clamp(84px, 12vw, 124px);
  --shared-header-height: calc(var(--shared-header-logo-height) + 6px);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  min-height: var(--shared-header-height);
  background: rgba(5, 19, 52, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.site-header__inner {
  width: 100%;
  max-width: 1200px;
  min-height: var(--shared-header-height);
  margin: 0 auto;
  padding: 3px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.site-brand img {
  height: var(--shared-header-logo-height);
  width: auto;
  display: block;
}

.shared-burger {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}

.shared-burger span,
.shared-burger span::before,
.shared-burger span::after {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  content: "";
  display: block;
  transition: transform .22s ease, opacity .22s ease;
}

.shared-burger span { position: relative; }
.shared-burger span::before { position: absolute; top: -6px; left: 0; }
.shared-burger span::after { position: absolute; top: 6px; left: 0; }

.shared-burger[aria-expanded="true"] span { background: transparent; }
.shared-burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.shared-burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

body.has-menu,
body.home-shared-header {
  padding-top: var(--shared-header-height);
}

@media (max-width: 680px) {
  :root {
    --shared-header-logo-height: clamp(72px, 18vw, 96px);
  }
  .site-header__inner {
    padding-left: 14px;
    padding-right: 14px;
  }
  .shared-burger {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 23, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1070;
}

.menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 92vw);
  height: 100vh;
  padding: calc(var(--shared-header-height) + 28px) 24px 28px;
  background: linear-gradient(180deg, rgba(5,18,56,0.98) 0%, rgba(9,27,79,0.98) 100%);
  border-left: 1px solid rgba(255,255,255,0.08);
  box-shadow: -24px 0 60px rgba(0,0,0,0.35);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  z-index: 1080;
  overflow-y: auto;
}

.menu-drawer.is-open {
  transform: translateX(0);
}

.menu-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 0 0 10px;
}

.menu-current {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px;
}

.menu-copy {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,0.72);
  margin: 0 0 26px;
}

.menu-nav {
  display: grid;
  gap: 12px;
}

.menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  text-decoration: none;
  color: #ffffff;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.menu-link:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.16);
}

.menu-link.is-current {
  background: rgba(45, 100, 255, 0.20);
  border-color: rgba(90, 140, 255, 0.38);
}

.menu-link span {
  display: block;
}

.menu-link strong {
  font-size: 20px;
  line-height: 1;
  color: rgba(255,255,255,0.72);
}

.menu-link small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255,255,255,0.62);
}

body.menu-open {
  overflow: hidden;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.site-brand__logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 100%;
}

@media (max-width: 768px) {
  .site-brand__logo {
    height: 34px;
  }
}
