/* Variants chosen in the window «Вид и вёрстка» (2026-11-13, Max): size of type, the home cover, the first screen of an
   article and the story tiles. Attributes on <html>: data-size, data-cover, data-article, data-grid (public/setup.js);
   public/variants.js adds the triptych, the photograph inside the letters, the zoom progress (--zp), the index preview
   and dragging of shelves. This file is linked last, so equal selectors here win over the older sheets. */

/* ---------- Window: layout drawings ---------- */
.setup-panel { width: 360px; }
.setup-row.is-stack { grid-template-columns: minmax(0, 1fr); gap: 6px; align-items: start; }
.setup-options.is-layouts { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; padding: 3px; }
.setup-options.is-layouts button { height: auto; padding: 5px 4px; }
.setup-wf { display: block; width: 100%; height: auto; overflow: visible; }
.setup-wf .p { fill: currentColor; opacity: .3; }
.setup-wf :is(.t, .tw) { fill: currentColor; }
.setup-wf .d { fill: currentColor; opacity: .82; }
.setup-wf .q { fill: currentColor; opacity: .12; }
.setup-wf .r { fill: currentColor; opacity: .2; }
.setup-wf .o { fill: none; stroke: currentColor; stroke-width: .8; stroke-dasharray: 2 1.6; opacity: .7; }
.setup-wf .o2 { fill: none; stroke: currentColor; stroke-width: 1.3; }
html[data-cover] .setup-wf .tw { fill: currentColor; }
.setup-size { font-family: 'ONY One', Arial, sans-serif; letter-spacing: .02em; }
.setup-size.is-s { font-size: 11px; } .setup-size.is-m { font-size: 13px; } .setup-size.is-l { font-size: 15px; }
.setup-tabs button { font-size: 12px; }
.setup-page { display: grid; gap: 10px; padding: 12px 12px 0; }
@media (max-width: 1023px) { .setup-panel { width: auto; } .setup-options.is-layouts button { height: auto; } }

/* ---------- Size of type: S (default), M (13 November), L ---------- */
/* Headings and teasers are scaled as a whole with `zoom`, which multiplies every length of the element (sizes set in px,
   vw or cqi alike); running text follows --body. */
html[data-size=s]:root { --body: 19px; --body-line: 29px; }
html[data-size=l]:root { --body: 22px; --body-line: 33px; }
@media (max-width: 760px) {
  html[data-size=s]:root { --body: 17px; --body-line: 26px; }
  html[data-size=l]:root { --body: 20px; --body-line: 30px; }
}
html[data-size=s] body :is(.page-intro h1, .launch-head h1, .launch-body > h2, .author-copy h1, .cover-copy h1, .story-card h2,
  .related h2, .signal-title, .story-chapter :is(h1, h2), .triptych-title, .author-index-name) { zoom: .88; }
html[data-size=s] body .launch-lead { zoom: .95; }
html[data-size=l] body :is(.page-intro h1, .launch-head h1, .launch-body > h2, .author-copy h1, .cover-copy h1, .story-card h2,
  .related h2, .signal-title, .story-chapter :is(h1, h2), .triptych-title, .author-index-name) { zoom: 1.13; font-weight: 300; }
html[data-size=l] body .launch-lead { zoom: 1.08; }
html[data-size=l] body .card-deck { font-size: 18px; line-height: 1.45; }

/* ---------- Home cover ---------- */
/* The new covers start under the masthead on the paper, not behind it. */
html:is([data-cover=half], [data-cover=kino], [data-cover=frame], [data-cover=type], [data-cover=triptych], [data-cover=zoom]) .home-cover {
  margin-top: 0; padding-top: 0; min-height: calc(100svh - var(--cover-header)); color: var(--text); background: transparent;
}
html:is([data-cover=half], [data-cover=kino], [data-cover=frame], [data-cover=type], [data-cover=triptych]) .cover-media::after { display: none; }
html:not([data-cover=triptych]) .cover-triptych { display: none; }

/* 50/50: type on the paper at the left, the photograph to the very edges at the right. */
html[data-cover=half] .home-cover { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
html[data-cover=half] .cover-media { position: relative; inset: auto; grid-area: 1 / 2; z-index: 0; }
html[data-cover=half] .cover-media img { position: absolute; inset: 0; transition: scale 1.8s cubic-bezier(.16, 1, .3, 1); }
html[data-cover=half] .home-cover:hover .cover-media img { scale: 1.035; }
html[data-cover=half] .cover-inner { grid-area: 1 / 1; max-width: none; margin: 0; padding: 32px clamp(28px, 4vw, 80px) clamp(40px, 6vh, 72px) var(--margin); justify-content: flex-end; }
html[data-cover=half] .cover-copy { grid-template-columns: minmax(0, 1fr); gap: 28px; }
html[data-cover=half] body .cover-copy h1 { font-size: clamp(40px, 4.4vw, 82px); line-height: 1; letter-spacing: -.045em; max-width: none; }
html[data-cover=half] .cover-copy > .text-link { justify-self: start; }

/* Кино: a wide band of photograph on black, the headline under it in the middle, like the opening of a film. */
html[data-cover=kino] .home-cover {
  display: grid; align-content: center; gap: clamp(22px, 3.4vh, 44px); padding-block: clamp(28px, 5vh, 60px) clamp(88px, 12vh, 120px);
  background: #0d0e0f; color: #f1f1ee;
}
html[data-cover=kino] .cover-media { position: relative; inset: auto; z-index: 0; height: min(56svh, 41vw); }
html[data-cover=kino] .cover-media img { animation: variant-drift 24s ease-in-out infinite alternate; }
html[data-cover=kino] .cover-inner { padding: 0 var(--margin); display: block; }
html[data-cover=kino] .cover-copy { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 20px; }
html[data-cover=kino] .cover-copy .meta { order: -1; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #b9bcc0; }
html[data-cover=kino] body .cover-copy h1 { font-size: clamp(34px, 3.9vw, 70px); line-height: 1.02; max-width: 17em; }
html[data-cover=kino] .cover-copy > .text-link { justify-self: center; color: #b9bcc0; }
@keyframes variant-drift { from { scale: 1; translate: 0 0; } to { scale: 1.07; translate: -1.2% -.8%; } }

/* Рамка: the photograph in the middle like a print on a wall, a hairline passe-partout around it, type at the sides. */
html[data-cover=frame] .home-cover {
  display: grid; align-items: end; column-gap: clamp(24px, 3.6vw, 72px);
  grid-template-columns: minmax(0, 1fr) min(30vw, calc((100svh - var(--cover-header) - 120px) * .8)) minmax(0, 1fr);
  grid-template-rows: auto 1fr; padding: clamp(24px, 3vw, 48px) var(--margin) clamp(40px, 5vw, 72px);
}
html[data-cover=frame] :is(.cover-inner, .cover-copy) { display: contents; }
html[data-cover=frame] .cover-media { position: relative; inset: auto; z-index: 0; grid-column: 2; grid-row: 1 / 3; align-self: center; aspect-ratio: 4 / 5; outline: 1px solid var(--line); outline-offset: clamp(10px, 1.1vw, 18px); overflow: hidden; }
html[data-cover=frame] .cover-media img { transition: scale 2s cubic-bezier(.16, 1, .3, 1); }
html[data-cover=frame] .home-cover:hover .cover-media img { scale: 1.04; }
html[data-cover=frame] .cover-copy .meta { grid-column: 1; grid-row: 1; align-self: start; }
html[data-cover=frame] body .cover-copy h1 { grid-column: 1; grid-row: 2; align-self: end; font-size: clamp(30px, 2.8vw, 52px); line-height: 1.04; letter-spacing: -.035em; }
html[data-cover=frame] .cover-copy > .text-link { grid-column: 3; grid-row: 2; align-self: end; justify-self: end; }

/* Шрифт: the headline set very large and cut out of the photograph; the photograph itself is small at the top right. */
html[data-cover=type] .home-cover {
  display: grid; grid-template-columns: minmax(0, 1fr) min(24vw, 360px); grid-template-rows: auto 1fr auto;
  gap: 20px clamp(24px, 3vw, 56px); padding: clamp(20px, 2.4vw, 36px) var(--margin) clamp(32px, 4.4vw, 60px);
}
html[data-cover=type] :is(.cover-inner, .cover-copy) { display: contents; }
html[data-cover=type] .cover-media { position: relative; inset: auto; z-index: 0; grid-column: 2; grid-row: 1 / 3; aspect-ratio: 3 / 4; align-self: start; }
html[data-cover=type] .cover-copy .meta { grid-column: 1; grid-row: 1; }
html[data-cover=type] .cover-copy > .text-link { grid-column: 1; grid-row: 2; align-self: end; justify-self: start; }
html[data-cover=type] body .cover-copy h1 {
  grid-column: 1 / -1; grid-row: 3; max-width: none; font-size: clamp(54px, 8.2vw, 168px); line-height: .9; letter-spacing: -.06em; font-weight: 500;
}
html[data-cover=type] .home-cover[data-type-ready] .cover-copy h1 a {
  background: var(--cover-src) var(--type-x, 50%) var(--type-y, 50%) / cover no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  transition: background-position 1.4s cubic-bezier(.16, 1, .3, 1);
}

/* Триптих: the three stories of the cover side by side; the one under the pointer opens wide. */
html[data-cover=triptych] .home-cover { display: block; height: calc(100svh - var(--cover-header)); min-height: 480px; }
html[data-cover=triptych] .cover-media { display: none; }
html[data-cover=triptych] .cover-inner { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; }
.cover-triptych { display: flex; gap: 3px; height: 100%; }
.triptych-panel { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; color: #fff; text-decoration: none; transition: flex-grow .9s cubic-bezier(.16, 1, .3, 1); }
.triptych-panel:hover { text-decoration: none; }
.triptych-panel.is-open { flex-grow: 2.7; }
.triptych-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.55) brightness(.78); transition: filter .9s ease, scale 1.6s cubic-bezier(.16, 1, .3, 1); }
.triptych-panel.is-open img { filter: none; scale: 1.03; }
.triptych-panel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #0b0c0dcc, transparent 55%); pointer-events: none; }
.triptych-copy { position: absolute; z-index: 1; left: clamp(16px, 2vw, 32px); right: clamp(16px, 2vw, 32px); bottom: clamp(20px, 3.2vw, 48px); display: grid; gap: 12px; }
.triptych-meta { font-size: 12px; line-height: 16px; opacity: .8; }
.triptych-meta a { pointer-events: none; }
.triptych-title { font-family: 'ONY Lavr', Arial, sans-serif; font-size: 20px; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; transition: font-size .7s cubic-bezier(.16, 1, .3, 1); }
.triptych-panel.is-open .triptych-title { font-size: clamp(30px, 3.3vw, 60px); letter-spacing: -.04em; }
.triptych-panel:focus-visible { outline: 2px solid #fff; outline-offset: -6px; }

/* Зум: the photograph opens edge to edge and draws into the right half while the page scrolls (--zp from variants.js);
   the headline turns from white on the photograph to ink on the paper. */
html[data-cover=zoom] .home-cover { display: grid; grid-template: 190svh / minmax(0, 1fr); min-height: 0; }
html[data-cover=zoom] :is(.cover-media, .cover-inner) { grid-area: 1 / 1; position: sticky; top: 0; height: 100svh; align-self: start; }
html[data-cover=zoom] .cover-media {
  inset: 0 auto auto; z-index: 0;
  clip-path: inset(calc(var(--zp, 0) * 13%) calc(var(--zp, 0) * 4%) calc(var(--zp, 0) * 13%) calc(min(1, var(--zp, 0) * 1.8) * 50%));
}
html[data-cover=zoom] .cover-media img { scale: calc(1.14 - var(--zp, 0) * .14); }
html[data-cover=zoom] .cover-media::after { opacity: calc(1 - var(--zp, 0) * 1.4); }
html[data-cover=zoom] .cover-inner { z-index: 1; justify-content: flex-end; padding-bottom: clamp(48px, 9vh, 96px); color: color-mix(in srgb, #fff clamp(0%, (.3 - var(--zp, 0)) * 10000%, 100%), var(--text));
  /* white on the photograph, gone while the photograph moves away, back in ink on the paper */
  opacity: max(1 - var(--zp, 0) * 7, (var(--zp, 0) - .42) * 5); }
html[data-cover=zoom] .cover-copy { grid-template-columns: minmax(0, 1fr); max-width: 44vw; }
html[data-cover=zoom] body .cover-copy h1 { font-size: clamp(40px, 4.4vw, 82px); line-height: 1; }
html[data-cover=zoom] .cover-copy > .text-link { justify-self: start; }

@media (max-width: 760px) {
  html[data-cover=half] .home-cover { grid-template-columns: minmax(0, 1fr); grid-template-rows: 58svh auto; }
  html[data-cover=half] .cover-media { grid-area: 1 / 1; }
  html[data-cover=half] .cover-inner { grid-area: 2 / 1; padding: 24px var(--margin) 40px; }
  html[data-cover=kino] .cover-media { height: 46svh; }
  html[data-cover=frame] .home-cover, html[data-cover=type] .home-cover { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 22px; }
  html[data-cover=frame] :is(.cover-media, .cover-copy .meta, .cover-copy h1, .cover-copy > .text-link),
  html[data-cover=type] :is(.cover-media, .cover-copy .meta, .cover-copy h1, .cover-copy > .text-link) { grid-column: 1; grid-row: auto; justify-self: start; }
  html[data-cover=frame] .cover-media { width: 78%; justify-self: center !important; }
  html[data-cover=type] .cover-media { aspect-ratio: 3 / 2; }
  html[data-cover=type] body .cover-copy h1 { font-size: clamp(42px, 13.4vw, 84px); }
  .cover-triptych { flex-direction: column; }
  html[data-cover=zoom] .cover-media { clip-path: inset(calc(var(--zp, 0) * 9%) calc(var(--zp, 0) * 6%) calc(var(--zp, 0) * 46%)); }
  html[data-cover=zoom] .cover-copy { max-width: none; }
}

/* ---------- First screen of an article ---------- */
/* --edge keeps the text of the full-width layouts on the same column as the rest of the page. */
.launch-top { --edge: max(var(--margin), calc((100% - var(--page, 1440px)) / 2 + var(--margin))); }
html:not([data-article=classic]) .launch-top .launch-cover { margin: 0; }
html:is([data-article=full], [data-article=half], [data-article=kino], [data-article=zoom]) .launch { padding-top: 0; }
html:is([data-article=full], [data-article=half], [data-article=kino], [data-article=frame], [data-article=type], [data-article=zoom]) .launch-top { display: grid; grid-template-columns: minmax(0, 1fr); }
html:is([data-article=full], [data-article=half], [data-article=kino], [data-article=frame], [data-article=type], [data-article=zoom]) .launch-top .launch-head { display: contents; }
html:is([data-article=full], [data-article=kino], [data-article=frame], [data-article=type], [data-article=zoom]) .launch-top :is(.launch-head > .meta, .launch-head > h1, .launch-standfirst) { padding-inline: var(--edge); }
html:is([data-article=full], [data-article=half], [data-article=kino], [data-article=type], [data-article=zoom]) .launch-cover-wrap { max-width: none; padding: 0; margin-inline: 0; }
html:is([data-article=full], [data-article=half], [data-article=kino], [data-article=type], [data-article=zoom]) .launch-cover :is(img, video) { border-radius: 0; }

/* Фото: the cover photograph fills the first screen, the section and the headline in white on it. */
html[data-article=full] .launch-top { grid-template-rows: 1fr auto auto clamp(32px, 5vh, 56px) auto; }
html[data-article=full] .launch-cover-wrap { grid-row: 1 / 5; grid-column: 1; }
html[data-article=full] .launch-cover { position: relative; }
html[data-article=full] .launch-cover :is(img, video) { aspect-ratio: auto; height: calc(100svh - 112px); min-height: 440px; }
html[data-article=full] .launch-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #0c0d0ed9, #0c0d0e55 45%, transparent 70%); pointer-events: none; }
html[data-article=full] .launch-cover figcaption { position: absolute; z-index: 2; right: var(--edge); bottom: 14px; max-width: 34%; margin: 0; justify-content: flex-end; text-align: right; color: #ffffffb3; }
html[data-article=full] .launch-head > .meta { grid-row: 2; grid-column: 1; z-index: 1; color: #ffffffcc; }
html[data-article=full] .launch-head > .meta a { color: inherit; }
html[data-article=full] .launch-head > h1 { grid-row: 3; grid-column: 1; z-index: 1; color: #fff; margin-top: 16px; }
html[data-article=full] .launch-standfirst { grid-row: 5; padding-top: clamp(28px, 3vw, 44px); }

/* 50/50: type at the left, the cover photograph at the right to the very edges; the lead follows under both. */
html[data-article=half] .launch-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto auto; }
html[data-article=half] .launch-standfirst { display: contents; }
html[data-article=half] .launch-cover-wrap { grid-column: 2; grid-row: 1 / 4; position: relative; min-height: calc(100svh - 112px); }
html[data-article=half] .launch-cover { position: absolute; inset: 0; }
html[data-article=half] .launch-cover :is(img, video) { height: 100%; aspect-ratio: auto; }
html[data-article=half] .launch-cover figcaption { position: absolute; left: 16px; right: 16px; bottom: 12px; margin: 0; color: #ffffffb3; }
html[data-article=half] .launch-head > .meta { grid-column: 1; grid-row: 1; padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 72px) 0 var(--margin); }
html[data-article=half] .launch-head > h1 { grid-column: 1; grid-row: 2; align-self: end; padding: 24px clamp(24px, 4vw, 72px) 0 var(--margin); font-size: clamp(34px, 3.7vw, 66px); }
html[data-article=half] .launch-byline { grid-column: 1; grid-row: 3; padding: 28px clamp(24px, 4vw, 72px) clamp(28px, 4vw, 52px) var(--margin); }
html[data-article=half] .launch-lead { grid-column: 1 / -1; grid-row: 4; justify-self: center; width: min(760px, 100% - 2 * var(--margin)); padding-top: clamp(40px, 5vw, 72px); }

/* Кино: the opening on black: section, a wide band of photograph, the headline in the middle, then the standfirst. */
html[data-article=kino] .launch-top {
  --text: #f1f1ee; --secondary: #9da1a7; --line: #34373b;
  gap: clamp(22px, 3vw, 40px); padding-block: clamp(32px, 6vh, 72px) clamp(40px, 6vh, 72px); background: #0d0e0f; color: var(--text);
}
html[data-article=kino] .launch-head > .meta { order: 1; text-align: center; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
html[data-article=kino] .launch-cover-wrap { order: 2; }
html[data-article=kino] .launch-cover :is(img, video) { aspect-ratio: 2.39 / 1; animation: variant-drift 26s ease-in-out infinite alternate; }
html[data-article=kino] .launch-cover { overflow: hidden; }
html[data-article=kino] .launch-cover figcaption { padding-inline: var(--edge); }
html[data-article=kino] .launch-head > h1 { order: 3; justify-self: center; text-align: center; max-width: calc(16em + 2 * var(--edge)); }
html[data-article=kino] .launch-standfirst { order: 4; }

/* Рамка: everything on one axis, the photograph narrow and upright in a hairline frame, lots of air. */
html[data-article=frame] .launch-top { justify-items: center; text-align: center; gap: clamp(20px, 2.6vw, 34px); }
html[data-article=frame] .launch-head > .meta { order: 1; }
html[data-article=frame] .launch-head > h1 { order: 2; max-width: calc(15em + 2 * var(--edge)); font-size: clamp(34px, 4.2vw, 74px); }
html[data-article=frame] .launch-cover-wrap { order: 3; width: min(500px, 76vw); padding: 0; margin-block: clamp(16px, 3vw, 44px); }
html[data-article=frame] .launch-cover { outline: 1px solid var(--line); outline-offset: clamp(10px, 1.2vw, 18px); }
html[data-article=frame] .launch-cover :is(img, video) { aspect-ratio: 4 / 5; }
html[data-article=frame] .launch-cover figcaption { justify-content: center; text-align: center; }
html[data-article=frame] .launch-standfirst { order: 4; grid-template-columns: minmax(0, 1fr); justify-items: center; max-width: calc(680px + 2 * var(--edge)); }
html[data-article=frame] .launch-byline { justify-items: center; }
html[data-article=frame] .launch-lead { text-align: left; }

/* Шрифт: the headline as large as the page allows, then a wide photograph that slides inside its frame while scrolling. */
html[data-article=type] .launch-top { gap: clamp(20px, 2.6vw, 36px); }
html[data-article=type] .launch-head > .meta { order: 1; }
html[data-article=type] .launch-head > h1 { order: 2; max-width: none; font-size: clamp(46px, 7.6vw, 148px); line-height: .92; letter-spacing: -.055em; text-wrap: balance; }
html[data-article=type] .launch-cover-wrap { order: 3; overflow: hidden; }
html[data-article=type] .launch-cover :is(img, video) { aspect-ratio: auto; height: min(72svh, 56vw); }
html[data-article=type] .launch-cover figcaption { padding-inline: var(--edge); }
html[data-article=type] .launch-standfirst { order: 4; }
@supports (animation-timeline: view()) {
  html[data-article=type] .launch-cover :is(img, video) { animation: variant-slide linear both; animation-timeline: view(); }
}
@keyframes variant-slide { from { object-position: 50% 0%; } to { object-position: 50% 100%; } }

/* Зум: the cover photograph opens the story edge to edge and draws into the text column while scrolling; the headline
   stays at the bottom of the screen and turns from white to ink. */
html[data-article=zoom] .launch-top { grid-template-rows: auto auto auto; }
html[data-article=zoom] .launch-cover-wrap { grid-row: 1; grid-column: 1; height: 175svh; }
html[data-article=zoom] .launch-cover { position: sticky; top: 0; height: 100svh; }
html[data-article=zoom] .launch-cover :is(img, video) {
  height: 100%; aspect-ratio: auto;
  clip-path: inset(calc(var(--zp, 0) * 12%) calc(var(--zp, 0) * max(var(--margin), (100% - 1100px) / 2)) 0);
  scale: calc(1.1 - var(--zp, 0) * .1);
}
html[data-article=zoom] .launch-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #0c0d0ecc, transparent 55%); pointer-events: none; }
html[data-article=zoom] .launch-cover figcaption { display: none; }
html[data-article=zoom] .launch-top .launch-head > h1 {
  grid-row: 1; grid-column: 1; align-self: end; position: sticky; bottom: clamp(32px, 7vh, 80px); z-index: 1;
  margin-bottom: clamp(32px, 7vh, 80px); color: #fff; padding-inline: max(var(--edge), calc(var(--zp, 0) * max(var(--margin), (100% - 1100px) / 2) + 32px));
}
html[data-article=zoom] .launch-head > .meta { grid-row: 2; padding-top: 8px; }
html[data-article=zoom] .launch-standfirst { grid-row: 3; }

@media (max-width: 760px) {
  html[data-article=half] .launch-top { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  html[data-article=half] .launch-cover-wrap { grid-column: 1; grid-row: 1; min-height: 62svh; }
  html[data-article=half] :is(.launch-head > .meta, .launch-head > h1, .launch-byline, .launch-lead) { grid-column: 1; grid-row: auto; padding-inline: var(--margin); }
  html[data-article=half] .launch-lead { width: auto; justify-self: stretch; padding-top: 24px; }
  html[data-article=kino] .launch-cover :is(img, video) { aspect-ratio: 16 / 10; }
  html[data-article=type] .launch-head > h1 { font-size: clamp(40px, 12.4vw, 80px); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-cover=kino] .cover-media img, html[data-article=kino] .launch-cover :is(img, video), html[data-article=type] .launch-cover :is(img, video) { animation: none; }
}

/* ---------- Story tiles: home rows and catalogues ---------- */
/* In every layout but the mosaic the rows of the home page give up their boxes, so all cards are siblings in one grid. */
html:is([data-grid=air], [data-grid=full], [data-grid=index], [data-grid=stack], [data-grid=swiss], [data-grid=column], [data-grid=text]) .home-grid :is(.home-top, .home-top-main, .mosaic) { display: contents; }
/* the rows after the top of the home page are wrapped for «Комбо» (2026-11-16); everywhere else the wrapper has no box */
.home-grid .home-rest { display: contents; }
html:not([data-grid=mosaic]):not([data-grid=combo]) body :is(.home-grid, .catalog-grid) > .story-card,
html:not([data-grid=mosaic]):not([data-grid=combo]) body .home-grid .story-card { grid-column: auto; grid-row: auto; border: 0; padding-top: 0; }
html:not([data-grid=mosaic]):not([data-grid=combo]) .home-grid .home-signals { position: static; grid-column: 1 / -1; min-width: 0; max-width: 100%; }
/* Signals in one row that scrolls sideways (2026-11-13, Max: «гор скрол чтобы одним рядом все»), dragged with the mouse
   like a shelf (public/variants.js). */
html:not([data-grid=mosaic]):not([data-grid=combo]) body .home-grid .signals-list {
  display: flex; gap: clamp(16px, 2vw, 32px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  scrollbar-width: none; cursor: grab; margin-inline: calc(var(--margin) * -1); padding: 14px var(--margin) 4px; scroll-padding-inline: var(--margin);
  mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent);
}
html:not([data-grid=mosaic]):not([data-grid=combo]) body .home-grid .signals-list::-webkit-scrollbar { display: none; }
html:not([data-grid=mosaic]):not([data-grid=combo]) body .home-grid .signals-list.is-dragging { cursor: grabbing; scroll-snap-type: none; }
html:not([data-grid=mosaic]):not([data-grid=combo]) body .home-grid .signals-list > li { flex: 0 0 auto; width: clamp(230px, 21vw, 340px); scroll-snap-align: start; }
html:not([data-grid=mosaic]):not([data-grid=combo]) body .home-grid .signals-list .signal-thumb { width: 100%; margin-inline: 0; }
@media (max-width: 760px) { html:not([data-grid=mosaic]):not([data-grid=combo]) body .home-grid .signals-list > li { width: 72vw; } }
html:not([data-grid=mosaic]):not([data-grid=combo]) .home-grid .signals-list li:nth-child(-n+3) .signal { border-top: 0; }
html:not([data-grid=mosaic]):not([data-grid=combo]) body :is(.home-grid, .catalog-grid) .story-card .image-link { height: auto; }
html:not([data-grid=mosaic]):not([data-grid=combo]) body :is(.home-grid, .catalog-grid) .story-card .image-link img { width: 100%; height: 100%; object-fit: cover; }

/* Воздух: an exhibition. Cards of different sizes stand on a twelve-column grid with wide, uneven gaps; the pictures
   are quiet until the pointer comes to them. */
html[data-grid=air] body :is(.home-grid, .catalog-grid) {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(64px, 10vw, 180px);
  align-items: start; padding-block: clamp(16px, 3vw, 48px);
}
html[data-grid=air] body :is(.home-grid, .catalog-grid) > * { grid-column: 1 / -1; }
html[data-grid=air] body :is(.home-grid, .catalog-grid) .story-card { gap: 10px; }
html[data-grid=air] body :is(.home-grid, .catalog-grid) .story-card:nth-of-type(6n+1) { grid-column: 2 / span 6; --ar: 4 / 5; }
html[data-grid=air] body :is(.home-grid, .catalog-grid) .story-card:nth-of-type(6n+2) { grid-column: 10 / span 3; --ar: 3 / 4; margin-top: clamp(80px, 16vw, 280px); }
html[data-grid=air] body :is(.home-grid, .catalog-grid) .story-card:nth-of-type(6n+3) { grid-column: 4 / span 5; --ar: 3 / 2; }
html[data-grid=air] body :is(.home-grid, .catalog-grid) .story-card:nth-of-type(6n+4) { grid-column: 9 / span 4; --ar: 1 / 1; margin-top: clamp(40px, 8vw, 140px); }
html[data-grid=air] body :is(.home-grid, .catalog-grid) .story-card:nth-of-type(6n+5) { grid-column: 1 / span 4; --ar: 4 / 5; }
html[data-grid=air] body :is(.home-grid, .catalog-grid) .story-card:nth-of-type(6n) { grid-column: 6 / span 6; --ar: 16 / 10; margin-top: clamp(60px, 12vw, 200px); }
html[data-grid=air] body :is(.home-grid, .catalog-grid) .story-card .image-link { aspect-ratio: var(--ar, 4 / 5); margin-bottom: 6px; }
html[data-grid=air] body :is(.home-grid, .catalog-grid) .story-card .image-link img { transition: scale 1.6s cubic-bezier(.16, 1, .3, 1); }
html[data-grid=air] body :is(.home-grid, .catalog-grid) .story-card:hover .image-link img { scale: 1.025; }
html[data-grid=air] body :is(.home-grid, .catalog-grid) .story-card h2 { font-size: clamp(17px, 1.35vw, 22px); line-height: 1.18; letter-spacing: -.01em; max-width: 28em; }
html[data-grid=air] body :is(.home-grid, .catalog-grid) .story-card .meta { font-size: 12px; line-height: 16px; }
html[data-grid=air] body :is(.home-grid, .catalog-grid) .story-card:not(:has(.image-link)) h2 { font-size: clamp(26px, 2.4vw, 42px); line-height: 1.06; letter-spacing: -.03em; }
html[data-grid=air] body :is(.home-grid, .catalog-grid) .card-deck { display: none; }

/* Фулскрин: one story per screen, in the middle; the picture grows into place as it comes up. */
html[data-grid=full] body :is(.home-grid, .catalog-grid) { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 0; }
html[data-grid=full]:has(.home-grid, .catalog-grid) { scroll-snap-type: y proximity; }
html[data-grid=full] body :is(.home-grid, .catalog-grid) .story-card {
  min-height: calc(100svh - 80px); display: grid; align-content: center; justify-items: center; text-align: center; gap: 22px;
  padding-block: 6vh; scroll-snap-align: center;
}
html[data-grid=full] body :is(.home-grid, .catalog-grid) .story-card .image-link { width: min(66vw, calc((100svh - 320px) * 1.5)); aspect-ratio: 3 / 2; }
html[data-grid=full] body :is(.home-grid, .catalog-grid) .story-card h2 { font-size: clamp(30px, 3.4vw, 60px); line-height: 1.04; letter-spacing: -.035em; max-width: 20em; text-wrap: balance; }
html[data-grid=full] body :is(.home-grid, .catalog-grid) .card-deck { max-width: 36em; }
@supports (animation-timeline: view()) {
  html[data-grid=full] body :is(.home-grid, .catalog-grid) .story-card .image-link { animation: variant-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  html[data-grid=full] body :is(.home-grid, .catalog-grid) .story-card :is(h2, .meta) { animation: variant-type linear both; animation-timeline: view(); animation-range: entry 20% cover 50%; }
}
@keyframes variant-rise { from { scale: .7; opacity: .15; } to { scale: 1; opacity: 1; } }
@keyframes variant-type { from { translate: 0 40px; opacity: 0; } to { translate: 0 0; opacity: 1; } }

/* Полки (2026-11-13, Max: «прям 3д и как-то в объёме»): every row of the home page, and the catalogue, is a real shelf.
   Covers stand on a plank with a lit top face and a dark front edge, have the thickness of their pages and cast a
   shadow; while a shelf scrolls, every cover turns towards the middle of the screen (a scroll timeline per item), and the
   one under the pointer is pulled forward. Stories without a picture stand as dark books with their title. Cards are
   subgrids, so all covers of a shelf stand on one line whatever the length of their titles. */
html[data-grid=shelf] .home-grid { display: grid; gap: clamp(48px, 6vw, 96px); }
html[data-grid=shelf] .home-grid :is(.home-top, .home-top-main) { display: contents; }
html[data-grid=shelf] body :is(.home-grid .mosaic, .catalog-grid) {
  --plank: 22px; --shelf-gap: clamp(18px, 2.2vw, 36px);
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(190px, 18vw, 290px); grid-template-rows: auto auto auto;
  column-gap: var(--shelf-gap); row-gap: 0; align-items: end; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab;
  margin-inline: calc(var(--margin) * -1); padding: 48px calc(var(--margin) + 22px) 8px; scroll-padding-inline: calc(var(--margin) + 22px);
  border: 0;
}
html[data-grid=shelf] body .home-grid .mosaic-lead { grid-auto-columns: min(100%, 980px); }
html[data-grid=shelf] body :is(.home-grid .mosaic, .catalog-grid)::-webkit-scrollbar { display: none; }
html[data-grid=shelf] body :is(.home-grid .mosaic, .catalog-grid).is-dragging { cursor: grabbing; scroll-snap-type: none; }
html[data-grid=shelf] body :is(.home-grid .mosaic, .catalog-grid) > .story-card::before { content: none; }
html[data-grid=shelf] body :is(.home-grid .mosaic, .catalog-grid) > .story-card {
  grid-row: span 3; display: grid; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); row-gap: 0; gap: 0;
  position: relative; scroll-snap-align: start; border: 0; padding: 0;
}
/* The plank, its shadow and the back wall are the background of the shelf, so they stay in place while the covers slide
   along them; --shelf-y (the line the covers stand on) is measured by public/variants.js. Uprights close both ends. */
html[data-grid=shelf] body :is(.home-grid .mosaic, .catalog-grid) {
  position: relative; --shelf-y: 70%;
  --plank-top: color-mix(in srgb, var(--text) 8%, var(--paper)); --plank-edge: color-mix(in srgb, var(--text) 82%, var(--paper));
  background:
    linear-gradient(90deg, var(--plank-edge) 0 10px, transparent 10px calc(100% - 10px), var(--plank-edge) calc(100% - 10px)) 0 0 / 100% calc(var(--shelf-y) + 22px) no-repeat,
    linear-gradient(var(--plank-top), var(--plank-top)) 0 var(--shelf-y) / 100% 6px no-repeat,
    linear-gradient(var(--plank-edge), var(--plank-edge)) 0 calc(var(--shelf-y) + 6px) / 100% 16px no-repeat,
    linear-gradient(#00000033, transparent) 0 calc(var(--shelf-y) + 22px) / 100% 22px no-repeat,
    linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--text) 6%, transparent)) 0 0 / 100% var(--shelf-y) no-repeat;
  mask-image: none;
}
html[data-grid=shelf] body :is(.home-grid .mosaic, .catalog-grid) > .story-card .image-link {
  grid-row: 1; grid-column: 1; align-self: end; z-index: 1; position: relative; overflow: visible; height: auto;
  transform-origin: 50% 100%; transition: translate .6s cubic-bezier(.16, 1, .3, 1), scale .6s cubic-bezier(.16, 1, .3, 1), filter .4s;
  /* thickness of the pages, then the cast shadow on the plank */
  box-shadow: 1px 0 0 #fff, 2px 0 0 #d9d9d4, 3px 0 0 #fff, 4px 0 0 #cfcfc9, 5px 0 0 #f4f4f0, 6px 1px 0 #bdbdb6,
    14px 2px 18px -6px #00000059, 0 1px 2px #00000033;
}
html[data-grid=shelf] body :is(.home-grid .mosaic, .catalog-grid) > .story-card .image-link img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* a sheen across the cover, as on a printed jacket */
html[data-grid=shelf] body :is(.home-grid .mosaic, .catalog-grid) > .story-card .image-link::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, #ffffff1f 0%, transparent 22%, transparent 70%, #00000024 100%), linear-gradient(90deg, #0000002e, transparent 5%);
}
html[data-grid=shelf] body :is(.home-grid .mosaic, .catalog-grid) > .story-card:nth-child(4n+1) .image-link { aspect-ratio: 3 / 4; }
html[data-grid=shelf] body :is(.home-grid .mosaic, .catalog-grid) > .story-card:nth-child(4n+2) .image-link { aspect-ratio: 4 / 5; width: 92%; justify-self: center; }
html[data-grid=shelf] body :is(.home-grid .mosaic, .catalog-grid) > .story-card:nth-child(4n+3) .image-link { aspect-ratio: 2 / 3; }
html[data-grid=shelf] body :is(.home-grid .mosaic, .catalog-grid) > .story-card:nth-child(4n) .image-link { aspect-ratio: 1 / 1; width: 88%; justify-self: center; }
html[data-grid=shelf] body .home-grid .mosaic-lead > .story-card .image-link { aspect-ratio: 21 / 9; width: 100%; }
html[data-grid=shelf] body :is(.home-grid .mosaic, .catalog-grid) > .story-card .meta { grid-row: 2; grid-column: 1; padding-top: calc(var(--plank) + 12px); font-size: 12px; line-height: 16px; }
html[data-grid=shelf] body :is(.home-grid .mosaic, .catalog-grid) > .story-card h2 { grid-row: 3; grid-column: 1; align-self: start; margin-top: 6px; font-size: clamp(16px, 1.2vw, 20px); line-height: 1.18; letter-spacing: -.01em; }
html[data-grid=shelf] body .home-grid .mosaic-lead .story-card h2 { font-size: clamp(26px, 2.4vw, 40px); line-height: 1.04; letter-spacing: -.03em; }
html[data-grid=shelf] body :is(.home-grid .mosaic, .catalog-grid) .card-deck { display: none; }
/* a story without a picture: a dark book with its title */
html[data-grid=shelf] body :is(.home-grid .mosaic, .catalog-grid) > .story-card:not(:has(.image-link)) h2 {
  grid-row: 1; align-self: end; z-index: 1; margin: 0; aspect-ratio: 3 / 4.2; width: 86%; justify-self: center; display: flex; align-items: flex-end;
  padding: 18px 16px; background: linear-gradient(90deg, #ffffff14, transparent 8%), var(--text); color: var(--paper);
  font-size: clamp(17px, 1.3vw, 21px); line-height: 1.12; transform-origin: 50% 100%;
  box-shadow: 1px 0 0 #fff, 2px 0 0 #d9d9d4, 3px 0 0 #fff, 4px 0 0 #cfcfc9, 14px 2px 18px -6px #00000059;
  transition: translate .6s cubic-bezier(.16, 1, .3, 1);
}
html[data-grid=shelf] body :is(.home-grid .mosaic, .catalog-grid) > .story-card:not(:has(.image-link)) h2 a { color: inherit; }
/* pulled forward under the pointer */
html[data-grid=shelf] body :is(.home-grid .mosaic, .catalog-grid) > .story-card:hover :is(.image-link, h2:first-of-type) { translate: 0 -14px; scale: 1.03; }
html[data-grid=shelf] body :is(.home-grid .mosaic, .catalog-grid) > .story-card:not(:has(.image-link)):hover h2 { translate: 0 -14px; }
/* every cover turns towards the middle of the screen while its shelf scrolls */
@supports (animation-timeline: view(inline)) {
  @media (prefers-reduced-motion: no-preference) {
    html[data-grid=shelf] body :is(.home-grid .mosaic, .catalog-grid) > .story-card :is(.image-link, h2:only-of-type) { animation: shelf-turn linear both; animation-timeline: view(inline); }
    html[data-grid=shelf] body :is(.home-grid .mosaic, .catalog-grid) > .story-card:not(:has(.image-link)) h2 { animation: shelf-turn linear both; animation-timeline: view(inline); }
    html[data-grid=shelf] body :is(.home-grid .mosaic, .catalog-grid) > .story-card:hover :is(.image-link, h2) { animation-play-state: paused; }
  }
}
@keyframes shelf-turn {
  0% { transform: perspective(900px) rotateY(34deg); filter: brightness(.86); }
  50% { transform: perspective(900px) rotateY(0deg); filter: none; }
  100% { transform: perspective(900px) rotateY(-34deg); filter: brightness(.86); }
}
html[data-grid=shelf] .home-grid .home-signals { order: 0; }

/* Индекс: the stories as a typeset list; the picture of the line under the pointer follows it, the other lines fade. */
html[data-grid=index] body :is(.home-grid, .catalog-grid) { display: block; border-top: 1px solid var(--text); }
html[data-grid=index] body :is(.home-grid, .catalog-grid) .story-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 22%); align-items: baseline; gap: 6px 24px;
  padding-block: clamp(14px, 1.5vw, 22px); border-bottom: 1px solid var(--line);
}
html[data-grid=index] body :is(.home-grid, .catalog-grid) .story-card .image-link,
html[data-grid=index] body :is(.home-grid, .catalog-grid) .card-deck { display: none; }
html[data-grid=index] body :is(.home-grid, .catalog-grid) .story-card h2 { grid-column: 1; grid-row: 1; font-size: clamp(24px, 3vw, 52px); line-height: 1.02; letter-spacing: -.035em; transition: translate .5s cubic-bezier(.16, 1, .3, 1), opacity .3s; }
html[data-grid=index] body :is(.home-grid, .catalog-grid) .story-card .meta { grid-column: 2; grid-row: 1; text-align: right; }
html[data-grid=index] body :is(.home-grid, .catalog-grid) .story-card:hover h2 { translate: 14px 0; }
html[data-grid=index] body :is(.home-grid, .catalog-grid):has(.story-card:hover) .story-card:not(:hover) h2 { opacity: .3; }
html[data-grid=index] .home-grid .home-signals { margin-block: clamp(40px, 5vw, 72px); }
.grid-peek {
  position: fixed; z-index: 45; left: 0; top: 0; width: clamp(240px, 24vw, 400px); aspect-ratio: 4 / 3; overflow: hidden; pointer-events: none;
  translate: calc(var(--px, 0px) + 32px) calc(var(--py, 0px) - 50%); opacity: 0; scale: .88; background: var(--line);
  transition: opacity .25s ease, scale .5s cubic-bezier(.16, 1, .3, 1); box-shadow: 0 24px 70px #00000033;
}
.grid-peek img { width: 100%; height: 100%; object-fit: cover; display: block; }
.grid-peek.is-on { opacity: 1; scale: 1; }
html:not([data-grid=index]) .grid-peek { display: none; }

/* Стопка: large cards that stop under the masthead while the next one slides over them, a pile of prints. */
html[data-grid=stack] body :is(.home-grid, .catalog-grid) { display: block; }
html[data-grid=stack] body :is(.home-grid, .catalog-grid) .story-card {
  position: sticky; top: calc(var(--chrome-surface, 80px) + 12px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto auto; gap: 16px clamp(20px, 3vw, 56px); align-items: end; min-height: min(76svh, 760px);
  margin-bottom: 9vh; padding: clamp(14px, 1.6vw, 24px); background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 -24px 60px -28px #00000040;
}
html[data-grid=stack] body :is(.home-grid, .catalog-grid) .story-card:nth-of-type(4n+2) { top: calc(var(--chrome-surface, 80px) + 24px); }
html[data-grid=stack] body :is(.home-grid, .catalog-grid) .story-card:nth-of-type(4n+3) { top: calc(var(--chrome-surface, 80px) + 36px); }
html[data-grid=stack] body :is(.home-grid, .catalog-grid) .story-card:nth-of-type(4n) { top: calc(var(--chrome-surface, 80px) + 48px); }
html[data-grid=stack] body :is(.home-grid, .catalog-grid) .story-card .image-link { grid-column: 1; grid-row: 1 / 4; height: 100%; min-height: 48svh; }
html[data-grid=stack] body :is(.home-grid, .catalog-grid) .story-card > :not(.image-link) { grid-column: 2; }
html[data-grid=stack] body :is(.home-grid, .catalog-grid) .story-card .meta { grid-row: 1; align-self: start; }
html[data-grid=stack] body :is(.home-grid, .catalog-grid) .story-card h2 { grid-row: 2; font-size: clamp(28px, 3.2vw, 56px); line-height: 1.03; letter-spacing: -.035em; }
html[data-grid=stack] body :is(.home-grid, .catalog-grid) .story-card:not(:has(.image-link)) { grid-template-columns: minmax(0, 1fr); min-height: 40svh; }
html[data-grid=stack] body :is(.home-grid, .catalog-grid) .story-card:not(:has(.image-link)) > * { grid-column: 1; }
html[data-grid=stack] .home-grid .home-signals { margin-bottom: 9vh; }

@media (max-width: 760px) {
  html[data-grid=air] body :is(.home-grid, .catalog-grid) .story-card:nth-of-type(n) { grid-column: 1 / -1; margin-top: 0; }
  html[data-grid=air] body :is(.home-grid, .catalog-grid) .story-card:nth-of-type(2n) { grid-column: 4 / -1; }
  html[data-grid=air] body :is(.home-grid, .catalog-grid) .story-card:nth-of-type(2n+1) { grid-column: 1 / span 10; }
  html[data-grid=air] body :is(.home-grid, .catalog-grid) { row-gap: 56px; }
  html[data-grid=full] body :is(.home-grid, .catalog-grid) .story-card .image-link { width: 100%; }
  html[data-grid=shelf] body :is(.home-grid .mosaic, .catalog-grid) { grid-auto-columns: 58vw; }
  html[data-grid=index] body :is(.home-grid, .catalog-grid) .story-card { grid-template-columns: minmax(0, 1fr); }
  html[data-grid=index] body :is(.home-grid, .catalog-grid) .story-card .meta { grid-column: 1; grid-row: 2; text-align: left; }
  html[data-grid=stack] body :is(.home-grid, .catalog-grid) .story-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; min-height: 0; }
  html[data-grid=stack] body :is(.home-grid, .catalog-grid) .story-card > * { grid-column: 1 !important; grid-row: auto !important; }
  html[data-grid=stack] body :is(.home-grid, .catalog-grid) .story-card .image-link { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  .triptych-panel, .triptych-panel img, .triptych-title { transition: none; }
  html[data-grid=full] body :is(.home-grid, .catalog-grid) .story-card :is(.image-link, h2, .meta) { animation: none; }
}

/* The window «Вид и вёрстка» opens from one round button at the bottom left, above everything (2026-11-13, Max: «вынеси
   отдельно поверх всего в левый нижний угол с иконкой темы»); the footer and the menu no longer carry it. */
.setup-fab {
  position: fixed; z-index: 75; left: max(16px, var(--margin)); bottom: 20px; width: 44px; height: 44px;
  display: grid; place-items: center; border-radius: 50%; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); box-shadow: 0 10px 30px #0000001f, 0 1px 3px #00000014;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), background-color .2s, color .2s;
}
.setup-fab svg { width: 20px; height: 20px; transition: rotate .6s cubic-bezier(.16, 1, .3, 1); }
.setup-fab:hover { text-decoration: none; transform: scale(1.06); }
.setup-fab:hover svg { rotate: 180deg; }
.setup-fab[aria-expanded=true] { background: var(--text); color: var(--paper); border-color: var(--text); }
.setup-fab:focus-visible { outline: 2px solid var(--accent-text, var(--accent)); outline-offset: 3px; }
.desk-page .setup-fab, body.flip-page .setup-fab, html.is-site-editing .setup-fab { display: none; }
@media print { .setup-fab { display: none; } }
@media (prefers-reduced-motion: reduce) { .setup-fab, .setup-fab svg { transition: none; } }
/* On phones the ask field takes the bottom row, so the button stands above it. */
/* On phones the ask field gives up some width, so the button stands beside it in the same bottom row. */
@media (max-width: 760px) {
  html body .ask-pill { --open: min(400px, calc(100vw - 32px)); }
  .setup-fab { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 6px); left: 14px; width: 40px; height: 40px; }
}
/* The window stands above the corner button and never runs under it: setup.js sets its bottom 12 px over the button,
   the height is capped by the room left above, and longer content scrolls inside. */
.setup-panel { max-height: calc(100svh - 96px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
/* 2026-11-17 (Max: «это убери со страницы, только в подвале и меню»): no corner button; the window opens from the footer
   and the menu, beside its button on wide screens and as a sheet at the bottom on phones (public/setup.css). */


/* ---------- Three quiet layouts of the tiles (2026-11-13, Max: «2–3 варианта минималистичных, но вкусных») ---------- */
/* Сетка: a strict Swiss grid; every cover the same 4:5, small captions, lots of white. */
html[data-grid=swiss] body :is(.home-grid, .catalog-grid) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(40px, 4vw, 64px) clamp(14px, 1.4vw, 24px); align-items: start; }
html[data-grid=swiss] body :is(.home-grid, .catalog-grid) .story-card { gap: 10px; }
html[data-grid=swiss] body :is(.home-grid, .catalog-grid) .story-card .image-link { aspect-ratio: 4 / 5; margin-bottom: 4px; }
html[data-grid=swiss] body :is(.home-grid, .catalog-grid) .story-card .image-link img { transition: scale 1.2s cubic-bezier(.16, 1, .3, 1); }
html[data-grid=swiss] body :is(.home-grid, .catalog-grid) .story-card:hover .image-link img { scale: 1.04; }
html[data-grid=swiss] body :is(.home-grid, .catalog-grid) .story-card .meta { font-size: 11px; line-height: 14px; letter-spacing: .02em; }
html[data-grid=swiss] body :is(.home-grid, .catalog-grid) .story-card h2 { font-size: clamp(15px, 1.1vw, 18px); line-height: 1.25; letter-spacing: 0; }
html[data-grid=swiss] body :is(.home-grid, .catalog-grid) .story-card:not(:has(.image-link)) { aspect-ratio: 4 / 5; border: 1px solid var(--line); padding: 16px; justify-content: space-between; }
html[data-grid=swiss] body :is(.home-grid, .catalog-grid) .story-card:not(:has(.image-link)) h2 { order: 2; font-size: clamp(18px, 1.5vw, 24px); line-height: 1.12; letter-spacing: -.02em; }
html[data-grid=swiss] body :is(.home-grid, .catalog-grid) .card-deck { display: none; }

/* Колонка: one narrow column like a letter; a large headline, the section above it, a small square picture beside. */
html[data-grid=column] body :is(.home-grid, .catalog-grid) { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; gap: 0; }
html[data-grid=column] body :is(.home-grid, .catalog-grid) .story-card {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(96px, 11vw, 150px); grid-template-rows: auto 1fr; gap: 10px clamp(20px, 3vw, 40px);
  padding-block: clamp(22px, 2.6vw, 34px); border-bottom: 1px solid var(--line);
}
html[data-grid=column] body :is(.home-grid, .catalog-grid) .story-card .image-link { grid-column: 2; grid-row: 1 / 3; aspect-ratio: 1; transition: scale .6s cubic-bezier(.16, 1, .3, 1); }
html[data-grid=column] body :is(.home-grid, .catalog-grid) .story-card:hover .image-link { scale: 1.06; }
html[data-grid=column] body :is(.home-grid, .catalog-grid) .story-card :is(.meta, h2, .card-deck) { grid-column: 1; }
html[data-grid=column] body :is(.home-grid, .catalog-grid) .story-card h2 { font-size: clamp(24px, 2.3vw, 36px); line-height: 1.08; letter-spacing: -.03em; }
html[data-grid=column] body :is(.home-grid, .catalog-grid) .story-card:not(:has(.image-link)) { grid-template-columns: minmax(0, 1fr); }
html[data-grid=column] body .home-grid .home-signals { margin-block: clamp(32px, 4vw, 56px); }

/* Текст: type only, in columns between hairlines; the picture of a story comes up inside its card under the pointer. */
html[data-grid=text] body :is(.home-grid, .catalog-grid) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--text); }
html[data-grid=text] body :is(.home-grid, .catalog-grid) .story-card {
  position: relative; overflow: hidden; display: grid; grid-template-rows: auto 1fr; gap: 16px; min-height: clamp(220px, 20vw, 300px);
  padding: 18px 20px 24px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); isolation: isolate;
}
html[data-grid=text] body :is(.home-grid, .catalog-grid) .story-card .image-link {
  position: absolute; inset: 0; z-index: -1; height: 100%; opacity: 0; transition: opacity .5s ease;
}
html[data-grid=text] body :is(.home-grid, .catalog-grid) .story-card .image-link::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #0c0d0ecc, #0c0d0e33 60%, #0c0d0e66); }
html[data-grid=text] body :is(.home-grid, .catalog-grid) .story-card .image-link img { scale: 1.08; transition: scale 1.4s cubic-bezier(.16, 1, .3, 1); }
html[data-grid=text] body :is(.home-grid, .catalog-grid) .story-card h2 { align-self: end; font-size: clamp(22px, 2vw, 32px); line-height: 1.08; letter-spacing: -.03em; transition: color .4s; }
html[data-grid=text] body :is(.home-grid, .catalog-grid) .story-card .meta { transition: color .4s; }
@media (hover: hover) {
  html[data-grid=text] body :is(.home-grid, .catalog-grid) .story-card:hover .image-link { opacity: 1; }
  html[data-grid=text] body :is(.home-grid, .catalog-grid) .story-card:hover .image-link img { scale: 1; }
  html[data-grid=text] body :is(.home-grid, .catalog-grid) .story-card:hover :is(h2, .meta, h2 a) { color: #fff; }
}
html[data-grid=text] body :is(.home-grid, .catalog-grid) .card-deck { display: none; }

@media (max-width: 1023px) {
  html[data-grid=swiss] body :is(.home-grid, .catalog-grid) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html[data-grid=text] body :is(.home-grid, .catalog-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  html[data-grid=swiss] body :is(.home-grid, .catalog-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-grid=text] body :is(.home-grid, .catalog-grid) { grid-template-columns: minmax(0, 1fr); }
  html[data-grid=text] body :is(.home-grid, .catalog-grid) .story-card { min-height: 0; border-left: 0; }
  html[data-grid=text] body :is(.home-grid, .catalog-grid) .story-card .image-link { position: relative; inset: auto; z-index: 0; opacity: 1; aspect-ratio: 3 / 2; height: auto; }
  html[data-grid=text] body :is(.home-grid, .catalog-grid) .story-card .image-link::after { display: none; }
  html[data-grid=text] body :is(.home-grid, .catalog-grid) .story-card { grid-template-rows: auto auto auto; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-grid=text] body :is(.home-grid, .catalog-grid) .story-card .image-link, html[data-grid=text] body :is(.home-grid, .catalog-grid) .story-card .image-link img { transition: none; }
}

/* Кино (2026-11-13, Max: «верх тоже чёрный для всех тем единый»): with the film opening the masthead above it is the same
   black in every theme, with white type, until the page scrolls; on the home page and on articles. */
html[data-cover=kino] body.is-home .site-chrome:not(.is-scrolled),
html[data-article=kino] body:has(.launch-top) .site-chrome:not(.is-scrolled) {
  --text: #f1f1ee; --secondary: #b9bcc0; --paper: #0d0e0f; color: #f1f1ee; background: #0d0e0f;
}
html[data-cover=kino] body.is-home .site-chrome:not(.is-scrolled)::before,
html[data-cover=kino] body.is-home .site-chrome:not(.is-scrolled)::after,
html[data-article=kino] body:has(.launch-top) .site-chrome:not(.is-scrolled)::before,
html[data-article=kino] body:has(.launch-top) .site-chrome:not(.is-scrolled)::after { display: none; }
html[data-cover=kino] body.is-home, html[data-article=kino] body:has(.launch-top) { background: linear-gradient(#0d0e0f 0 112px, var(--paper) 112px); }

/* «Полки» in a catalogue: the three columns of the ordinary catalogue must not stay as explicit tracks of the shelf. */
html[data-grid=shelf] body :is(.home-grid .mosaic, .catalog-grid) { grid-template-columns: none; }

/* Photograph under the masthead (2026-11-13, Max: «в зуме тоже шапка с фото должна быть»): in «Зум» on the home page and
   in «Фото» and «Зум» of an article the photograph starts at the top of the page under the masthead, and the masthead is
   white on it until the page scrolls, as with the photographic cover. */
html[data-cover=zoom] body.is-home .home-cover { margin-top: calc(-1 * var(--cover-header)); }
html:is([data-article=full], [data-article=zoom]) body .launch-top { margin-top: -112px; }
html[data-article=full] .launch-cover :is(img, video) { height: 100svh; min-height: 520px; }
html:is([data-cover=zoom]) body.is-home .site-chrome:not(.is-scrolled),
html:is([data-article=full], [data-article=zoom]) body:has(.launch-top) .site-chrome:not(.is-scrolled) {
  --text: #fff; --secondary: #fff; color: #fff; background: transparent;
}
html:is([data-cover=zoom]) body.is-home .site-chrome:not(.is-scrolled)::before,
html:is([data-cover=zoom]) body.is-home .site-chrome:not(.is-scrolled)::after,
html:is([data-article=full], [data-article=zoom]) body:has(.launch-top) .site-chrome:not(.is-scrolled)::before,
html:is([data-article=full], [data-article=zoom]) body:has(.launch-top) .site-chrome:not(.is-scrolled)::after { display: none; }
/* a soft shade at the top keeps the white masthead readable on a light photograph */
html[data-article=full] .launch-cover::before, html[data-article=zoom] .launch-cover::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 180px; z-index: 1; pointer-events: none; background: linear-gradient(#0000006b, transparent);
}
html[data-cover=zoom] .cover-media::before { content: ''; position: absolute; inset: 0 0 auto; height: 180px; z-index: 1; pointer-events: none; background: linear-gradient(#0000006b, transparent); opacity: calc(1 - var(--zp, 0) * 3); }
@media (max-width: 760px) { html:is([data-article=full], [data-article=zoom]) body .launch-top { margin-top: -88px; } }

/* «Полки» on the home page: the lead story keeps its wide cover on its own shelf. */
html[data-grid=shelf] body .home-grid .mosaic-lead > .story-card:nth-child(n) .image-link { aspect-ratio: 21 / 9; width: 100%; }

/* A soft blurred band along the bottom of the screen while the ask field is open (2026-11-13, Max: «по низу когда
   раскрывается поле ввода ai, давай лёгкий градиент блюр»); public/variants.js shows it when the field is not folded. */
.ask-veil {
  position: fixed; z-index: 60; inset: auto 0 0; height: 112px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--paper) 50%, transparent));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 62%); mask-image: linear-gradient(180deg, transparent, #000 62%);
  transition: opacity .5s ease;
}
.ask-veil.is-on { opacity: 1; }
.desk-page .ask-veil, body.flip-page .ask-veil, html.is-site-editing .ask-veil { display: none; }
@media print { .ask-veil { display: none; } }

/* Articles: the text comes up softly as it reaches the screen (2026-11-13, Max: «лёгкое появление текста, ненавязчиво,
   везде плавно»). variants.js marks the blocks below the first screen; they rise 14 px and fade in, one after another. */
html.text-reveal .launch :is(.launch-body > *, .launch-lead > *, .launch-figure, .launch-gallery).is-veiled { opacity: 0; translate: 0 14px; }
html.text-reveal .launch :is(.launch-body > *, .launch-lead > *, .launch-figure, .launch-gallery).is-shown {
  opacity: 1; translate: 0 0; transition: opacity .9s ease var(--reveal-delay, 0ms), translate 1.1s cubic-bezier(.16, 1, .3, 1) var(--reveal-delay, 0ms);
}
@media (prefers-reduced-motion: reduce) { html.text-reveal .launch .is-veiled { opacity: 1; translate: none; } }
@media print { html.text-reveal .launch .is-veiled { opacity: 1; translate: none; } }

/* Menu (2026-11-13, Max: «в меню слишком прижато к бокам»): the full-screen menu keeps a comfortable margin of its own
   instead of the 5 px page edge. The menu stays in the grotesque in the sans + serif type too (editors, 16 November 2026). */
html[data-nav=studio] body .navigator-inner { padding: clamp(14px, 1.6vw, 28px) clamp(18px, 2.4vw, 44px) clamp(10px, 1.2vw, 20px); }


/* ---------- Checked on phones and on a 27-inch 5K screen (2026-11-13) ---------- */
/* Large screens: the text of the full-width layouts stands on the column of the site (1440 px), not on the screen edge. */
.home-cover { --edge: max(var(--margin), calc((100vw - var(--page, 1440px)) / 2 + var(--margin))); }
html[data-cover=half] .cover-inner { padding-left: var(--edge); }
html[data-cover=frame] .home-cover, html[data-cover=type] .home-cover { padding-inline: var(--edge); }
html[data-article=half] .launch-top :is(.launch-head > .meta, .launch-head > h1, .launch-byline) { padding-left: var(--edge); }
html:is([data-article=full], [data-article=zoom]) .launch-top .launch-head > h1 { max-width: none; padding-right: max(var(--edge), calc(100% - var(--edge) - 1100px)); }
/* Phones: the openings leave room for the headline above the ask field. */
@media (max-width: 760px) {
  html[data-cover=half] .home-cover { grid-template-rows: 46svh auto; }
  html[data-cover=half] body .cover-copy h1 { font-size: clamp(28px, 8vw, 40px); }
  html[data-cover=half] .cover-inner { padding-bottom: 96px; }
  html[data-article=full] .launch-cover :is(img, video) { height: 80svh; min-height: 420px; }
  html:is([data-article=full], [data-article=zoom]) .launch-top .launch-head > h1 { font-size: clamp(28px, 7.6vw, 38px); }
  html[data-article=half] .launch-cover-wrap { min-height: 46svh; }
  html[data-article=zoom] .launch-top .launch-head > h1 { bottom: 96px; margin-bottom: 96px; }
  html[data-article=full] .launch-top { grid-template-rows: 1fr auto auto 72px auto; }
}
/* second pass of the same check */
html[data-article=half] .launch-top :is(.launch-head > .meta, .launch-head > h1, .launch-byline) { padding-left: max(var(--margin), calc((100vw - var(--page, 1440px)) / 2 + var(--margin))); }
html[data-cover=frame] .home-cover { grid-template-columns: minmax(0, 1fr) min(30vw, 480px, calc((100svh - var(--cover-header) - 120px) * .8)) minmax(0, 1fr); }
html[data-article=full] .launch-top { grid-template-rows: 1fr auto auto clamp(88px, 11vh, 160px) auto; }
html[data-article=zoom] .launch-top .launch-head > h1 { bottom: clamp(88px, 10vh, 150px); margin-bottom: clamp(88px, 10vh, 150px); }
.triptych-copy { bottom: clamp(88px, 10vh, 150px); }
@media (max-width: 760px) { html[data-article=full] .launch-top { grid-template-rows: 1fr auto auto 88px auto; } }

/* ---------- Wider page on large screens (2026-11-13, Max: «да, шире») ---------- */
/* The column of the site grows with the screen: 1440 px up to 1919 px wide, 1760 px from 1920, 2080 px from 2400 (a 27-inch
   5K screen is 2560 px wide). Masthead, sections, covers, the poster and every full-width layout follow --page. The text of
   an article keeps a reading measure of its own. */
:root { --page: 1440px; }
@media (min-width: 1920px) { :root { --page: 1760px; } }
@media (min-width: 2400px) { :root { --page: 2080px; } }
html body .wrap { max-width: var(--page); }
html body .cover-inner { max-width: var(--page); }
html[data-cover=poster] .home-cover { --gut: max(var(--margin), calc((100vw - var(--page)) / 2 + var(--margin))); }
@media (min-width: 1920px) {
  html body .launch-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 820px) minmax(0, 1fr); gap: 0 clamp(32px, 3vw, 72px); }
  html body .launch-standfirst { grid-template-columns: minmax(0, 1fr) minmax(0, 820px) minmax(0, 1fr); }
  html body .launch-head h1 { max-width: 1400px; }
  html[data-size] body :is(.mosaic .story-card h2) { font-size: 26px; }
  html[data-size] body .mosaic-lead .story-card h2 { font-size: clamp(40px, 2.4vw, 60px); }
}

/* ---- 2026-11-14, Max: fixes and reworks of the tile layouts --------------------------------------------------------- */

/* Signals keep clear space from the stories in every layout but the mosaic («в режиме текст слишком близко»). */
html:not([data-grid=mosaic]):not([data-grid=combo]) body .home-grid .home-signals { margin-block: clamp(48px, 5vw, 88px); }

/* Индекс: the line under the pointer only takes the colour; it no longer slides 14 px, which left a stale copy of the
   title on screen in Chrome («сдвиг»). The titles sit on their own layers, so fading the others repaints nothing. */
html[data-grid=index] body :is(.home-grid, .catalog-grid) .story-card h2 { transition: opacity .3s, color .3s; will-change: opacity; }
html[data-grid=index] body :is(.home-grid, .catalog-grid) .story-card:hover h2 { translate: none; }

/* Стопка: the signals open the pile instead of riding over it, and the pile ends with its own block, so the stories that
   follow push it away. Each print fits the window; the title starts at its vertical middle («с центра по вертикали»). */
html[data-grid=stack] body .home-grid { display: flex; flex-direction: column; }
html[data-grid=stack] body .home-grid .home-signals { order: -1; margin-block: 0 clamp(48px, 6vw, 96px); }
@media (min-width: 761px) {
  html[data-grid=stack] body :is(.home-grid, .catalog-grid) .story-card {
    height: min(calc(100svh - var(--chrome-surface, 80px) - 96px), 820px); min-height: 0;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); align-items: start; overflow: hidden;
  }
  html[data-grid=stack] body :is(.home-grid, .catalog-grid) .story-card .image-link { grid-row: 1 / -1; height: 100%; min-height: 0; overflow: hidden; }
  html[data-grid=stack] body :is(.home-grid, .catalog-grid) .story-card .meta { grid-row: 1; align-self: start; }
  html[data-grid=stack] body :is(.home-grid, .catalog-grid) .story-card h2 { grid-row: 2; align-self: start; font-size: clamp(26px, 2.8vw, 50px); text-wrap: balance; }
  html[data-grid=stack] body :is(.home-grid, .catalog-grid) .story-card:not(:has(.image-link)) { height: min(52svh, 520px); }
}
html[data-grid=stack] body :is(.home-grid, .catalog-grid) .card-deck { display: none; }

/* Сетка, reworked: a Swiss grid that reads in rows. Every story stands under a rule: section, title, then the picture
   in 3:2; subgrid rows keep the titles and the pictures of one row on common lines. Stories without a picture set the
   title large in the place of the picture. Three columns, four on very wide screens, two on tablets, one on phones. */
html[data-grid=swiss] body :is(.home-grid, .catalog-grid) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(44px, 4.4vw, 76px) clamp(20px, 2.2vw, 40px); align-items: stretch; }
html[data-grid=swiss] body :is(.home-grid, .catalog-grid) .story-card {
  display: grid; grid-template-rows: subgrid; grid-row: span 3; gap: 12px; align-content: start;
  padding-top: 12px; border-top: 1px solid var(--text);
}
html[data-grid=swiss] body :is(.home-grid, .catalog-grid) .story-card .meta { grid-row: 1; font-size: 13px; line-height: 18px; letter-spacing: 0; }
html[data-grid=swiss] body :is(.home-grid, .catalog-grid) .story-card h2 { grid-row: 2; align-self: start; font-size: clamp(19px, 1.45vw, 26px); line-height: 1.16; letter-spacing: -.015em; text-wrap: balance; }
html[data-grid=swiss] body :is(.home-grid, .catalog-grid) .story-card .image-link { grid-row: 3; aspect-ratio: 3 / 2; margin: 4px 0 0; overflow: hidden; }
html[data-grid=swiss] body :is(.home-grid, .catalog-grid) .story-card:not(:has(.image-link)) { aspect-ratio: auto; border: 0; border-top: 1px solid var(--text); padding: 12px 0 0; }
html[data-grid=swiss] body :is(.home-grid, .catalog-grid) .story-card:not(:has(.image-link)) h2 { order: 0; grid-row: 2 / 4; font-size: clamp(26px, 2.3vw, 40px); line-height: 1.06; letter-spacing: -.03em; }
html[data-grid=swiss] body .home-grid .home-signals { grid-row: auto; }
@media (min-width: 1800px) { html[data-grid=swiss] body :is(.home-grid, .catalog-grid) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1023px) { html[data-grid=swiss] body :is(.home-grid, .catalog-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { html[data-grid=swiss] body :is(.home-grid, .catalog-grid) { grid-template-columns: minmax(0, 1fr); } }

/* Колонка, scaled to almost the full width («бедновата»): one story per line across the page, a large title on the left
   and a 3:2 picture on the right. */
html[data-grid=column] body :is(.home-grid, .catalog-grid) { grid-template-columns: minmax(0, 1fr); justify-content: stretch; }
html[data-grid=column] body :is(.home-grid, .catalog-grid) .story-card {
  grid-template-columns: minmax(0, 1fr) clamp(240px, 32vw, 640px); gap: 14px clamp(28px, 4vw, 80px);
  padding-block: clamp(26px, 3vw, 48px);
}
html[data-grid=column] body :is(.home-grid, .catalog-grid) .story-card .image-link { aspect-ratio: 3 / 2; overflow: hidden; }
html[data-grid=column] body :is(.home-grid, .catalog-grid) .story-card:hover .image-link { scale: 1; }
html[data-grid=column] body :is(.home-grid, .catalog-grid) .story-card .image-link img { transition: scale 1.2s cubic-bezier(.16, 1, .3, 1); }
html[data-grid=column] body :is(.home-grid, .catalog-grid) .story-card:hover .image-link img { scale: 1.04; }
html[data-grid=column] body :is(.home-grid, .catalog-grid) .story-card h2 { font-size: clamp(28px, 3.3vw, 60px); line-height: 1.03; letter-spacing: -.035em; max-width: 18em; text-wrap: balance; }
html[data-grid=column] body :is(.home-grid, .catalog-grid) .story-card .meta { font-size: 14px; }
@media (max-width: 760px) {
  html[data-grid=column] body :is(.home-grid, .catalog-grid) .story-card { grid-template-columns: minmax(0, 1fr) 112px; gap: 10px 16px; }
  html[data-grid=column] body :is(.home-grid, .catalog-grid) .story-card .image-link { aspect-ratio: 1; }
  html[data-grid=column] body :is(.home-grid, .catalog-grid) .story-card h2 { font-size: 24px; }
}
/* A row-wide signals block after an incomplete row would leave a hole; later stories fill it instead. */
html:is([data-grid=swiss], [data-grid=text]) body .home-grid { grid-auto-flow: row dense; }

/* ---- Text of an article (2026-11-14, Max: «ещё несколько видов шаблона подробной статьи… чтобы больше симуляция журнала
   была, или вся ширина, или центральная симметричная»). «Вид и вёрстка» → «Текст статьи», data-reading on <html>:
   classic — the current page: contents on the left, text in the middle, notes in the right margin;
   spread  — a magazine page: two columns with a rule, first-line indents, sections and pictures across both;
   wide    — the width of the page: large type in two thirds, notes beside it, pictures and pull quotes across all;
   center  — a symmetric book page: one centred measure, centred heads and quotes, pictures breaking out on both sides;
   margins — Swiss margins: section heads hang in a wide left margin, text in the middle, notes in a narrow right one. */
@media (min-width: 1101px) {
  html[data-reading=spread] .launch-layout,
  html[data-reading=wide] .launch-layout,
  html[data-reading=center] .launch-layout,
  html[data-reading=margins] .launch-layout { grid-template-columns: minmax(0, 1fr); }
  html:is([data-reading=spread], [data-reading=wide], [data-reading=center], [data-reading=margins]) .launch-contents { display: none; }
  html:is([data-reading=spread], [data-reading=wide], [data-reading=center], [data-reading=margins]) .launch-body { grid-column: 1; }

  /* Разворот */
  html[data-reading=spread] .launch-body { columns: 2; column-gap: clamp(36px, 4vw, 80px); column-rule: 1px solid var(--line); font-size: calc(var(--body, 19px) * .95); line-height: 1.55; }
  html[data-reading=spread] .launch-body > * { break-inside: avoid-column; }
  html[data-reading=spread] .launch-body > p { break-inside: auto; orphans: 3; widows: 3; }
  html[data-reading=spread] .launch-body > :is(h2, .launch-pull, .launch-figure, .launch-pair, .launch-gallery, .launch-matrix) { column-span: all; }
  html[data-reading=spread] .launch-body > h2 { margin-bottom: clamp(20px, 2vw, 32px); text-align: left; max-width: 18em; }
  html[data-reading=spread] .launch-body > p + p:not(.launch-question, .launch-caption, .launch-subtitle) { margin-top: 0; text-indent: 1.6em; }
  html[data-reading=spread] .launch-body > :is(h2, .launch-pull) + p:not(.launch-question, .launch-subtitle, .launch-caption, .launch-answer)::first-letter,
  html[data-reading=spread] .launch-body > p:first-child:not(.launch-question, .launch-subtitle, .launch-caption)::first-letter { float: left; margin: .07em .1em 0 0; font-family: 'ONY Lavr', Arial, sans-serif; font-size: 3.35em; line-height: .82; }
  html[data-reading=spread] .launch-body :is(.launch-figure, .launch-pair, .launch-gallery) { margin: clamp(28px, 3vw, 48px) 0 !important; }
  html[data-reading=spread] .launch-body .launch-pull { margin: clamp(28px, 3vw, 48px) 0 !important; text-align: center; border-top: 0; padding: 0; }
  html[data-reading=spread] .launch-body .launch-pull p { max-width: 22em; margin-inline: auto; font-size: clamp(30px, 3vw, 46px); }
  html[data-reading=spread] .launch-note { float: none; width: auto; margin: .3em 0 .9em !important; }

  /* Широкая */
  html[data-reading=wide] .launch-body { width: 66.6%; font-size: clamp(21px, 1.45vw, 25px); line-height: 1.52; }
  html[data-reading=wide] .launch-body > h2 { font-size: clamp(36px, 3.6vw, 64px); width: 150%; max-width: 20em; }
  html[data-reading=wide] .launch-body :is(.launch-figure, .launch-pair, .launch-gallery) { margin: clamp(40px, 4.4vw, 72px) -50% clamp(40px, 4.4vw, 72px) 0 !important; }
  html[data-reading=wide] .launch-body .launch-figure.is-portrait { margin-right: 0 !important; }
  html[data-reading=wide] .launch-body .launch-pull { margin: clamp(48px, 5vw, 88px) -50% clamp(48px, 5vw, 88px) 0 !important; }
  html[data-reading=wide] .launch-body .launch-pull p { font-size: clamp(36px, 4.2vw, 76px); line-height: 1.04; max-width: 18em; }
  html[data-reading=wide] .launch-note { width: calc(50% - 32px); margin-right: calc(-50% + 0px) !important; font-size: 14px; line-height: 20px; }

  /* Центр */
  html[data-reading=center] .launch-body { width: min(100%, 700px); margin-inline: auto; }
  html[data-reading=center] .launch-body > :is(h2, .launch-subtitle, .launch-question, .launch-caption) { text-align: center; margin-inline: auto; }
  html[data-reading=center] .launch-body > h2 { max-width: 16em; }
  html[data-reading=center] .launch-body > h2::before { content: ''; display: block; width: 1px; height: clamp(28px, 3vw, 48px); margin: 0 auto clamp(18px, 2vw, 28px); background: var(--text); }
  html[data-reading=center] .launch-body .launch-pull { text-align: center; border-top: 0; padding: 0; }
  html[data-reading=center] .launch-body .launch-pull p { max-width: 16em; margin-inline: auto; }
  html[data-reading=center] .launch-body :is(.launch-figure, .launch-pair, .launch-gallery) { margin: clamp(36px, 4vw, 64px) calc(-1 * min(16vw, 280px)) !important; }
  html[data-reading=center] .launch-body .launch-figure.is-portrait { margin-inline: auto !important; }
  html[data-reading=center] .launch-body :is(.launch-figure, .launch-gallery) figcaption { justify-content: center; text-align: center; }
  html[data-reading=center] .launch-note { float: none; width: auto; margin: .3em auto .9em !important; max-width: 560px; }
  html[data-reading=center] .launch-head :is(.meta, h1) { text-align: center; margin-inline: auto; }
  html[data-reading=center] .launch-head h1 { max-width: 18em; text-wrap: balance; }
  html[data-reading=center] .launch-standfirst { grid-template-columns: minmax(0, 1fr) !important; justify-items: center; text-align: center; }
  html[data-reading=center] .launch-standfirst .launch-lead { max-width: 34em; }
  html[data-reading=center] .launch-byline { justify-content: center; justify-items: center; }

  /* Поля */
  html[data-reading=margins] .launch-body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 2fr); column-gap: clamp(24px, 2.6vw, 48px); align-items: start; }
  html[data-reading=margins] .launch-body > * { grid-column: 2; }
  html[data-reading=margins] .launch-body > h2 { grid-column: 1; margin-top: clamp(48px, 5vw, 80px); padding-top: 14px; border-top: 1px solid var(--text); font-size: clamp(22px, 1.9vw, 30px); line-height: 1.1; }
  html[data-reading=margins] .launch-body > h2 + * { margin-top: clamp(48px, 5vw, 80px); }
  html[data-reading=margins] .launch-body > h2:first-child, html[data-reading=margins] .launch-body > h2:first-child + * { margin-top: 0; }
  html[data-reading=margins] .launch-note { grid-column: 3; float: none; width: auto; margin: 0 !important; padding-top: .35em; }
  html[data-reading=margins] .launch-body :is(.launch-figure, .launch-pair, .launch-gallery, .launch-matrix) { grid-column: 2 / 4; margin: clamp(32px, 3.6vw, 56px) 0 !important; }
  html[data-reading=margins] .launch-body .launch-figure.is-full { grid-column: 1 / -1; }
  html[data-reading=margins] .launch-body .launch-figure.is-portrait, html[data-reading=margins] .launch-body .launch-figure.is-column { grid-column: 2; }
  html[data-reading=margins] .launch-body .launch-pull { grid-column: 1 / 3; }
}
/* On phones and tablets every layout keeps one column; the symmetric one keeps its centred heads. */
@media (max-width: 1100px) {
  html[data-reading=center] .launch-body > :is(h2, .launch-subtitle, .launch-question) { text-align: center; }
  html[data-reading=center] .launch-body .launch-pull { text-align: center; }
}

/* ---------- Phones, checked variant by variant (2026-11-14, Max: «мобильную версию в порядок, все варианты темы») ---------- */
/* Сетка: a card that is a container (home.css sizes titles by card width) cannot be a subgrid, so the rows of the
   catalogue collapsed and every picture lay over the next title. The Swiss cards size their titles themselves. */
html[data-grid=swiss] body :is(.home-grid, .catalog-grid) .story-card { container-type: normal; }
/* Фулскрин: the title is fully there as soon as it is on screen, not only when it reaches the middle. */
@supports (animation-timeline: view()) {
  html[data-grid=full] body :is(.home-grid, .catalog-grid) .story-card :is(h2, .meta) { animation-range: entry 0% entry 100%; }
}
@media (max-width: 760px) {
  /* Рамка: the print takes most of the width, the headline and the link stand under it. */
  html[data-cover=frame] .home-cover { grid-template-columns: minmax(0, 1fr); align-items: start; align-content: start; row-gap: 18px; padding-top: 28px; padding-bottom: 104px; }
  html[data-cover=frame] .cover-media { width: 84%; margin-block: 14px 18px; }
  html[data-cover=frame] body .cover-copy h1 { font-size: clamp(30px, 8.6vw, 40px); align-self: start; }
  html[data-cover=frame] .cover-copy > .text-link { justify-self: start; }
  /* Разворот: the photograph first, the headline under it, no empty paper above. */
  html[data-cover=split] .home-cover { grid-template-rows: 52svh auto; min-height: 0; align-content: start; }
  html[data-cover=split] .cover-media { grid-row: 1; }
  html[data-cover=split] .cover-inner { grid-row: 2; justify-content: start; padding-block: 22px 104px; }
  /* Шрифт: the letters cut from the photograph are darkened a little, so a pale photograph still reads. */
  html[data-cover=type] body .cover-copy h1 { line-height: .96; }
  html[data-cover=type] .home-cover[data-type-ready] .cover-copy h1 a { background-image: linear-gradient(#00000038, #00000038), var(--cover-src); background-size: cover, cover; background-position: center, var(--type-x, 50%) var(--type-y, 50%); }
}


/* ---------- From the editors, 16 November 2026 ---------- */
/* The home page shows the editors' headline and teaser for every story. */
.mosaic .card-teaser { max-width: 34em; font-size: 16px; line-height: 1.38; color: var(--secondary); }
.mosaic-lead .card-teaser { font-size: 18px; }
.mosaic-four .card-teaser, .mosaic-plain .card-teaser { font-size: 14px; line-height: 1.36; }
html body .cover-copy .cover-teaser { max-width: 30em; font-size: clamp(16px, 1.25vw, 20px); line-height: 1.38; }
html[data-cover=photo] .cover-copy .cover-teaser, html[data-cover=zoom] .cover-copy .cover-teaser { grid-column: 1; }
html[data-cover=kino] .cover-copy .cover-teaser { color: #b9bcc0; }
/* covers that place every piece themselves have no room for it */
html:is([data-cover=frame], [data-cover=type], [data-cover=triptych]) .cover-copy .cover-teaser { display: none; }
/* A signal: the lead in the grotesque, whatever the type of the reading text. */
html body .signal-body .lead { font-family: 'ONY One', Arial, sans-serif; }

/* ---------- Комбо (2026-11-16, Max): the default for the home page ---------- */
/* The top is the mosaic's: one large story and two smaller ones on the left, «Сигналы» on the right, held in the window
   while their list moves at its own pace (public/signals.js). When that block ends, the other stories stand as «Воздух»,
   in colour and with the editors' teaser. data-air (scripts/build.mjs) numbers them, as their rows keep their boxes.
   Phones and tablets: the signals come first as one row that scrolls sideways, then the stories in order. */
html[data-grid=combo] .home-grid .mosaic-two.is-portrait .image-link { aspect-ratio: 4 / 3; }
html[data-grid=combo] body .home-grid .home-rest {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(56px, 8vw, 140px);
  align-items: start; padding-top: clamp(24px, 4vw, 64px);
}
html[data-grid=combo] .home-rest .mosaic { display: contents; }
html[data-grid=combo] body .home-rest .story-card { grid-column: 1 / -1; grid-row: auto; border: 0; padding-top: 0; gap: 10px; }
html[data-grid=combo] body .home-rest .story-card[data-air="0"] { grid-column: 2 / span 6; --ar: 4 / 5; }
html[data-grid=combo] body .home-rest .story-card[data-air="1"] { grid-column: 10 / span 3; --ar: 3 / 4; margin-top: clamp(80px, 16vw, 280px); }
html[data-grid=combo] body .home-rest .story-card[data-air="2"] { grid-column: 4 / span 5; --ar: 3 / 2; }
html[data-grid=combo] body .home-rest .story-card[data-air="3"] { grid-column: 9 / span 4; --ar: 1 / 1; margin-top: clamp(40px, 8vw, 140px); }
html[data-grid=combo] body .home-rest .story-card[data-air="4"] { grid-column: 1 / span 4; --ar: 4 / 5; }
html[data-grid=combo] body .home-rest .story-card[data-air="5"] { grid-column: 6 / span 6; --ar: 16 / 10; margin-top: clamp(60px, 12vw, 200px); }
html[data-grid=combo] body .home-rest .story-card .image-link { height: auto; aspect-ratio: var(--ar, 4 / 5); margin-bottom: 6px; }
html[data-grid=combo] body .home-rest .story-card .image-link img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.6s cubic-bezier(.16, 1, .3, 1); }
html[data-grid=combo] body .home-rest .story-card:hover .image-link img { scale: 1.025; }
html[data-grid=combo] body .home-rest .story-card h2 { font-size: clamp(19px, 1.5vw, 25px); line-height: 1.16; letter-spacing: -.012em; max-width: 26em; }
html[data-grid=combo] body .home-rest .story-card .meta { font-size: 12px; line-height: 16px; }
html[data-grid=combo] body .home-rest .story-card:not(:has(.image-link)) h2 { font-size: clamp(26px, 2.4vw, 42px); line-height: 1.06; letter-spacing: -.03em; }
html[data-grid=combo] body .home-rest .card-teaser { display: block; max-width: 30em; font-size: 14px; line-height: 1.4; color: var(--secondary); }
@media (max-width: 1023px) {
  html[data-grid=combo] body .home-top { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 64px); }
  html[data-grid=combo] body .home-top .home-signals { order: -1; position: static; min-width: 0; max-width: 100%; }
  html[data-grid=combo] body .home-grid .signals-list {
    display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
    margin-inline: calc(var(--margin) * -1); padding: 14px var(--margin) 4px; scroll-padding-inline: var(--margin);
  }
  html[data-grid=combo] body .home-grid .signals-list::-webkit-scrollbar { display: none; }
  html[data-grid=combo] body .home-grid .signals-list > li { flex: 0 0 auto; width: clamp(220px, 40vw, 300px); scroll-snap-align: start; }
  html[data-grid=combo] body .home-grid .signals-list .signal { border-top: 0; }
  html[data-grid=combo] body .home-grid .signals-list .signal-thumb { width: 100%; margin-inline: 0; aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
}
@media (max-width: 760px) {
  html[data-grid=combo] body .home-grid .signals-list > li { width: 62vw; }
  html[data-grid=combo] body .home-grid .home-rest { row-gap: 48px; }
  html[data-grid=combo] body .home-rest .story-card[data-air] { grid-column: 1 / -1; margin-top: 0; }
}

/* Light motion (2026-11-16, Max: «по моушену везде чуть так лайтово»; the drawing of the mark stays in the footer and on
   the cards). Shorter distances and times, fades instead of masks and zooms. */
.reveal-pending .reveal-part { transform: translateY(8px); }
.reveal-pending .reveal-media > img { clip-path: none; }
.reveal-entered .reveal-part { animation-duration: .55s; }
.reveal-entered .reveal-media > img { animation: te-light-fade .6s ease backwards; }
@keyframes te-light-fade { from { opacity: 0; } to { opacity: 1; } }
.motion-ready { transform: translateY(8px); transition: opacity .5s ease, transform .55s cubic-bezier(.2, .7, .2, 1); }
html.text-reveal .launch :is(.launch-body > *, .launch-lead > *, .launch-figure, .launch-gallery).is-veiled { translate: 0 6px; }
.navigator[open] { animation-duration: .3s; }
@keyframes navigator-enter { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  html[data-cover-enter] .cover-media img { animation: te-light-fade .7s ease both; }
  html[data-cover-enter] .cover-copy h1 { animation: te-light-fade .6s ease .12s both; }
  html[data-cover-enter] :is(.cover-edition, .cover-copy > .meta, .cover-copy > .lead, .cover-copy > .text-link, .cover-teaser) { animation: te-light-fade .6s ease .2s both; }
  html[data-cover-enter=initial] .is-home :is(.site-header > *, .header-language, .edition-dock) { animation: te-light-fade .6s ease both; }
}
html.text-reveal .launch :is(.launch-body > *, .launch-lead > *, .launch-figure, .launch-gallery).is-shown { transition-duration: .5s, .6s; }

/* ---------- First screens after the client's layouts (TE-RND «site design tune», 2026-11-17) ---------- */
/* hero 1 Огромное фото (full), hero 2 Во весь экран (wide), hero 3 / 4 Половинки (half-left / half), hero 5 Мелкое фото
   (frame), hero 6 Без картинки (type). The selectors carry :root and body so they win over the earlier versions of these
   layouts above. The darkening of the photograph is switched off per story in the desk (look.dim = false →
   data-look-dim="off"). Under the first screen of full, wide and the halves the actions run as one row: listen at the
   left, save in the middle, ask at the right. */
html:root:is([data-article=full], [data-article=tall], [data-article=wide], [data-article=half], [data-article=half-left], [data-article=frame], [data-article=type]) body .launch-top .launch-head > .meta { display: none; }
html:root:is([data-article=full], [data-article=tall], [data-article=wide], [data-article=half], [data-article=half-left], [data-article=frame], [data-article=type]) body .launch { padding-top: 0; }
html:root:is([data-article=half], [data-article=half-left]) body .launch-top { margin-top: 72px; }
html:root:is([data-article=full], [data-article=tall], [data-article=wide], [data-article=half], [data-article=half-left], [data-article=frame], [data-article=type]) body .launch-top {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 0; margin-top: 0; padding: 0; background: none; text-align: left; justify-items: stretch;
}
html:root:is([data-article=full], [data-article=tall], [data-article=wide], [data-article=half], [data-article=half-left], [data-article=frame], [data-article=type]) body .launch-top .launch-head { display: contents; }
html:root:is([data-article=full], [data-article=tall], [data-article=wide], [data-article=half], [data-article=half-left], [data-article=frame], [data-article=type]) body .launch-top .launch-cover-wrap { max-width: none; width: auto; padding: 0; margin: 0; overflow: visible; height: auto; order: 0; }
html:root:is([data-article=full], [data-article=tall], [data-article=wide], [data-article=half], [data-article=half-left], [data-article=frame], [data-article=type]) body .launch-top .launch-cover { position: relative; margin: 0; outline: 0; }
html:root:is([data-article=full], [data-article=tall], [data-article=wide], [data-article=half], [data-article=half-left], [data-article=frame], [data-article=type]) body .launch-top .launch-cover :is(img, video) { border-radius: 0; animation: none; clip-path: none; scale: none; }
html:root:is([data-article=full], [data-article=tall], [data-article=wide], [data-article=half], [data-article=half-left]) body .launch-top .launch-cover::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(#0c0d0e8c, #0c0d0e33 34%, #0c0d0e1f 60%, #0c0d0e73);
}
html:root[data-look-dim=off] body .launch-top .launch-cover::after, html:root[data-look-dim=off] body .launch-top .launch-cover::before { display: none; }
/* the row of actions */
html:root:is([data-article=full], [data-article=tall], [data-article=wide], [data-article=half], [data-article=half-left]) body .launch-top .launch-actions {
  grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap;
  padding: clamp(24px, 3vw, 40px) var(--edge) 0;
}
html:root body .launch-top .launch-actions :is(.launch-save, .launch-ask, .listen-launch) { margin: 0; min-height: 44px; }

/* hero 1 · Огромное фото: the photograph in its own proportion across the whole width (a tall one is simply long); the
   headline rides down with the scroll over it and stops at its lower edge; the lead and the credits under it. */
html:root:is([data-article=full], [data-article=tall]) body .launch-top { margin-top: -112px; }
html:root:is([data-article=full], [data-article=tall]) body .launch-top .launch-cover-wrap { grid-row: 1; grid-column: 1; }
html:root:is([data-article=full], [data-article=tall]) body .launch-top .launch-cover :is(img, video) { width: 100%; height: auto; min-height: 0; max-height: none; aspect-ratio: auto; }
html:root:is([data-article=full], [data-article=tall]) body .launch-top .launch-cover figcaption { display: none; }
html:root:is([data-article=full], [data-article=tall]) body .launch-top .launch-head > h1 {
  grid-row: 1; grid-column: 1; align-self: start; position: sticky; top: 0; z-index: 2; margin: 0; color: #fff;
  padding: clamp(112px, 10vw, 150px) max(var(--edge), calc(100% - var(--edge) - 1000px)) clamp(28px, 3vw, 44px) var(--edge); max-width: none;
}
html:root:is([data-article=full], [data-article=tall], [data-article=half], [data-article=half-left]) body .launch-top .launch-standfirst {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 40px; padding: clamp(24px, 2.6vw, 36px) 0 0; max-width: none;
}
html:root:is([data-article=full], [data-article=tall]) body .launch-top .launch-standfirst { padding-inline: var(--edge); }
html:root:is([data-article=full], [data-article=tall], [data-article=half], [data-article=half-left]) body .launch-top .launch-lead { grid-column: 1; grid-row: 1; max-width: 760px; }
html:root:is([data-article=full], [data-article=tall], [data-article=half], [data-article=half-left]) body .launch-top .launch-byline { grid-column: 2; grid-row: 1; justify-self: end; min-width: min(280px, 100%); padding: 0; }
html:root:is([data-article=full], [data-article=tall]) body .launch-top .launch-actions { padding-inline: 0; }

/* hero 2 · Во весь экран: the photograph at least as tall as the window, the headline at the top, the lead and the credits
   at the bottom of the photograph, the actions under it. */
html:root[data-article=wide] body .launch-top { margin-top: -112px; }
html:root[data-article=wide] body .launch-top .launch-cover-wrap { grid-row: 1 / 3; grid-column: 1; }
html:root[data-article=wide] body .launch-top .launch-cover :is(img, video) { width: 100%; height: 100svh; min-height: 560px; aspect-ratio: auto; object-fit: cover; }
html:root[data-article=wide] body .launch-top .launch-cover figcaption { display: none; }
html:root[data-article=wide] body .launch-top .launch-head > h1 { grid-row: 1; grid-column: 1; align-self: start; z-index: 2; margin: 0; color: #fff; padding: clamp(112px, 10vw, 150px) max(var(--edge), calc(100% - var(--edge) - 1000px)) 0 var(--edge); max-width: none; }
html:root[data-article=wide] body .launch-top .launch-standfirst { display: contents; }
html:root[data-article=wide] body .launch-top .launch-lead { grid-row: 2; grid-column: 1; align-self: end; z-index: 2; color: #fff; max-width: min(720px, 60%); margin: 0 0 clamp(64px, 7vw, 96px) var(--edge); }
html:root[data-article=wide] body .launch-top .launch-byline { grid-row: 2; grid-column: 1; align-self: end; z-index: 2; color: #ffffffcc; grid-auto-flow: column; justify-content: start; gap: 6px 28px; margin: 0 0 clamp(24px, 3vw, 36px) var(--edge); padding: 0; }
html:root[data-article=wide] body .launch-top .launch-byline > span:first-child { color: #fff; }
html:root[data-article=wide] body .launch-top .launch-actions { grid-row: 3; }
html:root:is([data-article=full], [data-article=tall], [data-article=wide]) body:has(.launch-top) .site-chrome:not(.is-scrolled) { --text: #fff; --secondary: #fff; color: #fff; background: transparent; }
html:root:is([data-article=full], [data-article=tall], [data-article=wide]) body:has(.launch-top) .site-chrome:not(.is-scrolled)::before,
html:root:is([data-article=full], [data-article=tall], [data-article=wide]) body:has(.launch-top) .site-chrome:not(.is-scrolled)::after { display: none; }

/* hero 3 / 4 · Половинки: the photograph fills one half of the first screen to the edges, the headline, the lead and the
   credits stand in the other; hero 3 (photograph at the left) is centred, hero 4 (at the right) more «academic». */
html:root:is([data-article=half], [data-article=half-left]) body .launch-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; min-height: calc(100svh - 72px); }
html:root:is([data-article=half], [data-article=half-left]) body .launch-top .launch-cover-wrap { grid-row: 1 / 4; position: relative; min-height: calc(100svh - 160px); }
html:root[data-article=half] body .launch-top .launch-cover-wrap { grid-column: 2; }
html:root[data-article=half-left] body .launch-top .launch-cover-wrap { grid-column: 1; }
html:root:is([data-article=half], [data-article=half-left]) body .launch-top .launch-cover { position: absolute; inset: 0; }
html:root:is([data-article=half], [data-article=half-left]) body .launch-top .launch-cover :is(img, video) { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
html:root:is([data-article=half], [data-article=half-left]) body .launch-top .launch-cover::after { background: linear-gradient(transparent 70%, #0c0d0e40); }
html:root:is([data-article=half], [data-article=half-left]) body .launch-top .launch-cover figcaption { position: absolute; left: 16px; right: 16px; bottom: 12px; margin: 0; z-index: 2; color: #ffffffcc; }
html:root:is([data-article=half], [data-article=half-left]) body .launch-top .launch-standfirst { display: contents; }
html:root:is([data-article=half], [data-article=half-left]) body .launch-top :is(.launch-head > h1, .launch-lead, .launch-byline) { max-width: none; justify-self: stretch; }
html:root[data-article=half] body .launch-top :is(.launch-head > h1, .launch-lead, .launch-byline) { grid-column: 1; padding-right: clamp(24px, 4vw, 72px); padding-left: var(--edge-vw); }
html:root[data-article=half-left] body .launch-top :is(.launch-head > h1, .launch-lead, .launch-byline) { grid-column: 2; padding-inline: clamp(24px, 4vw, 72px); text-align: center; justify-items: center; }
/* the lead keeps its distance from the title (2026-11-17, the editors: «лид прилипает к заголовку») */
html:root:is([data-article=half], [data-article=half-left]) body .launch-top .launch-head > h1 { padding-top: clamp(48px, 9vh, 120px); }
html:root:is([data-article=half], [data-article=half-left]) body .launch-top .launch-lead { padding-top: clamp(28px, 4.5vh, 64px); }
html:root:is([data-article=half], [data-article=half-left]) body .launch-top .launch-head > h1 { grid-row: 1; margin: 0; padding-top: clamp(48px, 9vh, 120px); font-size: clamp(30px, 3.1vw, 54px); }
html:root:is([data-article=half], [data-article=half-left]) body .launch-top .launch-lead { grid-row: 2; padding-top: clamp(28px, 4.5vh, 64px); font-size: clamp(16px, 1.2vw, 19px); line-height: 1.45; }
html:root:is([data-article=half], [data-article=half-left]) body .launch-top .launch-byline { grid-row: 3; align-self: end; padding-bottom: clamp(20px, 3vw, 36px); }
html:root:is([data-article=half], [data-article=half-left]) body .launch-top .launch-actions { grid-row: 4; padding-inline: var(--edge-vw); }

/* hero 5 · Мелкое фото and hero 6 · Без картинки: everything on one axis in the height of the window (the page colour from
   the desk paints it); the photograph is 300 px high, 16:9 when it is horizontal. */
html:root:is([data-article=frame], [data-article=type]) body .launch-top {
  display: flex; flex-direction: column; align-items: center; text-align: center; min-height: 100svh; padding: calc(96px + clamp(24px, 6vh, 96px)) var(--edge) clamp(20px, 3vw, 32px);
}
html:root:is([data-article=frame], [data-article=type]) body .launch-top .launch-standfirst { display: contents; }
html:root:is([data-article=frame], [data-article=type]) body .launch-top .launch-head > h1 { order: 1; margin: 0; max-width: 18em; padding: 0; font-size: clamp(30px, 3.3vw, 56px); letter-spacing: -.035em; line-height: 1.06; }
html:root:is([data-article=frame], [data-article=type]) body .launch-top .launch-lead { order: 2; max-width: 560px; padding: clamp(18px, 2vw, 28px) 0 0; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.45; text-align: center; }
html:root[data-article=frame] body .launch-top .launch-cover-wrap { order: 3; margin-top: clamp(28px, 4vh, 48px); }
html:root[data-article=frame] body .launch-top .launch-cover :is(img, video) { height: 300px; width: auto; max-width: min(534px, 100%); aspect-ratio: auto; object-fit: cover; margin-inline: auto; }
html:root[data-article=frame] body .launch-top .launch-cover figcaption { display: none; }
html:root[data-article=type] body .launch-top .launch-cover-wrap { display: none; }
html:root:is([data-article=frame], [data-article=type]) body .launch-top .launch-byline { order: 4; justify-items: center; margin-top: clamp(28px, 4vh, 48px); padding: 0; }
html:root:is([data-article=frame], [data-article=type]) body .launch-top .launch-actions {
  order: 5; margin-top: auto; padding-top: clamp(32px, 6vh, 72px); display: flex; justify-content: center; gap: 12px clamp(24px, 4vw, 64px); flex-wrap: wrap; grid-row: auto; grid-column: auto;
}
html:root[data-article=type] body .launch-top { justify-content: center; }
html:root[data-article=type] body .launch-top .launch-head > h1 { margin-top: auto; }
html:root[data-article=type] body .launch-top .launch-byline { margin-bottom: 0; }

/* Phones: the photograph on top, then the headline, lead and credits on one axis, the actions as a short list. */
@media (max-width: 760px) {
  html:root:is([data-article=full], [data-article=tall], [data-article=wide], [data-article=half], [data-article=half-left]) body .launch-top {
    display: flex; flex-direction: column; min-height: 0; margin-top: -88px; text-align: center;
  }
  html:root:is([data-article=full], [data-article=tall], [data-article=wide], [data-article=half], [data-article=half-left]) body .launch-top .launch-cover-wrap { order: 0; min-height: 0; position: static; }
  html:root:is([data-article=full], [data-article=tall], [data-article=wide], [data-article=half], [data-article=half-left]) body .launch-top .launch-cover { position: relative; inset: auto; }
  html:root:is([data-article=full], [data-article=tall], [data-article=wide], [data-article=half], [data-article=half-left]) body .launch-top .launch-cover :is(img, video) { height: auto; min-height: 0; aspect-ratio: 390 / 430; }
  html:root:is([data-article=half], [data-article=half-left]) body .launch-top .launch-cover::after { display: none; }
  html:root:is([data-article=full], [data-article=tall], [data-article=wide], [data-article=half], [data-article=half-left]) body .launch-top .launch-cover figcaption { display: none; }
  html:root:is([data-article=full], [data-article=tall], [data-article=wide], [data-article=half], [data-article=half-left]) body .launch-top .launch-standfirst { display: contents; }
  html:root:is([data-article=full], [data-article=tall], [data-article=wide], [data-article=half], [data-article=half-left]) body .launch-top :is(.launch-head > h1, .launch-lead, .launch-byline) {
    order: 1; position: static; align-self: center; text-align: center; justify-items: center; color: var(--text); max-width: none; margin: 0; padding: 0 var(--margin);
  }
  html:root:is([data-article=full], [data-article=tall], [data-article=wide], [data-article=half], [data-article=half-left]) body .launch-top .launch-head > h1 { padding-top: 22px; font-size: clamp(24px, 6.6vw, 30px); }
  html:root:is([data-article=full], [data-article=tall], [data-article=wide], [data-article=half], [data-article=half-left]) body .launch-top .launch-standfirst > .launch-lead { order: 2; padding-top: 18px; font-size: 15px; line-height: 1.45; }
  html:root:is([data-article=full], [data-article=tall], [data-article=wide], [data-article=half], [data-article=half-left]) body .launch-top .launch-standfirst > .launch-byline { order: 3; padding-top: 24px; grid-auto-flow: row; justify-content: center; color: var(--secondary); }
  html:root:is([data-article=full], [data-article=tall], [data-article=wide], [data-article=half], [data-article=half-left]) body .launch-top .launch-byline > span:first-child { color: var(--text); }
  html:root:is([data-article=full], [data-article=tall], [data-article=wide], [data-article=half], [data-article=half-left], [data-article=frame], [data-article=type]) body .launch-top .launch-actions {
    order: 4; display: grid; grid-auto-flow: row; justify-items: start; justify-content: stretch; gap: 0; padding: 28px var(--margin) 0; margin-top: 0; text-align: left; align-self: stretch;
  }
  html:root:is([data-article=frame], [data-article=type]) body .launch-top { min-height: 100svh; padding: 132px var(--margin) 24px; }
  html:root[data-article=frame] body .launch-top .launch-cover :is(img, video) { height: 220px; }
  html:root:is([data-article=full], [data-article=tall], [data-article=wide]) body:has(.launch-top) .site-chrome:not(.is-scrolled) { --text: #fff; --secondary: #fff; color: #fff; }
}
@media (min-width: 761px) {
  html:root:is([data-article=full], [data-article=tall], [data-article=wide]) body .launch-top .launch-head > h1 { font-size: clamp(30px, 3.4vw, 60px); line-height: 1.08; letter-spacing: -.035em; }
}
/* Scroll fades always go to dark (2026-11-17, Max: «фейд при скролле всегда в тёмную на всех элементах со скроллом и
   блюром»): the photograph of the first screen darkens as it leaves the window, whatever the theme. */
@supports (animation-timeline: view()) {
  html:root:is([data-article=full], [data-article=tall], [data-article=wide], [data-article=half], [data-article=half-left]) body .launch-top .launch-cover :is(img, video) {
    animation: te-hero-dark linear both; animation-timeline: view(); animation-range: exit-crossing 0% exit-crossing 100%;
  }
}
@keyframes te-hero-dark { from { filter: brightness(1); } to { filter: brightness(.2); } }
@media (prefers-reduced-motion: reduce) { html:root body .launch-top .launch-cover :is(img, video) { animation: none; } }
html:root:is([data-article=full], [data-article=tall]) body .launch-top .launch-head > h1 { margin-bottom: var(--hero-tail, 0px); }
@media (max-width: 760px) { html:root:is([data-article=full], [data-article=tall]) body .launch-top .launch-head > h1 { margin-bottom: 0; } }

/* The text of the first screens lines up with the wordmark of the masthead (2026-11-17, Max: «кривовата обложка слева
   текста и лого»). --edge is relative to the box it is used in, so inside a half it came out at the margin while the
   masthead, centred on screens wider than the page, stands further in; --edge-vw takes the window instead. */
.launch-top { --edge-vw: max(var(--margin), calc((100vw - var(--page, 1440px)) / 2 + var(--margin))); }
html:root:is([data-article=full], [data-article=tall]) body .launch-top .launch-head > h1 { padding-left: var(--edge-vw); }
html:root:is([data-article=full], [data-article=tall]) body .launch-top .launch-standfirst { padding-inline: var(--edge-vw); }
html:root[data-article=wide] body .launch-top .launch-head > h1 { padding-left: var(--edge-vw); }
html:root[data-article=wide] body .launch-top .launch-standfirst > :is(.launch-lead, .launch-byline) { margin-left: var(--edge-vw); }
html:root[data-article=wide] body .launch-top .launch-actions { padding-inline: var(--edge-vw); }
@media (max-width: 760px) { html:root:is([data-article=full], [data-article=tall], [data-article=wide], [data-article=half], [data-article=half-left]) body .launch-top :is(.launch-head > h1, .launch-lead, .launch-byline) { padding-inline: var(--margin); margin-left: 0; } }

/* «Двойная высота» (tall): on entry the picture is two windows high, cut to fit; the rest is «Огромное фото». */
html:root[data-article=tall] body .launch-top .launch-cover :is(img, video) { height: 200svh; min-height: 0; aspect-ratio: auto; object-fit: cover; }
@media (max-width: 760px) { html:root[data-article=tall] body .launch-top .launch-cover :is(img, video) { height: 130svh; aspect-ratio: auto; } }

/* «Анимация: выключена» in the desk's «Дизайн» (2026-11-17, Max): nothing moves on its own; films keep playing. */
html[data-site-motion=off] *, html[data-site-motion=off] *::before, html[data-site-motion=off] *::after { animation: none !important; transition-duration: 0s !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
html[data-site-motion=off]::view-transition-group(*), html[data-site-motion=off]::view-transition-old(*), html[data-site-motion=off]::view-transition-new(*) { animation: none !important; }
/* The theme window holds only themes and type since 2026-11-17: nothing to scroll, and the hints over its buttons must
   not be cut by the window's edge (Max: «обрезается окно»). */
html body .setup-panel { overflow: visible; max-height: none; }
