/* QMD · directions.css — the three verification direction pages (medical equipment, speed cameras, EV chargers).
   Loaded after styles.css and service.css. Page sections reuse v1 tokens; the scene blocks are ports of site-v2
   MedChapter / CamChapter / EvChapter (styles scoped under .vmed / .vcam / .vev, v2 tokens mapped onto v1 type:
   Onest for display and numbers, IBM Plex Mono for labels; the light «studio» stages stay light on the dark page). */

/* ---------------------------------------------------------------- v2 tokens inside the scene blocks */
.vmed, .vcam, .vev {
  --color-ground: #f1eee8; --color-surface: #ffffff; --color-cream: #fbf9f4; --color-raised: #e8e3d9;
  --color-ink: #15191b; --color-muted: #51575b; --color-faint: #63686b; --color-line: #dcd7cd; --color-line-strong: #8c8980;
  --color-shell: rgb(24 25 29 / 0.05);
  --color-accent: #167a4e;            /* v1 green, deepened for light paper (AA on cream) */
  --color-signal: var(--signal);
  --color-alert: #ff5b3a;
  --color-dark: var(--canvas); --color-dark-2: #0f1417; --color-dark-text: var(--ink); --color-dark-muted: var(--ink-muted); --color-dark-blue: var(--signal);
  --font-sans: var(--display); --font-display: var(--display); --font-title: var(--display); --font-mono: var(--mono);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1); --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --film-r: clamp(20px, 2.2vw, 30px);
}
/* scene kicker: v1 mono caps with a square signal mark (replaces v2's paper pill) */
.vkick { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--ink-muted); }
.vkick i { width: 6px; height: 6px; background: var(--signal); flex: none; }

/* buttons on light stages (v1 .button is light-on-dark) */
.button.on-light { background: #0f1417; color: #eef1f2; border-color: #0f1417; }
.button.on-light:hover { background: #222a2e; border-color: #222a2e; }
.text-link.on-light { color: #15191b; border-bottom-color: rgb(21 25 27 / 0.28); }
.text-link.on-light:hover { border-bottom-color: #15191b; }
.button { transition: background 0.2s, border-color 0.2s, transform 0.45s cubic-bezier(0.23, 1, 0.32, 1); }
.button:active { transform: scale(0.98); }

/* ---------------------------------------------------------------- page: hero, steps, result, references, CTA, more */
.dir-page main { padding-top: calc(var(--header) + 28px); }
.dir-hero { padding-bottom: 72px; }
.dir-hero h1 { font-size: clamp(32px, 4.2vw, 62px); max-width: 1040px; }
.dir-hero .lead { max-width: 780px; }
.dir-hero .actions { gap: 18px 30px; }
.dir-hero-n { position: absolute; right: var(--gutter); bottom: 40px; color: var(--ink-dim); }
.dir-sec-head { display: grid; gap: 22px; margin-bottom: 48px; }
.dir-sec-head h2, .dir-get h2, .dir-cta h2 { font-size: clamp(28px, 3.2vw, 46px); }

.dir-steps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--hairline); counter-reset: none; }
.dir-steps-list li { position: relative; display: grid; align-content: start; gap: 18px; padding: 26px 28px 8px 0; }
.dir-steps-list li + li { padding-left: 28px; border-left: 1px dashed var(--hairline); }
.dir-steps-list li::before { content: ''; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--ink-dim); }
.dir-steps-list li + li::before { left: 28px; }
.dir-steps-list li:nth-child(3)::before { background: var(--signal); }
.dir-steps-list .mono { color: var(--ink-dim); font-size: 12px; }
.dir-steps-list p { font-size: 18px; line-height: 1.45; color: var(--ink); text-wrap: pretty; }

.dir-get { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 56px; background: var(--canvas-2); }
.dir-get-main { display: grid; gap: 22px; align-content: start; }
.dir-get-out { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; max-width: 560px; text-wrap: pretty; }
.dir-get-out + .dir-get-out { color: var(--ink-muted); font-size: 17px; }
.dir-get-col { padding-top: 6px; }
.dir-get-col h3 { color: var(--ink-muted); font-weight: 400; margin-bottom: 18px; }
.dir-get-col ul { list-style: none; margin: 0; padding: 0; }
.dir-get-col li { padding: 13px 0; border-top: 1px solid var(--hairline); font-size: 15px; line-height: 1.5; }
.dir-get-col.checklist li { display: grid; grid-template-columns: 14px 1fr; column-gap: 14px; }
.dir-get-col.checklist li::before { content: '—'; color: var(--ink-dim); }

.dir-refs-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.dir-refs-list li { display: grid; grid-template-columns: 70px minmax(0, 1.2fr) minmax(0, 1.5fr); gap: 20px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--hairline); }
.dir-refs-list li > .mono { color: var(--ink-dim); padding-top: 6px; }
.dir-refs-list h3 { font-size: 22px; text-transform: none; }
.dir-refs-list p { margin-top: 8px; color: var(--ink-muted); font-size: 14px; }
.dir-refs-list dl { margin: 0; display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.dir-refs-list dt { color: var(--ink-dim); margin-bottom: 8px; }
.dir-refs-list dd { margin: 0; font: 500 15px/1.45 var(--mono); font-variant-numeric: tabular-nums; }
.dir-refs-list dd i { font-style: normal; color: var(--signal); }

.dir-cta { position: relative; overflow: hidden; }
.dir-cta-in { display: grid; gap: 22px; justify-items: start; max-width: 860px; }
.dir-cta-in > p { color: var(--ink-muted); font-size: 18px; max-width: 560px; }
.dir-cta .actions { gap: 16px 30px; }
.dir-cta .availability { margin-top: 4px; color: var(--ink-dim); }

.dir-more { padding-top: 64px; }
.dir-more .kicker { margin-bottom: 26px; }
.dir-more-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dir-more-list a { position: relative; display: grid; align-content: space-between; gap: 22px; min-height: 172px; padding: 22px 22px 24px; border: 1px solid var(--hairline); border-radius: 18px; background: var(--canvas-2);
  transition: border-color 0.25s, background-color 0.25s, transform 0.45s cubic-bezier(0.23, 1, 0.32, 1); }
.dir-more-list .dir-ic { width: 24px; height: 24px; fill: none; stroke: var(--ink-muted); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.25s; }
.dir-more-list .mono { color: var(--ink-dim); }
.dir-more-list h3 { font-size: clamp(17px, 1.45vw, 21px); max-width: 22ch; overflow-wrap: normal; hyphens: manual; }
.dir-more-list i { position: absolute; right: 20px; top: 18px; font-style: normal; color: var(--ink-dim); transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1), color 0.25s; }
.dir-more-list a:hover { border-color: var(--ink-dim); background: #182024; }
.dir-more-list a:hover .dir-ic { stroke: var(--signal); }
.dir-more-list a:hover i { color: var(--ink); transform: translate(2px, -2px); }
.dir-more-list a:active { transform: scale(0.985); }


@media (max-width: 1150px) and (min-width: 761px) {
  .dir-steps-list { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .dir-steps-list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .dir-steps-list li:nth-child(3)::before { left: 0; }
}
@media (max-width: 1150px) { .dir-get { grid-template-columns: 1fr 1fr; } .dir-get-main { grid-column: 1 / -1; } .dir-more-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .dir-page main { padding-top: calc(var(--header) + 6px); }
  .dir-hero { padding-bottom: 48px; }
  .dir-hero h1 { font-size: clamp(23px, 6.9vw, 34px); hyphens: manual; }
  .dir-more-list h3 { font-size: 16.5px; }
  .dir-hero .actions { gap: 6px 22px; }
  .dir-hero-n { display: none; }
  .dir-sec-head { margin-bottom: 30px; gap: 16px; }
  .dir-steps-list { grid-template-columns: 1fr; row-gap: 0; }
  .dir-steps-list li, .dir-steps-list li + li { padding: 20px 0 20px 40px; border-left: 0; border-bottom: 1px solid var(--hairline); grid-template-columns: none; }
  .dir-steps-list li::before, .dir-steps-list li + li::before { top: 26px; left: 0; }
  .dir-steps-list .mono { position: absolute; left: 14px; top: 21px; }
  .dir-steps-list p { font-size: 16px; }
  .dir-get { grid-template-columns: 1fr; gap: 36px; }
  .dir-refs-list li { grid-template-columns: 30px 1fr; gap: 12px 14px; }
  .dir-refs-list dl { grid-column: 2; grid-template-columns: 1fr; gap: 12px; }
  .dir-refs-list h3 { font-size: 19px; }
  .dir-cta-in > p { font-size: 16px; }
  .dir-cta .actions { gap: 4px 22px; }
  .dir-more-list { grid-template-columns: 1fr; gap: 8px; }
  .dir-more-list a { min-height: 0; grid-template-columns: 28px 1fr; gap: 6px 14px; padding: 18px 44px 18px 18px; }
  .dir-more-list .dir-ic { grid-row: span 2; align-self: center; }
}

/* ================================================================ MEDICAL — port of MedChapter.astro (v2 iterations 1–6)
   a pinned studio bench: the pin is a light «studio card» inset in the dark page (as the EV card); the heading and the
   copy column (tabs, live comparison → protocol table) on the left, the bench in the free area on the right (.safe).
   The scene composites its frame onto the paper #f3f0ea (mountMed's default) — the card is the same colour, no seam.
   Phones: the heading scrolls away first, then the stage sticks with the tabs and the readout at the bottom. */
.vmed { --ci: 10px; --paper: #f3f0ea; position: relative; padding-top: clamp(28px, 3vw, 44px); padding-bottom: clamp(60px, 8vw, 110px); border-top: 1px dashed var(--hairline); overflow: clip; --hh: 0px;
  --gut: max(clamp(18px, 3.4vw, 34px), calc((100vw - 1280px) / 2 + 30px)); --colw: min(470px, calc((100vw - 2 * var(--ci) - 2 * var(--gut)) * 0.4)); }
/* 17.10.2026: the chapter plays on its own clock (a loop over the four benches, med-chapter.ts); the section is one
   stage tall and the page scrolls past it (no pinned track) */
.vmed .track { position: relative; }
.vmed .pin { position: relative; height: calc(100svh - 2 * var(--ci)); margin: 0 var(--ci); overflow: hidden; isolation: isolate; border-radius: var(--film-r); color: var(--color-ink);
  background: var(--paper); box-shadow: 0 0 0 1px #ffffff1f, 0 50px 110px -40px #000000e6; }
.vmed .mstage { position: absolute; inset: 0; }
.vmed .mstage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vmed .safe { position: absolute; left: calc(var(--gut) + var(--colw) + clamp(24px, 3vw, 56px)); right: 24px; top: 92px; bottom: 28px; pointer-events: none; }
.vmed .head { position: absolute; z-index: 3; left: var(--gut); top: clamp(96px, 14svh, 140px); width: var(--colw); display: grid; gap: 18px; }
.vmed .head .vkick { color: var(--color-muted); }
.vmed .head .vkick i { background: var(--color-accent); }
.vmed .head h2 { margin: 0; font-size: clamp(30px, min(3vw, 5svh), 46px); line-height: 1.04; max-width: 15ch; color: var(--color-ink); text-wrap: balance; }
.vmed .col { position: absolute; z-index: 3; left: var(--gut); width: var(--colw); bottom: clamp(24px, 5.4svh, 58px); display: grid; gap: clamp(16px, 2.4svh, 24px); }
.vmed .mlead { margin: 0; color: var(--color-muted); max-width: 44ch; font-size: 16px; line-height: 1.55; text-wrap: pretty; }
.vmed .m-only { display: none; }
@media (max-height: 820px) and (min-width: 961px) { .vmed .d-only { display: none; } .vmed .foot .m-only { display: block; } }
/* segmented control (v1: mono caps); the pill follows the pressed button */
.vmed .tabs-wrap { min-width: 0; max-width: 100%; }
.vmed .tabs { position: relative; display: flex; flex-wrap: nowrap; gap: 4px; padding: 5px; border-radius: 999px; background: var(--color-shell); box-shadow: inset 0 0 0 1px var(--color-line); width: fit-content; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.vmed .tabs::-webkit-scrollbar { display: none; }
.vmed .tabs button { position: relative; z-index: 1; flex: none; border: 0; background: none; padding: 11px 18px; border-radius: 999px; font: 500 11.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); cursor: pointer; white-space: nowrap; transition: color 0.35s var(--ease-spring), transform 0.3s var(--ease-spring); }
.vmed .tabs button:hover { color: var(--color-ink); }
.vmed .tabs button:active { transform: scale(0.97); }
.vmed .tabs button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.vmed .tabs button[aria-pressed='true'] { color: var(--color-surface); }
/* the playing bench's progress: a hairline under the pressed tab's label (--p 0 … 1, set by med-chapter.ts) */
.vmed .tabs button::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: 6px; height: 1.5px; border-radius: 1px; background: currentColor; opacity: 0; transform: scaleX(var(--p, 0)); transform-origin: left center; }
.vmed .tabs button[aria-pressed='true']::after { opacity: 0.7; }
@media (prefers-reduced-motion: reduce) { .vmed .tabs button::after { display: none; } }
.vmed .tab-pill { position: absolute; z-index: 0; top: 0; left: 0; width: 0; height: 0; border-radius: 999px; background: var(--color-ink); transition: transform 0.55s var(--ease-spring), width 0.55s var(--ease-spring), height 0.55s var(--ease-spring); }
/* readout: the live comparison, then the protocol table in the same box */
.vmed .rd { border-top: 1px solid var(--color-line); padding-top: 14px; }
.vmed .rd .hd { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 400 11px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-faint); }
.vmed .rd .st { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: color 0.3s; }
.vmed .rd .st i { width: 7px; height: 7px; background: var(--color-ink); animation: vblink 1.6s ease-in-out infinite; transition: background 0.3s, box-shadow 0.3s; }
.vmed .rd .st b { font-weight: 400; }
.vmed .rd .st.ok { color: var(--color-accent); }
.vmed .rd .st.ok i { background: var(--color-accent); box-shadow: 0 0 0 4px rgb(22 122 78 / 0.14); animation: none; }
.vmed .box { position: relative; display: grid; margin-top: 12px; }
.vmed .box > * { grid-area: 1 / 1; transition: opacity 0.45s var(--ease-spring), transform 0.6s var(--ease-spring); }
.vmed .cols { display: grid; grid-template-columns: 1fr 1fr 0.8fr; gap: 16px; align-self: start; }
.vmed .cols small { display: block; font: 400 10.5px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vmed .cols > div > span { display: block; font-family: var(--display); font-weight: 300; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.02em; font-size: clamp(34px, min(3.1vw, 5svh), 44px); line-height: 1.1; margin-top: 6px; color: var(--color-ink); white-space: nowrap; transition: color 0.3s; }
.vmed .cols > div > span.ok { color: var(--color-accent); }
/* a long reading (NIBP «120/80») sets the three figures smaller on the same line height, so the column does not move */
.vmed .cols.lg > div > span { font-size: calc(clamp(34px, min(3.1vw, 5svh), 44px) * 0.74); line-height: calc(clamp(34px, min(3.1vw, 5svh), 44px) * 1.1); }
.vmed .cols > div > span.na { color: var(--color-line-strong); }
.vmed .cols > div > span .sg { font: 300 0.78em var(--display); font-style: normal; margin-right: 0.05em; vertical-align: 0.07em; }
.vmed .cols em { display: block; font: 400 10.5px/1.3 var(--mono); color: var(--color-faint); font-style: normal; white-space: nowrap; }
.vmed table.pr { width: 100%; table-layout: fixed; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; align-self: start; }
.vmed table.pr col.cn { width: 17%; }
.vmed table.pr col.cd { width: 19%; }
.vmed table.pr th { font: 400 10px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-faint); text-align: left; padding: 4px 0 6px; border-bottom: 1px solid var(--color-line); white-space: nowrap; }
.vmed table.pr th.n { text-align: right; }
.vmed table.pr td { font: 400 14px/1.3 var(--display); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--color-line); color: var(--color-ink); text-wrap: pretty; vertical-align: baseline; transition: color 0.3s; }
/* figures: tabular, lining digits, right-aligned so the decimal commas stack */
.vmed table.pr td.n, .vmed table.pr td.tx { text-align: right; padding: 8px 0 8px 10px; }
.vmed table.pr td.n { font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.vmed table.pr td.tx { font-size: 12.5px; }
.vmed table.pr tr.wait td.n { color: var(--color-faint); }
.vmed table.pr tr.ok td.dd { color: var(--color-accent); }
.vmed table.pr tr.pad { visibility: hidden; }
.vmed table.pr tr.pad td { border-bottom-color: transparent; }
.vmed .rd:not(.proto) table.pr { opacity: 0; transform: translateY(10px); pointer-events: none; }
.vmed .rd.proto .cols { opacity: 0; transform: translateY(-10px); pointer-events: none; }
/* after the track (on the dark page): the lab's medical reference standards */
.vmed .foot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: clamp(36px, 4vw, 56px); padding: 0 var(--gutter); }
.vmed .foot .mlead { color: var(--ink-muted); font-size: 16.5px; line-height: 1.6; max-width: 60ch; }
.vmed .refs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 32px; border-top: 1px dashed var(--hairline); }
.vmed .refs li { display: grid; gap: 3px; padding: 14px 0; border-bottom: 1px dashed var(--hairline); }
.vmed .refs b { font-weight: 500; font-size: 17px; }
.vmed .refs span { font-size: 14px; color: var(--ink-muted); }
.vmed .foot .text-link { justify-self: start; }
/* the scene's overlay (scan line, numbered callouts, dimension): med-scene.ts OV_CSS, moved here (no inline <style>
   under the production CSP; the scene is mounted with injectCSS: false). Colours follow the card tokens. */
.vmed [data-med-ov] { position: absolute; inset: 0; z-index: 2; pointer-events: none; --mi: var(--color-ink); --ma: var(--color-accent); --mm: var(--color-muted); --mf: var(--color-faint); --mo: var(--mono); --me: var(--ease-spring); }
.vmed [data-med-ov] .med-ov-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vmed [data-med-ov] .scan { stroke: var(--mi); stroke-width: 1; opacity: 0; transition: opacity 0.35s var(--me); }
.vmed [data-med-ov].on .med-ov-svg.sweep .scan { opacity: 1; }
.vmed [data-med-ov] .cap { position: absolute; left: 0; top: 0; font: 400 10.5px var(--mo); letter-spacing: 0.1em; text-transform: uppercase; color: var(--mf); white-space: nowrap; opacity: 0; transition: opacity 0.35s var(--me); }
.vmed [data-med-ov].on.caps .cap { opacity: 1; }
.vmed [data-med-ov] .co { fill: none; stroke: var(--mi); stroke-width: 1; opacity: 0; transition: opacity 0.4s var(--me); }
.vmed [data-med-ov] .co circle { fill: var(--mi); stroke: none; }
.vmed [data-med-ov] .co circle.ring { fill: none; stroke: var(--mi); opacity: 0.55; }
.vmed [data-med-ov] .co.ok { stroke: var(--ma); }
.vmed [data-med-ov] .co.ok circle { fill: var(--ma); }
.vmed [data-med-ov] .co.ok circle.ring { fill: none; stroke: var(--ma); }
.vmed [data-med-ov] .co.on { opacity: 1; }
.vmed [data-med-ov] .lab { position: absolute; left: 0; top: 0; font: 400 11px/1.45 var(--mo); letter-spacing: 0.04em; color: var(--mm); white-space: nowrap; opacity: 0; transition: opacity 0.4s var(--me); font-variant-numeric: tabular-nums; }
.vmed [data-med-ov] .lab b { display: block; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mi); }
.vmed [data-med-ov] .lab.r { text-align: right; }
.vmed [data-med-ov] .lab.ok span { color: var(--ma); }
.vmed [data-med-ov] .lab.on { opacity: 1; }
.vmed [data-med-ov] .dim { opacity: 0; transition: opacity 0.45s var(--me); }
.vmed [data-med-ov] .dim.on { opacity: 1; }
.vmed [data-med-ov] .dim line { stroke: var(--mi); stroke-width: 0.8; }
.vmed [data-med-ov] .dim circle { fill: var(--mi); }
.vmed [data-med-ov] .dim text { fill: var(--mi); font: 400 11px var(--mo); letter-spacing: 0.06em; }
.vmed [data-med-ov].m .lab { white-space: normal; font-size: 10.5px; padding: 3px 6px; margin: -3px -6px; border-radius: 6px; background: rgb(243 240 234 / 0.86); }
.vmed :focus-visible { outline-color: var(--color-accent); }
@keyframes vblink { 50% { opacity: 0.35; } }
@media (max-width: 1240px) and (min-width: 961px) { .vmed .head h2 { font-size: clamp(28px, min(3.2vw, 5svh), 40px); } }
@media (max-width: 960px) {
  .vmed { --ci: 6px; --gut: 16px; padding-top: 18px; }
  .vmed .pin { height: calc(var(--hh) + 100svh - 2 * var(--ci)); }
  .vmed .head { position: relative; left: auto; top: auto; width: auto; padding: 30px var(--gut) 8px; gap: 14px; }
  .vmed .head .vkick { font-size: 10px; }
  .vmed .head h2 { font-size: clamp(28px, 8vw, 40px); max-width: 17ch; }
  .vmed .mstage { top: var(--hh); }
  .vmed .safe { left: 0; right: 0; top: 64px; bottom: var(--rdh, 230px); }
  .vmed .col { left: var(--gut); right: var(--gut); width: auto; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); gap: 12px; }
  .vmed .d-only { display: none; }
  .vmed .foot .m-only { display: block; }
  .vmed .rd { padding-top: 10px; }
  .vmed .cols { gap: 10px; }
  /* the labels may take two lines on a phone ("Эталон · CITREX H5"); every column keeps the same two-line slot */
  .vmed .cols small { white-space: normal; line-height: 1.25; min-height: 2.5em; display: flex; flex-wrap: wrap; align-content: flex-end; column-gap: 0.6em; overflow: visible; }
  .vmed .cols small span { white-space: nowrap; }
  .vmed .cols > div > span { font-size: 30px; margin-top: 4px; }
  .vmed .cols.lg > div > span { font-size: 23px; line-height: 33px; }
  .vmed .rd .hd { font-size: 10px; }
  .vmed table.pr td { padding: 6px 6px 6px 0; font-size: 13px; }
  .vmed table.pr td.n, .vmed table.pr td.tx { padding: 6px 0 6px 6px; }
  .vmed table.pr td.tx { font-size: 11.5px; }
  .vmed table.pr col.cn { width: 18%; }
  .vmed table.pr col.cd { width: 20%; }
  .vmed table.pr th { padding: 2px 0 4px; }
  .vmed .tabs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .vmed .tabs.end { -webkit-mask-image: none; mask-image: none; }
}
/* reduced motion: no scroll story; one still bench per tab */
@media (prefers-reduced-motion: reduce) {
  .vmed .track { height: auto !important; }
  .vmed .pin { position: relative; top: auto !important; }
  .vmed .rd .st i { animation: none; }
  .vmed [data-med-ov] * { transition: none !important; }
}

/* ================================================================ SPEED CAMERAS — port of CamChapter.astro
   the night street scrubbed by scroll inside an inset film frame; the HUD, evidence card and protocol on top */
.vcam { position: relative; height: 100svh; padding: 10px; background: var(--canvas); }
.vcam .vp { position: relative; height: 100%; border-radius: var(--film-r); overflow: hidden; background: var(--color-dark-2); color: var(--color-dark-text); isolation: isolate; box-shadow: 0 0 0 1px #ffffff12; }
.vcam .cam-gl, .vcam .hudc { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vcam .vignette { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgb(255 255 255 / 0.018) 0 1px, transparent 1px 3px); }
.vcam .scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgb(12 15 17 / 0.84) 0%, rgb(12 15 17 / 0.56) 38%, rgb(12 15 17 / 0) 66%); }
.vcam .fscrim { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(0deg, rgb(12 15 17 / 0.92) 0%, rgb(12 15 17 / 0.74) 30%, rgb(12 15 17 / 0) 64%); }
.vcam .hud { position: absolute; inset: 0; pointer-events: none; font: 500 11.5px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgb(233 237 239 / 0.82); }
.vcam .hud > div { position: absolute; display: flex; align-items: center; gap: 14px; }
.vcam .tl { left: 26px; top: 24px; } .vcam .tr { right: 26px; top: 24px; } .vcam .bl { left: 26px; bottom: 24px; } .vcam .br { right: 26px; bottom: 18px; align-items: flex-end; }
.vcam .rec { display: inline-flex; align-items: center; gap: 7px; color: var(--color-alert); }
.vcam .rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--color-alert); animation: vrec 1.2s steps(2) infinite; }
@keyframes vrec { 50% { opacity: 0.2; } }
.vcam .sign { width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 6px #d8261c; display: grid; place-items: center; color: #111; }
.vcam .sign b { font: 700 17px var(--display); letter-spacing: -0.02em; }
.vcam .lim { line-height: 1.45; }
.vcam .spd { font: 500 clamp(54px, 7vw, 108px)/0.85 var(--mono); letter-spacing: -0.06em; color: var(--color-dark-text); font-variant-numeric: tabular-nums; transition: color 0.25s; text-transform: none; }
.vcam .spd.over { color: var(--color-alert); }
.vcam .unit { line-height: 1.45; padding-bottom: 6px; }
.vcam .unit em { font-style: normal; color: var(--signal); }
.vcam .unit em.hot { color: var(--color-alert); }
.vcam .intro { position: absolute; left: clamp(22px, 4vw, 60px); top: clamp(80px, 13vh, 140px); max-width: 580px; display: grid; gap: 20px; }
.vcam .intro h2 { font-size: clamp(32px, 4.3vw, 64px); line-height: 0.98; color: #fff; }
.vcam .intro p { margin: 0; color: rgb(233 237 239 / 0.74); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.55; max-width: 44ch; }
.vcam .intro .ex { font-size: clamp(14px, 1.05vw, 16px); color: rgb(233 237 239 / 0.58); padding-left: 14px; border-left: 1px solid rgb(233 237 239 / 0.24); }
.vcam .intro .vkick { color: rgb(233 237 239 / 0.8); }
.vcam .hint { color: rgb(233 237 239 / 0.5); }
.vcam .evidence { position: absolute; right: clamp(16px, 3vw, 40px); top: clamp(70px, 11vh, 110px); width: min(340px, 42vw); padding: 14px; border-radius: 22px; background: rgb(10 14 16 / 0.74); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12), 0 40px 80px -30px rgb(0 0 0 / 0.6); opacity: 0; transform: translateX(40px); }
.vcam .ev-head { display: flex; justify-content: space-between; align-items: center; font: 500 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-alert); padding: 2px 4px 10px; }
.vcam .ev-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-alert); box-shadow: 0 0 0 4px rgb(255 91 58 / 0.2); }
.vcam .crop { width: 100%; height: auto; border-radius: 12px; display: block; background: #000; }
.vcam .evidence dl { margin: 12px 0 0; display: grid; gap: 0; }
.vcam .evidence dl div { display: flex; justify-content: space-between; padding: 9px 4px; border-top: 1px solid rgb(255 255 255 / 0.08); font: 500 12.5px var(--mono); }
.vcam .evidence dt { color: rgb(233 237 239 / 0.55); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; }
.vcam .evidence dd { margin: 0; }
.vcam .evidence .hot { color: var(--color-alert); }
/* the protocol: a paper document in blue ink (stamp, signature), as a verification report is printed */
.vcam .protocol { --color-accent: #2743c4; --color-blue-deep: #1a2f8f; position: absolute; left: 0; right: 0; margin-inline: auto; top: 0; bottom: 0; margin-block: auto; height: max-content; width: min(600px, calc(100% - 32px)); padding: clamp(20px, 2.6vw, 34px); border-radius: 6px; overflow: hidden; color: var(--color-ink);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.65), rgb(255 255 255 / 0) 30%), repeating-linear-gradient(0deg, rgb(24 25 29 / 0.018) 0 1px, transparent 1px 4px), var(--color-cream);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06), 0 2px 0 rgb(255 255 255 / 0.9) inset, 0 30px 50px -30px rgb(0 0 0 / 0.6), 0 80px 140px -50px rgb(0 0 0 / 0.8); opacity: 0; transform: translateY(80%) rotate(-3deg); }
.vcam .protocol::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgb(39 67 196 / 0.22); outline: 1px solid rgb(39 67 196 / 0.1); outline-offset: 3px; border-radius: 2px; pointer-events: none; }
.vcam .protocol > * { position: relative; }
.vcam .protocol .wm { position: absolute; left: 50%; top: 54%; translate: -50% -50%; rotate: -24deg; font: 600 clamp(64px, 11vw, 120px)/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: rgb(39 67 196 / 0.05); pointer-events: none; white-space: nowrap; }
.vcam .protocol header { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding-bottom: 12px; border-bottom: 1.5px solid var(--color-ink); }
.vcam .protocol .logo { font: 600 22px/1 var(--display); letter-spacing: 0.02em; color: var(--color-ink); padding-top: 2px; }
.vcam .protocol .logo i { font-style: normal; color: #1fa866; }
.vcam .protocol .org { display: grid; gap: 2px; font: 500 9.5px/1.45 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-muted); }
.vcam .protocol .org b { font-family: var(--display); font-size: 12px; font-weight: 600; line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--color-ink); }
.vcam .protocol .mark { padding: 4px 8px; border-radius: 3px; font: 600 10px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-muted); box-shadow: inset 0 0 0 1.5px var(--color-muted); transform: rotate(3deg); }
.vcam .protocol .title { text-align: center; margin: 14px 0 12px; }
.vcam .protocol h3 { margin: 0; font-size: clamp(19px, 1.9vw, 25px); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-ink); }
.vcam .protocol .title p { margin: 6px 0 0; display: flex; justify-content: center; gap: 18px; font: 500 12px var(--mono); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.vcam .protocol .title em { font-style: normal; }
.vcam .fields { margin: 0 0 12px; display: grid; gap: 0; }
.vcam .fields div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 6px 0; font-size: 13px; line-height: 1.45; border-bottom: 1px dotted rgb(24 25 29 / 0.28); }
.vcam .fields dt { font: 500 10px/1.7 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-muted); }
.vcam .fields dd { margin: 0; }
.vcam table { width: 100%; border-collapse: collapse; font: 500 12px var(--mono); box-shadow: 0 0 0 1px rgb(24 25 29 / 0.5); }
.vcam th { text-align: left; font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); font-weight: 600; padding: 6px 8px; background: rgb(24 25 29 / 0.05); border: 1px solid rgb(24 25 29 / 0.35); }
.vcam td { padding: 6px 8px; border: 1px solid rgb(24 25 29 / 0.22); font-variant-numeric: tabular-nums; }
.vcam td:first-child, .vcam th:first-child { width: 28px; text-align: center; color: var(--color-muted); }
.vcam td:last-child { color: var(--color-accent); }
.vcam tr.hl td { background: rgb(39 67 196 / 0.08); }
.vcam .protocol footer { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 16px; margin-top: 14px; }
.vcam .protocol .concl { display: grid; gap: 2px; grid-column: 1 / -1; }
.vcam .protocol .concl span, .vcam .protocol .sig span { font: 500 10px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-muted); }
.vcam .protocol .concl b { font-size: 16px; font-weight: 600; }
.vcam .protocol .sig { position: relative; display: grid; grid-template-columns: auto 160px auto; align-items: end; gap: 10px; padding-top: 18px; }
.vcam .protocol .sig .line { height: 1px; background: var(--color-ink); margin-bottom: 4px; }
.vcam .protocol .sig svg { position: absolute; left: 92px; bottom: -10px; width: 150px; height: 46px; fill: none; stroke: var(--color-blue-deep); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.vcam .protocol:has(.stamp.on) .sig svg { transition: stroke-dashoffset 0.9s cubic-bezier(0.45, 0, 0.2, 1); stroke-dashoffset: 0; }
.vcam .protocol footer .stamp { margin: -40px 0 -8px; }
.vcam .stamp { width: 96px; height: 96px; fill: none; stroke: var(--color-accent); stroke-width: 2.4; opacity: 0; transform: scale(1.6) rotate(-14deg); }
.vcam .stamp text { fill: var(--color-accent); stroke: none; font: 600 9.6px var(--mono); letter-spacing: 0.08em; }
.vcam .stamp.on { animation: vstamp 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) forwards; }
@keyframes vstamp { to { opacity: 0.92; transform: scale(1) rotate(-14deg); } }
.vcam .closing { position: absolute; left: 0; right: 0; margin-inline: auto; bottom: clamp(20px, 5vh, 56px); width: min(900px, calc(100% - 32px)); display: grid; justify-items: center; gap: 20px; text-align: center; opacity: 0; transform: translateY(30px); pointer-events: none; }
.vcam .closing.live { pointer-events: auto; }
.vcam .closing h3 { font-size: clamp(20px, 2.1vw, 30px); font-weight: 500; color: #fff; max-width: 30ch; }
.vcam .partners { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center; color: rgb(233 237 239 / 0.6); }
.vcam .partners img { height: 22px; width: auto; filter: invert(1) brightness(1.6); opacity: 0.9; }
.vcam .partners img.ps { height: 30px; filter: none; }
/* the chapter plays on its own clock (14.10.2026): the sound and pause pills sit together at the bottom centre (top
   right on phones); the seam is the short dip to the card's dark between the end of the loop and its start */
.vcam .cctl { position: absolute; left: 0; right: 0; margin-inline: auto; width: max-content; bottom: 24px; display: flex; gap: 8px; }
.vcam .cctl[hidden] { display: none; }
.vcam .seam { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: var(--color-dark-2); }
.vcam .sound, .vcam .cpause { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 16px; min-height: 36px; border-radius: 999px; border: 0; background: rgb(255 255 255 / 0.08); color: var(--color-dark-text); font-size: 11px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform 0.4s var(--ease-spring), background 0.3s; }
.vcam .cpause { width: 36px; padding: 0; cursor: pointer; }
.vcam .cpause svg { width: 14px; height: 14px; }
.vcam .cpause .i-play, .vcam .cpause[aria-pressed='true'] .i-pause { display: none; }
.vcam .cpause[aria-pressed='true'] .i-play { display: block; }
.vcam .sound:hover, .vcam .cpause:hover { background: rgb(255 255 255 / 0.14); }
.vcam .sound:active, .vcam .cpause:active { transform: scale(0.97); }
.vcam .eq, .vev .eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.vcam .eq i, .vev .eq i { width: 2px; height: 4px; background: currentColor; border-radius: 1px; }
.vcam .sound[aria-pressed='true'] .eq i, .vev .snd[aria-pressed='true'] .eq i { animation: veq 0.6s ease-in-out infinite alternate; }
.vcam .sound[aria-pressed='true'] .eq i:nth-child(2), .vev .snd[aria-pressed='true'] .eq i:nth-child(2) { animation-delay: 0.2s; }
.vcam .sound[aria-pressed='true'] .eq i:nth-child(3), .vev .snd[aria-pressed='true'] .eq i:nth-child(3) { animation-delay: 0.4s; }
@keyframes veq { to { height: 12px; } }
/* radar mode (iteration 2, 15.10.2026): the switch by measuring method, the Doppler panel (no backdrop blur: the street
   stays sharp behind it), the radar / Sapsan rows of the evidence card, the protocol and the notice; .m-opt / .m-rad
   swap the copy per mode */
.vcam .m-rad, .vcam.radar .m-opt { display: none; }
.vcam.radar .m-rad { display: revert; }
.vcam.radar .evidence dl div.m-rad { display: flex; }
.vcam:not(.radar) .evidence dl div.m-rad { display: none; }
.vcam.radar .evidence dl .sp { order: -3; } .vcam.radar .evidence dl .rf { order: -2; } .vcam.radar .evidence dl .df { order: -1; }
.vcam .evidence .sh { display: none; } .vcam .evidence dd { white-space: nowrap; }
.vcam .evidence .okv { color: var(--signal); } .vcam .evidence .okv span, .vcam .dop .ok dd span { color: rgb(233 237 239 / 0.5); }
.vcam .cmode { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: rgb(255 255 255 / 0.08); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.16); }
.vcam .cmode button { min-height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: rgb(233 237 239 / 0.7); font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: background 0.3s, color 0.3s, transform 0.4s var(--ease-spring); }
.vcam .cmode button:hover { color: var(--color-dark-text); }
.vcam .cmode button:active { transform: scale(0.97); }
.vcam .cmode button[aria-pressed='true'] { background: rgb(255 255 255 / 0.9); color: #0c0f11; }
.vcam .dop { display: none; position: absolute; right: clamp(16px, 2vw, 26px); bottom: clamp(132px, 17vh, 160px); width: 312px; padding: 14px 14px 10px; border-radius: 18px; background: rgb(10 14 16 / 0.86); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12), 0 30px 60px -30px rgb(0 0 0 / 0.7); opacity: 0; transform: translateY(16px); pointer-events: none; }
.vcam.radar .dop { display: block; }
.vcam .dop-head { display: flex; justify-content: space-between; align-items: center; font: 500 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgb(233 237 239 / 0.86); padding: 0 2px 10px; }
.vcam .dop-head i { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgb(95 208 145 / 0.18); }
.vcam .dop-wave { display: block; width: 100%; height: 74px; border-radius: 10px; background: rgb(0 0 0 / 0.5); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06); }
.vcam .dop-f { margin: 10px 0 2px; padding: 8px 2px; border-top: 1px solid rgb(255 255 255 / 0.08); font: 500 13px var(--mono); color: var(--color-dark-text); letter-spacing: 0.02em; text-transform: none; }
.vcam .dop dl { margin: 0; display: grid; }
.vcam .dop dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 2px; border-top: 1px solid rgb(255 255 255 / 0.08); font: 500 12.5px var(--mono); font-variant-numeric: tabular-nums; }
.vcam .dop dt { color: rgb(233 237 239 / 0.55); text-transform: uppercase; letter-spacing: 0.08em; font-size: 10.5px; }
.vcam .dop dd { margin: 0; color: var(--color-dark-text); white-space: nowrap; }
.vcam .dop .ok b { font-weight: 500; color: var(--signal); }
.vcam .dop small { display: block; padding: 6px 2px 0; font: 500 9.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: rgb(233 237 239 / 0.42); }
.vcam .dop-head i { opacity: 0.35; transition: opacity 0.2s; } .vcam .dop.live .dop-head i { opacity: 1; }
/* the fine notice: a typeset sample (serif like the paper form), «Образец» in the corner; it rises alone, then the
   protocol joins it (side by side on a wide screen, over its lower part on a phone); the certificate number it quotes
   and the protocol's number light up together once both are on screen */
.vcam .notice { position: absolute; left: 0; right: 0; margin-inline: auto; top: 0; bottom: 0; margin-block: auto; height: max-content; width: min(520px, 42vw); padding: 18px 22px 14px; border-radius: 3px; overflow: hidden; color: #15161a; background: #fbfaf5; font: 400 10.8px/1.3 "Times New Roman", Times, "Liberation Serif", "Noto Serif", serif; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06), 0 30px 50px -30px rgb(0 0 0 / 0.6), 0 80px 140px -50px rgb(0 0 0 / 0.8); opacity: 0; transform: translateY(80%) rotate(3deg); }
.vcam .notice p { margin: 0; }
.vcam .notice u { text-decoration-thickness: 1px; text-underline-offset: 2px; font-weight: 700; }
.vcam .n-mark { position: absolute; right: 12px; top: 10px; padding: 2px 7px; border-radius: 2px; font: 600 9px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: rgb(178 44 30 / 0.7); box-shadow: inset 0 0 0 1px rgb(178 44 30 / 0.45); transform: rotate(3deg); }
.vcam .n-org { text-align: center; font-weight: 700; font-size: 1.04em; letter-spacing: 0.01em; padding: 0 60px 6px; border-bottom: 1.5px solid #15161a; }
.vcam .n-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 6px; }
.vcam .n-meta p:first-child { font-weight: 700; }
.vcam .n-to { font-weight: 700; text-align: right; }
.vcam .notice h4 { margin: 4px 0 0; text-align: center; font: 700 1.14em/1.2 inherit; font-family: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.vcam .n-sub { text-align: center; font-weight: 700; margin: 2px 0 6px !important; }
.vcam .notice .n-law + .n-sub { margin-top: 6px !important; margin-bottom: 0 !important; } .vcam .notice h4.n-num { text-decoration: none; margin: 2px 0 0; } .vcam .notice .n-num + h4 { margin: 2px 0 6px; letter-spacing: 0.06em; }
.vcam .n-law { text-indent: 2.2em; text-align: justify; margin-bottom: 6px !important; hyphens: auto; }
.vcam .n-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 4px; }
.vcam .notice dl { margin: 0; }
.vcam .notice dl div { display: block; }
.vcam .notice dt { display: inline; font-weight: 400; } .vcam .notice dd { display: inline; margin: 0 0 0 0.3em; }
.vcam .notice .n-h { display: block; font-weight: 700; }
.vcam .n-vio { margin-bottom: 4px; }
.vcam .n-cap { font-size: 0.92em; }
.vcam .n-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 6px; }
.vcam .n-photos canvas { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; background: #1b1d1f; }
.vcam .n-fixed { font-size: 0.92em; margin-bottom: 2px !important; }
.vcam .n-fixed b { font-weight: 700; }
.vcam .n-kind { margin-top: 6px !important; }
.vcam .n-cert, .vcam .protocol .title p span:first-child { transition: background 0.5s, box-shadow 0.5s; border-radius: 2px; }
.vcam.linked .n-cert, .vcam.linked .protocol .title p span:first-child { background: rgb(39 67 196 / 0.12); box-shadow: 0 0 0 3px rgb(39 67 196 / 0.12); }
@media (min-width: 900px) { .vcam .protocol { width: min(560px, 44vw); } .vcam .notice, .vcam .protocol { top: 66px; bottom: 14px; } }
@media (min-width: 900px) and (max-height: 820px) { .vcam .notice, .vcam .protocol { zoom: 0.86; } }
@media (max-width: 767px) {
  .vcam { padding: 6px; }
  .vcam .scrim { background: linear-gradient(0deg, rgb(12 15 17 / 0.9) 0%, rgb(12 15 17 / 0.62) 40%, rgb(12 15 17 / 0) 70%); }
  .vcam .tl { left: 16px; top: 20px; } .vcam .tr { right: 16px; top: 64px; } .vcam .bl { left: 16px; bottom: 16px; } .vcam .br { right: 16px; bottom: 12px; }
  .vcam .hud .tr, .vcam .cam-id { display: none; }
  .vcam .sign { width: 38px; height: 38px; box-shadow: inset 0 0 0 5px #d8261c; } .vcam .sign b { font-size: 14px; }
  .vcam .lim { display: none; }
  .vcam .intro { left: 18px; right: 18px; top: auto; bottom: 110px; gap: 14px; }
  .vcam .intro h2 { font-size: clamp(28px, 8vw, 36px); }
  .vcam .intro p { font-size: 15px; }
  .vcam .evidence { left: 12px; right: 12px; width: auto; top: auto; bottom: 96px; transform: translateY(40px); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; }
  .vcam .ev-head { grid-column: 1 / -1; padding-bottom: 2px; }
  .vcam .evidence dl { margin: 0; }
  .vcam .evidence dl div { padding: 6px 2px; font-size: 11.5px; }
  .vcam .evidence dl div:nth-child(n+3) { display: none; }
  .vcam .protocol { bottom: 6%; padding: 18px 18px 14px; }
  .vcam .protocol header { grid-template-columns: auto 1fr; gap: 10px; padding-right: 86px; }
  .vcam .protocol .mark { position: absolute; right: 0; top: -2px; }
  .vcam .protocol .org span:last-child { display: none; }
  .vcam .protocol .title { margin: 10px 0 8px; } .vcam .protocol h3 { font-size: 16px; }
  .vcam .protocol .title p { gap: 10px; font-size: 11px; }
  .vcam .fields { margin-bottom: 8px; } .vcam .fields div { font-size: 12px; padding: 4px 0; grid-template-columns: 1fr; gap: 1px; }
  .vcam table { font-size: 11px; } .vcam td, .vcam th { padding: 4px 6px; }
  .vcam .protocol .concl b { font-size: 14px; }
  .vcam .protocol .sig { grid-template-columns: auto 110px auto; gap: 8px; padding-top: 12px; }
  .vcam .protocol .sig svg { left: 70px; width: 110px; }
  .vcam .stamp { width: 70px; height: 70px; }
  .vcam .closing { bottom: 64px; }
  .vcam .cctl { left: auto; right: 12px; bottom: auto; top: 12px; margin: 0; gap: 6px; }
  .vcam .sound { padding: 8px 12px; font-size: 10.5px; }
  .vcam .cpause { width: 36px; padding: 0; }
  .vcam .cctl { gap: 5px; }
  .vcam .cmode { position: absolute; right: 0; top: 46px; padding: 2px; }
  .vcam .cmode button { min-height: 30px; padding: 0 10px; font-size: 9.5px; letter-spacing: 0.06em; }
  .vcam .cmode button { white-space: nowrap; } .vcam .vp.frozen .cmode { opacity: 0; pointer-events: none; }
  .vcam .dop { left: 12px; right: 12px; width: auto; bottom: 86px; padding: 11px 12px 8px; border-radius: 16px; display: none; }
  .vcam.radar .dop { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; align-items: start; }
  .vcam .dop-head { grid-column: 1 / -1; padding-bottom: 8px; font-size: 10.5px; }
  .vcam .dop-wave { grid-column: 1 / -1; height: 46px; }
  .vcam .dop-key { grid-column: 1 / -1; font-size: 10px; padding-top: 6px; }
  .vcam .dop-f { grid-column: 1 / -1; margin: 8px 0 0; padding: 7px 2px 6px; font-size: 12px; }
  .vcam .dop dl { grid-column: 1 / -1; }
  .vcam .dop dl div { padding: 5px 2px; font-size: 11.5px; }
  .vcam .dop dt { font-size: 9.5px; }
  .vcam .dop small { grid-column: 1 / -1; font-size: 9px; }
  .vcam.radar .evidence dl div:nth-child(n+2) { display: none; }
  .vcam.radar .evidence dl div.rf { display: flex; }
  .vcam .evidence .lg { display: none; } .vcam .evidence .sh { display: inline; }
  .vcam .notice { width: calc(100% - 24px); top: 100px; bottom: auto; margin-block: 0; padding: 12px 13px 10px; font-size: 8.4px; }
  .vcam .protocol { top: auto; bottom: 58px; margin-block: 0; zoom: 0.84; }
  .vcam .n-org { padding: 0 44px 4px; } .vcam .n-mark { font-size: 7.5px; right: 8px; top: 8px; }
  .vcam .n-photos { gap: 6px; } .vcam .n-cols { gap: 8px; }
}
.vcam.still { height: auto; }
.vcam.still .vp { height: auto; min-height: 100svh; display: grid; align-content: space-between; gap: 40px; padding: 120px 0 40px; background: var(--canvas) url(assets/scenes/media/cam-still.webp) center / cover; }
.vcam.still .intro, .vcam.still .closing { position: relative; inset: auto; translate: none; opacity: 1; transform: none; margin-inline: auto; }
.vcam.still .intro { left: auto; top: auto; width: min(580px, calc(100% - 36px)); }
.vcam.still .hint, .vcam.still .evidence, .vcam.still .protocol, .vcam.still .hud, .vcam.still .sound, .vcam.still .cctl, .vcam.still .seam, .vcam.still .cam-gl, .vcam.still .hudc { display: none; }

/* ================================================================ EV CHARGERS — port of EvChapter.astro
   one frame language with the camera page: an inset card, a mono service row on top; inside a light studio cyclorama */
.vev { --gut: clamp(16px, 4vw, 40px); position: relative; padding: 10px; background: var(--canvas); isolation: isolate; --fade: 1; }
.vev .ev-card { position: relative; min-height: calc(max(640px, 100vh) - 20px); min-height: calc(max(640px, 100svh) - 20px); border-radius: var(--film-r); overflow: hidden; isolation: isolate; color: var(--color-ink);
  background: radial-gradient(120% 70% at 66% 0%, #fdfcf8 0%, rgb(253 252 248 / 0) 60%), linear-gradient(180deg, var(--color-cream) 0%, #f1eee7 58%, #ebe7df 100%);
  box-shadow: 0 0 0 1px #ffffff1f; }
.vev .gl { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0 var(--mx, 44%), #000 calc(var(--mx, 44%) + 12%)), linear-gradient(180deg, transparent 0 7%, #000 15%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0 var(--mx, 44%), #000 calc(var(--mx, 44%) + 12%)), linear-gradient(180deg, transparent 0 7%, #000 15%); mask-composite: intersect; }
@media (max-width: 1240px) { .vev { --mx: 38%; } }
.vev .poster, .vev .poster img, .vev .stage-wrap, .vev .ev-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vev .poster img { object-fit: cover; object-position: 50% 50%; transition: opacity 0.9s var(--ease-out-expo); }
.vev .stage-wrap { opacity: 0; transition: opacity 0.9s var(--ease-out-expo); }
.vev[data-live] .stage-wrap { opacity: 1; }
.vev[data-live] .poster img { opacity: 0; }
.vev .svc { position: absolute; inset: 0 0 auto 0; z-index: 3; pointer-events: none; font: 500 11.5px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgb(21 25 27 / 0.72); }
.vev .svc > div { position: absolute; top: 24px; display: flex; align-items: center; gap: 14px; }
.vev .svc .tl { left: 26px; } .vev .svc .tr { right: 26px; }
.vev .ev-dot { display: inline-flex; align-items: center; gap: 7px; color: var(--color-accent); }
.vev .ev-dot i { width: 8px; height: 8px; border-radius: 50%; background: #1fa866; animation: vblink 1.6s ease-in-out infinite; }
.vev .ev-layer { position: relative; z-index: 2; min-height: inherit; display: flex; flex-direction: column; padding: 112px clamp(22px, 4vw, 60px) 34px; pointer-events: none; }
.vev .ev-layer > * { pointer-events: auto; }
.vev .copy { width: min(760px, 62%); }
.vev .room { flex: 1 1 auto; min-height: 28px; }
.vev .copy .vkick { margin: 0 0 26px; color: var(--color-muted); }
.vev h2 { font-size: clamp(34px, 4.2vw, 62px); line-height: 1.0; margin: 0 0 26px; color: var(--color-ink); text-wrap: initial; }
.vev .lead { font-size: 16.5px; line-height: 1.6; color: var(--color-ink); max-width: 480px; margin: 0 0 28px; }
.vev .row { display: flex; gap: 14px 28px; align-items: center; flex-wrap: wrap; }
.vev .sverka { --hl: 0; --tk: 0; --dl: 0; position: relative; z-index: 1; width: 480px; color: var(--color-ink); margin-bottom: 40px; }
.vev .cap { font: 500 11px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-faint); }
.vev .ev-mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; }
.vev .sv-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgb(21 25 27 / 0.18); }
.vev .state { font: 400 11.5px/1.2 var(--mono); letter-spacing: 0.02em; color: var(--color-muted); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.vev .state::before { content: ""; width: 6px; height: 6px; background: var(--color-line-strong); }
.vev .state.on::before { background: #1fa866; box-shadow: 0 0 0 3px rgb(31 168 102 / 0.18); animation: vblink 1.2s ease-in-out infinite; }
.vev .state.ok { color: var(--color-accent); }
.vev .state.ok::before { background: #1fa866; }
.vev .sv-ver { display: flex; align-items: center; gap: 8px; margin: 11px 0 0; font: 500 13px/1.3 var(--display); color: var(--color-ink); white-space: nowrap; }
.vev .sv-ver svg { width: 15px; height: 15px; color: var(--color-accent); flex: none; }
.vev .sv-ver .ev-mono { color: var(--color-accent); }
/* «ЭЗС поверена — счётчик точен» is the result, not a premise: it appears with Δ 0,00 once the readings have met
   (the scene drives --dl; the still / reduced-motion state sets .match and --dl: 1) */
.vev .sv-ver { opacity: 0; transform: translateY(4px); }
.vev .sverka.match .sv-ver { opacity: var(--dl); transform: translateY(calc((1 - var(--dl)) * 4px)); }
.vev .sv-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr 0.72fr; margin: 0; padding-top: 14px; }
.vev .sv-grid dt { font: 500 11px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-faint); margin-bottom: 9px; }
.vev .sv-grid dd { margin: 0; font: 400 42px/1 var(--mono); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; gap: 7px; opacity: var(--fade, 1); }
.vev .sv-grid dd small { font: 400 12px/1 var(--mono); letter-spacing: 0.02em; color: var(--color-muted); }
.vev .sv-grid .dlt dd { color: var(--color-muted); }
.vev .sverka.match .dlt dd, .vev .sverka.match .dlt dd small { color: var(--color-accent); }
.vev .sverka.match .dlt dd > span { display: inline-block; opacity: var(--dl); transform: translateY(calc((1 - var(--dl)) * 6px)); }
.vev .sverka.match .dlt dd small { opacity: calc(0.75 * var(--dl)); }
.vev .sv-hl { position: absolute; left: 0; top: var(--hl-top, 64px); width: var(--hl-w, 66%); height: 0; pointer-events: none; }
.vev .sv-hl .ln { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--color-accent); opacity: 0.55; transform-origin: 0 50%; transform: scaleX(var(--hl)); }
.vev .sv-hl .tk { position: absolute; right: 0; top: -5px; width: 1px; height: 11px; background: var(--color-accent); transform: scaleY(var(--tk)); opacity: var(--tk); }
.vev .sv-scale { position: relative; height: 26px; margin-top: 18px; color: var(--color-ink); }
.vev .sv-scale .band { position: absolute; left: 38%; right: 38%; top: 6px; height: 9px; border-radius: 2px; background: rgb(31 168 102 / 0.16); }
.vev .sv-scale .ticks { position: absolute; inset: 0 0 auto 0; height: 22px; opacity: 0.42; background: linear-gradient(90deg, currentColor 1px, transparent 1px) 0 12px / 10% 10px repeat-x, linear-gradient(90deg, currentColor 1px, transparent 1px) 0 17px / 2.5% 5px repeat-x; }
.vev .sv-scale::after { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: currentColor; opacity: 0.42; }
.vev .sv-scale .needle { position: absolute; left: 50%; top: -2px; width: 2px; height: 26px; margin-left: -1px; background: var(--color-line-strong); border-radius: 1px; }
.vev .sv-scale .needle::before { content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: inherit; }
.vev .sverka.match .sv-scale .needle { background: var(--color-accent); }
.vev .sv-foot { margin: 14px 0 0; font: 400 14px/1.4 var(--display); opacity: var(--fade, 1); }
.vev .sv-foot .f0 { color: var(--color-muted); }
.vev .sv-foot .f1 { display: none; }
.vev .sverka.match .sv-foot .f0 { display: none; }
.vev .sverka.match .sv-foot .f1 { display: inline; }
.vev .sv-foot .payv { font-variant-numeric: tabular-nums; font-weight: 500; }
.vev .strip { display: none; }
.vev .m-lead { margin: 0; font-size: 14px; line-height: 1.5; color: var(--color-muted); }
.vev .m-cta { display: flex; }
.vev .m-cta .button { flex: 1; justify-content: space-between; }
.vev .m-more { align-self: flex-start; }
.vev .ctl { position: absolute; z-index: 4; left: 0; right: 0; margin-inline: auto; width: max-content; bottom: 24px; display: flex; gap: 8px; }
.vev .ctl[hidden] { display: none; }
.vev .pp { height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; border-radius: 999px; border: 0;
  background: rgb(255 255 255 / 0.66); color: var(--color-ink); font-size: 11px; box-shadow: 0 0 0 1px var(--color-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform 0.4s var(--ease-spring), background 0.3s; }
.vev .pp:hover { background: rgb(255 255 255 / 0.9); }
.vev .pp:active { transform: scale(0.97); }
.vev .pp.pause { width: 36px; padding: 0; }
.vev .pp svg { width: 14px; height: 14px; }
.vev .pp .i-play, .vev .pp[aria-pressed="true"] .i-pause { display: none; }
.vev .pp[aria-pressed="true"] .i-play { display: block; }
.vev :focus-visible { outline-color: var(--color-accent); }
@media (max-width: 1240px) {
  .vev h2 { font-size: clamp(34px, 4.4vw, 54px); }
  .vev .copy { width: min(640px, 64%); }
  .vev .sverka { width: 440px; }
  .vev .sv-grid dd { font-size: 36px; }
}
@media (max-height: 760px) and (min-width: 701px) {
  .vev .ev-layer { padding-top: 96px; }
  .vev h2 { font-size: clamp(32px, 3.8vw, 50px); margin-bottom: 18px; }
  .vev .copy .vkick { margin-bottom: 16px; }
  .vev .lead { margin-bottom: 18px; }
  .vev .sv-scale { display: none; }
  .vev .sverka { margin-bottom: 52px; }
}
@media (max-width: 700px), (max-width: 1024px) and (orientation: portrait) {
  .vev { padding: 6px; }
  .vev .ev-card { min-height: calc(max(700px, 100svh) - 12px); }
  .vev .svc .tl { left: 16px; top: 20px; } .vev .svc .tr, .vev .svc .unit-id { display: none; }
  .vev .ev-layer { padding: 72px 18px max(14px, env(safe-area-inset-bottom)); }
  .vev .room { position: relative; min-height: 200px; }
  /* the picture starts below the heading (--hb, measured in scenes-src/ev.js): the macro of the plug no longer runs
     behind «… и заплатили» on narrow phones or in longer KZ / EN headings (13.10.2026) */
  .vev .gl { -webkit-mask-image: linear-gradient(180deg, transparent 0 var(--hb, 19%), #000 calc(var(--hb, 19%) + 8%), #000 52%, transparent 60%); mask-image: linear-gradient(180deg, transparent 0 var(--hb, 19%), #000 calc(var(--hb, 19%) + 8%), #000 52%, transparent 60%); }
  .vev .copy { width: auto; }
  .vev .copy .vkick { margin-bottom: 14px; font-size: 10px; }
  .vev h2 { font-size: clamp(28px, 8.2vw, 46px); line-height: 1.02; margin: 0; }
  .vev .copy .lead, .vev .copy .row { display: none; }
  .vev .sverka { width: auto; max-width: 560px; margin-bottom: 0; }
  .vev .sv-head { padding-bottom: 9px; }
  .vev .sv-grid { padding-top: 10px; grid-template-columns: 1fr 1fr 0.62fr; }
  .vev .sv-grid dt { font-size: 10px; margin-bottom: 6px; letter-spacing: 0.04em; }
  .vev .sv-grid dd { font-size: 28px; gap: 4px; }
  .vev .sv-grid dd small { font-size: 10.5px; }
  .vev .sv-scale { display: none; }
  .vev .sv-ver { margin-top: 8px; font-size: 12px; gap: 6px; }
  .vev .sv-ver .ev-mono { font-size: 10.5px; }
  .vev .sv-foot { margin-top: 8px; font-size: 13px; }
  .vev .sverka.match .state { visibility: hidden; }
  .vev .strip { margin-top: 20px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .vev .ctl { left: auto; right: 0; bottom: 10px; margin: 0; }
  .vev .pp { height: 34px; padding: 0 12px; font-size: 10.5px; }
  .vev .pp.pause { width: 34px; }
}
@media (max-width: 360px) { .vev .sv-grid dd { font-size: 24px; } .vev .sv-ver { white-space: normal; } }

@media (prefers-reduced-motion: reduce) {
  .vcam .rec i, .vev .state.on::before, .vev .ev-dot i { animation: none; }
  .vev .pp, .vev .poster img, .vev .stage-wrap, .dir-more-list a, .dir-more-list i { transition: none; }
}

/* partner sentence in the hero (cameras; medical when the owner names partners) — switched by ?partner=<id> */
.dir-partner { display: flex; align-items: center; gap: 18px 22px; flex-wrap: wrap; max-width: 780px; margin: -10px 0 34px; padding: 16px 20px; border: 1px solid var(--hairline); border-radius: 18px; background: var(--canvas-2); }
.dir-partner-logos { display: flex; align-items: center; gap: 16px; }
.dir-partner-logos img { height: 22px; width: auto; }
.dir-partner-logos img.is-inv { filter: invert(1) brightness(1.9); height: 18px; }
.dir-partner-logos img[hidden] { display: none; }
.dir-partner-logos img[hidden] + i, .dir-partner-logos i:has(+ img[hidden]) { display: none; }
.dir-partner-logos i { width: 1px; height: 22px; background: var(--hairline); }
.dir-partner p { flex: 1 1 280px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.vcam .partners img[hidden] { display: none; }
.dir-sec-lead { color: var(--ink-muted); max-width: 560px; }
@media (max-width: 760px) { .dir-partner { margin: -14px 0 28px; padding: 14px 16px; } .dir-partner p { font-size: 14px; } }
/* the closing band carries the v1 wordmark as a quiet watermark (as on the entry pages) */
.dir-cta::after { content: 'QMD.'; position: absolute; right: -0.04em; bottom: -0.22em; z-index: -1; font: 500 clamp(150px, 25vw, 380px)/1 var(--display); letter-spacing: -0.02em; color: #e9edef07; pointer-events: none; white-space: nowrap; }
.dir-cta { isolation: isolate; }
@media (max-width: 760px) { .dir-cta::after { font-size: 120px; } }

/* ---- 09.10.2026: living backgrounds on the direction pages (bg.js): graph paper under the title, isolines under the
   steps, a dot matrix under the reference standards, ribbons under the call to action. Masks keep the text areas calm. */
.dir-hero > .bg-fx { -webkit-mask-image: radial-gradient(ellipse 70% 95% at 82% 40%, #000 20%, transparent 85%); mask-image: radial-gradient(ellipse 70% 95% at 82% 40%, #000 20%, transparent 85%); }
.dir-steps { position: relative; }
.dir-steps > .bg-fx { -webkit-mask-image: linear-gradient(180deg, #000 0, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 45%, transparent 100%); }
.dir-refs { position: relative; }
.dir-refs > .bg-fx { -webkit-mask-image: linear-gradient(90deg, #000 0, #000 22%, transparent 62%); mask-image: linear-gradient(90deg, #000 0, #000 22%, transparent 62%); }
@media (max-width: 760px) {
  .dir-hero > .bg-fx { -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 75%); mask-image: linear-gradient(180deg, #000 0, transparent 75%); }
  .dir-refs > .bg-fx { -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 40%); mask-image: linear-gradient(180deg, #000 0, transparent 40%); }
}
/* EV reference standard: maker line and the short list of what the system covers */
.dir-refs-list .dir-ref-maker { margin-top: 10px; color: var(--ink-dim); font-size: 11px; }
.dir-ref-notes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.dir-refs-list .dir-ref-notes li { position: relative; display: block; padding: 0 0 0 18px; border: 0; color: var(--ink-muted); font-size: 14px; line-height: 1.45; }
.dir-refs-list .dir-ref-notes li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 5px; height: 5px; background: var(--signal); transform: rotate(45deg); }

/* ---- 12.10.2026: partners and the TUNKIA reference equipment.
   Near-square partner marks (MEDIKER) are drawn taller in the hero partner note so they read at the weight of the
   wordmarks. On the EV page the reference section carries the maker's mark (white TUNKIA logo + mono line) under the
   lead, the main standard (TK408C) in the usual row, then the maker's EV-charger tester line-up as a quiet card grid. */
.dir-partner-logos img.is-square { height: 40px; }
.dir-maker { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; margin: 0; padding-top: 18px; border-top: 1px dashed var(--hairline); max-width: 560px; }
.dir-maker img { height: 26px; width: auto; opacity: 0.92; }
.dir-maker span { color: var(--ink-muted); font-size: 11px; }
.dir-line { margin-top: 64px; }
.dir-line-h { font-size: clamp(20px, 1.9vw, 26px); text-transform: none; }
.dir-line-lead { margin-top: 10px; color: var(--ink-muted); max-width: 620px; font-size: 15px; }
.dir-line-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.dir-line-grid > li { display: grid; grid-template-rows: auto auto 1fr; gap: 10px; padding: 20px 20px 18px; border: 1px solid var(--hairline); border-radius: 18px; background: linear-gradient(165deg, #161d20 0%, #101518 100%);
  transition: border-color 0.3s, transform 0.45s cubic-bezier(0.23, 1, 0.32, 1); }
@media (hover: hover) and (pointer: fine) { .dir-line-grid > li:hover { border-color: #5fd09147; transform: translateY(-2px); } }
.dir-line-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dir-line-grid h4 { margin: 0; font: 500 19px/1.2 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.dir-line-tag { color: var(--signal); font-size: 10px; white-space: nowrap; }
.dir-line-grid p { margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 1.45; }
.dir-line-grid dl { margin: 6px 0 0; display: grid; gap: 10px; align-self: end; padding-top: 12px; border-top: 1px dashed var(--hairline); }
.dir-line-grid dt { color: var(--ink-dim); font-size: 10px; margin-bottom: 4px; }
.dir-line-grid dd { margin: 0; font: 500 13px/1.45 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.dir-line-grid dd i { font-style: normal; color: var(--signal); }
.dir-line-src { margin-top: 18px; font-size: 11px; }
.dir-line-src a { color: var(--ink-dim); text-decoration: none; border-bottom: 1px solid var(--hairline); transition: color 0.25s, border-color 0.25s; }
@media (hover: hover) { .dir-line-src a:hover { color: var(--signal); border-color: var(--signal); } }
@media (max-width: 760px) {
  .dir-partner-logos img.is-square { height: 36px; }
  .dir-maker img { height: 22px; }
  .dir-line { margin-top: 44px; }
  .dir-line-grid { gap: 10px; }
  .dir-line-grid > li { padding: 16px 16px 14px; border-radius: 16px; }
  .dir-line-grid h4 { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .dir-line-grid > li { transition: none; } }

/* lost WebGL context (13.10.2026): the camera frame falls back to the still, the medical bench steps aside (the paper and
   the copy stay); both come back once the browser restores the context. The EV chapter shows its poster (no data-live). */
.vcam .vp.gl-lost { background: var(--color-dark-2) url(assets/scenes/media/cam-still.webp) center / cover; }
.vcam .vp.gl-lost .cam-gl { visibility: hidden; }
.vmed [data-med-pin].gl-lost .mstage canvas { visibility: hidden; }

/* ---- Enquiry on the page (13.10.2026): «Подать заявку» scrolls here instead of leaving for the home page.
   Copy and direct links on the left, the form (home .enquiry styles) on the right; one column below 1150 px. */
.dir-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 80px; align-items: start; scroll-margin-top: calc(var(--header) - 20px); }
.dir-cta .contact-direct { margin-top: 6px; }
.dir-form { width: 100%; max-width: 640px; }
.dir-form-svc { display: grid; gap: 8px; margin: 0; padding-bottom: 16px; border-bottom: 1px solid var(--hairline); }
.dir-form-svc .mono { color: var(--ink-muted); }
.dir-form-svc b { font-weight: 500; font-size: 17px; line-height: 1.35; }
.dir-form .dir-pair { grid-template-columns: 1.6fr 0.7fr; }
@media (max-width: 1150px) { .dir-cta { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 760px) { .dir-form .dir-pair { grid-template-columns: 1fr; } }

/* accreditation line under the reference standards lead */
.dir-acc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 18px 0 0; color: var(--ink-muted); }
.dir-acc i { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 8px var(--signal); }
.dir-acc b { font-weight: 500; color: var(--ink); letter-spacing: 0.06em; }
/* TUNKIA line-up: phones show three cards and a «show more» button (enquiry.js) */
.dir-line-more { display: none; }
@media (max-width: 760px) {
  .dir-line:not(.is-open) .dir-line-grid > li:nth-child(n+4) { display: none; }
  .dir-line:not(.is-open) .dir-line-more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 18px; padding: 0 18px; border: 1px solid var(--hairline); border-radius: 999px; background: none; color: var(--ink); cursor: pointer; }
}

/* ---- 16.10.2026: the medical page is clinical white (owner: «стерильно белой, как в медицинском кабинете»).
   Scoped to body.dir-medical: the v1 tokens are re-set to white paper, graphite ink, light-grey hairlines and a calm
   medical teal (AA on white); the studio card takes the page's white (the scene composites onto #ffffff, no seam); the
   living dark backgrounds are off on this page. The preloader stays dark (it is global). */
html:has(> body.dir-medical) { background: #ffffff; color-scheme: light; }
body.dir-medical {
  --canvas: #ffffff; --canvas-2: #f6f8f9; --hairline: #dde3e6; --ink: #13191c; --ink-muted: #4b575d; --ink-dim: #64727a;
  --signal: #0b7a68; --signal-deep: #096957; --error: #c23b26;
  background: #ffffff; color: var(--ink);
}
body.dir-medical .vmed, body.dir-medical .vcam, body.dir-medical .vev {
  --color-ground: #ffffff; --color-cream: #ffffff; --color-raised: #eef2f4; --color-ink: #13191c; --color-muted: #4b575d; --color-faint: #5c686e;
  --color-line: #dde3e6; --color-line-strong: #a3adb2; --color-shell: rgb(19 25 28 / 0.045); --color-accent: #0b7a68;
}
body.dir-medical .vmed { --paper: #ffffff; }
body.dir-medical .vmed .pin { box-shadow: none; }
body.dir-medical .vmed .rd .st.ok i { box-shadow: 0 0 0 4px rgb(11 122 104 / 0.14); }
body.dir-medical .bg-fx { display: none; }
/* header: a white glass bar once the page scrolls; the menu sheet on white */
body.dir-medical .site-header::before { background: #ffffffe6; border-bottom-color: var(--hairline); }
@media (prefers-reduced-transparency: reduce) { body.dir-medical .site-header::before { background: #ffffff; } }
/* buttons: graphite pill, white type; hover a shade lighter (the global hover goes white) */
body.dir-medical .button:hover { background: #2b363b; border-color: #2b363b; }
body.dir-medical .pill-link:hover { background: var(--canvas-2); }
body.dir-medical :focus-visible { outline-color: var(--signal); }
/* cards, partner note, «other directions», the CTA watermark */
body.dir-medical .dir-more-list a:hover { background: #f2f6f7; }
body.dir-medical .dir-partner { background: var(--canvas-2); }
body.dir-medical .dir-partner-logos img.is-inv { filter: none; }
body.dir-medical .dir-partner-logos img:not(.is-inv) { filter: brightness(0) opacity(0.82); }
body.dir-medical .dir-cta::after { color: #13191c08; }
body.dir-medical .dir-acc i { box-shadow: none; }
/* form fields on white */
body.dir-medical .enquiry input, body.dir-medical .enquiry select, body.dir-medical .enquiry textarea { border-bottom-color: #c9d2d6; }
body.dir-medical .enquiry input:focus, body.dir-medical .enquiry select:focus, body.dir-medical .enquiry textarea:focus { border-bottom-color: var(--signal); }
body.dir-medical .enquiry select option { background: #ffffff; color: var(--ink); }
body.dir-medical .enquiry ::placeholder { color: #8a969c; }

/* ---- 16.10.2026: the medical chapter's sound toggle (v2/med-sound.ts): a quiet pill in the pin's lower right corner
   (phones: top right, under the header line); speaker with waves when on, a cross when off; until the first gesture the
   hint says the sound starts on a tap and the waves pulse softly. */
.vmed .msnd { position: absolute; z-index: 4; pointer-events: auto; right: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2.6svh, 26px); display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 11px;
  border: 1px solid var(--color-line); border-radius: 999px; background: rgb(255 255 255 / 0.86); color: var(--color-ink); font: 500 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color 0.25s, transform 0.3s var(--ease-spring); }
.vmed .msnd:hover { border-color: var(--color-line-strong); }
.vmed .msnd:active { transform: scale(0.97); }
.vmed .msnd:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.vmed .msnd svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.vmed .msnd .spk { fill: currentColor; stroke: none; }
.vmed .msnd .x { display: none; }
.vmed .msnd[aria-pressed='false'] .w1, .vmed .msnd[aria-pressed='false'] .w2 { display: none; }
.vmed .msnd[aria-pressed='false'] .x { display: inline; }
.vmed .msnd[aria-pressed='true'] .w1, .vmed .msnd[aria-pressed='true'] .w2 { stroke: var(--color-accent); }
.vmed .msnd .msnd-h { display: none; color: var(--color-faint); font-size: 10px; letter-spacing: 0.04em; text-transform: none; }
.vmed .msnd.wait .msnd-h { display: inline; }
.vmed .msnd.wait .w1, .vmed .msnd.wait .w2 { animation: msndw 1.8s ease-in-out infinite; }
.vmed .msnd.wait .w2 { animation-delay: 0.25s; }
@keyframes msndw { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@media (max-width: 960px) { .vmed .msnd { top: 14px; bottom: auto; right: 12px; min-height: 36px; padding: 0 12px 0 9px; } }
@media (prefers-reduced-motion: reduce) { .vmed .msnd.wait .w1, .vmed .msnd.wait .w2 { animation: none; opacity: 1; } }
