.site-header {
  position: relative;
  z-index: 1000;
  background-color: #09050E;
  border-bottom: 1px solid rgba(157, 78, 221, 0.2);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin-inline: auto;
  padding: 0.75rem 1rem;
  min-height: 64px;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #EAE6ED;
  flex-shrink: 0;
  min-width: 0;
}

.site-header__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.site-header__brand-text {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(157, 78, 221, 0.3);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
  flex-shrink: 0;
}

.site-header__toggle:hover {
  border-color: #9D4EDD;
  background-color: rgba(157, 78, 221, 0.1);
}

.site-header__toggle:focus-visible {
  outline: 2px solid #9D4EDD;
  outline-offset: 2px;
}

.site-header__toggle-icon,
.site-header__toggle-icon::before,
.site-header__toggle-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #EAE6ED;
  border-radius: 1px;
  transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

.site-header__toggle-icon {
  position: relative;
}

.site-header__toggle-icon::before,
.site-header__toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
}

.site-header__toggle-icon::before {
  top: -6px;
}

.site-header__toggle-icon::after {
  top: 6px;
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-icon {
  background-color: transparent;
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.site-header__nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.site-header__nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header__nav-item {
  margin: 0;
  padding: 0;
}

.site-header__nav-link {
  display: inline-block;
  padding: 0.25rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #EAE6ED;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s ease-in-out;
}

.site-header__nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: #9D4EDD;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease-in-out;
}

.site-header__nav-link:hover {
  color: #B87AE8;
}

.site-header__nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-header__nav-link:focus-visible {
  outline: 2px solid #9D4EDD;
  outline-offset: 2px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #09050E;
  background-color: #9D4EDD;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
  white-space: nowrap;
}

.site-header__cta:hover {
  background-color: #B87AE8;
  color: #09050E;
}

.site-header__cta:focus-visible {
  outline: 2px solid #9D4EDD;
  outline-offset: 2px;
}

.site-header__age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9D4EDD;
  border: 1px solid rgba(157, 78, 221, 0.4);
  border-radius: 4px;
  white-space: nowrap;
}

@media (max-width: 1023px) {
  .site-header__inner {
    flex-wrap: wrap;
  }

  .site-header__brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .site-header__toggle {
    display: flex;
  }

  .site-header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #09050E;
    border-bottom: 1px solid rgba(157, 78, 221, 0.2);
    padding: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    z-index: 1001;
  }

  .site-header__nav.is-open {
    display: flex;
  }

  .site-header__nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .site-header__nav-link {
    display: block;
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
  }

  .site-header__actions {
    margin-left: auto;
  }

  .site-header__cta {
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 767px) {
  .site-header__inner {
    padding: 0.5rem 0.75rem;
    min-height: 56px;
  }

  .site-header__logo {
    width: 32px;
    height: 32px;
  }

  .site-header__brand-text {
    display: none;
  }

  .site-header__cta {
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem;
  }

  .site-header__age-badge {
    min-width: 28px;
    height: 28px;
    font-size: 0.7rem;
    padding: 0 0.375rem;
  }

  .site-header__nav {
    max-height: calc(100vh - 56px);
  }
}
