/* Единый хедер приложения: /app, /pricing, /settings */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.site-header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .site-header-inner {
    padding: 0 1.5rem;
  }
}
@media (min-width: 1024px) {
  .site-header-inner {
    padding: 0 2rem;
  }
}
.site-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.site-header-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
}
.site-header-logo:hover {
  opacity: 0.9;
}
.site-header-logo-icon {
  width: 2rem;
  height: 2rem;
  display: block;
  object-fit: contain;
}
.site-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  text-decoration: none;
}
.site-header-btn:hover {
  opacity: 0.95;
}
.site-header-nav-link,
.site-header-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.site-header-nav-link:hover,
.site-header-nav-btn:hover {
  color: var(--text);
}

.site-header-nav-btn {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  text-align: inherit;
  font-family: inherit;
  letter-spacing: normal;
  word-spacing: normal;
}

.header-auth-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header-auth-menu.hidden {
  display: none !important;
}
.header-auth-menu.flex {
  display: flex !important;
}
/* В авторизованной зоне показываем только меню авторизации, гостевой блок скрываем */
.header-auth-menu.flex ~ .header-guest-menu {
  display: none !important;
}
.header-guest-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.body-state-auth .header-guest-menu {
  display: none !important;
}
