/* Новые материалы и квадратная кнопка связи, 16 ноября. */
.story-panel .new-contact, .story-panel[data-revision] .new-contact { width:27px; height:27px; padding:0; gap:0; color:#bc9234; border-color:#bc9234; background:var(--paper); justify-content:center; }
.story-panel .new-contact .contact-icon { width:14px; height:14px; filter:none; }

/* Белые элементы на горчичных кадрах; белый знак на видео тренинга. */
:is(#new-program,#new-theatre,#new-literature,#new-training) .opening-logo { filter:brightness(0) invert(1); }
:is(#new-program,#new-theatre,#new-literature) .opening-advance { color:#fff; }
:is(#new-program,#new-theatre,#new-literature) .new-contact { color:#fff; border-color:#fff; background:transparent; }
:is(#new-program,#new-theatre,#new-literature) .new-contact .contact-icon { filter:brightness(0) invert(1); }

/* Текст и значок Telegram в общей кнопке. */
.story-panel .new-contact, .story-panel[data-revision] .new-contact { width:max-content; padding:0 6px; gap:5px; font-size:13px; }

/* Шкала ДС: заголовки 31/31, крупный текст 30/30, основной 16/18,4, навигация 12. */
:is(#new-hosts,#new-program,#new-theatre,#new-literature,#new-museum,#new-training,#new-gastronomy,#new-hotel,#new-cover,#new-intro) :is(h1,h2) { font-size:31px; line-height:1; text-transform:uppercase; }
#new-about .city-title { font-size:min(31px,calc((100cqw - 40px) / 10.3)); line-height:1; text-transform:uppercase; }
#new-hosts .hosts-title { font-size:min(31px,7.9cqw); }
#new-literature .red-literature-copy h1 { font-size:min(31px,calc((100cqw - 40px) / 10.4)); }
.story-panel .opening-advance, .story-panel .new-contact, .story-panel[data-revision] .new-contact { font-size:12px; }
#new-hosts .hosts-note, #new-theatre .red-theatre-lead, #new-theatre .red-theatre-aside, #new-literature .red-literature-question, #new-literature .red-literature-detail, #new-hotel-gallery .hotel-gallery-copy { font-size:16px; line-height:1.15; }
#new-hotel-gallery .hotel-gallery-controls { font-size:12px; }
@media(max-height:620px) { #new-about .city-title { font-size:min(24px,calc((100cqw - 40px) / 12.6)); } }
@media(max-height:580px) { :is(#new-hosts,#new-program,#new-theatre,#new-literature,#new-museum,#new-training,#new-gastronomy,#new-hotel,#new-cover,#new-intro) :is(h1,h2) { font-size:min(24px,7.9cqw); } #new-hosts .hosts-note, #new-theatre .red-theatre-lead, #new-theatre .red-theatre-aside, #new-literature .red-literature-question, #new-literature .red-literature-detail, #new-hotel-gallery .hotel-gallery-copy { font-size:13px; } }
@media(max-height:520px) { #new-about .city-title { font-size:22px; } #new-literature .red-literature-detail { font-size:12px; } }

/* Общая ширина обычного текста; колонки справа от заголовков — отдельно. */
#new-museum .revision-museum-lead, #new-museum .revision-museum-detail, #new-gastronomy .gastronomy-body, #new-hotel-gallery .hotel-gallery-intro, #new-theatre .red-theatre-aside, #new-literature .red-literature-question, #new-about .city-place--first, #new-about .city-place--third, #new-about .city-ending { width:var(--body-column-width); max-width:var(--body-column-width); }
#new-about .city-place--second, #new-literature .red-literature-detail { max-width:var(--body-column-width); }

/* Общая навигация и нижняя ось. */
.story-panel .opening-logo, .story-panel .signature { display:none; }
.story-panel .site-home { position:absolute; left:var(--grid-left); top:2.465cqh; z-index:12; font:400 12px/20px var(--font-mono); color:#111; text-decoration:none; background:none; border:0; padding:0; cursor:pointer; }
.story-panel .site-signature { position:absolute; left:var(--grid-left); bottom:var(--footer-bottom); z-index:12; width:38px; height:28px; object-fit:contain; }
.story-panel .opening-advance { right:var(--frame-gutter); width:var(--button-rail-width,102px); gap:10px; font-size:12px; z-index:12; }
.story-panel .new-contact, .story-panel[data-revision] .new-contact, :is(#new-program,#new-theatre,#new-literature) .new-contact { height:33px; padding:0 11px; color:#000; border-color:#000; background:var(--paper); font-size:12px; }
.story-panel .new-contact .contact-icon, :is(#new-program,#new-theatre,#new-literature) .new-contact .contact-icon { filter:brightness(0); }
.story-panel .new-contact:focus-visible, .story-panel .site-home:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
#new-about .photo-marker { color:#c59737; }
/* Бумажный фон со сменой направления царапин. */
:is(#new-museum,#new-hotel,#new-hotel-gallery,#new-prices,#new-cover,#new-intro) { isolation:isolate; }
:is(#new-museum,#new-hotel,#new-hotel-gallery,#new-prices,#new-cover,#new-intro)::before { content:''; position:absolute; inset:0; z-index:0; pointer-events:none; background: url('./assets/mobile-study/revision/opening-paper-scratched.png') center/cover no-repeat; opacity:1; mix-blend-mode:normal; transform:scaleX(-1); }
:is(#new-hotel-gallery,#new-cover)::before { transform:scaleY(-1); }
:is(#new-prices,#new-intro)::before { transform:rotate(180deg); }
:is(#new-museum,#new-hotel,#new-hotel-gallery,#new-prices,#new-cover,#new-intro) > :not(.site-home):not(.site-signature) { z-index:1; }
/* Единая высота заголовков, кроме обложки 01. */
#new-hosts .hosts-title, #new-about .city-title, #new-program .program-sheet h1, .red-panel .red-theatre-copy, .red-panel .red-literature-copy, #new-hotel .hotel-copy h1 { top:calc(15.14cqh - 8px); }
/* Галерея: крупный вводный текст, неподвижная центрированная стопка. */
#new-hotel-gallery .hotel-gallery-intro { font:400 clamp(19px,3.52cqh,30px)/1 var(--font-mono); width:100%; max-width:100%; }
#new-hotel-gallery .hotel-gallery-row { grid-template-columns:minmax(0,190px) auto; justify-content:space-between; gap:10px; padding-top:10px; }
#new-hotel-gallery .hotel-gallery-stack { height:max(80px,min(48cqh,72cqw,calc(100cqh - var(--gallery-stack-top,35cqh) - 65px))); }
/* Стоимость: на низких окнах содержимое прокручивается внутри экрана. */
.price-panel { position:relative; container-type:size; isolation:isolate; overflow:clip; background:var(--paper); }
.price-content { position:absolute!important; top:calc(15.14cqh - 8px); left:20px; right:20px; bottom:calc(var(--footer-bottom) + 42px); overflow:auto; font:400 16px/1.15 var(--font-mono); }
.price-content h1 { font:500 min(31px,5.6cqw)/1 var(--font-mono); margin:0 0 14px; }
.price-content p { margin:12px 0 2px; }
.price-content ul { padding:0; margin:0; list-style:none; }
.price-content li { padding-left:1.2em; text-indent:-1.2em; }
.price-content li::before { content:'• '; }
@media(max-height:700px) { .price-content { font-size:clamp(12px,2.1cqh,16px); } .price-content h1 { font-size:min(25px,5.6cqw); } }

.screen:has(#new-prices:not([inert])) > .segments { visibility:hidden; }
#new-hotel-gallery .hotel-gallery-row { align-items:end; }

/* Экран03: зеркальная форма видео обложки 01. */
#new-hosts .hosts-media { inset:auto; left:auto; right:var(--hosts-video-right,0px); top:var(--hosts-video-top,32cqh); width:calc(100cqw + 40px); height:var(--hosts-video-height,70cqh); clip-path:none; transform:rotate(4deg); transform-origin:top right; background:transparent; }
#new-hosts .hosts-media video { position:static; width:100%; height:100%; object-position:50% 50%; }
.training-side-note { position:absolute; top:calc(15.14cqh - 8px); left:64.9cqw; right:20px; margin:0; font:400 16px/1.15 var(--font-mono); color:var(--paper); z-index:2; pointer-events:none; }
#new-program .site-home, #new-program .opening-advance { color:#fff; }
#new-program .site-signature { filter:brightness(0) invert(1); }
#new-program .new-contact { color:#fff; border-color:#fff; background:transparent; }
#new-program .new-contact .contact-icon { filter:brightness(0) invert(1); }
#new-program .program-sheet h1 { left:calc(var(--grid-logo-end) + 8cqw); }
.invitation-panel { position:relative; container-type:size; isolation:isolate; overflow:clip; background:var(--paper); }
.invitation-panel::before { content:''; position:absolute; inset:0; z-index:0; background:url('./assets/mobile-study/revision/opening-paper-scratched.png') center/cover no-repeat; transform:scaleX(-1); pointer-events:none; }
.invitation-copy { position:absolute; top:14cqh; left:20px; right:20px; bottom:65px; overflow:auto; font:400 30px/1 var(--font-mono); }
.invitation-copy p+p { margin-top:24px; }
.invitation-panel .opening-footer { z-index:2; }
.screen:has(#new-invitation:not([inert])) > .segments { visibility:hidden; }
@media(max-height:700px) { .invitation-copy { font-size:clamp(18px,3.6cqh,30px); } }
@media(max-height:580px) { .training-side-note { font-size:13px; } }

/* Вертикальная лента: обычная плавная прокрутка без обложки. */
.story-track > .story-panel, .story-track > .theatre-spread > .story-panel { flex:0 0 auto; width:100%; height:100svh; min-height:100svh; }
.theatre-spread { display:contents; }
.red-panel--theatre, .red-panel--literature { flex:0 0 100%; width:100%; height:100%; background:#c59737!important; }
.red-shared-photo { width:calc(100cqw + 70px); z-index:1; }
.red-shared-photo img { --red-image-height:calc((100cqw + 70px) * 1.45 * 1339 / 1800); }
.red-shared-photo--continuation { left:calc(-100cqw - 15px); }
.red-theatre-copy, .red-literature-copy, .red-literature-detail, .red-panel .opening-header, .red-panel .opening-footer { z-index:3; }
.story-panel .opening-advance svg { display:none; }
.story-panel .opening-advance::after { content:'↓'; margin-left:auto; font-size:18px; line-height:1; }

/* Непрерывный бумажный фон для вертикальной истории. */
.story-track { background:var(--paper); }
.story-track .story-panel, .story-track .red-panel { background:transparent!important; }
.story-track .story-panel::before, .story-track .story-panel::after { content:none!important; }
.story-track .opening-page, .story-track #new-program .program-sheet { background:transparent!important; }
.story-track #new-program .program-sheet h1, .story-track :is(#new-theatre,#new-literature) { color:var(--ink)!important; }
.story-panel :is(.new-contact,.site-signature,.site-home,.opening-advance,.opening-logo,.signature,.segments) { visibility:hidden!important; pointer-events:none!important; }

/* Отступы вертикальной ленты и самостоятельные изображения блоков. */
.story-track { gap:0; }
.story-track .story-panel { pointer-events:none; }
.story-track .story-panel :is(a,button,video,.hotel-gallery-stack,.price-content,.invitation-copy) { pointer-events:auto; }
#new-literature .red-shared-photo--continuation { display:none; }
#new-training .revision-training-scene > h2,
#new-training .training-side-note { color:var(--ink); }
#new-training .revision-training-scene::after { content:none; }
#new-training .revision-training-media { top:calc(15.14cqh + 145px); bottom:0; left:0; right:0; width:auto; height:auto; }
@media(max-height:580px) {
  #new-training .revision-training-media { top:calc(15.14cqh + 115px); }
}

/* Мобильные размеры и ритм, измеренные на Stereotype при 390 px. */
@media (max-width:475px) {
  .story-track { --ref-body:5.897435897vw; --ref-body-leading:7.179487179vw; --ref-small:3.846153846vw; --ref-small-leading:4.615384615vw; --ref-title-leading:10.256410256vw; --ref-heading-gap:var(--story-content-gap); --ref-paragraph-gap:4.102564103vw; }
  .story-track :is(#new-welcome,#new-about,#new-program,#new-theatre,#new-literature,#new-museum,#new-training,#new-gastronomy,#new-prices,#new-invitation) { height:auto; min-height:0; flex:0 0 auto; padding:0!important; container-type:inline-size; overflow:visible; }
  .story-track :is(#new-welcome,#new-about,#new-program,#new-theatre,#new-literature,#new-museum,#new-training,#new-gastronomy,#new-prices,#new-invitation) :is(h1,h2) { line-height:var(--ref-title-leading); }
  .story-track :is(#new-hosts,#new-hotel,#new-intro) :is(h1,h2) { line-height:var(--ref-title-leading); }
  #new-welcome .welcome-copy, #new-about .city-layout, #new-program .program-sheet, #new-theatre .red-theatre-copy, #new-literature .red-literature-copy, #new-literature .red-literature-detail, #new-gastronomy .gastronomy-copy, #new-prices .price-content, #new-invitation .invitation-copy { position:relative!important; inset:auto!important; top:auto!important; left:auto!important; right:auto!important; bottom:auto!important; height:auto; overflow:visible; }
  #new-welcome .welcome-copy, #new-about .city-layout, #new-literature .red-literature-copy, #new-literature .red-literature-detail, #new-gastronomy .gastronomy-copy, #new-prices .price-content, #new-invitation .invitation-copy { margin:0 20px; }
  #new-welcome .welcome-copy, #new-invitation .invitation-copy { font-size:var(--ref-body)!important; line-height:var(--ref-body-leading)!important; }
  #new-gastronomy .gastronomy-body, #new-literature .red-literature-question, #new-literature .red-literature-detail, #new-museum .revision-scene p, #new-about .city-place, #new-about .city-ending, #new-theatre .red-theatre-aside, #new-prices .price-content { font-size:var(--ref-small)!important; line-height:var(--ref-small-leading)!important; }
  #new-welcome .welcome-copy { font-weight:400; translate:none; }
  #new-invitation .invitation-copy p+p, #new-gastronomy .gastronomy-body p+p, #new-literature .red-literature-detail p+p, #new-museum .revision-museum-detail p+p { margin-top:var(--ref-paragraph-gap); }
  #new-about .city-title, #new-about .city-place, #new-about .city-ending { position:relative; inset:auto; width:auto; max-width:none; margin:0; }
  #new-about .city-title { font-size:min(31px,calc((100vw - 40px) / 10.3)); }
  #new-about .city-place--first { margin-top:var(--ref-heading-gap); }
  #new-about .city-place + .city-place, #new-about .city-ending { margin-top:var(--ref-paragraph-gap); }
  #new-program .program-sheet { clip-path:none; min-height:0; }
  #new-program .program-sheet h1 { position:relative; inset:auto; margin:0 20px; transform:none; }
  #new-theatre { display:flex; flex-direction:column; }
  #new-theatre .red-theatre-copy { order:1; margin:0 20px; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:var(--ref-heading-gap) 16px; }
  #new-theatre .red-theatre-lead, #new-hosts .hosts-note, #new-training .training-side-note, #new-hotel-gallery [data-gallery-caption] { font-size:var(--ref-small)!important; line-height:var(--ref-small-leading)!important; }
  #new-theatre .red-theatre-aside { max-width:none; }
  #new-theatre .red-shared-photo { order:2; position:relative; top:auto; left:-15px; width:calc(100% + 30px); height:76vw; margin:var(--ref-heading-gap) 0 0; }
  #new-literature .red-literature-question { width:auto; max-width:none; margin-top:var(--ref-heading-gap)!important; }
  #new-literature .red-literature-detail { max-width:none; margin-top:var(--ref-paragraph-gap); }
  #new-museum .cover-layout, #new-training .cover-layout, #new-museum .revision-scene, #new-training .revision-scene { position:relative!important; inset:auto; height:auto; display:block; container-type:inline-size; }
  #new-museum .revision-museum-heading, #new-museum .revision-museum-lead, #new-museum .revision-museum-detail { position:relative; inset:auto; left:auto; right:auto; top:auto; width:auto; max-width:none; margin:0 20px; }
  #new-museum .revision-museum-lead { margin-top:var(--ref-heading-gap); }
  #new-museum .revision-museum-detail { margin-top:var(--ref-paragraph-gap); }
  #new-training .revision-training-scene { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,32%); gap:var(--ref-heading-gap) 12px; align-items:start; }
  #new-training .revision-training-scene > h2, #new-training .training-side-note { position:relative; inset:auto; margin:0; }
  #new-training .revision-training-scene > h2 { margin-left:20px; }
  #new-training .training-side-note { margin-right:20px; }
  #new-training .revision-training-media { position:relative; inset:auto; grid-column:1 / -1; width:100%; height:130vw; margin:0; }
  #new-gastronomy .gastronomy-body { max-width:none; width:auto; margin-top:var(--ref-heading-gap); }
  #new-prices .price-content h1 { margin-bottom:var(--ref-heading-gap); }
  #new-prices .price-content p { margin:var(--ref-paragraph-gap) 0 0; }
  #new-hotel-gallery .hotel-gallery-intro { font-size:var(--ref-small)!important; line-height:var(--ref-small-leading)!important; }
  #new-hotel-gallery .hotel-gallery-intro { margin-bottom:var(--ref-paragraph-gap); }
  #new-hotel-gallery .hotel-gallery-row { align-items:start; padding-top:0; }
  #new-opening .opening-dates, #new-intro .revision-intro-note { font-size:var(--ref-small); line-height:var(--ref-small-leading); }
}
@media (max-width:475px) {
  #new-theatre .red-theatre-copy h1 { font-size:min(31px,calc((100vw - 56px) / 11)); overflow-wrap:normal; }
}
.screen { --right-column:calc(64.5% - 8px); }
/* Закреплённая шапка и единая вертикаль правой колонки. */
.fixed-site-header { position:fixed; top:0; left:50%; translate:-50% 0; width:inherit; height:72px; z-index:40; background:var(--paper); pointer-events:none; }
.fixed-site-logo, .fixed-site-contact { position:absolute; top:50%; translate:0 -50%; pointer-events:auto; }
.fixed-site-logo { left:5%; width:38%; height:auto; }
.fixed-site-contact { left:var(--right-column); right:5%; min-height:21px; display:flex; justify-content:center; align-items:center; gap:6px; border:1px solid #111; color:#111; background:var(--paper); text-decoration:none; font:400 var(--contact-size)/1.2 var(--font-mono); }
.fixed-site-contact::before { content:''; position:absolute; inset:-12px 0; }
.fixed-site-contact img { display:block; width:14px; height:14px; filter:brightness(0); }
.fixed-site-contact:focus-visible { outline:2px solid #111; outline-offset:3px; }
@media (max-width:475px) {
  #new-opening .opening-dates, #new-hosts .hosts-note { left:var(--right-column); right:5%; }
  #new-theatre .red-theatre-copy { grid-template-columns:minmax(0,calc(64.5vw - 28px)) minmax(0,1fr); column-gap:0; }
  #new-training .revision-training-scene { grid-template-columns:minmax(0,var(--right-column)) minmax(0,1fr); column-gap:0; }
}
@media (min-width:476px) {
  #new-opening .opening-dates, #new-hosts .hosts-note, #new-training .training-side-note { left:var(--right-column); right:5%; }
  #new-theatre .red-theatre-copy { grid-template-columns:minmax(0,calc(64.5cqw - 28px)) minmax(0,1fr); column-gap:0; }
}
/* Мобильная типографика, полная ширина текста и единый отступ к медиа. */
@media (max-width:475px) {
  .story-track .story-panel :is(h1,h2) { line-height:1!important; }
  #new-hosts .hosts-note { top:calc(15.14cqh - 8px); }
  #new-opening .opening-dates, #new-hosts .hosts-note { right:20px; }
  #new-hosts .hosts-media { left:0; right:auto; width:100%; top:var(--hosts-video-top); height:var(--hosts-video-height); transform:none; clip-path:none; }
  #new-theatre .red-theatre-aside { width:100%; max-width:none; }
  #new-theatre .red-shared-photo { left:0; width:calc(100% - 56px); height:auto; margin:calc(20px + (100vw - 56px) * .069756) 28px 0; transform:rotate(-4deg); transform-origin:top left; overflow:visible; background:transparent; }
  #new-theatre .red-shared-photo img { position:static; display:block; width:100%; height:auto; max-width:100%; }
  #new-training .revision-training-scene { row-gap:var(--story-content-gap); }
  #new-hotel-gallery .hotel-gallery-intro { width:100%; max-width:none; }
  #new-intro .revision-intro-photo { margin-top:20px; }
}

/* Карта города: три открываемые миниатюры рядом с историями. */
#new-about { height:auto; min-height:0; flex:0 0 auto; padding:0!important; container-type:inline-size; overflow:visible; }
#new-about .city-layout { position:relative!important; inset:auto!important; margin:0 20px; }
#new-about .city-title, #new-about .city-place, #new-about .city-ending { position:relative; inset:auto; width:auto; max-width:none; margin:0; translate:none; }
#new-about .city-places { display:grid; gap:16px; margin-top:20px; }
#new-about .city-place-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,35%); column-gap:16px; align-items:stretch; }
#new-about .city-place { font-size:var(--ref-small,14px); line-height:var(--ref-small-leading,18px); }
#new-about .city-place strong, #new-about .city-ending strong { font-size:1em; font-weight:600; text-transform:none; }
#new-about .city-photo { position:relative; display:block; width:100%; height:100%; min-height:80px; padding:0; margin:0; border:0; background:none; cursor:pointer; overflow:hidden; transform:rotate(-2deg); }
#new-about .city-photo img { display:block; width:100%; height:100%; position:absolute; inset:0; object-fit:cover; }
#new-about .city-photo:focus-visible { outline:2px solid var(--ink); outline-offset:3px; }
#new-about .city-ending { margin-top:20px; }
#new-about .city-ending > strong { display:inline; }
@media (max-width:475px) {
  #new-museum .revision-museum-heading h2 { font-size:min(31px,calc((100vw - 40px) / 11.7)); }
  #new-hotel,  #new-hotel-gallery { height:auto; min-height:0; flex:0 0 auto; padding:0!important; container-type:inline-size; overflow:visible; }
  #new-hotel .hotel-copy { position:relative; inset:auto; }
  #new-hotel .hotel-copy h1 { position:relative; inset:auto; margin:0 20px; }
  #new-hotel .hotel-media { position:relative; inset:auto; width:100%; height:140vw; margin:var(--story-content-gap) 0 0; transform:none; clip-path:none; }
  #new-hotel .hotel-media video { position:static; width:100%; height:100%; object-fit:cover; }
}
#new-about :is(.city-place--first,.city-place--second,.city-place--third) { margin:0!important; }

/* Вводная строка входит в секцию театра. */
#new-theatre .red-theatre-copy .program-intro {
  color:var(--ink);
  font:600 var(--ref-small,15px)/var(--ref-small-leading,18px) var(--font-mono);
}


/* У заголовка без подписи вся ширина между текстовыми полями. */
.story-track .story-title--full {
  display:block;
  max-inline-size:none;
  white-space:normal;
}
#new-hotel .hotel-copy h1 { left:20px; right:20px; }
@media (min-width:476px) {
  #new-museum .revision-museum-heading { right:20px; }
}

/* Миниатюры открываются из строки с выделенным началом истории. */
#new-about .city-places { gap:8px; }
#new-about .city-place-row { display:block; }
#new-about .city-place-label {
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:6px;
  font:600 var(--ref-small,15px)/var(--ref-small-leading,18px) var(--font-mono);
}
#new-about .city-photo {
  display:inline-block;
  align-self:end;
  width:44px;
  height:26px;
  min-height:0;
  flex:none;
  transform:rotate(-4deg);
}
#new-about .city-place { font-size:var(--ref-small,15px); }
#new-about .city-place--first { max-width:21ch; }
#new-about .city-place--second { max-width:19ch; }
#new-about .city-place--third { max-width:28ch; }
#new-about .city-ending { margin-top:36px; }

@media (max-width:475px) {
  #new-hotel .hotel-copy h1 { inset:auto; }
}

/* Театральная композиция: текст в одну колонку, маска сохраняет левый край кадра. */
.story-track #new-theatre {
  display:flex;
  flex-direction:column;
  flex:0 0 auto;
  height:auto;
  min-height:0;
  padding:0;
  container-type:inline-size;
}
#new-theatre .red-theatre-copy {
  position:relative;
  inset:auto;
  display:block;
  order:1;
  margin:0 20px;
}
#new-theatre .red-theatre-copy h1 {
  font-size:min(31px,8cqw);
  line-height:1;
  margin-top:var(--ref-paragraph-gap,16px);
}
#new-theatre .red-theatre-copy .red-theatre-aside {
  width:auto;
  max-width:none;
  margin:var(--story-content-gap) 0 0!important;
}
#new-theatre .red-shared-photo {
  order:2;
  position:relative;
  inset:auto;
  width:100%;
  height:auto;
  aspect-ratio:var(--story-photo-ratio, 393 / 362);
  margin:var(--story-content-gap) 0 0;
  transform:none;
  overflow:hidden;
  clip-path:polygon(0 7.6%,100% 0,100% 92.4%,0 100%);
}
#new-theatre .red-shared-photo img {
  position:absolute;
  inset:auto auto 0 -1px;
  display:block;
  width:133.333%;
  height:auto;
  max-width:none;
  transform:rotate(-4deg);
  transform-origin:bottom left;
}

/* Овальные миниатюры города и гастрономии. */
#new-about .city-places { margin-top:var(--story-content-gap); }
#new-about .city-place-label { align-items:end; gap:4px; }
#new-about .city-place-row .city-photo {
  width:85px;
  height:53px;
  align-self:end;
  border-radius:50%;
  transform:none;
  --marker-angle:0deg;
}
#new-about .city-place-row:nth-child(2) .city-photo { width:96px; }
#new-about .city-place-row:nth-child(3) .city-photo { width:65px; }
#new-about .city-ending { margin-top:var(--story-topic-gap); }

.story-track #new-gastronomy {
  height:auto;
  min-height:0;
  flex:0 0 auto;
  padding:0;
  container-type:inline-size;
}
#new-gastronomy .gastronomy-copy { position:relative; inset:auto; margin:0 20px; }
#new-gastronomy .gastronomy-copy h1 {
  font-size:min(31px,calc((100cqw - 40px) / 10.4));
  line-height:1;
  text-wrap:balance;
}
#new-gastronomy .gastronomy-body { width:auto; max-width:none; margin-top:var(--story-content-gap); }
.gastronomy-photos {
  display:grid;
  grid-template-columns:minmax(0,85fr) minmax(0,66fr) minmax(0,97fr);
  gap:9px;
  align-items:center;
  margin-top:16px;
}
#new-gastronomy .gastronomy-finale { margin-top:var(--story-topic-gap); }
.gastronomy-photos .gastronomy-photo {
  display:block;
  width:100%;
  height:auto;
  max-width:100%;
  padding:0;
  border:0;
  background:none;
  cursor:pointer;
  --marker-angle:0deg;
}
.gastronomy-photo img { display:block; width:100%; height:auto; }
.gastronomy-photo:focus-visible { outline:2px solid var(--ink); outline-offset:3px; border-radius:50%; }

/* Заголовок, фотографии и текст квартиры идут в одной секции. */
.story-track #new-museum {
  height:auto;
  min-height:0;
  flex:0 0 auto;
  padding:0;
  container-type:inline-size;
}
#new-museum .cover-layout,
#new-museum .revision-museum-scene {
  position:relative!important;
  inset:auto;
  height:auto;
}
#new-museum .revision-museum-scene { display:block; container-type:inline-size; }
#new-museum .revision-museum-heading,
#new-museum .revision-museum-lead,
#new-museum .revision-museum-detail {
  position:relative;
  inset:auto;
  width:auto;
  max-width:none;
  margin-inline:20px;
}
#new-museum .revision-museum-pictures {
  position:relative;
  inset:auto;
  margin-top:var(--story-content-gap);
  overflow:visible;
  scroll-margin-top:72px;
}
#new-museum .revision-museum-pictures figure {
  position:relative;
  inset:auto;
  width:100%;
  margin:0;
  transform:none;
}
#new-museum .revision-museum-pictures img {
  width:100%;
  height:78cqw;
  object-fit:cover;
}
#new-museum .revision-museum-pictures figure:first-child {
  clip-path:polygon(0 0,100% 6%,100% 93%,0 100%);
}
#new-museum .revision-museum-pictures figure + figure {
  margin-top:-6cqw;
  clip-path:polygon(0 7%,100% 0,100% 93%,0 100%);
}
#new-museum .revision-museum-lead { margin-top:var(--story-content-gap); }
#new-museum .revision-museum-detail { margin-top:var(--ref-paragraph-gap,16px); }

.story-track > .transfer-panel {
  position:relative;
  height:auto;
  min-height:0;
  flex:0 0 auto;
  padding:0 20px;
}
.transfer-copy {
  font:400 var(--ref-body,23px)/var(--ref-body-leading,28px) var(--font-mono);
}
.transfer-copy > strong, .red-literature-detail strong { font-weight:600; }
#new-prices .price-content h1 { font-size:var(--heading-size); line-height:1; }


/* Подсказка и навигация идут над стопкой, подпись к кадру — под ней. */
.story-track #new-hotel-gallery {
  height:auto;
  min-height:0;
  flex:0 0 auto;
  padding:0;
  container-type:inline-size;
}
#new-hotel-gallery .hotel-gallery-copy {
  position:relative;
  inset:auto;
  margin:0 20px;
  text-align:left;
}
#new-hotel-gallery .hotel-gallery-intro { margin:0; font-weight:600; }
#new-hotel-gallery .hotel-gallery-description {
  margin:var(--ref-paragraph-gap,16px) 0 0;
  font:400 var(--ref-small,15px)/var(--ref-small-leading,18px) var(--font-mono);
}
#new-hotel-gallery .hotel-gallery-description p + p { margin-top:var(--ref-paragraph-gap,16px); }
#new-hotel-gallery .hotel-gallery-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  margin-top:var(--story-topic-gap);
  padding:0;
}
#new-hotel-gallery .hotel-gallery-hint,
#new-hotel-gallery .hotel-gallery-controls {
  margin:0;
  font:400 var(--contact-size)/1.2 var(--font-mono);
}
#new-hotel-gallery .hotel-gallery-controls button { font:inherit; }
#new-hotel-gallery .hotel-gallery-stack {
  position:relative;
  inset:auto;
  width:min(88%,560px);
  height:auto;
  aspect-ratio:22 / 19;
  margin:calc(8px + min(2.3cqw,15px)) auto 0;
}
#new-hotel-gallery .hotel-gallery-photo :is(img,video) {
  /* Компенсируем поворот рамки с запасом по краям для маски. */
  transform:rotate(calc(-1 * var(--angle,0deg))) scale(1.065);
}
#new-hotel-gallery .hotel-gallery-photo video {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.hotel-gallery-caption { margin:calc(12px + min(2.3cqw,15px)) 20px 0; }

/* Завершающее приглашение и подпись. */
.story-track #new-invitation {
  height:auto;
  min-height:0;
  flex:0 0 auto;
  padding:0;
  container-type:inline-size;
}
#new-invitation .invitation-copy {
  position:relative;
  inset:auto;
  margin:0 20px;
  padding-bottom:64px;
  overflow:visible;
}
#new-invitation .invitation-welcome strong { font-weight:600; }
#new-invitation .invitation-copy :is(.invitation-welcome,.invitation-signature) { margin-top:24px; }
.invitation-signature {
  display:flex;
  align-items:center;
  gap:10px;
  font:400 min(22px,5.128205128cqw)/1.2 var(--font-mono);
}
.invitation-signature img {
  display:block;
  width:32px;
  height:auto;
  flex:0 0 auto;
}

/* Короткий горизонтальный экран с мобильной колонкой. */
@media (600px <= width < 768px) and (max-height: 450px) and (orientation: landscape) {
  .story-track { --story-photo-ratio: 393 / 362; }
  .story-track > :is(#new-opening, #new-hosts, #new-training, #new-hotel) {
    height: auto;
    min-height: 0;
    container-type: inline-size;
  }
  #new-opening .opening-page,
  #new-hosts,
  #new-training .revision-training-scene {
    display: grid;
    grid-template-columns: minmax(0, var(--right-column)) minmax(0, 1fr);
    row-gap: var(--story-content-gap);
    align-items: start;
  }
  #new-opening .opening-page {
    position: relative;
    inset: auto;
    container-type: inline-size;
    padding-top: 92px;
  }
  #new-training :is(.cover-layout, .revision-training-scene) {
    position: relative !important;
    inset: auto;
    height: auto;
    container-type: inline-size;
  }
  #new-opening .opening-title,
  #new-hosts .hosts-title,
  #new-training .revision-training-scene > h2 {
    position: relative;
    inset: auto;
    grid-area: 1 / 1;
    margin: 0 0 0 20px;
  }
  #new-opening .opening-title {
    font-size: min(42px, calc((64.5cqw - 36px) / 7.2), 4.93svh);
  }
  #new-opening .opening-dates,
  #new-hosts .hosts-note,
  #new-training .training-side-note {
    position: relative;
    inset: auto;
    grid-area: 1 / 2;
    margin: 0 20px 0 0;
  }
  #new-opening .opening-media,
  #new-hosts .hosts-media,
  #new-training .revision-training-media {
    position: relative;
    inset: auto;
    grid-area: 2 / 1 / auto / -1;
    width: 100%;
    height: auto;
    aspect-ratio: var(--story-photo-ratio);
    margin: 0;
    transform: none;
  }
  #new-opening .opening-media { clip-path: polygon(0 7.6%, 100% 0, 100% 92.4%, 0 100%); }
  #new-hosts .hosts-media { clip-path: polygon(0 0, 100% 7.6%, 100% 100%, 0 92.4%); }
  #new-hotel .hotel-copy { position: relative; inset: auto; }
  #new-hotel .hotel-copy h1 { position: relative; inset: auto; margin: 0 20px; }
  #new-hotel .hotel-media {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: var(--story-photo-ratio);
    margin: var(--story-content-gap) 0 0;
    transform: none;
    clip-path: polygon(0 7.6%, 100% 0, 100% 92.4%, 0 100%);
  }
}

/* Статичная фактура печати. Чтобы отключить слой, выставьте его интенсивность в 0. */
:root {
  --grain-background: .042;
  --grain-text: .034;
  --grain-images: .024;
  --grain-tile: url('./assets/mobile-study/revision/neutral-film-grain.svg');
}

body::after,
.photo-dialog[open]::after {
  content:'';
  position:fixed;
  inset:0;
  z-index:100;
  pointer-events:none;
  background-image:var(--grain-tile);
  background-size:256px 256px;
  opacity:var(--grain-background);
}
.photo-dialog[open]::after { position:absolute; }

/* Текст остаётся доступен для выделения поверх прокручиваемых секций. */
.story-track .story-panel :is(h1,h2,p) { pointer-events:auto; }

@supports (mask-mode:luminance) and (mask-composite:add) {
  .story-panel :is(h1,h2,p):not(:has(button, img, video)),
  .fixed-site-contact > span { --surface-grain:var(--grain-text); }

  .story-panel img,
  .fixed-site-logo,
  .photo-dialog-media:is(img) { --surface-grain:var(--grain-images); }

  .story-panel :is(h1,h2,p):not(:has(button, img, video)),
  .fixed-site-contact > span,
  .story-panel img,
  .fixed-site-logo,
  .photo-dialog-media:is(img) {
    --ink-alpha:rgb(255 255 255 / calc(1 - var(--surface-grain)));
    mask-image:linear-gradient(var(--ink-alpha),var(--ink-alpha)),var(--grain-tile);
    mask-mode:alpha,luminance;
    mask-composite:add;
    mask-size:auto,192px 192px;
    mask-repeat:no-repeat,repeat;
    mask-clip:no-clip,border-box;
  }
}
