/* ============================================================
   TFT.aero — «Рейс сквозь сутки»
   Радиусы: кнопки pill, карточки 24px, чипы/тикеты 14px.
   Один акцент: закатный янтарь.
   ============================================================ */

:root {
  --ink: #22294f;
  --ink-soft: rgba(34, 41, 79, 0.76);
  --night-text: #f2f0e9;
  --night-soft: rgba(242, 240, 233, 0.78);
  --accent: #f7a15c;
  /* Текст поверх янтаря. Раньше здесь стоял общий --ink, и когда тёмная тема
     переопределила его на светлый, у кнопок получилось светлое по светлому:
     контраст 1.8 при норме 4.5. Роль отдельная, значит и токен отдельный. */
  --on-accent: #22294f;
  --accent-deep: #e9853b;
  --glass-light: rgba(255, 255, 255, 0.55);
  --glass-light-border: rgba(255, 255, 255, 0.7);
  --glass-dark: rgba(255, 255, 255, 0.07);
  --glass-dark-border: rgba(255, 255, 255, 0.14);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --radius-card: 24px;
  --radius-chip: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  /* Цвет полос браузера: этим же цветом заливается всё, что оказывается
     выше шапки и ниже нижней панели. */
  --chrome: #070a1a;
  background: var(--chrome);
}

body {
  font-family: "Onest", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: #cfe6f9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ============ Небо ============ */

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.sky__layer {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.sky__layer--dawn {
  opacity: 1;
  background: linear-gradient(180deg, #a9cfef 0%, #c6e0f6 48%, #cfe6f9 100%);
}
.sky__layer--day {
  background: linear-gradient(180deg, #7fb9e6 0%, #a6d1f2 55%, #cfe9fa 100%);
}
.sky__layer--golden {
  background: linear-gradient(180deg, #7fb0dd 0%, #eecf98 62%, #f0ad6c 100%);
}
.sky__layer--sunset {
  background:
    radial-gradient(130% 16% at 46% 30%, rgba(255, 188, 138, 0.2), transparent 72%),
    radial-gradient(150% 12% at 68% 56%, rgba(255, 158, 116, 0.14), transparent 70%),
    linear-gradient(180deg, #4e4a8c 0%, #a95f85 48%, #d97f56 100%);
}
.sky__layer--dusk {
  background:
    radial-gradient(140% 14% at 34% 34%, rgba(255, 196, 160, 0.1), transparent 72%),
    radial-gradient(150% 12% at 72% 62%, rgba(255, 255, 255, 0.06), transparent 70%),
    linear-gradient(180deg, #262a58 0%, #4d4a84 58%, #8a5a7c 100%);
}
.sky__layer--night {
  background:
    radial-gradient(52% 30% at 72% 24%, rgba(178, 190, 255, 0.07), transparent 72%),
    radial-gradient(46% 26% at 26% 62%, rgba(150, 170, 240, 0.05), transparent 70%),
    linear-gradient(180deg, #0c1130 0%, #1a2247 62%, #283056 100%);
}

/* Солнце и луна */
/* Солнце с читаемым диском, как луна ночью: яркое ядро с чёткой
   кромкой и широкий мягкий ореол вокруг */
.sky__sun {
  position: absolute;
  top: 3%;
  right: 5%;
  width: 46vmin;
  height: 46vmin;
  background:
    radial-gradient(circle,
      #fffefb 0%, #fff9e2 6%, #ffefb6 9%, #ffde92 10.8%,
      rgba(255, 221, 140, 0) 12.2%),
    radial-gradient(circle,
      rgba(255, 240, 190, 0.5) 0%,
      rgba(255, 224, 150, 0.26) 17%,
      rgba(255, 208, 125, 0.12) 32%,
      rgba(255, 200, 115, 0.05) 47%,
      transparent 64%);
  animation: sun-breathe 9s ease-in-out infinite alternate;
}

@keyframes sun-breathe {
  from { transform: scale(1); }
  to   { transform: scale(1.05); }
}

.sky__moon {
  position: absolute;
  top: 10%;
  right: 12%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #f4efdf;
  box-shadow: 0 0 40px 12px rgba(244, 239, 223, 0.35);
  opacity: 0;
}
.sky__moon::after {
  content: "";
  position: absolute;
  top: -6%;
  left: -14%;
  width: 86%;
  height: 86%;
  border-radius: 50%;
  background: #12173a;
  opacity: 0.92;
}

/* Звёзды: box-shadow списки генерирует скрипт */
.sky__stars { position: absolute; inset: 0; opacity: 0; }
.sky__stars i {
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: transparent;
}
.stars-a { opacity: 0.9; }
.stars-b { animation: twinkle 3.4s ease-in-out infinite alternate; }

@keyframes twinkle {
  from { opacity: 0.25; }
  to   { opacity: 0.95; }
}

/* Облака */
.sky__clouds { position: absolute; inset: 0; }

/* Кучевые облака: SVG с фрактальным шумом (feTurbulence +
   feDisplacementMap) даёт настоящую рваную кромку и объём с тенью
   к основанию. Три вариации форм, рисуются один раз и дрейфуют. */
.cloud {
  position: absolute;
  background: center / contain no-repeat;
  opacity: 0.95;
}
.cloud--1 {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20640%20320'%3E%3Cdefs%3E%3ClinearGradient%20id='g'%20x1='0'%20y1='0'%20x2='0'%20y2='1'%3E%20%3Cstop%20offset='0'%20stop-color='%23ffffff'/%3E%3Cstop%20offset='.68'%20stop-color='%23f3f8fd'/%3E%20%3Cstop%20offset='1'%20stop-color='%23d2e2f2'/%3E%3C/linearGradient%3E%20%3Cfilter%20id='f'%20x='-40%25'%20y='-40%25'%20width='180%25'%20height='180%25'%3E%20%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.011%200.019'%20numOctaves='4'%20seed='7'/%3E%20%3CfeDisplacementMap%20in='SourceGraphic'%20scale='78'/%3E%20%3CfeGaussianBlur%20stdDeviation='1.1'/%3E%3C/filter%3E%3C/defs%3E%3Cg%20filter='url(%23f)'%3E%3Cg%20fill='url(%23g)'%3E%3Cellipse%20cx='190'%20cy='205'%20rx='140'%20ry='62'/%3E%3Cellipse%20cx='320'%20cy='150'%20rx='115'%20ry='78'/%3E%3Cellipse%20cx='450'%20cy='200'%20rx='125'%20ry='58'/%3E%3Cellipse%20cx='285'%20cy='115'%20rx='75'%20ry='50'/%3E%3Cellipse%20cx='390'%20cy='130'%20rx='65'%20ry='45'/%3E%3C/g%3E%3Cellipse%20cx='320'%20cy='248'%20rx='205'%20ry='26'%20fill='%23b3cbe2'%20opacity='.45'/%3E%3C/g%3E%3C/svg%3E");
  width: 27vw; height: 13.5vw; min-width: 230px; min-height: 115px;
  top: 12%; left: -3%;
  animation: drift 90s ease-in-out infinite alternate;
}
.cloud--2 {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20640%20320'%3E%3Cdefs%3E%3ClinearGradient%20id='g'%20x1='0'%20y1='0'%20x2='0'%20y2='1'%3E%20%3Cstop%20offset='0'%20stop-color='%23ffffff'/%3E%3Cstop%20offset='.68'%20stop-color='%23f3f8fd'/%3E%20%3Cstop%20offset='1'%20stop-color='%23d2e2f2'/%3E%3C/linearGradient%3E%20%3Cfilter%20id='f'%20x='-40%25'%20y='-40%25'%20width='180%25'%20height='180%25'%3E%20%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.011%200.019'%20numOctaves='4'%20seed='13'/%3E%20%3CfeDisplacementMap%20in='SourceGraphic'%20scale='78'/%3E%20%3CfeGaussianBlur%20stdDeviation='1.1'/%3E%3C/filter%3E%3C/defs%3E%3Cg%20filter='url(%23f)'%3E%3Cg%20fill='url(%23g)'%3E%3Cellipse%20cx='170'%20cy='215'%20rx='125'%20ry='55'/%3E%3Cellipse%20cx='300'%20cy='170'%20rx='130'%20ry='85'/%3E%3Cellipse%20cx='455'%20cy='210'%20rx='115'%20ry='52'/%3E%3Cellipse%20cx='360'%20cy='115'%20rx='85'%20ry='58'/%3E%3Cellipse%20cx='240'%20cy='130'%20rx='60'%20ry='42'/%3E%3C/g%3E%3Cellipse%20cx='310'%20cy='252'%20rx='215'%20ry='24'%20fill='%23b3cbe2'%20opacity='.45'/%3E%3C/g%3E%3C/svg%3E");
  width: 34vw; height: 17vw; min-width: 260px; min-height: 130px;
  top: 26%; right: -7%;
  animation: drift 110s ease-in-out infinite alternate-reverse;
}
.cloud--3 {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20640%20320'%3E%3Cdefs%3E%3ClinearGradient%20id='g'%20x1='0'%20y1='0'%20x2='0'%20y2='1'%3E%20%3Cstop%20offset='0'%20stop-color='%23ffffff'/%3E%3Cstop%20offset='.68'%20stop-color='%23f3f8fd'/%3E%20%3Cstop%20offset='1'%20stop-color='%23d2e2f2'/%3E%3C/linearGradient%3E%20%3Cfilter%20id='f'%20x='-40%25'%20y='-40%25'%20width='180%25'%20height='180%25'%3E%20%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.011%200.019'%20numOctaves='4'%20seed='29'/%3E%20%3CfeDisplacementMap%20in='SourceGraphic'%20scale='78'/%3E%20%3CfeGaussianBlur%20stdDeviation='1.1'/%3E%3C/filter%3E%3C/defs%3E%3Cg%20filter='url(%23f)'%3E%3Cg%20fill='url(%23g)'%3E%3Cellipse%20cx='210'%20cy='210'%20rx='150'%20ry='58'/%3E%3Cellipse%20cx='340'%20cy='160'%20rx='105'%20ry='70'/%3E%3Cellipse%20cx='430'%20cy='215'%20rx='95'%20ry='48'/%3E%3Cellipse%20cx='300'%20cy='125'%20rx='65'%20ry='44'/%3E%3C/g%3E%3Cellipse%20cx='320'%20cy='250'%20rx='185'%20ry='24'%20fill='%23b3cbe2'%20opacity='.45'/%3E%3C/g%3E%3C/svg%3E");
  width: 21vw; height: 10.5vw; min-width: 190px; min-height: 95px;
  top: 55%; left: 10%; opacity: 0.88;
  animation: drift 75s ease-in-out infinite alternate;
}
.cloud--4 {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20640%20320'%3E%3Cdefs%3E%3ClinearGradient%20id='g'%20x1='0'%20y1='0'%20x2='0'%20y2='1'%3E%20%3Cstop%20offset='0'%20stop-color='%23ffffff'/%3E%3Cstop%20offset='.68'%20stop-color='%23f3f8fd'/%3E%20%3Cstop%20offset='1'%20stop-color='%23d2e2f2'/%3E%3C/linearGradient%3E%20%3Cfilter%20id='f'%20x='-40%25'%20y='-40%25'%20width='180%25'%20height='180%25'%3E%20%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.011%200.019'%20numOctaves='4'%20seed='13'/%3E%20%3CfeDisplacementMap%20in='SourceGraphic'%20scale='78'/%3E%20%3CfeGaussianBlur%20stdDeviation='1.1'/%3E%3C/filter%3E%3C/defs%3E%3Cg%20filter='url(%23f)'%3E%3Cg%20fill='url(%23g)'%3E%3Cellipse%20cx='170'%20cy='215'%20rx='125'%20ry='55'/%3E%3Cellipse%20cx='300'%20cy='170'%20rx='130'%20ry='85'/%3E%3Cellipse%20cx='455'%20cy='210'%20rx='115'%20ry='52'/%3E%3Cellipse%20cx='360'%20cy='115'%20rx='85'%20ry='58'/%3E%3Cellipse%20cx='240'%20cy='130'%20rx='60'%20ry='42'/%3E%3C/g%3E%3Cellipse%20cx='310'%20cy='252'%20rx='215'%20ry='24'%20fill='%23b3cbe2'%20opacity='.45'/%3E%3C/g%3E%3C/svg%3E");
  width: 17vw; height: 8.5vw; min-width: 160px; min-height: 80px;
  top: 71%; right: 14%; opacity: 0.8;
  animation: drift 100s ease-in-out infinite alternate-reverse;
}

/* Перистые облака: рваные штрихи тем же шумом, полупрозрачные */
.cloud--cirrus {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20800%20160'%3E%3Cdefs%3E%3Cfilter%20id='f'%20x='-30%25'%20y='-80%25'%20width='160%25'%20height='260%25'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.008%200.045'%20numOctaves='3'%20seed='5'/%3E%3CfeDisplacementMap%20in='SourceGraphic'%20scale='60'/%3E%3CfeGaussianBlur%20stdDeviation='2.2'/%3E%3C/filter%3E%3C/defs%3E%3Cg%20filter='url(%23f)'%20fill='%23ffffff'%3E%3Cellipse%20cx='400'%20cy='80'%20rx='330'%20ry='13'%20opacity='.75'/%3E%3Cellipse%20cx='435'%20cy='106'%20rx='255'%20ry='8'%20opacity='.5'/%3E%3Cellipse%20cx='350'%20cy='56'%20rx='240'%20ry='7'%20opacity='.55'/%3E%3C/g%3E%3C/svg%3E");
}
.cloud--5 { top: 18%; left: 8%; width: 58vw; height: 11.6vw; opacity: 0.5; animation: drift 130s ease-in-out infinite alternate; }
.cloud--6 { top: 38%; right: 4%; width: 44vw; height: 8.8vw; opacity: 0.4; animation: drift 105s ease-in-out infinite alternate-reverse; }
.cloud--7 { top: 60%; left: 22%; width: 50vw; height: 10vw; opacity: 0.34; animation: drift 145s ease-in-out infinite alternate; }

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(6vw); }
}

/* Перистые ленты: широкие мягкие полосы, дают глубину плоским
   градиентам дня; тают вместе с облаками к ночи */
.sky__bands { position: absolute; inset: 0; }
.band {
  position: absolute;
  left: -12vw;
  width: 124vw;
  height: 12vh;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.5) 22%,
    rgba(255, 255, 255, 0.2) 48%,
    rgba(255, 255, 255, 0.45) 74%,
    transparent);
  filter: blur(26px);
  opacity: 0.16;
}
.band--1 { top: 16%; animation: band-drift 150s ease-in-out infinite alternate; }
.band--2 { top: 42%; height: 9vh; opacity: 0.12; animation: band-drift 180s ease-in-out infinite alternate-reverse; }
.band--3 { top: 66%; height: 14vh; opacity: 0.1; animation: band-drift 200s ease-in-out infinite alternate; }

@keyframes band-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(5vw); }
}

/* ============ Траектория и самолёт ============ */

.route-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  pointer-events: none;
}

.route-layer svg { width: 100%; height: 100%; overflow: visible; }

/* Авиационная графика ND: моноширинные подписи с тёмным ореолом */
.route-layer text {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  paint-order: stroke;
  stroke: rgba(10, 15, 35, 0.45);
  stroke-width: 3px;
}

/* Радар самолёта: цвет сменяется плавно */
.route-layer .radar { transition: stroke 0.6s ease; }

/* Вейпоинты: двойной круг, внутренняя точка зеленеет по прилёту */
.route-layer .wp-dot {
  fill: rgba(255, 210, 31, 0.25);
  transition: fill 0.45s ease;
}
.route-layer .wp-dot.lit { fill: #35e08c; }

/* ============ Темы секций ============ */

.theme-light { color: var(--ink); }
.theme-dark  { color: var(--night-text); }
section { position: relative; z-index: 2; padding: clamp(4.5rem, 8vw, 7rem) 0; }

/* Дневные секции идут плотнее: связность важнее пауз.
   Большая пауза остаётся перед сменой фазы (симы -> закат). */
.features { padding-top: clamp(3rem, 5vw, 4.5rem); padding-bottom: clamp(3.5rem, 6vw, 5.5rem); }
.editorial { padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.sims { padding-top: clamp(3.5rem, 6vw, 5.5rem); }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 1.25rem;
}

.section-sub {
  max-width: 48ch;
  font-size: 1.08rem;
  margin-bottom: 3rem;
}
.theme-light .section-sub { color: var(--ink-soft); }
.theme-dark .section-sub { color: var(--night-soft); }

/* ============ Кнопки ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.3s ease;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 6px 22px rgba(233, 133, 59, 0.28);
}
.btn--primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(233, 133, 59, 0.4);
}
.btn--primary:hover:active { transform: translateY(-2px) scale(0.97); }

.btn--ghost {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.btn--ghost:hover { background: color-mix(in srgb, currentColor 12%, transparent); }

.btn--sm { padding: 0.65rem 1.3rem; font-size: 0.92rem; }
.btn--lg { padding: 1.15rem 2.5rem; font-size: 1.12rem; }

/* ============ Навигация ============ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  color: var(--ink);
  transition: color 0.5s ease, background 0.4s ease, box-shadow 0.4s ease;
}
/* Шапка уходит выше края экрана: полосу статуса закрывает её собственный
   фон, а не отдельный слой - тот в Safari не рисуется. Содержимое держится
   на месте за счёт верхнего отступа. */


.nav__inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
/* Фон и блюр шапки живут на псевдоэлементе: backdrop-filter на самом
   .nav делает его containing block для fixed-потомков и ломает
   полноэкранное мобильное меню. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 0.4s ease, background 0.4s ease;
}
.nav--scrolled::before { opacity: 1; }
.nav--scrolled { box-shadow: 0 1px 0 rgba(34, 41, 79, 0.08); }
.nav--dark { color: var(--night-text); }
.nav--dark::before { background: var(--chrome); }
.nav--dark.nav--scrolled { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08); }

/* Логотип: светлый знак из фирменного экспорта (1C, пропорции 161:39) */
.nav__logo { display: inline-flex; align-items: center; line-height: 0; }
.nav__logo img { display: block; width: auto; height: 34px; }
.footer .nav__logo img { height: 40px; }
@media (max-width: 700px) { .nav__logo img { height: 28px; } }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav__links a { opacity: 0.82; transition: opacity 0.25s ease; }
.nav__links a:hover { opacity: 1; }
.nav__phone { font-weight: 650; opacity: 1 !important; }

.nav__actions { display: flex; align-items: center; gap: 0.9rem; }

.nav__burger {
  display: none;
  color: inherit;
  font: inherit;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out);
}
body.menu-open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
body.menu-open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ============ Hero: живое фото облаков ============ */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6.5rem 0 4rem;
}

.hero__bg { position: absolute; inset: 0; will-change: transform; }

.hero__bg .base {
  position: absolute;
  inset: 0;
  background: url("assets/sky.jpg") center / cover no-repeat;
}

/* Ленты дрейфа: [кадр][зеркальный кадр][кадр], бесшовный цикл */
.strip {
  position: absolute;
  left: 0;
  width: 100vw;
  overflow: hidden;
  pointer-events: none;
}
.strip__track {
  display: flex;
  width: 300vw;
  height: 100%;
  will-change: transform;
  animation: slide linear infinite;
}
.tile {
  position: relative;
  flex: 0 0 100vw;
  height: 100%;
  overflow: hidden;
}
.tile--mirror { transform: scaleX(-1); }
.tile__img {
  position: absolute;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url("assets/sky.jpg") center / cover no-repeat;
}
@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-200vw); }
}

.strip--far { top: 34vh; height: 20vh; }
.strip--far .strip__track { animation-duration: 300s; }
.strip--far .tile__img { top: -34vh; }
.strip--far {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 34%, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 34%, #000 72%, transparent 100%);
}

.strip--near { top: 50vh; height: 50vh; }
.strip--near .strip__track { animation-duration: 130s; }
.strip--near .tile__img { top: -50vh; }
.strip--near {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24%);
  mask-image: linear-gradient(180deg, transparent 0, #000 24%);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 24, 38, 0.34) 0%, rgba(22, 20, 33, 0.24) 42%, rgba(15, 14, 26, 0.4) 100%);
}
.hero__vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 16vmax rgba(10, 12, 30, 0.35);
}

.hero__stage {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.panel {
  max-width: 880px;
  width: 100%;
  text-align: center;
  color: #fff8ef;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 24px 70px rgba(10, 12, 30, 0.35);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.panel h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-shadow: 0 2px 26px rgba(10, 15, 40, 0.35);
}
.panel__sub {
  margin: 1.4rem auto 0;
  max-width: 52ch;
  font-size: 1.1rem;
  color: rgba(255, 248, 239, 0.85);
}
.panel__cta {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.btn--on-photo { color: #fff8ef; }

/* ============ Переход фото -> небо ============
   Пробой облачности: тёмная кромка фото уходит в сине-серую дымку
   и растворяется в голубом дне. Без ложного заката: оранжевый
   появится только к секции маршрутов. Слой лежит ПОД маршрутом
   (z-index 0), чтобы линия и вейпоинт ОБЛАКА были видны на дымке. */

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8vh;
  z-index: 1;
  background: linear-gradient(180deg, transparent, #26222b 94%);
  pointer-events: none;
}

/* Нить маршрута: пунктир из-под hero-панели вниз, к первому вейпоинту */
.hero__thread {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  width: 2px;
  height: 20vh;
  transform: translateX(-50%);
  background: repeating-linear-gradient(180deg,
    transparent 0 6px, rgba(255, 248, 239, 0.5) 6px 14px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%);
  mask-image: linear-gradient(180deg, transparent, #000 45%);
  pointer-events: none;
}

.skyblend {
  position: relative;
  z-index: 0;
  height: 18vh;
  margin-bottom: -4vh;
  pointer-events: none;
  background: linear-gradient(180deg,
    #26222b 0%,
    #343b52 18%,
    #4f6484 36%,
    #7793b4 54%,
    rgba(160, 196, 230, 0.55) 72%,
    rgba(190, 220, 246, 0.18) 87%,
    transparent 100%);
}

/* ============ Редакционный блок: бортжурнал + текст ============ */

.editorial__grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) 1.5fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
  margin-top: 2.75rem;
}

/* Флайт-лог: вертикальная пунктирная стойка с реальными цифрами.
   Маршрут ND вливается в её верх: линии продолжают друг друга. */
.flightlog {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.1rem;
  padding-left: 2rem;
}
/* Стойка ниже: кольцо ИСТОРИЯ и подпись дышат над первой цифрой */
@media (min-width: 961px) {
  .flightlog { margin-top: 2.6rem; }
}
.flightlog::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  border-left: 2px dashed rgba(34, 41, 79, 0.32);
}
.flightlog__item { position: relative; }
.flightlog__item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 0.45em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 2.5px solid var(--accent-deep);
}
.flightlog__num {
  display: block;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.flightlog__cap {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.93rem;
  color: var(--ink-soft);
  max-width: 24ch;
}

.editorial__body { max-width: 62ch; }
.editorial__lead {
  font-size: 1.32rem;
  line-height: 1.55;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1.4rem;
}
.editorial p:not(.editorial__lead) {
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
  max-width: 62ch;
}

/* ============ Бенто ============ */

.features h2 { max-width: 16ch; }

.bento {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}
.bento__cell {
  grid-column: span 4;
  background: var(--glass-light);
  border: 1px solid var(--glass-light-border);
  border-radius: var(--radius-card);
  padding: 1.9rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(90, 110, 160, 0.1);
  transition: transform 0.55s var(--ease-out), box-shadow 0.55s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .bento__cell:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 50px rgba(90, 110, 160, 0.18);
  }
}
.bento__cell--wide {
  grid-column: span 7;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.bento__cell--wide + .bento__cell { grid-column: span 5; display: flex; flex-direction: column; justify-content: center; }
.bento__cell--tinted {
  background: linear-gradient(135deg, rgba(255, 228, 191, 0.9), rgba(255, 202, 145, 0.85));
  border-color: rgba(255, 255, 255, 0.8);
}
.bento__cell--strip {
  grid-column: span 12;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.4rem 1.9rem;
}
.bento__cell--strip .bento__icon { margin-bottom: 0; flex-shrink: 0; }
.bento__cell--strip h3 { margin-bottom: 0.25rem; }
.bento__cell h3 {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.bento__cell p { font-size: 0.98rem; color: var(--ink-soft); }
.bento__icon {
  font-size: 1.9rem;
  color: var(--accent-deep);
  margin-bottom: 1rem;
  display: inline-block;
}

.bento__visual--horizon {
  position: relative;
  flex: 1;
  min-height: 170px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 108%, rgba(255, 255, 255, 0.28), transparent 55%),
    linear-gradient(180deg, #8fc3ea 0%, #d8ecf9 52%, #ead1a6 56%, #d9ae7d 100%);
}
.bento__visual--horizon::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 52%;
  height: 2px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 2px;
  filter: blur(1px);
}
.horizon-glare {
  position: absolute;
  top: -30%;
  left: -20%;
  width: 70%;
  height: 120%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent 65%);
  transform: rotate(-20deg);
}

/* PFD: питч-шкала и символ самолёта превращают градиент в прибор */
.pfd-ladder {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36%;
  height: 78%;
  transform: translate(-50%, -50%);
  background-image: repeating-linear-gradient(180deg,
    rgba(255, 255, 255, 0.7) 0 2px, transparent 2px 30px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.pfd-craft {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  background: rgba(34, 41, 79, 0.85);
  border-radius: 2px;
}
.pfd-craft::before,
.pfd-craft::after {
  content: "";
  position: absolute;
  top: 3px;
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(34, 41, 79, 0.85);
}
.pfd-craft::before { right: 16px; }
.pfd-craft::after { left: 16px; }

.features__note {
  margin-top: 2.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--glass-light);
  border: 1px solid var(--glass-light-border);
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.features__note i { font-size: 1.25rem; color: var(--accent-deep); }

/* ============ Тренажёры ============ */

.sims__grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.sim-card {
  background: var(--glass-light);
  border: 1px solid var(--glass-light-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(90, 110, 160, 0.12);
  transition: transform 0.55s var(--ease-out), box-shadow 0.55s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .sim-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 54px rgba(90, 110, 160, 0.2);
  }
}
.sim-card__view {
  position: relative;
  height: 215px;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}
.sim-card__view--a320 { background: linear-gradient(180deg, #8fc3ea 0%, #d8e9f2 52%, #f4c78e 100%); }
.sim-card__view--b737 { background: linear-gradient(180deg, #7ba6d4 0%, #c3cfe4 50%, #e79a6b 100%); }
.sim-card__horizon {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 55%;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
  filter: blur(1px);
}
.sim-card__view > i {
  position: relative;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.sim-card__body { padding: 1.75rem; }
.sim-card__body h3 {
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  margin-bottom: 0.6rem;
}
.sim-card__body > p { color: var(--ink-soft); font-size: 1rem; }
.sim-card__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 1.5rem;
}
.sim-card__tags li {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: var(--ink-soft);
}
.sim-card__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* ============ Маршруты ============ */

.routes__scroller {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* Слева выравнивание по контейнеру (под заголовком), справа
     минимальный отступ: в конце прокрутки лента доходит до края */
  padding: 0.5rem 1.25rem 1.5rem max(calc((100vw - 1200px) / 2 + 2.5rem), 1.25rem);
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.routes__scroller::-webkit-scrollbar { display: none; }

.ticket {
  scroll-snap-align: start;
  flex: 0 0 auto;
  min-width: 250px;
  /* Тёмное стекло вместо белого 7%: на закатной фазе неба белый текст
     не добирал контраст AA */
  background: rgba(17, 22, 51, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-chip);
  padding: 1.3rem 1.5rem 1.1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.45s var(--ease-out), background 0.3s ease, border-color 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .ticket:hover {
    transform: translateY(-4px) rotate(-1.2deg);
    background: rgba(17, 22, 51, 0.46);
    border-color: rgba(255, 255, 255, 0.3);
  }
}
.ticket__cities {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  padding-bottom: 0.8rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
}
.ticket__cities i { color: var(--accent); font-size: 1rem; }
.ticket__meta { font-size: 0.88rem; color: var(--night-soft); }

/* ============ Цены ============ */

.prices__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.price-card {
  position: relative;
  background: var(--glass-dark);
  border: 1px solid var(--glass-dark-border);
  border-radius: var(--radius-card);
  padding: 1.9rem 1.6rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.5s var(--ease-out), background 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .price-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.1); }
}
.price-card--hot { border: 1.5px solid var(--accent); box-shadow: 0 0 40px rgba(247, 161, 92, 0.12); }
.price-card__badge {
  position: absolute;
  top: -13px;
  left: 1.4rem;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
}
.price-card__time {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--night-soft);
  margin-bottom: 0.4rem;
}
.price-card__value {
  display: block;
  font-size: 2.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  font-variant-numeric: tabular-nums;
}
.price-card p { font-size: 0.92rem; color: var(--night-soft); }

.prices__foot {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--glass-dark);
  border: 1px solid var(--glass-dark-border);
  border-radius: var(--radius-card);
  padding: 1.5rem 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.prices__foot > div {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
}
.prices__foot p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  color: var(--night-soft);
  font-size: 0.98rem;
  max-width: 58ch;
}
.prices__foot i { font-size: 1.4rem; color: var(--accent); flex-shrink: 0; }

/* ============ Не только полёты ============ */

.extras__grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.extra-card {
  background: var(--glass-dark);
  border: 1px solid var(--glass-dark-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.5s var(--ease-out), background 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .extra-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.1); }
}
.extra-card__icon {
  font-size: 2rem;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 1rem;
}
.extra-card h3 {
  font-size: 1.28rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}
.extra-card p { color: var(--night-soft); font-size: 0.98rem; }
.extra-card__meta {
  display: block;
  margin-top: 1.2rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--accent);
}

/* ============ FAQ ============ */

.faq__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.faq__head .btn { margin-top: 0.5rem; }
.faq__head .section-sub { margin-bottom: 1.5rem; }

.faq-item { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  background: none;
  border: 0;
  color: inherit;
  font-family: inherit;
  font-size: 1.06rem;
  font-weight: 650;
  padding: 1.25rem 0;
  cursor: pointer;
}
.faq-item__q i { font-size: 1.1rem; transition: transform 0.35s var(--ease-out); flex-shrink: 0; color: var(--accent); }
.faq-item.open .faq-item__q i { transform: rotate(180deg); }

.faq-item__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}
.faq-item__a > div { overflow: hidden; min-height: 0; }
.faq-item__a p { padding-bottom: 1.35rem; color: var(--night-soft); max-width: 58ch; }
.faq-item.open .faq-item__a { grid-template-rows: 1fr; }

/* ============ Отзывы ============ */

.reviews__grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.review {
  background: var(--glass-dark);
  border: 1px solid var(--glass-dark-border);
  border-radius: var(--radius-card);
  padding: 1.9rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.review blockquote {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--night-text);
}
.review figcaption {
  margin-top: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.93rem;
  color: var(--night-soft);
}
.review__ava {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 750;
  font-size: 1.05rem;
  color: var(--ink);
  background: linear-gradient(135deg, #f7c98e, #e98da0);
  flex-shrink: 0;
}

/* ============ Финал: посадка ============ */

.final {
  text-align: center;
  padding-bottom: 0;
  overflow: hidden;
}
.final__inner { position: relative; z-index: 2; }
.final h2 {
  font-size: clamp(2.6rem, 6vw, 4.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.final .section-sub { margin-inline: auto; margin-bottom: 2.5rem; }

/* Падающая звезда */
.final::before {
  content: "";
  position: absolute;
  top: 12%;
  left: 62%;
  width: 130px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), transparent);
  transform: rotate(-35deg);
  opacity: 0;
  animation: shoot 9s ease-in 3s infinite;
  pointer-events: none;
}
@keyframes shoot {
  0%   { opacity: 0; transform: rotate(-35deg) translateX(0); }
  3%   { opacity: 0.9; }
  10%  { opacity: 0; transform: rotate(-35deg) translateX(-42vw); }
  100% { opacity: 0; transform: rotate(-35deg) translateX(-42vw); }
}

.runway {
  margin-top: clamp(3rem, 8vw, 5.5rem);
  display: flex;
  justify-content: center;
  perspective: 500px;
}
.runway__strip {
  position: relative;
  width: min(540px, 82vw);
  height: clamp(180px, 30vh, 260px);
  transform: rotateX(52deg);
  transform-origin: bottom center;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.09));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 0;
  overflow: hidden;
}
.runway__center {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 6px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0 24px, transparent 24px 58px);
}
.runway__lights {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6px;
  background-image: radial-gradient(circle, #ffc97e 0 2.5px, transparent 3px);
  background-size: 6px 46px;
  filter: drop-shadow(0 0 6px rgba(255, 180, 90, 0.85));
  animation: approach 1.3s linear infinite;
}
.runway__lights--left { left: 4%; }
.runway__lights--right { right: 4%; }

@keyframes approach {
  from { background-position-y: 0; }
  to   { background-position-y: 46px; }
}

/* ============ Футер ============ */

.footer {
  position: relative;
  z-index: 2;
  padding: 4.5rem 0 2rem;
  color: var(--night-text);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1.2fr 0.8fr 0.8fr;
  gap: 2.5rem;
}
.footer__brand p {
  margin-top: 1.2rem;
  font-size: 0.95rem;
  color: var(--night-soft);
  max-width: 34ch;
}
.footer__col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
}
.footer__col a, .footer__col p {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--night-soft);
  margin-bottom: 0.7rem;
  transition: color 0.25s ease;
}
.footer__col a:hover { color: var(--accent); }
.footer__col i { color: var(--accent); font-size: 1.05rem; }

.footer__bar {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(242, 240, 233, 0.6);
}

/* ============ Скип-линк ============ */

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  transform: translate(-50%, -300%);
  z-index: 70;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* ============ Зерно поверх градиентов ============ */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ============ Промокод с копированием ============ */

.promo {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: 750;
  letter-spacing: 0.04em;
  color: var(--accent);
  border-bottom: 1px dashed rgba(247, 161, 92, 0.55);
  padding: 0 0.1rem;
  cursor: pointer;
  vertical-align: baseline;
}
.promo i { font-size: 1rem; }
.promo:hover { color: #fbb87e; border-bottom-color: #fbb87e; }

/* ============ Тост ============ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translate(-50%, 160%);
  z-index: 65;
  background: rgba(16, 21, 50, 0.92);
  color: var(--night-text);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.4s ease;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ============ Плавающий WhatsApp ============ */

.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 55;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 8px 26px rgba(233, 133, 59, 0.35);
  transition: transform 0.25s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.3s ease;
}
.wa-float:hover {
  background: var(--accent-deep);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(233, 133, 59, 0.45);
}
.wa-float:active { transform: scale(0.95); }

/* ============ Модалка маршрута ============ */

.route-dialog {
  /* Глобальный резет убирает UA margin: auto — возвращаем центрирование */
  margin: auto;
  width: min(560px, calc(100vw - 2.5rem));
  max-height: calc(100dvh - 3rem);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-card);
  background: rgba(16, 21, 50, 0.92);
  color: var(--night-text);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 90px rgba(6, 9, 26, 0.55);
}
.route-dialog::backdrop {
  background: rgba(8, 11, 28, 0.55);
  backdrop-filter: blur(5px);
}
.route-dialog__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: var(--night-soft);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.route-dialog__close:hover { background: rgba(255, 255, 255, 0.14); color: var(--night-text); }
.route-dialog__codes {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.route-dialog h3 {
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  font-weight: 750;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 1rem;
  padding-right: 3rem;
}
.route-dialog__desc { color: var(--night-soft); margin-bottom: 1.1rem; }
.route-dialog__note {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(247, 161, 92, 0.12);
  border: 1px solid rgba(247, 161, 92, 0.3);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  margin-bottom: 1.6rem;
}
.route-dialog__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ============ Стрелки ленты маршрутов (десктоп) ============ */

.routes__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}
.routes__arrows { display: flex; gap: 0.6rem; padding-bottom: 3rem; }
.routes__arrow {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  color: var(--night-text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.25s ease, opacity 0.25s ease, transform 0.2s var(--ease-out);
}
.routes__arrow:hover { background: rgba(255, 255, 255, 0.14); }
.routes__arrow:active { transform: scale(0.94); }
.routes__arrow:disabled { opacity: 0.3; pointer-events: none; }

/* ============ Фото под карточками: раскрытие стрелочкой ============ */

.photos { margin-top: 0.5rem; }
.photos__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: 0;
  border-top: 1px dashed rgba(34, 41, 79, 0.22);
  color: inherit;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  padding: 0.9rem 0 0.2rem;
  cursor: pointer;
}
.photos__label { white-space: nowrap; }
.photos__toggle i {
  font-size: 1.05rem;
  color: var(--accent-deep);
  transition: transform 0.4s var(--ease-out);
  flex-shrink: 0;
}
.photos.open .photos__toggle i { transform: rotate(180deg); }
.photos__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-out);
}
.photos__panel > div { overflow: hidden; min-height: 0; }
.photos.open .photos__panel { grid-template-rows: 1fr; }

/* Плитка: реальное фото поверх плейсхолдера. Пока фото нет,
   onerror удаляет <img> и остаётся тематический плейсхолдер. */
.photos__tile {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  margin: 0.9rem 0 0.2rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.photos.open .photos__tile { opacity: 1; transform: none; }
.photos__tile img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photos__ph {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(255, 255, 255, 0.35), transparent 60%),
    linear-gradient(160deg, #8fc3ea 0%, #b9d8ef 55%, #e7d4b2 100%);
  color: rgba(34, 41, 79, 0.5);
}
.photos__ph i { font-size: 2.1rem; }
.photos__ph b { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.photos__tile figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 0.5rem 0.75rem;
  font-size: 0.74rem;
  font-weight: 650;
  color: #fff8ef;
  background: linear-gradient(180deg, transparent, rgba(10, 12, 30, 0.7));
}
/* В грозовом сценарии плейсхолдер темнее, под настроение */
.bento__cell--tinted .photos__ph {
  background:
    radial-gradient(80% 60% at 30% 10%, rgba(255, 255, 255, 0.2), transparent 55%),
    linear-gradient(160deg, #3b4468 0%, #4d4a84 60%, #6a5a7c 100%);
  color: rgba(242, 240, 233, 0.65);
}

/* ============ Нижний таббар (телефон) ============ */

.tabbar { display: none; }

@media (max-width: 700px) {
  /* Шапка на телефоне сплошная: полупрозрачное стекло давало шов с полосой
     над ней - сверху сплошной цвет меню, ниже просвечивала страница. */
  .nav::before { opacity: 1; background: var(--chrome); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav--dark::before { background: var(--chrome); }

  .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 48;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    height: calc(60px + env(safe-area-inset-bottom, 0px));
    padding: 0 0.4rem env(safe-area-inset-bottom, 0px);
    background: var(--chrome);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .tabbar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    color: rgba(242, 240, 233, 0.78);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.01em;
  }
  .tabbar__item i { font-size: 1.35rem; }
  .tabbar__item:active { transform: scale(0.94); }
  .tabbar__item--cta { position: relative; color: var(--ink); }
  .tabbar__item--cta i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    font-size: 1.15rem;
  }
  .tabbar__item--cta span { color: var(--accent); }

  /* Пальцу нужно 44px, а строчные ссылки давали 23-25. Добавляем высоту
     отступом, а не размером шрифта: текст остаётся прежним. */
  .footer__col a,
  .footer__bar a,
  .crumbs a,
  .contact-list a {
    min-height: 44px;
    padding-block: 0.35rem;
    margin-bottom: 0.25rem;
  }
  .nav__logo { min-height: 44px; display: inline-flex; align-items: center; }
  /* Длинная кнопка с номером не помещалась в 390px и растягивала страницу */
  .btn { max-width: 100%; white-space: normal; text-align: center; }

  body { padding-bottom: calc(60px + 24px + env(safe-area-inset-bottom, 0px)); }
  .wa-float { display: none; }
  .routes__arrows { display: none; }

  /* Облака на телефоне дрейфуют в десять раз быстрее базовой скорости */
  .cloud--1 { animation-duration: 9s; }
  .cloud--2 { animation-duration: 11s; }
  .cloud--3 { animation-duration: 7.5s; }
  .cloud--4 { animation-duration: 10s; }
  .cloud--5 { animation-duration: 13s; }
  .cloud--6 { animation-duration: 10.5s; }
  .cloud--7 { animation-duration: 14.5s; }
  .band--1 { animation-duration: 15s; }
  .band--2 { animation-duration: 18s; }
  .band--3 { animation-duration: 20s; }
}

/* ============ Мобильный HUD: глиссада у правой кромки ============
   На телефоне ND-маршрут прячется за контентом, поэтому его роль
   играет тонкая пунктирная линия снижения с самолётиком и счётчиком
   километров: появляется при скролле, тает при остановке. */

.hud { display: none; }

@media (max-width: 700px) {
  .hud {
    display: block;
    position: fixed;
    right: 11px;
    top: 15vh;
    bottom: 21vh;
    width: 2px;
    z-index: 40;
    background: repeating-linear-gradient(180deg,
      rgba(255, 210, 31, 0.55) 0 6px, transparent 6px 14px);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
  }
  .hud.on { opacity: 1; }
  .hud__plane {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    display: block;
  }
  .hud__plane svg {
    display: block;
    filter: drop-shadow(0 0 3px rgba(10, 15, 35, 0.8));
  }
  .hud__km {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    white-space: nowrap;
    color: rgba(96, 246, 170, 0.95);
    text-shadow: 0 0 4px rgba(10, 15, 35, 0.9), 0 0 8px rgba(10, 15, 35, 0.7);
  }
}

/* ============ Анимация появления ============ */

.reveal { will-change: transform, opacity; }

/* ============ Адаптив ============ */

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  /* Выше шапки всегда её цвет: ни при оттяжке страницы, ни при подвижных
     панелях Safari сверху не появляется просвет. */


  /* Панель разделов под открытой шторкой только мешает */
  body.menu-open .tabbar { display: none; }

  body.menu-open .nav__links {
    display: flex;
    position: fixed;
    inset: 0 0 auto;
    height: 100dvh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-size: 1.4rem;
    background: rgba(12, 17, 48, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--night-text);
    z-index: -1;
    padding-top: 3rem;
  }

  /* Пункты меню заходят каскадом, как борта на посадку */
  body.menu-open .nav__links a {
    opacity: 0;
    transform: translateY(16px);
    animation: menu-in 0.5s var(--ease-out) forwards;
  }
  body.menu-open .nav__links a:nth-child(1) { animation-delay: 0.04s; }
  body.menu-open .nav__links a:nth-child(2) { animation-delay: 0.09s; }
  body.menu-open .nav__links a:nth-child(3) { animation-delay: 0.14s; }
  body.menu-open .nav__links a:nth-child(4) { animation-delay: 0.19s; }
  body.menu-open .nav__links a:nth-child(5) { animation-delay: 0.24s; }
  body.menu-open .nav__links a:nth-child(6) { animation-delay: 0.29s; }

  .bento { grid-template-columns: 1fr; }
  .bento__cell,
  .bento__cell--wide,
  .bento__cell--wide + .bento__cell,
  .bento__cell--strip { grid-column: auto; }
  .bento__cell--strip { flex-direction: column; align-items: flex-start; gap: 0.9rem; }

  .sims__grid { grid-template-columns: 1fr; }
  .editorial__grid { grid-template-columns: 1fr; }
  .editorial__grid .flightlog { order: 2; }
  .faq__grid { grid-template-columns: 1fr; }
  .prices__grid { grid-template-columns: repeat(2, 1fr); }
  .reviews__grid { grid-template-columns: 1fr; }
  .extras__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }

  .prices__foot { flex-direction: column; align-items: flex-start; }
}

@keyframes menu-in {
  to { opacity: 1; transform: none; }
}

/* ============ Телефон: перестановка и уплотнение ============ */

@media (max-width: 700px) {
  /* ND-маршрут на телефоне прячется за контентом: его заменяет HUD */
  .route-layer { display: none; }

  section { padding: clamp(2.75rem, 9vw, 4rem) 0; }

  /* Бенто превращается в компактные строки: иконка слева, текст справа */
  .bento { gap: 0.8rem; }
  .bento__cell:not(.bento__cell--wide) {
    display: grid;
    grid-template-columns: 42px 1fr;
    column-gap: 0.9rem;
    align-items: start;
    padding: 1.15rem 1.25rem;
  }
  .bento__icon {
    font-size: 1.55rem;
    margin-bottom: 0;
    margin-top: 0.1rem;
    grid-row: 1 / span 2;
  }
  /* Фото-блок в карточке-строке занимает обе колонки, не узкую иконочную */
  .bento__cell .photos { grid-column: 1 / -1; }
  .bento__cell--strip { flex-direction: row; gap: 0; }
  .bento__cell h3 { font-size: 1.02rem; margin-bottom: 0.25rem; }
  .bento__cell p { font-size: 0.92rem; }
  .bento__visual--horizon { min-height: 140px; }
  .features__note { align-items: flex-start; text-align: left; }

  /* Отзывы: горизонтальная лента со снапом вместо длинного столбца */
  .reviews__grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * clamp(1.25rem, 4vw, 2.5rem));
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  }
  .reviews__grid::-webkit-scrollbar { display: none; }
  .review { flex: 0 0 82vw; scroll-snap-align: center; }

  .extra-card { padding: 1.5rem; }
  .prices__foot { padding: 1.25rem 1.4rem; }
  .footer__grid { gap: 1.8rem; }
}

/* Тактильный отклик карточек на тап */
@media (hover: none) {
  .ticket:active, .bento__cell:active, .extra-card:active,
  .price-card:active, .review:active { transform: scale(0.98); }
}

@media (max-width: 560px) {
  /* Тарифы: компактные строки, цена справа */
  .prices__grid { grid-template-columns: 1fr; gap: 0.8rem; }
  .price-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 1rem;
    padding: 1.2rem 1.4rem;
  }
  .price-card__time { margin-bottom: 0.15rem; }
  .price-card__value {
    font-size: 1.55rem;
    margin-bottom: 0;
    grid-column: 2;
    grid-row: 1 / span 2;
    text-align: right;
  }
  .price-card p { grid-column: 1; font-size: 0.88rem; }

  .panel__cta .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bar { flex-direction: column; }
  .nav__actions .btn { display: none; }
}

/* ============ Reduced motion ============ */

@media (prefers-reduced-motion: reduce) {
  html, body { scroll-behavior: auto; }
  .sky__sun, .cloud, .band, .stars-b, .runway__lights,
  .strip__track { animation: none; }
  body.menu-open .nav__links a { animation: none; opacity: 1; transform: none; }
  .hud { display: none !important; }
  .final::before { display: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ============ Телефон: прокрутка внутри страницы ============
   В iOS 26 закреплённые элементы обрезаются по видимой области, а сам
   документ продолжается под плавающими кнопками Safari - в этой полосе и
   видно содержимое страницы. Перекрыть её нечем: браузер туда не пускает.
   Поэтому документ перестаёт прокручиваться, а прокрутка уезжает внутрь
   body: видимая область совпадает с раскладочной, и шапка с панелью встают
   вплотную к краям. */
@media (max-width: 700px) {
  html.shell-scroll {
    height: 100%;
    overflow: hidden;
  }
  html.shell-scroll body {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
  }
}

/* Кнопка чата: элемент button, поэтому сбрасываем браузерные поля.
   is-busy показывает, что виджет загружается — нажатие не остаётся без ответа. */
.wa[type="button"], .wa-float[type="button"] {
  padding: 0;
  font: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.wa.is-busy, .wa-float.is-busy { opacity: 0.75; cursor: progress; }
.wa.is-busy i, .wa-float.is-busy i { animation: chat-pulse 0.9s ease-in-out infinite; }
@keyframes chat-pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
