/* ---------- Шрифты: самохостинг, Google Fonts не подключаем ----------
   Comfortaa — скруглённый геометрический гротеск, по пластике близкий
   к буквам логотипа REDSEA. IBM Plex Sans — текст. У обоих в сабсете
   cyrillic-ext есть казахские ә ғ қ ң ө ү һ (ұ і — в основном cyrillic). */
@font-face { font-family: "Comfortaa"; font-style: normal; font-weight: 600 700; font-display: swap;
    src: url(/fonts/comfortaa-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: "Comfortaa"; font-style: normal; font-weight: 600 700; font-display: swap;
    src: url(/fonts/comfortaa-cyrillic.woff2) format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Comfortaa"; font-style: normal; font-weight: 600 700; font-display: swap;
    src: url(/fonts/comfortaa-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: "IBM Plex Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
    src: url(/fonts/plexsans-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: "IBM Plex Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
    src: url(/fonts/plexsans-cyrillic.woff2) format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
    src: url(/fonts/plexsans-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; }

/* ============================================================
   Red Sea Airlines · Казахстан — дизайн «Волна Красного моря»
   Четыре цвета официального логотипа: морской синий #035473,
   бирюза #0AA6A6, песок #F2D6B3 и коралл #F24D3D. Логотип — три
   волны над буквами, отсюда главный мотив: слоистые волны по нижней
   кромке тёмных блоков (символ #waves в inc/mark.php), «рифовая»
   полоса из четырёх цветов на карточках и пузырьки в глубине hero.
   Фон страниц холодный, цвета морской пены, — чтобы сайт не путали
   с песочными сайтами серии.
   Контраст проверен: коралл-кнопка #D63A2A с белым текстом 4,67:1,
   коралловый текст #C23324 на пене 5,2:1, синий #035473 на белом 8,3:1,
   бирюзовый текст #067A7A на белом 5,2:1, бирюза на глубине 4,8:1.
   ============================================================ */

:root {
    --navy:    #035473;  /* синий логотипа: заголовки, ссылки, шапки таблиц */
    --navy-2:  #04688D;
    --deep:    #022E40;  /* глубина: тёмные секции, подвал */
    --deep-2:  #011F2C;
    --teal:    #0AA6A6;  /* бирюза: линии, метки, акценты на тёмном */
    --teal-d:  #067A7A;  /* бирюза для текста на светлом */
    --teal-l:  #8FD9D9;
    --coral:   #F24D3D;  /* коралл: волны, точки, декор */
    --coral-d: #D63A2A;  /* коралл для кнопок с белым текстом */
    --coral-t: #C23324;  /* коралловый текст на светлом */
    --sand:    #F2D6B3;  /* песок: декор и акценты на тёмном */
    --sand-l:  #FBF1E4;
    --text:    #14303D;
    --muted:   #5A6B73;
    --foam:    #F4F9F9;  /* фон страниц: морская пена */
    --foam-2:  #E6F2F2;  /* чередующиеся секции */
    --line:    #D7E6E6;
    --line-2:  #BFD5D6;
    --white:   #fff;
    --shadow:   0 12px 34px rgba(2,46,64,.10);
    --shadow-s: 0 4px 14px rgba(2,46,64,.07);
    --shadow-l: 0 24px 60px rgba(2,46,64,.22);
    --r: 16px;
    --reef: linear-gradient(90deg, #035473 0%, #035473 25%, #0AA6A6 25%, #0AA6A6 50%, #F2D6B3 50%, #F2D6B3 75%, #F24D3D 75%, #F24D3D 100%);
    --tide: linear-gradient(90deg, #035473 0%, #0AA6A6 45%, #F2D6B3 75%, #F24D3D 100%);
    --font-d: "Comfortaa", "Segoe UI", Arial, sans-serif;
    --font-b: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font: 400 16px/1.65 var(--font-b);
    color: var(--text);
    background: var(--foam);
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--coral-t); }

.container { max-width: 1560px; margin: 0 auto; padding: 0 clamp(18px, 2.5vw, 40px); }
.section { padding: 58px 0; }
.section--mica { background: var(--foam-2); }
.section--sky { background: linear-gradient(180deg, var(--foam-2) 0%, var(--foam) 100%); }
.section--ink {
    position: relative; overflow: hidden;
    color: rgba(255,255,255,.86);
    background:
        radial-gradient(900px 320px at 85% 120%, rgba(10,166,166,.30) 0%, transparent 70%),
        radial-gradient(600px 300px at 5% -10%, rgba(242,77,61,.16) 0%, transparent 70%),
        linear-gradient(180deg, var(--deep-2) 0%, var(--deep) 55%, #03425B 100%);
}
.section--ink { padding-bottom: 100px; }
.sec-waves { position: absolute; left: 0; right: 0; bottom: -1px; height: 48px; pointer-events: none; z-index: 1; }
.sec-waves svg { width: 100%; height: 100%; display: block; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink a { color: var(--teal-l); }
.section--ink .container { position: relative; z-index: 2; }

h1, h2, h3, h4 { font-family: var(--font-d); color: var(--navy); font-weight: 700; }
h1, h2 { line-height: 1.2; }
h3, h4 { line-height: 1.3; }
h1 { font-size: clamp(26px, 3.5vw, 42px); letter-spacing: -.6px; }
h2 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.5px; }
h3 { font-size: 18px; letter-spacing: -.2px; }

/* ---------- Общие мелочи ---------- */
/* Кикер: маленькая коралловая волна перед строкой */
.kicker {
    display: flex; width: fit-content; align-items: center; gap: 10px;
    font: 700 12px/1 var(--font-b); letter-spacing: 2px;
    text-transform: uppercase; color: var(--teal-d);
    margin-bottom: 14px;
}
.kicker::before {
    content: ''; width: 26px; height: 10px; flex: none;
    background: no-repeat center/100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 10'%3E%3Cpath d='M1 7c3-5 6-5 8 0s5 5 8 0 5-5 8 0' fill='none' stroke='%23F24D3D' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.section--ink .kicker, .hero .kicker { color: var(--sand); }
.section__head { max-width: 820px; margin-bottom: 34px; }
.section__head .after { color: var(--muted); margin-top: 12px; font-size: 16.5px; }
.section--ink .section__head .after { color: rgba(255,255,255,.74); }
/* Подчёркивание заголовков секций: «рифовая» полоса из четырёх цветов логотипа */
.brush { position: relative; display: inline-block; padding-bottom: 4px; }
.brush::after {
    content: ''; position: absolute; left: 0; width: min(100%, 132px); bottom: -8px; height: 4px;
    border-radius: 2px; background: var(--reef);
}

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 24px; border-radius: 999px;
    font: 700 15px/1 var(--font-b);
    border: 0; cursor: pointer; transition: .18s;
    white-space: nowrap;
}
.btn .ic { width: 17px; height: 17px; fill: currentColor; flex: none; }
/* Главная кнопка — коралл с белым текстом (4,67:1) */
.btn--red { background: var(--coral-d); color: #fff !important; box-shadow: 0 8px 22px rgba(214,58,42,.28); }
.btn--red:hover { background: #C4301F; transform: translateY(-1px); }
.btn--ghost { background: #fff; color: var(--navy) !important; border: 1.5px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--navy); }
.section--ink .btn--ghost, .hero .btn--ghost { background: rgba(255,255,255,.07); color: #fff !important; border-color: rgba(255,255,255,.42); }
.section--ink .btn--ghost:hover, .hero .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.14); }
.btn--line { background: #fff; color: var(--navy) !important; border: 1.5px solid var(--line-2); }
.btn--line:hover { border-color: var(--teal-d); }
.btn--sm { padding: 9px 16px; font-size: 13.5px; }

.chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 999px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.24);
    color: #fff; font: 600 13.5px/1.3 var(--font-b);
}
.chip .ic { width: 13px; height: 13px; fill: var(--teal); flex: none; }
.tag {
    display: inline-block; padding: 4px 10px; border-radius: 6px;
    font: 700 11px/1.5 var(--font-b); letter-spacing: 1px; text-transform: uppercase;
}
.tag--red { background: #FDE3DF; color: #A42A1C; }
.tag--steel { background: #E8EEEF; color: #4E5E65; }
.tag--blue { background: #DDEEF3; color: var(--navy); }
.tag--gold { background: var(--sand-l); color: #7A4F17; }
.tag--jade { background: #D8F1F1; color: #0B5E5E; }

.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: #21404D; }
.prose p:last-child { margin-bottom: 0; }
.section--ink .prose p { color: rgba(255,255,255,.82); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Верхняя служебная полоса ---------- */
.topbar { background: var(--deep); color: rgba(255,255,255,.86); font: 500 12.5px/1 var(--font-b); }
.topbar__in { display: flex; align-items: center; gap: 22px; height: 36px; }
.topbar__i { display: inline-flex; align-items: center; gap: 7px; }
.topbar__i svg { width: 13px; height: 13px; fill: var(--teal); flex: none; }
.topbar__spacer { margin-left: auto; }

/* ---------- Шапка: белая, логотип в родных цветах ---------- */
.site-header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--reef); opacity: .9; }
.site-header.scrolled { box-shadow: 0 8px 26px rgba(2,46,64,.10); }
.header-in { display: flex; align-items: center; gap: 18px; height: 72px; }
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; flex: none; }
.logo__img { display: block; height: 38px; width: auto; }
.nav { display: flex; gap: 1px; margin-left: auto; }
.nav a {
    padding: 9px 11px; border-radius: 999px;
    color: var(--deep); font: 600 14.5px/1 var(--font-b);
    transition: .15s;
}
.nav a:hover { background: var(--foam-2); color: var(--navy); }
.lang-switch {
    display: inline-flex; align-items: center; gap: 2px; flex: none;
    background: var(--foam); border: 1px solid var(--line-2);
    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: var(--muted); transition: .15s;
}
.lang-switch a:hover { color: var(--navy); }
.lang-switch a.active { background: var(--navy); color: #fff; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2.5px; background: var(--deep); border-radius: 2px; margin: 5px 0; transition: .25s; }

/* ---------- Hero: толща воды над рифом ---------- */
.hero {
    position: relative; overflow: hidden; color: rgba(255,255,255,.88);
    background:
        radial-gradient(900px 420px at 78% 108%, rgba(10,166,166,.45) 0%, rgba(10,166,166,.10) 48%, transparent 72%),
        radial-gradient(700px 340px at 6% -12%, rgba(242,214,179,.14) 0%, transparent 66%),
        linear-gradient(180deg, var(--deep-2) 0%, var(--deep) 38%, #034A66 78%, #04607F 100%);
}
/* пузырьки в толще воды */
.hero::before {
    content: ''; position: absolute; inset: 0 0 30% 0; z-index: 1; pointer-events: none;
    background-image:
        radial-gradient(circle at 9% 30%, rgba(143,217,217,.40) 0 2px, transparent 3px),
        radial-gradient(circle at 17% 64%, rgba(143,217,217,.28) 0 3px, transparent 4px),
        radial-gradient(circle at 31% 18%, rgba(143,217,217,.30) 0 1.6px, transparent 2.6px),
        radial-gradient(circle at 52% 40%, rgba(143,217,217,.22) 0 2.4px, transparent 3.4px),
        radial-gradient(circle at 66% 12%, rgba(143,217,217,.32) 0 1.8px, transparent 2.8px),
        radial-gradient(circle at 83% 34%, rgba(143,217,217,.26) 0 3px, transparent 4px),
        radial-gradient(circle at 93% 16%, rgba(143,217,217,.34) 0 1.6px, transparent 2.6px);
}
.hero__mark { position: absolute; z-index: 1; width: min(560px, 55vw); right: -40px; top: 26px; opacity: .07; pointer-events: none; filter: grayscale(1) brightness(3); }
.hero__waves { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 110px; pointer-events: none; }
.hero__waves svg { width: 100%; height: 100%; display: block; }
.hero__in { position: relative; z-index: 3; padding: 58px 20px 138px; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); gap: 46px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--sand); white-space: nowrap; }
.hero__lead { color: rgba(255,255,255,.82); font-size: 17px; margin: 16px 0 22px; max-width: 620px; }
.hero__lead b { color: #fff; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Поиск наезжает на волны hero снизу */
.search-lift { position: relative; z-index: 5; margin-top: -92px; }

/* Слоистые волны для нижней кромки тёмных блоков */
.w1 { fill: var(--teal); opacity: .55; }
.w2 { fill: var(--sand); opacity: .75; }
.w3 { fill: var(--coral); opacity: .55; }
.w4 { fill: var(--foam); }

/* ---------- Табло рейсов с перекидными цифрами ---------- */
.board {
    background: linear-gradient(180deg, #032C3D 0%, #043A50 100%);
    border: 1px solid rgba(255,255,255,.12); border-radius: 18px;
    box-shadow: 0 30px 70px rgba(1,31,44,.35); color: #fff; overflow: hidden;
}
.board__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.10); }
.board__head b { font: 700 13px/1.2 var(--font-d); letter-spacing: 1.2px; text-transform: uppercase; color: var(--sand); }
.board__head span { font-size: 12px; color: rgba(255,255,255,.62); }
.board table { min-width: 0; background: transparent; }
.board th, .board td { border: 0; padding: 9px 12px; font-size: 13.5px; vertical-align: middle; }
.board th { background: transparent; color: rgba(255,255,255,.56); font: 600 10.5px/1.2 var(--font-b); letter-spacing: 1.2px; text-transform: uppercase; }
.board tbody tr:nth-child(even) td { background: rgba(255,255,255,.035); }
.board td { color: rgba(255,255,255,.90); border-top: 1px solid rgba(255,255,255,.06); }
.board td a { color: #fff; font-weight: 700; }
.board td a:hover { color: var(--sand); }
.board__foot { padding: 11px 18px 14px; font-size: 12px; color: rgba(255,255,255,.62); border-top: 1px solid rgba(255,255,255,.08); }
.board__foot a { color: var(--teal-l); }
.board__days { color: rgba(255,255,255,.68); font-size: 12.5px; }
.flap { display: inline-flex; gap: 2px; font: 700 15px/1 var(--font-d); letter-spacing: 0; }
.flap i {
    font-style: normal; position: relative; display: inline-block; min-width: 15px; padding: 5px 2px;
    text-align: center; color: #FDF3E6; border-radius: 3px;
    background: linear-gradient(180deg, #06506C 0 49%, #04445C 51% 100%);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.35);
}
.flap i::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid rgba(0,0,0,.5); }
.flap i.sep { min-width: 6px; padding: 5px 0; background: none; box-shadow: none; color: rgba(253,243,230,.7); }
.flap i.sep::after { display: none; }
.board .code { font: 700 14px/1 var(--font-d); color: #fff; letter-spacing: .4px; }
.board .arr { color: var(--teal); margin: 0 4px; }

/* Карточка поиска */
.searchcard {
    background: #fff; border-radius: 20px; box-shadow: var(--shadow-l);
    padding: 20px 20px 16px; color: var(--text);
    border: 1px solid var(--line); position: relative; overflow: hidden;
}
.searchcard::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--reef); }
.searchcard__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.searchcard__top h2 { font-size: 19px; letter-spacing: -.3px; }
.searchcard__note { font-size: 12.5px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.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(--teal-d); flex: none; }
.searchcard--block .searchcard__top h2 { font-size: 22px; }
.searchcard__form { min-height: 96px; }
.searchcard__form iframe { max-width: 100% !important; }

/* ---------- Карточка-талон ---------- */
.pass {
    position: relative; background: #fff; border: 1px solid var(--line);
    border-radius: 16px; 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(--line-2); }
.pass::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--reef); }
.pass__top { padding: 17px 17px 13px; }
.pass__air { display: flex; align-items: center; justify-content: space-between; font: 600 11px/1 var(--font-b); letter-spacing: 1.3px; text-transform: uppercase; color: var(--muted); margin-bottom: 11px; }
.pass__air b { color: var(--coral-t); font-weight: 700; }
.pass__iata { display: flex; align-items: center; gap: 10px; }
.pass__iata .code { font: 700 27px/1 var(--font-d); color: var(--navy); letter-spacing: .2px; }
.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 dashed var(--line-2); }
.pass__iata .path svg { position: absolute; left: 50%; top: 0; width: 15px; height: 15px; transform: translateX(-50%) rotate(90deg); fill: var(--coral); 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(--foam) 98%, transparent 100%),
        radial-gradient(circle 8px at 100% 50%, var(--foam) 98%, transparent 100%);
    background-repeat: no-repeat; background-size: 16px 16px, 16px 16px; background-position: left center, right center;
}
.section--mica .pass__perf::after {
    background:
        radial-gradient(circle 8px at 0 50%, var(--foam-2) 98%, transparent 100%),
        radial-gradient(circle 8px at 100% 50%, var(--foam-2) 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: 600 10.5px/1 var(--font-b); color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
.pass__price b { font: 700 17px/1.3 var(--font-d); color: var(--coral-t); white-space: nowrap; }
.pass__bot--stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.pass__stat b { display: block; font: 700 15.5px/1.25 var(--font-d); color: var(--navy); }
.pass__stat small { color: var(--muted); font-size: 12px; }
.pass--big { position: sticky; top: 94px; }
.pass--big .pass__iata .code { font-size: 31px; }
a.pass { color: inherit; }

/* ---------- Карточки-цифры ---------- */
.stat {
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    padding: 18px 18px 16px; box-shadow: var(--shadow-s); position: relative; overflow: hidden;
}
.stat::after {
    content: ''; position: absolute; right: 14px; bottom: 10px; width: 34px; height: 12px; opacity: .5;
    background: no-repeat center/100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 10'%3E%3Cpath d='M1 7c3-5 6-5 8 0s5 5 8 0 5-5 8 0' fill='none' stroke='%230AA6A6' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.stat b { display: block; font: 700 31px/1 var(--font-d); color: var(--navy); }
.stat p { color: var(--muted); font-size: 13.5px; margin-top: 8px; }
.section--ink .stat { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.13); box-shadow: none; }
.section--ink .stat b { color: var(--sand); }
.section--ink .stat p { color: rgba(255,255,255,.72); }

/* ---------- Карточка рейса ---------- */
.hub {
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    padding: 18px; box-shadow: var(--shadow-s); display: flex; flex-direction: column; gap: 12px;
}
.hub--own { border-top: 4px solid var(--coral); }
.hub__h { display: flex; align-items: center; gap: 10px; }
.hub__h .n { width: 32px; height: 32px; border-radius: 10px; background: var(--foam-2); color: var(--navy); font: 700 13px/32px var(--font-d); text-align: center; flex: none; }
.hub--own .hub__h .n { background: #FDE3DF; color: #A42A1C; }
.leg { display: grid; grid-template-columns: 74px 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: 700 13px/1.2 var(--font-d); color: var(--navy); letter-spacing: .3px; }
.leg .ld { color: var(--muted); font-size: 12.5px; }
.leg .lt { font: 700 12.5px/1.2 var(--font-b); color: var(--coral-t); white-space: nowrap; }

/* ---------- Цепочка рейсов (туда и обратно) ---------- */
.itin { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-s); overflow: hidden; margin: 18px 0 24px; }
.itin__h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px 18px; background: var(--foam-2); border-bottom: 1px solid var(--line); }
.itin__h b { font: 700 15px/1.3 var(--font-d); color: var(--navy); }
.itin__h span { font-size: 13px; color: var(--muted); }
.itin__row { display: grid; grid-template-columns: 110px minmax(0,1fr) minmax(0,1fr) 170px; gap: 14px; align-items: center; padding: 14px 18px; }
.itin__row + .itin__row { border-top: 1px dashed var(--line-2); }
.itin__row > * { min-width: 0; }
.itin__no { font: 700 15px/1.2 var(--font-d); color: var(--coral-t); }
.itin__no small { display: block; font: 600 11px/1.3 var(--font-b); color: var(--muted); letter-spacing: .4px; }
.itin__pt b { display: block; font: 700 20px/1.1 var(--font-d); color: var(--navy); }
.itin__pt span { font-size: 12.5px; color: var(--muted); }
.itin__meta { font-size: 12.5px; color: var(--muted); text-align: right; }
.itin__wait { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--navy); background: var(--foam); padding: 9px 18px; margin: 0 -18px; }

/* ---------- Карта сети ---------- */
.netmap { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--shadow-s); }
.netmap svg { display: block; width: 100%; height: auto; }
.netmap__scroll { overflow-x: auto; }
@media (max-width: 720px) {
    .netmap { margin-left: -18px; margin-right: -18px; border-radius: 0; border-left: 0; border-right: 0; }
    .netmap__scroll { margin: 0 -14px; }
    .netmap__scroll svg { min-width: 760px; }
}
.netmap figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; line-height: 1.5; }
.netmap__lg { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 2px 0 8px; font-size: 13.5px; }
.netmap__lg span { display: inline-flex; align-items: center; gap: 7px; color: var(--text); }
.netmap__lg i { display: inline-block; width: 24px; border-top: 2.5px solid; }
.netmap__lg i.dash { border-top-style: dashed; }
.netmap__lg i.dot { width: 9px; height: 9px; border: 0; border-radius: 50%; }

/* ---------- Карточки ---------- */
.card {
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    padding: 20px; box-shadow: var(--shadow-s); height: 100%;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card p + p { margin-top: 8px; }
.card ul { list-style: none; margin-top: 11px; }
.card ul li { position: relative; padding-left: 20px; font-size: 14px; color: var(--text); margin-bottom: 6px; }
.card ul li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.card--accent { border-top: 4px solid var(--teal); }
.card--link { display: block; position: relative; transition: .18s; padding-bottom: 38px; }
.card--link:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card--link h3 { color: var(--navy); }
.card--link .card__go { position: absolute; right: 18px; bottom: 12px; color: var(--coral-t); font-size: 18px; font-weight: 700; }
.card__price { display: block; margin-top: 10px; font: 700 15px/1.2 var(--font-d); color: var(--coral-t); }
.section--ink .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.13); box-shadow: none; }
.section--ink .card p, .section--ink .card li { color: rgba(255,255,255,.80); }
.section--ink .card h3 { color: #fff; }

/* ---------- Таблицы ---------- */
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; vertical-align: top; }
table th { background: var(--navy); color: #fff; font: 600 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: #F7FBFB; }
.tbl { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-s); }
.tbl.table-scroll { overflow-x: auto; overflow-y: hidden; }
td.num, th.num { text-align: right; white-space: nowrap; }
.tbl tr.grp td { background: var(--foam-2) !important; font-weight: 700; color: var(--navy); }

/* ---------- Флот ---------- */
.plane-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-s); }
.specs { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 12.5px; color: var(--muted); margin: 15px 0 13px; }
.specs b { color: var(--navy); font: 700 15px/1.3 var(--font-d); 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, 1fr) minmax(0, 1.1fr); gap: 26px; align-items: start;
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    padding: 22px; box-shadow: var(--shadow-s); margin-bottom: 20px;
}
.fleet-row__pic { overflow: hidden; border-radius: 12px; width: 100%; }
.fleet-row__pic img { display: block; width: 100%; height: auto; border-radius: 12px; }
.fleet-row__txt h2 { margin: 2px 0 10px; }
.fleet-row__txt p { color: #21404D; margin-bottom: 13px; }
.regs { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin: 18px 0 8px; }
.reg { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 12px; box-shadow: var(--shadow-s); position: relative; overflow: hidden; }
.reg::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--teal); }
.reg b { display: block; font: 700 19px/1.1 var(--font-d); color: var(--navy); letter-spacing: .5px; }
.reg span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.45; }

.routepic {
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    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; }
.figrow { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin: 18px 0 24px; }
.figrow .routepic { margin: 0; }
.seatmap { overflow-x: auto; }
.seatmap img { min-width: 640px; }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: 16px; 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-d); color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ''; position: absolute; right: 18px; top: 22px; width: 9px; height: 9px;
    border-right: 2.5px solid var(--coral); border-bottom: 2.5px solid var(--coral);
    transform: rotate(45deg); transition: .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .faq__a { padding: 0 18px 17px; color: var(--text); font-size: 15px; }
.faq .faq__a p + p { margin-top: 10px; }

/* ---------- Подвал: глубина под волнами ---------- */
.site-footer {
    position: relative; overflow: hidden;
    background: var(--deep); color: rgba(255,255,255,.66); padding: 64px 0 26px; font-size: 14px;
}
.site-footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--reef); }
.footer-mark { position: absolute; right: -30px; bottom: -30px; width: 320px; opacity: .05; pointer-events: none; filter: grayscale(1) brightness(3); }
.site-footer h4 { color: #fff; font-size: 14.5px; margin-bottom: 12px; letter-spacing: .2px; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--sand); }
.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-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,.50); display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.site-footer .container { position: relative; z-index: 2; }
.logo--foot img { display: block; height: 34px; width: auto; }
.footer-about { margin-top: 14px; max-width: 390px; }
.footer-addr { margin-top: 12px; font-style: normal; font-size: 13.5px; color: rgba(255,255,255,.58); }

/* ---------- Липкая мобильная панель CTA ---------- */
.mobile-cta {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: rgba(255,255,255,.97); 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(2,46,64,.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-d); color: var(--navy); }
.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: rgba(255,255,255,.86);
    background:
        radial-gradient(700px 240px at 86% 120%, rgba(10,166,166,.42) 0%, transparent 70%),
        linear-gradient(180deg, var(--deep) 0%, #034A66 100%);
    padding: 36px 0 62px;
}
.page-hero__waves { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; pointer-events: none; }
.page-hero__waves svg { width: 100%; height: 100%; display: block; }
.page-hero h1 { color: #fff; font-size: clamp(24px, 3.3vw, 38px); max-width: 1100px; }
.page-hero__lead { color: rgba(255,255,255,.82); margin-top: 14px; max-width: 820px; font-size: 16.5px; }
.page-hero__mark { position: absolute; right: -20px; top: 10px; width: 300px; opacity: .06; pointer-events: none; filter: grayscale(1) brightness(3); }
.page-hero .container { position: relative; z-index: 2; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; margin-bottom: 14px; color: var(--muted); }
.crumbs a { color: var(--navy); font-weight: 600; }
.crumbs a:hover { color: var(--coral-t); }
.crumbs__here { color: var(--muted); }

/* Верхняя полоса с формой поиска (выше h1) */
.section--top { padding: 22px 0 32px; background: #fff; border-bottom: 1px solid var(--line); }
.crumbs--light { 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(2,46,64,.14);
    padding: 10px 20px 16px; margin: 0; z-index: 61;
}
.nav.open a { padding: 11px 8px; border-radius: 10px; 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(--navy); color: #fff; font-size: 19px; line-height: 1;
    box-shadow: 0 8px 20px rgba(2,46,64,.28);
    opacity: 0; visibility: hidden; transition: .2s;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--teal-d); }

/* ---------- Маршрутная страница ---------- */
.route-top { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 34px; align-items: start; }

/* ---------- Карта офиса ---------- */
.ymap {
    position: relative; margin: 16px 0 24px;
    border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
    box-shadow: var(--shadow-s); background: var(--foam-2);
    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: 920px; }
.article h2 { margin: 34px 0 12px; }
.article h2:first-child { margin-top: 0; }
.article h3 { margin: 22px 0 8px; }
.article p { margin-bottom: 13px; color: #21404D; }
.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: #21404D; }
.article ul li::before { content: ''; position: absolute; left: 3px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.article ol { counter-reset: n; }
.article ol li { counter-increment: n; padding-left: 30px; }
.article ol li::before { content: counter(n); position: absolute; left: 0; top: 2px; width: 21px; height: 21px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 11px/21px var(--font-d); text-align: center; }
.article .tbl { margin: 18px 0 22px; }
.article--wide { max-width: 1180px; }
.note {
    background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 0 12px 12px 0;
    padding: 14px 16px; margin: 18px 0; font-size: 15px; color: var(--text);
}
.note b { color: var(--navy); }
.note--warn { background: #FFF4F2; border-color: #F6D3CD; border-left-color: var(--coral); }
.note--warn b { color: #A42A1C; }
.lead-in { font-size: 17.5px; color: #21404D; max-width: 920px; margin-bottom: 18px; }

/* Сезонная лента: месяцы программы (на странице рейсов из Казахстана) */
.months { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 4px; margin: 14px 0 6px; }
.months span { text-align: center; font: 600 11.5px/1 var(--font-b); color: var(--muted); padding: 9px 0; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.months span.on { background: var(--teal-d); border-color: var(--teal-d); color: #fff; }

/* ---------- Адаптив ---------- */
.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: 1160px) {
    .nav { display: none; }
    .burger { display: block; margin-left: auto; }
}
@media (max-width: 1020px) {
    .hero__in { grid-template-columns: minmax(0,1fr); padding-bottom: 128px; }
    .route-top { grid-template-columns: minmax(0,1fr); gap: 24px; }
    .pass--big { position: static; max-width: 440px; }
    .grid-4, .regs { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .fleet-row { grid-template-columns: minmax(0,1fr); }
    .itin__row { grid-template-columns: 96px minmax(0,1fr) minmax(0,1fr); }
    .itin__meta { grid-column: 2 / -1; text-align: left; }
}
@media (max-width: 900px) {
    .header-in > .btn { display: none; }
    .logo__img { height: 32px; }
}
@media (max-width: 980px) {
    .topbar__i--hide-m { display: none; }
}
@media (max-width: 760px) {
    .section { padding: 46px 0; }
    .btn { white-space: normal; text-align: center; max-width: 100%; }
    .topbar__i--hide-s { display: none; }
    .page-hero { padding: 26px 0 50px; }
    .to-top { bottom: 76px; right: 12px; }
    .grid-2, .grid-3, .figrow { grid-template-columns: minmax(0,1fr); }
    .topbar__in { height: auto; padding: 8px 0; flex-wrap: wrap; gap: 10px 18px; }
    .mobile-cta { display: flex; }
    body { padding-bottom: 68px; }
    .hero__waves { height: 74px; }
    .board th, .board td { padding: 8px 8px; font-size: 12.5px; }
    .itin__row { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
    .itin__no { grid-column: 1 / -1; }
    .itin__meta { grid-column: 1 / -1; }
    .months { grid-template-columns: repeat(6, minmax(0,1fr)); }
}
@media (max-width: 560px) {
    .leg { grid-template-columns: 66px minmax(0,1fr); row-gap: 4px; }
    .leg .lt { grid-column: 2; white-space: normal; line-height: 1.35; }
    .flap { font-size: 13px; }
    .flap i { min-width: 12px; padding: 4px 1px; }
}
@media (max-width: 520px) {
    .grid-4, .regs { grid-template-columns: minmax(0,1fr); }
    .footer-grid { grid-template-columns: minmax(0,1fr); }
    .hero__in { padding: 34px 20px 112px; }
    .board__head span { display: none; }
    .logo__img { height: 28px; }
}
