/* ============================================
   DENTAL BENTO SYSTEM — DESIGN TOKENS
   Primary: #17446B
   ============================================ */

:root {
  /* Primary Palette */
  --primary: #17446B;
  --primary-rgb: 23, 68, 107;
  --primary-hover: #12375a;
  --primary-light: #e6edf5;
  --primary-subtle: #f1f5f9;
  --primary-mid: #c0d0e4;
  --primary-mid-end: #c4d2e7;

  /* Neutral Surfaces */
  --bg: #fafbfc;
  --surface: #ffffff;
  --surface-2: #f5f7fa;
  --surface-3: #eef1f5;

  /* Text Colors */
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-white: #ffffff;

  /* Borders */
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  /* Semantic Colors */
  --success: #16a34a;
  --success-light: #86efac;
  --warning: #d97706;
  --warning-light: #fef3c7;
  --danger: #dc2626;
  --danger-light: #fee2e2;

  /* Semantic */
  --star: #fbbf24;

  /* Brands */
  --brand-yandex: #ff0000;
  --brand-google: #4285f4;
  --brand-zoon: #7b68ee;
  --brand-prodoc: #00bfa5;

  /* White opacity scale (для тёмных фонов) */
  --white-10: rgba(255, 255, 255, 0.1);
  --white-20: rgba(255, 255, 255, 0.2);
  --white-30: rgba(255, 255, 255, 0.3);
  --white-50: rgba(255, 255, 255, 0.5);
  --white-70: rgba(255, 255, 255, 0.7);
  --white-90: rgba(255, 255, 255, 0.9);

  /* Surface overlays */
  --nav-bg: rgba(255, 255, 255, 0.92);
  --overlay: rgba(0, 0, 0, 0.4);
  --overlay-strong: rgba(0, 0, 0, 0.7);

  /* Typography */
  --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Font Weights */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* Spacing Scale (fixed) */
  --space-0-5: 0.125rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Responsive Spacing (clamp-based) */
  --space-xs: clamp(0.25rem, 0.5vw, 0.5rem);
  --space-sm: clamp(0.5rem, 1vw, 0.75rem);
  --space-md: clamp(0.75rem, 1.5vw, 1rem);
  --space-lg: clamp(1rem, 2vw, 1.5rem);
  --space-xl: clamp(1.5rem, 3vw, 2rem);
  --space-2xl: clamp(2rem, 4vw, 3rem);
  --space-3xl: clamp(2.5rem, 5vw, 4rem);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 16px 48px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 2px 8px rgba(15, 23, 42, 0.04), 0 0 1px rgba(15, 23, 42, 0.08);
  --shadow-card-hover: 0 8px 32px rgba(15, 23, 42, 0.08), 0 0 1px rgba(15, 23, 42, 0.08);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container-max: 1440px;
  --container-padding: clamp(1rem, 5vw, 3rem);

  /* Breakpoints (for documentation, use numeric values in @media) */
  --breakpoint-xs: 0px;
  --breakpoint-sm: 480px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;

  /* Z-index Scale */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-tooltip: 400;

  /* Constellation pattern variables */
  --pattern-color-lines: rgba(23, 68, 107, 0.10);
  --pattern-color-dots: rgba(23, 68, 107, 0.14);
  --pattern-color-lines-muted: rgba(23, 68, 107, 0.06);
  --pattern-color-dots-muted: rgba(23, 68, 107, 0.09);
  --pattern-color-lines-strong: rgba(23, 68, 107, 0.16);
  --pattern-color-dots-strong: rgba(23, 68, 107, 0.22);
  --pattern-color-lines-white: rgba(255, 255, 255, 0.09);
  --pattern-color-dots-white: rgba(255, 255, 255, 0.13);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
