/* ==========================================================================
   FLUID INTERPOLATION — единая логика для всех адаптивных токенов
   --------------------------------------------------------------------------
   Якоря: Vmin = 360px, Vmax = 1440px (= --max-width)

   Каждый fluid-токен: clamp(min, preferred, max), где
     min = значение на 360px,
     max = значение на 1440px,
     preferred = Krem·rem + Kvw·vw — линейная интерполяция между точками.

   Формула пересчёта (min_px, max_px → коэффициенты):
     slope     = (max_px − min_px) / (Vmax − Vmin)
     Kvw       = slope × 100
     intercept = min_px − slope × Vmin
     Krem      = intercept / 16

   clamp(min, Krem·rem + Kvw·vw, max)
   ========================================================================== */
:root {
    /* Шрифты */
    --font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-h1:    clamp(2.25rem, 1.6667rem + 2.5926vw, 4rem);     
    --font-h2:    clamp(1.75rem, 1.5rem    + 1.1111vw, 2.5rem);    
    --font-h3:    clamp(1.375rem, 1.25rem   + 0.5556vw, 1.75rem);   
    --font-lead:  clamp(1.125rem, 1.0417rem + 0.3704vw, 1.375rem);   
    --font-text:  clamp(1rem, 0.9583rem + 0.1852vw, 1.125rem);   
    --font-small: clamp(0.75rem, 0.7083rem + 0.1852vw, 0.875rem); 
    --font-weight-regular: 400;
    --font-weight-medium:  500;
    --font-weight-bold:    700;
    
    /* Цвета */
    --color-bg:           #f2f3f4;
    --color-surface:      #ffffff;
    --color-text:         #141414;
    --color-text-inverse: #f2f3f4;
    --color-muted:        #86868b;
    --color-accent:       #0071e3;
    
    /* Тени */
    --shadow-sm: 0 2px 10px rgba(0, 40, 100, 0.10);
    --shadow-md: 0 4px 24px rgba(0, 40, 100, 0.10);
    
    /* Оверлеи и градиенты */
    --gradient-1: linear-gradient(to bottom, color-mix(in srgb, var(--color-bg) 0%, transparent), var(--color-bg));
    --gradient-2: linear-gradient(to bottom, var(--color-muted), var(--color-text));
    --overlay: rgba(20, 20, 20, 0.50);
    
    /* Скругления */
    --radius-sm:   8px;
    --radius-md:  16px;
    --radius-lg:  24px;
    --radius-pill: 9999px;
    
    /* Отступы */
    --hero-height: 85dvh;
    --hero-min-height: 400px;
    --header-height: clamp(3rem, 2.8333rem + 0.7407vw, 3.5rem);
    --max-width: 1440px;
    --page-padding-x: clamp(0.875rem, 0.5rem + 1.6667vw, 2rem);
    --grid-gap: clamp(1rem, 0.8333rem + 0.7407vw, 1.5rem);
    --section-gap: clamp(4rem, 2.2083rem + 7.9630vw, 9.375rem);
    --letter-spacing: -0.02em;
    
    /* Кнопки */
    --btn-padding: 14px 26px;
    --btn-gap: 12px;
    --btn-border: 1px;
    
    /* Кривые анимации */
    --easeIn: cubic-bezier(0.32, 0, 0.67, 0);
    --easeOut: cubic-bezier(0.33, 1, 0.68, 1);
    --easeInOut: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Базовые настройки страницы */
html {
    scrollbar-gutter: stable;
    scroll-behavior: smooth;
}

body { 
    margin: 0; 
}