/* ═══════════════════════════════════════════════════════════════
   OLYMP Design Tokens — ADR-0017 (FROZEN)
   Единственный источник истины для всех UI-слоёв.
   ═══════════════════════════════════════════════════════════════ */

/* ── Fonts ── */

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* ── Typography ── */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --text-xs:   12px;
    --text-sm:   14px;
    --text-base: 16px;
    --text-lg:   18px;
    --text-xl:   24px;
    --text-2xl:  32px;
    --text-3xl:  48px;
    --text-4xl:  64px;

    --weight-regular:  400;
    --weight-medium:   500;
    --weight-semibold: 600;
    --weight-bold:     700;

    --lh-body:   1.5;
    --lh-heading: 1.2;

    /* ── Color: Primary (OLYMP Brand Blue) ── */
    --color-primary:         #0077C8;
    --color-primary-hover:   #005FA0;
    --color-primary-pressed: #004B82;

    /* ── Color: Secondary (Mountain Turquoise) ── */
    --color-secondary:      #2BA8A0;
    --color-secondary-soft: #E6F6F5;

    /* ── Color: Accent (Sun Gold) ── */
    --color-accent:       #F5C842;
    --color-accent-hover: #EBB512;

    /* ── Color: Surfaces (Clinical Palette) ── */
    --color-bg:        #FFFFFF;
    --color-surface:   #F8FAFC;
    --color-surface-2: #F1F5F9;
    --color-border:    #E2E8F0;

    /* ── Color: Text ── */
    --color-text:        #0F172A;
    --color-text-muted:  #475569;
    --color-text-subtle: #94A3B8;

    /* ── Color: Semantic ── */
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error:   #EF4444;
    --color-info:    #3B82F6;

    /* ── Spacing (4px grid) ── */
    --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;

    /* ── Border Radius ── */
    --radius-sm:   6px;
    --radius-md:   10px;
    --radius-lg:  14px;
    --radius-xl:  20px;
    --radius-pill: 999px;

    /* ── Shadows ── */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-premium: 0 10px 25px -5px rgba(0, 119, 200, 0.1), 0 8px 10px -6px rgba(0, 119, 200, 0.1);

    /* ── Transitions ── */
    --transition-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow:   400ms cubic-bezier(0.4, 0, 0.2, 1);
}
