/* sudus.if.ua — «Клінічна довіра». Токени й примітиви з DESIGN.md (розділи 2–7).
   Нових кольорів, розмірів і відступів тут не вводимо, доки їх немає в DESIGN.md. */

/* ── 1. Токени ─────────────────────────────────────────────── */
:root {
  --paper: #FBFCFD;
  --paper-2: #F2F5F8;
  --surface: #FFFFFF;
  --ink-900: #10202E;
  --ink-800: #1C2F40;
  --ink-700: #33475A;
  --ink-500: #5B6B79;
  --ink-300: #9AA8B4;
  --ink-200: #C3CED7;
  --ink-100: #DCE3E8;

  --text: var(--ink-900);
  --text-2: var(--ink-700);
  --text-3: var(--ink-500);
  --on-deep: #F2F5F8;
  --on-deep-2: #A9B7C4;
  --line: var(--ink-100);
  --line-2: var(--ink-200);
  --field-line: #808F9C;

  --arterial-800: #731520;
  --arterial-700: #8E1B26;
  --arterial-400: #E8707A;
  --arterial-300: #F0A3AA;
  --arterial-100: #F3D5DA;
  --arterial-50: #FBEEF0;
  --venous-800: #1F3C69;
  --venous-700: #2B4F87;
  --venous-500: #3A63A6;
  --venous-100: #DCE6F4;
  --venous-50: #EEF3FA;
  --ok-700: #2C6E47;
  --ok-50: #E6F2EA;
  --warn-700: #8A5A09;
  --warn-50: #FBF1DE;
  --err-700: #B3261E;
  --err-50: #FCEBEA;

  --serif: "Source Serif 4", "PT Serif", Georgia, "Times New Roman", serif;
  --sans: "Geologica", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-display: clamp(40px, 6.2vw, 76px);
  --fs-h1: clamp(34px, 4.6vw, 56px);
  --fs-h2: clamp(28px, 3.3vw, 40px);
  --fs-h3: 24px;
  --fs-h4: 20px;
  --fs-num: clamp(40px, 5vw, 60px);
  --fs-lg: 21px;
  --fs-body: 18px;
  --fs-sm: 16px;
  --fs-cap: 14px;
  --fs-over: 12px;

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 104px;

  --container: 1200px;
  --measure: 40rem;
  --gutter: var(--s-4);

  --r-control: 8px;
  --r-card: 12px;
  --r-photo: 16px;

  --shadow-1: 0 1px 2px rgba(16, 32, 46, .04), 0 4px 16px rgba(16, 32, 46, .05);
  --shadow-2: 0 -2px 12px rgba(16, 32, 46, .08);
  --shadow-3: 0 12px 40px rgba(16, 32, 46, .14);

  --t-micro: 150ms ease-out;
  --t-std: 200ms cubic-bezier(.2, .7, .2, 1);
  --t-emph: 1600ms cubic-bezier(.16, 1, .3, 1);

  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: var(--s-6); } }
@media (min-width: 1024px) { :root { --gutter: var(--s-8); } }

/* ── 2. База ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; }
figure, blockquote, dl, dd { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--venous-700); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--t-micro), text-decoration-thickness var(--t-micro); }
a:hover { color: var(--venous-800); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--venous-500); outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 600; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s-4); top: -100px; z-index: 100; background: var(--ink-900); color: #fff; padding: var(--s-3) var(--s-4); border-radius: var(--r-control); }
.skip-link:focus { top: var(--s-2); color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: var(--measure); }
.stack > * + * { margin-top: var(--flow, var(--s-4)); }

/* Типографічні рівні */
.t-display { font-family: var(--serif); font-size: var(--fs-display); font-weight: 600; line-height: 1.03; letter-spacing: -.02em; font-variation-settings: "opsz" 60; }
.t-h1 { font-family: var(--serif); font-size: var(--fs-h1); font-weight: 600; line-height: 1.08; letter-spacing: -.015em; font-variation-settings: "opsz" 60; }
.t-h2 { font-family: var(--serif); font-size: var(--fs-h2); font-weight: 600; line-height: 1.14; letter-spacing: -.01em; font-variation-settings: "opsz" 48; }
.t-h3 { font-family: var(--serif); font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; font-variation-settings: "opsz" 24; }
.t-h4 { font-size: var(--fs-h4); font-weight: 600; line-height: 1.35; }
.t-lead { font-size: var(--fs-lg); line-height: 1.6; color: var(--text-2); text-wrap: balance; }
.t-sm { font-size: var(--fs-sm); line-height: 1.55; }
.t-cap { font-size: var(--fs-cap); font-weight: 500; line-height: 1.45; letter-spacing: .01em; color: var(--text-3); }
.t-over { font-size: var(--fs-over); font-weight: 600; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.accent { font-style: italic; font-weight: 400; color: var(--arterial-700); }
.num { font-variant-numeric: tabular-nums; }
.tbd { text-decoration: underline dashed var(--warn-700); text-decoration-thickness: 1.5px; text-underline-offset: 4px; cursor: help; }

/* Текст статей */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--s-5); }
.prose h2 { margin-top: var(--s-16); font-family: var(--serif); font-size: var(--fs-h2); font-weight: 600; line-height: 1.14; letter-spacing: -.01em; scroll-margin-top: 96px; }
.prose h3 { margin-top: var(--s-10); font-family: var(--serif); font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; }
.prose h2 + p, .prose h3 + p { margin-top: var(--s-3); }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: var(--s-2); }
.prose li::marker { color: var(--text-3); }
.prose .answer { font-size: var(--fs-lg); line-height: 1.6; color: var(--text); }

/* ── 3. Артеріальна нитка ─────────────────────────────────── */
.pulse { width: 100%; height: 40px; overflow: visible; }
.pulse__base { stroke: var(--line); stroke-width: 1; }
.pulse__trace { fill: none; stroke: var(--arterial-700); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.pulse--on-deep .pulse__base { stroke: rgba(242, 245, 248, .18); }
.pulse--on-deep .pulse__trace { stroke: var(--arterial-400); }
.pulse--draw .pulse__trace { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: pulse-draw var(--t-emph) forwards .3s; }
@keyframes pulse-draw { to { stroke-dashoffset: 0; } }
.pulse-divider { margin-block: var(--s-16); }

/* ── 4. Кнопки ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-6);
  border-radius: var(--r-control); border: 1.5px solid transparent;
  font: inherit; font-size: var(--fs-sm); font-weight: 600; line-height: 1.2; letter-spacing: .005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--t-micro), color var(--t-micro), border-color var(--t-micro), transform var(--t-micro), box-shadow var(--t-micro);
  touch-action: manipulation;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.98); }
.btn--lg { min-height: 56px; padding: 0 var(--s-8); font-size: 17px; }
.btn--block { width: 100%; white-space: normal; text-align: center; padding-inline: var(--s-4); }
.btn--primary { background: var(--ink-900); color: #fff; }
.btn--primary:hover { background: var(--ink-800); color: #fff; text-decoration: none; }
.btn--secondary { background: transparent; color: var(--ink-900); border-color: var(--ink-900); }
.btn--secondary:hover { background: var(--paper-2); color: var(--ink-900); text-decoration: none; }
.btn--on-deep { background: #fff; color: var(--ink-900); }
.btn--on-deep:hover { background: var(--paper-2); color: var(--ink-900); text-decoration: none; }
.btn--outline-deep { background: transparent; color: #fff; border-color: rgba(242, 245, 248, .55); }
.btn--outline-deep:hover { border-color: #fff; background: rgba(242, 245, 248, .08); color: #fff; text-decoration: none; }
.btn--ghost { background: none; border: 0; padding: 0; min-height: 44px; color: var(--venous-700); }
.btn--ghost svg { transition: transform var(--t-micro); }
.btn--ghost:hover { color: var(--venous-800); text-decoration: none; }
.btn--ghost:hover svg { transform: translateX(4px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 5. Утилітна смуга, шапка ─────────────────────────────── */
.utility { background: var(--ink-900); color: var(--on-deep-2); font-size: var(--fs-cap); }
.utility .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 40px; }
.utility a { color: var(--on-deep); text-decoration: none; font-weight: 500; }
.utility a:hover { color: #fff; text-decoration: underline; }
.utility__list { display: flex; gap: var(--s-6); align-items: center; list-style: none; padding: 0; }
.utility__item { display: inline-flex; gap: var(--s-2); align-items: center; }
.utility__item svg { width: 16px; height: 16px; color: var(--on-deep-2); }
@media (max-width: 767px) { .utility__hide-sm { display: none; } }

.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(251, 252, 253, .94); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; gap: var(--s-6); min-height: 72px; }
.brand { display: grid; line-height: 1.05; text-decoration: none; color: var(--text); margin-right: auto; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand__name { font-family: var(--serif); font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.01em; }
.brand__role { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-top: 2px; }
.nav { display: none; }
.nav__list { display: flex; gap: var(--s-6); list-style: none; padding: 0; }
.nav__link { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; border-bottom: 2px solid transparent; transition: color var(--t-micro), border-color var(--t-micro); }
.nav__link:hover { color: var(--text); text-decoration: none; border-bottom-color: var(--line-2); }
.nav__link[aria-current="page"] { color: var(--text); border-bottom-color: var(--arterial-700); }
.header__cta { display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 48px; padding: 0 var(--s-4); border: 1.5px solid var(--line-2); border-radius: var(--r-control); background: var(--surface); color: var(--text); font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
@media (min-width: 1024px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .menu-btn { display: none; }
}

/* ── 6. Перший екран ──────────────────────────────────────── */
.hero { position: relative; background: var(--ink-900); color: var(--on-deep); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 85% 20%, rgba(58, 99, 166, .28), transparent 70%), radial-gradient(40% 60% at 10% 100%, rgba(142, 27, 38, .16), transparent 70%); pointer-events: none; }
.hero .container { position: relative; display: grid; gap: var(--s-10); padding-block: var(--s-12) 0; }
.hero__copy { display: grid; gap: var(--s-6); align-content: start; padding-bottom: var(--s-10); }
.hero__over { color: var(--on-deep-2); }
.hero__title .accent { color: var(--arterial-300); }
.hero__lead { color: var(--on-deep-2); font-size: var(--fs-lg); line-height: 1.6; max-width: 34rem; text-wrap: balance; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-2); }
.hero__photo { position: relative; align-self: end; margin-inline: calc(var(--gutter) * -1); }
.hero__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink-900) 0%, rgba(16, 32, 46, 0) 28%), linear-gradient(0deg, rgba(16, 32, 46, .35) 0%, rgba(16, 32, 46, 0) 30%); pointer-events: none; }
.hero__caption { position: absolute; left: var(--s-6); bottom: var(--s-4); z-index: 1; color: var(--on-deep); font-size: var(--fs-cap); font-weight: 500; }
@media (min-width: 1024px) {
  .hero .container { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-12); padding-top: var(--s-20); }
  .hero__copy { grid-column: 1; padding-bottom: var(--s-20); }
  /* Фото заходить у смугу до правого краю вікна, а не лежить у колонці коробкою. */
  .hero .container { position: static; }
  .hero__copy { position: relative; z-index: 1; }
  /* align-self з базового правила інакше стискає abspos-фото до висоти вмісту і притискає донизу */
  .hero__photo { position: absolute; top: 0; right: 0; bottom: 0; width: min(46vw, 760px); margin: 0; align-self: stretch; }
  .hero__photo picture { display: block; height: 100%; }
  .hero__photo img { height: 100%; }
  .hero__photo img { aspect-ratio: auto; object-position: 45% 22%; }
  .hero__photo::after { background: linear-gradient(90deg, var(--ink-900) 0%, rgba(16, 32, 46, .55) 18%, rgba(16, 32, 46, 0) 45%), linear-gradient(0deg, rgba(16, 32, 46, .45) 0%, rgba(16, 32, 46, 0) 28%); }
}

/* ── 7. Факти ─────────────────────────────────────────────── */
.fact { display: grid; gap: var(--s-1); align-content: start; }
.fact__num { font-family: var(--serif); font-size: var(--fs-num); font-weight: 600; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--arterial-700); }
.fact__label { font-size: var(--fs-cap); font-weight: 500; line-height: 1.4; color: var(--text-3); }
.fact--on-deep { padding-left: var(--s-3); border-left: 2px solid var(--arterial-700); }
.fact--on-deep .fact__num { color: #fff; font-size: clamp(30px, 3.6vw, 44px); }
.fact--on-deep .fact__label { color: var(--on-deep-2); }

.facts-table { display: grid; margin: 0; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.facts-table__row { display: grid; gap: var(--s-1); padding: var(--s-4) var(--s-5); border-top: 1px solid var(--line); }
.facts-table__row:first-child { border-top: 0; }
.facts-table dt { font-size: var(--fs-cap); font-weight: 500; color: var(--text-3); }
.facts-table dd { margin: 0; font-size: var(--fs-sm); font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (min-width: 640px) {
  .facts-table__row { grid-template-columns: 14rem minmax(0, 1fr); gap: var(--s-4); align-items: baseline; }
}

/* ── 8. Розділи ───────────────────────────────────────────── */
.section { padding-block: var(--s-16); }
.section--band { background: var(--paper-2); border-block: 1px solid var(--line); }
.section--deep { background: var(--ink-900); color: var(--on-deep); }
@media (min-width: 1024px) { .section { padding-block: var(--s-24); } }
.section-head { display: grid; gap: var(--s-3); max-width: var(--measure); margin-bottom: var(--s-10); }
.section-head--split { max-width: none; }
@media (min-width: 1024px) {
  .section-head--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: var(--s-12); }
}

/* ── 9. Картки операцій ──────────────────────────────────── */
.grid-cards { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(18rem, 100%), 1fr)); }
.op-card {
  position: relative; display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  color: var(--text); text-decoration: none;
  transition: border-color var(--t-micro), box-shadow var(--t-micro), transform var(--t-micro);
}
.op-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); color: var(--text); text-decoration: none; }
.op-card:active { transform: scale(.99); }
.op-card__title { font-family: var(--serif); font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; padding-right: var(--s-8); }
.op-card__text { font-size: var(--fs-sm); line-height: 1.55; color: var(--text-2); }
.op-card__meta { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); font-size: var(--fs-cap); color: var(--text-3); font-weight: 500; margin-top: auto; padding-top: var(--s-2); }
.op-card__arrow { position: absolute; top: var(--s-6); right: var(--s-6); width: 22px; height: 22px; color: var(--text-3); transition: transform var(--t-micro), color var(--t-micro); }
.op-card:hover .op-card__arrow { transform: translateX(4px); color: var(--arterial-700); }
.op-card--feature { background: var(--ink-900); border-color: var(--ink-900); color: var(--on-deep); }
.op-card--feature:hover { color: var(--on-deep); border-color: var(--ink-800); }
.op-card--feature .op-card__text { color: var(--on-deep-2); }
.op-card--feature .op-card__meta { color: var(--on-deep-2); }
.op-card--feature .op-card__arrow { color: var(--on-deep-2); }
.op-card--feature:hover .op-card__arrow { color: var(--arterial-300); }

/* ── 10. Кроки ───────────────────────────────────────────── */
.steps { list-style: none; padding: 0; display: grid; gap: var(--s-6); counter-reset: step; }
.step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-4); align-content: start; counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink-900); font-family: var(--serif); font-weight: 600; font-size: 18px; background: var(--surface); position: relative; z-index: 1; }
.step:not(:last-child)::after { content: ""; position: absolute; left: 19.25px; top: 40px; bottom: calc(var(--s-6) * -1); width: 1.5px; background: var(--line-2); }
.step__title { font-size: var(--fs-h4); font-weight: 600; line-height: 1.35; margin-top: 7px; }
.step__text { font-size: var(--fs-sm); color: var(--text-2); margin-top: var(--s-1); }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-6); }
  .step { grid-template-columns: 1fr; gap: var(--s-4); }
  .step:not(:last-child)::after { left: 40px; right: calc(var(--s-6) * -1); top: 19.25px; bottom: auto; width: auto; height: 1.5px; }
  .step__title { margin-top: 0; }
  /* Вертикальний варіант — для вузьких колонок (бічна панель запису) */
  .steps--vertical { grid-template-columns: 1fr; }
  .steps--vertical .step { grid-template-columns: 40px minmax(0, 1fr); }
  .steps--vertical .step:not(:last-child)::after { left: 19.25px; right: auto; top: 40px; bottom: calc(var(--s-6) * -1); width: 1.5px; height: auto; }
  .steps--vertical .step__title { margin-top: 7px; }
}

/* ── 11. Питання-відповіді ───────────────────────────────── */
.qa-list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-6); padding: var(--s-5) 0; cursor: pointer; list-style: none; font-family: var(--serif); font-size: var(--fs-lg); font-weight: 600; line-height: 1.35; transition: color var(--t-micro); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--venous-700); }
.qa__icon { flex: none; width: 24px; height: 24px; margin-top: 3px; color: var(--text-3); transition: transform var(--t-std); }
.qa[open] .qa__icon { transform: rotate(45deg); color: var(--arterial-700); }
.qa__body { padding: 0 0 var(--s-6); max-width: var(--measure); color: var(--text-2); }
.qa__body > * + * { margin-top: var(--s-3); }

/* ── 12. Медично перевірено ──────────────────────────────── */
.review { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4) var(--s-3) var(--s-3); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); width: fit-content; max-width: 100%; }
.review__photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; flex: none; }
.review__who { font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; }
.review__meta { font-size: var(--fs-cap); color: var(--text-3); line-height: 1.4; }
.review__meta svg { display: inline; width: 14px; height: 14px; vertical-align: -2px; color: var(--ok-700); }

/* ── 13. Хлібні крихти, зміст ────────────────────────────── */
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; font-size: var(--fs-cap); color: var(--text-3); }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--ink-300); }
.crumbs a { color: var(--text-3); text-decoration: none; }
.crumbs a:hover { color: var(--venous-700); text-decoration: underline; }
.crumbs [aria-current] { color: var(--text-2); }

.toc { font-size: var(--fs-sm); }
.toc__title { margin-bottom: var(--s-3); }
.toc ol { list-style: none; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: var(--s-2) var(--s-3); border-left: 2px solid var(--line); color: var(--text-2); text-decoration: none; line-height: 1.35; transition: color var(--t-micro), border-color var(--t-micro); }
.toc a:hover { color: var(--text); border-left-color: var(--line-2); }
.toc a[aria-current="true"] { color: var(--text); border-left-color: var(--arterial-700); font-weight: 500; }
.toc-mobile { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.toc-mobile summary { padding: var(--s-4) var(--s-5); font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 52px; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile .toc { padding: 0 var(--s-3) var(--s-4); }

/* ── 14. Макет статті / операції ─────────────────────────── */
.article { display: grid; gap: var(--s-10); }
.article__aside { display: none; }
.article__rail { display: none; }
@media (min-width: 1024px) {
  .article { grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-12); }
  .article__aside { display: block; position: sticky; top: 104px; align-self: start; }
  .toc-mobile { display: none; }
}
@media (min-width: 1280px) {
  .article { grid-template-columns: 220px minmax(0, var(--measure)) 320px; gap: var(--s-12); }
  .article__rail { display: block; position: sticky; top: 104px; align-self: start; }
}
.page-head { padding-block: var(--s-10) var(--s-12); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--paper-2), var(--paper)); }
.page-head__grid { display: grid; gap: var(--s-8); align-items: end; }
.page-head__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-photo); }
@media (min-width: 1024px) {
  .page-head__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-12); }
  .page-head__photo img { aspect-ratio: 4 / 3; }
}

.rail-card { display: grid; gap: var(--s-4); padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-1); }
.rail-card__price { font-family: var(--serif); font-size: var(--fs-h3); font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }

/* ── 15. Вставки ─────────────────────────────────────────── */
.callout { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--s-3); padding: var(--s-4) var(--s-5); border-left: 3px solid var(--venous-500); background: var(--venous-50); border-radius: 0 var(--r-control) var(--r-control) 0; font-size: var(--fs-sm); color: var(--text); }
.callout svg { width: 22px; height: 22px; color: var(--venous-700); margin-top: 1px; }
.callout--warn { border-left-color: var(--warn-700); background: var(--warn-50); }
.callout--warn svg { color: var(--warn-700); }
.callout--note { border-left-color: var(--ink-300); background: var(--paper-2); }
.callout--note svg { color: var(--text-3); }

.tag { display: inline-flex; align-items: center; gap: var(--s-1); padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--paper-2); color: var(--text-2); border: 1px solid var(--line); }
.tag--attention { background: var(--arterial-50); color: var(--arterial-700); border-color: var(--arterial-100); }

/* ── 16. Ціни ────────────────────────────────────────────── */
.price-list { border-top: 1px solid var(--line); }
.price-row { display: grid; gap: var(--s-3); padding: var(--s-6) 0; border-bottom: 1px solid var(--line); }
.price-row__name { font-family: var(--serif); font-size: var(--fs-h4); font-weight: 600; line-height: 1.25; }
.price-row__value { font-family: var(--serif); font-size: var(--fs-h3); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-row__value small { font-family: var(--sans); font-size: var(--fs-cap); font-weight: 500; color: var(--text-3); }
.checks { list-style: none; padding: 0; display: grid; gap: var(--s-2); font-size: var(--fs-sm); color: var(--text-2); }
.checks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--s-2); }
.checks svg { width: 20px; height: 20px; color: var(--ok-700); margin-top: 2px; }
@media (min-width: 768px) {
  .price-row { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-8); }
  .price-row .checks { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── 17. Форми ───────────────────────────────────────────── */
.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: var(--s-2); }
.field__label { font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; }
.field__label .opt { font-weight: 400; color: var(--text-3); }
.field__hint { font-size: var(--fs-cap); color: var(--text-3); line-height: 1.45; }
.field__error { display: none; grid-template-columns: 18px minmax(0, 1fr); gap: var(--s-2); font-size: var(--fs-cap); font-weight: 500; color: var(--err-700); line-height: 1.4; }
.field__error svg { width: 18px; height: 18px; }
.input, .textarea, .select {
  width: 100%; min-height: 52px; padding: var(--s-3) var(--s-4);
  font: inherit; font-size: 17px; line-height: 1.4; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--field-line); border-radius: var(--r-control);
  transition: border-color var(--t-micro), box-shadow var(--t-micro), background-color var(--t-micro);
  -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 128px; resize: vertical; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2333475A' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; padding-right: 44px; }
.input::placeholder, .textarea::placeholder { color: var(--ink-300); }
.input:hover, .textarea:hover, .select:hover { border-color: var(--text-3); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--venous-500); box-shadow: 0 0 0 3px var(--venous-100); }
.input:disabled, .textarea:disabled, .select:disabled { background: var(--paper-2); color: var(--text-3); border-color: var(--line-2); cursor: not-allowed; }
.input[readonly] { border-style: dashed; background: var(--paper); }
.field--invalid .input, .field--invalid .textarea, .field--invalid .select { border-color: var(--err-700); background: var(--err-50); }
.field--invalid .input:focus, .field--invalid .textarea:focus { box-shadow: 0 0 0 3px var(--err-50); }
.field--invalid .field__error { display: grid; }

.segmented { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.segmented__options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: var(--s-2); }
.segmented__opt { position: relative; }
.segmented__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented__opt span { display: grid; gap: 2px; padding: var(--s-3) var(--s-4); min-height: 56px; align-content: center; border: 1.5px solid var(--field-line); border-radius: var(--r-control); background: var(--surface); font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; transition: background-color var(--t-micro), color var(--t-micro), border-color var(--t-micro); }
.segmented__opt small { font-weight: 400; font-size: var(--fs-cap); color: var(--text-3); }
.segmented__opt input:hover + span { border-color: var(--text-3); }
.segmented__opt input:checked + span { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.segmented__opt input:checked + span small { color: var(--on-deep-2); }
.segmented__opt input:focus-visible + span { outline: 2px solid var(--venous-500); outline-offset: 3px; }

.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--s-3); align-items: start; font-size: var(--fs-sm); line-height: 1.5; color: var(--text-2); cursor: pointer; }
.check input { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin: 1px 0 0; border: 1.5px solid var(--field-line); border-radius: 5px; background: var(--surface) center / 16px no-repeat; cursor: pointer; transition: background-color var(--t-micro), border-color var(--t-micro); }
.check input:hover { border-color: var(--text-3); }
.check input:checked { background-color: var(--ink-900); border-color: var(--ink-900); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.check input:focus-visible { outline: 2px solid var(--venous-500); outline-offset: 3px; }
.field--invalid .check input { border-color: var(--err-700); background-color: var(--err-50); }

.drop { display: grid; justify-items: center; gap: var(--s-2); padding: var(--s-8) var(--s-5); border: 1.5px dashed var(--field-line); border-radius: var(--r-card); background: var(--surface); text-align: center; color: var(--text-2); transition: border-color var(--t-micro), background-color var(--t-micro); }
.drop svg { width: 32px; height: 32px; color: var(--text-3); }
.drop--over { border-color: var(--venous-500); background: var(--venous-50); }
.drop__title { font-weight: 600; color: var(--text); }
.files { list-style: none; padding: 0; display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.files li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-control); background: var(--surface); font-size: var(--fs-sm); }
.files svg { width: 20px; height: 20px; color: var(--text-3); }
.files__name { overflow-wrap: anywhere; }
.files__size { display: block; font-size: var(--fs-cap); color: var(--text-3); }
.files button { font: inherit; font-size: var(--fs-cap); font-weight: 600; color: var(--text-3); background: none; border: 0; cursor: pointer; min-height: 44px; padding: 0 var(--s-2); }
.files button:hover { color: var(--err-700); }

.form-status { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s-3); padding: var(--s-4) var(--s-5); border-radius: var(--r-control); font-size: var(--fs-sm); }
.form-status svg { width: 24px; height: 24px; }
.form-status--ok { background: var(--ok-50); color: var(--ok-700); }
.form-status--err { background: var(--err-50); color: var(--err-700); }

.panel { padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
@media (min-width: 768px) { .panel { padding: var(--s-10); } }

/* ── 18. Нижня смуга дій (мобільний) ─────────────────────── */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--s-2); padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom, 0px)); background: rgba(251, 252, 253, .97); border-top: 1px solid var(--line); box-shadow: var(--shadow-2); }
.has-action-bar { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 768px) { .action-bar { display: none; } .has-action-bar { padding-bottom: 0; } }

/* ── 19. Підвал ──────────────────────────────────────────── */
.footer { background: var(--ink-900); color: var(--on-deep-2); padding-block: var(--s-16) var(--s-10); font-size: var(--fs-sm); border-top: 1px solid rgba(242, 245, 248, .1); }
.footer a { color: var(--on-deep); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; gap: var(--s-10); grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); }
.footer__title { font-size: var(--fs-over); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--on-deep-2); margin-bottom: var(--s-4); }
.footer ul { list-style: none; padding: 0; display: grid; gap: var(--s-2); }
.footer__legal { margin-top: var(--s-12); padding-top: var(--s-6); border-top: 1px solid rgba(242, 245, 248, .12); display: grid; gap: var(--s-3); font-size: var(--fs-cap); }
.footer .brand__name { color: #fff; }
.footer .brand__role { color: var(--on-deep-2); }

/* ── 20. Фото, плитки ────────────────────────────────────── */
.photo { border-radius: var(--r-photo); overflow: hidden; background: var(--paper-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.split { display: grid; gap: var(--s-10); align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-16); } .split--reverse > :first-child { order: 2; } }

.cred-list { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.cred-list li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.cred-list .yr { font-family: var(--serif); font-weight: 600; font-size: var(--fs-h4); font-variant-numeric: tabular-nums; color: var(--arterial-700); }

/* ── 21. Рух і зменшений рух ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .pulse--draw .pulse__trace { stroke-dashoffset: 0; animation: none; }
}

/* ── 22. Мобільне меню (dialog) ──────────────────────────── */
.menu-dialog { margin: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; border: 0; padding: 0; background: var(--paper); color: var(--text); }
.menu-dialog::backdrop { background: rgba(16, 32, 46, .4); }
.menu-dialog__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 72px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); }
.menu-dialog__list { list-style: none; padding: var(--s-2) var(--gutter); display: grid; }
.menu-dialog__list a { display: flex; align-items: center; justify-content: space-between; min-height: 60px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-family: var(--serif); font-size: var(--fs-h3); font-weight: 600; }
.menu-dialog__list svg { width: 22px; height: 22px; color: var(--text-3); }
.menu-dialog__actions { display: grid; gap: var(--s-3); padding: var(--s-6) var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom, 0px)); }

/* ── 23. Варіанти на темному тлі ─────────────────────────── */
.section--deep .t-over, .section--deep .t-lead { color: var(--on-deep-2); }
.section--deep p { color: var(--on-deep-2); }
.section--deep h2 { color: #fff; }
.facts-table--on-deep { background: rgba(242, 245, 248, .04); border-color: rgba(242, 245, 248, .12); }
.facts-table--on-deep .facts-table__row { border-color: rgba(242, 245, 248, .12); }
.facts-table--on-deep dt { color: var(--on-deep-2); }
.facts-table--on-deep dd, .facts-table--on-deep a { color: #fff; }
.hero__quote { margin: 0; padding-left: var(--s-4); border-left: 2px solid var(--arterial-400); font-family: var(--serif); font-style: italic; font-size: var(--fs-h3); line-height: 1.35; color: var(--on-deep); max-width: 30rem; }
.hero__quote cite { display: block; margin-top: var(--s-2); font-family: var(--sans); font-style: normal; font-size: var(--fs-cap); color: var(--on-deep-2); }
.photo--portrait { aspect-ratio: 3 / 4; max-width: 520px; width: 100%; }
.mt-8 { margin-top: var(--s-8); }
.split--top { align-items: start; }
.text-2 { color: var(--text-2); }

/* ── 24. Поле-пастка для ботів у формах (людина його не бачить) ── */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
