.site-header {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1440px;
  z-index: var(--z-header);
  display: flex;
  flex-direction: column;
  background: rgba(13, 21, 33, 0.60);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-);
  border-radius: var(--r-xl);
  box-shadow:
    0 4px 24px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,255,255,0.06);
  transition:
    background   0.35s var(--ease-out),
    box-shadow   0.35s var(--ease-out),
    border-color 0.35s var(--ease-out),
    top          0.35s var(--ease-out),
    width        0.35s var(--ease-out);
}

.site-header.scrolled {
  top: 8px;
  background: rgba(9, 17, 28, 0.92);
  backdrop-filter: var(--glass-blur-lg);
  -webkit-backdrop-filter: var(--glass-blur-lg);
  border-color: rgba(255,121,0,0.18);
  box-shadow:
    0 8px 40px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,121,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.07);
}

.header-topbar {
  height: 28px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: var(--ls-wide);
  overflow: hidden;
  max-height: 28px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  transition:
    max-height   0.35s var(--ease-out),
    opacity      0.35s var(--ease-out),
    border-color 0.35s var(--ease-out);
}
.header-topbar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}
.header-topbar a {
  color: var(--accent);
  font-weight: var(--fw-semibold);
  transition: opacity var(--dur-fast);
}
.header-topbar a:hover { opacity: .75; }

.site-header.scrolled .header-topbar {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.header-main {
  height: 101px;
  display: flex;
  align-items: center;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  transition: height 0.35s var(--ease-out);
}
.scrolled .header-main { height: 80px; }

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  height: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity var(--dur-fast);
}
.site-logo:hover { opacity: .85; }
.site-logo img {
  height: 52px;
  width: auto;
  transition: height 0.35s var(--ease-out);
}
.scrolled .site-logo img { height: 42px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-item { position: relative; z-index: 0; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 13px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  border-radius: var(--r-md);
  white-space: nowrap;
  font-family: var(--font-head);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}
.nav-link.active { color: var(--accent); }
.nav-link svg {
  width: 13px; height: 13px;
  transition: transform var(--dur-fast);
}
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 210px;
  background: rgba(9, 17, 28, 0.96);
  backdrop-filter: var(--glass-blur-lg);
  -webkit-backdrop-filter: var(--glass-blur-lg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out);
  box-shadow: var(--glass-shadow-lg);
  z-index: calc(var(--z-header, 1000) + 10);
}
.nav-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  transition: all var(--dur-fast);
}
.nav-dropdown a:hover { background: var(--accent-soft); color: var(--accent); }
.drop-icon {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass-bg-light);
  border-radius: var(--r-sm);
  flex-shrink: 0;
  color: var(--accent);
}
.nav-dropdown a:hover .drop-icon {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ── Dropdown wider variant ── */
.nav-dropdown--wide {
  min-width: 270px;
}

/* ── CTA item in dropdown ── */
.drop-cta {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 11px 12px !important;
  background: linear-gradient(135deg, rgba(255,121,0,0.13) 0%, rgba(255,121,0,0.06) 100%);
  border: 1px solid rgba(255,121,0,0.28);
  border-radius: var(--r-md);
  margin-bottom: 2px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s !important;
}
.drop-cta:hover {
  background: linear-gradient(135deg, rgba(255,121,0,0.22) 0%, rgba(255,121,0,0.10) 100%) !important;
  border-color: rgba(255,121,0,0.55) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}
.drop-cta__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,121,0,0.18);
  border-radius: var(--r-sm);
  color: var(--accent);
  flex-shrink: 0;
  transition: background 0.2s;
}
.drop-cta:hover .drop-cta__icon {
  background: rgba(255,121,0,0.30);
}
.drop-cta__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.drop-cta__title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  font-family: var(--font-head);
  color: var(--white);
  line-height: 1.2;
}
.drop-cta__sub {
  font-size: 11px;
  color: var(--accent);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  line-height: 1.2;
  opacity: 0.85;
}
.drop-cta:hover .drop-cta__sub { opacity: 1; }

.drop-separator {
  height: 1px;
  background: var(--glass-border);
  margin: 4px 4px 6px;
}

/* Mobile CTA sub-item */
.mobile-drop-cta {
  color: var(--accent) !important;
  font-weight: var(--fw-semibold) !important;
}

.header-actions { display: flex; align-items: center; gap: 10px; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  padding: 7px;
  border-radius: var(--r-md);
  background: var(--glass-bg-light);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.hamburger:hover { background: var(--accent-soft); border-color: var(--glass-border-accent); }
.hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--text-muted);
  border-radius: var(--r-full);
  transition: all 0.3s var(--ease-out);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-header) - 1);
  background: rgba(9, 17, 28, 0.97);
  backdrop-filter: var(--glass-blur-lg);
  -webkit-backdrop-filter: var(--glass-blur-lg);
  padding: 100px var(--pad) 40px;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
  display: block;
  visibility: hidden;
  pointer-events: none;
  max-width: 100vw;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: all;
}
.mobile-menu.open .mobile-nav > li {
  animation: mobile-item-in 0.3s ease both;
}
.mobile-menu.open .mobile-nav > li:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu.open .mobile-nav > li:nth-child(2) { animation-delay: 0.08s; }
.mobile-menu.open .mobile-nav > li:nth-child(3) { animation-delay: 0.11s; }
.mobile-menu.open .mobile-nav > li:nth-child(4) { animation-delay: 0.14s; }
.mobile-menu.open .mobile-nav > li:nth-child(5) { animation-delay: 0.17s; }
.mobile-menu.open .mobile-nav > li:nth-child(6) { animation-delay: 0.20s; }
.mobile-menu.open .mobile-nav > li:nth-child(7) { animation-delay: 0.23s; }
.mobile-menu.open .mobile-nav > li:nth-child(8) { animation-delay: 0.26s; }
.mobile-menu.open .mobile-nav > li:nth-child(9) { animation-delay: 0.29s; }
@keyframes mobile-item-in {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
}

.mobile-nav { display: flex; flex-direction: column; gap: 0; margin-bottom: 32px; }
.mobile-nav a {
  display: block;
  padding: 14px 16px;
  font-size: var(--fs-lg);
  font-family: var(--font-head);
  font-weight: var(--fw-semibold);
  color: var(--text);
  border-bottom: 1px solid var(--glass-border);
  transition: color var(--dur-fast), padding-left var(--dur-fast);
  opacity: 1 !important;
  transform: none !important;
}
.mobile-nav a:hover { color: var(--accent); padding-left: 24px; }
.mobile-nav a.active { color: var(--accent); }

.mobile-menu__actions { display: flex; flex-direction: column; gap: 12px; }
.mobile-menu__actions .btn { width: 100%; justify-content: center; }

@media (max-width: 1024px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .header-actions .btn--primary { display: none; }
}

@media (max-width: 768px) {
  .site-header {
    width: calc(100% - 24px);
    top: 8px;
    border-radius: var(--r-lg);
  }
  .header-topbar { display: none; }
  .header-main { height: 90px; }
  .site-logo img { height: 38px; }
  .hamburger {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
  }
  .header-main .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 480px) {
  .site-header {
    width: calc(100% - 16px);
    top: 6px;
  }
  .header-main { height: 85px; }
  .site-logo img { height: 36px; }
  .header-main .container {
    padding-left: 14px;
    padding-right: 14px;
  }
}
:root {
  --header-h: 116px; 
}
.site-header.scrolled ~ * {
  --header-h: 72px;
}
.mobile-nav__group {
  border-bottom: 1px solid var(--glass-border);
}
.mobile-nav__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  font-family: var(--font-head);
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color var(--dur-fast);
}
.mobile-nav__label:hover { color: var(--accent); }
.mobile-nav__label svg {
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
  color: var(--text-dim);
}
.mobile-nav__group.open .mobile-nav__label { color: var(--accent); }
.mobile-nav__group.open .mobile-nav__label svg { color: var(--accent); }

.mobile-nav__sub {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out);
}
.mobile-nav__sub li a {
  display: block;
  padding: 10px 16px 10px 28px;
  font-size: var(--fs-base);
  font-family: var(--font-head);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  border-bottom: none;
  transition: color var(--dur-fast), padding-left var(--dur-fast);
}
.mobile-nav__sub li a:hover { color: var(--accent); padding-left: 36px; }
.mobile-nav__sub li:last-child a { padding-bottom: 14px; }

.mobile-nav > li:not(.mobile-nav__group) > a {
  border-bottom: 1px solid var(--glass-border);
}

.mobile-menu__actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.mobile-menu__actions .btn {
  flex: 1;
  justify-content: center;
}