/* nevrovet.ru - личный сайт Максима Лапшина.
   Идея: рефлекторная дуга клиники (рецептор - путь - центр - эффектор), по ней разложены кейсы.
   Палитра светлая: «плёнка» = фон студийного портрета, «сигнал» = кобальт. */

@font-face {
  font-family: "Literata";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/assets/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(/assets/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;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(/assets/fonts/golos-text-cyrillic-wght-normal.woff2) format("woff2-variations");
  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-display: swap;
  font-weight: 400 900;
  src: url(/assets/fonts/golos-text-latin-wght-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;
}

:root {
  --paper: #F3F5F6;
  --surface: #FFFFFF;
  --ink: #17202A;
  --muted: #55616D;
  --line: #D6DCE1;
  --film: #B7C5D0;
  --film-soft: #DCE4EA;
  --signal: #2A47D6;
  --signal-deep: #1F37AE;
  --signal-soft: #E4E9FB;
  --ok: #176E4F;
  --ok-bg: #E2F0E9;
  --pilot: #855607;
  --pilot-bg: #F5ECD8;
  --research: #56606B;
  --research-bg: #E7EAED;

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 12px; top: -60px; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

/* Заголовки разделов */
h2 {
  font-family: var(--serif);
  font-weight: 430;
  font-size: clamp(2rem, 1.35rem + 2.3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
}

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  border-radius: 12px; border: 1px solid var(--signal);
  background: var(--signal); color: #fff;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--signal-deep); border-color: var(--signal-deep); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); font-variant-numeric: lining-nums; }
.btn-quiet:hover { background: var(--surface); border-color: var(--ink); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: .9375rem; }
.text-link { color: var(--ink); text-decoration-color: var(--film); text-decoration-thickness: 2px; text-underline-offset: .2em; font-size: 1rem; }
.text-link:hover { color: var(--signal-deep); text-decoration-color: var(--signal); }

/* Шапка */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 1.0625rem; }
.brand-mark { width: 30px; height: 30px; color: var(--signal); fill: var(--signal); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 1rem; }
.nav a:hover { color: var(--ink); }
@media (max-width: 820px) { .nav { display: none; } }

/* Первый экран */
.hero {
  display: grid; gap: 40px;
  padding-top: clamp(24px, 5vw, 64px);
  padding-bottom: clamp(48px, 6vw, 80px);
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr); gap: 64px; align-items: end; }
}
.hero-name {
  display: block;
  font-family: var(--serif); font-weight: 420;
  font-size: clamp(3rem, 1.6rem + 5.4vw, 5.6rem);
  line-height: 1.02; letter-spacing: -0.022em;
  color: var(--ink);
}
.hero-claim {
  display: block; max-width: 34ch; margin-top: 22px;
  font-family: var(--serif); font-weight: 430;
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.95rem);
  line-height: 1.25; letter-spacing: -0.008em;
  text-wrap: balance;
}
.lead { margin-top: 28px; max-width: 56ch; color: var(--muted); font-size: 1.1875rem; line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.portrait {
  margin: 0; overflow: hidden;
  background: var(--film); border-radius: 28px;
  aspect-ratio: 610 / 640;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) {
  .hero { gap: 20px; }
  .portrait { order: -1; width: 112px; border-radius: 18px; }
  .lead { margin-top: 20px; font-size: 1.0625rem; }
  .actions { margin-top: 24px; }
}

/* Цифры */
.facts { padding-bottom: var(--section); }
.facts-grid { display: grid; gap: 0 48px; grid-template-columns: 1fr; margin: 0; }
@media (min-width: 340px) { .facts-grid { grid-template-columns: repeat(2, 1fr); gap: 0 20px; } }
@media (min-width: 620px) { .facts-grid { gap: 0 48px; } }
@media (min-width: 980px) { .facts-grid { grid-template-columns: repeat(3, 1fr); } }
.facts-grid > div { border-top: 1px solid var(--line); padding: 22px 0 26px; display: grid; gap: 6px; align-content: start; }
.facts-grid dt {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.1rem, 1.6rem + 1.4vw, 2.75rem); line-height: 1.05;
  font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.01em;
}
.facts-grid dd { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.5; max-width: 32ch; }
@media (max-width: 619px) { .facts-grid dd { font-size: .9375rem; } .facts-grid dt { font-size: 1.85rem; } }

/* Рефлекторная дуга */
.arc { background: var(--surface); padding-block: var(--section); }
.section-head { display: grid; gap: 24px; }
@media (min-width: 900px) { .section-head { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; } }
.section-intro { display: grid; gap: 16px; color: var(--muted); max-width: 62ch; }

.arc-map { margin-top: clamp(40px, 6vw, 72px); }
.arc-figure { position: relative; aspect-ratio: 5 / 1; }
.arc-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.arc-base, .arc-live { fill: none; stroke-linecap: round; }
.arc-base { stroke: var(--film); stroke-width: 6; }
.arc-live { stroke: var(--signal); stroke-width: 6; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.js .arc-live { stroke-dashoffset: 1; }

.arc-node {
  position: absolute; transform: translate(-50%, -50%);
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--signal); color: var(--signal);
  font-weight: 600; font-size: .9375rem; line-height: 1;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.arc-node.n1 { left: 12.5%; top: 80%; }
.arc-node.n2 { left: 37.5%; top: 25%; }
.arc-node.n3 { left: 62.5%; top: 25%; background: var(--signal); color: #fff; width: 44px; height: 44px; font-size: 1.0625rem; }
.arc-node.n4 { left: 87.5%; top: 80%; }
.arc-node.is-hot { transform: translate(-50%, -50%) scale(1.18); background: var(--signal); color: #fff; }
.arc-pulse {
  position: absolute; left: 12.5%; top: 80%;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--signal); box-shadow: 0 0 0 6px rgba(42, 71, 214, .18);
  opacity: 0; pointer-events: none;
}

.arc-stages { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 10px; }
.arc-stages a { display: grid; gap: 4px; padding: 14px 10px; text-align: center; text-decoration: none; border-radius: 12px; }
.arc-stages a:hover { background: var(--signal-soft); }
.stage-name { font-family: var(--serif); font-weight: 480; font-size: 1.3rem; line-height: 1.2; }
.stage-sub { color: var(--muted); font-size: .9375rem; line-height: 1.4; }
@media (max-width: 719px) {
  .arc-node { width: 26px; height: 26px; font-size: .8125rem; border-width: 2px; }
  .arc-node.n3 { width: 32px; height: 32px; font-size: .875rem; }
  .arc-stages { grid-template-columns: 1fr 1fr; gap: 4px; counter-reset: st; margin-top: 18px; }
  .arc-stages a { text-align: left; padding: 12px; }
  .arc-stages li { counter-increment: st; }
  .stage-name::before { content: counter(st) ". "; color: var(--signal); }
}

/* Этапы и кейсы */
.stage { margin-top: clamp(64px, 8vw, 104px); scroll-margin-top: 24px; }
.stage-title {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
  font-family: var(--serif); font-weight: 450; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); line-height: 1.2;
  padding-bottom: 20px;
}
.stage-num {
  align-self: center;
  display: inline-grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--signal); color: var(--signal);
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
}
.stage-title-sub { font-family: var(--sans); font-size: 1.0625rem; color: var(--muted); font-weight: 400; }

.case { border-top: 1px solid var(--line); padding-block: 30px 34px; }
.case-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; }
.case h4 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.3rem, 1.15rem + .5vw, 1.55rem); line-height: 1.25; max-width: 44ch; }
.status {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 4px 12px; border-radius: 999px;
  font-size: .875rem; font-weight: 500; line-height: 1.4;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-ok { color: var(--ok); background: var(--ok-bg); }
.status-pilot { color: var(--pilot); background: var(--pilot-bg); }
.status-research { color: var(--research); background: var(--research-bg); }

.case-body { display: grid; gap: 18px; margin-top: 20px; }
@media (min-width: 860px) { .case-body { grid-template-columns: repeat(3, 1fr); gap: 36px; } }
.case-body p:not(.case-label) { font-size: 1rem; line-height: 1.58; }
.case-label { font-size: .875rem; font-weight: 600; color: var(--signal); margin-bottom: 6px; }
.case-text { margin-top: 14px; max-width: 70ch; font-size: 1rem; }

details.case { padding-block: 0; }
details.case > summary {
  position: relative; cursor: pointer; list-style: none;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: baseline;
  padding: 24px 44px 26px 0;
}
details.case > summary::-webkit-details-marker { display: none; }
details.case > summary:hover h4 { color: var(--signal-deep); }
.case-result { grid-column: 1 / -1; max-width: 72ch; color: var(--muted); font-size: 1rem; line-height: 1.5; }
details.case .case-body { margin-top: 0; padding: 0 44px 30px 0; }
@media (min-width: 860px) { details.case .case-body { grid-template-columns: repeat(2, 1fr); } }
details.case .case-list { margin-top: 0; padding: 0 44px 30px 0; }
@media (max-width: 619px) { details.case > summary { grid-template-columns: minmax(0, 1fr); justify-items: start; padding-right: 36px; } details.case .case-body, details.case .case-list { padding-right: 0; } }

.case-flagship {
  border-top: 0; margin-bottom: 8px;
  padding: clamp(24px, 3.5vw, 40px);
  background: var(--paper); border-radius: 24px;
}
.case-flagship + .case { border-top: 0; }
.modules-more { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.modules-toggle { position: relative; cursor: pointer; list-style: none; padding: 6px 44px 6px 0; font-weight: 600; font-size: 1rem; }
.modules-toggle::-webkit-details-marker { display: none; }
.modules-toggle:hover { color: var(--signal-deep); }
.modules-more > .steps, .modules-more > .principles-grid { margin-top: 20px; }

.modules, .case-list { display: grid; gap: 10px; font-size: 1rem; line-height: 1.5; }
.modules { display: block; margin-top: 16px; }
.modules li { break-inside: avoid; margin-bottom: 10px; }
@media (min-width: 860px) { .modules { columns: 2; column-gap: 48px; } }
.case-list { margin-top: 18px; max-width: 74ch; }
.modules li, .case-list li { position: relative; padding-left: 22px; }
.modules li::before, .case-list li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--signal);
}

/* Обучение и контент */
.more { padding-bottom: var(--section); }
.more-lead { margin-top: 16px; max-width: 62ch; color: var(--muted); }
.more-grid { display: grid; gap: 36px 48px; margin-top: 20px; }
@media (min-width: 640px) { .more-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .more-grid { grid-template-columns: repeat(3, 1fr); } }
.more-grid article { border-top: 1px solid var(--line); padding-top: 20px; }
.more-grid h3 { font-weight: 600; font-size: 1.125rem; line-height: 1.35; }
.more-grid p { margin-top: 8px; color: var(--muted); font-size: 1rem; line-height: 1.55; }

/* Путь */
.path { padding-bottom: var(--section); }
.path-inner { display: grid; gap: 32px; }
@media (min-width: 900px) { .path-inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; } }
.edu-title { margin-top: 28px; font-weight: 600; font-size: 1rem; }
.edu { margin-top: 12px; max-width: 46ch; }
.edu li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; border-top: 1px solid var(--line); padding-block: 12px; font-size: 1rem; line-height: 1.45; }
.edu-year { color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }
.edu-note { margin-top: 14px; color: var(--muted); font-size: 1rem; }
.timeline { counter-reset: step; display: grid; }
.timeline li { counter-increment: step; position: relative; padding: 0 0 36px 64px; }
.timeline li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--signal); color: var(--signal); background: var(--surface);
  font-weight: 600; font-size: 1rem;
}
.timeline li::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--film); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; line-height: 1.25; padding-top: 4px; }
.timeline p { margin-top: 8px; color: var(--muted); max-width: 58ch; }

/* Принципы */
.principles { padding-block: var(--section); }
.principles-grid { display: grid; gap: 36px 48px; margin-top: 40px; }
@media (min-width: 700px) { .principles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .principles-grid { grid-template-columns: repeat(3, 1fr); } }
.principle { font-family: var(--serif); font-weight: 460; font-size: 1.45rem; line-height: 1.25; margin-bottom: 10px; }
.principles-grid p:not(.principle) { color: var(--muted); font-size: 1rem; }

/* Экспертиза: главное содержание визитки, строки вида «область - что это значит» */
.expertise { padding-bottom: var(--section); }
.expertise-list { margin: 36px 0 0; }
.expertise-list > div { display: grid; gap: 6px 32px; border-top: 1px solid var(--line); padding-block: 22px 24px; }
@media (min-width: 900px) { .expertise-list > div { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; } }
.expertise-list dt { font-family: var(--serif); font-weight: 500; font-size: clamp(1.3rem, 1.15rem + .5vw, 1.55rem); line-height: 1.25; }
.expertise-list dd { margin: 0; max-width: 60ch; color: var(--muted); font-size: 1rem; }

/* Для коллег: своя версия для каждого читателя */
.who { padding-bottom: var(--section); }
.who-list { margin-top: 36px; }
.who-list > li { display: grid; gap: 10px 32px; border-top: 1px solid var(--line); padding-block: 26px 30px; }
@media (min-width: 900px) { .who-list > li { grid-template-columns: minmax(0, .45fr) minmax(0, 1fr); } }
.who-for { font-weight: 600; font-size: 1rem; line-height: 1.4; }
.who-list h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.3rem, 1.15rem + .5vw, 1.55rem); line-height: 1.25; max-width: 40ch; text-wrap: balance; }
.who-list h3 + p { margin-top: 10px; max-width: 66ch; color: var(--muted); font-size: 1rem; }
.who-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }

/* Один случай целиком: ложная цифра и настоящая */
.story { background: var(--film-soft); padding-block: var(--section); }
.story-inner { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .story-inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; }
  .story-inner > div:first-child { position: sticky; top: 32px; align-self: start; }
}
.story-intro { margin-top: 16px; max-width: 34ch; color: #3E4A56; }
.story-figure { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: clamp(28px, 4vw, 48px); }
.story-value {
  font-family: var(--serif); font-weight: 420;
  font-size: clamp(3.6rem, 1.9rem + 6.6vw, 6.6rem); line-height: 1; letter-spacing: -0.025em;
  font-variant-numeric: lining-nums;
}
.story-value s { color: var(--muted); text-decoration-color: var(--signal); text-decoration-thickness: .055em; }
.story-note { margin-top: 10px; max-width: 18ch; color: #3E4A56; font-size: 1rem; line-height: 1.4; }
.story-steps { display: grid; gap: 22px; }
.story-steps .case-label { color: var(--signal-deep); }
.story-steps p:not(.case-label) { font-size: 1rem; line-height: 1.58; max-width: 62ch; }
.story-ask { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--film); }
.story-question { font-family: var(--serif); font-weight: 460; font-size: clamp(1.45rem, 1.25rem + .7vw, 1.8rem); line-height: 1.25; margin-bottom: 10px; }
.story-ask p:last-child { max-width: 58ch; color: #3E4A56; font-size: 1rem; }
.story-ask a { color: var(--signal-deep); }

/* С чего начинается работа: настоящая последовательность шагов */
.start { padding-bottom: var(--section); }
.steps { counter-reset: step; display: grid; gap: 32px 40px; margin-top: 40px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%;
  border: 2px solid var(--signal); color: var(--signal); background: var(--surface);
  font-weight: 600; font-size: 1rem;
}
.steps h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; line-height: 1.25; }
@media (max-width: 639px) {
  .steps { gap: 24px; }
  .steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; }
  .steps li::before { grid-row: 1 / span 2; margin-bottom: 0; }
}
.steps p { margin-top: 8px; color: var(--muted); font-size: 1rem; }
.start-note { margin-top: 36px; max-width: 62ch; font-family: var(--serif); font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); line-height: 1.4; }

/* Вопросы */
.faq { padding-bottom: var(--section); }
.faq-list { margin-top: 32px; max-width: 880px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 20px 48px 20px 0;
  font-family: var(--serif); font-weight: 480; font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after,
details.case > summary::before, details.case > summary::after,
.modules-toggle::before, .modules-toggle::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 16px; height: 2px; background: var(--signal); border-radius: 2px;
  transition: transform .2s ease;
}
details.case > summary::before, details.case > summary::after { top: 37px; }
.faq summary::after, details.case > summary::after, .modules-toggle::after { transform: rotate(90deg); }
.faq details[open] summary::after, details.case[open] > summary::after, .modules-more[open] > .modules-toggle::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--signal-deep); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); max-width: 70ch; }
.faq details a { color: var(--signal); }

/* Контакты */
.contact { background: var(--surface); padding-block: var(--section); }
.contact h2 { max-width: 22ch; }
.contact-note { margin-top: 16px; max-width: 56ch; color: var(--muted); }
.contact-links { display: grid; gap: 8px; margin-top: 40px; }
@media (min-width: 1040px) { .contact-links { grid-template-columns: repeat(3, max-content); gap: 0 56px; } }
.contact-links a { display: grid; gap: 4px; padding-block: 12px; text-decoration: none; }
.contact-kind { color: var(--muted); font-size: .9375rem; }
.contact-value {
  font-family: var(--serif); font-weight: 430;
  font-size: clamp(1.9rem, 1.3rem + 1.9vw, 2.75rem); line-height: 1.1; letter-spacing: -0.01em;
  font-variant-numeric: lining-nums;
  text-decoration: underline; text-decoration-color: var(--film); text-decoration-thickness: 2px; text-underline-offset: .18em;
  transition: color .15s ease, text-decoration-color .15s ease;
}
.contact-links a:hover .contact-value { color: var(--signal); text-decoration-color: var(--signal); }

/* Подвал */
.foot { display: flex; justify-content: space-between; gap: 16px; padding-block: 28px; color: var(--muted); font-size: .9375rem; }

/* 404 */
.notfound { min-height: 60vh; display: grid; align-content: center; gap: 20px; padding-block: 64px; }
.notfound h1 { font-family: var(--serif); font-weight: 430; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); line-height: 1.1; }
.notfound p { color: var(--muted); max-width: 52ch; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .arc-live { stroke-dashoffset: 0; }
}

@media print {
  .top .btn, .nav, .arc-figure, .skip { display: none; }
  .arc, .path, .contact, .story { background: none; }
}
