/* ========== Госаналитика — фирменные стили ========== */
:root {
  --navy: #093551;
  --navy-soft: #0e4870;
  --accent: #3B82F6;
  --accent-dark: #2563EB;
  --surface: #FFFFFF;
  --surface-alt: #F8FAFC;
  --surface-hover: #F1F5F9;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --text-primary: #0F1724;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --success: #047857;
  --danger: #DC2626;
  --warning: #B45309;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 36, 0.04);
  --shadow: 0 2px 8px rgba(15, 23, 36, 0.06);
  --shadow-lg: 0 8px 24px rgba(15, 23, 36, 0.08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { margin: 0 0 16px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.025em; }
h2 { font-size: clamp(24px, 3vw, 36px); }
h3 { font-size: 20px; }

.ga-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ========== Header ========== */
.ga-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(180%) blur(8px);
}
.ga-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.ga-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--navy) !important;
  font-weight: 600;
}
.ga-logo:hover { color: var(--navy-soft) !important; }
.ga-logo__monogram {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--navy);
  color: white;
  border-radius: 8px;
  font-size: 13px; font-weight: 700;
  position: relative;
}
.ga-logo__monogram::after {
  content: ''; position: absolute; top: 4px; right: 4px;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.ga-logo__wordmark { font-size: 20px; }
.ga-logo__wordmark em { font-style: normal; border-bottom: 2px solid var(--accent); padding-bottom: 1px; }
.ga-nav { display: flex; gap: 28px; align-items: center; }
.ga-nav a { color: var(--text-secondary); font-weight: 500; font-size: 15px; }
.ga-nav a:hover { color: var(--navy); }

/* ========== Hero / Landing ========== */
.ga-hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
}
.ga-hero__eyebrow {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-dark);
  border-radius: 100px;
  font-size: 13px; font-weight: 500;
  margin-bottom: 20px;
}
.ga-hero h1 { color: var(--navy); margin-bottom: 20px; max-width: 900px; }
.ga-hero__lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 700px; margin-bottom: 40px;
}
.ga-cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

.ga-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 15px; font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.ga-btn--primary { background: var(--navy); color: white !important; }
.ga-btn--primary:hover { background: var(--navy-soft); color: white !important; }
.ga-btn--accent { background: var(--accent); color: white !important; }
.ga-btn--accent:hover { background: var(--accent-dark); color: white !important; }
.ga-btn--ghost { background: var(--surface); color: var(--navy) !important; border-color: var(--border-strong); }
.ga-btn--ghost:hover { background: var(--surface-alt); border-color: var(--navy); }
.ga-btn--sm { padding: 6px 14px; font-size: 13px; }

/* ========== Stats grid (landing) ========== */
.ga-stats {
  padding: 60px 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.ga-stat {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.ga-stat__value {
  font-size: 36px; font-weight: 700; color: var(--navy);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.ga-stat__label { color: var(--text-secondary); font-size: 14px; }

/* ========== Cards row (что внутри) ========== */
.ga-section { padding: 60px 0; }
.ga-section--alt { background: var(--surface-alt); }
.ga-section__title { color: var(--navy); margin-bottom: 12px; }
.ga-section__lead { color: var(--text-secondary); font-size: 17px; margin-bottom: 40px; max-width: 700px; }

.ga-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.ga-card {
  display: block;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary) !important;
  transition: all 0.15s ease;
}
.ga-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.ga-card__icon {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-dark);
  border-radius: 8px;
  font-size: 20px;
  margin-bottom: 16px;
}
.ga-card__title { font-size: 18px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.ga-card__desc { color: var(--text-secondary); font-size: 14px; line-height: 1.5; }

/* ========== Search page layout ========== */
.ga-search-page { padding: 32px 0 80px; }
.ga-search-page h1 { font-size: clamp(28px, 4vw, 40px); color: var(--navy); margin-bottom: 8px; }
.ga-search-page__lead { color: var(--text-secondary); font-size: 16px; margin-bottom: 32px; }

.ga-search-layout {
  display: grid; grid-template-columns: 320px 1fr; gap: 32px;
}
@media (max-width: 1024px) {
  .ga-search-layout { grid-template-columns: 1fr; }
}

/* ========== Filters panel ========== */
.ga-filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  position: sticky; top: 88px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
@media (max-width: 1024px) { .ga-filters { position: static; max-height: none; } }
.ga-filters__title {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.ga-field { margin-bottom: 14px; }
.ga-field label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--text-secondary); margin-bottom: 5px;
}
.ga-field input, .ga-field select {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14px;
  background: var(--surface); color: var(--text-primary);
  transition: border-color 0.1s ease;
}
.ga-field input:focus, .ga-field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.ga-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ga-filters__actions { display: flex; gap: 8px; margin-top: 20px; }
.ga-filters__actions .ga-btn { flex: 1; justify-content: center; }

/* ========== Results area ========== */
.ga-results { min-height: 400px; }
.ga-results__header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.ga-results__count { font-size: 14px; color: var(--text-secondary); }
.ga-results__count strong { color: var(--navy); font-variant-numeric: tabular-nums; }

.ga-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ga-table th {
  text-align: left; font-weight: 500; font-size: 12px;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em;
  padding: 10px 12px; border-bottom: 1px solid var(--border);
}
.ga-table td {
  padding: 14px 12px; border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.ga-table tbody tr { transition: background 0.1s ease; }
.ga-table tbody tr:hover { background: var(--surface-alt); }
.ga-table a { color: var(--navy); font-weight: 500; }
.ga-table a:hover { color: var(--accent-dark); }
.ga-cell-name { max-width: 360px; }
.ga-cell-org { max-width: 220px; color: var(--text-secondary); font-size: 13px; }
.ga-cell-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ga-cell-date { white-space: nowrap; color: var(--text-secondary); font-variant-numeric: tabular-nums; font-size: 13px; }

.ga-badge {
  display: inline-block; padding: 2px 8px;
  border-radius: 100px; font-size: 12px; font-weight: 500;
  white-space: nowrap;
}
.ga-badge--ok { background: rgba(4, 120, 87, 0.1); color: var(--success); }
.ga-badge--warn { background: rgba(180, 83, 9, 0.1); color: var(--warning); }
.ga-badge--err { background: rgba(220, 38, 38, 0.1); color: var(--danger); }
.ga-badge--neutral { background: var(--surface-hover); color: var(--text-secondary); }
.ga-badge--decl { background: rgba(59, 130, 246, 0.1); color: var(--accent-dark); }
.ga-badge--cert { background: rgba(9, 53, 81, 0.1); color: var(--navy); }

/* ========== Pagination ========== */
.ga-pagination {
  display: flex; gap: 6px; align-items: center; justify-content: center;
  margin-top: 28px;
}
.ga-pagination a, .ga-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary) !important;
  background: var(--surface);
}
.ga-pagination a:hover { border-color: var(--accent); color: var(--accent-dark) !important; }
.ga-pagination .current {
  background: var(--navy); color: white !important; border-color: var(--navy);
  font-weight: 500;
}
.ga-pagination .disabled { opacity: 0.4; pointer-events: none; }

/* ========== Empty / Error ========== */
.ga-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}
.ga-empty__icon { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }
.ga-empty__title { color: var(--text-secondary); font-size: 18px; margin-bottom: 8px; }
.ga-empty__desc { font-size: 14px; }

.ga-error {
  padding: 16px 20px;
  background: rgba(220, 38, 38, 0.05);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: var(--radius);
  color: var(--danger);
  font-size: 14px;
}

/* ========== HTMX loading state ========== */
.htmx-request { opacity: 0.6; transition: opacity 0.2s ease; }
.htmx-indicator {
  display: none; padding: 14px 20px; text-align: center; color: var(--text-muted); font-size: 14px;
}
.htmx-request .htmx-indicator { display: block; }
.htmx-request.htmx-indicator { display: block; }

/* ========== Card detail page ========== */
.ga-card-detail { padding: 32px 0 80px; max-width: 920px; margin: 0 auto; }
.ga-card-detail h1 { color: var(--navy); margin-bottom: 8px; }
.ga-card-back { color: var(--text-secondary); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; }
.ga-card-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.ga-card-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 16px; }
.ga-card-section h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 600; margin-bottom: 16px; }
.ga-kv { display: grid; grid-template-columns: 200px 1fr; gap: 12px 24px; font-size: 14px; }
@media (max-width: 640px) { .ga-kv { grid-template-columns: 1fr; gap: 4px 0; } .ga-kv dt { margin-top: 12px; } }
.ga-kv dt { color: var(--text-muted); }
.ga-kv dd { margin: 0; color: var(--text-primary); }

/* ========== Footer ========== */
.ga-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 32px 0;
  font-size: 14px;
  margin-top: 60px;
}
.ga-footer__inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.ga-footer a { color: rgba(255, 255, 255, 0.9) !important; }
.ga-footer a:hover { color: white !important; }
.ga-footer__links { display: flex; gap: 12px; align-items: center; }
.ga-sep { color: rgba(255, 255, 255, 0.3); }

@media (max-width: 640px) {
  .ga-nav { gap: 16px; }
  .ga-nav a { font-size: 14px; }
  .ga-table { font-size: 13px; }
  .ga-table td, .ga-table th { padding: 10px 8px; }
  .ga-cell-name { max-width: 200px; }
}

/* ============================================================
   ПОЛИРОВКА 2026-05-14 — иконки, skeleton, hero-graphic,
   улучшенные empty/badges, mobile drawer для фильтров.
   ============================================================ */

/* ----- Иконки в labels фильтров ----- */
.ga-icon {
  display: inline-block;
  width: 14px; height: 14px;
  vertical-align: -2px;
  margin-right: 6px;
  stroke-width: 1.8;
  color: var(--text-muted);
}
.ga-field label { display: flex; align-items: center; }
.ga-field label .ga-icon { margin-bottom: 0; }

/* ----- Шапка search-страницы с graphic справа ----- */
.ga-search-page__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 32px; margin-bottom: 24px;
}
.ga-search-page__head > div { min-width: 0; flex: 1; }
.ga-search-page__head h1 { margin-bottom: 8px; }
.ga-search-page__head .ga-search-page__lead { margin-bottom: 0; max-width: 640px; }
.ga-search-page__graphic {
  flex-shrink: 0;
  width: 220px; height: 130px;
  opacity: 0.9;
}
@media (max-width: 900px) { .ga-search-page__graphic { display: none; } }

/* ----- Метаданные «свежесть данных» ----- */
.ga-search-page__meta {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-muted);
  margin-top: 12px;
}
.ga-search-page__meta-item { display: inline-flex; align-items: center; gap: 6px; }
.ga-search-page__meta-item svg { width: 14px; height: 14px; opacity: 0.75; }
.ga-search-page__meta strong {
  color: var(--text-secondary); font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ----- Бейджи с цветным "глазком" ----- */
.ga-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; }
.ga-badge__dot {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; flex-shrink: 0;
}
.ga-badge--ok .ga-badge__dot { background: var(--success); }
.ga-badge--warn .ga-badge__dot { background: var(--warning); }
.ga-badge--err .ga-badge__dot { background: var(--danger); }
.ga-badge--neutral .ga-badge__dot { background: var(--text-muted); }
.ga-badge--decl .ga-badge__dot { background: var(--accent-dark); }
.ga-badge--cert .ga-badge__dot { background: var(--navy); }

/* ----- Skeleton-loader для htmx ----- */
.ga-skeleton {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.ga-skeleton-row {
  height: 56px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(
    90deg,
    var(--surface) 0%,
    var(--surface-hover) 40%,
    var(--surface-hover) 60%,
    var(--surface) 100%
  );
  background-size: 200% 100%;
  animation: ga-shimmer 1.4s ease-in-out infinite;
}
.ga-skeleton-row:last-child { border-bottom: 0; }
@keyframes ga-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Когда htmx в процессе запроса — затемнение и явный курсор ожидания */
.htmx-request .ga-results { opacity: 0.55; pointer-events: none; }
.htmx-request .ga-results { transition: opacity 0.25s ease; }

/* ----- Empty state с иллюстрацией ----- */
.ga-empty {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 64px 24px;
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
}
.ga-empty__svg {
  width: 110px; height: 110px; opacity: 0.55;
  margin-bottom: 18px; color: var(--text-muted);
}
.ga-empty__title {
  color: var(--text-primary); font-size: 18px; font-weight: 600;
  margin-bottom: 8px;
}
.ga-empty__desc { font-size: 14px; color: var(--text-secondary); max-width: 360px; }
.ga-empty__hint { margin-top: 12px; font-size: 13px; color: var(--text-muted); }
.ga-empty__hint code {
  background: var(--surface); padding: 2px 6px; border-radius: 4px;
  font-family: inherit; font-size: 12px; color: var(--navy);
  border: 1px solid var(--border);
}

/* ----- Mobile-collapsible фильтры ----- */
.ga-filters-toggle {
  display: none;
  align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius); color: var(--navy);
  font-weight: 500; font-size: 14px;
  cursor: pointer; margin-bottom: 16px; width: 100%;
  justify-content: center;
}
.ga-filters-toggle svg { width: 16px; height: 16px; }
.ga-filters-toggle:hover { background: var(--surface-alt); border-color: var(--navy); }
.ga-filters-toggle__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--accent); color: white;
  border-radius: 9px; font-size: 11px; font-weight: 600;
  margin-left: 4px;
}
@media (max-width: 1024px) {
  .ga-filters-toggle { display: inline-flex; }
  .ga-filters { display: none; }
  .ga-filters.is-open { display: block; }
}

/* ----- Кнопка «назад» в карточке детали ----- */
.ga-back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--text-secondary);
  margin-bottom: 16px;
}
.ga-back-link:hover { color: var(--navy); }
.ga-back-link svg { width: 16px; height: 16px; stroke-width: 1.8; }

/* ----- Header/footer мелкие шлифовки ----- */
.ga-footer { margin-top: 80px; }
.ga-footer__inner { gap: 20px; }
.ga-footer__brand strong { color: white; }
.ga-footer__note {
  font-size: 12px; color: rgba(255, 255, 255, 0.5);
  margin-top: 6px;
}

/* ----- SEO-блок под формой поиска ----- */
.ga-seo {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.ga-seo h2 {
  font-size: 24px; color: var(--navy); margin-bottom: 16px;
}
.ga-seo h3 {
  font-size: 17px; color: var(--navy);
  margin-top: 28px; margin-bottom: 12px;
}
.ga-seo p {
  color: var(--text-secondary); font-size: 15px; line-height: 1.6;
  margin: 0 0 14px; max-width: 820px;
}
.ga-seo ul {
  color: var(--text-secondary); font-size: 15px; line-height: 1.6;
  max-width: 820px; padding-left: 22px; margin: 0 0 14px;
}
.ga-seo li { margin-bottom: 6px; }
.ga-seo__faq {
  max-width: 820px;
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 10px; background: var(--surface);
}
.ga-seo__faq summary {
  padding: 14px 18px; cursor: pointer;
  font-weight: 500; color: var(--navy); font-size: 15px;
  list-style: none; position: relative;
}
.ga-seo__faq summary::-webkit-details-marker { display: none; }
.ga-seo__faq summary::after {
  content: '+'; position: absolute; right: 18px; top: 12px;
  font-size: 20px; color: var(--text-muted); font-weight: 400;
}
.ga-seo__faq[open] summary::after { content: '−'; }
.ga-seo__faq[open] summary { border-bottom: 1px solid var(--border); }
.ga-seo__faq-body {
  padding: 14px 18px; color: var(--text-secondary);
  font-size: 14px; line-height: 1.6;
}
.ga-seo__faq-body p:last-child { margin-bottom: 0; }

/* ----- Финансовый блок на карточках ----- */
.ga-finance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.ga-finance__item {
  padding: 14px 16px;
  background: var(--surface-alt);
  border-radius: var(--radius);
}
.ga-finance__label {
  font-size: 12px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.03em;
  margin-bottom: 6px;
}
.ga-finance__value {
  font-size: 19px; font-weight: 600; color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.ga-finance__value--neg { color: var(--danger); }
.ga-finance__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500;
}

/* ----- Маркеры оценки коэффициентов (норма / средне / риск) ----- */
.ga-grade {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 100px;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.03em;
  vertical-align: 1px;
}
.ga-grade--good { background: rgba(4, 120, 87, 0.12);  color: var(--success); }
.ga-grade--mid  { background: rgba(180, 83, 9, 0.12);  color: var(--warning); }
.ga-grade--bad  { background: rgba(220, 38, 38, 0.12); color: var(--danger); }

/* ----- Светофор финансовых коэффициентов ----- */
.ga-metric { display: inline-flex; align-items: center; gap: 9px; }
.ga-metric__dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.ga-metric__num { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 15px; }
.ga-metric__tag {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 2px 8px; border-radius: 100px;
}
.ga-metric--good .ga-metric__dot { background: var(--success); }
.ga-metric--good .ga-metric__num { color: var(--success); }
.ga-metric--good .ga-metric__tag { background: rgba(4,120,87,0.12); color: var(--success); }
.ga-metric--mid  .ga-metric__dot { background: var(--warning); }
.ga-metric--mid  .ga-metric__num { color: var(--warning); }
.ga-metric--mid  .ga-metric__tag { background: rgba(180,83,9,0.12); color: var(--warning); }
.ga-metric--bad  .ga-metric__dot { background: var(--danger); }
.ga-metric--bad  .ga-metric__num { color: var(--danger); }
.ga-metric--bad  .ga-metric__tag { background: rgba(220,38,38,0.12); color: var(--danger); }
.ga-metric--none .ga-metric__dot { background: var(--border-strong); }
.ga-metric--none .ga-metric__num { color: var(--text-primary); }

/* ----- Кружок-подсказка «?» с тултипом ----- */
.ga-hint {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface-hover); color: var(--text-muted);
  font-size: 11px; font-weight: 700; cursor: help;
  position: relative; margin-left: 5px; vertical-align: 1px;
  user-select: none;
}
.ga-hint:hover { background: var(--accent); color: #fff; }
.ga-hint__tip {
  position: absolute; bottom: calc(100% + 9px); left: 0;
  width: 270px; padding: 11px 13px;
  background: var(--navy); color: #fff;
  border-radius: var(--radius);
  font-size: 12px; font-weight: 400; line-height: 1.5;
  text-transform: none; letter-spacing: 0; text-align: left;
  opacity: 0; visibility: hidden; transition: opacity 0.15s ease;
  z-index: 50; box-shadow: var(--shadow-lg); pointer-events: none;
}
.ga-hint__tip::after {
  content: ''; position: absolute; top: 100%; left: 12px;
  border: 6px solid transparent; border-top-color: var(--navy);
}
.ga-hint:hover .ga-hint__tip { opacity: 1; visibility: visible; }
@media (max-width: 640px) {
  .ga-hint__tip { width: 200px; left: auto; right: 0; }
  .ga-hint__tip::after { left: auto; right: 12px; }
}
