@font-face { font-family: "Unbounded"; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/unbounded-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/unbounded-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, 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-weight: 100 900; font-display: swap; src: url(/assets/fonts/onest-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/onest-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  /* Unbounded широкий: заголовки на ступень мельче стандартной шкалы */
  --text-display-s: clamp(2rem, 3vw + 0.5rem, 3.25rem); --text-display: clamp(2.25rem, 3.4vw + 0.75rem, 4.25rem);
  --text-section: clamp(1.75rem, 2vw + 0.875rem, 2.875rem); --text-title: clamp(1.125rem, 0.6vw + 0.875rem, 1.375rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --color-error: oklch(52% 0.19 27); --color-success: oklch(50% 0.12 150);
  --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;

  /* Бренд Mirra: светлая тема — тёплая бумага, тёмная — синеватый графит веб-чата и кабинета (#12141a, apps/web/src/tokens.css, решение владельца 13.11);
     золото #e8a317 (на тёмном #f0b429) одно на сайт, веб-чат и Workspace */
  --color-paper: oklch(97.5% 0.008 85); --color-paper-2: oklch(94.5% 0.014 82); --color-paper-3: oklch(91% 0.02 80);
  --color-ink: oklch(21% 0.014 70); --color-ink-2: oklch(34% 0.014 70); --color-muted: oklch(50% 0.014 70);
  --color-rule: oklch(86% 0.014 80);
  --color-accent: #e8a317; --color-accent-ink: #1a1a19; --color-focus: oklch(62% 0.19 70);
  --color-field: oklch(84% 0.13 82); --color-field-2: oklch(76% 0.155 72); --color-field-ink: oklch(22% 0.03 70);
  --color-mark: oklch(46% 0.11 70);
  --shadow-shot: 0 1px 2px oklch(25% 0.03 70 / 0.08), 0 24px 48px -28px oklch(30% 0.06 70 / 0.45);

  --font-display: "Unbounded", "Onest", ui-sans-serif, sans-serif; --font-body: "Onest", ui-sans-serif, system-ui, sans-serif; --font-outlier: var(--font-body);
  --display-weight: 600; --body-strong: 600;
  --radius-card: 18px; --radius-shot: 14px; --radius-dialog: 30px; --radius-pill: 999px; --rule-hair: 1px; --shadow-card: none;
  --tracking-display: -0.02em;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-paper: #12141a; --color-paper-2: #1a1d25; --color-paper-3: #232731;
    --color-ink: #f5f2ec; --color-ink-2: #d6d3cc; --color-muted: #a9a69f;
    --color-rule: #2a2e38;
    --color-accent: #f0b429; --color-accent-ink: #1a1a19; --color-focus: #f0b429;
    --color-field: #1a1d25; --color-field-2: #232731; --color-field-ink: #f5f2ec;
    --color-mark: #f0b429;
    --shadow-shot: 0 1px 2px rgb(0 0 0 / 0.3), 0 24px 48px -28px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --color-paper: #12141a; --color-paper-2: #1a1d25; --color-paper-3: #232731;
    --color-ink: #f5f2ec; --color-ink-2: #d6d3cc; --color-muted: #a9a69f;
    --color-rule: #2a2e38;
    --color-accent: #f0b429; --color-accent-ink: #1a1a19; --color-focus: #f0b429;
    --color-field: #1a1d25; --color-field-2: #232731; --color-field-ink: #f5f2ec;
    --color-mark: #f0b429;
    --shadow-shot: 0 1px 2px rgb(0 0 0 / 0.3), 0 24px 48px -28px rgb(0 0 0 / 0.7);
  color-scheme: dark;
}

/* Финальная сцена с частицами: ночь, золото частиц, звёздочка и контур знака — одинаковые в обеих темах. */
:root { --color-night: #0e1015; --color-cream: #fff6dd; --color-spark: #f0b429; --color-ember: #9a7a32; }
