/* Fonts: the landing's own files. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("../public/assets/fonts/inter-cyrillic-ext.woff2") format("woff2");
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("../public/assets/fonts/inter-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("../public/assets/fonts/inter-greek-ext.woff2") format("woff2");
    unicode-range: U+1F00-1FFF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("../public/assets/fonts/inter-greek.woff2") format("woff2");
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("../public/assets/fonts/inter-vietnamese.woff2") format("woff2");
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("../public/assets/fonts/inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("../public/assets/fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../public/assets/fonts/jetbrains-mono-cyrillic-ext.woff2") format("woff2");
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../public/assets/fonts/jetbrains-mono-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../public/assets/fonts/jetbrains-mono-greek.woff2") format("woff2");
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../public/assets/fonts/jetbrains-mono-vietnamese.woff2") format("woff2");
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../public/assets/fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../public/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Case page, rebuilt from the landing's own pieces:
   dark hero with the contour map → paper sections like About and Approach →
   dark bands for the market and the call recordings → the contacts map as the finale. */
:root {
    --ink: #0a0a0a;
    --ink-2: #141414;
    --paper: #ebe6db;
    --paper-2: #e2dccf;
    --sheet: #f1eee6;
    --white: #f5f1e8;
    --muted: #5a5650;
    --muted-d: #a09a90;
    --accent: #d7ff2f;
    --line: rgba(10, 10, 10, .16);
    --line-d: rgba(255, 255, 255, .12);
    --f-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    --ease: cubic-bezier(.7, 0, .2, 1);
    --out: cubic-bezier(.22, 1, .36, 1);
    --max: 1280px;
    --gutter: 56px;
    color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 16px/1.5 var(--f-sans); font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); position: relative; }

/* ---------- header: the landing's own ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--paper); transform-origin: left; transform: scaleX(0); }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 90; padding: calc(20px + env(safe-area-inset-top, 0px)) 0 20px; background: linear-gradient(to bottom, rgba(10, 10, 10, .65), rgba(10, 10, 10, 0)); border-bottom: 1px solid transparent; transition: background .3s var(--ease), padding .3s var(--ease), border-color .3s var(--ease); }
.site-header.is-scrolled { background: rgba(10, 10, 10, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom-color: rgba(255, 255, 255, .07); padding-bottom: 14px; padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
.header-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 48px; }
.brand { display: inline-flex; align-items: baseline; gap: 14px; flex-shrink: 0; }
.brand-name { font-size: 13px; font-weight: 700; letter-spacing: .14em; }
.brand-role { font-size: 10px; font-weight: 500; letter-spacing: .2em; color: var(--muted-d); }
.nav { display: flex; gap: 34px; margin-left: auto; }
.nav-link { position: relative; padding: 6px 0; font-size: 11px; font-weight: 600; letter-spacing: .22em; }
.nav-link::before { content: ''; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1px; background: currentColor; transition: right .35s var(--ease); }
.nav-link:hover::before, .nav-link.is-active::before { right: 0; }
.nav-link.is-active { color: var(--accent); }
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border: 1px solid currentColor; font-size: 11px; font-weight: 700; letter-spacing: .2em; line-height: 1; transition: color .35s var(--ease); }
.btn::before { content: ''; position: absolute; inset: 0; background: var(--paper); transform: translateX(-101%); transition: transform .45s var(--ease); }
.btn > * { position: relative; }
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: none; }

/* ---------- shared type ---------- */
.eyebrow, .label { display: flex; align-items: center; gap: 14px; font: 500 11px/1.5 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before, .label::before { content: ''; width: 28px; height: 3px; flex: none; background: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 150px 0 110px; background: var(--ink); isolation: isolate; }
.contours { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s var(--ease); }
.contours.is-ready { opacity: 1; }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 120px; z-index: -1; background: linear-gradient(to bottom, rgba(10, 10, 10, 0), var(--ink)); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.back { display: inline-flex; gap: 10px; margin-bottom: 44px; font: 500 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-d); transition: color .3s; }
.back:hover { color: var(--paper); }
.hero .eyebrow { color: var(--muted-d); margin-bottom: 26px; }
.hero-title { font-weight: 900; font-size: clamp(40px, 4.4vw, 72px); line-height: .94; letter-spacing: -.035em; text-transform: uppercase; white-space: nowrap; }
.hero-title em { font-style: normal; color: var(--accent); }
.hero-grid--solo { grid-template-columns: minmax(0, 1fr); }
.hero-grid--solo .hero-title { font-size: clamp(40px, 6.2vw, 96px); }
.hero-grid--solo .hero-lead { max-width: 640px; }

.hero-lead { margin-top: 32px; max-width: 560px; font-size: 17px; line-height: 1.55; color: #cfc9bc; }
.hero-tags { margin-top: 28px; font: 500 10.5px/1.5 var(--f-mono); letter-spacing: .2em; color: var(--muted-d); }


/* ---------- paper sections ---------- */
.light { position: relative; background: var(--white); color: var(--ink); }
.dark { position: relative; background: var(--ink) url("../public/assets/media/cases/dispatch/dark.jpg") center / cover; background-blend-mode: multiply; color: var(--paper); }


/* chapters: a mono label with the lime dash on the left (like «Обо мне»), the text on the right */
.chapters-band { padding: 24px 0 40px; }
.chapter { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px 64px; padding: 80px 0; border-bottom: 1px solid var(--line); }
.chapter:last-child { border-bottom: 0; }
.chapter--wide { grid-template-columns: 1fr; }
.ch-head { align-self: start; }
.ch-head h2 { display: flex; align-items: center; gap: 14px; padding-top: 6px; font: 500 12px/1.4 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.chapter .ch-head h2 { align-items: flex-start; gap: 18px; padding-top: 0; font: 900 clamp(30px, 3.2vw, 46px)/1 var(--f-sans); letter-spacing: -.035em; color: var(--ink); }
.chapter .ch-head h2::before { width: 36px; height: 5px; margin-top: .4em; }
.ch-head h2::before { content: ''; width: 28px; height: 3px; flex: none; background: var(--accent); box-shadow: 0 0 0 .5px rgba(10, 10, 10, .2); }

.ch-body { min-width: 0; max-width: 760px; }
.chapter--wide .ch-body { max-width: none; }
.ch-body p { font-size: 17px; line-height: 1.65; color: #34312c; }
.ch-body p + p { margin-top: 18px; }
.ch-body .big { font-size: clamp(20px, 1.75vw, 24px); line-height: 1.45; font-weight: 600; letter-spacing: -.01em; color: var(--ink); max-width: 860px; }
.ch-body strong { font-weight: 700; color: var(--ink); }

/* hero facts: the result up front */
.hero-facts { margin-top: 36px; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 40px; padding-top: 24px; border-top: 1px solid var(--line-d); }
.hero-facts div { display: grid; gap: 8px; }
.hero-facts dt { font-weight: 900; font-size: clamp(28px, 2.6vw, 40px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.hero-facts dd { margin: 0; max-width: 150px; font: 500 10.5px/1.45 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-d); }

/* a browser window around a real screenshot */
.browser { position: relative; overflow: hidden; background: #fff; border: 1px solid rgba(255, 255, 255, .14); }
.browser img { display: block; width: 100%; height: auto; }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #1b1b1a; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a37; }
.browser-bar span { margin-left: 12px; font: 500 11px/1 var(--f-mono); letter-spacing: .04em; color: var(--muted-d); }
.browser--flat { border-color: var(--line); }

/* problem: five findings as an editorial table */

/* what I did: four steps */

/* figures inside the paper bands */
.fig-cap { display: grid; gap: 10px; max-width: 760px; margin-bottom: 44px; }
.fig-eyebrow { font: 500 12px/1.4 var(--f-mono); letter-spacing: .2em; color: var(--muted-d); }
.fig-eyebrow--ink { color: var(--muted); }
.fig-title { font-weight: 900; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.02; letter-spacing: -.03em; text-transform: uppercase; text-wrap: balance; }
.fig-desc { font-size: 16.5px; line-height: 1.55; color: var(--muted-d); }
.light .fig-desc { color: var(--muted); }

/* the market, dark band */
.band { padding: 110px 0 120px; }
.band + .light { border-top: 24px solid var(--ink); }

/* a real page in a scrollable window */
.browser--scroll { position: sticky; top: 96px; border-color: var(--line); }
.browser-view { height: min(640px, 70vh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }

/* what the dispatcher does */

/* call recordings */
.calls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.call { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 22px 22px 22px 20px; border: 1px solid var(--line-d); background: rgba(255, 255, 255, .03); transition: border-color .3s, background .3s; }
.call.is-playing { border-color: rgba(235, 230, 219, .5); background: rgba(255, 255, 255, .05); }
.call-play { display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; transition: transform .25s var(--out); }
.call-play:hover { transform: scale(1.06); }
.call-play svg { width: 22px; height: 22px; fill: currentColor; }
.call-play .i-pause, .call.is-playing .call-play .i-play { display: none; }
.call.is-playing .call-play .i-pause { display: inline; }
.call-who { font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-d); }
.call-what { margin: 4px 0 12px; font-weight: 800; font-size: 18px; line-height: 1.2; letter-spacing: -.015em; }
.call-bar { position: relative; height: 3px; background: rgba(255, 255, 255, .12); cursor: pointer; }
.call-bar span { position: absolute; inset: 0; background: var(--paper); transform-origin: left; transform: scaleX(0); }
.call-time { align-self: start; font: 500 12px/1 var(--f-mono); color: var(--muted-d); font-variant-numeric: tabular-nums; }

/* result */
.score { margin-bottom: 8px; }
.score-num { font-weight: 900; font-size: clamp(64px, 8vw, 120px) !important; line-height: .9 !important; letter-spacing: -.06em; color: var(--ink) !important; }
.score-num { background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 88% / 100% .16em; display: inline; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background-size 1s var(--out) .2s; }
.js .score:not(.is-in) .score-num { background-size: 0 .16em; }
.score-what { margin-top: 18px !important; font-size: 19px !important; font-weight: 700; color: var(--ink) !important; }
.score-note { margin-top: 8px !important; font-size: 15px !important; line-height: 1.55 !important; color: var(--muted) !important; }


/* the Miro board: process at a glance */
.miro-fig { grid-column: 1 / -1; margin-top: 72px; }
.miro-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 20px; }
.miro-shot { margin: 0; }
.miro-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: #f2f2f2; }
.miro-shot--wide { grid-column: 1 / -1; }
.miro-shot figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }



/* ---------- project passport: role, team, product ---------- */
.meta { padding: 80px 0 0; }
.passport { margin: 0; border-top: 2px solid var(--ink); }
.passport-row { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 0 64px; align-items: baseline; padding: 24px 0 26px; border-bottom: 1px solid var(--line); }
.passport dt { font: 500 12px/1.6 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.passport dd { margin: 0; max-width: 780px; font-size: 18px; line-height: 1.6; color: #2b2925; }

/* ---------- context: the lead and the story side by side ---------- */
.ctx { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.ctx-lead { font-weight: 800 !important; font-size: clamp(24px, 2.4vw, 34px) !important; line-height: 1.22 !important; letter-spacing: -.025em; color: var(--ink) !important; text-wrap: balance; }
.ctx-more { margin-top: 6px !important; font-size: 17px !important; line-height: 1.65 !important; }

/* ---------- problems pinned on the old page ---------- */
.audit { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 48px; align-items: start; }
.audit-list { counter-reset: none; border-top: 2px solid var(--ink); }
.audit-list li { border-bottom: 1px solid var(--line); }
.audit-list button { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; width: 100%; padding: 16px 12px 16px 0; cursor: pointer; transition: background .25s; }
.audit-list button:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.audit-list b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--ink); font: 600 11px/1 var(--f-mono); transition: background .25s; }
.audit-list span { font-size: 16px; line-height: 1.55; color: #34312c; }
.audit-list strong { display: block; margin-bottom: 2px; font-size: 18px; font-weight: 800; letter-spacing: -.015em; color: var(--ink); }
.audit-list li.is-on button { background: var(--paper); }
.audit-list .audit-group { padding: 22px 0 10px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 14px; line-height: 1.3; color: var(--muted); }
.audit-list .audit-group:first-child { padding-top: 14px; }
.audit-list li:has(+ .audit-group) { border-bottom: 0; }
.audit--page { margin-top: 0; }
.audit--page .browser { border-color: var(--line); }
.audit-list li.is-on b, .audit-list button:hover b { background: var(--ink); color: var(--white); }
.audit-page { position: sticky; top: 96px; border-color: var(--line); }
.browser-view { position: relative; }
.shot { position: relative; }
.shot img { display: block; width: 100%; height: auto; }
.pin { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--white); font: 700 11px/1 var(--f-mono); box-shadow: 0 0 0 3px var(--white); transition: transform .3s var(--out); }
.pin.is-on { transform: translate(-50%, -50%) scale(1.3); }
.pin::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--ink); opacity: 0; }
.pin.is-on::after { animation: pin-ring 1.2s var(--out) 2; }
@keyframes pin-ring { from { opacity: 1; transform: scale(.7); } to { opacity: 0; transform: scale(1.5); } }

/* ---------- what I changed: a timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; position: relative; }
.timeline .step { position: relative; padding-top: 22px; }
.timeline .step::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink); transform-origin: left; transition: transform .7s var(--out); }
.timeline .step > * { transition: opacity .6s var(--out), transform .6s var(--out); }
.js .timeline:not(.is-in) .step::before { transform: scaleX(0); }
.js .timeline:not(.is-in) .step > * { opacity: 0; transform: translateY(10px); }
.timeline .step:nth-child(2)::before, .timeline .step:nth-child(2) > * { transition-delay: .15s; }
.timeline .step:nth-child(3)::before, .timeline .step:nth-child(3) > * { transition-delay: .3s; }
.timeline .step:nth-child(4)::before, .timeline .step:nth-child(4) > * { transition-delay: .45s; }
.timeline .step h3 { margin-bottom: 12px; font-weight: 900; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.2; letter-spacing: -.02em; }
.timeline .step p { font-size: 15px; line-height: 1.6; color: #34312c; }

/* ---------- the market as a dot matrix ---------- */
.matrix-wrap { overflow-x: auto; }
.matrix { width: 100%; min-width: 760px; border-collapse: collapse; }
.matrix th, .matrix td { padding: 18px 12px; border-bottom: 1px solid var(--line-d); text-align: center; vertical-align: middle; }
.matrix thead th { padding-top: 0; font: 500 11px/1.3 var(--f-mono); letter-spacing: .08em; color: var(--muted-d); text-transform: uppercase; vertical-align: bottom; border-bottom-color: rgba(235, 230, 219, .35); }
.matrix .matrix-corner { text-align: left; }
.matrix tbody th { text-align: left; width: 38%; padding-left: 0; }
.matrix tbody th b { display: block; font-weight: 800; font-size: 18px; line-height: 1.25; letter-spacing: -.015em; }
.matrix tbody th span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.5; font-weight: 400; color: var(--muted-d); }
.dot { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); transition: transform .4s var(--out); }
.dot--no { width: 6px; height: 6px; background: rgba(235, 230, 219, .22); box-shadow: none; }
.matrix .count { font-weight: 900; font-size: 22px; color: var(--paper); }
.matrix thead .count { font: 500 11px/1.3 var(--f-mono); color: var(--muted-d); }
.js .matrix-wrap:not(.is-in) .dot:not(.dot--no) { transform: scale(0); }
.matrix tbody tr:nth-child(2) .dot { transition-delay: .08s; } .matrix tbody tr:nth-child(3) .dot { transition-delay: .16s; } .matrix tbody tr:nth-child(4) .dot { transition-delay: .24s; } .matrix tbody tr:nth-child(5) .dot { transition-delay: .32s; } .matrix tbody tr:nth-child(6) .dot { transition-delay: .4s; }

/* ---------- the dispatcher: main line, side cases, way back ---------- */
.flow2 { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.flow-main { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; position: relative; }
.fnode { position: relative; padding: 20px 18px 22px; background: var(--paper); border-top: 3px solid var(--ink); }
.fnode p { font-size: 15px; line-height: 1.55; color: #34312c; }
.flow-main .fnode:not(:last-child)::after { content: ''; position: absolute; right: -19px; top: 26px; width: 16px; height: 16px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: rotate(45deg) scale(.7); }
.fnode--end { background: var(--ink); }
.fnode--end p { color: #e3ded2; }
.fork { display: grid; gap: 4px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-d); }
.fork span { font-weight: 700; font-size: 14px; line-height: 1.4; color: var(--paper); }
.fork-back { color: var(--muted-d) !important; }
.flow-main::after { content: '↺ если житель не подтвердил, заявка возвращается исполнителю'; grid-column: 1 / -1; padding: 12px 0 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; color: var(--muted); }
.flow-side { display: grid; gap: 14px; padding-left: 22px; border-left: 1px solid var(--line); }
.side-label { font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--muted); }
.fnode--side { background: transparent; border: 1.5px solid var(--ink); border-top-width: 1.5px; }
.flow2 .fnode { transition: opacity .5s var(--out), transform .5s var(--out); }
.js .flow2:not(.is-in) .fnode { opacity: .3; transform: translateY(8px); }
.flow-main .fnode:nth-child(2) { transition-delay: .1s; } .flow-main .fnode:nth-child(3) { transition-delay: .2s; } .flow-main .fnode:nth-child(4) { transition-delay: .3s; } .flow-side .fnode { transition-delay: .45s; }

/* ---------- decisions: which problem each one answers ---------- */
.answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.answer { display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: start; padding: 22px 24px 24px 0; border-top: 2px solid var(--ink); }
.answer-src { display: grid; gap: 6px; }
.answer-src small { font: 500 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.answer-src b { justify-self: start; padding-right: 12px; font: 700 13px/1.3 var(--f-mono); letter-spacing: .04em; }
.answer-body { padding-left: 0; }
.answer-title { margin-bottom: 6px; font-weight: 800; font-size: 18px; line-height: 1.25; letter-spacing: -.015em; }
.answer-text { font-size: 15px !important; line-height: 1.55 !important; }

/* ---------- result tiles ---------- */
.chapter--result .ch-body { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 48px; align-items: start; }
.chapter--result .score-num { font-size: clamp(48px, 5.2vw, 78px) !important; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 2px solid var(--ink); }
.tile { padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.tile p { font-size: 16px !important; line-height: 1.55 !important; color: #34312c; }
.tile:last-child { grid-column: 1 / -1; }


/* ---------- before / after: one frame, a lime curtain ---------- */
.ba { margin: 56px 0 0; }
.ba-stage { position: relative; aspect-ratio: 1200 / 669; overflow: hidden; background: #0d0d0c; user-select: none; touch-action: pan-y; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ba-old { filter: grayscale(.25) contrast(.95); }
.ba-new { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--cut)); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 0; pointer-events: none; }
.ba-handle::before { content: ''; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: var(--white); }
.ba-handle i { position: absolute; top: 50%; left: 0; width: 54px; height: 54px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--white); box-shadow: 0 0 0 1px rgba(10, 10, 10, .25); }
.ba-handle i::before, .ba-handle i::after { content: ''; position: absolute; top: 50%; width: 9px; height: 9px; border-top: 2.5px solid var(--ink); border-left: 2.5px solid var(--ink); }
.ba-handle i::before { left: 12px; transform: translateY(-50%) rotate(-45deg); }
.ba-handle i::after { right: 12px; transform: translateY(-50%) rotate(135deg); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-stage:has(.ba-range:focus-visible) { outline: 3px solid var(--accent); outline-offset: 4px; }
.ba-tag { position: absolute; top: 18px; padding: 8px 12px; font: 700 11px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; pointer-events: none; transition: opacity .3s; }
.ba-tag--old { left: 18px; background: var(--ink); color: var(--paper); }
.ba-tag--new { right: 18px; background: var(--white); color: var(--ink); }
/* results */

/* decisions: four cards in two columns */

/* ---------- finale: the contacts map ---------- */
.finale { position: relative; overflow: hidden; padding: 120px 0 calc(64px + env(safe-area-inset-bottom, 0px)); background: var(--ink); isolation: isolate; }
.ch-head--dark h2 { color: var(--muted-d); }
.verdict { margin-top: 56px; max-width: 1040px; }
.verdict-pre, .verdict-post { max-width: 640px; font-size: 18px; line-height: 1.6; color: #cfc9bc; }
.verdict-main { margin: 30px 0; font-weight: 900; font-size: clamp(34px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.verdict-main strong { font-weight: 900; background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 92% / 100% .14em; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background-size 1.1s var(--out) .4s; }
.js .verdict:not(.is-in) .verdict-main strong { background-size: 0 .14em; }
.verdict-stat { display: flex; align-items: center; gap: 28px; margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line-d); }
.verdict-num { font-weight: 900; font-size: clamp(88px, 14vw, 200px); line-height: .85; letter-spacing: -.05em; color: var(--accent); }
.verdict-cap { font: 500 12px/1.6 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-d); }
.exit { margin-top: 110px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; }
.exit-cta { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 30px 32px; background: var(--accent); color: var(--ink); transition: transform .4s var(--out), box-shadow .4s; }
.exit-cta:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--accent), 0 0 70px rgba(215, 255, 47, .45); }
.exit-q { font-weight: 900; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.05; letter-spacing: -.03em; }
.exit-btn { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .2em; }
.exit-next { display: grid; grid-template-columns: 1fr auto; align-content: space-between; gap: 40px 20px; padding: 30px 32px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(10, 10, 10, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: border-color .3s; }
.exit-next:hover { border-color: var(--paper); }
.exit-label { grid-column: 1 / -1; font: 500 11px/1 var(--f-mono); letter-spacing: .2em; color: var(--muted-d); }
.exit-title { font-weight: 800; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.15; letter-spacing: -.02em; }
.exit-next svg { align-self: end; transition: transform .35s var(--out); }
.exit-next:hover svg { transform: translateX(6px); }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
    :root { --gutter: 40px; }
    .nav { display: none; }
    .header-inner { justify-content: space-between; }
    .hero-grid { grid-template-columns: 1fr; gap: 56px; }
    .chapter { grid-template-columns: 1fr; }
    .audit { grid-template-columns: 1fr; }
    .ctx { grid-template-columns: 1fr; gap: 28px; }
    .passport-row { grid-template-columns: 200px minmax(0, 1fr); gap: 0 32px; }
    .flow-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .flow-main .fnode:nth-child(2)::after { display: none; }
    .audit-page { position: relative; top: auto; max-width: 480px; }
    .browser--scroll { position: relative; top: auto; max-width: 480px; }
    .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
    .flow2 { grid-template-columns: 1fr; }
    .flow-side { padding-left: 0; border-left: 0; grid-template-columns: 1fr 1fr; }
    .side-label { grid-column: 1 / -1; }
    .answers { grid-template-columns: 1fr; }
    .chapter--result .ch-body { grid-template-columns: 1fr; }
    .calls { grid-template-columns: 1fr; max-width: 560px; }
    .exit { grid-template-columns: 1fr; }
}

/* ---------- phones ---------- */
@media (max-width: 700px) {
    :root { --gutter: 20px; }
    .brand-role { display: none; }
    .site-header .btn { padding: 11px 14px; }
    .hero { padding: 108px 0 64px; }
    .back { margin-bottom: 28px; }
    .hero .eyebrow { margin-bottom: 18px; }
    .hero-title, .hero-grid--solo .hero-title { font-size: clamp(30px, 9.4vw, 48px); }
    .hero-lead { font-size: 16px; }
    .hero-grid { gap: 40px; }
    .chapter { padding: 52px 0; gap: 28px; }
    .ch-body p { font-size: 16px; }
    .hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
    .hero-facts dt { font-size: 26px; }
    .hero-facts dd { font-size: 9.5px; letter-spacing: .06em; }
    .miro-fig { margin-top: 48px; }
    .miro-grid { grid-template-columns: 1fr; }
    .meta { padding-top: 56px; }
    .passport-row { grid-template-columns: 1fr; gap: 12px; padding: 20px 0 22px; }
    .passport dd { font-size: 16px; }
    .ctx-more { font-size: 16px !important; }
    .ba-tag { top: 10px; padding: 6px 8px; font-size: 9.5px; letter-spacing: .12em; }
    .ba-tag--old { left: 10px; }
    .ba-tag--new { right: 10px; }
    .ba-handle i { width: 40px; height: 40px; }
    .ba-handle i::before { left: 8px; }
    .ba-handle i::after { right: 8px; }
    .timeline { grid-template-columns: 1fr; gap: 28px; }
    .flow-main { grid-template-columns: 1fr; gap: 14px; }
    .flow-main .fnode::after { display: none; }
    .flow-side { grid-template-columns: 1fr; }
    .answer { grid-template-columns: 1fr; gap: 10px; padding-right: 0; }
    .answer-src { grid-template-columns: auto auto; align-items: center; justify-content: start; gap: 10px; }
    .answer-body { padding-left: 0; }
    .tiles { grid-template-columns: 1fr; }
    .matrix tbody th b { font-size: 16px; }
    .band { padding: 72px 0 80px; }
    .fig-cap { margin-bottom: 28px; }
    .browser-view { height: 520px; }
    .call { grid-template-columns: 52px minmax(0, 1fr) auto; padding: 18px 16px; gap: 14px; }
    .call-play { width: 52px; height: 52px; }
    .finale { padding-top: 84px; }
    .verdict { margin-top: 36px; }
    .verdict-stat { flex-direction: column; align-items: flex-start; gap: 14px; }
    .verdict-pre, .verdict-post { font-size: 16px; }
    .exit { margin-top: 64px; }
    .exit-cta, .exit-next { padding: 24px 22px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- consent banner (consent-case.css): the site's fonts and flat ghost buttons ---------- */
body .consent-banner { --f-mono: 'JetBrains Mono', ui-monospace, monospace; font-family: var(--f-sans); }
.consent-banner p { margin: 0; }
.consent-btn { cursor: pointer; }
.consent-btn-ghost { background: transparent; }
body .case-cookie-controls, body .case-cookie-controls a, body .case-cookie-controls button { font-family: var(--f-mono); }
