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

:root {
  /* Primary Palette */
  --primary: #a5e06c;
  --primary-rgb: 165, 224, 108;
  --primary-hover: #72b431;
  --primary-light: #e1f3d0;
  --primary-subtle: #f1f7e9;
  --primary-mid: #c8e6a6;
  --primary-mid-end: #cce8a8;

  /* Neutral Surfaces */
  --bg: #fbfbfb;
  --surface: #ffffff;
  --surface-2: #f8f8f8;
  --surface-3: #f2f2f2;

  /* Text Colors */
  --text: #000000;
  --text-secondary: #6b6d68;
  --text-muted: #9a9a9a;
  --text-white: #ffffff;

  /* Borders */
  --border: #ededed;
  --border-light: #f8f8f8;

  /* Semantic Colors */
  --success: #4bb34b;
  --success-light: #def0d3;
  --warning: #d97706;
  --warning-light: #fef3c7;
  --danger: #e64646;
  --danger-light: #faebeb;

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

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
  --gradient-primary-reverse: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  --gradient-text: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
  --gradient-map: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
  --gradient-shimmer: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  --gradient-hero-bg:
    radial-gradient(ellipse 80% 60% at 90% 20%, rgba(var(--primary-rgb), 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 10% 90%, rgba(var(--primary-rgb), 0.06) 0%, transparent 55%),
    linear-gradient(135deg, var(--bg) 0%, var(--primary-light) 50%, var(--surface-2) 100%);

  /* Typography */
  --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -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;

  /* Typography Scale */
  --font-size-10: 0.625rem;
  --font-size-12: 0.75rem;
  --font-size-13: 0.8125rem;
  --font-size-14: 0.875rem;
  --font-size-15: 0.9375rem;
  --font-size-16: 1rem;
  --font-size-18: 1.125rem;
  --font-size-20: 1.25rem;
  --font-size-22: 1.375rem;
  --font-size-24: 1.5rem;
  --font-size-28: 1.75rem;
  --font-size-32: 2rem;
  --font-size-64: 4rem;

  /* Semantic aliases */
  --font-size-2xs: var(--font-size-10);
  --font-size-xs: var(--font-size-12);
  --font-size-sm: var(--font-size-14);
  --font-size-md: var(--font-size-15);
  --font-size-base: var(--font-size-16);
  --font-size-lg: var(--font-size-18);
  --font-size-xl: var(--font-size-20);
  --font-size-2xl: var(--font-size-22);
  --font-size-3xl: var(--font-size-24);
  --font-size-4xl: var(--font-size-28);
  --font-size-5xl: var(--font-size-32);
  --font-size-6xl: var(--font-size-64);

  /* Responsive display sizes */
  --font-size-heading-lg: clamp(1.25rem, 2vw, 1.5rem);
  --font-size-display-md: clamp(1.5rem, 3vw, 2rem);
  --font-size-section-title: clamp(1.75rem, 3vw, 2.5rem);
  --font-size-display-lg: clamp(2rem, 4vw, 3rem);
  --font-size-display-xl: clamp(2.5rem, 5vw, 4rem);
  --font-size-display-lg-mobile: clamp(1.5rem, 6vw, 2.25rem);
  --font-size-display-xl-mobile: clamp(2rem, 8vw, 3rem);

  /* Line Heights */
  --line-height-110: 1.1;
  --line-height-115: 1.15;
  --line-height-120: 1.2;
  --line-height-125: 1.25;
  --line-height-130: 1.3;
  --line-height-140: 1.4;
  --line-height-150: 1.5;
  --line-height-160: 1.6;

  /* Letter Spacing */
  --letter-spacing-tight-02: -0.02em;
  --letter-spacing-tight-015: -0.015em;
  --letter-spacing-wide-02: 0.02em;
  --letter-spacing-wide-05: 0.05em;

  /* 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(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04), 0 0 1px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.08);

  /* Primary glow shadows */
  --shadow-glow-sm: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
  --shadow-glow-md: 0 4px 12px rgba(var(--primary-rgb), 0.25);
  --shadow-glow-lg: 0 6px 20px rgba(var(--primary-rgb), 0.35);

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

  /* Transition timing/duration tokens */
  --transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-timing-ease: ease;
  --transition-duration-200: 0.2s;
  --transition-duration-300: 0.3s;
  --transition-duration-500: 0.5s;
  --transition-duration-600: 0.6s;

  /* Size scale */
  --size-24: 1.5rem;
  --size-32: 2rem;
  --size-40: 2.5rem;
  --size-48: 3rem;
  --size-64: 4rem;

  /* Semantic size aliases */
  --size-icon-sm: var(--size-24);
  --size-icon-md: var(--size-32);
  --size-icon-lg: var(--size-40);
  --size-icon-xl: var(--size-48);
  --size-icon-2xl: var(--size-64);
  --size-avatar: var(--size-40);
  --size-button-md: var(--size-40);
  --size-touch-target: var(--size-40);
  --size-checkmark-width: 6px;
  --size-checkmark-height: 13px;
  --size-bullet: 6px;

  /* Layout sizes */
  --max-width-content: 640px;
  --map-min-height: clamp(250px, 50vw, 400px);
  --logo-width: 130px;

  /* Border shorthand (AGENTS.md: --border-* reserved for border-color only) */
  --border-rule-light: 1px solid var(--border-light);
  --border-rule: 1.5px solid var(--border);
  --border-rule-base: 1px solid var(--border);
  --border-rule-transparent: 1px solid transparent;
  --border-rule-white-20: 1px solid var(--white-20);
  --border-rule-white-30: 1px solid var(--white-30);

  /* 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(var(--primary-rgb), 0.10);
  --pattern-color-dots: rgba(var(--primary-rgb), 0.14);
  --pattern-color-lines-muted: rgba(var(--primary-rgb), 0.06);
  --pattern-color-dots-muted: rgba(var(--primary-rgb), 0.09);
  --pattern-color-lines-strong: rgba(var(--primary-rgb), 0.16);
  --pattern-color-dots-strong: rgba(var(--primary-rgb), 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;
  }
}
