.header-layout {
  position: relative;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.96);
  border-bottom: 1px solid var(--border);
}

.site-header__row,
.header__inner {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 4.5rem 0 1.5rem;
  min-height: var(--header-height);
  box-sizing: border-box;
}

.header__brand {
  text-decoration: none;
  color: var(--text);
  min-width: 0;
  flex: 1 1 auto;
}

.header__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-light);
}

.header__brand:hover .header__name {
  color: var(--gold);
}

.header__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--gold);
  position: absolute;
  top: 50%;
  right: 1.5rem;
  left: auto;
  transform: translateY(-50%);
  z-index: 102;
  flex: 0 0 auto;
  margin: 0;
}

.header__burger,
.header__burger::before,
.header__burger::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.header__burger {
  position: relative;
}

.header__burger::before,
.header__burger::after {
  content: '';
  position: absolute;
  left: 0;
}

.header__burger::before {
  top: -6px;
}

.header__burger::after {
  top: 6px;
}

.header__burger.is-open {
  background: transparent;
}

.header__burger.is-open::before {
  top: 0;
  transform: rotate(45deg);
}

.header__burger.is-open::after {
  top: 0;
  transform: rotate(-45deg);
}

.header__nav {
  display: none;
}

.header__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header__link {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.header__link:hover,
.header__link.is-active {
  color: var(--gold-light);
}

.header__nav-social {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

body.nav-open {
  overflow: hidden;
}

@media (min-width: 900px) {
  .header-layout {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    min-height: var(--header-height);
    background: rgba(10, 10, 10, 0.96);
    border-bottom: 1px solid var(--border);
  }

  .site-header {
    position: static;
    background: none;
    border: none;
    flex: 1;
  }

  .site-header__row,
  .header__inner {
    padding: 0;
    min-height: 0;
    max-width: none;
    margin: 0;
  }

  .header__toggle {
    display: none;
    position: static;
    transform: none;
  }

  .header__nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .header__links {
    display: flex;
    gap: 1.75rem;
  }

  .header__link {
    padding: 0.25rem 0;
    position: relative;
  }

  .header__link.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background: var(--gold);
  }

  .header__nav-social {
    display: none;
  }
}

@media (max-width: 899px) {
  .site-header {
    width: 100%;
  }

  .header__nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100dvh - var(--header-height));
    height: calc(100vh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
    padding: 2rem 1.5rem 2.5rem;
    background: var(--black-soft);
    border-top: 1px solid var(--border);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 101;
    box-sizing: border-box;
  }

  .header__links {
    flex: 1;
  }

  .header__links li + li {
    margin-top: 0.25rem;
  }

  .header__link {
    font-size: 1.25rem;
    padding: 0.75rem 0;
  }
}
