/* Шапка */
.header-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(160%) var(--blur);
  background: var(--bg-soft);
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: clamp(12px, 3vw, 16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 12px);
  padding: 8px 0;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.logo {
  width: clamp(32px, 8vw, 36px);
  height: clamp(32px, 8vw, 36px);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  box-shadow: 0 6px 18px var(--ring);
  display: grid;
  place-items: center;
  color: #0b0f17;
  font-weight: 800;
  font-size: clamp(12px, 3vw, 14px);
  flex-shrink: 0;
}

.brand-title {
  font-weight: 800;
  letter-spacing: .2px;
  font-size: clamp(16px, 4vw, 18px);
  white-space: nowrap;
}

/* Навигация */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--card);
  border-radius: 999px;
  padding: 4px;
  margin: 0 auto;
}

.nav a {
  padding: clamp(6px, 1.5vw, 8px) clamp(10px, 2.5vw, 12px);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: clamp(12px, 3vw, 14px);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav a.active,
.nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,.08);
}

.actions {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.5vw, 10px);
  flex-shrink: 0;
}

/* Адаптивность */
@media (min-width: 768px) {
  .btn-h span {
    display: inline;
  }
  
  .nav {
    margin: 0;
  }
}

@media (max-width: 767px) {
  .nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .brand-title {
    font-size: 16px;
  }
  
  .actions {
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .header {
    height: 56px;
  }
  
  .brand-title {
    display: none;
  }
  
  .logo {
    width: 36px;
    height: 36px;
  }
  
  .btn-h {
    padding: 0 10px;
  }
  
  .avatar {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }
}