/* Header layout: one row on desktop, a dedicated preference row on mobile. */
.site-header {
  height: 88px;
  display: block;
  padding: 0 40px;
  background: linear-gradient(180deg, rgba(11, 11, 20, .94), rgba(11, 11, 20, .65));
  border-bottom: 1px solid rgba(221, 225, 236, .09);
}
.header-inner {
  width: 100%;
  max-width: 1184px;
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 30px;
}
.site-header .brand-art { width: 180px; height: 37px; }
.site-header .brand-art img { width: 220px; height: 110px; left: -19px; top: -37px; }
.site-header .desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 1.7vw, 28px);
  font-size: 11px;
  white-space: nowrap;
}
.site-header .desktop-nav a { padding: 12px 0; }
.site-header .header-actions { display: flex; align-items: center; gap: 20px; margin: 0; }
.header-preferences, .header-account { display: flex; align-items: center; gap: 14px; }
.header-preferences { padding-right: 20px; border-right: 1px solid rgba(221, 225, 236, .12); gap: 8px; }
.site-header .language-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid rgba(164, 139, 211, .2);
  border-radius: 8px;
  background: rgba(255, 255, 255, .025);
}
.language-switcher svg { width: 14px; height: 14px; stroke: #a998bf; stroke-width: 1.2; margin: 0 5px 0 7px; }
.site-header .language-switcher button {
  min-height: 32px;
  padding: 7px 9px;
  border-radius: 5px;
  background: transparent;
  color: #a99eb9;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.site-header .language-switcher button[aria-pressed="true"] { background: #7950f2; color: #fff; box-shadow: 0 2px 9px #7950f22b; }
.site-header .language-switcher button:hover { color: #fff; }
.language-separator { color: #665774; font-size: 10px; padding: 0 2px; }
.site-header .motion-control {
  flex-shrink: 0;
  width: 36px;
  height: 40px;
  border-radius: 8px;
  border-color: rgba(164, 139, 211, .2);
  background: transparent;
  color: #b3a6c4;
  font-size: 13px;
}
.site-header .motion-control:hover { background: rgba(121, 80, 242, .12); }
.site-header .login-link { display: inline-flex; font-size: 11px; gap: 8px; padding: 12px 0; white-space: nowrap; }
.site-header .button-small { min-height: 42px; padding: 11px 16px; font-size: 11px; gap: 15px; border-radius: 8px; }
.site-header .button-small:hover { transform: translateY(-1px); }
.site-header .menu-toggle { display: none; }
.site-header .mobile-nav { display: none; }

@media (max-width: 1200px) {
  .site-header { padding: 0 32px; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; }
  .site-header .desktop-nav { display: none; }
  .site-header .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 42px;
    padding: 8px;
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(164, 139, 211, .2);
    border-radius: 8px;
  }
  .site-header .menu-toggle span { width: 18px; height: 1px; background: #c9b6dc; transition: transform .2s; }
  .site-header .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .site-header .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .site-header .mobile-nav {
    position: absolute;
    display: grid;
    top: 100%;
    left: 0;
    right: 0;
    gap: 0;
    padding: 12px 32px 18px;
    background: #110d1bf5;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(164, 139, 211, .2);
    font-size: 13px;
  }
  .site-header .mobile-nav a, .site-header .mobile-nav button {
    padding: 14px 8px;
    border-bottom: 1px solid rgba(221, 225, 236, .06);
    text-align: left;
  }
  .site-header .mobile-nav button { background: transparent; color: #c5b1d8; font-size: 13px; }
  .site-header .mobile-nav a:hover, .site-header .mobile-nav button:hover { color: #fff; }
}

@media (max-width: 900px) {
  .site-header { height: 124px; padding: 0 28px; }
  .header-inner { grid-template-areas: "brand account" "preferences preferences"; grid-template-rows: 72px 52px; gap: 0 20px; }
  .site-header .brand-art { grid-area: brand; }
  .site-header .header-actions { display: contents; }
  .header-account { grid-area: account; justify-content: flex-end; }
  .header-preferences {
    grid-area: preferences;
    align-self: stretch;
    justify-content: space-between;
    padding: 6px 0 8px;
    border-right: 0;
    border-top: 1px solid rgba(221, 225, 236, .07);
  }
  .site-header .language-switcher { padding: 2px; border-radius: 7px; }
  .site-header .language-switcher button { min-height: 32px; font-size: 10px; padding: 6px 12px; }
  .site-header .motion-control { height: 36px; width: 36px; }
  .site-header .mobile-nav { padding-left: 28px; padding-right: 28px; }
  .hero { padding-top: 180px; }
}

@media (max-width: 640px) {
  .site-header { padding: 0 20px; }
  .header-inner { column-gap: 14px; }
  .site-header .brand-art { width: 154px; height: 34px; }
  .site-header .brand-art img { width: 190px; height: 95px; left: -16px; top: -32px; }
  .header-account { gap: 10px; }
  .site-header .login-link { display: none; }
  .site-header .button-small { min-height: 40px; padding: 10px 12px; font-size: 10px; gap: 9px; }
  .site-header .button-small span { font-size: 14px; }
  .site-header .menu-toggle { width: 38px; height: 40px; }
  .site-header .mobile-nav { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 170px; min-height: 1010px; }
}

@media (max-width: 380px) {
  .site-header { padding: 0 14px; }
  .header-inner { column-gap: 8px; }
  .site-header .brand-art { width: 126px; height: 30px; }
  .site-header .brand-art img { width: 158px; height: 79px; left: -13px; top: -26px; }
  .header-account { gap: 8px; }
  .site-header .button-small { padding: 10px; gap: 7px; }
  .site-header .button-small span { display: none; }
  .site-header .menu-toggle { width: 36px; }
  .site-header .language-switcher button { padding: 6px 10px; }
}
