/* fonts.css */
/* Шрифты локально: Golos Text, PT Serif (Google Fonts, OFL). */
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/GolosText-normal-400-cyrillic-ext.10aa879203.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/GolosText-normal-400-cyrillic.2f175b8fc4.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/GolosText-normal-400-latin.f8d7109111.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/GolosText-normal-800-cyrillic-ext.10aa879203.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/GolosText-normal-800-cyrillic.2f175b8fc4.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/GolosText-normal-800-latin.f8d7109111.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'PT Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('/assets/fonts/PTSerif-italic-400-cyrillic-ext.574d529d6a.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'PT Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('/assets/fonts/PTSerif-italic-400-cyrillic.6c04cd23c5.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'PT Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('/assets/fonts/PTSerif-italic-400-latin.219a8e6238.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'PT Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/PTSerif-normal-400-cyrillic-ext.3a7b3ec02a.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'PT Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/PTSerif-normal-400-cyrillic.a60d74d7dc.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'PT Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/PTSerif-normal-400-latin.202b8aa610.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* d/style.css */
/* Вариант D — «Сетка»: видимая конструкционная сетка в духе Вима Крауэля, киноварная плоскость, вкладки-ячейки. */
:root {
  --white: #FFFFFF; --ink: #121212; --ink-soft: #5E5E62; --grid: #CBD7EE; --rule: #121212;
  --plane: #D93A21; --plane-ink: #FFF6F2; --tint: #F2F5FB;
  --sans: 'Golos Text', system-ui, sans-serif; --serif: 'PT Serif', Georgia, serif;
  --cols: 12; --pad: clamp(16px, 2.5vw, 36px); --cell: calc((100vw - 2 * var(--pad)) / var(--cols));
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { scrollbar-color: var(--ink) var(--white); scrollbar-width: thin; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.55 var(--sans); font-variant-numeric: tabular-nums; }
::selection { background: var(--plane); color: var(--white); }
:focus-visible { outline: 2px solid var(--plane); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 800; }
p { margin: 0 0 0.9em; }
.label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }

/* Конструкционная сетка — видимая, выключаемая */
.frame { position: relative; padding: 0 var(--pad); }
.frame::before {
  content: ''; position: fixed; inset: 0 var(--pad); pointer-events: none; z-index: 0;
  background-image:
    repeating-linear-gradient(to right, var(--grid) 0 1px, transparent 1px calc(100% / var(--cols))),
    repeating-linear-gradient(to bottom, transparent 0 calc(2rem - 1px), rgba(203,215,238,.45) calc(2rem - 1px) 2rem);
  border-right: 1px solid var(--grid); transition: opacity .4s var(--ease);
}
body[data-grid="off"] .frame::before { opacity: 0; }
.frame > * { position: relative; z-index: 1; }
.g12 { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4rem; }
.logo { font-weight: 800; font-size: 1.125rem; letter-spacing: -0.02em; text-transform: uppercase; text-decoration: none; display: flex; align-items: center; gap: 0.5rem; }
.logo i { width: 1rem; height: 1rem; background: var(--plane); }
.topbar nav { display: flex; gap: 1.5rem; font-size: 14px; align-items: center; }
.topbar nav a { text-decoration: none; }
.grid-toggle { font: 400 12px var(--sans); text-transform: uppercase; letter-spacing: 0.08em; border: 1px solid var(--ink); background: var(--white); padding: 0.4rem 0.6rem; cursor: pointer; }
.grid-toggle[aria-pressed="true"] { background: var(--ink); color: var(--white); }

/* Киноварная плоскость заголовка */
.plane { background: var(--plane); color: var(--plane-ink); margin: 0 calc(-1 * var(--pad)); padding: 2rem var(--pad) 0; }
.plane .label { color: rgba(255,246,242,.78); }
.plane__grid { align-items: end; }
.plane__cover { grid-column: 1 / span 3; padding-right: 1.5rem; padding-bottom: 2rem; }
.plane__cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 18px 30px -18px rgba(0,0,0,.6); }
.plane__title { grid-column: 4 / span 9; padding-bottom: 2rem; }
.plane h1 { font-size: clamp(3.5rem, 9.5vw, 6rem); line-height: 0.86; letter-spacing: -0.04em; text-transform: uppercase; margin: 0.6rem 0 0.9rem; }
.plane__sub { font-size: 1.375rem; line-height: 1.3; margin: 0; max-width: 34rem; }
.plane__orig { margin: 0.35rem 0 0; opacity: 0.8; }
.facts { grid-column: 1 / -1; border-top: 1px solid rgba(255,246,242,.45); }
.facts > div { padding: 0.8rem 1rem 1rem 0; border-right: 1px solid rgba(255,246,242,.35); font-size: 14px; line-height: 1.35; }
.facts > div:last-child { border-right: 0; }
.facts b { display: block; font-size: 1rem; }
.facts .label { display: block; margin-bottom: 0.25rem; }
.f-3 { grid-column: span 3; } .f-2 { grid-column: span 2; } .f-4 { grid-column: span 4; }

/* Вкладки-ячейки */
.tabs { border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 4; background: var(--white); }
.tabs button {
  grid-column: span 2; font: inherit; text-align: left; border: 0; border-right: 1px solid var(--grid); background: var(--white);
  padding: 0.9rem 0.9rem 1rem; cursor: pointer; color: var(--ink); min-height: 5.25rem; display: flex; flex-direction: column; justify-content: space-between;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.tabs button:first-child { grid-column: span 3; }
.tabs button:last-child { grid-column: span 3; border-right: 0; }
.tabs b { font-size: 1.25rem; text-transform: uppercase; letter-spacing: -0.015em; }
.tabs small { font-size: 12.5px; color: var(--ink-soft); }
.tabs button:hover { background: var(--tint); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.tabs button[aria-selected="true"] small { color: #BDBDC2; }

.panel { padding: 2.5rem 0 1rem; }
.panel[hidden] { display: none; }
.panel.in { animation: build .55s var(--ease) both; }
@keyframes build { from { opacity: 0; clip-path: inset(0 0 12% 0); } to { opacity: 1; clip-path: inset(0); } }
.span-7 { grid-column: 1 / span 7; padding-right: 2rem; }
.span-5 { grid-column: 8 / span 5; }
.full { grid-column: 1 / -1; }
.h { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800; margin: 0 0 1rem; padding-top: 0.6rem; border-top: 2px solid var(--ink); }

.idea { font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.35; letter-spacing: -0.01em; }
.idea strong { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--plane) 22%, transparent) 62%); }
.len { display: inline-flex; margin-bottom: 1.25rem; }
.len button { font: 400 12px var(--sans); text-transform: uppercase; letter-spacing: 0.08em; border: 1px solid var(--ink); background: var(--white); padding: 0.45rem 0.7rem; cursor: pointer; }
.len button + button { border-left: 0; }
.len button[aria-pressed="true"] { background: var(--plane); border-color: var(--plane); color: var(--white); }
.aside { font-size: 15px; }
.aside p { margin-bottom: 1rem; }
.trustcell { border: 1px solid var(--ink); padding: 0.9rem 1rem; font-size: 14px; }
.trustcell b { display: block; }

.cells { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.cell { padding: 1rem 1.25rem 1.25rem 0; border-bottom: 1px solid var(--grid); }
.cell-6 { grid-column: span 6; } .cell-4 { grid-column: span 4; } .cell-3 { grid-column: span 3; }
.cells .cell-6:nth-child(odd), .cells .cell-4:not(:nth-child(3n)), .cells .cell-3:not(:nth-child(4n)) { border-right: 1px solid var(--grid); }
.cells .cell-6:nth-child(even), .cells .cell-4:not(:nth-child(3n+1)), .cells .cell-3:not(:nth-child(4n+1)) { padding-left: 1.25rem; }
.num { display: block; font-size: 3rem; font-weight: 800; line-height: 0.9; color: var(--plane); letter-spacing: -0.04em; margin-bottom: 0.6rem; }
.cell b { display: block; font-size: 1.0625rem; line-height: 1.3; margin-bottom: 0.35rem; }
.cell small { display: block; color: var(--ink-soft); font-size: 12.5px; margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.06em; }
.cell p { margin: 0; font-size: 15px; }

.prose p { font-size: 1.0625rem; line-height: 1.65; max-width: 66ch; }
.timeline { border-top: 2px solid var(--ink); }
.timeline div { display: grid; grid-template-columns: 5.5rem 1fr; padding: 0.7rem 0; border-bottom: 1px solid var(--grid); font-size: 14.5px; }
.timeline b { font-size: 1.25rem; letter-spacing: -0.02em; }

/* Главы: ряд ячеек-селекторов */
.chips { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); border: 1px solid var(--ink); margin-bottom: 1.75rem; }
.chips button { font: inherit; border: 0; border-right: 1px solid var(--grid); background: var(--white); padding: 0.6rem 0.5rem; text-align: left; cursor: pointer; min-height: 4.5rem; display: flex; flex-direction: column; justify-content: space-between; }
.chips button:last-child { border-right: 0; }
.chips b { font-size: 1.5rem; letter-spacing: -0.03em; line-height: 1; }
.chips span { font-size: 11px; line-height: 1.2; color: var(--ink-soft); }
.chips button[aria-pressed="true"] { background: var(--plane); color: var(--white); }
.chips button[aria-pressed="true"] span { color: var(--plane-ink); }
.chapter-t { font-size: 2rem; line-height: 1.05; letter-spacing: -0.03em; text-transform: uppercase; margin-bottom: 0.4rem; }
.chapter-o { color: var(--ink-soft); margin-bottom: 1rem; }
.chapter-g { font-size: 1.1875rem; line-height: 1.45; margin-bottom: 1.25rem; }
.tlist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.tlist li { padding: 0.75rem 0; border-bottom: 1px solid var(--grid); font-size: 15.5px; }
.tlist b { display: block; }
blockquote, .quote { margin: 0; font: italic 400 1.3125rem/1.45 var(--serif); }
blockquote p { margin: 0; }
.keyq { border-top: 2px solid var(--plane); padding-top: 1rem; }
.keyq .label { display: block; margin-top: 0.75rem; }
.quotes .cell p.quote { font-size: 1.125rem; margin-bottom: 0.5rem; }

.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 0.7rem 1rem 0.7rem 0; border-bottom: 1px solid var(--grid); }
.table th { width: 38%; font-weight: 800; }
.table thead th { font-weight: 400; border-bottom: 2px solid var(--ink); }

.site-footer { display: grid; grid-template-columns: 64px minmax(0, 42rem); gap: 1.25rem; padding: 1.5rem 0 3rem; margin-top: 4rem; border-top: 2px solid var(--ink); font-size: 14px; }
.site-footer__portrait { width: 64px; height: 64px; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.site-footer p { margin: 0 0 0.4rem; }
.site-footer__links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ---------- Каталог ---------- */
.cplane { background: var(--plane); color: var(--plane-ink); margin: 0 calc(-1 * var(--pad)); padding: 2rem var(--pad) 0; }
.cplane h1 { grid-column: 1 / span 9; font-size: clamp(3.5rem, 11vw, 6rem); line-height: 0.85; letter-spacing: -0.04em; text-transform: uppercase; padding-bottom: 1.5rem; }
.cplane p { grid-column: 10 / span 3; align-self: end; font-size: 14.5px; padding-bottom: 1.75rem; }
.ctabs { border-top: 1px solid rgba(255,246,242,.45); }
.ctabs button { grid-column: span 2; font: inherit; color: var(--plane-ink); background: none; border: 0; border-right: 1px solid rgba(255,246,242,.35); text-align: left; padding: 0.75rem 1rem 1rem 0; cursor: pointer; }
.ctabs button b { display: block; font-size: 2.25rem; letter-spacing: -0.04em; line-height: 1; }
.ctabs button span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.ctabs button[aria-pressed="true"] { background: var(--white); color: var(--ink); padding-left: 1rem; }
.ctabs .spacer { grid-column: span 2; }
.items { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-left: 1px solid var(--grid); margin-top: 2rem; }
.item { text-decoration: none; padding: 1rem; border-right: 1px solid var(--grid); border-bottom: 1px solid var(--grid); display: flex; flex-direction: column; gap: 0.6rem; transition: background .25s; }
.item:hover { background: var(--tint); }
.item .cover { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.item b { line-height: 1.2; }
.item small { color: var(--ink-soft); font-size: 12.5px; }
.fish { font-size: 10.5px; border: 1px solid var(--grid); padding: 0 0.3rem; margin-left: 0.3rem; color: var(--ink-soft); font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em; }
.cover--type { display: grid; grid-template-rows: auto 1fr auto; padding: 0.7rem; background: var(--white); border: 1px solid var(--ink);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 1rem 1rem; }
.cover--talk { background-color: var(--plane); color: var(--white); border-color: var(--plane); background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px); }
.cover--essay { background-color: var(--tint); }
.cover__kind { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; background: inherit; justify-self: start; }
.cover__title { align-self: end; font-weight: 800; text-transform: uppercase; font-size: 1.125rem; line-height: 0.95; letter-spacing: -0.03em; background: var(--white); padding: 0.2rem 0.25rem 0.1rem 0; }
.cover--talk .cover__title { background: var(--plane); }
.cover--essay .cover__title { background: var(--tint); }
.cover__author { font-size: 11px; margin-top: 0.4rem; }
.cover__year { display: none; }

@media (max-width: 1000px) { .items { grid-template-columns: repeat(4, minmax(0, 1fr)); } .chips { grid-template-columns: repeat(5, minmax(0, 1fr)); } .chips button:nth-child(5) { border-right: 0; } .chips button:nth-child(-n+5) { border-bottom: 1px solid var(--grid); } }
@media (max-width: 760px) {
  :root { --cols: 4; }
  .plane__cover { grid-column: 1 / span 2; padding-bottom: 1rem; }
  .plane__title { grid-column: 1 / -1; padding-bottom: 1.25rem; }
  .plane h1 { font-size: 3.5rem; }
  .plane__sub { font-size: 1.125rem; }
  .f-3, .f-2, .f-4 { grid-column: span 2; border-bottom: 1px solid rgba(255,246,242,.35); }
  .facts > div:nth-child(2n) { border-right: 0; padding-left: 0.75rem; }
  .tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .tabs button { min-width: 8.5rem; min-height: 4.25rem; flex: 0 0 auto; }
  .span-7, .span-5, .full { grid-column: 1 / -1; padding-right: 0; }
  .span-5 { margin-top: 1.5rem; }
  .cell-6, .cell-4, .cell-3 { grid-column: 1 / -1; border-right: 0 !important; padding-left: 0 !important; }
  .chips { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .chips b { font-size: 1.125rem; }
  .chips span { display: none; }
  .chips button { min-height: 3rem; }
  .table th { width: auto; display: block; padding-bottom: 0; border: 0; }
  .table td { display: block; }
  .cplane h1, .cplane p { grid-column: 1 / -1; }
  .cplane p { padding-bottom: 1rem; }
  .ctabs button { grid-column: span 2; border-bottom: 1px solid rgba(255,246,242,.35); }
  .ctabs .spacer { display: none; }
  .items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar nav a:not(:first-child) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .panel.in { animation: none; } .frame::before { transition: none; } }

/* Кадр для слайда или иллюстрации вместо обложки */
.cover--frame { display: grid; grid-template-rows: auto auto 1fr; border: 1px solid var(--ink); background: var(--white); }
.cover--frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 1px solid var(--ink); }
.cover--frame .cover__kind { padding: 0.6rem 0.7rem 0; }
.cover--frame .cover__title { padding: 0 0.7rem 0.7rem; align-self: end; background: none; }
.ctabs button { padding-left: 1rem; }

/* Сетка скрыта по решению владельца 16.10.2026: остаётся только как невидимый каркас вёрстки */
.cover--type, .cover--talk { background-image: none; }

/* ---------- D2: шапка на белом ---------- */
.head2 { padding: 2.25rem 0 0; }
.head2__cover { grid-column: 1 / span 3; padding-right: 1.75rem; }
.head2__cover .cover { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 16px 28px -18px rgba(0,0,0,.45); }
.head2__title { grid-column: 4 / span 8; }
.head2 h1 { font-size: clamp(3rem, 7vw, 5.5rem); line-height: 0.88; letter-spacing: -0.04em; text-transform: uppercase; margin: 0.5rem 0 0.75rem; }
.head2__sub { font-size: 1.375rem; line-height: 1.3; margin: 0; }
.head2__orig { color: var(--ink-soft); margin: 0.25rem 0 1.25rem; }
.head2__annot { max-width: 60ch; font-size: 15.5px; line-height: 1.6; margin-bottom: 0.3rem; }
.head2__facts { grid-column: 1 / -1; margin-top: 2rem; border-top: 2px solid var(--ink); }
.head2__facts > div { padding: 0.8rem 1rem 1.1rem 0; border-right: 1px solid var(--grid); font-size: 14px; line-height: 1.4; }
.head2__facts > div + div { padding-left: 1rem; }
.head2__facts > div:last-child { border-right: 0; }
.head2__facts b { display: block; font-size: 1.0625rem; }
.head2__facts .label { display: block; margin-bottom: 0.25rem; }
.trustline { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 1rem 0 0; }
.trustline span { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.3rem 0.5rem; border: 1px solid var(--grid); color: var(--ink-soft); }
.trustline span:first-child { border-color: var(--ink); color: var(--ink); }
.trustline b { font-weight: 800; }

/* ---------- D3: справка в три колонки ---------- */
.head3 { padding: 2.25rem 0 2rem; }
.head3__cover { grid-column: 1 / span 3; padding-right: 1.75rem; }
.head3__cover .cover { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.head3__main { grid-column: 4 / span 5; padding-right: 2rem; }
.head3 h1 { font-size: clamp(2.5rem, 4.5vw, 3.75rem); line-height: 0.92; letter-spacing: -0.035em; text-transform: uppercase; margin: 0.5rem 0 0.6rem; }
.head3__sub { font-size: 1.1875rem; margin: 0; }
.head3__orig { color: var(--ink-soft); margin: 0.2rem 0 1.25rem; }
.head3__titres { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.head3__titres tr { border-top: 1px solid var(--grid); }
.head3__titres tr:first-child { border-top: 2px solid var(--ink); }
.head3__titres th { text-align: left; font-weight: 400; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); padding: 0.6rem 1rem 0.6rem 0; vertical-align: top; white-space: nowrap; }
.head3__titres td { font-weight: 800; padding: 0.55rem 0; }
.head3__titres td span { display: block; font-weight: 400; color: var(--ink-soft); font-size: 13.5px; }
.head3__side { grid-column: 9 / span 4; font-size: 15px; line-height: 1.6; }
.head3__side p { margin-bottom: 0.6rem; }

/* Телефон: шапки D2/D3 и комфортное чтение панелей */
@media (max-width: 760px) {
  .head2__cover, .head3__cover { grid-column: 1 / span 2; padding-right: 0; max-width: 9.5rem; margin-bottom: 1.25rem; }
  .head2__title, .head3__main, .head3__side { grid-column: 1 / -1; padding-right: 0; }
  .head2 h1 { font-size: 3rem; }
  .head3 h1 { font-size: 2.5rem; }
  .head3__side { margin-top: 1.75rem; }
  .head2__facts > div { grid-column: span 2; border-bottom: 1px solid var(--grid); }
  .head2__facts > div:nth-child(2n) { border-right: 0; }
  .head2__facts > div:nth-child(2n+1) { padding-left: 0; }
  .head3__titres th { white-space: normal; width: 38%; }
  .panel { padding-top: 1.75rem; }
  .idea { font-size: 1.25rem; }
  .prose p, .cell p, .tlist li { font-size: 16.5px; line-height: 1.6; }
  .cell b { font-size: 1.0625rem; }
  .num { font-size: 2.25rem; }
}
body[data-head] .trustcell { display: none; }
@media (max-width: 760px) { .aside { font-size: 16px; } }

/* Примеры и образы */
.example__s { margin-top: 0.75rem !important; padding-top: 0.6rem; border-top: 1px solid var(--grid); font-size: 14.5px !important; }
.example__s b { display: inline; font-size: inherit; margin: 0; }

/* Главы и концепции: русские подписи, оригинал вторым планом */
.chapter-l { margin: 0 0 0.6rem; }
@media (min-width: 761px) {
  .chapter__head { grid-row: 1; }
  .chapter .tlist { grid-row: 2; margin-right: 2rem; }
  .chapter__side { grid-row: 2; }
}
.cell .orig { display: block; margin: -0.2rem 0 0.45rem; color: var(--ink-soft); font-size: 13px; font-style: italic; }

/* ---------- D21: данные о книге отдельно от вкладок ---------- */
.head21 { padding-bottom: 3rem; }
.head21__facts { grid-column: 4 / span 9; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.25rem; padding-top: 1rem; border-top: 1px solid var(--grid); font-size: 14px; line-height: 1.4; }
.head21__facts b, .head22__facts b { display: block; font-size: 1.0625rem; margin: 0.2rem 0 0.1rem; }
.head21__facts span:not(.label), .head22__facts span:not(.label) { color: var(--ink-soft); }
body[data-head="d21"] .tabs, body[data-head="d22"] .tabs { border-top: 2px solid var(--ink); }

/* ---------- D22: данные на месте аннотации ---------- */
.head22 { padding-bottom: 3rem; }
.head22__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; max-width: 40rem; margin: 0.25rem 0 0.5rem; font-size: 14px; line-height: 1.4; }
.head22__facts > div { padding-top: 0.7rem; border-top: 1px solid var(--grid); }

@media (max-width: 760px) {
  .head21__facts { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; }
  .head22__facts { grid-template-columns: 1fr; gap: 0.9rem; }
  .head21, .head22 { padding-bottom: 2rem; }
}

/* ---------- D21: акцент — кобальт (выбор владельца 17.10.2026) ---------- */
body[data-head="d21"] { --plane: #2346C8; --plane-ink: #F2F5FF; }

/* Тезисы строками: слева номер и формулировка, справа расшифровка */
.trows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.trows li { padding: 1.5rem 0 1.6rem; border-bottom: 1px solid var(--grid); align-items: start; }
.trows .num { grid-column: 1 / span 1; margin: 0; font-size: 2.5rem; }
.trows h3 { grid-column: 2 / span 5; padding-right: 2rem; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; text-wrap: balance; }
.trows p { grid-column: 7 / span 6; margin: 0.15rem 0 0; font-size: 1.0625rem; line-height: 1.6; max-width: 62ch; }
@media (max-width: 760px) {
  .trows li { grid-template-columns: 2.5rem minmax(0, 1fr); padding: 1.1rem 0 1.25rem; }
  .trows .num { grid-column: 1; font-size: 1.75rem; }
  .trows h3 { grid-column: 2; padding-right: 0; font-size: 1.1875rem; }
  .trows p { grid-column: 2; margin-top: 0.5rem; font-size: 16.5px; }
}

/* Референсы с переносом: автор строкой, ниже работа обычным начертанием */
.refs-split th { font-weight: 400; }
.refs-split .ref-who { display: block; font-weight: 800; }
.refs-split .ref-work { display: block; }
.refs-split .ref-work + .ref-who { margin-top: 0.65rem; }

/* d21/style.css */
/* D21 — основная гипотеза: дополнения к миру варианта D (d/style.css) для материалов любого типа, персон и «О проекте». */
/* Спека 011 (28.11.2026): шкала шрифтов поверх общего d/style.css — его делят архивные варианты, поэтому правим здесь.
   Стоит первым, чтобы правила D21 ниже по файлу перебивали его при равной специфичности (например, .works th — 400).
   Веса: Display (h1) — 800 из d/style.css; всё остальное жирное — var(--bold), 700; текст — 400.
   В fonts.css объявлены только 400 и 800 — без этого объявления браузер рисует 700 как 800. Файл шрифта вариативный, 700 берётся из него же. */
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/GolosText-normal-800-cyrillic-ext.10aa879203.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/GolosText-normal-800-cyrillic.2f175b8fc4.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/GolosText-normal-800-latin.f8d7109111.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root { --bold: 700; }
b, strong, h2, h3, .logo, .h, .num, .table th, .cover__title, .trustline b, .head3__titres td, .trows h3, .refs-split .ref-who { font-weight: var(--bold); }
.cell small { font-size: 11.5px; letter-spacing: 0.1em; }              /* Label */
.cell .label, .prose .label { font-size: 11.5px; }                     /* на телефоне .cell p 16.5 из d/style.css перебивал бы подпись */
.tabs small { font-size: 13.5px; }                                    /* Мета */
.cell .orig { font-size: 13.5px; }                                   /* Мета; наклон — из d/style.css, именное исключение из правила курсива (владелец 28.11.2026) */
.chips span { font-size: 11.5px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }  /* длинное название главы — до трёх строк, полное — в заголовке главы ниже */
.chips b { margin-bottom: 0.35rem; }
.cover__kind { font-size: 11.5px; letter-spacing: 0.1em; }       /* Label */
.table { font-size: 16px; }                                           /* Body */
.table td, .table th { overflow-wrap: anywhere; }                     /* длинный адрес в «Источниках» на 390 */
.timeline div { font-size: 14px; }                                    /* Small */
.example__s { font-size: 14px !important; }
.chapter-g { font-size: 1.25rem; }                                    /* Подзаголовок 20 */
.chapter-t { font-size: 1.75rem; }                                    /* 28 */
@media (min-width: 761px) {
  .cell > p:not(.quote):not(.example__s), .aside, .tlist li { font-size: 16px; }   /* на телефоне — Prose 16.5 из d/style.css */
}
@media (max-width: 760px) { .keyq p { font-size: 19px; } }             /* Quote телефона */
/* Ячейки на компьютере — по 3 в ряд: концепции и люди (.cell-3, было 4), примеры и цитаты (.cell-6, было 2) — владелец 28.11.2026:
   при тексте 16 px в четыре колонки строка была ~35 знаков. На телефоне — одна колонка из d/style.css. */
@media (min-width: 761px) {
  .cell-3, .cell-6 { grid-column: span 4; }
  /* гасим старую раскладку d/style.css (4 и 2 в ряд) тем же селектором — иначе первая ячейка второго ряда получала отступ и линейку */
  .cells .cell-3:not(:nth-child(4n)), .cells .cell-6:nth-child(odd) { border-right: 0; }
  .cells .cell-3:not(:nth-child(4n+1)), .cells .cell-6:nth-child(even) { padding-left: 0; }
  .cells .cell-3:not(:nth-child(3n)), .cells .cell-6:not(:nth-child(3n)) { border-right: 1px solid var(--grid); }
  .cells .cell-3:not(:nth-child(3n+1)), .cells .cell-6:not(:nth-child(3n+1)) { padding-left: 1.25rem; }
  /* люди в «Справочнике» — 4 в ряд: ячейки короткие (владелец 28.11.2026) */
  .people-cells .cell-3 { grid-column: span 3; }
  .people-cells .cell-3:nth-child(n) { border-right: 1px solid var(--grid); padding-left: 1.25rem; }
  .people-cells .cell-3:nth-child(4n) { border-right: 0; }
  .people-cells .cell-3:nth-child(4n+1) { padding-left: 0; }
}

.span-4 { grid-column: 1 / span 4; padding-right: 2rem; }
.span-8 { grid-column: 5 / span 8; }
.topbar nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--plane); }

/* Шапка материала: длинное название, ссылка на оригинал */
.head2 h1.h1--long { font-size: clamp(2.25rem, 4.6vw, 4rem); line-height: 0.95; text-wrap: balance; }
.head21__orig-link { display: inline-block; margin-top: 0.9rem; font-size: 14px; }
.head21__facts a { text-decoration-color: var(--plane); }
/* Выходные данные: всегда четыре колонки равной ширины — поля стоят на одних местах у всех материалов и персон (спека 010, ревью) */
.head21__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.head21__facts span:not(.label) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }

/* Ряд глав или частей: столько ячеек, сколько частей */
.chips { grid-template-columns: repeat(var(--n, 10), minmax(0, 1fr)); }

/* Персона */
.phead { padding: 2.25rem 0 3rem; }
.phead__photo { grid-column: 1 / span 3; margin: 0; padding-right: 1.75rem; }
.phead__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.phead__photo figcaption { margin-top: 0.5rem; font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); }
.phead__photo figcaption a { text-decoration-color: var(--grid); }
.phead__main { grid-column: 4 / span 9; }
.phead h1 { font-size: clamp(3rem, 7vw, 5.5rem); line-height: 0.88; letter-spacing: -0.04em; text-transform: uppercase; margin: 0.5rem 0 0.4rem; }
.phead__occ { font-size: 1.125rem; margin: 0 0 1.5rem; }
.pbody { border-top: 2px solid var(--ink); padding-top: 2.5rem; }
.pbody > .h:first-child { border-top: 0; padding-top: 0; }
.pcards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.pcard { text-decoration: none; display: grid; gap: 0.4rem; align-content: start; }
.pcard .cover { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.pcard .cover--frame { aspect-ratio: auto; }
.pcard b { font-size: 16px; line-height: 1.25; }
.pcard small { color: var(--ink-soft); font-size: 13.5px; }
.pcard:hover b { text-decoration: underline; text-decoration-color: var(--plane); }
.psect { margin-bottom: 1rem; }
.works th { width: 4.5rem; font-weight: 400; color: var(--ink-soft); }
.works__in { display: inline-block; margin-left: 0.4rem; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--plane); }

/* Заголовок служебных страниц: персоналии, «О проекте» */
.lhead { padding: 2.25rem 0 2.5rem; border-bottom: 2px solid var(--ink); }
.lhead h1 { font-size: clamp(3rem, 7vw, 5.5rem); line-height: 0.88; letter-spacing: -0.04em; text-transform: uppercase; margin: 0 0 1.25rem; }
.lhead p { max-width: 60ch; font-size: 1.25rem; line-height: 1.5; margin: 0; }
.lhead .lhead__ai { margin-top: 0.5em; display: flex; align-items: flex-start; gap: 0.5em; }
.mascot { height: 1em; width: 1.6em; flex: none; margin-top: 0.25em; shape-rendering: crispEdges; }

/* Персоналии: сетка и фильтр каталога, карточка — как в каталоге: портрет, имя, кто он (спека 009, правка 28.11.2026) */
.pcard9 img, .pcard9__nophoto { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: 50% 20%; filter: grayscale(1) contrast(1.05); margin-bottom: 0.45rem; background: var(--tint); transition: filter .4s var(--ease); }
.pcard9:hover img { filter: none; }
.pcard9 small { line-height: 1.4; }
.dcat__filters button:disabled { opacity: 0.45; cursor: default; }

/* О проекте — раскладка кинобазы: фото 3:4 в колонках 1–3, текст в 4–10; шрифт — Prose (владелец 28.11.2026) */
.about21 { padding: 2.25rem 0 3rem; column-gap: 1.5rem; align-items: start; }
.about21__photo { grid-column: 1 / span 3; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: var(--tint); }
.about21__text { grid-column: 4 / span 7; }
.about21__text p { margin: 0 0 1.1em; }
.about21__text p:last-child { margin-bottom: 0; }
.mascot--inline { display: inline-block; height: 0.7em; width: 1.12em; margin: 0 0 0 0.3em; vertical-align: baseline; }

@media (max-width: 1000px) {
  .pcards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .span-4, .span-8 { grid-column: 1 / -1; padding-right: 0; }
  .head2 h1.h1--long { font-size: 2.125rem; }
  .chips { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .phead { padding-bottom: 2rem; }
  .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; }
  .about21 { padding-top: 1.75rem; }
  .about21__photo { grid-column: 1 / -1; max-width: 12.5rem; margin-bottom: 1.75rem; }
  .about21__text { grid-column: 1 / -1; }
}

/* Плашка макета: семь ссылок на страницы D21 переносятся, а не растягивают страницу */
.mock-bar__pages { flex-wrap: wrap; gap: 4px 14px; }

/* Телефон: все три пункта меню видны — в D21 персоналии и «О проекте» стали настоящими страницами */
@media (max-width: 760px) {
  .topbar .logo { font-size: 15px; align-items: flex-start; line-height: 1.05; }  /* название из двух слов на телефоне — в две строки, квадрат по первой (29.11.2026) */
  .topbar .logo i { width: 0.75rem; height: 0.75rem; margin-top: 0.1rem; flex: none; }
  .topbar { gap: 0.6rem; }
  .topbar nav { gap: 0.4rem; font-size: 13.5px; }  /* при 13.5 и промежутке 0.6rem «О проекте» заходила за правое поле */
  .topbar nav a { white-space: nowrap; }
  .topbar nav a:not(:first-child) { display: inline; }
}

/* Критика: пометка «где искали» перед отзывами читателей */
.crit-note { font-size: 16px; color: var(--ink-soft); margin: 0 0 1rem; max-width: 60ch; }

/* «Суть»: переключатель «Ключевые тезисы / Вопросы и ответы» */
.ess-head { margin-top: 2.5rem; border-top: 2px solid var(--ink); padding-top: 0.6rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ess-head .h { border: 0; padding: 0; margin: 0; }
.ess-head .h:empty { display: none; }
.ess-switch { display: inline-flex; border: 1px solid var(--ink); }
.ess-switch button { font: inherit; font-size: 11.5px; font-weight: var(--bold); letter-spacing: 0.1em; text-transform: uppercase; background: var(--white); color: var(--ink); border: 0; padding: 0.5rem 0.85rem; cursor: pointer; }
.ess-switch button + button { border-left: 1px solid var(--ink); }
.ess-switch button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.ess-head + .trows { margin-top: 1rem; }
.qrows { margin-top: 1rem; }
.qrows .qa p { margin: 0.15rem 0 0; font-size: 1.0625rem; line-height: 1.6; max-width: 62ch; }
.qrows .qa small { display: block; margin-top: 0.5rem; color: var(--ink-soft); font-size: 13.5px; }
.qrows .qa { grid-column: 7 / span 6; }
@media (max-width: 760px) { .qrows .qa { grid-column: 2; } .qrows .qa p { font-size: 16.5px; } }

/* Цитата: строка «о чём» */
.qtopic, .cell .qtopic { display: block; font-size: 1.0625rem; line-height: 1.3; font-weight: var(--bold); color: var(--plane); margin-bottom: 0.35rem; }  /* тема цитаты — Title 17/700 кобальтом (владелец 28.11.2026: «крупнее»; было Label 11.5 прописными) */

/* Пример: подпись места — внизу, бледно (решение владельца 17.10.2026) */
.ex-where { display: block; margin-top: 0.6rem; font-size: 13.5px; color: var(--ink-soft); } /* бледно, но читаемо: без прозрачности контраст 6.4:1 */

/* Обложка во весь экран — единственный оверлей, как постер в кинобазе. */
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.zoom:focus-visible { outline: 2px solid var(--plane); outline-offset: 4px; }
.viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
.viewer[open] { display: flex; align-items: center; justify-content: center; }
/* Цвет числом: ::backdrop в части браузеров не наследует переменные :root. --ink #121212 при 92 %. */
.viewer::backdrop { background: rgba(18, 18, 18, 0.92); }
.viewer img { max-width: 92vw; max-height: 90vh; }
.viewer__close { position: fixed; top: 1.25rem; right: 1.25rem; padding: 0.5rem; border: 0; background: none; color: var(--white); cursor: pointer; transition: color 150ms var(--ease); }
.viewer__close:hover { color: var(--plane); }
.viewer__close:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.viewer__close svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
body:has(.viewer[open]) { overflow: hidden; }
@media (min-width: 640px) { .viewer__close { top: 2rem; right: 2rem; } }

/* ---------- Правки по ревью, решения владельца 24.10.2026 ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* D3: заголовки разделов внутри вкладок и на персоне — вехи, а не подписи: тем же начертанием, что названия вкладок */
body[data-head="d21"] .h { font-size: 1.3125rem; letter-spacing: -0.015em; line-height: 1.15; margin-bottom: 1.25rem; }

/* D4: название длиннее 40 знаков — шаг кегля вниз, прописные сохраняются */
.head2 h1.h1--xlong { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 0.98; text-wrap: balance; }

/* D8: пометка «Разбор по …» — строкой текста, не плашкой-кнопкой */
body[data-head="d21"] .trustline span { border: 0; padding: 0; }

/* D1: кнопка «Читать дальше» есть только на телефоне */
.annot-more { display: none; }

/* Каталог на оболочке D21 */
.dcat { padding: 2.25rem 0 3rem; align-items: start; }
.dcat__filters { grid-column: 1 / span 3; position: sticky; top: 1.5rem; padding-right: 2rem; font-size: 14px; }
.dcat__filters .label { font-weight: 400; display: block; margin: 0 0 0.5rem; padding-top: 0.6rem; border-top: 2px solid var(--ink); }
.dcat__filters ul { list-style: none; margin: 0 0 1.75rem; padding: 0; }
.dcat__filters button { font: inherit; background: none; border: 0; padding: 0.25rem 0; cursor: pointer; color: var(--ink-soft); width: 100%; text-align: left;
  display: grid; grid-template-columns: minmax(0, 1fr) 1.75rem; column-gap: 0.75rem; align-items: baseline; }
.dcat__filters button small { font-size: inherit;  /* число — размером названия (владелец 28.11.2026, после 011) */ text-align: right; font-variant-numeric: tabular-nums; }
.dcat__filters button:hover { color: var(--ink); }
.dcat__filters button[aria-pressed="true"] { color: var(--ink); font-weight: var(--bold); }
.dcat__filters button[aria-pressed="true"] small { color: var(--plane); }
.dcat__grid { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 2.25rem 1.5rem; }
.dcard { text-decoration: none; display: grid; gap: 0.3rem; align-content: start; }
.dcard .cover { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; margin-bottom: 0.45rem; transition: transform .35s var(--ease); }
.dcard:hover .cover { transform: translateY(-3px); }
.dcard b { font-size: 16px; line-height: 1.25; }
.dcard:hover b { text-decoration: underline; text-decoration-color: var(--plane); text-decoration-thickness: 2px; }
.dcard small { color: var(--ink-soft); font-size: 13.5px; }
/* D6: заглушка — тип и название, полоса одна, чернилами */
.cover--blank { display: flex; flex-direction: column; justify-content: space-between; padding: 0.8rem; background: var(--tint); border-top: 6px solid var(--ink); }
.cover--blank .cover__kind { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }
.cover--blank .cover__title { background: none; padding: 0; font-weight: var(--bold); text-transform: uppercase; font-size: 1.0625rem; line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }

@media (max-width: 760px) {
  .head2 h1.h1--xlong { font-size: 1.75rem; }
  body[data-head="d21"] .h { font-size: 1.1875rem; }

  /* D1: пять вкладок видны разом — сетка 3 + 2, только названия */
  body[data-head="d21"] .tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; }
  body[data-head="d21"] .tabs button { grid-column: span 2; min-width: 0; min-height: 3.25rem; padding: 0.7rem 0.6rem; justify-content: center; border-bottom: 1px solid var(--grid); }
  body[data-head="d21"] .tabs button:nth-child(3) { border-right: 0; }
  body[data-head="d21"] .tabs button:nth-child(n+4) { grid-column: span 3; border-bottom: 0; }
  body[data-head="d21"] .tabs b { font-size: 0.9375rem; }
  body[data-head="d21"] .tabs small { display: none; }

  /* D1: аннотация в 4 строки; у полей выходных данных с третьего пояснение второго плана скрыто (раскладка шапки — блок спеки 010) */
  .head21 { padding-bottom: 1.5rem; }
  .head21 .head21__facts > div:nth-child(n+3) span:not(.label) { display: none; }
  .head2__annot:not(.is-open) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
  .annot-more { display: inline-block; font: inherit; font-size: 14px; background: none; border: 0; padding: 0.2rem 0; margin-bottom: 0.4rem; color: var(--ink); cursor: pointer; text-decoration: underline; text-decoration-color: var(--plane); text-underline-offset: 3px; }

  /* Каталог и «Персоналии» на телефоне: фильтры — строками с раскрывающимся списком (блок спеки 010) */
  .dcat { padding-top: 1.25rem; }
  .dcat__filters { grid-column: 1 / -1; position: static; padding-right: 0; }
  .dcat__grid { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; }
}
@media (prefers-reduced-motion: reduce) { .dcard .cover { transition: none; } }

/* ---------- Спека 006: «Упражнения» и «Ключевые схемы» во вкладке «Идеи» ---------- */
.h-count { font-weight: 400; color: var(--ink-soft); margin-left: 0.35rem; }
.ex-t { font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 1.25rem; }
.ex-row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; padding: 0.85rem 0; border-top: 1px solid var(--grid); }
.ex-row > .label { margin: 0.2rem 0 0; }
.ex-row > p:not(.label), .ex-steps { margin: 0; font-size: 1.0625rem; line-height: 1.55; max-width: 62ch; }
.ex-steps { padding-left: 1.25rem; }
.ex-steps li { margin-bottom: 0.45rem; padding-left: 0.2rem; }
.ex-steps li::marker { color: var(--plane); font-weight: var(--bold); }
.ex-from > p:not(.label) { font-size: 16px; color: var(--ink-soft); }
.ex-card.in { animation: build .35s var(--ease) both; }

/* Список слева (на 20 % уже прежних 4 колонок, названия переносятся), карточка справа; линии списка не доходят до карточки. */
.ex-a { display: grid; grid-template-columns: minmax(0, 26.5%) minmax(0, 1fr); column-gap: 3rem; border-top: 1px solid var(--ink); align-items: start; }
.ex-list { list-style: none; margin: 0; padding: 0; }
.ex-list li { border-bottom: 1px solid var(--grid); }
.ex-list button { font: inherit; width: 100%; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.25rem; align-items: baseline; text-align: left; border: 0; background: none; padding: 0.7rem 0.5rem 0.7rem 0; cursor: pointer; color: var(--ink); }
.ex-n { font-size: 13.5px; font-weight: var(--bold); color: var(--plane); font-variant-numeric: tabular-nums; }
.ex-name { font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.ex-list button:hover .ex-name { text-decoration: underline; text-decoration-color: var(--plane); text-underline-offset: 3px; }
.ex-list button { padding-left: 0.5rem; }
.ex-list button[aria-pressed="true"] { background: var(--tint); }
.ex-list button[aria-pressed="true"] .ex-name { font-weight: var(--bold); }
.ex-card--a { padding-top: 0.85rem; position: sticky; top: 5.5rem; }
.ex-card--m { display: none; }


/* Галерея: 4 миниатюры в ряд с тенью, как у обложки (решение владельца 25.11.2026); схема вписана целиком,
   пояснение — только в окне */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.75rem; border-top: 1px solid var(--ink); padding-top: 1.75rem; }
.gtile { font: inherit; color: var(--ink); text-align: left; border: 0; background: none; padding: 0; cursor: zoom-in; display: grid; gap: 0.75rem; align-content: start; }
.gtile__pic { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; background: var(--white); padding: 0.75rem; overflow: hidden; box-shadow: 0 16px 28px -18px rgba(0,0,0,.45), 0 0 0 1px var(--grid); transition: transform .35s var(--ease); }
.gtile:hover .gtile__pic { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .gtile__pic { transition: none; } }
.gtile__pic img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.gtile__pic svg { width: 100%; height: 100%; display: block; }
.gtile b { font-size: 1rem; line-height: 1.3; }
.gtile__what { font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.gtile:hover b { text-decoration: underline; text-decoration-color: var(--plane); text-underline-offset: 3px; }
.gtile:focus-visible { outline: 2px solid var(--plane); outline-offset: 4px; }

/* Окно галереи: схема на белом поле, подпись под ней */
/* Всё в разметке (спека 003): невыбранные главы, карточки упражнений и слайды окна лежат в HTML скрытыми; display у сетки не перебивает hidden. */
.chapter[hidden], .ex-pane[hidden], .gview[hidden] { display: none; }
.gview { margin: 0; width: min(1100px, 92vw); max-height: 92vh; overflow: auto; background: var(--white); display: grid; }
.gview__pic { padding: clamp(1rem, 3vw, 2.5rem); border-bottom: 1px solid var(--grid); }
/* Картинке задаётся только одно ограничение — ширина; высота следует за пропорцией. Ширина 100 % вместе с max-height
   сплющивали высокие таблицы (Шарп, 26.11.2026). Высокая схема в окне листается, мелкая не растягивается выше своего размера. */
.gview__pic img { width: auto; max-width: 100%; height: auto; max-height: none; display: block; margin: 0 auto; } /* max-height: none снимает 90vh обложки (.viewer img) */
.gview__pic svg { width: 100%; height: auto; max-height: 62vh; display: block; margin: 0 auto; } /* у svg пропорцию держит viewBox */
.gview__cap { padding: 1.25rem clamp(1rem, 3vw, 2.5rem) 1.5rem; display: grid; gap: 0.6rem; }
.gview__cap b { font-size: 1.25rem; line-height: 1.2; }
.gview__cap p { margin: 0; font-size: 16px; line-height: 1.5; max-width: 72ch; }
.gview__cap .label { display: block; margin-bottom: 0.15rem; }
.gview__n { font-size: 13.5px; letter-spacing: 0; color: var(--ink-soft); }
.gview__src { color: var(--ink-soft); font-size: 13.5px !important; }
.gview__src span { display: block; }
/* Иллюстрации обычно мельче схем и не растягиваются: лист уже, чтобы картинка и подпись стояли на одной оси (ревью 007). */
@media (min-width: 761px) { .viewer--ill .gview { width: min(840px, 92vw); } }
.gview__nav { position: fixed; top: 50%; transform: translateY(-50%); padding: 0.75rem; border: 0; background: none; color: var(--white); cursor: pointer; transition: color 150ms var(--ease); }
.gview__nav:hover { color: var(--plane); }
.gview__nav:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.gview__nav svg { display: block; width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gview__prev { left: 0.5rem; } .gview__next { right: 0.5rem; }

/* «Наверх» — как ScrollTop кинобазы: квадрат 44 px в правом нижнем углу, где текста нет; скрытая кнопка не рендерится */
.totop { position: fixed; right: 1rem; bottom: 1rem; z-index: 20; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); cursor: pointer; transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.totop:hover { background: var(--ink); color: var(--white); }
.totop:focus-visible { outline: 2px solid var(--plane); outline-offset: 2px; }
.totop svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 640px) { .totop { right: 1.5rem; bottom: 1.5rem; } }
body:has(dialog[open]) .totop { display: none; } /* под открытым окном кнопка просвечивала бы сквозь затемнение */

@media (max-width: 760px) {
  .ex-a { grid-template-columns: minmax(0, 1fr); }
  .ex-card--a { display: none; }
  .ex-a { border-top: 1px solid var(--ink); }
  .ex-list button[aria-pressed="true"] { background: none; }
  .ex-list button[aria-expanded="true"] { background: var(--tint); }
  .ex-card--m:not([hidden]) { display: block; padding: 0.25rem 0 1.5rem 2.5rem; border-top: 1px solid var(--ink); }
  .ex-t { font-size: 1.25rem; }
  .ex-row { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
  .ex-row:not(.ex-from) > p:not(.label), .ex-steps { font-size: 16.5px; }  /* подпись «Что это» — Label, а не Prose (спека 011) */
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
  .gtile__pic { padding: 0.5rem; }
  .gtile b { font-size: 14px; }
  .gview { width: 100vw; max-height: 100vh; max-height: 100dvh; } /* dvh: в iOS Safari нижние плашки не уходят под панель */
  /* Схема в окне — в натуральную величину, листается вбок: сжатая до ширины телефона, она не читается. */
  .gview__pic { overflow-x: auto; padding: 1rem; }
  .gview__pic img, .gview__pic svg { width: 900px; max-width: none; max-height: none; }
  /* Иллюстрация (спека 007) — фото и рисунки: вписаны в ширину экрана, без прокрутки вбок; свободный жест листает галерею. */
  .viewer--ill .gview__pic { overflow-x: visible; }
  .viewer--ill .gview__pic img { width: auto; max-width: 100%; }
  .viewer--ill .gview__pic { touch-action: pan-y; } /* горизонтальный жест по картинке — свайп галереи */
  /* Крестик на телефоне лежит на листе (белом или на фото) — на чернильной плашке, как стрелки (ревью 007). */
  .viewer--gallery .viewer__close { top: 0.75rem; right: 0.75rem; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(18, 18, 18, 0.75); }
  .gview__nav { top: auto; bottom: 0.75rem; transform: none; background: rgba(18, 18, 18, 0.75); }
  .gview__cap { padding-bottom: 5rem; }
}
@media (prefers-reduced-motion: reduce) { .ex-card.in { animation: none; } }

/* Спека 008: источник главной мысли персоны — строчными, вполсилы (как «Откуда» у упражнения), не Label */
.idea-from { display: block; margin-top: 0.6rem; font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }
.idea-from a { color: inherit; }

/* 28.11.2026: у русского оригинала строки оригинального названия нет — отступ под подзаголовком или названием сохраняется */
.head2__sub:not(:has(+ .head2__orig)) { margin-bottom: 1.25rem; }

/* ---------- Спека 010: шапка персоны и материала, строка тем, шкала шапки, окно портрета, фильтры на телефоне ---------- */
/* Окно портрета: исходник целиком — без серого фильтра и кадрирования 4:5 */
.phead__photo .zoom img { display: block; }
.phead__photo .viewer--portrait img { width: auto; aspect-ratio: auto; object-fit: contain; filter: none; max-width: 92vw; max-height: 90vh; }
.phead__nophoto { display: block; width: 100%; aspect-ratio: 4 / 5; background: var(--tint); }
/* Персона: портрет на все ряды шапки, ряд выходных данных под текстом — как у материала */
.phead__photo { grid-row: 1 / span 3; }
/* Строка тем — под рядом выходных данных, последней в шапке; тише ссылок выходных данных (именное исключение) */
.hthemes { grid-column: 4 / span 9; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin: 1rem 0 0; font-size: 14px; line-height: 1.45; }
.hthemes a { color: var(--ink-soft); text-decoration-color: var(--grid); text-underline-offset: 3px; padding: 0.2rem 0; }
.hthemes a:hover { color: var(--ink); text-decoration-color: var(--plane); }
/* Шкала шапки: Display · Подзаголовок 20 · Body 16 · Small 14 · Label 11.5; веса 400, 700 (--bold) и 800 у названия (спека 011) */
.head21 .head2__sub, .phead__occ { font-size: 1.25rem; line-height: 1.35; font-weight: 400; }
.phead__occ { margin: 0 0 1rem; max-width: 34em; }
.head21 .head2__orig, .phead .head2__orig { font-size: 16px; line-height: 1.55; }
.head21 .head2__annot, .phead__who { max-width: 60ch; font-size: 16px; line-height: 1.55; letter-spacing: 0; }
.phead__who { margin: 0; }
.head21__facts b { font-size: 16px; line-height: 1.4; font-weight: var(--bold); }
.head21__facts span:not(.label) { font-size: 14px; line-height: 1.45; }
.head21 .trustline, .head21 .trustline span { letter-spacing: 0.1em; }
.annot-more, .head21__orig-link { font-size: 14px; }
/* Строки фильтров есть только на телефоне; на компьютере фильтры — колонкой */
.dcat__filters .mf-row { display: none; }

@media (max-width: 760px) {
  /* Шапка на телефоне, одна у персоны и материала: ряд 1 — картинка 10rem и выходные данные, ряд 2 — темы, ряд 3 — название и текст */
  .head21 > .g12, .phead { grid-template-columns: 10rem minmax(0, 1fr); column-gap: 1rem; }
  .head21 .head2__cover, .phead__photo { grid-column: 1; grid-row: 1; width: 10rem; max-width: none; margin: 0; padding: 0; }
  .head21 .head21__facts, .phead__facts { grid-column: 2; grid-row: 1; grid-template-columns: 1fr; gap: 0.5rem; align-content: start; margin: 0; padding: 0; border: 0; }
  .head21__facts span:not(.label) { -webkit-line-clamp: 2; line-clamp: 2; }
  .head21__facts b { margin: 0.1rem 0 0; }
  .head21__facts b a { overflow-wrap: anywhere; }
  .hthemes { grid-column: 1 / -1; grid-row: 2; margin: 1rem 0 0; gap: 0 1.25rem; }
  .hthemes a { padding: 0.4rem 0; }
  .head21 .head2__title, .phead__main { grid-column: 1 / -1; grid-row: 3; margin-top: 1.75rem; }
  .phead__photo .viewer--portrait img { max-width: 100vw; }
  .head21 h1:not(.h1--long):not(.h1--xlong), .phead h1 { font-size: 2.75rem; }

  /* Фильтры: строка «ТЕМА  Все ▼» на фильтр, список раскрывается под строкой */
  .dcat__filters section { border-top: 1px solid var(--grid); }
  .dcat__filters section:last-child { border-bottom: 1px solid var(--grid); margin-bottom: 1.25rem; }
  .dcat__filters section > .label { display: none; }
  .dcat__filters .mf-row { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; width: 100%;
    font: inherit; font-size: 16px; padding: 0.65rem 0; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; }
  .dcat__filters .mf-row .label { display: inline; margin: 0; padding: 0; border: 0; }
  /* Значение строки: ничего не выбрано — обычный вес вполсилы; выбрано — 700 чернилами */
  .dcat__filters .mf-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; color: var(--ink-soft); }
  .dcat__filters .mf-row.is-set b { font-weight: var(--bold); color: var(--ink); }
  .mf-tri { width: 11px; height: 7px; fill: currentColor; flex: none; transition: transform .2s var(--ease); }
  .mf-row[aria-expanded="true"] .mf-tri { transform: rotate(180deg); }
  .dcat__filters .mf-row + ul { display: none; }
  .dcat__filters .mf-row[aria-expanded="true"] + ul { display: block; margin: 0 0 0.75rem; }
  .dcat__filters .mf-row + ul button { display: grid; grid-template-columns: minmax(0, 1fr) 2rem; width: 100%; padding: 0.65rem 0; border: 0; border-top: 1px solid var(--grid); background: none; color: var(--ink-soft); font-size: 16px; }
  .dcat__filters .mf-row + ul button[aria-pressed="true"] { color: var(--ink); font-weight: var(--bold); }
  .dcat__filters .mf-row + ul button[aria-pressed="true"] small { color: var(--plane); }
  .dcat__filters .mf-row + ul button small { font-size: 13.5px; }  /* на телефоне пункт 16, число — Мета */
}
@media (prefers-reduced-motion: reduce) { .mf-tri { transition: none; } }





/* «Не найдено» (спека 003): три варианта ?v=a|b|c, у всех — случайные разборы. Шкала: Display, Section, Headline 24, Lead 28 (цитата), Prose 17, Мета 13.5, Label 11.5. */
.nf21 { padding: 3.5rem 0 6rem; row-gap: 0; }
.nf21 h1 { font-size: clamp(3rem, 7vw, 5.5rem); line-height: 0.88; letter-spacing: -0.04em; text-transform: uppercase; margin: 0 0 1.5rem; }
.nf21 .prose p { margin: 0; }
.nf21__bar { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-top: 2px solid var(--ink); padding-top: 0.6rem; margin-bottom: 1.75rem; }
.nf21__bar .h { border: 0; padding: 0; margin: 0; }
.nf21__more { font: var(--bold) 11.5px/1 var(--sans); text-transform: uppercase; letter-spacing: 0.1em; background: var(--white); color: var(--ink); border: 1px solid var(--ink); padding: 0.55rem 0.8rem; cursor: pointer; flex: none; }
.nf21__more:hover { background: var(--ink); color: var(--white); }
.nf21__side { grid-column: 1 / span 5; padding-right: 2rem; }
.nf21__pick { grid-column: 6 / -1; display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 2rem; align-items: start; }
.nf21__cov .cover { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 16px 28px -18px rgba(0,0,0,.45); }
.nf21__info h2 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.35rem; font-weight: var(--bold); }
.nf21__info h2 a { text-decoration: none; }
.nf21__info h2 a:hover { text-decoration: underline; text-decoration-color: var(--plane); text-decoration-thickness: 2px; }
.nf21__info small { display: block; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 1rem; }
.nf21__info .prose p { font-size: 1.0625rem; }
.nf21__go { display: inline-block; margin-top: 1.25rem; font-weight: var(--bold); text-decoration-color: var(--plane); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 1000px) { .nf21__side { grid-column: 1 / -1; padding: 0; margin-bottom: 3rem; } .nf21__pick { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .nf21 { padding: 2rem 0 4rem; }
  .nf21__pick { grid-template-columns: 1fr; gap: 1.5rem; }
  .nf21__cov { width: 10rem; order: 2; }
  .nf21__info { display: contents; }
  .nf21__info .nf21__bar { order: 1; }
  .nf21__info h2, .nf21__info small, .nf21__info .prose, .nf21__go { order: 3; }
  .nf21__info small { margin-bottom: 0; }
  .nf21__go { justify-self: start; margin-top: 0; }
  .nf21__info h2 { font-size: 1.25rem; }
  .nf21__info .prose p { font-size: 1rem; }
}
