/* ═══════════════════════════════════════════════════════════════
   Шапка сайта — финальные правила (грузятся последними).
   Ничего не переносится на вторую строку, элементы убирают по ступеням:
   ≥1360 всё · 1101–1359 компактно · ≤1100 бургер-меню.
   ═══════════════════════════════════════════════════════════════ */
.header-inner { gap: 16px; flex-wrap: nowrap; }
.header-inner > * { min-width: 0; }

.logo-box { flex: 0 0 auto; }
.logo-text-wrap { white-space: nowrap; }
.logo-text-sub { white-space: nowrap; }

.nav-links-wrap { flex: 1 1 auto; justify-content: center; gap: clamp(16px, 2.2vw, 34px); }
.nav-link { white-space: nowrap; letter-spacing: .12em; }

.header-right { flex: 0 0 auto; gap: 8px; }
.ip-chip, .profile-trigger-btn, .icon-circle, .theme-switch { flex: 0 0 auto; white-space: nowrap; }
.ip-chip-text b { white-space: nowrap; }

/* компактная шапка: убираем второстепенное */
@media (max-width: 1359px) {
  .logo-text-sub { display: none; }
  .icon-circle { display: none !important; }
  .ip-chip { height: 42px; padding: 0 14px; gap: 10px; }
  .ip-chip-text small { display: none; }
  .ip-chip-text b { font-size: 13px; }
  .nav-link { letter-spacing: .09em; font-size: 12.5px; }
}

/* до 1100px — меню в бургере (раньше было с 768, из-за чего шапку «мяло») */
@media (min-width: 769px) and (max-width: 1100px) {
  .nav-links-wrap { display: none !important; }
  .hdr-desktop-only { display: none !important; }
  .header-right { margin-left: auto; }
  .mobile-burger { display: inline-flex !important; }
  .mobile-drawer:not([hidden]) { display: flex !important; }
  .mobile-drawer-overlay:not([hidden]) { display: block !important; }
  .header-container { padding: 0 24px; }
  .header-inner { height: 64px; padding: 0 12px 0 16px; border-radius: 22px; }
}
@media (max-width: 768px) {
  .logo-text-wrap { min-width: 0; }
  .header-inner { flex-wrap: nowrap; }
}
