/* ===== Airlines template — shared styles =====
   Фирменный цвет приходит из data (build инжектит :root --brand в <head>).
   Эта таблица одинакова для всех 100+ сайтов; меняется только цвет и контент.
   Сигнатура шаблона: «посадочный талон» (hero) + моноширинные «билетные» данные.
   Шрифты (Golos Text + JetBrains Mono) подключаются через <link> в <head> (fonts/fonts.css). */

:root {
  --brand: #C8102E;
  --accent: #E4002B;
  --dark: #181a1f;
  --ink: #1d2129;
  --muted: #586173;        /* контраст с белым ≈ 5.6:1 (AA для body) */
  --line: #e6e8ec;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --radius: 14px;
  --maxw: 1120px;
  --shadow: 0 6px 24px rgba(20, 23, 28, .08);
  --font: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  /* модульная шкала (1.25), fluid */
  --step-1: clamp(.83rem, .8rem + .15vw, .9rem);
  --step0:  1rem;
  --step1:  clamp(1.15rem, 1.08rem + .35vw, 1.35rem);
  --step2:  clamp(1.4rem, 1.25rem + .7vw, 1.85rem);
  --step3:  clamp(1.75rem, 1.45rem + 1.4vw, 2.6rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; color: var(--dark); font-weight: 800; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: var(--step3); margin: 0 0 .5em; }
h2 { font-size: var(--step2); margin: 0 0 .6em; }
h3 { font-size: var(--step1); margin: 0 0 .4em; font-weight: 700; }
p { margin: 0 0 1em; }
.prose p, .lead { text-wrap: pretty; }

/* видимый фокус для клавиатуры (a11y, C9) */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
.lead { font-size: 1.1rem; color: var(--muted); }
/* секционные «kicker»-надписи убраны из шаблона осознанно (анти-AI-slop):
   характер несут талон-сигнатура и бренд-цвет, а не eyebrow над каждым H2. */

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 13px 22px; border-radius: 10px; font-weight: 600; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--accent); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--outline { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--dark); font-size: 1.05rem; }
.logo:hover { text-decoration: none; }
.logo .logo-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9px; background: var(--brand); color: #fff;
  font-weight: 800; font-size: .95rem; flex: none;
}
.logo .logo-sub { font-weight: 500; color: var(--muted); font-size: .82rem; display: block; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); font-weight: 500; font-size: .96rem; }
.nav a:hover { color: var(--brand); text-decoration: none; }
.header-search-btn { padding: 9px 16px; font-size: .92rem; display: inline-flex; align-items: center; gap: 8px; flex: none; }
.header-search-btn .hsb-ico { display: inline-flex; }
.header-search-btn .hsb-ico svg { width: 18px; height: 18px; display: block; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; flex: none; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 5px 0; transition: .25s; }

/* ---- Выезжающая панель поиска (кнопка «Найти билеты» в шапке) ---- */
.search-drawer { position: fixed; inset: 0; z-index: 60; }
.search-drawer[hidden] { display: none; }
.search-drawer-backdrop { position: absolute; inset: 0; background: rgba(16,21,33,.45); opacity: 0; transition: opacity .25s ease; }
.search-drawer-panel { position: absolute; left: 0; right: 0; top: 0; background: var(--bg-soft); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow); transform: translateY(-100%); transition: transform .3s cubic-bezier(.22,1,.36,1); }
.search-drawer.open .search-drawer-backdrop { opacity: 1; }
.search-drawer.open .search-drawer-panel { transform: translateY(0); }
.search-drawer-inner { max-width: 1140px; margin: 0 auto; padding: 14px 20px 26px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.search-drawer-inner .search-panel { width: 100%; }
.search-drawer-close { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--dark); cursor: pointer; }
.search-drawer-close svg { width: 20px; height: 20px; }
.search-drawer-close:hover { color: var(--brand); border-color: var(--brand); }
body.drawer-open { overflow: hidden; }

/* ====== Hero = посадочный талон (сигнатура шаблона) ====== */
.hero {
  background:
    radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--brand) 7%, transparent), transparent 55%),
    var(--bg-soft);
  padding: 42px 0 50px;
}
/* hero с тематическим фото: фото задаётся инлайн (background-image на секции — document-relative,
   как у dest-card; url() в CSS-переменной ломается из-за резолвинга относительно css-файла).
   Скрим/тонировка — поверх через ::before, чтобы фото читалось, а талон-карточка оставалась в фокусе. */
.hero--photo { position: relative; background-color: var(--bg-soft); background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero--photo > .wrap { position: relative; z-index: 1; }
.hero--photo::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-soft) 28%, transparent), color-mix(in srgb, var(--bg-soft) 6%, transparent)),
    radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 55%);
}
.pass-kicker {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .16em; color: var(--brand);
  font-weight: 700; text-transform: uppercase; margin: 0 0 16px;
}
.pass-kicker::before {
  content: ""; display: inline-block; width: 1.35em; height: 1.35em; vertical-align: -.35em; margin-right: .6em; background: var(--brand);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M2.5 19h19v2h-19zM22 11.5c.3 1.1-.4 2.2-1.4 2.5L3.3 18.7 0 13.4l1.9-.5 2.1 1.9 4.6-1.2L4.4 4l2.6-.7 6.6 8 5.9-1.6c1.1-.3 2.2.4 2.5 1.5z'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M2.5 19h19v2h-19zM22 11.5c.3 1.1-.4 2.2-1.4 2.5L3.3 18.7 0 13.4l1.9-.5 2.1 1.9 4.6-1.2L4.4 4l2.6-.7 6.6 8 5.9-1.6c1.1-.3 2.2.4 2.5 1.5z'/></svg>") center/contain no-repeat;
}
.pass {
  display: grid; grid-template-columns: 1fr 240px; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; box-shadow: 0 24px 60px rgba(20,23,28,.13); overflow: hidden;
}
.pass-main { padding: 32px 0 28px 40px; display: flex; flex-direction: column; }
.pass-head { padding-right: 36px; }
.pass-main h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); margin: 0; }
.pass-main .pass-ru { color: var(--muted); font-weight: 600; font-size: 1.02rem; margin: .3em 0 0; }
.pass-lead { color: var(--ink); max-width: 56ch; margin: 18px 36px 0 0; font-size: 1.02rem; }

/* виджет поиска — внутри талона, сразу под H1 (за линией отрыва, без вложенной карточки); описание идёт под виджетом */
.pass-search { margin: 22px 36px 0 -40px; padding: 22px 36px 28px 40px; background: var(--bg-soft); border-top: 2px dashed var(--line); }

/* корешок талона: бренд-цвет, моноширинные «билетные» данные + штрихкод */
.pass-stub { background: var(--brand); color: #fff; padding: 26px 22px; position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.pass-stub::before {
  content: ""; position: absolute; left: -11px; top: 0; bottom: 0; width: 22px;
  background: radial-gradient(circle 11px at 0 14px, var(--bg-soft) 11px, transparent 12px);
  background-size: 100% 28px; background-repeat: repeat-y;
}
.stub-top { font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; opacity: .85; }
.stub-code { font-family: var(--mono); font-weight: 700; font-size: 3.8rem; line-height: 1; color: #fff; }
.stub-code small { display: block; font-size: .72rem; letter-spacing: .22em; opacity: .85; margin-top: 6px; }
.stub-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; font-family: var(--mono); }
.stub-meta .m .l { font-size: .6rem; letter-spacing: .1em; opacity: .72; }
.stub-meta .m .v { font-size: .95rem; font-weight: 700; margin-top: 1px; }
.barcode { width: 100%; height: 40px; opacity: .92; border-radius: 3px;
  background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 4px, #fff 4px 5px, transparent 5px 9px); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* ---- Cards ---- */
.grid { display: grid; gap: 20px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card .ico { width: 42px; height: 42px; color: var(--brand); margin-bottom: 14px; }
.card .ico svg { width: 100%; height: 100%; }
.card p { color: var(--muted); font-size: .96rem; }
.card .card-link { margin-top: auto; font-weight: 600; }

/* ---- Fact strip (билетная полоса фактов, A4) ---- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.fact { padding: 18px 20px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact .label { font-family: var(--mono); font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; line-height: 1.3; }
.fact .value { font-size: 1.3rem; font-weight: 800; color: var(--dark); margin-top: 6px; }
.fact .value.mono { font-family: var(--mono); font-weight: 700; }

/* ---- Table ---- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; min-width: 480px; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.table th, .table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.table th { background: var(--bg-soft); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }
.subtable + .subtable { margin-top: 28px; }

/* ---- Routes ---- */
.routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.route { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.route .code { font-weight: 800; color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, #fff); border-radius: 8px; padding: 6px 10px; font-size: .85rem; white-space: nowrap; }
.route .city { font-weight: 600; }
.route .note { font-size: .85rem; color: var(--muted); }

/* Плитки направлений на главной (кликабельные, «продающие») */
.dest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.dest-card { position: relative; overflow: hidden; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px;
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.dest-card:hover { transform: translateY(-3px); border-color: var(--brand); text-decoration: none; box-shadow: 0 16px 34px rgba(20,23,28,.13); }

/* Фото-вариант: фон-снимок города прилёта + тёмный градиент для читаемости светлого текста */
.dest-card.has-photo { border: 0; color: #fff; min-height: 212px; justify-content: space-between;
  background-size: cover; background-position: center; text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.dest-card.has-photo::before { content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(12,16,24,.22) 0%, rgba(12,16,24,.48) 52%, rgba(12,16,24,.86) 100%); }
.dest-card.has-photo > * { position: relative; z-index: 1; }
.dest-card.has-photo .dest-route, .dest-card.has-photo .dest-cities, .dest-card.has-photo .dest-price { color: #fff; }
.dest-card.has-photo .dest-route .dest-arrow { color: #fff; }
.dest-card.has-photo .dest-meta { color: rgba(255,255,255,.85); }
.dest-card.has-photo .dest-meta .dest-flight { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.35); color: #fff; }
.dest-card.has-photo .dest-foot { border-top-color: rgba(255,255,255,.3); }
.dest-card.has-photo .dest-go { color: rgba(255,255,255,.85); }
.dest-card.has-photo:hover .dest-go { color: #fff; }
.dest-route { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-weight: 700; font-size: 1.45rem; color: var(--dark); letter-spacing: .02em; }
.dest-route .dest-arrow { color: var(--brand); display: inline-flex; }
.dest-route .dest-arrow svg { width: 18px; height: 18px; transform: rotate(90deg); }
.dest-cities { margin-top: 7px; font-weight: 600; color: var(--ink); }
.dest-meta { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--muted); font-size: .9rem; }
.dest-meta .dest-flight { font-family: var(--mono); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; color: var(--dark); }
.dest-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.dest-price { font-weight: 800; font-size: 1.2rem; color: var(--brand); }
.dest-go { font-size: .85rem; font-weight: 600; color: var(--muted); }
.dest-card:hover .dest-go { color: var(--brand); }

/* ---- FAQ accordion ---- */
.faq { max-width: 800px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 18px 20px; font-size: 1.05rem; font-weight: 600; color: var(--dark); cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-q::after { content: ""; width: 18px; height: 18px; flex: none; background: var(--brand); transition: transform .25s cubic-bezier(.22,1,.36,1);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 15.5l-7-7 1.4-1.4L12 12.7l5.6-5.6L19 8.5z'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 15.5l-7-7 1.4-1.4L12 12.7l5.6-5.6L19 8.5z'/></svg>") center/contain no-repeat; }
.faq-item.open .faq-q::after { transform: rotate(180deg); }
/* анимация высоты через grid-template-rows — без layout thrash */
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s cubic-bezier(.22,1,.36,1); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-clip { overflow: hidden; min-height: 0; }
.faq-a-inner { color: var(--muted); padding: 0 20px 18px; }
.faq-a-inner p:last-child { margin-bottom: 0; }

/* ---- Page hero (inner pages) ---- */
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 40px 0; }
.prose p { max-width: 75ch; }
.note-list { list-style: none; padding: 0; margin: 18px 0 0; }
.note-list li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--muted); }
.note-list li::before { content: "i"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; font-style: normal; display: flex; align-items: center; justify-content: center; }
.cabin-seg { margin-top: 14px; }
.cabin-seg-head { font-size: .92rem; color: var(--dark); }
.seat-diagram { margin: 8px 0 4px; }
.seat-diagram svg { max-width: 100%; height: auto; }
.cabin-desc { margin: 0; color: var(--muted); font-size: .9rem; }
.bullets { margin: 12px 0 0; padding-left: 22px; color: var(--ink); }
.bullets li { margin-bottom: 7px; }
.prose h3 { margin-top: 26px; }
.steps { counter-reset: s; display: grid; gap: 16px; }
.step { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.step::before { counter-increment: s; content: counter(s); flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ---- Callout / дисклеймер ---- */
.callout { margin: 18px 0 8px; padding: 16px 18px 16px 20px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--muted); font-size: .98rem; }
.callout--warn { background: color-mix(in srgb, var(--brand) 6%, #fff); border-color: color-mix(in srgb, var(--brand) 22%, var(--line)); border-left-color: var(--brand); }

/* ---- Footer ---- */
.site-footer { background: var(--dark); color: rgba(255,255,255,.72); padding: 48px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .04em; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.disclaimer { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); font-size: .82rem; color: rgba(255,255,255,.55); }

/* ---- Оглавление-кнопки в hero (второе меню, светлый hero-талон) ---- */
.hero-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-nav a { display: inline-flex; align-items: center; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .92rem; background: #fff; transition: border-color .15s ease, color .15s ease; }
.hero-nav a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

/* ---- Линия-маршрут: разделитель секций (вместо eyebrow) ---- */
.route-sep { display: flex; align-items: center; gap: 14px; max-width: var(--maxw); margin: 0 auto; padding: 36px 20px; color: var(--muted); }
.route-sep .dot { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--brand); flex: none; }
.route-sep .ln { flex: 1; border-top: 2px dashed var(--line); }
.route-sep .pl { color: var(--brand); flex: none; display: inline-flex; }
.route-sep .pl svg { width: 20px; height: 20px; }

/* ---- Компактный заголовок внутренних страниц (H1 + хлебные крошки под ним) ---- */
.page-hero .pass-compact { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.page-hero .pass-compact h1 { margin: 0; }
.page-hero .pc-crumbs { font-family: var(--mono); font-size: .8rem; color: var(--muted); letter-spacing: .04em; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.page-hero .pc-crumbs a { color: var(--brand); }
.page-hero .pc-crumbs a:hover { text-decoration: underline; }
.page-hero .pc-sep { color: var(--muted); opacity: .55; }
/* второе меню на внутренних страницах (светлый вариант) */
.page-nav { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-nav .wrap { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 14px; padding-bottom: 14px; }
.page-nav a { display: inline-flex; align-items: center; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: .92rem; }
.page-nav a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
section[id] { scroll-margin-top: 84px; }
.digest-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.price-from { color: var(--brand); font-weight: 700; white-space: nowrap; }
.route-detail { border-top: 1px solid var(--line); }
.route-detail h2 .flightno { color: var(--brand); font-weight: 700; font-size: .8em; }
.route-detail h3 { margin-top: 22px; }
.price-chart { margin-top: 10px; position: relative; }
.price-chart svg { max-width: 100%; height: auto; }
.pc-bar { fill: var(--brand); opacity: .5; transition: opacity .15s ease; cursor: pointer; }
.pc-bar:hover, .pc-bar:focus-visible, .pc-bar.is-active { opacity: 1; outline: none; }
.pc-bar--min { opacity: .8; }
.price-chart .pc-tip {
  position: absolute; z-index: 5; pointer-events: none; transform: translate(-50%, -120%);
  background: var(--dark); color: #fff; font-family: var(--mono); font-size: .82rem; font-weight: 600;
  padding: 6px 10px; border-radius: 8px; white-space: nowrap; box-shadow: var(--shadow);
  opacity: 0; transition: opacity .12s ease;
}
.price-chart .pc-tip::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--dark); }
.price-chart .pc-tip.show { opacity: 1; }
.chart-note { margin: 8px 0 0; font-size: .82rem; color: var(--muted); }

/* ---- Плитки «Общая информация» по маршруту ---- */
.info-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 4px; }
.info-tile { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.info-tile .it-ico { flex: none; width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }
.info-tile .it-ico svg { width: 100%; height: 100%; }
.info-tile .it-l { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.info-tile .it-v { font-weight: 700; color: var(--dark); margin-top: 2px; font-size: .98rem; }

/* ---- Тарифы ---- */
.fare-list { display: grid; gap: 16px; }
.fare { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.fare-head h2 { margin: 6px 0 0; font-size: 1.35rem; }
.fare-cabin { display: inline-block; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, #fff); border-radius: 999px; padding: 4px 10px; }
.fare-tagline { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
.fare-spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 18px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.fare-spec .fs-item { background: var(--bg-soft); padding: 12px 14px; }
.fare-spec .fs-l { font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fare-spec .fs-v { margin-top: 4px; font-weight: 700; color: var(--dark); font-size: .92rem; }
.fare-desc { margin: 16px 0 0; max-width: 70ch; }
@media (max-width: 560px) { .fare-spec { grid-template-columns: 1fr; } }
.fare-feats { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.fare-feats li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); }
.fare-feats .ff-ico { flex: none; width: 20px; height: 20px; color: var(--brand); margin-top: 1px; }
.fare-feats .ff-ico svg { width: 100%; height: 100%; }

/* советы по выбору тарифа */
.tips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tip { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; }
.tip-sit { font-weight: 700; color: var(--dark); }
.tip-adv { margin: 8px 0 14px; color: var(--ink); font-size: .96rem; }
.tip-fare { margin-top: auto; align-self: flex-start; font-family: var(--mono); font-weight: 700; font-size: .9rem; color: var(--brand); }
@media (max-width: 620px) { .tips { grid-template-columns: 1fr; } }

/* ---- Карта полёта (Leaflet) ---- */
.flight-map { margin: 14px 0 0; }
.flight-map-canvas { width: 100%; aspect-ratio: 2 / 1; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.flight-map-canvas.leaflet-container { background: var(--bg-soft); font-family: var(--font); }
.flight-map figcaption { margin-top: 8px; font-size: .85rem; color: var(--muted); font-family: var(--mono); }
/* фирменные маркеры городов (divIcon) */
.fm-pin { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 1px 4px rgba(20,23,28,.35); }
/* подгоняем контролы зума под бренд */
.flight-map .leaflet-bar a { color: var(--ink); }
.flight-map .leaflet-bar a:hover { color: var(--brand); }
.flight-map .leaflet-control-attribution { font-size: 10px; }
@media (max-width: 560px) { .flight-map-canvas { aspect-ratio: 3 / 2; } }

/* ---- OD-полоса рейса: вылет → прилёт, часы + погода ---- */
.flight-od { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 4px 0 8px; }
.od-point { min-width: 0; }
.od-point--to { text-align: right; }
.od-iata { font-family: var(--mono); font-weight: 700; font-size: 1.5rem; color: var(--dark); line-height: 1; }
.od-city { color: var(--muted); font-size: .92rem; margin-top: 2px; }
.od-row { display: flex; align-items: center; gap: 7px; margin-top: 8px; color: var(--ink); font-size: .95rem; }
.od-point--to .od-row { justify-content: flex-end; }
.od-ico { flex: none; width: 16px; height: 16px; color: var(--brand); display: inline-flex; }
.od-ico svg { width: 100%; height: 100%; }
.od-clock { font-family: var(--mono); font-weight: 700; font-variant-numeric: tabular-nums; }
.ow-temp { font-weight: 600; }
.od-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); flex: none; padding: 0 4px; }
.od-mid .od-dur { font-size: .8rem; }
.od-mid .od-line { width: 26px; height: 26px; color: var(--brand); }
.od-mid .od-line svg { width: 100%; height: 100%; transform: rotate(90deg); }
.od-mid .od-flightno { font-family: var(--mono); font-size: .72rem; color: var(--ink); }

/* ---- Search widget (акцентный) — общие части формы ---- */
.sp-title { font-size: 1.15rem; font-weight: 700; color: var(--dark); margin: 0 0 4px; }
.sp-title .pin { color: var(--brand); display: inline-block; width: 1em; height: 1em; vertical-align: -.13em; margin-right: .4em; }
.sp-title .pin svg { width: 100%; height: 100%; }
.sp-sub { color: var(--muted); font-size: .95rem; margin: 0 0 16px; }
.tp-widget { width: 100%; min-height: 56px; }
.tp-widget iframe, .tp-widget > div { max-width: 100%; }
.search-form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 10px; align-items: end; }
.search-field { display: flex; flex-direction: column; gap: 5px; }
.search-field label { font-family: var(--mono); font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.search-field .fake-input { border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; color: var(--muted); background: #fff; font-size: .95rem; min-height: 48px; display: flex; align-items: center; }
.search-form .btn--primary { height: 48px; box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 32%, transparent); }
.search-note { margin: 12px 0 0; font-size: .8rem; color: var(--muted); }
.search-note b { color: var(--brand); }

/* виджет внутри талона (главная) — фон-зона, без рамки/карточки */
.pass-search .sp-title { font-size: 1.12rem; }
.pass-search .fake-input { background: #fff; }

/* standalone-карточка виджета (внутренние страницы и отдельная секция):
   фирменная верхняя полоса реализована псевдоэлементом и клипуется радиусом — без конфликта со скруглением */
.search-panel { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 22px 22px; overflow: hidden; }
.search-panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--brand); }
.page-hero .search-panel { margin-top: 18px; }
.page-hero .search-panel + .lead { margin-top: 18px; }
.search-section { padding: 28px 0 8px; }

/* ---- Q&A блок на страницах ---- */
.qa { max-width: 820px; }

/* ---- Screenshot placeholder (страница покупки) ---- */
.shot {
  margin-top: 14px; border: 2px dashed var(--line); border-radius: 12px; background: var(--bg-soft);
  min-height: 180px; display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--muted); font-size: .9rem; padding: 20px;
}
.shot span { max-width: 40ch; }
.shot-fig { margin: 14px 0 0; }
.shot-fig img { width: 100%; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); display: block; cursor: zoom-in; transition: box-shadow .15s ease; }
.shot-fig img:hover { box-shadow: 0 10px 28px rgba(20,23,28,.16); }
.shot-fig figcaption { margin-top: 8px; font-size: .85rem; color: var(--muted); }

/* Лайтбокс: увеличение скриншотов по клику */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(16,21,33,.85); opacity: 0; transition: opacity .2s ease; cursor: zoom-out; }
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1100px, 96vw); max-height: 92vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 24px 70px rgba(0,0,0,.5); background: #fff; }
.lightbox-close { position: absolute; top: 16px; right: 20px; width: 44px; height: 44px; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 26px; line-height: 1; border-radius: 10px; cursor: pointer; transition: background .15s ease; }
.lightbox-close:hover { background: rgba(255,255,255,.3); }
body.lightbox-open { overflow: hidden; }

/* ---- Contacts ---- */
.contact-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px; }
.contact-block h3 { color: var(--dark); }
.contact-block address { font-style: normal; color: var(--ink); line-height: 1.7; }
.social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.social-row a { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.social-row a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.social-row a svg { width: 18px; height: 18px; flex: none; }
.codes-line { margin-top: 6px; color: var(--muted); font-weight: 600; }
.map-embed { margin-top: 16px; }
.map-embed iframe { width: 100%; height: 360px; border: 0; border-radius: 12px; display: block; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .grid--4, .facts, .routes, .dest-grid { grid-template-columns: repeat(2, 1fr); }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  /* факт-полоса: 2×2, внутренние разделители корректно */
  .facts .fact:nth-child(2n) { border-right: 0; }
  .facts .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .info-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .info-tiles, .dest-grid { grid-template-columns: 1fr; }
  /* OD-полоса складывается: вылет → (середина) → прилёт по вертикали */
  .flight-od { grid-template-columns: 1fr; text-align: left; }
  .od-point--to { text-align: left; }
  .od-point--to .od-row { justify-content: flex-start; }
  .od-mid { flex-direction: row; gap: 10px; padding: 6px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
  .od-mid .od-line svg { transform: none; }
}
@media (max-width: 780px) {
  /* талон складывается: главная зона сверху, корешок снизу */
  .pass { grid-template-columns: 1fr; }
  .pass-main { padding: 26px 0 0 24px; }
  .pass-head { padding-right: 24px; }
  .pass-search { margin: 20px 0 0 -24px; padding: 20px 24px 24px 24px; }
  .pass-stub { flex-direction: row; align-items: center; gap: 16px; padding: 18px 24px; }
  .pass-stub::before { left: 0; right: 0; top: -11px; bottom: auto; width: auto; height: 22px;
    background: radial-gradient(circle 11px at 14px 0, var(--bg-soft) 11px, transparent 12px); background-size: 28px 100%; background-repeat: repeat-x; }
  .stub-code { font-size: 2.4rem; }
  .stub-meta { flex: 1; }
  .barcode { display: none; }
}
@media (max-width: 720px) {
  .nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 18px; gap: 4px;
    transform: translateY(-130%); transition: transform .25s ease; box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .header-search-btn { margin-left: auto; }   /* кнопка вне бургера — прижата вправо, бургер следом */
  .nav-toggle { display: block; }
  .search-form { grid-template-columns: 1fr 1fr; }
  .search-form .btn--primary { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .header-search-btn { padding: 9px 11px; }       /* на узких — только иконка поиска */
  .header-search-btn .hsb-txt { display: none; }
}
@media (max-width: 480px) {
  /* на узких — в корешке только код + штрихкод, реквизиты прячем */
  .pass-stub .stub-meta { display: none; }
}
@media (max-width: 420px) {
  body { font-size: 16px; }
  .logo .logo-sub { display: none; }       /* паттерн №11: на узких экранах прячем подпись лого */
  .facts, .routes { grid-template-columns: 1fr; }
  .facts .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .facts .fact:last-child { border-bottom: 0; }
  .section { padding: 40px 0; }
}

/* ---- Reduced motion (D): убираем нелинейные переходы/анимации ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}
