/* НЭН × Домашний театр ВТБ. Палитра ВТБ, шрифт Onest (позже VTB Omega UI). */
:root {
  --tb: #002882;   /* text_blue */
  --mb: #0033CC;   /* main_blue */
  --md: #0663EF;   /* medium_blue */
  --cy: #00AAFF;   /* cyan */
  --red: #CA181F;
  --ink: #1E1E20;
  --gray: #6B7683;
  --lb: #CCEEFF;
  --stroke: #DCE0EB;
  --lg: #F3F7FA;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--lg); color: var(--ink); font: 400 17px/1.6 var(--font); }
img { display: block; max-width: 100%; }
p, h1, h2, h3, figure, ol, ul { margin: 0; padding: 0; }
a { color: inherit; }

.col { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.col p + p { margin-top: 20px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 30px; border-radius: 28px;
  background: var(--mb); color: #fff; font: 600 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease; }
.btn i { width: 16px; height: 16px; background: currentColor; flex: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 3.5 13.5 8 9 12.5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 3.5 13.5 8 9 12.5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 3px solid var(--cy); outline-offset: 3px; }
.btn--white { background: #fff; color: var(--mb); }
@media (hover: hover) { .btn:hover { background: var(--md); } .btn--white:hover { background: var(--lb); } .btn:hover i { transform: translateX(3px); } }
.btn i { transition: transform .2s ease; }

/* ---------- отрывной календарь (размеры от его ширины) ---------- */
.calendar { position: relative; width: 100%; aspect-ratio: 116 / 168; container-type: inline-size; }
.calendar__sheet, .calendar__top { position: absolute; width: 90.5cqw; height: 118.1cqw; border-radius: 3cqw; border: max(1px, .6cqw) solid var(--stroke); }
.calendar__sheet--3 { left: 7.8cqw; top: 2.6cqw; background: var(--stroke); transform: rotate(1.5deg); }
.calendar__sheet--2 { left: 6.9cqw; top: 10.3cqw; background: var(--lg); transform: rotate(-1deg); }
.calendar__sheet--1 { left: 5.2cqw; top: 19cqw; background: #fff; transform: rotate(.6deg); }
.calendar__top { left: 4.3cqw; top: 27.6cqw; background: #fff; display: flex; flex-direction: column; align-items: center; padding-top: 10cqw; }
.calendar__holes { position: absolute; top: 2.4cqw; left: 0; right: 0; height: 2.6cqw;
  background: radial-gradient(circle 1.3cqw at 28% 50%, var(--tb) 98%, transparent) , radial-gradient(circle 1.3cqw at 72% 50%, var(--tb) 98%, transparent); }
.calendar__holes::after { content: ""; position: absolute; left: 5cqw; right: 5cqw; top: 3.8cqw; border-top: max(1px,.5cqw) dashed var(--stroke); }
.calendar__year { font: 600 4.6cqw/1 var(--font); color: var(--gray); }
.calendar__month { margin-top: 2.2cqw; font: 700 6.4cqw/1 var(--font); color: var(--tb); text-transform: uppercase; letter-spacing: .08em; }
.calendar__day { font: 700 57cqw/.92 var(--font); color: var(--red); letter-spacing: -.03em; margin-top: 1.5cqw; }
.calendar__dow { font: 600 6cqw/1 var(--font); color: var(--tb); margin-top: 1.5cqw; }

/* ---------- обложка ---------- */
.cover { position: relative; overflow: hidden; background: var(--tb); color: #fff; container-type: inline-size; }
.cover::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle 360px at 66% calc(100% - 175px), var(--md) 0, var(--mb) 180px, var(--tb) 360px); }
.cover__curtain { position: absolute; top: 0; height: 100%; width: auto; max-width: none; z-index: 3; pointer-events: none; }
.cover__curtain--l { left: 0; transform: translateX(calc(-100% + 30px + var(--open, 0px) * -1)); }
.cover__curtain--r { right: 0; transform: translateX(calc(100% - 30px + var(--open, 0px))); }
.cover__stage { position: relative; z-index: 1; }
.cover__text { position: relative; z-index: 4; padding: 44px 28px 0; }
.lockup { display: flex; align-items: flex-end; gap: 14px; height: 20px; margin-bottom: 24px; color: #fff; }
.lockup svg { height: 100%; width: auto; display: block; }
/* у ВТБ буквы занимают 80% высоты логотипа (полоски выше букв), у НЭН — всю высоту: НЭН = 0,8 от ВТБ, низ букв на одной линии */
.lockup__nen { height: 16px; }
.lockup__sep { width: 1px; height: 100%; background: var(--lb); }
.cover__title { font: 500 44px/1.05 var(--font); letter-spacing: -.03em; }
.cover__sub { display: block; margin-top: 12px; font: 400 24px/1.17 var(--font); letter-spacing: 0; }
.cover__lead { margin-top: 24px; font-size: 18px; line-height: 1.45; }
.cover__by { margin-top: 20px; font: 600 15px/1.3 var(--font); }

.scene { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; margin: 27px auto 0; container-type: inline-size; }
.scene > * { position: absolute; }
.scene__floor { top: 80%; bottom: -4px; left: -100vw; right: -100vw;
  background: linear-gradient(to bottom, var(--md) 0, var(--mb) 18%, var(--tb) 100%); }
.layer { height: auto; }
.layer--window { left: 66.4%; top: 3.2%; width: 28.53%; filter: drop-shadow(1.2cqw 2.2cqw 2.4cqw rgba(0,40,130,.6)); }
.layer--calendar { left: 5.6%; top: 3.2%; width: 22.4%; filter: drop-shadow(1.2cqw 2.2cqw 2.4cqw rgba(0,40,130,.6)); }
.layer--tree { left: 29.87%; top: -2.93%; width: 65.07%; }
.layer--boy { left: 15.64%; top: 25.6%; width: 29.79%; }
.shadow { border-radius: 50%; background: rgba(0,40,130,.85); filter: blur(2cqw); }
.shadow--tree { left: 47.2%; top: 80.53%; width: 45.33%; height: 4.8%; }
.shadow--boy { left: 32.53%; top: 83.47%; width: 17.07%; height: 2.93%; }
.nail { position: absolute; z-index: 2; left: 50%; top: -1.5%; width: 7%; aspect-ratio: 1; margin-left: -3.5%; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1px rgba(255,255,255,.25); }

/* ---------- пролог и тезис ---------- */
.thesis { margin-top: 40px; font: 500 21px/1.3 var(--font); color: var(--tb); }
/* пара «взрослое — детское» выделена цветом, без подчеркиваний (чтобы не путать со ссылкой):
   синий — взрослый повтор («традиция», «Ирония судьбы»), красный — детский («зациклился», «Двенадцать месяцев»).
   4 места: обложка, тезис, второе действие, эпилог */
.u-blue, .u-red { white-space: nowrap; font-weight: 600; }
.u-blue { color: var(--mb); }
.u-red { color: var(--red); }
/* на синем фоне тоже только цвет, без плашек; синий там голубой */
.cover .u-blue, .epilogue .u-blue { color: var(--cy); }

/* ---------- действия ---------- */
.section.act { padding-top: 0; }
/* заголовок блока стоит на синем поле картинки, как на обложке: одинаково у трех блоков */
.strip__title { font: 500 24px/1.15 var(--font); color: #fff; text-align: center; max-width: 760px; margin: 0 auto; padding: 0 20px; text-wrap: balance; position: relative; z-index: 2; }
.nw { white-space: nowrap; }
.strip { background: var(--mb); padding: 32px 0 8px; margin-bottom: 32px; }
.strip img { width: 100%; max-width: 1200px; height: auto; margin: 0 auto; }

/* ---------- текст действий порциями (просьба ВТБ: без сплошных блоков) ----------
   вынос и карточки «картинка, заголовок, текст», как в блоке пьес; больше ничего */
.flow > * + * { margin-top: 32px; }
/* вынос: фраза из текста крупно (в тексте она не повторяется) */
.pull { max-width: 880px; margin-left: auto; margin-right: auto; padding: 0 20px; text-align: center; text-wrap: balance;
  font: 500 25px/1.24 var(--font); letter-spacing: -.01em; color: var(--tb); }
.pull::before { content: ""; display: block; width: 48px; height: 4px; margin: 0 auto 20px; border-radius: 2px; background: var(--red); }
/* карточка: картинка, заголовок, текст */
.lab { display: grid; align-content: start; gap: 16px; max-width: 960px; margin-left: 20px; margin-right: 20px; padding: 24px 20px 28px; border-radius: 24px; background: #fff; }
.lab__img { width: auto; height: auto; max-width: 168px; max-height: 120px; mix-blend-mode: multiply; }
.lab__title { font: 500 26px/1.1 var(--font); color: var(--tb); }
.lab__body > * + * { margin-top: 14px; }
.lab__body p { font-size: 16px; line-height: 1.55; }
/* ссылки в тексте подчеркнуты (подчеркивание только у ссылок) */
.tlink { text-decoration-thickness: 1px; text-underline-offset: .18em; }
@media (hover: hover) { .tlink:hover { text-decoration-thickness: 2px; } }
.lockup__vtb { display: block; height: 100%; color: inherit; }

/* ---------- лента «Ирония судьбы» ---------- */
.ribbon { background: var(--tb); color: #fff; padding: 56px 0; }
.ribbon__title { font: 500 24px/1.2 var(--font); max-width: 720px; margin-bottom: 32px; }
.timeline { list-style: none; position: relative; display: grid; gap: 20px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 20px; bottom: 30px; border-left: 2px dashed var(--md); transform-origin: top; transform: scaleY(var(--draw, 1)); transition: transform 1.2s ease; }
.timeline__point { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 0 12px; align-items: center; padding-left: 28px; }
.timeline__point b { font: 500 40px/1 var(--font); letter-spacing: -.02em; }
.timeline__point span:last-child { font-size: 15px; line-height: 1.4; color: var(--lb); }
.dot { position: absolute; left: 0; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; border: 2px solid var(--cy); background: var(--tb); }
.dot--red { border-color: var(--red); background: var(--red); }
.ribbon__note { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--md); font-size: 13px; color: var(--lb); }

/* ---------- переход и дверь ---------- */
.bridge { padding-bottom: 0; position: relative; }
.bridge__accent { font: 700 19px/1.3 var(--font); color: var(--mb); }
.bridge__door { width: 84px; height: auto; margin: 8px 24px 0 auto; }

/* ---------- спектакль в гостиной ---------- */
.living { position: relative; overflow: hidden; background: var(--mb); color: #fff; padding-top: 56px; }
.living .strip__title { margin-bottom: 8px; }
.living__curtain { position: absolute; top: 0; width: 110px; height: auto; max-width: none; z-index: 3; pointer-events: none; }
.living__curtain--l { left: -80px; }
.living__curtain--r { right: -80px; }
.living__art { margin: 0 auto 28px; max-width: 1000px; }
.living__art img { width: 100%; height: auto; }
.living__caption { margin-top: 28px !important; font: 600 16px/1.3 var(--font); color: var(--lb); }
.parade { position: relative; height: 150px; margin-top: 20px; overflow: hidden; }
.parade__row { position: absolute; left: 0; bottom: 4px; z-index: 1; display: flex; align-items: flex-end; width: max-content;
  transform: translateX(var(--shift, -18%)); will-change: transform; }
.parade__row img { height: 132px; width: auto; max-width: none; margin-right: -6px; }
.parade__row img.p-mid { height: 111px; }
.parade__row img.p-small { height: 87px; }
.parade__floor { position: absolute; left: 0; right: 0; bottom: 0; height: 51px;
  background: linear-gradient(to bottom, var(--md) 0, var(--mb) 22%, var(--tb) 100%); }

/* ---------- второй сезон ---------- */
.season__title { font: 500 24px/1.2 var(--font); color: var(--mb); margin: 40px 0 8px; }
.play { display: flex; flex-direction: column; padding: 32px 0; border-top: 1px solid var(--stroke); }
.season__title + .play { border-top: 0; padding-top: 16px; }
.play__desc, .howto > div { display: contents; }
/* все сцены пьес 4:3, герои по центру кадра */
.stage { order: 1; position: relative; overflow: hidden; border-radius: 20px; background: var(--mb); aspect-ratio: 4 / 3; }
.stage__heroes { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 74%; height: 80%; max-width: none; object-fit: contain; object-position: 50% 50%; }
.stage__curtain { position: absolute; right: 0; top: -10px; height: calc(100% + 20px); width: auto; max-width: none; transform: translateX(calc(100% - 64px)); }
.play__desc > * { order: 2; }
.howto { order: 4; }
.play .btn { order: 5; align-self: flex-start; margin-top: 24px; }
.meta { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: 14px; color: var(--gray); line-height: 1.3; }
.age { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; font: 600 14px/1 var(--font); }
.h3 { margin-top: 14px; font: 500 32px/1.08 var(--font); color: var(--tb); }
.author { margin-top: 8px; font: 600 15px/1.3 var(--font); color: var(--mb); }
.play__desc > p:not(.author) { margin-top: 16px; }
.howto { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; margin-top: 24px; padding: 20px 22px 24px; border-radius: 24px; background: #fff; }
.howto img { width: 64px; height: 64px; object-fit: contain; }
.howto__label { font: 600 16px/1.2 var(--font); color: var(--mb); }
.howto p:not(.howto__label) { grid-column: 1 / -1; font-size: 16px; line-height: 1.5; }

/* ---------- финал ---------- */
/* низ финала плавно уходит в цвет эпилога, чтобы между блоками не было ступеньки */
.finale { background: linear-gradient(180deg, rgba(0, 40, 130, 0) 40%, var(--tb) 100%), linear-gradient(160deg, var(--md) 0%, var(--mb) 50%, var(--tb) 100%); color: #fff; padding: 56px 0; overflow: hidden; }
.finale__title { font: 500 28px/1.15 var(--font); }
.finale__text p { margin-top: 20px; color: var(--lb); font-size: 17px; line-height: 1.55; }
.finale__text .btn { margin-top: 28px; }
/* на телефоне двери нет: она ломала композицию (появляется с планшета) */
.finale__door { display: none; position: relative; }
.finale__hall { width: 100%; height: auto; }
/* жемчужина стоит в проеме двери у порога и смотрит на текст (картинка отражена) */
.finale__pearl { position: absolute; width: 24%; left: 20%; bottom: 3%; transform: scaleX(-1); }

/* ---------- эпилог ---------- */
.epilogue { position: relative; overflow: hidden; background: var(--tb); color: #fff; padding: 56px 20px; }
.flake { position: absolute; height: auto; }
.flake--a { width: 64px; left: 71px; top: 24px; rotate: -12deg; }
.flake--b { display: none; }
.epilogue__art { position: relative; z-index: 1; max-width: 720px; margin: 0 auto 32px; }
.epilogue__art .calendar--jan { position: absolute; left: 46.52%; top: -3.66%; width: 12.69%; margin: 0; }
.epilogue__art img { width: 100%; height: auto; }
.epilogue__row { position: relative; z-index: 1; max-width: 994px; margin: 0 auto; }
.epilogue__text { font: 400 22px/1.36 var(--font); }
.calendar--jan { aspect-ratio: 150 / 162; transform: rotate(-10deg); filter: drop-shadow(3px 6px 8px rgba(0,0,0,.35)); }
.calendar--jan .calendar__top { inset: 0; width: auto; height: auto; padding-top: 12cqw; border-radius: 4cqw; }
.calendar--jan .calendar__holes { top: 3cqw; }
.calendar--jan .calendar__year { font-size: 7.3cqw; }
.calendar--jan .calendar__month { font-size: 8cqw; }
.calendar--jan .calendar__day { font-size: 64cqw; }
.calendar--jan .calendar__dow { font-size: 8.7cqw; }

/* маркировка рекламы: строка над обложкой в ее цвет, светлым текстом, чтобы читалась */
.adbar { display: flex; flex-wrap: wrap; gap: 0 16px; margin: 0; padding: 12px 28px 0; background: var(--tb); color: var(--lb); font: 400 12px/1.5 var(--font); }

/* ---------- появление по прокрутке ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .calendar--jan[data-reveal] { transform: translateY(-40px) rotate(-30deg); }
.js .calendar--jan[data-reveal].is-in { transform: rotate(-10deg); }
.js .timeline__point[data-reveal]:nth-child(2) { transition-delay: .15s; }
.js .timeline__point[data-reveal]:nth-child(3) { transition-delay: .3s; }

/* =================== планшет =================== */
@media (min-width: 700px) {
  body { font-size: 18px; }
  .col p + p { margin-top: 24px; }
  .section { padding: 72px 0; }
  .wrap { padding: 0 40px; }
  .cover::before { background: radial-gradient(circle 560px at 62% calc(100% - 210px), var(--md) 0, var(--mb) 280px, var(--tb) 560px); }
  .cover__curtain--l { transform: translateX(calc(-100% + 60px + var(--open, 0px) * -1)); }
  .cover__curtain--r { transform: translateX(calc(100% - 60px + var(--open, 0px))); }
  .cover__text { padding: 56px 72px 0; max-width: 720px; }
  .adbar { padding: 14px 72px 0; }
  .lockup { height: 24px; } .lockup__nen { height: 19.2px; }
  .cover__title { font-size: 64px; }
  .cover__sub { font-size: 30px; }
  .cover__lead { font-size: 20px; max-width: 520px; }
  .scene { aspect-ratio: 768 / 560; max-width: 900px; margin-top: -24px; }
  .scene__floor { top: 84%; }
  .layer--window { left: 37.8%; top: 10.7%; width: 13.7%; }
  .layer--calendar { left: 19.5%; top: 35.7%; width: 14.3%; }
  .layer--tree { left: 52%; top: 27.5%; width: 31.25%; }
  .layer--boy { left: 45.4%; top: 46.7%; width: 13.7%; }
  .shadow--tree { left: 55.3%; top: 82.3%; width: 27.3%; height: 3.9%; }
  .shadow--boy { left: 45.6%; top: 84.8%; width: 10.4%; height: 2.5%; }
  .thesis { font-size: 25px; }
  .strip__title { font-size: 32px; }
  .strip { padding: 48px 0 16px; margin-bottom: 40px; }
  .flow > * + * { margin-top: 40px; }
  .pull { font-size: 30px; padding: 0 40px; }
  .lab { grid-template-columns: 160px 1fr; gap: 32px; margin-left: 40px; margin-right: 40px; padding: 32px 36px 36px 28px; align-items: start; }
  .lab__img { width: 160px; height: 160px; max-width: none; max-height: none; object-fit: contain; object-position: 50% 0; }
  .lab__title { font-size: 30px; }
  .lab__body p { font-size: 17px; }
  .ribbon { padding: 72px 0; }
  .ribbon__title { font-size: 30px; }
  .timeline__point { grid-template-columns: 180px 1fr; }
  .timeline__point b { font-size: 64px; }
  .bridge__accent { font-size: 21px; }
  .bridge__door { width: 120px; margin-right: 56px; }
  .living { padding-top: 72px; }
  .living__curtain { width: 220px; }
  .living__curtain--l { left: -150px; } .living__curtain--r { right: -150px; }
  .living__art { padding: 0 40px; }
  .parade { height: 225px; }
  .parade__row img { height: 198px; } .parade__row img.p-mid { height: 166px; } .parade__row img.p-small { height: 130px; }
  .parade__floor { height: 76px; }
  .season__title { font-size: 30px; }
  .stage__curtain { transform: translateX(calc(100% - 110px)); }
  .h3 { font-size: 42px; }
  .howto { grid-template-columns: 104px 1fr; gap: 0 24px; padding: 28px 32px 28px 28px; }
  .howto img { width: 104px; height: 104px; grid-row: 1 / span 2; }
  .howto p:not(.howto__label) { grid-column: 2; font-size: 17px; }
  .howto__label { align-self: end; margin-bottom: 8px; }
  .finale { padding: 72px 0 0; }
  .finale__title { font-size: 38px; }
  .finale__door { display: block; width: 360px; margin: 40px auto 0; }
  .epilogue { padding: 72px 40px; }
  .flake--a { width: 140px; right: -10px; top: 40px; }
  .flake--b { display: block; width: 130px; left: 2%; top: 32%; }
  .epilogue__text { font-size: 26px; }
}

/* =================== десктоп =================== */
@media (min-width: 1100px) {
  body { font-size: 19px; line-height: 31px; }
  .col p + p { margin-top: 24px; }
  .section { padding: 80px 0; }
  .wrap { padding: 0 20px; max-width: 1240px; }

  /* обложка — одна сцена 16:9, слои в долях кадра */
  .cover::before { background: radial-gradient(circle min(57cqw, 820px) at calc(50cqw + min(27.1cqw, 390px)) min(32.6cqw, 470px),
    var(--md) 0, var(--mb) min(28.5cqw, 410px), var(--tb) min(57cqw, 820px)); }
  .cover__curtain { height: 105%; top: -2%; }
  .cover__curtain--l { transform: translateX(calc(-100% + min(7.3cqw, 105px) + var(--open, 0px) * -1)); }
  .cover__curtain--r { transform: translateX(calc(100% - min(7.3cqw, 105px) + var(--open, 0px))); }
  .cover__stage { max-width: 1440px; margin: 0 auto; aspect-ratio: 1440 / 810; container-type: inline-size; }
  .cover__text { position: absolute; left: 8.33cqw; top: 3.05cqw; width: 36.1cqw; padding: 0; max-width: none; }
  .lockup { height: 1.8cqw; gap: 1cqw; margin-bottom: 2.2cqw; }
  .lockup__nen { height: 1.44cqw; }
  .cover__title { font-size: 5.83cqw; line-height: 1.07; }
  .cover__sub { font-size: 2.36cqw; line-height: 1.18; margin-top: 1.1cqw; }
  .cover__lead { font-size: 1.46cqw; line-height: 1.48; margin-top: 2.2cqw; max-width: 33.5cqw; }
  .cover__by { font-size: 1.04cqw; margin-top: 1.67cqw; }
  .scene { position: absolute; inset: 0; aspect-ratio: auto; max-width: none; margin: 0; }
  .scene__floor { top: 84.44%; }
  .layer--window { left: 61.39%; top: 12.84%; width: 11.11%; filter: drop-shadow(.42cqw .7cqw 1.1cqw rgba(0,40,130,.6)); }
  .layer--calendar { left: 47.92%; top: 37.04%; width: 12.08%; filter: drop-shadow(.42cqw .7cqw 1.1cqw rgba(0,40,130,.6)); }
  .layer--tree { left: 66.32%; top: 24.69%; width: 26.39%; }
  .layer--boy { left: 61.41%; top: 46.42%; width: 11.55%; }
  .shadow { filter: blur(1cqw); }
  .shadow--tree { left: 69.44%; top: 84.57%; width: 22.92%; height: 4.2%; }
  .shadow--boy { left: 62.5%; top: 86.9%; width: 8.33%; height: 2.47%; }

  .thesis { margin: 48px 0 0 max(20px, calc(50% - 340px)); padding: 0; max-width: none; width: min(800px, calc(100% - 40px)); font-size: 30px; line-height: 38px; }
  .strip__title { font-size: 40px; line-height: 46px; max-width: 1000px; }
  .strip { padding: 64px 0 24px; margin-bottom: 48px; }
  .flow > * + * { margin-top: 48px; }
  .pull { font-size: 36px; line-height: 44px; }
  .lab { grid-template-columns: 200px 1fr; gap: 48px; margin-left: auto; margin-right: auto; width: calc(100% - 40px); padding: 40px 48px 44px 40px; }
  .lab__img { width: 200px; height: 200px; }
  .lab__title { font-size: 34px; }
  .lab__body > * + * { margin-top: 18px; }

  .ribbon { padding: 80px 0; }
  .ribbon__title { font-size: 34px; line-height: 38px; margin-bottom: 48px; }
  .timeline { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .timeline::before { left: 0; right: 0; top: 9px; bottom: auto; border-left: 0; border-top: 2px dashed var(--md); transform-origin: left; transform: scaleX(var(--draw, 1)); }
  .timeline__point { display: block; padding: 0 28px 0 0; }
  .dot { position: relative; top: 0; margin: 2px 0 20px; display: block; width: 16px; height: 16px; }
  .timeline__point b { display: block; font-size: 92px; line-height: 84px; }
  .timeline__point span:last-child { display: block; margin-top: 20px; font-size: 16px; line-height: 23px; }
  .ribbon__note { margin-top: 24px; }

  .bridge { padding-bottom: 80px; }
  .bridge__accent { font-size: 23px; line-height: 30px; }
  .bridge__door { position: absolute; bottom: 0; left: min(calc(50% + 430px), calc(100% - 190px)); width: 170px; margin: 0; }

  .living { padding-top: 80px; }
  .living__curtain { width: 300px; }
  .living__curtain--l { left: -110px; } .living__curtain--r { right: -110px; }
  .living__art { padding: 0; margin-bottom: 48px; }
  .living__caption { margin-top: 32px !important; font-size: 18px; }
  .parade { height: 300px; margin-top: 24px; }
  .parade__row { bottom: 8px; }
  .parade__row img { height: 264px; margin-right: -8px; } .parade__row img.p-mid { height: 222px; } .parade__row img.p-small { height: 174px; }
  .parade__floor { height: 102px; }

  .season__title { font-size: 32px; margin: 48px 0 0; }
  .play { display: grid; grid-template-columns: 666fr 478fr; column-gap: 56px; row-gap: 24px; padding: 48px 0;
    /* текст описания одной колонкой; карточка сразу под сценой, лишняя высота уходит во вторую строку */
    grid-template-areas: "stage desc" "card desc"; grid-template-rows: auto 1fr; align-items: start; }
  .play--flip { grid-template-columns: 478fr 666fr; grid-template-areas: "desc stage" "desc card"; }
  .season__title + .play { padding-top: 48px; }
  .play__desc { display: block; grid-area: desc; }
  .stage { grid-area: stage; border-radius: 24px; }
  .stage__curtain { transform: translateX(calc(100% - 120px)); }
  .howto { grid-area: card; margin-top: 0; }
  .meta { margin-top: 0; font-size: 15px; }
  .age { width: 48px; height: 48px; font-size: 16px; }
  .h3 { margin-top: 16px; font-size: 48px; line-height: 50px; }
  .author { font-size: 16px; }
  .play__desc > p:not(.author) { margin-top: 24px; }
  .play .btn { margin-top: 32px; }

  .finale { padding-top: 80px; }
  .finale__inner { display: grid; grid-template-columns: 716px 1fr; gap: 64px; align-items: end; }
  .finale__text { padding-bottom: 96px; align-self: start; }
  .finale__title { font-size: 46px; line-height: 52px; max-width: 700px; }
  .finale__text p { font-size: 19px; line-height: 30px; max-width: 600px; margin-top: 24px; }
  .finale__text .btn { margin-top: 32px; }
  .finale__door { width: 420px; margin: 0 0 0 auto; }

  .epilogue { padding: 80px 120px; }
  .flake--a { width: 151px; left: auto; right: 39px; top: 74px; rotate: none; }
  .flake--b { width: 167px; left: 22px; top: 279px; }
  .epilogue__art { margin-bottom: 48px; }
  .epilogue__row { max-width: 720px; }
  .epilogue__art .calendar--jan { left: 48.08%; top: 3.96%; width: 11.1%; }
  .epilogue__text { font-size: 30px; line-height: 41px; }

  .adbar { padding: 14px 0 0 calc(max(0px, (100% - 1440px) / 2) + min(8.33vw, 120px)); }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js .calendar--jan[data-reveal] { opacity: 1; transform: none; transition: none; }
  .js .calendar--jan[data-reveal] { transform: rotate(-10deg); }
  .timeline::before { transition: none; }
}

/* ---------- легкие анимации мелочей на иллюстрациях ---------- */
.layer--window img, .layer--tree img { display: block; width: 100%; height: auto; }
/* иллюстрации по сетке: не шире контентной колонки (12 колонок, 1200), фон полосы тянется сам */
.art { position: relative; max-width: 1200px; margin: 0 auto; }
.art > img:first-child { display: block; width: 100%; height: auto; }
/* вне экрана анимации стоят, чтобы не тратить батарею */
.anim:not(.is-play), .anim:not(.is-play) * { animation-play-state: paused !important; }
/* снег */
.snow, .sparks { position: absolute; inset: 0; overflow: hidden; pointer-events: none; container-type: size; }
.snow--glass { -webkit-mask: url(assets/img/window-glass.webp) 0 0 / 100% 100% no-repeat; mask: url(assets/img/window-glass.webp) 0 0 / 100% 100% no-repeat; }
.snow--wide { bottom: 4%; }
.snow i, .sparks i { position: absolute; top: 0; left: var(--x); width: calc(var(--s) * 1cqw); aspect-ratio: 1; border-radius: 50%; background: #fff; opacity: .92;
  animation: fall var(--d) linear var(--delay) infinite; will-change: transform; }
@keyframes fall { from { transform: translate3d(0, -12cqh, 0); } to { transform: translate3d(var(--dx), 112cqh, 0); } }
/* искры костра */
.sparks { left: 44%; right: 40%; top: 8%; bottom: 52%; }
.sparks i { top: auto; bottom: 0; background: var(--c, #fff); animation-name: rise; }
@keyframes rise { 0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate3d(var(--dx), -100cqh, 0) scale(.4); opacity: 0; } }
/* свет: звезда, фонарь, лампа */
.glow { position: absolute; aspect-ratio: 1; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,.75) 0, rgba(204,238,255,.35) 32%, rgba(204,238,255,0) 68%);
  animation: glow 3.2s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: .25; scale: .85; } to { opacity: .9; scale: 1.08; } }
.glow--star { left: 49.8%; top: 8.6%; width: 34%; animation-duration: 1.8s; }
.glow--lantern { left: 36.59%; top: 29.98%; width: 9%; animation: flicker 2.6s infinite; }
.glow--lamp { left: 12.2%; top: 40%; width: 26%; z-index: 1; animation-duration: 4.5s; }
@keyframes flicker { 0%, 100% { opacity: .55; scale: 1; } 20% { opacity: .9; scale: 1.06; } 35% { opacity: .5; } 55% { opacity: .85; scale: .97; } 70% { opacity: .6; scale: 1.04; } }
/* часы: секундная стрелка тикает, минутная подползает к полуночи */
.clock { position: absolute; left: 49.745%; top: 13.125%; width: 10.64%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.clock i { position: absolute; left: 50%; bottom: 50%; transform-origin: 50% 100%; border-radius: 99px; background: #144D94; }
.clock__tick { width: 2%; height: 6%; bottom: auto !important; top: 9%; margin-left: -1%; border-radius: 1px !important; }
.clock__h { width: 5.4%; height: 24%; margin-left: -2.7%; rotate: -1.5deg; }
.clock__m { width: 4%; height: 35%; margin-left: -2%; rotate: -18deg; animation: minute 180s linear forwards; }
.clock__s { width: 1.4%; height: 40%; margin-left: -.7%; background: var(--red) !important; animation: tick 60s steps(60) infinite; }
.clock__cap { width: 9%; height: 9%; margin: 0 0 -4.5% -4.5%; border-radius: 50%; }
@keyframes minute { to { rotate: 0deg; } }
@keyframes tick { to { rotate: 360deg; } }
/* заяц-тень на простыне подпрыгивает */
.art > img.hare { position: absolute; left: 44.21%; top: 18.52%; width: 8.79%; height: auto; transform-origin: 50% 100%; animation: hop 3.4s ease-in-out infinite; }
@keyframes hop { 0%, 55%, 100% { transform: none; } 66% { transform: translateY(-16%) rotate(-4deg); } 76% { transform: translateY(0) scale(1.04, .95); } 84% { transform: none; } }
/* календарь «1 января» покачивается, снежинки парят */
.calendar--jan .calendar__top { transform-origin: 50% 0; animation: sway 5s ease-in-out infinite alternate; }
@keyframes sway { from { rotate: -2.5deg; } to { rotate: 2.5deg; } }
.flake { animation: float 6s ease-in-out infinite alternate; }
.flake--b { animation-duration: 7.5s; animation-delay: -2s; }
@keyframes float { from { translate: 0 -6px; } to { translate: 0 8px; } }
@media (prefers-reduced-motion: reduce) {
  .snow, .sparks, .glow { display: none; }
  .clock__m { rotate: -18deg; animation: none; } .clock__s { animation: none; }
  .hare, .flake, .calendar--jan .calendar__top { animation: none; }
}
