/* Витрина Almaty Tourstudio.
   Решения и их причины - в docs/design.md. Правку цвета, шрифта или структуры
   имеет смысл начинать оттуда: здесь только исполнение. */

/* ------------------------------------------------------------------ шрифты */

/* Гарнитуры из бренд-кита: Montserrat в заголовках, Inter в тексте.
   Лежат локально - внешних запросов у витрины нет вообще. */
@font-face { font-family: Mont; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/mont-700-cyr.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Mont; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/mont-700-cyrext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: Mont; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/mont-700-lat.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122; }

@font-face { font-family: Mont; font-style: normal; font-weight: 800; font-display: swap;
  src: url(/assets/fonts/mont-800-cyr.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Mont; font-style: normal; font-weight: 800; font-display: swap;
  src: url(/assets/fonts/mont-800-cyrext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: Mont; font-style: normal; font-weight: 800; font-display: swap;
  src: url(/assets/fonts/mont-800-lat.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122; }

@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/inter-400-cyr.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/inter-400-cyrext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/inter-400-lat.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122; }

@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/inter-500-cyr.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/inter-500-cyrext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/inter-500-lat.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122; }

@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/inter-600-cyr.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/inter-600-cyrext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/inter-600-lat.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122; }

/* ------------------------------------------------------------------ токены */

:root {
  /* Токены бренд-кита, 04_Design_Tokens. Менять их здесь нельзя -
     сначала гайд, потом код (docs/brand.md). */
  --accent: #f4bc22;   /* шафрановый: заливка и подчёркивание, не текст */
  --ink: #111111;      /* графит */
  --paper: #f6f3ec;    /* тёплый белый */
  --line: #d9d6cf;     /* мягкий серый */

  --paper-2: #edeade;
  --ink-2: #2b2b28;
  --dim: #6b6862;
  --on-photo: #f6f3ec;
  --alert: #a8321f;    /* только ошибки форм: в бренде красного нет */

  --display: Mont, Montserrat, "Segoe UI", Arial, sans-serif;
  --text: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;

  --edge: clamp(18px, 4.4vw, 60px);
  --gap: clamp(16px, 2.4vw, 32px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14140f;
    --paper-2: #1d1c16;
    --ink: #f2efe6;
    --ink-2: #d5d2c8;
    --dim: #9a968c;
    --line: #34332b;
    /* На тёмном шафрановый читается (около 9:1), поэтому здесь он может
       быть и текстом - в отличие от светлой темы. */
    --accent: #f4bc22;
    --alert: #e0806c;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--text);
  font-variant-numeric: lining-nums tabular-nums;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { width: min(1320px, 100% - var(--edge) * 2); margin-inline: auto; }
.narrow { width: min(680px, 100% - var(--edge) * 2); margin-inline: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 12px; top: 12px; z-index: 40;
  background: var(--accent); color: var(--ink); padding: 10px 16px;
}

/* Заголовки узким гротеском: это голос экспедиционного отчёта и музейной
   этикетки, а не журнальной обложки. Курсива в заголовках нет нигде. */
h1, h2, h3 {
  font-family: var(--display); font-weight: 800; font-style: normal;
  line-height: .96; margin: 0; letter-spacing: -0.015em;
  overflow-wrap: anywhere; min-width: 0;
}
h1 { font-size: clamp(40px, 7vw, 92px); }
h2 { font-size: clamp(28px, 4vw, 50px); }
h3 { font-size: clamp(19px, 2vw, 24px); letter-spacing: -0.005em; }
p { margin: 0 0 0.95em; }
p:last-child { margin-bottom: 0; }

.lede { font-size: clamp(18px, 1.9vw, 22px); line-height: 1.45; max-width: 30em; }
.prose { max-width: 34em; }
.prose p, .prose li { line-height: 1.65; }
.prose h3 { margin: 1.7em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.1em; }

.meta {
  font-family: var(--display); font-weight: 600; font-size: 14px;
  letter-spacing: .02em; color: var(--dim);
}

/* ------------------------------------------------------------------ шапка */

.top {
  position: relative; z-index: 20;
  padding-block: 12px 13px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
/* Раскладка - у строки внутри шапки, а не у самой шапки: строка - её
   единственный ребёнок. Раньше flex стоял на header, и логотип, меню и
   языки выстраивались тремя строками, а на телефоне класс is-open,
   который ставит скрипт на строку, не находил своего правила - меню не
   открывалось вовсе. */
.top__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px var(--gap); }
/* Не baseline: марка - это грид из двух строк, и браузер выравнивает меню по
   её второй строке, отчего меню уезжает под девиз. */
.mark { text-decoration: none; display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.mark__sign { width: 44px; height: 44px; flex: 0 0 auto; }
.mark__text { display: grid; line-height: 1; }
.mark__name {
  font-family: var(--display); font-weight: 800; font-size: 17px;
  letter-spacing: -0.005em; text-transform: uppercase;
}
.mark__motto { font-size: 11.5px; color: var(--dim); margin-top: 4px; }
@media (max-width: 420px) { .mark__motto { display: none; } }

/* Два яруса: логотип и языки сверху, меню строкой под ними. В одну строку
   с логотипом шесть разделов не влезали даже на ноутбуке и переносились
   посреди меню. */
.nav { order: 2; width: 100%; }
.nav__list {
  display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none;
  font-family: var(--display); font-weight: 600; font-size: 15.5px;
}
.nav__list a { text-decoration: none; color: var(--dim); white-space: nowrap; }
.nav__list a:hover { color: var(--ink); }
.nav__list a[aria-current] {
  color: var(--ink); text-decoration: underline;
  text-decoration-color: var(--accent); text-decoration-thickness: 2px;
}

.langs { display: flex; gap: 1px; order: 1; margin-left: auto; }
.langs button {
  font: 600 12.5px var(--display); letter-spacing: .04em; text-transform: uppercase;
  background: none; border: 1px solid transparent; color: var(--dim);
  padding: 3px 7px; cursor: pointer;
}
.langs button[aria-pressed="true"] { border-color: var(--line); color: var(--ink); }

.burger {
  margin-left: auto; display: none; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--line); color: inherit;
  font: 600 14px var(--display); padding: 6px 11px; cursor: pointer;
}

@media (max-width: 940px) {
  .burger { display: inline-flex; order: 1; }
  .langs { order: 2; margin-left: 0; }
  .nav { display: none; order: 3; width: 100%; margin-left: 0; padding-top: 4px; }
  .top__row.is-open .nav { display: block; }
  .nav__list { flex-direction: column; gap: 10px; font-size: 18px; }
}

/* ------------------------------------------------------- фотографический экран */

/* Первый экран - одна фотография и подпись к ней. Не слайдер: слайдер прячет
   вторую и третью фотографию от того, кто не дождался, а лозунг поверх
   равномерно затемнённого кадра не сообщает ничего. */
.fold {
  position: relative; min-height: min(92vh, 880px);
  display: grid; background: var(--ink); color: var(--on-photo); isolation: isolate;
}
.fold__img { position: absolute; inset: 0; z-index: -2; }
.fold__img img { width: 100%; height: 100%; object-fit: cover; }
/* Затемнение только снизу, где лежит подпись: вуаль поверх всего кадра
   гасит фотографию целиком, а она здесь и есть содержание. */
.fold__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(10, 12, 22, .86) 0%, rgba(10, 12, 22, .42) 32%, rgba(10, 12, 22, 0) 62%);
}
.fold__body {
  align-self: end; padding: 0 var(--edge) clamp(30px, 5vw, 60px);
  width: min(1320px, 100%); margin-inline: auto;
}
.fold h1 { color: #fff; max-width: 11em; }
.fold--empty { background: var(--ink-2); }

.fold__caption {
  position: absolute; right: var(--edge); bottom: clamp(30px, 5vw, 60px);
  font-family: var(--display); font-size: 13px; letter-spacing: .02em;
  color: rgba(243, 241, 234, .62); text-align: right; max-width: 15em;
}
@media (max-width: 900px) { .fold__caption { display: none; } }

/* Ближайший выезд - подпись к фотографии, а не баннер поверх неё. */
.card-date { display: inline-grid; gap: 5px; margin-top: 20px; padding-top: 16px; border-top: 2px solid var(--accent); }
.card-date__when { font-family: var(--display); font-weight: 800; font-size: clamp(21px, 2.5vw, 30px); letter-spacing: -0.01em; }
.card-date__facts {
  display: flex; flex-wrap: wrap; gap: 3px 20px;
  font-family: var(--display); font-weight: 600; font-size: 16px; color: rgba(243, 241, 234, .84);
}
.card-date__seats { color: var(--accent); }
.card-date__seats--none { color: #d9d6cf; }

/* ------------------------------------------------------------------- опись */

.section { padding-block: clamp(44px, 6vw, 92px); }
.section--flush { padding-block: clamp(26px, 4vw, 52px); }

.head { display: flex; align-items: end; justify-content: space-between; gap: var(--gap); flex-wrap: wrap; margin-bottom: 20px; }
.head p { color: var(--dim); max-width: 34em; }
/* Специфичнее, чем ".head p": иначе год красится в служебный серый. */
.head p.year, .year { color: var(--ink); max-width: none; margin: 0; }
.head__link {
  font-family: var(--display); font-weight: 700; font-size: 15px;
  text-decoration: none; color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--accent);
}
.head__link:hover { text-decoration: underline; }

/* Год крупно - он и есть заголовок описи. */
.year {
  font-family: var(--display); font-weight: 800; line-height: .8;
  font-size: clamp(60px, 12vw, 160px); letter-spacing: -0.035em; color: var(--ink);
}

.index { border-top: 4px solid var(--accent); }
.index__row {
  display: grid; grid-template-columns: 2.6em 11.5em minmax(0, 1fr) 7.5em 8.5em 7.5em;
  align-items: baseline; gap: 5px var(--gap);
  padding: 15px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.index__row:hover { background: var(--paper-2); }
.index__n { font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--dim); }
.index__when { font-family: var(--display); font-weight: 800; font-size: 18px; }
/* Раздел, где дат не бывает вовсе: столбец убираем, а не оставляем пустым. */
.index--undated .index__row { grid-template-columns: 2.6em minmax(0, 1fr) 7.5em 8.5em 7.5em; }
.index--undated .index__when { display: none; }
.index__name { font-family: var(--display); font-weight: 600; font-size: 21px; }
.index__name small { display: block; font: 400 14px/1.4 var(--text); color: var(--dim); margin-top: 2px; }
.index__seats {
  font-family: var(--display); font-weight: 700; font-size: 13.5px;
  color: var(--ink); background: var(--accent); padding: 3px 8px;
  justify-self: start;
  /* Плашка не переносится: «осталось 15 / мест» в две строки читается
     как две разные подписи и ломает высоту ряда. */
  white-space: nowrap;
}
/* Мест нет - серая плашка вместо жёлтой. Разница видна без красного,
   которого в брендовой палитре нет вовсе. */
.index__seats--none { background: var(--line); color: var(--ink); }
.index__price { font-family: var(--display); font-weight: 600; font-size: 17px; text-align: right; }
/* Приглашение в конце строки. Подчёркивание жёлтым - тот же приём, что у
   ссылок в заголовках: кнопкой в каждой строке список стал бы рябить. */
.index__go {
  font-family: var(--display); font-weight: 700; font-size: 13.5px;
  color: var(--ink); justify-self: end; white-space: nowrap;
  box-shadow: inset 0 -2px 0 var(--accent);
}
.index__row:hover .index__go { box-shadow: inset 0 -1.1em 0 var(--accent); }

/* До 1000px - раскладка телефона: на планшете шесть столбцов оставляли
   названию тура пару сантиметров, и «Туркменистан» рвался посреди слова. */
@media (max-width: 1000px) {
  .index__row { grid-template-columns: 2.2em minmax(0, 1fr) auto; }
  /* На телефоне строка и так вся кликабельна, а «посмотреть» съедало бы
     ширину у названия. */
  .index__go { display: none; }
  .index__n { grid-row: span 2; }
  .index__when { order: 1; }
  .index__price { order: 2; }
  /* min-width у элемента сетки по умолчанию - min-content, и длинное
     название вылезало за край экрана вместо того, чтобы перенестись. */
  .index__name { order: 3; grid-column: 2 / -1; min-width: 0; }
  .index__seats { order: 4; grid-column: 2 / -1; }

  /* Раздел, где дат не бывает: цена встаёт справа от названия. Иначе она
     повисает отдельной строкой над ним и читается как заголовок строки.
     Сетку задаём здесь же: правило .index--undated .index__row выше
     специфичнее мобильного и иначе оставило бы четыре столбца от десктопа. */
  .index--undated .index__row { grid-template-columns: 2.2em minmax(0, 1fr) auto; }
  .index--undated .index__go { display: none; }
  .index--undated .index__name { order: 1; grid-column: 2; }
  .index--undated .index__price { order: 2; grid-column: 3; align-self: start; }
  .index--undated .index__seats { order: 3; }
}

/* --------------------------------------------------------------- архив */

/* Прошедшие экспедиции - не сноска, а доказательство. У студии бывает одна
   открытая дата на квартал, и архив с фотографиями работает на продажу
   сильнее любого обещания. */
.archive { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 205px), 1fr)); gap: var(--gap); }
.arc { text-decoration: none; display: grid; gap: 8px; align-content: start; }
.arc__img { aspect-ratio: 4 / 5; background: var(--paper-2); overflow: hidden; }
.arc__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
.arc:hover .arc__img img { filter: none; }
/* Экспедиция без снимка: рамка и текст, а не пустой серый прямоугольник -
   заглушка сообщала бы только о том, что фотографии нет. */
.arc--plain { border: 1px solid var(--line); padding: 16px; align-content: end; min-height: 150px; }
.arc__when { font-family: var(--display); font-weight: 600; font-size: 13.5px; color: var(--dim); }
.arc__name { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.05; }

/* ------------------------------------------------------------ фото-полоса */

/* Кадры разной ширины: ритм, которого не даёт сетка одинаковых карточек. */
/* Лента: один ряд равной высоты, сколько бы кадров ни пришло. Разные
   пропорции в ряду давали рваный низ, а колонки фиксированной ширины -
   пустоты по краям. Высота задаётся полосе, кадры режутся по ней. */
/* Кадры фиксированной ширины, а не «сколько влезет»: лента должна быть
   длиннее экрана, иначе мотать нечего и она перестаёт быть лентой. */
/* Высота ряда считается от экрана и от числа рядов. Целиком лента не выше
   78% окна - иначе в три ряда она занимает весь экран, и до текста тура не
   долистать. Ширина кадра - полторы высоты ряда: кадры масштабируются вместе
   с экраном, а не режутся по-разному в разных рядах. */
.strip {
  --rows: 1;
  /* Нижняя граница - на случай окна без высоты (встроенный просмотр,
     печать): иначе ряд схлопывается в ноль и лента исчезает. */
  --row-h: min(clamp(190px, 21vw, 340px), max(90px, calc((78svh - 8px) / var(--rows))));
  display: grid; grid-auto-flow: column;
  grid-template-rows: repeat(var(--rows), var(--row-h));
  grid-auto-columns: calc(var(--row-h) * 1.5); gap: 4px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; cursor: grab;
  /* Тонкая полоса прокрутки: без неё на большом экране не видно, что
     ленту вообще можно мотать. */
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.strip--drag { cursor: grabbing; scroll-snap-type: none; }
.strip--drag img { pointer-events: none; }
.strip > figure { scroll-snap-align: start; }
.strip figure { margin: 0; background: var(--paper-2); overflow: hidden; min-width: 0; }
.strip button {
  display: block; width: 100%; height: 100%; padding: 0; border: 0;
  background: none; cursor: zoom-in;
}
.strip button:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.strip--rows-2 { --rows: 2; --row-h: min(clamp(150px, 16vw, 280px), max(90px, calc((78svh - 8px) / 2))); }
.strip--rows-3 { --rows: 3; --row-h: min(clamp(120px, 12vw, 220px), max(80px, calc((78svh - 12px) / 3))); }

@media (max-width: 760px) {
  /* Палец мотает сам, полоса прокрутки на телефоне только мешает. Ряд на
     телефоне считается от ширины: высота окна там почти не меняется, а
     ширина - от 320 до 430 пикселей. */
  .strip {
    --row-h: min(42vw, 230px, max(90px, calc((70svh - 8px) / var(--rows))));
    grid-auto-columns: calc(var(--row-h) * 1.45);
    scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .strip--rows-2 { --row-h: min(34vw, 190px, max(90px, calc((70svh - 8px) / 2))); }
  .strip--rows-3 { --row-h: min(28vw, 150px, max(80px, calc((70svh - 12px) / 3))); }
  .strip::-webkit-scrollbar { display: none; }
}

/* ---------------------------------------------------------- страница тура */

.tour-head { padding-block: clamp(20px, 3vw, 38px); }
.tour-head h1 { max-width: 13em; }
.tour-head .lede { margin-top: 14px; color: var(--dim); }

/* Экспозиционная этикетка: факты строкой, как подпись под экспонатом. */
.plate {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 20px var(--gap); padding: 18px 0;
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line);
}
/* Подпись сверху, значение под ней: подписи встают в одну линию, и полоса
   читается рядом коротких столбиков, а не чередой «крупное - мелкое». */
.plate__item { display: grid; gap: 5px; align-content: start; min-width: 0; }
.plate__item span {
  font-family: var(--display); font-weight: 600; font-size: 11.5px;
  letter-spacing: .07em; text-transform: uppercase; color: var(--dim);
}
/* Все значения набраны одинаково. Крупный кегль у коротких выделял цену,
   но рядом с фразой «тур на транспорте, с поездками на поездах» полоса
   читалась как два разных списка, поставленных в один ряд. */
.plate__item b {
  font-family: var(--display); font-weight: 700;
  font-size: 16px; line-height: 1.3;
}

.tour-body {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(28px, 4vw, 64px); align-items: start; padding-block: clamp(30px, 4vw, 56px);
}
@media (max-width: 1000px) { .tour-body { grid-template-columns: minmax(0, 1fr); } }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr)); gap: var(--gap); margin-top: 34px; }
.split h3 { margin-bottom: 10px; }
.split ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 15.5px; }
/* Плюс против минуса: в списке «входит» и «оплачивается отдельно» знак сам
   говорит, что к чему. Одинаковая чёрточка у обоих списков заставляла
   вчитываться в заголовок, чтобы понять, какой из них перед тобой. */
.split li { padding-left: 20px; position: relative; color: var(--dim); }
.split li::before {
  content: "+"; position: absolute; left: 0; top: 0;
  font-family: var(--display); font-weight: 800; font-size: 15px;
  /* Жёлтый на светлом не читается - он для плашек и подчёркиваний, не
     для текста (tests/test_brand.py). Плюс отличает вес, не цвет. */
  line-height: 1.55; color: var(--ink);
}
.split--out li::before { content: "−"; color: var(--dim); }
/* Блок «Список» ставит класс прямо на ul, а не на обёртку из двух колонок.
   Без этого правила список разъезжался на две колонки и к нашему плюсу
   добавлялась точка браузера. */
ul.split {
  list-style: none; padding: 0; grid-template-columns: minmax(0, 1fr);
  gap: 7px; margin-top: 12px; font-size: 15.5px;
}
.tour-h + ul.split { margin-top: 12px; }

/* --------------------------------------------------------------- бронь */

/* Форма - то, ради чего страница написана, и она должна читаться как
   предмет, а не как продолжение текста. Раньше её отделяла только волосяная
   линейка сверху: поля - подчёркивания, кнопка - слово со штрихом. По
   отдельности всё верно, вместе - не видно, что это форма. Поэтому у неё
   есть корпус. */
.book {
  position: sticky; top: 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  padding: 20px 20px 22px;
}
@media (max-width: 1000px) { .book { position: static; } }
.book__title { font-family: var(--display); font-weight: 800; font-size: 25px; line-height: 1.05; }
.book__hint { font-size: 14.5px; color: var(--dim); margin: 6px 0 16px; }

/* Внутри формы поля - рамки, а не подчёркивания. Подчёркивание уместно там,
   где поле одно и очевидно; здесь их шесть подряд, и без рамок непонятно,
   куда именно писать. */
.book .field > span { color: var(--ink-2); }
.book .field input, .book .field textarea {
  background: var(--paper); border: 1px solid var(--line); padding: 9px 10px;
}
.book .field input:focus, .book .field textarea:focus {
  border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent);
}
.book .date { background: var(--paper); }

.dates { display: grid; gap: 6px; margin-bottom: 18px; }
.date {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; align-items: baseline;
  border: 1px solid var(--line); padding: 11px 13px; cursor: pointer;
  background: none; font: inherit; color: inherit; text-align: left; width: 100%;
}
.date:hover:not(:disabled) { border-color: var(--accent); }
.date[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--paper-2); }
.date:disabled { cursor: not-allowed; opacity: .65; }
.date__when { font-family: var(--display); font-weight: 800; font-size: 17px; }
.date__price { font-family: var(--display); font-weight: 600; font-size: 15px; }
.date__seats {
  grid-column: 1 / -1; margin-top: 4px;
  font-family: var(--display); font-weight: 700; font-size: 12.5px;
  color: var(--ink); background: var(--accent); padding: 3px 8px;
  justify-self: start;
  /* Плашка не переносится: «осталось 15 / мест» в две строки читается
     как две разные подписи и ломает высоту ряда. */
  white-space: nowrap;
}
.date__seats--none { background: var(--line); color: var(--ink); }

.field { display: grid; gap: 4px; margin-bottom: 12px; }
.field > span { font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--dim); }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: inherit; background: transparent;
  border: 0; border-bottom: 1px solid var(--line); padding: 8px 2px; width: 100%;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--accent); outline: none; }
.field textarea { min-height: 72px; resize: vertical; }
.field--pair { grid-template-columns: minmax(0, 1fr) 84px; gap: 12px; align-items: end; }

/* Кнопка типографическая: слово с подчёркиванием, которое при наведении
   заливается второй краской. Ни заливки по умолчанию, ни стрелки в тексте. */
.btn {
  display: inline-block; font: 800 clamp(17px, 1.8vw, 20px) var(--display);
  color: inherit; background: none; border: 0; padding: 5px 3px; cursor: pointer;
  text-decoration: none; box-shadow: inset 0 -3px 0 var(--accent);
  transition: box-shadow .14s, color .14s;
}
.btn:hover { box-shadow: inset 0 -2.2em 0 var(--accent); color: #111111; }
.fold .btn { color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: inset 0 -3px 0 var(--line); }
.btn--wide { width: 100%; text-align: left; }

/* Единственная сплошная кнопка на сайте. Остальные типографические, и это
   сознательно (docs/design.md): когда залито всё, не выделено ничего.
   Заливка стоит ровно там, ради чего страница существует, - на отправке
   заявки. Буквы на шафрановом графитовые и заданы числом, а не токеном:
   в тёмной теме --ink светлый, и на жёлтом его не прочитать. */
.btn--go {
  background: var(--accent); color: #111111; box-shadow: none;
  text-align: center; padding: 13px 16px; margin-top: 6px;
}
.btn--go:hover { box-shadow: inset 0 0 0 2px #111111; color: #111111; }
.btn--go:disabled { background: var(--line); color: var(--dim); box-shadow: none; }

.note { font-size: 14.5px; line-height: 1.45; margin-top: 12px; }
.note--bad { color: var(--alert); }
.note--good { color: var(--ink); box-shadow: inset 0 -0.7em 0 var(--accent); }
.note--quiet { color: var(--dim); }
.sold { border: 1px solid var(--alert); color: var(--alert); padding: 12px 14px; font-family: var(--display); font-weight: 600; }

/* --------------------------------------------------------------- галерея */

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 225px), 1fr)); gap: 4px; }
.gallery button { padding: 0; border: 0; background: var(--paper-2); cursor: zoom-in; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

.sheet { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; }
.sheet[hidden] { display: none; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(8, 10, 18, .9); }
.sheet__panel {
  position: relative; background: var(--paper); color: var(--ink);
  width: min(760px, calc(100% - 24px)); max-height: calc(100dvh - 40px); overflow: auto; padding: 24px;
}
.sheet__panel--bare { background: none; padding: 0; width: min(1200px, calc(100% - 16px)); }
.sheet__close {
  position: absolute; right: 8px; top: 8px; z-index: 3;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
  width: 36px; height: 36px; cursor: pointer; font: 600 15px var(--display);
}

/* Просмотр фотографии. Стрелки по краям, снимок между ними, подпись и счёт
   под ними. Фон вокруг снимка кликабелен и закрывает просмотр. */
.shot {
  display: grid; grid-template-columns: auto minmax(0, 1fr) 17em auto;
  align-items: center; gap: 10px 16px; width: 100%;
}
/* Описания нет - колонка не занимает место: пустая полоса сбоку сообщает
   только о том, что подпись не заполнена. */
.shot:has(.shot__info[hidden]) { grid-template-columns: auto minmax(0, 1fr) auto; }
.shot--single { grid-template-columns: minmax(0, 1fr) 17em; }
.shot--single:has(.shot__info[hidden]) { grid-template-columns: minmax(0, 1fr); }

/* Что на снимке. Читается рядом с кадром, а не под ним: подпись под
   фотографией на весь экран оказывается ниже линии взгляда. */
.shot__info { align-self: start; padding-top: 4px; max-width: 34ch; }
.shot__info-label {
  font: 600 11px/1 var(--display); letter-spacing: .09em; text-transform: uppercase;
  color: #8c8a83; margin-bottom: 8px;
}
.shot__info .shot__caption { font-size: 15px; line-height: 1.5; color: #e7e4db; }
.shot__frame { display: grid; place-items: center; min-height: 0; }
.shot__frame img {
  max-width: 100%; max-height: calc(100dvh - 140px);
  width: auto; height: auto; display: block;
}
.shot__foot {
  grid-column: 1 / -1; display: flex; justify-content: space-between;
  align-items: baseline; gap: var(--gap); color: #cdcbc3; min-height: 1.2em;
}
.shot__caption { font-size: 14.5px; line-height: 1.45; }
.shot__count { font-family: var(--display); font-weight: 600; font-size: 14px; color: #8c8a83; }
.shot__nav {
  background: rgba(246, 243, 236, .12); color: #fff; border: 0;
  width: 46px; height: 64px; cursor: pointer; font: 400 24px/1 var(--display);
  transition: background .14s;
}
.shot__nav:hover { background: var(--accent); color: #111111; }

@media (max-width: 900px) {
  /* Узко - описание уходит под кадр: колонка в семь знаков не читается. */
  .shot, .shot--single, .shot:has(.shot__info[hidden]) {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .shot__info { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 640px) {
  /* На телефоне стрелки уезжают под снимок двумя равными кнопками: по краям
     они съедали бы ширину, которой и так мало. Пальцем там удобнее листать
     свайпом, но кнопки нужны тем, кто про свайп не догадается. */
  .shot, .shot--single, .shot:has(.shot__info[hidden]) { grid-template-columns: 1fr 1fr; }
  .shot__frame { grid-column: 1 / -1; grid-row: 1; }
  .shot__frame img { max-height: calc(100dvh - 270px); }
  .shot__info { grid-column: 1 / -1; grid-row: 2; }
  .shot__foot { grid-column: 1 / -1; grid-row: 3; }
  .shot__nav { grid-row: 4; width: 100%; height: 54px; background: rgba(246, 243, 236, .16); }
  .shot__nav--prev { grid-column: 1; }
  .shot__nav--next { grid-column: 2; }
}

/* ---------------------------------------------------------------- блоки */

/* Страница, собранная в конструкторе. Каждый блок - полоса во всю ширину со
   своим внутренним отступом: так порядок блоков можно менять как угодно, и
   вертикальный ритм не придётся пересчитывать. */
.blocks { display: block; }
.bl { padding-block: clamp(30px, 4.5vw, 64px); }
.bl + .bl { padding-top: 0; }
/* Тёмная полоса. На старом сайте такие чередовались со светлыми, и без
   этого страница читается как один длинный лист. Цвет - графит из
   бренд-кита (#111111), а не чёрный: гайд разрешает логотип и шафран
   именно на нём. */
.bl--dark {
  background: var(--ink); color: #f3f1ea;
  padding-block: clamp(34px, 5vw, 72px);
}
.bl--dark + .bl--dark { padding-top: 0; }
.bl--dark .lede,
.bl--dark .prose { color: rgba(243, 241, 234, .88); }
.bl--dark h2, .bl--dark h3, .bl--dark .bl__title, .bl--dark .bl__sub { color: #fff; }
/* На графите шафрановый читается (10.8:1) и работает как текст - в отличие
   от светлой темы, где он только заливка. */
.bl--dark .fct__value { color: var(--accent); }
.bl--dark .fct__label,
.bl--dark .head p,
.bl--dark .bl__cap { color: rgba(243, 241, 234, .7); }
.bl--dark .bl__facts { border-top-color: var(--accent); }
.bl--dark .split li::before { background: var(--accent); }
.bl--dark a { color: inherit; }
.bl--dark .head__link:hover { text-decoration-color: var(--accent); }
.bl--dark .faq { border-bottom-color: rgba(243, 241, 234, .18); }
.bl--dark .crd__text, .bl--dark .prs__about { color: rgba(243, 241, 234, .82); }
.bl--dark .prs__role { color: rgba(243, 241, 234, .6); }
.bl--dark .btn { color: #fff; }
.bl--dark .btn:hover { color: #111111; }

/* Обложка блока: фотография во всю ширину, текст поверх неё снизу. */
.bl--cover { padding: 0; position: relative; background: var(--ink); }
.bl--cover .bl__img { margin: 0; }
.bl--cover .bl__img img {
  width: 100%; height: clamp(280px, 46vw, 620px); object-fit: cover; display: block;
}
.bl__over {
  position: absolute; inset: auto 0 0 0; padding: clamp(18px, 3vw, 40px);
  background: linear-gradient(to top, rgba(8, 10, 18, .78), rgba(8, 10, 18, 0));
  color: #fff;
}
.bl--cover-plain { position: static; background: none; color: inherit; padding-block: clamp(30px, 4.5vw, 64px); }
.bl--cover-plain .bl__over { position: static; background: none; color: inherit; padding: 0; }
.bl__title { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 4.4vw, 52px); line-height: 1.02; }
.bl__cap { margin-top: 8px; font-size: 15px; opacity: .88; }

.bl__lead { font-family: var(--display); font-weight: 600; font-size: clamp(19px, 2.4vw, 28px); line-height: 1.3; max-width: 22em; }
.bl__sub { font-family: var(--display); font-weight: 800; font-size: 21px; margin-bottom: 10px; }

/* Две колонки. На телефоне встают друг под друга - иначе каждая шириной
   в семь знаков. */
.bl__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
@media (max-width: 760px) { .bl__cols { grid-template-columns: 1fr; } }

.bl__figure { margin: 0; }
.bl__figure img { width: 100%; height: auto; display: block; }
.bl__figure figcaption { margin-top: 8px; font-size: 14px; color: var(--dim); }
.bl--photo-narrow .bl__figure { max-width: 46em; }

.bl__quote {
  margin: 0; border-left: 3px solid var(--accent); padding-left: clamp(14px, 2vw, 24px);
  max-width: 34em;
}
.bl__quote p { font-family: var(--display); font-weight: 600; font-size: clamp(18px, 2.2vw, 25px); line-height: 1.32; }
.bl__quote footer { margin-top: 10px; font-size: 14.5px; color: var(--dim); }

/* Люди и карточки: одна сетка на двоих, разные подписи. */
.bl__people, .bl__cards {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.prs__img, .crd__img { background: var(--paper-2); overflow: hidden; margin-bottom: 10px; }
.prs__img img, .crd__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.crd__img img { aspect-ratio: 4 / 3; }
.prs__name, .crd__title { font-family: var(--display); font-weight: 800; font-size: 19px; }
.prs__role { font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--dim); margin-top: 2px; }
.prs__about, .crd__text { font-size: 15px; line-height: 1.5; margin-top: 8px; }

/* Числа. Значение крупно, подпись мелко - так его видно, не читая. */
.bl__facts {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  border-top: 2px solid var(--accent); padding-top: 18px;
}
.fct__value { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 3vw, 34px); line-height: 1.05; }
.fct__label { font-size: 14.5px; color: var(--dim); margin-top: 4px; max-width: 18em; }

/* Вопросы: раскрываются щелчком, закрыты по умолчанию. Десять открытых
   ответов подряд - это простыня, ради которой блок и заводили. */
.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary {
  cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 17.5px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: " +"; color: var(--dim); }
.faq[open] summary::after { content: " –"; }
.faq p { margin-top: 8px; line-height: 1.55; max-width: 44em; }

.bl__cta { max-width: 34em; }
.bl__cta h2 { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 3.2vw, 38px); line-height: 1.06; }
.bl__cta .lede { margin-top: 10px; }
.bl__cta p:last-child { margin-top: 16px; }

/* Форма записи у тура с блоками: не липкая колонка, а полоса после всего
   описания. Липкой ей быть незачем - слева от неё больше ничего нет. */
.bl--book .book { position: static; }

/* Врезка со страницей на главной: заголовок, короткий текст, ссылка. */
.bl--teaser { padding-block: clamp(30px, 4.5vw, 64px); }
/* Первый экран внутри блоков не нуждается в отступах полосы. */
.blocks > .fold { margin: 0; }

.bl__links { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 17px; }

/* --------------------------------------------------------------- подвал */

.foot { background: var(--ink); color: #cdcbc3; padding-block: clamp(34px, 5vw, 64px); margin-top: clamp(40px, 6vw, 80px); }
.foot__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); gap: var(--gap); }
.foot__title { font-family: var(--display); font-weight: 800; font-size: 17px; color: #fff; margin-bottom: 10px; }
.foot__text { font-size: 14.5px; line-height: 1.55; max-width: 28em; }
.foot__text--small { font-size: 13px; color: #8c8a83; }
.foot__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-family: var(--display); font-weight: 600; font-size: 16px; }
.foot__links a { text-decoration-color: #4b4e5e; }
.foot__links a:hover { text-decoration-color: var(--accent); }

/* --------------------------------------------------------------- прочее */

.loading { padding-block: 90px; color: var(--dim); }
.empty { border: 1px solid var(--line); padding: 24px; color: var(--dim); max-width: 34em; }
.empty p:first-child { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.chips a {
  font: 600 15px var(--display); text-decoration: none; color: var(--dim);
  border: 1px solid var(--line); padding: 5px 13px;
}
.chips a[aria-current] { border-color: var(--accent); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* --------------------------------------------------------- призыв */

/* Последний экран главной: приглашение, а не ещё один список. Кнопка стоит
   рядом с текстом, а на узком экране - под ним. */
.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 22px var(--gap); padding: clamp(26px, 3.4vw, 40px) 0;
  border-top: 2px solid var(--ink);
}
.cta__text { max-width: 34em; }
.cta__text .lede { margin-top: 10px; }
.btn--big { font-size: 17px; padding: 15px 26px; }

/* Абзацы рассказа «о нас» на главной: тот же ритм, что и в статье. */
.prose__p { margin-top: 14px; max-width: 34em; }
.prose__p:first-of-type { margin-top: 0; }

/* --------------------------------------------------- ингредиенты */

/* Превью крупные: на старом сайте круг был 150 пикселей, и разобрать в нём
   было нечего - подпись работала, картинка нет. */
.bl__circles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(24px, 3vw, 44px) var(--gap); margin-top: clamp(24px, 3vw, 44px);
}
.circ { margin: 0; display: grid; gap: 14px; justify-items: center; text-align: center; }
.circ__img {
  display: block; width: clamp(150px, 17vw, 240px); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden; background: var(--paper-2);
}
.circ__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.circ figcaption {
  font-family: var(--display); font-weight: 700; font-size: 15px;
  line-height: 1.35; max-width: 15em;
}
.head--mid { justify-content: center; text-align: center; }

/* Заголовки внутри рассказа о туре: тот же ритм, что у полей, - иначе текст
   из блоков читался бы как отдельная страница, вклеенная в середину. */
.tour-h { margin-top: 34px; }
.tour-h + .prose, .tour-h + ul { margin-top: 12px; }
.tour-body .prose + .prose { margin-top: 14px; }
.tour-body .bl--cards, .tour-body .bl--people { padding-block: 24px 0; }
.tour-body .bl--cards .wrap, .tour-body .bl--people .wrap { padding: 0; }

/* Текст блоков на странице уже лежит внутри .wrap, второй отступ по бокам
   сдвинул бы его относительно заголовка. */
.narrow--flush { margin-left: 0; padding-left: 0; padding-right: 0; }

/* Форма, к которой только что перешли по кнопке «Записаться». Подсветка
   короткая: это ответ на нажатие, а не украшение. */
.book--called { animation: book-call 1.4s ease-out; }
@keyframes book-call {
  0%, 60% { box-shadow: 0 0 0 3px var(--accent); }
  100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}
@media (prefers-reduced-motion: reduce) { .book--called { animation: none; } }

/* Цена за группу в списке: приписка мелким, чтобы не читалось как цена
   с человека - разница в пятнадцать раз. */
.index__price small { display: block; font: 400 12px/1.3 var(--text); color: var(--dim); }

/* Архив на главной: остальные поездки по нажатию. */
.archive__more { margin-top: 18px; }

.book__channel { margin-top: 10px; font-size: 14px; }

/* Полоса с ценой и кнопкой снизу экрана - только на телефоне: там форма
   записи уезжает под двадцать экранов текста. */
.dock { display: none; }
@media (max-width: 1000px) {
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px var(--edge) calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--paper); border-top: 2px solid var(--ink);
  }
  .dock__price { display: grid; line-height: 1.15; }
  .dock__price b { font-family: var(--display); font-weight: 800; font-size: 17px; }
  .dock__price span { font-size: 12px; color: var(--dim); }
  .dock .btn { padding: 11px 18px; }
  /* Под полосой должно оставаться место: иначе она накрывает последнюю
     строку страницы и кнопку отправки формы. */
  body { padding-bottom: 72px; }
}

/* ------------------------------------------------ городские экскурсии */

/* Раскладка прежней страницы: слева четыре кадра квадратом, справа
   рассказ. Своё здесь - палитра и шрифты, раскладку узнают. */
.section--head { padding-bottom: 0; }
.excursions { padding-block: clamp(30px, 4vw, 60px); }
.excursions + .excursions { padding-top: 0; }
.excursions__group {
  font-size: clamp(28px, 4vw, 48px); padding-bottom: 14px; margin-bottom: 8px;
  border-bottom: 4px solid var(--accent);
}
.excursions__list { display: grid; }
.excursion {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(20px, 3.4vw, 56px); align-items: center;
  padding-block: clamp(26px, 3.4vw, 48px); border-bottom: 1px solid var(--line);
}
.excursion--text { grid-template-columns: minmax(0, 1fr); }
.excursion__photos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  align-self: start;
}
.excursion__photos button {
  display: block; padding: 0; border: 0; background: var(--paper-2);
  cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden;
}
.excursion__photos img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.excursion__photos button:hover img { transform: scale(1.03); }
.excursion__text { min-width: 0; }
.excursion h3 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.05; }
.excursion h3 a { text-decoration: none; }
.excursion h3 a:hover { box-shadow: inset 0 -4px 0 var(--accent); }
.excursion__tag { color: var(--dim); margin: 8px 0 0; }
.excursion__story { margin-top: 16px; max-width: 34em; }
.excursion__story p { margin: 0 0 .7em; line-height: 1.6; }
.excursion__facts {
  display: grid; gap: 8px; margin: 18px 0 0; padding-top: 14px;
  border-top: 2px solid var(--ink); max-width: 34em;
}
.excursion__facts div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 12px; }
.excursion__facts dt {
  font-family: var(--display); font-weight: 600; font-size: 11.5px; padding-top: 3px;
  letter-spacing: .07em; text-transform: uppercase; color: var(--dim);
}
.excursion__facts dd { margin: 0; font-size: 15.5px; line-height: 1.45; }
.excursion__next { margin: 16px 0 0; font-size: 15px; }
.excursion__go {
  display: inline-block; margin-top: 18px;
  font-family: var(--display); font-weight: 700; font-size: 15px;
  color: var(--ink); text-decoration: none;
  box-shadow: inset 0 -3px 0 var(--accent);
}
.excursion__go:hover { box-shadow: inset 0 -1.2em 0 var(--accent); }
.excursions__channel { padding-top: 0; }

@media (max-width: 860px) {
  /* В одну колонку «Посмотреть» одной экскурсии упиралось в фото
     следующей, и они читались одним куском. Воздух и черта графитом
     вместо бледной линии разделяют их явно. */
  .excursion {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 34px 52px;
    border-bottom: 2px solid var(--ink);
  }
  .excursion:last-child { border-bottom: 0; }
  .excursion__facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .excursion__photos img { transition: none; } }

/* Рассказ из нескольких абзацев на странице тура: первый - вводный. */
.story-rest { margin-top: 14px; }
.story-rest p { margin: 0 0 .8em; }

/* ------------------------------------------ страница из блоков: поток */

/* Текст колонкой по левому краю полосы: широкие блоки выровнены по нему
   же, и страница читается одной линией, а не столбцом посередине. */
.bl--flow .flow { max-width: 44em; }
/* Вводный абзац страницы - крупнее, голосом заголовка. */
.bl--flow .flow > .lede:first-child {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(20px, 2.4vw, 28px); line-height: 1.32; max-width: 27em;
}
/* «Блок после блока без отступа» годится внутри одной темы. После тёмной
   обложки и перед новым разделом с заголовком нужен воздух, иначе текст
   прилипает к фотографии, а заголовок - к портретам. */
.bl--dark + .bl,
.bl + .bl--heading,
.bl + .bl--directions,
.bl + .bl--archive,
.bl + .bl--contacts,
.bl + .bl--flow:has(> .wrap > .flow > .tour-h:first-child) {
  padding-top: clamp(44px, 6vw, 92px);
}

/* Карточки без картинки - это тезисы. Шафрановая черта сверху держит их
   в одну строку, как в описи, а не россыпью мелкого текста. */
.crd--text { border-top: 4px solid var(--accent); padding-top: 16px; }
.crd--text .crd__title { font-size: 21px; line-height: 1.15; }
.crd--text .crd__text { font-size: 16px; line-height: 1.55; color: var(--ink-2); margin-top: 10px; }

/* Люди: портрет не шире 340px. Двое на всю ширину экрана давали лица
   высотой в экран, и до подписей надо было листать. */
.bl--people .bl__people { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 340px)); }
.bl--people .prs__name { font-size: 24px; margin-top: 6px; }
.bl--people .prs__role { font-size: 15px; }

/* Куда мы ездим: разделы со снимком и числом маршрутов. */
.dirs {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}
.dir { display: grid; gap: 4px; align-content: start; text-decoration: none; color: var(--ink); }
.dir__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); margin-bottom: 8px; }
.dir__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.dir:hover .dir__img img { transform: scale(1.03); }
.dir__title { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.1; justify-self: start; }
.dir:hover .dir__title { box-shadow: inset 0 -4px 0 var(--accent); }
.dir__count { color: var(--dim); font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .dir__img img { transition: none; } }
/* Заголовок над вопросами - с отступом: вплотную первый вопрос читался
   его подзаголовком. */
.flow > .tour-h + .faq { margin-top: 14px; border-top: 1px solid var(--line); }
.flow > .tour-h:first-child { margin-top: 0; }

/* «Написать нам»: слева как связаться, справа форма. */
.contact-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(28px, 4vw, 64px); align-items: start; margin-top: 18px;
}
.contact-layout .lede { max-width: 30em; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } }
