/* ==========================================================================
   МосВертикаль (mosvertikal.ru) — Local Fonts & Design Tokens
   Zero external CDN dependencies. Paths resolve relative to /assets/css/.
   ========================================================================== */

/* Manrope Variable Font (weights 400-800) — Self-Hosted */
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin-ext (includes U+20BD Ruble sign ₽) */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* --- 1. Core Palette (Exact R2 Tokens) --- */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F4F7FA;
  --color-brand: #0F2537;
  --color-text: #1E293B;
  --color-muted: #64748B;
  --color-accent: #FF6B00;
  --color-accent-hover: #E05E00;

  /* --- 2. Extended Surface, Border & Semantic Colors --- */
  --color-white: #FFFFFF;
  --color-brand-light: #1A3A54;
  --color-brand-dark: #091824;
  --color-text-secondary: #475569;
  --color-text-inverse: #FFFFFF;
  --color-muted-inverse: #CBD5E1;

  --color-accent-soft: rgba(255, 107, 0, 0.10);
  --color-accent-border: rgba(255, 107, 0, 0.28);

  --color-border: #E2E8F0;
  --color-border-strong: #CBD5E1;
  --color-border-inverse: rgba(255, 255, 255, 0.16);

  --bg-header: rgba(255, 255, 255, 0.96);
  --bg-surface-inverse: rgba(255, 255, 255, 0.06);
  --bg-backdrop: rgba(15, 37, 55, 0.65);

  /* Status & Comparison Feedback */
  --color-success: #0F766E;
  --color-success-bg: #ECFDF5;
  --color-success-border: #A7F3D0;
  --color-danger: #DC2626;
  --color-danger-bg: #FEF2F2;
  --color-danger-border: #FECACA;

  /* --- 3. Layout & Container --- */
  --container-max: 1200px;
  --container-pad: 20px;
  --header-height: 76px;
  --sticky-bar-height: 68px;
  --section-py: clamp(48px, 6vw, 88px);

  /* --- 4. Radii --- */
  --radius-card: 16px;
  --radius-card-sm: 12px;
  --radius-btn: 8px;
  --radius-input: 8px;
  --radius-pill: 9999px;

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

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: clamp(1.625rem, 2.5vw, 2.25rem);
  --text-hero: clamp(1.875rem, 3.4vw, 2.875rem);
  --text-stat: clamp(1.75rem, 3vw, 2.5rem);

  --leading-tight: 1.15;
  --leading-snug: 1.30;
  --leading-normal: 1.55;
  --tracking-tight: -0.02em;

  /* --- 6. Spacing Scale (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;

  /* --- 7. Shadows (Cool Navy Tint #0F2537) --- */
  --shadow-xs: 0 1px 2px rgba(15, 37, 55, 0.05);
  --shadow-sm: 0 2px 8px rgba(15, 37, 55, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 37, 55, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 37, 55, 0.14);
  --shadow-header: 0 4px 20px rgba(15, 37, 55, 0.06);
  --shadow-accent: 0 6px 18px rgba(255, 107, 0, 0.28);
  --focus-ring: 0 0 0 3px rgba(255, 107, 0, 0.30);

  /* --- 8. Transitions --- */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 240ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 360ms cubic-bezier(0.4, 0, 0.2, 1);

  /* --- 9. Z-Index Layers --- */
  --z-base: 1;
  --z-card-overlay: 10;
  --z-header: 100;
  --z-mobile-nav: 110;
  --z-sticky-bar: 120;
  --z-modal: 1000;
}
