body.menu-open { overflow: hidden; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1300;
  height: var(--header-h);
  background: #05070a;
  background-image: linear-gradient(180deg, rgba(5,7,10,1), rgba(5,7,10,.96));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201,162,74,.12);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.62);
  transition: box-shadow .2s ease, background-color .2s ease, background-image .2s ease, opacity .22s ease, transform .28s ease;
  transform: translate3d(0,0,0);
  will-change: transform;
}
.site-header.is-hidden { transform: translate3d(0,-100%,0); }
body.menu-open .site-header.is-hidden { transform: translate3d(0,0,0); }
.site-header.is-scrolled {
  box-shadow: 0 10px 28px rgba(0,0,0,.18), inset 0 -1px 0 rgba(0,0,0,.68);
  background: #05070a;
  background-image: linear-gradient(180deg, rgba(5,7,10,.98), rgba(5,7,10,.94));
  border-bottom-color: rgba(201,162,74,.10);
}
.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 164px;
  color: #fff;
  flex: 0 0 auto;
}
.brand-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 2.4vw, 2.4rem);
  line-height: 0.84;
  letter-spacing: 0.03em;
  font-weight: 700;
  white-space: nowrap;
}
.brand-subtitle {
  font-size: 0.62rem;
  line-height: 1;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.76);
  font-weight: 700;
  white-space: nowrap;
}

.nav {
  justify-self: center;
}
.nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  color: rgba(255,255,255,0.88);
  font-size: 15px;
  font-weight: 600;
  transition: background-color .2s ease, color .2s ease;
}
.nav a:hover,
.nav a:focus-visible { background: rgba(255,255,255,.095); color: #fff; }
.nav a.is-active { background: rgba(255,255,255,.075); color: #fff; }

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8,10,14,0.22);
  backdrop-filter: none;
  z-index: 1180;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.menu-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.menu-toggle {
  display: none;
  touch-action: manipulation;
  position: relative;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  padding: 0;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.menu-toggle:hover { background: rgba(255,255,255,0.07); }
.menu-toggle:focus-visible {
  outline: 3px solid #8ec5ff;
  outline-offset: 3px;
}
.menu-toggle span {
  position: absolute;
  left: 50%;
  display: block;
  width: 22px;
  height: 2px;
  margin: 0;
  background: #fff;
  border-radius: 999px;
  transform: translateX(-50%);
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 29px; }
.menu-toggle.is-active span:nth-child(1) { top: 22px; transform: translateX(-50%) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { top: 22px; transform: translateX(-50%) rotate(-45deg); }

@media (max-width: 860px) {
  :root { --header-h: 88px; }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .site-header {
    overflow: visible;
    background: #05070a;
    background-image: linear-gradient(180deg, rgba(5,7,10,1), rgba(5,7,10,.97));
    border-bottom-color: rgba(201,162,74,.10);
  }
  .site-header.is-scrolled {
    background: #05070a;
    background-image: linear-gradient(180deg, rgba(5,7,10,1), rgba(5,7,10,.96));
    border-bottom-color: rgba(201,162,74,.10);
  }
  .nav {
    position: fixed;
    top: calc(var(--header-h) + 10px);
    right: 14px;
    left: auto;
    width: min(286px, calc(100vw - 28px));
    display: block;
    max-height: calc(100dvh - var(--header-h) - 28px);
    padding: 14px;
    background: rgba(11, 15, 21, 0.98);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    box-shadow: 0 18px 38px rgba(0,0,0,0.28);
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    z-index: 1320;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .nav a {
    touch-action: manipulation;
    justify-content: flex-start;
    min-height: 50px;
    padding: 0 16px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
  }

  .header-actions {
    justify-self: end;
  }

  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

@media (max-width: 640px) {
  .brand {
    min-width: 160px;
    max-width: none;
  }
  .brand-title {
    font-size: 1.58rem;
    line-height: 0.84;
    letter-spacing: 0.02em;
  }
  .brand-subtitle {
    font-size: 0.52rem;
    letter-spacing: 0.11em;
  }

  .header-actions { gap: 10px; }

  .nav {
    width: min(280px, calc(100vw - 28px));
  }
  .menu-toggle {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
  }
  .menu-toggle span:nth-child(1) { top: 16px; }
  .menu-toggle span:nth-child(2) { top: 24px; }
  .menu-toggle span:nth-child(3) { top: 32px; }
  .menu-toggle.is-active span:nth-child(1),
  .menu-toggle.is-active span:nth-child(3) { top: 24px; }
}

@media (max-width: 390px) {
  .brand {
    min-width: 154px;
    max-width: none;
  }
  .brand-title { font-size: 1.5rem; }
  .brand-subtitle {
    font-size: 0.5rem;
    letter-spacing: 0.1em;
  }
}