/* =========================================
   CSS Variables — nauka.panor.ru
   ========================================= */
:root {
  /* Colors */
  /* Цветовая схема из макета Панорама — белый/серый/тёмно-синий */
  --color-primary: #1c3f6e;
  --color-primary-dark: #0e2240;
  --color-primary-light: #2558a0;
  --color-accent: #d0021b;
  --color-accent-hover: #a80016;

  --color-text: #1a1a1a;
  --color-text-secondary: #555566;
  --color-text-muted: #999aaa;

  --color-bg: #ffffff;
  --color-bg-light: #f4f6f9;
  --color-bg-dark: #e8ecf2;

  --color-border: #d8dde8;
  --color-border-light: #eceef5;

  /* Header specific */
  --header-top-bg: #1c3f6e;
  --header-top-color: rgba(255,255,255,0.85);
  --header-nav-bg: #ffffff;
  --header-nav-border: #e0e4ef;

  --color-success: #2e7d32;
  --color-success-bg: #e8f5e9;
  --color-warning: #f57c00;
  --color-warning-bg: #fff3e0;
  --color-error: #c62828;
  --color-error-bg: #ffebee;
  --color-info: #1565c0;
  --color-info-bg: #e3f2fd;

  /* SEO Colors */
  --seo-good: #2e7d32;
  --seo-good-bg: #e8f5e9;
  --seo-ok: #f57c00;
  --seo-ok-bg: #fff3e0;
  --seo-bad: #c62828;
  --seo-bad-bg: #ffebee;

  /* Typography */
  --font-main: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  --fs-xs: 0.75rem;    /* 12px */
  --fs-sm: 0.875rem;   /* 14px */
  --fs-base: 1rem;     /* 16px */
  --fs-md: 1.125rem;   /* 18px */
  --fs-lg: 1.25rem;    /* 20px */
  --fs-xl: 1.5rem;     /* 24px */
  --fs-2xl: 1.875rem;  /* 30px */
  --fs-3xl: 2.25rem;   /* 36px */
  --fs-4xl: 3rem;      /* 48px */

  --lh-tight: 1.25;
  --lh-normal: 1.5;
  --lh-relaxed: 1.75;
  --lh-article: 1.85;

  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container-max: 1440px;
  --container-article: 760px;
  --container-wide: 1200px;
  --container-padding: 1.5rem;

  /* Border */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Z-index */
  --z-below: -1;
  --z-base: 0;
  --z-above: 10;
  --z-sticky: 100;
  --z-modal: 1000;
  --z-toast: 2000;
  --z-cursor: 9999;
}
