/* ==========================================================================
   SCG — Design Tokens (Manrope + цвета/типографика/отступы/радиусы/тени).
   Источник: дизайн-бандл «Аналитика рынка — результат v2» (colors_and_type.css).
   Используется страницей бесплатного модуля (free_market_result.html).
   Шрифт Merriweather не подключаем — на этой странице не используется.
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/static/fonts/manrope/Manrope-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Manrope";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/static/fonts/manrope/Manrope-Medium.ttf") format("truetype");
}

:root {
  /* --- Brand palette --- */
  --scg-navy:        #121054;
  --scg-cyan:        #73D7EE;
  --scg-magenta-900: #A20A94;
  --scg-magenta-700: #AE2AA3;
  --scg-magenta-500: #CE27C0;

  /* --- Extended neutrals --- */
  --ink-900: #0B0A38;
  --ink-800: #121054;
  --ink-700: #242367;
  --ink-500: #4F4E86;
  --ink-400: #7B7AA6;
  --ink-300: #B0B0CB;
  --ink-200: #D9D9E5;
  --ink-100: #ECECF2;
  --ink-50:  #F6F6FA;
  --white:   #FFFFFF;

  /* --- Semantic colors --- */
  --fg-1: var(--ink-900);
  --fg-2: var(--ink-700);
  --fg-3: var(--ink-500);
  --fg-4: var(--ink-400);
  --fg-on-dark: var(--white);
  --fg-on-accent: var(--scg-navy);

  --bg-1: var(--white);
  --bg-2: var(--ink-50);
  --bg-3: var(--ink-100);
  --bg-dark: var(--scg-navy);

  --border-1: var(--ink-200);
  --border-2: var(--ink-300);
  --border-focus: var(--scg-cyan);

  --brand-primary: var(--scg-navy);
  --brand-accent:  var(--scg-cyan);
  --brand-highlight: var(--scg-magenta-500);

  --status-info:    var(--scg-cyan);
  --status-success: #0E9F6E;
  --status-warning: #E0A43B;
  --status-danger:  #D7263D;

  /* --- Type scale --- */
  --font-sans:  "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Merriweather", Georgia, "Times New Roman", serif;
  --font-mono:  ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fw-regular: 400;
  --fw-medium:  500;

  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-md:   18px;
  --text-lg:   20px;
  --text-xl:   24px;
  --text-2xl:  30px;
  --text-3xl:  38px;
  --text-4xl:  48px;
  --text-5xl:  64px;
  --text-6xl:  80px;

  --lh-tight:   1.1;
  --lh-snug:    1.25;
  --lh-normal:  1.45;
  --lh-relaxed: 1.6;

  --tracking-tight:  -0.02em;
  --tracking-snug:   -0.01em;
  --tracking-normal: 0;
  --tracking-wide:   0.04em;
  --tracking-caps:   0.12em;

  /* --- Spacing (4px base) --- */
  --space-0:  0;
  --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;

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

  /* --- Shadows --- */
  --shadow-xs: 0 1px 0 rgba(18, 16, 84, 0.04), 0 1px 2px rgba(18, 16, 84, 0.06);
  --shadow-sm: 0 1px 2px rgba(18, 16, 84, 0.06), 0 2px 8px rgba(18, 16, 84, 0.06);
  --shadow-md: 0 4px 12px rgba(18, 16, 84, 0.08), 0 2px 4px rgba(18, 16, 84, 0.04);
  --shadow-lg: 0 12px 32px rgba(18, 16, 84, 0.10), 0 4px 8px rgba(18, 16, 84, 0.04);
  --shadow-focus: 0 0 0 3px rgba(115, 215, 238, 0.45);

  /* --- Motion --- */
  --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-entrance: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-exit:     cubic-bezier(0.4, 0, 1, 1);
  --dur-fast:   120ms;
  --dur-base:   200ms;
  --dur-slow:   320ms;
}
