/* Два соседних кадра — один физический разворот и одна фотография. */
.theatre-spread { position:relative; flex:0 0 200%; min-width:0; height:100%; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:100%; container-type:size; isolation:isolate; overflow:clip; background:#df1b06 url('./assets/mobile-study/revision/theatre-red-paper.png') center / cover no-repeat; }
.red-panel { position:relative; min-width:0; height:100%; padding:0; container-type:size; background:transparent!important; color:#f6f5e8; z-index:2; --red-body:var(--body-size); --red-small:var(--body-size); --red-heading-top:calc(15.14cqh - 8px); }
.red-panel--theatre { grid-column:1; grid-row:1; }
.red-panel--literature { grid-column:2; grid-row:1; }
.screen:has(.red-panel:not([inert])) > .segments { visibility:hidden; }
.red-panel h1 { margin:0; font:500 30px/1 var(--font-mono); }
.red-heading-caps { font-size:.739255em; font-weight:600; }
.red-panel p { margin:0; }
.red-theatre-copy,.red-literature-copy { position:absolute; top:var(--red-heading-top); left:var(--grid-left); right:20px; }
.red-theatre-lead { margin-top:24px!important; font:400 var(--red-body)/1.15 var(--font-mono); }
.red-theatre-lead strong { display:inline-block; font:600 calc(var(--red-body) * var(--inline-caps-scale))/1.15 var(--font-mono); }
.red-theatre-aside { margin-left:calc(100cqw - var(--frame-gutter) - var(--contact-width) - var(--grid-left))!important; width:var(--contact-width); font:400 var(--red-small)/1.15 var(--font-mono); }
.red-literature-question { margin-top:32px!important; font:400 var(--red-body)/1.15 var(--font-mono); }
.red-literature-detail { position:absolute; left:var(--grid-logo-end); right:20px; top:var(--red-detail-top,44cqh); font:400 var(--red-small)/1.15 var(--font-mono); }
.red-literature-detail p+p { margin-top:20px; }
.red-shared-photo { position:absolute; left:-15px; top:var(--red-photo-top,48cqh); width:calc(50cqw + 70px); height:var(--red-photo-height,40cqh); margin:0; transform:rotate(-4deg); transform-origin:top left; overflow:hidden; z-index:1; background:#050505; }
.red-shared-photo img { --red-image-height:calc((50cqw + 70px) * 1.45 * 1339 / 1800); position:absolute; left:0; top:max(calc(100% - var(--red-image-height)),calc(var(--red-image-height) * -.19)); display:block; width:145%; height:auto; max-width:none; }
.red-photo-note { position:absolute; left:20px; top:calc(var(--red-photo-top,48cqh) + 42px); width:170px; font:400 var(--red-small)/1.15 var(--font-mono); transform:rotate(-4deg); transform-origin:top left; }
.red-panel .opening-advance { color:#f6f5e8; }
.red-panel .new-contact { color:#f6f5e8; border-color:#f6f5e8; }
.red-panel .new-contact .contact-icon { filter:invert(1); }
@media(max-height:580px) { .red-panel h1 { font-size:24px; } .red-theatre-lead { margin-top:14px!important; } .red-literature-question { margin-top:18px!important; } .red-literature-detail p+p { margin-top:12px; } .red-photo-note { top:calc(var(--red-photo-top) + 20px); width:130px; } }

@media(max-height:580px) { .red-panel { --red-body:13px; --red-small:13px; } }
@media(max-height:520px) { .red-panel { --red-small:12px; } }
@media(max-height:520px) { .red-literature-detail p+p { margin-top:8px; } }

/* Горчичный разворот: снимок до нижней линии кнопки. */
.theatre-spread { background:#c59737; }
.red-panel { color:#fff; }
.red-shared-photo img { top:auto; bottom:0; }
.red-photo-note { transform:none; }

/* Текст театра по новому макету; фотография помещается по высоте целиком. */
.red-theatre-copy { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); column-gap:20px; row-gap:48px; align-items:start; }
.red-theatre-copy h1 { grid-column:1; }
.red-theatre-copy .red-theatre-lead { grid-column:2; margin:0!important; font:400 14px/1.15 var(--font-mono); }
.red-theatre-copy .red-theatre-aside { grid-column:1/-1; margin:0!important; width:auto; max-width:300px; font:400 14px/1.15 var(--font-mono); }
.red-shared-photo img { width:min(145%,calc(var(--red-photo-height) * 1800 / 1339)); height:auto; top:auto; bottom:0; }
@media(max-height:580px) { .red-theatre-copy { row-gap:24px; } .red-theatre-copy .red-theatre-lead, .red-theatre-copy .red-theatre-aside { font-size:12px; } }

/* Крупная девушка продолжается на соседнем экране; верх снимка сохраняется. */
.red-shared-photo img { width:145%; height:auto; top:0; bottom:auto; }

/* Убираем пустое поле над головой, сохраняя общий снимок разворота. */
.red-shared-photo img { top:calc(var(--red-image-height) * -.17); }
