/* Montenegro Live — shared design tokens.
   Используется на:
   - montenegrolive.ru/{index,rates,faq,styleguide}.html (этот же origin)
   - admin.montenegrolive.ru/.../{main,styleguide} (cross-origin link)
   - renovation.montenegrolive.ru/{index,styleguide}.html (cross-origin link)
   - monteliv.github.io/kyiv-offer/ (cross-origin link)

   Single source of truth: этот файл. Изменения тут — distributed автоматически
   через GitHub Pages CDN (Cloudflare cache 1h, bump ?v= для немедленной инвалидации).

   Канон типошкалы — index/faq (mid). До 2026-05-27 rates.html держал
   увеличенную шкалу (h1-hero clamp 32-48px) — приведено к одному.

   Канон status-цветов — admin'овская палитра (--err #c1272d, --ok #1a7a3a,
   --warn #c58700, --neut #a16207). До 2026-05-27 renovation держал свои
   значения (--err #a52a2a, --warn #9a6800) — приведено к одному. */

:root {
  /* Surfaces */
  --bg: #fafafa;
  --surface: #ffffff;

  /* Text */
  --ink: #111418;
  --ink-2: #2c333a;
  --muted: #6b7280;
  --muted-2: #9ca3af;

  /* Lines */
  --line: #e7e7e5;
  --line-strong: #c7c7c5;

  /* Brand */
  --accent: #0c5e8e;
  --accent-soft: #eef4f9;

  /* Status (semantic, не цвет) */
  --ok: #1a7a3a;
  --neut: #a16207;
  --warn: #c58700;
  --err: #c1272d;

  /* Typography scale */
  --h1-hero: clamp(28px, 4vw, 42px);
  --h1-content: clamp(22px, 2.8vw, 32px);
  --h2-section: clamp(20px, 2.4vw, 26px);
  --h3-card: 16px;

  /* Layout */
  --page-head-padding: 64px 0 40px;
  --section-padding: 80px 0;

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1014;
    --surface: #161a20;
    --ink: #ececea;
    --ink-2: #c9ccd1;
    --muted: #8b919a;
    --muted-2: #6b7280;
    --line: #232830;
    --line-strong: #3a414b;
    --accent: #5fb1f5;
    --accent-soft: #16242f;
    --ok: #3fb950;
    --neut: #d29922;
    --warn: #e6c170;
    --err: #f85149;
  }
}
