/* Design tokens TRS Portal. Единственный источник цветов, отступов, типографики. */
:root {
    /* Палитра: синий — инженерный бренд, янтарный — акцент (взят с trastian.com). */
    --color-primary: #0d4e8a;
    --color-primary-dark: #0a3d6d;
    --color-primary-darker: #072f54;
    --color-primary-light: #d0e0f0;
    --color-primary-soft: #eaf1f8;
    --color-accent: #912604;
    --color-amber: #e29a10;
    --color-amber-light: #fef181;
    --color-orange: #fe9951;

    --color-ink: #14171a;
    --color-ink-soft: #343a40;
    --color-muted: #5c6672;
    --color-border: #dde3ea;
    --color-border-strong: #b9c3cf;
    --color-bg: #ffffff;
    --color-bg-soft: #f5f7fa;
    --color-bg-muted: #eef2f6;
    --color-bg-dark: #14171a;
    --color-bg-dark-soft: #1c2126;

    --color-success: #1a7f4b;
    --color-success-bg: #e7f6ee;
    --color-warning: #8a6100;
    --color-warning-bg: #fdf3d8;
    --color-error: #a3231b;
    --color-error-bg: #fdecea;
    --color-info: #0d4e8a;
    --color-info-bg: #eaf1f8;

    --font-sans: "Inter", "Roboto", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Ubuntu", "Montserrat", "PT Sans Caption", "Segoe UI", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, "Courier New", monospace;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-md: 1.125rem;
    --text-lg: 1.375rem;
    --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
    --text-2xl: clamp(1.85rem, 1.4rem + 1.8vw, 2.6rem);
    --text-3xl: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem);
    --leading-tight: 1.15;
    --leading-normal: 1.6;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;
    --space-9: 6rem;

    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(20, 23, 26, 0.06), 0 1px 3px rgba(20, 23, 26, 0.08);
    --shadow-md: 0 4px 12px rgba(20, 23, 26, 0.08), 0 1px 3px rgba(20, 23, 26, 0.06);
    --shadow-lg: 0 18px 48px rgba(20, 23, 26, 0.14);

    --container: 1200px;
    --container-narrow: 820px;
    --header-height: 76px;
    --focus-ring: 0 0 0 3px rgba(13, 78, 138, 0.3);

    --transition-fast: 120ms ease;
    --transition-base: 200ms ease;
}
