/* =========================================================
   Клуб экранизаций — стили сайта
   Широкоформатная вёрстка: контейнер до 2400px, блоки-карточки
   с шагом 10px и скруглением 20px. Заголовки — Anvyl,
   весь остальной текст — Tenor Sans.
   ========================================================= */

/* Шрифты лежат в проекте (папка fonts), внешние сервисы не нужны.
   Anvyl — свободная лицензия для личного и коммерческого использования,
   Tenor Sans — OFL. Файлы лицензий лежат рядом со шрифтами. */
@font-face {
  font-family: 'Anvyl';
  src: url(../fonts/Anvyl.woff2) format('woff2'), url(../fonts/Anvyl.woff) format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Tenor Sans';
  src: url(../fonts/TenorSans-Regular.woff2) format('woff2'), url(../fonts/TenorSans-Regular.woff) format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Токены ---------- */
:root {
  /* Цвета по ролям */
  --yellow: #F1BC4B;          /* акцент: кнопки, активные состояния */
  --olive:  #696139;          /* тёмный фон */
  --brown:  #34495F;          /* джинсовый: приглушённые плашки */
  --white:  #EDE2CB;          /* кремовый: светлый фон и текст на тёмном */
  --black:  #000000;          /* текст на светлом, тёмные карточки */
  --soft:   rgba(237, 226, 203, .72);   /* вторичный текст на тёмном */
  --line:   rgba(237, 226, 203, .28);

  /* Шаги отступов */
  --tally-fs: clamp(2.75rem, 2rem + 1.6vw, 4.5rem);   /* размер цифр счёта; тот же кегль у точки в меню */
  --s: 20px;                                    /* внутренние отступы: между элементами и между карточками */
  --out: 20px;                                  /* внешние отступы: от края экрана, между блоками, до краёв блока */
  --pad: clamp(20px, 0.9rem + 1.1vw, 40px);     /* внутри карточек */
  --r: 20px;                                    /* единое скругление */

  /* Размеры текста: минимум на 375, норма на 1440, потолок */
  --fs-h2:    clamp(1.625rem, 1.317rem + 1.315vw, 3.5rem);   /* 26 → 40 → 56 */
  --fs-sub:   clamp(1.25rem, 1.074rem + 0.751vw, 2.25rem);   /* 20 → 28 → 36 */
  --fs-text:  clamp(1rem, 0.956rem + 0.188vw, 1.25rem);      /* 16 → 18 → 20 */
  --fs-small: 1rem;                                          /* 16, меньше не берём */
  /* Заголовок первого экрана — огромный, на всю ширину.
     Скрипт ещё подгоняет его точно под ширину через --fit */
  --fs-hero:  clamp(2.5rem, 0.5rem + 9.4vw, 15rem);

  --f-head: 'Anvyl', 'Arial Narrow', Impact, sans-serif;
  --f-text: 'Tenor Sans', 'Trebuchet MS', system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { background: var(--olive); color: var(--white); }

/* Скролл-бар: кремовый ползунок на тёмно-оливковой дорожке, при наведении жёлтый */
/* Firefox: только там, иначе Chrome отключает ::-webkit-scrollbar и пропадает жёлтое наведение */
@supports not selector(::-webkit-scrollbar) { html { scrollbar-color: var(--white) rgba(0,0,0,.28); } }
::-webkit-scrollbar { width: 16px; height: 16px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,.28); }
::-webkit-scrollbar-thumb { background: var(--white); border-radius: 999px; border: 4px solid transparent; background-clip: padding-box; min-height: 48px; }
::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active { background-color: var(--yellow); }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: var(--fs-text);
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 12px; }

/* Общий контейнер: до 2400px, по центру */
.page {
  max-width: 2400px;
  margin-inline: auto;
  padding: var(--out);
  display: flex;
  flex-direction: column;
  gap: var(--out);
  overflow-x: clip;
}
.small { font-size: var(--fs-small); }
.head-font {
  font-family: var(--f-head);
  font-weight: 400;
  font-synthesis: none;       /* без искусственного утолщения */
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: .01em;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s);
  min-height: 44px;
  padding: clamp(0.875rem, 0.7rem + 0.4vw, 1.25rem) clamp(1.25rem, 1rem + 0.8vw, 2rem);
  border-radius: var(--r);
  font-size: var(--fs-text);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
/* Наведение: по бокам кнопки прорезаются круглые выемки, как у билета.
   Это настоящие вырезы (маска), поэтому работают на любом фоне. */
@property --notch { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --ring { syntax: "<number>"; inherits: false; initial-value: 0; }
.btn, .tg {
  --notch: 0px;
  position: relative;
  transition: --notch .35s cubic-bezier(.2, .8, .2, 1), --ring .35s, transform .15s;
  -webkit-mask: radial-gradient(circle at left center, #0000 var(--notch), #000 calc(var(--notch) + 1px)) left / 51% 100% no-repeat,
                radial-gradient(circle at right center, #0000 var(--notch), #000 calc(var(--notch) + 1px)) right / 51% 100% no-repeat;
          mask: radial-gradient(circle at left center, #0000 var(--notch), #000 calc(var(--notch) + 1px)) left / 51% 100% no-repeat,
                radial-gradient(circle at right center, #0000 var(--notch), #000 calc(var(--notch) + 1px)) right / 51% 100% no-repeat;
}
.btn:hover, .tg:hover, .btn:focus-visible, .tg:focus-visible { --notch: 10px; --ring: 1; }
/* У кнопок-контуров (без заливки) выемка обводится тем же цветом, что и рамка кнопки */
.tg, .more-btn {
  --ring-c: rgba(237, 226, 203, calc(.7 * var(--ring)));
  background-image:
    radial-gradient(circle at left center, transparent calc(var(--notch) + 1px), var(--ring-c) calc(var(--notch) + 1px), var(--ring-c) calc(var(--notch) + 2.5px), transparent calc(var(--notch) + 2.5px)),
    radial-gradient(circle at right center, transparent calc(var(--notch) + 1px), var(--ring-c) calc(var(--notch) + 1px), var(--ring-c) calc(var(--notch) + 2.5px), transparent calc(var(--notch) + 2.5px));
  background-size: 51% 100%, 51% 100%;
  background-position: left, right;
  background-repeat: no-repeat;
}
.btn:active, .tg:active { transform: scale(.98); }
.btn:focus-visible, .tg:focus-visible { outline-offset: -4px; } /* маска обрезает всё снаружи, поэтому контур внутрь */
.btn.y { background: var(--yellow); color: var(--black); }
.btn.o { background: var(--olive); color: var(--white); }

/* =========================================================
   Блок 1. Первый экран
   Первый экран ровно по высоте окна (минус поля 10px сверху и снизу),
   чтобы целиком помещаться без прокрутки. На телефоне — не ниже окна,
   но может вырасти, если содержимому не хватает места.
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  height: calc(100svh - var(--out) * 2);
  min-height: 30rem;
  border-radius: var(--r);
  overflow: hidden;
  background: #5d5a37;
  display: flex;
  flex-direction: column;
  gap: var(--s);
  padding: var(--out);          /* 20px до краёв блока */
}
/* Фото — настоящая картинка, заполняет блок без искажений */
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
}

/* Меню */
.nav { display: flex; align-items: center; justify-content: space-between; gap: calc(var(--s) * 1.5); }
/* Логотип того же размера, что пункты меню: высота заглавных букв совпадает */
.logo { display: block; height: calc(var(--fs-text) * 0.95); flex: none; position: relative; top: 0; }
.logo svg { height: 100%; width: auto; display: block; overflow: visible; }
/* Логотип чуть плотнее: обводка тем же цветом добавляет толщину буквам */
.logo svg path { stroke: #EDE2CB; stroke-width: .5; stroke-linejoin: round; paint-order: stroke; }
.links { display: flex; gap: clamp(1.25rem, 0.8rem + 1.2vw, 2.5rem); font-size: var(--fs-text); }
.links a { text-decoration: none; opacity: .92; padding: 4px 14px; margin: -4px -14px; /* поля под плашку, вёрстку не сдвигают */
  border-radius: var(--r); background-color: transparent;
  transition: opacity .2s, background-color .25s, color .25s; }
.links a:hover, .links a:focus-visible { opacity: 1; background-color: var(--yellow); color: var(--black); }
.tg {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem clamp(0.875rem, 0.6rem + 0.6vw, 1.4rem);
  border: 1.5px solid rgba(237, 226, 203, .7);
  border-radius: var(--r);
  font-size: var(--fs-text);
  text-decoration: none;
  white-space: nowrap;
}

/* Заголовок и подзаголовок идут вплотную под меню, шаг 10px */
.h1wrap { margin: 0; }
h1 {
  margin: 0;
  color: var(--yellow);
  font-weight: 700;              /* на первом экране заголовок остаётся жирным */
  font-synthesis: weight;
  white-space: nowrap;
  line-height: 1.05;
  font-size: calc(var(--fs-hero) * var(--fit, 1));
  /* метрики Anvyl: над заглавными .2455em пустоты, под базовой линией .1055em —
     прячем их, чтобы до меню и до подзаголовка было ровно 10px видимого расстояния */
  margin: -0.2455em 0 -0.1055em;   /* 20px до меню — это шаг между блоками первого экрана */
}
h1 span { display: inline-block; }
.lead {
  align-self: flex-end;
  max-width: 36ch;
  margin: -0.385em 0 0;   /* до верха заглавных Tenor Sans — 20px от заголовка */
  text-align: right;
  font-size: var(--fs-text);   /* как в кнопках */
  line-height: 1.5;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .25);
}

/* Низ первого экрана: счёт, реплики-субтитры, кнопки */
.hero-bottom {
  margin-top: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);   /* счёт слева, кнопки справа; реплики по центру поверх */
  align-items: end;
  gap: var(--s);
}
.hero-bottom .score { justify-self: start; }
.hero-bottom .hero-ctas { justify-self: end; }
.hero-ctas { display: flex; gap: var(--s); flex-wrap: nowrap; }
/* Реплики — ровно по центру экрана, на одной линии с кнопками */
.subs {
  position: absolute;
  left: 50%;
  bottom: var(--out);
  transform: translateX(-50%);
  width: max-content;
  max-width: 40%;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0;
  text-align: center;
  font-size: var(--fs-text);   /* как в кнопках */
  line-height: 1.5;
  color: #FFE7A6;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .8), 0 0 18px rgba(0, 0, 0, .65), 0 0 3px #000;
}
.score {
  background: var(--brown);
  border-radius: var(--r);
  padding: var(--out);                  /* 20px до краёв плашки */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s);                        /* 20px между подписью, счётом и плашкой месяца */
  text-align: center;
}
/* У текста и цифр срезаем внутренние поля шрифта, чтобы 10px были видимыми */
.score .cap { font-size: var(--fs-small); color: var(--yellow); line-height: 1.2; margin: -0.235em 0 -0.265em; }
.score .tally { display: flex; align-items: flex-start; justify-content: center; gap: 10px; } /* между цифрами и двоеточием — 10px */
.score .side { display: flex; flex-direction: column; align-items: center; gap: var(--s); }
.score .n, .score .c {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: var(--tally-fs);
  line-height: 1;
  margin: -0.2205em 0 -0.0805em;
  color: var(--yellow);
}
.score .c { color: var(--soft); font-weight: 400; }
.score .lab { font-size: var(--fs-small); color: var(--soft); line-height: 1.2; margin: -0.235em 0 -0.265em;
  width: 0; display: flex; justify-content: center; white-space: nowrap; } /* подпись не расширяет колонку цифры: расстояние между цифрой и двоеточием считается только по цифре */
.score .now { font-size: var(--fs-small); background: var(--yellow); color: var(--black); border-radius: var(--r); padding: 4px 12px; line-height: 1.3; }

/* =========================================================
   Остальные блоки — перенесены без изменений,
   переделаем по правилам на следующих шагах
   ========================================================= */

/* ---------- Оболочки секций */
.sec { border-radius: var(--r); padding: var(--out); }
.sec.brown { background: var(--brown); }
.sec.black { background: var(--black); }
.sec.plain { padding: calc(var(--s)*2.5) var(--out) var(--out); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s); flex-wrap: wrap; margin-bottom: var(--s); }
.sec-head h2 { margin: 0; font-size: clamp(56px, 7vw, 128px); }
.sec-head p { margin: 0; max-width: 640px; color: var(--soft); }
.eyebrow { font-size: 16px; text-transform: uppercase; letter-spacing: .14em; color: var(--yellow); margin: 0 0 var(--s); }

/* Место под фото */
.slot { position: relative; border-radius: var(--r); background: repeating-linear-gradient(135deg, rgba(237,226,203,.06) 0 12px, transparent 12px 24px), rgba(0,0,0,.18);
  border: 1.5px dashed rgba(237,226,203,.45); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s); color: var(--soft); font-size: 16px; text-align: center; padding: var(--s); min-height: 120px; }
.slot svg { width: 34px; height: 34px; opacity: .8; }

/* ---------- Книга месяца */
.bento { display: grid; grid-template-columns: 1.45fr 1fr 1fr 1fr 1.15fr; gap: var(--s); }
.card { border-radius: var(--r); padding: var(--out); display: flex; flex-direction: column; gap: var(--s); min-width: 0; }
.c-book { background: var(--olive); flex-direction: row; gap: var(--s); }
.c-book .cover { width: 38%; min-width: 120px; max-width: 100%; height: auto; aspect-ratio: 543/850; object-fit: cover; flex: none; display: block; border-radius: 10px; box-shadow: 0 14px 30px -12px rgba(0,0,0,.6); }
.c-book h3 { margin: 0; font-size: clamp(36px, 3vw, 56px); hyphens: none; } /* тот же размер, что «ДО 16», «600 ₽» в блоке «Формат» */
.c-book .who { font-size: 20px; margin-top: 2px; } /* 20px по буквам от названия */
.c-book .badges { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; } /* между плашками 10px */
.c-book .film { font-size: var(--fs-small); background: var(--brown); border-radius: var(--r); padding: 4px 14px; letter-spacing: .08em; line-height: 1.3; }
.c-sess { background: var(--white); color: var(--black); position: relative; }
.c-sess.next { background: var(--yellow); }
.c-sess .k { font-size: 16px; display: flex; justify-content: space-between; gap: var(--s); flex-wrap: wrap; }
.tag { position: absolute; top: -17px; right: var(--s); background: var(--brown); color: var(--white); border-radius: var(--r); padding: 4px 14px; font-size: var(--fs-small); letter-spacing: .08em; line-height: 1.3; }
.c-sess .d { font-family: var(--f-head); font-weight: 400; font-synthesis: none; font-size: clamp(64px, 5.6vw, 112px); line-height: .9; }
.c-sess .w { font-size: 20px; }
.c-sess .x { font-size: 16px; margin-top: auto; opacity: .78; }
.c-where { background: transparent; padding: 0; } /* текст и кнопка встают вровень с верхом и низом соседних карточек */
.c-where .addr { font-size: 20px; }
.c-where .small { font-size: var(--fs-text); }
.c-where .addr span { display: block; font-size: 16px; color: var(--soft); }
.meter { height: 8px; border-radius: var(--r); background: rgba(237,226,203,.2); overflow: hidden; margin-top: var(--s); }
.meter i { display: block; height: 100%; width: 62%; background: var(--yellow); border-radius: var(--r); transition: width 2.4s cubic-bezier(.2,.8,.2,1); }
.meter.wait i { width: 0; }
.price { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s); }
.price span { font-size: 16px; color: var(--soft); }
.prices { display: flex; flex-direction: column; gap: 15.2px; } /* между строками цен ровно 20px по буквам */
.price b { font-weight: 400; font-size: 28px; font-variant-numeric: tabular-nums; line-height: 1; margin: -7.4px 0; }
.c-sess .k > span:not(.tag), .c-sess .d, .c-sess .w, .c-sess .x, .c-book h3, .c-book .who, .c-where .addr, .c-where .small { text-box: trim-both cap alphabetic; } /* 20px между строками — по буквам */
.c-where .small { margin-top: auto; } /* «Осталось мест», цены и кнопка прижаты вниз, адрес остаётся сверху */
.c-where .btn { margin-top: 2.7px; } /* от низа цифр «1500 ₽» до кнопки ровно 20px */

/* Весь блок «Книга октября» — один билет: карточка-стаб (книга) сверху,
   контрольный отрыв с вырезанными кружками, а под ним — корешок с датами и залом */
.ticket-block { position: relative; }
.stub-line { position: relative; margin: 0 calc(var(--out)*-1) var(--s); border-top: 2px dashed rgba(237,226,203,.35); }
.stub-line::before, .stub-line::after {
  content: ""; position: absolute; top: 0; width: 26px; height: 26px;
  border-radius: 50%; background: var(--olive);
}
.stub-line::before { left: 0; transform: translate(-50%, -50%); }
.stub-line::after { right: 0; transform: translate(50%, -50%); }

/* ---------- Формат: плёнка на всю ширину, двигается только лента */
.reel { width: calc(100% + var(--out) * 2); margin-inline: calc(var(--out) * -1); background: var(--black); position: relative; padding: 48px var(--out); }
.reel::before, .reel::after { content: ""; position: absolute; left: 0; right: 0; height: 14px;
  background: repeating-linear-gradient(90deg, var(--olive) 0 22px, transparent 22px 40px); animation: tape 2.2s linear infinite; }
.reel::before { top: 17px; }
.reel::after { bottom: 17px; }
@keyframes tape { to { background-position: -40px 0; } }
.reel .frames { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s); position: relative; }
.fr { background: var(--olive); border-radius: var(--r); padding: var(--out); display: flex; flex-direction: column; gap: var(--s); }
.fr .shot { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; } /* внешнее 20 − отступ 10 = внутреннее 10 */
.fr .body { padding: 0; display: flex; flex-direction: column; gap: var(--s); flex: 1; }
.fr .head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: var(--s); } /* название слева, день справа — верх по одной линии */
.fr .head b { font-weight: 400; font-size: 16px; color: var(--yellow); }
.fr h3 { margin: 0; font-size: clamp(48px, 4.4vw, 84px); color: var(--yellow); }
.fr .time { font-size: 20px; } /* по буквам 20px — как между «18.10» и «вс · 18:00» в карточках выше */
.fr p { margin: 0; color: var(--white); } /* до времени 20; до подписи по буквам 28 — как между «вс · 18:00» и «смотрим в кинозале» выше */
.fr .foot { margin-top: auto; font-size: 16px; color: var(--soft); }
#format.sec.plain { padding-inline: 0; } /* карточки и заголовок — в 20px от края экрана, как в остальных блоках */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: var(--out); background: var(--black); border-radius: var(--r); }
/* Табло: одна чёрная лента, ячейки разделены пунктиром, над цифрой подпись */
.fact { display: flex; flex-direction: column; gap: var(--s); padding: var(--out); border-left: 2px dashed rgba(237, 226, 203, .35); }
.fact { position: relative; }
.fact:first-child { border-left: 0; }
/* Круглые выемки на концах пунктира, как у блока «Книга октября»: по половине круга сверху и снизу ленты */
.fact:not(:first-child)::before, .fact:not(:first-child)::after { content: ""; position: absolute; left: -1px; width: 26px; height: 26px; border-radius: 50%; background: var(--olive); } /* left/top считаются от внутреннего края рамки: -1px = ровно середина пунктира толщиной 2px */
.fact:not(:first-child)::before { top: 0; transform: translate(-50%, -50%); }
.fact:not(:first-child)::after { bottom: 0; transform: translate(-50%, 50%); }
.fact .head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: var(--s); } /* заголовок слева, подпись справа — верх по одной линии, как в карточках кадров */
.fact .lab { font-size: var(--fs-small); color: var(--yellow); }
.fact b { display: block; font-family: var(--f-head); font-weight: 400; font-synthesis: none; text-transform: uppercase; font-size: clamp(36px, 3vw, 56px); line-height: .95; color: var(--white); }
.fact span { display: block; margin-top: auto; font-size: var(--fs-text); color: var(--soft); }
/* Расстояния между строками считаем по буквам, а не по пустым полям шрифта: 10px — это 10px видимых */
.fr .body > *, .fr .head > *, .fact .head > *, .fact span { text-box: trim-both cap alphabetic; }

/* ---------- Герои-гирлянда */

.garland { margin-top: var(--s); }
.garland img { display: block; width: 100%; height: auto; max-width: 100%; transform-origin: 50% 0; animation: sway 7s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-.5deg) translateY(0); } 50% { transform: rotate(.5deg) translateY(4px); } }
.names { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s); margin-top: var(--s); text-align: center; }
.names b { display: block; font-weight: 400; font-size: 20px; }
.names span { display: block; font-size: 16px; color: var(--soft); }

/* ---------- Афиша */
.rows { display: flex; flex-direction: column; gap: var(--s); }
.row { position: relative; display: grid; grid-template-columns: 320px minmax(0, 1.2fr) minmax(0, 1.3fr) 300px; align-items: center; gap: var(--s);
  background: var(--brown); border-radius: var(--r); padding: var(--out); }
.row .m { display: flex; flex-direction: column; gap: var(--s); font-family: var(--f-head); font-weight: 400; font-synthesis: none; text-transform: uppercase; font-size: clamp(36px, 3vw, 56px); line-height: .95; }
.row .m b { font-weight: 400; }
.row .m small { display: block; font-family: var(--f-text); font-weight: 400; font-size: 16px; letter-spacing: .1em; line-height: 1.3; opacity: .7; text-transform: none; }
.row .t { display: flex; flex-direction: column; gap: var(--s); font-size: 24px; line-height: 1.2; }
.row .t b { font-weight: 400; }
.row .t span { display: block; font-size: 16px; line-height: 1.3; opacity: .7; }
/* 20px между строками — по буквам, а не по пустым полям шрифта */
.row .m > *, .row .t > * { text-box: trim-both cap alphabetic; }
.dates { display: flex; flex-wrap: wrap; gap: var(--s); }
.dates span { font-size: var(--fs-small); line-height: 1.3; letter-spacing: .08em; border: 1.5px solid rgba(237,226,203,.35); border-radius: var(--r); padding: 4px 14px; white-space: nowrap; } /* типографика плашек, как у «фильм 2000 года» */
.dates em { font-style: normal; opacity: .65; margin-right: 6px; }
.st { justify-self: end; font-size: 16px; border-radius: var(--r); padding: 10px 18px; white-space: nowrap; text-decoration: none; }
.st.past { border: 1.5px solid rgba(237,226,203,.35); opacity: .8; }
.st.open { background: var(--white); color: var(--black); }
.st.soon { opacity: .7; }
.row.past { background: rgba(52,73,95,.55); }
.row.past .m, .row.past .t { opacity: .6; }
.row.now { background: var(--yellow); color: var(--black); }
.row.now .dates span { border-color: rgba(0,0,0,.4); }
.row .acts { justify-self: end; display: flex; align-items: center; gap: var(--s); }
.row .st.go {  min-height: 0; background: var(--black); color: var(--white); line-height: inherit; } /* размер как у «запись открыта», чёрная */
.row .tag { right: auto; left: var(--tag-x, auto); }
/* Афиша: полгода видно сразу, дальше — затуманенный край, по кнопке раскрывается остальное */
.js .more { position: relative; max-height: 90px; overflow: hidden; transition: max-height .8s cubic-bezier(.2,.8,.2,1); }
.js .more::after { content: ""; position: absolute; inset: 0; pointer-events: none; transition: opacity .5s; background: linear-gradient(to bottom, rgba(105, 97, 57, 0) 0%, var(--olive) 100%); }
.js .more.open::after { opacity: 0; }
.js .more:not(.open) + .more-btn { position: relative; z-index: 1; margin-top: -50px; }
.more-in > .rows { padding-top: var(--s); }
.more-btn { display: flex; width: fit-content; margin: var(--s) auto 0; background-color: transparent; color: var(--white); border: 1.5px solid rgba(237, 226, 203, .7); cursor: pointer; font-family: inherit; transition: margin-top .8s cubic-bezier(.2,.8,.2,1), --notch .35s cubic-bezier(.2,.8,.2,1), --ring .35s, transform .15s; }
.more-btn::after { content: ""; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.more-btn[aria-expanded="true"]::after { transform: translateY(3px) rotate(-135deg); }
.note { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s); margin-top: var(--s); font-size: 16px; color: var(--soft); }

/* ---------- Фотографии */
.gallery { display: grid; grid-template-columns: 3fr 1fr 1fr; grid-template-rows: 260px 260px; gap: var(--s); }
.gallery .slot { min-height: 0; }
.gallery .big { grid-row: 1 / 3; border: 0; background: #3c3a22 url(../img/photo.jpg) 50% 50% / cover no-repeat; color: var(--white); justify-content: flex-end; align-items: flex-start; padding: var(--out); }
.gallery .big span { background: var(--black); border-radius: var(--r); padding: 6px 14px; font-size: 16px; }

/* ---------- Подвал */
footer { background: var(--black); border-radius: var(--r); padding: var(--out); display: flex; flex-direction: column; gap: var(--s); }
.f-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s); }
.f-top .logo { height: 24px; }
.f-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s); font-size: 16px; color: var(--soft); }
.f-bot p { margin: 0; }

/* ---------- Адаптив */
@media (max-width: 1300px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .c-book { grid-column: 1 / 3; }
  .c-where { grid-column: 3 / 4; grid-row: 1; }
  .row { grid-template-columns: 250px minmax(0, 1fr) auto; }
  .row .dates { grid-column: 2 / -1; grid-row: 2; }
}
@media (max-width: 1200px) {
  .subs { position: static; transform: none; width: auto; max-width: none; min-height: 0; margin-top: auto; }
  .hero-bottom { margin-top: 0; }
}
@media (max-width: 900px) {
  .links { display: none; }
  /* планшет: реплики сверху, счёт и кнопки в одну строку */
  .hero-bottom { grid-template-columns: auto minmax(0, 1fr); }
  .hero-ctas { justify-content: flex-end; flex-wrap: wrap; }
  .lead { text-align: left; align-self: flex-start; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .c-book, .c-where { grid-column: auto; grid-row: auto; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact { border-left: 0; border-top: 2px dashed rgba(237, 226, 203, .35); }
  .fact:first-child { border-top: 0; }
  .fact:not(:first-child)::before, .fact:not(:first-child)::after { top: -1px; bottom: auto; }
  .fact:not(:first-child)::before { left: 0; transform: translate(-50%, -50%); }
  .fact:not(:first-child)::after { left: auto; right: 0; transform: translate(50%, -50%); }
  .reel .frames { grid-template-columns: minmax(0, 1fr); }
  .names { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s); }
  .row .t { grid-column: 1 / -1; }
  .row .dates { grid-column: 1 / -1; grid-row: auto; }
  .row .st { grid-column: 2; grid-row: 1; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 160px 160px; }
  .gallery .big { grid-column: 1 / -1; grid-row: 1; }
}
@media (max-width: 520px) {
  /* телефон: всё в одну колонку, меню компактнее */
  .hero { height: auto; min-height: calc(100svh - var(--out) * 2); }
  .hero-bottom { margin-top: auto; }
  .nav { gap: var(--s); }
  .tg { padding-inline: 0.75rem; }
  .hero-bottom { grid-template-columns: minmax(0, 1fr); }
  .hero-bottom .score, .hero-bottom .hero-ctas { justify-self: stretch; }
  .hero-media img { object-position: 50% 70%; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .score { justify-self: stretch; }
  .subs { display: none; }
  .c-book { flex-direction: column; }
  .c-book .cover { width: 62%; }
}

/* ---------- Неподвижное зерно поверх всего сайта */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: url(../img/grain.png) 0 0 / 220px 220px repeat;
  mix-blend-mode: soft-light;
  opacity: .9;
}

/* ---------- Микроанимации */
.hero-media img { animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.045) translateY(-6px); } }
h1 span { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
h1 span:nth-child(2) { animation-delay: .12s; }
h1 span:nth-child(3) { animation-delay: .24s; }
.lead { animation: rise .8s .34s cubic-bezier(.2,.8,.2,1) both; }
.hero-bottom { animation: rise .8s .44s cubic-bezier(.2,.8,.2,1) both; }
.subs { animation: rise-c .8s .4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise-c { from { transform: translate(-50%, 28px); opacity: .25; } to { transform: translateX(-50%); opacity: 1; } }
@media (max-width: 1200px) { .subs { animation-name: rise; } }
@keyframes rise { from { transform: translateY(28px); opacity: .25; } to { transform: none; opacity: 1; } }
.score .now { animation: pulse 2.4s ease-in-out infinite; }
.tag { animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(237,226,203,0); } 50% { box-shadow: 0 0 0 7px rgba(237,226,203,.28); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(52,73,95,.25); } }
.card, .fr, .fact, .row, .slot { transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s, background-color .25s; }
.slot:hover { border-color: var(--yellow); }
.in { animation: settle .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes settle { from { transform: translateY(22px); opacity: .35; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   Окно записи: настоящий билет по центру, как в кино.
   Большая часть с формой и корешок справа, между ними пунктир из дырочек
   и круглые выемки диаметром 26px сверху и снизу. Внутри тонкая рамка, как на бланке.
   Появляется, будто его принесло ветром.
   ========================================================= */
html { scrollbar-gutter: stable; }
html.modal-open { overflow: hidden; }
.signup { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: var(--out); border: 0; background: transparent; color: var(--black); overflow: hidden; perspective: 1400px; }
.signup[open] { display: grid; place-items: center; }
.signup::backdrop { background: rgba(0, 0, 0, .58); backdrop-filter: blur(3px); opacity: 0; transition: opacity .5s; }
.signup.open::backdrop { opacity: 1; }
.ticket { position: relative; width: min(980px, 100%); max-height: calc(100dvh - var(--out) * 2); display: flex; flex-direction: row; filter: drop-shadow(0 16px 28px rgba(0, 0, 0, .4)); }
.signup:not(.open):not(.leaving) .ticket { opacity: 0; }
.signup.open .ticket { animation: wind-in 1.5s cubic-bezier(.22, .61, .36, 1) both; transform-origin: 50% 60%; }
.signup.leaving .ticket { animation: wind-out .6s cubic-bezier(.5, 0, .9, .4) both; }
/* принесло ветром: влетает сверху справа, крутится, качается и оседает */
@keyframes wind-in {
  0%   { transform: translate3d(62vw, -42vh, 0) rotateZ(48deg) rotateX(70deg) rotateY(-40deg) scale(.55); opacity: 0; }
  16%  { opacity: 1; }
  34%  { transform: translate3d(24vw, 9vh, 0) rotateZ(-20deg) rotateX(-30deg) rotateY(24deg) scale(.86); }
  52%  { transform: translate3d(-5vw, -6vh, 0) rotateZ(11deg) rotateX(14deg) rotateY(-10deg) scale(1.03); }
  70%  { transform: translate3d(2vw, 2.5vh, 0) rotateZ(-5deg) rotateX(-6deg) rotateY(4deg) scale(.995); }
  86%  { transform: translate3d(-.6vw, -.6vh, 0) rotateZ(1.6deg) rotateX(2deg); }
  100% { transform: none; opacity: 1; }
}
@keyframes wind-out {
  0%   { transform: none; opacity: 1; }
  100% { transform: translate3d(-70vw, -36vh, 0) rotateZ(-38deg) rotateX(50deg) scale(.5); opacity: 0; }
}
.su-form { display: contents; }

/* бумага: тонкая горизонтальная линовка, как на бланке */
.tk-main, .tk-stub {
  position: relative; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .035) 0 1px, transparent 1px 3px), var(--white);
  display: flex; flex-direction: column; min-width: 0;
}
/* круглые выемки диаметром 26px сверху и снизу на линии отрыва */
.tk-main {
  flex: 1 1 auto; border-radius: var(--r) 0 0 var(--r); min-height: 0; overflow-y: auto;
  -webkit-mask: radial-gradient(circle at 100% 0, #0000 13px, #000 14px), radial-gradient(circle at 100% 100%, #0000 13px, #000 14px); -webkit-mask-composite: source-in;
          mask: radial-gradient(circle at 100% 0, #0000 13px, #000 14px), radial-gradient(circle at 100% 100%, #0000 13px, #000 14px); mask-composite: intersect;
}
.tk-stub {
  flex: 0 0 300px; border-radius: 0 var(--r) var(--r) 0; transform-origin: 0 0;
  -webkit-mask: radial-gradient(circle at 0 0, #0000 13px, #000 14px), radial-gradient(circle at 0 100%, #0000 13px, #000 14px); -webkit-mask-composite: source-in;
          mask: radial-gradient(circle at 0 0, #0000 13px, #000 14px), radial-gradient(circle at 0 100%, #0000 13px, #000 14px); mask-composite: intersect;
}
/* пунктир из дырочек по линии отрыва */
.tk-stub::after { content: ""; position: absolute; left: -4px; top: 13px; bottom: 13px; width: 8px; background: radial-gradient(circle, rgba(0, 0, 0, .38) 2.2px, transparent 2.7px) 0 0 / 8px 12px repeat-y; pointer-events: none; }
.tk-body, .su-done { display: flex; flex-direction: column; gap: var(--s); padding: var(--out); }
.tk-stub { padding: var(--out); gap: var(--s); }
.su-close { position: absolute; z-index: 3; top: var(--out); right: calc(300px + var(--out)); width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(0, 0, 0, .4); background: var(--white); cursor: pointer; }
.su-close::before, .su-close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; background: var(--black); transform: translate(-50%, -50%) rotate(45deg); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.su-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.su-close:hover::before { transform: translate(-50%, -50%) rotate(135deg); }
.su-close:hover::after { transform: translate(-50%, -50%) rotate(45deg); }
.su-head { display: flex; flex-direction: column; gap: var(--s); padding-right: 64px; }
.su-eyebrow { margin: 0; font-size: 16px; line-height: 1.3; color: rgba(0, 0, 0, .6); }
.su-head h2, .su-done h2 { margin: 0; font-size: clamp(34px, 3.4vw, 50px); line-height: .98; text-transform: uppercase; color: var(--black); font-weight: 400; }
.su-book { margin: 0; font-size: var(--fs-text); }
.su-field { display: flex; flex-direction: column; gap: var(--s); border: 0; padding: 0; margin: 0; min-width: 0; }
.su-field legend, .su-label { padding: 0; margin: 0; font-size: 16px; line-height: 1.3; color: rgba(0, 0, 0, .6); }
.su-two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s); }
.su-field input[type="text"] { font: inherit; font-size: 18px; color: var(--black); background: rgba(0, 0, 0, .07); border: 2px solid transparent; border-radius: 10px; padding: 14px 16px; width: 100%; }
.su-field input[type="text"]::placeholder { color: rgba(0, 0, 0, .4); }
.su-field input[type="text"]:focus { outline: none; border-color: var(--black); background: transparent; }
.su-legend { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: var(--s); }
.su-legend legend { float: none; }
.su-left { font-size: 16px; color: rgba(0, 0, 0, .65); }
.su-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 16px; border: 1.5px solid rgba(0, 0, 0, .45); border-radius: var(--r); font-size: var(--fs-small); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover span { background: var(--yellow); border-color: var(--black); color: var(--black); }
.chip input:checked + span { background: var(--black); color: var(--white); border-color: var(--black); }
.chip:hover input:checked + span { background: var(--black); color: var(--yellow); }
.chip input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.su-buy { display: flex; flex-direction: column; gap: var(--s); }
.su-seats { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.su-step { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(0, 0, 0, .45); background: transparent; font: inherit; font-size: 24px; line-height: 1; cursor: pointer; color: var(--black); }
.su-step:hover { background: var(--black); color: var(--white); }
.su-count { min-width: 32px; text-align: center; font-family: var(--f-head); font-size: 32px; line-height: 1; }
.su-total { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s); }
.su-total span { font-size: var(--fs-text); }
.su-total b { font-size: 40px; font-weight: 400; line-height: 1; }
.su-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; color: rgba(0, 0, 0, .7); cursor: pointer; }
.su-consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: #000; flex: none; }
.su-error { margin: 0; font-size: 16px; color: #b3261e; }
.su-submit { width: 100%; margin-top: auto; }
.su-submit:disabled { opacity: .7; cursor: progress; }
.su-demo { margin: 0; text-align: center; font-size: 16px; color: rgba(0, 0, 0, .55); }
.su-done { align-items: flex-start; }
.su-stamp { width: 130px; height: 130px; border-radius: 50%; border: 4px double #b3261e; color: #b3261e; display: grid; place-items: center; text-align: center; font-family: var(--f-head); font-size: 26px; line-height: 1; text-transform: uppercase; transform: rotate(-12deg) scale(0); }
.su-done:not([hidden]) .su-stamp { animation: stamp .6s .15s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes stamp { from { transform: rotate(-30deg) scale(2.2); opacity: 0; } to { transform: rotate(-12deg) scale(1); opacity: 1; } }
.su-summary { margin: 0; font-size: var(--fs-text); }
.su-note { margin: 0; color: rgba(0, 0, 0, .65); max-width: 52ch; }
.su-acts { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s); }
.su-link { font-size: var(--fs-text); color: var(--black); text-underline-offset: 4px; }
.su-crowd { align-self: stretch; display: flex; justify-content: center; height: 120px; overflow: hidden; margin: var(--s) calc(var(--out) * -1) calc(var(--out) * -1); }
.su-crowd img { height: 300px; width: auto; max-width: none; flex: none; margin-inline: -1px; opacity: .9; }
.su-error[hidden], .su-done[hidden], .tk-body[hidden], .tk-stub[hidden] { display: none; }

/* Отправка: корешок отрывается по пунктиру и улетает вправо-вниз, билет остаётся с печатью и рваным краем */
.ticket.tearing .tk-main { animation: tug .45s ease-in-out; }
@keyframes tug { 25% { transform: translateX(-8px) rotate(-.5deg); } 55% { transform: translateX(3px) rotate(.3deg); } }
.tk-stub { transition: transform 1s cubic-bezier(.55, 0, .85, .35), opacity 1s ease-in; }
.ticket.tearing .tk-stub { transform: translate(120px, 190px) rotate(18deg); opacity: 0; transition-delay: .22s; }
.ticket.torn .tk-main {
  -webkit-mask: none; mask: none; border-radius: var(--r);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 0.00%, calc(100% - 9px) 3.85%, 100% 7.69%, calc(100% - 9px) 11.54%, 100% 15.38%, calc(100% - 9px) 19.23%, 100% 23.08%, calc(100% - 9px) 26.92%, 100% 30.77%, calc(100% - 9px) 34.62%, 100% 38.46%, calc(100% - 9px) 42.31%, 100% 46.15%, calc(100% - 9px) 50.00%, 100% 53.85%, calc(100% - 9px) 57.69%, 100% 61.54%, calc(100% - 9px) 65.38%, 100% 69.23%, calc(100% - 9px) 73.08%, 100% 76.92%, calc(100% - 9px) 80.77%, 100% 84.62%, calc(100% - 9px) 88.46%, 100% 92.31%, calc(100% - 9px) 96.15%, 100% 100.00%, 0 100%);
  padding-right: 9px;
}

/* узкий экран: билет стоит вертикально, корешок снизу */
@media (max-width: 760px) {
  .ticket { flex-direction: column; width: min(460px, 100%); }
  .tk-main { border-radius: var(--r) var(--r) 0 0; flex: 1 1 auto;
    -webkit-mask: radial-gradient(circle at 0 100%, #0000 13px, #000 14px), radial-gradient(circle at 100% 100%, #0000 13px, #000 14px); -webkit-mask-composite: source-in;
            mask: radial-gradient(circle at 0 100%, #0000 13px, #000 14px), radial-gradient(circle at 100% 100%, #0000 13px, #000 14px); mask-composite: intersect; }
  .tk-stub { flex: none; border-radius: 0 0 var(--r) var(--r);
    -webkit-mask: radial-gradient(circle at 0 0, #0000 13px, #000 14px), radial-gradient(circle at 100% 0, #0000 13px, #000 14px); -webkit-mask-composite: source-in;
            mask: radial-gradient(circle at 0 0, #0000 13px, #000 14px), radial-gradient(circle at 100% 0, #0000 13px, #000 14px); mask-composite: intersect; }
  .tk-stub::after { left: 13px; right: 13px; top: -4px; bottom: auto; width: auto; height: 8px; background: radial-gradient(circle, rgba(0, 0, 0, .38) 2.2px, transparent 2.7px) 0 0 / 12px 8px repeat-x; }
  .ticket.tearing .tk-stub { transform: translate(40px, 200px) rotate(14deg); }
  .su-two { grid-template-columns: 1fr; }
  .ticket.torn .tk-main { clip-path: none; padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) { .signup.open .ticket, .signup.leaving .ticket { animation: none; } .tk-stub, .signup::backdrop { transition: none; } .ticket.tearing .tk-main { animation: none; } }

/* Кнопки-<button> без рамки браузера */
button.btn { border: 0; font-family: inherit; }
/* Типографика билета: расстояния между строками считаются по буквам, как на остальном сайте */
.su-eyebrow, .su-head h2, .su-book, .su-field legend, .su-label, .su-left, .su-consent > span, .su-demo, .su-error, .su-total span, .su-total b, .su-summary, .su-note, .su-done h2 { text-box: trim-both cap alphabetic; }
.su-head { padding-right: 64px; }
.su-legend { gap: var(--s); }
.su-chips { gap: 10px; }
.su-consent { gap: 10px; }
.su-buy { gap: var(--s); }

/* Герой, которого уже открывали: затемнён и «шумит», как экран телевизора без сигнала */
.rf.seen img { filter: brightness(.6) contrast(1.15) saturate(.5); transition: filter .5s; }
.rf::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--fh); pointer-events: none; opacity: 0; transition: opacity .5s;
  -webkit-mask: var(--src) center / 100% 100% no-repeat; mask: var(--src) center / 100% 100% no-repeat;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .5) 0 1px, transparent 1px 3px), url(../img/grain.png) 0 0 / 130px 130px;
  animation: tv-noise .45s steps(1) infinite; }
.rf.seen::before { opacity: .75; }
@keyframes tv-noise {
  0% { background-position: 0 0, 0 0; } 20% { background-position: 0 1px, -37px 21px; } 40% { background-position: 0 2px, 52px -33px; }
  60% { background-position: 0 0, -18px 64px; } 80% { background-position: 0 1px, 71px 9px; } 100% { background-position: 0 2px, -60px -45px; }
}
@media (prefers-reduced-motion: reduce) { .rf::before { animation: none; } }
button.btn.more-btn { border: 1.5px solid rgba(237, 226, 203, .7); } /* у кнопки-контура рамка остаётся */

.ticket.torn .su-close { right: 29px; }
@media (max-width: 760px) { .su-close { right: var(--out); top: var(--out); } }

/* высота фигур хоровода (потерялась при откате, из-за этого хоровод был гигантским и серым) */

/* =========================================================
   Хоровод: одно полотно, все фигуры держатся за руки и бегут бегущей строкой.
   Поверх каждой фигуры невидимая кнопка: нажми, и герой откроется отдельно.
   ========================================================= */
.rondo { --fh: clamp(280px, 26vw, 420px); overflow: hidden; margin-top: var(--s); padding-block: var(--s); }
.rondo-track { display: flex; width: max-content; animation: rondo 100s linear infinite; }
.rondo.paused .rondo-track, .rondo:hover .rondo-track { animation-play-state: paused; }
.rondo-set { position: relative; flex: none; display: flex; align-items: flex-start; height: calc(var(--fh) + 96px); }
.gl-wrap { position: relative; flex: none; width: calc(var(--fh) * 6.0683); height: 100%; }
.gl { display: block; width: 100%; height: var(--fh); max-width: none; }
/* граница круга: хлопушка «Конец сезона», после неё хоровод начинается заново */
.rondo-end { position: relative; flex: none; width: calc(var(--fh) * .95); height: 100%; }
.clap { position: absolute; left: 8%; top: calc(var(--fh) * .34); width: 84%; height: auto; overflow: visible; transform: rotate(4deg); filter: drop-shadow(1px 3px 2px rgba(0, 0, 0, .35)) drop-shadow(0 10px 12px rgba(0, 0, 0, .28)); }
.rondo-end .rf-cap { left: 50%; }
.gb { position: absolute; top: 0; height: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gb:focus-visible { outline: none; }
.gb-hit { position: absolute; left: 0; right: 0; top: 0; height: var(--fh); }
/* заливка по силуэту: жёлтый слой вырезается самой фигурой */
.gb-hit::after { content: ""; position: absolute; inset: 0; background: var(--yellow); -webkit-mask: var(--src) center / 100% 100% no-repeat; mask: var(--src) center / 100% 100% no-repeat; opacity: 0; transition: opacity .3s; pointer-events: none; }
.gb:hover .gb-hit::after, .gb:focus-visible .gb-hit::after, .gb.on .gb-hit::after { opacity: .88; }
/* герой, которого уже открывали: затемнён и «шумит», как экран телевизора без сигнала */
.gb-hit::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
  -webkit-mask: var(--src) center / 100% 100% no-repeat; mask: var(--src) center / 100% 100% no-repeat;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .5) 0 1px, transparent 1px 3px), url(../img/grain.png) 0 0 / 130px 130px, linear-gradient(rgba(18, 24, 34, .55), rgba(18, 24, 34, .55));
  animation: tv-noise .45s steps(1) infinite; }
.gb.seen .gb-hit::before { opacity: .85; }
@keyframes tv-noise {
  0% { background-position: 0 0, 0 0, 0 0; } 20% { background-position: 0 1px, -37px 21px, 0 0; } 40% { background-position: 0 2px, 52px -33px, 0 0; }
  60% { background-position: 0 0, -18px 64px, 0 0; } 80% { background-position: 0 1px, 71px 9px, 0 0; } 100% { background-position: 0 2px, -60px -45px, 0 0; }
}
.rf-cap { position: absolute; top: calc(var(--fh) + var(--s)); left: var(--cx, 50%); transform: translateX(-50%); width: max-content; max-width: 180px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; text-wrap: balance; pointer-events: none; }
.rf-cap b { font-weight: 400; font-size: var(--fs-small); line-height: 1.3; color: var(--white); transition: color .25s; }
.rf-cap span { font-size: var(--fs-small); line-height: 1.3; color: var(--soft); }
.gb:hover .rf-cap b, .gb:focus-visible .rf-cap b, .gb.on .rf-cap b { color: var(--yellow); }
@keyframes rondo { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .rondo { overflow-x: auto; } .gb-hit::before { animation: none; } }


.hero-view { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--black); overflow: hidden; }
.hero-view[open] { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--out); padding: var(--out); }
.hero-view::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(4px); opacity: 0; transition: opacity .45s; }
.hero-view.open::backdrop { opacity: 1; }
.hv-stage { position: relative; display: grid; place-items: center; min-height: 0; border-radius: var(--r); background: radial-gradient(ellipse at 50% 45%, rgba(241, 188, 75, .38), rgba(241, 188, 75, 0) 62%); }
.hv-img { display: block; height: min(100%, 940px); width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .5)); will-change: transform; }
.hv-card { position: relative; background: var(--white); border-radius: var(--r); padding: var(--out) calc(var(--out) + 8px); display: flex; flex-direction: column; gap: var(--s); overflow-y: auto; min-height: 0;
  -webkit-mask: radial-gradient(circle at 0 20px, #0000 11px, #000 12px) 0 0 / 100% 40px repeat-y, radial-gradient(circle at 100% 20px, #0000 11px, #000 12px) 0 0 / 100% 40px repeat-y; -webkit-mask-composite: source-in;
          mask: radial-gradient(circle at 0 20px, #0000 11px, #000 12px) 0 0 / 100% 40px repeat-y, radial-gradient(circle at 100% 20px, #0000 11px, #000 12px) 0 0 / 100% 40px repeat-y; mask-composite: intersect; }
.hv-close { position: absolute; top: var(--out); right: calc(var(--out) + 8px); width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(0, 0, 0, .4); background: var(--white); cursor: pointer; z-index: 2; }
.hv-close::before, .hv-close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; background: var(--black); transform: translate(-50%, -50%) rotate(45deg); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.hv-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.hv-close:hover::before { transform: translate(-50%, -50%) rotate(135deg); }
.hv-close:hover::after { transform: translate(-50%, -50%) rotate(45deg); }
.hv-head { display: flex; flex-direction: column; gap: var(--s); padding-right: 60px; }
.hv-eyebrow { margin: 0; font-size: 16px; line-height: 1.3; color: rgba(0, 0, 0, .6); }
.hv-head h2 { margin: 0; font-size: clamp(40px, 4.4vw, 68px); line-height: .96; text-transform: uppercase; font-weight: 400; color: var(--black); }
.hv-book { margin: 0; font-size: 24px; line-height: 1.2; }
.hv-blurb { margin: 0; font-size: var(--fs-text); }
.hv-facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: var(--s) var(--out); align-items: baseline; padding-block: var(--s); border-block: 2px dashed rgba(0, 0, 0, .3); }
.hv-facts dt { font-size: 16px; color: rgba(0, 0, 0, .6); }
.hv-facts dd { margin: 0; font-size: var(--fs-text); }
.hv-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s); }
.hv-slot { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; border: 1.5px dashed rgba(0, 0, 0, .35); display: grid; place-items: center; text-align: center; padding: var(--s); font-size: 16px; color: rgba(0, 0, 0, .5); background: repeating-linear-gradient(135deg, rgba(0, 0, 0, .04) 0 12px, transparent 12px 24px); }
.hv-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hv-slot.has { border: 0; }
.hv-foot { margin-top: auto; display: flex; align-items: center; gap: var(--s); flex-wrap: wrap; }
.hv-nav { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(0, 0, 0, .45); background: transparent; font: inherit; font-size: 20px; cursor: pointer; color: var(--black); }
.hv-nav:hover { background: var(--black); color: var(--white); }
.hv-count { font-size: 16px; color: rgba(0, 0, 0, .6); min-width: 52px; text-align: center; }
.hv-link { margin-left: auto; font-size: var(--fs-text); color: var(--black); text-underline-offset: 4px; }
.hv-card > * { animation: hv-in .5s cubic-bezier(.2, .8, .2, 1) both; }
.hv-card > *:nth-child(3) { animation-delay: .05s; } .hv-card > *:nth-child(4) { animation-delay: .1s; } .hv-card > *:nth-child(5) { animation-delay: .15s; } .hv-card > *:nth-child(6) { animation-delay: .2s; }
@keyframes hv-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .hero-view[open] { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 30dvh) minmax(0, 1fr); }
  .hv-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .hv-card > * { animation: none; } }

/* ---------- Футер: адрес под логотипом, по центру прощание и катушка-стикер ---------- */
footer { background: var(--black); border-radius: var(--r); padding: var(--out); display: flex; flex-direction: column; gap: var(--s); }
.f-main { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--s); }
.f-brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s); }
.f-brand .logo { height: 24px; }
.f-brand p { margin: 0; font-size: var(--fs-small); line-height: 1.3; color: var(--soft); }
.f-bye { display: flex; flex-direction: column; align-items: center; gap: var(--s); text-align: center; }
.f-bye p { margin: 0; }
.f-bye-t { font-size: clamp(30px, 3vw, 46px); line-height: 1; text-transform: uppercase; color: var(--white); max-width: 14ch; }
.f-bye-s { font-size: var(--fs-small); line-height: 1.3; color: var(--soft); max-width: 30ch; }
.f-cta { justify-self: end; }
.reel-sticker { width: 120px; height: 120px; flex: none; transform: rotate(-9deg); filter: drop-shadow(0 0 0 #fff) drop-shadow(0 0 2px rgba(255, 255, 255, .9)) drop-shadow(0 6px 8px rgba(0, 0, 0, .55)); }
.reel-spin { transform-origin: 100px 100px; animation: reel-turn 24s linear infinite; }
@keyframes reel-turn { to { transform: rotate(360deg); } }
.f-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s); font-size: 16px; line-height: 1.3; color: var(--soft); border-top: 2px dashed rgba(237, 226, 203, .3); padding-top: var(--s); }
.f-bot p { margin: 0; }
.f-brand p, .f-bye-t, .f-bye-s, .f-bot p { text-box: trim-both cap alphabetic; }
@media (max-width: 860px) {
  .f-main { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .f-brand { align-items: center; }
  .f-cta { justify-self: center; }
  .f-bot { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .reel-spin { animation: none; } }

/* ---------- «Билет воображаемый»: компактно, без лишнего места ---------- */
.ticket { transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.ticket.torn { width: min(600px, 100%); }
.su-done { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: var(--s); row-gap: var(--s); align-items: start; padding: var(--out); }
.su-done > * { grid-column: 2; }
.su-done .su-stamp { grid-column: 1; grid-row: 1 / span 4; width: 96px; height: 96px; font-size: 18px; border-width: 3px; }
.su-done h2 { font-family: var(--f-text); font-size: 28px; line-height: 1.1; text-transform: none; }
.su-done .su-summary { font-size: var(--fs-text); }
.su-done .su-note { font-size: var(--fs-small); }
.su-crowd { display: none; }
@media (max-width: 560px) { .su-done { grid-template-columns: minmax(0, 1fr); } .su-done > *, .su-done .su-stamp { grid-column: 1; grid-row: auto; } }

/* Футер пониже: катушка слева от прощальной фразы, всё в одну строку */
.f-bye { flex-direction: row; text-align: left; gap: var(--s); }
.f-bye-txt { display: flex; flex-direction: column; gap: var(--s); }
.f-bye-t { max-width: none; font-size: clamp(26px, 2.6vw, 40px); }
.f-bye-s { max-width: none; }
.reel-sticker { width: 96px; height: 96px; }
@media (max-width: 860px) { .f-bye { flex-direction: column; text-align: center; } .f-bye-txt { align-items: center; } }

/* ---------- Хоровод: быстрее, подсветка фигуры при наведении ---------- */
.rondo-track { animation-duration: 60s; }
/* наведение: поверх фигуры её же копия, окрашенная в тёплый жёлтый, с сиянием и лёгким увеличением */
.gb-hit::after { background: var(--src) center / 100% 100% no-repeat; -webkit-mask: none; mask: none; transform-origin: 50% 100%; transform: scale(1);
  filter: sepia(1) saturate(3.4) hue-rotate(-6deg) brightness(1.06) drop-shadow(0 0 14px rgba(241, 188, 75, .85)); transition: opacity .3s, transform .35s cubic-bezier(.2, .8, .2, 1); }
.gb:hover .gb-hit::after, .gb:focus-visible .gb-hit::after, .gb.on .gb-hit::after { opacity: 1; transform: scale(1.035); }

/* ---------- Карточка героя: без прокрутки, фигура по центру ---------- */
.hv-card { overflow: hidden; padding: var(--out) 28px; }
.hv-head h2 { font-size: clamp(30px, 5.6vh, 64px); }
.hv-book { font-size: clamp(18px, 2.6vh, 24px); }
.hv-photos { flex: 1 1 0; min-height: 80px; grid-template-rows: minmax(0, 1fr); }
.hv-slot { aspect-ratio: auto; height: 100%; }
.hv-img { height: calc(var(--hs, 1) * min(100dvh - var(--out) * 2 - 40px, 940px)); }
.hv-stage { align-content: center; }
@media (max-height: 820px) {
  .hv-card { gap: 14px; padding-block: 16px; }
  .hv-blurb { font-size: 16px; }
  .hv-facts { gap: 8px var(--out); padding-block: 12px; }
}
@media (max-height: 700px) { .hv-eyebrow, .hv-facts dt { font-size: 14px; } .hv-photos { display: none; } }

/* ---------- Хоровод замкнут: рука Коралины касается руки Дэвида ---------- */
/* у полотна 51px пустого поля с краёв исходника (это 0.04 высоты), поэтому копии заходят друг на друга ровно настолько, чтобы руки соприкоснулись */
.rondo-set { margin-right: calc(var(--fh) * -0.04); }
.rondo-end { display: none; }
@keyframes rondo { to { transform: translateX(calc(var(--fh) * -6.0283)); } }

/* ---------- Рука, которая крутит хоровод ---------- */
.rondo { position: relative; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.rondo.dragging { cursor: grabbing; }
.rondo.js-rondo .rondo-track { animation: none; will-change: transform; }
.rondo-hand { position: absolute; z-index: 3; left: -14px; top: calc(var(--fh) * .12); width: 96px; padding: 0; border: 0; background: none; color: var(--white); font: inherit; cursor: grab; display: flex; flex-direction: column; align-items: center; gap: 6px; touch-action: none; transform: rotate(-14deg); transform-origin: 50% 100%; transition: transform .3s cubic-bezier(.2, .8, .2, 1); animation: hand-nudge 3.2s ease-in-out infinite; }
.rondo-hand svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(1px 3px 2px rgba(0, 0, 0, .35)) drop-shadow(0 10px 12px rgba(0, 0, 0, .28)); }
.rondo-hand-t { font-size: var(--fs-small); line-height: 1.3; color: var(--soft); }
.rondo-hand:hover, .rondo-hand:focus-visible, .rondo.dragging .rondo-hand { transform: rotate(-4deg) scale(1.06); animation: none; }
.rondo-hand:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; border-radius: 12px; }
@keyframes hand-nudge { 0%, 100% { transform: rotate(-14deg) translateX(0); } 50% { transform: rotate(-9deg) translateX(10px); } }
@media (prefers-reduced-motion: reduce) { .rondo-hand { animation: none; } }

/* ---------- Хоровод: каждая фигура своей картинкой, чтобы подпрыгивать при наведении ---------- */
.gb-hit { left: -.5px; right: -.5px; background: var(--src) center / 100% 100% no-repeat; }
.gb-hit::after { display: none; }
.gb:hover .gb-hit, .gb:focus-visible .gb-hit { animation: hop .75s cubic-bezier(.3, 0, .5, 1) infinite; filter: drop-shadow(0 0 14px rgba(241, 188, 75, .9)) brightness(1.06); }
.gb.on .gb-hit { filter: drop-shadow(0 0 14px rgba(241, 188, 75, .9)) brightness(1.06); }
@keyframes hop { 0%, 100% { transform: translateY(0) rotate(0); } 42% { transform: translateY(-18px) rotate(-1.2deg); } 68% { transform: translateY(0) rotate(.6deg); } 84% { transform: translateY(-5px) rotate(0); } }
@media (prefers-reduced-motion: reduce) { .gb:hover .gb-hit, .gb:focus-visible .gb-hit { animation: none; transform: translateY(-8px); } }

/* ---------- Карточка героя: сплошная, без выемок по бокам ---------- */
.hv-card { -webkit-mask: none; mask: none; }
.hv-slot img { object-position: 50% 0; }

/* ---------- Переворот: бумажный герой оказывается раскрашенным ---------- */
.hv-stage { perspective: 1800px; }
.hv-flip { display: grid; place-items: center; transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(.3, .8, .25, 1); will-change: transform; }
.hv-flip > img { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.hv-color { display: none; height: calc(var(--hs, 1) * min(100dvh - var(--out) * 2 - 40px, 940px)); width: auto; max-width: 100%; object-fit: contain; transform: rotateY(180deg); filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .5)); }
.hv-flip.has-color .hv-color { display: block; }
.hv-flip.flipped { transform: rotateY(180deg); }

/* ---------- Хоровод: без затемнения, подпрыгивает целая фигура из пака ---------- */
.gb-hit::before, .gb.seen .gb-hit::before { display: none; }   /* затемнение «уже открывали» убрано */
.gf { position: absolute; top: 0; height: var(--fh); background: center / 100% 100% no-repeat; opacity: 0; pointer-events: none; transform-origin: 50% 100%; z-index: 2; }
/* при наведении вместо обрезанного куска полотна прыгает полная фигура с целыми руками */
.gb:hover .gb-hit, .gb:focus-visible .gb-hit, .gb.on .gb-hit { opacity: 0; animation: none; filter: none; }
.gb:hover .gf, .gb:focus-visible .gf, .gb.on .gf { opacity: 1; animation: hop .75s cubic-bezier(.3, 0, .5, 1) infinite; filter: drop-shadow(0 0 14px rgba(241, 188, 75, .9)) brightness(1.05); }
.gb.on .gf { animation: none; }
@media (prefers-reduced-motion: reduce) { .gb:hover .gf, .gb:focus-visible .gf { animation: none; transform: translateY(-8px); } }

/* ---------- Переворот быстрее ---------- */
.hv-flip { transition-duration: .6s; }

/* ---------- Строка афиши, к которой привёл герой: пару раз мигает жёлтой рамкой ---------- */
.row.flash { animation: row-flash 1.1s ease-in-out 3; }
@keyframes row-flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(241, 188, 75, 0); } 50% { box-shadow: 0 0 0 5px var(--yellow), 0 0 24px rgba(241, 188, 75, .6); } }
@media (prefers-reduced-motion: reduce) { .row.flash { animation: none; box-shadow: 0 0 0 5px var(--yellow); } }

/* ---------- Окно записи: акцент на книге, поля к низу, «6 мест» заметнее, галочка-контур ---------- */
.su-lead { margin: 0; font-family: var(--f-text); font-weight: 400; font-size: 20px; line-height: 1.25; text-transform: none; color: var(--black); text-box: trim-both cap alphabetic; }
.su-book { display: flex; flex-direction: column; gap: var(--s); }
.su-month { font-size: 16px; line-height: 1.3; color: rgba(0, 0, 0, .6); text-box: trim-both cap alphabetic; }
.su-name { font-size: clamp(38px, 4.2vw, 60px); line-height: .95; font-weight: 400; text-transform: uppercase; color: var(--black); text-box: trim-both cap alphabetic; }
.su-author { font-size: var(--fs-text); line-height: 1.3; text-box: trim-both cap alphabetic; }
.tk-body { flex: 1 1 auto; }
.tk-body .su-two { margin-top: auto; }
.su-left b { background: var(--black); color: var(--white); border-radius: var(--r); padding: 3px 12px; font-weight: 400; white-space: nowrap; }
.su-left { color: var(--black); }
.su-consent { align-items: flex-start; }
.su-consent input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: -4px 0 0; border: 1.5px solid rgba(0, 0, 0, .65); border-radius: 6px; background: transparent; display: grid; place-content: center; cursor: pointer; transition: border-color .2s; }
.su-consent input::before { content: ""; width: 10px; height: 5px; border-left: 2px solid var(--black); border-bottom: 2px solid var(--black); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; transition: opacity .15s; }
.su-consent input:checked { border-color: var(--black); }
.su-consent input:checked::before { opacity: 1; }
.su-consent input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---------- Подсказка про вращение: спокойная, «системная», в углу блока ---------- */
.rondo { padding-bottom: 68px; }
.rondo-hand { left: auto; top: auto; right: 0; bottom: 0; width: auto; flex-direction: row; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid rgba(237, 226, 203, .35); border-radius: 10px; background: rgba(0, 0, 0, .22); transform: none; animation: none; }
.rondo-hand svg { width: 22px; height: auto; filter: none; }
.rondo-hand svg .hand-paper { fill: var(--white); }
.rondo-hand:hover, .rondo-hand:focus-visible, .rondo.dragging .rondo-hand { transform: none; border-color: rgba(237, 226, 203, .7); background: rgba(0, 0, 0, .35); }
.rondo-hand-t { font-size: var(--fs-small); line-height: 1.3; color: var(--soft); white-space: nowrap; }

/* ---------- Хоровод целиком из фигур пака: у всех героев руки целые, а не обрезанные по стыкам полотна ---------- */
.gb-hit { background: none; }
.gf { opacity: 1; z-index: 1; }
.gb:hover, .gb:focus-visible, .gb.on { z-index: 3; }
.gb:hover .gf, .gb:focus-visible .gf, .gb.on .gf { opacity: 1; }

/* строка афиши, к которой привёл герой, светится так же, как плашка «Ближайшая» */
.row.flash { animation: breathe 3.2s ease-in-out 2; }
@media (prefers-reduced-motion: reduce) { .row.flash { animation: none; box-shadow: 0 0 0 7px rgba(237, 226, 203, .28); } }
/* «Займи место на диване» обычным шрифтом (перебивает общий стиль заголовков билета) */
.su-head h2.su-lead { font-family: var(--f-text); font-size: 20px; line-height: 1.25; text-transform: none; font-weight: 400; letter-spacing: 0; }

/* ---------- Окно записи: печать «Это концепт» по контуру билета, заходит на фон ---------- */
.ink-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ticket > .su-stamp { position: absolute; z-index: 6; right: -48px; bottom: -40px; width: 150px; height: 150px; border: 5px double #b3261e; border-radius: 50%; color: #b3261e; display: none; place-items: center; text-align: center;
  font-family: var(--f-head); font-size: 28px; line-height: 1; text-transform: uppercase; transform: rotate(-14deg); opacity: .92; filter: url(#ink); pointer-events: none; }
.ticket.torn > .su-stamp { display: grid; animation: stamp-press .55s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes stamp-press { from { transform: rotate(-32deg) scale(2.4); opacity: 0; } to { transform: rotate(-14deg) scale(1); opacity: .92; } }
.su-done { grid-template-columns: minmax(0, 1fr); }
.su-done > * { grid-column: 1; }
@media (prefers-reduced-motion: reduce) { .ticket.torn > .su-stamp { animation: none; } }

/* согласие прижато к кнопке, «Итого» остаётся наверху */
.tk-stub .su-consent { margin-top: auto; margin-bottom: -10px; }
.tk-stub .su-submit { margin-top: 0; }

/* ---------- Карточка героя: обложка книги сверху справа, напротив заголовка ---------- */
.hv-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s); padding-right: 64px; }
.hv-top .hv-head { padding-right: 0; min-width: 0; }
.hv-cover { flex: none; width: clamp(84px, 11vh, 116px); aspect-ratio: 543 / 850; border-radius: 10px; overflow: hidden; display: grid; place-items: center; text-align: center; font-size: 16px; line-height: 1.2; color: rgba(0, 0, 0, .5);
  border: 1.5px dashed rgba(0, 0, 0, .35); background: repeating-linear-gradient(135deg, rgba(0, 0, 0, .04) 0 12px, transparent 12px 24px); }
.hv-cover.has { border: 0; background: none; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6); }
.hv-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* обложка тянется от верха заголовка до низа описания */
.hv-top { align-items: stretch; }
.hv-left { display: flex; flex-direction: column; gap: var(--s); flex: 1 1 auto; min-width: 0; }
.hv-cover { width: 110px; height: auto; aspect-ratio: auto; align-self: stretch; }

/* ---------- Переворот заметнее: фигура подлетает, делает полтора оборота и оказывается раскрашенной ---------- */
.hv-flip { transition: none; }
.hv-flip.flipped { animation: flip-reveal 1s cubic-bezier(.3, .75, .3, 1) both; }
@keyframes flip-reveal {
  0%   { transform: translateY(0) rotateY(0deg) scale(1); }
  30%  { transform: translateY(-34px) rotateY(230deg) scale(1.08); }
  68%  { transform: translateY(-14px) rotateY(430deg) scale(1.05); }
  100% { transform: translateY(0) rotateY(540deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .hv-flip.flipped { animation: none; transform: rotateY(180deg); } }

/* ---------- Карточки героев: то же зерно, что на странице (диалог лежит над страницей, поэтому своё) ---------- */
.hero-view::after, .signup::after { content: ""; position: fixed; inset: 0; z-index: 20; pointer-events: none; background: url(../img/grain.png) 0 0 / 220px 220px repeat; mix-blend-mode: soft-light; opacity: .9; }

/* ---------- Стрелки листания: графичные, с жёсткой тенью, как штамп ---------- */
.hv-nav { width: 46px; height: 46px; padding: 0; border: 1.5px solid var(--black); border-radius: 8px; background: var(--white); color: var(--black); display: grid; place-items: center; cursor: pointer; box-shadow: 3px 3px 0 var(--black); transition: transform .15s, box-shadow .15s, background-color .2s, color .2s; }
.hv-nav svg { width: 22px; height: 22px; transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.hv-nav:hover { background: var(--black); color: var(--yellow); }
.hv-nav[data-hv-prev]:hover svg { transform: translateX(-3px); }
.hv-nav[data-hv-next]:hover svg { transform: translateX(3px); }
.hv-nav:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--black); }
.hv-nav:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* ---------- Переворот плавнее: один чистый поворот на 180°, с лёгким подъёмом ---------- */
.hv-flip.flipped { animation: flip-smooth 1.15s both; }
@keyframes flip-smooth {
  0%   { transform: translateY(0) rotateY(0deg) scale(1); animation-timing-function: cubic-bezier(.45, .05, .55, 1); }
  50%  { transform: translateY(-22px) rotateY(90deg) scale(1.05); animation-timing-function: cubic-bezier(.45, .05, .55, 1); }
  100% { transform: translateY(0) rotateY(180deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .hv-flip.flipped { animation: none; transform: rotateY(180deg); } }

/* ---------- Хоровод: при наведении вместо бумажной вырезки появляется разрисованный герой и подпрыгивает ---------- */
.gk { position: absolute; top: calc(var(--fh) * -.0094); height: calc(var(--fh) * 1.0188); background: center / 100% 100% no-repeat; opacity: 0; pointer-events: none; z-index: 2; transform-origin: 50% 100%; transition: opacity .25s; }
.gb:hover .gf, .gb:focus-visible .gf, .gb.on .gf { opacity: 0; animation: none; filter: none; }
.gb:hover .gk, .gb:focus-visible .gk, .gb.on .gk { opacity: 1; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35)); }
.gb:hover .gk, .gb:focus-visible .gk { animation: hop .75s cubic-bezier(.3, 0, .5, 1) infinite; }
@media (prefers-reduced-motion: reduce) { .gb:hover .gk, .gb:focus-visible .gk { animation: none; transform: translateY(-8px); } }

/* ---------- Последний блок: вместо картинки живое видео (без звука, по кругу) ---------- */
.gallery .big { position: relative; overflow: hidden; }
.big-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .big span { position: relative; z-index: 1; }

/* ---------- Последний блок: видео в прежней ячейке, слегка приближено, верх подрезан (без болтающейся книги) ---------- */
.big-video { top: 0; bottom: auto; height: 100%; object-position: 50% 40%; }   /* новое видео: книга на ногах спокойна, подрезка сверху не нужна */

/* ---------- Последний блок: настоящее фото вместо пустой рамки ---------- */
.slot.has-photo { padding: 0; border: 0; background: none; overflow: hidden; }
.slot.has-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: var(--r); }

/* ---------- Хоровод: при наведении герой подпрыгивает один раз и остаётся на месте ---------- */
.gb:hover .gk, .gb:focus-visible .gk { animation: hop .75s cubic-bezier(.3, 0, .5, 1) 1 both; }
@media (prefers-reduced-motion: reduce) { .gb:hover .gk, .gb:focus-visible .gk { animation: none; transform: none; } }

/* ---------- Карточка героя: фраза (слова выходят по очереди, слева растёт полоска) ---------- */
.hv-quote { margin: 0; position: relative; padding: 0 0 0 22px; display: flex; flex-direction: column; gap: 10px; }
.hv-quote::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 4px; border-radius: 2px; background: var(--black); transform-origin: 50% 0; transform: scaleY(0); }
.hv-quote.go::before { animation: q-bar .6s cubic-bezier(.2, .8, .2, 1) forwards; }
.hv-say { margin: 0; font-size: clamp(18px, 2.7vh, 22px); line-height: 1.3; color: var(--black); }
.hv-say .w { display: inline-block; opacity: 0; transform: translateY(8px); }
.hv-quote.go .hv-say .w { animation: q-word .5s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i) * 45ms + 300ms); }
.hv-src { font-style: normal; font-size: 16px; line-height: 1.3; color: rgba(0, 0, 0, .6); opacity: 0; }
.hv-quote.go .hv-src { animation: q-word .5s ease-out forwards; animation-delay: calc(var(--n) * 45ms + 500ms); }
@keyframes q-bar { to { transform: scaleY(1); } }
@keyframes q-word { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hv-quote::before { transform: none; } .hv-say .w, .hv-src { opacity: 1; transform: none; animation: none !important; } }
@media (max-height: 820px) { .hv-quote { gap: 6px; } }

/* =========================================================
   Правки: окно записи, ссылки, единый набор кнопок, видео вполовину, фраза героя в облачке
   ========================================================= */
.tk-stub .su-consent { margin-bottom: 0; }                                /* согласие ↔ кнопка: полный отступ 20 */
.su-done h2, .su-done .su-summary { padding-right: 64px; }               /* крестик не заходит на строки */
.ticket > .su-stamp { right: -15px; }                                    /* слова на билете, круг выступает */
.su-link, .f-tg { color: inherit; text-underline-offset: 4px; }
.su-link:hover, .f-tg:hover { color: var(--yellow); }
.su-link:hover { color: var(--black); text-decoration-thickness: 2px; }

/* Кнопки одного пака: круг 44, крест и стрелки одной толщины, при наведении заливаются чёрным */
.su-close, .hv-close, .hv-nav { width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--black); border-radius: 50%; background: var(--white); color: var(--black); box-shadow: none; display: grid; place-items: center; cursor: pointer; transition: background-color .2s, color .2s, transform .15s; }
.su-close::before, .su-close::after, .hv-close::before, .hv-close::after { content: none; }
.su-close svg, .hv-close svg, .hv-nav svg { width: 20px; height: 20px; transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.su-close:hover, .hv-close:hover, .hv-nav:hover { background: var(--black); color: var(--white); }
.hv-nav[data-hv-prev]:hover svg { transform: translateX(-2px); }
.hv-nav[data-hv-next]:hover svg { transform: translateX(2px); }
.su-close:active, .hv-close:active, .hv-nav:active { transform: scale(.92); box-shadow: none; }
.su-close:focus-visible, .hv-close:focus-visible, .hv-nav:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.hv-close svg { pointer-events: none; }

/* Видео — ровно половина ширины блока */
.gallery { grid-template-columns: 2fr 1fr 1fr; }

/* Фраза героя: облачко рядом с фигурой (прежний вариант «цитата в тексте карточки» — .hv-quote внутри .hv-card, см. заметку) */
.hv-quote { position: absolute; z-index: 3; top: 8%; right: var(--out); width: min(46%, 300px); padding: 16px 18px; gap: 8px; background: var(--white); border-radius: var(--r); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.hv-quote::before { left: -9px; top: 34px; bottom: auto; width: 20px; height: 20px; border-radius: 3px; background: var(--white); transform: rotate(45deg); transform-origin: 50% 50%; }
.hv-quote.go::before { animation: none; }
.hv-say { font-size: 18px; }
@media (max-width: 900px) { .hv-quote { top: auto; bottom: var(--out); left: var(--out); right: var(--out); width: auto; } .hv-quote::before { display: none; } }

/* Облачко слева от героя: появляется, когда герой перевернулся в цвет; текст печатается */
.hv-stage { padding-left: 36%; }
.hv-quote { top: 10%; left: var(--out); right: auto; width: calc(36% - var(--out) - 14px); opacity: 0; transform: scale(.85); transform-origin: 100% 30%; pointer-events: none; transition: opacity .3s, transform .4s cubic-bezier(.2, 1.4, .4, 1); }
.hv-quote.go { opacity: 1; transform: none; }
.hv-quote::before { left: auto; right: -9px; }
.hv-say .w { display: inline-block; opacity: 1; transform: none; white-space: nowrap; }
.hv-say .ch, .hv-src { opacity: 0; }
.hv-quote.go .hv-say .ch { animation: ch-in 0s linear forwards; animation-delay: calc(var(--i) * 28ms + 350ms); }
.hv-quote.go .hv-src { animation: ch-in 0s linear forwards; animation-delay: calc(var(--n) * 28ms + 500ms); }
@keyframes ch-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hv-quote { opacity: 1; transform: none; } .hv-say .ch, .hv-src { opacity: 1; animation: none !important; } }
@media (max-width: 900px) { .hv-stage { padding-left: 0; } .hv-quote { left: var(--out); width: auto; } }

/* Подсказка хоровода: простая стрелка из общего набора кнопок */
.rondo-hand { border: 1.5px solid var(--white); background: rgba(0, 0, 0, .3); transition: background-color .2s, color .2s, border-color .2s; }
.rondo-hand svg { width: 22px; height: 22px; flex: none; }
.rondo-hand:hover, .rondo-hand:focus-visible, .rondo.dragging .rondo-hand { background: var(--white); color: var(--black); border-color: var(--white); }
.rondo-hand:hover .rondo-hand-t, .rondo-hand:focus-visible .rondo-hand-t, .rondo.dragging .rondo-hand .rondo-hand-t { color: var(--black); }
.hv-quote { min-width: 130px; }

/* Степпер в окне записи — из того же пака, что крест и стрелки; и лёгкая микроанимация всех иконок-кнопок */
.su-step { display: grid; place-items: center; padding: 0; border: 1.5px solid var(--black); background: var(--white); color: var(--black); font-size: 0; transition: background-color .2s, color .2s, transform .15s; }
.su-step svg { width: 20px; height: 20px; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.su-step:hover { background: var(--black); color: var(--white); }
.su-step:active { transform: scale(.92); }
.su-step:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.su-step[data-step="1"]:hover svg { transform: rotate(90deg); }        /* плюс поворачивается */
.su-step[data-step="-1"]:hover svg { transform: scaleX(.7); }          /* минус сжимается */
.su-close:hover svg, .hv-close:hover svg { transform: rotate(90deg) scale(.9); }
.rondo-hand:hover svg, .rondo-hand:focus-visible svg { animation: nudge-x .7s ease-in-out infinite; }
@keyframes nudge-x { 50% { transform: translateX(3px); } }
.su-close, .hv-close, .hv-nav, .su-step { will-change: transform; }
@media (prefers-reduced-motion: reduce) { .su-step svg, .su-close svg, .hv-close svg, .hv-nav svg { transition: none; transform: none !important; } .rondo-hand:hover svg { animation: none; } }

/* «Осталось 6 мест»: без плашки, акцент цветом и чуть плотнее, как в шкале на сайте */
.su-left { color: rgba(0, 0, 0, .65); }
.su-left b { background: none; border-radius: 0; padding: 0; color: var(--black); font-weight: 600; }

/* Кнопка афиши: стрелка из общего пака, на наведении покачивается */
.more-btn::after, .more-btn[aria-expanded="true"]::after { content: none; }
.more-btn { align-items: center; gap: 10px; }
.more-btn svg { width: 20px; height: 20px; flex: none; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.more-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.more-btn:hover svg { animation: bob-down .8s ease-in-out infinite; }
.more-btn[aria-expanded="true"]:hover svg { animation-name: bob-up; }
@keyframes bob-down { 50% { translate: 0 3px; } }
@keyframes bob-up { 50% { translate: 0 -3px; } }
@media (prefers-reduced-motion: reduce) { .more-btn:hover svg { animation: none; } }

/* =========================================================
   Плавающее меню-док: плашка с текущим разделом внизу по центру.
   Название «прокатывается» при смене раздела, при наведении плашка раскрывается вверх списком.
   ========================================================= */
.dock { --ih: 40px; --pad: 4px; --cur: 0; position: fixed; z-index: 40; left: 50%; bottom: var(--s); transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: opacity .35s, transform .5s cubic-bezier(.2, .8, .2, 1); }
.dock.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
html.modal-open .dock { opacity: 0; pointer-events: none; }
.dock-view { overflow: hidden; height: calc(var(--ih) + var(--pad) * 2); padding: var(--pad); border-radius: calc(var(--ih) / 2 + var(--pad)); background: var(--white); color: var(--black); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: height .5s cubic-bezier(.2, .8, .2, 1), border-radius .5s cubic-bezier(.2, .8, .2, 1); }
.dock-list { list-style: none; margin: 0; padding: 0; transform: translateY(calc(var(--cur) * var(--ih) * -1)); transition: transform .55s cubic-bezier(.2, .8, .2, 1); }
.dock-item { display: flex; align-items: center; gap: 10px; height: var(--ih); padding: 0 18px; border-radius: calc(var(--ih) / 2); color: var(--black); text-decoration: none; font-size: 16px; line-height: 1; white-space: nowrap; opacity: 0; transition: opacity .3s, background-color .2s, color .2s; }
.dock-item[aria-current] { opacity: 1; }
.dock-n { font-size: 16px; color: rgba(0, 0, 0, .45); transition: color .2s; }
.dock-t { min-width: 9.5em; }
.dock-view:hover, .dock-view:focus-within, .dock.open .dock-view { height: calc(var(--ih) * var(--count, 7) + var(--pad) * 2); border-radius: 20px; }
.dock-view:hover .dock-list, .dock-view:focus-within .dock-list, .dock.open .dock-list { transform: none; }
.dock-view:hover .dock-item, .dock-view:focus-within .dock-item, .dock.open .dock-item { opacity: 1; }
.dock-view:hover .dock-item:hover:not([aria-current]), .dock-item:focus-visible:not([aria-current]) { background: rgba(0, 0, 0, .08); }
.dock-view:hover .dock-item[aria-current], .dock-view:focus-within .dock-item[aria-current], .dock.open .dock-item[aria-current] { background: var(--black); color: var(--white); }
.dock-view:hover .dock-item[aria-current] .dock-n, .dock-view:focus-within .dock-item[aria-current] .dock-n, .dock.open .dock-item[aria-current] .dock-n { color: rgba(237, 226, 203, .6); }
.dock-item:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
@media (max-width: 560px) { .dock { bottom: 10px; } }
@media (prefers-reduced-motion: reduce) { .dock, .dock-view, .dock-list, .dock-item { transition: none; } }

/* Док: рядом с плашкой круглая кнопка «наверх» из общего пака иконок */
.dock { display: flex; align-items: flex-end; gap: 10px; }
.dock-up { flex: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--white); color: var(--black); display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: background-color .2s, color .2s, transform .15s; }
.dock-up svg { width: 20px; height: 20px; }
.dock-up:hover, .dock-up:focus-visible { background: var(--black); color: var(--white); }
.dock-up:hover svg { animation: bob-up .8s ease-in-out infinite; }
.dock-up:active { transform: scale(.92); }
.dock-up:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .dock-up:hover svg { animation: none; } }


/* =========================================================
   Кинолента (v2): плёночная основа с зерном, настоящая перфорация с объёмом
   и оранжевая маркировка кромки. Прежний вариант сохранён: 08 Архив/Версии сайта/style.reel-old.css
   ========================================================= */
.reel { padding: 92px var(--out); background:
    linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 5%, rgba(0, 0, 0, 0) 95%, rgba(0, 0, 0, .55)),
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .04)),
    #17130e; background-blend-mode: normal, normal, normal; }   /* зерно на киноленте убрано: по всему сайту уже лежит общее зерно, вместе выходил двойной шум */
.reel::before, .reel::after { height: 30px; left: 0; right: 0; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='30' viewBox='0 0 40 30'><rect x='9' y='5' width='22' height='20' rx='4.5' fill='%23696139'/><path d='M9.8 21V9.5a4 4 0 0 1 4-4H27' fill='none' stroke='%23000' stroke-opacity='.55' stroke-width='2'/><path d='M30.2 9v11.5a4 4 0 0 1-4 4H13' fill='none' stroke='%23fff' stroke-opacity='.16' stroke-width='1.5'/></svg>") 0 0 / 40px 30px repeat-x; animation: tape 2.2s linear infinite; }
.reel::before { top: 14px; }
.reel::after { bottom: 14px; }
/* маркировка кромки: номера кадров и код плёнки, как печатается на реальной 35-мм ленте */
.reel .frames::before, .reel .frames::after { position: absolute; left: 0; right: 0; height: 20px; overflow: hidden; white-space: pre; font-family: var(--f-text); font-size: 16px; line-height: 20px; letter-spacing: .14em; color: #e39a2e; opacity: .85; text-shadow: 0 0 6px rgba(227, 154, 46, .35); pointer-events: none;
  content: "▸ KLUB 400    1    ▸ 1A    2    ▸ 2A    3    ▸ 3A    4    ▸ 4A    5    ▸ 5A    6    ▸ 6A    7    ▸ 7A    8    ▸ 8A    9    ▸ 9A    10    ▸ 10A    11    ▸ 11A    12"; }
.reel .frames::before { top: -38px; }
.reel .frames::after { bottom: -38px; }
.fr { box-shadow: 0 0 0 3px #0b0906, 0 0 0 4px rgba(255, 255, 255, .07); }
@media (max-width: 560px) { .reel { padding: 92px 12px; } }
@media (prefers-reduced-motion: reduce) { .reel::before, .reel::after { animation: none; } }

/* Карточка героя: те же правила, что на всём сайте — 20 px по периметру, 20 между блоками, отступ по видимым буквам */
.hv-card { padding: var(--out); gap: var(--s); }
.hv-close { top: var(--out); right: var(--out); }
.hv-top { gap: var(--s); padding-right: calc(44px + var(--s)); }
.hv-facts { gap: var(--s) var(--out); padding-block: var(--s); }
.hv-photos { gap: var(--s); }
.hv-foot { gap: var(--s); }
.hv-eyebrow, .hv-head h2, .hv-book, .hv-blurb, .hv-facts dt, .hv-facts dd, .hv-count, .hv-link, .hv-src { text-box: trim-both cap alphabetic; }
.hv-head h2, .hv-book { text-wrap: balance; }
.hv-blurb, .hv-facts dd, .hv-say { text-wrap: pretty; }
.hv-facts dd { line-height: 1.3; } .hv-blurb { line-height: 1.4; }

/* Маркировка кромки едет вместе с перфорацией (та же скорость: 40 px за 2,2 с) */
.reel .frames::before, .reel .frames::after { content: ""; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='800' height='20' viewBox='0 0 800 20'><text x='6' y='15' xml:space='preserve' font-family='Trebuchet MS,Arial,sans-serif' font-size='16' letter-spacing='2.2' fill='%23e39a2e' fill-opacity='.88'>▸ KLUB 400      1      ▸ 1A      2      ▸ 2A      3      ▸ 3A      4      ▸ 4A      5      ▸ 5A</text></svg>") 0 0 / 800px 20px repeat-x; animation: tape-text 44s linear infinite; text-shadow: none; filter: drop-shadow(0 0 4px rgba(227, 154, 46, .35)); }
@keyframes tape-text { to { background-position: -800px 0; } }
@media (prefers-reduced-motion: reduce) { .reel .frames::before, .reel .frames::after { animation: none; } }

/* Знак «конец главы» между текстом и фотографиями: вдавлен в бумагу карточки, тон бумаги чуть бледнее */
.hv-mark { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; gap: var(--s); }
.hv-mark::before, .hv-mark::after { content: ""; flex: 1; height: 2px; border-radius: 1px; background: rgba(120, 95, 40, .16); box-shadow: 0 1.5px 0 rgba(255, 255, 255, .75); }
.hv-mark svg { flex: none; height: min(100%, 72px); width: auto; aspect-ratio: 1; stroke: #F3EBD9; overflow: visible;
  filter: drop-shadow(1.5px 1.5px 0 rgba(255, 255, 255, .9)) drop-shadow(-1.3px -1.3px 0 rgba(110, 85, 35, .3)); }
/* фотографии — ниже и компактнее, между ними и текстом остаётся место под знак */
.hv-photos { flex: 0 0 auto; height: clamp(84px, 17vh, 150px); min-height: 0; }
@media (max-height: 700px) { .hv-mark { display: none; } }
.hv-flip.flipped { animation-duration: .75s; }

/* Прочитанная книга: герой в хороводе сразу раскрашен, при наведении «переворачивается» в бумажную версию */
.gb.read .gf { opacity: 0; transition: opacity .25s; }
.gb.read .gk { opacity: 1; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .3)); transition: opacity .25s; }
.gb.read:hover .gk, .gb.read:focus-visible .gk, .gb.read.on .gk { opacity: 0; animation: none; filter: none; }
.gb.read:hover .gf, .gb.read:focus-visible .gf, .gb.read.on .gf { opacity: 1; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .3)); animation: hop .75s cubic-bezier(.3, 0, .5, 1) 1 both; }
.gb.read.on .gf { animation: none; }
@media (prefers-reduced-motion: reduce) { .gb.read:hover .gf, .gb.read:focus-visible .gf { animation: none; transform: none; } }

/* Знак без линий по бокам, чуть меньше; фотографии выше */
.hv-mark { justify-content: center; }
.hv-mark::before, .hv-mark::after { content: none; }
.hv-mark svg { height: min(100%, 52px); }
.hv-photos { height: clamp(100px, 22vh, 200px); }

/* Пояснение в левом нижнем углу хоровода, в паре с подсказкой справа */
.rondo-legend { position: absolute; z-index: 3; left: 0; bottom: 0; margin: 0; padding: 8px 14px; border: 1.5px solid var(--white); border-radius: 10px; background: rgba(0, 0, 0, .3); color: var(--white); font-size: var(--fs-small); line-height: 1.3; }
@media (max-width: 760px) { .rondo-legend { position: static; margin: var(--s) 0 0; } }

/* Знак «конец главы» убран по просьбе (разметка .hv-mark и иконки в main.js оставлены — чтобы вернуть, убрать display:none); фотографии — прежнего размера */
.hv-mark { display: none; }
.hv-photos { flex: 1 1 0; height: auto; min-height: 80px; }
.rondo-hand svg { width: 24px; height: 24px; }
.rondo-hand:hover svg, .rondo-hand:focus-visible svg, .rondo.dragging .rondo-hand svg { animation: hand-sway .9s ease-in-out infinite; }
@keyframes hand-sway { 0%, 100% { transform: translateX(-3px) rotate(-8deg); } 50% { transform: translateX(3px) rotate(8deg); } }

/* Пройденная книга: бледно-жёлтая (в паре с насыщенно-жёлтой «Ближайшей») вместо бледно-синей. Прежний вариант: background: rgba(52, 73, 95, .55); светлый текст */
.row.past { background: #DCCB8E; color: var(--black); }
.row.past .m, .row.past .t { opacity: .7; }
.row.past .dates span, .row.past .st { border-color: rgba(0, 0, 0, .35); color: var(--black); }
.row.past { background: rgba(241, 188, 75, .55); }

/* Пройденная книга: серая и заштрихованная, как черновик. Прежний вариант — жёлтый rgba(241, 188, 75, .55) с чёрным текстом */
.row.past { background: repeating-linear-gradient(135deg, rgba(237, 226, 203, .14) 0 1.5px, transparent 1.5px 7px), rgba(150, 148, 140, .38); color: var(--white); outline: 1.5px dashed rgba(237, 226, 203, .35); outline-offset: -1.5px; }
.row.past .m, .row.past .t { opacity: .8; }
.row.past .dates span, .row.past .st { border-color: rgba(237, 226, 203, .4); color: var(--white); }

/* Подпись на видео: синяя плашка, как у «Фильм 2000 года» */
.gallery .big span { background: var(--brown); color: var(--white); padding: 4px 14px; letter-spacing: .08em; line-height: 1.3; }

/* Пустая ячейка «место для фото»: тот же серый штрих-«черновик», что у пройденной строки афиши */
.gallery .slot:not(.has-photo):not(.big) { border: 0; background: repeating-linear-gradient(135deg, rgba(237, 226, 203, .14) 0 1.5px, transparent 1.5px 7px), rgba(150, 148, 140, .38); outline: 1.5px dashed rgba(237, 226, 203, .35); outline-offset: -1.5px; color: var(--white); }
.gallery .slot:not(.has-photo):not(.big):hover { outline-color: var(--yellow); }
.f-bye-t { text-wrap: balance; }

/* Длинная цитата в футере переносится внутри своей колонки и не давит адрес и кнопку */
.f-main { grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr) auto; }
.f-bye, .f-bye-txt { min-width: 0; }
.f-bye-t { font-size: clamp(26px, 2.6vw, 40px); line-height: 1; overflow-wrap: anywhere; }
@media (max-width: 860px) { .f-main { grid-template-columns: minmax(0, 1fr); } }

/* Цитата в футере: обычным шрифтом, по размеру как «Клуб экранизаций» слева, с кавычками */
.f-bye-t { font-family: var(--f-text); font-weight: 400; text-transform: none; font-size: 26px; line-height: 1.2; letter-spacing: 0; }

/* Ховер пунктов плавающего меню — жёлтая плашка, как у ссылок в шапке */
.dock-view:hover .dock-item:hover, .dock-item:focus-visible, .dock.open .dock-item:hover { background: var(--yellow); color: var(--black); }
.dock-view:hover .dock-item:hover .dock-n, .dock-item:focus-visible .dock-n, .dock.open .dock-item:hover .dock-n { color: rgba(0, 0, 0, .6); }
.dock-item:focus-visible { outline: none; }
.dock-up:hover, .dock-up:focus-visible { background: var(--yellow); color: var(--black); }
/* Текущий раздел в раскрытом списке — тоже жёлтый */
.dock-view:hover .dock-item[aria-current], .dock-view:focus-within .dock-item[aria-current], .dock.open .dock-item[aria-current] { background: var(--yellow); color: var(--black); }
.dock-view:hover .dock-item[aria-current] .dock-n, .dock-view:focus-within .dock-item[aria-current] .dock-n, .dock.open .dock-item[aria-current] .dock-n { color: rgba(0, 0, 0, .6); }

/* Барабан цифр счёта */
.score .roll { display: block; height: 1em; padding-block: .12em; margin-block: -.12em; overflow: hidden; }
.score .roll-col { display: block; transform: translateY(0); transition: transform 1.3s cubic-bezier(.15, .7, .2, 1); }
.score .roll-col i { display: block; height: 1em; line-height: 1; font-style: normal; }
.score .roll-col.go { transform: translateY(calc(var(--steps) * -1em)); }
/* Барабан: окно ровно в одну цифру (без остатков соседних), мягкое торможение без «зависания» */
.score .roll { height: 1em; padding-block: 0; margin-block: 0; overflow: hidden; }
.score .roll-col { transition: transform 1.1s cubic-bezier(.3, .6, .3, 1); will-change: transform; }
.score .roll-col.go { transform: translate3d(0, calc(var(--steps) * -1em), 0); }

/* =========================================================
   Появление при прокрутке (v2): блоки проявляются из лёгкой дымки, заголовки выезжают по словам.
   Прежний вариант («встают на место» снизу) сохранён: 08 Архив/Версии сайта/*.before-scroll-anim.*
   ========================================================= */
.pre { opacity: 0; }
.in { animation: fog 1s cubic-bezier(.25, .6, .3, 1) backwards; }
@keyframes fog { from { opacity: 0; filter: blur(10px); } to { opacity: 1; filter: blur(0); } }
.tw { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .12em; margin-block: -.12em; }
.tw > span { display: inline-block; transform: translateY(115%); transition: transform 1s cubic-bezier(.2, .8, .2, 1) calc(.15s + var(--i, 0) * 90ms); }
.in .tw > span { transform: none; }
@media (prefers-reduced-motion: reduce) { .pre { opacity: 1; } .tw > span { transform: none; transition: none; } }

/* Главный заголовок: слова поднимаются из-за линии одно за другим, как титры (прежний вариант: rise .8s, копия в 08 Архив/Версии сайта/style.before-h1-anim.css) */
#h1 { animation: h1-mask 1.9s linear both; }
@keyframes h1-mask { 0%, 88% { clip-path: inset(-30% -6% 0 -6%); } 100% { clip-path: inset(-30% -6% -30% -6%); } }
#h1 span { animation: h1-word 1.25s cubic-bezier(.16, 1, .3, 1) both; }
#h1 span:nth-child(1) { animation-delay: .1s; }
#h1 span:nth-child(2) { animation-delay: .3s; }
#h1 span:nth-child(3) { animation-delay: .5s; }
@keyframes h1-word { from { transform: translateY(115%) rotate(3deg); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { #h1, #h1 span { animation: none; clip-path: none; } }
/* Как у заголовков блоков: тот же выезд, та же скорость и шаг между словами */
#h1 { animation-duration: 1.5s; }
#h1 span { animation-duration: 1s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
#h1 span:nth-child(1) { animation-delay: .15s; }
#h1 span:nth-child(2) { animation-delay: .24s; }
#h1 span:nth-child(3) { animation-delay: .33s; }
@keyframes h1-word { from { transform: translateY(115%); } to { transform: none; } }

/* Воздух между блоками страницы: 60 px на широких экранах, 40 px на узких. Меняется одной переменной. Раньше было 20 px (--out) */
.page { --blocks: 40px; gap: var(--blocks); }
@media (min-width: 1200px) { .page { --blocks: 60px; } }

/* Первый экран наполняется постепенно: фото проявляется, затем шапка, заголовок по словам, подпись, реплики, счёт и кнопки.
   Прежний вариант: 08 Архив/Версии сайта/*.before-hero-stagger.* */
.hero-media img { animation: hero-photo 2.6s cubic-bezier(.3, .6, .3, 1) both; }
@keyframes hero-photo { from { filter: brightness(.3) saturate(.7); transform: scale(1.06); } to { filter: none; transform: none; } }
.hero .nav { animation: fog 1.1s .25s cubic-bezier(.25, .6, .3, 1) both; }
#h1 { animation-duration: 2.4s; }
#h1 span:nth-child(1) { animation: h1-word 1.1s .7s cubic-bezier(.2, .8, .2, 1) both; }
#h1 span:nth-child(2) { animation: h1-word 1.1s .84s cubic-bezier(.2, .8, .2, 1) both; }
#h1 span:nth-child(3) { animation: h1-word 1.1s .98s cubic-bezier(.2, .8, .2, 1) both; }
.hero .lead { animation: fog 1.2s 1.7s cubic-bezier(.25, .6, .3, 1) both; }
.hero .subs { animation: fog 1.2s 2.05s cubic-bezier(.25, .6, .3, 1) both; }
.hero .score { animation: fog 1.2s 2.4s cubic-bezier(.25, .6, .3, 1) both; }
.hero .hero-ctas { animation: fog 1.2s 2.75s cubic-bezier(.25, .6, .3, 1) both; }
.hero .hero-bottom { animation: none; }
@media (prefers-reduced-motion: reduce) { .hero-media img, .hero .nav, .hero .lead, .hero .subs, .hero .score, .hero .hero-ctas { animation: none; } }
/* Шапка тоже появляется: логотип, ссылки по одной, кнопка чата */
.hero .nav { animation: none; }
.hero .nav > .logo { animation: fog 1.1s .2s cubic-bezier(.25, .6, .3, 1) both; }
.hero .nav .links a { animation: fog 1s cubic-bezier(.25, .6, .3, 1) both; }
.hero .nav .links a:nth-child(1) { animation-delay: .35s; }
.hero .nav .links a:nth-child(2) { animation-delay: .47s; }
.hero .nav .links a:nth-child(3) { animation-delay: .59s; }
.hero .nav .links a:nth-child(4) { animation-delay: .71s; }
.hero .nav .tg { animation: fog 1.1s .85s cubic-bezier(.25, .6, .3, 1) both; }
@media (prefers-reduced-motion: reduce) { .hero .nav > .logo, .hero .nav .links a, .hero .nav .tg { animation: none; } }
/* Порядок первого экрана: сначала кнопки, потом счёт; цифры крутятся коротко и медленнее */
.hero .hero-ctas { animation-delay: 2.4s; }
.hero .score { animation-delay: 2.8s; }
.score .roll-col { transition-duration: 1.6s; }

/* Факты («до 16 человек», цена, «круглый год», время и адрес») вклеены в кромку киноленты вместо номеров кадров и двигаются вместе с перфорацией. Отдельная полоска .facts скрыта; прежний вид: 08 Архив/Версии сайта/*.before-facts-in-reel.* */
.reel .frames::before, .reel .frames::after { background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='1600' height='20' viewBox='0 0 1600 20'><text x='6' y='15' xml:space='preserve' textLength='1580' lengthAdjust='spacing' font-family='Trebuchet MS,Arial,sans-serif' font-size='16' fill='%23e39a2e' fill-opacity='.88'>▸ ДО 16 ЧЕЛОВЕК      ▸ 600 ₽ ЗА ВСТРЕЧУ, 1500 ₽ ЗА ЦИКЛ      ▸ КРУГЛЫЙ ГОД      ▸ ВС · 18:00, «СНОСКА», УЛ. ЖУКОВСКОГО, 18      </text></svg>") 0 0 / 1600px 20px repeat-x; animation-duration: 88s; }
@keyframes tape-text { to { background-position: -1600px 0; } }
.facts { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Условия перенесены к окну записи: что входит в цену */
.su-incl { margin: 0; font-size: 16px; line-height: 1.3; color: rgba(0, 0, 0, .7); text-box: trim-both cap alphabetic; }

/* .btn.k — чёрная кнопка (оставлена для будущего) */
.btn.k { background: var(--black); color: var(--white); }

/* Плавающее меню: жёлтая кнопка «Записаться» рядом с плашкой и стрелкой наверх */
.dock-cta { flex: none; align-self: flex-end; height: 48px; padding: 0 22px; border-radius: 24px; background: var(--yellow); color: var(--black); display: grid; place-items: center; font-size: 16px; line-height: 1; text-decoration: none; white-space: nowrap; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: background-color .2s, transform .15s; }
.dock-cta:hover, .dock-cta:focus-visible { background: var(--white); }
.dock-cta:active { transform: scale(.96); }
.dock-cta:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }
@media (max-width: 560px) { .dock-cta { padding: 0 16px; } }

/* Блок записи перед футером: по образцу «Сейчас читаем», только книга, ближайшая дата и кнопка */
.cta-band .cb-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: var(--s); }
.cta-band .c-where-lite { background: var(--olive); align-items: flex-start; justify-content: flex-end; gap: var(--s); }
.cta-band .c-where-lite p { margin: 0; font-size: 20px; line-height: 1.25; text-box: trim-both cap alphabetic; }
@media (max-width: 1000px) { .cta-band .cb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cta-band .c-book { grid-column: 1 / -1; } }
@media (max-width: 560px) { .cta-band .cb-grid { grid-template-columns: minmax(0, 1fr); } }
/* Блок записи ниже по высоте: заголовок меньше, обложка и дата компактнее */
.cta-band .sec-head h2 { font-size: clamp(36px, 3.6vw, 56px); }
.cta-band .c-book .cover { width: 84px; min-width: 0; }
.cta-band .c-sess .d { font-size: clamp(44px, 3.6vw, 60px); }
.cta-band .c-sess { gap: 10px; }
.cta-band .c-where-lite { justify-content: space-between; }
.cta-band .c-book .cover { width: 64px; }
.cta-band .sec-head h2 { font-size: clamp(32px, 3vw, 48px); }
.cta-band .c-sess .d { font-size: clamp(40px, 3.2vw, 52px); }

/* Кнопка афиши — прежняя (с галочкой), но с жёлтой заливкой */
.more-btn, button.btn.more-btn { background-color: var(--yellow); color: var(--black); border-color: var(--yellow); }
.note { font-size: var(--fs-text); line-height: 1.3; }
.more-btn, .more-btn:hover, .more-btn:focus-visible { --ring-c: transparent; }
#photos .sec-head > p { width: 640px; max-width: 100%; }  /* начало текста там же, где было у прежней длинной строки */
/* Футер: название клуба и цитата — размером с обычный текст сайта */
.f-brand .logo { height: calc(var(--fs-text) * .95); width: auto; }
.f-bye-t { font-size: var(--fs-text); line-height: 1.3; }

/* Ховер всех кнопок-иконок (крестики, стрелки, плюс/минус, «перетащить») — жёлтый с чёрной иконкой */
.su-close:hover, .hv-close:hover, .hv-nav:hover, .su-step:hover, .su-close:focus-visible, .hv-close:focus-visible, .hv-nav:focus-visible, .su-step:focus-visible,
.rondo-hand:hover, .rondo-hand:focus-visible, .rondo.dragging .rondo-hand { background: var(--yellow); color: var(--black); border-color: var(--black); }
.rondo-hand:hover, .rondo-hand:focus-visible, .rondo.dragging .rondo-hand { border-color: var(--yellow); }

/* Видео целиком в рамке ячейки: без обрезки по бокам, свободное место сверху и снизу заливается фоном блока. Прежний вид: 08 Архив/Версии сайта/style.before-video-contain.css */
.gallery .big { background: #0b0a08; }
.big-video { object-fit: contain; object-position: 50% 50%; }

/* «Перетащите в сторону» — просто подсказка: без ховера, курсора-руки и фокуса */
.rondo-hand, .rondo-hand:hover, .rondo-hand:focus-visible, .rondo.dragging .rondo-hand { pointer-events: none; cursor: default; background: rgba(0, 0, 0, .3); color: var(--white); border-color: var(--white); transform: none; }
.rondo-hand:hover svg, .rondo-hand:focus-visible svg, .rondo.dragging .rondo-hand svg { animation: none; }
.rondo-hand:hover .rondo-hand-t, .rondo-hand:focus-visible .rondo-hand-t, .rondo.dragging .rondo-hand .rondo-hand-t { color: var(--white); }
.btn.o { background: var(--black); color: var(--white); }

/* Субтитры на видео: внизу по центру, светлый текст с мягкой тенью, как «реплики» на первом экране */
.vsubs { position: absolute; z-index: 2; left: 50%; bottom: var(--out); transform: translateX(-50%); width: max-content; max-width: 70%; min-height: 66px; pointer-events: none; text-align: center; }
.vs { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: max-content; max-width: 100%; margin: 0; font-size: var(--fs-text); line-height: 1.3; color: var(--white); text-shadow: 0 1px 3px rgba(0, 0, 0, .8), 0 0 14px rgba(0, 0, 0, .6); opacity: 0; transition: opacity .4s; }
.vs.on { opacity: 1; }
.vs span { opacity: 0; transition: opacity .3s; }
.vs span.w { opacity: 1; }
@media (max-width: 560px) { .vsubs { max-width: 90%; } }
.gallery .big .vs span { background: none; border-radius: 0; padding: 0; letter-spacing: 0; line-height: inherit; font-size: inherit; z-index: auto; }
.vsubs { left: 0; right: 0; transform: none; width: auto; max-width: none; padding-inline: var(--out); }
.vs { white-space: nowrap; }
@media (max-width: 560px) { .vs { white-space: normal; } }

/* «Записаться» в плавающем меню: тот же ховер, что у всех кнопок сайта (выемки по бокам) */
.dock-cta { --notch: 0px; box-shadow: none; transition: --notch .35s cubic-bezier(.2, .8, .2, 1), transform .15s;
  -webkit-mask: radial-gradient(circle at left center, #0000 var(--notch), #000 calc(var(--notch) + 1px)) left / 51% 100% no-repeat,
                radial-gradient(circle at right center, #0000 var(--notch), #000 calc(var(--notch) + 1px)) right / 51% 100% no-repeat;
          mask: radial-gradient(circle at left center, #0000 var(--notch), #000 calc(var(--notch) + 1px)) left / 51% 100% no-repeat,
                radial-gradient(circle at right center, #0000 var(--notch), #000 calc(var(--notch) + 1px)) right / 51% 100% no-repeat; }
.dock-cta:hover, .dock-cta:focus-visible { --notch: 10px; background: var(--yellow); }
.dock-cta:active { transform: scale(.98); }
.dock-cta:focus-visible { outline: none; }
.vsubs { bottom: 68px; }

/* Ховер кнопок: кроме выемок — цвет чуть темнее в том же тоне (жёлтые темнее, чёрные чуть светлее, контурные слегка заполняются) */
.btn.y, .more-btn, .dock-cta, .btn.o, .btn.k, .row .st.go, .tg { transition: --notch .35s cubic-bezier(.2, .8, .2, 1), --ring .35s, transform .15s, background-color .3s; }
.btn.y:hover, .btn.y:focus-visible, .more-btn:hover, .more-btn:focus-visible, .dock-cta:hover, .dock-cta:focus-visible,
button.btn.more-btn:hover { background-color: #DEA83C; }
.btn.o:hover, .btn.o:focus-visible, .btn.k:hover, .btn.k:focus-visible, .row .st.go:hover, .row .st.go:focus-visible { background-color: #262626; }
.tg:hover, .tg:focus-visible { background-color: rgba(237, 226, 203, .14); }

/* Субтитры на видео: жёлтые с чёрной обводкой, шрифт заголовка; реплики слева — у парня слева, справа — у девушки справа */
.vs { font-family: var(--f-head); font-weight: 700; font-synthesis: weight; font-size: clamp(22px, 2.1vw, 32px); line-height: 1.05; color: var(--yellow); text-shadow: none; -webkit-text-stroke: 6px #000; paint-order: stroke fill; white-space: normal; max-width: 60%; width: max-content; }
.vs.L { left: var(--out); right: auto; transform: none; text-align: left; }
.vs.R { right: var(--out); left: auto; transform: none; text-align: right; }
.vsubs { bottom: 76px; }
@media (max-width: 560px) { .vs { max-width: 70%; -webkit-text-stroke-width: 5px; } }
.vs { -webkit-text-stroke-width: 4px; }
.vsubs { bottom: 118px; }

/* Субтитры на видео — как реплики на первом экране: обычный шрифт, тёплый кремово-жёлтый цвет с тенью, по центру */
.vs, .vs.L, .vs.R { font-family: var(--f-text); font-weight: 400; font-size: var(--fs-text); line-height: 1.5; color: #FFE7A6; -webkit-text-stroke: 0; paint-order: normal;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .8), 0 0 18px rgba(0, 0, 0, .65), 0 0 3px #000; left: 50%; right: auto; transform: translateX(-50%); text-align: center; max-width: 88%; }
.vsubs { bottom: 104px; }
/* реплики сменяются без наложения; цвет как на первом экране, с тёмной обводкой */
.vs { transition: opacity .2s; -webkit-text-stroke: 3px #000; paint-order: stroke fill; }
.vs.L, .vs.R { -webkit-text-stroke: 3px #000; paint-order: stroke fill; }
.vs, .vs.L, .vs.R { color: var(--yellow); -webkit-text-stroke: 4px #000; paint-order: stroke fill; text-shadow: none; }
.gallery .big .vs span { color: var(--yellow); }

/* Субтитры накапливаются: новая фраза дописывается снизу, прежние плавно уезжают вверх */
.vsubs { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; bottom: 84px; min-height: 0; }
.vs, .vs.L, .vs.R { position: static; left: auto; right: auto; bottom: auto; transform: none; width: auto; max-width: 88%; margin: 0; padding-block: 0; line-height: 1.35; max-height: 0; overflow: hidden; opacity: 0; text-align: center;
  transition: max-height .55s cubic-bezier(.2, .8, .2, 1), opacity .35s; }
.vs.on, .vs.L.on, .vs.R.on { max-height: 3.2em; opacity: 1; }
@media (max-width: 560px) { .vs.on { max-height: 4.2em; } }
.vs, .vs.L, .vs.R { padding-inline: 4px; }
/* старые фразы, которые уехали вверх, затуманиваются и бледнеют, чтобы не закрывать картинку */
.vs { transition: max-height .55s cubic-bezier(.2, .8, .2, 1), opacity .6s, filter .6s; }
.vs.on.d1 { opacity: .55; filter: blur(1.5px); }
.vs.on.d2 { opacity: .4; filter: blur(2.5px); }
.vs.on.d3 { opacity: .28; filter: blur(3.5px); }
@media (prefers-reduced-motion: reduce) { .vs.on.d1, .vs.on.d2, .vs.on.d3 { opacity: 1; filter: none; } }
/* стопка уходит вверх «под туман»: верхний край плавно растворяется */
.vsubs { height: 132px; min-height: 0; -webkit-mask: linear-gradient(to top, #000 0, #000 42%, transparent 100%); mask: linear-gradient(to top, #000 0, #000 42%, transparent 100%); }
/* туман начинается после третьей строки: три последние фразы чёткие, четвёртая и старше затуманиваются */
.vs.on.d1, .vs.on.d2 { opacity: 1; filter: none; }
.vs.on.d3 { opacity: .55; filter: blur(1.5px); }
.vs.on.d4 { opacity: .3; filter: blur(3px); }
.vsubs { -webkit-mask: linear-gradient(to top, #000 0, #000 58%, transparent 100%); mask: linear-gradient(to top, #000 0, #000 58%, transparent 100%); }
/* туман после второй строки: две последние фразы чёткие, третья и старше затуманиваются */
.vs.on.d1 { opacity: 1; filter: none; }
.vs.on.d2 { opacity: .55; filter: blur(1.5px); }
.vs.on.d3 { opacity: .32; filter: blur(3px); }
.vs.on.d4 { opacity: .18; filter: blur(4px); }
.vsubs { -webkit-mask: linear-gradient(to top, #000 0, #000 38%, transparent 100%); mask: linear-gradient(to top, #000 0, #000 38%, transparent 100%); }

/* Видео заполняет ячейку без чёрных полос сверху и снизу (небольшое приближение, края кадра чуть обрезаются) */
.big-video { object-fit: cover; object-position: 50% 55%; }
.vsubs { bottom: 40px; }

/* =========================================================
   Прелоадер: «Клуб [фото] экранизаций». Между словами в окошке мелькают фото сайта,
   последнее — фото главного экрана — растягивается на весь первый экран.
   Прежнее состояние: 08 Архив/Версии сайта/*.before-preloader.*
   ========================================================= */
html.preloading { overflow: hidden; }
.pl { position: fixed; inset: 0; z-index: 9999; display: none; place-items: center; background: var(--white); color: var(--black); overflow: hidden; transition: background-color .6s ease .45s; }
html.preloading .pl { display: grid; }
.pl-row { display: flex; align-items: center; justify-content: center; gap: .12em; font-family: var(--f-head); font-size: clamp(30px, 8vw, 148px); line-height: 1; white-space: nowrap; }
.pl-w { display: inline-block; overflow: hidden; padding-block: .14em; margin-block: -.14em; transition: transform 1.15s cubic-bezier(.75, 0, .15, 1), opacity .5s ease .5s; }
.pl-w > span { display: inline-block; transform: translateY(118%); transition: transform .95s cubic-bezier(.2, .8, .2, 1); }
.pl.go .pl-w > span { transform: none; }
.pl.go .pl-b > span { transition-delay: .09s; }
.pl-box { position: relative; display: inline-block; flex: none; width: 0; height: .74em; overflow: hidden; transition: width .9s cubic-bezier(.7, 0, .2, 1); }
.pl.open .pl-box, .pl.measure .pl-box { width: 1.12em; }
.pl.measure .pl-box, .pl.measure .pl-w > span { transition: none; }
.pl-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.pl-box img.on { opacity: 1; }
.pl-box.fly { position: fixed; z-index: 2; margin: 0; transition: left 1.15s cubic-bezier(.75, 0, .15, 1), top 1.15s cubic-bezier(.75, 0, .15, 1), width 1.15s cubic-bezier(.75, 0, .15, 1), height 1.15s cubic-bezier(.75, 0, .15, 1), border-radius 1.15s cubic-bezier(.75, 0, .15, 1); }
.pl-ph { display: inline-block; flex: none; }
.pl.expand { background-color: transparent; }
.pl.expand .pl-a { transform: translateX(-60vw); opacity: 0; }
.pl.expand .pl-b { transform: translateX(60vw); opacity: 0; }
/* пока идёт прелоадер, содержимое первого экрана ждёт; фото под окошком без затемнения, чтобы совпало с прилетевшим кадром */
html.pl-wait .hero *, html.pl-wait .hero { animation-play-state: paused; }
html.has-pl .hero-media img { animation: none; }
@media (prefers-reduced-motion: reduce) { html .pl { display: none; } }
.pl-row { font-size: clamp(30px, 10.5vw, 190px); }

/* Прелоадер v2: обычный шрифт сайта, маленький; слова просто проявляются, окошко ровно между ними */
.pl-row { font-family: var(--f-text); font-size: clamp(22px, 2.6vw, 40px); gap: .5em; letter-spacing: 0; }
.pl-w { overflow: visible; padding: 0; margin: 0; opacity: 0; transform: none; transition: opacity .8s ease; }
.pl-w > span { transform: none; transition: none; }
.pl.go .pl-w { opacity: 1; }
.pl.expand .pl-a, .pl.expand .pl-b { transform: none; opacity: 0; transition: opacity .35s ease; }
.pl-box { height: 1.5em; }
.pl.open .pl-box, .pl.measure .pl-box { width: 2.2em; }
/* Прелоадер оливковый: фон цвета сайта, текст кремовый */
.pl { background: var(--olive); color: var(--white); }
.pl.expand { background-color: transparent; }

/* Прелоадер v3: сначала «Клуб экранизаций» обычным текстом с обычным пробелом, потом слова раздвигаются и в промежутке открывается крупное окно с фото */
.pl-row { gap: 0; }
.pl-box { position: relative; display: inline-block; flex: none; width: .28em; height: 1em; overflow: visible; transition: width .9s cubic-bezier(.65, 0, .25, 1); }
.pl.open .pl-box, .pl.measure .pl-box { width: 5.4em; }
.pl-win { position: absolute; left: 50%; top: 50%; width: 0; height: 3.2em; transform: translate(-50%, -50%); overflow: hidden; transition: width .9s cubic-bezier(.65, 0, .25, 1); }
.pl.open .pl-win, .pl.measure .pl-win { width: 4.4em; }
.pl.measure .pl-box, .pl.measure .pl-win { transition: none; }
.pl-win.fly { position: fixed; transform: none; margin: 0; }
.pl-win.fly { z-index: 2; transition: left 1.15s cubic-bezier(.75, 0, .15, 1), top 1.15s cubic-bezier(.75, 0, .15, 1), width 1.15s cubic-bezier(.75, 0, .15, 1), height 1.15s cubic-bezier(.75, 0, .15, 1), border-radius 1.15s cubic-bezier(.75, 0, .15, 1); }
/* слова сначала сомкнуты, ширина промежутка меняется плавно только при открытии (иначе после подгонки размера он «схлопывался» с анимацией) */
.pl-box, .pl-win { transition: none; }
.pl.open .pl-box, .pl.open .pl-win { transition: width .9s cubic-bezier(.65, 0, .25, 1); }
.pl.open .pl-win.fly { transition: left 1.15s cubic-bezier(.75, 0, .15, 1), top 1.15s cubic-bezier(.75, 0, .15, 1), width 1.15s cubic-bezier(.75, 0, .15, 1), height 1.15s cubic-bezier(.75, 0, .15, 1), border-radius 1.15s cubic-bezier(.75, 0, .15, 1); }
/* быстрее: слова проявляются за .5 с, промежуток раскрывается за .7 с */
.pl-w { transition: opacity .5s ease; }
.pl.open .pl-box, .pl.open .pl-win { transition: width .7s cubic-bezier(.65, 0, .25, 1); }

/* Первый экран после прелоадера: то же поэтапное наполнение, но без долгих пауз — всё начинается сразу, как фото легло на место */
html.has-pl .hero .nav > .logo { animation-delay: .05s; }
html.has-pl .hero .nav .links a:nth-child(1) { animation-delay: .12s; }
html.has-pl .hero .nav .links a:nth-child(2) { animation-delay: .19s; }
html.has-pl .hero .nav .links a:nth-child(3) { animation-delay: .26s; }
html.has-pl .hero .nav .links a:nth-child(4) { animation-delay: .33s; }
html.has-pl .hero .nav .tg { animation-delay: .4s; }
html.has-pl #h1 { animation-duration: 1.9s; }
html.has-pl #h1 span { animation-duration: 1.3s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
html.has-pl #h1 span:nth-child(1) { animation-delay: .1s; }
html.has-pl #h1 span:nth-child(2) { animation-delay: .22s; }
html.has-pl #h1 span:nth-child(3) { animation-delay: .34s; }
html.has-pl .hero .lead { animation-delay: .7s; }
html.has-pl .hero .subs { animation-delay: .95s; }
html.has-pl .hero .hero-ctas { animation-delay: 1.2s; }
html.has-pl .hero .score { animation-delay: 1.45s; }

/* Главный заголовок: слова выезжают из-за линии так же, как заголовки блоков (маска на каждом слове, без общей обрезки) */
#h1, html.has-pl #h1 { animation: none !important; clip-path: none !important; }
#h1 span, #h1 span:nth-child(1), #h1 span:nth-child(2), #h1 span:nth-child(3),
html.has-pl #h1 span, html.has-pl #h1 span:nth-child(1), html.has-pl #h1 span:nth-child(2), html.has-pl #h1 span:nth-child(3) { animation: none !important; overflow: hidden; padding-block: .12em; margin-block: -.12em; vertical-align: top; }
#h1 .hw { display: inline-block; font-style: normal; transform: translateY(115%); animation: h1-in 1.1s cubic-bezier(.2, .8, .2, 1) both; }
#h1 span:nth-child(1) .hw { animation-delay: .1s; }
#h1 span:nth-child(2) .hw { animation-delay: .2s; }
#h1 span:nth-child(3) .hw { animation-delay: .3s; }
@keyframes h1-in { from { transform: translateY(115%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { #h1 .hw { animation: none; transform: none; } }

/* ПРИЧИНА бага с заголовком: правило паузы было слабее селекторов вида #h1 .hw (id), и слова заголовка отыгрывали анимацию ПОД прелоадером, до его исчезновения.
   Теперь пауза с !important держит все анимации первого экрана до конца заставки. */
html.pl-wait .hero, html.pl-wait .hero *, html.pl-wait .hero *::before, html.pl-wait .hero *::after { animation-play-state: paused !important; }

/* Верхнее меню: шесть пунктов в порядке блоков страницы, названия совпадают с меню-доком и подписями блоков */
.hero .nav .links a:nth-child(5) { animation-delay: .83s; }
.hero .nav .links a:nth-child(6) { animation-delay: .95s; }
html.has-pl .hero .nav .links a:nth-child(5) { animation-delay: .4s; }
html.has-pl .hero .nav .links a:nth-child(6) { animation-delay: .47s; }
html.has-pl .hero .nav .tg { animation-delay: .54s; }
@media (max-width: 1180px) { .links { display: none; } }   /* шесть пунктов не влезают в узкую шапку: навигацию держит плавающее меню */
#format .sec-head { padding-inline: var(--out); }   /* заголовок и текст справа — в тех же 20 px от края блока, что и во всех остальных блоках */

/* ====== Живой сезон ====== */
.meter i { width: var(--fill, 62%); }
.meter.wait i { width: 0; }
.c-sess.done { opacity: .55; }
.c-sess.done .d { text-decoration: line-through; text-decoration-thickness: 3px; }
.bento.end { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bento.end .c-where { justify-content: space-between; }
@media (max-width: 560px) { .bento.end { grid-template-columns: minmax(0, 1fr); } }
/* строка под названием в прелоадере: проявляется вместе со словами, без лишних движений */
.pl { --plfs: clamp(22px, 2.6vw, 40px); }
.pl-row { font-size: var(--plfs); }
.pl-sub { position: absolute; left: 0; right: 0; top: calc(50% + 1.6 * var(--plfs) + 20px); margin: 0; text-align: center; font-family: var(--f-text); font-size: 16px; line-height: 1.3; color: rgba(237, 226, 203, .7); opacity: 0; transition: opacity .5s ease .1s; }
.pl.go .pl-sub { opacity: 1; }
.pl.expand .pl-sub { opacity: 0; transition: opacity .3s ease; }
.pl-win { border-radius: var(--r); }   /* скругление углов окошка с фото — как у остальных фотографий сайта, при растягивании остаётся тем же */

/* Под заголовком: слева «Произведение месяца» с пульсирующей синей точкой, справа прежняя подпись */
.hero-mid { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s); }
.hero-mid .lead { align-self: auto; }
.now-read { display: flex; flex-direction: column; gap: 10px; margin: -0.385em 0 0; color: var(--white); text-decoration: none; font-size: var(--fs-text); line-height: 1.3; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.nr-top { display: inline-flex; align-items: center; gap: 10px; }
.nr-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #4F86C6; box-shadow: 0 0 0 0 rgba(79, 134, 198, .7); animation: nr-pulse 1.8s ease-in-out infinite; }
@keyframes nr-pulse { 0% { box-shadow: 0 0 0 0 rgba(79, 134, 198, .7); } 70%, 100% { box-shadow: 0 0 0 10px rgba(79, 134, 198, 0); } }
.nr-book { color: var(--yellow); }
.now-read:hover .nr-book { text-decoration: underline; text-underline-offset: 4px; }
.now-read .nr-cap, .now-read .nr-book { text-box: trim-both cap alphabetic; }
.hero .now-read { animation: fog 1.2s 1.7s cubic-bezier(.25, .6, .3, 1) both; }
html.has-pl .hero .now-read { animation-delay: .7s; }
@media (max-width: 900px) { .hero-mid { flex-direction: column; gap: var(--s); } .now-read { margin-top: 0; } }
@media (prefers-reduced-motion: reduce) { .hero .now-read, .nr-dot { animation: none; } }

/* Плашка «Произведение месяца»: название белым, как весь текст; точка джинсовая (как у счёта сезона), поменьше и по центру строки */
.nr-book { color: var(--white); }
.nr-top { align-items: center; gap: 8px; }
.nr-dot { width: 8px; height: 8px; background: var(--brown); border: 1px solid rgba(237, 226, 203, .55); box-sizing: border-box; animation-name: nr-pulse2; }
@keyframes nr-pulse2 { 0% { box-shadow: 0 0 0 0 rgba(52, 73, 95, .8); } 70%, 100% { box-shadow: 0 0 0 8px rgba(52, 73, 95, 0); } }

/* «Сейчас читаем»: колонка книги шире (под длинные названия), даты чуть меньше, прошедшие встречи — серые штрихованные, как прошедшие строки афиши */
#now .bento { grid-template-columns: 2.2fr 1fr 1fr 1fr 1.1fr; }
#now .c-sess .d { font-size: clamp(52px, 4.6vw, 96px); }
.c-sess.done, .c-sess.done.next { opacity: 1; background: repeating-linear-gradient(135deg, rgba(237, 226, 203, .14) 0 1.5px, transparent 1.5px 7px), rgba(150, 148, 140, .38); color: var(--white); outline: 1.5px dashed rgba(237, 226, 203, .35); outline-offset: -1.5px; }
.c-sess.done .d { text-decoration: none; }
#now .bento { grid-template-columns: 3fr 1fr 1fr 1fr 1.1fr; }   /* проверено по всем двенадцати названиям на 1440 px: самое длинное слово «предубеждение» помещается */
/* точка в «Произведение месяца»: без обводки, чуть больше, свечение как у плашек «Ближайшая» */
.nr-dot { width: 10px; height: 10px; border: 0; background: var(--brown); animation: breathe 3.2s ease-in-out infinite; }

/* «Сейчас читаем»: обложка держит прежний размер (была 38% прежней ширины карточки), поэтому высота карточек не растёт от расширения колонки книги */
#now .bento { container-type: inline-size; }
#now .c-book .cover { width: calc((100cqw - 80px) * 1.45 / 5.6 * .38); min-width: 0; }
#now .c-book .cover { width: calc(((100cqw - 80px) * 1.45 / 5.6 - 40px) * .38); }
#now .bento { grid-template-columns: 2.26fr 1fr 1fr 1fr 1.39fr; }   /* ширина книги берётся у соседних карточек, а не у высоты: обложка прежнего размера */
#now .bento { grid-template-columns: 2.34fr .98fr .98fr .98fr 1.39fr; }   /* запас по ширине для самого длинного слова («предубеждение») */
.c-book h3 { line-height: .95; }   /* та же высота строки, что у названий месяцев в афише */

/* «Месяц / книга» на первом экране: строки на том же расстоянии друг от друга, что у подписи справа (высота строки 1,5), без надписи «Произведение месяца» */
.now-read { gap: 0; line-height: 1.5; }
.now-read .nr-cap, .now-read .nr-book { text-box: normal; line-height: 1.5; }

/* Футер: катушка и цитата стоят ровно по центру экрана (боковые колонки одинаковой ширины) */
.f-main { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.f-bye { justify-content: center; max-width: 640px; }
@media (max-width: 860px) { .f-main { grid-template-columns: minmax(0, 1fr); } }
.f-bye-txt { width: max-content; max-width: 100%; }   /* блок текста по ширине самой длинной строки, чтобы катушка+цитата были по центру визуально */

/* Плашка «Пройдено» у прошедших встреч: той же формы, что «Ближайшая», но чёрная и спокойная, без «дыхания» */
.tag.tag-done { background: var(--black); color: var(--white); animation: none; box-shadow: none; }
.tag.tag-done { background: rgba(150, 148, 140, .5); color: var(--white); }   /* серая, в тон карточки, полупрозрачная */

/* Ховер жёлтых кнопок — чуть светлее (белесее), как чёрные кнопки чуть светлеют; раньше был чуть темнее: #DEA83C */
.btn.y:hover, .btn.y:focus-visible, .more-btn:hover, .more-btn:focus-visible, .dock-cta:hover, .dock-cta:focus-visible, button.btn.more-btn:hover { background-color: #F6CF7C; }
.tag.tag-done { background: #4A4945; color: var(--white); }   /* плотный серый чуть светлее фона карточки: перекрывает её край и не сливается с чёрным блоком */
.tag.tag-done { background: #17130e; color: var(--white); }   /* тёмный плёночный оттенок, как у ленты в блоке «Формат» */

/* Прочитанный герой при наведении остаётся закрашенным и подпрыгивает (раньше превращался в бумажного) */
.gb.read:hover .gf, .gb.read:focus-visible .gf, .gb.read.on .gf { opacity: 0; animation: none; filter: none; }
.gb.read:hover .gk, .gb.read:focus-visible .gk { opacity: 1; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35)); animation: hop .75s cubic-bezier(.3, 0, .5, 1) 1 both; }
.gb.read.on .gk { opacity: 1; animation: none; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .3)); }
@media (prefers-reduced-motion: reduce) { .gb.read:hover .gk, .gb.read:focus-visible .gk { animation: none; transform: none; } }
.score .cap, .score .c, .score .lab { color: var(--white); }   /* «Счёт сезона», двоеточие и подписи «книга» и «фильм» — светлые */

/* ====== Производительность ====== */
/* блоки вне экрана: бесконечные анимации на паузе (класс ставит скрипт) */
.is-off, .is-off *, .is-off *::before, .is-off *::after { animation-play-state: paused !important; }
/* киноленты: перфорация и надписи по кромке двигаются через transform (видеокарта), а не через сдвиг фона (перерисовка каждый кадр) */
.reel { overflow: clip; }
.reel::before, .reel::after { right: -40px; will-change: transform; animation: tape-x 2.2s linear infinite; }
@keyframes tape-x { to { transform: translateX(-40px); } }
.reel .frames::before, .reel .frames::after { right: -1600px; will-change: transform; animation: tape-text-x 88s linear infinite; }
@keyframes tape-text-x { to { transform: translateX(-1600px); } }
@media (prefers-reduced-motion: reduce) { .reel::before, .reel::after, .reel .frames::before, .reel .frames::after { animation: none; } }

/* «Сейчас читаем»: обложка во всю высоту карточки, в своей пропорции (ширину считает скрипт по высоте соседних карточек); ширины карточек не меняются */
#now .c-book .cover { width: var(--cw, 150px); height: auto; aspect-ratio: 543 / 850; align-self: stretch; }
/* Фото и видео: видео шире половины блока и в пропорции, где помещаются все четверо */
.gallery { grid-template-columns: 3.3fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
.gallery .big { aspect-ratio: 1.72 / 1; }
/* фото не задают высоту строк сетки: высота галереи = высота видео */
.gallery .slot.has-photo { position: relative; }
.gallery .slot.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Афиша: даты всегда «книга и фильм в первой строке, спор под ними» — во всех строках одинаково (плашки одной ширины, а не по цифрам) */
@media (min-width: 1201px) {
  .row .dates { display: grid; grid-template-columns: 130px 145px; justify-content: start; gap: var(--s) 10px; }
  .row .dates span { text-align: center; min-width: 0; }
}
@media (min-width: 1301px) and (max-width: 1359px) {
  .row { grid-template-columns: 220px minmax(0, 1.2fr) minmax(0, 1.5fr) auto; }
}

/* Карточка героя: клик по пустому месту (вокруг фигуры и карточки) закрывает её, герой возвращается в хоровод */
.hero-view, .hv-stage { cursor: pointer; }
.hv-card, .hv-quote, .hv-card * { cursor: auto; }
.hv-card button, .hv-card a { cursor: pointer; }

/* Даты в афише: на широких экранах все три в одну строку, где не хватает места — книга и фильм сверху, спор под ними (плашки одной ширины, поэтому во всех строках одинаково) */
@media (min-width: 1201px) {
  .row .dates { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: var(--s) 10px; }
  .row .dates span { box-sizing: border-box; text-align: center; min-width: 0; }
  .row .dates span:nth-child(1) { width: 130px; }
  .row .dates span:nth-child(2) { width: 145px; }
  .row .dates span:nth-child(3) { width: 130px; }
}

/* Видео: на экранах от 1920 px — ровно половина блока (людям хватает места); уже — шире половины, чтобы люди не обрезались */
@media (min-width: 1920px) { .gallery { grid-template-columns: 2fr 1fr 1fr; } }

/* Карточка «Сноска…»: цены и «Осталось мест» ближе к кнопке на 10 px, «Осталось» ближе к полосе на 10 px */
#now .c-where .btn { margin-top: -7.3px; }
#now .c-where .meter { margin-top: 10px; }

/* Lenis: обязательные правила плавной прокрутки */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ====== Планшет и уже: возвращаем раскладку блоков, которую перебили правила для широких экранов ====== */
@media (max-width: 1300px) {
  #now .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #now .c-book .cover { width: 38%; min-width: 120px; height: auto; aspect-ratio: 543 / 850; align-self: auto; }
  #now .c-sess .d { font-size: clamp(64px, 5.6vw, 112px); }
}
@media (max-width: 900px) {
  #now .bento { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto 160px 160px; }
  .gallery .big { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 1.72 / 1; }
}

/* ==========================================================
   ТОЛЬКО ПЛАНШЕТ (521–900 px). Другие размеры этими правилами не затрагиваются.
   ========================================================== */
.lg-short { display: none; }
@media (min-width: 521px) and (max-width: 900px) {
  /* первый экран: плашка месяца слева (автор отдельной строкой), подпись справа под заголовком, на одном уровне */
  .hero-mid { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: var(--s); }
  .now-read { margin-top: -0.385em; }
  .nr-sep { display: none; }
  .nr-author { display: block; }
  .hero-mid .lead { text-align: right; align-self: auto; }
  /* реплики по центру над двумя кнопками, на 20 px выше них */
  .subs { position: absolute; left: auto; right: var(--out); bottom: calc(var(--out) + var(--ctas-h, 44px) + var(--s)); transform: none; width: var(--ctas-w, 400px); max-width: none; min-height: 0; margin: 0; text-align: center; justify-content: flex-end; }

  /* хоровод: фигуры крупнее, «Практическая магия» в две строки, обе подсказки на одном уровне, по 20 px от краёв блока, короткая надпись */
  .rondo { --fh: 322px; }
  .rf-cap { max-width: 140px; }
  .rondo-legend { position: absolute; left: 0; bottom: 0; margin: 0; }
  .rondo-hand { bottom: 0; }
  .lg-long { display: none; }
  .lg-short { display: inline; }

  /* афиша: год в строку с месяцем; кнопка на всю ширину; плашка «Ближайшая» у края карточки на верхней грани */
  .row .m { flex-direction: row; align-items: baseline; gap: 10px; }
  .row .acts { display: contents; }
  .row .acts .st.open { grid-column: 2; grid-row: 1; justify-self: end; }
  .row .acts .btn { grid-column: 1 / -1; width: 100%; box-sizing: border-box; justify-self: stretch; text-align: center; }
  .row .tag { left: auto; right: var(--s); }
  .note { gap: 10px; }
}
@media (min-width: 521px) and (max-width: 900px) {
  .hero-bottom { margin-top: auto; }
  .row .acts .btn { grid-row: auto; }
}

/* ТОЛЬКО ПЛАНШЕТ: книга и фильм на одной строке пополам, спор ниже на всю ширину; подсказка «Перетащите в сторону» ниже на 2 px; подпись на видео в левом верхнем углу */
@media (min-width: 521px) and (max-width: 900px) {
  .reel .frames { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reel .frames .fr:nth-child(3) { grid-column: 1 / -1; }
  .rondo-hand { transform: translateY(2px); }
  .gallery .big { justify-content: flex-start; }
}

/* ====== Боковое меню «подложка» (только планшет 521–900 px): страница сдвигается влево и открывает меню под собой ====== */
.nav-actions { display: contents; }
.menu-btn, .side-nav, .nav-dim { display: none; }
@media (max-width: 1180px) {
  :root { --nav-w: min(360px, 46vw); }
  .nav-actions { display: flex; align-items: center; gap: 10px; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1.5px solid var(--white); border-radius: 22px; background: rgba(0, 0, 0, .25); color: var(--white); font: inherit; font-size: var(--fs-small); cursor: pointer; transition: background-color .2s, color .2s; }
  .menu-btn svg { width: 20px; height: 20px; }
  .menu-btn:hover, .menu-btn:focus-visible { background: var(--yellow); color: var(--black); border-color: var(--yellow); }

  .side-nav { display: flex; flex-direction: column; position: fixed; z-index: 0; top: 0; right: 0; bottom: 0; width: var(--nav-w); padding: var(--out); box-sizing: border-box; background: var(--white); color: var(--black); visibility: hidden; transition: visibility 0s .75s; overflow-y: auto; }
  html.nav-open .side-nav { visibility: visible; transition-delay: 0s; }
  .sn-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s); font-size: var(--fs-small); color: rgba(0, 0, 0, .6); }
  .sn-close { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1.5px solid var(--black); border-radius: 22px; background: transparent; color: var(--black); font: inherit; font-size: var(--fs-small); cursor: pointer; transition: background-color .2s; }
  .sn-close svg { width: 18px; height: 18px; }
  .sn-close:hover, .sn-close:focus-visible { background: var(--yellow); }
  .sn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
  .sn-list a { display: flex; align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: 10px; color: var(--black); text-decoration: none; font-size: 26px; line-height: 1.15; opacity: 0; transform: translateX(24px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1), background-color .2s; }
  html.nav-open .sn-list a { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * 60ms), calc(.25s + var(--i) * 60ms), 0s; }
  .sn-list a:hover, .sn-list a:focus-visible, .sn-list a[aria-current] { background: var(--yellow); }
  .sn-n { font-size: var(--fs-small); color: rgba(0, 0, 0, .5); min-width: 1.6em; }
  .sn-foot { margin-top: auto; padding-top: var(--s); border-top: 2px dashed rgba(0, 0, 0, .25); display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-small); line-height: 1.3; color: rgba(0, 0, 0, .7); }
  .sn-foot a { color: var(--black); text-underline-offset: 4px; }

  .nav-dim { display: block; position: fixed; z-index: 3; top: 0; bottom: 0; left: 0; right: var(--nav-w); background: rgba(0, 0, 0, 0); pointer-events: none; transition: background-color .7s ease; }
  html.nav-open .nav-dim { background: rgba(0, 0, 0, .35); pointer-events: auto; cursor: pointer; }
  .page { position: relative; z-index: 1; transition: transform .75s cubic-bezier(.7, 0, .2, 1); }
  html.nav-open .page, html.nav-closing .page { background: var(--olive); }
  html.nav-open .page { transform: translateX(calc(var(--nav-w) * -1)); }
  html.nav-open, html.nav-closing { overflow: hidden; }
  html.nav-open .dock { opacity: 0; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) { .page, .sn-list a, .nav-dim { transition: none !important; } }

/* ТОЛЬКО ПЛАНШЕТ: название книги в карточке «Сейчас читаем» — тем же шрифтом, что цифры дат (обычный вес, без утолщения) */
@media (min-width: 521px) and (max-width: 900px) { #now .c-book h3 { font-weight: 400; font-synthesis: none; } }

/* ТОЛЬКО ВЕРТИКАЛЬНЫЙ ПЛАНШЕТ (521–900 px): карточка героя — сверху полоса с героем и облачком рядом, ниже карточка во всю ширину, ничего не накладывается. Горизонтальный планшет (901–1180 px) остаётся в две колонки. */
@media (min-width: 521px) and (max-width: 900px) {
  .hero-view[open] { grid-template-columns: minmax(0, 1fr); grid-template-rows: 300px minmax(0, 1fr); }
  .hv-stage { display: flex; align-items: center; justify-content: flex-start; gap: var(--s); padding: 0 var(--out); }
  .hv-flip { flex: none; }
  .hv-flip > img, .hv-img, .hv-color { height: calc(var(--hs, 1) * 268px); width: auto; }
  .hv-quote { position: static; flex: 1 1 auto; width: auto; max-width: none; min-width: 0; margin: 0; }
}
@media (min-width: 521px) and (max-width: 900px) { #now .c-book h3 { letter-spacing: normal; } }   /* как у цифр дат: у заголовка был лишний интервал между буквами */

/* ====== ТОЛЬКО ВЕРТИКАЛЬНЫЙ ПЛАНШЕТ (521–900 px), вторая партия правок ====== */
@media (min-width: 521px) and (max-width: 900px) {
  /* карточка героя: герой крупнее (по пояс) выглядывает из-за карточки, облачко поменьше и у рта */
  .hero-view[open] { grid-template-rows: 300px minmax(0, 1fr); gap: 0; }
  .hv-stage { align-items: flex-start; overflow: visible; position: relative; z-index: 1; padding-top: 8px; }
  .hv-flip { margin-left: 12px; }
  .hv-flip > img, .hv-img, .hv-color { height: calc(var(--hs, 1) * 640px); }
  .hv-card { position: relative; z-index: 2; }
  .hv-quote { flex: 0 1 300px; margin-top: calc(var(--hs, 1) * 640px * .1); padding: 10px 14px; gap: 4px; }
  .hv-say { font-size: 17px; }

  /* хоровод: обе подсказки одной высоты и на одном уровне, без сдвига (он обрезался краем блока) */
  .rondo-legend, .rondo-hand { height: 42px; box-sizing: border-box; display: flex; align-items: center; padding-block: 0; bottom: 0; transform: none; }

  /* «Сейчас читаем»: книга и фильм на одной строке пополам, спор на всю ширину ниже */
  #now .bento:not(.end) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #now .bento:not(.end) > .c-book, #now .bento:not(.end) > .c-where { grid-column: 1 / -1; }
  #now .bento:not(.end) > .c-sess:nth-child(4) { grid-column: 1 / -1; }
}
@media (min-width: 521px) and (max-width: 900px) {
  /* название книги — того же размера, что цифры дат (11.04, 18.04); обложка чуть уже, чтобы «предубеждение» влезло */
  #now .c-book h3 { font-size: clamp(64px, 5.6vw, 112px); }
  #now .c-book .cover { width: 35%; }
  /* облачко героя у рта */
  .hv-quote { margin-top: calc(var(--hs, 1) * 640px * .06); }
}
@media (min-width: 521px) and (max-width: 900px) {
  /* возврат: размер названия — прежний (36–56 px, подгонка скриптом), обложка — прежние 38% */
  #now .c-book h3 { font-size: clamp(36px, 3vw, 56px); }
  #now .c-book .cover { width: 38%; }
}
@media (min-width: 521px) and (max-width: 900px) {
  /* книга, фильм и спор — все три на одной строке */
  #now .bento:not(.end) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #now .bento:not(.end) > .c-sess:nth-child(4) { grid-column: auto; }
}
@media (min-width: 521px) and (max-width: 640px) {
  /* самый узкий планшет: три даты не помещаются в одну строку — книга и фильм пополам, спор ниже */
  #now .bento:not(.end) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #now .bento:not(.end) > .c-sess:nth-child(4) { grid-column: 1 / -1; }
}
@media (min-width: 521px) and (max-width: 900px) {
  /* облачко героя: хвостик к лицу (облачко справа от героя, хвостик слева) и подпись цитаты на 20 px ниже текста */
  .hv-quote { gap: var(--s); }
  .hv-quote::before { display: block; left: -9px; right: auto; top: 26px; bottom: auto; }
}
@media (min-width: 521px) and (max-width: 900px) { .hv-quote { position: relative; } }
@media (min-width: 521px) and (max-width: 900px) { .hv-quote { top: auto; left: auto; right: auto; bottom: auto; } }

/* ТОЛЬКО ГОРИЗОНТАЛЬНЫЙ ПЛАНШЕТ (901–1180 px), карточка героя: фраза сверху во всю ширину сцены с хвостиком вниз, герой ниже и крупнее, чтобы облачко его не касалось */
@media (min-width: 901px) and (max-width: 1180px) {
  .hv-stage { padding-left: 0; align-content: end; justify-items: center; padding-bottom: 16px; }
  .hv-quote { top: 16px; left: 16px; right: 16px; width: auto; max-width: none; padding: 12px 16px; gap: var(--s); min-width: 0; }
  .hv-quote::before { display: block; left: 50%; right: auto; top: auto; bottom: -9px; margin-left: -10px; }
  .hv-img, .hv-color { height: min(calc(var(--hs, 1) * (100dvh - 80px) * 1.12), calc(100dvh - 80px - 185px)); }
}

/* ТОЛЬКО ГОРИЗОНТАЛЬНЫЙ ПЛАНШЕТ (901–1180 px), футер: катушка поменьше, подпись цитаты в две строки, кнопка Telegram в верхнем правом углу и не задевает автора */
@media (min-width: 901px) and (max-width: 1180px) {
  footer { position: relative; }
  .f-cta { position: absolute; top: var(--out); right: var(--out); }
  .reel-sticker { width: 72px; height: 72px; }
  .f-bye-txt { max-width: 340px; }
}
@media (min-width: 901px) and (max-width: 990px) { .f-bye-txt { max-width: 260px; } }

/* ТОЛЬКО ПЛАНШЕТ (521–1180 px), заставка: окошко с фото между словами крупнее (текст прежний) */
@media (min-width: 521px) and (max-width: 1180px) {
  .pl-win { height: 130px; }
  .pl.open .pl-win, .pl.measure .pl-win { width: 180px; }
  .pl.open .pl-box, .pl.measure .pl-box { width: calc(180px + 1em); }
}

/* Бургер в шапке планшета: без слова «Меню» и без рамки, с анимацией — линии играют при наведении, а при открытом меню складываются в крестик */
@media (max-width: 1180px) {
  .menu-btn { width: 44px; height: 44px; padding: 0; gap: 0; border: 0; border-radius: 50%; background: none; justify-content: center; color: var(--white); }
  .menu-btn:hover, .menu-btn:focus-visible { background: none; border: 0; color: var(--yellow); }
  .menu-btn svg { width: 30px; height: 30px; overflow: visible; }
  .menu-btn path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; transform-box: fill-box; transform-origin: center; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .25s, stroke-dasharray .3s; }
  /* наведение: верхняя и нижняя линии разъезжаются в стороны, средняя сжимается */
  .menu-btn:hover .mb1, .menu-btn:focus-visible .mb1 { transform: translateX(-3px); }
  .menu-btn:hover .mb3, .menu-btn:focus-visible .mb3 { transform: translateX(3px); }
  .menu-btn:hover .mb2, .menu-btn:focus-visible .mb2 { transform: scaleX(.55); }
  /* меню открыто: бургер становится крестиком */
  .menu-btn[aria-expanded="true"] .mb1 { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .mb3 { transform: translateY(-6px) rotate(-45deg); }
  .menu-btn[aria-expanded="true"] .mb2 { transform: scaleX(0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .menu-btn path { transition: none; } }

/* Бургер и крестик — одна кнопка: летающий переключатель поверх страницы и меню */
.nav-toggle { display: none; }
@media (max-width: 1180px) {
  .side-nav { padding-top: 84px; }
  .nav-toggle.show { display: inline-grid; place-items: center; position: fixed; z-index: 6; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--white); cursor: pointer; transition: left .75s cubic-bezier(.7, 0, .2, 1), top .75s cubic-bezier(.7, 0, .2, 1), color .45s; }
  .nav-toggle svg { width: 30px; height: 30px; overflow: visible; }
  .nav-toggle path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; transform-box: fill-box; transform-origin: center; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .25s; }
  .nav-toggle[aria-expanded="true"] { color: var(--black); }
  .nav-toggle[aria-expanded="true"] .mb1 { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .mb3 { transform: translateY(-6px) rotate(-45deg); }
  .nav-toggle[aria-expanded="true"] .mb2 { transform: scaleX(0); opacity: 0; }
  .nav-toggle:hover, .nav-toggle:focus-visible { color: var(--yellow); }
  .nav-toggle[aria-expanded="true"]:hover path { stroke: var(--black); }
  /* пока летает переключатель, бургер шапки не виден (чтобы не двоился) */
  html.nav-open .menu-btn, html.nav-closing .menu-btn { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) { .nav-toggle.show, .nav-toggle path { transition: none; } }
@media (max-width: 1180px) { .sn-list a { align-items: center; } }   /* номер и название пункта меню — на одном уровне */

/* Меню выезжает поверх страницы справа, сама страница остаётся на месте (только планшет) */
@media (max-width: 1180px) {
  html.nav-open .page { transform: none; background: none; }
  html.nav-open .page, html.nav-closing .page { background: none; }
  .side-nav { z-index: 5; transform: translateX(100%); border-radius: 20px 0 0 20px; box-shadow: -18px 0 40px rgba(0, 0, 0, .3); transition: transform .65s cubic-bezier(.2, .8, .2, 1), visibility 0s .65s; }
  html.nav-open .side-nav { transform: none; visibility: visible; transition: transform .65s cubic-bezier(.2, .8, .2, 1), visibility 0s 0s; }
  .nav-dim { z-index: 4; }
  .nav-toggle.show { transition: left .65s cubic-bezier(.2, .8, .2, 1), top .65s cubic-bezier(.2, .8, .2, 1), color .45s; }
}

/* Горизонтальный планшет (901–1180 px): реплики первого экрана по центру над двумя кнопками, как на вертикальном */
@media (min-width: 901px) and (max-width: 1180px) {
  .subs { position: absolute; left: auto; right: var(--out); bottom: calc(var(--out) + var(--ctas-h, 44px) + var(--s)); transform: none; width: var(--ctas-w, 400px); max-width: none; min-height: 0; margin: 0; text-align: center; justify-content: flex-end; }
  .hero-bottom { margin-top: auto; }
}

/* ТОЛЬКО ПЛАНШЕТ (521–1180 px), карточка героя: обложка одного размера у всех героев и поменьше, текст шире, фото выше */
@media (min-width: 521px) and (max-width: 900px) {
  .hv-cover { width: 190px !important; height: auto !important; aspect-ratio: 543 / 850; align-self: flex-start; flex: none; }
}

/* горизонтальный планшет (901–1180): низкий экран, поэтому единая обложка поменьше, чтобы стрелки и фото всегда помещались */
@media (min-width: 901px) and (max-width: 1180px) {
  .hv-cover { width: 150px !important; height: auto !important; aspect-ratio: 543 / 850; align-self: flex-start; flex: none; }
}

/* ТОЛЬКО ВЕРТИКАЛЬНЫЙ ПЛАНШЕТ (521–900 px): карточки афиши в 20 px от краёв экрана (заголовок и подписи остаются на месте, как в «Формате») */
@media (min-width: 521px) and (max-width: 900px) {
  #schedule.sec.plain { padding-inline: 0; }
  #schedule .sec-head, #schedule .note { padding-inline: var(--out); }
}

/* ТОЛЬКО ПЛАНШЕТ (521–1180 px): крестик карточки героя вынесен за карточку, освободившееся место отдано тексту */
@media (min-width: 521px) and (max-width: 1180px) {
  .hero-view > .hv-close { position: absolute; z-index: 5; top: var(--out); right: var(--out); }
  .hv-top { padding-right: 0; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  /* горизонтальный: крестик в правом верхнем углу «сцены» (слева от карточки), фраза чуть ниже него */
  .hero-view > .hv-close { right: auto; left: calc(var(--out) + (100% - var(--out) * 3) * 5 / 12 - 44px - 16px); }
  .hv-quote { top: 76px; }
  .hv-img, .hv-color { height: min(calc(var(--hs, 1) * (100dvh - 80px) * 1.12), calc(100dvh - 80px - 245px)); }
}

/* крестик карточки героя: справа и в 10 px от карточки */
@media (min-width: 521px) and (max-width: 900px) { .hero-view > .hv-close { top: calc(var(--out) + 300px - 54px); right: var(--out); } }
@media (min-width: 901px) and (max-width: 1180px) { .hero-view > .hv-close { top: var(--out); right: auto; left: calc((100% - 60px) * 5 / 12 - 14px); } }

/* горизонтальный планшет: крестик справа от карточки, в 10 px от неё (карточка чуть уже, чтобы он поместился) */
@media (min-width: 901px) and (max-width: 1180px) {
  .hero-view[open] { padding-right: calc(var(--out) + 44px + 10px); }
  .hero-view > .hv-close { left: auto; right: var(--out); top: var(--out); }
  .hv-quote { top: 16px; }
  .hv-img, .hv-color { height: min(calc(var(--hs, 1) * (100dvh - 80px) * 1.12), calc(100dvh - 80px - 185px)); }
}

/* вертикальный планшет: обложка в карточке героя в полтора раза меньше (190 → 127 px), у всех героев одинаковая */
@media (min-width: 521px) and (max-width: 900px) { .hv-cover { width: 127px !important; } }


/* ==========================================================
   ТОЛЬКО ТЕЛЕФОН (до 520 px), сверстано под 390×844. Остальные размеры не затрагиваются.
   ========================================================== */
@media (max-width: 520px) {
  .nav-actions { gap: 4px; }
  .tg { padding-inline: 0.75rem; }

  /* хоровод: короткая надпись */
  .lg-long { display: none; }
  .lg-short { display: inline; }

  /* афиша: карточки в 20 px от краёв экрана, год в строке с месяцем, статус под датами, кнопка на всю ширину, плашка «Ближайшая» у правого края */
  #schedule.sec.plain { padding-inline: 0; }
  #schedule .sec-head, #schedule .note { padding-inline: var(--out); }
  .row .m { flex-direction: row; align-items: baseline; gap: 10px; }
  .row .st, .row .acts .st.open { grid-column: 1 / -1; grid-row: auto; justify-self: start; }
  .row .acts { display: contents; }
  .row .acts .btn { grid-column: 1 / -1; grid-row: auto; width: 100%; box-sizing: border-box; justify-self: stretch; text-align: center; }
  .row .tag { left: auto; right: var(--s); }
  .note { gap: 10px; }

  /* фото и видео: подпись в левом верхнем углу; реплики ниже и мельче */
  .gallery .big { justify-content: flex-start; }
  .vsubs { bottom: 12px; }
  .vs { font-size: 16px; }

  /* футер: подпись цитаты переносится и не вылезает за экран */
  .f-bye, .f-bye-txt { max-width: 100%; min-width: 0; }
  .f-bye-txt { width: auto; }
  .f-bye-s { white-space: normal; text-wrap: balance; }

  /* карточка героя: полоса с героем и облачком сверху, карточка ниже, крестик справа над карточкой */
  .hero-view[open] { grid-template-columns: minmax(0, 1fr); grid-template-rows: 250px minmax(0, 1fr); gap: 0; }
  .hv-stage { display: flex; align-items: flex-start; justify-content: flex-start; gap: 10px; padding: 8px var(--out) 0; overflow: visible; position: relative; z-index: 1; }
  .hv-flip { flex: none; margin-left: 0; }
  .hv-flip > img, .hv-img, .hv-color { height: calc(var(--hs, 1) * 440px); width: auto; }
  .hv-card { position: relative; z-index: 2; padding: var(--out); }
  .hv-quote { position: relative; top: auto; left: auto; right: auto; bottom: auto; flex: 1 1 auto; width: auto; max-width: none; min-width: 0; margin-top: calc(var(--hs, 1) * 440px * .06); padding: 10px 14px; gap: var(--s); }
  .hv-quote::before { display: block; left: -9px; right: auto; top: 22px; bottom: auto; }
  .hv-say { font-size: 16px; }
  .hv-cover { width: 96px !important; height: auto !important; aspect-ratio: 543 / 850; align-self: flex-start; flex: none; }
  .hv-top { padding-right: 0; }
  .hero-view > .hv-close { position: absolute; z-index: 5; top: calc(var(--out) + 250px - 54px); right: var(--out); }
}
@media (max-width: 520px) {
  /* заголовок первого экрана в три строки: строки ближе друг к другу */
  #h1 { line-height: .82; }
  #h1 span { line-height: .82; }
}
@media (max-width: 520px) {
  /* шапка: в 294 px помещаются название, «Telegram-чат» и бургер */
  .nav .tg { padding-inline: .5rem; }
  .menu-btn { width: 38px; }
  .nav-actions { gap: 2px; }
  /* плавающее меню-док не шире экрана */
  .dock { max-width: calc(100vw - 20px); gap: 6px; }
  .dock-t { min-width: 0; }
  .dock-cta { padding: 0 14px; }
  /* «скоро» без внутреннего отступа, ровно по левому краю текста */
  .row .st.soon { padding-inline: 0; }
}
@media (max-width: 520px) { .nav .tg { display: none; } .menu-btn { width: 44px; } }   /* на телефоне в шапке не хватает места на две кнопки: остаётся бургер, а ссылка на Telegram — в боковом меню и в футере */

/* телефон: карточка героя не помещается в экран целиком — она прокручивается внутри, а полоса с героем компактнее */
@media (max-width: 520px) {
  .hero-view[open] { grid-template-rows: 230px minmax(0, 1fr); }
  .hv-flip > img, .hv-img, .hv-color { height: calc(var(--hs, 1) * 300px); }
  .hv-quote { margin-top: calc(var(--hs, 1) * 300px * .06); }
  .hero-view > .hv-close { top: calc(var(--out) + 230px - 54px); }
  .hv-card { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
  .hv-photos { flex: none; height: 110px; min-height: 0; }
  .hv-foot { margin-top: 0; }
}
@media (max-width: 520px) {
  .hero-view[open] { grid-template-rows: 220px minmax(0, 1fr); }
  .hv-flip > img, .hv-img, .hv-color { height: calc(var(--hs, 1) * 250px); }
  .hv-quote { margin-top: calc(var(--hs, 1) * 250px * .06); overflow-wrap: anywhere; }
  .hero-view > .hv-close { top: calc(var(--out) + 220px - 54px); }
  .hv-card:focus, .hv-card:focus-visible { outline: none; }
}

/* телефон: счёт сезона компактнее — слева подпись и «сейчас — месяц», справа цифры; боковое меню шире */
@media (max-width: 520px) {
  :root { --nav-w: min(320px, 82vw); }
  .score { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "cap tally" "now tally"; align-items: center; justify-items: start; text-align: left; column-gap: var(--s); row-gap: 10px; padding: 14px var(--out); }
  .score .cap { grid-area: cap; margin: 0; }
  .score .tally { grid-area: tally; }
  .score .now { grid-area: now; }
  .score .n, .score .c { font-size: 44px; }
  .score .side { gap: 6px; }
}
@media (max-width: 520px) {
  .score { grid-template-columns: auto auto; justify-content: space-between; }
  .score .now { white-space: nowrap; }
  .score .tally { gap: 14px; }
}

/* телефон: счёт не вылезает за плашку; карточка героя — по образцу вертикального планшета (герой по пояс выглядывает из-за карточки); подсказки хоровода в столбик */
@media (max-width: 520px) {
  .score .tally { gap: 8px; }
  .hero-view[open] { grid-template-rows: 250px minmax(0, 1fr); }
  .hv-flip > img, .hv-img, .hv-color { height: calc(var(--hs, 1) * 440px); }
  .hv-quote { flex: 1 1 auto; margin-top: calc(var(--hs, 1) * 440px * .05); }
  .hero-view > .hv-close { top: calc(var(--out) + 250px - 54px); }
  .rondo { padding-bottom: 112px; }
  .rondo-legend { position: absolute; left: 0; right: auto; bottom: 52px; margin: 0; }
  .rondo-hand { position: absolute; left: 0; right: auto; bottom: 0; }
}
@media (max-width: 520px) {
  .hv-flip > img, .hv-img, .hv-color { height: calc(var(--hs, 1) * 340px); }
  .hv-flip { margin-left: -30px; }
  .hv-quote { margin-top: 6px; padding: 8px 12px; }
  .hv-say { font-size: 15px; line-height: 1.25; }
  .hv-src { font-size: 14px; }
}
@media (max-width: 520px) {
  /* подписи «книга» и «фильм» под цифрами не налезают друг на друга */
  .score .tally { gap: 20px; }
  .score .lab { white-space: nowrap; }
  .score .c { align-self: flex-start; }
  .score .side { min-width: 54px; }
}

/* ТОЛЬКО ТЕЛЕФОН (до 520 px): внешние отступы 20, внутренние 10 (и между внутренними элементами 10) */
@media (max-width: 520px) {
  :root { --out: 10px; --s: 10px; }
  .page { padding: 20px; gap: 20px; }
  .hero { padding: 10px; }
  .score { padding: 10px; column-gap: 10px; }
  .score .tally { gap: 10px; }
  .score .lab { white-space: normal; }
  .score .side { min-width: 0; }
  .hero-view[open] { padding: 20px; }
  .hv-card { padding: 10px; }
  .hero-view > .hv-close { right: 20px; }
  .side-nav { padding-inline: 10px; }
  .row .tag { right: 10px; }
}
@media (max-width: 520px) {
  .score { grid-template-columns: minmax(0, 1fr) max-content; }
  .score .tally { min-width: max-content; }
  .score .side { min-width: max-content; }
  .score .now { white-space: normal; }
}
@media (max-width: 520px) { .score .lab { width: max-content; display: block; } }
@media (max-width: 520px) {
  /* хоровод на телефоне: фигуры крупнее, подписи в две строки и не сливаются */
  .rondo { --fh: 340px; }
  .rf-cap { max-width: 112px; }
  .rf-cap span { max-width: 112px; }
}

/* ТОЛЬКО ТЕЛЕФОН (до 520 px), управление касанием: наведения нет, отклик — на нажатие (:active), липких ховеров не остаётся, зоны нажатия не меньше 44 px */
@media (max-width: 520px) and (hover: none) {
  .btn:hover, .tg:hover, .more-btn:hover, .dock-cta:hover { --notch: 0px; }
  .btn.y:hover, .more-btn:hover, .dock-cta:hover { background-color: var(--yellow); }
  .btn.o:hover, .btn.k:hover, .row .st.go:hover { background-color: var(--black); }
  .btn:active, .more-btn:active, .dock-cta:active, .row .st.go:active { --notch: 10px; transform: scale(.97); }
  .btn.y:active, .more-btn:active, .dock-cta:active { background-color: #F6CF7C; }
  .gb:hover .gk, .gb:hover .gf { animation: none; }
  .gb:active .gk { animation: hop .75s cubic-bezier(.3, 0, .5, 1) 1 both; }
  .su-close:hover, .hv-close:hover, .hv-nav:hover, .su-step:hover { background: var(--white); color: var(--black); }
  .su-close:active, .hv-close:active, .hv-nav:active, .su-step:active { background: var(--yellow); transform: scale(.92); }
  .hv-nav, .hv-close, .su-step, .su-close { min-width: 44px; min-height: 44px; }
  .chip, .su-consent, .dock-item { min-height: 44px; }
  .slot:hover, .row:hover, .card:hover { transform: none; }
}
@media (max-width: 520px) {
  /* афиша: плашка «прошёл · …» и одиночные кнопки («Записаться», «Показать все 12 месяцев», «запись открыта») — на всю ширину карточки */
  .row .st, .row .acts .st.open, .row .acts .btn { display: block; width: 100%; box-sizing: border-box; justify-self: stretch; text-align: center; }
  .more-btn { display: flex; justify-content: center; width: 100%; box-sizing: border-box; }
  .cta-band .btn, .bento .c-where .btn, .hero-ctas .btn, .f-cta { width: 100%; box-sizing: border-box; justify-content: center; text-align: center; }
  .f-cta { justify-self: stretch; }
}
@media (max-width: 520px) { .hv-say { font-size: 16px; } .hv-src { font-size: 16px; } }   /* шрифт не мельче 16 px */

/* ТОЛЬКО ТЕЛЕФОН (до 520 px): внешние 20, между карточками (и подкарточками) 20, внутри карточки до содержимого 20; 10 — только между сгруппированными мелкими элементами */
@media (max-width: 520px) {
  :root { --out: 20px; --s: 20px; }
  .page { padding: 20px; gap: 20px; }
  .hero { padding: 20px; }
  .score { padding: 20px; column-gap: 10px; row-gap: 10px; }
  .score .tally { gap: 10px; }
  .score .side { gap: 10px; }
  .hero-view[open] { padding: 20px; }
  .hv-card { padding: 20px; gap: 20px; }
  .side-nav { padding-inline: 20px; }
  .row .tag { right: 20px; }
  /* группы по 10 px */
  .dates { gap: 10px; }
  .row .m { gap: 10px; }
  .prices { gap: 10px; }
  .badges, .c-book .badges { gap: 10px; }
  .rondo-legend, .rondo-hand { }
  .hv-facts { gap: 10px 20px; }
  .hv-quote { gap: 10px; }
  .f-brand, .f-bye { gap: 10px; }
  /* карточка героя помещается в экран: без блока фото и без строки «Книга» (год есть в подписи) */
  .hv-photos { display: none; }
  .hv-facts > :nth-child(1), .hv-facts > :nth-child(2) { display: none; }
  .hv-card { overflow-y: auto; }
}
@media (max-width: 520px) {
  .hero-view[open] { grid-template-rows: 210px minmax(0, 1fr); }
  .hv-flip > img, .hv-img, .hv-color { height: calc(var(--hs, 1) * 300px); }
  .hv-quote { margin-top: 4px; }
  .hero-view > .hv-close { top: calc(20px + 210px - 54px); }
  .hv-card { padding-bottom: 0; }
  .hv-foot { position: sticky; bottom: 0; z-index: 3; margin-top: auto; padding: 10px 0 20px; background: var(--white); }
}

/* Плашка «прошёл · победила книга / победил фильм» той же высоты (45 px), что «Записаться» и «запись открыта», на всех размерах: контур рисуется внутрь, а не добавляет высоту */
.row .st.past { border: 0; box-shadow: inset 0 0 0 1.5px rgba(237, 226, 203, .4); }

/* ТОЛЬКО ТЕЛЕФОН: счёт — внутри 10; счёт и две кнопки — одна группа, между ними 10; от группы до краёв фото-блока 20; заголовки «Формат» и «Афиша» без своей карточки — в 20 px от края экрана */
@media (max-width: 520px) {
  .score { padding: 10px; }
  .hero-bottom { gap: 10px; }
  .hero-ctas { gap: 10px; }
  #format .sec-head, #schedule .sec-head, #schedule .note { padding-inline: 0; }
}
@media (max-width: 520px) { .eyebrow { font-size: 12px; } }   /* подписи капсом над заголовками (Формат, Сейчас читаем …) — 12 px, только телефон, по просьбе */

/* ТОЛЬКО ТЕЛЕФОН: «Читаем книгу, смотрим экранизацию…» прижата к счёту сезона (10 px), «сейчас — месяц» всегда в одну строку */
@media (max-width: 520px) {
  .hero-mid { display: contents; }
  .now-read { margin-top: 0; }
  .hero .lead { margin: auto 0 -10px; align-self: stretch; }
  .hero-bottom { margin-top: 0; }
  .score .now { white-space: nowrap; }
  .score .tally { gap: 6px; }
  .score { column-gap: 8px; }
}

/* ТОЛЬКО ТЕЛЕФОН: надписи по кромке киноленты — 12 px (плитка 1200 px, скорость та же) */
@media (max-width: 520px) {
  .reel .frames::before, .reel .frames::after { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='20' viewBox='0 0 1200 20'><text x='6' y='14' xml:space='preserve' textLength='1185' lengthAdjust='spacing' font-family='Trebuchet MS,Arial,sans-serif' font-size='12' fill='%23e39a2e' fill-opacity='.88'>▸ ДО 16 ЧЕЛОВЕК      ▸ 600 ₽ ЗА ВСТРЕЧУ, 1500 ₽ ЗА ЦИКЛ      ▸ КРУГЛЫЙ ГОД      ▸ ВС · 18:00, «СНОСКА», УЛ. ЖУКОВСКОГО, 18      </text></svg>"); background-size: 1200px 20px; right: -1200px; animation: tape-text-x-p 66s linear infinite; }
}
@keyframes tape-text-x-p { to { transform: translateX(-1200px); } }

/* Обычный текст на всех размерах экрана: межстрочный интервал 130% */
body { line-height: 1.3; }
p, .lead, .subs, dd, dt, li, .note span, .vs, .hv-say, .hv-src, .hv-blurb, .hv-facts dd, .su-note, .su-summary, .su-incl, .f-bye-s, .f-bye-t, .c-book .who, .c-where .addr, .c-where .small, .dates span, .st, .tag, .film, .now-read, .rf-cap span, .rf-cap b { line-height: 1.3; }
.lead, .subs { line-height: 1.3; }

/* ТОЛЬКО ТЕЛЕФОН: «сейчас — любой месяц» в одну строку рядом со счётом без наложения */
@media (max-width: 520px) {
  .score .now { padding: 4px 10px; letter-spacing: 0; }
  .score .tally { gap: 4px; }
  .score .side { min-width: 0; }
}
@media (max-width: 520px) {
  .score { grid-template-areas: "cap tally" "now now"; }
  .score .tally { align-self: start; }
  .score .now { justify-self: start; }
}
.vs, .vs.L, .vs.R { line-height: 1.3; }

/* ТОЛЬКО ТЕЛЕФОН: счёт сокращён — без плашки «сейчас — месяц» (месяц уже написан в плашке над ним): слева «Счёт сезона», справа «0 : 1» с подписями, одна строка */
@media (max-width: 520px) {
  .score .now { display: none; }
  .score { grid-template-columns: minmax(0, 1fr) max-content; grid-template-areas: "cap tally"; align-items: center; }
  .score .cap { align-self: center; }
  .score .tally { align-self: center; }
}

/* ТОЛЬКО ТЕЛЕФОН: счёт в половину ширины, справа; «Счёт сезона» над цифрами, подписи под цифрами */
@media (max-width: 520px) {
  .hero-bottom { grid-template-columns: minmax(0, 1fr); }
  .hero-bottom .score { justify-self: end; width: calc(50% - 5px); box-sizing: border-box; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 10px; }
  .score .cap { margin: 0; align-self: center; }
  .score .tally { align-self: center; gap: 10px; }
}

/* ТОЛЬКО ТЕЛЕФОН: порядок на первом экране — счёт, под ним «Читаем книгу…», затем кнопки; между ними по 10 px */
@media (max-width: 520px) {
  .hero-bottom { display: contents; }
  .hero .nav { order: 0; }
  .hero .h1wrap { order: 1; }
  .hero .now-read { order: 2; }
  .hero .hero-bottom .score { order: 3; margin-top: auto; width: calc(50% - 5px); align-self: flex-end; }
  .hero .lead { order: 4; margin: -10px 0 0; }
  .hero .hero-ctas { order: 5; margin-top: -10px; }
}
@media (max-width: 520px) { .sec-head { row-gap: 10px; } }   /* между заголовком блока и текстом под ним — 10 px вместо 20, во всех блоках (только телефон) */





   /* подпись справа при нехватке места переносится на вторую строку (снизу остаётся по нижней грани даты); карточки одной высоты */




/* ТОЛЬКО ТЕЛЕФОН: карточка книги — обложка слева (90 px), справа название, автор и две плашки друг под другом; расстояние между обложкой и текстом 10 px; длинные названия ужимаются скриптом */
@media (max-width: 520px) {
  #now .c-book { flex-direction: row; align-items: flex-start; gap: 10px; }
  #now .c-book .cover { width: 90px !important; min-width: 90px; height: auto; aspect-ratio: 543 / 850; align-self: flex-start; }
  #now .c-book .book-text { flex: 1 1 auto; min-width: 0; gap: 10px !important; }
  #now .c-book h3 { hyphens: none; }
  #now .c-book .who { font-size: 16px; margin-top: 0; }
  #now .c-book .badges { margin-top: 0; }
}
@media (max-width: 520px) { #now .c-book .film { white-space: nowrap; padding: 4px 10px; letter-spacing: 0; } }

/* ТОЛЬКО ТЕЛЕФОН: карточки «книга / фильм / спор» — слева дата, справа «вс · 18:00» по верхней грани даты, «обсуждаем роман» по нижней грани даты */
@media (max-width: 520px) {
  #now .c-sess { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr 1fr; grid-template-areas: "k k" "d w" "d x"; column-gap: 10px; row-gap: 0; align-items: stretch; min-height: 122px; }
  #now .c-sess .k { grid-area: k; margin-bottom: 10px; }
  #now .c-sess .d { grid-area: d; font-size: 42px; margin: 0; align-self: stretch; }
  #now .c-sess .w { grid-area: w; align-self: start; margin: 0; white-space: nowrap; }
  #now .c-sess .x { grid-area: x; align-self: end; margin: 0; white-space: normal; }
  /* плашки в карточке книги: обложка 80 px, плашки плотнее */
  #now .c-book .cover { width: 80px !important; min-width: 80px; }
  #now .c-book .film { padding: 4px 8px; }
}
@media (max-width: 520px) {
  /* плашки «Фильм / Книга» прижаты к нижней грани обложки */
  #now .c-book { align-items: stretch; }
  #now .c-book .book-text { align-self: stretch; }
  #now .c-book .badges { margin-top: auto; }
}
@media (max-width: 520px) {
  /* плашка «Ближайшая» у карточки встречи — на нижней грани, чтобы не сливаться с синими плашками сверху */
  #now .c-sess .tag:not(.tag-done) { top: auto; bottom: -17px; }
}
@media (max-width: 520px) {
  /* размер цифр дат прежний (64 px); «вс · 18:00» по верхней грани даты, «обсуждаем роман» по нижней */
  #now .c-sess { min-height: 0; }
  #now .c-sess .d { font-size: 64px; }
  #now .c-sess .x { white-space: normal; }
}
@media (max-width: 520px) { #now .c-sess .d { align-self: end; } }   /* низ цифр даты совпадает с низом подписи справа */
@media (max-width: 520px) { #now .c-book .cover { width: var(--phone-cover, 80px) !important; min-width: var(--phone-cover, 80px); } }
@media (max-width: 520px) {
  /* как в самой удачной версии: цифры 52 px, «вс · 18:00» точно по верхней грани цифр, подпись — по нижней, обе в одну строку */
  #now .c-sess { min-height: 0; grid-template-rows: auto 1fr 1fr; row-gap: 0; }
  #now .c-sess .d { font-size: 52px; align-self: stretch; letter-spacing: -.04em; }
  #now .c-sess .w, #now .c-sess .x { white-space: nowrap; }
}
@media (max-width: 520px) { #now .c-sess .tag:not(.tag-done) { top: -17px; bottom: auto; } }

/* ТОЛЬКО ТЕЛЕФОН: подсказки хоровода («Раскрашенный герой…» и «Перетащите…») — 12 px, ниже подписей героев, чтобы не налезать на них */
@media (max-width: 520px) {
  .rondo-legend, .rondo-hand, .rondo-hand-t { font-size: 12px; }
  .rondo-legend { height: auto; min-height: 34px; padding: 6px 10px; }
  .rondo-hand { height: auto; min-height: 34px; padding: 6px 10px; }
  .rondo-hand svg { width: 18px; height: 18px; }
  .rondo { padding-bottom: 130px; }
  .rondo-legend { bottom: 44px; }
  .rondo-hand { bottom: 0; }
}
@media (max-width: 520px) {
  /* подсказки ровно в 20 px ниже самой нижней строки подписей героев, текст по центру плашек */
  .rondo { box-sizing: border-box; padding-bottom: 0; height: calc(var(--fh) + 168px + 45px + 10px + 34px + 20px); }
  .rondo-legend { top: calc(var(--fh) + 168px); bottom: auto; justify-content: center; text-align: center; box-sizing: border-box; width: auto; right: auto; }
  .rondo-hand { top: calc(var(--fh) + 168px + 55px); bottom: auto; justify-content: center; text-align: center; box-sizing: border-box; }
  .lg-short, .rondo-hand-t { text-align: center; }
}
@media (max-width: 520px) {
  /* подписи героев: имя в одну строку, название книги максимум в две */
  .rf-cap { max-width: 140px; }
  .rf-cap b { white-space: nowrap; }
  .rf-cap span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  /* текст плашек по центру и по вертикали: поля сверху и снизу видимые, одинаковые */
  .rondo-legend, .rondo-hand { padding: 10px 14px; line-height: 1.3; align-items: center; }
  .rondo-legend .lg-short, .rondo-hand-t { text-box: trim-both cap alphabetic; line-height: 1.3; display: block; }
  .rondo-hand svg { align-self: center; }
}
@media (max-width: 520px) {
  .rondo-legend { top: calc(var(--fh) + 126px); }
  .rondo-hand { top: calc(var(--fh) + 126px + 61px); }
  .rondo { height: calc(var(--fh) + 126px + 61px + 44px + 20px); }
}
@media (max-width: 520px) {
  .rondo-hand { top: calc(var(--fh) + 126px + 56px); }
  .rondo { height: calc(var(--fh) + 126px + 56px + 40px + 20px); }
}
@media (max-width: 520px) { .rf-cap span { max-width: 140px; } }
@media (max-width: 520px) { .rf-cap, .rf-cap span { max-width: 160px; } }
@media (max-width: 520px) {
  /* обе плашки одной высоты (46 px) */
  .rondo-legend, .rondo-hand { height: 46px; min-height: 46px; box-sizing: border-box; padding-block: 0; display: flex; align-items: center; }
  .rondo { height: calc(var(--fh) + 126px + 56px + 46px + 20px); }
}
@media (max-width: 520px) {
  /* плашки подсказок — формата плашки «Ближайшая»: скругление как у неё, поля 4 × 14, обычный текст 16 px */
  .rondo-legend, .rondo-hand { font-size: 16px; line-height: 1.3; height: auto; min-height: 50px; padding: 4px 14px; border-radius: var(--r); box-sizing: border-box; }
  .rondo-hand-t, .rondo-legend .lg-short { font-size: 16px; }
  .rondo-hand svg { width: 20px; height: 20px; }
  .rondo-hand { top: calc(var(--fh) + 126px + 60px); }
  .rondo { height: calc(var(--fh) + 126px + 60px + 50px + 20px); }
}
@media (max-width: 520px) {
  .rondo { height: calc(var(--fh) + 126px + 60px + 50px); margin-bottom: 0; padding-bottom: 0; }
  #heroes.sec { padding-bottom: 20px; }
}
@media (max-width: 520px) {
  .rondo-hand { display: none; }   /* «Перетащите в сторону» на телефоне убрана, решим позже */
  .rondo-legend { justify-content: flex-start; text-align: left; width: fit-content; max-width: 100%; min-height: 0; height: auto; }
  .rondo-legend .lg-short { text-align: left; }
  .rondo { height: calc(var(--fh) + 126px + 50px); }
}
@media (max-width: 520px) { .rondo { height: calc(var(--fh) + 126px + 42px - 8px); } }
@media (max-width: 520px) { .rondo { height: calc(var(--fh) + 168px); } }

/* ТОЛЬКО ТЕЛЕФОН, карточка героя: фраза 12 px (компактнее), герой крупнее — по пояс, нижняя часть уходит под карточку */
@media (max-width: 520px) {
  .hv-say, .hv-src { font-size: 12px; line-height: 1.3; }
  .hv-quote { padding: 8px 12px; gap: 10px; margin-top: 4px; }
  .hv-flip > img, .hv-img, .hv-color { height: calc(var(--hs, 1) * 420px); }
  .hv-flip { margin-left: -40px; }
  .hv-stage { padding-top: 0; }
}

/* Хвостик облачка героя — поменьше и одинаковый на всех экранах (12 px вместо 20) */
.hv-quote::before { width: 12px; height: 12px; border-radius: 2px; }
.hv-quote::before { left: -5px; top: 22px; }
@media (min-width: 901px) and (max-width: 1180px) { .hv-quote::before { left: 50%; right: auto; top: auto; bottom: -5px; margin-left: -6px; } }
@media (min-width: 1181px) { .hv-quote::before { left: -5px; right: auto; top: 26px; } }
@media (max-width: 900px) { .hv-quote::before { left: -5px; right: auto; top: 18px; bottom: auto; margin-left: 0; } }

/* ТОЛЬКО ТЕЛЕФОН: облачко до правого края в 20 px от края экрана, текст целиком внутри облачка */
@media (max-width: 520px) {
  .hv-stage { padding-right: 0; }
  .hv-quote { box-sizing: border-box; overflow: hidden; overflow-wrap: anywhere; hyphens: auto; }
  .hv-say .w { white-space: normal; }
  .hv-say { overflow-wrap: anywhere; }
}
@media (max-width: 520px) { .hv-quote { overflow: visible; } }
@media (max-width: 520px) {
  /* вырезанный герой: от края экрана не ближе 20 px, облачко справа не задевает */
  .hv-flip > img, .hv-img, .hv-color { height: calc(var(--hs, 1) * 370px); }
  .hv-flip { margin-left: -18px; }
}

/* ТОЛЬКО ТЕЛЕФОН: карточка героя прокручивается целиком; вся информация на месте (книга, экранизация, интересно, фото), стрелки идут в конце содержимого и ничего не закрывают */
@media (max-width: 520px) {
  .hv-card { overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: 20px; }
  .hv-foot { position: static; margin-top: 0; padding: 0; background: none; }
  .hv-photos { display: grid; flex: none; height: 110px; min-height: 110px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .hv-facts > :nth-child(1), .hv-facts > :nth-child(2) { display: revert; }
  .hv-facts { padding-block: 10px; }
  .hv-card > * { flex: none; }
}

/* ТОЛЬКО ТЕЛЕФОН, карточка героя: название книги и автор мельче, по одной строке на всю ширину; описание на всю ширину под обложкой и заголовком */
@media (max-width: 520px) {
  .hv-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "eyebrow cover" "name cover" "book book" "blurb blurb"; column-gap: 10px; row-gap: 10px; padding-right: 0; }
  .hv-left, .hv-head { display: contents; }
  .hv-eyebrow { grid-area: eyebrow; }
  .hv-head h2 { grid-area: name; align-self: start; }
  .hv-cover { grid-area: cover; align-self: start; }
  .hv-book { grid-area: book; font-size: 16px !important; line-height: 1.3; }
  .hv-book .bk-t, .hv-book .bk-a { display: block; white-space: nowrap; }
  .hv-book .bk-s { display: none; }
  .hv-book .bk-t { font-size: 18px; }
  .hv-blurb { grid-area: blurb; }
}
@media (max-width: 520px) { .hv-book .bk-t { font-size: 16px; } .hv-book .bk-a { font-size: 16px; } }
@media (max-width: 520px) { .hv-card { align-self: start; max-height: 100%; height: auto; padding-bottom: 20px; } .hv-foot { padding-bottom: 0; } }   /* карточка по высоте содержимого: пустого места под стрелками нет, внизу только отступ 20 */
@media (max-width: 520px) { .hv-eyebrow .ey-s { display: none; } .hv-eyebrow .ey-a, .hv-eyebrow .ey-m { display: block; } }   /* телефон: «Герой сезона» и ниже «Месяц год» */

/* ТОЛЬКО ТЕЛЕФОН: туман под афишей — следующий месяц выглядывает и плавно растворяется в цвет страницы перед кнопкой */
@media (max-width: 520px) {
  .js .more:not(.open) { max-height: 120px; }
  .js .more:not(.open)::after { background: linear-gradient(to bottom, rgba(105, 97, 57, 0) 0%, rgba(105, 97, 57, .75) 45%, var(--olive) 88%); }
}

/* ТОЛЬКО ТЕЛЕФОН: плашка «сентябрь · «Мгла»» на верхнем контуре видео, как «Ближайшая» у карточек: половина над рамкой, в 20 px от левого края */
@media (max-width: 520px) {
  .gallery .slot.big { overflow: visible; }
  .gallery .slot.big .big-video { border-radius: var(--r); }
  .gallery .big > span { position: absolute; top: -17px; left: 20px; z-index: 3; padding: 4px 14px; }
}
@media (max-width: 520px) { .row .m { justify-content: space-between; } .row .m small { margin-left: auto; text-align: right; } }   /* телефон: год справа, прижат к правому краю карточки */
@media (max-width: 520px) { .row .m { grid-column: 1 / -1; width: 100%; } }
@media (max-width: 520px) { .gallery .big > span { left: auto; right: 10px; } }
@media (max-width: 520px) {
  /* субтитры на видео — на всю ширину кадра, только отступы по 10 px с боков */
  .vsubs { left: 0; right: 0; width: auto; max-width: none; padding-inline: 10px; }
  .vs, .vs.L, .vs.R { max-width: 100%; width: 100%; box-sizing: border-box; padding-inline: 0; white-space: normal; text-wrap: balance; }
}
@media (max-width: 520px) { .vs, .vs.L, .vs.R { text-wrap: wrap; } }   /* без выравнивания строк «по балансу»: строка занимает всю доступную ширину */
.brk { display: block; }                                /* на всех размерах, кроме телефона, это обычный перенос строки */
@media (max-width: 520px) { .brk { display: inline; } }   /* телефон: абзацев нет, текст идёт одним полотном */

/* Шум один и тот же: пока открыто окно (билет или карточка героя), шум страницы выключен, его заменяет такой же шум самого окна на весь экран — двойного шума нет */
html.modal-open body::after { display: none; }

/* Точка и месяц на первом экране (все размеры): слово на 10 px правее, точка чуть выше — по середине слова */
.nr-top { gap: 18px; }
.nr-dot { position: relative; top: -2px; }

/* Внешний радиус каждого блока страницы — 30 px (первый экран, секции, футер); внутренние элементы остаются 20 */
.hero, .sec, footer, .page > section, .page > header, .page > footer { border-radius: 30px; }
.rondo-legend, .rondo-hand { border-radius: 20px; }   /* плашки подсказок хоровода — скругление 20 px на всех размерах */

/* Подсказка хоровода: тонкие шевроны и точка, которая мягко скользит между ними (вместо жирной руки) */
.rondo-hand .rh-slide { width: 48px; height: 16px; flex: none; overflow: visible; }
.rondo-hand .rh-slide path { stroke-width: 1.3; }
.rondo-hand .rh-dot { animation: rh-glide 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes rh-glide { 0%, 100% { transform: translateX(-12px); opacity: .55; } 50% { transform: translateX(12px); opacity: 1; } }
.rondo-hand:hover svg, .rondo-hand:focus-visible svg, .rondo.dragging .rondo-hand svg { animation: none; }
@media (prefers-reduced-motion: reduce) { .rondo-hand .rh-dot { animation: none; } }

/* Плашки подсказок хоровода — той же высоты, что «Ближайшая» (29 px): поля 4 × 14, строка 1,3, текст 16 px; на всех экранах шире телефона */
@media (min-width: 521px) {
  .rondo-legend, .rondo-hand { height: 29px; min-height: 29px; padding: 4px 14px; font-size: 16px; line-height: 1.3; box-sizing: border-box; display: flex; align-items: center; white-space: nowrap; }
  .rondo-hand-t, .rondo-legend .lg-short, .rondo-legend .lg-long { font-size: 16px; line-height: 1.3; }
  .rondo-hand .rh-slide { width: 40px; height: 14px; }
}
@media (min-width: 521px) and (max-width: 720px) {
  /* узкий планшет: плашки не помещаются в один ряд — одна над другой, между ними 10 px */
  .rondo { padding-bottom: 88px; }
  .rondo-legend { bottom: 39px; }
  .rondo-hand { bottom: 0; }
}

/* Афиша: плашки дат, статусы и кнопки «Записаться» — той же высоты, что «Ближайшая» (29 px), на всех размерах */
.row .st, .row .btn.st, .row .dates span { box-sizing: border-box; height: 29px; min-height: 29px; padding: 4px 14px; line-height: 1.3; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; }
.row .st.past { box-shadow: inset 0 0 0 1.5px rgba(237, 226, 203, .4); }
.row .dates span em { line-height: 1.3; }
@media (max-width: 520px) { .row .st, .row .acts .st.open, .row .acts .btn, .row .btn.st { display: flex; height: 29px; min-height: 29px; } }

/* Футер (широкие экраны, от 861 px): всё начинается сверху в 20 px от края, адрес в 20 px под названием, катушка высотой с цитату вместе с автором */
@media (min-width: 861px) {
  .f-main { align-items: start; }
  .f-cta { align-self: start; position: static; margin: 0; justify-self: end; }
  .f-brand { gap: 20px; }
  .f-bye { align-items: stretch; }
  .f-bye .reel-sticker { width: auto; height: auto; align-self: stretch; aspect-ratio: 1 / 1; flex: none; }
  footer { position: relative; }
}
@media (min-width: 861px) {
  .f-bye { align-items: center; }
  .f-bye .reel-sticker { width: var(--reel-h, 110px); height: var(--reel-h, 110px); align-self: center; aspect-ratio: auto; }
}
/* Плашка «Ближайшая» в афише — у правого края карточки, в 20 px от него, на верхней грани (все размеры) */
.row .tag { left: auto; right: 20px; }
@media (min-width: 861px) { .f-brand { gap: 24px; } }   /* по видимым буквам от названия до адреса 20 px */
/* Афиша: кнопка «Записаться» и плашка «запись открыта» — той же высоты, что «Записаться» в плавающем меню (48 px) */
.row .btn.st, .row .st.open { height: 48px; min-height: 48px; padding-block: 0; }
@media (max-width: 520px) { .row .acts .btn, .row .acts .st.open, .row .btn.st { height: 48px; min-height: 48px; } }

/* Плавающее меню: скругление 20 px у кнопки «Записаться» и у самой плашки меню (свёрнутой и раскрытой) */
.dock-cta { border-radius: 20px; }
.dock-view, .dock:hover .dock-view, .dock-view:hover, .dock-view:focus-within, .dock.open .dock-view { border-radius: 20px; }
.dock-item { border-radius: 16px; }
/* Афиша: «прошёл · победил …» той же высоты, что «Записаться» и «запись открыта» (48 px) */
.row .st.past { height: 48px; min-height: 48px; padding-block: 0; }
@media (max-width: 520px) { .row .st.past { height: 48px; min-height: 48px; } }

/* Десктоп (от 901 px): плашка «сентябрь · «Мгла»» на верхнем контуре видео у правого края, в 20 px от него, как «Ближайшая», но без «дыхания» */
@media (min-width: 901px) {
  .gallery .slot.big { overflow: visible; }
  .gallery .slot.big .big-video { border-radius: var(--r); }
  .gallery .big > span { position: absolute; top: -17px; left: auto; right: 20px; z-index: 3; padding: 4px 14px; background: var(--brown); animation: none; box-shadow: none; }
}

/* Хвостик облачка героя смотрит в сторону героя: на десктопе герой справа от облачка — хвостик справа; на планшете и телефоне — см. ниже */
@media (min-width: 1181px) { .hv-quote::before { left: auto; right: -5px; top: 26px; bottom: auto; margin-left: 0; } }

/* ====== ТОЛЬКО САМЫЕ УЗКИЕ ТЕЛЕФОНЫ (до 359 px, проверено на 320×568) ====== */
@media (max-width: 359px) {
  :root { --out: 20px; }
  /* заголовок первого экрана меньше */
  #h1 { font-size: calc(var(--fs-hero) * var(--fit, 1) * .9); }
  /* счёт: внутри плашки отступ 10 со всех сторон, цифры и подписи помещаются */
  .score { padding: 10px; column-gap: 6px; }
  .hero-bottom .score { width: calc(50% - 5px); }
  .score .cap { font-size: 12px; white-space: normal; text-align: center; }
  .score .n, .score .c { font-size: 34px; }
  .score .tally { gap: 4px; }
  .score .lab { font-size: 12px; }
  .sec-head h2 { font-size: clamp(34px, 11vw, 44px); }
  .eyebrow { max-width: 100%; white-space: normal; }
  /* карточка книги: обложка слева, название и автор справа, плашки под обложкой на всю ширину карточки */
  #now .c-book { display: grid; grid-template-columns: var(--phone-cover, 80px) minmax(0, 1fr); grid-template-areas: "cover title" "cover who" "badges badges"; column-gap: 10px; row-gap: 10px; align-items: start; }
  #now .c-book .book-text { display: contents !important; }
  #now .c-book .cover { grid-area: cover; }
  #now .c-book h3 { grid-area: title; margin: 0; }
  #now .c-book .who { grid-area: who; margin: 0; }
  #now .c-book .badges { grid-area: badges; grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; margin: 0; }
  #now .c-book .badges .film { width: 100%; box-sizing: border-box; text-align: center; white-space: normal; }
  /* подписи карточек встреч переносятся на вторую строку */
  #now .c-sess .x, #now .c-sess .w { white-space: normal; }
  #now .c-sess { min-height: 0; }
  /* карточка героя: статистику («Книга», «Экранизация», «Интересно») не показываем */
  .hv-facts { display: none; }
}
@media (max-width: 359px) {
  #now .c-sess .d { font-size: 40px; letter-spacing: -.04em; }
  #now .c-sess .w { white-space: nowrap; }
  #now .c-sess { column-gap: 6px; }
}

/* ТОЛЬКО ТЕЛЕФОН (до 520 px), окно записи: согласие и «проект демонстрационный» — 12 px, чтобы весь билет помещался */
@media (max-width: 520px) {
  .su-consent, .su-consent > span, .su-demo { font-size: 12px; line-height: 1.3; }
  .su-demo { margin: 0; }
}

/* ТОЛЬКО ТЕЛЕФОН: на низком экране билет не сжимается (раньше верхняя часть с выбором встреч и полями умещалась в 100 px и прокручивалась отдельно), а прокручивается целиком */
@media (max-width: 520px) {
  .signup .ticket { max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; }
  .signup .tk-main { flex: none; overflow: visible; }
  .signup .tk-stub { flex: none; }
}

/* Плашка «сейчас — месяц» в счёте убрана на всех размерах: месяц уже написан под заголовком («Октябрь · «Шоколад», …») */
.score .now { display: none; }
/* ТОЛЬКО ТЕЛЕФОН: между подписью карточки («01 · Книга») и остальным содержимым на 10 px больше */
@media (max-width: 520px) { #now .c-sess .k { margin-bottom: 20px; } }

/* Главный заголовок в три строки (до 759 px): потолок размера, чтобы не разрастался. 390–520 px — 83 px, 521–759 px — 94 px; меньше 390 подгоняется по ширине. С 760 px — одна строка (67 px), как было */
@media (max-width: 759px) { #h1 { font-size: min(calc(var(--fs-hero) * var(--fit, 1)), 94px); } }
@media (max-width: 520px) { #h1 { font-size: min(calc(var(--fs-hero) * var(--fit, 1)), 83px); } }
@media (max-width: 359px) { #h1 { font-size: min(calc(var(--fs-hero) * var(--fit, 1) * .9), 83px); } }
@media (max-width: 759px) { #h1, #h1 span { line-height: .82; } }   /* три строки — межстрочный интервал одинаковый на всех экранах до 759 px */

/* 1181–1340 px: реплики первого экрана по центру над двумя кнопками (как на планшете), чтобы не перекрывались кнопками и не уезжали */
@media (min-width: 1181px) and (max-width: 1340px) {
  .subs { position: absolute; left: auto; right: var(--out); bottom: calc(var(--out) + var(--ctas-h, 55px) + var(--s)); transform: none; width: var(--ctas-w, 460px); max-width: none; min-height: 0; margin: 0; text-align: center; justify-content: flex-end; }
  .hero-bottom { margin-top: auto; }
}

/* 521–640 px: кнопки первого экрана одной ширины и пошире — в отдельной строке на всю ширину блока, под счётом */
@media (min-width: 521px) and (max-width: 640px) {
  .hero-bottom { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
  .hero-bottom .score { justify-self: start; }
  .hero-bottom .hero-ctas { grid-column: 1 / -1; justify-self: stretch; width: 100%; flex-wrap: nowrap; gap: 10px; }
  .hero-ctas .btn { flex: 1 1 0; min-width: 0; text-align: center; justify-content: center; }
}
@media (max-width: 520px) { .hero-bottom .score { padding: 6.5px 10px 10px; } }   /* у шрифта над буквами «Счёт сезона» остаётся свой воздух (3,5 px): компенсируем, чтобы видимые отступы были 10 со всех сторон */

/* Видимые отступы: у шрифта над заглавными и под базовой линией остаётся собственный «воздух» — убираем его у текста, стоящего у края блока,
   чтобы отступ считался от видимых букв (20 до края блока = ровно 20 до заглавных букв) */
.sec .sec-head .eyebrow, .cta-band .eyebrow { text-box-trim: trim-start; text-box-edge: cap alphabetic; }          /* подпись над заголовком блока: воздух сверху убран, расстояние до заголовка прежнее */
.row .m b, .row .m small, .row .t b, .row .t > span { text-box: trim-both cap alphabetic; }                      /* строка афиши: месяц, год, название, автор */

/* ====== Первый экран: счёт, кнопки, реплики по диапазонам ширины ====== */
/* Счёт: плашка по ширине содержимого (боковые отступы ровно 10, считаются от слов «книга», «фильм»), «книга» и «фильм» не слипаются */
.score .side { flex: none; }
.score .lab { white-space: nowrap; }
.score .tally { gap: 14px; }
@media (max-width: 759px) { .hero .hero-bottom .score { width: fit-content !important; max-width: 100%; } }

/* до 519 px: счёт слева; текст «Читаем книгу…» над кнопками; субтитров нет */
@media (max-width: 519px) {
  .hero .hero-bottom .score { align-self: flex-start; }
  .subs { display: none; }
}

/* 520–759 px: заголовок «Читаем. Смотрим.» / «Спорим.» слева; счёт слева внизу, две кнопки справа друг над другом */
@media (min-width: 520px) and (max-width: 759px) {
  .hero .nav, .hero .h1wrap, .hero .now-read, .hero .hero-bottom, .hero .lead, .hero .hero-ctas, .hero .hero-bottom .score { order: 0; }
  .hero-mid { display: flex !important; justify-content: space-between; align-items: flex-start; gap: 20px; }
  .hero .lead { margin: 0; text-align: right; align-self: auto; }
  .hero .now-read { margin-top: -0.385em; }
  .hero .hero-bottom { display: grid !important; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 20px; margin-top: auto; }
  .hero .hero-bottom .score { margin: 0; justify-self: start; align-self: end; }
  .hero .hero-bottom .hero-ctas { grid-column: 2; grid-row: 1; margin: 0; justify-self: end; width: auto; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 10px; }
  .hero-ctas .btn { flex: none; width: 100%; box-sizing: border-box; }
  .subs { display: none; }
}
/* 640–759 px: над кнопками появляются реплики */
@media (min-width: 640px) and (max-width: 759px) {
  .subs { display: flex; }
}
.hero .hero-bottom .score .tally { gap: 12px; }
@media (max-width: 359px) { .hero .hero-bottom .score .tally { gap: 8px; } }
.score .side { min-width: max-content; }   /* колонка шириной по подписи («книга», «фильм»), чтобы подписи не заходили друг на друга и поля плашки считались от слов */
.score .lab { width: max-content; display: block; }   /* подпись занимает свою ширину (раньше была нулевой ширины и выступала из колонки)  */
/* Счёт на всех экранах: боковые отступы ровно 10 (от слов «книга», «фильм»), сверху и снизу видимые 10 */
.hero .hero-bottom .score { --k: 10px; padding: calc(var(--k) - 3.5px) var(--k) calc(var(--k) + 4px); }   /* у «ф» хвост вниз: добавка снизу, чтобы видимые поля были равны */
@media (max-width: 500px) { .hero .hero-bottom .score { padding-bottom: calc(var(--k) + 3px); } }
@media (max-width: 359px) { .hero .hero-bottom .score { padding-bottom: calc(var(--k) + 2px); } }
@media (min-width: 521px) { .hero .hero-bottom .score { --k: 20px; } }   /* где у сайта отступы 20 — и в счёте 20: до краёв, между словами, между цифрами и словами */

/* Счёт: «книга» и «фильм» стоят на расстоянии 10 друг от друга и по 10 от краёв плашки; цифры по центру под своими подписями, двоеточие посередине между ними */
.hero .hero-bottom .score .tally { display: grid; grid-template-columns: auto var(--k) auto; column-gap: 0; justify-content: center; align-items: start; }
.hero .hero-bottom .score .tally .c { width: 0; display: flex; justify-content: center; grid-column: 2; align-self: start; }
.hero .hero-bottom .score .tally .side { gap: var(--k); }   /* от низа цифры до верха слова — 10 видимых */

/* Реплики на 751–759 px не показываем */
@media (min-width: 751px) and (max-width: 759px) { .subs { display: none; } }

/* до 519 px: текст «Читаем книгу, смотрим экранизацию…» над кнопками — на всю ширину блока */
@media (max-width: 519px) { .hero .lead { max-width: none; width: 100%; text-align: left; text-wrap: wrap; } }

/* Телефон, заголовки блоков: «Сейчас читаем» → «Книга октября» → текст — по 10 видимых px (воздух шрифта у подписи и заголовка срезан) */
@media (max-width: 520px) {
  .sec .sec-head .eyebrow { text-box: trim-both cap alphabetic; margin: 0 0 10px; }
  .sec .sec-head h2 { text-box: trim-both cap alphabetic; }
}

/* Телефон, блок «Сейчас читаем»: «Сейчас читаем» → «Книга октября» 20; внутри карточек до краёв 10; между карточками 10; от даты до верхней подписи — прежние 20 */
@media (max-width: 520px) {
  .sec .sec-head .eyebrow { margin-bottom: 20px; }
  #now .bento { gap: 10px; row-gap: 10px; }
  #now .bento > .card { padding: 10px; }
}

/* Телефон, адрес и цены: адрес в одну строку (может чуть выйти за 20 px), «улица» → «кинозал» 10, дальше 20; «Осталось» → ползунок 10, дальше 20; «встреча» → «весь цикл» 10, до кнопки 20 (считая по видимым буквам) */
@media (max-width: 520px) {
  #now .bento > .c-where { padding: 0; }
  #now .c-where .addr { white-space: nowrap; }
  #now .c-where .addr span { margin-top: 4.4px; }
  #now .c-where .small { margin-top: 0.5px; }
  #now .c-where .meter { margin-top: 4px; }
  #now .c-where .prices { margin-top: 4px; gap: 13px; }
  #now .c-where .btn { margin-top: -5.1px; }
}

/* Телефон уже 360 px: автор сразу под названием; в карточках встреч подпись («обсуждаем роман») под датой на всю ширину, день и время — сбоку от даты; адрес переносится */
@media (max-width: 359px) {
  #now .c-book { grid-template-rows: auto auto 1fr auto; grid-template-areas: "cover title" "cover who" "cover ." "badges badges"; }
  #now .c-sess { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto; grid-template-areas: "k k" "d w" "x x"; column-gap: 10px; row-gap: 10px; }
  #now .c-sess .x { align-self: start; }
  #now .c-sess .w { align-self: end; }
  #now .c-where .addr { white-space: normal; }
}

/* Телефон: плашку «Ближайшая» в карточках встреч пока убрали */
@media (max-width: 520px) { #now .c-sess .tag { display: none; } }

/* Планшет (720–900 px): книга слева на две колонки, справа рядом с ней — адрес, места, цены и кнопка; три встречи ниже в один ряд. Пустого места справа от названия не остаётся */
@media (min-width: 720px) and (max-width: 900px) {
  #now .c-book .cover { width: clamp(130px, 18vw, 170px); min-width: 0; align-self: flex-start; }
  #now .bento:not(.end) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #now .bento:not(.end) > .c-book { grid-column: 1 / 3; grid-row: 1; }
  #now .bento:not(.end) > .c-where { grid-column: 3 / 4; grid-row: 1; align-self: stretch; justify-content: space-between; }
  #now .bento:not(.end) > .c-sess:nth-child(4) { grid-column: auto; }
  #now .c-where .addr { white-space: normal; }
}
/* Большой телефон (430–520 px): плашки «Фильм 2000 года» и «Книга 1999 года» в одну строку, если помещаются */
@media (min-width: 430px) and (max-width: 520px) {
  #now .c-book .badges { flex-direction: row; flex-wrap: wrap; }
}

/* 901–1299 px: обложка поменьше, книга и запись — в одну строку пополам, три встречи ниже. Карточки невысокие, пустого места нет */
@media (min-width: 901px) and (max-width: 1299px) {
  #now .bento:not(.end) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  #now .bento:not(.end) > .c-book { grid-column: 1 / 4; grid-row: 1; }
  #now .bento:not(.end) > .c-where { grid-column: 4 / 7; grid-row: 1; align-self: stretch; justify-content: space-between; }
  #now .bento:not(.end) > .c-sess, #now .bento:not(.end) > .c-sess:nth-child(4) { grid-column: span 2; }
  #now .c-book .cover { width: clamp(130px, 15vw, 190px); min-width: 0; align-self: flex-start; }
  #now .c-where .addr { white-space: normal; }
}

/* Плашка «Ближайшая» в карточках встреч — только с 1300 px */
@media (max-width: 1299px) { #now .c-sess .tag { display: none; } }

/* Один размер крупных слов и цифр: «Книга / Фильм / Спор» в блоке «Формат», месяцы в афише, даты встреч («11.10»); название книги растёт до этого размера */
:root { --fs-num: clamp(48px, 4.4vw, 84px); }
.fr h3, .row .m b, #now .c-sess .d { font-size: var(--fs-num) !important; }

/* Иерархия на самых узких телефонах (до 359 px): заголовки блоков («Книга октября», «Три вечера») крупнее, чем «Шоколад», месяцы, даты и «Книга / Фильм / Спор» */
@media (max-width: 359px) {
  :root { --fs-num: 36px; }
  .sec-head h2 { font-size: 48px; }
}

/* «Формат»: до 639 px три карточки в столбик; с 640 px книга и фильм в одной строке, спор ниже на всю ширину */
@media (min-width: 521px) and (max-width: 639px) {
  .reel .frames { grid-template-columns: minmax(0, 1fr); }
  .reel .frames .fr:nth-child(3) { grid-column: auto; }
}

/* «Формат»: «3-е воскресенье» встаёт рядом с названием у всех трёх карточек при одной и той же ширине (по самому длинному слову «Фильм»), а не у каждой по-своему */
.fr .body { container-type: inline-size; }
.fr .head { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; justify-content: flex-start; }
@container (min-width: 270px) { .fr .head { flex-direction: row; justify-content: space-between; } }

/* ====== Блок «Герои сезона»: подсказки хоровода — отдельный ряд под хороводом ======
   Две плашки («Раскрашенный герой…» и «Перетащите в сторону») лежат в потоке под хороводом, а не поверх него: рамка не обрезается, высота не прыгает.
   Помещаются в строку — липнут одна к левому краю, другая к правому; не помещаются — встают в столбик по левому краю. */
.rondo { height: auto !important; padding: var(--s) 0 0 !important; }
.rondo-ui { position: relative; z-index: 3; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 0; padding-bottom: 2px; }
.rondo-legend, .rondo-hand {
  position: static !important; inset: auto !important; transform: none !important; margin: 0 !important; width: auto !important; max-width: 100%; height: auto !important; min-height: 0 !important;
  box-sizing: border-box; display: flex !important; align-items: center; justify-content: flex-start; gap: 10px; padding: 10px 14px !important;
  border: 1.5px solid var(--white); border-radius: 20px; background: rgba(0, 0, 0, .3); color: var(--white); text-align: left;
  font-size: var(--fs-small) !important; line-height: 1.3 !important;
}
.rondo-legend span, .rondo-hand-t { font-size: inherit !important; line-height: 1.3 !important; text-align: left !important; text-box: trim-both cap alphabetic; text-wrap: balance; }
.rondo-hand-t { white-space: nowrap; }
.rondo-hand svg { align-self: center; flex: none; }
@media (max-width: 520px) { .rondo-legend, .rondo-hand { font-size: 12px !important; } .rondo-hand .rh-slide { width: 36px; height: 12px; } }

/* Размер хоровода: на телефонах и планшетах — по высоте экрана, чтобы хоровод с подписями и подсказками помещался в один экран; если места больше, фигурки крупнее */
@media (max-width: 520px) { .rondo { --fh: clamp(220px, calc(100svh - 330px), 400px); } }
@media (min-width: 521px) and (max-width: 900px) { .rondo { --fh: clamp(260px, calc(100svh - 330px), 440px); } }

/* Подписи под героями не наезжают друг на друга: ширина подписи не больше шага между героями (≈ 0,47 высоты фигуры), длинные названия — в две строки */
.rf-cap { max-width: calc(var(--fh) * .46) !important; }
.rf-cap span { max-width: 100% !important; display: block; overflow: visible; -webkit-line-clamp: unset; }
.rf-cap b { white-space: normal; }
.rondo-legend, .rondo-hand { min-height: 36px !important; }   /* обе плашки одной высоты */
@media (max-width: 520px) { .rondo-legend, .rondo-hand { min-height: 34px !important; } }

/* --- Герои сезона, вторая правка --- */
/* текст плашек — обычный размер текста и один цвет; слова центрируются по строчным буквам (от тела слова вверх и вниз поровну) */
.rondo-legend, .rondo-hand { font-size: var(--fs-text) !important; color: var(--white) !important; padding: 8px 14px !important; }
.rondo-hand-t, .rondo-hand:hover .rondo-hand-t { color: var(--white) !important; }
@media (max-width: 520px) { .rondo-legend, .rondo-hand { font-size: var(--fs-text) !important; } .rondo-hand .rh-slide { width: 40px; height: 14px; } }
.rondo-legend span, .rondo-hand-t { text-box: trim-both ex alphabetic !important; }
.rondo-legend, .rondo-hand { min-height: 0 !important; }
.rondo-hand { align-items: center; }
/* подписи под героями: высота ряда считается по самой длинной подписи, до плашек 20 */
.rondo-set { height: var(--set-h, calc(var(--fh) + 96px)) !important; }
.rondo-ui { margin-top: 20px; }
/* хоровод крупнее, если позволяет место (ПК) */
@media (min-width: 901px) { .rondo { --fh: clamp(300px, min(28vw, calc(100svh - 300px)), 460px); } }
.rondo-legend, .rondo-hand { min-height: 36px !important; }
@media (max-width: 359px) { .rondo-hand-t { white-space: normal; } .rondo-hand { padding-inline: 12px !important; } .rondo-hand .rh-slide { width: 30px; } }

.rondo-legend span { text-wrap: wrap !important; }   /* слова заполняют первую строку, а не выравниваются по длине */

/* ====== Карточка героя: правки для телефона ====== */
/* до 360 px: цитаты нет, фигурка по центру сверху */
@media (max-width: 360px) {
  .hv-quote { display: none !important; }
  .hv-stage { justify-content: center !important; padding-inline: 0 !important; }
  .hv-flip { margin-left: 0 !important; }
}
/* имя героя стоит на нижней границе обложки */
@media (max-width: 520px) { .hv-head h2 { align-self: end; } }
/* стрелки и счётчик по центру; от цифр до стрелок по 10; «Смотреть в афише» — ниже, тоже по центру */
@media (max-width: 439px) {
  .hv-foot { justify-content: center; gap: 10px; }
  .hv-count { min-width: 0 !important; padding: 0; }
  .hv-link { margin: 10px 0 0 !important; flex-basis: 100%; text-align: center; }
}
/* фотографии в карточке героя увеличиваются по нажатию (до 900 px) */
@media (max-width: 900px) { .hv-slot.has { cursor: zoom-in; } }
.hv-zoom { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .88); cursor: zoom-out; }
.hv-zoom img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 10px; object-fit: contain; }

/* карточка героя, телефон: от имени (и обложки) до названия книги и автора 20, и от них до описания 20 */
@media (max-width: 520px) { .hv-book { margin-block: 10px; } }

/* карточка героя, телефон до 439 px (с 440 — две колонки): «Книга / Экранизация / Интересно» — подпись, а под ней значение (одна колонка); внутри пары 10, между парами 20 */
@media (max-width: 439px) {
  .hv-facts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hv-facts dd:not(:last-of-type) { margin-bottom: 10px; }
}

/* с 440 px: стрелки слева, счётчик рядом (по 10), «Смотреть в афише» на той же строке справа */
@media (min-width: 440px) and (max-width: 520px) { .hv-foot { flex-wrap: nowrap; justify-content: flex-start; gap: 10px; } .hv-count { min-width: 0 !important; padding: 0; } .hv-link { margin: 0 0 0 auto !important; flex-basis: auto; text-align: right; } }

/* с 400 до 520 px: имя героя, название книги и автор — у верхней границы обложки, описание ниже, прижато к нижней границе обложки */
@media (min-width: 400px) and (max-width: 520px) {
  .hv-top { grid-template-rows: auto auto 1fr auto; grid-template-areas: "eyebrow cover" "name cover" "book cover" "blurb blurb"; }
  .hv-head h2 { align-self: start; }
  .hv-book { align-self: start; margin-bottom: 0; }
  .hv-blurb { margin-top: 10px; }
}

/* Облачко с фразой: чуть шире — заходит под руку героя (за фигуру, не на буквы); слова не рвутся посреди */
.hv-say .w { display: inline-block; white-space: nowrap; }
@media (max-width: 760px) {
  .hv-flip { position: relative; z-index: 2; }
  .hv-quote { z-index: 1; margin-left: -28px; padding-left: 38px !important; min-width: 0; }
}
/* от 521 px: название книги и автор — обычный текст, имя героя крупнее */
@media (min-width: 521px) { .hv-book, .hv-book .bk-t, .hv-book .bk-a { font-size: var(--fs-text) !important; } }
/* абзац в карточке героя: ровные строки, без одинокого слова в конце */
.hv-blurb { text-wrap: balance; }
/* описание — у нижней границы обложки, имя/книга/автор — у верхней (планшет) */
@media (min-width: 521px) and (max-width: 900px) { .hv-left { justify-content: space-between; } }


/* ====== Карточка героя от 901 px ====== */
@media (min-width: 521px) and (max-width: 900px) { .hv-card > .hv-close { position: absolute; top: 20px !important; right: 20px !important; left: auto !important; z-index: 5; } .hv-card .hv-eyebrow, .hv-card .hv-head h2 { padding-right: 64px; } }
@media (min-width: 901px) {
  /* крестик остаётся в карточке: 20 px от верхней и правой границ, может заходить на обложку */
  .hero-view[open] { padding-right: var(--out) !important; }
  .hv-card > .hv-close { position: absolute; top: 20px !important; right: 20px !important; left: auto !important; z-index: 5; }
  .hv-top { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr auto; grid-template-areas: "eyebrow cover" "name cover" "book cover" "blurb blurb"; column-gap: 20px; row-gap: 10px; padding-right: 0 !important; align-items: start; }
  .hv-left, .hv-head { display: contents !important; }
  .hv-eyebrow { grid-area: eyebrow; padding-right: 64px; }
  .hv-head h2 { grid-area: name; align-self: start; padding-right: 64px; }
  .hv-book { grid-area: book; align-self: start; margin-top: 10px; }
  .hv-cover { grid-area: cover; align-self: start; width: clamp(128px, 14vw, 240px) !important; height: auto !important; aspect-ratio: 543 / 850; flex: none; }
  .hv-blurb { grid-area: blurb; margin-top: 10px; text-wrap: pretty; }
  /* фотографии ниже по высоте */
  .hv-photos { flex: none !important; height: clamp(90px, 16vh, 160px) !important; min-height: 0 !important; }
}
/* от 1181 px: фраза над героем (как на 901–1180), герой по центру левой части */
@media (min-width: 1181px) {
  .hv-stage { padding-left: 0 !important; display: grid; align-content: end; justify-items: center; padding-bottom: 0; }
  .hv-quote { top: 16px !important; left: 16px !important; right: auto !important; width: auto !important; max-width: min(400px, calc(100% - 32px)); }
  .hv-quote::before { left: 50% !important; right: auto !important; top: auto !important; bottom: -5px !important; margin-left: -6px; }
  .hv-img, .hv-color { height: calc(var(--hs, 1) * (100dvh - 2 * var(--out) - 110px)) !important; }
}
/* облачко на планшете 521–760: шире, под рукой героя */
@media (min-width: 521px) and (max-width: 760px) { .hv-quote { margin-left: -64px; padding-left: 40px !important; min-width: 190px; } }

/* Верхнее меню на ПК: пункты не переносятся на вторую строку; на 1181–1300 px интервалы чуть меньше, чтобы всё помещалось */
@media (min-width: 1181px) {
  .hero .nav .links a { white-space: nowrap; }
}
@media (min-width: 1181px) and (max-width: 1300px) {
  .hero .nav { gap: 20px; }
  .hero .nav .links { gap: 20px; }
}

/* Облачко с фразой: внутренние отступы по правилу (телефон 10, дальше 20) от видимых букв; заходит под руку героя на 6 px */
.hv-say, .hv-src { text-box: trim-both cap alphabetic; }
@media (max-width: 520px) { .hv-quote { padding: 10px !important; gap: 10px !important; margin-left: -16px !important; } }
@media (min-width: 521px) and (max-width: 760px) { .hv-quote { padding: 20px !important; gap: 20px !important; margin-left: calc(-1 * var(--s) - 6px) !important; } }
.hv-src { text-wrap: balance; }

/* 400–520 px: имя героя, название книги и автор прижаты к нижней границе обложки (автор заканчивается там же, где обложка); длинное название переносится без висячих предлогов */
@media (min-width: 400px) and (max-width: 520px) {
  .hv-top { grid-template-rows: auto 1fr auto auto; grid-template-areas: "eyebrow cover" "name cover" "book cover" "blurb blurb"; }
  .hv-head h2 { align-self: end; }
  .hv-book { align-self: end; margin-bottom: 0; }
}
@media (max-width: 520px) { .hv-book .bk-t, .hv-book .bk-a { white-space: normal !important; text-wrap: balance; } }
/* слова в облачке и в карточке не рвутся по буквам */
.hv-quote, .hv-say, .hv-src, .hv-blurb, .hv-facts dd, .hv-book { overflow-wrap: normal !important; word-break: normal; hyphens: none !important; }
.hv-quote { overflow: visible !important; }


/* ====== Карточка героя, правка 4: герой и облачко ====== */
/* 521–760: герой у левого края (зазор 20), облачко справа с зазором 20; герой уменьшается, если облачку не хватает места */
@media (min-width: 521px) and (max-width: 760px) {
  .hv-stage { padding-inline: 0 !important; }
  .hv-flip { margin-left: 0 !important; width: min(342px, calc(100% - 164px)); flex: none; }
  .hv-flip > img, .hv-img, .hv-color { width: 100% !important; height: auto !important; }
  .hv-quote { margin-top: calc(var(--hs, 1) * 640px * .19 - 26px) !important; }
}
/* 521–900: карточка по высоте содержимого, без пустого места внизу */
@media (min-width: 521px) and (max-width: 900px) { .hv-card { align-self: start; height: auto; max-height: 100%; } }
/* от 901: фраза строго над героем (хвостик на его оси), от героя 20 px */
@media (min-width: 901px) {
  .hv-stage { display: flex !important; flex-direction: column-reverse; align-items: center !important; justify-content: center; padding: 0 !important; align-content: normal !important; }
  .hv-quote { position: relative !important; top: auto !important; left: auto !important; margin: 20px 0 0 !important; margin-bottom: 20px !important; margin-top: 0 !important; width: fit-content !important; max-width: calc(100% - 32px); }
  .hv-quote::before { left: 50% !important; right: auto !important; top: auto !important; bottom: -5px !important; margin-left: -6px !important; }
  .hv-img, .hv-color { height: calc(var(--hs, 1) * (100dvh - 2 * var(--out) - 150px)) !important; max-width: 100%; width: auto; }
}
/* широкие экраны (от 1181 px): описание слева от обложки, его низ — на нижней границе обложки */
@media (min-width: 1181px) {
  .hv-top { grid-template-rows: auto auto auto 1fr; grid-template-areas: "eyebrow cover" "name cover" "book cover" "blurb cover"; }
  .hv-blurb { align-self: end; margin-top: 0; padding-right: 0; }
}

/* Обложка в карточке героя чуть крупнее на 400–640 px; размер один для всех героев (не зависит от числа строк в имени) */
@media (min-width: 400px) and (max-width: 640px) { .hv-cover { width: 127px !important; } }   /* такая же, как на 850 px */

/* зазор между героем и облачком 20 px: герой уменьшается, если облачку не хватает места */
@media (min-width: 361px) and (max-width: 520px) {
  .hv-stage { gap: 20px !important; }
  .hv-flip { width: min(198px, calc(100% - 160px)); flex: none; }
  .hv-flip > img, .hv-img, .hv-color { width: 100% !important; height: auto !important; }
  .hv-quote { margin-left: 0 !important; padding: 10px !important; }
}
@media (min-width: 521px) and (max-width: 760px) {
  .hv-stage { gap: 20px !important; }
  .hv-flip { width: min(342px, calc(100% - 210px)); }
  .hv-quote { margin-left: 0 !important; }
}

/* 901–1180 px (описание под обложкой): имя героя и автор — у нижней границы обложки; «Герой сезона» остаётся сверху */
@media (min-width: 901px) and (max-width: 1180px) {
  .hv-top { grid-template-rows: auto 1fr auto auto !important; }
  .hv-head h2 { align-self: end !important; }
  .hv-book { align-self: end !important; margin-top: 10px; }
}

/* Облачко с фразой на размерах, где отступы 20 (от 521 px): внутри до видимых букв по 20 со всех сторон */
@media (min-width: 521px) { .hv-quote { padding: 20px !important; } }

/* Облачко: между фразой и подписью («— первая фраза романа») 20 там, где отступы 20, и 10 на телефоне */
@media (min-width: 521px) { .hv-quote { gap: 20px !important; } }
@media (max-width: 520px) { .hv-quote { gap: 10px !important; } }

/* от 1181 px: от «Герой сезона · Месяц год» до имени героя 20 */
@media (min-width: 1181px) { .hv-head h2 { margin-top: 10px; } }


/* ====== Плавающее меню: без цифр, ширина — по самому длинному слову, слова по центру (по строчным буквам) ====== */
.dock-n { display: none !important; }
.dock-t { min-width: 0 !important; display: block; text-box: trim-both ex alphabetic; line-height: 1.3; }
.dock-item { padding: 0 20px; justify-content: flex-start; }
.dock-cta { text-box: trim-both ex alphabetic; padding: 0 20px; }
.dock-cta, .dock-up { box-sizing: border-box; }

/* ====== Боковое меню (бургер), заново: минимум — список разделов и контакты внизу ====== */
@media (max-width: 1180px) {
  :root { --nav-w: min(300px, 78vw); }
  .side-nav { padding: 20px !important; box-shadow: -12px 0 32px rgba(0, 0, 0, .25); }
  .sn-list { gap: 0 !important; }
  .sn-list li + li { border-top: 1px solid rgba(0, 0, 0, .12); }
  .sn-list a { font-size: var(--fs-text) !important; line-height: 1.3 !important; padding: 14px 10px !important; border-radius: 0 !important; background: none !important; gap: 0 !important; text-box: trim-both ex alphabetic; box-sizing: content-box; }
  .sn-list a:hover, .sn-list a:focus-visible { background: none !important; color: var(--black); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
  .sn-list a[aria-current] { background: none !important; box-shadow: inset 3px 0 0 var(--yellow); padding-left: 16px !important; }
  .sn-foot { border-top: 1px solid rgba(0, 0, 0, .12) !important; padding-top: 20px !important; gap: 10px !important; font-size: var(--fs-small); color: rgba(0, 0, 0, .6); }
}


/* Меню-бургер выезжает сверху: на всю ширину, закруглённый нижний край; кнопка остаётся на месте и превращается в крестик */
@media (max-width: 1180px) {
  :root { --nav-w: 0px; }
  .side-nav { left: 0 !important; right: 0 !important; top: 0 !important; bottom: auto !important; width: auto !important; max-height: 100dvh; transform: translateY(-105%) !important; border-radius: 0 0 20px 20px !important; box-shadow: 0 18px 40px rgba(0, 0, 0, .35) !important; padding: 84px 20px 20px !important; transition: transform .55s cubic-bezier(.2, .8, .2, 1), visibility 0s .55s !important; }
  html.nav-open .side-nav { transform: none !important; transition: transform .55s cubic-bezier(.2, .8, .2, 1), visibility 0s 0s !important; }
  .nav-dim { left: 0 !important; right: 0 !important; }
  .sn-list { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: 20px; }
  .sn-list li { border-top: 1px solid rgba(0, 0, 0, .12); }
  .sn-list li + li { border-top: 1px solid rgba(0, 0, 0, .12); }
  .sn-foot { flex-direction: row !important; flex-wrap: wrap; gap: 10px 20px !important; margin-top: 20px !important; }
  .nav-toggle.show { transition: color .45s !important; }
  .nav-toggle[aria-expanded="true"] { color: var(--black); }
}

/* ====== Афиша сезона, правка ====== */
/* телефон: между карточками 10 */
@media (max-width: 520px) { #schedule .rows { gap: 10px; } }
/* «запись открыта» — везде не кнопка, а отметка с мигающей жёлтой точкой (в углу карточки или над кнопкой); на телефоне до кнопки 20, как от плашек с датами */
.row .acts .st.open { display: inline-flex !important; align-items: center; justify-content: flex-start; gap: 10px; width: auto; height: auto !important; min-height: 0 !important; padding: 0 !important; background: none !important; color: var(--white) !important; text-align: left; text-box: trim-both cap alphabetic; }
.row .acts .st.open::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 0 rgba(241, 188, 75, .55); animation: open-blink 1.6s ease-in-out infinite; }
@keyframes open-blink { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(241, 188, 75, .55); } 50% { opacity: .45; box-shadow: 0 0 0 6px rgba(241, 188, 75, 0); } }
@media (prefers-reduced-motion: reduce) { .row .acts .st.open::before { animation: none; } }
@media (max-width: 520px) { .row .acts .st.open { justify-self: start; margin-bottom: 0; } }
/* до 900 px, где кнопка на всю ширину: «прошёл · победил фильм» — на месте кнопки, на всю ширину карточки */
@media (min-width: 521px) and (max-width: 900px) {
  .row.past > .st.past { grid-column: 1 / -1 !important; grid-row: auto !important; justify-self: stretch !important; width: 100%; box-sizing: border-box; height: 48px; min-height: 48px; display: flex; align-items: center; justify-content: center; }
}
@media (min-width: 521px) and (max-width: 900px) { .row .acts .st.open.below { grid-column: 1 / -1; grid-row: auto; justify-self: start; } }

/* с 450 px: год рядом с месяцем, «запись открыта» — в правом верхнем углу карточки (если от года до точки меньше 20 — уходит над кнопку) */
@media (min-width: 450px) and (max-width: 520px) {
  .row .m { flex-direction: row; align-items: baseline; gap: 10px; }
  .row .acts .st.open:not(.below) { grid-column: 2; grid-row: 1; justify-self: end; margin-bottom: 0; }
  .row .acts .st.open.below { grid-column: 1 / -1; grid-row: auto; justify-self: start; }
}
@media (min-width: 450px) and (max-width: 520px) {
  .row .m { justify-content: flex-start; grid-column: auto; width: auto; }
  .row .m small { margin-left: 0; text-align: left; }
}
/* «запись открыта» в углу — по верхней грани строки с месяцем, справа от края карточки 20 */
@media (min-width: 450px) and (max-width: 900px) { .row .acts .st.open:not(.below) { align-self: start; } }

/* ====== Афиша сезона, правка 2 ====== */
/* две строки под афишей — один небольшой текст: между ними всегда 10 */
.note { flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 10px !important; }
/* прошедший месяц: три таба «книга / фильм / спор» в одну строку с 494 px (допускается чуть зайти на поле) */
@media (min-width: 494px) and (max-width: 519px) {
  .row.past .dates { flex-wrap: nowrap; margin-right: -8px; }
  .row.past .dates span { padding-inline: 12px; }
}
/* ≤900 px: если после последнего таба остаётся 20 и больше, кнопка «Записаться» или плашка «прошёл · победил фильм» встаёт в ту же строку у правого края, снизу (класс .inline-act ставит main.js после замера) */
@media (min-width: 521px) and (max-width: 900px) {
  .row.inline-act .dates { grid-column: 1 / 2; }
  .row.inline-act .acts .btn { grid-column: 2; width: auto; justify-self: end; align-self: end; padding-inline: 20px; }
  .row.past.inline-act > .st.past { grid-column: 2 !important; grid-row: auto !important; justify-self: end !important; align-self: end; width: auto; padding-inline: 20px; }
}
/* от 901 px: справа в углу карточки (20 сверху и справа) — «скоро» или «запись открыта», кнопка на 20 ниже */
@media (min-width: 901px) {
  .row .acts { flex-direction: column; align-items: flex-end; align-self: start; gap: 20px; }
  .row .st.soon { align-self: start; justify-self: end; padding: 0; }
  .row .acts .st.open { align-self: flex-end; }
}

@media (min-width: 901px) { .row.past > .st.past { align-self: start; justify-self: end; } }

/* Плавающее меню: слова по центру пунктов и кнопок (по горизонтали — по центру, по вертикали — по строчным буквам) */
.dock-item { justify-content: center !important; text-align: center; }
.dock-t { text-align: center; }
.dock-cta { display: flex !important; align-items: center; justify-content: center; }
.dock-cta { padding-bottom: 2px !important; }

/* Подгонка: у кнопок, табов и плашек расстояние от верха строчных букв до верха = от низа букв до низа (замер по пикселям на 1440) */
:root { --btn-p: clamp(0.875rem, 0.7rem + 0.4vw, 1.25rem); }
.hero-ctas .btn, #now .c-where .btn { padding-top: calc(var(--btn-p) - .75px); padding-bottom: calc(var(--btn-p) + .75px); }
.more-btn { padding-top: calc(var(--btn-p) - 1px); padding-bottom: calc(var(--btn-p) + 1px); }
#now .c-book .film { padding-top: 3px; padding-bottom: 5px; }
.tag { padding-top: 2.75px; padding-bottom: 5.25px; }
.row .dates span { padding-top: 5px; padding-bottom: 3px; }
.rondo-legend, .rondo-hand { padding-top: 9.5px !important; padding-bottom: 6.5px !important; }

/* от 901 px: месяц, название книги и «запись открыта» / «скоро» / «прошёл» — на одной верхней линии, 20 до верха и правого края; табы и кнопка — на нижней, 20 от низа */
@media (min-width: 901px) {
  .row { align-items: start; }
  .row .m, .row .t { align-self: stretch; }
  .row .dates { align-self: end; }
  .row .acts { align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 20px; }
  .row .acts .btn { margin-top: auto; }
  .row:not(:has(.st.open)) .acts { justify-content: flex-end; }
  .row:has(.st.open) { min-height: calc(40px + 21px + 20px + 48px); }
  .row .st.soon, .row.past > .st.past { align-self: start; justify-self: end; }
}

/* 901–1180 px: кнопка и «запись открыта» занимают правую колонку на всю высоту карточки, кнопка — по нижней грани вместе с табами */
@media (min-width: 901px) and (max-width: 1180px) {
  .row .dates { grid-column: 2; grid-row: 2; }
  .row .acts { grid-column: 3; grid-row: 1 / span 2; }
  .row.past > .st.past, .row > .st.soon { grid-column: 3; grid-row: 1 / span 2; }
}

/* 1181–1340 px: четыре колонки (месяц, название, табы, кнопка); табы в одну линию с названием слева, все три в строку, кнопка по нижней грани */
@media (min-width: 1181px) and (max-width: 1340px) {
  .row { grid-template-columns: 220px minmax(0, 1fr) 430px 142px !important; }
  .row .dates { grid-column: 3; grid-row: 1; align-self: end; justify-self: start; flex-wrap: nowrap; }
  .row .acts { grid-column: 4; grid-row: 1; }
  .row .t { grid-column: 2; grid-row: 1; }
  .row.past > .st.past, .row > .st.soon { grid-column: 4; grid-row: 1; }
}

/* от 1341 px: те же четыре колонки у всех строк, табы стартуют с одной вертикали и стоят в одну строку */
@media (min-width: 1341px) {
  .row { grid-template-columns: clamp(250px, 22vw, 320px) minmax(0, 1fr) 430px 190px !important; }
  .row .dates { grid-column: 3; grid-row: 1; flex-wrap: nowrap; justify-self: start; }
  .row .acts { grid-column: 4; grid-row: 1; }
  .row .t { grid-column: 2; grid-row: 1; }
  .row.past > .st.past, .row > .st.soon { grid-column: 4; grid-row: 1; }
}

/* 901–1180 px: у прошедшего и будущих месяцев (нет кнопки) табы — три подряд в одну строку на всю ширину под названием; у текущего и следующего — два и один, кнопка справа внизу */
@media (min-width: 901px) and (max-width: 1180px) {
  .row.past > .st.past, .row > .st.soon { grid-row: 1; }
  .row.past .dates, .row:has(> .st.soon) .dates { grid-column: 2 / -1; grid-row: 2; flex-wrap: nowrap; }
}

/* «прошёл · победил фильм» — не кнопка, но стоит там же, где кнопка «Записаться»: внизу справа, по нижней грани табов, 20 от краёв */
@media (min-width: 901px) and (max-width: 999px) {
  .row.past > .st.past { grid-column: 2 / -1; grid-row: 3; justify-self: end; align-self: end; }
}
@media (min-width: 1000px) and (max-width: 1180px) {
  .row.past .dates { grid-column: 2; grid-row: 2; }
  .row.past > .st.past { grid-column: 3; grid-row: 1 / span 2; justify-self: end; align-self: end; }
}
@media (min-width: 1181px) {
  .row.past > .st.past { align-self: end; justify-self: end; }
}
@media (min-width: 1181px) and (max-width: 1340px) { .row { grid-template-columns: 200px minmax(0, 1fr) 430px 232px !important; } }
@media (min-width: 1341px) { .row { grid-template-columns: clamp(250px, 22vw, 320px) minmax(0, 1fr) 430px 232px !important; } }
/* 1181–1340 px: табы у всех строк в колонке 290 px — два и один; название книги получает больше места, имя автора не рвётся */
@media (min-width: 1181px) and (max-width: 1340px) {
  .row { grid-template-columns: 200px minmax(0, 1fr) 290px 232px !important; }
  .row .dates { flex-wrap: wrap !important; }
}

/* 901–999 px: у прошедшего месяца табы — как у текущего (два и один), плашка справа внизу на месте кнопки */
@media (min-width: 901px) and (max-width: 999px) {
  .row.past .dates { grid-column: 2; grid-row: 2; flex-wrap: wrap; }
  .row.past > .st.past { grid-column: 3; grid-row: 1 / span 2; justify-self: end; align-self: end; }
}
@media (min-width: 901px) and (max-width: 999px) { .row { grid-template-columns: 250px minmax(0, 1fr) 142px !important; } .row.past > .st.past { min-width: 0; } }
@media (min-width: 901px) { .row.two .dates { flex-wrap: wrap !important; max-width: 300px; } }

/* Афиша: карточки месяцев — внешние блоки (секция прозрачная), скругление 30; всё внутри (табы, кнопки, плашки) — 20 */
#schedule .row { border-radius: 30px; }

/* ====== Фотографии, правка ====== */
/* плашка «сентябрь · «Мгла»» — внутри видео, в левом верхнем углу, на всех ширинах (10 от краёв на телефоне, 20 дальше) */
.gallery .slot.big { overflow: hidden; }
.gallery .slot.big .big-video { border-radius: var(--r); }
.gallery .big > span { position: absolute !important; top: 20px !important; left: 20px !important; right: auto !important; bottom: auto !important; z-index: 3; }
@media (max-width: 520px) { .gallery .big > span { top: 10px !important; left: 10px !important; } }
/* заголовок блока на самых узких экранах помещается в поля по 20 */
@media (max-width: 359px) { #photos .sec-head h2 { font-size: 40px; } }
/* фотографии открываются крупно по нажатию */
.gallery .slot.has-photo { cursor: zoom-in; }
.photo-zoom { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .9); cursor: zoom-out; opacity: 0; transition: opacity .25s; }
.photo-zoom.on { opacity: 1; }
.photo-zoom img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 20px; object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.photo-zoom button { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--white); background: rgba(0, 0, 0, .4); color: var(--white); cursor: pointer; display: grid; place-items: center; }
.photo-zoom button svg { width: 20px; height: 20px; }
.photo-zoom button:hover, .photo-zoom button:focus-visible { background: var(--yellow); color: var(--black); border-color: var(--yellow); }

/* Текст сбоку от заголовка блока: начинается от середины экрана + 20 px и идёт до правого края (класс .side ставит main.js, когда текст стоит в одной строке с заголовком) */
.sec-head.side > p { width: calc(50% - 20px) !important; max-width: none !important; margin-left: auto; box-sizing: border-box; }

/* подвал, до 359 px: «Сноска» и «ул. Жуковского, 18» на двух строках — цифра не остаётся одна */
.f-br { display: none; }
@media (max-width: 359px) { .f-br { display: inline; } }

/* Подвал: раскладка «в столбик» (как на 787 px) держится до 1060 px */
@media (min-width: 861px) and (max-width: 1060px) {
  .f-main { grid-template-columns: minmax(0, 1fr) !important; justify-items: center; text-align: center; }
  .f-brand { align-items: center; }
  .f-cta { justify-self: center; }
  .f-bye { flex-direction: column; text-align: center; }
  .f-bye-txt { align-items: center; }
}

/* Заголовки блоков чуть уже на ПК, чтобы самый длинный («Кто придёт в гости») стоял левее середины; текст у всех блоков — справа от середины + 20 или у всех под заголовком */
@media (min-width: 761px) { .sec-head h2 { font-size: clamp(56px, min(7vw, calc((50vw - 70px) / 7.5)), 128px); } }
.sec-head.stack { flex-direction: column; align-items: flex-start; }
.sec-head.stack > p { width: auto !important; max-width: 640px !important; margin-left: 0 !important; }
.sec-head.side { flex-wrap: nowrap !important; align-items: flex-end; }
@media (min-width: 861px) and (max-width: 1060px) {
  .f-bye { max-width: none; width: 100%; }
  .f-bye-txt { width: min(560px, 100%); max-width: 100%; }
  .f-bye-t, .f-bye-s { max-width: none; }
  .f-bot { justify-content: center; text-align: center; }
}
@media (min-width: 861px) and (max-width: 1060px) { .f-bye .reel-sticker { width: 96px !important; height: 96px !important; } }   /* катушка того же размера, что до 860 и после 1061 px */

/* ====== Бургер-меню, вариант 2: пункты столбиком по центру, без линий; наведение и нажатие — жёлтая плашка, как в плавающем меню ====== */
@media (max-width: 1180px) {
  .sn-list { display: flex !important; flex-direction: column !important; align-items: center; gap: 4px !important; }
  .sn-list li { border: 0 !important; width: 100%; display: flex; justify-content: center; }
  .sn-list li + li { border: 0 !important; }
  .sn-list a { display: inline-flex !important; justify-content: center; text-align: center; padding: 10px 24px !important; box-sizing: border-box; border-radius: 20px !important; min-width: 220px; box-shadow: none !important; text-decoration: none !important; background: none !important; color: var(--black); }
  .sn-list a[aria-current] { box-shadow: none !important; padding-left: 24px !important; background: none !important; }
  .sn-list a:hover, .sn-list a:focus-visible, .sn-list a:active, .sn-list a[aria-current]:hover { background: var(--yellow) !important; color: var(--black); text-decoration: none !important; outline: none; }
  .sn-foot { border: 0 !important; display: flex; flex-direction: row !important; justify-content: space-between; align-items: center; gap: 20px !important; margin-top: 20px !important; padding-top: 0 !important; }
  .sn-foot span { text-align: left; }
  .sn-foot a { text-align: right; margin-left: auto; }
}
@media (max-width: 520px) { .sn-foot { flex-direction: column !important; align-items: center; gap: 10px !important; } .sn-foot span, .sn-foot a { text-align: center; margin: 0; } }
@media (max-width: 1180px) { .side-nav { padding-top: 6px !important; padding-bottom: 20px !important; } }   /* первый пункт — на уровне крестика */

@media (max-width: 1180px) {
  .side-nav .sn-cta { display: flex; align-self: center; width: min(320px, 100%); margin: 20px auto 0; box-sizing: border-box; justify-content: center; text-align: center; }
}

/* ====== Окно записи, только до 360 px ====== */
@media (max-width: 360px) {
  .su-chips { flex-direction: column; flex-wrap: nowrap; gap: 10px; }
  .su-chips > * { width: 100%; box-sizing: border-box; justify-content: center; text-align: center; }
  .su-head h2.su-lead, .su-lead { font-size: 18px; white-space: nowrap; }
  .su-book { align-items: center; text-align: center; }
  .su-seats { justify-content: center; }
  .su-field { gap: 10px; }
  .su-two { gap: 20px; }
  .su-field input[type="text"] { box-sizing: border-box; height: 48px; padding: 0 16px; border-radius: 20px; text-box: trim-both ex alphabetic; }
  .su-chips > * { border-radius: 20px; }
}
@media (max-width: 360px) { .su-chips { display: grid !important; grid-template-columns: minmax(0, 1fr); } .su-chips .chip, .su-chips label, .su-chips > * { width: 100% !important; max-width: none !important; justify-self: stretch; } }
@media (max-width: 360px) {
  .chip { display: block; width: 100%; }
  .chip span { display: block; width: 100%; box-sizing: border-box; text-align: center; border-radius: 20px; }
  .su-book { width: 100%; }
}
@media (max-width: 360px) { .su-book { margin-right: -64px; width: auto; } }

@media (max-width: 1180px) { .side-nav { padding-top: 20px !important; } }   /* первый пункт начинается там же, где крестик (20 от верха) */

@media (max-width: 1180px) {
  .sn-list a { min-width: 0 !important; padding: 10px 20px !important; }   /* плашка при наведении — слово + по 20 по бокам */
  .nav-toggle.show { transition: color .45s !important; }
}
@media (max-width: 360px) { .su-head h2.su-lead, .su-lead { text-align: center; } }

/* подвал, нижняя часть: три строки — слева две (о концепте и о шрифтах), справа авторство; на телефоне и планшете по центру */
.f-bot { align-items: flex-start; }
.f-bot p { max-width: 640px; }
@media (min-width: 1061px) { .f-bot { flex-wrap: nowrap; } .f-bot p:last-child { text-align: right; margin-left: auto; flex: none; } }
@media (max-width: 1060px) { .f-bot { flex-direction: column; align-items: center; gap: 10px; text-align: center; } .f-bot p { max-width: none; } }
@media (min-width: 1061px) { .f-bot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 20px; } .f-bot p, .f-bot p:last-child { max-width: none; text-align: left; margin: 0; } .f-bot p:last-child { white-space: nowrap; text-align: right; } }

/* подвал, ПК (от 1061 px): три компактные колонки — слева «о концепте» (две ровные строки), по центру «шрифты» (две ровные строки), справа «Дизайн — Полина Гусева» и ниже Telegram */
.f-br2 { display: none; }
@media (min-width: 1061px) {
  .f-bot { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important; align-items: start; }
  .f-bot p { text-wrap: balance; max-width: 34ch !important; }
  .f-bot p:nth-child(1) { justify-self: start; text-align: left; }
  .f-bot p:nth-child(2) { justify-self: center; text-align: center; }
  .f-bot p:last-child { justify-self: end; text-align: right !important; white-space: normal !important; max-width: none !important; }
  .f-br2 { display: inline; }
  .f-dot { display: none; }
}
@media (min-width: 1061px) {
  .f-bot { grid-template-columns: auto auto auto !important; justify-content: space-between; column-gap: 20px; }
  .f-bot p:nth-child(1) { max-width: 52ch !important; }
  .f-bot p:nth-child(2) { max-width: 46ch !important; }
}

/* От 1920 px: текст сбоку от заголовка начинается там, где начинается вторая колонка карточек «Формата» (треть блока + зазор) и идёт до правого края — у всех блоков */
@media (min-width: 1920px) {
  .sec-head.side > p { width: calc((200% - var(--out)) / 3 + 7px) !important; }
}
@media (min-width: 1920px) {
  .sec-head.side > p { flex: none !important; }
  .sec-head h2 { font-size: clamp(56px, min(7vw, calc((34vw - 60px) / 5.9)), 128px); }
}
/* подвал, ПК: «Шрифты» начинаются там же, где цитата (одинаковый старт) */
@media (min-width: 1061px) {
  .f-bot p:nth-child(2) { justify-self: start !important; text-align: left !important; margin-left: var(--q-shift, 0px) !important; }
}

@media (min-width: 1061px) {
  .f-bot { grid-template-columns: var(--q-col, 1fr) minmax(0, 1fr) auto !important; justify-content: normal !important; }
  .f-bot p:nth-child(1) { max-width: min(52ch, 100%) !important; }
  .f-bot p:nth-child(2) { margin-left: 0 !important; justify-self: start !important; max-width: 46ch !important; }
}

/* От 1920 px (правка): текст сбоку от заголовка — в правой трети блока, от левого края третьей карточки «Формата» (там, где красная линия) */
@media (min-width: 1920px) {
  .sec-head.side > p { width: calc(100% / 3 - 20px) !important; }
  .sec-head h2 { font-size: clamp(56px, min(7vw, calc((50vw - 70px) / 7.5)), 128px); }
}
@media (min-width: 1061px) { .f-bot p:nth-child(1) { max-width: 100% !important; } }

/* Телефон и планшет: приближение и затемнение фото на первом экране убрано — на сенсорных экранах оно шло рывками (анимация filter на большой картинке) */
@media (max-width: 900px), (hover: none) {
  .hero-media img, html.has-pl .hero-media img { animation: none !important; filter: none !important; transform: none !important; will-change: auto; }
}

/* Телефон и планшет: появление «из тумана» осталось, но без размытия (blur на сенсорных экранах рвёт анимацию) — мягкий подъём и проявление, только transform и opacity */
@media (max-width: 900px), (hover: none) {
  @keyframes fog { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
  .hero .nav > .logo, .hero .nav .links a, .hero .nav .tg, .hero .lead, .hero .subs, .hero .score, .hero .hero-ctas, .in { will-change: transform, opacity; }
}

/* Плавающее меню в Safari: ширина плашки считается по самому длинному слову, слова не переносятся и не выходят за плашку */
.dock-view { width: max-content; }
.dock-list { width: max-content; min-width: 100%; }
.dock-item { white-space: nowrap; width: 100%; box-sizing: border-box; min-width: max-content; }
.dock-t { white-space: nowrap; flex: none; }

/* Телефон (до 520 px): между заголовком блока и текстом под ним — ровно 10 px по видимым буквам (замер на 430×932, iPhone 14 Pro Max, давал 14) */
@media (max-width: 520px) { .sec-head { row-gap: 6px; } }

/* Плавающее меню: центровка слов без text-box (Safari считает обрезку полей шрифта иначе, и слова оказывались прижаты к низу). Слово стоит в строке высотой 1 и центрируется flex-ом; поправка по метрикам шрифта — одинаково во всех браузерах */
.dock-t, .dock-cta { text-box: none !important; line-height: 1 !important; }
.dock-item { align-items: center; padding-block: 0; }
.dock-t { position: relative; top: var(--dock-shift, 0px); }
.dock-cta { padding-top: var(--cta-pt, 0px) !important; padding-bottom: var(--cta-pb, 0px) !important; }
.dock-cta { --cta-pb: 2px; }
.dock-t { --dock-shift: -1px; }

/* Плавающее меню на сенсорных экранах (iPhone): пункты там не ниже 44 px, поэтому высота пункта в расчётах тоже 44 — иначе список сдвигается на 4 px за каждый пункт и слово уезжает вниз */
@media (hover: none) { .dock { --ih: 44px; } .dock-item { height: var(--ih); min-height: var(--ih); } }

/* Телефон: заголовок блока и текст под ним — без text-box (Safari считает обрезку полей по-своему, и текст наезжал на заголовок). Расстояния заданы обычными полями по метрикам шрифтов, в любом браузере одинаково */
@media (max-width: 520px) {
  .sec .sec-head h2 { text-box: none !important; margin-top: var(--h2-mt, 0px); }
  .sec .sec-head > p { text-box: none !important; }
  .sec-head { row-gap: var(--hp-gap, 0px) !important; }
}
@media (max-width: 520px) {
  .sec .sec-head h2 { margin-top: -0.232em; }
  .sec .sec-head > p { margin-top: -1px; }
}

/* Карточка героя на телефонах и планшетах: если описание не помещается — прокрутка внутри карточки; окно по видимой высоте экрана (в Safari нижняя панель закрывала конец текста), узкая полоса прокрутки всегда на виду */
@media (max-width: 1180px) {
  .hero-view { height: 100dvh; max-height: 100dvh; }
  .hero-view[open] { box-sizing: border-box; }
  .hv-card { max-height: 100%; overflow-y: auto !important; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, .35) transparent; }
  .hv-card::-webkit-scrollbar { width: 4px; }
  .hv-card::-webkit-scrollbar-track { background: transparent; margin-block: 20px; }
  .hv-card::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .35); border-radius: 2px; }
}

/* Окно записи на телефоне и планшете: билет не «прилетает ветром» (в Safari он перестраивался в центр и обрезался), а спокойно проявляется на месте; если не помещается в экран — прокрутка внутри билета (узкая полоса) */
@media (max-width: 900px), (hover: none) {
  @keyframes wind-in { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
  @keyframes wind-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translate3d(0, 16px, 0); } }
  .signup { height: 100dvh; max-height: 100dvh; perspective: none; }
  .signup.open .ticket { animation-duration: .45s; transform-origin: 50% 50%; }
  .signup.leaving .ticket { animation-duration: .3s; }
  .signup .ticket { max-height: calc(100dvh - 40px); width: min(460px, 100%); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, .35) transparent; }
  .signup .ticket::-webkit-scrollbar { width: 4px; }
  .signup .ticket::-webkit-scrollbar-track { background: transparent; margin-block: 20px; }
  .signup .ticket::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .35); border-radius: 2px; }
}

/* Телефон и планшет: после последнего блока пустое место на высоту плавающего меню (52) + отступ меню от низа (10) + 20, чтобы меню не закрывало подвал */
@media (max-width: 900px), (hover: none) { .page { margin-bottom: 82px; } }

/* Телефон: в карточках «книга / фильм / спор» от информации до края карточки 20; от последней карточки до блока с адресом 20 */
@media (max-width: 520px) {
  #now .bento > .c-sess { padding: 20px; }
  #now .bento > .c-where { margin-top: 10px; }   /* 10 (зазор сетки) + 10 = 20 */
}
@media (max-width: 400px) { #now .c-sess .x, #now .c-sess .w { white-space: normal; text-wrap: balance; } }   /* при полях 20 «сравниваем и голосуем» не помещается в строку: переносим «и голосуем» целиком */

/* Плавающее меню: все элементы одной высоты 48, как кнопки сайта (на сенсорных экранах пункты 40 внутри плашки 48) */
@media (hover: none) { .dock { --ih: 40px; } .dock-item { height: 40px; min-height: 40px; } }
@media (max-width: 900px), (hover: none) { .page { margin-bottom: 78px; } }
.dock-view, .dock-up, .dock-cta { box-sizing: border-box; }
.dock:not(:hover) .dock-view { height: 48px; }

/* Полоса прокрутки, нарисованная скриптом: на iPhone штатная полоса не показывается, а эта всегда на виду (узкая, 3 px) */
.scroll-ind { position: absolute; right: 4px; width: 3px; border-radius: 2px; background: rgba(0, 0, 0, .3); pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 7; }
.scroll-ind.on { opacity: 1; }

/* Окно записи на телефоне: у билета нет filter (в Safari filter на прокручиваемом блоке ломает прокрутку), тень обычная; пальцем можно тянуть вверх-вниз */
@media (max-width: 900px), (hover: none) {
  .signup .ticket { filter: none !important; box-shadow: 0 16px 28px rgba(0, 0, 0, .4); touch-action: pan-y; }
  .signup .tk-main, .signup .tk-stub { touch-action: pan-y; }
}

/* «Билет воображаемый» (после брони): на телефоне и планшете без прокрутки — отлетевшая отрывная часть раньше растягивала область прокрутки */
@media (max-width: 900px), (hover: none) {
  .signup .ticket.tearing, .signup .ticket.torn { overflow: visible !important; max-height: none; }
}


/* Карточка героя: стрелка «назад» не горит жёлтым при открытии и после касания на сенсорных экранах; жёлтая — только пока палец прижат */
@media (hover: none) {
  .hv-nav:focus, .hv-nav:focus-visible, .hv-nav:hover { background: var(--white); color: var(--black); border-color: var(--black); outline: none; box-shadow: none; }
  .hv-nav:active { background: var(--yellow); }
}
.hv-card:focus, .hv-card:focus-visible { outline: none; }

/* Облачко: слова — одним потоком по ширине (Safari: без пустого места справа) */
.hv-say { text-wrap: balance; }

/* Телефон: «Осталось N мест из 16» → шкала 10 px по видимым буквам, без text-box (Safari считает его по-своему) */
@media (max-width: 520px) {
  #now .c-where .small { text-box: none !important; margin-top: -4px; line-height: 1.3; }
  #now .c-where .meter { margin-top: 4px; }
}

/* Телефон и планшет: между плавающим меню и последним блоком — 10 на телефоне (до 520 px) и 20 на планшете */
@media (max-width: 520px) { .page { margin-bottom: 48px; } }
@media (min-width: 521px) and (max-width: 900px), (hover: none) and (min-width: 521px) { .page { margin-bottom: 68px; } }

/* Карточка героя: горизонтальный свайп отдан переключению героев — браузер не листает историю назад */
.hero-view, .hero-view * { overscroll-behavior-x: none; }
@media (max-width: 1180px), (hover: none) { .hero-view { touch-action: pan-y; } .hero-view .hv-card, .hero-view .hv-stage { touch-action: pan-y; } }

.hv-quote { box-sizing: border-box; }

/* Сетка для проверки вёрстки: включается ссылкой ?grid или клавишей G */
.gridov { display: none; position: fixed; inset: 0; z-index: 9999; pointer-events: none; }
.gridov.on { display: block; }
.gridov i { position: absolute; inset: 0 calc(var(--out) * 2); max-width: calc(2400px - var(--out) * 4); margin-inline: auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s); }
.gridov b { background: rgba(255, 60, 60, .14); border-inline: 1px solid rgba(255, 60, 60, .35); }
@media (max-width: 900px) { .gridov i { grid-template-columns: repeat(6, minmax(0, 1fr)); } .gridov b:nth-child(n+7) { display: none; } }

/* ---------- Выравнивание плашек по сетке (12 колонок, от 1400 px): меняется только ширина плашек, отступы и текст внутри прежние.
   Откат: вернуть файл к коммиту 850db42 */
@media (min-width: 1400px) {
  #now .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  #now .bento > .c-book { grid-column: span 4; }
  #now .bento > .c-sess { grid-column: span 2; }
  #now .bento > .c-where { grid-column: span 2; }
  .gallery { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .gallery > .slot.big { grid-column: span 8; }
  .gallery > .slot:not(.big) { grid-column: span 2; }
  .sec-head.side > p { width: calc(41.6667% - 11.6667px) !important; }   /* текст справа: с 8-й колонки, пять колонок */
  /* «Три вечера»: три кадра по 4 колонки, промежутки между ними ровно на промежутках сетки; плёнка по-прежнему от края до края */
  /* первый экран: текст под заголовком начинается с 10-й колонки (три колонки), по левому краю */
  .hero-mid .lead { width: calc(25% - 15px); max-width: none; text-align: left; margin-left: auto; }
  .reel .frames { margin-inline: var(--out); }
  .reel .frames::before, .reel .frames::after { left: calc(var(--out) * -1); }
}
/* афиша: три таба с датами начинаются на начале колонки сетки (7-я колонка, от 1800 px 8-я); на экранах уже не хватает места под название и три таба, там как было */
@media (min-width: 1520px) {
  .row { grid-template-columns: clamp(250px, 22vw, 320px) calc(6 * (100% / 12 + 5px) - clamp(250px, 22vw, 320px) - 60px) minmax(0, 1fr) 232px !important; }
}
@media (min-width: 1800px) {
  .row { grid-template-columns: clamp(250px, 22vw, 320px) calc(7 * (100% / 12 + 5px) - clamp(250px, 22vw, 320px) - 60px) minmax(0, 1fr) 232px !important; }
}

/* Телефон и планшет: всё появляется «из дымки» (проявление с размытием), ничего не выезжает снизу в блоках со второго; заголовок первого экрана выезжает как прежде.
   Прежний вариант без размытия и с подъёмом на 14 px: коммит 23aa8a1 */
@media (max-width: 900px), (hover: none) {
  @keyframes fog { from { opacity: 0; filter: blur(10px); } to { opacity: 1; filter: none; } }
}
/* Заголовки блоков со второго блока на всех экранах не выезжают, а проявляются вместе с блоком; первый экран на компьютере остаётся как был */
.tw > span { transform: none; transition: none; }
