/* Каравелла: токены дизайна (цвета, шрифты, размеры, тени). */

@font-face { font-family: 'Geologica'; src: url('../fonts/Geologica-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Onest'; src: url('../fonts/Onest-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root, [data-theme="light"] {
  --surface: #ffffff;
  --surface-tint: #eff7ff;
  --surface-card: #dcebf9;
  --surface-felt: #f7f2ea;
  --line: #bbd5ef;
  --ink: #0b2850;
  --ink-body: #3f5974;
  --ink-muted: #536882;
  --brand: #10418c;
  --accent: #1756b5;
  --on-accent: #ffffff;
  --kyzyl: #d2302c;
  --kun: #ffc928;
  --sea: #9cc3bd;
  --ink-on-light: #0b2850;
  --hull: #94621f;
  --focus-ring: var(--accent);
  --shadow-float: 0 8px 24px rgba(11, 40, 80, 0.10);
}
[data-theme="dark"] {
  --surface: #0b2147;
  --surface-tint: #112f5c;
  --surface-card: #17386b;
  --surface-felt: #1a2b45;
  --line: #2a4b7c;
  --ink: #ffffff;
  --ink-body: #c3d1e4;
  --ink-muted: #93a8c4;
  --brand: #8fb6ef;
  --accent: #5b93e6;
  --on-accent: #0b2147;
  --kyzyl: #ff6b62;
  --kun: #ffc928;
  --sea: #80a8a3;
  --ink-on-light: #0b2850;
  --hull: #c08a45;
  --focus-ring: var(--accent);
  --shadow-float: 0 8px 24px rgba(0, 0, 0, 0.40);
}
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --font-display: Geologica, "Noto Sans", Arial, sans-serif;
  --font-sans: Onest, "Noto Sans", Arial, system-ui, sans-serif;
}
.display { font-family: var(--font-display); font-size: 64px; line-height: 64px; font-weight: 700; letter-spacing: -0.03em; }
.h1 { font-family: var(--font-display); font-size: 44px; line-height: 48px; font-weight: 700; letter-spacing: -0.025em; }
.h2 { font-family: var(--font-display); font-size: 32px; line-height: 36px; font-weight: 600; letter-spacing: -0.02em; }
.h3 { font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.stat { font-family: var(--font-display); font-size: 56px; line-height: 56px; font-weight: 700; letter-spacing: -0.04em; }
.wordmark { font-family: var(--font-display); font-size: 18px; line-height: 20px; font-weight: 700; letter-spacing: 0.06em; }
.lead { font-family: var(--font-sans); font-size: 20px; line-height: 30px; font-weight: 400; }
.body { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 400; }
.small { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 400; }
.caption { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 500; }
.eyebrow { font-family: var(--font-sans); font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; }
.button { font-family: var(--font-sans); font-size: 15px; line-height: 20px; font-weight: 600; }

/* Тёмная тема по настройке системы (добавлено при сборке сайта) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --surface: #0b2147;
  --surface-tint: #112f5c;
  --surface-card: #17386b;
  --surface-felt: #1a2b45;
  --line: #2a4b7c;
  --ink: #ffffff;
  --ink-body: #c3d1e4;
  --ink-muted: #93a8c4;
  --brand: #8fb6ef;
  --accent: #5b93e6;
  --on-accent: #0b2147;
  --kyzyl: #ff6b62;
  --kun: #ffc928;
  --sea: #80a8a3;
  --ink-on-light: #0b2850;
  --hull: #c08a45;
  --focus-ring: var(--accent);
  --shadow-float: 0 8px 24px rgba(0, 0, 0, 0.40);
  }
}
