/* Единый хедер модулей. Эталон — /вилка. Цвета берутся из темы страницы (var(--bg-card) и т.д.),
   у страниц со своей палитрой подставляются их переменные (--surface, --text, --text-dim). */
.ias-hdr{display:block;box-sizing:border-box;height:auto;padding:0;margin:0;background:var(--bg-card,var(--surface,var(--card,#fff)));border-bottom:1px solid var(--border,#e2e8f0);position:relative;z-index:100;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.ias-hdr--sticky{position:sticky;top:0}
.ias-hdr__in{box-sizing:border-box;width:100%;margin:0 auto;padding:0 28px 0 16px;display:flex;align-items:center;gap:16px;height:80px}
.ias-hdr__brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;flex-shrink:0}
.ias-hdr__pill{background:linear-gradient(135deg,#0f766e,#0d9488);color:#fff;font-weight:800;font-size:15px;letter-spacing:.03em;padding:6px 14px;border-radius:8px;box-shadow:0 2px 8px rgba(15,118,110,.35);white-space:nowrap;line-height:1.3;font-family:inherit}
.ias-hdr__mid{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;gap:6px}
.ias-hdr__act{display:flex;align-items:center;gap:8px;white-space:nowrap;flex-shrink:0}
.ias-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;width:42px;height:42px;min-height:0;padding:0;border-radius:9999px;border:1px solid var(--border,#e2e8f0);background:var(--bg-card,var(--surface,var(--card,#fff)));color:var(--text-main,var(--text,#0f172a));cursor:pointer;text-decoration:none;font-family:inherit;font-size:14px;font-weight:600;line-height:1;transition:background .15s ease,box-shadow .15s ease,transform .05s ease}
.ias-btn:hover{box-shadow:0 2px 10px rgba(2,6,23,.10);transform:translateY(-1px)}
.ias-btn--txt{width:auto;padding:0 14px}
.ias-btn svg{width:16px;height:16px;flex-shrink:0}
.ias-btn i{font-size:16px;line-height:1}
.ias-userinfo{font-size:14px;color:var(--text-muted,var(--muted,var(--text-dim,#64748b)))}
.ias-logout{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:8px;background:#dc2626;color:#fff;font-size:14px;font-family:inherit;border:none;cursor:pointer;line-height:1.3}
.ias-logout:hover{background:#b91c1c}
.ias-logout svg{width:16px;height:16px}
@media (max-width:768px){
  .ias-hdr__in{height:56px;padding:0 10px;gap:8px}
  .ias-hdr__pill{font-size:13px;padding:5px 10px}
  .ias-logout span{display:none}
  .ias-logout{padding:6px 8px}
  .ias-userinfo,.ias-btn--txt .ias-lbl{display:none}
}

/* Планшетные правила отдельных страниц (скрытие логотипа, высота 56px) не должны менять эталонный хедер */
header.ias-hdr > div.ias-hdr__in{height:80px !important;padding:0 28px 0 16px !important;gap:16px !important;flex-wrap:nowrap !important;max-width:none !important;width:100% !important;box-sizing:border-box !important}
header.ias-hdr > div.ias-hdr__in > a.ias-hdr__brand{display:inline-flex !important}
header.ias-hdr{width:100% !important;max-width:100% !important}
@media (max-width:768px){
  header.ias-hdr > div.ias-hdr__in{height:56px !important;padding:0 10px !important;gap:8px !important}
}

.ias-btn.active,.ias-btn[aria-pressed="true"]{border-color:var(--accent,#0f766e);color:var(--accent,#0f766e);box-shadow:0 0 0 2px rgba(15,118,110,.22)}
@media (max-width:768px){
  .ias-hdr__act{gap:6px}
  .ias-btn{width:38px;height:38px}
  .ias-btn--txt{width:auto}
}
