/* =========================================================================
   Токены: цвет, шрифты, размеры.
   Светлая тема — «мастерская днём»: алюминиевая перфопанель, тёмный корпус ПК,
   бирюзовая подсветка. Тёмная — та же мастерская ночью.
   ========================================================================= */

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("/fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("/fonts/unbounded-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("/fonts/unbounded-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/onest-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/onest-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/onest-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  /* Поверхность и нейтральные слои */
  --bg: #f8fafc;
  --bg-dot: #e2e8f0;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --surface-3: #e2e8f0;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;

  /* Текст */
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;

  /* Действие и акценты */
  --brand: #0284c7;
  --brand-strong: #0369a1;
  --brand-ink: #ffffff;
  --brand-soft: #f0f9ff;
  --rgb: #0ea5e9;
  --viz-1: #0284c7;

  /* Состояния */
  --ok: #059669;
  --ok-fill: #10b981;
  --ok-soft: #ecfdf5;
  --warn: #d97706;
  --warn-fill: #f59e0b;
  --warn-soft: #fffbeb;
  --bad: #e11d48;
  --bad-fill: #f43f5e;
  --bad-soft: #fff1f2;

  /* Сборка / корпус */
  --case-body: #1e293b;
  --case-edge: #334155;
  --case-inner: #0f172a;
  --case-ink: #f8fafc;
  --case-ink-2: #94a3b8;
  --slot-bg: rgba(255, 255, 255, 0.05);
  --slot-line: rgba(255, 255, 255, 0.12);

  /* Кот-консультант */
  --cat-fur: #8d97a5;
  --cat-stripe: #5a6575;
  --cat-light: #eef1f5;
  --cat-ear: #f2a6b7;
  --cat-nose: #e2899b;
  --cat-gear: #ff8a3d;
  --cat-eye: #1b2330;

  /* Шрифты */
  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-text: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Типографическая шкала */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 2rem;
  --fs-4xl: 2.5rem;
  --fs-5xl: 3rem;

  /* Единая шкала скруглений */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* Системные алиасы */
  --r-case: var(--r-lg);
  --r-panel: var(--r-lg);
  --r-card: var(--r-md);
  --r-control: var(--r-sm);

  /* Сетка и отступы */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;

  --gap: 1rem;
  --page: 1240px;
  --header-h: 64px;

  --shadow-case: 0 12px 32px -12px rgba(15, 23, 42, 0.12);
  --shadow-pop: 0 16px 36px -12px rgba(15, 23, 42, 0.18);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #090d14;
    --bg-dot: #151d28;
    --surface: #101622;
    --surface-2: #161e2e;
    --surface-3: #1e283c;
    --line: #222d40;
    --line-strong: #334155;
    --ink: #f1f5f9;
    --ink-2: #94a3b8;
    --ink-3: #64748b;
    --brand: #38bdf8;
    --brand-strong: #0ea5e9;
    --brand-ink: #090d14;
    --brand-soft: rgba(56, 189, 248, 0.12);
    --ok: #34d399;
    --ok-fill: #10b981;
    --ok-soft: #064e3b;
    --warn: #fbbf24;
    --warn-fill: #f59e0b;
    --warn-soft: #451a03;
    --bad: #fb7185;
    --bad-fill: #f43f5e;
    --bad-soft: #4c0519;
    --case-body: #0b0f16;
    --case-edge: #1e283c;
    --case-inner: #070a10;
    --case-ink: #f1f5f9;
    --case-ink-2: #94a3b8;
    --slot-bg: rgba(255, 255, 255, 0.04);
    --slot-line: rgba(255, 255, 255, 0.1);
    --shadow-case: 0 16px 40px -16px rgba(0, 0, 0, 0.6);
    --shadow-pop: 0 20px 48px -16px rgba(0, 0, 0, 0.7);
    --viz-1: #38bdf8;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090d14;
  --bg-dot: #151d28;
  --surface: #101622;
  --surface-2: #161e2e;
  --surface-3: #1e283c;
  --line: #222d40;
  --line-strong: #334155;
  --ink: #f1f5f9;
  --ink-2: #94a3b8;
  --ink-3: #64748b;
  --brand: #38bdf8;
  --brand-strong: #0ea5e9;
  --brand-ink: #090d14;
  --brand-soft: rgba(56, 189, 248, 0.12);
  --ok: #34d399;
  --ok-fill: #10b981;
  --ok-soft: #064e3b;
  --warn: #fbbf24;
  --warn-fill: #f59e0b;
  --warn-soft: #451a03;
  --bad: #fb7185;
  --bad-fill: #f43f5e;
  --bad-soft: #4c0519;
  --case-body: #0b0f16;
  --case-edge: #1e283c;
  --case-inner: #070a10;
  --case-ink: #f1f5f9;
  --case-ink-2: #94a3b8;
  --slot-bg: rgba(255, 255, 255, 0.04);
  --slot-line: rgba(255, 255, 255, 0.1);
  --shadow-case: 0 16px 40px -16px rgba(0, 0, 0, 0.6);
  --shadow-pop: 0 20px 48px -16px rgba(0, 0, 0, 0.7);
  --viz-1: #38bdf8;
}

