.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top, 0);
}

.nav-backdrop {
  background: rgba(15, 23, 42, 0.4);
  border: 0;
  cursor: pointer;
  display: none;
  inset: 0;
  padding: 0;
  position: fixed;
  top: 0;
  z-index: 35;
}

.site-header.site-header--menu-open .nav-backdrop {
  display: block;
}

.header-inner {
  align-items: center;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: auto 1fr auto;
  min-height: 72px;
}

.logo {
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 800;
}

.nav { display: flex; gap: var(--space-1); }
.nav__link {
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  padding: 8px 12px;
}

.nav__link:hover,
.nav__link.is-active { background: #f3f4f6; }

.header-actions { display: flex; gap: var(--space-2); }

.icon-btn {
  align-items: center;
  background: #f9fafb;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.menu-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
  font-size: 1.4rem;
}

@media (max-width: 900px) {
  .header-inner {
    gap: var(--space-2);
    grid-template-columns: auto 1fr auto;
    min-height: 64px;
  }
  .logo { font-size: 1.15rem; }
  .menu-toggle { display: inline-flex; }
  .header-actions { gap: 8px; }

  .nav {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: none;
    flex-direction: column;
    gap: 4px;
    left: var(--space-2);
    max-height: min(70vh, 420px);
    overflow-y: auto;
    padding: var(--space-2);
    position: absolute;
    right: var(--space-2);
    top: calc(100% + 4px);
    z-index: 45;
    -webkit-overflow-scrolling: touch;
  }

  .nav.nav--open { display: flex; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }

  .nav__link {
    justify-content: flex-start;
    min-height: 44px;
    padding: 10px 14px;
    text-align: left;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .header-inner {
    min-height: 58px;
  }
  .logo {
    font-size: 1rem;
  }
  .icon-btn {
    height: 44px;
    min-height: 44px;
    min-width: 44px;
    width: 44px;
  }
  .menu-toggle {
    align-items: center;
    font-size: 1.2rem;
    justify-content: center;
    margin-right: 4px;
    min-height: 44px;
    min-width: 44px;
  }
}
