@charset "UTF-8";
/* ==========================================================================
   LooksArt — дизайн-система
   Палитра и типографика взяты один в один из прототипа (тема «Бирюза»).
   ========================================================================== */

:root {
  /* Поверхности */
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #f6f7f8;
  --border: #e5e8ea;
  --border-2: #ccd3d7;

  /* Текст */
  --ink: #0f3242;
  --ink-2: #4a6b7a;
  --muted: #7d9aa8;

  /* Основной (тёмная бирюза) */
  --primary: #114c63;
  --primary-hover: #0d3d50;
  --on-primary: #ffffff;

  /* Акцент (терракота) */
  --accent: #e2643c;
  --accent-hover: #cb562a;
  --on-accent: #ffffff;
  --accent-soft: #fcf1ed;
  --accent-soft-border: #f4c4b5;

  /* Тёмные зоны: шапка, подвал */
  --header-bg: rgba(12, 42, 55, 0.92);
  --dark: #0c2a37;
  --dark-ink: #cfe0e8;
  --dark-muted: #9fb8c4;
  --dark-border: rgba(255, 255, 255, 0.14);
  --dark-soft: rgba(255, 255, 255, 0.08);

  /* Скругления */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 22px;
  --r-2xl: 24px;
  --r-pill: 999px;

  /* Тени */
  --shadow-card: 0 12px 30px rgba(15, 50, 66, 0.09);
  --shadow-lift: 0 26px 46px -24px rgba(15, 50, 66, 0.55);
  --shadow-pop: 0 16px 40px -12px rgba(0, 0, 0, 0.22);

  /* Раскладка */
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(56px, 8vw, 100px);
  --section-y-sm: clamp(40px, 6vw, 72px);

  --ease: cubic-bezier(0.2, 0.65, 0.25, 1);
}

/* --------------------------------------------------------------------------
   Шрифт. Self-hosted, чтобы не зависеть от Google Fonts и не тормозить рендер.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Onest';
  src: url('../fonts/onest-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: 'Onest';
  src: url('../fonts/onest-cyrillic-ext.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  src: url('../fonts/onest-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  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: 'Onest';
  src: url('../fonts/onest-latin-ext.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   Сброс и база
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

/* Собственный display у .grid/.flex перебивает атрибут hidden — возвращаем ему силу */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video,
svg { max-width: 100%; display: block; }

/* WordPress проставляет картинкам width и height. Без height: auto браузер
   считает высоту по атрибуту, и заданный в классе aspect-ratio не работает. */
img { height: auto; }

/* <picture> не должен ломать flex/grid-раскладку родителя */
picture { display: contents; }

/* Картинка, растянутая на весь родительский блок с position: relative */
.fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Картинка, заполняющая контейнер с заданным aspect-ratio */
.thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Крупный круглый аватар (блок «боли» на главной) */
.avatar-lg {
  width: 88px;
  height: 88px;
  border-radius: var(--r-pill);
  object-fit: cover;
  border: 1px solid var(--border);
  flex: 0 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

/* У blockquote, figure и dl браузер ставит собственные отступы —
   из-за них текст уезжает вправо. Гасим. */
p,
figure,
blockquote,
dl,
dd { margin: 0; }

a { color: inherit; }

button { font: inherit; color: inherit; }

ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--primary); color: #fff; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Ссылка «к содержимому» для клавиатуры и скринридеров */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-md) 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Раскладка
   -------------------------------------------------------------------------- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--sm { padding-block: var(--section-y-sm); }
.section--tint {
  background: var(--soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Между двумя блоками подряд отступы складываются — до 200 пикселей.
   Пока фон чередуется, это читается как граница разделов. А когда рядом
   оказываются два блока одного цвета (или соседний блок скрыт, как карта
   маршрута у части квестов) — выходит дыра. Верхний отступ второго блока
   в таком случае убираем: расстояние остаётся ровно одно. */
.section:not(.section--tint) + .section:not(.section--tint) { padding-top: 0; }
.section--tint + .section--tint { border-top: 0; padding-top: 0; }

.grid { display: grid; gap: 20px; }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--auto-sm { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--auto-xs { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 940px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--3 { grid-template-columns: 1fr; } }

.rows { display: flex; flex-direction: column; gap: 16px; }

/* Заглушка на месте будущего фото или скриншота */
.slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px;
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

/* Разделы блога — лента-фильтр */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 2px;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 9px 16px;
  white-space: nowrap;
  /* рамка на месте всегда — на ховере меняется только заливка, без «прыжка» */
  transition: background-color 0.2s ease, color 0.2s ease;
}
.tab:hover { background: var(--soft); color: var(--ink); }
/* Текущий раздел выделен спокойно: кремовая заливка вместо тёмной плашки */
.tab--current {
  background: var(--accent-soft);
  border-color: var(--accent-soft-border);
  color: var(--ink);
  font-weight: 600;
}
.tab--current:hover { background: var(--accent-soft); }
.tab__count { font-size: 12px; font-weight: 600; color: var(--muted); }

/* Теги блога */
.terms { display: flex; flex-wrap: wrap; gap: 8px; }
.term {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  transition: border-color 0.22s ease, color 0.2s ease;
}
.term:hover { border-color: var(--border-2); color: var(--ink); }
.term--current { border-color: var(--accent); color: var(--ink); }
.term__count { font-size: 12px; font-weight: 600; color: var(--muted); }

.stack { display: flex; flex-direction: column; }

/* --------------------------------------------------------------------------
   Типографика блоков
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.06; }
.h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; }
.h3 { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.2; letter-spacing: -0.01em; }

.lead {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--ink-2);
  line-height: 1.55;
}

.muted { color: var(--muted); }

.section-head { margin-bottom: clamp(28px, 3vw, 44px); }
/* Как в прототипе: заголовок секции живёт в колонке 600px и ложится в две строки */
.section-head .h2 { max-width: 600px; }
.section-head--center { text-align: center; }
.section-head--center .h2 { margin-inline: auto; max-width: 640px; }
#reviews .section-head--center .lead {
  max-width: 820px;
  margin-inline: auto;
}
.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
/* Плашка с рейтингом и кнопка стоят рядом. stretch выравнивает их по высоте:
   у плашки отступы меньше кнопочных, и без этого она выглядела мельче */
.section-head__aside { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.section-head__aside .chip { padding-inline: 18px; }

/* --------------------------------------------------------------------------
   Кнопки
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.22s ease, border-color 0.22s ease,
    color 0.2s ease, box-shadow 0.3s ease, transform 0.3s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -14px rgba(15, 50, 66, 0.65);
}
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-hover); }
/* Мессенджеры: фирменные цвета сервисов */
/* Фирменные цвета мессенджеров, текст и иконки белые. Берём тёмные оттенки
   из их же палитр (WhatsApp teal green, Telegram blue): на светлых #25D366
   и #2AABEE белый давал бы контраст 2:1 и не читался */
.btn--wa { background: #128c7e; color: #fff; }
.btn--wa:hover:not(.is-placeholder) { background: #0e7c6f; }
.btn--tg { background: #0088cc; color: #fff; }
.btn--tg:hover:not(.is-placeholder) { background: #0079b8; }
/* Второстепенный мессенджер: контурная кнопка, чтобы не спорить весом
   с главным каналом — на партнёрке это WhatsApp */
.btn--quiet.btn--tg { background: transparent; color: #0088cc; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--quiet.btn--tg:hover:not(.is-placeholder) { background: rgba(0, 136, 204, 0.08); }
.btn--wa svg,
.btn--tg svg { margin-right: 9px; flex: none; }
/* Ссылки ещё нет, но кнопку не гасим прозрачностью — цвет остаётся фирменным,
   выключенность передаём курсором и подсказкой в title */
.btn.is-placeholder { cursor: default; }

/* Карточка «Быстрее — в мессенджер»: QR слева, текст и кнопки справа.
   Всё выровнено по верху, чтобы заголовок начинался на одной линии с кодом */
.contact-card {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.5vw, 22px);
  padding: clamp(20px, 2.5vw, 26px);
}
/* Код во всю ширину карточки — так его удобно наводить телефоном */
.contact-card__qr {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: #fff;
  padding: clamp(12px, 2vw, 18px);
}
.contact-card__body { width: 100%; }
.contact-card__title { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.contact-card__text { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 0 0 16px; }
.contact-card__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-card__mail { font-size: 14px; color: var(--muted); margin: 16px 0 0; }
.contact-card__mail a { color: var(--accent-hover); }
@media (max-width: 520px) {
  .contact-card { justify-content: center; text-align: center; }
  .contact-card__btns { justify-content: center; }
}

/* Заглушка на месте QR-кода */
.qr-slot {
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  border-radius: var(--r-md);
  border: 1px dashed var(--border-2);
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--soft); border-color: var(--muted); }
.btn--sm { padding: 11px 20px; font-size: 14px; font-weight: 600; }
.btn--lg { padding: 16px 34px; font-size: 17px; }
.btn--block { display: flex; width: 100%; }

/* Текстовая ссылка со стрелкой */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}
.link-arrow:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Чипы, бейджи
   -------------------------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.chip--soft { background: var(--soft); border-color: transparent; padding: 6px 13px; font-size: 13px; font-weight: 400; }
.chip--accent { background: var(--accent-soft); border-color: var(--accent-soft-border); }
/* Категория статьи: живёт в строке с датой, кликается, тянет в раздел блога */
.chip--cat {
  gap: 7px;
  padding: 6px 14px;
  font-size: 13px;
  background: var(--accent-soft);
  border-color: var(--accent-soft-border);
  color: var(--accent-hover);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.chip--cat svg { flex: none; }
.chip--cat:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-pill);
  padding: 6px 13px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge--accent { background: var(--accent); color: var(--on-accent); }
.badge--primary { background: var(--primary); color: var(--on-primary); }
.badge--light { background: var(--surface); color: var(--ink); }

/* --------------------------------------------------------------------------
   Карточки
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.22s ease, box-shadow 0.3s ease, transform 0.3s var(--ease);
}
a.card:hover,
.card--hover:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
}
/* Крупная карточка (рекомендованная статья) — без подъёма: она и так в центре внимания */
a.card--flat:hover { border-color: var(--border); box-shadow: none; transform: none; }

/* «Читать статью» — кнопка-стрелка, а не подчёркнутая ссылка */
.read-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.read-btn__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
  color: var(--accent-hover);
  transition: background-color 0.22s ease, color 0.2s ease, transform 0.3s var(--ease);
}
a.card:hover .read-btn__ico {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  transform: translateX(3px);
}
.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 20px 22px;
}
/* Карточка-строка: фото слева, текст справа — витрина квестов */
.card--row { flex-direction: row; flex-wrap: wrap; }
.card--row .card__media {
  flex: 0 0 clamp(200px, 32%, 300px);
  aspect-ratio: auto;
  min-height: 180px;
  border-bottom: 0;
  border-right: 1px solid var(--border);
}
.card--row .card__body {
  flex: 1 1 320px;
  justify-content: center;
  padding: clamp(22px, 3vw, 32px);
}
.card--row .card__meta { font-size: 16px; margin-bottom: 12px; }
.card--row .card__meta .push { font-size: 15px; }
.card--row .card__title { font-size: clamp(20px, 2.2vw, 26px); }
.card--row .card__text { flex: 0 1 auto; max-width: 540px; }
@media (max-width: 700px) {
  .card--row .card__media {
    flex: 1 1 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}
.card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--soft);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card__media .badge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.card__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.card__text {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 18px;
  flex: 1;
}
.card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  font-size: 14px;
  color: var(--muted);
}
.card__meta strong { color: var(--ink-2); font-weight: 600; }
.card__meta .push { margin-left: auto; font-size: 13px; }
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
/* Кнопка в подвале карточки квеста. Заливка спорила по весу с ценой рядом,
   поэтому оставили обводку — заливается только при наведении на карточку */
.card__cta {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 9px 18px;
  border: 1px solid var(--primary);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.22s ease, color 0.22s ease;
}
.card:hover .card__cta,
.card:focus-visible .card__cta { background: var(--primary); color: #fff; }

.card--accent { background: var(--accent-soft); border-color: var(--accent-soft-border); }
.card--accent .card__media { background: var(--accent-soft); border-bottom-color: var(--accent-soft-border); }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: clamp(26px, 3.4vw, 40px);
}
.panel--soft { background: var(--soft); }
.panel--accent { background: var(--accent-soft); border-color: var(--accent-soft-border); }
.panel--dark { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Полоса регалий на «Партнёрам». Фон светлее прежнего почти чёрного: берём
   основную бирюзу. Колонки неравные — под длину значения, между ними тонкие
   разделители, поэтому разное число строк читается как ритм, а не как сбой */
.trust-strip {
  display: grid;
  grid-template-columns: 1.15fr 1.25fr 1.35fr 1fr;
  gap: 0;
  /* Ровная заливка читалась тяжёлым бруском. Диагональ от светлой бирюзы
     к основной снимает эту плотность, оставаясь в палитре */
  background: linear-gradient(135deg, #1a6b89 0%, var(--primary) 52%, #0d3f53 100%);
  border-color: transparent;
  color: #fff;
  padding: clamp(26px, 3.4vw, 38px) 0;
}
.trust-strip__item {
  padding-inline: clamp(20px, 2.6vw, 34px);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.trust-strip__item:first-child { border-left: 0; }
.trust-strip__num {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #fff;
}
.trust-strip__num--text { font-size: clamp(19px, 2.1vw, 24px); line-height: 1.2; }
.trust-strip__label {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 10px;
}
@media (max-width: 900px) {
  .trust-strip { grid-template-columns: 1fr 1fr; row-gap: clamp(22px, 4vw, 30px); }
  .trust-strip__item:nth-child(odd) { border-left: 0; }
}
@media (max-width: 520px) {
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip__item { border-left: 0; }
}

.cta-panel--rome-morning {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #f7f4ed url('../img/about-cta-rome-morning.png') center / cover no-repeat;
}
.cta-panel--rome-morning::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.article-cta--culture {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--accent-soft) url('../img/article-cta-culture.jpg') center / cover no-repeat;
  border-color: var(--accent-soft-border);
}
.article-cta--culture::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 250, 240, 0.98) 0%,
    rgba(255, 250, 240, 0.94) 38%,
    rgba(255, 250, 240, 0.62) 61%,
    rgba(255, 250, 240, 0.08) 82%
  );
}

@media (max-width: 640px) {
  .article-cta--culture {
    min-height: 380px;
    background-size: auto 100%;
  }
  .article-cta--culture::before { background: rgba(255, 250, 240, 0.86); }
}

/* Цена */
.price {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.price__now { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.price__old { font-size: 15px; color: var(--muted); text-decoration: line-through; }
.price__note { font-size: 12.5px; font-weight: 600; color: var(--accent-hover); }

/* Список с галочками */
.checks { display: flex; flex-direction: column; gap: 9px; }
.checks li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.checks li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Шапка
   -------------------------------------------------------------------------- */
.promo {
  background: var(--primary);
  color: var(--dark-ink);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 9px 16px;
}
/* Самая длинная языковая версия подводки (итальянская) держится в одну строку
   до 571px. Ниже плашка ломается на две-три строки и на телефоне отжимает вниз
   первый экран, ради которого человек и пришёл, — поэтому там её просто нет. */
@media (max-width: 620px) {
  .promo { display: none; }
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dark-border);
}
.header__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 8px var(--gutter);
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.header__logo { display: flex; align-items: center; flex: 0 0 auto; }
.header__logo img { height: 30px; width: auto; }

.nav { display: flex; align-items: center; gap: 5px; }
/* Итальянские подписи длиннее английских и русских, и восемь пунктов упирались
   в край контейнера ровно впритык: «Tour Interattivi» и «Chi siamo» уезжали
   на вторую строку. Перенос внутри пункта меню запрещён совсем, а отступы
   и зазор уменьшены, чтобы у самой длинной языковой версии был запас. */
.nav a {
  position: relative;
  white-space: nowrap;
  text-decoration: none;
  color: var(--dark-ink);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.22s ease, transform 0.25s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.26s var(--ease);
}
.nav a:hover { color: #fff; transform: translateY(-1px); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current='page'] {
  color: #fff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
}

.header__actions { display: flex; align-items: center; gap: 12px; }

.lang { position: relative; }
.lang__btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--dark-soft);
  border: 1px solid var(--dark-border);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background-color 0.22s ease;
}
.lang__btn:hover { background: rgba(255, 255, 255, 0.16); }
.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-pop);
  padding: 6px;
  min-width: 168px;
  z-index: 120;
}
.lang__menu[hidden] { display: none; }
.lang__menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.lang__menu a:hover { background: var(--soft); }
.lang__menu a[aria-current='true']::after { content: '✓'; margin-left: auto; font-weight: 700; }
/* Язык, которого ещё нет: виден, но не кликается */
.lang__soon {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: default;
}
.lang__soon em {
  margin-left: auto;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--soft);
  border-radius: var(--r-pill);
  padding: 3px 8px;
}

.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid var(--dark-border);
  background: var(--dark-soft);
  color: #fff;
  cursor: pointer;
  flex: 0 0 auto;
}

/* Мобильное меню */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(7, 26, 34, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 310;
  width: min(86vw, 330px);
  background: var(--dark);
  border-left: 1px solid var(--dark-border);
  box-shadow: -24px 0 60px -30px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.34s cubic-bezier(0.22, 0.7, 0.2, 1);
  overflow-y: auto;
}
body.menu-open .drawer { transform: translateX(0); }
body.menu-open .drawer-overlay { opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--dark-border);
}
.drawer__head img { height: 26px; width: auto; }
.drawer__close {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--dark-soft);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drawer nav { display: flex; flex-direction: column; padding: 10px 10px 4px; gap: 2px; }
.drawer nav a {
  text-decoration: none;
  color: var(--dark-ink);
  font-size: 16px;
  font-weight: 500;
  padding: 13px 14px;
  border-radius: 11px;
}
.drawer nav a[aria-current='page'] { color: #fff; font-weight: 600; background: rgba(255, 255, 255, 0.12); }
.drawer__foot {
  margin-top: auto;
  padding: 16px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--dark-border);
}
.drawer__foot .btn { width: 100%; }
.drawer__note { font-size: 13px; color: var(--dark-muted); text-align: center; }
.drawer__langs { display: flex; gap: 8px; justify-content: center; }
/* Языки, которых ещё нет, приходят не ссылкой, а span — стили нужны обоим,
   иначе они наследуют тёмный текст body и пропадают на тёмной подложке */
.drawer__langs a,
.drawer__langs span {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--dark-border);
  color: var(--dark-ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.drawer__langs span[aria-disabled='true'] { color: var(--dark-muted); border-style: dashed; cursor: default; }
.drawer__langs a[aria-current='true'] { background: var(--dark-soft); color: #fff; }

/* Индикатор прогресса чтения */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--primary);
  z-index: 200;
  transition: width 0.1s linear;
}

/* Восемь пунктов меню, переключатель языка и кнопка в шапку помещаются
   примерно с 1150px. Ниже — бургер и выдвижная панель, но переключатель
   языка остаётся в шапке слева от бургера: гость с чужим языком должен
   переключиться сразу, а не искать язык внутри меню. Кнопка «Выбрать квест»
   при этом уезжает в панель — на неё в шапке места уже нет. */
@media (max-width: 1149px) {
  .nav { display: none; }
  .header__actions { margin-left: auto; }
  .header__actions .btn { display: none; }
  .burger { display: flex; }
}
@media (min-width: 1150px) and (max-width: 1319px) {
  .nav a { padding: 8px 9px; font-size: 14.5px; }
  .nav a::after { left: 9px; right: 9px; }
  .header__inner { gap: 12px; }
}

/* --------------------------------------------------------------------------
   Слайдер в шапке карточки
   -------------------------------------------------------------------------- */
.slider {
  position: relative;
  overflow: hidden;
  background: var(--soft);
  border-bottom: 1px solid var(--border);
}
.slider__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { height: 0; }
.slider__slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
}
.slider__slide--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  background-color: var(--soft);
  background-image: repeating-linear-gradient(135deg, rgba(15, 50, 66, 0.045) 0 1px, transparent 1px 11px);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}
.slider__btn:hover { background: #fff; }
.slider__btn:disabled { opacity: 0.35; cursor: default; }
.slider__btn--prev { left: 12px; }
.slider__btn--next { right: 12px; }
.slider__dots {
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  display: flex;
  justify-content: center;
  gap: 0;
  z-index: 2;
}
/* Сама точка рисуется в ::before, а кнопка держит area пошире — пальцем
   в точку 7×6 не попасть. Кнопка уже точки не квадратная (18×24): слайдов
   бывает 14, и ряд квадратов 24×24 занимал почти всю ширину карточки на телефоне */
.slider__dots button {
  width: 18px;
  height: 24px;
  padding: 0;
  border: none;
  background: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
/* Ободок нужен светлым кадрам: белая точка на небе иначе исчезает */
.slider__dots button::before {
  content: '';
  width: 7px;
  height: 6px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 0 1px rgba(15, 50, 66, 0.25);
  transition: width 0.25s ease, background-color 0.25s ease;
}
.slider__dots button[aria-current='true'] { width: 26px; }
.slider__dots button[aria-current='true']::before { width: 18px; background: var(--accent); }

/* --------------------------------------------------------------------------
   Заглушка экрана приложения
   -------------------------------------------------------------------------- */
.download-panel {
  position: relative;
  isolation: isolate;
  min-height: 450px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 40px;
  border: 1px solid #dde8ec;
  border-radius: 24px;
  background: linear-gradient(135deg, #f7fafb 0%, #edf4f7 100%);
}
.download-panel::before {
  content: '';
  position: absolute;
  z-index: 0;
  width: 900px;
  height: 700px;
  right: -280px;
  bottom: -370px;
  border-radius: 50%;
  background: rgba(224, 235, 240, 0.82);
  pointer-events: none;
}
.download-panel::after {
  content: '';
  position: absolute;
  z-index: 0;
  width: 500px;
  height: 360px;
  right: -190px;
  bottom: -260px;
  border-radius: 50%;
  background: rgba(203, 220, 228, 0.50);
  pointer-events: none;
}
.download-panel__copy {
  position: relative;
  z-index: 2;
  flex: 0 1 52%;
  min-width: 0;
}
.download-panel__visual {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 48%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}
.download-panel__mockup {
  display: block;
  width: auto;
  height: 108%;
  max-width: none;
  object-fit: contain;
  object-position: right bottom;
}

.phone {
  position: relative;
  width: min(250px, 72vw);
  padding: 7px;
  background: linear-gradient(145deg, #47484d, #16171a 42%, #36373c);
  border: 1px solid #56575c;
  border-radius: 42px;
  box-shadow: 0 24px 50px rgba(13, 35, 45, 0.2), inset 0 0 0 1px rgba(255,255,255,0.16);
}
.phone__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 35px;
}
.phone__island {
  position: absolute;
  z-index: 1;
  top: 15px;
  left: 50%;
  width: 70px;
  height: 20px;
  background: #08090b;
  border-radius: 999px;
  transform: translateX(-50%);
  box-shadow: 0 1px 2px rgba(255,255,255,0.12) inset;
}

@media (max-width: 760px) {
  .download-panel {
    min-height: 820px;
    align-items: flex-start;
    padding: 30px 26px;
  }
  .download-panel__copy { flex-basis: 100%; }
  .download-panel__visual {
    inset: 350px 0 0;
    justify-content: center;
  }
  .download-panel__mockup {
    object-position: center bottom;
  }
}

/* --------------------------------------------------------------------------
   Макет аудиоплеера в блоке «чем отличается»
   -------------------------------------------------------------------------- */
.player {
  background: #eceef0;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.player__play {
  width: 28px; height: 28px;
  border-radius: var(--r-pill);
  background: #cbcfd3;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.player__wave {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 22px;
}
.player__wave span {
  flex: 1;
  border-radius: 2px;
  background: #cbd8de;
  transform-origin: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.player__time {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}
@keyframes lkWave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(2.6); }
}
.player:hover .player__wave span {
  animation: lkWave 1s ease-in-out infinite;
  background: #b9c6cd;
}
.player:hover .player__wave span:nth-child(2) { animation-delay: 0.08s; }
.player:hover .player__wave span:nth-child(3) { animation-delay: 0.16s; }
.player:hover .player__wave span:nth-child(4) { animation-delay: 0.24s; }
.player:hover .player__wave span:nth-child(5) { animation-delay: 0.32s; }
.player:hover .player__wave span:nth-child(6) { animation-delay: 0.4s; }
.player:hover .player__wave span:nth-child(7) { animation-delay: 0.48s; }
.player:hover .player__wave span:nth-child(8) { animation-delay: 0.56s; }
.player:hover .player__wave span:nth-child(9) { animation-delay: 0.64s; }
.player:hover .player__wave span:nth-child(10) { animation-delay: 0.72s; }
.player:hover .player__wave span:nth-child(11) { animation-delay: 0.8s; }
.player:hover .player__wave span:nth-child(12) { animation-delay: 0.88s; }

/* --------------------------------------------------------------------------
   Подвал
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--dark-border);
  background: var(--dark);
  color: #fff;
}
.footer__top {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(48px, 5vw, 72px) var(--gutter) 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.footer img { height: 28px; width: auto; margin-bottom: 18px; }
.footer p { font-size: 14px; color: var(--dark-muted); line-height: 1.6; max-width: 240px; }
.footer h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark-muted);
  margin-bottom: 20px;
}
.footer a { color: var(--dark-ink); text-decoration: none; transition: color 0.2s ease, transform 0.25s var(--ease); }
.footer a:hover { color: #fff; }
.footer__links { display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.footer__contact { display: flex; flex-direction: column; gap: 12px; font-size: 14px; margin-top: 22px; }
.footer__contact > * { display: flex; align-items: center; gap: 10px; color: var(--dark-ink); }
.footer__ico {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--dark-soft);
  border: 1px solid var(--dark-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--dark-muted);
}
.footer__label { display: flex; flex-direction: column; line-height: 1.25; }
.footer__label span:first-child { font-size: 11px; color: var(--dark-muted); }
.footer__social { display: flex; gap: 10px; margin-bottom: 24px; }
.footer__social a {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer__social a:hover { border-color: var(--accent); transform: translateY(-2px); }
/* .footer a перебивает цвет по специфичности — поэтому селектор с уточнением */
.footer .store,
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 16px;
  width: max-content;
  text-decoration: none;
  box-shadow: 0 8px 20px -14px rgba(0, 0, 0, 0.8);
}
.footer .store:hover,
.store:hover {
  color: var(--ink);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -14px rgba(0, 0, 0, 0.9);
}
.store svg { flex: 0 0 auto; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store span span:first-child { font-size: 8.5px; opacity: 0.7; }
.store span span:last-child { font-size: 13.5px; font-weight: 600; }
.footer__stores { display: flex; flex-direction: column; gap: 10px; }
.footer__bottom { border-top: 1px solid var(--dark-border); }
.footer__bottom > div {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--dark-muted);
}
.footer__legal { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.footer__legal a { color: var(--dark-muted); }
/* Отзыв согласия — кнопка (окно открывается скриптом), но в ряду ссылок
   она и должна выглядеть ссылкой. */
.footer__legal-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--dark-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.footer__legal-btn:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Первый экран
   -------------------------------------------------------------------------- */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 88px) clamp(40px, 5vw, 64px);
}
.hero__col { flex: 1 1 440px; min-width: 300px; }
.hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.hero__rating .star { color: var(--accent); }
.hero__rating b { color: var(--ink); }
.hero h1 { margin-bottom: 16px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.hero__text { margin-bottom: 22px; max-width: 530px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero__media {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--border);
  outline: 1px solid rgba(15, 50, 66, 0.16);
  outline-offset: 7px;
  margin-inline: auto;
}
.hero__media img,
.hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Модалка с видео */
.videobox {
  position: fixed;
  /* Как у лайтбокса: проценты вместо vw, иначе окно уходит под полосу прокрутки */
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(16px, 5vw, 64px);
  border: none;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 400;
}
.videobox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.videobox::backdrop { background: rgba(0, 0, 0, 0.72); }
/* Рамка для ролика с YouTube: держим 16:9 и вписываем в окно */
.videobox__embed {
  width: min(1100px, 100%);
  aspect-ratio: 16 / 9;
  max-height: 100%;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #000;
}
.videobox__embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.videobox video {
  width: min(1100px, 100%);
  max-height: 100%;
  border-radius: var(--r-md);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}

.store-links { display: flex; flex-wrap: wrap; gap: 10px; }
/* Кнопки магазинов — светлая плашка, как в прототипе: не спорят с CTA */
.store-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border-radius: var(--r-md);
  padding: 10px 18px;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-2);
  transition: border-color 0.22s ease, box-shadow 0.3s ease, transform 0.3s var(--ease);
}
.store-link:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}
.store-link > svg { flex: none; }
.store-link span { display: flex; flex-direction: column; line-height: 1.15; }
.store-link .small {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.store-link .big { font-size: 15px; font-weight: 700; color: var(--ink); }

/* Полоса ключевых фактов под первым экраном */
.facts {
  list-style: none;
  margin: 0;
  padding: 14px clamp(18px, 2.5vw, 26px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px clamp(16px, 2.5vw, 30px);
}
.facts__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink);
}
.facts__item b { font-weight: 700; }
.facts__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.facts__note { color: var(--muted); font-weight: 500; }
@media (max-width: 720px) {
  .facts { justify-content: flex-start; }
  .facts__item { font-size: 14px; }
}

/* Выбранный вид: отдельные плитки. Стоит на главной под первым экраном */
.facts--tiles {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.facts--tiles .facts__item {
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 13px 16px 15px;
  background: var(--soft);
  border-radius: var(--r-md);
  text-align: left;
}
/* Подпись сверху говорит, что это за цифра, — без неё иконку не заменить */
.facts--tiles .facts__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts--tiles .facts__item b { font-size: 18px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.facts--tiles .facts__note { font-size: 12.5px; line-height: 1.4; }
@media (max-width: 900px) {
  .facts--tiles { grid-template-columns: repeat(2, 1fr); }
  .facts--tiles .facts__item:last-child { grid-column: span 2; }
}

/* Остальные варианты живут только на служебной странице /design-variants/ */
.variants__group { margin-bottom: 22px; }
.variants__row { margin-bottom: 30px; }
.variants__title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.variants__note { color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; }

/* Крупные иконки без подложки */
.facts--icons-lg { padding: 18px clamp(18px, 2.5vw, 26px); }
.facts--icons-lg .facts__item { font-size: 16px; gap: 11px; }
.facts--icons-lg .facts__item b { font-size: 18px; }
.facts--icons-lg .facts__icon {
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
}

/* Без карточки, пункты через разделители */
.facts--divided {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 6px 0;
  gap: 12px clamp(18px, 2.5vw, 34px);
}
.facts--divided .facts__item {
  gap: 10px;
  padding-right: clamp(18px, 2.5vw, 34px);
  border-right: 1px solid var(--border);
}
.facts--divided .facts__item:last-child { border-right: 0; padding-right: 0; }
.facts--divided .facts__icon {
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  color: var(--primary);
}

/* Компактные пилюли */
.facts--pills {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  justify-content: flex-start;
  gap: 10px;
}
.facts--pills .facts__item {
  gap: 7px;
  font-size: 14px;
  padding: 8px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}
.facts--pills .facts__icon {
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
}

/* Иконка в скруглённом квадрате */
.facts--squares {
  background: var(--soft);
  border: 0;
  padding: 16px clamp(18px, 2.5vw, 26px);
  border-radius: var(--r-lg);
}
.facts--squares .facts__item { gap: 10px; }
.facts--squares .facts__icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 1px 2px rgba(15, 50, 66, 0.08);
}

/* Полоса доверия */
.trust {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px clamp(18px, 2.5vw, 24px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}
.trust__brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
.trust__scores { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.trust__note { flex: 1 1 100%; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* --------------------------------------------------------------------------
   Шаги, сравнение, галерея
   -------------------------------------------------------------------------- */
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 24px;
}
.step__n { font-weight: 700; font-size: 15px; color: var(--muted); letter-spacing: 0.05em; }
.step h3 { font-size: 19px; font-weight: 600; margin: 14px 0 8px; }
.step p { font-size: 15px; color: var(--muted); }
/* Плашка-призыв в конце дорожки шагов: добирает ряд и уводит в каталог */
.step--cta {
  background: var(--accent-soft);
  border-color: var(--accent-soft-border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.step--cta h3 { margin-top: 0; }
.step--cta p { color: var(--ink-2); flex: 1; }
.step--cta .btn { margin-top: 18px; }

/* Цифры о компании на «О нас». Акцент держим на самих числах и тонкой
   полоске сверху — карточки остаются светлыми, полоса не превращается в пятно */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px; }
.stat {
  position: relative;
  overflow: hidden;
  padding: 28px 20px 26px;
  text-align: center;
  transition: border-color 0.22s ease, box-shadow 0.3s ease, transform 0.3s var(--ease);
}
.stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 3px;
  border-radius: 0 0 var(--r-pill) var(--r-pill);
  background: var(--accent);
}
.stat:hover { border-color: var(--accent-soft-border); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.stat__num {
  display: block;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--accent);
  margin-bottom: 8px;
}
.stat__label { font-size: 14px; line-height: 1.45; color: var(--ink-2); }

/* Плитка ленты инстаграма на «О нас»: квадрат, открывается в лайтбоксе */
.insta-tile { position: relative; margin: 0; overflow: hidden; aspect-ratio: 1 / 1; cursor: zoom-in; }
.insta-tile picture,
.insta-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.insta-tile img { transition: transform 0.45s var(--ease); }
.insta-tile:hover img { transform: scale(1.04); }
.insta-tile--placeholder { cursor: default; }
/* Плитка-ссылка на пост: обычный указатель, лупа обещала бы лайтбокс */
.insta-tile--link { display: block; cursor: pointer; }
.insta-tile--placeholder .slot { height: 100%; }
@media (prefers-reduced-motion: reduce) {
  .insta-tile img { transition: none; }
  .insta-tile:hover img { transform: none; }
}

.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; align-items: stretch; }
.compare__item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}
.compare__item--muted { background: var(--soft); color: var(--muted); }
.compare__item--primary { border-color: var(--primary); }
.compare__item--accent { border-color: var(--accent-soft-border); }
.compare__flag {
  position: absolute;
  top: -11px;
  left: 24px;
}
.compare__price { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.compare__unit { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.compare__text { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.compare__link { margin-top: auto; padding-top: 18px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.gallery figure {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  cursor: zoom-in;
  transition: box-shadow 0.3s ease, transform 0.3s var(--ease);
}
.gallery figure:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption {
  position: relative;
  width: 100%;
  padding: 22px 14px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(15, 50, 66, 0.6));
}

/* Горизонтальные ленты (отзывы) */
.rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* Горизонтальная прокрутка обрезает всё, что вылезает по вертикали, поэтому
     тень при наведении рисуется внутри отступов, а не за краем контейнера */
  padding: 8px 0 30px;
  margin-bottom: -22px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { height: 0; }
/* Пока карточки сжаты, лента равняет их по высоте. Развернули отзыв — ставим
   этот класс, и каждая карточка занимает своё: иначе высота развёрнутой
   досталась бы и соседям, оставив у них внизу пустоту. */
.rail.is-loose { align-items: flex-start; }
.rail > * { flex: 0 0 clamp(240px, 27vw, 300px); scroll-snap-align: start; }
/* Отзывы на странице квеста: три карточки в поле зрения, на планшете две,
   на телефоне одна. Больше карточек — лента листается стрелками и пальцем */
.rail--reviews > * { flex: 0 0 calc((100% - 40px) / 3); }
@media (max-width: 1000px) {
  .rail--reviews > * { flex: 0 0 calc((100% - 20px) / 2); }
}
@media (max-width: 700px) {
  .rail--reviews > * { flex: 0 0 100%; }
}
.rail-wrap { position: relative; }
.rail-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.25);
  z-index: 2;
}
.rail-btn--prev { left: -14px; }
.rail-btn--next { right: -14px; background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.rail-btn:disabled { opacity: 0.35; cursor: default; }
@media (max-width: 1279px) {
  .rail-btn--prev { left: 4px; }
  .rail-btn--next { right: 4px; }
}

/* Отзыв: фото сверху, текст и автор снизу */
.review {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.review__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--border);
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
}
.review__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.review__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}
.review__stars { display: inline-flex; gap: 3px; color: var(--accent); margin-bottom: 12px; }
.review__stars .star--off { color: var(--border-2); }
/* Цитата-мысль над самим отзывом: за неё цепляется взгляд */
.review__hl {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 10px;
}
.review__text { font-size: 15px; color: var(--ink-2); line-height: 1.55; margin-bottom: 20px; }
/* Длинный отзыв показываем в шести строках, остальное разворачивается кнопкой.
   Без этого один рассказ на десять абзацев задавал высоту всей ленте, и рядом
   с ним стояли карточки, наполовину пустые.
   Предел живёт здесь, а не в скрипте: JS читает его из этой переменной,
   иначе два числа рано или поздно разъехались бы. */
.review { --review-lines: 6; }
.review.is-clamped:not(.is-open) .review__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--review-lines);
  overflow: hidden;
}
.review.is-clamped .review__text { margin-bottom: 10px; }
.review__more {
  align-self: flex-start;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
}
.review__more:hover { text-decoration: underline; }
/* Автора прижимаем к низу карточки: у соседей по ленте подписи должны
   стоять на одной линии, сколько бы строк ни занял текст выше. */
.review__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review__avatar {
  width: 40px; height: 40px;
  border-radius: var(--r-pill);
  object-fit: cover;
  border: 1px solid var(--border);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  font-size: 16px;
}
/* Блок «боли» на главной: нумерованные колонки, разделённые линиями */
.pain {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(26px, 3vw, 34px) 0;
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
}
.pain__n {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 14px;
}
.pain__title { font-size: clamp(18px, 2vw, 21px); line-height: 1.25; margin-bottom: 10px; }
.pain__text { font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.pain__outro {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  padding-top: clamp(26px, 3vw, 34px);
}
.pain__rule {
  display: block;
  width: 42px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
  margin-bottom: 16px;
}
.pain__outro .lead { font-size: clamp(16px, 1.8vw, 18px); }
@media (max-width: 860px) {
  .pain { grid-template-columns: 1fr; gap: 26px; }
  .pain__outro { grid-template-columns: 1fr; }
}

/* Модальное окно (форма отзыва) */
.modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(560px, calc(100vw - 32px));
  width: 100%;
  max-height: calc(100dvh - 48px);
  overflow: visible;
  margin: auto;
}
.modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal__box {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-pop);
  padding: clamp(26px, 4vw, 36px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.modal__close:hover { border-color: var(--border-2); color: var(--ink); }
.modal[open] { animation: modal-in 0.22s var(--ease); }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Плашки доверия: иконка и заголовок в строку, описание — под ними от края */
.trust {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 20px 22px;
}
.trust__top { display: flex; align-items: center; gap: 10px; }
.trust__top .star { color: var(--accent); }
.trust__ico {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: var(--r-pill);
  background: var(--soft);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.trust__ico--brand { background: transparent; }
.trust__title { font-size: 15px; font-weight: 700; line-height: 1.2; }
/* У оценки вместо иконки — само число, крупно, и звёзды рядом */
.trust__title--big { font-size: 26px; letter-spacing: -0.02em; line-height: 1; }
.trust__text { font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* Площадки с отзывами: акцентная строка под карточками доверия */
.sources { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.sources--center { justify-content: center; }
.sources__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: var(--r-pill);
  background: #fff;
  border: 1px solid var(--border);
}
.sources__logo {
  display: inline-grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
}
.sources__logo svg,
.sources__logo img { display: block; width: 100%; height: 100%; }
/* Сова TripAdvisor шире квадрата: рамку не режем кругом, знак вписывается сам */
.sources__logo--tripadvisor { border-radius: 0; }
.sources__name { font-size: 15px; font-weight: 700; color: var(--ink); }
.sources__value { font-size: 14px; font-weight: 500; color: var(--ink-2); }
/* Пояснение под площадками — обычный текстовый размер, не мелкая сноска */
.sources__note { font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 760px; margin-top: 20px; }
/* На главной пояснение стоит под лентой отзывов, над кнопкой — по центру колонки */
.sources__note--center { margin: 0 auto 22px; text-align: center; }
@media (max-width: 560px) {
  .sources__item { padding: 9px 15px; }
  .sources__logo { flex-basis: 20px; width: 20px; height: 20px; }
  .sources__name { font-size: 14px; }
  .sources__value { font-size: 13px; }
}

/* Галерея квеста: крупный кадр со стрелками + лента миниатюр */
.qgallery__main {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--soft);
  cursor: zoom-in;
}
/* Кадры лежат в ряд и сдвигаются целиком — отсюда плавное пролистывание */
.qgallery__track {
  display: flex;
  height: 100%;
  transition: transform 0.45s var(--ease);
  will-change: transform;
  touch-action: pan-y;
}
.qgallery__slide { flex: 0 0 100%; height: 100%; }
.qgallery__img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) {
  .qgallery__track { transition: none; }
}
.qgallery__btn,
.qgallery__zoom {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(12, 42, 55, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
/* Стрелки видны сразу, как в макете: светлые кружки на фото */
.qgallery__btn {
  width: 42px;
  height: 42px;
  top: 50%;
  margin-top: -21px;
  opacity: 1;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.5);
}
.qgallery__btn--prev { left: 14px; }
.qgallery__btn--next { right: 14px; }
.qgallery__btn:hover { background: #fff; }
/* Плашка с оценкой и счётчик кадров поверх фото */
.qgallery__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(12, 42, 55, 0.88);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
}
.qgallery__count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(12, 42, 55, 0.72);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
}
.qgallery__thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }
/* Одно фото в галерее: ни листать, ни выбирать нечего. */
.qgallery--single .qgallery__thumbs,
.qgallery--single .qgallery__btn,
.qgallery--single .qgallery__count { display: none; }
/* На телефоне миниатюры съедают экран: листаем свайпом и стрелками.
   Из разметки их не убираем — по ним же собирается лайтбокс, а клик по
   основному кадру пробрасывается на активную миниатюру. */
@media (max-width: 700px) {
  .qgallery__thumbs { display: none; }
}

/* Панель покупки: цена и кнопка в одну строку, ниже — список гарантий */
.buypanel { padding: clamp(20px, 2.6vw, 26px); }
.buypanel__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.buypanel__price { font-size: clamp(28px, 3.2vw, 34px); line-height: 1; }
/* Кнопка занимает примерно 60% ширины панели — как в макете */
.buypanel__btn { margin-left: auto; min-width: min(60%, 260px); justify-content: center; }
.buypanel__checks {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  gap: 10px;
}
.buypanel__checks li { font-size: 14.5px; }
@media (max-width: 480px) {
  .buypanel__btn { margin-left: 0; width: 100%; }
}
.qthumb {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.25s var(--ease);
}
.qthumb:hover { transform: translateY(-2px); }
.qthumb.is-current { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }

/* Текст под поиск: обычный абзац, не карточка — не спорит с блоками выше */
.seo-note { max-width: 780px; }
.seo-note p { font-size: 15px; line-height: 1.7; color: var(--ink-2); margin-bottom: 12px; }
/* Перелинковка с блогом: каждая ссылка своей строкой, впереди стрелка-буллет */
.seo-note__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 22px 0 10px;
}
.seo-note__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.seo-note__links li { display: flex; align-items: baseline; gap: 10px; font-size: 15px; line-height: 1.5; }
.seo-note__links li::before {
  content: '→';
  flex: none;
  color: var(--accent);
  font-weight: 700;
}
.seo-note__links a { color: var(--ink); text-decoration: none; }
.seo-note__links a:hover { color: var(--accent-hover); text-decoration: underline; }

/* Карта маршрута с метками поверх картинки */
.routemap { margin: 0; }
.routemap__frame {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--soft);
}
.routemap__img { margin: 0; display: block; cursor: zoom-in; }
.routemap__img img { display: block; width: 100%; height: auto; }
.routemap__pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: var(--r-pill);
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px -3px rgba(12, 42, 55, 0.6);
  transition: transform 0.2s var(--ease), background-color 0.2s ease;
}
.routemap__pin:hover,
.routemap__pin.is-active {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.25);
  z-index: 3;
}
/* Первая и последняя точки подписаны всегда: старт и финиш видно сразу */
.routemap__pin--edge { background: var(--accent); }
.routemap__badge {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  box-shadow: 0 3px 10px -3px rgba(12, 42, 55, 0.5);
}
.routemap__tip {
  position: absolute;
  top: 50%;
  left: calc(100% + 9px);
  transform: translateY(-50%) translateX(-4px);
  white-space: nowrap;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.routemap__tip--left {
  right: calc(100% + 9px);
  left: auto;
  transform: translateY(-50%) translateX(4px);
}
.routemap__pin:hover .routemap__tip,
.routemap__pin:focus-visible .routemap__tip,
.routemap__pin.is-active .routemap__tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.routemap__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: 13.5px;
}
/* Подсветка пункта списка при наведении на метку и наоборот */
[data-map-stop].is-active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
@media (max-width: 700px) {
  /* На узком экране подписи не влезают — метки мельче, карта открывается в лайтбоксе */
  .routemap__pin { width: 24px; height: 24px; font-size: 11px; }
  .routemap__tip { display: none; }
}

/* Лента экранов приложения на странице квеста */
.rail-nav { display: flex; gap: 10px; }
.rail-nav__btn {
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.rail-nav__btn:hover:not(:disabled) { background: var(--soft); }
.rail-nav__btn:disabled { opacity: 0.4; cursor: default; }
.rail--shots > * { flex: 0 0 clamp(200px, 42vw, 232px); }
.shot { margin: 0; scroll-snap-align: start; }
.shot__screen--empty { cursor: default; }
.shot__screen img { width: 100%; height: 100%; object-fit: cover; }
.shot__screen {
  cursor: zoom-in;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  background: var(--soft);
  border: 1px solid var(--border);
  overflow: hidden;
}
.shot__screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.shot__title { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.shot__text { margin-top: 2px; font-size: 13px; color: var(--muted); }

/* Плашка видео: постер + кнопка, файл грузится только по клику */
.videocard {
  position: relative;
  display: block;
  width: 100%;
  max-width: 760px;
  margin-top: clamp(20px, 3vw, 28px);
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  padding: 0;
  background: var(--soft);
  cursor: pointer;
}
/* Видео отдельной секцией — во всю ширину контейнера */
.videocard--wide { max-width: none; margin-top: 0; border-radius: var(--r-2xl); }
.videocard__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px;
  height: 72px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease), background-color 0.2s ease;
}
.videocard:hover .videocard__play { transform: scale(1.06); background: var(--primary); }
.videocard__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 20px 16px;
  background: linear-gradient(transparent, rgba(12, 42, 55, 0.75));
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
}

/* Постраничная навигация */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(20px, 3vw, 30px);
}
.pager__nums { display: flex; gap: 6px; }
.pager__btn,
.pager__num {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-2);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.pager__btn { padding: 10px 18px; }
.pager__num { width: 40px; height: 40px; }
.pager__btn:hover:not(:disabled),
.pager__num:hover { border-color: var(--border-2); color: var(--ink); }
.pager__btn:disabled { opacity: 0.4; cursor: default; }
.pager__num.is-current {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

/* Отметка «Полезно» в отзыве */
.rev__like {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 8px 15px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.rev__like:hover { border-color: var(--border-2); color: var(--ink); }
.rev__like.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}
.rev__like svg { flex: none; }
.rev__like-count {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  background: var(--soft);
  border-radius: var(--r-pill);
  padding: 2px 8px;
}
.rev__like.is-active .rev__like-count { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* Лента отзывов на странице «Отзывы» — широкие карточки, как в прототипе */
.rev {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 28px);
}
.rev__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.rev__tour {
  font-size: 12px;
  color: var(--muted);
  background: var(--soft);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  max-width: 55%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Карточка отзыва в сетке (страница квеста): тянется на высоту соседей,
   строка автора у всех оказывается на одном уровне */
/* Высоту не задаём: и в сетке, и в ленте карточки растягивает сам контейнер,
   а height:100% в ленте, наоборот, схлопывал их до высоты текста */
.rev--card { display: flex; flex-direction: column; }
.rev--card .rev__text { flex: 1; }
.rev--card .rev__author { margin-top: 18px; }
/* В карточке снимки прижаты к правому краю строки с именем и мельче обычных.
   Селектор из двух классов — иначе базовое правило .rev__shots figure ниже
   по файлу перебивает размер при равной специфичности */
.rev__shots.rev__shots--card { margin-left: auto; gap: 6px; }
.rev__shots.rev__shots--card figure { width: 40px; height: 40px; border-radius: 9px; }
.rev__shots.rev__shots--card .rev__more { font-size: 12px; }
.rev__hl { display: flex; align-items: center; gap: 11px; margin: 2px 0 18px; }
.rev__hl svg { color: var(--accent); opacity: 0.9; flex: none; }
.rev__hl h2 { font-size: 17px; font-weight: 700; line-height: 1.35; }
/* Пробуем без подчёркивания-маркера: цитата держится на кавычке и начертании */
.rev__hl mark { background: none; color: var(--ink); }
.rev__text { font-size: 15.5px; color: var(--ink-2); line-height: 1.65; white-space: pre-line; }
/* Снимки живут в строке автора: открываются и листаются своей группой */
.rev__gallery { display: flex; flex-direction: column; gap: 7px; margin-left: clamp(16px, 3vw, 32px); }
.rev__gallery-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.rev__gallery-label svg { color: var(--accent); flex: none; }
.rev__shots { display: flex; gap: 8px; flex: 0 0 auto; }
.rev__shots figure {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--soft);
  cursor: zoom-in;
  transition: transform 0.25s var(--ease);
}
.rev__shots figure.is-hidden { display: none; }
.rev__shots figure:hover { transform: translateY(-2px); }
.rev__shots img { width: 100%; height: 100%; object-fit: cover; }
/* Плашка «+N» на последнем видимом снимке */
.rev__more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 42, 55, 0.62);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
@media (max-width: 620px) {
  /* Без wrap строка автора не переносилась и полоса снимков вылезала за экран,
     хотя order: 3 уже просил увести её на отдельную строку */
  .rev__author { flex-wrap: wrap; row-gap: 14px; }
  .rev__gallery { margin-left: 0; order: 3; width: 100%; }
}

/* Своя кнопка выбора файлов вместо системной «Выбрать файлы» */
.filedrop {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px dashed var(--border-2);
  border-radius: var(--r-md);
  background: var(--soft);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.filedrop:hover,
.filedrop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.filedrop__ico {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.filedrop__text { display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.filedrop__text b { font-weight: 600; color: var(--ink); }
.filedrop__text .muted { font-size: 12.5px; }
/* Клавиатурный фокус приходит на скрытый input — подсвечиваем плашку */
input[type='file']:focus-visible + .filedrop { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Превью выбранных файлов в форме отзыва */
.uploads { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.uploads__item {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 12.5px;
  color: var(--ink-2);
}
.uploads__item img { width: 30px; height: 30px; border-radius: var(--r-pill); object-fit: cover; flex: none; }
.uploads__item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rev__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.review__name { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.review__meta { display: block; font-size: 13px; color: var(--muted); }

/* --------------------------------------------------------------------------
   FAQ — нативный accordion
   -------------------------------------------------------------------------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: background-color 0.22s ease, color 0.2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--soft); color: var(--accent-hover); }
.faq summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  flex: 0 0 auto;
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { content: '−'; }
.faq details > p {
  margin: 0;
  /* сверху воздух, чтобы ответ не подпирал подсвеченный вопрос */
  padding: 12px 22px 26px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Хлебные крошки
   -------------------------------------------------------------------------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding-block: clamp(40px, 6vw, 72px) 0;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: '/'; color: var(--border-2); }

/* --------------------------------------------------------------------------
   Заголовок внутренней страницы
   -------------------------------------------------------------------------- */
/* Отступы как в прототипе: крошки — заголовок 18px, под лидом 20–32px */
.page-head {
  padding-block: 18px clamp(20px, 3vw, 32px);
}
/* Без крошек сверху нужен полноценный отступ от шапки */
main > .page-head:first-child { padding-top: clamp(40px, 6vw, 72px); }
.page-head p { margin-top: 14px; max-width: 640px; }

/* --------------------------------------------------------------------------
   Текстовые (юридические) страницы
   -------------------------------------------------------------------------- */
.prose { max-width: 760px; }
.prose h2 {
  font-size: clamp(20px, 2.4vw, 25px);
  margin: 40px 0 14px;
  scroll-margin-top: 110px;
}
.prose h3 { font-size: 18px; margin: 26px 0 10px; }
.prose p,
.prose li { font-size: 16px; color: var(--ink-2); line-height: 1.7; }
.prose p + p { margin-top: 14px; }
.prose ul,
.prose ol { margin: 14px 0; padding-left: 22px; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 8px; }
/* Ссылки в тексте — янтарные, но кнопки внутри статьи красит свой класс:
   иначе .prose a перебивал .btn--accent и надпись становилась оранжевой на оранжевом */
.prose a:not(.btn) { color: var(--accent-hover); }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.prose th,
.prose td { border: 1px solid var(--border); padding: 12px 14px; text-align: left; }
.prose th { background: var(--soft); font-weight: 600; color: var(--ink); }
.prose__updated { font-size: 14px; color: var(--muted); }

/* Строка доверия перед первым разделом: «основано на десяти годах экскурсий».
   Раньше она была размечена как h2 и попадала в оглавление целым абзацем. */
.prose__standfirst {
  margin: 0 0 28px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
}

/* Таблица в статье на телефоне: прокручиваем её саму, а не всю страницу.
   Обёртку ставит фильтр looksart_wrap_tables() — руками в тексте не пишем. */
.prose .table-scroll { overflow-x: auto; margin: 20px 0; }
.prose .table-scroll table { margin: 0; min-width: 420px; }

/* Блок ссылок на соседние статьи посреди текста. Намеренно негромкий:
   он помогает тому, кто уже прочитал раздел, а не перебивает чтение. */
.inline-links {
  margin: 28px 0;
  padding: 16px 18px;
  background: var(--soft);
  border-radius: var(--r-md);
}

.inline-links__title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.inline-links ul { margin: 0; padding: 0; list-style: none; }
.inline-links li + li { margin-top: 6px; }
.inline-links a { font-size: 15px; font-weight: 500; }

/* --------------------------------------------------------------------------
   Картинки внутри статьи

   Ширина колонки текста — 760 px, а картинки в статьях выигрывают от того,
   что чуть шире текста: так они читаются как отдельный «вдох», а не как
   продолжение абзаца. На узком экране выходить за края нельзя, поэтому
   расширение отключается первым.
   -------------------------------------------------------------------------- */
.prose-figure {
  margin: 32px 0;
  /* aspect-ratio браузер берёт из width/height самой картинки, поэтому
     страница не прыгает, пока картинка грузится. */
}

.prose-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  background: var(--soft);
}

.prose-figure figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* Схемы и карты: их читают, а не рассматривают, поэтому им нужна вся
   доступная ширина и светлая подложка вместо тёмной рамки. */
.prose-figure--scheme img {
  background: var(--bg);
  border: 1px solid var(--border);
}

/* Пиктограммы идут рядами по 3–4 и не должны раздуваться на весь экран. */
.prose-figure--icons img { max-width: 520px; margin: 0 auto; border-radius: 0; background: none; }

/* Материал на печать: показываем небольшим превью со ссылкой рядом. */
.prose-figure--print { display: flex; gap: 20px; align-items: flex-start; }
.prose-figure--print img { max-width: 220px; border: 1px solid var(--border); }
.prose-figure--print figcaption { margin-top: 0; }

@media (min-width: 1100px) {
  .prose-figure--wide { width: calc(100% + 120px); margin-left: -60px; }
}

@media (max-width: 640px) {
  .prose-figure { margin: 24px 0; }
  .prose-figure--print { flex-direction: column; gap: 12px; }
  .prose-figure--print img { max-width: 100%; }
}

/* Двухколоночный первый экран страницы квеста.
   Колонки тянутся на одну высоту: слева фото растёт под остаток места,
   справа панель покупки прижата к низу — низ галереи и низ карточки совпадают. */
@media (min-width: 1000px) {
  .quest-hero {
    grid-template-columns: minmax(0, 1.27fr) minmax(0, 1fr) !important;
    align-items: stretch;
  }
  .quest-hero > * { min-width: 0; }
  /* Кадр держит постоянную пропорцию — вытянутую по горизонтали, не квадрат */
  .qgallery { display: flex; flex-direction: column; align-self: start; }
  .qgallery__main { flex: none; aspect-ratio: 4 / 3; }
  .quest-hero__info { display: flex; flex-direction: column; }
  .quest-hero__info .buypanel { margin-top: auto; }
}

/* --------------------------------------------------------------------------
   Статья блога
   -------------------------------------------------------------------------- */
.article { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 1060px) {
  .article { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; }
  .article__aside { position: sticky; top: 110px; }
}
.article__cover {
  border-radius: var(--r-2xl);
  overflow: hidden;
  margin-bottom: 28px;
  aspect-ratio: 16 / 9;
}
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-card);
}
.toc h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.toc h2::before {
  content: '';
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  flex: none;
}
/* Пункты уже пронумерованы в тексте статьи — своя нумерация дала бы вторую колонку цифр.
   Вместо неё — направляющая линия с точками: видно, где ты сейчас читаешь. */
.toc ol {
  list-style: none;
  border-left: 1px solid var(--border);
  padding-left: 14px;
  margin-left: 4px;
}
.toc li + li { margin-top: 2px; }
.toc a {
  position: relative;
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  text-decoration: none;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.toc a::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: var(--r-pill);
  background: var(--border-2);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.toc a:hover { background: var(--soft); color: var(--ink); }
.toc a[aria-current='true'] {
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 600;
}
.toc a[aria-current='true']::before {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Ссылка «посмотреть на карте» внутри статьи */
.maplink { margin: 0 0 14px; }
.maplink a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 7px 15px 7px 12px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.maplink a:hover { border-color: var(--accent-soft-border); color: var(--ink); }
.maplink--plain {
  display: flex;
  align-items: center;
  font-size: 15px;
  color: var(--ink-2);
}

.tip-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.tip-card__head h3 {
  margin: 0;
  font-size: 16px;
}
.tip-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  color: var(--primary);
  background: var(--soft);
  border-radius: 50%;
}
.tip-ticket {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 16px;
  padding: 22px 24px;
  color: var(--ink);
  background: #fbf2f2;
  border: 2px solid var(--accent);
  border-radius: var(--r-lg);
}
.tip-ticket__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  color: var(--accent);
  background: #fff;
  border-radius: 50%;
}
.tip-ticket__body h3 { margin: 2px 0 6px; font-size: 18px; }
.tip-ticket__body p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.tip-ticket__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 16px;
  color: #fff;
  background: var(--accent);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.22s ease, box-shadow 0.3s ease, transform 0.3s var(--ease);
}
/* Было var(--accent-dark) — такой переменной нет, и фон на наведении
   схлопывался в прозрачный: белый текст оказывался на светлой подложке */
.tip-ticket__cta:hover { color: #fff; background: var(--accent-hover); box-shadow: var(--shadow-card); transform: translateY(-1px); }
.tip-ticket__cta:active { transform: translateY(0); box-shadow: none; }
.tip-ticket__cta:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.tip-ticket__cta svg { transition: transform 0.25s var(--ease); }
.tip-ticket__cta:hover svg { transform: translateX(3px); }
@media (max-width: 560px) {
  .tip-ticket__cta { justify-content: center; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .tip-ticket__cta,
  .tip-ticket__cta svg { transition: none; }
  .tip-ticket__cta:hover { transform: none; }
  .tip-ticket__cta:hover svg { transform: none; }
}

/* Совет и призыв скачать приложение — вместо эмодзи 💡 и 📲 */
.prose .note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin: 18px 0;
  font-size: 15px;
  line-height: 1.55;
}
.prose .note__ico { color: var(--accent); flex: none; margin-top: 1px; }
.prose .note--app { background: var(--accent-soft); border-color: var(--accent-soft-border); }

/* Вывод абзаца — вместо эмодзи 🎯 */
.prose .pullout {
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 16px;
  margin: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.prose .pullout svg { color: var(--accent); flex: none; }
.prose .pullout em,
.prose .pullout i { font-style: normal; }

.callout {
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 30px);
  margin: 28px 0;
}
.callout h3 { margin-bottom: 10px; }

/* Теги статьи — одной строкой с иконкой, без надзаголовка «ТЕГИ» */
.tags-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.tags-row__icon { color: var(--muted); display: inline-flex; flex: none; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a {
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 7px 14px;
}
.tags a:hover { border-color: var(--border-2); }

/* --------------------------------------------------------------------------
   Формы
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input,
.field textarea,
.field select {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 13px 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(226, 100, 60, 0.16);
}
.field textarea { min-height: 120px; resize: vertical; }
.field__hint { font-size: 13px; color: var(--muted); }
.field--error input,
.field--error textarea { border-color: #d64545; }
.field__error { font-size: 13px; color: #d64545; }
.field__note { font-size: 13px; color: var(--muted); }
.field__label { font-size: 14px; font-weight: 600; color: var(--ink); }

/* Согласие на обработку данных */
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--muted); cursor: pointer; }
.check input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; padding: 0; accent-color: var(--accent); cursor: pointer; }
.check a { color: var(--accent); }
.field--check.field--error .check { color: #d64545; }

/* Оценка звёздами: звёзды идут справа налево, поэтому «до наведённой»
   в разметке означает «после неё» — отсюда соседний селектор. */
.stars-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars-input label {
  width: 30px;
  height: 30px;
  background: currentColor;
  color: var(--border);
  cursor: pointer;
  transition: color 0.15s ease;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 5.9 6.5.9-4.7 4.6 1.1 6.4-5.8-3-5.8 3 1.1-6.4L2.6 9.4l6.5-.9z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 5.9 6.5.9-4.7 4.6 1.1 6.4-5.8-3-5.8 3 1.1-6.4L2.6 9.4l6.5-.9z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.stars-input input:checked ~ label,
.stars-input label:hover,
.stars-input label:hover ~ label { color: var(--accent); }
.stars-input input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-note { font-size: 13px; color: var(--muted); line-height: 1.5; }
.form-ok {
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
  border-radius: var(--r-lg);
  padding: 24px;
  text-align: center;
}
.form-ok[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Лайтбокс
   -------------------------------------------------------------------------- */
/* display задаём только открытому диалогу: иначе он перебивает
   браузерное правило dialog:not([open]) { display: none } */
.lightbox {
  position: fixed;
  /* У dialog браузерные width/height — fit-content, поэтому одного inset мало:
     без явных 100% окно сжимается по картинке. Проценты считаются от области
     просмотра без полосы прокрутки — стрелки остаются симметричными. */
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: none;
  /* Нейтральный тёмный фон: бирюза красила фотографии в свой оттенок */
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 400;
  overscroll-behavior: contain;
}
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.62); }

/* Клик по сцене закрывает, по самой картинке — нет */
.lightbox__stage {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: clamp(56px, 8vh, 88px) clamp(16px, 8vw, 96px);
  cursor: zoom-out;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: var(--r-md);
  object-fit: contain;
  cursor: default;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.lightbox__caption {
  color: #fff;
  font-size: 14px;
  text-align: center;
  flex: 0 0 auto;
  max-width: 60ch;
}
.lightbox__btn {
  position: absolute;
  z-index: 2;
  width: 46px; height: 46px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

/* --------------------------------------------------------------------------
   Плавающая панель покупки (страница квеста)
   -------------------------------------------------------------------------- */
/* Плавающая панель покупки: появляется, когда основная карточка ушла вверх */
.buybar {
  position: fixed;
  /* Ширина по содержимому и по центру — иначе в середине зияет пустота */
  left: 50%;
  bottom: 16px;
  z-index: 90;
  width: max-content;
  max-width: calc(100vw - 32px);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 12px 12px 22px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  box-shadow: 0 18px 40px -20px rgba(15, 50, 66, 0.55);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}
.buybar.is-visible { transform: translate(-50%, 0); opacity: 1; }
.buybar__info { display: flex; flex-direction: column; min-width: 0; }
.buybar__title { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar__meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar__price { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.buybar__btn { flex: none; padding: 12px 26px; }
@media (max-width: 620px) {
  .buybar { bottom: 10px; max-width: calc(100vw - 20px); padding: 10px 10px 10px 16px; gap: 10px; }
  .buybar__meta { display: none; }
  .buybar__price { font-size: 18px; }
  .buybar__btn { padding: 11px 18px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .buybar { transition: opacity 0.2s ease; transform: translate(-50%, 0); }
}

/* --------------------------------------------------------------------------
   Cookie-баннер
   -------------------------------------------------------------------------- */
.cookie {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 350;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop);
  padding: 20px 22px;
}
.cookie[hidden] { display: none; }
.cookie p { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin-bottom: 16px; }
.cookie__row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 520px) {
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* --------------------------------------------------------------------------
   Утилиты
   -------------------------------------------------------------------------- */
.center { text-align: center; }
.mt-auto { margin-top: auto; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn:hover,
  a.card:hover,
  .gallery figure:hover { transform: none; }
}

@media print {
  .header, .footer, .cookie, .buybar, .drawer, .drawer-overlay, .progress { display: none !important; }
  body { color: #000; }
}
.route-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* История остановки: кнопка не спорит с фотографией, окно держит фокус на ней. */
.route-card {
  position: relative;
}
.route-card[data-route-card-open] { cursor: pointer; }
/* Карточка остановки: номер, название и лёгкая ссылка «Подробнее» под ним */
.route-card__body {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 4px 12px;
  padding: 14px 18px 16px;
}
.route-card__n { grid-row: 1; align-self: center; width: 28px; height: 28px; justify-content: center; padding: 0; border-radius: var(--r-pill); }
.route-card__name { grid-column: 2; align-self: center; font-size: 15px; font-weight: 500; }
.route-card__more {
  grid-column: 2;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-hover);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: gap 0.2s var(--ease), color 0.2s ease;
}
.route-card__more svg { flex: none; }
.route-card:hover .route-card__more { gap: 9px; }
.route-card__more:hover { color: var(--accent); }
.route-card__more:focus-visible,
.route-dialog__close:focus-visible {
  outline: 3px solid #f39a2e;
  outline-offset: 3px;
}
.route-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(940px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}
body.route-dialog-open {
  position: fixed;
  inset-inline: 0;
  width: 100%;
  overflow: hidden;
}
.route-dialog::backdrop {
  background: rgba(5,28,38,.68);
  backdrop-filter: blur(4px);
}
.route-dialog__surface {
  position: relative;
  max-height: calc(100dvh - 40px);
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(17,76,99,.12);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(5,28,38,.3);
  overflow: auto;
}
.route-dialog__close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(17,76,99,.14);
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: var(--ink);
  cursor: pointer;
}
.route-dialog__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-right: 56px;
  margin-bottom: 20px;
}
.route-dialog__heading .h2 {
  margin: 0;
}
.route-dialog__stage {
  flex: 0 0 auto;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}
.route-dialog__gallery {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  height: clamp(310px, 48vw, 470px);
  margin-bottom: 22px;
}
.route-dialog__gallery-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 14px;
  object-fit: cover;
}
.route-dialog__gallery-image:first-child {
  grid-row: 1 / -1;
}
.route-dialog__gallery--single {
  display: block;
  height: clamp(340px, 50vw, 500px);
}
.route-dialog__gallery--single .route-dialog__gallery-image {
  width: 100%;
  height: 100%;
}
.route-dialog__text {
  max-width: 72ch;
  margin: 0;
  color: var(--ink-2);
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.65;
}
.route-dialog__nav {
  position: sticky;
  bottom: calc(clamp(22px, 4vw, 38px) * -1);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 24px calc(clamp(22px, 4vw, 38px) * -1) calc(clamp(22px, 4vw, 38px) * -1);
  padding: 16px clamp(22px, 4vw, 38px);
  border-top: 1px solid rgba(17,76,99,.12);
  border-radius: 0 0 24px 24px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
}
.route-dialog__nav-button {
  justify-self: end;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid rgba(17,76,99,.16);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.route-dialog__nav-button--prev { justify-self: start; }
.route-dialog__nav-button:hover,
.route-dialog__nav-button:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.route-dialog__nav-button:focus-visible {
  outline: 3px solid rgba(243,154,46,.35);
  outline-offset: 2px;
}
.route-dialog__counter {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .route-card__more {
    min-width: 88px;
    min-height: 38px;
    opacity: .82;
  }
  .route-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 18px;
  }
  .route-dialog__surface {
    max-height: calc(100dvh - 16px);
    padding: 20px 16px 24px;
    border-radius: 18px;
  }
  .route-dialog__heading {
    gap: 10px;
    padding-right: 48px;
    margin-bottom: 16px;
  }
  .route-dialog__heading .h2 { font-size: clamp(24px, 7vw, 30px); }
  .route-dialog__stage { font-size: 10px; }
  .route-dialog__gallery {
    display: flex;
    height: auto;
    margin-inline: -16px;
    padding-inline: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .route-dialog__gallery::-webkit-scrollbar { display: none; }
  .route-dialog__gallery-image {
    flex: 0 0 88%;
    height: auto;
    aspect-ratio: 16 / 10;
    scroll-snap-align: center;
  }
  .route-dialog__gallery--single {
    display: block;
    height: auto;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
  .route-dialog__gallery--single .route-dialog__gallery-image {
    width: 100%;
    height: auto;
  }
  .route-dialog__text {
    font-size: 16px;
    line-height: 1.58;
  }
  .route-dialog__nav {
    bottom: -24px;
    gap: 8px;
    margin: 22px -16px -24px;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    border-radius: 0 0 18px 18px;
  }
  .route-dialog__nav-button {
    min-height: 42px;
    padding-inline: 10px;
    font-size: 13px;
  }
  .route-dialog__counter { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .route-dialog,
  .route-card__more { transition: none; }
}

/* Страница WTE: проверка пар «античное средство — современный аналог».
   Участник уже разложил карточки на стенде, поэтому ответы спрятаны
   в <details>: сначала своя версия, потом правильная. Без JS ответ
   открывается так же — это родное поведение элемента */
.wte-pairs { display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; }
.wte-pair { padding: clamp(20px, 2.6vw, 28px); }

.wte-pair__question { display: flex; align-items: center; gap: 16px; }
.wte-pair__n {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
/* Иллюстрации нарезаны на квадратный белый холст, cover ничего не режет.
   На узком экране квадрат ужимаем, чтобы имя пары не ломалось на слоги */
.wte-pair__img {
  flex: none;
  width: 104px;
  height: 104px;
  border-radius: var(--r-md);
  object-fit: cover;
  background: var(--soft);
}
@media (max-width: 640px) {
  .wte-pair__img { width: 76px; height: 76px; }
}
.wte-pair__tag {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.wte-pair__name { font-size: clamp(19px, 2.2vw, 22px); font-weight: 700; margin: 0; }

.wte-pair__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 18px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.wte-pair__toggle::-webkit-details-marker { display: none; }
.wte-pair__toggle:hover { background: var(--soft); border-color: var(--muted); }
/* Свой маркер вместо системного треугольника: у закрытого — вниз, у открытого — вверх */
.wte-pair__toggle::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s var(--ease);
}
.wte-pair__details[open] .wte-pair__toggle::after { transform: rotate(225deg) translateY(-2px); }
.wte-pair__toggle-hide { display: none; }
.wte-pair__details[open] .wte-pair__toggle-show { display: none; }
.wte-pair__details[open] .wte-pair__toggle-hide { display: inline; }

.wte-answer {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
}
.wte-answer__icon {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wte-answer__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.wte-answer__value { font-size: 18px; color: var(--ink); }
.wte-answer__note { display: block; font-size: 15px; line-height: 1.55; color: var(--ink-2); margin-top: 8px; }

/* Партнёрка: УТП-тезисы одной строкой под подводкой в шапке */
.partners-usp {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-2);
}

/* Манифест после ответов: цепочка «смотри → решай → открывай» плашками
   и тезисы «памятник — поле игры». Контент приходит одной строкой и
   текстом по строкам, шаблон только расставляет стрелки */
.wte-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 24px; }
.wte-steps__item {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--soft);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 14.5px;
}
.wte-steps__arrow { color: var(--muted); font-size: 15px; }
.wte-lines { display: grid; gap: 6px; margin: 0 0 20px; }
.wte-lines p { margin: 0; font-size: clamp(17px, 2vw, 19px); font-weight: 600; color: var(--ink); }
.wte-tagline { font-size: 15.5px; color: var(--ink-2); margin: 0; }

/* Кнопки «Связаться» под призывом к экскурсии — отделяем тонкой чертой,
   чтобы контакты не сливались с основным действием */
.wte-contact { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.wte-contact__lead { font-size: 15px; color: var(--muted); margin: 0 0 14px; }
.wte-contact__audience { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
