/* Дизайн-токены в логике «Стандарта цифрового государства России»:
   чёрный и белый, серые уровни, один синий интерактивный цвет.
   Цвет — только функция: заголовки, текст, подсказки, границы, действия. */
@layer reset, tokens, base, components, pages, utilities;

@layer tokens {
  :root {
    color-scheme: light;

    --black: #000000;
    --ink: #333333;
    --muted: #767676;
    --line: #d9d9d9;
    --line-strong: #a6a6a6;
    --surface: #f2f2f2;
    --surface-deep: #e5e5e5;
    --white: #ffffff;

    --blue: #0028ee;
    --blue-hover: #001dad;
    --blue-active: #001787;
    --blue-soft: #f2f4ff;
    --blue-ring: rgba(0, 40, 238, 0.4);

    --red: #d9141a;
    --red-soft: #f9e2e3;
    --orange: #ff9500;
    --orange-soft: #fff3e0;

    --font-sans: "PT Sans", "Helvetica Neue", Arial, sans-serif;

    --fs-h1: clamp(2.25rem, 1.3rem + 2.8vw, 3.5rem);
    --fs-h2: clamp(1.875rem, 1.5rem + 1.3vw, 2.5rem);
    --fs-h3: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
    --fs-h4: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
    --fs-lead: clamp(1.25rem, 1.2rem + 0.3vw, 1.375rem);
    --fs-body: 1.125rem;
    --fs-small: 1rem;
    --fs-tiny: 0.875rem;

    --lh-h1: 1.25;
    --lh-h2: 1.2;
    --lh-h3: 1.25;
    --lh-h4: 1.33;
    --lh-lead: 1.5;
    --lh-body: 1.5556;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;

    --container: 1040px;
    --grid-gap: 32px;
    --gutter: clamp(20px, 4vw, 48px);
    --measure: 680px;
    --section: clamp(56px, 7vw, 96px);

    --radius: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    --bg: #ffffff;
    --bg-alt: linear-gradient(180deg, #f7f9fd 0%, #eef2f8 100%);
    --hero-bg: linear-gradient(165deg, #0d2140 0%, #0a1a33 55%, #071225 100%);
    --shadow-sm: 0 1px 2px rgb(16 24 40 / 0.06), 0 1px 3px rgb(16 24 40 / 0.08);
    --shadow-md: 0 6px 16px -4px rgb(16 24 40 / 0.12), 0 2px 6px -2px rgb(16 24 40 / 0.06);
    --shadow-blue: 0 6px 16px -6px rgb(0 40 238 / 0.5);

    --focus: var(--blue);
    --ring: 0 0 0 4px var(--blue-ring);

    --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
    --dur-fast: 150ms;
    --dur: 200ms;
  }
}
