/* =========================================================================
   ГОРОДЕЦКИЙ ПРЯНИК — Большая Покровская, 12, Нижний Новгород
   Демо-лендинг. Метафора: печатный пряник — всё «отпечатывается» с доски.

   Оглавление
   ---------------------------------------------------------------------
   [A] Токены: палитра, шрифты, размеры, тени
   [B] Сброс и база
   [C] Типографика и служебные классы
   [D] Графический язык: купавка, резной бордюр, текстуры, рельеф
   [E] Кнопки, ссылки, рубрики
   [F] Курсор
   [00] Прелоадер
   [01] Шапка
   [02] Hero
   [03] Бегущая строка вкусов
   [04] Печатный пряник (pinned)
   [05] Пряничная карта России
   [06] Витрина вкусов
   [07] Дегустация
   [08] Не только пряники (бенто)
   [09] Дом XVIII века
   [10] Галерея + лайтбокс
   [11] Хозяйки лавки
   [12] Отзывы 5.0
   [13] Конструктор гостинца
   [14] Мелочи, которые важны
   [15] Как дойти
   [16] Футер
   [Z] Адаптив и prefers-reduced-motion
   ========================================================================= */

/* =========================================================================
   [A] ТОКЕНЫ
   ========================================================================= */

:root {
  /* Палитра — из городецкой росписи и интерьера лавки */
  --dough: #efe1c8; /* пряничное тесто — основной фон */
  --glaze: #fbf6ec; /* белая глазурь — светлые плашки */
  --soot: #17110c; /* печная сажа — тёмные секции, текст */
  --gorod-red: #b8332a; /* городецкий красный — CTA, акцент */
  --ochre: #d79b36; /* медовая охра — подсветка, цифры */
  --leaf: #2e5b44; /* зелёный лист */
  --cobalt: #1e4c7a; /* гжельский кобальт — редкий контрапункт */
  --crumb: #a88763; /* пряничная крошка — линии, подписи */

  /* Производные — считаем один раз, чтобы не плодить magic-числа */
  --dough-deep: #e2cfae; /* тесто потемнее — границы, вложенные плашки */
  --soot-soft: #241a12; /* сажа помягче — карточки на тёмном */
  --soot-line: rgba(239, 225, 200, 0.16); /* линия на тёмном */
  --dough-line: rgba(23, 17, 12, 0.14); /* линия на светлом */
  --crumb-deep: #7d6244; /* крошка потемнее — текст-подпись на тесте (контраст 4.6:1) */
  /* Охра хороша на саже (7:1), но на тесте даёт всего 2:1. Для акцентного
     текста на светлом берём её тёмный вариант — 4.6:1 по тесту. */
  --accent-ink: #8a5a15;

  /* Текст: держим контраст ≥ 4.5:1 к своему фону */
  --ink: var(--soot); /* по тесту: 13.9:1 */
  --ink-mute: #4e3d2c; /* по тесту: 7.4:1 */
  --ink-soft: #6b5741; /* по тесту: 4.8:1 — минимум для подписей */
  --ink-inv: #f3e8d5; /* по саже: 13.2:1 */
  --ink-inv-mute: #c3b096; /* по саже: 8.1:1 */
  --ink-inv-soft: #9d876c; /* по саже: 5.2:1 — минимум для подписей */

  /* Шрифты */
  --font-display: 'Prata', 'Times New Roman', serif;
  --font-accent: 'Yeseva One', 'Georgia', serif;
  --font-text: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Размеры */
  --h1: clamp(44px, 7vw, 104px);
  --h2: clamp(32px, 4.4vw, 68px);
  --h3: clamp(22px, 2.2vw, 34px);
  --body: clamp(16px, 1.15vw, 18px);
  --small: clamp(13px, 0.95vw, 15px);

  /* Сетка */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 9vw, 148px);

  /* Скругления — намеренно скупые: 2–6px, «резьба по дереву», не «пилюли» */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 8px;

  /* Тени — тёплые, а не серые */
  --sh-soft: 0 2px 10px rgba(60, 40, 20, 0.08);
  --sh-lift: 0 18px 42px -16px rgba(60, 40, 20, 0.36);
  --sh-deep: 0 32px 70px -22px rgba(23, 17, 12, 0.5);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --header-h: 76px;
}

/* =========================================================================
   [B] СБРОС И БАЗА
   ========================================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Lenis сам управляет скроллом — родной smooth ему мешает */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--dough);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--body);
  font-weight: 400;
  line-height: 1.65;
  /* Ловушка горизонтального скролла: любой вылет за 100vw режем здесь */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* Тёмные секции переключают токены текста — не переопределяем цвет в каждом правиле */
.is-dark {
  background: var(--soot);
  color: var(--ink-inv);
  --ink: var(--ink-inv);
  --ink-mute: var(--ink-inv-mute);
  --ink-soft: var(--ink-inv-soft);
  --dough-line: var(--soot-line);
  --crumb-deep: var(--ink-inv-soft);
  --accent-ink: var(--ochre); /* на саже охра читается свободно */
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section {
  position: relative;
}

.section-pad {
  padding-block: var(--section-y);
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 200;
  background: var(--gorod-red);
  color: var(--glaze);
  padding: 12px 20px;
  border-radius: var(--r-sm);
}
.skip-link:focus {
  top: 12px;
}

/* =========================================================================
   [C] ТИПОГРАФИКА
   ========================================================================= */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.06;
  text-wrap: balance;
}

h1 {
  font-family: var(--font-display);
  font-size: var(--h1);
  line-height: 1.02;
}

h2 {
  font-family: var(--font-display);
  font-size: var(--h2);
}

h3 {
  font-family: var(--font-display);
  font-size: var(--h3);
  line-height: 1.2;
}

p {
  margin: 0;
  text-wrap: pretty;
}

/* Рубрика над заголовком */
.rubric {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--crumb-deep);
  margin-bottom: clamp(16px, 2vw, 26px);
}

.rubric .kupavka-mark {
  width: 13px;
  height: 13px;
  flex: none;
  color: var(--accent-ink);
}

/* Номер секции — крупная цифра Yeseva */
.sec-num {
  font-family: var(--font-accent);
  font-size: clamp(13px, 1vw, 15px);
  letter-spacing: 0.06em;
  color: var(--accent-ink);
}

.lead {
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.55;
  color: var(--ink-mute);
}

.note {
  font-size: var(--small);
  line-height: 1.5;
  color: var(--ink-soft);
}

.num {
  font-family: var(--font-accent);
  font-variant-numeric: lining-nums tabular-nums;
}

/* =========================================================================
   [D] ГРАФИЧЕСКИЙ ЯЗЫК
   ========================================================================= */

/* --- Рельефный текст: заголовок вдавлен в тесто ------------------------- */
/* Светлая тень сверху-слева + тёмная снизу-справа = оттиск. На тёмных
   секциях инвертируем: там «вдавлено» читается наоборот.                   */
.imprinted {
  text-shadow:
    -1px -1px 0 rgba(255, 252, 244, 0.6),
    1px 1px 0 rgba(23, 17, 12, 0.22),
    2px 3px 6px rgba(23, 17, 12, 0.1);
}

.is-dark .imprinted {
  text-shadow:
    -1px -1px 0 rgba(0, 0, 0, 0.55),
    1px 1px 0 rgba(215, 155, 54, 0.22),
    0 4px 18px rgba(0, 0, 0, 0.5);
}

/* --- Оттиск-раскрытие заголовков ---------------------------------------- */
/* JS режет текст на слова в .word > .word-in. Стартовое состояние держим в
   CSS, чтобы не мигало до инициализации GSAP.                              */
.reveal-imprint {
  --reveal-blur: 6px;
}

.reveal-imprint .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* запас под свисающие элементы букв (р, у, д) — иначе overflow их режет */
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.reveal-imprint .word-in {
  display: inline-block;
  will-change: transform, filter, opacity;
}

.js .reveal-imprint:not(.is-revealed) .word-in {
  transform: translateY(105%);
  filter: blur(var(--reveal-blur));
  opacity: 0;
}

/* --- Fade-up для блоков -------------------------------------------------- */
.js .fade-up:not(.is-in) {
  opacity: 0;
  transform: translateY(40px);
}

/* --- Резной бордюр между секциями --------------------------------------- */
/* Повторяющаяся SVG-полоса; JS чуть двигает background-position по X.      */
/* Мотив: тонкий стебель — точка — лист — розетка — лист — точка — стебель */
.carved-rule {
  height: 24px;
  /* Вьющийся стебель с листьями и редкой розеткой — как на резной прялке */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='24' viewBox='0 0 200 24'%3E%3Cg fill='none' stroke='%23a88763' stroke-width='1' stroke-linecap='round'%3E%3Cpath d='M0 12c16 0 16-7 32-7s16 7 32 7 16-7 32-7 16 7 32 7 16-7 32-7 16 7 32 7 16-7 8-7'/%3E%3Cpath d='M32 5c-5-1-8-4-8-8M96 5c-5-1-8-4-8-8M160 5c-5-1-8-4-8-8'/%3E%3Cpath d='M64 19c5 1 8 4 8 8M128 19c5 1 8 4 8 8'/%3E%3C/g%3E%3Cg fill='%23a88763'%3E%3Ccircle cx='32' cy='5' r='1.8'/%3E%3Ccircle cx='96' cy='5' r='1.8'/%3E%3Ccircle cx='160' cy='5' r='1.8'/%3E%3Ccircle cx='64' cy='19' r='1.4'/%3E%3Ccircle cx='128' cy='19' r='1.4'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.5;
  will-change: background-position;
}

.is-dark .carved-rule,
.carved-rule.on-dark {
  filter: invert(1) sepia(1) saturate(2.2) hue-rotate(2deg);
  opacity: 0.42;
}

/* --- Текстуры ------------------------------------------------------------ */
/* Шум поверх тёмных секций (feTurbulence, ~0.04) и «пористость» на светлых. */
.is-dark::after,
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
}

.grain::after {
  opacity: 0.035;
  mix-blend-mode: multiply;
}

/* Контент тёмных секций поднимаем над зерном */
.is-dark > * {
  position: relative;
  z-index: 2;
}

/* Древесное волокно — очень тонкие горизонтальные линии */
.woodgrain {
  background-image:
    repeating-linear-gradient(
      92deg,
      rgba(215, 155, 54, 0.05) 0 1px,
      transparent 1px 7px
    ),
    repeating-linear-gradient(
      88deg,
      rgba(0, 0, 0, 0.16) 0 2px,
      transparent 2px 23px
    );
}

/* --- Купавка ------------------------------------------------------------- */
.kupavka-mark {
  display: inline-block;
  color: var(--ochre);
  flex: none;
}

/* =========================================================================
   [E] КНОПКИ И ССЫЛКИ
   ========================================================================= */

.btn {
  --btn-bg: var(--gorod-red);
  --btn-fg: var(--glaze);
  --btn-bd: var(--gorod-red);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  min-height: 54px;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out),
    background-color 0.3s ease,
    color 0.3s ease;
}

/* Заливка «наливается» снизу — как глазурь */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--soot);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
  z-index: 0;
}

.btn > * {
  position: relative;
  z-index: 1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-lift);
}

.btn:hover::before {
  transform: translateY(0);
}

.btn:active {
  transform: translateY(0);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--glaze);
  --btn-bd: rgba(251, 246, 236, 0.55);
}

.btn--ghost:hover {
  --btn-bd: var(--glaze);
}

.btn--ink {
  --btn-bg: transparent;
  --btn-fg: var(--soot);
  --btn-bd: rgba(23, 17, 12, 0.3);
}

.btn--ink::before {
  background: var(--soot);
}

.btn--ink:hover {
  --btn-fg: var(--glaze);
  --btn-bd: var(--soot);
}

/* Текстовая ссылка с подчёркиванием, которое «прорезается» */
.link-carve {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding-bottom: 3px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.4s var(--ease-out);
}

.link-carve:hover {
  background-size: 0 1px;
  background-position: 100% 100%;
}

/* =========================================================================
   [F] КУРСОР — кружок-купавка, только desktop с точным указателем
   ========================================================================= */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1.5px solid var(--gorod-red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9000;
  opacity: 0;
  display: none;
  will-change: transform;
}

.cursor__dot {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 4px;
  height: 4px;
  background: var(--gorod-red);
  border-radius: 50%;
  transition: opacity 0.25s ease;
}

.cursor__petal {
  position: absolute;
  inset: 3px;
  color: var(--gorod-red);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor.is-active .cursor__dot {
  opacity: 0;
}

.cursor.is-active .cursor__petal {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor {
    display: block;
  }
}

/* Общая «шапка секции» */
.sec-head {
  margin-bottom: clamp(36px, 5vw, 72px);
}

.sec-head--split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
}

.sec-head__aside {
  padding-bottom: 0.5em;
  border-left: 1px solid var(--dough-line);
  padding-left: clamp(16px, 2vw, 28px);
}

/* Круглая кнопка со стрелкой */
.round-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s var(--ease-out);
}

.round-btn:hover {
  background: var(--gorod-red);
  border-color: var(--gorod-red);
  color: var(--glaze);
  transform: scale(1.06);
}

.round-btn:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
  background: none;
}

.ic-arrow {
  width: 26px;
  height: 13px;
}

.ic-arrow--flip {
  transform: scaleX(-1);
}

.round-btn svg {
  width: 22px;
  height: 22px;
}

.round-btn .ic-arrow {
  width: 24px;
  height: 12px;
}

/* =========================================================================
   [00] ПРЕЛОАДЕР «ОТТИСК»
   ========================================================================= */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--dough);
  cursor: pointer;
}

.preloader.is-done {
  pointer-events: none;
}

.preloader__inner {
  display: grid;
  justify-items: center;
  gap: clamp(20px, 3vw, 34px);
}

.preloader__mark {
  width: clamp(96px, 14vw, 168px);
  height: clamp(96px, 14vw, 168px);
  color: var(--gorod-red);
}

/* Обводка прорисовывается: stroke-dashoffset гоняет JS/CSS-анимация */
.preloader__mark .kupavka-petals ellipse,
.preloader__mark .kupavka-body,
.preloader__mark .kupavka-core,
.preloader__mark .kupavka-bracket {
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: draw 1s var(--ease-out) forwards;
}

.preloader__mark .kupavka-body {
  animation-delay: 0.1s;
}
.preloader__mark .kupavka-core {
  animation-delay: 0.28s;
}
.preloader__mark .kupavka-bracket {
  animation-delay: 0.4s;
}
.preloader__mark .kupavka-dots {
  opacity: 0;
  animation: fadeIn 0.4s ease 0.7s forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.preloader__name {
  display: flex;
  gap: 0.4em;
  font-family: var(--font-display);
  font-size: clamp(24px, 4.4vw, 52px);
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px var(--crumb-deep);
}

.preloader__name span {
  opacity: 0;
  transform: translateY(10px);
  animation: nameIn 0.6s var(--ease-out) forwards;
}
.preloader__name span:nth-child(1) {
  animation-delay: 0.5s;
}
.preloader__name span:nth-child(2) {
  animation-delay: 0.62s;
}

@keyframes nameIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.preloader__skip {
  position: absolute;
  right: var(--gutter);
  bottom: 28px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.preloader__skip:hover {
  color: var(--gorod-red);
}

/* =========================================================================
   [01] ШАПКА
   ========================================================================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* Выше полноэкранного меню: иначе оно накрывает собственную кнопку закрытия */
  z-index: 140;
  color: var(--glaze);
  transition: color 0.4s ease;
}

/* Меню открывается на тесте — значит, шапка должна стать тёмной */
.header.is-menu-open {
  color: var(--ink);
}

/* «Отпечатывается» на тесте при скролле */
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--dough);
  opacity: 0;
  transform: translateY(-100%);
  transition:
    opacity 0.45s ease,
    transform 0.45s var(--ease-out);
}

.header.is-stuck {
  color: var(--ink);
}

.header.is-stuck::before {
  opacity: 1;
  transform: translateY(0);
}

.header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
  min-height: var(--header-h);
}

.header__rule {
  position: relative;
  z-index: 1;
  height: 14px;
  opacity: 0;
  transform: scaleX(0.8);
  transform-origin: center;
  transition:
    opacity 0.5s ease,
    transform 0.6s var(--ease-out);
}

.header.is-stuck .header__rule {
  opacity: 0.5;
  transform: scaleX(1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand__mark {
  width: 34px;
  height: 34px;
  color: var(--gorod-red);
  transition: transform 0.6s var(--ease-out);
}

.brand:hover .brand__mark {
  transform: rotate(45deg);
}

.brand__text {
  display: grid;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.3vw, 18px);
  letter-spacing: 0.01em;
}

.brand__sub {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.68;
}

.nav__list {
  display: flex;
  gap: clamp(12px, 1.8vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.nav__list a {
  position: relative;
  padding: 6px 2px;
  opacity: 0.88;
  transition: opacity 0.25s ease;
}

.nav__list a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.nav__list a:hover {
  opacity: 1;
}

.nav__list a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header__side {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 22px);
  flex: none;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  white-space: nowrap;
}

.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 0 currentColor;
  flex: none;
}

.status.is-open .status__dot {
  background: #4c9a6b;
  animation: pulseDot 2.4s ease-in-out infinite;
}

.status.is-closed .status__dot {
  background: var(--gorod-red);
  animation: none;
}

@keyframes pulseDot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(76, 154, 107, 0.55);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(76, 154, 107, 0);
  }
}

.status--inline {
  display: inline-flex;
  margin-left: 10px;
  padding: 3px 10px;
  border: 1px solid var(--dough-line);
  border-radius: 999px;
  font-size: 12px;
}

.header__tel {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  flex: none;
}

.burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out);
}

.burger span:nth-child(1) {
  top: 18px;
}
.burger span:nth-child(2) {
  top: 25px;
}

.burger[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}
.burger[aria-expanded='true'] span:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* =========================================================================
   [02] HERO
   ========================================================================= */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: var(--glaze);
  background: var(--soot);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
  will-change: transform;
  /* Ken Burns: 12 с туда-обратно, без рывка на стыке */
  animation: kenburns 24s var(--ease-in-out) infinite alternate;
}

@keyframes kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 17, 12, 0.62) 0%, rgba(23, 17, 12, 0.16) 34%, rgba(23, 17, 12, 0.86) 100%),
    radial-gradient(120% 80% at 20% 90%, rgba(23, 17, 12, 0.7), transparent 60%);
}

.hero__body {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: clamp(38px, 6vw, 76px);
  max-width: min(100%, 1280px);
}

.rubric--light {
  color: rgba(251, 246, 236, 0.72);
}

.hero__title {
  max-width: 15ch;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.5);
}

.hero__lead {
  margin-top: clamp(18px, 2.4vw, 30px);
  max-width: 54ch;
  font-size: clamp(16px, 1.32vw, 20px);
  line-height: 1.6;
  color: rgba(251, 246, 236, 0.86);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(26px, 3.4vw, 40px);
}

/* --- Лента фактов --------------------------------------------------------- */
.facts {
  position: relative;
  z-index: 2;
  background: rgba(23, 17, 12, 0.72);
  backdrop-filter: blur(2px);
  border-top: 1px solid rgba(251, 246, 236, 0.14);
}

.facts__rule {
  height: 16px;
  opacity: 0.35;
}

.facts__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(8px, 2vw, 28px);
  margin: 0;
  padding-block: clamp(14px, 1.8vw, 22px);
  list-style: none;
}

.facts__item {
  display: grid;
  gap: 2px;
  text-align: center;
  padding-inline: 6px;
  border-left: 1px solid rgba(251, 246, 236, 0.14);
}

.facts__item:first-child {
  border-left: 0;
}

.facts__num {
  font-size: clamp(17px, 1.9vw, 26px);
  line-height: 1.1;
  color: var(--ochre);
  white-space: nowrap;
}

.facts__label {
  font-size: clamp(10px, 0.85vw, 12px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(251, 246, 236, 0.62);
}

/* =========================================================================
   [03] БЕГУЩАЯ СТРОКА ВКУСОВ
   ========================================================================= */

.marquee {
  padding-block: clamp(24px, 3.4vw, 44px);
  overflow: hidden;
}

.marquee__row {
  display: flex;
  overflow: hidden;
  padding-block: clamp(4px, 0.6vw, 10px);
}

.marquee__track {
  display: flex;
  flex: none;
  will-change: transform;
}

.marquee__set {
  display: inline-flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 40px);
  padding-right: clamp(18px, 2.4vw, 40px);
  flex: none;
}

.marquee__word {
  font-family: var(--font-accent);
  font-size: clamp(28px, 5.2vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink-inv);
  white-space: nowrap;
  transition: color 0.3s ease;
  cursor: default;
}

.marquee__word:hover {
  color: var(--ochre);
}

/* Второй ряд — «выбитый» контуром. Заливку не убираем в ноль: совсем
   прозрачный текст не проходит по контрасту, а так остаётся 4,5:1. */
.marquee__row--alt .marquee__word {
  color: rgba(243, 232, 213, 0.52);
  -webkit-text-stroke: 1.2px rgba(243, 232, 213, 0.8);
}

.marquee__row--alt .marquee__word:hover {
  color: var(--ochre);
  -webkit-text-stroke: 1px transparent;
}

.marquee__sep {
  width: clamp(14px, 1.6vw, 22px);
  height: clamp(14px, 1.6vw, 22px);
  flex: none;
  color: var(--gorod-red);
}

/* =========================================================================
   [04] ПЕЧАТНЫЙ ПРЯНИК — pinned-сцена
   Прилипание делает CSS (sticky), а раскадровку — ScrollTrigger scrub.
   Так layout не зависит от pin-spacer и не ломается на мобильном.
   ========================================================================= */

.press {
  height: 250vh;
  background: var(--soot);
}

.press__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.press__grid {
  position: relative; /* якорь для индикатора прогресса */
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: center;
  width: 100%;
}

.press__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 86px);
  line-height: 1;
  margin-bottom: clamp(20px, 3vw, 34px);
}

.press__lines {
  position: relative;
  min-height: 7.5em;
}

.press__line {
  position: absolute;
  inset: 0;
  font-size: clamp(17px, 1.5vw, 23px);
  line-height: 1.5;
  max-width: 30ch;
  color: var(--ink-inv-mute);
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.45s ease,
    transform 0.5s var(--ease-out);
  pointer-events: none;
}

.press__line.is-on {
  opacity: 1;
  transform: translateY(0);
}

/* --- Сцена: тесто, доска, оттиск ----------------------------------------- */
.press__scene {
  position: relative;
  aspect-ratio: 1 / 1;
  width: min(100%, 62vh);
  margin-inline: auto;
  display: grid;
  place-items: center;
}

.press__shadow {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 78%;
  height: 78%;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.75), transparent 72%);
  opacity: 0.25;
  filter: blur(18px);
  will-change: opacity, transform;
}

.press__dough {
  position: relative;
  width: 74%;
  aspect-ratio: 1 / 1;
  border-radius: 46% 54% 52% 48% / 50% 48% 52% 50%;
  background: radial-gradient(72% 72% at 36% 30%, #f5e8cd 0%, #e6cfa6 46%, #cbae7e 100%);
  box-shadow:
    inset 0 -14px 30px rgba(120, 84, 40, 0.34),
    inset 0 12px 26px rgba(255, 250, 236, 0.55),
    0 24px 50px -18px rgba(0, 0, 0, 0.6);
  will-change: transform, filter;
}

/* Пористость теста */
.press__dough::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23d)'/%3E%3C/svg%3E");
  opacity: 0.13;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Выпекание: тёплый умножающий слой поверх теста. Одним фильтром такого
   насыщенного пряничного цвета не добиться — нужен именно красящий слой. */
.press__bake {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(68% 68% at 38% 32%, #d8a45c 0%, #b0762f 52%, #7c4a18 100%);
  mix-blend-mode: multiply;
  opacity: 0;
  pointer-events: none;
}

/* Румяная кромка — проступает в фазе «выпекания» */
.press__crust {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 6px rgba(150, 96, 36, 0.5),
    inset 0 0 34px 10px rgba(126, 74, 26, 0.45);
  opacity: 0;
  pointer-events: none;
}

.press__imprint {
  position: absolute;
  inset: 11%;
  display: grid;
  place-items: center;
  /* Раскрывается сверху вниз */
  clip-path: inset(0 0 100% 0);
}

/* Углубление: сама бороздка тёмная, снизу — светлая фаска (свет сверху-слева),
   сверху — мягкая тень. Без этой пары узор читается как рисунок, а не оттиск. */
.press__imprint svg {
  width: 100%;
  height: 100%;
  color: rgba(92, 55, 18, 0.92);
  filter:
    drop-shadow(0 2px 0 rgba(255, 250, 236, 0.9))
    drop-shadow(0 -1.5px 1px rgba(74, 43, 12, 0.75))
    drop-shadow(0 3px 4px rgba(92, 55, 18, 0.35));
}

/* --- Доска ----------------------------------------------------------------- */
.press__board {
  position: absolute;
  inset: 6%;
  display: grid;
  place-items: center;
  will-change: transform, opacity;
}

.press__board-face {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(93deg, rgba(0, 0, 0, 0.16) 0 2px, transparent 2px 15px),
    repeating-linear-gradient(87deg, rgba(255, 226, 176, 0.07) 0 1px, transparent 1px 8px),
    linear-gradient(158deg, #86592f 0%, #63401f 48%, #46290f 100%);
  box-shadow:
    /* фаска по краю доски */
    inset 0 3px 0 rgba(255, 216, 162, 0.32),
    inset 3px 0 0 rgba(255, 216, 162, 0.14),
    inset -3px 0 0 rgba(0, 0, 0, 0.4),
    inset 0 -5px 0 rgba(0, 0, 0, 0.55),
    inset 0 0 60px rgba(0, 0, 0, 0.38),
    0 34px 66px -18px rgba(0, 0, 0, 0.8);
}

/* Кант по периметру — доска выглядит вырезанной, а не залитой */
.press__board-face::after {
  content: '';
  position: absolute;
  inset: 7%;
  border: 1px solid rgba(255, 216, 162, 0.14);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.press__board-face svg {
  position: relative;
  z-index: 1;
  width: 80%;
  height: 80%;
  /* Бороздка тёмная, снизу светлая фаска — свет падает сверху-слева */
  color: rgba(22, 11, 3, 0.72);
  filter:
    drop-shadow(0 1.5px 0 rgba(255, 214, 158, 0.3))
    drop-shadow(0 -1px 0 rgba(0, 0, 0, 0.55));
}

.press__board-grip {
  position: absolute;
  top: -4%;
  left: 50%;
  translate: -50% 0;
  width: 22%;
  height: 7%;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #8a5c35, #5a3920);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* --- Прогресс сцены -------------------------------------------------------- */
.press__progress {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  translate: 0 -50%;
  width: 2px;
  height: min(48vh, 380px);
  background: rgba(243, 232, 213, 0.16);
}

.press__progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ochre);
  transform-origin: top;
  transform: scaleY(0);
}

/* --- Доказательство: настоящий пряник ------------------------------------- */
.proof {
  background: var(--soot);
  padding-bottom: clamp(60px, 8vw, 120px);
}

.proof__fig {
  margin: 0;
  position: relative;
}

.proof__fig img {
  width: 100%;
  max-height: 78vh;
  object-fit: cover;
  object-position: 50% 46%;
}

.proof__cap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: clamp(18px, 2.4vw, 28px) var(--gutter) 0;
  font-size: clamp(14px, 1.15vw, 17px);
  color: var(--ink-inv-mute);
  text-align: center;
}

.proof__cap .kupavka-mark {
  width: 16px;
  height: 16px;
}

/* =========================================================================
   [05] ПРЯНИЧНАЯ КАРТА РОССИИ
   ========================================================================= */

.pmap__body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.pmap__canvas {
  position: relative;
}

.pmap__svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.pmap__land {
  fill: var(--glaze);
  stroke: var(--crumb);
  stroke-width: 1.4;
  stroke-dasharray: 5 4;
}

.pmap__river {
  fill: none;
  stroke: var(--cobalt);
  stroke-width: 2.2;
  opacity: 0.5;
  stroke-linecap: round;
}

.pmap__river--volga {
  stroke-width: 3;
  opacity: 0.6;
}

/* Точки лежат HTML-слоем поверх SVG: кнопки внутри <svg> браузер не рисует,
   а нам нужны настоящие focusable-элементы. Координаты — те же, что в viewBox. */
.pmap__pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pmap__pin {
  position: absolute;
  left: calc(var(--x) / 620 * 100%);
  top: calc(var(--y) / 460 * 100%);
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  pointer-events: auto;
}

.pmap__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ochre);
  border: 2px solid var(--dough);
  transition:
    transform 0.35s var(--ease-out),
    background-color 0.3s ease;
}

.pmap__dot--home {
  background: var(--gorod-red);
}

.pmap__pulse {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ochre);
  opacity: 0.5;
  animation: pinPulse 2.6s ease-out infinite;
}

@keyframes pinPulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  70%,
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}

.pmap__pin:hover .pmap__dot,
.pmap__pin.is-on .pmap__dot {
  transform: scale(1.5);
  background: var(--gorod-red);
}

.pmap__tag {
  position: absolute;
  top: 18px;
  left: 50%;
  translate: -50% 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--ink-mute);
  background: var(--dough);
  padding: 1px 6px;
  border-radius: var(--r-xs);
  transition: color 0.25s ease;
}

/* Городец и Нижний стоят рядом — подпись одного уводим вверх */
.pmap__tag--up {
  top: auto;
  bottom: 18px;
}

.pmap__pin.is-on .pmap__tag {
  color: var(--gorod-red);
}

/* --- Карточка города ------------------------------------------------------- */
.pmap__cards {
  position: relative;
  min-height: 340px;
  padding: clamp(24px, 3vw, 40px);
  background: var(--glaze);
  border: 1px solid var(--dough-deep);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-soft);
}

.pmap__card {
  position: absolute;
  inset: clamp(24px, 3vw, 40px);
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.35s ease,
    transform 0.4s var(--ease-out);
  pointer-events: none;
}

.pmap__card.is-on {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pmap__card-kicker {
  font-size: 13px;
  color: var(--accent-ink);
  letter-spacing: 0.1em;
}

.pmap__card h3 {
  margin: 6px 0 12px;
  font-size: clamp(26px, 2.6vw, 38px);
}

.pmap__card-text {
  color: var(--ink-mute);
  font-size: clamp(15px, 1.1vw, 17px);
}

.pmap__spec {
  margin: clamp(16px, 2vw, 24px) 0 0;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--dough-line);
  padding-top: clamp(14px, 1.8vw, 20px);
}

.pmap__spec > div {
  display: grid;
  grid-template-columns: 32% 1fr;
  gap: 12px;
  font-size: 14px;
}

.pmap__spec dt {
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 11px;
  padding-top: 3px;
}

.pmap__spec dd {
  margin: 0;
  color: var(--ink);
}

/* =========================================================================
   [06] ВИТРИНА ВКУСОВ
   ========================================================================= */

.flavours {
  background: var(--glaze);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(26px, 3.4vw, 44px);
}

.filters__btn {
  padding: 10px 20px;
  border: 1px solid var(--dough-deep);
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-mute);
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.filters__btn:hover {
  border-color: var(--crumb);
  color: var(--ink);
}

.filters__btn.is-on {
  background: var(--soot);
  border-color: var(--soot);
  color: var(--glaze);
}

.flavours__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 262px), 1fr));
  gap: clamp(14px, 1.6vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.flavour {
  min-width: 0;
}

.flavour__card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--dough);
  border: 1px solid var(--dough-deep);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition:
    box-shadow 0.45s var(--ease-out),
    transform 0.45s var(--ease-out);
}

.flavour__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lift);
}

/* --- «Надлом»: две копии кадра расходятся по рваной линии ------------------ */
.flavour__ph {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--dough-deep);
  perspective: 700px;
}

.flavour__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.45s var(--ease-out),
    filter 0.45s var(--ease-out);
  will-change: transform;
}

.flavour__img--top {
  clip-path: polygon(0 0, 100% 0, 100% 44%, 78% 50%, 56% 43%, 34% 52%, 12% 45%, 0 51%);
  z-index: 2;
}

.flavour__img--bot {
  clip-path: polygon(0 51%, 12% 45%, 34% 52%, 56% 43%, 78% 50%, 100% 44%, 100% 100%, 0 100%);
  z-index: 1;
}

/* Начинка в разломе: тёплая полоса плюс крошка, иначе читается как плашка */
.flavour__filling {
  position: absolute;
  left: -4%;
  right: -4%;
  top: 40%;
  height: 17%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='4'/%3E%3C/filter%3E%3Crect width='90' height='90' filter='url(%23c)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #7a4718 0%, #b87a2c 26%, #d79b36 52%, #9a5c1e 78%, #6d3d13 100%);
  background-blend-mode: overlay;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 0;
}

/* Тень по кромке разлома — половинки должны иметь толщину */
.flavour__card:hover .flavour__ph .flavour__img--top {
  transform: translate(-3px, -9px) rotate(-3deg);
  filter: drop-shadow(0 4px 5px rgba(60, 34, 10, 0.45));
}

.flavour__card:hover .flavour__ph .flavour__img--bot {
  transform: translate(3px, 8px) rotate(3deg);
  filter: drop-shadow(0 -3px 5px rgba(60, 34, 10, 0.4));
}

.flavour__card:hover .flavour__filling {
  opacity: 1;
}

.flavour__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(14px, 1.5vw, 20px);
  flex: 1;
}

.flavour__name {
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.18;
}

.flavour__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  flex: 1;
}

.flavour__price {
  margin-top: 4px;
  font-size: 15px;
  color: var(--gorod-red);
}

/* Скрытые фильтром карточки */
.flavour.is-off {
  display: none;
}

/* --- Список остальных начинок --------------------------------------------- */
.flavours__more {
  margin-top: clamp(34px, 4vw, 56px);
  padding-top: clamp(24px, 3vw, 34px);
  border-top: 1px solid var(--dough-deep);
}

.flavours__more-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crumb-deep);
  margin-bottom: 14px;
}

.flavours__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flavours__tags li {
  padding: 7px 15px;
  border: 1px dashed var(--crumb);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-mute);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.flavours__tags li:hover {
  background: var(--ochre);
  border-style: solid;
  border-color: var(--ochre);
  color: var(--soot);
}

/* =========================================================================
   [07] ДЕГУСТАЦИЯ
   ========================================================================= */

.taste__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

.taste__media {
  margin: 0;
  position: relative;
}

.taste__media img {
  width: 100%;
  border-radius: var(--r-sm);
  box-shadow: var(--sh-lift);
  will-change: transform;
}

.taste__media figcaption {
  margin-top: 14px;
  font-size: var(--small);
  color: var(--ink-soft);
}

.steps {
  margin: clamp(24px, 3vw, 38px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: clamp(18px, 2.2vw, 28px);
}

.steps__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(16px, 2vw, 26px);
  align-items: start;
  padding-bottom: clamp(18px, 2.2vw, 28px);
  border-bottom: 1px solid var(--dough-line);
}

.steps__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.steps__num {
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 0.9;
  color: var(--accent-ink);
}

.steps__title {
  font-size: clamp(19px, 1.6vw, 24px);
  margin-bottom: 5px;
}

.steps__item p {
  color: var(--ink-mute);
  font-size: clamp(15px, 1.1vw, 17px);
}

.taste__free {
  margin-top: clamp(24px, 3vw, 34px);
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2.4vw, 28px);
  background: var(--gorod-red);
  color: var(--glaze);
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: clamp(18px, 1.7vw, 26px);
  line-height: 1.25;
}

/* Цитата */
.quote {
  margin: clamp(24px, 3vw, 34px) 0 0;
  padding-left: clamp(18px, 2.2vw, 28px);
  border-left: 2px solid var(--accent-ink);
}

.quote p {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.4;
}

.quote footer {
  margin-top: 10px;
  font-size: var(--small);
  color: var(--ink-soft);
}

.quote cite {
  font-style: normal;
  font-weight: 600;
  color: var(--ink-mute);
}

.quote--big p {
  font-size: clamp(24px, 2.8vw, 42px);
  line-height: 1.2;
}

/* =========================================================================
   [08] НЕ ТОЛЬКО ПРЯНИКИ — бенто
   ========================================================================= */

.bento {
  background: var(--dough);
}

.bento__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 17vw, 230px);
  gap: clamp(10px, 1.2vw, 18px);
}

.bento__tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--soot);
  min-width: 0;
}

/* Намеренно разные размеры — не сетка 3×N */
.bento__tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.bento__tile:nth-child(2) { grid-column: span 1; grid-row: span 1; }
.bento__tile:nth-child(3) { grid-column: span 1; grid-row: span 1; }
.bento__tile:nth-child(4) { grid-column: span 1; grid-row: span 2; }
.bento__tile:nth-child(5) { grid-column: span 1; grid-row: span 1; }
.bento__tile:nth-child(6) { grid-column: span 2; grid-row: span 1; }
.bento__tile:nth-child(7) { grid-column: span 1; grid-row: span 1; }
.bento__tile:nth-child(8) { grid-column: span 2; grid-row: span 1; }

.bento__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.7s var(--ease-out),
    filter 0.5s ease;
}

.bento__tile:hover img {
  transform: scale(1.06);
}

.bento__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 2px;
  padding: clamp(14px, 1.6vw, 22px);
  background: linear-gradient(0deg, rgba(23, 17, 12, 0.9), rgba(23, 17, 12, 0) 100%);
  color: var(--glaze);
  transition: background 0.4s ease;
}

.bento__tile:hover .bento__cap {
  background: linear-gradient(0deg, rgba(23, 17, 12, 0.94), rgba(23, 17, 12, 0.1) 100%);
}

.bento__cap b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(16px, 1.4vw, 22px);
}

/* Проявляется снизу именно подпись, а не весь блок: так двухстрочный текст
   не обрезается краем плитки, когда наведения нет вовсе. */
.bento__cap i {
  font-style: normal;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(251, 246, 236, 0.78);
  opacity: 0;
  transform: translateY(7px);
  transition:
    opacity 0.35s ease,
    transform 0.45s var(--ease-out);
}

.bento__tile:hover .bento__cap i,
.bento__tile:focus-visible .bento__cap i {
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .bento__cap i {
    opacity: 1;
    transform: none;
  }
}

/* Текстовая плитка (духи) */
.bento__tile--text {
  background: var(--gorod-red);
  color: var(--glaze);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: clamp(18px, 2vw, 28px);
  overflow: hidden;
}

.bento__quote-mark {
  position: absolute;
  right: -18px;
  top: -18px;
  width: clamp(90px, 9vw, 130px);
  height: clamp(90px, 9vw, 130px);
  color: rgba(251, 246, 236, 0.22);
}

.bento__quote-mark svg {
  width: 100%;
  height: 100%;
}

.bento__text-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.9vw, 28px);
  line-height: 1.1;
}

.bento__text-body {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(251, 246, 236, 0.85);
  max-width: 40ch;
}

/* =========================================================================
   [09] ДОМ XVIII ВЕКА
   ========================================================================= */

.house {
  padding-block: var(--section-y);
  background-color: var(--soot);
  overflow: hidden;
}

.house__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: center;
}

.house__media {
  margin: 0;
}

/* Рамка резного орнамента вокруг фото */
.house__frame {
  position: relative;
  padding: clamp(10px, 1.2vw, 18px);
  border: 1px solid rgba(215, 155, 54, 0.42);
  border-radius: var(--r-sm);
}

.house__frame::before,
.house__frame::after {
  content: '';
  position: absolute;
  width: 26px;
  height: 26px;
  border: 1px solid var(--ochre);
}

.house__frame::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.house__frame::after {
  right: -1px;
  bottom: -1px;
  border-left: 0;
  border-top: 0;
}

.house__frame img {
  width: 100%;
  border-radius: 2px;
  will-change: transform;
}

.house__text {
  margin-top: clamp(18px, 2.2vw, 28px);
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.55;
  color: var(--ink-inv-mute);
  max-width: 44ch;
}

.marks {
  margin: clamp(22px, 2.6vw, 32px) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.marks li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--ink-inv-mute);
}

.marks .kupavka-mark {
  width: 13px;
  height: 13px;
  color: var(--ochre);
}

/* =========================================================================
   [10] ГАЛЕРЕЯ + ЛАЙТБОКС
   ========================================================================= */

.gallery {
  background: var(--glaze);
}

/* Masonry на колонках: порядок сверху вниз, зато без JS-раскладки */
.gallery__grid {
  columns: 4;
  column-gap: clamp(10px, 1.2vw, 18px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery__cell {
  break-inside: avoid;
  margin-bottom: clamp(10px, 1.2vw, 18px);
}

.tile {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--dough-deep);
  transform: rotate(var(--tilt, 0deg));
  transition:
    transform 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out);
  will-change: transform;
}

.tile img {
  width: 100%;
  height: auto;
  transition: transform 0.7s var(--ease-out);
}

.tile:hover,
.tile:focus-visible {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: var(--sh-lift);
}

.tile:hover img {
  transform: scale(1.04);
}

.gallery__more {
  margin-top: clamp(28px, 3.4vw, 44px);
  text-align: center;
}

/* --- Лайтбокс -------------------------------------------------------------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: none;
}

.lb.is-open {
  display: block;
}

.lb__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 17, 12, 0.92);
  backdrop-filter: blur(14px);
  opacity: 0;
}

.lb__dialog {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto auto;
  padding: clamp(52px, 6vw, 76px) clamp(16px, 5vw, 90px) clamp(14px, 2vw, 24px);
  color: var(--glaze);
}

.lb__stage {
  position: relative;
  margin: 0;
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
}

.lb__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--r-sm);
  cursor: zoom-in;
  will-change: transform;
}

.lb__img.is-zoomed {
  cursor: grab;
}

.lb__img.is-dragging {
  cursor: grabbing;
}

.lb__close {
  position: absolute;
  top: clamp(12px, 2vw, 22px);
  right: clamp(12px, 2vw, 22px);
  z-index: 3;
}

.lb__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 3;
}

.lb__nav--prev {
  left: clamp(8px, 1.6vw, 22px);
}

.lb__nav--next {
  right: clamp(8px, 1.6vw, 22px);
}

.lb__bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(12px, 1.6vw, 18px) 0 clamp(8px, 1vw, 12px);
  border-bottom: 1px solid rgba(251, 246, 236, 0.16);
}

.lb__cap {
  font-size: clamp(14px, 1.1vw, 16px);
  color: rgba(251, 246, 236, 0.86);
}

.lb__counter {
  font-size: 14px;
  color: var(--ochre);
  white-space: nowrap;
}

.lb__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: clamp(10px, 1.4vw, 16px) 2px 2px;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

.lb__thumb {
  flex: none;
  width: clamp(52px, 6vw, 78px);
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  overflow: hidden;
  opacity: 0.42;
  outline-offset: 2px;
  transition:
    opacity 0.3s ease,
    transform 0.3s var(--ease-out);
}

.lb__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lb__thumb:hover {
  opacity: 0.8;
}

.lb__thumb.is-on {
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 0 0 1.5px var(--ochre);
}

/* =========================================================================
   [11] ХОЗЯЙКИ ЛАВКИ
   ========================================================================= */

.staff__slider {
  position: relative;
}

.staff__viewport {
  overflow: hidden;
  cursor: grab;
}

.staff__viewport.is-dragging {
  cursor: grabbing;
}

.staff__track {
  display: flex;
  gap: clamp(12px, 1.6vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
  will-change: transform;
}

.staff__card {
  position: relative;
  flex: none;
  width: clamp(268px, 30vw, 400px);
  min-height: clamp(300px, 32vw, 380px);
  border-radius: var(--r-sm);
  overflow: hidden;
  background-color: var(--soot);
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  color: var(--glaze);
  user-select: none;
}

/* Кадр зала уходит в фон, чтобы не читаться как портрет конкретного человека */
.staff__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 17, 12, 0.62), rgba(23, 17, 12, 0.94));
}

.staff__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: clamp(20px, 2.4vw, 30px);
}

.staff__name {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.1;
  color: var(--ochre);
}

.staff__quote {
  margin: 0;
}

.staff__quote p {
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.55;
  color: rgba(251, 246, 236, 0.9);
}

.staff__quote footer {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(251, 246, 236, 0.6);
}

.staff__quote cite {
  font-style: normal;
  font-weight: 600;
}

.staff__nav {
  display: flex;
  gap: 10px;
  margin-top: clamp(18px, 2.2vw, 28px);
  color: var(--ink-mute);
}

/* =========================================================================
   [12] ОТЗЫВЫ 5.0
   ========================================================================= */

.reviews {
  padding-block: var(--section-y);
  overflow: hidden;
}

.reviews__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.reviews__big {
  font-size: clamp(76px, 12vw, 168px);
  line-height: 0.86;
  color: var(--ochre);
  letter-spacing: -0.03em;
}

.reviews__stars {
  margin-top: 6px;
  font-size: clamp(16px, 1.5vw, 21px);
  letter-spacing: 0.24em;
  color: var(--ochre);
}

.reviews__count {
  margin-top: 10px;
  font-size: var(--small);
  color: var(--ink-inv-mute);
}

.bars {
  margin: clamp(26px, 3vw, 38px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.bars__row {
  display: grid;
  grid-template-columns: 32% 1fr auto;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}

.bars__label {
  color: var(--ink-inv-mute);
}

.bars__track {
  height: 3px;
  background: rgba(243, 232, 213, 0.16);
  border-radius: 2px;
  overflow: hidden;
}

.bars__fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--ochre);
  transform-origin: left;
  transform: scaleX(0);
}

.bars__val {
  color: var(--ochre);
  font-size: 13px;
}

.reviews__src {
  margin-top: 14px;
}

.reviews__all {
  margin-top: clamp(20px, 2.4vw, 28px);
}

/* --- Стена отзывов --------------------------------------------------------- */
.wall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.4vw, 20px);
  height: clamp(460px, 62vh, 720px);
  overflow: hidden;
  /* Мягкие края сверху и снизу */
  mask-image: linear-gradient(180deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 9%, #000 91%, transparent);
}

.wall__col {
  overflow: hidden;
  min-width: 0;
}

.wall__inner {
  display: grid;
  gap: clamp(12px, 1.4vw, 20px);
  will-change: transform;
}

.rcard {
  padding: clamp(16px, 1.8vw, 24px);
  background: var(--soot-soft);
  border: 1px solid rgba(243, 232, 213, 0.1);
  border-radius: var(--r-sm);
}

.rcard p {
  font-size: clamp(14px, 1.05vw, 15.5px);
  line-height: 1.55;
  color: rgba(243, 232, 213, 0.9);
}

.rcard footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(243, 232, 213, 0.1);
  font-size: 12px;
  color: var(--ink-inv-soft);
}

.rcard cite {
  font-style: normal;
  font-weight: 600;
  color: var(--ochre);
}

/* =========================================================================
   [13] КОНСТРУКТОР ГОСТИНЦА
   ========================================================================= */

.builder {
  background: var(--dough);
}

.builder__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.ask {
  margin: 0 0 clamp(22px, 2.6vw, 32px);
  padding: 0;
  border: 0;
}

.ask__legend {
  padding: 0;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crumb-deep);
}

.ask__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ask__opt {
  padding: 11px 20px;
  border: 1px solid var(--dough-deep);
  border-radius: var(--r-sm);
  background: var(--glaze);
  font-size: 15px;
  color: var(--ink-mute);
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.ask__opt:hover {
  border-color: var(--crumb);
}

.ask__opt.is-on {
  background: var(--gorod-red);
  border-color: var(--gorod-red);
  color: var(--glaze);
}

.builder__note {
  max-width: 40ch;
}

.builder__result {
  position: relative;
  padding: clamp(22px, 3vw, 38px);
  background: var(--glaze);
  border: 1px solid var(--dough-deep);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-soft);
  min-height: 340px;
}

.gift__title {
  font-family: var(--font-display);
  font-size: clamp(23px, 2.2vw, 32px);
  line-height: 1.15;
  margin-bottom: 6px;
}

.gift__sub {
  font-size: var(--small);
  color: var(--ink-soft);
  margin-bottom: clamp(18px, 2.2vw, 26px);
}

.gift__list {
  margin: 0 0 clamp(18px, 2.2vw, 26px);
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1px;
  background: var(--dough-deep);
  border-block: 1px solid var(--dough-deep);
}

.gift__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 12px 2px;
  background: var(--glaze);
  font-size: 15px;
}

.gift__item .kupavka-mark {
  width: 11px;
  height: 11px;
  translate: 0 1px;
}

.gift__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gift__sum {
  font-family: var(--font-accent);
  font-size: clamp(20px, 1.9vw, 27px);
  color: var(--gorod-red);
}

.gift__sum span {
  display: block;
  font-family: var(--font-text);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* =========================================================================
   [14] МЕЛОЧИ, КОТОРЫЕ ВАЖНЫ
   ========================================================================= */

.bits {
  padding-block: clamp(40px, 5vw, 70px);
  background: var(--dough);
  border-top: 1px solid var(--dough-deep);
}

.bits__list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 18px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bit {
  display: grid;
  gap: 12px;
  padding: clamp(16px, 1.8vw, 22px);
  background: var(--glaze);
  border: 1px solid var(--dough-deep);
  border-radius: var(--r-sm);
  transition:
    transform 0.4s var(--ease-out),
    border-color 0.3s ease;
}

.bit:hover {
  transform: translateY(-3px);
  border-color: var(--crumb);
}

.bit__ic {
  width: 28px;
  height: 28px;
  color: var(--gorod-red);
}

.bit b {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.3;
  margin-bottom: 3px;
}

.bit span {
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-soft);
}

/* =========================================================================
   [15] КАК ДОЙТИ + КОНТАКТЫ
   ========================================================================= */

.contacts__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
}

.wayfind {
  margin: 0;
}

.wayfind__svg {
  width: 100%;
  height: auto;
  border-radius: var(--r-sm);
  overflow: hidden;
}

.wf-bg {
  fill: var(--glaze);
}

.wf-block rect {
  fill: var(--dough);
  stroke: var(--dough-deep);
  stroke-width: 1;
}

.wf-street {
  stroke: var(--dough-deep);
  stroke-width: 78;
  fill: none;
}

.wf-street-edge {
  stroke: var(--crumb);
  stroke-width: 1;
  opacity: 0.5;
  fill: none;
}

.wf-streetname {
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  fill: var(--crumb-deep);
  opacity: 0.75;
}

.wf-route {
  fill: none;
  stroke: var(--gorod-red);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 9 8;
}

.wf-poi-dot {
  fill: var(--cobalt);
}

.wf-poi-label {
  font-family: var(--font-text);
  font-size: 13px;
  fill: var(--ink-mute);
}

.wf-theatre {
  fill: var(--glaze);
  stroke: var(--crumb);
  stroke-width: 1.4;
  stroke-dasharray: 4 3;
}

.wf-shop-box {
  fill: var(--gorod-red);
}

.wf-shop-dot {
  fill: var(--gorod-red);
  stroke: var(--glaze);
  stroke-width: 3;
}

.wf-shop-num {
  font-family: var(--font-accent);
  font-size: 34px;
  fill: var(--glaze);
}

.wf-shop-label {
  font-family: var(--font-display);
  font-size: 12px;
  fill: var(--glaze);
}

.wf-shop-stem {
  stroke: var(--gorod-red);
  stroke-width: 2;
  stroke-dasharray: 3 4;
  fill: none;
}

.wf-shop-stem--muted {
  stroke: var(--cobalt);
}

.wf-poi-label--center {
  font-family: var(--font-display);
  font-size: 17px;
  fill: var(--ink-mute);
}

.wf-dist {
  font-family: var(--font-accent);
  font-size: 17px;
  fill: var(--gorod-red);
}

.wayfind figcaption {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
}

.contacts__card {
  padding: clamp(24px, 3vw, 38px);
  background: var(--soot);
  color: var(--ink-inv);
  border-radius: var(--r-sm);
  --ink-soft: var(--ink-inv-soft);
  --dough-line: var(--soot-line);
}

.contacts__addr {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.12;
}

.contacts__near {
  margin-top: 8px;
  font-size: var(--small);
  color: var(--ink-inv-soft);
}

.contacts__dl {
  margin: clamp(22px, 2.6vw, 30px) 0 0;
  display: grid;
  gap: 0;
}

.contacts__dl > div {
  display: grid;
  grid-template-columns: 32% 1fr;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid rgba(243, 232, 213, 0.13);
  font-size: 14.5px;
}

.contacts__dl dt {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-inv-soft);
  padding-top: 3px;
}

.contacts__dl dd {
  margin: 0;
  line-height: 1.5;
}

.contacts__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 2.6vw, 30px);
}

.contacts__cta .btn--ink {
  --btn-fg: var(--glaze);
  --btn-bd: rgba(251, 246, 236, 0.4);
}

.contacts__cta .btn--ink::before {
  background: var(--glaze);
}

.contacts__cta .btn--ink:hover {
  --btn-fg: var(--soot);
  --btn-bd: var(--glaze);
}

/* =========================================================================
   [16] ФУТЕР
   ========================================================================= */

.footer {
  position: relative;
  padding-bottom: clamp(24px, 3vw, 36px);
  background: var(--soot);
}

.footer__rule {
  height: 22px;
  margin-bottom: clamp(32px, 4vw, 56px);
  opacity: 0.4;
}

.footer__slogan {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.6vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ochre);
  max-width: 22ch;
  margin-bottom: clamp(36px, 4.6vw, 68px);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  gap: clamp(24px, 3vw, 48px);
  padding-bottom: clamp(28px, 3.4vw, 44px);
  border-bottom: 1px solid rgba(243, 232, 213, 0.13);
}

.footer__brand {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.footer__mark {
  width: 44px;
  height: 44px;
  flex: none;
  color: var(--gorod-red);
}

.footer__line {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-inv-mute);
  max-width: 26ch;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-content: start;
  font-size: 14px;
}

.footer__nav a {
  color: var(--ink-inv-mute);
  transition: color 0.25s ease;
}

.footer__nav a:hover {
  color: var(--ochre);
}

.footer__contact {
  display: grid;
  gap: 6px;
  align-content: start;
  font-size: 14px;
  color: var(--ink-inv-mute);
}

.footer__tel {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 23px);
  color: var(--ink-inv);
}

.footer__copy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-top: clamp(18px, 2vw, 26px);
  font-size: 12.5px;
  color: var(--ink-inv-soft);
}

/* =========================================================================
   [Z] АДАПТИВ
   ========================================================================= */

@media (max-width: 1280px) {
  .bits__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gallery__grid {
    columns: 3;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-h: 68px;
  }

  .nav {
    display: none;
  }

  .burger {
    display: block;
  }

  .header__side {
    margin-left: auto;
  }

  .header__tel {
    display: none;
  }

  /* Бургер не должен выдавливаться статусом за край экрана */
  .burger {
    margin-left: 4px;
  }

  /* Полноэкранное мобильное меню. Оверлей — сосед логотипа и бургера внутри
     шапки, поэтому им нужен z-index выше, иначе меню накроет кнопку закрытия. */
  .nav.is-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: var(--dough);
    padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
  }

  .brand,
  .burger,
  .header__side {
    position: relative;
    z-index: 2;
  }

  .nav.is-open .nav__list {
    flex-direction: column;
    gap: 4px;
  }

  .nav.is-open .nav__list a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--dough-deep);
    font-family: var(--font-display);
    font-size: clamp(26px, 6vw, 40px);
    color: var(--ink);
    opacity: 0;
    transform: translateY(24px);
  }

  .press__grid,
  .pmap__body,
  .taste__grid,
  .house__grid,
  .reviews__grid,
  .builder__grid,
  .contacts__grid,
  .sec-head--split {
    grid-template-columns: minmax(0, 1fr);
  }

  .sec-head--split {
    gap: 18px;
  }

  .sec-head__aside {
    border-left: 0;
    border-top: 1px solid var(--dough-line);
    padding-left: 0;
    padding-top: 16px;
    padding-bottom: 0;
  }

  .press__scene {
    width: min(92%, 46vh);
    order: -1;
  }

  .press__grid {
    gap: clamp(18px, 3vw, 30px);
  }

  .press__progress {
    display: none;
  }

  .taste__media,
  .house__media {
    max-width: 560px;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Три колонки: раскладка подобрана так, чтобы сетка сходилась без дыр —
     r1-r2: Хохлома 2×2 + Матрёшки и Гжель, r3: три обычных, r4: Пастила + Духи */
  .bento__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bento__tile:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .bento__tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .bento__tile:nth-child(8) { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 860px) {
  .facts__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 8px;
  }

  .facts__item:nth-child(4) {
    border-left: 0;
  }

  .gallery__grid {
    columns: 2;
  }

  .wall {
    height: clamp(400px, 56vh, 520px);
  }

  .staff__card {
    width: min(78vw, 340px);
  }
}

@media (max-width: 768px) {
  .bits__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flavours__grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  }

  /* Pinned-сцена на мобильном: без прилипания, три обычных состояния */
  .press {
    height: auto;
    padding-block: var(--section-y);
  }

  .press__stage {
    position: static;
    height: auto;
  }

  .press__lines {
    min-height: 6em;
  }

  .press__scene {
    width: min(86%, 380px);
    margin-bottom: 28px;
  }

  .reviews__grid {
    gap: 34px;
  }

  .wall {
    grid-template-columns: 1fr;
    height: 440px;
  }

  .wall__col--b {
    display: none;
  }

  .pmap__cards {
    min-height: 380px;
  }

  .lb__thumbs {
    display: none;
  }

  .lb__bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (max-width: 620px) {
  /* На узком экране в шапке остаётся только имя и бургер: статус и адрес
     живут в блоке контактов, дублировать их в строке шириной 390 px незачем. */
  .header .status,
  .brand__sub {
    display: none;
  }

  .brand__mark {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 560px) {
  .facts__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .facts__item {
    border-left: 0;
    text-align: left;
    padding-inline: 0;
  }

  .facts__item:nth-child(5) {
    grid-column: span 2;
  }

  .bento__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 150px;
  }

  .bento__tile:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .bento__tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .bento__tile:nth-child(8) { grid-column: span 2; }

  .bits__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery__grid {
    columns: 1;
  }

  .btn {
    width: 100%;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .steps__item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .pmap__spec > div,
  .contacts__dl > div,
  .bars__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .bars__row {
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
  }

  .bars__track {
    grid-column: 1 / -1;
  }
}

/* =========================================================================
   [Z] PREFERS-REDUCED-MOTION — всё сложное превращается в простой fade
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.12s !important;
    scroll-behavior: auto !important;
  }

  .hero__media img {
    animation: none;
  }

  .press {
    height: auto;
  }

  .press__stage {
    position: static;
    height: auto;
    padding-block: var(--section-y);
  }

  .press__imprint {
    clip-path: none;
  }

  .press__board {
    opacity: 0.18;
  }

  /* Без скролл-анимации показываем сразу итог: испечённый пряник с оттиском */
  .press__bake {
    opacity: 0.82;
  }

  .press__crust {
    opacity: 1;
  }

  .press__lines {
    min-height: 0;
    display: grid;
    gap: 14px;
  }

  .press__line {
    position: static;
    opacity: 1;
    transform: none;
  }

  .js .reveal-imprint .word-in,
  .js .fade-up {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .cursor {
    display: none !important;
  }

  .tile {
    transform: none !important;
  }

  .marquee__track {
    transform: none !important;
  }
}
