/* Hallmark · shape: Long Document with figures (/), Long Document (/istoriya/, /blog/nejro-feodal/, /blog/diskretnye-i-nepreryvnye/), Index (/blog/), Offer (/raspakovka/) · genre: editorial · theme: brand · redesign: full · copy: verbatim · job: hire
 * paper: oklch(15.3% 0.029 269) · accent: oklch(74.3% 0.117 90) · display: Piazzolla · body: Manrope · outlier: Unbounded (the wordmark only) · hero: Stage (/, /istoriya/), Banner (/blog/, /blog/nejro-feodal/, /blog/diskretnye-i-nepreryvnye/), Counter (/raspakovka/) · nav: edge-aligned, the ∞ grmv8 wordmark left, the seven links the site already had and a quiet «Написать» at the right edge, a hairline under; a disclosure menu under 60rem · footer: mast, the wordmark set large over the copyright and the Meta line · signature: the night edition, a broadsheet set in Piazzolla on the grmv8 navy, gold kept for figures, rules and the one Telegram action
 * axes: dark/roman-serif/warm · posture: committed (the navy ground carries every surface; gold stays a signal) · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: R, a personal site the owner wrote long and asked to keep word for word; the argument rides on scale and order instead (the name and portrait, the figures set as headline numerals, the facts as a broadsheet grid), and the dust canvas, the drawn infinity loop, the spotlight cards, the shine sweep, the purple orbs and the count-up are gone */
/* Hallmark · dropped /, /#kto, /#fakty, /#obrazovanie, /#napravleniya, /#kontakty, /istoriya/, /raspakovka/, /blog/, /blog/nejro-feodal/, /blog/diskretnye-i-nepreryvnye/, img/liders-2.jpg, img/liders-3.jpg, img/innopolis-cdo-2021.jpg, img/innopolis-ooc-2022.jpg, img/worldskills-2022.jpg, img/tracker-2021.jpg, img/voobrazigrad-2021.jpg, img/mediasmysly-2019.jpg · the brief keeps the test copy inside /new/, so every root link became its twin under /new/ and the certificates open from /img/ by an absolute path */
/* Hallmark · dropped https://cdn.tailwindcss.com, https://unpkg.com/lucide@latest, Yandex.Metrika, bg-canvas · Tailwind and Lucide are replaced by this stylesheet and two inline icons, the counter must not count the test copy, the purple orb canvas fails 2a */
/* Hallmark · reworded "Подробнее →", "Обсудить задачу →", "tr6.ru →", "Подписаться →", "Читать статью →", "Все статьи блога →", "моя история →", "Написать в Telegram →", "← Главная", "← Назад", "Читать →" to the same words without the arrow · 63 names an arrow glued to link text; every word stays */
/* Hallmark · reworded "ИИ · 26 сентября 2026", "26 сентября 2026 · 3 минуты", "24 сентября 2026 · 2 минуты", "© Александр Громов, grmv8.ru · Блог" to the same words set in their own spans with no dot · 63 names a meta string joined by middle dots */
/* Hallmark · reworded "Для бизнеса", "Для экспертов", "Обучение", "Читать", "Антикризис и ИИ для бизнеса", "Дневник grmv8", "Свежее", "Где работал и учился", "Что я понял", "Главная мысль" from labels over a head to a line under the head, a heading of its own or a figcaption under the quote · 54 names a label set over a heading; every word stays */
/* Hallmark · waive 49b · the links «команда ИИ-агентов», «отдел из ИИ-агентов» and «минус 20 кг, переезд на Бали, 120 собеседований за день» sit inside running sentences and wrap to two lines at most on a 320px phone · they are phrases of the owner's prose, and shortening them would change his words */
/* Hallmark · waive 77 · the story and the posts are long documents: the article column holds 65ch of Piazzolla prose with the sticky aside of two offers beside it · a reading column is narrow on purpose, and widening it past 75ch would break the measure */
/* Hallmark · dropped 1, g, n · the value to="1", the gradient #g and the noise filter #n belonged to the drawn infinity loop and the grain overlay of the old hero, both removed with the decoration */
/* Hallmark · waive 44c · the blog index and the two posts open on a Banner: the head, the dek and the byline sit over the first lines of the list or the article · readers come to these pages to read, so the reading starts above the fold */
/* Hallmark · dismissed F4 · the hero's second action «Чем могу быть полезен» is the outlined quiet button, not a fill; the only gold fill on the screen is «Написать в Telegram» */
/* Hallmark · answered F2 · «Подключение...» and «Загрузка календаря...» are the owner's loader lines, kept as written under copy: verbatim */
/* Hallmark · dismissed 25 · .fact p is a caption of one sentence under a headline figure, held at 28ch so it sits under its number in a four-column grid */
/* Hallmark · dismissed 59 · the section ids are the site's own anchors (kto, fakty, obrazovanie, napravleniya, blog, kontakty, voprosy) that the nav and the story page link to, so none is merged away */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- canvas ---------- */
body { font-size: 1.0625rem; line-height: 1.6; }
strong, b { font-weight: 700; }
h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }
.muted { color: var(--color-muted); }
.gold { color: var(--color-accent); }
.fig { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: lining-nums tabular-nums; color: var(--color-accent); }
a { text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); transition: color var(--dur-short) var(--ease-out), text-decoration-color var(--dur-short) var(--ease-out); }
a:hover { text-decoration-color: var(--color-accent); }
a:active { color: var(--color-accent-2); }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-hair) solid transparent; border-radius: var(--radius-pill); font: 700 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-accent-2); }
.btn--quiet { background: transparent; color: var(--color-ink); border-color: var(--color-rule-2); }
.btn--quiet:hover { border-color: var(--color-accent); color: var(--color-accent-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--wide { width: 100%; }

/* ---------- nav ---------- */
.bar { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.bar__in { display: flex; align-items: center; gap: var(--space-lg); min-height: 68px; }
.wordmark { display: inline-flex; align-items: baseline; gap: var(--space-xs); font: 500 1.0625rem/1 var(--font-outlier); color: var(--color-ink); text-decoration: none; white-space: nowrap; }
.wordmark .inf, .foot__mark .inf { color: var(--color-accent); font-size: 1.35em; line-height: 0; }
.wordmark:hover { color: var(--color-accent-2); }
.bar__nav { display: flex; gap: var(--space-2xs); margin-left: auto; }
.bar__nav a { padding: var(--space-xs) var(--space-sm); font-size: var(--text-sm); color: var(--color-ink-2); text-decoration: none; white-space: nowrap; }
.bar__nav a:hover { color: var(--color-accent-2); }
.bar__nav a[aria-current] { color: var(--color-accent); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.5em; }
.bar__cta { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.burger { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 var(--space-sm); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); font: 700 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: border-color var(--dur-short) var(--ease-out); }
.burger:hover { border-color: var(--color-accent); }
.burger:active { transform: translateY(1px); }
.burger:disabled { opacity: 0.55; cursor: not-allowed; }
@media (max-width: 66rem) {
  .bar__in { flex-wrap: wrap; }
  .js .burger { display: inline-flex; }
  .bar__cta { margin-left: auto; }
  .js .bar__nav { display: none; }
  .bar__nav { order: 3; width: 100%; flex-direction: column; gap: 0; margin: 0; padding-bottom: var(--space-sm); }
  .js .bar.is-open .bar__nav { display: flex; }
  .bar__nav a { padding: var(--space-sm) 0; font-size: var(--text-md); border-top: var(--rule-hair) solid var(--color-rule); }
}

/* ---------- sections ---------- */
.sec { padding-block: var(--section-gap-s); }
.sec--l { padding-block: var(--section-gap) var(--section-gap-s); }
.band { background: var(--color-paper-2); color: var(--color-ink); }
.rule-top { border-top: var(--rule-hair) solid var(--color-rule); }
.head { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); }
section[id], div[id], p[id] { scroll-margin-top: var(--space-3xl); }

/* ---------- home: hero ---------- */
.hero { padding-block: var(--space-2xl) var(--space-2xl); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; }
.hero h1 { font-size: clamp(3.25rem, 7vw + 0.5rem, 7.5rem); line-height: 0.98; letter-spacing: -0.03em; max-width: 9ch; }
.hero .lead { margin-top: var(--space-lg); max-width: 54ch; color: var(--color-ink-2); font-size: var(--text-lg); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.portrait { margin: 0; position: relative; }
.portrait img { width: 100%; height: auto; aspect-ratio: 3 / 4; max-height: 70vh; object-fit: cover; object-position: 50% 0%; border-radius: var(--radius-card); outline: var(--rule-hair) solid var(--color-rule-2); outline-offset: var(--space-xs); }
.portrait figcaption { display: flex; gap: var(--space-xs); margin-top: var(--space-md); padding-top: var(--space-sm); font: 500 var(--text-sm)/1.3 var(--font-outlier); color: var(--color-accent); }
.portrait figcaption .inf { font-size: 1.35em; line-height: 0; }

/* ---------- home: organisations ---------- */
.orgs { background: var(--color-paper-2); color: var(--color-ink); padding-block: var(--space-2xl); border-block: var(--rule-hair) solid var(--color-rule); }
.orgs__in { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--gap-columns); align-items: start; }
.orgs h2 { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; letter-spacing: 0; color: var(--color-muted); line-height: 1.4; }
.orgs ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--gap-columns); margin: 0; padding: 0; list-style: none; }
.orgs li { padding-block: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule-2); font: 400 var(--text-xl)/1.2 var(--font-display); color: var(--color-ink); }

/* ---------- home: who ---------- */
.kto__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: start; }
.kto__side { position: sticky; top: calc(68px + var(--space-xl)); }
.kto__side h2 { margin-bottom: var(--space-2xl); }
.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); margin: 0; padding: 0; list-style: none; }
.figs li { display: grid; align-content: start; gap: var(--space-sm); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule-2); }
.figs .fig { font-size: var(--text-display-s); white-space: nowrap; }
.figs .fig small { font-size: 0.42em; letter-spacing: 0; margin-left: var(--space-2xs); color: var(--color-ink-2); }
.figs span { font-size: var(--text-sm); color: var(--color-muted); line-height: 1.45; }
.prose { display: grid; gap: var(--space-md); }
.prose p { max-width: 65ch; color: var(--color-ink-2); }
.prose p:first-child { font: 400 var(--text-xl)/1.4 var(--font-display); color: var(--color-ink); letter-spacing: -0.005em; }
.story-link { margin-top: var(--space-md); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
.story-link a { color: var(--color-accent); font-weight: 700; text-decoration-line: underline; }

/* ---------- home: facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--gap-columns); margin: 0; padding: 0; list-style: none; }
.facts li { display: flex; }
.fact { display: grid; align-content: start; gap: var(--space-md); width: 100%; padding-block: var(--space-xl) var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule-2); color: inherit; text-decoration: none; }
.facts li:nth-child(n+5) .fact { border-top-color: var(--color-rule); }
.fact .fig { font-size: clamp(2.5rem, 3vw + 1rem, 4rem); }
.fact p { font-size: var(--text-md); color: var(--color-ink-2); line-height: 1.5; max-width: 28ch; }
a.fact p { text-decoration: underline; text-decoration-color: var(--color-rule-2); text-underline-offset: 0.2em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
a.fact:hover p { text-decoration-color: var(--color-accent); }
a.fact:active .fig { color: var(--color-accent-2); }

/* ---------- home: education ---------- */
.edu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3xl); }
.edu h3 { margin-bottom: var(--space-lg); }
.timeline { margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule-2); }
.timeline li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--space-md); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); font-size: var(--text-md); color: var(--color-ink-2); }
.timeline b { font: 400 var(--text-lg)/1.3 var(--font-display); color: var(--color-accent); font-variant-numeric: lining-nums tabular-nums; }
.certs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); margin: var(--space-3xl) 0 0; padding: 0; list-style: none; }
.certs a { display: block; border-radius: var(--radius-card); background: var(--color-sheet); transition: transform var(--dur-short) var(--ease-out); }
.certs a:hover { transform: translateY(-2px); }
.certs a:active { transform: none; }
.certs img { width: 100%; height: auto; aspect-ratio: 1000 / 708; object-fit: cover; border-radius: var(--radius-card); }

/* lightbox */
.lb { width: min(100% - 2 * var(--space-md), 1100px); max-height: 92dvh; padding: 0; border: 0; border-radius: var(--radius-card); background: var(--color-sheet); }
.lb::backdrop { background: var(--color-scrim); }
.lb img { width: 100%; height: auto; max-height: 86dvh; object-fit: contain; }
.lb form { position: absolute; top: var(--space-xs); right: var(--space-xs); margin: 0; }
.lb__close { min-height: 44px; padding: 0 var(--space-md); border: 0; border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink); font: 700 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.lb__close:hover { background: var(--color-paper-3); }
.lb__close:active { transform: translateY(1px); }
.lb__close:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- home: directions ---------- */
.dirs { margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule-2); }
.dir { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 2fr); gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule); color: inherit; text-decoration: none; transition: background-color var(--dur-short) var(--ease-out); }
.dir:hover { background: var(--color-paper-2); }
.dir h3 { font-size: var(--text-2xl); line-height: 1.15; }
.dir__who { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-accent); }
.dir__text { color: var(--color-ink-2); max-width: 52ch; }
.dir__go { justify-self: end; font-size: var(--text-sm); font-weight: 700; color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.3em; white-space: nowrap; }
.dir:hover .dir__go { color: var(--color-accent-2); }
.dir:active .dir__go { color: var(--color-accent); }

/* ---------- home: blog ---------- */
.teaser { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; color: inherit; text-decoration: none; }
.teaser img, .pcard img, .hero-fig img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-card); }
.teaser h3, .pcard h2 { font-size: var(--text-section); line-height: 1.08; max-width: 18ch; }
.teaser p, .pcard p { margin-top: var(--space-md); color: var(--color-ink-2); max-width: 46ch; }
.meta { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }
.meta b { font-weight: 700; color: var(--color-accent); }
.go { display: inline-block; margin-top: var(--space-lg); font-size: var(--text-sm); font-weight: 700; text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.3em; }
.teaser:hover .go, .pcard:hover .go { color: var(--color-accent-2); }
.teaser:active .go, .pcard:active .go { color: var(--color-accent); }
.blog-all { margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.blog-all a { font-weight: 700; color: var(--color-accent); }

/* ---------- home: contacts ---------- */
.one-nick { font: 400 var(--text-display-s)/1.1 var(--font-display); letter-spacing: -0.02em; max-width: 24ch; margin-bottom: var(--space-2xl); text-wrap: balance; }
.contacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--gap-columns); margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule-2); }
.contact { display: grid; align-content: start; gap: var(--space-xs); padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); color: inherit; text-decoration: none; }
.contact span { font-size: var(--text-sm); color: var(--color-muted); }
.contact strong { font: 400 var(--text-xl)/1.2 var(--font-display); color: var(--color-ink); overflow-wrap: anywhere; }
.contact:hover strong { color: var(--color-accent-2); }
.contact:active strong { color: var(--color-accent); }

/* ---------- home: faq ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: start; }
.faq__list { border-top: var(--rule-hair) solid var(--color-rule-2); }
details { border-bottom: var(--rule-hair) solid var(--color-rule); }
summary { display: flex; justify-content: space-between; gap: var(--space-lg); padding-block: var(--space-lg); cursor: pointer; list-style: none; font: 400 var(--text-xl)/1.3 var(--font-display); transition: color var(--dur-short) var(--ease-out); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--font-body); color: var(--color-accent); flex-shrink: 0; }
details[open] summary::after { content: "\2212"; }
summary:hover { color: var(--color-accent-2); }
details p { padding-bottom: var(--space-lg); color: var(--color-ink-2); max-width: 65ch; }
details a { color: var(--color-accent); }

/* ---------- footer ---------- */
.foot { padding-block: var(--space-3xl) var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule-2); background: var(--color-paper-2); }
.foot__mark { font: 500 clamp(2.5rem, 6vw, 5.5rem)/1 var(--font-outlier); letter-spacing: -0.02em; color: var(--color-ink); margin-bottom: var(--space-2xl); }
.foot__lines { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); font-size: var(--text-sm); color: var(--color-muted); }
.foot__lines p:first-child { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); }
.foot a { color: var(--color-ink-2); }
.foot a:hover { color: var(--color-accent-2); }

/* ---------- documents: story and posts ---------- */
.crumbs { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.crumbs li + li::before { content: "/"; margin-right: var(--space-xs); color: var(--color-rule-2); }
.crumbs a { color: var(--color-ink-2); }
.crumbs [aria-current] { color: var(--color-accent); }
.doc-hero { padding-block: var(--space-xl) var(--space-2xl); }
.doc-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; }
.doc-hero__grid--post { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); grid-template-areas: "crumbs crumbs" "title fig" "dek fig" "by fig"; row-gap: 0; align-items: start; }
.doc-hero__grid--post .crumbs-wrap { grid-area: crumbs; margin-bottom: var(--space-xl); }
.doc-hero__grid--post h1 { grid-area: title; }
.doc-hero__grid--post .hero-fig { grid-area: fig; align-self: center; margin: 0; }
.doc-hero__grid--post .dek { grid-area: dek; margin-top: var(--space-lg); }
.doc-hero__grid--post .byline { grid-area: by; }
.doc-hero h1 { margin-top: var(--space-lg); font-size: var(--text-display-s); line-height: 1.04; max-width: 18ch; }
.doc-hero__grid--post h1 { margin-top: 0; }
.dek { font: 400 var(--text-lead)/1.5 var(--font-display); color: var(--color-ink-2); max-width: 46ch; }
.deks { display: grid; gap: var(--space-md); margin-top: var(--space-lg); }
.hist-fig { margin: 0; }
.hist-fig img { width: 100%; height: auto; aspect-ratio: 3 / 4; max-height: 72vh; object-fit: cover; object-position: 50% 35%; border-radius: var(--radius-card); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-md); margin-top: var(--space-xl); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); color: var(--color-muted); }
.byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; flex-shrink: 0; }
.byline b { color: var(--color-ink); }

.doc { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--space-3xl); align-items: start; padding-block: var(--space-2xl) var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule); }
.toc { margin-bottom: var(--space-3xl); padding: var(--space-xl); background: var(--color-paper-2); border-radius: var(--radius-card); }
.toc h2 { font: 700 var(--text-sm)/1.4 var(--font-body); letter-spacing: 0; color: var(--color-muted); margin-bottom: var(--space-md); }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: t; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs) var(--space-xl); }
.toc li { counter-increment: t; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); align-items: baseline; }
.toc li::before { content: counter(t, decimal-leading-zero); font: 400 var(--text-md)/1 var(--font-display); color: var(--color-accent); font-variant-numeric: lining-nums tabular-nums; }
.toc a { color: var(--color-ink-2); text-decoration-color: var(--color-rule-2); }
.toc a:hover { color: var(--color-accent-2); }

.body { font: 400 1.1875rem/1.72 var(--font-display); color: var(--color-ink-2); }
.body > * + * { margin-top: var(--space-md); }
.body p { max-width: 65ch; }
.body a { color: var(--color-accent); }
.body b { font-family: var(--font-body); font-size: 0.95em; color: var(--color-ink); }
.body .first::first-letter { float: left; margin: var(--space-2xs) var(--space-sm) 0 0; font-size: 3.6em; line-height: 0.8; color: var(--color-ink); }
.body h2 { margin-top: var(--space-3xl); margin-bottom: var(--space-lg); font-size: clamp(1.875rem, 1.8vw + 1rem, 2.75rem); line-height: 1.1; max-width: 22ch; color: var(--color-ink); }
.body h2:first-child { margin-top: 0; }
.ch-n { display: block; margin-bottom: var(--space-sm); font-size: 0.5em; color: var(--color-accent); font-variant-numeric: lining-nums tabular-nums; letter-spacing: 0; }
.ph { margin-block: var(--space-xl); display: grid; gap: var(--space-md); }
.ph.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 46rem; }
.ph.one { max-width: 26rem; }
.ph img { width: 100%; height: auto; border-radius: var(--radius-card); }
.quote { margin-block: var(--space-2xl); padding-block: var(--space-xl); border-block: var(--rule-hair) solid var(--color-accent); }
.quote blockquote { margin: 0; font: 400 var(--text-2xl)/1.3 var(--font-display); color: var(--color-ink); letter-spacing: -0.01em; max-width: 30ch; hanging-punctuation: first; }
.quote figcaption { margin-top: var(--space-md); font: 400 var(--text-sm)/1.4 var(--font-body); color: var(--color-accent); }
.note { padding: var(--space-lg) var(--space-xl); background: var(--color-paper-2); border-radius: var(--radius-card); font: 400 var(--text-md)/1.6 var(--font-body); color: var(--color-ink-2); }
.note b { font-size: 1em; }
.src { font: 400 var(--text-sm)/1.6 var(--font-body); color: var(--color-muted); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); font: 400 var(--text-sm)/1.4 var(--font-body); color: var(--color-muted); }
.share a { color: var(--color-ink); font-weight: 700; }
.copy { min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); font: 700 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: border-color var(--dur-short) var(--ease-out); }
.copy:hover { border-color: var(--color-accent); }
.copy:active { transform: translateY(1px); }
.copy:disabled { opacity: 0.55; cursor: not-allowed; }

.side { position: sticky; top: calc(68px + var(--space-xl)); display: grid; gap: var(--space-xl); }
.scard { display: grid; gap: var(--space-md); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-accent); }
.scard h3 { font-size: var(--text-xl); line-height: 1.2; }
.scard__who { font-size: var(--text-sm); color: var(--color-accent); }
.scard p { font-size: var(--text-md); color: var(--color-ink-2); }
.scard ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-xs); }
.scard li { padding-left: var(--space-md); position: relative; color: var(--color-ink-2); }
.scard li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: var(--space-xs); border-top: var(--rule-hair) solid var(--color-accent); }
.scard .hint { font-size: var(--text-sm); color: var(--color-muted); }
.scard .btn { justify-self: start; }

.cta { background: var(--color-paper-2); color: var(--color-ink); padding-block: var(--section-gap-s); }
.cta__in { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--gap-columns); align-items: end; }
.cta h2 { font-size: var(--text-section); max-width: 18ch; }
.cta p { margin-top: var(--space-lg); color: var(--color-ink-2); max-width: 56ch; }
.cta .btn { justify-self: end; }
.pnav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); padding-block: var(--space-2xl); }
.pnav a { display: grid; gap: var(--space-xs); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule-2); color: inherit; text-decoration: none; }
.pnav span { font-size: var(--text-sm); color: var(--color-muted); }
.pnav strong { font: 400 var(--text-lg)/1.3 var(--font-display); }
.pnav a:hover strong { color: var(--color-accent-2); }
.pnav a:active strong { color: var(--color-accent); }

/* reading widget */
.rw { position: fixed; right: var(--space-md); bottom: var(--space-md); z-index: var(--z-raised); display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-2xs); background: var(--color-paper-3); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-card); box-shadow: var(--shadow-card); transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.js .rw { opacity: 0; transform: translateY(var(--space-xs)); pointer-events: none; }
.js .rw.on { opacity: 1; transform: none; pointer-events: auto; }
.rw-ring { width: 36px; height: 36px; transform: rotate(-90deg); flex-shrink: 0; }
.rw-ring circle { fill: none; stroke-width: 3; }
.rw-ring .bg { stroke: var(--color-rule-2); }
.rw-ring .fg { stroke: var(--color-accent); stroke-dasharray: 94.25; stroke-dashoffset: 94.25; }
.rw-time { display: inline-flex; align-items: baseline; gap: var(--space-2xs); padding-inline: var(--space-2xs); font-size: var(--text-sm); color: var(--color-ink-2); white-space: nowrap; }
.rw-time b { font: 400 var(--text-lg)/1 var(--font-display); color: var(--color-ink); }
.rw-top, .rw-cta { display: none; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 var(--space-sm); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); font: 700 var(--text-sm)/1 var(--font-body); text-decoration: none; cursor: pointer; transition: border-color var(--dur-short) var(--ease-out); }
.rw-top:hover, .rw-cta:hover { border-color: var(--color-accent); }
.rw-top:active, .rw-cta:active { transform: translateY(1px); }
.rw-top:disabled { opacity: 0.55; cursor: not-allowed; }
.rw.up .rw-top { display: inline-flex; }
.rw.cta .rw-cta { display: inline-flex; border-color: var(--color-accent); color: var(--color-accent); }

/* ---------- blog index ---------- */
.bhead { padding-block: var(--space-3xl) var(--space-2xl); }
.bhead__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); align-items: end; }
.bhead h1 { font-size: clamp(4rem, 9vw, 8rem); line-height: 0.95; letter-spacing: -0.035em; }
.bhead p { color: var(--color-ink-2); max-width: 48ch; }
.bhead .bhead__run { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-accent); }
.fresh { padding-block: var(--space-2xl) var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule); }
.fresh > .container > h2 { margin-bottom: var(--space-2xl); }
.plist { display: grid; gap: var(--space-3xl); }
.pcard { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; color: inherit; text-decoration: none; }
.pcard + .pcard { padding-top: var(--space-3xl); border-top: var(--rule-hair) solid var(--color-rule); }

/* ---------- offer page ---------- */
.offer-page { min-height: 100dvh; display: grid; align-items: center; padding-block: var(--space-2xl); }
.offer { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: stretch; }
.offer h1 { font-size: var(--text-display-s); line-height: 1.04; max-width: 16ch; }
.specs { margin: var(--space-2xl) 0 0; padding: 0; list-style: none; counter-reset: s; border-top: var(--rule-hair) solid var(--color-rule-2); }
.specs li { counter-increment: s; display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: var(--space-md); padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.specs li::before { content: counter(s); font: 400 var(--text-3xl)/1 var(--font-display); color: var(--color-accent); font-variant-numeric: lining-nums; }
.specs strong { display: block; margin-bottom: var(--space-xs); font-size: var(--text-lg); color: var(--color-ink); }
.specs p { color: var(--color-ink-2); max-width: 60ch; }
.buy { display: grid; align-content: space-between; gap: var(--space-lg); padding: var(--space-xl); background: var(--color-paper-2); border-radius: var(--radius-card); }
.buy__row { display: grid; gap: var(--space-2xs); }
.buy__label { font-size: var(--text-sm); color: var(--color-accent); }
.buy__val { font-size: var(--text-lg); color: var(--color-ink); }
.buy__price { font: 400 var(--text-display-s)/1 var(--font-display); letter-spacing: -0.03em; color: var(--color-ink); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.buy .btn { min-height: 52px; }

.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: flex; align-items: center; justify-content: center; padding: var(--space-lg); background: var(--color-scrim); opacity: 0; visibility: hidden; transition: opacity var(--dur-short) var(--ease-out), visibility 0s linear var(--dur-short); }
.modal.is-open { opacity: 1; visibility: visible; transition: opacity var(--dur-short) var(--ease-out); }
.modal__box { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 600px; height: 85dvh; background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-card); overflow: hidden; transform: scale(0.97); transition: transform var(--dur-short) var(--ease-out); }
.modal__box--wide { max-width: 800px; height: 90dvh; }
.modal.is-open .modal__box { transform: none; }
.modal__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); padding: var(--space-md) var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); flex-shrink: 0; }
.modal__title { font: 400 var(--text-xl)/1.2 var(--font-display); }
.modal__close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); cursor: pointer; transition: border-color var(--dur-short) var(--ease-out); }
.modal__close:hover { border-color: var(--color-accent); }
.modal__close:active { transform: translateY(1px); }
.modal__close:disabled { opacity: 0.55; cursor: not-allowed; }
.modal__close svg { width: 20px; height: 20px; }
.modal__body { position: relative; flex-grow: 1; overflow-y: auto; background: var(--color-paper-3); }
.modal__body--pad { padding: var(--space-md); }
.loader { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-sm); pointer-events: none; font-size: var(--text-sm); color: var(--color-muted); transition: opacity var(--dur-long) var(--ease-out); }
.spin { width: 28px; height: 28px; border: 2px solid var(--color-rule-2); border-top-color: var(--color-accent); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.embed-wait { opacity: 0; transition: opacity var(--dur-long) var(--ease-out); }

/* ---------- small screens ---------- */
@media (max-width: 60rem) {
  .hero__grid, .kto__grid, .doc-hero__grid, .bhead__in, .offer, .cta__in, .teaser, .pcard, .faq, .orgs__in, .edu, .doc { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .doc-hero__grid--post { grid-template-areas: "crumbs" "title" "fig" "dek" "by"; }
  .doc-hero__grid--post .hero-fig { margin-top: var(--space-xl); }
  .hero { padding-block: var(--space-xl) var(--space-2xl); }
  .portrait { max-width: 30rem; }
  .portrait img, .hist-fig img { max-height: none; }
  .kto__side, .side { position: static; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dir { grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); }
  .dir__go { justify-self: start; }
  .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .orgs ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta .btn { justify-self: start; }
  .pnav { grid-template-columns: minmax(0, 1fr); }
  .toc ol { grid-template-columns: minmax(0, 1fr); }
  .foot__lines { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  body { font-size: var(--text-md); }
  .facts, .contacts { grid-template-columns: minmax(0, 1fr); }
  .fact { padding-block: var(--space-lg); }
  .figs .fig { font-size: var(--text-3xl); }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .orgs li { font-size: var(--text-lg); white-space: normal; }
  .body { font-size: 1.125rem; }
  .toc, .note, .buy { padding: var(--space-lg); }
  .modal { padding: 0; }
  .modal__box, .modal__box--wide { height: 100dvh; max-width: none; border-radius: 0; }
  .rw-time { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .certs a, .rw, .modal, .modal__box, .dir, a, summary { transition: none; }
  .certs a:hover, .btn:active, .modal__box { transform: none; }
  .spin { animation-duration: 2.4s; }
}

/* timeline entries read at body size (kept after the label rules on purpose) */
.timeline .tl-text { font-size: var(--text-md); }
