/* ============================================================
   VIETNAM AIRLINES · Казахстан — дизайн «Лотос и шёлк»
   Знак перевозчика — золотой лотос, форма бортпроводниц — шёлковое аозай.
   Из этого собрана вся система. Золото лотоса отдано действию: кнопкам, цифрам,
   номерам рейсов на тёмном. Синева букв логотипа #005E80 держит ссылки,
   шапку и тёмные секции, фон страниц — рисовая бумага и небелёный шёлк.
   Главный мотив — шёлковые нити стыковок: из одной точки несколько нитей
   расходятся через хабы и сходятся во Вьетнаме, потому что своих рейсов
   в Казахстан у перевозчика нет и вся история сайта — про пересадку.
   Лепесток лотоса метит кикеры, контуры лотоса ложатся узором на тёмные секции.
   Шрифты: заголовки Alegreya (каллиграфическая антиква), текст Alegreya Sans.
   Имена переменных общесерийные (--red — акцент, --blue — второй цвет),
   поменялись только значения.
   ============================================================ */

/* Шрифты самохостятся. Сабсеты latin, cyrillic и cyrillic-ext: казахские
   ә ғ қ ң ө ұ ү і проверены по cmap до скачивания (_research/fonts). */
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("/fonts/alegreya-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("/fonts/alegreya-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("/fonts/alegreya-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/alegreya-sans-cyrillic-ext-400.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/alegreya-sans-cyrillic-400.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/alegreya-sans-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/alegreya-sans-cyrillic-ext-500.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/alegreya-sans-cyrillic-500.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/alegreya-sans-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/alegreya-sans-cyrillic-ext-700.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/alegreya-sans-cyrillic-700.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/alegreya-sans-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/alegreya-sans-cyrillic-ext-800.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/alegreya-sans-cyrillic-800.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/alegreya-sans-latin-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --red:      #0A6A88;  /* синева букв логотипа — ссылки, кикеры, акценты на светлом */
    --red-d:    #005E80;
    --red-l:    #2B8FAD;
    --blue:     #0E7C93;  /* вода лотосового пруда — второй цвет системы */
    --blue-l:   #3AA6BD;
    --blue-d:   #00374D;
    --cta:      #E0A614;  /* золото лотоса — кнопки «Найти билеты» */
    --cta-d:    #C48E07;
    --on-cta:   #002B3D;  /* текст на золотой кнопке */
    --sky:      #EAF3F4;  /* светлые секции — утренняя дымка над прудом */
    --sky-2:    #D3E6EA;
    --ink:      #00374D;  /* нефтяная синева — шапка и тёмные секции */
    --ink-2:    #002B3D;
    --ink-3:    #0B4E67;
    --text:     #1C2A30;
    --muted:    #5F6F77;
    --paper:    #FBF8F1;  /* рисовая бумага — фон страниц */
    --mica:     #F4EEE0;  /* небелёный шёлк — чередующиеся секции */
    --line:     #E8DFCC;
    --line-2:   #D4C4A4;
    --steel:    #4C6570;
    --gold:     #946500;  /* охра: цифры и детали на светлом */
    --gold-l:   #EDB626;  /* золото лотоса на тёмном */
    --jade:     #3E8A6B;  /* лист лотоса — редкий третий акцент */
    --lotus:    #E7A0B5;  /* розовый край лепестка — точечные акценты */
    --white:    #fff;
    --shadow:   0 12px 34px rgba(0, 55, 77, .12);
    --shadow-s: 0 4px 14px rgba(0, 55, 77, .08);
    --shadow-l: 0 24px 60px rgba(0, 43, 61, .30);
    --r:        14px;
    /* Шёлковая лента: золото лотоса — нить синевы — розовый край лепестка */
    --vine: linear-gradient(90deg,
        var(--gold-l) 0 58%, var(--red-d) 58% 88%, var(--lotus) 88% 100%);
    /* Узор тёмных секций: контуры лотоса и шёлковые нити */
    --girih: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27180%27 height=%27130%27 viewBox=%270 0 180 130%27%3E%3Cg fill=%27none%27 stroke=%27%23ffffff%27 stroke-width=%271.1%27 opacity=%27.42%27%3E%3Cpath d=%27M0 104c30-14 60-14 90 0s60 14 90 0%27/%3E%3Cpath d=%27M0 116c30-14 60-14 90 0s60 14 90 0%27 opacity=%27.6%27/%3E%3Cg transform=%27translate(46 44)%27%3E%3Cpath d=%27M0-16c7 7 7 19 0 26c-7-7-7-19 0-26z%27/%3E%3Cpath d=%27M-2 10c-12-2-18-10-17-18c8 1 15 8 17 18z%27/%3E%3Cpath d=%27M2 10c12-2 18-10 17-18c-8 1-15 8-17 18z%27/%3E%3C/g%3E%3Cg transform=%27translate(136 30) scale(.6)%27%3E%3Cpath d=%27M0-16c7 7 7 19 0 26c-7-7-7-19 0-26z%27/%3E%3Cpath d=%27M-2 10c-12-2-18-10-17-18c8 1 15 8 17 18z%27/%3E%3Cpath d=%27M2 10c12-2 18-10 17-18c-8 1-15 8-17 18z%27/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    --font-d:   "Alegreya", Georgia, "Times New Roman", serif;
    --font-h:   "Alegreya Sans", "Segoe UI", Arial, sans-serif;
    --font-b:   "Alegreya Sans", "Segoe UI", Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font: 400 17px/1.62 var(--font-b);
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-l); }

/* Контейнер тянется на ширину экрана: узкая колонка с пустыми полями выглядит
   шаблоном. Сплошной текст и таблицы держат свои ограничители (.article, .tbl). */
.container { max-width: 1560px; margin: 0 auto; padding: 0 clamp(18px, 2.5vw, 40px); }
.section { padding: 56px 0; }
.section--mica { background: var(--mica); }
.section--sky { background: linear-gradient(180deg, var(--sky) 0%, #fff 100%); }
.section--ink { background: var(--ink-2); color: rgba(255,255,255,.86); }
/* Верхняя полоса внутренней страницы: крошки + форма поиска над заголовком.
   Секционные 74px сверху здесь слишком много, а нулевой отступ снизу склеил бы
   белую карточку формы с тёмным блоком h1. */
.section--top { padding: 26px 0 38px; }
.section--ink h2, .section--ink h3 { color: #fff; }

/* Alegreya — каллиграфическая антиква с небольшим очком: кегль заголовков
   поднят, иначе они выглядят мельче соседнего гротеска; трекинг почти нулевой. */
h1, h2 { font-family: var(--font-d); line-height: 1.14; color: var(--ink); }
h3, h4 { font-family: var(--font-h); line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(28px, 3.6vw, 46px); font-weight: 700; letter-spacing: -.3px; }
h2 { font-size: clamp(23px, 2.5vw, 32px); font-weight: 700; letter-spacing: -.2px; }
h3 { font-size: 20px; font-weight: 700; }

/* ---------- Общие мелочи ---------- */
.kicker {
    display: flex; width: fit-content; align-items: center; gap: 9px;
    font: 700 12px/1 var(--font-b); letter-spacing: 2.4px;
    text-transform: uppercase; color: var(--red);
    margin-bottom: 13px;
}
/* Кикер метит лепесток лотоса — знак перевозчика в самой простой форме. */
.kicker::before {
    content: ''; width: 11px; height: 11px; flex: none;
    border-radius: 0 60% 0 60%; transform: rotate(-45deg);
    background: var(--gold-l);
}
.section__head { max-width: 900px; margin-bottom: 34px; }
.section__head .after { color: var(--muted); margin-top: 12px; font-size: 18px; }
/* Подчёркивание-лента: золото лотоса → синева букв → розовый край лепестка */
.brush { position: relative; display: inline-block; }
.brush::after {
    content: ''; position: absolute; left: 0; right: -4px; bottom: -9px; height: 5px;
    border-radius: 3px;
    background: var(--vine);
}

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 24px; border-radius: 10px;
    font: 700 16px/1 var(--font-b);
    border: 0; cursor: pointer; transition: .18s;
    white-space: nowrap;
}
.btn .ic { width: 17px; height: 17px; fill: currentColor; flex: none; }
/* Главная кнопка — золото лотоса с тёмным текстом: белый на золоте не читается */
.btn--red { background: var(--cta); color: var(--on-cta) !important; box-shadow: 0 8px 20px rgba(196,142,7,.30); }
.btn--red:hover { background: var(--cta-d); transform: translateY(-1px); }
.btn--ghost { background: rgba(255,255,255,.07); color: #fff !important; border: 1.5px solid rgba(255,255,255,.38); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.14); }
.btn--line { background: #fff; color: var(--ink) !important; border: 1.5px solid var(--line-2); }
.btn--line:hover { border-color: var(--ink); }
.btn--sm { padding: 9px 15px; font-size: 13.5px; border-radius: 8px; }

.chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 999px;
    background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.20);
    color: #fff; font: 500 13.5px/1.3 var(--font-b);
}
.chip .ic { width: 13px; height: 13px; fill: var(--gold-l); flex: none; }
.tag {
    display: inline-block; padding: 4px 10px; border-radius: 6px;
    font: 700 11px/1.5 var(--font-b); letter-spacing: 1.1px; text-transform: uppercase;
}
.tag--red { background: #FBEFD0; color: #7A5500; }
.tag--steel { background: #E4EBEE; color: var(--steel); }
.tag--blue { background: #D6EAEE; color: var(--blue-d); }
.tag--gold { background: #FAEFD4; color: #7A5410; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.prose p { margin-bottom: 14px; color: #2B3338; }
.prose p:last-child { margin-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Верхняя служебная полоса ----------
   Рисовая бумага с золотой нитью снизу: над нефтяной шапкой она читается как
   кромка шёлка. Текст тёмный, галочки золотые. */
.topbar {
    background: var(--paper); color: rgba(0,43,61,.86);
    border-bottom: 2px solid var(--gold-l);
    font: 500 13.5px/1 var(--font-b);
}
.topbar__in { display: flex; align-items: center; gap: 22px; height: 36px; }
.topbar b { color: var(--ink); font-weight: 700; }
.topbar__i { display: inline-flex; align-items: center; gap: 7px; }
.topbar__i svg { width: 13px; height: 13px; fill: var(--cta-d); flex: none; }
.topbar__spacer { margin-left: auto; }

/* ---------- Шапка (синева букв логотипа) ---------- */
.site-header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(0,55,77,.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.10);
}
.site-header.scrolled { box-shadow: 0 8px 26px rgba(0,43,61,.34); }
.header-in { display: flex; align-items: center; gap: 18px; height: 70px; }

/* Логотип перевозчика — горизонтальный лок-ап 8:1. Высоту считаем от букв:
   при 26px строчные около 11px и читаются, а ширина укладывается в 206px. */
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; flex: none; }
.logo__img { display: block; height: 26px; width: auto; }

.nav { display: flex; gap: 1px; margin-left: auto; }
.nav a {
    padding: 9px 11px; border-radius: 8px;
    color: rgba(255,255,255,.84); font: 500 15.5px/1 var(--font-b);
    transition: .15s;
}
.nav a:hover { background: rgba(255,255,255,.10); color: #fff; }

.lang-switch {
    display: inline-flex; align-items: center; gap: 2px; flex: none;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px; padding: 3px;
}
.lang-switch a {
    padding: 5px 10px; border-radius: 999px;
    font: 700 11.5px/1 var(--font-b); letter-spacing: .8px;
    color: rgba(255,255,255,.62); transition: .15s;
}
.lang-switch a:hover { color: #fff; }
.lang-switch a.active { background: var(--red); color: #fff; }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2.5px; background: #fff; border-radius: 2px; margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(860px 460px at 84% 0%, rgba(237,182,38,.24) 0%, transparent 64%),
        radial-gradient(620px 380px at 6% 100%, rgba(231,160,181,.20) 0%, transparent 70%),
        linear-gradient(150deg, #001F2D 0%, #00374D 46%, #06516B 78%, #0E6E86 100%);
}
/* Узор тёмных секций: контуры лотоса и шёлковые нити. Маска гасит его к центру,
   чтобы текст и форма поиска лежали на чистом фоне. */
.hero::before, .page-hero::before {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    opacity: .30;
    background-image: var(--girih);
    background-size: 216px 156px;
    -webkit-mask-image: linear-gradient(228deg, #000 0%, rgba(0,0,0,.45) 46%, transparent 82%);
    mask-image: linear-gradient(228deg, #000 0%, rgba(0,0,0,.45) 46%, transparent 82%);
}
/* Шёлковая лента отбивает низ тёмных шапок */
.hero::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 3;
    background: var(--vine);
}
.hero__in { position: relative; z-index: 2; padding: 56px clamp(18px, 2.5vw, 40px) 66px; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 56px; align-items: center; }
.hero__lead { color: rgba(255,255,255,.84); font-size: 18.5px; margin: 16px 0 20px; max-width: 660px; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--gold-l); }
.hero__chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
/* Лотос-подложка: знак из логотипа, почти прозрачный */
.hero__fin { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__fin .bl { position: absolute; opacity: .10; fill: #fff; }
.hero__fin .b1 { width: 470px; top: -64px; right: -130px; opacity: .07; }
.hero__fin .b2 { width: 210px; bottom: -36px; left: -80px; opacity: .06; }
.hero__fin .b3 { display: none; }
/* Шёлковые нити стыковок: из Алматы через хабы во Вьетнам */
.hero__arc { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }

/* Карточка поиска в hero */
.searchcard {
    background: #fff; border-radius: 18px; box-shadow: var(--shadow-l);
    padding: 20px 20px 16px; color: var(--text);
    border: 1px solid rgba(255,255,255,.5);
}
.searchcard__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.searchcard__top h2 { font-size: 19px; letter-spacing: -.2px; }
.searchcard__note { font-size: 12.5px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.searchcard__tabs { display: flex; gap: 6px; margin: 12px 0 14px; flex-wrap: wrap; }
.searchcard__tabs button {
    padding: 7px 13px; border-radius: 999px; cursor: pointer;
    font: 600 12.5px/1 var(--font-b); color: var(--ink);
    background: var(--mica); border: 1px solid var(--line-2); transition: .15s;
}
.searchcard__tabs button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.searchcard__trust { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.searchcard__trust span { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1.4 var(--font-b); color: var(--muted); }
.searchcard__trust svg { width: 13px; height: 13px; fill: var(--steel); flex: none; }

/* Заглушка формы Travelpayouts (в бою — их скрипт) */
.tpmock { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.tpmock .f {
    border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; background: #fff;
    min-width: 0;
}
.tpmock .f small { display: block; font: 500 10.5px/1 var(--font-b); color: var(--muted); letter-spacing: .4px; text-transform: uppercase; }
.tpmock .f b { display: block; font: 700 15px/1.4 var(--font-h); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpmock .f--wide { grid-column: span 2; }
.tpmock .go { grid-column: span 4; }

/* ---------- Лента маршрутов (посадочные талоны) ---------- */
.rail-wrap { background: var(--mica); border-bottom: 1px solid var(--line); padding: 22px 0 26px; }
.rail-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.rail-head h2 { font-size: 17px; }
.rail-head span { color: var(--muted); font-size: 13.5px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(238px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 6px; }

/* Карточка-талон */
.pass {
    position: relative; background: #fff; border: 1px solid var(--line);
    border-radius: 14px; box-shadow: var(--shadow-s); overflow: hidden;
    display: flex; flex-direction: column; transition: .18s;
}
.pass:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--sky-2); }
.pass__top { padding: 15px 17px 13px; }
.pass__air { display: flex; align-items: center; justify-content: space-between; font: 600 11px/1 var(--font-b); letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); margin-bottom: 11px; }
.pass__air b { color: var(--red); font-weight: 700; }
.pass__iata { display: flex; align-items: center; gap: 10px; }
.pass__iata .code { font: 800 27px/1 var(--font-h); color: var(--ink); letter-spacing: -.5px; }
.pass__iata .path { flex: 1; position: relative; height: 14px; min-width: 26px; }
.pass__iata .path::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; border-top: 1.5px dotted var(--line-2); }
.pass__iata .path svg { position: absolute; left: 50%; top: 0; width: 14px; height: 14px; transform: translateX(-50%); fill: var(--blue); background: #fff; padding: 0 1px; }
.pass__city { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
/* перфорация */
.pass__perf { position: relative; height: 14px; }
.pass__perf::before { content: ''; position: absolute; left: 12px; right: 12px; top: 50%; border-top: 1.5px dashed var(--line-2); }
.pass__perf::after {
    content: ''; position: absolute; left: -8px; right: -8px; top: 50%; height: 16px; transform: translateY(-50%);
    background:
        radial-gradient(circle 8px at 0 50%, var(--mica) 98%, transparent 100%),
        radial-gradient(circle 8px at 100% 50%, var(--mica) 98%, transparent 100%);
    background-repeat: no-repeat; background-size: 16px 16px, 16px 16px; background-position: left center, right center;
}
.pass__bot { padding: 11px 17px 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pass__price small { display: block; font: 500 10.5px/1 var(--font-b); color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
.pass__price b { font: 800 17px/1.3 var(--font-h); color: var(--red); white-space: nowrap; }
.pass--mica .pass__perf::after {
    background:
        radial-gradient(circle 8px at 0 50%, #fff 98%, transparent 100%),
        radial-gradient(circle 8px at 100% 50%, #fff 98%, transparent 100%);
    background-repeat: no-repeat; background-size: 16px 16px, 16px 16px; background-position: left center, right center;
}
.pass--paper .pass__perf::after {
    background:
        radial-gradient(circle 8px at 0 50%, var(--paper) 98%, transparent 100%),
        radial-gradient(circle 8px at 100% 50%, var(--paper) 98%, transparent 100%);
    background-repeat: no-repeat; background-size: 16px 16px, 16px 16px; background-position: left center, right center;
}

/* ---------- Карточки-цифры ---------- */
.stat {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 18px 18px 16px; text-align: center; box-shadow: var(--shadow-s);
}
.stat b { display: block; font: 800 34px/1 var(--font-h); color: var(--red); }
.stat p { color: var(--muted); font-size: 13.5px; margin-top: 7px; }

/* ---------- Карточка стыковки ---------- */
.hub {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 18px; box-shadow: var(--shadow-s); display: flex; flex-direction: column; gap: 12px;
}
.hub__h { display: flex; align-items: center; gap: 10px; }
.hub__h .n { width: 30px; height: 30px; border-radius: 9px; background: var(--sky); color: var(--red-d); font: 800 14px/30px var(--font-h); text-align: center; flex: none; }
.leg { display: grid; grid-template-columns: 84px minmax(0,1fr) auto; gap: 10px; align-items: center; font-size: 13.5px; }
.leg > * { min-width: 0; }
.leg + .leg { border-top: 1px dashed var(--line-2); padding-top: 9px; margin-top: 9px; }
.leg .lc { font: 800 12.5px/1.25 var(--font-h); color: var(--ink); letter-spacing: .2px; white-space: nowrap; }
.leg .ld { color: var(--muted); font-size: 12.5px; }
.leg .lt { font: 600 12.5px/1 var(--font-b); color: var(--red); white-space: nowrap; }

/* ---------- Карточки классов / услуг ---------- */
.card {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 20px; box-shadow: var(--shadow-s); height: 100%;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card ul { list-style: none; margin-top: 11px; }
.card ul li { position: relative; padding-left: 20px; font-size: 14px; color: #48555B; margin-bottom: 6px; }
.card ul li::before {
    content: ''; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%;
    background: var(--blue);
}
.card--accent { border-top: 3px solid var(--red); }

/* ---------- Таблицы ---------- */
table { width: 100%; border-collapse: collapse; background: #fff; min-width: 560px; }
table th, table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; }
table th { background: var(--ink); color: #fff; font: 700 13px/1.4 var(--font-b); letter-spacing: .3px; }
table tr:last-child td { border-bottom: 0; }
table tbody tr:nth-child(even) td { background: #FBF6EC; }
/* Таблица на широком контейнере не растягивается: иначе колонки разъезжаются */
.tbl { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-s); max-width: 1180px; }
.tbl.table-scroll { overflow-x: auto; overflow-y: hidden; }

/* ---------- Флот ---------- */
.plane-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow-s); }
.plane-card .pl { background: var(--mica); border-radius: 10px; padding: 12px; margin: 12px 0; }
.plane-card .pl--top svg { display: block; margin: 0 auto; max-height: 210px; width: auto; }
/* фото борта в карточке: одинаковая высота у всех карточек ряда */
.plane-card .pl--photo { padding: 0; overflow: hidden; }
.plane-card__photo { display: block; width: 100%; height: 150px; object-fit: cover; border-radius: 10px; }
.section--mica .plane-card .pl { background: var(--paper); }
/* Характеристики борта: значение блоком, подпись под ним — иначе они слипаются */
.specs { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 12.5px; color: var(--muted); margin: 15px 0 13px; }
.specs b { color: var(--ink); font: 700 15px/1.3 var(--font-h); display: block; }
.plane-card .specs { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12.5px; color: var(--muted); }
.plane-card .specs b { color: var(--ink); font: 700 13px/1 var(--font-h); display: block; }
.cabin { display: flex; height: 9px; border-radius: 5px; overflow: hidden; margin-top: 12px; }
.cabin i { display: block; height: 100%; }
.cabin-l { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.cabin-l span { display: inline-flex; align-items: center; gap: 6px; }
.cabin-l b { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

/* ---------- Флот: строки на странице «Самолёты» ---------- */
.fleet-row {
    display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 30px; align-items: center;
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    padding: 22px; box-shadow: var(--shadow-s); margin-bottom: 20px;
}
.fleet-row--alt { direction: rtl; }
.fleet-row--alt > * { direction: ltr; }
.fleet-row__pic { background: var(--mica); border-radius: 12px; padding: 14px; }
.fleet-row__pic svg { display: block; margin: 0 auto; max-height: 260px; width: auto; }
/* Фотографии бортов с прежнего сайта широкие (около 900×320, то есть 2,8:1).
   В узкой колонке такой снимок превращается в полоску, поэтому карточка с фото
   раскладывается в одну колонку: фотография баннером во всю ширину, текст под ней.
   Двухколоночная раскладка остаётся для типов без фото — там рисуется SVG-силуэт. */
.fleet-row--photo { grid-template-columns: minmax(0, 1fr); gap: 20px; direction: ltr; }
.fleet-row__pic--photo { padding: 0; overflow: hidden; background: none; max-width: 900px; margin: 0 auto; width: 100%; }
.fleet-row__pic--photo img { display: block; width: 100%; height: auto; border-radius: 12px; }

/* Фотография борта на маршрутной странице: пропорции исходника, без min-width —
   в отличие от схемы салона, фото на мобильном должно ужиматься, а не скроллиться */
.routepic {
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    padding: 16px; box-shadow: var(--shadow-s); margin: 0 0 26px;
}
.routepic img { display: block; width: 100%; max-width: 900px; height: auto; margin: 0 auto; border-radius: 10px; }
.routepic figcaption { color: var(--muted); font-size: 13.5px; margin-top: 10px; text-align: center; }

/* Схема салона: широкая картинка с подписью, на мобильном скроллится внутри себя */
.seatmap {
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    padding: 16px; box-shadow: var(--shadow-s); margin: -6px 0 26px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.seatmap img { display: block; width: 100%; min-width: 560px; height: auto; }
.seatmap figcaption { margin-top: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.fleet-row__txt h2 { margin: 10px 0 10px; }
.fleet-row__txt p { color: #2B3338; margin-bottom: 14px; }

/* ---------- Лояльность (тёмная секция) ---------- */
.tier {
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px; padding: 18px;
}
.tier__badge {
    width: 44px; height: 44px; border-radius: 12px; margin-bottom: 12px;
    display: flex; align-items: center; justify-content: center;
}
.tier__badge svg { width: 24px; height: 24px; }
.tier p { color: rgba(255,255,255,.66); font-size: 14px; margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow-s); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
    list-style: none; cursor: pointer; padding: 16px 46px 16px 18px; position: relative;
    font: 700 15.5px/1.45 var(--font-h); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ''; position: absolute; right: 18px; top: 22px; width: 9px; height: 9px;
    border-right: 2px solid var(--red); border-bottom: 2px solid var(--red);
    transform: rotate(45deg); transition: .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .a { padding: 0 18px 17px; color: #48555B; font-size: 15px; }

/* ---------- Виджет-обёртка ---------- */
.widget-wrap { position: relative; z-index: 5; }
.widget-box {
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    padding: 22px; box-shadow: var(--shadow);
}
.widget-box h2 { font-size: 22px; margin-bottom: 6px; }
.widget-box .wn { color: var(--muted); font-size: 14px; margin-bottom: 16px; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--ink-2); color: rgba(255,255,255,.62); padding: 50px 0 26px; font-size: 14px; }
.site-footer h4 { color: #fff; font-size: 14.5px; margin-bottom: 12px; letter-spacing: .3px; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0,1.5fr) repeat(3, minmax(0,1fr)); gap: 28px; }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-disclaimer { max-width: 560px; }
.footer-bot { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.10); font-size: 12.5px; color: rgba(255,255,255,.45); display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }

/* ---------- Липкая мобильная панель CTA ---------- */
.mobile-cta {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line); padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 22px rgba(6,42,51,.12);
    align-items: center; gap: 12px;
}
.mobile-cta .mc-t { min-width: 0; }
.mobile-cta .mc-t b { display: block; font: 700 13.5px/1.2 var(--font-h); color: var(--ink); }
.mobile-cta .mc-t small { color: var(--muted); font-size: 11.5px; }
.mobile-cta .btn { margin-left: auto; }

/* ---------- Шапка внутренней страницы ---------- */
.page-hero {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(720px 360px at 92% 0%, rgba(237,182,38,.20) 0%, transparent 64%),
        radial-gradient(560px 320px at 22% 100%, rgba(14,124,147,.50) 0%, transparent 70%),
        linear-gradient(135deg, #001F2D 0%, #003A51 54%, #0A5E78 100%);
    padding: 34px 0 40px;
    border-bottom: 4px solid transparent;
    border-image: var(--vine) 1;
}
.page-hero::before { opacity: .20; background-size: 126px 91px; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 3.8vw, 44px); }
.page-hero__lead { color: rgba(255,255,255,.82); margin-top: 14px; max-width: 800px; font-size: 18px; }
.page-hero__fin { position: absolute; inset: 0; pointer-events: none; }
.page-hero__fin .bl { position: absolute; fill: #fff; }
.page-hero__fin .b1 { width: 320px; top: -40px; right: -90px; opacity: .08; }
.page-hero__fin .b2 { width: 150px; bottom: -34px; left: 6%; opacity: .06; }
.page-hero .container { position: relative; z-index: 2; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; margin-bottom: 14px; color: rgba(255,255,255,.55); }
.crumbs a { color: rgba(255,255,255,.75); }
.crumbs a:hover { color: #fff; }
.crumbs__here { color: rgba(255,255,255,.55); }
/* Крошки переехали с тёмного блока h1 на светлую полосу над ним — им нужен
   свой набор цветов, иначе белый текст на светлом фоне становится невидимым. */
.crumbs--light { color: var(--muted); margin-bottom: 16px; }
.crumbs--light a { color: var(--ink); }
.crumbs--light a:hover { color: var(--red); }
.crumbs--light .crumbs__here { color: var(--muted); }

/* ---------- Мобильное меню ---------- */
.nav.open {
    display: flex; flex-direction: column; gap: 2px;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(6,42,51,.14);
    padding: 10px 20px 16px; margin: 0; z-index: 61;
}
.nav.open a { padding: 11px 8px; border-radius: 8px; font-size: 15px; }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Кнопка «наверх» ---------- */
.to-top {
    position: fixed; right: 18px; bottom: 18px; z-index: 65;
    width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--ink); color: #fff; font-size: 19px; line-height: 1;
    box-shadow: 0 8px 20px rgba(6,42,51,.28);
    opacity: 0; visibility: hidden; transition: .2s;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--red); }

/* ---------- Варианты карточки поиска ---------- */
.searchcard--block { max-width: none; }
.searchcard--block .searchcard__top h2 { font-size: 23px; }
.searchcard__form { min-height: 96px; }
.searchcard__form iframe { max-width: 100% !important; }

/* Таблица дешёвых билетов ТП */
.pricetable {
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    padding: 20px; box-shadow: var(--shadow-s); margin-top: 26px;
}
.pricetable h2 { font-size: 21px; margin-bottom: 14px; }
.pricetable iframe, .pricetable table { max-width: 100% !important; }

/* ---------- Подвал: дополнения ---------- */
.site-footer { position: relative; overflow: hidden; }
.footer-fin { position: absolute; inset: 0; pointer-events: none; }
.footer-fin .bl { position: absolute; width: 430px; right: -110px; top: -30px; fill: #fff; opacity: .05; }
.site-footer .container { position: relative; z-index: 2; }
.logo--foot img { display: block; height: 24px; width: auto; opacity: .95; }
.footer-about { margin-top: 14px; max-width: 340px; }
.footer-addr { margin-top: 12px; font-style: normal; font-size: 13.5px; color: rgba(255,255,255,.55); }
.footer-addr a { color: rgba(255,255,255,.72); }

/* ---------- Маршрутная страница ---------- */
.route-top { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 34px; align-items: start; }
.pass--big { position: sticky; top: 92px; }
.pass--big .pass__iata .code { font-size: 31px; }
.pass__bot--stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.pass__stat b { display: block; font: 800 16px/1.2 var(--font-h); color: var(--ink); }
.pass__stat small { color: var(--muted); font-size: 12px; }

.card--link { display: block; position: relative; transition: .18s; }
.card--link:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--sky-2); }
.card--link h3 { color: var(--ink); }
.card--link .card__go { position: absolute; right: 18px; bottom: 14px; color: var(--red); font-size: 18px; }

/* ---------- Карта представительства ---------- */
.ymap {
    position: relative; margin: 16px 0 24px;
    border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
    box-shadow: var(--shadow-s); background: var(--mica);
    /* width обязательно задать явно: иначе min-height задаёт ширину через aspect-ratio */
    width: 100%; aspect-ratio: 16 / 9; min-height: 240px;
}
.ymap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Проза внутренних страниц ---------- */
.article { max-width: 860px; }
.article h2 { margin: 30px 0 12px; }
.article h2:first-child { margin-top: 0; }
.article h3 { margin: 22px 0 8px; }
.article p { margin-bottom: 13px; color: #2B3338; }
.article ul, .article ol { margin: 0 0 15px 0; padding-left: 0; list-style: none; }
.article li { position: relative; padding-left: 22px; margin-bottom: 7px; color: #2B3338; }
.article ul li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.article ol { counter-reset: n; }
.article ol li { counter-increment: n; }
.article ol li::before { content: counter(n); position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--sky-2); color: var(--blue-d); font: 700 11px/18px var(--font-h); text-align: center; }
.article .tbl { margin: 18px 0 22px; }
.note {
    background: var(--sky); border-left: 3px solid var(--red); border-radius: 0 10px 10px 0;
    padding: 14px 16px; margin: 18px 0; font-size: 15px; color: #48555B;
}
.note b { color: var(--red-d); }

/* ---------- Адаптив ---------- */
.cta-short { display: none; }
@media (max-width: 1240px) {
    .hero__in { gap: 30px; }
    .nav a { padding: 9px 8px; font-size: 13.5px; }
    .header-in { gap: 12px; }
    .cta-long { display: none; }
    .cta-short { display: inline; }
}
@media (max-width: 1140px) {
    .nav { display: none; }
    .burger { display: block; margin-left: auto; }
}
@media (max-width: 1020px) {
    .hero__in { grid-template-columns: minmax(0,1fr); padding-bottom: 34px; }
    .route-top { grid-template-columns: minmax(0,1fr); gap: 24px; }
    .pass--big { position: static; max-width: 420px; }
    .searchcard { order: -1; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
    /* на мобильных за CTA отвечает липкая нижняя панель */
    .header-in > .btn { display: none; }
    .logo__img { height: 22px; }
}
@media (max-width: 980px) {
    .topbar__i--hide-m { display: none; }
}
@media (max-width: 860px) {
    .fleet-row { grid-template-columns: minmax(0,1fr); gap: 18px; direction: ltr; }
    .fleet-row__pic svg { max-height: 220px; }
}
@media (max-width: 760px) {
    .section { padding: 42px 0; }
    .btn { white-space: normal; text-align: center; max-width: 100%; }
    .topbar__i--hide-s { display: none; }
    .page-hero { padding: 24px 0 30px; }
    .to-top { bottom: 76px; right: 12px; }
    .grid-2, .grid-3 { grid-template-columns: minmax(0,1fr); }
    .tpmock { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .tpmock .f--wide { grid-column: span 2; }
    .tpmock .go { grid-column: span 2; }
    .topbar__in { height: auto; padding: 8px 0; flex-wrap: wrap; gap: 10px 18px; }
    .mobile-cta { display: flex; }
    body { padding-bottom: 68px; }
}
@media (max-width: 560px) {
    /* третья колонка уезжает под вторую: иначе длинная казахская строка с nowrap распирает карточку */
    .leg { grid-template-columns: 80px minmax(0,1fr); row-gap: 4px; }
    .leg .lt { grid-column: 2; white-space: normal; line-height: 1.35; }
}
@media (max-width: 520px) {
    .grid-4 { grid-template-columns: minmax(0,1fr); }
    .footer-grid { grid-template-columns: minmax(0,1fr); }
    .hero__in { padding: 34px 20px 30px; }
}

/* Плашка «рейса нет в расписании»: страница унаследована от прежнего сайта,
   но линия снята — предупреждение должно быть заметнее обычной сноски. */
.alert {
    display: block; border-radius: var(--r); padding: 15px 17px; margin-bottom: 20px;
    background: #FDECEC; border: 1px solid #F3C6C8; border-left: 4px solid var(--red);
    color: #5E2226; font-size: 15px; line-height: 1.55;
}
.alert b { color: var(--red-d); }

/* Карточки стыковок: две строки плеч с кодами, номерами и временем. В четыре
   колонки они читаются только на широком экране, ниже 1280px — по две. */
@media (max-width: 1280px) {
    .grid-4.hubs { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
    .grid-4.hubs { grid-template-columns: minmax(0,1fr); }
}
.hub > a { font-weight: 700; margin-top: auto; }

/* Сводная таблица рейсов: строки-заголовки регионов и номер рейса без переноса */
.tbl__group td { background: var(--sky) !important; color: var(--ink); font-weight: 700; letter-spacing: .3px; }
.tbl__no { font-weight: 700; white-space: nowrap; color: var(--red-d); }
/* Сравнительные таблицы внутри прозы: первая колонка — подпись строки */
.tbl td:first-child { color: var(--ink); }
.article .tbl, .article .table-scroll { margin: 18px 0 22px; }
.faq--prose { margin-top: 10px; }
