/* Бимагрумаб.
   Направление «студия»: научные объекты сняты как предметная съёмка на тёплом светлом фоне.
   Одна гарнитура (Literata). Янтарный — жир, красный — мышцы, слоновая кость — антитело. */

@font-face { font-family: "Literata"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(/fonts/literata-cyrillic-opsz-normal.woff2) format("woff2-variations");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Literata"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(/fonts/literata-latin-opsz-normal.woff2) format("woff2-variations");
  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; }

/* 12 колонок, поля 5vw; один фон, одни чернила, один акцент на действии */
:root {
  --bg: #e2dbd1;          /* фон студийных снимков */
  --surface: #d8cfc4;
  --ink: #1d1a17;
  --soft: #5b544c;
  --field: #1d1a17;
  --on-field: #f1ebe3;
  --on-field-soft: #b3aaa0;
  --accent: #1d1a17;
  --on-accent: #f4efe8;
  --fat: #d9a22c;
  --fat-ink: #9a6b0c;
  --lean: #a3293a;
  --sema: #8a7f73;
  --plac: #bdb3a7;
  --line: #c4b9ac;
  --focus: #1d6fd1;

  --font: "Literata", "PT Serif", Georgia, serif;
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --step-lead: clamp(1.2rem, 1.1rem + 0.6vw, 1.5rem);
  --step-head: clamp(2rem, 1.3rem + 3vw, 3.75rem);
  --step-display: clamp(2.6rem, 1rem + 5vw, 5.75rem);

  --margin: max(20px, 4.5vw);
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(88px, 12vw, 190px);
  color-scheme: light;
}
/* Тёмной темы нет намеренно: студийные снимки сняты на светлом фоне и должны сливаться со страницей. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--step-body); line-height: 1.55;
  font-optical-sizing: auto; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--bg); padding: 8px 12px; }

h1, h2, h3 { font-weight: 300; line-height: 1.04; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-display); }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); font-weight: 400; line-height: 1.2; letter-spacing: -0.005em; }
p { margin: 0; text-wrap: pretty; }

.frame { padding-left: var(--margin); padding-right: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

/* кнопки: одна тёмная заливка, скругление как у капсулы */
.btn {
  display: inline-flex; align-items: center; min-height: 50px; padding: 0 26px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); text-decoration: none;
  font-size: var(--step-small); font-weight: 500; letter-spacing: 0.01em;
  transition: transform .18s ease, background-color .18s ease;
}
.btn:hover { transform: translateY(-2px); background: #3a332c; }
.btn:active { transform: translateY(0); }
.link-arrow { text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.link-arrow:hover { border-color: var(--ink); }
.link-arrow::after { content: " →"; }

/* ---------- Шапка ---------- */
.site-header { position: relative; z-index: 20; }
.header-inner { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.brand { text-decoration: none; font-size: var(--step-small); line-height: 1.25; letter-spacing: 0.01em; }
.brand b { font-weight: 600; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; font-size: var(--step-small); }
.site-nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; color: var(--soft); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a:hover { border-bottom-color: currentColor; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
@media (max-width: 760px) {
  .site-nav { width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav ul { flex-wrap: nowrap; white-space: nowrap; }
}

/* ---------- Главная: студийный первый экран ---------- */
.studio-hero { position: relative; min-height: min(100svh, 940px); display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); isolation: isolate; overflow: hidden; }
.shot { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.shot-box { position: absolute; top: 0; right: 0; height: 100%; aspect-ratio: 3 / 2; }
.shot-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 16%); mask: linear-gradient(90deg, transparent 0, #000 16%); }
.shot::after { content: ""; position: absolute; inset: auto 0 0 0; height: 24%; background: linear-gradient(transparent, var(--bg)); }

.tag { position: absolute; display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); white-space: nowrap; transform: translate(-4px, -50%); }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--ink); background: var(--bg); flex: none; }
.tag i { display: block; width: 44px; height: 1px; background: rgba(29, 26, 23, .35); }
.tag b { font-weight: 500; color: var(--ink); }
.tag.left { flex-direction: row-reverse; transform: translate(4px, -50%); }
.t-ab { left: 73%; top: 30%; }
.t-mu { right: 47.4%; top: 81%; }
.t-fat { left: 74%; top: 84%; }

.hero-copy { align-self: center; max-width: 560px; padding: 40px 0 36px; }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); margin-bottom: 26px; }
.studio-hero h1 { font-weight: 400; font-size: clamp(46px, 6.2vw, 96px); line-height: .98; letter-spacing: -.025em; }
.studio-hero h1 span { display: block; font-style: italic; font-weight: 300; font-size: .5em; line-height: 1.12; letter-spacing: -.01em; margin-top: .35em; color: var(--soft); }
.hero-lead { margin-top: 26px; font-size: 1.125rem; line-height: 1.55; max-width: 31em; }
.hero-acts { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); margin: 0 0 28px; }
.hero-facts div { padding: 18px 24px 0 0; }
.hero-facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.hero-facts dt { font-size: 30px; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.hero-facts dd { font-size: 14px; color: var(--soft); margin: 6px 0 0; max-width: 22em; }
.k-fat { color: var(--fat-ink); } .k-mu { color: var(--lean); }

@media (max-width: 900px) {
  .studio-hero { min-height: 0; grid-template-rows: auto auto auto auto; }
  .shot { position: relative; inset: auto; grid-row: 3; z-index: 0; }
  .shot-box { position: relative; width: 155%; height: auto; left: -48%; right: auto; }
  .shot-box img { -webkit-mask: none; mask: none; }
  .shot::before { content: ""; position: absolute; z-index: 1; inset: 0 0 auto 0; height: 22%; background: linear-gradient(var(--bg), transparent); }
  .shot::after { height: 18%; }
  .hero-copy { padding: 28px 0 8px; }
  .hero-lead { font-size: 1.0625rem; }
  .hero-facts { grid-row: 4; grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .hero-facts div, .hero-facts div + div { padding: 14px 0; border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 12px; align-items: baseline; }
  .hero-facts dt { font-size: 24px; } .hero-facts dd { margin: 0; }
  .tag { font-size: 10px; gap: 6px; } .tag i { width: 20px; }
  .t-ab { left: auto; right: 27%; top: 30%; flex-direction: row-reverse; transform: translate(4px, -50%); }
  .t-mu { right: 47.4%; top: 82%; }
  .t-fat { left: 74%; top: 85%; }
}

/* ---------- Разделы главной ---------- */
.sec { padding-top: var(--section); }
.sec-grid { align-items: center; row-gap: 40px; }
.kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); margin-bottom: 18px; }
.pic { margin: 0; }
.pic img { width: 100%; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-composite: source-in; mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); mask-composite: intersect; }
.note { font-size: var(--step-small); color: var(--soft); }

/* Антитело, а не пептид */
.intro-head h2 { grid-column: 1 / 7; }
.intro-head p { grid-column: 8 / 13; align-self: end; color: var(--soft); max-width: 40ch; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--gap); margin: clamp(48px, 6vw, 80px) 0 0; }
.facts div { border-top: 1px solid var(--ink); padding-top: 14px; }
.facts dt { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.facts dd { margin: 8px 0 0; font-size: var(--step-small); color: var(--soft); }
.intro-pic .pic { grid-column: 1 / 8; }
.intro-pic p { grid-column: 9 / 13; color: var(--soft); max-width: 34ch; }

/* Цифры BELIEVE */
.stats-list { grid-column: 1 / 7; }
.stats-list dl { margin: 40px 0 0; display: grid; gap: 22px; }
.stats-list dl > div { display: grid; grid-template-columns: 7.5em 1fr; column-gap: 24px; align-items: baseline; padding-top: 18px; border-top: 1px solid var(--line); }
.stats-list dt { font-size: clamp(1.5rem, 1.2rem + .8vw, 2rem); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; letter-spacing: -.01em; }
.stats-list dl > div:first-child dt { color: var(--fat-ink); }
.stats-list dl > div:nth-child(2) dt, .stats-list dl > div:nth-child(3) dt { color: var(--lean); }
.stats-list dd { margin: 0; color: var(--soft); max-width: 42ch; font-size: 1rem; }
.stats-src { margin-top: 28px; }
.stats .pic { grid-column: 8 / 13; }

/* Как работает */
.steps h2 { grid-column: 1 / 8; }
.steps .pic { grid-column: 1 / -1; margin-top: 24px; }
.steps-list { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); counter-reset: st; }
.steps-list li { counter-increment: st; border-top: 1px solid var(--ink); padding-top: 16px; font-size: 1.0625rem; }
.steps-list li::before { content: "0" counter(st); display: block; font-size: 12px; letter-spacing: .12em; color: var(--soft); margin-bottom: 14px; }
.steps-list b { display: block; font-weight: 500; font-size: 1.25rem; margin-bottom: 8px; }
.steps-list span { color: var(--soft); }

/* Сравнение групп */
.run-side { grid-column: 1 / 5; display: grid; gap: 18px; align-content: start; }
.run .pic { grid-column: 5 / 13; }
.groups { margin: 8px 0 0; display: grid; }
.groups div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 1rem; }
.groups dt { color: var(--ink); } .groups dd { margin: 0; color: var(--fat-ink); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.groups div.lifted dt { font-weight: 600; }

/* История */
.ledger h2 { grid-column: 1 / 8; }
.ledger .pic { grid-column: 1 / 5; align-self: start; }
.ledger-list { grid-column: 6 / 13; }
.ledger-name { font-size: var(--step-small); color: var(--soft); margin-bottom: 8px; }
.ledger ol { list-style: none; margin: 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: 8.5em 1fr; gap: 4px 20px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 1rem; }
.ledger .when { color: var(--soft); font-variant-numeric: tabular-nums lining-nums; }

/* Вопросы */
.qa-field { margin-top: var(--section); background: #d9d0c4; padding-top: clamp(64px, 8vw, 120px); padding-bottom: clamp(64px, 8vw, 120px); }
.qa-left { grid-column: 1 / 5; align-self: start; }
.qa-left h2 { font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem); }
.qa-facts { margin: 24px 0 32px; display: grid; gap: 8px; font-size: 1rem; color: var(--soft); }
.qa-right { grid-column: 6 / 13; }
.qa-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }

@media (max-width: 900px) {
  .intro-head h2, .intro-head p, .intro-pic .pic, .intro-pic p, .stats-list, .stats .pic, .steps h2, .run-side, .run .pic, .ledger h2, .ledger .pic, .ledger-list, .qa-left, .qa-right { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .steps-list { grid-template-columns: minmax(0, 1fr); }
  .stats .pic, .ledger .pic { max-width: 520px; }
  .ledger .pic { order: 2; }
  .ledger li { grid-template-columns: 1fr; }
  .pic { margin-left: calc(var(--margin) * -1); margin-right: calc(var(--margin) * -1); }
}

.qa { margin: 0; border-top: 1px solid rgba(29, 26, 23, .18); }
.qa summary { list-style: none; cursor: pointer; position: relative; padding: 14px 40px 14px 0; font-size: 1.1875rem; line-height: 1.35; min-height: 44px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 6px; top: 22px; width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; }
.qa[open] summary::after { transform: rotate(-135deg); top: 26px; }
.qa-a { padding: 0 0 16px; color: var(--soft); font-size: 1.0625rem; }
.qa-a > * + * { margin-top: 0.6em; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: up .8s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .08s; } .hero-copy > *:nth-child(3) { animation-delay: .16s; } .hero-copy > *:nth-child(4) { animation-delay: .24s; }
  .shot-box img { animation: fade 1.4s ease both; }
  .tag { animation: fade .8s ease both; animation-delay: .9s; }
  @keyframes up { from { opacity: 0; transform: translateY(14px); } }
  @keyframes fade { from { opacity: 0; } }
}

/* ---------- Подвал: инверсия и словесный знак ---------- */
.site-footer {
  background: var(--field); color: var(--on-field);
  display: grid; grid-template-rows: auto auto auto auto; grid-template-columns: minmax(0, 1fr); padding-top: clamp(56px, 7vw, 96px); padding-bottom: 24px;
}
.foot-cols { row-gap: 32px; }
.foot-col { grid-column: span 3; font-size: 1rem; }
.foot-col p, .foot-col li { color: var(--on-field-soft); }
.foot-col .first { color: var(--on-field); margin-bottom: 8px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-col a { text-decoration: none; color: var(--on-field-soft); }
.foot-col a:hover { color: var(--on-field); text-decoration: underline; }
.wordmark { display: block; width: 100%; height: auto; margin-top: 48px; }
.wordmark text { fill: var(--on-field); font-family: var(--font); font-weight: 300; }
.legal { font-size: 0.8125rem; color: var(--on-field-soft); margin-top: 20px; max-width: 75ch; }
@media (max-width: 900px) { .foot-col { grid-column: span 6; } }

/* ---------- Внутренние страницы ---------- */
.page-head { padding-top: clamp(40px, 6vw, 96px); }
.page-head-grid { align-items: end; row-gap: 28px; }
.page-head .crumbs { grid-column: 1 / 7; grid-row: 1; }
.page-head h1 { grid-column: 1 / 7; grid-row: 2; font-size: clamp(2.4rem, 1.2rem + 3.6vw, 4.6rem); font-weight: 400; letter-spacing: -0.025em; }
.page-head .lead { grid-column: 1 / 7; grid-row: 3; font-size: var(--step-lead); line-height: 1.45; max-width: 40ch; }
.page-head .meta { grid-column: 1 / 7; grid-row: 4; font-size: var(--step-small); color: var(--soft); }
.page-plate { grid-column: 7 / 13; grid-row: 1 / 5; margin: 0; align-self: stretch; min-height: 360px; position: relative; }
.page-plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-composite: source-in; mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); mask-composite: intersect; }
.no-plate .page-head h1 { grid-column: 1 / 11; max-width: 18ch; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: var(--step-small); color: var(--soft); }
.crumbs li + li::before { content: "/"; margin-right: 10px; }
.crumbs a { color: var(--soft); }
@media (max-width: 900px) {
  .page-head h1, .page-head .lead, .page-head .meta { grid-column: 1 / -1; }
  .page-head h1 { font-size: 9vw; }
  .prose h2 { font-size: 1.625rem; }
  .page-plate { grid-column: 1 / -1; grid-row: 5; min-height: 0; aspect-ratio: 3 / 2; margin: 8px calc(var(--margin) * -1) 0; }
}

.article-grid { padding-top: clamp(64px, 8vw, 128px); padding-bottom: var(--section); align-items: start; }
.toc { grid-column: 1 / 4; position: sticky; top: 32px; font-size: var(--step-small); }
.toc p { color: var(--soft); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.toc a { text-decoration: none; color: var(--soft); }
.toc a:hover, .toc a.active { color: var(--ink); text-decoration: underline; }
.prose { grid-column: 4 / 13; min-width: 0; }
.prose > p, .prose > ul, .prose > ol, .prose > dl, .prose > h2, .prose > h3, .prose .faq, .prose .related { max-width: 68ch; }
.article-grid.no-toc .prose { grid-column: 1 / 13; }
@media (max-width: 1000px) {
  .toc { display: none; }
  .prose, .article-grid.no-toc .prose { grid-column: 1 / -1; }
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.875rem, 1.3rem + 1.9vw, 2.875rem); margin-top: 2.6em; scroll-margin-top: 32px; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.8em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--soft); }
.prose strong { font-weight: 600; }
.prose .src-line { font-size: var(--step-small); color: var(--soft); }
.prose dl dt { font-weight: 600; margin-top: 1.4em; }
.prose dl dd { margin: 0.3em 0 0; color: var(--soft); }

/* Таблицы — линии допустимы только здесь */
.table-wrap { overflow-x: auto; margin-left: calc(var(--margin) * -1); margin-right: calc(var(--margin) * -1); padding: 0 var(--margin); }
@media (min-width: 720px) { .table-wrap { margin-left: 0; margin-right: 0; padding: 0; } }
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; font-variant-numeric: tabular-nums lining-nums; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
th { font-weight: 500; color: var(--soft); font-size: var(--step-small); }
tbody tr:last-child td { border-bottom: 0; }

/* Источники страницы: свёрнутый список в конце */
.sources { margin-top: 3em; max-width: 68ch; font-size: var(--step-small); color: var(--soft); }
.sources summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.sources ul { margin: 0.6em 0 0; padding-left: 1.1em; display: grid; gap: 6px; }
.prose .sources li + li { margin-top: 0; }
.sources a { color: var(--soft); }

/* Вопросы и «читайте дальше» на внутренних страницах */
.faq { margin-top: 4em; }
.faq h2 { margin-bottom: 0.8em; }
.related { margin-top: 4em; }
.related ul { list-style: none; padding: 0; margin: 1em 0 0; display: grid; gap: 22px; }
.prose .related li + li { margin-top: 0; }
.related a { display: grid; grid-template-columns: minmax(0, 14em) 1fr; gap: 4px 24px; text-decoration: none; }
.related a:hover .rel-t { text-decoration: underline; }
.rel-t { font-size: 1.1875rem; }
.rel-d { color: var(--soft); font-size: 1rem; }
@media (max-width: 640px) { .related a { grid-template-columns: 1fr; } }

/* Триптих иллюстраций в конце статьи: разные размеры и сдвиги */
.band { padding-bottom: var(--section); }
.band-grid { align-items: start; }
.band figure { margin: 0; }
.band img { width: 100%; object-fit: cover; }
.band figcaption { font-size: var(--step-small); color: var(--soft); padding-top: 10px; }
.band-1 { grid-column: 1 / 5; } .band-1 img { aspect-ratio: 3 / 4; }
.band-2 { grid-column: 6 / 9; margin-top: 120px !important; } .band-2 img { aspect-ratio: 1; }
.band-3 { grid-column: 9 / 13; margin-top: 40px !important; } .band-3 img { aspect-ratio: 4 / 5; }
@media (max-width: 900px) {
  .band-1 { grid-column: 1 / -1; }
  .band-2 { grid-column: 1 / 8; margin-top: 40px !important; }
  .band-3 { grid-column: 6 / -1; margin-top: 40px !important; }
}

/* ---------- Графики ---------- */
.chart { margin: 2.2em 0; padding: clamp(18px, 3vw, 32px); background: #ebe5dd; border-radius: 4px; font-variant-numeric: tabular-nums lining-nums; }
@media (max-width: 600px) { .prose .chart { margin-left: calc(var(--margin) * -1); margin-right: calc(var(--margin) * -1); } }
.chart-title { font-size: 1.1875rem; line-height: 1.35; margin: 0 0 14px; }
.chart figcaption { margin-top: 18px; font-size: var(--step-small); color: var(--soft); line-height: 1.5; }
.chart figcaption a { color: var(--soft); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--step-small); color: var(--soft); margin-bottom: 16px; }
.key::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 7px; background: var(--plac); }
.key-fat::before { background: var(--fat); }
.key-lean::before, .key-combo::before { background: var(--lean); }
.key-sema::before { background: var(--sema); }
.key-bima::before { background: var(--ink); }

.stack-row + .stack-row { margin-top: 16px; }
.stack-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: 1rem; margin-bottom: 6px; }
.stack-lean { color: var(--lean); font-size: 0.9375rem; }
.stack-bar { display: flex; height: 40px; background: var(--line); }
.seg { width: var(--w); display: flex; align-items: center; padding: 0 12px; min-width: 0; }
.seg b { font-weight: 500; font-size: 0.9375rem; white-space: nowrap; }
.seg-fat { background: var(--fat); color: #2b2205; }
.seg-lean { background: var(--lean); color: #f4efe8; }

.hbars { display: grid; gap: 10px; }
.hbar { display: grid; gap: 4px; }
@media (min-width: 600px) { .hbar { grid-template-columns: 270px 1fr; align-items: center; gap: 14px; } }
.hbar-label { font-size: 0.9375rem; }
.hbar-track { display: flex; align-items: center; gap: 8px; }
.hbar-fill { width: var(--w); max-width: calc(100% - 72px); height: 16px; background: var(--plac); flex: none; }
.hbar-combo .hbar-fill { background: var(--lean); }
.hbar-sema .hbar-fill { background: var(--sema); }
.hbar-bima .hbar-fill { background: var(--ink); }
.hbar-val { font-size: 0.9375rem; white-space: nowrap; }

.dbars { display: grid; gap: 12px; }
.drow { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; align-items: center; }
@media (min-width: 640px) { .drow { grid-template-columns: 170px 1fr 1fr; } }
.dhead { font-size: var(--step-small); color: var(--soft); }
.dhead span:first-child { display: none; }
@media (min-width: 640px) { .dhead span:first-child { display: block; } }
.dlabel { grid-column: 1 / -1; font-size: 0.9375rem; }
@media (min-width: 640px) { .dlabel { grid-column: auto; } }
.dtrack { position: relative; height: 26px; }
.dtrack-fat { border-right: 1.5px solid var(--soft); }
.dtrack-lean::before { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1.5px; background: var(--soft); }
.dbar { position: absolute; top: 4px; height: 18px; width: var(--w); }
.dtrack-fat .dbar { right: 0; }
.dtrack-lean .dbar-neg { right: 50%; } .dtrack-lean .dbar-pos { left: 50%; }
.dbar-fat { background: var(--fat); } .dbar-lean { background: var(--lean); }
.dbar b { position: absolute; top: 50%; transform: translateY(-50%); font-size: 0.875rem; font-weight: 500; white-space: nowrap; color: var(--ink); }
.dbar-neg b { right: calc(100% + 6px); } .dbar-pos b { left: calc(100% + 6px); }
.dtrack-fat .dbar b { right: auto; left: 8px; color: #2b2205; }
.dtrack-fat .dbar[style*="--w:1"] b, .dtrack-fat .dbar[style*="--w:2"] b { left: auto; right: calc(100% + 6px); color: var(--ink); }

.pairs { display: grid; gap: 16px; }
.pair-label { display: block; font-size: 0.9375rem; margin-bottom: 4px; }
.pair-bars { display: grid; gap: 3px; }
.pbar { display: flex; align-items: center; width: var(--w); min-width: 6px; height: 16px; position: relative; }
.pbar b { position: absolute; left: calc(100% + 6px); font-size: 0.875rem; font-weight: 500; white-space: nowrap; }
.pbar-a { background: var(--ink); } .pbar-b { background: var(--plac); }

.chart-diagram svg { display: block; width: 100%; max-width: 460px; margin: 0 auto; color: var(--soft); font-family: var(--font); }
.mech-h { font-weight: 600; font-size: 14px; fill: var(--ink); }
.lig { fill: var(--fat); } .lig.dim { opacity: .45; }
.lig-t { font-size: 12px; font-weight: 700; fill: #2b2205; }
.arrow { stroke: var(--soft); stroke-width: 1.5; fill: none; }
.rec { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.cell { fill: color-mix(in srgb, var(--lean) 18%, var(--surface)); stroke: var(--lean); stroke-width: 1.5; }
.cell.grow { stroke-width: 3; }
.cell-t { font-size: 13px; fill: var(--ink); }
.brake.on { fill: var(--ink); } .brake.off { fill: none; stroke: var(--soft); stroke-dasharray: 4 4; }
.brake-t { font-size: 12px; font-weight: 600; fill: #f4efe8; } .brake-t.off { fill: var(--soft); }
.ab { fill: var(--fat); stroke: var(--ink); stroke-width: 1.2; }
.ab-t { font-size: 11px; fill: var(--ink); }
.out { font-size: 13px; fill: var(--soft); } .out.strong { fill: var(--lean); font-weight: 600; }
.mech-key { font-size: 11px; fill: var(--soft); }

.timeline { list-style: none; padding: 0; margin: 1.8em 0; display: grid; gap: 22px; }
.timeline li { display: grid; grid-template-columns: 8.5em 1fr; gap: 4px 20px; }
.prose .timeline li + li { margin-top: 0; }
.tl-when { color: var(--soft); font-variant-numeric: tabular-nums lining-nums; }
.tl-what a { font-size: var(--step-small); color: var(--soft); }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; } }

/* ---------- Движение ---------- */
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 80ms); }
.js .rise.in { opacity: 1; transform: none; }
figure img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.pic:hover img { transform: scale(1.015); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rise { opacity: 1; transform: none; }
}
@media print { .site-header, .toc, .related { display: none; } .site-footer { min-height: 0; } }
/* Вертикальная иллюстрация в горизонтальной шапке — целиком, без обрезки */
.plate-sarcopenia img { left: 50%; right: auto; width: auto; max-width: none; transform: translateX(-50%); }
@media (max-width: 900px) { .plate-sarcopenia { aspect-ratio: 4 / 5; max-width: 420px; margin-left: auto; margin-right: auto; } }
