/* ==========================================================================
   Tajik Air — слой «Flight 2026»
   Подключается после css/style.css и переопределяет главный экран.

   1. Токены слоя          5. Направления и лента Facebook
   2. Шапка над героем     6. Карта маршрутов
   3. Кинематографичный    7. Ленты, счётчики, полосы
      главный экран        8. Печать посадочного
   4. Виджет бронирования  9. Адаптив
   ========================================================================== */

/* ── 1. Токены ──────────────────────────────────────────────────────────── */
:root {
  --gold-400: #d3a44c;
  --gold-200: #f0dbb0;
  --deep-900: #04101f;
  --deep-800: #071b33;
  --deep-700: #0a2748;
  --glass: rgba(7, 22, 40, .58);
  --glass-line: rgba(224, 193, 136, .22);
  --shadow-lift: 0 30px 70px -30px rgba(3, 12, 24, .75);
  --ease-out: 520ms cubic-bezier(.16, .84, .3, 1);
}

/* ── 2. Шапка, парящая над героем ───────────────────────────────────────── */
body[data-page="home"] .site-header {
  position: fixed;
  inset: 0 0 auto;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--ease-out), border-color var(--ease-out), backdrop-filter var(--ease-out);
}
body[data-page="home"] .site-header.is-over {
  background: linear-gradient(180deg, rgba(4, 16, 31, .82), rgba(4, 16, 31, 0));
}
body[data-page="home"] .site-header.is-over .utility-bar { background: transparent; }
body[data-page="home"] .site-header.is-over .nav-shell { background: transparent; }
body[data-page="home"] .site-header.is-over .desktop-nav a,
body[data-page="home"] .site-header.is-over .language-button,
body[data-page="home"] .site-header.is-over .icon-button { color: #f2f6fa; }
body[data-page="home"] .site-header.is-over .desktop-nav a::after { background: var(--gold-300); }
body[data-page="home"] .site-header.is-over .desktop-nav a:hover { color: var(--gold-200); }
body[data-page="home"] .site-header.is-over .language-button:hover,
body[data-page="home"] .site-header.is-over .icon-button:hover { background: rgba(255, 255, 255, .12); }
body[data-page="home"] .site-header.is-over .mobile-menu-button span { background: #fff; }
body[data-page="home"] .site-header.is-over .brand-logo { filter: brightness(0) invert(1); }

body[data-page="home"] .site-header.is-stuck {
  background: rgba(255, 255, 255, .94);
  border-bottom-color: var(--line);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 10px 30px -18px rgba(6, 24, 47, .5);
}
body[data-page="home"] .site-header.is-stuck .utility-bar { display: none; }

/* ── 3. Главный экран ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(94vh, 940px);
  display: grid;
  align-content: end;
  padding: clamp(120px, 18vh, 190px) 0 clamp(150px, 20vh, 220px);
  overflow: hidden;
  background: var(--deep-900);
}

.hero-slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 1600ms cubic-bezier(.4, 0, .2, 1);
  will-change: opacity, transform;
}
.hero-slide.is-active { opacity: 1; animation: heroDrift 11s linear forwards; }

@keyframes heroDrift {
  from { transform: scale(1.14) translate3d(1.2%, 0.6%, 0); }
  to   { transform: scale(1.02) translate3d(-1.2%, -0.6%, 0); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(211, 164, 76, .2), transparent 55%),
    linear-gradient(102deg, rgba(3, 12, 24, .93) 0%, rgba(3, 12, 24, .74) 40%, rgba(3, 12, 24, .22) 74%, rgba(3, 12, 24, .5) 100%),
    linear-gradient(0deg, rgba(3, 12, 24, .96) 2%, rgba(3, 12, 24, .28) 42%, transparent 70%);
}

/* Сетка «радара» поверх кадра — фирменная деталь */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .3;
  background-image:
    linear-gradient(rgba(224, 193, 136, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 193, 136, .12) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: radial-gradient(120% 80% at 70% 30%, #000 10%, transparent 72%);
}

/* Летящий самолёт со следом */
.hero-flight {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.hero-path {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.hero-path path {
  fill: none;
  stroke: rgba(224, 193, 136, .34);
  stroke-width: 1.4;
  stroke-dasharray: 7 9;
  stroke-linecap: round;
  animation: pathRun 2.4s linear infinite;
}
@keyframes pathRun { to { stroke-dashoffset: -32; } }

/* Траектория задана один раз переменной: её же использует и след,
   и SVG-пунктир. Под узкие экраны она переопределяется ниже. */
.hero-flight {
  --flight-path: path("M -180 660 C 180 590, 480 430, 780 320 S 1240 120, 1580 40");
}

.hero-craft {
  position: absolute;
  top: 0; left: 0;
  width: clamp(76px, 9vw, 132px);
  color: #fff;
  offset-path: var(--flight-path);
  offset-rotate: auto;
  offset-distance: 0%;
  animation: craftFly 17s cubic-bezier(.36, .1, .62, .92) infinite;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .6));
}
.hero-craft svg { width: 100%; height: auto; display: block; }
@keyframes craftFly {
  0%   { offset-distance: 0%;   opacity: 0; }
  7%   { opacity: 1; }
  84%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* Инверсионный след за самолётом */
.hero-trail {
  position: absolute;
  top: 0; left: 0;
  width: clamp(180px, 26vw, 400px);
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(270deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .06) 60%, transparent);
  offset-path: var(--flight-path);
  offset-rotate: auto;
  offset-anchor: 100% 50%;
  offset-distance: 0%;
  animation: craftFly 17s cubic-bezier(.36, .1, .62, .92) infinite;
  filter: blur(2px);
  opacity: .75;
}

/* Дрейфующие облака */
.hero-clouds { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-clouds i {
  position: absolute;
  display: block;
  height: 140px;
  border-radius: 999px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .14), transparent 72%);
  filter: blur(14px);
}
.hero-clouds i:nth-child(1) { top: 22%; left: -18%; width: 46%; animation: cloudRun 46s linear infinite; }
.hero-clouds i:nth-child(2) { top: 48%; left: -30%; width: 34%; opacity: .7; animation: cloudRun 64s linear infinite 6s; }
.hero-clouds i:nth-child(3) { top: 12%; left: -24%; width: 26%; opacity: .5; animation: cloudRun 82s linear infinite 14s; }
@keyframes cloudRun { to { transform: translateX(190vw); } }

/* Текст */
.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 700px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  padding: 8px 18px 8px 10px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: rgba(9, 26, 47, .5);
  backdrop-filter: blur(8px);
  color: var(--gold-200);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}
.hero-eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 99px;
  background: var(--gold-400);
  box-shadow: 0 0 0 0 rgba(211, 164, 76, .7);
  animation: beacon 2.6s ease-out infinite;
}
@keyframes beacon {
  70%  { box-shadow: 0 0 0 12px rgba(211, 164, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(211, 164, 76, 0); }
}

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}
.hero h1 .accent {
  display: block;
  background: linear-gradient(96deg, var(--gold-200), var(--gold-400) 46%, #a97c2c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.hero-lead {
  max-width: 48ch;
  margin: 22px 0 32px;
  color: #cfdcea;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .button { min-height: 54px; padding: 14px 30px; border-radius: 999px; }
.button-gold {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--gold-300), var(--gold-500));
  box-shadow: 0 16px 36px -16px rgba(211, 164, 76, .85);
}
.button-gold::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg);
  transition: left 700ms ease;
}
.button-gold:hover::after { left: 120%; }

/* Показатели под заголовком */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(22px, 4vw, 52px);
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero-meta div { display: grid; gap: 2px; }
.hero-meta strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero-meta span { color: #93a9be; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* Боковая лента соцсетей */
.hero-rail {
  position: absolute;
  z-index: 4;
  right: clamp(14px, 2.4vw, 34px);
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 10px;
  justify-items: center;
}
.hero-rail a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 99px;
  color: #fff;
  background: rgba(6, 20, 38, .45);
  backdrop-filter: blur(8px);
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}
.hero-rail a:hover { background: var(--gold-500); border-color: var(--gold-300); transform: translateY(-3px); }
.hero-rail svg { width: 17px; height: 17px; fill: currentColor; }
.hero-rail::after {
  content: "";
  width: 1px; height: 74px;
  margin-top: 6px;
  background: linear-gradient(rgba(255, 255, 255, .4), transparent);
}

/* Точки слайдов */
.hero-dots {
  z-index: 4;
  left: max(var(--gutter), calc((100% - var(--container)) / 2));
  right: auto;
  bottom: clamp(150px, 19vh, 210px);
}
.hero-dots button::before { background: rgba(255, 255, 255, .4); }
.hero-dots button.is-active::before { width: 34px; background: var(--gold-300); }

/* Подсказка прокрутки */
.hero-scroll {
  position: absolute;
  z-index: 4;
  bottom: clamp(150px, 19vh, 210px);
  right: max(var(--gutter), calc((100% - var(--container)) / 2));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #b9c9d8;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-scroll i {
  display: block;
  width: 1px; height: 34px;
  background: linear-gradient(rgba(224, 193, 136, .1), var(--gold-300));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%, 100% { opacity: .35; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ── 4. Виджет бронирования ─────────────────────────────────────────────── */
.booking-dock {
  position: relative;
  z-index: 5;
  margin-top: clamp(-130px, -13vh, -96px);
  padding-bottom: clamp(30px, 5vw, 56px);
}
.page-body .booking-dock { margin-top: 0; }

/* Без overflow: hidden — иначе виджет обрезал бы выпадающие списки
   городов и пассажиров. Скругление держат сами вкладки (у них отступ). */
.bk {
  border: 1px solid var(--glass-line);
  border-radius: clamp(16px, 2vw, 24px);
  background: linear-gradient(150deg, rgba(9, 28, 51, .93), rgba(5, 17, 32, .96));
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: var(--shadow-lift);
  color: #eaf1f8;
}

.bk-tabs {
  display: flex;
  gap: 2px;
  padding: 8px 8px 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.bk-tabs::-webkit-scrollbar { display: none; }
.bk-tab {
  position: relative;
  flex-shrink: 0;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 12px 12px 0 0;
  color: #9db0c4;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: color var(--ease), background var(--ease);
}
.bk-tab:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.bk-tab.is-active { color: #fff; background: rgba(255, 255, 255, .08); }
.bk-tab.is-active::after {
  content: "";
  position: absolute;
  left: 22px; right: 22px; bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-400);
}

.bk-body { padding: clamp(18px, 2.4vw, 26px); }
.bk-panel-lead { margin: 0 0 16px; color: #9db0c4; font-size: 0.88rem; }

.bk-trip { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.bk-chip {
  min-height: 38px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: #b6c6d6;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ease);
}
.bk-chip:hover { border-color: rgba(224, 193, 136, .5); color: #fff; }
.bk-chip.is-active { color: var(--deep-900); background: var(--gold-300); border-color: var(--gold-300); }

.bk-row {
  display: grid;
  grid-template-columns: 1.15fr auto 1.15fr 1fr 1fr 1.1fr auto;
  align-items: stretch;
  gap: 8px;
}
.bk-row-slim { grid-template-columns: 1.6fr 1fr auto; }

.bk-field {
  position: relative;
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 74px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  transition: border-color var(--ease), background var(--ease);
}
.bk-field:hover { border-color: rgba(224, 193, 136, .38); }
.bk-field.is-open { border-color: var(--gold-400); background: rgba(255, 255, 255, .08); }
.bk-field.is-off { opacity: .45; }

.bk-label {
  color: #8fa5ba;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.bk-picker {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  padding: 0;
  color: #fff;
  text-align: left;
  cursor: pointer;
}
.bk-code {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--gold-200);
}
.bk-city {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bk-sub { color: #8fa5ba; font-size: 0.76rem; }

.bk-field input[type="date"],
.bk-field input[type="text"],
.bk-field input[type="tel"],
.bk-field select {
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
}
.bk-field select option { color: #16212e; }
.bk-field input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.4);
  opacity: .55;
  cursor: pointer;
}
.bk-upper { text-transform: uppercase; }
.bk-field input::placeholder { color: #6d829a; font-weight: 500; }

.bk-swap {
  align-self: center;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 99px;
  background: rgba(9, 28, 51, .9);
  color: var(--gold-200);
  cursor: pointer;
  transition: transform 420ms var(--ease-out), background var(--ease), border-color var(--ease);
}
.bk-swap svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bk-swap:hover { transform: rotate(180deg); background: var(--gold-500); color: #fff; border-color: var(--gold-400); }

.bk-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 74px;
  padding: 0 30px;
  border-radius: 14px;
  color: var(--deep-900);
  background: linear-gradient(120deg, var(--gold-300), var(--gold-500));
  font-weight: 800;
  font-size: 0.98rem;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 18px 34px -18px rgba(211, 164, 76, .9);
  transition: transform var(--ease), filter var(--ease);
}
.bk-submit svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--ease); }
.bk-submit:hover { filter: brightness(1.07); transform: translateY(-2px); }
.bk-submit:hover svg { transform: translateX(4px); }
.bk-row-slim .bk-submit { min-height: 74px; padding: 0 26px; }

/* Выпадающие панели */
.bk-pop {
  position: absolute;
  z-index: 40;
  top: calc(100% + 10px);
  left: 0;
  min-width: 100%;
  padding: 8px;
  border: 1px solid var(--glass-line);
  border-radius: 16px;
  background: #08203a;
  box-shadow: 0 26px 60px -20px rgba(0, 0, 0, .8);
  animation: popIn 220ms var(--ease-out);
}
@keyframes popIn { from { opacity: 0; transform: translateY(-8px); } }

.bk-pop-list { width: 320px; max-height: min(430px, 60vh); overflow-y: auto; }
.bk-pop-list ul { margin: 0; padding: 0; list-style: none; }
.bk-pop-list button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 12px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 11px;
  text-align: left;
  cursor: pointer;
  transition: background var(--ease);
}
.bk-pop-list button:hover { background: rgba(255, 255, 255, .08); }
.bk-pop-list button.is-active { background: rgba(211, 164, 76, .18); }
.bk-opt-city { color: #fff; font-weight: 700; font-size: 0.95rem; }
.bk-opt-meta { grid-column: 1; color: #8fa5ba; font-size: 0.76rem; }
.bk-opt-code {
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--gold-200);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}

.bk-pop-pax { width: 300px; padding: 14px; }
.bk-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.bk-step strong { display: block; color: #fff; font-size: 0.92rem; }
.bk-step small { color: #8fa5ba; font-size: 0.76rem; }
.bk-step-controls { display: flex; align-items: center; gap: 6px; }
.bk-step-controls button {
  width: 34px; height: 34px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 99px;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--ease);
}
.bk-step-controls button:hover { background: var(--gold-500); border-color: var(--gold-400); }
.bk-step-controls output { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.bk-pop-done {
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  border-radius: 11px;
  color: var(--deep-900);
  background: var(--gold-300);
  font-weight: 700;
  cursor: pointer;
}

/* Расписание в виджете */
.bk-table-wrap { overflow-x: auto; }
.bk-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.bk-table th {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  color: #8fa5ba;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}
.bk-table td { padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .06); vertical-align: middle; }
.bk-table tr:hover td { background: rgba(255, 255, 255, .04); }
.bk-table small { display: block; color: #8fa5ba; font-size: 0.74rem; }
.bk-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-pair { display: inline-flex; align-items: center; gap: 7px; color: var(--gold-200); font-family: var(--font-display); font-size: 1rem; }
.bk-pair i { color: #64798f; font-style: normal; }
.bk-days { display: inline-flex; gap: 3px; }
.bk-days i {
  display: grid;
  place-items: center;
  min-width: 26px;
  padding: 3px 5px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .05);
  color: #5f748a;
  font-style: normal;
  font-size: 0.68rem;
  text-transform: capitalize;
}
.bk-days i.on { color: var(--deep-900); background: var(--gold-300); font-weight: 700; }
.bk-note { margin: 16px 0 0; color: #8fa5ba; font-size: 0.8rem; }
.bk-muted { color: #8fa5ba; font-size: 0.84rem; }

/* ── Результаты поиска ──────────────────────────────────────────────────── */
.booking-out {
  padding: clamp(30px, 5vw, 56px) 0 clamp(46px, 6vw, 76px);
  background:
    radial-gradient(100% 130% at 12% 0%, rgba(20, 65, 111, .16), transparent 60%),
    var(--surface-soft);
  border-bottom: 1px solid var(--line);
  animation: fadeUp 520ms var(--ease-out);
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } }

.bk-fares { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 26px; }
.bk-fare {
  padding: 16px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: all var(--ease);
}
.bk-fare:hover { border-color: var(--gold-500); }
.bk-fare.is-active { border-color: var(--navy-800); box-shadow: inset 0 0 0 1px var(--navy-800); }
.bk-fare strong { display: block; margin-bottom: 8px; color: var(--navy-800); font-size: 1rem; }
.bk-fare ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.bk-fare li { position: relative; padding-left: 18px; color: var(--ink-muted); font-size: 0.82rem; }
.bk-fare li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-600); font-weight: 700; }

.bk-leg-block { margin-bottom: 34px; }
.bk-leg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.bk-leg-head h3 { display: flex; align-items: center; gap: 12px; color: var(--navy-900); font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.bk-leg-head p { margin: 0; color: var(--ink-soft); font-size: 0.88rem; }
.bk-leg-tag {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--navy-100);
  color: var(--navy-800);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bk-strip { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.bk-strip-day {
  flex: 1 0 96px;
  display: grid;
  gap: 2px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all var(--ease);
}
.bk-strip-day:hover { border-color: var(--navy-700); transform: translateY(-2px); }
.bk-strip-day.is-active { border-color: var(--navy-800); background: var(--navy-800); }
.bk-strip-day.is-active .bk-strip-date,
.bk-strip-day.is-active .bk-strip-price { color: #fff; }
.bk-strip-day.is-active .bk-strip-dow { color: var(--gold-300); }
.bk-strip-day.is-empty { opacity: .55; }
.bk-strip-date { color: var(--navy-900); font-size: 0.86rem; font-weight: 700; }
.bk-strip-dow { color: var(--ink-soft); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; }
.bk-strip-price { color: var(--gold-600); font-size: 0.84rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.bk-strip-price i { font-style: normal; font-size: 0.7rem; opacity: .75; }

.bk-flights { display: grid; gap: 12px; }
.bk-flight {
  display: grid;
  grid-template-columns: 1fr 224px;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.bk-flight:hover { border-color: var(--navy-700); box-shadow: 0 18px 40px -26px rgba(6, 24, 47, .6); transform: translateY(-2px); }
.bk-flight.is-picked { border-color: var(--gold-500); box-shadow: inset 0 0 0 1px var(--gold-500); }
.bk-flight.is-sold { opacity: .55; }

.bk-flight-main { padding: 20px 24px; display: grid; gap: 14px; }
.bk-leg { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(12px, 3vw, 30px); }
.bk-leg-point strong { display: block; color: var(--navy-900); font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1; font-variant-numeric: tabular-nums; }
.bk-leg-point span { color: var(--ink-soft); font-size: 0.78rem; }
.bk-leg-end { text-align: right; }
.bk-leg-line { display: grid; justify-items: center; gap: 4px; }
.bk-leg-dur { color: var(--ink-soft); font-size: 0.76rem; font-weight: 600; }
.bk-leg-bar {
  position: relative;
  width: 100%;
  min-width: 90px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 5px, transparent 5px 10px);
}
.bk-leg-bar::before,
.bk-leg-bar::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px; height: 6px;
  margin-top: -3px;
  border-radius: 99px;
  background: var(--navy-700);
}
.bk-leg-bar::before { left: 0; }
.bk-leg-bar::after { right: 0; }
.bk-leg-plane {
  position: absolute;
  top: 50%;
  left: 0;
  width: 18px; height: 18px;
  margin-top: -9px;
  color: var(--gold-500);
  animation: legFly 3.6s cubic-bezier(.5, 0, .5, 1) infinite;
}
.bk-leg-plane svg { width: 100%; height: 100%; fill: currentColor; transform: rotate(90deg); }
@keyframes legFly {
  0%   { left: 0; opacity: 0; }
  12%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { left: calc(100% - 18px); opacity: 0; }
}
.bk-leg-direct { color: var(--ink-soft); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; }

.bk-flight-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--ink-soft); font-size: 0.8rem; }
.bk-badge {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--navy-100);
  color: var(--navy-800);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.bk-hot { color: var(--danger); font-weight: 700; }

.bk-flight-buy {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 20px;
  border-left: 1px dashed var(--line-strong);
  background: var(--surface-soft);
  text-align: center;
}
.bk-price { display: flex; align-items: baseline; gap: 5px; color: var(--navy-900); }
.bk-price b { font-family: var(--font-display); font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.bk-price i { color: var(--gold-600); font-style: normal; font-size: 0.82rem; font-weight: 700; }
.bk-price-note { color: var(--ink-soft); font-size: 0.74rem; }
.bk-pick {
  min-height: 44px;
  margin-top: 8px;
  padding: 10px 26px;
  border-radius: 999px;
  color: #fff;
  background: var(--navy-800);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--ease);
}
.bk-pick:hover { background: var(--navy-700); }
.bk-pick:disabled { background: var(--line-strong); color: var(--ink-soft); cursor: not-allowed; }
.bk-flight.is-picked .bk-pick { color: var(--deep-900); background: var(--gold-500); }

.bk-empty {
  display: grid;
  gap: 6px;
  padding: 30px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
}
.bk-empty strong { color: var(--navy-800); font-size: 1.02rem; }
.bk-empty span { color: var(--ink-soft); font-size: 0.86rem; }

/* Итоговая полоса */
.bk-summary {
  position: sticky;
  bottom: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 18px 24px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--deep-800), var(--deep-700));
  color: #fff;
  box-shadow: var(--shadow-lift);
  animation: fadeUp 400ms var(--ease-out);
}
.bk-summary-legs { display: grid; gap: 3px; flex: 1 1 260px; font-size: 0.86rem; color: #cbd9e6; }
.bk-summary-legs b { color: var(--gold-200); font-variant-numeric: tabular-nums; }
.bk-summary-pax { color: #92a7bc; font-size: 0.8rem; }
.bk-summary-total { display: grid; }
.bk-summary-total span { color: #92a7bc; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.bk-summary-total b { font-family: var(--font-display); font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.bk-next {
  min-height: 52px;
  padding: 14px 34px;
  border-radius: 999px;
  color: var(--deep-900);
  background: linear-gradient(120deg, var(--gold-300), var(--gold-500));
  font-weight: 800;
  cursor: pointer;
  transition: transform var(--ease), filter var(--ease);
}
.bk-next:hover { transform: translateY(-2px); filter: brightness(1.06); }

/* ── Оформление ─────────────────────────────────────────────────────────── */
.bk-checkout { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; animation: fadeUp 420ms var(--ease-out); }
.bk-checkout-main {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}
.bk-checkout-main h3 { margin: 26px 0 6px; color: var(--navy-800); font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.bk-checkout-main h3:first-of-type { margin-top: 16px; }
.bk-back {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--ease);
}
.bk-back:hover { color: var(--navy-800); }

.bk-pax-forms { display: grid; gap: 14px; margin-top: 14px; }
.bk-pax-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
  padding: 18px 20px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}
.bk-pax-card legend {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  margin-left: -8px;
  color: var(--navy-800);
  font-weight: 700;
  font-size: 0.9rem;
}
.bk-pax-n {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 99px;
  background: var(--navy-800);
  color: #fff;
  font-size: 0.74rem;
}
.bk-pax-card label,
.bk-contact-grid label { display: grid; gap: 6px; }
.bk-pax-card label span,
.bk-contact-grid label span { color: var(--ink-soft); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.bk-pax-card input,
.bk-contact-grid input {
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.bk-pax-card input:focus,
.bk-contact-grid input:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(20, 65, 111, .14); }
.bk-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }

.bk-error { margin: 14px 0 0; color: var(--danger); font-size: 0.86rem; font-weight: 600; min-height: 1em; }

.bk-checkout-side {
  position: sticky;
  top: 96px;
  padding: 24px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--deep-800), var(--deep-700));
  color: #fff;
  box-shadow: var(--shadow-lift);
}
.bk-checkout-side h3 { margin: 0 0 14px; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.bk-order { display: grid; gap: 12px; padding-bottom: 14px; }
.bk-order-leg { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.bk-order-tag { color: var(--gold-200); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.bk-order-leg strong { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.04em; }
.bk-order-leg small { color: #a4b8cb; font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.bk-order-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .14);
  color: #a4b8cb;
  font-size: 0.86rem;
}
.bk-order-row b { color: #fff; }
.bk-order-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 14px; }
.bk-order-total span { color: #a4b8cb; font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; }
.bk-order-total b { font-family: var(--font-display); font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.bk-order-total i { color: var(--gold-300); font-style: normal; font-size: 0.9rem; }
.bk-confirm {
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  border-radius: 999px;
  color: var(--deep-900);
  background: linear-gradient(120deg, var(--gold-300), var(--gold-500));
  font-weight: 800;
  cursor: pointer;
  transition: transform var(--ease), filter var(--ease);
}
.bk-confirm:hover { transform: translateY(-2px); filter: brightness(1.06); }
.bk-fineprint { margin: 12px 0 0; color: #8ea3b8; font-size: 0.76rem; }
.bk-fineprint-warn { padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .1); color: var(--gold-200); }

/* ── Подтверждение и билет ──────────────────────────────────────────────── */
.bk-done { display: grid; place-items: center; animation: fadeUp 460ms var(--ease-out); }
.bk-done-card {
  width: min(100%, 620px);
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--deep-800), var(--deep-900));
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-lift);
}
.bk-done-mark {
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  margin: 0 auto 18px;
  border-radius: 99px;
  background: rgba(15, 107, 79, .28);
  border: 1px solid rgba(80, 200, 155, .5);
}
.bk-done-mark svg { width: 28px; height: 28px; fill: none; stroke: #6fe0b0; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bk-done-card h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; }
.bk-done-card > p { color: #b3c5d6; font-size: 0.92rem; }
.bk-ref {
  display: inline-grid;
  gap: 2px;
  margin: 18px 0;
  padding: 14px 34px;
  border: 1px dashed var(--gold-500);
  border-radius: var(--radius);
  background: rgba(211, 164, 76, .1);
}
.bk-ref span { color: var(--gold-200); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; }
.bk-ref b { font-family: var(--font-display); font-size: 2rem; letter-spacing: 0.14em; }

.bk-boarding { display: grid; gap: 10px; margin: 16px 0 20px; }
.bk-boarding-leg {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
  text-align: left;
}
.bk-boarding-leg b { display: block; font-family: var(--font-display); font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.bk-boarding-leg span { color: var(--gold-200); font-size: 0.8rem; letter-spacing: 0.1em; }
.bk-boarding-end { text-align: right; }
.bk-boarding-mid { display: grid; justify-items: center; gap: 2px; color: #8ea3b8; }
.bk-boarding-mid i { color: var(--gold-300); font-style: normal; font-size: 1.05rem; }
.bk-boarding-mid small { font-size: 0.72rem; font-variant-numeric: tabular-nums; }

.bk-done-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; }
.bk-call-label { color: #8ea3b8; font-size: 0.8rem; }
.bk-call {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border: 1px solid var(--gold-500);
  border-radius: 999px;
  color: var(--gold-200);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: all var(--ease);
}
.bk-call:hover { background: var(--gold-500); color: var(--deep-900); }
.bk-restart, .bk-print {
  min-height: 46px;
  padding: 10px 24px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ease);
}
.bk-restart:hover, .bk-print:hover { background: rgba(255, 255, 255, .12); }

/* Статус и «мой билет» внутри виджета */
.bk-status-list { display: grid; gap: 8px; margin-top: 18px; }
.bk-status-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  font-size: 0.88rem;
}
.bk-status-row .bk-badge { background: rgba(224, 193, 136, .16); color: var(--gold-200); }
.bk-status-route { color: #cbd9e6; font-variant-numeric: tabular-nums; }
.bk-status-route b { color: #fff; }
.bk-status-plane { color: #8fa5ba; font-size: 0.8rem; }
.bk-status-tag { padding: 5px 12px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; white-space: nowrap; }
.bk-st-ok { background: rgba(80, 200, 155, .18); color: #7fe3ba; }
.bk-st-live { background: rgba(224, 193, 136, .2); color: var(--gold-200); }
.bk-st-air { background: rgba(96, 165, 250, .2); color: #a8cbfb; }
.bk-st-past { background: rgba(255, 255, 255, .08); color: #9db0c4; }
.bk-st-warn { background: rgba(163, 45, 45, .28); color: #f3a9a9; }

.bk-saved { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); }
.bk-saved h3 { margin: 0 0 12px; color: #fff; font-family: var(--font-sans); font-size: 0.86rem; letter-spacing: 0.06em; text-transform: uppercase; }
.bk-saved-list { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-saved-item {
  display: grid;
  gap: 2px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: all var(--ease);
}
.bk-saved-item:hover { border-color: var(--gold-400); background: rgba(255, 255, 255, .06); }
.bk-saved-item strong { color: var(--gold-200); font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.1em; }
.bk-saved-item span { color: #cbd9e6; font-size: 0.82rem; }
.bk-saved-item small { color: #8fa5ba; font-size: 0.74rem; }

.bk-ticket {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
}
.bk-ticket-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bk-ticket-head span { color: #8fa5ba; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.bk-ticket-head b { color: var(--gold-200); font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.14em; }
.bk-ticket-pax { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 4px; color: #cbd9e6; font-size: 0.9rem; }
.bk-error.is-visible { margin-top: 16px; color: #f3a9a9; }

/* ── 5. Карточки направлений ────────────────────────────────────────────── */
.fares-section { position: relative; overflow: hidden; }
.destination-grid.is-fares { grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); }
.destination-card {
  border-radius: var(--radius-lg);
  transition: transform 520ms var(--ease-out), box-shadow 520ms var(--ease-out);
}
.destination-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px rgba(6, 24, 47, .8); }
.destination-card img { transition: transform 900ms var(--ease-out); }

.destination-copy .dest-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #b9cbdd;
  font-size: 0.76rem;
}
.destination-copy .dest-time::before { content: "✈"; color: var(--gold-300); }

/* ── 6. Карта маршрутов ─────────────────────────────────────────────────── */
.map-band {
  position: relative;
  padding: clamp(58px, 8vw, 100px) 0;
  color: #fff;
  background:
    radial-gradient(90% 120% at 82% 12%, rgba(20, 65, 111, .55), transparent 62%),
    linear-gradient(160deg, var(--deep-900), #061c34 60%, var(--deep-900));
  overflow: hidden;
}
.map-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(224, 193, 136, .16) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent 76%);
  opacity: .5;
}
.map-inner { position: relative; display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
.map-copy h2 { color: #fff; }
.map-copy p { color: #b3c5d6; }
.map-legend { display: grid; gap: 10px; margin-top: 26px; }
.map-legend button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  color: #cbd9e6;
  text-align: left;
  cursor: pointer;
  transition: all var(--ease);
}
.map-legend button:hover,
.map-legend button.is-active { border-color: var(--gold-500); background: rgba(211, 164, 76, .12); color: #fff; }
.map-legend .m-code { color: var(--gold-200); font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.06em; }
.map-legend .m-price { color: var(--gold-200); font-size: 0.86rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.map-stage { position: relative; }
.map-stage svg { width: 100%; height: auto; overflow: visible; }
.map-arc {
  fill: none;
  stroke: rgba(224, 193, 136, .5);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: var(--len, 600);
  stroke-dashoffset: var(--len, 600);
}
.map-stage.is-live .map-arc { animation: arcDraw 1.5s cubic-bezier(.5, 0, .2, 1) forwards; }
@keyframes arcDraw { to { stroke-dashoffset: 0; } }
.map-arc.is-hot { stroke: var(--gold-300); stroke-width: 2.6; filter: drop-shadow(0 0 10px rgba(224, 193, 136, .8)); }

.map-node circle { fill: var(--gold-300); }
.map-node.base circle { fill: #fff; }
.map-node text { fill: #d8e4ef; font-size: 13px; font-weight: 600; font-family: var(--font-sans); }
.map-node.base text { fill: #fff; font-size: 15px; }
.map-pulse { fill: none; stroke: var(--gold-300); stroke-width: 1.4; opacity: 0; transform-origin: center; }
.map-stage.is-live .map-pulse { animation: nodePulse 2.8s ease-out infinite; }
@keyframes nodePulse {
  0%   { r: 5; opacity: .85; }
  100% { r: 22; opacity: 0; }
}
.map-spark { fill: #fff; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .9)); }

/* ── 7. Ленты, счётчики, полосы ─────────────────────────────────────────── */
.ticker {
  position: relative;
  padding: 14px 0;
  border-block: 1px solid var(--glass-line);
  background: var(--deep-900);
  color: var(--gold-200);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; gap: 46px; width: max-content; animation: tickerRun 42s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { display: inline-flex; align-items: center; gap: 12px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
.ticker span::before { content: "✈"; color: var(--gold-500); }
@keyframes tickerRun { to { transform: translateX(-50%); } }

.advantage-card {
  position: relative;
  overflow: hidden;
  transition: transform var(--ease-out), border-color var(--ease), box-shadow var(--ease-out);
}
.advantage-card:hover { transform: translateY(-4px); border-color: var(--gold-500); box-shadow: 0 24px 50px -32px rgba(6, 24, 47, .7); }
.advantage-card .adv-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(211, 164, 76, .2), rgba(20, 65, 111, .12));
  color: var(--gold-600);
}
.advantage-card .adv-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.advantage-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 160px; height: 160px;
  border-radius: 99px;
  background: radial-gradient(closest-side, rgba(211, 164, 76, .16), transparent);
  opacity: 0;
  transition: opacity var(--ease-out);
}
.advantage-card:hover::after { opacity: 1; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 720ms var(--ease-out), transform 720ms var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

.stat-row strong[data-count] { font-variant-numeric: tabular-nums; }

/* ── 8. Печать посадочного ──────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .hero, .booking-dock, .bk-done-actions,
  .ticker, .map-band, .section, .contact-cta, .booking-band { display: none !important; }
  .booking-out { padding: 0; background: #fff; }
  .bk-done-card { border: 1px solid #000; background: #fff; color: #000; box-shadow: none; }
  .bk-done-card h3, .bk-ref b, .bk-boarding-leg b, .bk-order-total b { color: #000; }
  .bk-boarding-leg { background: #f2f2f2; }
  .bk-boarding-leg span, .bk-order-tag, .bk-ref span { color: #444; }
}

/* ── 9. Адаптив ─────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .bk-row { grid-template-columns: 1fr auto 1fr 1fr; }
  .bk-row .bk-pax { grid-column: span 2; }
  .bk-row .bk-submit { grid-column: span 2; min-height: 60px; }
  .map-inner { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .bk-checkout { grid-template-columns: 1fr; }
  .bk-checkout-side { position: static; }
  .hero-rail { display: none; }
  .hero-scroll { display: none; }
}

@media (max-width: 860px) {
  body[data-page="home"] .site-header { position: sticky; }
  .hero { min-height: auto; padding: clamp(90px, 16vh, 130px) 0 clamp(120px, 16vh, 150px); }
  .hero-craft { width: 82px; }
  .hero-dots { bottom: 118px; }
  .booking-dock { margin-top: -84px; }
  .bk-row { grid-template-columns: 1fr 1fr; }
  .bk-row .bk-place { grid-column: span 1; }
  .bk-swap {
    grid-column: span 2;
    justify-self: center;
    width: 38px; height: 38px;
    transform: rotate(90deg);
  }
  .bk-swap:hover { transform: rotate(270deg); }
  .bk-row .bk-pax, .bk-row .bk-submit { grid-column: span 2; }
  .bk-row-slim { grid-template-columns: 1fr; }
  .bk-flight { grid-template-columns: 1fr; }
  .bk-flight-buy {
    grid-auto-flow: column;
    align-items: center;
    justify-items: start;
    justify-content: space-between;
    border-left: 0;
    border-top: 1px dashed var(--line-strong);
    text-align: left;
  }
  .bk-flight-buy .bk-pick { margin-top: 0; grid-row: span 2; align-self: center; }
  .bk-price-note { display: none; }
  .bk-pop-list, .bk-pop-pax { width: min(86vw, 320px); }
  .bk-summary { position: static; }
  .bk-pax-card, .bk-contact-grid { grid-template-columns: 1fr; }
  .bk-status-row { grid-template-columns: auto 1fr; }
  .bk-status-plane { display: none; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: 2.35rem; }
  .hero-meta { gap: 18px; }
  .hero-dots { display: none; }
  .bk-body { padding: 14px; }
  .bk-tab { padding: 12px 15px; font-size: 0.84rem; }
  .bk-field { min-height: 66px; padding: 9px 13px; }
  .bk-code { font-size: 1.25rem; }
  .bk-leg { gap: 10px; }
  .bk-leg-line { display: none; }
  .bk-leg { grid-template-columns: 1fr auto; }
  .bk-ref b { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active,
  .hero-craft, .hero-trail, .hero-clouds i, .hero-path path,
  .bk-leg-plane, .ticker-track, .map-pulse, .hero-scroll i, .hero-eyebrow::before {
    animation: none !important;
  }
  .hero-craft, .hero-trail { offset-distance: 62%; opacity: 1; }
  .map-stage .map-arc { stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Виджет на внутренней странице ──────────────────────────────────────── */
.page-body .booking-out {
  margin: 22px 0 30px;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.page-body .booking-out .container { width: 100%; padding: 0; }
.page-body .bk-summary { position: static; }
.prose .booking-dock { margin: 18px 0 26px; padding-bottom: 0; }

/* Карточки направлений с тарифом */
.travel-card { position: relative; }
.travel-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 14px 0 0 !important;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  color: #b9cbdd !important;
  font-size: 0.82rem;
}
.travel-facts > span:first-child::before { content: "✈ "; color: var(--gold-300); }
.travel-book {
  margin-left: auto;
  padding: 8px 18px;
  border: 1px solid var(--gold-500);
  border-radius: 999px;
  color: var(--gold-200);
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--ease), color var(--ease);
}
.travel-book:hover { background: var(--gold-500); color: var(--deep-900); }

/* ── Плотная компоновка главного экрана на телефоне ─────────────────────── */
@media (max-width: 620px) {
  .hero { padding: clamp(84px, 14vh, 112px) 0 clamp(92px, 13vh, 118px); }
  .hero-eyebrow {
    gap: 9px;
    margin-bottom: 16px;
    padding: 7px 14px 7px 9px;
    font-size: 0.64rem;
    letter-spacing: 0.1em;
  }
  .hero-lead { margin: 16px 0 24px; font-size: 0.95rem; }
  .hero-actions { gap: 10px; }
  .hero-actions .button { width: 100%; justify-content: center; }
  .hero-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 26px;
    padding-top: 18px;
  }
  .hero-meta strong { font-size: 1.4rem; }
  .hero-meta span { font-size: 0.62rem; letter-spacing: 0.05em; }
  .booking-dock { margin-top: -72px; }
}

/* ── Траектория самолёта под ширину экрана ──────────────────────────────── */
/* Форма одна и та же, координаты пересчитаны под размер главного экрана,
   поэтому пунктир в SVG и сам самолёт совпадают на любом устройстве. */
@media (max-width: 1180px) {
  .hero-flight { --flight-path: path("M -129 614 C 129 549, 343 400, 557 298 S 886 112, 1129 38"); }
}
@media (max-width: 620px) {
  .hero-flight { --flight-path: path("M -48 515 C 48 461, 129 336, 209 250 S 332 94, 423 32"); }
}

/* ── Поддержка Safari и старых движков ──────────────────────────────────── */
.hero-eyebrow,
.hero-rail a { -webkit-backdrop-filter: blur(8px); }
.bk { -webkit-backdrop-filter: blur(22px) saturate(140%); }
body[data-page="home"] .site-header.is-stuck { -webkit-backdrop-filter: saturate(160%) blur(14px); }

.hero-grid { -webkit-mask-image: radial-gradient(120% 80% at 70% 30%, #000 10%, transparent 72%); }
.map-band::before { -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent 76%); }
.ticker { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }

/* Если offset-path не поддерживается, самолёт всё равно пересекает экран. */
@supports not (offset-path: path("M 0 0 L 1 1")) {
  .hero-craft, .hero-trail {
    top: 34%;
    left: 0;
    offset-distance: 0%;
    animation-name: craftFallback;
  }
  .hero-trail { top: calc(34% + 16px); }
  @keyframes craftFallback {
    0%   { transform: translate3d(-24vw, 90px, 0) rotate(-9deg); opacity: 0; }
    8%   { opacity: 1; }
    85%  { opacity: 1; }
    100% { transform: translate3d(118vw, -150px, 0) rotate(-9deg); opacity: 0; }
  }
}

/* ── Лента Facebook ─────────────────────────────────────────────────────────
   Слева — текст и ссылка на страницу, справа — окно с лентой. Сам iframe
   подключается только после нажатия кнопки (js/experience.js). */
.fb-section { padding-top: 0; }

.fb-band {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 500px);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  padding: clamp(24px, 3.4vw, 42px);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(90% 130% at 88% 10%, rgba(20, 65, 111, .5), transparent 60%),
    linear-gradient(155deg, var(--deep-800), var(--deep-900));
  box-shadow: var(--shadow-lift);
}
.prose .fb-band { margin-top: 34px; }

.fb-band-copy h2 { color: #fff; }
.fb-band-copy p { max-width: 46ch; margin: 14px 0 24px; color: #b3c5d6; font-size: 0.95rem; }
.fb-band-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gold-300);
}
.fb-band-copy .eyebrow::before {
  content: "f";
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: #1877f2;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: none;
}
.fb-band-copy .button-quiet {
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .06);
}
.fb-band-copy .button-quiet:hover { border-color: var(--gold-300); background: rgba(255, 255, 255, .14); }

.fb-band-stage {
  position: relative;
  min-height: 420px;
  height: 760px;
  max-height: 76vh;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
  overflow: hidden;
}
.fb-band-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 420ms var(--ease-out);
}
.fb-band-stage.is-live { background: #fff; }
.fb-band-stage.is-live iframe { opacity: 1; }

/* Кнопка-заглушка поверх окна */
.fb-start {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  width: 100%;
  padding: 24px;
  color: #fff;
  cursor: pointer;
  text-align: center;
  transition: background var(--ease), opacity var(--ease-out);
}
.fb-start:hover { background: rgba(255, 255, 255, .06); }
.fb-start strong { font-size: 1.02rem; }
.fb-start small { color: #93a9be; font-size: 0.78rem; }
.fb-start-icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: #1877f2;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.9rem;
  font-weight: 700;
  box-shadow: 0 14px 30px -14px rgba(24, 119, 242, .9);
}
.fb-band-stage.is-loading .fb-start strong { opacity: .55; }
.fb-band-stage.is-loading .fb-start-icon { animation: fbPulse 1.2s ease-in-out infinite; }
@keyframes fbPulse { 50% { transform: scale(.9); opacity: .6; } }
.fb-band-stage.is-live .fb-start { opacity: 0; pointer-events: none; }

/* Запасная ссылка, если лента не отвечает */
.fb-fallback {
  position: absolute;
  z-index: 1;
  left: 0; right: 0; bottom: 0;
  margin: 0;
  padding: 16px 20px;
  background: rgba(4, 16, 31, .92);
  color: #b3c5d6;
  font-size: 0.84rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease-out);
}
.fb-fallback a { color: var(--gold-200); font-weight: 700; }
.fb-band-stage.is-slow:not(.is-live) .fb-fallback { opacity: 1; pointer-events: auto; }

@media (max-width: 900px) {
  .fb-band { grid-template-columns: 1fr; }
  .fb-band-stage { height: 620px; max-height: none; }
}
@media (max-width: 520px) {
  .fb-band { padding: 20px 16px; }
  .fb-band-stage { height: 560px; }
}

/* Полоса поиска без цен: кнопка «Выбрать» центрируется по карточке */
.bk-flight-buy.is-quiet { align-content: center; }
.bk-flight-buy.is-quiet .bk-pick { margin-top: 0; }
.bk-strip-mark { color: var(--gold-600); font-style: normal; }
.bk-strip-day.is-active .bk-strip-mark { color: var(--gold-300); }
.bk-summary-hint { color: var(--gold-200); font-size: 0.86rem; font-weight: 600; }
.bk-order-total-quiet { display: block; padding-top: 12px; }
.bk-order-total-quiet b {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gold-200);
}

/* ── Выпадающие списки: не выходят за край экрана ───────────────────────── */
.bk-pop { max-width: calc(100vw - 2 * var(--gutter)); }
/* Пассажиры — крайнее правое поле, раскрываем список влево. */
.bk-pax .bk-pop { left: auto; right: 0; }

/* На телефоне поля идут в одну колонку, поэтому списки открываются вправо
   от левого края поля — переопределять ничего не нужно. */
