/* ========================================================================== 
   АВИАЦЕНЫ.РФ — ОСНОВНАЯ ТЕМА
   Цвета, типографика и переменные поисковой формы.
   ========================================================================== */
:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #eef4fb;
  --text: #14213d;
  --muted: #66758f;
  --line: rgba(20, 33, 61, .11);
  --line-strong: rgba(20, 33, 61, .18);
  --primary: #2563eb;
  --primary-dark: #1748b8;
  --primary-soft: #eaf1ff;
  --accent: #12b981;
  --navy: #06162f;
  --navy-2: #0b2b64;
  --navy-3: #2256b5;
  --shadow: 0 22px 64px rgba(17, 39, 82, .13);
  --shadow-soft: 0 12px 34px rgba(17, 39, 82, .07);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 15px;

  /* Переменные оформления поисковой формы */
  --tpwl-main-text: var(--text);
  --tpwl-links: var(--primary);
  --tpwl-headline-text: #fff;
  --tpwl-search-form-background: #ffffff;
  --tpwl-search-result-background: #ffffff;
  --tpwl-font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease; }
a:hover { color: var(--primary-dark); }
button, input, select, textarea { font: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 9999; padding: 10px 14px; border-radius: 10px; background: #fff; color: #111; box-shadow: var(--shadow); }

/* ========================================================================== 
   ВЕРХНЯЯ БРЕНДОВАЯ СТРОКА
   Коротко объясняет назначение сайта и содержит сервисные ссылки.
   ========================================================================== */
.topline { background: var(--navy); color: #cbd5e1; font-size: 13px; }
.topline__inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topline strong { color: #fff; }
.topline__links { display: flex; gap: 15px; white-space: nowrap; }
.topline__links a { color: #e4eaf3; }
.topline__links a:hover { color: #fff; }

/* ========================================================================== 
   ОСНОВНОЙ HEADER / НАВИГАЦИЯ
   На мобильном меню раскрывается кнопкой-гамбургером.
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 12px 0;
  color: #fff;
  background:
    radial-gradient(circle at 9% 25%, rgba(18, 185, 129, .25), transparent 29%),
    radial-gradient(circle at 91% 8%, rgba(96, 165, 250, .34), transparent 34%),
    linear-gradient(135deg, #071b46 0%, #0d2b66 47%, #1d4fa9 100%);
  box-shadow: 0 10px 28px rgba(7, 27, 70, .27);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; }
.logo { display: inline-flex; align-items: center; gap: 11px; color: #fff; white-space: nowrap; }
.logo:hover { color: #fff; }
.logo__mark { width: 41px; height: 41px; display: grid; place-items: center; border-radius: 13px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.19); }
.logo__mark svg { width: 22px; height: 22px; fill: #fff; }
.logo__name { display: block; font-size: 19px; line-height: 1; letter-spacing: -.025em; font-weight: 800; }
.logo__caption { display: block; margin-top: 4px; color: rgba(255,255,255,.67); font-size: 11px; font-weight: 650; }
.nav { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.nav a { padding: 8px 11px; border-radius: 999px; color: rgba(255,255,255,.9); background: rgba(255,255,255,.075); box-shadow: inset 0 0 0 1px rgba(255,255,255,.10); font-size: 13.5px; font-weight: 700; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.15); }
.nav__cta { color: #082056 !important; background: #fff !important; box-shadow: 0 9px 22px rgba(0,0,0,.16) !important; font-weight: 800 !important; }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(255,255,255,.18); border-radius: 13px; background: rgba(255,255,255,.10); align-items: center; justify-content: center; flex-direction: column; gap: 4px; cursor: pointer; }
.nav-toggle span { width: 18px; height: 2px; border-radius: 9px; background: #fff; }

/* ========================================================================== 
   HERO ГЛАВНОЙ
   Основной коммерческий интент + компактный блок «как работает сервис».
   ========================================================================== */
.hero {
  padding: 31px 0 63px;
  color: #fff;
  background:
    radial-gradient(circle at 10% 22%, rgba(18, 185, 129, .25), transparent 30%),
    radial-gradient(circle at 90% 6%, rgba(96, 165, 250, .35), transparent 35%),
    linear-gradient(135deg, #071b46 0%, #0d2b66 47%, #1d4fa9 100%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.hero__copy { padding-top: 3px; }
.hero h1 { max-width: 810px; margin: 0 0 12px; font-size: clamp(30px, 4vw, 37px); line-height: 1.08; letter-spacing: -.038em; font-weight: 820; }
.hero__lead { max-width: 790px; margin: 0; color: rgba(255,255,255,.84); font-size: 16px; line-height: 1.58; }
.hero__meta { display: grid; gap: 9px; padding: 15px 16px; border: 1px solid rgba(255,255,255,.15); border-radius: 18px; background: rgba(255,255,255,.075); backdrop-filter: blur(5px); }
.meta-row { display: flex; justify-content: space-between; gap: 15px; padding-bottom: 9px; border-bottom: 1px solid rgba(255,255,255,.11); color: #cbd5e1; font-size: 12.5px; }
.meta-row:last-child { padding-bottom: 0; border-bottom: 0; }
.meta-row strong { color: #fff; font-size: 13.5px; font-weight: 760; text-align: right; }

/* ========================================================================== 
   ФОРМА ПОИСКА АВИАБИЛЕТОВ
   Белая карточка перекрывает нижнюю границу hero.
   ========================================================================== */
.search-section { position: relative; z-index: 8; padding: 0 0 10px; }
.search-card {
  margin-top: -40px;
  padding: 15px;
  border: 1px solid rgba(20,33,61,.08);
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(17,39,82,.10);
}
.search-card--landing { margin-top: 0; }
.search-card__top { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 0 10px; padding: 0 4px; color: var(--muted); font-size: 13.5px; }
.search-card__top strong { color: var(--text); font-size: 15px; font-weight: 760; }
.search-note { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.pill { padding: 6px 9px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-size: 11.5px; font-weight: 780; white-space: nowrap; }
.search-trust { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.search-trust span::before { content: "✓"; margin-right: 6px; color: var(--accent); font-weight: 900; }
.landing-search { padding: 0 0 25px; }

/* ========================================================================== 
   ОБЩИЕ СЕКЦИИ И ЗАГОЛОВКИ
   Ограниченная ширина текста не даёт заголовкам растягиваться на весь экран.
   ========================================================================== */
.section { padding: 49px 0; }
.section--tight { padding-top: 32px; }
.section--compact { padding: 30px 0; }
.section--soft { background: var(--surface-soft); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; margin-bottom: 23px; }
.section__head-main { width: min(820px, 100%); }
.section__head--compact { margin-bottom: 18px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 9px; color: var(--primary); font-size: 12px; line-height: 1.2; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.kicker::before { content: ""; width: 21px; height: 2px; border-radius: 99px; background: currentColor; }
.kicker--light { color: #cfe0ff; }
.section h2, .panel h2, .price-factors h2, .route-info-card h2 { margin: 0; font-size: clamp(23px, 2.4vw, 31px); line-height: 1.16; letter-spacing: -.028em; font-weight: 800; }
.section__lead { max-width: 800px; margin: 10px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.section__link, .text-link { color: var(--primary); font-size: 13.5px; font-weight: 780; white-space: nowrap; }
.section__link:hover, .text-link:hover { color: var(--primary-dark); }
.text-link { display: inline-flex; margin-top: 15px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 17px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.button--light { color: #092557; background: #fff; }
.button--light:hover { color: #092557; transform: translateY(-1px); }

/* ========================================================================== 
   6 ПОПУЛЯРНЫХ НАПРАВЛЕНИЙ
   Desktop: 3×2. Mobile: горизонтальный свайп без стрелок.
   Внутри — фото города + реальные популярные города вылета из ценовых данных.
   ========================================================================== */
.destination-showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.travel-destination { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 21px; background: #fff; box-shadow: var(--shadow-soft); }
.travel-destination__photo { position: relative; display: block; aspect-ratio: 16 / 7.1; overflow: hidden; background: #dbe5f3; color: #fff; }
.travel-destination__photo:hover { color: #fff; }
.travel-destination__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.travel-destination:hover .travel-destination__photo img { transform: scale(1.025); }
.travel-destination__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,18,45,.76), rgba(4,18,45,.04) 70%); }
.travel-destination__title { position: absolute; left: 18px; right: 18px; bottom: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.travel-destination__title strong { font-size: 21px; line-height: 1.08; font-weight: 820; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.travel-destination__title small { padding: 4px 7px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(7,27,70,.35); color: #fff; font-size: 10.5px; font-weight: 700; backdrop-filter: blur(4px); }
.travel-destination__body { padding: 14px 16px 15px; }
.travel-destination__table-head, .travel-destination__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.travel-destination__table-head { padding-bottom: 8px; color: #8a97aa; font-size: 11.5px; font-weight: 760; }
.travel-destination__row { min-height: 31px; padding: 4px 0; color: var(--text); font-size: 13px; border-top: 1px solid rgba(20,33,61,.055); }
a.travel-destination__row:hover { color: var(--primary); }
.travel-destination__row strong { color: #0e4a93; font-size: 13px; font-weight: 820; white-space: nowrap; }
.travel-destination__row--muted { color: var(--muted); }
.travel-destination__row--muted strong { color: #a0aabd; }
.travel-destination__cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--primary); font-size: 12.5px; line-height: 1.3; font-weight: 800; }

/* ========================================================================== 
   КАРТОЧКИ МАРШРУТОВ
   Главная: 3×3. На мобильном оставляем 2 колонки без огромной портянки.
   ========================================================================== */
.routes { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.route-card { display: flex; flex-direction: column; min-width: 0; min-height: 139px; padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft); color: var(--text); }
.route-card:hover { color: var(--primary-dark); transform: translateY(-2px); border-color: rgba(37,99,235,.20); }
.route-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.route-card__route { font-size: 14.5px; line-height: 1.3; font-weight: 820; }
.route-card__code { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 10px; font-weight: 820; }
.route-card small { display: block; margin-top: 8px; color: var(--muted); font-size: 12.2px; line-height: 1.45; }
.route-card__bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.route-card__bottom b { color: var(--primary); font-size: 12.5px; font-weight: 820; }
.route-card__bottom > span { color: var(--primary); font-weight: 900; }

/* ========================================================================== 
   «ЕЩЁ ПОПУЛЯРНЫЕ НАПРАВЛЕНИЯ»
   Плотная естественная перелинковка без карточек на пол-экрана.
   ========================================================================== */
.popular-links-card { padding: 25px 27px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow-soft); }
.popular-links { display: flex; flex-wrap: wrap; gap: 8px; }
.popular-links a { padding: 7px 11px; border: 1px solid var(--line-strong); border-radius: 999px; color: #283750; background: #fff; font-size: 12.5px; line-height: 1.2; }
.popular-links a:hover { color: var(--primary-dark); border-color: rgba(37,99,235,.28); background: var(--primary-soft); }
.popular-links--large { gap: 9px; }

/* ========================================================================== 
   КАРТА ЦЕН ПО МИРУ
   Карта — не картинка ради дизайна: метки ведут на реальные route pages.
   ========================================================================== */
.price-map { display: grid; grid-template-columns: minmax(250px,.72fr) minmax(0,1.5fr); min-height: 320px; overflow: hidden; border-radius: 27px; color: #fff; background: linear-gradient(135deg,#0a1f49,#17366f); box-shadow: var(--shadow); }
.price-map__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 34px; position: relative; z-index: 2; }
.price-map__copy h2 { margin: 0; color: #fff; font-size: clamp(25px, 3vw, 34px); line-height: 1.12; letter-spacing: -.03em; }
.price-map__copy p { max-width: 390px; margin: 12px 0 20px; color: #cbd8ed; font-size: 14px; line-height: 1.6; }
.price-map__visual { position: relative; min-height: 320px; overflow: hidden; background: radial-gradient(circle at 50% 50%,rgba(62,116,209,.22),transparent 62%); }
.price-map__world { position: absolute; inset: 3% 1% 0; width: 98%; height: 94%; object-fit: contain; opacity: .42; filter: brightness(1.35) saturate(.75); }
.price-map__origin { position: absolute; left: 61.7%; top: 30%; width: 12px; height: 12px; border: 3px solid rgba(255,255,255,.78); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 7px rgba(18,185,129,.12), 0 0 20px rgba(18,185,129,.7); }
.map-pin { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%,-50%); color: #fff; text-align: center; white-space: nowrap; }
.map-pin:hover { color: #fff; z-index: 3; transform: translate(-50%,-50%) scale(1.05); }
.map-pin > span { display: block; width: 11px; height: 11px; margin: 0 auto 4px; border: 2px solid rgba(255,255,255,.85); border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 5px rgba(74,222,128,.11), 0 0 15px rgba(74,222,128,.55); }
.map-pin b { display: block; padding: 3px 6px; border-radius: 7px; background: rgba(6,22,47,.72); font-size: 10.5px; font-weight: 800; }
.map-pin small { display: block; margin-top: 2px; color: #cfe5ff; font-size: 9.5px; }

/* ========================================================================== 
   КОМПАКТНЫЙ БЛОК «КАК РАБОТАЕТ» + ФАКТОРЫ ЦЕНЫ
   ========================================================================== */
.service-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(280px,.85fr); gap: 22px; align-items: stretch; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; counter-reset: step; }
.step { counter-increment: step; padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: #fff; text-align: center; }
.step::before { content: counter(step); display: grid; place-items: center; width: 31px; height: 31px; margin: 0 auto 10px; border-radius: 50%; color: #fff; background: var(--primary); font-size: 12px; font-weight: 900; }
.step h3 { margin: 0 0 5px; font-size: 13.5px; font-weight: 800; }
.step p { margin: 0; color: var(--muted); font-size: 11.7px; line-height: 1.45; }
.price-factors { padding: 23px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-soft); }
.price-factors p { margin: 11px 0 0; color: var(--muted); font-size: 14px; line-height: 1.62; }
.factor-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.factor-pills span { padding: 6px 10px; border-radius: 999px; color: #35527d; background: #eff5fd; font-size: 11.5px; font-weight: 730; }

/* ========================================================================== 
   АВИАКОМПАНИИ — БЕГУЩАЯ СТРОКА С РЕАЛЬНОЙ ПЕРЕЛИНКОВКОЙ
   Вторая копия в HTML декоративная и не содержит повторных ссылок.
   ========================================================================== */
.airlines { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-soft); }
.airlines__track { display: flex; width: max-content; gap: 10px; padding: 13px; animation: marquee 55s linear infinite; }
.airlines:hover .airlines__track { animation-play-state: paused; }
.airline-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 130px; height: 42px; padding: 0 17px; border: 1px solid var(--line); border-radius: 999px; background: #f7f9fc; color: #52617a; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
a.airline-chip:hover { color: var(--primary-dark); border-color: rgba(37,99,235,.22); background: var(--primary-soft); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ========================================================================== 
   О СЕРВИСЕ + FAQ
   Один короткий дисклеймер вместо повторов по всей странице.
   ========================================================================== */
.about { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 22px; align-items: start; }
.about-card { padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-soft); }
.about-card h2 { margin: 0; font-size: clamp(23px,2.4vw,30px); line-height: 1.16; letter-spacing: -.028em; }
.about-card p { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.64; }
.faq, .route-faq { display: grid; gap: 9px; }
.faq details, .route-faq details { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.faq summary, .route-faq summary { cursor: pointer; padding: 14px 16px; font-size: 13.5px; font-weight: 800; list-style: none; }
.faq summary::-webkit-details-marker, .route-faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .route-faq summary::after { content: "+"; float: right; color: var(--primary); font-size: 19px; line-height: 16px; }
.faq details[open] summary::after, .route-faq details[open] summary::after { content: "−"; }
.faq p, .route-faq p { margin: 0; padding: 0 16px 15px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }

/* ========================================================================== 
   ФИНАЛЬНЫЙ CTA
   ========================================================================== */
.cta { padding: 0 0 52px; }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 28px 30px; border-radius: 23px; color: #fff; background: linear-gradient(135deg,#071b46,#184798); box-shadow: var(--shadow); }
.cta-box h2 { margin: 0; font-size: clamp(21px,2.4vw,29px); line-height: 1.15; letter-spacing: -.025em; }
.cta-box p { max-width: 690px; margin: 7px 0 0; color: #dbeafe; font-size: 13.5px; }
.cta-box a { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 999px; background: #fff; color: #082056; font-size: 13px; font-weight: 850; white-space: nowrap; }

/* ========================================================================== 
   FOOTER
   Desktop: 5 колонок. Mobile: 2 колонки; бренд занимает всю ширину.
   ========================================================================== */
.footer { padding: 39px 0 27px; background: var(--navy); color: #cbd5e1; font-size: 13px; }
.footer__grid { display: grid; grid-template-columns: 1.25fr .9fr .9fr .9fr 1fr; gap: 25px; }
.footer h3 { margin: 0 0 11px; color: #fff; font-size: 14px; font-weight: 800; }
.footer p { max-width: 310px; margin: 0; color: #9fb0c9; line-height: 1.58; }
.footer a { display: block; margin: 7px 0; color: #dce5f2; line-height: 1.35; }
.footer a:hover { color: #fff; }
.footer__copy { margin-top: 24px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.11); color: #8395af; font-size: 12px; }

/* ========================================================================== 
   COOKIE
   ========================================================================== */
.cookie { position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 999; display: none; align-items: center; gap: 13px; max-width: 900px; margin: auto; padding: 14px 15px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.98); box-shadow: 0 24px 70px rgba(22,37,72,.22); }
.cookie__icon { flex: 0 0 39px; width: 39px; height: 39px; display: grid; place-items: center; border-radius: 13px; background: var(--primary-soft); }
.cookie__text { flex: 1; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.cookie__actions { display: flex; gap: 8px; }
.cookie button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; color: #fff; background: var(--primary); font-size: 12.5px; font-weight: 800; cursor: pointer; }

/* ========================================================================== 
   ОБЩИЕ ЭЛЕМЕНТЫ ВНУТРЕННИХ СТРАНИЦ
   ========================================================================== */
.breadcrumbs { padding: 14px 0 0; color: var(--muted); font-size: 12px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span { padding-inline: 4px; color: #9da8b8; }
.directory-hero, .landing-hero { padding: 28px 0 24px; }
.directory-hero__box, .landing-hero__box { padding: 27px 29px; border-radius: 24px; color: #fff; background: linear-gradient(135deg,#071b46,#184798); box-shadow: var(--shadow); }
.directory-hero h1, .landing-hero h1 { margin: 0; font-size: clamp(28px,3.8vw,40px); line-height: 1.1; letter-spacing: -.035em; font-weight: 820; }
.directory-hero p, .landing-hero p { max-width: 800px; margin: 10px 0 0; color: #d7e4f7; font-size: 14px; line-height: 1.58; }
.landing-hero__row { display: flex; align-items: center; gap: 22px; }
.landing-hero__logo { flex: 0 0 118px; width: 118px; min-height: 64px; display: grid; place-items: center; padding: 10px; border-radius: 15px; background: #fff; }
.landing-hero__logo img { max-width: 100%; height: auto; }
.badge-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.badge { padding: 6px 9px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(255,255,255,.09); color: #fff; font-size: 11px; font-weight: 750; }

/* ========================================================================== 
   СТРАНИЦА МАРШРУТА /routes/{slug}/
   Data-first: H1 + форма + факты + цены по датам/месяцам + FAQ.
   ========================================================================== */
.route-hero { padding: 27px 0 23px; }
.route-hero__box { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 24px; padding: 26px 29px; border-radius: 24px; color: #fff; background: linear-gradient(135deg,#071b46,#184798); box-shadow: var(--shadow); }
.route-hero h1 { margin: 0; font-size: clamp(28px,3.8vw,40px); line-height: 1.1; letter-spacing: -.035em; font-weight: 820; }
.route-hero p { max-width: 790px; margin: 10px 0 0; color: #d7e4f7; font-size: 14px; line-height: 1.58; }
.route-hero__price { min-width: 175px; padding: 15px 17px; border: 1px solid rgba(255,255,255,.14); border-radius: 17px; background: rgba(255,255,255,.09); text-align: right; }
.route-hero__price span, .route-hero__price small { display: block; color: #cbd8eb; font-size: 11px; }
.route-hero__price strong { display: block; margin: 3px 0; color: #fff; font-size: 25px; line-height: 1.1; letter-spacing: -.025em; }
.route-facts { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }
.route-fact { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-align: center; }
.route-fact span { display: block; color: var(--muted); font-size: 11px; line-height: 1.35; }
.route-fact strong { display: block; margin-top: 5px; color: var(--text); font-size: 14px; line-height: 1.3; font-weight: 820; }
.offer-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; }
.offer-card { padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-soft); }
.offer-card__route, .offer-card__date { color: var(--text); font-size: 13px; font-weight: 800; }
.offer-card__price { margin-top: 6px; color: var(--text); font-size: 20px; line-height: 1.1; font-weight: 850; }
.offer-card__meta { margin-top: 6px; color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.month-prices { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 9px; }
.month-price { padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: center; }
.month-price span { display: block; color: var(--muted); font-size: 11px; text-transform: capitalize; }
.month-price strong { display: block; margin-top: 4px; font-size: 13px; }
.route-info-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 20px; align-items: start; }
.route-info-card { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-soft); }
.route-info-card h3 { margin: 18px 0 0; font-size: 17px; line-height: 1.3; font-weight: 800; }
.route-info-card p { margin: 11px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.62; }
.related-routes { display: flex; flex-wrap: wrap; gap: 8px; }
.related-routes a { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #33445f; font-size: 12px; }
.related-routes a:hover { color: var(--primary-dark); border-color: rgba(37,99,235,.25); }

/* ========================================================================== 
   КАТАЛОГ И СТРАНИЦЫ АВИАКОМПАНИЙ
   ========================================================================== */
.airline-directory { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.airline-card { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow-soft); color: var(--text); }
.airline-card:hover { color: var(--primary-dark); transform: translateY(-2px); }
.airline-card strong { display: block; font-size: 15px; font-weight: 820; }
.airline-card span { display: block; margin-top: 4px; color: var(--muted); font-size: 11.5px; }
.landing-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 20px; align-items: start; }
.panel { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-soft); }
.panel p { margin: 11px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.62; }
.checklist { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.checklist li { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.checklist li::before { content: "✓"; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: var(--accent); font-size: 12px; font-weight: 900; }
.checklist strong { display: block; margin-bottom: 2px; font-size: 13px; }
.checklist li > span > span { color: var(--muted); font-size: 11.8px; line-height: 1.45; }
.api-note { margin: 13px 0 0; padding: 11px 13px; border: 1px solid #dbeafe; border-radius: 13px; background: #eff6ff; color: #49678f; font-size: 11.5px; line-height: 1.5; }

/* ========================================================================== 
   «О СЕРВИСЕ», КОНТАКТЫ, ПОЛИТИКА, УСЛОВИЯ
   Профессиональная компактная типографика без огромных заголовков.
   ========================================================================== */
.content-page { padding: 31px 0 55px; }
.content-shell { width: min(880px,100%); margin-inline: auto; padding: 27px 29px; border: 1px solid var(--line); border-radius: 23px; background: #fff; box-shadow: var(--shadow-soft); }
.content-shell h1 { margin: 0 0 13px; font-size: clamp(27px,3.6vw,37px); line-height: 1.12; letter-spacing: -.032em; font-weight: 820; }
.content-shell h2 { margin: 27px 0 8px; font-size: 19px; line-height: 1.25; letter-spacing: -.015em; }
.content-shell p, .content-shell li { color: var(--muted); font-size: 14px; line-height: 1.7; }
.content-shell p { margin: 10px 0; }
.content-shell ul { padding-left: 20px; }
.content-lead { max-width: 760px; color: #4d607c !important; font-size: 15px !important; }
.content-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 22px 0 4px; }
.content-mini-card { padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: #f8fafc; }
.content-mini-card strong { display: block; color: var(--text); font-size: 13px; }
.content-mini-card span { display: block; margin-top: 5px; color: var(--muted); font-size: 11.8px; line-height: 1.48; }
.contact-card { display: grid; grid-template-columns: 160px 1fr; gap: 12px; margin-top: 19px; padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: #f8fafc; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.contact-card strong { color: var(--text); }

/* ==========================================================================
   СТРАНИЦА АВИАКОМПАНИИ /airlines/{slug}/
   Маршрутная сеть отделена от ценовых спецпредложений: это разные сущности.
   ========================================================================== */
.airline-route-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.airline-route-card { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 9px; min-height: 94px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--text); box-shadow: var(--shadow-soft); }
.airline-route-card:hover { color: var(--text); border-color: rgba(37,99,235,.24); transform: translateY(-2px); }
.airline-route-card strong { font-size: 13.5px; line-height: 1.35; }
.airline-route-card span { color: var(--primary); font-size: 11.5px; font-weight: 800; }
.airline-info-layout { align-items: stretch; }
.airline-info-layout .panel { height: 100%; }
.airline-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.airline-fact { min-width: 0; display: flex; flex-direction: column; justify-content: center; min-height: 92px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-align: center; }
.airline-fact span { color: var(--muted); font-size: 11px; line-height: 1.35; }
.airline-fact strong { margin-top: 5px; color: var(--text); font-size: 14px; line-height: 1.35; font-weight: 820; overflow-wrap: anywhere; }
.airline-check-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.airline-check-grid article { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.airline-check-grid strong { display: block; color: var(--text); font-size: 13.5px; }
.airline-check-grid span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.52; }

/* ========================================================================== 
   СТРАНИЦА РЕЗУЛЬТАТОВ /search/
   Она техническая и закрыта от индексации.
   ========================================================================== */
.search-page { min-height: 100vh; }
.search-page .header { position: relative; }
.results-shell { padding: 24px 0 50px; }
.results-title { margin: 0 0 12px; font-size: clamp(23px,3vw,32px); letter-spacing: -.025em; }
.results-note { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.tickets-box { margin-top: 15px; }
.tickets-box #tpwl-tickets:not(:empty) { margin-top: 8px; }

/* ========================================================================== 
   TABLET
   ========================================================================== */
@media (max-width: 1000px) {
  .hero__grid, .service-grid, .about, .route-info-grid, .landing-grid { grid-template-columns: 1fr; }
  .destination-showcase { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .routes { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .steps { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .price-map { grid-template-columns: .8fr 1.35fr; }
  .footer__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .airline-directory { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .offer-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .airline-route-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .route-facts { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .month-prices { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

/* ========================================================================== 
   МОБИЛЬНОЕ МЕНЮ
   ========================================================================== */
@media (max-width: 840px) {
  .nav-toggle { display: flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 57px; padding: 11px; border: 1px solid rgba(255,255,255,.15); border-radius: 17px; background: #0b2860; box-shadow: 0 20px 48px rgba(0,0,0,.24); }
  .nav.nav--open { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nav a { text-align: center; }
  .nav__cta { grid-column: 1 / -1; }
  .header { padding: 10px 0; }
  .price-map { grid-template-columns: 1fr; }
  .price-map__copy { padding-bottom: 18px; }
  .price-map__visual { min-height: 280px; }
}

/* ========================================================================== 
   MOBILE ≤ 680px
   Важно: блоки section__head складываются столбиком, поэтому больше нет
   узких заголовков слева и огромного пустого поля справа.
   ========================================================================== */
@media (max-width: 680px) {
  .container { width: calc(100% - 28px); }

  .topline__inner { min-height: 0; padding: 7px 0; display: block; font-size: 11.5px; line-height: 1.35; }
  .topline__links { display: none; }

  .hero { padding: 20px 0 49px; }
  .hero__grid { gap: 15px; }
  .hero h1 { font-size: 29px; line-height: 1.08; }
  .hero__lead { font-size: 14px; line-height: 1.55; }
  .hero__meta { gap: 6px; padding: 11px 12px; border-radius: 15px; }
  .meta-row { gap: 10px; padding-bottom: 7px; font-size: 11.5px; }
  .meta-row strong { max-width: 62%; font-size: 12px; }

  .search-card { margin-top: -29px; padding: 11px; border-radius: 18px; }
  .search-card__top { display: block; }
  .search-note { justify-content: flex-start; margin-top: 7px; }
  .search-trust { grid-template-columns: 1fr; gap: 5px; }

  .section { padding: 38px 0; }
  .section--compact { padding: 25px 0; }
  .section__head { display: block; margin-bottom: 18px; }
  .section__head-main { width: 100%; max-width: none; }
  .section__link { display: inline-flex; margin-top: 10px; }
  .section h2, .panel h2, .price-factors h2, .route-info-card h2 { font-size: 23px; }
  .section__lead { font-size: 13.5px; line-height: 1.55; }
  .kicker { margin-bottom: 7px; font-size: 11px; }

  /* Направления: один свайп-ряд без стрелочек, как у travel-сервисов. */
  .destination-showcase { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; scrollbar-width: none; margin-right: -14px; padding: 0 14px 8px 0; }
  .destination-showcase::-webkit-scrollbar { display: none; }
  .travel-destination { flex: 0 0 88%; scroll-snap-align: start; }
  .travel-destination__photo { aspect-ratio: 16 / 7.8; }
  .travel-destination__title strong { font-size: 19px; }
  .travel-destination__body { padding: 13px 14px 14px; }

  /* 9 маршрутов — 2 колонки, чтобы страница не превращалась в длинный список. */
  .routes { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .route-card { min-height: 135px; padding: 12px; border-radius: 15px; }
  .route-card__top { display: block; }
  .route-card__route { font-size: 12.5px; }
  .route-card__code { display: inline-flex; margin-top: 6px; font-size: 9px; }
  .route-card small { font-size: 10.8px; }
  .route-card__bottom b { font-size: 11px; }

  .popular-links-card { padding: 20px 17px; border-radius: 20px; }
  .popular-links { gap: 7px; }
  .popular-links a { padding: 6px 9px; font-size: 11px; }

  .price-map { min-height: 0; border-radius: 21px; }
  .price-map__copy { padding: 24px 20px 10px; }
  .price-map__copy h2 { font-size: 25px; }
  .price-map__copy p { margin: 9px 0 16px; font-size: 12.5px; }
  .price-map__visual { min-height: 245px; }
  .map-pin b { font-size: 9px; }
  .map-pin small { display: none; }

  .steps { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .step { padding: 13px 10px; }
  .step h3 { font-size: 12.5px; }
  .step p { font-size: 10.8px; }
  .price-factors { padding: 19px; }

  .airlines__track { animation-duration: 30s; }
  .airline-chip { min-width: 122px; height: 40px; font-size: 11.5px; }

  .about-card { padding: 19px; }
  .about-card p { font-size: 13px; }
  .faq summary, .route-faq summary { padding: 13px 14px; font-size: 12.5px; }
  .faq p, .route-faq p { padding: 0 14px 14px; font-size: 12.5px; }

  .cta-box { display: block; padding: 23px 20px; }
  .cta-box p { font-size: 12.5px; }
  .cta-box a { margin-top: 15px; }

  .footer { padding: 32px 0 24px; }
  .footer__grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 17px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer h3 { font-size: 13px; }
  .footer p { font-size: 12px; }
  .footer a { margin: 6px 0; font-size: 11.8px; }

  .cookie { flex-direction: column; align-items: stretch; }
  .cookie__icon { display: none; }
  .cookie__actions, .cookie button { width: 100%; }

  .directory-hero, .landing-hero, .route-hero { padding: 23px 0 18px; }
  .directory-hero__box, .landing-hero__box, .route-hero__box { padding: 21px 19px; border-radius: 20px; }
  .directory-hero h1, .landing-hero h1, .route-hero h1 { font-size: 28px; }
  .directory-hero p, .landing-hero p, .route-hero p { font-size: 12.8px; }
  .route-hero__box { grid-template-columns: 1fr; }
  .route-hero__price { min-width: 0; text-align: left; }
  .landing-hero__row { align-items: flex-start; }
  .landing-hero__logo { flex-basis: 88px; width: 88px; min-height: 53px; }

  .route-facts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .route-fact { padding: 12px 9px; }
  .route-fact:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .offer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .offer-card { padding: 12px; }
  .offer-card__price { font-size: 17px; }
  .month-prices { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
  .month-price { padding: 10px 6px; }
  .related-routes { gap: 7px; }
  .related-routes a { font-size: 10.8px; }

  .airline-directory { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .airline-route-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .airline-route-card { min-height: 86px; padding: 12px; }
  .airline-route-card strong { font-size: 12px; }
  .airline-facts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .airline-fact { min-height: 82px; padding: 11px 8px; }
  .airline-check-grid { grid-template-columns: 1fr; gap: 8px; }
  .airline-check-grid article { padding: 13px; }
  .airline-card { padding: 13px; }
  .airline-card strong { font-size: 13px; }
  .airline-card span { font-size: 10.5px; }

  .content-page { padding: 25px 0 45px; }
  .content-shell { padding: 21px 18px; border-radius: 19px; }
  .content-shell h1 { font-size: 28px; }
  .content-shell h2 { font-size: 17px; }
  .content-shell p, .content-shell li { font-size: 13px; }
  .content-cards { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; }
}

/* ========================================================================== 
   УЗКИЕ ТЕЛЕФОНЫ
   ========================================================================== */
@media (max-width: 430px) {
  .logo__caption { display: none; }
  .logo__name { font-size: 18px; }
  .nav.nav--open { grid-template-columns: 1fr; }
  .travel-destination { flex-basis: 91%; }
  .route-card__route { font-size: 12px; }
  .footer__grid { gap: 20px 13px; }
  .footer a { font-size: 11.3px; }
  .price-map__visual { min-height: 220px; }
}

/* ========================================================================== 
   ДОСТУПНОСТЬ: отключение анимаций по системной настройке пользователя.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* ========================================================================== 
   КЛИКАБЕЛЬНЫЕ ЦЕНОВЫЕ КАРТОЧКИ МАРШРУТА
   Ведут на WL-выдачу с уже заполненными маршрутом и датой.
   ========================================================================== */
.offer-card { color: var(--text); }
.offer-card:hover { color: var(--text); border-color: rgba(37,99,235,.25); transform: translateY(-2px); }
.offer-card__action { margin-top: 9px; color: var(--primary); font-size: 11px; font-weight: 800; }

/* ==========================================================================
   КОМПАКТНЫЕ ПОПУЛЯРНЫЕ НАПРАВЛЕНИЯ
   Карточки сохраняют фото + несколько городов вылета, но не выглядят как
   огромные таблицы. На desktop 3×2, на mobile — свайп без стрелок.
   ========================================================================== */
.travel-destination { border-radius: 18px; box-shadow: 0 10px 28px rgba(22,37,72,.065); }
.travel-destination__photo { aspect-ratio: 16 / 6.1; }
.travel-destination__title { left: 15px; right: 15px; bottom: 11px; }
.travel-destination__title strong { font-size: 19px; }
.travel-destination__body { padding: 10px 14px 12px; }
.travel-destination__table-head { padding-bottom: 5px; font-size: 10.5px; }
.travel-destination__row { min-height: 27px; padding: 3px 0; font-size: 12px; }
.travel-destination__row strong { font-size: 12px; }
.travel-destination__cta { margin-top: 6px; padding-top: 8px; font-size: 11.7px; }

/* ==========================================================================
   ТИЗЕР КАРТЫ НА ГЛАВНОЙ
   Главная не рисует собственную псевдокарту. Карточка ведёт на /map/,
   где расположен официальный интерактивный виджет поискового сервиса.
   ========================================================================== */
.map-teaser { display:grid; grid-template-columns:minmax(280px,.82fr) minmax(0,1.18fr); min-height:250px; overflow:hidden; border-radius:26px; color:#fff; background:linear-gradient(135deg,#0a1f49,#17366f); box-shadow:var(--shadow); }
.map-teaser:hover { color:#fff; transform:translateY(-1px); }
.map-teaser__copy { position:relative; z-index:2; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; padding:31px 34px; }
.map-teaser__copy h2 { margin:0; color:#fff; font-size:clamp(25px,3vw,34px); line-height:1.1; letter-spacing:-.03em; }
.map-teaser__copy p { max-width:430px; margin:10px 0 18px; color:#ccdaee; font-size:14px; line-height:1.55; }
.map-teaser__visual { position:relative; min-height:250px; overflow:hidden; background:radial-gradient(circle at 45% 55%,rgba(62,116,209,.28),transparent 62%); }
.map-teaser__visual img { position:absolute; inset:4%; width:92%; height:92%; object-fit:contain; opacity:.48; filter:brightness(1.35) saturate(.8); }
.map-dot { position:absolute; width:10px; height:10px; border-radius:50%; background:#20d58f; box-shadow:0 0 0 6px rgba(32,213,143,.12),0 0 18px rgba(32,213,143,.7); }
.map-dot--1 { left:57%; top:29%; }.map-dot--2 { left:66%; top:47%; }.map-dot--3 { left:76%; top:61%; }.map-dot--4 { left:48%; top:52%; }

/* ==========================================================================
   СТРАНИЦА /map/
   Контейнер официального виджета карты. Не ограничиваем iframe узкой
   колонкой, чтобы карта оставалась рабочей на desktop и mobile.
   ========================================================================== */
.map-widget-shell { overflow:hidden; min-height:500px; border:1px solid var(--line); border-radius:24px; background:#fff; box-shadow:var(--shadow-soft); }
.map-widget-shell iframe { display:block !important; width:100% !important; max-width:100% !important; min-height:500px !important; border:0 !important; }
.map-widget-note { margin:12px 4px 0; color:var(--muted); font-size:12.5px; line-height:1.55; }

/* ==========================================================================
   ПОИСК НА КАТАЛОГАХ /routes/, /airlines/ И /map/
   На коммерческих/навигационных авиа-страницах форма должна быть рядом.
   Информационные /about/, /contacts/ и технические /privacy/, /terms/ остаются без формы.
   ========================================================================== */
.directory-search { position:relative; z-index:3; padding:0 0 12px; }
.search-card--directory { margin-top:-11px; padding:13px 15px; border-radius:20px; }
.search-card--directory .search-card__top { margin-bottom:7px; }

@media (max-width: 720px) {
  .travel-destination { flex-basis:84%; }
  .travel-destination__photo { aspect-ratio:16 / 6.4; }
  .travel-destination__body { padding:9px 12px 11px; }
  .map-teaser { grid-template-columns:1fr; min-height:0; border-radius:21px; }
  .map-teaser__copy { padding:23px 20px 12px; }
  .map-teaser__copy h2 { font-size:25px; }
  .map-teaser__copy p { margin:8px 0 15px; font-size:12.5px; }
  .map-teaser__visual { min-height:160px; }
  .map-widget-shell { min-height:430px; border-radius:18px; }
  .map-widget-shell iframe { min-height:430px !important; }
  .search-card--directory { margin-top:-6px; padding:11px 12px; }
}

@media (max-width: 430px) {
  .travel-destination { flex-basis:87%; }
  .map-widget-shell { min-height:400px; }
  .map-widget-shell iframe { min-height:400px !important; }
}

/* ==========================================================================
   ФИНАЛЬНЫЕ ПРАВИЛА — ПОПУЛЯРНЫЕ НАПРАВЛЕНИЯ
   На desktop показываем 6 карточек. Три дополнительные карточки нужны только
   для мобильного горизонтального свайпа, где всего становится 9 направлений.
   ========================================================================== */
.travel-destination--mobile-extra { display: none; }
.popular-links--dense { gap: 7px; }
.popular-links--dense a { padding: 6px 10px; font-size: 12px; }

/* ==========================================================================
   ТИЗЕР КАРТЫ НА ГЛАВНОЙ
   Светящиеся точки декоративные: они используются только на маленьком тизере,
   а полноценная страница /map/ остаётся интерактивной и без накладок.
   ========================================================================== */
.map-dot { position:absolute; width:8px; height:8px; border-radius:50%; background:#43e58f; box-shadow:0 0 0 4px rgba(67,229,143,.13),0 0 18px rgba(67,229,143,.85); }
.map-dot--1{left:27%;top:34%}.map-dot--2{left:36%;top:47%}.map-dot--3{left:43%;top:31%}.map-dot--4{left:49%;top:57%}
.map-dot--5{left:56%;top:39%}.map-dot--6{left:63%;top:50%}.map-dot--7{left:70%;top:33%}.map-dot--8{left:77%;top:56%}
.map-dot--9{left:82%;top:43%}.map-dot--10{left:21%;top:58%}.map-dot--11{left:58%;top:67%}.map-dot--12{left:68%;top:70%}
.map-dot--13{left:87%;top:28%}.map-dot--14{left:33%;top:69%}

/* ==========================================================================
   МАРШРУТНЫЕ СТРАНИЦЫ — ВНУТРЕННЯЯ НАВИГАЦИЯ
   Компактные якоря закрывают основные интенты: билеты, цены, расписание,
   информация о перелёте и FAQ. На телефоне строка прокручивается пальцем.
   ========================================================================== */
.route-subnav-wrap { padding: 0 0 12px; }
.route-subnav { display:flex; gap:8px; overflow-x:auto; scrollbar-width:none; padding:2px 0 5px; }
.route-subnav::-webkit-scrollbar { display:none; }
.route-subnav a { flex:0 0 auto; padding:8px 12px; border:1px solid var(--line); border-radius:999px; background:#fff; color:#40506a; font-size:12px; font-weight:780; }
.route-subnav a:hover { color:var(--primary); border-color:rgba(37,99,235,.25); background:var(--primary-soft); }

/* ==========================================================================
   МАРШРУТНЫЕ СТРАНИЦЫ — ПРЕДЗАПОЛНЕННЫЙ ПОИСК
   Города фиксированы текущей страницей. Пользователь вводит только даты и
   количество взрослых, после чего JS собирает flightSearch для /search/.
   ========================================================================== */
.route-search-section { padding: 0 0 24px; }
.route-search-card { padding:18px; border:1px solid var(--line); border-radius:22px; background:#fff; box-shadow:var(--shadow-soft); }
.route-search-card__head { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:14px; }
.route-search-card__head h2 { margin:0; font-size:22px; line-height:1.15; letter-spacing:-.025em; }
.route-search-card__codes { padding:6px 10px; border-radius:999px; background:var(--primary-soft); color:var(--primary); font-size:11px; font-weight:850; }
.route-quick-search { display:grid; grid-template-columns:1fr 1fr .9fr .9fr .72fr auto; gap:8px; align-items:stretch; }
.route-quick-search label { min-width:0; display:flex; flex-direction:column; justify-content:center; gap:4px; min-height:58px; padding:8px 11px; border:1px solid var(--line); border-radius:13px; background:#fbfcff; }
.route-quick-search label > span { color:var(--muted); font-size:10px; font-weight:760; }
.route-quick-search label > strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--text); font-size:13px; }
.route-quick-search input,.route-quick-search select { width:100%; min-width:0; padding:0; border:0; outline:0; background:transparent; color:var(--text); font:inherit; font-size:13px; font-weight:700; }
.route-quick-search button { min-width:130px; border:0; border-radius:13px; padding:0 18px; background:var(--primary); color:#fff; font-size:13px; font-weight:850; cursor:pointer; }
.route-quick-search button:hover { background:var(--primary-dark); }
.route-search-card__note { margin:10px 2px 0; color:var(--muted); font-size:11.5px; }

/* ==========================================================================
   МАРШРУТНЫЕ СТРАНИЦЫ — ЦЕНЫ, КАЛЕНДАРЬ И РАСПИСАНИЕ
   Внешние интерактивные блоки ограничены по ширине и встроены в общий дизайн.
   ========================================================================== */
.offer-grid--route { grid-template-columns:repeat(3,minmax(0,1fr)); }
.route-month-prices { margin-bottom:14px; }
.embedded-widget { max-width:1080px; margin:0 auto; padding:14px; border:1px solid var(--line); border-radius:20px; background:#fff; box-shadow:var(--shadow-soft); overflow:hidden; }
.embedded-widget--calendar { max-width:980px; }
.embedded-widget--schedule { max-width:1080px; }
.embedded-widget iframe { display:block; width:100%!important; max-width:100%!important; border:0!important; }
.route-info-layout { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(270px,.75fr); gap:18px; align-items:start; }
.route-info-card--wide { min-height:100%; }
.route-info-card--wide strong { color:var(--text); }
.route-facts--compact { grid-template-columns:repeat(2,minmax(0,1fr)); }
.route-faq-wrap { max-width:920px; }

/* ==========================================================================
   РАСКРЫВАЕМЫЕ БЛОКИ ВНУТРЕННИХ ССЫЛОК
   На детальных страницах до 48 тематических ссылок находятся в DOM.
   Первые 24 видимы сразу, остальные раскрываются по кнопке.
   ========================================================================== */
.popular-links--collapsible a:nth-child(n+25) { display:none; }
.popular-links--collapsible.is-expanded a { display:inline-flex; }
.links-expand { margin-top:14px; padding:9px 14px; border:1px solid var(--line-strong); border-radius:999px; background:#fff; color:var(--primary); font-size:12px; font-weight:800; cursor:pointer; }
.links-expand:hover { background:var(--primary-soft); }

/* ==========================================================================
   КАТАЛОГ АВИАКОМПАНИЙ — ЛОГОТИПЫ И ГРУППЫ
   ========================================================================== */
.airline-directory--logos { grid-template-columns:repeat(3,minmax(0,1fr)); }
.airline-card--logo { display:flex; align-items:center; gap:14px; min-height:88px; padding:14px; }
.airline-card__logo { flex:0 0 78px; width:78px; height:48px; display:grid; place-items:center; border-radius:11px; background:#f7f9fc; }
.airline-card__logo img { max-width:68px; max-height:34px; object-fit:contain; }
.airline-card__copy { min-width:0; display:flex; flex-direction:column; gap:3px; }
.airline-card__copy strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.airline-card__copy small { color:var(--muted); font-size:10.5px; }
.airline-card__copy > span { margin-top:3px; color:var(--primary); font-size:11px; font-weight:760; }

@media (max-width: 900px) {
  .route-quick-search { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .route-quick-search button { min-height:58px; }
  .route-info-layout { grid-template-columns:1fr; }
  .airline-directory--logos { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .offer-grid--route { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 720px) {
  /* Популярные направления: все 9 карточек доступны в мобильном свайпе. */
  .travel-destination--mobile-extra { display:block; }
  .destination-showcase { display:flex; grid-template-columns:none; overflow-x:auto; scroll-snap-type:x mandatory; gap:11px; margin-right:-14px; padding-right:14px; }
  .travel-destination { flex:0 0 84%; scroll-snap-align:start; }

  /* Основные маршруты: 8 карточек = аккуратная сетка 2×4. */
  .routes--home .route-card:nth-child(9) { display:none; }

  .route-search-card { padding:14px; border-radius:18px; }
  .route-search-card__head { align-items:flex-start; }
  .route-search-card__head h2 { font-size:19px; }
  .route-quick-search { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .route-quick-search label:nth-child(1),.route-quick-search label:nth-child(2) { min-height:52px; }
  .route-quick-search button { grid-column:1/-1; min-height:48px; }
  .offer-grid--route { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .embedded-widget { margin-left:-3px; margin-right:-3px; padding:7px; border-radius:16px; }
  .route-facts--compact { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .airline-directory--logos { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .airline-card--logo { min-height:82px; padding:10px; gap:9px; }
  .airline-card__logo { flex-basis:52px; width:52px; height:38px; }
  .airline-card__logo img { max-width:48px; max-height:28px; }
  .airline-card__copy strong { font-size:12px; }
  .airline-card__copy small,.airline-card__copy > span { font-size:9.5px; }
}

@media (max-width: 430px) {
  .travel-destination { flex-basis:88%; }
  .route-quick-search { grid-template-columns:1fr 1fr; }
  .route-search-card__codes { display:none; }
  .offer-grid--route { grid-template-columns:1fr 1fr; }
  .popular-links--dense a { font-size:10.5px; padding:6px 8px; }
}


/* ==========================================================================
   18 РЕДАКТИРУЕМЫЙ ПОИСК НА МАРШРУТАХ И ГОРОДСКИХ СТРАНИЦАХ
   Маршрут предзаполнен, но пользователь может заменить оба города.
   ========================================================================== */
.route-quick-search.dynamic-flight-search { grid-template-columns:minmax(145px,1fr) 42px minmax(145px,1fr) minmax(130px,.8fr) minmax(130px,.8fr) minmax(135px,.8fr) auto; align-items:end; }
.city-search-field input[type="text"] { width:100%; border:0; outline:0; background:transparent; font:700 15px/1.2 inherit; color:var(--ink); padding:0; }
.city-search-field input[type="text"].is-invalid { color:#b42318; }
.city-swap { align-self:center; width:38px; height:38px; margin-bottom:5px; border:1px solid var(--line); border-radius:50%; background:#f7f9fd; color:var(--blue); font-size:20px; cursor:pointer; }
.city-swap:hover { background:#edf3ff; }
.route-search-submit { min-height:54px; }

/* ==========================================================================
   19 ГОРОДА ВЫЛЕТА /cities/ И /cities/{slug}/
   ========================================================================== */
.city-directory-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.city-directory-card { display:flex; flex-direction:column; min-height:145px; padding:18px; border:1px solid var(--line); border-radius:18px; background:#fff; box-shadow:0 10px 26px rgba(20,42,76,.06); }
.city-directory-card:hover { transform:translateY(-2px); box-shadow:var(--shadow); }
.city-directory-card__code { align-self:flex-start; padding:4px 8px; border-radius:8px; background:#edf3ff; color:var(--blue); font-size:11px; font-weight:800; }
.city-directory-card strong { margin-top:13px; font-size:17px; color:var(--ink); }
.city-directory-card small { margin-top:4px; color:var(--muted); }
.city-directory-card > span:last-child { margin-top:auto; padding-top:13px; color:var(--blue); font-size:12px; font-weight:800; }
.city-hero { padding:24px 0 8px; }
.city-hero__box { display:grid; grid-template-columns:1.05fr .95fr; overflow:hidden; border-radius:26px; background:linear-gradient(135deg,#0a1f49,#245eb8); color:#fff; box-shadow:var(--shadow); }
.city-hero__box > div:first-child { padding:34px; align-self:center; }
.city-hero__box h1 { margin:8px 0 12px; color:#fff; font-size:clamp(30px,4vw,42px); line-height:1.08; letter-spacing:-.035em; }
.city-hero__box p { max-width:720px; margin:0; color:#d5e1f3; font-size:15px; line-height:1.6; }
.city-hero__visual { min-height:250px; background:#17366f; }
.city-hero__visual img { width:100%; height:100%; min-height:250px; object-fit:cover; opacity:.83; }
.city-offer-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.city-offer-card { display:flex; flex-direction:column; min-height:125px; padding:17px; border:1px solid var(--line); border-radius:17px; background:#fff; }
.city-offer-card span { color:var(--ink); font-weight:800; }
.city-offer-card strong { margin-top:12px; font-size:21px; color:#075aa8; }
.city-offer-card small { margin-top:auto; padding-top:7px; color:var(--muted); }
.city-fallback-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.city-fallback-card { padding:16px; border:1px solid var(--line); border-radius:15px; background:#fff; }
.city-fallback-card { display:flex; flex-direction:column; gap:5px; }
.city-fallback-card span,.city-route-note { color:var(--muted); }
.city-route-note { padding:20px; border:1px dashed var(--line); border-radius:16px; background:#fff; }
.city-info-grid { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(260px,.5fr); gap:18px; align-items:start; }

/* ==========================================================================
   20 МИНИ-КАРТА НА ГЛАВНОЙ
   14 точек распределены по континентам, два размера и мягкая пульсация.
   ========================================================================== */
.map-dot { width:8px; height:8px; background:#44e49a; box-shadow:0 0 0 4px rgba(68,228,154,.12),0 0 16px rgba(68,228,154,.7); animation:mapPulse 3.8s ease-in-out infinite; }
.map-dot:nth-of-type(3n) { width:6px; height:6px; opacity:.78; animation-delay:-1.3s; }
.map-dot:nth-of-type(4n) { animation-delay:-2.1s; }
@keyframes mapPulse { 0%,100%{transform:scale(1);opacity:.88} 50%{transform:scale(1.16);opacity:1} }
/* Северная Америка */
.map-dot--1{left:24%;top:37%}.map-dot--2{left:30%;top:44%}.map-dot--3{left:32%;top:57%}
/* Южная Америка */
.map-dot--4{left:38%;top:69%}.map-dot--5{left:29%;top:31%}
/* Европа / Россия */
.map-dot--6{left:53%;top:35%}.map-dot--7{left:61%;top:26%}.map-dot--8{left:71%;top:38%}
/* Ближний Восток / Африка */
.map-dot--9{left:59%;top:49%}.map-dot--10{left:54%;top:64%}
/* Индия / Азия */
.map-dot--11{left:68%;top:51%}.map-dot--12{left:78%;top:47%}.map-dot--13{left:78%;top:28%}
/* Океания */
.map-dot--14{left:84%;top:77%}

@media (max-width:1000px){
  .route-quick-search.dynamic-flight-search { grid-template-columns:1fr 36px 1fr; }
  .route-quick-search.dynamic-flight-search > label:nth-of-type(n+3),.route-quick-search.dynamic-flight-search .route-search-submit { grid-column:auto; }
  .city-directory-grid,.city-offer-grid,.city-fallback-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:680px){
  .route-quick-search.dynamic-flight-search { grid-template-columns:1fr 34px 1fr; gap:8px; }
  .route-quick-search.dynamic-flight-search > label:nth-of-type(3),.route-quick-search.dynamic-flight-search > label:nth-of-type(4),.route-quick-search.dynamic-flight-search > label:nth-of-type(5),.route-quick-search.dynamic-flight-search .route-search-submit { grid-column:1/-1; }
  .city-search-field input[type="text"] { font-size:13px; }
  .city-swap { width:32px; height:32px; font-size:17px; }
  .city-directory-grid,.city-offer-grid,.city-fallback-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .city-directory-card { min-height:125px; padding:14px; }
  .city-directory-card strong { font-size:14px; }
  .city-hero__box { grid-template-columns:1fr; }
  .city-hero__box > div:first-child { padding:24px 20px; }
  .city-hero__box h1 { font-size:29px; }
  .city-hero__visual { min-height:160px; max-height:180px; }
  .city-hero__visual img { min-height:160px; }
  .city-info-grid { grid-template-columns:1fr; }
  .city-offer-card strong { font-size:18px; }
  .map-dot { width:6px; height:6px; box-shadow:0 0 0 3px rgba(68,228,154,.12),0 0 12px rgba(68,228,154,.7); }
}

/* Точечная коррекция кнопки смены городов: базовые стили submit не должны растягивать её. */
.route-quick-search .city-swap { min-width:0; min-height:38px; width:38px; height:38px; padding:0; grid-column:auto; background:#f7f9fd; color:var(--blue); }
.route-quick-search .city-swap:hover { background:#edf3ff; color:var(--blue); }
.city-search-field input[type="text"] { font-family:inherit; font-size:15px; font-weight:700; line-height:1.2; }
@media (max-width:1000px){ .route-quick-search .city-swap { min-height:36px; width:36px; height:36px; grid-column:auto; } }
@media (max-width:680px){ .route-quick-search .city-swap { min-height:32px; width:32px; height:32px; grid-column:auto !important; } }


/* ==========================================================================
   ФИНАЛЬНАЯ ПОЛИРОВКА: популярные маршруты на главной
   Маленькое фото назначения заполняет правую часть карточки, не раздувая её.
   ========================================================================== */
.route-card--with-thumb { display:grid; grid-template-columns:minmax(0,1fr) 92px; gap:14px; align-items:stretch; }
.route-card__content { min-width:0; display:flex; flex-direction:column; }
.route-card__thumb { align-self:end; width:92px; height:68px; overflow:hidden; border-radius:13px; background:#eef3f9; box-shadow:inset 0 0 0 1px rgba(20,42,76,.05); }
.route-card__thumb img { display:block; width:100%; height:100%; object-fit:cover; }

/* ==========================================================================
   ROUTE: убираем повторяющуюся цену из hero и дубли месячных плиток.
   Факты о перелёте оставляем только там, где они добавляют новый смысл.
   ========================================================================== */
.route-hero__box { grid-template-columns:minmax(0,1fr); }
.route-info-layout { grid-template-columns:minmax(0,1.45fr) minmax(250px,.55fr); align-items:stretch; }
.route-facts--compact { grid-template-columns:1fr; align-content:start; }
.route-facts--compact .route-fact { min-height:88px; display:flex; flex-direction:column; justify-content:center; }

/* ==========================================================================
   АВИАКОМПАНИИ: безопасный fallback по IATA вместо битой картинки.
   Если внешний логотип загрузился, он накрывает буквенный badge.
   ========================================================================== */
.airline-card__logo, .landing-hero__logo { position:relative; overflow:hidden; }
.airline-card__fallback { display:grid; place-items:center; width:100%; height:100%; border-radius:inherit; color:#285db7; background:linear-gradient(135deg,#edf4ff,#f8fbff); font-size:14px; font-weight:900; letter-spacing:.04em; }
.airline-card__logo img, .landing-hero__logo img { position:absolute; inset:50% auto auto 50%; transform:translate(-50%,-50%); z-index:2; background:#fff; }
.airline-card__fallback--large { min-width:120px; min-height:58px; padding:12px 18px; font-size:20px; }

/* ==========================================================================
   /cities/: каталог делаем плотным — это навигация по городам, а не 50 hero-карт.
   ========================================================================== */
.city-directory-grid { grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }
.city-directory-card { min-height:94px; padding:13px 14px; border-radius:15px; }
.city-directory-card strong { margin-top:9px; font-size:14px; line-height:1.25; }
.city-directory-card small { margin-top:4px; font-size:10.8px; line-height:1.35; }
.city-directory-card > span:last-child { margin-top:0; padding-top:0; }

/* ==========================================================================
   CITY PAGE: уменьшаем первый экран, чтобы форма поиска была видна быстрее.
   ========================================================================== */
.city-hero { padding:17px 0 5px; }
.city-hero__box { grid-template-columns:1.15fr .85fr; border-radius:22px; }
.city-hero__box > div:first-child { padding:25px 29px; }
.city-hero__box h1 { font-size:clamp(29px,3.2vw,38px); margin:6px 0 9px; }
.city-hero__box p { max-width:650px; font-size:13.5px; line-height:1.55; }
.city-hero__visual { min-height:205px; max-height:245px; }
.city-hero__visual img { min-height:205px; max-height:245px; }

@media (max-width:1000px) {
  .city-directory-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (max-width:760px) {
  .route-card--with-thumb { grid-template-columns:minmax(0,1fr) 62px; gap:8px; }
  .route-card__thumb { width:62px; height:50px; border-radius:10px; }
  .route-info-layout { grid-template-columns:1fr; }
  .route-facts--compact { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .route-facts--compact .route-fact { min-height:72px; }
  .city-directory-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
  .city-directory-card { min-height:84px; padding:11px; }
  .city-hero__box { grid-template-columns:1fr; }
  .city-hero__box > div:first-child { padding:20px 18px; }
  .city-hero__visual { min-height:135px; max-height:155px; }
  .city-hero__visual img { min-height:135px; max-height:155px; }
}
@media (max-width:520px) {
  .route-card--with-thumb { grid-template-columns:1fr; }
  .route-card__thumb { display:none; }
  .city-directory-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .city-directory-card strong { font-size:13px; }
}


/* ==========================================================================
   ПРОИЗВОДИТЕЛЬНОСТЬ / CLS
   Резервируем место под внешний поиск до его загрузки. Это уменьшает сдвиг
   контента на медленной мобильной сети, не вмешиваясь в сам виджет.
   ========================================================================== */
#tpwl-search {
  min-height: 94px;
  border-radius: 14px;
  background: #fff;
}
#tpwl-search:empty {
  background: #fff;
}
.embedded-widget--calendar { min-height: 360px; }
.embedded-widget--schedule { min-height: 250px; }
@media (max-width: 820px) {
  #tpwl-search { min-height: 188px; }
  .hero__meta { backdrop-filter: none; }
  .embedded-widget--calendar { min-height: 430px; }
  .embedded-widget--schedule { min-height: 300px; }
}
@media (max-width: 520px) {
  #tpwl-search { min-height: 205px; }
}

/* ======================================================================
   Погода и SEO-текст городских страниц
   ====================================================================== */
.city-seo-copy p { margin:0 0 12px; }
.city-seo-copy p:last-child { margin-bottom:0; }
.city-info-grid--facts-only { grid-template-columns:1fr; }
.city-info-grid--facts-only .route-facts--compact { grid-template-columns:repeat(4,minmax(0,1fr)); }
.weather-fact { position:relative; }
.weather-fact small { display:block; margin-top:4px; color:var(--muted); font-size:11px; line-height:1.35; }
.weather-credit { display:block; margin-top:7px; color:var(--muted); font-size:9px; line-height:1.25; text-decoration:none; }
.weather-credit:hover { color:var(--accent); }
.weather-fact.is-weather-error { display:none; }
@media (max-width:760px) {
  .city-info-grid--facts-only .route-facts--compact { grid-template-columns:repeat(2,minmax(0,1fr)); }
}


/* ==========================================================================
   СПРАВКА ПО ОРТОДРОМИИ /spravka-ortodromii/
   Изолированные стили страницы. Все классы начинаются с ortho-.
   ========================================================================== */
.ortho-page { overflow: clip; }
.ortho-hero__actions { display:flex; flex-wrap:wrap; align-items:center; gap:14px; margin-top:19px; }
.ortho-hero__link { display:inline-flex; align-items:center; min-height:44px; color:#fff; font-size:13px; font-weight:800; }
.ortho-hero__link:hover { color:#fff; text-decoration:underline; text-underline-offset:3px; }

.ortho-summary { padding-top:8px; }
.ortho-summary__grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; }
.ortho-summary article { min-width:0; padding:17px; border:1px solid var(--line); border-radius:17px; background:#fff; box-shadow:var(--shadow-soft); }
.ortho-summary article > span { display:block; color:var(--primary); font-size:11px; font-weight:850; text-transform:uppercase; letter-spacing:.045em; }
.ortho-summary article > strong { display:block; margin-top:6px; color:var(--text); font-size:16px; line-height:1.3; }
.ortho-summary article p { margin:7px 0 0; color:var(--muted); font-size:12.5px; line-height:1.55; }

.ortho-airline-table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:19px; background:#fff; box-shadow:var(--shadow-soft); }
.ortho-airline-table { width:100%; min-width:820px; border-collapse:collapse; }
.ortho-airline-table th,
.ortho-airline-table td { padding:15px 16px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.ortho-airline-table tr:last-child td { border-bottom:0; }
.ortho-airline-table th { color:#52627a; background:#f8fafc; font-size:11px; line-height:1.35; text-transform:uppercase; letter-spacing:.05em; }
.ortho-airline-table td { color:var(--muted); font-size:12.5px; line-height:1.5; }
.ortho-airline-table td:first-child { color:var(--text); white-space:nowrap; }
.ortho-airline-table td:nth-child(3) { color:var(--text); font-weight:780; white-space:nowrap; }
.ortho-airline-table td strong { display:block; color:var(--text); font-size:13px; }
.ortho-airline-table td span { display:block; margin-top:4px; }
.ortho-airline-table a { color:var(--primary); font-weight:800; white-space:nowrap; }

.ortho-note { display:flex; gap:9px; margin-top:13px; padding:13px 15px; border-radius:15px; font-size:12px; line-height:1.55; }
.ortho-note strong { flex:0 0 auto; }
.ortho-note--info { border:1px solid #dbeafe; background:#eff6ff; color:#49678f; }
.ortho-note--info strong { color:#1e4f91; }

.ortho-calc-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; }
.ortho-calc { padding:20px; border:1px solid var(--line); border-radius:20px; background:#fff; box-shadow:var(--shadow-soft); }
.ortho-calc__grid { display:grid; grid-template-columns:minmax(0,1fr) 46px minmax(0,1fr) minmax(180px,.7fr); align-items:end; gap:10px; }
.ortho-field { min-width:0; }
.ortho-field > span { display:block; margin-bottom:7px; color:var(--text); font-size:12px; font-weight:800; }
.ortho-field small { color:var(--muted); font-size:10.5px; font-weight:600; }
.ortho-field select,
.ortho-field input { width:100%; height:47px; padding:0 13px; border:1px solid #d8e0eb; border-radius:13px; outline:0; background:#fff; color:var(--text); font:inherit; font-size:13px; transition:border-color .16s ease, box-shadow .16s ease; }
.ortho-field select:focus,
.ortho-field input:focus { border-color:rgba(37,99,235,.55); box-shadow:0 0 0 3px rgba(37,99,235,.10); }
.ortho-swap { width:46px; height:47px; border:1px solid #d8e0eb; border-radius:13px; background:#f8fafc; color:var(--primary); font-size:20px; font-weight:850; cursor:pointer; }
.ortho-swap:hover { border-color:rgba(37,99,235,.3); background:var(--primary-soft); }
.ortho-calc__actions { display:flex; align-items:center; gap:13px; margin-top:14px; }
.ortho-submit { min-height:44px; padding:0 20px; border:0; border-radius:999px; background:var(--primary); color:#fff; font-size:13px; font-weight:850; cursor:pointer; }
.ortho-submit:hover { background:var(--primary-dark); }
.ortho-submit:disabled { opacity:.65; cursor:wait; }
.ortho-calc__status { color:var(--muted); font-size:11.5px; line-height:1.45; }

.ortho-result { padding:20px; border:1px solid #cfe0ff; border-radius:20px; background:linear-gradient(180deg,#f8fbff,#fff); box-shadow:var(--shadow-soft); }
.ortho-result__head { display:flex; align-items:baseline; justify-content:space-between; gap:14px; margin-bottom:14px; }
.ortho-result__head span { color:var(--primary); font-size:11px; font-weight:850; text-transform:uppercase; letter-spacing:.05em; }
.ortho-result__head strong { color:var(--text); font-size:16px; }
.ortho-result__grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }
.ortho-result__grid > div { min-width:0; padding:14px; border:1px solid var(--line); border-radius:15px; background:#fff; }
.ortho-result__grid span { display:block; color:var(--muted); font-size:10.8px; line-height:1.35; }
.ortho-result__grid strong { display:block; margin-top:5px; color:var(--text); font-size:18px; line-height:1.2; letter-spacing:-.02em; overflow-wrap:anywhere; }
.ortho-result__warning { margin:13px 0 0; color:var(--muted); font-size:11.5px; line-height:1.55; }
.ortho-result__warning strong { color:#8a4b12; }

.ortho-explain .panel h2,
.ortho-two-cols .panel h2 { font-size:clamp(21px,2.2vw,27px); }
.ortho-checklist { margin-top:14px; }
.ortho-steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:11px; }
.ortho-steps article { min-width:0; padding:17px; border:1px solid var(--line); border-radius:17px; background:#fff; box-shadow:var(--shadow-soft); }
.ortho-steps article > span { display:grid; place-items:center; width:31px; height:31px; margin-bottom:12px; border-radius:50%; background:var(--primary-soft); color:var(--primary); font-size:12px; font-weight:900; }
.ortho-steps strong { display:block; color:var(--text); font-size:14px; }
.ortho-steps p { margin:7px 0 0; color:var(--muted); font-size:12.3px; line-height:1.55; }

.ortho-two-cols { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; align-items:stretch; }
.ortho-two-cols .panel { height:100%; }
.ortho-bullets { margin:13px 0 0; padding-left:19px; }
.ortho-bullets li { margin:7px 0; color:var(--muted); font-size:13px; line-height:1.5; }
.ortho-cta { padding-top:5px; }

@media (max-width:1000px) {
  .ortho-calc__grid { grid-template-columns:minmax(0,1fr) 46px minmax(0,1fr); }
  .ortho-field--price { grid-column:1 / -1; }
  .ortho-result__grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ortho-steps { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:680px) {
  .ortho-summary__grid,
  .ortho-two-cols,
  .ortho-steps { grid-template-columns:1fr; }
  .ortho-summary { padding-top:0; }
  .ortho-calc { padding:15px; border-radius:17px; }
  .ortho-calc__grid { grid-template-columns:1fr; }
  .ortho-swap { width:100%; height:39px; }
  .ortho-field--price { grid-column:auto; }
  .ortho-calc__actions { align-items:flex-start; flex-direction:column; }
  .ortho-submit { width:100%; }
  .ortho-result { padding:15px; }
  .ortho-result__head { align-items:flex-start; flex-direction:column; gap:4px; }
  .ortho-result__grid { grid-template-columns:1fr 1fr; }
  .ortho-airline-table-wrap { margin-inline:-2px; }
}
@media (max-width:420px) {
  .ortho-result__grid { grid-template-columns:1fr; }
}

/* Route Engine: fallback hero для автоматически активированных городов без фото. */
.city-hero__visual--fallback {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:205px;
  padding:28px;
  text-align:center;
  background:linear-gradient(135deg,#153b78 0%,#2666c7 100%);
  color:#fff;
  overflow:hidden;
}
.city-hero__visual--fallback::before {
  content:"✈";
  position:absolute;
  font-size:150px;
  line-height:1;
  opacity:.08;
  transform:translate(85px,-10px) rotate(-12deg);
}
.city-hero__visual--fallback .city-hero__fallback-code {
  position:relative;
  z-index:1;
  display:inline-flex;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.22);
  font-size:14px;
  font-weight:800;
  letter-spacing:.08em;
}
.city-hero__visual--fallback strong { position:relative; z-index:1; font-size:30px; line-height:1.08; }
.city-hero__visual--fallback small { position:relative; z-index:1; font-size:14px; opacity:.84; }




/*Стили заглушка города если нет картинки в страницах /cities/, /destinations/*/
/* ==========================================================================
   CITY HERO FINAL — без декоративного fallback и без мигания.
   Пока фото не загрузилось, виден родной синий градиент .city-hero__box.
   Фото появилось -> плавно показываем. Фото отсутствует -> остаётся синий hero.
   ========================================================================== */

/* Убираем все прошлые декоративные fallback-элементы. */
.city-hero__visual::before,
.city-hero__visual::after,
.city-hero__visual--fallback::before,
.city-hero__visual--fallback::after,
.city-hero__fallback-content {
    content: none !important;
    display: none !important;
}

/* Правая половина без фото просто показывает общий градиент родителя. */
.city-hero__visual {
    position: relative !important;
    min-height: 250px !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

/* Фото существует в DOM, но до события load оно полностью скрыто. */
.city-hero__visual > img {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity .18s ease !important;
}

/* Только после успешной загрузки показываем фотографию. */
.city-hero__visual--photo-loaded > img {
    opacity: .83 !important;
    visibility: visible !important;
}

/* Если фото нет — ничего не рисуем: остаётся градиент .city-hero__box. */
.city-hero__visual--photo-missing {
    background: transparent !important;
}

@media (max-width: 760px) {
    .city-hero__visual {
        min-height: 150px !important;
    }
}


