/* =========================================================================
   PARKOMAK — Design tokens  (v2 · "Sky" theme)
   White + light/sky blue base, with violet / coral / sunshine / mint pops.
   Every value here should become a Figma variable / style.
   Contrast-checked: text tokens ≥ 4.5:1 on white.
   ========================================================================= */

:root {
  /* ---------- Sky (brand) ---------- */
  --sky-25:  #F7FCFF;
  --sky-50:  #F0F9FF;
  --sky-100: #E0F2FE;
  --sky-200: #BAE6FD;
  --sky-300: #7DD3FC;
  --sky-400: #38BDF8;
  --sky-500: #0EA5E9;   /* fills, illustrations — not for text on white */
  --sky-600: #0B7BC4;   /* button start — white text 4.5:1 */
  --sky-700: #0369A1;   /* links / eyebrows on white (5.9:1) */
  --sky-800: #075985;
  --sky-900: #0C4A6E;

  /* ---------- Indigo (gradient partner) ---------- */
  --indigo-100: #E0E7FF;
  --indigo-400: #818CF8;
  --indigo-500: #6366F1;
  --indigo-600: #4F46E5;

  /* ---------- Pops (accents — fills; use *-ink for text) ---------- */
  --violet-50:  #F4F1FF;
  --violet-100: #E9E3FF;
  --violet-400: #9C85FF;
  --violet-500: #7C5CFF;
  --violet-ink: #6D28D9;

  --coral-50:  #FFF3F1;
  --coral-100: #FFE1DC;
  --coral-400: #FF8A7A;
  --coral-500: #FF6B5B;
  --coral-ink: #C2410C;

  --sun-50:  #FFF8E6;
  --sun-100: #FFEDBF;
  --sun-400: #FFC34D;
  --sun-500: #FFB020;
  --sun-ink: #B45309;

  --mint-50:  #ECFDF5;
  --mint-100: #D1FAE5;
  --mint-400: #34D399;
  --mint-500: #10B981;
  --mint-ink: #047857;

  /* ---------- Ink (navy neutrals) ---------- */
  --ink-950: #07142A;
  --ink-900: #0B1B33;   /* headings / body text (17:1) */
  --ink-800: #132A4A;
  --ink-700: #23395B;
  --ink-600: #4A5F7E;   /* secondary text (6.5:1) */
  --ink-500: #5D7290;   /* muted text (4.9:1) */
  --ink-400: #8EA0B8;
  --ink-300: #C3CFDD;
  --ink-200: #DFE7F0;
  --ink-100: #EEF3F8;
  --ink-50:  #F7FAFC;
  --white:   #FFFFFF;

  /* ---------- Plate (EU / NMK) ---------- */
  --plate-blue: #1A3FA6;
  --plate-yellow: #FFD23F;

  /* ---------- Status (reserved — always icon + label) ---------- */
  --status-good: var(--mint-500);   --status-good-bg: var(--mint-50);   --status-good-ink: var(--mint-ink);
  --status-warn: var(--sun-500);    --status-warn-bg: var(--sun-50);    --status-warn-ink: var(--sun-ink);
  --status-bad:  #E5484D;           --status-bad-bg:  #FFF0F0;          --status-bad-ink:  #B4232A;
  --status-info: var(--sky-500);    --status-info-bg: var(--sky-50);    --status-info-ink: var(--sky-700);

  /* ---------- Semantic ---------- */
  --color-bg: var(--white);
  --color-bg-tint: #F6F8FB;
  --color-bg-soft: #FBFCFD;
  --color-surface: var(--white);
  --color-border: #E6EAF0;
  --color-border-strong: var(--ink-300);
  --color-text: var(--ink-900);
  --color-text-secondary: var(--ink-600);
  --color-text-muted: var(--ink-500);
  --color-link: var(--brand);
  --color-focus: var(--sky-500);

  /* ---------- Gradients ---------- */
  /* Minimal pass: the "gradients" are flat on purpose — one blue, one navy.
     The only gradient left in the brand is inside the logo tile. */
  /* Parkomak (2026-11-21): the logo's near-black runs the interface, its signal red is the signature accent,
     blue is kept only for "technology" (camera scan light, charts, the technology band). */
  --brand: #111318;        /* buttons, selected states, links */
  --brand-hover: #000000;
  --brand-soft: #F1F2F4;   /* tinted surfaces */
  --red: #E3262F;          /* the logo red: dots, badges, markers (fills) */
  --red-ink: #C8202A;      /* red text on white (5.4:1) */
  --red-soft: #FDECEC;
  --tech: #2563EB;         /* camera light / data */
  --grad-brand: linear-gradient(var(--brand), var(--brand));     /* buttons */
  --grad-sky: linear-gradient(var(--red-ink), var(--red-ink));   /* highlighted words: the logo's "MAK" red */
  --grad-pop: linear-gradient(var(--red), var(--red));           /* small badges */
  --grad-aurora: linear-gradient(180deg, #FFFFFF 0%, #F6F8FB 100%);
  --grad-cta: linear-gradient(#0B1B33, #0B1B33);                 /* dark bands: navy */

  /* ---------- Typography ---------- */
  --font-display: "Inter Tight", "Inter", -apple-system, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-plate: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --text-display: 72px;
  --text-h1: 52px;
  --text-h2: 38px;
  --text-h3: 26px;
  --text-h4: 20px;
  --text-lg: 18px;
  --text-md: 16px;
  --text-sm: 14px;
  --text-xs: 12px;

  --leading-tight: 1.08;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --tracking-tight: -0.03em;
  --tracking-wide: 0.1em;

  /* ---------- Spacing (4px base) ---------- */
  --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; --space-32: 128px;

  --section-y: 120px;
  --container: 1200px;
  --gutter: 24px;

  /* ---------- Radius ---------- */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-full: 999px;

  /* ---------- Elevation (blue-tinted shadows) ---------- */
  --shadow-xs: 0 1px 2px rgba(11, 27, 51, .05);
  --shadow-sm: 0 2px 8px rgba(11, 27, 51, .06);
  --shadow-md: 0 8px 24px -12px rgba(11, 27, 51, .12);
  --shadow-lg: 0 16px 40px -18px rgba(11, 27, 51, .16);
  --shadow-xl: 0 28px 60px -28px rgba(11, 27, 51, .22);
  --shadow-glow: 0 0 0 0 transparent;
  --ring-focus: 0 0 0 4px rgba(14, 165, 233, .25);

  /* ---------- Motion ---------- */
  --duration-fast: 150ms;
  --duration-normal: 260ms;
  --duration-slow: 450ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ---------- Layers ---------- */
  --z-header: 50; --z-drawer: 80; --z-overlay: 90; --z-toast: 100;
}

@media (max-width: 767px) {
  :root {
    --text-display: 42px; --text-h1: 34px; --text-h2: 28px; --text-h3: 22px;
    --text-h4: 18px; --text-lg: 17px; --section-y: 80px; --gutter: 16px;
  }
}
@media (min-width: 768px) and (max-width: 1099px) {
  :root { --text-display: 56px; --text-h1: 42px; --text-h2: 32px; --section-y: 100px; }
}
