/* ==========================================================================
   Base: CSS-переменные (дизайн-токены), reset, типографика.
   Смена фирменных цветов — только тут.
   ========================================================================== */

:root {
  /* Colors — palette */
  --color-primary: #1565C0;
  --color-primary-dark: #0D47A1;
  --color-primary-hover: #1976D2;
  --color-primary-light: #E3F2FD;
  --color-accent: #00A6D6;
  --color-success: #43A047;
  --color-success-light: #E8F5E9;
  --color-warning: #FB8C00;
  --color-danger: #E53935;

  /* Colors — text */
  --color-text: #1A1A1A;
  --color-text-muted: #6B7280;
  --color-text-light: #9CA3AF;
  --color-text-inverse: #FFFFFF;

  /* Colors — surfaces */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F7F9FC;
  --color-bg-dark: #0A2540;
  --color-border: #E0E6ED;
  --color-border-light: #F0F2F5;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

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

  /* Spacing */
  --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;

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

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 4px 12px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 8px 24px rgba(10, 37, 64, 0.12);

  /* Motion */
  --transition-fast: 0.15s ease;
  --transition: 0.25s ease;

  /* Layout */
  --container-width: 1200px;
  --header-height: 72px;
  --topbar-height: 40px;
  --z-topbar: 90;
  --z-header: 100;
  --z-dropdown: 200;
  --z-modal: 1000;
}

/* Reset ==================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p { line-height: 1.6; }

.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }

/* Utilities */
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
