/* ============================================================
   Визаран·Гид — design system
   Палитра/типографика сняты с эталонного шаблона (тёплый крем,
   шалфейный акцент, серифные заголовки + округлый гротеск).
   Токены извлечены из живого рендера, не на глаз.
   ============================================================ */

:root {
  /* --- surfaces (тёплый крем) --- */
  --bg:        #FCFAF7;   /* основной фон */
  --bg-warm:   #F8F3EC;   /* тёплые секции + футер */
  --surface:   #FFFFFF;   /* карточки */

  /* --- ink (тёплый почти-чёрный + таупе) --- */
  --ink:       #0D0503;   /* заголовки, сильный текст */
  --ink-soft:  #8D6959;   /* основной приглушённый текст (таупе) — подпись шаблона */
  --ink-faint: #A6917F;   /* ещё светлее */
  --line:      #ECE4D9;   /* тонкие разделители */
  --line-soft: #F1EAE0;

  /* --- accents --- */
  --brand:      #8E9867;  /* шалфейно-оливковый — кнопки/акцент */
  --brand-ink:  #5F6A3E;  /* тёмный шалфей для текста-ссылок */
  --brand-deep: #6E7A4F; /* hover */
  --brand-soft: rgba(142,152,103,.16);
  --brand-tint: #F0F1E7;

  --terra:      #E1937D;  /* терракота — иконки/акценты */
  --terra-ink:  #A65C42;  /* терракота-текст */
  --terra-soft: rgba(225,147,125,.18);
  --blue:       #7DA4DB;
  --butter:     rgba(243,222,138,.55);

  /* коралловый градиент (CTA / stat-карта) */
  --coral-a: #F0A883;
  --coral-b: #E5714F;

  /* --- статусы (в тёплой гамме, но семантичны) --- */
  --ok:   #5F6A3E; --ok-bg:   rgba(142,152,103,.18); --ok-dot:   #8E9867;
  --warn: #A9722B; --warn-bg: rgba(217,167,79,.20);  --warn-dot: #D9A24E;
  --stop: #A8402E; --stop-bg: rgba(176,64,46,.12);   --stop-dot: #C0432F;
  --off:  #8D6959; --off-bg:  rgba(141,105,89,.12);  --off-dot:  #8D6959;

  /* --- geometry --- */
  --r-lg: 32px;
  --r:    24px;
  --r-sm: 16px;
  --r-xs: 12px;

  --shadow-sm: 0 2px 6px rgba(13,5,3,.03), 0 8px 26px rgba(13,5,3,.045);
  --shadow:    0 10px 30px rgba(13,5,3,.05), 0 32px 70px rgba(13,5,3,.06);
  --shadow-lg: 0 18px 48px rgba(13,5,3,.075), 0 54px 110px rgba(13,5,3,.09);

  /* максимум контентной колонки; ниже него всё тянется резиново */
  --maxw: 1440px;
  --gap: clamp(18px, 2.4vw, 30px);
  /* внутренний отступ карточки — токен, а не литерал: фото-шапка страны выезжает
     за края карточки отрицательным margin ровно на эту величину, и на узких
     экранах, где отступ меньше, они обязаны меняться вместе */
  --card-pad: 32px;
  --card-pad-lg: 40px;
  /* высота шапки: от неё же считается scroll-margin у якорей */
  --header-h: 94px;
  /* было 9.5vw/140px — между разделами набегало 274px пустоты */
  --section-y: clamp(54px, 6.2vw, 94px);

  /* "Twemoji Country Flags" стоит первым, но подключён с unicode-range только на
     региональные индикаторы: Windows не рисует флаги-эмодзи (показывает «GE», «RS»),
     этот шрифт возвращает их на всех платформах и на остальной текст не влияет. */
  --font-serif: "Twemoji Country Flags", "Lora", Georgia, "Times New Roman", serif;
  --font-sans:  "Twemoji Country Flags", "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Шрифты свои, а не с fonts.googleapis.com: тот тянул за собой два preconnect и
   блокирующий CSS-запрос к чужому origin перед первой отрисовкой. Файлы —
   вариативные (одна начертанием на весь диапазон веса), нарезаны из мастеров
   в src-fonts/ скриптом tools/build-fonts.py. unicode-range нужен, чтобы
   латиница не грузилась на страницах, где её нет. */
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-cyrillic.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2122, U+2192, U+20BD;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-cyrillic.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2122, U+2192, U+20BD;
}

/* Флаги: в мастере 288 стран и 78 КБ, сайту хватает 26 — см. tools/build-fonts.py */
@font-face {
  font-family: "Twemoji Country Flags";
  src: url("../fonts/TwemojiCountryFlags.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+1F1E6-1F1FF;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  /* горизонтальному скроллу взяться неоткуда: любой блок, вылезший за вьюпорт, —
     это баг вёрстки, а не повод возвращать min-width */
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 500; line-height: 1.14; letter-spacing: -.01em; }
p  { margin: 0; }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 44px); }
.section   { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(34px, 3.6vw, 54px); }
/* баннер сразу под hero: у hero уже есть свой нижний отступ, второй не нужен */
.hero + .section--tight { padding-top: 0; }
.center { text-align: center; }
.muted  { color: var(--ink-soft); }
.faint  { color: var(--ink-faint); }

/* eyebrow — мягкая персиковая «пилюля» с тёмным текстом */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; letter-spacing: 0;
  color: var(--terra-ink);
  padding: 8px 16px; border-radius: 100px;
  background: var(--terra-soft);
}
.eyebrow--plain { background: transparent; padding: 0; color: var(--terra-ink); }

/* серифные дисплей-заголовки (как Castoro): тонкие, с отрицательным трекингом */
.display {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -.012em;
  line-height: 1.12;
  color: var(--ink);
}
/* Одна шкала для hero-H1 и секционных H2: заголовок не должен кричать,
   а главный экран — выглядеть крупнее остальных разделов. */
.h1, .h2 { font-size: clamp(29px, 3.5vw, 44px); line-height: 1.12; }
.h3 { font-size: clamp(20px, 2vw, 26px); }
.lead { font-size: clamp(16.5px, 1.2vw, 19px); color: var(--ink-soft); line-height: 1.55; font-weight: 500; }

.section-head { max-width: 680px; margin-inline: auto; }
.section-head .h2 { margin-top: 18px; }
.section-head .lead { margin-top: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-sans);
  font-weight: 700; font-size: 15.5px; line-height: 1;
  padding: 15px 28px; border-radius: 100px; border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ic { transition: transform .2s ease; }
.btn:hover .ic { transform: translateX(3px); }
.btn--primary { position: relative; overflow: hidden; background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(142,152,103,.28); }
.btn--primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 36%, rgba(255,255,255,.30) 50%, transparent 64%); transform: translateX(-135%); transition: transform .7s ease; }
.btn--primary:hover { background: var(--brand-deep); box-shadow: 0 14px 30px rgba(142,152,103,.36); }
.btn--primary:hover::after { transform: translateX(135%); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: #e0d7c9; background: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
/* +20% по высоте: кнопка в шапке была заметно ниже остального ряда */
.btn--sm { padding: 16px 22px; font-size: 14.5px; }
.btn--block { width: 100%; }
.btn .ic { width: 17px; height: 17px; }

/* ---------- badges / status ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 700; letter-spacing: 0;
  padding: 7px 13px 7px 11px; border-radius: 100px; line-height: 1;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.badge--ok   { color: var(--ok);   background: var(--ok-bg); }
.badge--ok   .dot { background: var(--ok-dot); }
.badge--warn { color: var(--warn); background: var(--warn-bg); }
.badge--warn .dot { background: var(--warn-dot); }
.badge--stop { color: var(--stop); background: var(--stop-bg); }
.badge--stop .dot { background: var(--stop-dot); }
.badge--off  { color: var(--off);  background: var(--off-bg); }
.badge--off  .dot { background: var(--off-dot); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  padding: 8px 15px; border-radius: 100px; background: var(--surface); border: 1px solid var(--line);
}

.updated {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 700; color: var(--ink-faint);
}
.updated .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok-dot); box-shadow: 0 0 0 3px var(--ok-bg); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252,250,247,.80);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(252,250,247,.92); }
.nav { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-serif); font-weight: 600; font-size: 25px; letter-spacing: -.01em; color: var(--ink); }
/* знак логотипа — растр из макета, отдаётся с запасом под retina.
   Новый знак — «пин»: он выше, чем шире, и внутри квадрата занимает высоту.
   Поэтому бокс крупнее прежнего круглого знака, иначе выглядит мелким. */
.brand .mark { width: 54px; height: 54px; flex: none; }
.brand small { color: var(--terra-ink); font-weight: 800; font-size: 15px; letter-spacing: .02em; font-family: var(--font-sans); }
.nav-links { display: flex; align-items: center; gap: 6px; margin-inline: auto; }
.nav-links a {
  font-family: var(--font-sans);
  font-size: 15.5px; font-weight: 600; color: var(--ink);
  padding: 9px 15px; border-radius: 100px; transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--terra-ink); background: var(--terra-soft); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(44px, 6vw, 90px) var(--section-y); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(55% 45% at 84% 4%, rgba(225,147,125,.16), transparent 60%),
    radial-gradient(46% 38% at 6% 14%, var(--butter), transparent 62%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 4vw, 64px); align-items: center; }
.hero h1 { margin-top: 22px; }
.hero .lead { margin-top: 24px; max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
/* три показателя строго в ряд — иначе длинные подписи разносят блок по высоте */
.hero-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-trust .item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hero-trust .num { font-family: var(--font-serif); font-size: 26px; line-height: 1.1; font-weight: 500; color: var(--ink); }
.hero-trust .lbl { font-size: 12.5px; line-height: 1.35; color: var(--ink-faint); font-weight: 600; }

/* hero visual card */
.hero-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-lg);
}
.hero-card h3 { font-family: var(--font-sans); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.hero-card .updated { margin-top: 6px; }
.mini-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.mini-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border: 1px solid var(--line-soft); border-radius: var(--r-sm); background: var(--bg);
  transition: background .15s ease, border-color .15s ease;
}
a.mini-row:hover { background: var(--bg-warm); border-color: var(--line); }
.mini-row .flag { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; font-size: 17px; line-height: 1; background: #fff; border: 1px solid var(--line-soft); }
/* название и подпись — колонкой с плотным интерлиньяжем: на <br> строки шли с
   межстрочным интервалом body, ряд получался высоким и рыхлым */
.mini-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mini-row .name { font-weight: 700; font-size: 15px; line-height: 1.2; color: var(--ink); }
.mini-row .meta { font-size: 12.5px; line-height: 1.3; color: var(--ink-faint); }
/* бейдж не переносится по словам — иначе «Маршрут закрыт» ломал ряд на две строки */
.mini-row .badge { margin-left: auto; flex: none; white-space: nowrap; }
.hero-note { margin-top: 18px; font-size: 12.5px; color: var(--ink-faint); }

/* ---------- coverage strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--bg-warm); }
/* подпись сверху, чипы — отдельной строкой на всю ширину */
.strip .container { padding-block: 26px 28px; }
.strip .label { display: block; margin-bottom: 15px; font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); text-align: center; }
/* чипы не растягиваются: при flex-grow боковые отступы у каждого получались свои
   («ОАЭ» — с воздухом, «Черногория» — в обтяжку). Одинаковый padding для всех. */
.strip .items { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.strip .items .chip { flex: 0 0 auto; gap: 12px; padding: 12px 26px; font-size: 16px; }
/* чипы — ссылки на страницы стран */
.strip .items a.chip { transition: color .15s ease, border-color .15s ease, box-shadow .2s ease, transform .15s ease; }
.strip .items a.chip:hover { color: var(--brand-ink); border-color: var(--brand); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
/* Флаг оптически центрируем по текстовой строке. В пересобранном сабсете
   TwemojiCountryFlags глиф больше не свисает под базовую линию (ink 16px вверх,
   0 вниз при 21px), поэтому старый подъём на 1.5px задирал флаг: замер даёт
   центр ink флага на 2px выше центра ink текста. Опускаем на эти 2px. */
.strip .items .chip .flag { font-size: 21px; line-height: 1; position: relative; top: 0.5px; }

/* ---------- card grid ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r); padding: var(--card-pad); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.card--pad-lg { padding: var(--card-pad-lg); }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line); }

.icon-badge {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: var(--terra-soft); color: var(--terra-ink); margin-bottom: 20px;
}
.icon-badge svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card .card-text { color: var(--ink-soft); font-size: 15.5px; font-weight: 500; }

/* ---------- country cards ---------- */
.country-card { display: flex; flex-direction: column; position: relative; }
.country-card .cc-top { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.country-card .flag { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; background: var(--bg-warm); border: 1px solid var(--line-soft); flex: none; }
.country-card .cc-name { font-family: var(--font-serif); font-size: 22px; font-weight: 500; color: var(--ink); }
.country-card .cc-sub { font-size: 13px; color: var(--ink-faint); font-weight: 600; }
.country-card .badge { align-self: flex-start; margin-bottom: 16px; }
.cc-facts { list-style: none; padding: 0; margin: 4px 0 22px; display: flex; flex-direction: column; gap: 10px; }
.cc-facts li { display: flex; gap: 11px; font-size: 14.5px; color: var(--ink-soft); align-items: flex-start; font-weight: 500; }
.cc-facts li svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 2px; }
.country-card .btn { margin-top: auto; }

/* ---------- steps ---------- */
.steps { counter-reset: step; }
.step-card { position: relative; }
.step-card .num {
  font-family: var(--font-serif); font-size: 18px; font-weight: 500; color: #fff;
  width: 40px; height: 40px; border-radius: 50%; background: var(--terra);
  display: grid; place-items: center; margin-bottom: 18px;
}
.step-card h3 { margin-bottom: 10px; }

/* ---------- feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 4vw, 68px); align-items: center; }
.split--rev .split-media { order: 2; }
.feature-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 18px; }
.feature-list li { display: flex; gap: 15px; }
.feature-list .tick { width: 28px; height: 28px; border-radius: 9px; background: var(--terra-soft); color: var(--terra-ink); display: grid; place-items: center; flex: none; }
.feature-list .tick svg { width: 15px; height: 15px; }
.feature-list b { display: block; font-weight: 700; color: var(--ink); }
.feature-list span { color: var(--ink-soft); font-size: 15px; }

.panel {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow);
}
.panel--compact { padding: clamp(20px, 2.2vw, 28px); }
/* шапка панели: заголовок и подпись по базовой линии, а не по центру блоков —
   у серифного h3 и мелкой подписи центры не совпадают */
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel--brand { background: linear-gradient(150deg, var(--coral-a), var(--coral-b)); color: #fff; border: none; }
.panel--brand .muted, .panel--brand p { color: rgba(255,255,255,.86); }
.panel--brand .eyebrow { background: rgba(255,255,255,.18); color: #fff; }

/* stat trio */
.stat-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat .n { font-family: var(--font-serif); font-size: clamp(26px, 2.9vw, 36px); font-weight: 500; line-height: 1; color: var(--ink); }
.stat .c { font-size: 13.5px; color: var(--ink-faint); margin-top: 10px; font-weight: 600; }
.panel--brand .stat .n { color: #fff; }
.panel--brand .stat .c { color: rgba(255,255,255,.78); }

/* ---------- comparison matrix ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-sm); }
table.matrix { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 15px; }
table.matrix th, table.matrix td { text-align: left; padding: 17px 20px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; color: var(--ink-soft); font-weight: 500; }
table.matrix thead th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); font-weight: 700; background: var(--bg-warm); }
table.matrix tbody tr:last-child td { border-bottom: none; }
table.matrix tbody tr:hover { background: var(--brand-tint); }
table.matrix .ctry { display: flex; align-items: center; gap: 11px; font-weight: 700; color: var(--ink); }
table.matrix .ctry .flag { font-size: 21px; }
table.matrix a.more { color: var(--brand-ink); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 24px 8px; display: flex; align-items: center; gap: 16px; font-family: var(--font-serif); font-size: clamp(18px,1.5vw,21px); font-weight: 500; color: var(--ink); }
.faq-q .plus { margin-left: auto; width: 22px; height: 22px; flex: none; position: relative; transition: transform .25s ease; }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; background: var(--terra-ink); border-radius: 2px; inset: 0; margin: auto; }
.faq-q .plus::before { width: 14px; height: 2px; }
.faq-q .plus::after  { width: 2px; height: 14px; transition: transform .25s ease, opacity .25s ease; }
.faq-item.open .faq-q .plus::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 8px 26px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.62; font-weight: 500; max-width: 92%; }
.faq-a-inner a { color: var(--brand-ink); font-weight: 700; }
.faq-a-inner a:hover { text-decoration: underline; text-underline-offset: 2px; }
.faq-item.open .faq-a { max-height: 460px; }

/* ---------- CTA band (коралловый градиент) ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(44px, 6vw, 84px); text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--coral-a) 0%, var(--coral-b) 55%, #DE6247 100%); box-shadow: var(--shadow-lg); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(46% 60% at 82% 8%, rgba(255,255,255,.22), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band .h2, .cta-band .display { color: #fff; }
.cta-band .lead { color: rgba(255,255,255,.9); margin-inline: auto; max-width: 48ch; }
.cta-band .eyebrow { background: rgba(255,255,255,.2); color: #fff; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn--ghost { background: #fff; color: var(--ink); border-color: transparent; }
.cta-band .btn--dark { background: rgba(0,0,0,.28); color: #fff; }

/* ---------- subscribe ---------- */
.subscribe { display: flex; gap: 10px; flex-wrap: wrap; max-width: 480px; }
.subscribe input {
  flex: 1 1 220px; padding: 15px 20px; border-radius: 100px; border: 1px solid var(--line);
  font-family: inherit; font-size: 15px; background: var(--surface); color: var(--ink); font-weight: 600;
}
.subscribe input::placeholder { color: var(--ink-faint); font-weight: 500; }
.cta-band .subscribe { margin-inline: auto; justify-content: center; }
.cta-band .subscribe input { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.34); color: #fff; }
.cta-band .subscribe input::placeholder { color: rgba(255,255,255,.72); }

/* ---------- алерты: светлая карточка «форма + пример письма» ----------
   Раньше блок был залит коралловым градиентом: подзаголовок, чипы стран и
   поле ввода на оранжевом почти не читались, а 11 пилюль ложились рваной
   стеной. Держим блок в общей кремовой гамме, коралл оставили тонкой
   полосой по верхнему краю. */
.alerts {
  position: relative; display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden;
}
.alerts::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px;
  background: linear-gradient(90deg, var(--coral-a), var(--coral-b) 62%, #DE6247);
}
.alerts-main { padding: clamp(30px, 3.4vw, 50px); }
.alerts-demo {
  padding: clamp(28px, 3.2vw, 44px); background: var(--bg-warm);
  border-left: 1px solid var(--line);
  /* колонка с формой выше — центрируем письмо, иначе снизу висит пустота */
  display: flex; flex-direction: column; justify-content: center;
}

.alert-form { margin-top: 26px; }
.picker { border: 0; padding: 0; margin: 0 0 22px; }
.picker legend { padding: 0; margin-bottom: 12px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
/* равные ячейки: 11 стран не разваливаются «сиротами» в последней строке */
.picker-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.pick { cursor: pointer; }
.pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pick-face {
  display: flex; align-items: center; gap: 7px; padding: 9px 11px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 13px; font-weight: 700; line-height: 1;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
}
/* тот же пересчёт, что в полосе направлений: было -1px, флаг стоял на 1.5px выше текста */
.pick-face .flag { font-size: 17px; line-height: 1; flex: none; position: relative; top: 0.5px; }
.pick-face .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick:hover .pick-face { border-color: #ded4c5; background: var(--bg-warm); }
.pick input:checked + .pick-face {
  border-color: var(--brand); background: var(--brand-tint); color: var(--brand-ink);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.pick input:focus-visible + .pick-face { outline: 2px solid var(--brand); outline-offset: 3px; }
.picker-hint { margin-top: 11px; font-size: 12.5px; color: var(--ink-faint); font-weight: 600; }

.alerts .subscribe { max-width: 100%; }
.alerts .subscribe input { flex: 1 1 200px; min-width: 0; }
.fineprint { margin-top: 14px; font-size: 12.5px; line-height: 1.5; color: var(--ink-faint); font-weight: 600; }
.alerts .form-note { margin-top: 12px; font-size: 13.5px; font-weight: 700; color: var(--brand-ink); }

/* пример письма-алерта */
.demo-tag {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint);
}
.demo-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--terra); box-shadow: 0 0 0 4px var(--terra-soft); }
.mail { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px 20px; box-shadow: var(--shadow-sm); }
.mail-top { display: flex; align-items: center; gap: 10px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.mail-top .mark { width: 30px; height: 30px; flex: none; }
.mail-from { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.mail-date { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--ink-faint); }
.mail-sub { font-family: var(--font-serif); font-size: 18px; line-height: 1.32; font-weight: 500; margin-top: 16px; color: var(--ink); }
.mail-meta { margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-faint); }
.mail-meta s { opacity: .7; }
.mail-meta b { color: var(--brand-ink); }
.mail-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 11px; }
.mail-list li { padding-left: 13px; border-left: 2px solid var(--terra-soft); font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); font-weight: 500; }
.mail-list b { display: block; font-size: 12.5px; color: var(--ink); margin-bottom: 2px; }
.mail-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.mail-link { font-size: 13.5px; font-weight: 800; color: var(--brand-ink); }
.mail-count { font-size: 12px; font-weight: 700; color: var(--ink-faint); }
.alert-hint { margin-top: 16px; font-size: 12.5px; line-height: 1.55; color: var(--ink-faint); font-weight: 500; }

/* переверстка .alerts под узкие экраны — в общем responsive-блоке в конце файла */

/* ---------- lead form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* min-width: 0 — иначе длинный <option> раздувает колонку и ломает вёрстку на телефоне */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  padding: 13px 16px; border-radius: var(--r-sm); border: 1px solid var(--line);
  font-family: inherit; font-size: 15px; background: var(--surface); color: var(--ink); font-weight: 500;
  width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box;
}
.field textarea { resize: vertical; min-height: 100px; }
.field--full { grid-column: 1 / -1; }

/* ---------- footer (светлый крем) ---------- */
.site-footer { background: var(--bg-warm); color: var(--ink-soft); padding-block: clamp(56px, 6vw, 88px) 32px; border-top: 1px solid var(--line); }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--terra-ink); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .brand { color: var(--ink); }
.site-footer .brand small { color: var(--terra-ink); }
.site-footer .brand .mark { width: 48px; height: 48px; }
.footer-about { margin-top: 18px; font-size: 14.5px; max-width: 36ch; color: var(--ink-soft); font-weight: 500; }
.footer-col h4 { color: var(--ink); font-family: var(--font-sans); font-size: 14px; font-weight: 800; letter-spacing: 0; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; font-weight: 600; }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-faint); font-weight: 600; }
.footer-disclaimer { margin-top: 20px; font-size: 12.5px; color: var(--ink-faint); max-width: 72ch; font-weight: 500; }

/* ---------- breadcrumbs ---------- */
.crumbs { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-faint); font-weight: 600; }
.crumbs a:hover { color: var(--terra-ink); }
.crumbs .sep { opacity: .55; }

/* ---------- content (country pages) ---------- */
.prose { max-width: 740px; }
.prose p { color: var(--ink-soft); font-weight: 500; }
.prose p + p { margin-top: 15px; }
.prose b, .prose strong { color: var(--ink); }
.callout {
  border-left: 3px solid var(--brand); background: var(--brand-tint);
  padding: 17px 21px; border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink-soft); font-size: 15px; font-weight: 500;
}
.callout--warn { border-color: var(--warn-dot); background: var(--warn-bg); }
.callout--stop { border-color: var(--stop-dot); background: var(--stop-bg); }
.callout b { color: var(--ink); }

.route-card { display: flex; align-items: flex-start; gap: 15px; }
.route-card .flag { font-size: 23px; }
.route-card h4 { font-family: var(--font-serif); font-weight: 500; font-size: 19px; margin-bottom: 5px; color: var(--ink); }
.route-card .badge { margin-top: 10px; }

.price-row { display: flex; align-items: baseline; gap: 9px; }
.price-row .from { font-size: 13px; color: var(--ink-faint); font-weight: 600; }
.price-row .val { font-family: var(--font-serif); font-size: 26px; font-weight: 500; color: var(--ink); }

.op-card { display: flex; flex-direction: column; gap: 4px; }
.op-card .op-top { display: flex; align-items: center; gap: 13px; }
.op-card b { color: var(--ink); }
.op-card .verified { color: var(--ok); display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; }

/* section tones */
.tone-warm { background: var(--bg-warm); }
.tone-white { background: var(--surface); }

.anchor { scroll-margin-top: calc(var(--header-h) + 2px); }
.hr { height: 1px; background: var(--line); border: none; margin: 0; }

/* ---------- photo blocks (иллюстрированные сцены) ---------- */
.photo {
  position: relative; display: block; border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg-warm); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3;
  transition: transform .28s ease, box-shadow .3s ease;
}
.photo > img, .photo > svg, .photo > picture > img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* фото завёрнуты в <picture> ради avif с запасным webp. Сам <picture> — inline,
   и без display:block картинке не от чего считать height:100%: кадр схлопывается */
.photo > picture, .cc-photo picture { display: block; width: 100%; height: 100%; }
a.photo:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(13,5,3,.12), 0 60px 120px rgba(13,5,3,.10); }
.photo--wide { aspect-ratio: 16 / 6; }
.photo-top { position: absolute; top: 16px; right: 16px; }
.photo-bot { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.photo-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--ink); font-family: var(--font-sans); font-weight: 700; font-size: 13.5px; line-height: 1;
  padding: 9px 14px; border-radius: 100px; border: 1px solid rgba(255,255,255,.65);
  box-shadow: 0 6px 18px rgba(13,5,3,.14);
}
.photo-pill .flag { font-size: 15px; }
.photo-pill.is-updated { color: var(--ink-faint); }
.photo-pill .dot, .photo-pill .st { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.photo-pill .dot { background: var(--ok-dot); }
.photo-pill .st--ok { background: var(--ok-dot); }
.photo-pill .st--warn { background: var(--warn-dot); }
.photo-pill .st--stop { background: var(--stop-dot); }

/* галерея направлений */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.gallery .photo { aspect-ratio: 3 / 3.6; }
.gallery .photo-bot { bottom: 14px; left: 14px; right: 14px; }

/* ============================================================
   sereenity-параллель: hero-фото, ряды-услуги, глиф-иконки,
   ступенчатые карточки, фото-шапки стран, 2-колоночный FAQ
   ============================================================ */

/* терракотовые глиф-марки (как флёр-знаки в шаблоне) */
.mk { display: inline-block; flex: none; color: var(--terra); }

/* точечные кластеры-декор поверх фото */
.dots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; position: absolute; z-index: 2; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.8); box-shadow: 0 1px 3px rgba(13,5,3,.12); }
.dots--tr { top: 18px; right: 18px; }
.dots--bl { bottom: 18px; left: 18px; }

/* hero: крупное фото-портрет с плавающими статус-пиллами */
.hero-photo { position: relative; }
.hero-photo .photo { aspect-ratio: 1 / 1.06; }
.hero-photo .photo-bot { flex-direction: column; align-items: flex-start; gap: 8px; }
.hero-photo .stack { position: absolute; left: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 3; }

/* ряды-услуги: иконка+серифный заголовок | описание | круглая стрелка */
.rowlist { margin-top: clamp(30px, 4vw, 52px); border-top: 1px solid var(--line); }
.rowlist-item {
  display: grid; grid-template-columns: minmax(210px, 1fr) 1.35fr auto; gap: clamp(14px, 3vw, 48px);
  align-items: center; padding: clamp(22px, 3vw, 36px) 6px; border-bottom: 1px solid var(--line);
  transition: background .2s ease; color: inherit;
}
.rowlist-item:hover { background: var(--bg-warm); }
.rowlist-head { display: flex; align-items: center; gap: 15px; }
.rowlist-head .mk { width: 30px; height: 30px; }
.rowlist-head h3 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(19px, 1.8vw, 24px); color: var(--ink); letter-spacing: -.01em; }
.rowlist-item p { color: var(--ink-soft); font-size: 15.5px; font-weight: 500; }
.circ {
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; color: var(--ink); flex: none; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.circ svg { width: 19px; height: 19px; }
.rowlist-item:hover .circ { background: var(--brand); color: #fff; border-color: var(--brand); transform: translate(2px, -2px); }

/* ступенчатые карточки (What Makes Us Best) */
.grid-3.stagger > :nth-child(2) { margin-top: 46px; }
.grid-3.stagger > :nth-child(3) { margin-top: 92px; }
.card .mk { width: 30px; height: 30px; margin-bottom: 22px; }

/* фото-шапка карточки страны */
/* padding-top снимаем только у карточек с фото — оно уходит под верхний край.
   У карточек без фото («похожие направления») верхний отступ обязан остаться,
   иначе сверху 0, а снизу 32px. */
.country-card { overflow: hidden; }
.country-card:has(.cc-photo) { padding-top: 0; }
.cc-photo { position: relative; height: 172px; margin: 0 calc(var(--card-pad) * -1) 22px; overflow: hidden; }
.cc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card-hover:hover .cc-photo img { transform: scale(1.05); }
.cc-photo .badge { position: absolute; left: 15px; bottom: 13px; background: rgba(255,255,255,.93); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 4px 14px rgba(13,5,3,.14); }

/* FAQ в две колонки одной сеткой 2×5: ячейки строки тянутся по её высоте, поэтому
   разделители в левой и правой колонке всегда на одном уровне. Двумя независимыми
   списками колонки разъезжались по высоте. */
.faq--grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(28px, 4vw, 56px); align-items: stretch;
  max-width: none; margin: 44px 0 0;
}
.faq--grid .faq-item { display: flex; flex-direction: column; }

/* photo кредиты */
.credit-note { font-size: 12px; color: var(--ink-faint); font-weight: 500; }
.credit-note a { text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   RESPONSIVE
   Сайт резиновый от 320px. Брейкпоинты идут от широкого к узкому,
   каждый следующий только дополняет предыдущий.
   Точки выбраны по месту слома конкретных блоков, а не по «айфонам»:
   1080 — в шапку перестаёт помещаться меню, 980 — разваливаются
   двухколоночные сетки, 900 — ряды-услуги и FAQ, 720 — всё в одну
   колонку, 520 — мелкая доводка под телефон.
   ============================================================ */

/* --- ≤1080px: меню не помещается рядом с логотипом и кнопкой --- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: inline-grid; place-items: center; margin-left: auto;
    width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content:""; display:block; width:19px; height:2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after  { position: absolute; top: 6px; }
  /* «бургер» в крестик — иначе открытое меню нечем закрыть на ощупь */
  .site-header.menu-open .nav-toggle span { background: transparent; }
  .site-header.menu-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
  .site-header.menu-open .nav-toggle span::after  { top: 0; transform: rotate(-45deg); }
  .site-header.menu-open .nav-links {
    /* 100% вместо жёстких 78px: высота шапки менялась, меню отъезжало под неё */
    display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 12px clamp(20px,5vw,44px) 22px; margin: 0;
    /* длинное меню на низком экране должно скроллиться внутри себя */
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .site-header.menu-open .nav-links a { padding: 14px 12px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* --- ≤980px: две колонки больше не читаются --- */
@media (max-width: 980px) {
  /* minmax(0,·), а не 1fr: у трека 1fr нижняя граница — min-content, и колонка
     раздувается шире родителя, если внутри есть нечто нерезиновое (ряд монитора
     с флагом и бейджем в nowrap). Так блок ровно по ширине экрана. */
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--rev .split-media { order: 0; }
  .alerts { grid-template-columns: minmax(0, 1fr); }
  .alerts-demo { border-left: 0; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  /* картинка-обложка в hero не должна занимать первый экран целиком:
     на телефоне выше неё обязаны быть H1 и подзаголовок */
  .hero-photo .photo { aspect-ratio: 4 / 3; }
}

/* --- ≤900px: ряды-услуги, FAQ, ступеньки --- */
@media (max-width: 900px) {
  .grid-3.stagger > * { margin-top: 0 !important; }
  .rowlist-item { grid-template-columns: 1fr auto; row-gap: 12px; }
  .rowlist-item p { grid-column: 1 / -1; }
  .rowlist-item .circ { grid-row: 1; grid-column: 2; }
  .faq--grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- ≤720px: телефон, всё в одну колонку --- */
@media (max-width: 720px) {
  :root {
    --header-h: 68px;
    --card-pad: 22px;
    --card-pad-lg: 24px;
    --r-lg: 24px;
    --r: 18px;
  }
  body { font-size: 16px; }
  .brand { font-size: 21px; gap: 9px; }
  .brand .mark { width: 42px; height: 42px; }
  .brand small { font-size: 13px; }
  .nav-toggle { width: 42px; height: 42px; border-radius: 12px; }
  /* кнопка из шапки дублируется первым же экраном — на телефоне она только
     отнимает место у логотипа */
  .nav-cta .btn:not(.nav-toggle) { display: none; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .stat-trio { grid-template-columns: minmax(0, 1fr); gap: 24px; text-align: left; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-about { max-width: none; }

  /* длинные подписи кнопок («Подобрать маршрут и оператора») в 320px не влезают
     одной строкой — на телефоне пусть переносятся, а не вылезают из карточки */
  .btn { white-space: normal; text-align: center; }
  .btn--block { width: 100%; }

  .hero { padding-block: 26px var(--section-y); }
  .hero .lead { max-width: none; }
  /* три показателя ужимаются, но остаются рядом: колонкой они занимают
     пол-экрана и отодвигают кнопки за сгиб */
  .hero-trust { gap: 14px; padding-top: 18px; margin-top: 24px; }
  .hero-trust .num { font-size: 21px; }
  .hero-trust .lbl { font-size: 11px; }
  .hero-card { padding: 20px; }

  .card--pad-lg { padding: var(--card-pad-lg); }
  .cta-band { padding: 34px 22px; }
  .cta-band .hero-actions { justify-content: stretch; }
  .cta-band .hero-actions .btn { flex: 1 1 240px; }

  /* широкая панорама в 16/6 на телефоне превращается в полоску */
  .photo--wide { aspect-ratio: 3 / 2; }
  .cc-photo { height: 150px; }

  .faq-q { padding: 20px 4px; gap: 12px; }
  .faq-a-inner { padding: 0 4px 22px; max-width: none; }
  /* 460px хватало на широкую колонку; в 320px тот же ответ вдвое выше и обрезался */
  .faq-item.open .faq-a { max-height: 1200px; }

  .picker-grid { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
  .strip .items .chip { padding: 10px 16px; font-size: 14.5px; }
  .strip .container { padding-block: 20px 22px; }

  /* таблицу-сравнение листают горизонтально — на телефоне это надо показать */
  .table-wrap { -webkit-overflow-scrolling: touch; }
}

/* --- ≤520px: узкий телефон --- */
@media (max-width: 520px) {
  :root { --card-pad: 18px; --card-pad-lg: 20px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .photo { aspect-ratio: 4 / 3; }
  /* поле и кнопка подписки в 320px рядом не стоят */
  .subscribe { flex-direction: column; }
  .subscribe .btn { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .cta-band .hero-actions .btn { flex: 1 1 100%; }
  .hero-trust { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  /* ряд монитора: флаг + название и бейдж строкой ниже. В одну строку они не
     влезают — бейдж «Маршрут закрыт» в nowrap не сжимается, и ряд был шире экрана */
  .mini-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; align-items: center; }
  .mini-row .flag { grid-row: 1; }
  .mini-row .mini-txt { grid-row: 1; }
  .mini-row .badge { grid-column: 2; margin-left: 0; justify-self: start; }

  .country-card .flag { width: 38px; height: 38px; font-size: 19px; border-radius: 11px; }
  .icon-badge { width: 46px; height: 46px; border-radius: 13px; margin-bottom: 16px; }
  .panel-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
