.site-header {
  position: relative;
  z-index: 1000;
  background-color: var(--surface-frosted);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 72px;
  padding-block: var(--space-3);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
  min-width: 0;
}

.site-header__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.site-header__brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  white-space: nowrap;
}

.site-header__nav {
  display: flex;
  align-items: center;
}

.site-header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header__nav-list li {
  margin: 0;
  padding: 0;
}

.site-header__nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-base), color var(--transition-base);
  white-space: nowrap;
}

.site-header__nav-list a:hover {
  background-color: rgba(255, 255, 255, 0.4);
  color: var(--accent-warm);
}

.site-header__nav-list a:focus-visible {
  outline: 2px solid var(--accent-warm);
  outline-offset: 2px;
}

.site-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-base);
  flex-shrink: 0;
}

.site-header__toggle:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.site-header__toggle:focus-visible {
  outline: 2px solid var(--accent-warm);
  outline-offset: 2px;
}

.site-header__toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-line:nth-child(2) {
  opacity: 0;
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

  .site-header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-lifted);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), padding var(--transition-base);
    z-index: 999;
  }

  .site-header__nav[data-open="true"] {
    max-height: 80vh;
    overflow-y: auto;
    padding-block: var(--space-3);
  }

  .site-header__nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    padding-inline: var(--space-4);
  }

  .site-header__nav-list a {
    width: 100%;
    justify-content: flex-start;
    padding: var(--space-3);
  }
}

@media (max-width: 767px) {
  .site-header__inner {
    min-height: 64px;
    padding-block: var(--space-2);
  }

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

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