/* ==========================================================================
   Визуальный язык Авиасейлс — токены для «тайныйсанта» (1:1 guide.aviasales.ru)
   ========================================================================== */

:root {
  --font-display: "Rubik", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Цветовая система Авиасейлс */
  --c-brand: #0656fe;          /* brand primary / marketing_800 */
  --c-brand-lift: #0c73fe;     /* brand primary / 500 */
  --c-brand-800: #0a64dd;
  --c-brand-300: #99c4ff;
  --c-brand-bg: rgba(12, 115, 254, 0.1);

  --c-ink: #0c131d;
  --c-ink-500: #5a6472;
  --c-ink-400: #848f9d;
  --c-ink-150: #dbdfe5;
  --c-paper: #f7f8f9;
  --c-cabin: #f2f4f5;
  --c-on-cabin: #0c131d;
  --c-white: #ffffff;
  --c-black: #000000;
  --c-white-72: rgba(255, 255, 255, 0.72);

  --c-orange: #fa742d;
  --c-orange-300: #fcb38b;
  --c-orange-800: #bb4506;

  --c-yellow-500: #ffaa18;
  --c-yellow-300: #ffcc74;
  --c-yellow-800: #ab5600;

  --c-green-500: #34a84c;
  --c-green-300: #89d99a;
  --c-green-800: #0e7e25;
  --c-green-50: #def4e3;

  --c-red-500: #d83b4c;
  --c-red-300: #ffb8bf;
  --c-red-800: #c12c3c;
  --c-red-50: #ffebed;

  --c-purple-300: #cbb5ff;
  --c-purple-800: #6739cd;

  --c-pink-300: #ffa6d0;
  --c-pink-800: #b01d63;

  --c-blue-300: #78cdfb;
  --c-blue-800: #0071af;

  --c-mist: #bdc5d0;
  --c-box: rgba(219, 223, 229, 0.48);
  --c-box-solid: #e8ecf0;
  --c-fold: #cfd5dd;
  --c-card-surface: #ffffff;
  --c-fill: rgba(67, 83, 106, 0.08);
  --night-dur: 0.45s;

  /* Метрики скролл-сцен 1:1 как guide.aviasales.ru */
  --screen-scene-inset: 24px;
  --screen-scene-radius: 16px;
  --story-len: 500svh;

  --title-size: clamp(46px, 6.4vw, 92.188px);
  --title-lh: 0.92;

  --btn-height: 48px;
  --btn-radius: 15px;
  --btn-pad-x: 16px;
  --btn-gap: 6px;
  --btn-icon: 16px;
  --btn-font-size: 16px;
  --btn-line-height: 22px;

  --hdr-top: 24px;
  --hdr-right: 24px;
  --hdr-gap: 2px;

  --in-radius: 16px;
  --in-radius-card: 20px;
  --in-radius-plate: 24px;

  --spring-tip: linear(0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%, 0.938 16.7%, 1.017, 1.077, 1.116, 1.136 24.9%, 1.1397 26.8%, 1.132, 1.114 31.3%, 1.013 43.3%, 0.988 48.2%, 0.98 53.7%, 1.003 73.1%, 1);
  --spring-like: linear(0, 0.008, 0.031 2.2%, 0.123 4.6%, 0.654 13.8%, 0.871 18.2%, 1.012 22.8%, 1.06 25.9%, 1.0698 28.4%, 1.064 31.2%, 1.011 41.2%, 0.992 47.4%, 0.99 53.6%, 1.001 74%, 1);
  --e-pop: cubic-bezier(0.22, 1.24, 0.36, 1);

  /* Переменные скролл-хореографии */
  --t: 0;
  --t-edges: 0;
  --t-lines: 0;
  --t-road: 0;
  --t-road-text: 0;
  --t-rv: 0;
  --ground: 0px;
  --po-open: 0;
  --po-k: 2.85;
  --po-dy: 0px;
  --po-shutter: -105%;

  --tk-h-d: 1050px;
  --tk-rise: 44px;
  --tk-scale: 0.92;
  --tk-dur: 0.68s;
  --tk-out: 0.3s;

  --bx-side: 24px;
  --bx-foot: 24px;
  --bx-max: 1180px;
  --bx-radius: 24px;
  --bx-h: 500px;
  --bx-px: 48px;
  --st-h: 92px;
  --st-px: 28px;
  --st-dash: 3px;
  --st-dash-on: 10px;
  --st-dash-step: 20px;
  --strip-room: 0px;
}

/* Уютная ночная тема для иллюминатора (активируется шторкой окна на главной) */
html[data-night] {
  --c-cabin: #1b2733;
  --c-on-cabin: #f7f8f9;
  --c-mist: #5a6472;
  --c-box: rgba(12, 19, 29, 0.65);
  --c-box-solid: #131d27;
  --c-fold: #2a3949;
  --c-card-surface: #22303f;
  --c-ink-150: #2e3d4f;
  --c-ink-500: #9ba6b4;
  --c-ink-400: #7f8c9b;
  --c-fill: rgba(247, 248, 249, 0.08);
}

@media (max-width: 1023.98px) {
  :root {
    --screen-scene-inset: 0px;
    --screen-scene-radius: 0px;
    --story-len: 340svh;
    --title-size: clamp(32px, 9.2vw, 50px);
    --btn-height: 44px;
    --btn-radius: 14px;
    --btn-pad-x: 14px;
    --btn-font-size: 15px;
    --tk-h-d: 820px;
    --bx-side: 16px;
    --bx-px: 20px;
    --strip-room: 112px;
  }
}
