/* Hallmark · shape: Narrative Workflow · genre: atmospheric · theme: Midnight (deal 1/3, seed apartment-renovation-company-chisinau-4857·60757290·2026-11-17·r0) · job: hire · draw: manual
 * hero: Settled over the first video frame · nav: edge-aligned, logo and one action · footer: a mast · imagery: the client's timelapse video · signature: the renovation scrubbed frame by frame with a film HUD (timecode, frame count, stage index)
 * axes: dark/grotesk-sans/cool · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P2 H2 E2 S3 R2 V2 · weakest: R, the figures band uses estimates built from the stage terms, labelled as such */
/* waive: Midnight ground → light Cloud Dancer with powder blue by default and a deep navy night mode, per the client's 2026–2027 colour brief; the film stays dark in both */
/* waive: theme face Mona Sans → Roboto Flex at the same expanded 300 cut, because Mona Sans has no Cyrillic */
/* waive: theme accent azure → brand orange from the client's logo; the brand outranks the theme's cold signal */
/* waive: motion budget (one reveal) → GSAP motion layer across sections, at the client's explicit request for maximum animation; every tween starts from a GSAP-set state, so content stays visible without scripts and under prefers-reduced-motion */
/* waive: 54, 67 — the numbered section badges and the tracked uppercase plate labels come from the client's own UI guide (§4–5), kept at their request */
/* waive: 59, bands sit edge to edge on purpose: each section after the film has its own paint colour at the client's request, and a paint roller marks every seam */
/* waive: 80, the paint roller at the seams is the client's own supplied drawing, adapted; it is the page's signature, not decoration */
/* waive: 62, the nine stage panels are one scrubbed sequence; each shows at its own scroll position and all nine stay in the DOM and in the index */
/* waive: 44c and 79, the hero is the full-bleed first frame of the film; the space under the copy is the picture */
/* waive: 58 in the no-script and reduced-motion layout, where the nine scrubbed stages become one list */
/* waive: scroll scrub is JS on canvas, because the frames are the content; no CSS-only path exists for an image sequence */
@import url("./tokens.css");
@import url("./base.css");

@font-face { font-family: "Roboto Flex"; font-style: normal; font-display: swap; font-weight: 100 1000; font-stretch: 25% 151%; src: url("fonts/roboto-flex-cyrillic-standard-normal.woff2") format("woff2-variations"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto Flex"; font-style: normal; font-display: swap; font-weight: 100 1000; font-stretch: 25% 151%; src: url("fonts/roboto-flex-latin-standard-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* 2026–2027 palette. Light (default): Cloud Dancer white with powder blue (Valspar Cottage Door) and deep ink blue. Night: deep luminous navy (WGSN Luminous Blue family). Brand orange from the logo in both. */
  --l-paper: #f2f1ec; --l-paper-2: #e4eaf1; --l-paper-3: #d3dde9; --l-ink: #14213a; --l-ink-2: #33415a; --l-muted: #56657e; --l-rule: #ccd6e2; --l-rule-2: #9fb3ca; --l-accent-2: #9a4416; --l-focus: #9a4416;
  --d-paper: #0e1829; --d-paper-2: #142238; --d-paper-3: #1c2d49; --d-ink: #f2f1ec; --d-ink-2: #d5deea; --d-muted: #9aabc2; --d-rule: #25385a; --d-rule-2: #3a5179; --d-accent-2: oklch(70% 0.13 55); --d-focus: oklch(82% 0.13 62);
  --color-blue: #5b8fd6; --color-powder: #b9cadd; --ghost-stroke: rgb(242 241 236 / 0.35); --accent-halo: rgb(232 135 58 / 0.25); --chip-bg: rgb(14 24 41 / 0.72); --mask-solid: #000;
  --color-accent: oklch(74% 0.14 58); --color-accent-ink: oklch(18% 0.04 50); --color-sage: var(--color-powder);
  --color-scrim: rgb(8 14 28 / 0.8); --color-scrim-0: rgb(8 14 28 / 0);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --nav-h: 76px;
  --font-display: "Roboto Flex", ui-sans-serif, system-ui, sans-serif; --font-body: var(--font-display);
}
:root, .theme-light {
  color-scheme: light;
  --color-paper: var(--l-paper); --color-paper-2: var(--l-paper-2); --color-paper-3: var(--l-paper-3);
  --color-ink: var(--l-ink); --color-ink-2: var(--l-ink-2); --color-muted: var(--l-muted);
  --color-rule: var(--l-rule); --color-rule-2: var(--l-rule-2); --color-accent-2: var(--l-accent-2); --color-focus: var(--l-focus);
}
/* night mode, and the film which is always dark */
:root[data-theme="dark"], .film, .nav.is-clear, .scheme-dark, .lb, .game {
  color-scheme: dark;
  --color-paper: var(--d-paper); --color-paper-2: var(--d-paper-2); --color-paper-3: var(--d-paper-3);
  --color-ink: var(--d-ink); --color-ink-2: var(--d-ink-2); --color-muted: var(--d-muted);
  --color-rule: var(--d-rule); --color-rule-2: var(--d-rule-2); --color-accent-2: var(--d-accent-2); --color-focus: var(--d-focus);
}
.film { color: var(--color-ink); }
::selection { background: var(--color-sage); color: var(--l-ink); }
.rstars { color: var(--color-accent-2); }
html { -webkit-tap-highlight-color: transparent; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 200ms; animation-timing-function: var(--ease-out); }

/* focus over the film: a terracotta ring with a light halo reads on dark video and on light paper */
.nav a:focus-visible, .nav button:focus-visible { outline: 2px solid var(--l-focus); outline-offset: 2px; box-shadow: 0 0 0 5px var(--d-ink); }

/* logos: light lettering on dark grounds, dark lettering on light */
.logo-dark { display: none; }
:root:not([data-theme="dark"]) .on-paper .logo-light { display: none; }
:root:not([data-theme="dark"]) .on-paper .logo-dark { display: block; }

/* theme switch */
.theme-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-pill); background: none; color: var(--color-ink); cursor: pointer; transition: background-color var(--dur-short) ease, color var(--dur-short) ease, transform 160ms var(--ease-out); }
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: var(--z-sticky-nav); height: calc(var(--nav-h) + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); background: var(--color-paper); box-shadow: inset 0 -1px 0 var(--color-rule); color: var(--color-ink); transition: background-color var(--dur-short) var(--ease-out); }
.nav__in { height: var(--nav-h); max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); }
.nav__logo { display: block; height: 52px; }
.nav__logo img { height: 100%; width: auto; }
.nav__links { display: flex; align-items: center; gap: var(--space-lg); }
.nav__links a:not(.btn) { color: var(--color-ink-2); text-decoration: none; font-size: var(--text-sm); font-weight: 500; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: var(--space-sm) var(--space-lg); border: var(--rule-hair) solid transparent; border-radius: var(--radius-pill); font-weight: 500; text-decoration: none; color: var(--color-ink); background: none; cursor: pointer; transition: background-color var(--dur-short) ease, color var(--dur-short) ease, border-color var(--dur-short) ease, transform 160ms var(--ease-out); }
.btn:active:not(:disabled), .theme-btn:active, .index button:active { transform: scale(0.97); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:active { background: var(--color-accent-2); }
.btn--secondary { border-color: var(--color-rule-2); }
.btn--secondary:active { background: var(--color-paper-3); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; transition: none; }

/* film */
.film { position: relative; height: calc(var(--steps, 10) * 100svh); }
.film__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--color-paper); }
.film__poster, .film__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__canvas { display: none; }
.js .film__canvas { display: block; }
.film__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--color-scrim) 0%, var(--color-scrim-0) 55%), linear-gradient(270deg, var(--color-scrim) 0%, var(--color-scrim-0) 28%), linear-gradient(0deg, var(--color-scrim) 0%, var(--color-scrim-0) 40%); }

.film__ui { position: absolute; inset: 0; max-width: var(--container); margin-inline: auto; }

.hero { position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(var(--space-3xl) + var(--space-lg)); max-width: 46rem; transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.hero h1 { font-size: clamp(2.6rem, 4.6vw + 0.6rem, 5rem); font-stretch: var(--display-stretch); }
.hero p { margin-top: var(--space-lg); color: var(--color-ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.hero.is-gone { opacity: 0; transform: translateY(-12px); pointer-events: none; transition-duration: 220ms; }
.settle { animation: settle var(--dur-long) var(--ease-out) both; }
@keyframes settle { from { opacity: 0.6; } }

.stages { list-style: none; margin: 0; padding: 0; }
.stage { position: absolute; left: var(--gutter); bottom: calc(var(--space-3xl) + var(--space-lg)); width: min(30rem, calc(100% - 2 * var(--gutter))); }
.stage__num { font-size: var(--text-sm); color: var(--color-accent); font-variant-numeric: tabular-nums; font-weight: 500; }
.stage h2 { margin-top: var(--space-xs); font-size: clamp(2.2rem, 3.4vw + 0.6rem, 3.8rem); font-stretch: var(--display-stretch); }
.stage p { margin-top: var(--space-md); color: var(--color-ink-2); }
.stage dl { margin: var(--space-lg) 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-lg); font-size: var(--text-sm); }
.stage dt { color: var(--color-muted); padding-block: var(--space-xs); border-top: var(--rule-hair) solid var(--color-rule-2); }
.stage dd { margin: 0; padding-block: var(--space-xs); border-top: var(--rule-hair) solid var(--color-rule-2); }
.js .stage { opacity: 0; transform: translateY(8px); transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); pointer-events: none; }
.js .stage.is-on { opacity: 1; transform: none; transition-duration: 300ms; transition-delay: 60ms; }

.index { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); }
.index ol { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2xs); }
.index button { display: grid; grid-template-columns: 2.2em auto; gap: var(--space-xs); padding: var(--space-2xs) 0; border: 0; background: none; color: var(--color-muted); font-size: var(--text-sm); text-align: left; cursor: pointer; font-variant-numeric: tabular-nums; transition: color var(--dur-short) var(--ease-out); }
.index button[aria-current="step"] { color: var(--color-ink); }
.index button[aria-current="step"] span:first-child { color: var(--color-accent); }

.meter { position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--space-xl); height: 2px; background: var(--color-rule-2); }
.meter span { display: block; height: 100%; background: var(--color-accent); transform-origin: 0 50%; transform: scaleX(0); }
.meter i { position: absolute; top: -5px; width: 1px; height: 12px; background: var(--color-rule-2); }

/* no script or reduced motion: the poster with the hero, then the stages as a list */
html:not(.js) .film { height: auto; }
html:not(.js) .film__pin { position: relative; height: auto; overflow: visible; }
html:not(.js) .film__poster { height: 100svh; }
html:not(.js) .film__shade { height: 100svh; }
html:not(.js) .film__ui { position: relative; padding: 40svh var(--gutter) var(--space-3xl); }
html:not(.js) .hero { position: static; min-height: calc(60svh - var(--space-3xl)); }
html:not(.js) .stages { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: var(--space-2xl) var(--gap-columns); margin-top: var(--space-3xl); }
html:not(.js) .stage { position: static; width: auto; }
html:not(.js) .stage dl { display: none; }
html:not(.js) .index, html:not(.js) .meter { display: none; }
/* hover states only on devices with a real pointer (no sticky hover after a tap) */
@media (hover: hover) and (pointer: fine) {
  :root:not([data-theme="dark"]) .btn--primary:hover { background: var(--color-ink); color: var(--color-paper); }
  .theme-btn:hover { background: var(--color-paper-2); }
  .nav__links a:not(.btn):hover { color: var(--color-ink); }
  .btn--primary:hover { background: var(--color-ink); }
  .btn--secondary:hover { background: var(--color-paper-2); }
  .index button:hover { color: var(--color-ink-2); }
  .contact__list a:hover { background: var(--color-paper-3); }
  .linkish:hover { color: var(--color-ink); }
}

/* sections after the film */
.band { padding-block: var(--section-gap); }
.band__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: end; }
.band__head p { color: var(--color-muted); }

.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin-top: var(--space-2xl); }
.fig { font-weight: var(--display-weight); font-stretch: var(--display-stretch); letter-spacing: -0.03em; line-height: 0.9; font-size: clamp(3.5rem, 6vw + 1rem, 7.5rem); font-variant-numeric: tabular-nums; }
.fig small { font-size: var(--text-lg); font-stretch: 100%; font-weight: 400; letter-spacing: 0; color: var(--color-ink-2); margin-left: var(--space-xs); }
.figs p { margin-top: var(--space-md); color: var(--color-ink-2); max-width: 30ch; }

.rows { margin-top: var(--space-2xl); border-bottom: var(--rule-hair) solid var(--color-rule); }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.row h3 { font-stretch: var(--display-stretch); font-weight: 300; font-size: var(--text-xl); }
.row p { color: var(--color-ink-2); }
.row .price { font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: var(--text-3xl); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.row .price small { font-size: var(--text-sm); font-stretch: 100%; color: var(--color-muted); margin-left: var(--space-2xs); }
.rows--two .row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
.note { margin-top: var(--space-lg); color: var(--color-muted); font-size: var(--text-sm); }

.contact { padding-block: var(--section-gap); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); align-items: end; }
.contact__list { list-style: none; margin: 0; padding: 0; border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.contact__list a { display: grid; gap: var(--space-2xs); padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule-2); text-decoration: none; transition: background-color var(--dur-short) var(--ease-out); }
.contact__list span:first-of-type { font-stretch: var(--display-stretch); font-weight: 300; font-size: var(--text-2xl); }
.contact__list span:last-of-type { color: var(--color-muted); font-size: var(--text-sm); }
.contact__phone { display: inline-block; white-space: nowrap; margin-top: var(--space-xl); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: clamp(1.9rem, 4.4vw, 5rem); letter-spacing: -0.03em; text-decoration: none; font-variant-numeric: tabular-nums; }
.contact__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.contact p { margin-top: var(--space-lg); color: var(--color-ink-2); }


@media (max-width: 60rem) {
  .index { display: none; }
  .band__head, .row, .rows--two .row { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .figs { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .contact__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
}
@media (max-width: 40rem) {
  :root { --nav-h: 108px; }
  .nav__logo { height: 42px; }
  .nav__links a:not(.btn) { display: none; }
    .hero, .stage { bottom: calc(var(--space-2xl) + var(--space-sm)); }
  .stage dt:nth-of-type(2), .stage dd:nth-of-type(2) { display: none; }
  .meter { bottom: var(--space-lg); }
}

/* reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: var(--space-2xl) var(--gap-columns); margin-top: var(--space-2xl); }
.reviews:empty { display: none; }
.review { border-top: var(--rule-hair) solid var(--color-rule-2); padding-top: var(--space-lg); }
.review header { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: var(--space-sm); align-items: center; }
.review header img, .review__ini { width: 40px; height: 40px; object-fit: cover; background: var(--color-paper-3); }
.review__ini { display: grid; place-items: center; font-weight: 500; color: var(--color-ink-2); }
.review h3 { font-size: var(--text-md); font-weight: 500; font-stretch: 100%; letter-spacing: 0; }
.review header p { font-size: var(--text-xs); color: var(--color-muted); }
.review > p { margin-top: var(--space-md); color: var(--color-ink-2); }
.review .review__obj { color: var(--color-muted); font-size: var(--text-sm); }
.rstars { color: var(--color-accent-2); font-size: var(--text-sm); }
.rstars span { color: var(--color-muted); opacity: 0.55; }
.reviews__empty { margin-top: var(--space-2xl); color: var(--color-ink-2); font-size: var(--text-lead); max-width: 40ch; }
.reviews__empty[hidden] { display: none; }

.review-box__who { display: flex; align-items: center; gap: var(--space-sm); }
.review-box__who img { width: 40px; height: 40px; object-fit: cover; }
.review-box__who b { display: block; font-weight: 500; }
.linkish { padding: 0; border: 0; background: none; color: var(--color-muted); font-size: var(--text-sm); text-decoration: underline; cursor: pointer; }
.stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: var(--space-2xs); margin: 0; padding: 0; border: 0; }
.stars legend { float: left; width: 100%; margin-bottom: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.stars input { position: absolute; opacity: 0; }
.stars label { width: 48px; height: 48px; display: grid; place-items: center; font-size: 0; cursor: pointer; border: var(--rule-hair) solid var(--color-rule-2); }
.stars label::before { content: "★"; font-size: var(--text-xl); color: var(--color-rule-2); transition: color var(--dur-micro) var(--ease-out); }
.stars input:checked ~ label::before, .stars label:hover::before, .stars label:hover ~ label::before { color: var(--color-accent); }
.stars input:focus-visible + label { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.field { display: grid; gap: var(--space-xs); }
.field span { font-size: var(--text-sm); color: var(--color-muted); }
.field input, .field textarea, .field select { width: 100%; padding: var(--space-sm); border: var(--rule-hair) solid var(--color-muted); border-radius: 0; background: var(--color-paper); color: var(--color-ink); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 0; }
.form-msg { min-height: 1.5em; color: var(--color-ink-2); }
.form-msg[data-state="error"] { color: var(--color-error); }
.form-msg[data-state="ok"] { color: var(--color-success); }
.btn:disabled, .btn:disabled:hover { background: var(--color-paper-3); color: var(--color-muted); border-color: var(--color-rule-2); cursor: not-allowed; }

/* channels */
.channels { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); margin-top: var(--space-2xl); align-items: start; }
.channels__media { display: flex; gap: var(--gap-columns); }
.frame { position: relative; background: var(--color-paper-2); }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.frame--wide { flex: 2 1 0; aspect-ratio: 16 / 9; }
.frame--tall { flex: 1 1 0; aspect-ratio: 9 / 16; max-width: 20rem; }
.channels__list { list-style: none; margin: 0; padding: 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.channels__list a { display: grid; gap: var(--space-2xs); padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); text-decoration: none; }
.channels__list span:first-of-type { font-stretch: var(--display-stretch); font-weight: 300; font-size: var(--text-2xl); }
.channels__list span:last-of-type { color: var(--color-muted); font-size: var(--text-sm); }
.channels:not(:has(.channels__media)) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 60rem) { .channels { grid-template-columns: minmax(0, 1fr); } .channels__media { flex-direction: column; } .frame--tall { max-width: none; aspect-ratio: 9 / 14; } }


/* ---------- icons ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.18em; fill: currentColor; }
.row h3 { display: flex; align-items: center; gap: var(--space-sm); }
.row h3 .ico { width: 28px; height: 28px; padding: var(--space-2xs); box-sizing: content-box; color: var(--color-blue); background: var(--color-paper-2); border-radius: 50%; transition: transform 200ms var(--ease-out), background-color 200ms ease; }
.contact__list a, .channels__list a { grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-md); align-items: center; }
.contact__list a > span, .channels__list a > span { grid-column: 2; }
.contact__list .ico--brand, .channels__list .ico--brand { grid-row: 1 / span 2; width: 36px; height: 36px; color: var(--color-ink); transition: transform 200ms var(--ease-out), color 200ms ease; }
.index button { grid-template-columns: 2.2em 18px auto; align-items: center; }
.index .ico { width: 16px; height: 16px; }

/* socials in the footer */

/* ---------- stage text motion ---------- */
.stage__head { display: flex; align-items: center; gap: var(--space-sm); }
.stage__ico { width: 34px; height: 34px; color: var(--color-accent); }
@media (min-width: 60rem) {
  }
.js .stage h2 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.js .stage h2 .w > span { display: inline-block; transform: translateY(105%); transition: transform 180ms var(--ease-out); }
.js .stage.is-on h2 .w > span { transform: none; transition: transform 560ms var(--ease-out) calc(80ms + var(--i, 0) * 45ms); }
.js .stage .stage__ico use { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 180ms ease; }
.js .stage.is-on .stage__ico use { stroke-dashoffset: 0; transition: stroke-dashoffset 900ms var(--ease-out) 120ms; }
.js .stage p, .js .stage dt, .js .stage dd { opacity: 0; transform: translateY(8px); transition: opacity 160ms ease, transform 160ms var(--ease-out); }
.js .stage.is-on p { opacity: 1; transform: none; transition: opacity 420ms ease 260ms, transform 520ms var(--ease-out) 260ms; }
.js .stage.is-on dt, .js .stage.is-on dd { opacity: 1; transform: none; transition: opacity 400ms ease calc(360ms + var(--r, 0) * 70ms), transform 500ms var(--ease-out) calc(360ms + var(--r, 0) * 70ms); }


@media (hover: hover) and (pointer: fine) {
  .row:hover h3 .ico { transform: rotate(-8deg) scale(1.08); background: var(--color-paper-3); }
  .contact__list a:hover .ico--brand, .channels__list a:hover .ico--brand { transform: translateX(3px) scale(1.06); color: var(--color-accent); }
}
@media (prefers-reduced-motion: reduce) {
}


/* ---------- reviews ribbon ---------- */
.reviews--ribbon { display: block; margin-inline: calc(var(--gutter) * -1); }
.ribbon { overflow: hidden; padding-block: var(--space-md); -webkit-mask-image: linear-gradient(90deg, transparent, var(--mask-solid) 6%, var(--mask-solid) 94%, transparent); mask-image: linear-gradient(90deg, transparent, var(--mask-solid) 6%, var(--mask-solid) 94%, transparent); }
.ribbon__track { will-change: transform; display: flex; gap: var(--gap-columns); width: max-content; padding-inline: var(--gutter); animation: ribbon var(--dur, 40s) linear infinite; }
.ribbon .review { width: min(24rem, 80vw); flex: none; padding: var(--space-lg); border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-2); }
.ribbon:hover .ribbon__track, .ribbon:focus-within .ribbon__track { animation-play-state: paused; }
@keyframes ribbon { from { transform: translateX(0); } to { transform: translateX(calc(-50% - var(--gap-columns) / 2)); } }
@media (prefers-reduced-motion: reduce) {
  .ribbon { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .ribbon__track { animation: none; }
  .ribbon__track > [aria-hidden="true"] { display: none; }
}

/* ---------- touch screens, tablets ---------- */
@media (pointer: coarse) {
  .index button { padding-block: var(--space-xs); min-height: 44px; }
  .nav__msg { width: 40px; height: 40px; }
  .ribbon__track { animation-duration: calc(var(--dur, 40s) * 1.2); }
}
@media (min-width: 40.01rem) and (max-width: 64rem) {
  .hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
  .stage { width: min(34rem, calc(100% - 2 * var(--gutter))); }
}
@media (max-height: 700px) and (max-width: 40rem) {
  .hero h1 { font-size: 2.1rem; }
  .hero__actions { margin-top: var(--space-lg); }
  .stage h2 { font-size: 1.9rem; }
}
.hero, .stage { padding-bottom: env(safe-area-inset-bottom); }
.nav__in { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }

/* ---------- header: logo, sections, contacts, tools ---------- */
.nav__in { justify-content: flex-start; gap: var(--space-lg); }
.nav__links { margin-right: auto; }
.nav__contacts { display: flex; align-items: center; gap: var(--space-2xs); }
.nav__msg { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--color-ink); transition: transform 160ms var(--ease-out), color 200ms ease, background-color 200ms ease; }
.nav__msg .ico { width: 19px; height: 19px; }
.nav__phone { display: inline-flex; align-items: center; gap: var(--space-xs); margin-left: var(--space-xs); font-weight: 500; text-decoration: none; color: var(--color-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nav__phone .ico { width: 16px; height: 16px; color: var(--color-accent-2); }
.nav__tools { display: flex; align-items: center; gap: var(--space-sm); }
.nav__lang { display: grid; place-items: center; min-width: 40px; height: 32px; padding-inline: var(--space-xs); border: var(--rule-hair) solid var(--color-rule-2); border-radius: 999px; font-size: var(--text-xs); font-weight: 600; text-decoration: none; color: var(--color-ink); }
.nav__call .ico { display: none; width: 18px; height: 18px; }
.nav__msg:active, .nav__phone:active, .nav__lang:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) {
  .nav__msg:hover { background: var(--color-ink); color: var(--color-paper); }
  .nav__lang:hover { background: var(--color-paper-2); }
}
@media (max-width: 75rem) { .nav__links { display: none; } .nav__contacts { margin-right: auto; } }
@media (max-width: 52rem) { .nav__phone span { display: none; } .nav__phone { margin-left: 0; width: 36px; height: 36px; justify-content: center; } .nav__phone .ico { width: 19px; height: 19px; } }
@media (max-width: 40rem) {
  .nav__in { flex-wrap: wrap; align-content: center; row-gap: var(--space-2xs); column-gap: var(--space-sm); }
  .nav__logo { order: 1; }
  .nav__tools { order: 2; margin-left: auto; gap: var(--space-xs); }
  .nav__contacts { order: 3; width: 100%; margin: 0; justify-content: space-between; border-top: var(--rule-hair) solid var(--color-rule); padding-top: var(--space-2xs); }
  .nav__phone span { display: inline; }
  .nav__phone { width: auto; order: -1; margin-right: auto; }
  .nav__call { width: 44px; min-height: 44px; padding: 0; }
  .nav__call span { display: none; }
  .nav__call .ico { display: block; }
}
.ribbon.is-off .ribbon__track { animation-play-state: paused; }
.film__canvas { contain: strict; }

/* header goes see-through while the film plays under it */
.nav { transition: background-color 300ms ease, box-shadow 300ms ease, color 300ms ease; }
.nav::before { content: ""; position: absolute; inset: 0 0 -24px; z-index: -1; background: linear-gradient(var(--color-scrim), var(--color-scrim-0)); opacity: 0; transition: opacity 300ms ease; pointer-events: none; }
.nav.is-clear { background-color: transparent; box-shadow: none; }
.nav.is-clear::before { opacity: 1; }
:root:not(.no-such) .nav.is-clear .logo-light { display: block; }
:root:not(.no-such) .nav.is-clear .logo-dark { display: none; }
.nav.is-clear .nav__contacts { border-top-color: var(--ghost-stroke); }

/* ---------- calculator + lead form ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); margin-top: var(--space-2xl); align-items: start; }
.calc__steps { display: grid; gap: var(--space-2xl); }
.calc__step { display: grid; gap: var(--space-md); border: 0; padding: 0; margin: 0; min-width: 0; }
.calc__step legend { display: flex; align-items: center; gap: var(--space-sm); padding: 0; margin-bottom: var(--space-md); font-stretch: var(--display-stretch); font-weight: 300; font-size: var(--text-xl); }
.calc__n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--color-ink); color: var(--color-paper); font-size: var(--text-sm); font-weight: 500; font-stretch: 100%; }
.calc input[type="radio"], .calc input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.calc label { position: relative; }

/* segmented choices */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-xs); }
.seg span { display: grid; align-content: center; gap: var(--space-3xs); min-height: 52px; height: 100%; padding: var(--space-sm) var(--space-md); border: var(--rule-hair) solid var(--color-rule-2); cursor: pointer; transition: background-color var(--dur-short) ease, color var(--dur-short) ease, border-color var(--dur-short) ease, transform 160ms var(--ease-out); }
.seg small { font-size: var(--text-sm); color: var(--color-muted); transition: color var(--dur-short) ease; }
.seg--num span { justify-items: center; min-height: 48px; padding: var(--space-xs); font-variant-numeric: tabular-nums; }
.seg input:checked + span { background: var(--color-ink); color: var(--color-paper); border-color: var(--color-ink); }
.seg input:checked + span small { color: var(--color-paper-3); }

/* repair type cards */
.kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xs); }
.kind { display: grid; }
.kind__box { display: grid; align-content: start; gap: var(--space-xs); padding: var(--space-lg) var(--space-md); border: var(--rule-hair) solid var(--color-rule-2); background: var(--color-paper); cursor: pointer; transition: border-color var(--dur-short) ease, box-shadow var(--dur-short) ease, transform 160ms var(--ease-out); }
.kind__box .ico { width: 28px; height: 28px; color: var(--color-blue); }
.kind__box b { font-weight: 500; font-size: var(--text-lg); }
.kind__price { font-variant-numeric: tabular-nums; color: var(--color-ink); }
.kind__text { font-size: var(--text-sm); color: var(--color-ink-2); }
.kind__time { font-size: var(--text-sm); color: var(--color-muted); margin-top: auto; padding-top: var(--space-xs); }
.kind input:checked + .kind__box { border-color: var(--color-accent); box-shadow: inset 0 0 0 2px var(--color-accent); }
.kind input:checked + .kind__box .ico { color: var(--color-accent-2); }

/* extras */
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
.opt__box { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: var(--space-sm); row-gap: var(--space-3xs); align-items: start; min-height: 52px; padding: var(--space-sm) var(--space-md); border: var(--rule-hair) solid var(--color-rule-2); cursor: pointer; transition: border-color var(--dur-short) ease, background-color var(--dur-short) ease, transform 160ms var(--ease-out); }
.opt__tick { position: relative; grid-row: span 2; width: 20px; height: 20px; margin-top: 1px; border: var(--rule-hair) solid var(--color-muted); background: var(--color-paper); transition: background-color var(--dur-short) ease, border-color var(--dur-short) ease; }
.opt__tick::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--color-paper); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0.4); opacity: 0; transition: transform 200ms var(--ease-out), opacity 120ms ease; }
.opt__box b { font-weight: 400; }
.opt__box > span { font-size: var(--text-sm); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.opt input:checked + .opt__box { border-color: var(--color-ink); background: var(--color-paper-2); }
.opt input:checked + .opt__box .opt__tick { background: var(--color-ink); border-color: var(--color-ink); }
.opt input:checked + .opt__box .opt__tick::after { transform: rotate(45deg); opacity: 1; }
.opt input:disabled + .opt__box .opt__tick { background: var(--color-accent); border-color: var(--color-accent); }
.opt__incl { display: none; }
.opt input:disabled + .opt__box { cursor: default; }
.opt input:disabled + .opt__box .opt__price { display: none; }
.opt input:disabled + .opt__box .opt__incl { display: block; color: var(--color-accent-2); }
.calc__hint { font-size: var(--text-sm); color: var(--color-muted); }

.calc input:focus-visible + span { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.calc label:active > span { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .seg input:not(:checked) + span:hover, .kind input:not(:checked) + .kind__box:hover, .opt input:not(:checked):not(:disabled) + .opt__box:hover { border-color: var(--color-ink); }
}

/* area */
.calc__area label { font-size: var(--text-sm); color: var(--color-muted); }
.calc__area-row { display: grid; grid-template-columns: minmax(0, 1fr) 7rem; gap: var(--space-md); align-items: center; }
.calc__area-row input[type="number"] { height: 52px; padding-block: 0; font-size: var(--text-lg); font-variant-numeric: tabular-nums; text-align: right; }
.calc input[type="range"] { width: 100%; height: 44px; accent-color: var(--color-accent); background: none; cursor: pointer; }
.calc input[type="range"]:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.calc__pair { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr); gap: var(--space-lg); }
.calc__count { display: grid; gap: var(--space-xs); }
.calc__count > span { font-size: var(--text-sm); color: var(--color-muted); }

/* summary */
.calc__aside { position: sticky; top: calc(var(--nav-h, 72px) + var(--space-md)); display: grid; gap: var(--space-lg); padding: var(--space-xl); background: var(--color-paper-2); }
.calc__sum { display: grid; gap: var(--space-2xs); }
.calc__sum > span, .calc__sum small { font-size: var(--text-sm); color: var(--color-muted); }
.calc__sum > b { font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: var(--text-display-s); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.calc__lines { list-style: none; margin: var(--space-md) 0 0; padding: 0; border-top: var(--rule-hair) solid var(--color-rule-2); }
.calc__lines li { display: flex; justify-content: space-between; gap: var(--space-md); padding-block: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); color: var(--color-ink-2); }
.calc__lines li b { font-weight: 400; color: var(--color-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc__weeks { display: flex; align-items: center; gap: var(--space-xs); margin-top: var(--space-sm); }
.calc__weeks .ico { width: 22px; height: 22px; color: var(--color-blue); }
.calc__form { display: grid; gap: var(--space-md); }
.calc__form .btn { justify-self: stretch; }
.calc__more summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--color-ink-2); text-decoration: none; gap: var(--space-xs); }
.calc__more summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.calc__more[open] { display: grid; gap: var(--space-md); }
.calc__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.calc__bar { display: none; }

@media (max-height: 820px) and (min-width: 52.01rem) { .calc__aside { position: static; } }
@media (max-width: 64rem) { .kinds { grid-template-columns: minmax(0, 1fr); } .kind__box { grid-template-columns: 28px minmax(0, 1fr); column-gap: var(--space-sm); } .kind__box > :not(.ico) { grid-column: 2; } .kind__box .ico { grid-row: span 2; } }
@media (max-width: 52rem) {
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc__aside { position: static; }
  .calc__bar:not([hidden]) { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); margin-inline: calc(var(--space-md) * -1); padding: var(--space-sm) var(--space-md) calc(var(--space-sm) + env(safe-area-inset-bottom)); background: var(--color-paper); border-top: var(--rule-hair) solid var(--color-rule-2); grid-row: 2; }
  .calc__bar b { font-weight: 500; font-size: var(--text-xl); font-variant-numeric: tabular-nums; }
}
@media (max-width: 40rem) { .opts { grid-template-columns: minmax(0, 1fr); } .calc__aside { padding: var(--space-lg); } .calc__pair { grid-template-columns: minmax(0, 1fr); } }
:root { --l-success: oklch(47% 0.13 150); --l-error: oklch(50% 0.18 27); }
:root:not([data-theme="dark"]) .band .form-msg[data-state="ok"] { color: var(--l-success); }
:root:not([data-theme="dark"]) .band .form-msg[data-state="error"] { color: var(--l-error); }

/* ---------- audit fixes: hit areas, skip link, focus not hidden, inline errors ---------- */
a, button, label, summary, input, select, textarea { touch-action: manipulation; }
/* invisible hit areas reach 44px without changing the header layout */
.nav__msg, .nav__lang, .nav__phone, .nav__links a { position: relative; }
.nav__msg::after, .nav__lang::after, .nav__phone::after, .nav__links a::after { content: ""; position: absolute; inset: -4px; }
.nav__lang::after { inset: -6px -2px; }
.nav__links a::after { inset: -11px -6px; }
html { scroll-padding-top: calc(var(--nav-h) + env(safe-area-inset-top) + var(--space-md)); }
@media (max-width: 52rem) { html { scroll-padding-bottom: 88px; } }
.skip { position: fixed; left: var(--gutter); top: var(--space-xs); z-index: calc(var(--z-sticky-nav) + 1); padding: var(--space-sm) var(--space-md); background: var(--color-ink); color: var(--color-paper); text-decoration: none; transform: translateY(-160%); }
.skip:focus-visible { transform: none; outline: 2px solid var(--color-focus); outline-offset: 2px; }
.field__err { margin: var(--space-2xs) 0 0; font-size: var(--text-sm); color: var(--l-error); }
:root[data-theme="dark"] .field__err { color: var(--color-error); }
.calc [aria-invalid="true"] { border-color: var(--l-error); box-shadow: inset 0 0 0 1px var(--l-error); }
:root[data-theme="dark"] .calc [aria-invalid="true"] { border-color: var(--color-error); box-shadow: inset 0 0 0 1px var(--color-error); }
.calc__form .form-msg:empty { min-height: 0; margin-top: calc(var(--space-md) * -1); }

/* ---------- motion layer (anim.js, GSAP) ---------- */
.intro .hero, .intro .nav__in, .intro .index { opacity: 0; }
.js .row { position: relative; border-top-color: transparent; }
.js .row::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--rule-hair) * -1); height: var(--rule-hair); background: var(--color-rule); transform-origin: left center; transform: scaleX(var(--rule, 1)); }
.btn--primary, .nav__call { will-change: auto; }

/* ---------- type: section intros and list titles in step ---------- */
.band__head p { font-size: var(--text-lead); line-height: 1.5; max-width: 38rem; padding-bottom: 0.35em; }
.row p { font-size: 1.0625rem; line-height: 1.6; }
.row h3, .channels__list span:first-of-type, .contact__list span:first-of-type, .calc__step legend { font-size: var(--text-title); }
.contact__phone { font-size: clamp(2.4rem, 6.2vw, 6.75rem); line-height: 1; }
.contact__lead > p { font-size: var(--text-lead); }
.kind__box b { font-size: var(--text-title); }

/* ---------- channels band: the team's own timelapse ---------- */
.frame--video { margin: 0; aspect-ratio: auto; display: grid; gap: var(--space-sm); background: none; }
.frame--video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--color-paper-3); }
.frame--video video:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.frame--video figcaption { font-size: var(--text-sm); color: var(--color-muted); }

/* example reviews in the preview carry a visible mark */
.review--demo { border-top-style: dashed; }

/* a channel without an address yet: visible, quiet, not a link */
.is-soon { cursor: default; }
.is-soon .ico { opacity: 0.55; }
.soon { margin-left: var(--space-xs); padding: 0.1em 0.55em; border-radius: 999px; background: var(--color-paper-3); color: var(--color-ink-2); font-size: var(--text-xs); font-stretch: 100%; font-weight: 500; vertical-align: middle; }
.channels__list a.is-soon:hover, .contact__list a.is-soon:hover { background: none; }


/* ---------- footer: brand + phone, then messengers and social channels as two labelled rows ---------- */
:root { --brand-telegram: #229ed9; --brand-viber: #7360f2; --brand-whatsapp: #1fa855; --brand-youtube: #e62117; --brand-tiktok: #111111; --brand-tiktok-pink: #fe2c55; --brand-facebook: #1877f2; --brand-instagram: #ff0069; --on-brand: #f7f9fc; --logo-dot: #fc4b02; --shade-deep: rgb(6 10 18 / 0.86); --shade-mid: rgb(6 10 18 / 0.5); --shade-0: rgb(6 10 18 / 0); --text-glow: rgb(0 0 0 / 0.55); }
.foot { padding-block: var(--space-3xl) var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: start; }
.foot__brand { display: grid; justify-items: start; gap: var(--space-sm); }
.foot__brand img { height: 96px; width: auto; margin-bottom: var(--space-md); }
.foot__say { font-size: var(--text-lead); color: var(--color-ink-2); }
.foot__phone { font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: var(--text-3xl); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--color-ink); text-decoration: none; white-space: nowrap; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size 400ms var(--ease-out); }
.foot__phone:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.foot__links { display: grid; gap: var(--space-xl); }
.foot__group { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--space-lg); row-gap: var(--space-2xs); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule-2); }
.foot__label { grid-column: 1; font-family: var(--font-body); font-size: var(--text-title); font-weight: 300; font-stretch: var(--display-stretch); letter-spacing: 0; line-height: 1.2; }
.foot__note { grid-column: 1; font-size: var(--text-sm); color: var(--color-muted); }
.chips { grid-column: 2; grid-row: 1 / span 2; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs); align-content: start; }
.chip { display: inline-flex; align-items: center; gap: var(--space-sm); min-height: 52px; padding: var(--space-2xs) var(--space-md) var(--space-2xs) var(--space-2xs); border: var(--rule-hair) solid var(--color-rule-2); border-radius: 999px; color: var(--color-ink); text-decoration: none; transition: border-color 200ms ease, transform 160ms var(--ease-out), box-shadow 240ms var(--ease-out); }
.chip__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--color-paper-2); color: var(--color-ink); transition: background-color 240ms var(--ease-out), color 240ms var(--ease-out), transform 300ms var(--ease-out); }
.chip__ico .ico { width: 20px; height: 20px; }
.chip--telegram { --b: var(--brand-telegram); } .chip--viber { --b: var(--brand-viber); } .chip--whatsapp { --b: var(--brand-whatsapp); }
.chip--youtube { --b: var(--brand-youtube); } .chip--tiktok { --b: var(--brand-tiktok); } .chip--facebook { --b: var(--brand-facebook); } .chip--instagram { --b: var(--brand-instagram); }
.chip:not(.is-soon):active { transform: scale(0.97); }
.chip:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .chip:not(.is-soon):hover { border-color: var(--b); box-shadow: 0 6px 18px -10px var(--b); transform: translateY(-2px); }
  .chip:not(.is-soon):hover .chip__ico { background: var(--b); color: var(--on-brand); transform: rotate(-8deg); }
}
.chip.is-soon { border-style: dashed; }
.chip.is-soon .chip__ico { opacity: 0.55; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-md); margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.foot__base p { font-size: var(--text-sm); color: var(--color-muted); }
.foot__top { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; color: var(--color-ink-2); text-decoration: none; font-size: var(--text-sm); }
.foot__top .ico { width: 18px; height: 18px; transition: transform 300ms var(--ease-out); }
.foot__top:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .foot__top:hover { color: var(--color-ink); } .foot__top:hover .ico { transform: translateY(-3px); } }
@media (max-width: 64rem) { .foot__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); } }
@media (max-width: 40rem) {
  .foot__group { grid-template-columns: minmax(0, 1fr); }
  .chips { grid-column: 1; grid-row: auto; margin-top: var(--space-sm); }
  .chip { flex: 1 1 calc(50% - var(--space-xs)); }
  .foot__brand img { height: 80px; }
}
.chips > li { margin: 0; padding: 0; display: flex; }
.chip { padding-right: var(--space-sm); gap: var(--space-xs); }
.chip .soon { margin-left: var(--space-3xs); }
@media (max-width: 40rem) { .chips > li { flex: 1 1 calc(50% - var(--space-xs)); } .chips .chip { flex: 1; } }
.foot__group { grid-template-columns: minmax(0, 1fr); }
.foot__group .chips { grid-column: 1; grid-row: auto; margin-top: var(--space-sm); }

/* ---------- reviews, compact: sign-in sits under the heading, cards are tighter ---------- */
.rev-side { display: grid; gap: var(--space-md); }
.rev-login { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); }
.rev-login__lbl { font-weight: 500; color: var(--color-ink); margin-right: var(--space-2xs); }
.rev-btn { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: var(--space-2xs) var(--space-md) var(--space-2xs) var(--space-sm); border: var(--rule-hair) solid var(--color-rule-2); border-radius: 999px; background: var(--color-paper); color: var(--color-ink); text-decoration: none; font-size: var(--text-sm); font-weight: 500; transition: border-color 200ms ease, transform 160ms var(--ease-out), box-shadow 240ms var(--ease-out); }
.rev-btn .ico { width: 18px; height: 18px; }
.rev-btn[href*="google"] .ico { color: var(--brand-google); }
.rev-btn[href*="facebook"] .ico { color: var(--brand-facebook); }
.rev-btn:active { transform: scale(0.97); }
.rev-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.rev-btn[aria-disabled="true"] { opacity: 0.55; cursor: default; }
@media (hover: hover) and (pointer: fine) { .rev-btn:not([aria-disabled="true"]):hover { border-color: var(--color-ink); box-shadow: 0 6px 16px -12px var(--color-ink); } }
.rev-login__note { flex-basis: 100%; font-size: var(--text-sm); color: var(--color-muted); }
.rev-login .form-msg:empty { display: none; }
.rev-login .form-msg { flex-basis: 100%; font-size: var(--text-sm); }
:root { --brand-google: #4285f4; }
#otzyvy .reviews { margin-top: var(--space-xl); }
#otzyvy .reviews__empty { margin-top: var(--space-lg); font-size: var(--text-md); }
.ribbon { padding-block: var(--space-xs); }
.ribbon .review { width: min(20rem, 78vw); padding: var(--space-md); }
.review header { grid-template-columns: 32px minmax(0, 1fr) auto; gap: var(--space-xs); }
.review header img, .review__ini { width: 32px; height: 32px; font-size: var(--text-sm); }
.review > p { margin-top: var(--space-xs); font-size: var(--text-sm); line-height: 1.55; }
.review .review__obj { margin-top: var(--space-sm); font-size: var(--text-xs); }
.rev-form { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-md) var(--gap-columns); align-items: start; margin-top: var(--space-xl); padding: var(--space-lg); background: var(--color-paper-2); }
.rev-form[hidden] { display: none; }
.rev-form > .review-box__who, .rev-form > .stars, .rev-form > label:not(.rev-form__text) { grid-column: 1; }
.rev-form__text { grid-column: 2; grid-row: 1 / span 3; }
.rev-form > .form-msg, .rev-form > .btn { grid-column: 2; }
.rev-form > .btn { justify-self: start; }
@media (max-width: 52rem) { .rev-form { grid-template-columns: minmax(0, 1fr); } .rev-form > .review-box__who, .rev-form > .stars, .rev-form > label:not(.rev-form__text), .rev-form > label.rev-form__text, .rev-form > .form-msg, .rev-form > .btn { grid-column: 1; grid-row: auto; } }

/* ---------- calculator: where to send the estimate ---------- */
.send { display: grid; gap: var(--space-xs); border: 0; padding: 0; margin: 0; min-width: 0; }
.send legend { font-size: var(--text-sm); color: var(--color-muted); margin-bottom: var(--space-xs); padding: 0; }
.send__opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2xs); }
.send__opt { position: relative; }
.send__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.send__opt span { display: grid; justify-items: center; align-content: center; gap: var(--space-2xs); min-height: 64px; padding: var(--space-xs) var(--space-2xs); border: var(--rule-hair) solid var(--color-rule-2); background: var(--color-paper); font-size: var(--text-xs); font-weight: 500; cursor: pointer; transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.send__opt .ico { width: 22px; height: 22px; transition: color 200ms ease; }
.send__opt--telegram { --b: var(--brand-telegram); } .send__opt--viber { --b: var(--brand-viber); } .send__opt--whatsapp { --b: var(--brand-whatsapp); } .send__opt--email { --b: var(--color-ink); }
.send__opt input:checked + span { border-color: var(--b); box-shadow: inset 0 0 0 1px var(--b); }
.send__opt input:checked + span .ico { color: var(--b); }
.send__opt input:focus-visible + span { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.send__opt:active span { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .send__opt input:not(:checked) + span:hover { border-color: var(--color-ink); } }
:root[data-theme="dark"] .send__opt--email { --b: var(--color-accent); }
.send__hint { font-size: var(--text-sm); color: var(--color-ink-2); }
.calc__form .btn .ico { width: 20px; height: 20px; margin-right: var(--space-xs); }
.calc__form > .btn[type="submit"] { display: inline-flex; align-items: center; justify-content: center; }
.calc__form > .btn[hidden] { display: none; }
.send__done { display: grid; gap: var(--space-sm); padding: var(--space-lg); background: var(--color-paper); border: var(--rule-hair) solid var(--color-rule-2); }
.send__done[hidden] { display: none; }
.send__done:focus { outline: none; }
.send__done:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.send__title { font-size: var(--text-title); font-weight: 300; font-stretch: var(--display-stretch); }
.send__text { font-size: var(--text-sm); color: var(--color-ink-2); }
.send__actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.send__actions .btn { display: inline-flex; align-items: center; }
.send__actions .btn[hidden] { display: none; }
.send__done .linkish { justify-self: start; }
@media (max-width: 24rem) { .send__opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.band__head .rev-login p { font-size: var(--text-sm); max-width: none; padding-bottom: 0; }
.band__head .rev-login .form-msg { font-size: var(--text-sm); }


/* header messengers take their brand colour on hover, keyboard focus and tap */
.nav__msg[data-setting-href="telegram"] { --b: var(--brand-telegram); }
.nav__msg[data-setting-href="viber"] { --b: var(--brand-viber); }
.nav__msg[data-setting-href="whatsapp"] { --b: var(--brand-whatsapp); }
.nav__msg:focus-visible, .nav__msg:active { background: var(--b); color: var(--on-brand); }
@media (hover: hover) and (pointer: fine) {
  .nav__msg:hover { background: var(--b); color: var(--on-brand); box-shadow: 0 6px 16px -8px var(--b); transform: translateY(-1px); }
}

/* header: quick jump to the calculator. Wide screens: a link in the menu; narrower: a button by the call button */
.nav__links a.nav__links-calc { color: var(--color-ink); }
.nav__links a.nav__links-calc::before { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--color-accent); transform-origin: left; transform: scaleX(0.35); transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .nav__links a.nav__links-calc:hover { text-decoration: none; } .nav__links a.nav__links-calc:hover::before { transform: scaleX(1); } }
.nav__calc { display: none; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-rule-2); color: var(--color-ink); text-decoration: none; font-size: var(--text-sm); font-weight: 500; white-space: nowrap; transition: border-color 200ms ease, background-color 200ms ease, transform 160ms var(--ease-out); }
.nav__calc .ico { width: 18px; height: 18px; color: var(--color-accent); }
.nav__calc:active { transform: scale(0.97); }
.nav__calc:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .nav__calc:hover { border-color: var(--color-accent); } }
@media (max-width: 82rem) { .nav__links { display: none; } .nav__contacts { margin-right: auto; } .nav__tools .nav__calc { display: inline-flex; } }
.nav__links a { white-space: nowrap; }
/* phones: the jump moves to the second header row, beside the phone and messengers */
@media (max-width: 40rem) {
  .nav__tools .nav__calc { display: none; }
  .nav__calc--row { display: inline-flex; min-height: 40px; padding: 0 var(--space-sm); margin-left: var(--space-2xs); }
}
@media (max-width: 22rem) { .nav__calc--row span { display: none; } .nav__calc--row { width: 40px; padding: 0; justify-content: center; } }
@media (max-width: 22rem) { .nav__logo { height: 34px; } .nav__calc--row { width: 36px; min-height: 36px; } }

/* ---------- footer on phones: each group in one row, icons always in brand colour ---------- */
@media (max-width: 40rem) {
  .foot .chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xs); }
  .foot .chips > li { flex: none; }
  .foot .chip { flex: 1; flex-direction: column; justify-content: center; gap: var(--space-2xs); min-height: 88px; padding: var(--space-xs) var(--space-2xs); border-radius: var(--space-md); text-align: center; font-size: var(--text-sm); }
  .foot .chip .soon { margin: var(--space-3xs) 0 0; display: block; width: max-content; margin-inline: auto; }
  .foot .chip > span:last-child { display: grid; justify-items: center; }
}
.foot .chip:not(.is-soon) .chip__ico { background: var(--b); color: var(--on-brand); }
@media (max-width: 40rem) { .foot .chip.is-soon .chip__ico { background: var(--b); color: var(--on-brand); opacity: 0.5; } }

/* ---------- one vertical rhythm for every band: the same space above and below, whatever its ground ---------- */
:root { --band-gap: clamp(4.5rem, 3rem + 5vw, 7.5rem); }
.band, .contact { padding-block: var(--band-gap); }
.foot { padding-block: var(--band-gap) var(--space-xl); }
.foot__base { margin-top: calc(var(--band-gap) * 0.75); }
/* nothing inside a band adds its own space at the edges */
.band > :first-child, .contact__grid > * > :first-child { margin-top: 0; }
.band > :last-child { margin-bottom: 0; }
.band__head { align-items: end; }
.band__head > p, .band__head > .rev-side { padding-bottom: 0.35em; }
@media (max-width: 40rem) { .rev-login__lbl { flex-basis: 100%; margin: 0 0 var(--space-3xs); } }

/* ---------- painted sections: a mineral palette after the film, one colour per band ---------- */
:root {
  --p-concrete: #f3efea; --p-terracotta: #9e402b; --p-travertine: #e5ddd0; --p-olive: #3d4a3a;
  --p-sage: #8fa18e; --p-petrol: #243b42; --p-graphite: #1e1d1b; --p-ochre: #c68b47; --p-film: #0e1829; --p-bordeaux: #5a2232; --p-gold: #e8c27a; --p-gold-2: #b98a3e;
  --p-ink-light: #1e1d1b; --p-ink-dark: #f3efea;
  --lift-light-c: #ffffff; --lift-dark-c: #000000; --lift-light: 58%; --lift-dark: 16%;
}
:root[data-theme="dark"] {
  --p-concrete: #1f1e1b; --p-terracotta: #5a281e; --p-travertine: #2a2621; --p-olive: #222a21;
  --p-sage: #2e392e; --p-petrol: #14252a; --p-graphite: #121211; --p-ochre: #4a3317; --p-bordeaux: #331019;
}
.paint--concrete { --bg: var(--p-concrete); } .paint--terracotta { --bg: var(--p-terracotta); } .paint--travertine { --bg: var(--p-travertine); }
.paint--olive { --bg: var(--p-olive); } .paint--sage { --bg: var(--p-sage); } .paint--petrol { --bg: var(--p-petrol); } .paint--graphite { --bg: var(--p-graphite); } .paint--ochre { --bg: var(--p-ochre); } .paint--bordeaux { --bg: var(--p-bordeaux); }
.paint {
  --lift-by: var(--lift-light); --lift: var(--lift-light-c);
  --color-ink: var(--p-ink-light);
  background-color: var(--bg); color: var(--color-ink);
  border-image: linear-gradient(var(--bg) 0 0) fill 0 / / 0 100vw;
  --color-paper: var(--bg);
  --color-paper-2: color-mix(in oklab, var(--bg), var(--lift) var(--lift-by));
  --color-paper-3: color-mix(in oklab, var(--bg), var(--color-ink) 9%);
  --color-ink-2: color-mix(in oklab, var(--color-ink) 92%, var(--bg));
  --color-muted: color-mix(in oklab, var(--color-ink) 86%, var(--bg));
  --color-rule: color-mix(in oklab, var(--bg), var(--color-ink) 16%);
  --color-rule-2: color-mix(in oklab, var(--bg), var(--color-ink) 34%);
}
.paint.scheme-dark, :root[data-theme="dark"] .paint { --lift-by: var(--lift-dark); --lift: var(--lift-dark-c); --color-ink: var(--p-ink-dark); }
footer.paint { border-image: none; border-top: 0; }
/* light accent text where the ground is dark */
.paint.scheme-dark, :root[data-theme="dark"] .paint { --color-accent-2: var(--color-accent); }
/* surfaces sitting on a painted ground */
.paint .calc__aside, .paint .rev-form { background: var(--color-paper-2); }
.paint .send__opt span, .paint .send__done, .paint .kind__box, .paint .review, .paint .rev-btn { background: var(--color-paper-2); }
.paint input, .paint textarea, .paint select { background: color-mix(in oklab, var(--color-paper-2), var(--lift) 40%); color: var(--p-ink-light); }
.paint.scheme-dark input, .paint.scheme-dark textarea, :root[data-theme="dark"] .paint input, :root[data-theme="dark"] .paint textarea { background: color-mix(in oklab, var(--bg), var(--lift-dark-c) 22%); color: var(--p-ink-dark); }
/* the logo for a dark ground */
:root:not(.no-such) .scheme-dark .logo-light { display: block; }
:root:not(.no-such) .scheme-dark .logo-dark { display: none; }

/* stars stay legible on dark painted grounds */
:root { --p-star: #f5cf6b; }
.paint.scheme-dark .rstars, :root[data-theme="dark"] .paint .rstars { color: var(--p-star); }

/* ================= client's UI guide: seams, palette tokens, plates, type ================= */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-display: swap; font-weight: 500; src: url("fonts/cormorant-garamond-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-display: swap; font-weight: 500; src: url("fonts/cormorant-garamond-latin-ext-500-normal.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: "Cormorant Garamond"; font-style: normal; font-display: swap; font-weight: 500; src: url("fonts/cormorant-garamond-latin-500-normal.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; }
:root { --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif; }

/* editorial headings: high-contrast serif, tight leading */
h1, .band__head h2, .contact__lead h2, .stage h2, .spec-title, .kind__box b, .foot__label, .send__title, .calc__step legend {
  font-family: var(--font-serif); font-weight: 500; font-stretch: normal; letter-spacing: -0.005em;
}
.band__head h2, .contact__lead h2 { font-size: clamp(2.4rem, 1.2rem + 3.6vw, 4.6rem); line-height: 1.02; }
.calc__n { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

/* contrast tokens for plates, on any ground */
.paint {
  --fg: var(--color-ink);
  --border-subtle: color-mix(in srgb, var(--fg) 15%, transparent);
  --surface-card: color-mix(in srgb, var(--fg) 6%, transparent);
  --surface-card-hover: color-mix(in srgb, var(--fg) 11%, transparent);
  --fg-muted: var(--color-muted);
}
/* ochre carries dark text (light text would sit at 2.9:1 on it); its primary button turns ink */
.paint--ochre .btn--primary { background: var(--color-ink); color: var(--bg); border-color: var(--color-ink); }
:root[data-theme="dark"] .paint--ochre .btn--primary { background: var(--color-accent); color: var(--p-ink-light); border-color: var(--color-accent); }

/* 5.1 section badge */
.section-badge { display: inline-flex; align-items: center; gap: 0.65rem; padding: 0.45rem 0.95rem; border-radius: 999px; border: 1px solid var(--border-subtle); background: var(--surface-card); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1.75rem; color: var(--fg); }
.badge-icon { width: 14px; height: 14px; flex-shrink: 0; }

/* 5.2 metric plates */
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--space-md); max-width: 48rem; margin-block: var(--space-lg); }
.metric-plate { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-md); border-radius: 1rem; border: 1px solid var(--border-subtle); background: var(--surface-card); }
.metric-icon-box { width: 40px; height: 40px; border-radius: 0.75rem; background: var(--surface-card-hover); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.metric-icon-box .ico { width: 20px; height: 20px; }
.metric-label { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted); }
.metric-value { font-size: 0.95rem; font-weight: 500; margin-top: 0.15rem; }

/* 5.4 spec rows (team, prices) */
.spec-list { display: flex; flex-direction: column; gap: var(--space-md); margin-top: var(--space-2xl); }
.spec-list--two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.spec-row { display: flex; align-items: flex-start; gap: var(--space-md); padding: var(--space-lg); border-radius: 1rem; background: var(--surface-card); border: 1px solid var(--border-subtle); transition: background-color 250ms ease, transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .spec-row:hover { background: var(--surface-card-hover); transform: translateY(-2px); } }
.spec-icon { width: 44px; height: 44px; border-radius: 0.75rem; background: var(--surface-card-hover); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.spec-icon .ico { width: 20px; height: 20px; }
.spec-body { flex: 1; min-width: 0; }
.spec-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xs); margin-bottom: 0.4rem; }
.spec-title { font-size: 1.5rem; line-height: 1.15; margin: 0; }
.spec-pill { padding: 0.2rem 0.65rem; border-radius: 999px; background: var(--surface-card-hover); font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.75rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.spec-desc { font-size: 0.875rem; line-height: 1.55; color: var(--fg-muted); max-width: 56ch; }
@media (max-width: 52rem) { .spec-list--two { grid-template-columns: minmax(0, 1fr); } }

/* 5.3 stage-card look for the repair-type cards in the calculator */
.paint .kind__box { border-radius: 1.5rem; padding: var(--space-lg); background: var(--surface-card); border: 1px solid var(--border-subtle); }
.paint .kind__box .ico { width: 44px; height: 44px; padding: var(--space-sm); border-radius: 1rem; background: var(--surface-card-hover); color: var(--fg); margin-bottom: var(--space-xs); box-sizing: border-box; }
.paint .kind__box b { font-size: 1.65rem; line-height: 1.2; }
.paint .kind__text { font-size: 0.875rem; line-height: 1.6; color: var(--fg-muted); }
.paint .kind__price { order: 9; margin-top: auto; padding-top: var(--space-sm); border-top: 1px solid var(--border-subtle); font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.75rem; color: var(--fg-muted); }
.paint .kind input:checked + .kind__box { background: var(--surface-card-hover); }
.paint .kind input:checked + .kind__box .ico { background: var(--color-accent); color: var(--p-ink-light); }
@media (max-width: 64rem) { .paint .kind__box { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--space-md); } .paint .kind__box .ico { grid-row: span 3; } }

/* ---------- seams (client guide §1–3): next band slides up 18px with a torn top; a roller divider rides the joint ---------- */
.paint { position: relative; z-index: 2; }
.paint + .roller-divider + .paint, .roller-divider + .paint { margin-top: -18px; }
/* keep content clear of the fresh paint that reaches up from the joint */
:root { --seam-h: 120px; --roller: 132px; --seam-gap: 56px; }
/* the same breathing room on both sides of every roller: content, gap, roller, gap, content */
.paint.seam-below:not(#_) { padding-bottom: calc(var(--seam-h) / 2 + var(--roller) / 2 + var(--seam-gap)); }
.roller-divider + .paint:not(#_) { padding-top: calc(var(--seam-gap) + 26px + (var(--roller) - var(--seam-h)) / 2); }
/* the torn top of the next band lives in the full-width divider: 54px above that band's top, 58px tall */
.section-jagged-top { position: absolute; left: 0; right: 0; bottom: 18px; height: 58px; pointer-events: none; overflow: visible; }
.section-jagged-top svg { display: block; width: 100%; height: 100%; overflow: visible; }
.roller-divider { position: relative; width: 100%; height: var(--seam-h); margin-top: calc(var(--seam-h) * -1); margin-bottom: 0; z-index: 25; overflow: visible; pointer-events: none; user-select: none; }
.paint-rough-wrapper { position: absolute; inset: 0; width: 100%; height: 100%; filter: url(#paint-edge-turbulence); will-change: transform; }
.paint-strip { position: absolute; inset: 0; width: 100%; height: 100%; will-change: clip-path; }
.paint-strip svg { display: block; width: 100%; height: 100%; }
.js .paint-strip { clip-path: inset(0 100% 0 0); }
.js .roller-divider[data-direction="rtl"] .paint-strip { clip-path: inset(0 0 0 100%); }
.roller-tool { position: absolute; top: 50%; left: 0; width: var(--roller); height: var(--roller); margin: calc(var(--roller) / -2) 0 0 calc(var(--roller) / -2); z-index: 30; will-change: transform; display: none; }
.js .roller-tool { display: block; }
.roller-rotated-90 { width: var(--roller); height: var(--roller); transform-origin: 50% 50%; transform: rotate(90deg); }
.roller-svg { width: var(--roller); height: var(--roller); display: block; overflow: visible; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
@media (max-width: 640px) {
  .section-jagged-top { bottom: 17px; height: 44px; }
  :root { --seam-h: 88px; --roller: 96px; --seam-gap: 36px; }
}
.paint--ochre .metric-label { color: var(--color-ink-2); }


/* ======================= release 19.11: editor, gallery, partners, video card, easter egg ======================= */
.site-wait main > [data-block], .site-wait .foot { visibility: hidden; }
/* the channel icons next to the video: quiet grey, each lights up in its own brand colour on hover */
.channels__list .ico--brand, .channels__list [data-ch] .ico--brand { color: color-mix(in oklab, var(--color-ink) 55%, transparent); }
.channels__list [data-ch="youtube"] { --b: var(--brand-youtube); } .channels__list [data-ch="tiktok"] { --b: var(--brand-tiktok-pink); }
.channels__list [data-ch="facebook"] { --b: var(--brand-facebook); } .channels__list [data-ch="instagram"] { --b: var(--brand-instagram); }
.channels__list [data-ch] a:hover .ico--brand, .channels__list [data-ch] a:focus-visible .ico--brand { color: var(--b); }
@media (hover: none) { .channels__list [data-ch] a:active .ico--brand { color: var(--b); } }
@media (max-width: 40rem) {
  .foot .chips { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}

/* ---------- stage captions over the film: large, each in its own corner, on its own shade ---------- */
.stage { width: min(42rem, calc(100% - 2 * var(--gutter))); }
.stage::before { content: ""; position: absolute; z-index: -1; inset: -45% -35%; background: radial-gradient(closest-side, var(--shade-deep), var(--shade-mid) 55%, var(--shade-0)); pointer-events: none; }
.stage__num { font-size: var(--text-md); letter-spacing: 0.02em; }
.stage h2 { font-family: var(--font-body); font-weight: 800; font-stretch: 100%; letter-spacing: -0.025em; line-height: 0.98; font-size: clamp(2.6rem, 4.2vw + 0.8rem, 5.6rem); color: var(--d-ink); text-shadow: 0 2px 30px var(--text-glow); text-wrap: balance; }
.stage p { font-size: clamp(1.0625rem, 0.45vw + 0.95rem, 1.375rem); line-height: 1.5; color: var(--d-ink); text-shadow: 0 1px 14px var(--text-glow); max-width: 36rem; }
.stage dl { font-size: var(--text-md); max-width: 36rem; }
.stage dt, .stage dd { color: var(--d-ink-2); border-top-color: var(--ghost-stroke); }
.stage:nth-child(4n + 2), .stage:nth-child(4n + 3) { left: auto; right: var(--gutter); text-align: right; }
.stage:nth-child(4n + 2) p, .stage:nth-child(4n + 3) p, .stage:nth-child(4n + 2) dl, .stage:nth-child(4n + 3) dl { margin-left: auto; }
.stage:nth-child(4n + 2) dl, .stage:nth-child(4n + 3) dl { grid-template-columns: minmax(0, 1fr) auto; }
.stage:nth-child(4n + 2) dt, .stage:nth-child(4n + 3) dt { order: 2; }
.stage:nth-child(4n + 2), .stage:nth-child(4n) { top: calc(var(--space-3xl) + var(--space-xl)); bottom: auto; }
@media (max-width: 43.75rem) {
  .stage, .stage:nth-child(n) { left: var(--gutter); right: var(--gutter); width: auto; text-align: left; top: auto; bottom: calc(var(--space-2xl) + var(--space-sm)); }
  .stage:nth-child(n) p, .stage:nth-child(n) dl { margin-left: 0; }
  .stage:nth-child(n) dl { grid-template-columns: auto minmax(0, 1fr); }
  .stage:nth-child(n) dt { order: 0; }
  .stage h2 { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .stage::before { inset: -30% -20%; }
}
html:not(.js) .stage:nth-child(n) { text-align: left; }
html:not(.js) .stage::before { display: none; }
html:not(.js) .stage h2, html:not(.js) .stage p { color: var(--color-ink); text-shadow: none; }

/* ---------- the video business card: ambient light from its own frames ---------- */
.vz { position: relative; margin: 0; display: grid; gap: var(--space-sm); flex: 1 1 auto; min-width: 0; isolation: isolate; }
.vz__glow { position: absolute; z-index: -1; left: -14%; top: -20%; width: 128%; height: 140%; filter: blur(48px) saturate(1.7) brightness(1.15); opacity: 0.75; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, var(--mask-solid) 35%, transparent); mask-image: radial-gradient(closest-side, var(--mask-solid) 35%, transparent);
  transition: opacity 900ms var(--ease-out), transform 1200ms var(--ease-out); }
.vz__frame { position: relative; transition: transform 700ms var(--ease-out); }
.vz__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; cursor: pointer; background: var(--color-paper-3);
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--mask-solid) 7%, var(--mask-solid) 93%, transparent), linear-gradient(180deg, transparent, var(--mask-solid) 10%, var(--mask-solid) 90%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, var(--mask-solid) 7%, var(--mask-solid) 93%, transparent), linear-gradient(180deg, transparent, var(--mask-solid) 10%, var(--mask-solid) 90%, transparent); mask-composite: intersect; }
.vz.is-live .vz__glow, .vz.is-loud .vz__glow { opacity: 1; transform: scale(1.1); }
.vz.is-live .vz__frame { transform: scale(1.04); }
.vz.is-live .vz__video, .vz.is-loud .vz__video { -webkit-mask-image: none; mask-image: none; }
.vz__bar { position: absolute; left: var(--space-md); bottom: var(--space-md); display: flex; gap: var(--space-xs); opacity: 0; transform: translateY(6px); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.vz:hover .vz__bar, .vz:focus-within .vz__bar, .vz.is-loud .vz__bar { opacity: 1; transform: none; }
@media (hover: none) { .vz__bar { opacity: 1; transform: none; } }
.vz__btn { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-md); border: 0; background: var(--chip-bg); color: var(--on-brand); font: inherit; font-size: var(--text-sm); cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color 200ms var(--ease-out); }
.vz__btn--icon { width: 44px; padding: 0; justify-content: center; }
.vz__btn .ico { width: 20px; height: 20px; }
.vz__btn[aria-pressed="true"] { background: var(--logo-dot); }
.vz__btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.vz__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-md); font-size: var(--text-sm); color: var(--color-ink-2); }
.vz__views { display: inline-flex; align-items: center; gap: var(--space-2xs); font-variant-numeric: tabular-nums; }
.vz__views .ico, .vz__like .ico { width: 20px; height: 20px; }
.vz__like { display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: 40px; padding: 0 var(--space-sm); border: var(--rule-hair) solid var(--color-rule-2); border-radius: 999px; background: transparent; color: inherit; font: inherit; cursor: pointer; transition: border-color 200ms var(--ease-out), color 200ms var(--ease-out); }

.vz__like b { font-weight: 600; font-variant-numeric: tabular-nums; }
.vz__like[aria-pressed="true"] { border-color: var(--logo-dot); }

.vz__like.is-pop .ico { animation: like-pop 450ms var(--ease-out); }
@keyframes like-pop { 40% { transform: scale(1.35); } }
.vz__like:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .vz__like:hover { border-color: var(--color-ink); } }
.vz__hint { color: var(--color-muted); margin-left: auto; }
.vz.is-big .vz__frame::after { content: ""; display: block; aspect-ratio: 16 / 9; background: var(--color-paper-3); }

/* the large window for the video card */
.vzt { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; }
.vzt[open] { display: grid; place-items: center; }
.vzt::backdrop { background: var(--shade-deep); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vzt__glow { position: absolute; left: 50%; top: 50%; width: min(120%, 1700px); height: auto; aspect-ratio: 16 / 9; transform: translate(-50%, -50%); filter: blur(70px) saturate(1.8) brightness(1.2); opacity: 0.9; pointer-events: none; }
.vzt__frame { position: relative; width: min(92%, 1280px, calc((100dvh - 6rem) * 16 / 9)); border-radius: 1rem; overflow: hidden; box-shadow: 0 30px 90px -30px var(--shade-deep); animation: vzt-in 420ms var(--ease-out); }
.vzt__frame .vz__video { -webkit-mask-image: none; mask-image: none; }
@keyframes vzt-in { from { opacity: 0; transform: scale(0.92); } }
.vzt__x { position: absolute; top: var(--space-md); right: var(--space-md); display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--chip-bg); color: var(--on-brand); cursor: pointer; }
.vzt__x .ico { width: 24px; height: 24px; }
.vzt__x:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .vzt__frame { animation: none; } }
@media (max-width: 60rem) { .vz__glow { left: calc(-1 * var(--gutter)); width: calc(100% + 2 * var(--gutter)); } }
@media (prefers-reduced-motion: reduce) { .vz__glow, .vz__frame, .vz__bar { transition: none; } .vz.is-live .vz__frame { transform: none; } }

/* ---------- gallery ---------- */
.gal { position: relative; container-type: inline-size; margin-top: var(--space-2xl); margin-inline: calc(-1 * var(--space-sm)); padding: var(--space-sm); overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.gal.is-drag { cursor: grabbing; }
.gal.is-drag .gal__card { pointer-events: none; }
.gal__track { display: flex; gap: var(--gap-columns); width: max-content; will-change: transform; }
.gal__track > .gal__card { flex: 0 0 min(78cqi, 24rem); width: min(78cqi, 24rem); }
@media (min-width: 64rem) { .gal__track > .gal__card { flex-basis: calc((100cqi - 2 * var(--gap-columns)) / 3.2); width: calc((100cqi - 2 * var(--gap-columns)) / 3.2); } }
.gal__img { position: relative; isolation: isolate; }
.gal__img img { position: absolute; inset: 0; -webkit-user-drag: none; }
.gal__img img.out { z-index: 0; animation: galOut 1100ms var(--ease-out) both; }
.gal__img img.in { z-index: 1; animation-duration: 1100ms; animation-timing-function: cubic-bezier(.7,0,.2,1); animation-fill-mode: both; }
.gal__img img.fx-wipe { animation-name: galWipe; }
.gal__img img.fx-iris { animation-name: galIris; }
.gal__img img.fx-split { animation-name: galSplit; }
.gal__img img.fx-diag { animation-name: galDiag; }
@keyframes galWipe { from { clip-path: inset(0 0 0 100%); transform: scale(1.18) translateX(6%); } to { clip-path: inset(0 0 0 0); transform: scale(1) translateX(0); } }
@keyframes galIris { from { clip-path: circle(0% at 50% 55%); transform: scale(1.25); filter: brightness(1.3); } to { clip-path: circle(75% at 50% 55%); transform: scale(1); filter: brightness(1); } }
@keyframes galSplit { from { clip-path: inset(50% 0 50% 0); transform: scale(1.15); } to { clip-path: inset(0 0 0 0); transform: scale(1); } }
@keyframes galDiag { from { clip-path: polygon(100% 0, 100% 0, 100% 0, 100% 0); transform: scale(1.2) rotate(2deg); } to { clip-path: polygon(-60% 0, 100% 0, 100% 160%, -60% 160%); transform: scale(1) rotate(0); } }
@keyframes galOut { to { transform: scale(1.06); filter: brightness(0.5) saturate(0.8); } }
.gal__dots { position: absolute; z-index: 2; left: 50%; bottom: 12px; display: flex; gap: 5px; translate: -50% 0; padding: 5px 8px; border-radius: 999px; background: rgb(0 0 0 / 0.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.gal__dots i { width: 6px; height: 6px; border-radius: 3px; background: rgb(255 255 255 / 0.5); transition: width 400ms var(--ease-out), background-color 400ms; }
.gal__dots i.on { width: 16px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .gal__img img.in, .gal__img img.out { animation: none; } }
.gal__card { display: grid; gap: var(--space-sm); padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.gal__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 1rem; background: var(--color-paper-2); }
.gal__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease-out); }
.gal__cap { display: grid; gap: var(--space-3xs); }
.gal__cap b { font-size: var(--text-xl); font-weight: 500; }
.gal__cap span { font-size: var(--text-sm); color: var(--color-muted); }
.gal__card:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .gal__card:hover .gal__img img { transform: scale(1.05); } }
.gal__empty { margin-top: var(--space-xl); color: var(--color-muted); }

.lb { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: var(--space-lg); border: 0; background: var(--p-film); color: var(--color-ink); }
.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: var(--space-md); }
.lb::backdrop { background: var(--shade-deep); }
.lb__top { display: flex; align-items: center; gap: var(--space-md); }
.lb__title { margin: 0; font-size: var(--text-xl); font-weight: 500; }
.lb__count { color: var(--color-muted); font-variant-numeric: tabular-nums; }
.lb__x { margin-left: auto; display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: var(--chip-bg); color: var(--on-brand); cursor: pointer; }
.lb__stage { position: relative; display: grid; place-items: center; min-height: 0; touch-action: pan-y; }
.lb__img { max-width: 100%; max-height: 100%; object-fit: contain; -webkit-user-select: none; user-select: none; }
.lb__nav { position: absolute; top: 50%; display: grid; place-items: center; width: 56px; height: 56px; margin-top: -28px; border: 0; background: var(--chip-bg); color: var(--on-brand); cursor: pointer; }
.lb__nav--prev { left: 0; } .lb__nav--next { right: 0; }
.lb__x .ico, .lb__nav .ico { width: 24px; height: 24px; }
.lb__thumbs { display: flex; gap: var(--space-xs); overflow-x: auto; padding-bottom: var(--space-2xs); }
.lb__thumb { flex: none; width: 96px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; opacity: 0.55; transition: opacity 200ms var(--ease-out); }
.lb__thumb[aria-current="true"] { opacity: 1; border-color: var(--logo-dot); }
.lb__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lb button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- partners: a ribbon from right to left ---------- */
.marquee { overflow: hidden; margin-top: var(--space-2xl); -webkit-mask-image: linear-gradient(90deg, transparent, var(--mask-solid) 8%, var(--mask-solid) 92%, transparent); mask-image: linear-gradient(90deg, transparent, var(--mask-solid) 8%, var(--mask-solid) 92%, transparent); }
.marquee__track { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; }
.marquee__track > li { padding-right: var(--gap-columns); }
.js .marquee.is-ready .marquee__track { animation: marquee var(--dur, 40s) linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track, .marquee.is-off .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.partner { display: grid; place-items: center; width: 15rem; height: 7.5rem; padding: var(--space-lg); border-radius: 1rem; background: var(--l-paper); border: var(--rule-hair) solid var(--color-rule); color: var(--color-ink); text-decoration: none; transition: border-color 240ms var(--ease-out), transform 240ms var(--ease-out); }
.partner img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.partner__name { font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.02em; }
.partner:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .partner:hover { border-color: var(--color-ink); transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .marquee { -webkit-mask-image: none; mask-image: none; } .marquee__track { flex-wrap: wrap; width: auto; row-gap: var(--space-md); } .marquee__track > [aria-hidden="true"] { display: none; } }
html:not(.js) .marquee__track { flex-wrap: wrap; width: auto; row-gap: var(--space-md); }
html:not(.js) .marquee__track > [aria-hidden="true"] { display: none; }

/* ---------- own blocks ---------- */
.custom__body { margin-top: var(--space-xl); display: grid; gap: var(--space-md); max-width: 46rem; }
.custom__body p { font-size: var(--text-lead); color: var(--color-ink-2); }
.custom__btn { margin-top: var(--space-xl); }
.custom--banner .band__head h2 { font-size: clamp(2.8rem, 5vw + 1rem, 6rem); }
.custom--banner { text-align: left; }
.faq { margin-top: var(--space-2xl); max-width: 56rem; border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq__item { border-top: var(--rule-hair) solid var(--color-rule); }
.faq__item summary { cursor: pointer; padding-block: var(--space-lg); font-size: var(--text-xl); font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: var(--space-md); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-weight: 300; transition: transform 300ms var(--ease-out); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding-bottom: var(--space-lg); color: var(--color-ink-2); max-width: 46rem; }
.faq__item summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- reviews without sign-in ---------- */
.rev-write { min-height: 44px; }
#rev-guest { margin-top: var(--space-xl); }

/* ---------- footer logo and its secret dot ---------- */
.foot__logo { position: relative; display: inline-block; margin-bottom: var(--space-md); }
.foot__brand .foot__logo img { height: 96px; width: auto; margin: 0; }
.egg { position: absolute; left: 41.3%; top: 74.2%; width: 19.5%; min-width: 44px; aspect-ratio: 1; transform: translate(-50%, -50%); padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.egg:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.egg__tip { position: absolute; left: 50%; bottom: calc(100% + var(--space-sm)); padding: var(--space-2xs) var(--space-sm); background: var(--logo-dot); color: var(--on-brand); font-size: var(--text-sm); font-weight: 600; white-space: nowrap; opacity: 0; transform: translate(-50%, 6px); pointer-events: none; transition: opacity 200ms var(--ease-out), transform 300ms var(--ease-out); }
.egg__tip::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--logo-dot); }
.egg:hover .egg__tip, .egg:focus-visible .egg__tip { opacity: 1; transform: translate(-50%, 0); }
@media (hover: hover) and (pointer: fine) { .egg:hover { animation: egg-pop 700ms var(--ease-out); } }
@keyframes egg-pop { 30% { box-shadow: 0 0 0 6px var(--logo-dot); } 100% { box-shadow: 0 0 0 18px transparent; } }
@media (max-width: 40rem) { .foot__brand .foot__logo img { height: 80px; } }

/* ---------- the mini game ---------- */
.game { width: min(100% - 2 * var(--space-md), 980px); height: min(100% - 2 * var(--space-md), 620px); max-width: none; max-height: calc(100% - 2 * var(--space-md)); padding: 0; border: 0; background: var(--p-film); color: var(--color-ink); overflow: hidden; }
.game[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.game::backdrop { background: var(--shade-deep); }
.game__top { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-sm) var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.game__title { margin: 0; font-size: var(--text-lg); font-weight: 700; }
.game__score { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--color-ink-2); }
.game__x { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: var(--chip-bg); color: var(--on-brand); cursor: pointer; }
.game__x .ico { width: 22px; height: 22px; }
.game__body { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 15rem; min-height: 0; }
.game__stage { position: relative; min-height: 0; background: var(--p-film); touch-action: manipulation; }
.game__stage canvas { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; cursor: pointer; }
.game__side { padding: var(--space-md); border-left: var(--rule-hair) solid var(--color-rule); overflow: auto; display: grid; align-content: start; gap: var(--space-md); }
.game__side h3 { margin: 0; font-size: var(--text-md); font-weight: 700; }
.game__top10 { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2xs); font-size: var(--text-sm); counter-reset: n; }
.game__top10 li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) auto; gap: var(--space-xs); padding-block: var(--space-2xs); border-top: var(--rule-hair) solid var(--color-rule); }
.game__top10 li::before { counter-increment: n; content: counter(n); color: var(--color-muted); }
.game__top10 li.is-empty { display: block; color: var(--color-muted); }
.game__top10 li.is-empty::before { content: none; }
.game__top10 li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game__top10 li.is-me { color: var(--logo-dot); }
.game__help { font-size: var(--text-sm); color: var(--color-muted); }
.game__over { position: absolute; inset: 0; display: grid; place-items: center; padding: var(--space-lg); background: var(--shade-mid); }
.game__over[hidden] { display: none; }
.game__card { display: grid; gap: var(--space-sm); width: min(100%, 22rem); padding: var(--space-lg); background: var(--p-film); border: var(--rule-hair) solid var(--color-rule-2); text-align: center; }
.game__card h3 { margin: 0; font-size: var(--text-2xl); font-weight: 800; }
.game__card input { min-height: 44px; padding: 0 var(--space-sm); border: var(--rule-hair) solid var(--color-rule-2); background: var(--color-paper-2); color: var(--color-ink); font: inherit; }
.game__card .form-msg { min-height: 1.2em; }
.game button.btn { justify-content: center; }
@media (max-width: 47.5rem) {
  .game { width: 100%; height: 100%; max-height: none; }
  .game__body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .game__side { border-left: 0; border-top: var(--rule-hair) solid var(--color-rule); max-height: 30vh; }
}
.haptic-switch { position: fixed; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* ---------- calculator: rounded, frosted cards so every choice stands out from the band ---------- */
#raschet { --glass: color-mix(in oklab, var(--p-ink-dark) 58%, transparent); --glass-edge: color-mix(in oklab, var(--color-ink) 14%, transparent); --glass-shade: color-mix(in oklab, var(--color-ink) 22%, transparent); --r-card: 1rem; }
#raschet.scheme-dark, :root[data-theme="dark"] #raschet { --glass: color-mix(in oklab, var(--p-ink-dark) 9%, transparent); --glass-edge: color-mix(in oklab, var(--p-ink-dark) 18%, transparent); --glass-shade: var(--shade-deep); }
#raschet .seg span, #raschet .opt__box, #raschet .kind__box, #raschet .send__opt span, #raschet .calc__aside, #raschet .send__done,
#raschet .field input, #raschet .field textarea, #raschet .calc__area-row input, #raschet .calc__form .btn { border-radius: var(--r-card); }
#raschet .calc__aside { border-radius: 1.5rem; }
#raschet .seg input:not(:checked) + span, #raschet .opt input:not(:checked) + .opt__box, #raschet .kind input:not(:checked) + .kind__box,
#raschet .send__opt input:not(:checked) + span, #raschet .send__done {
  background: var(--glass); border-color: var(--glass-edge); -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
  box-shadow: 0 10px 28px -20px var(--glass-shade); }
#raschet .opt__tick { border-radius: 6px; }
/* the summary keeps a plain translucent fill: Safari can drop a sticky box that blurs its backdrop */
#raschet .calc__aside { background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: 0 10px 28px -20px var(--glass-shade); }

/* ---------- partners: light tiles tinted with the band's own colour, the edge shimmering in its shades ---------- */
:root { --peach-glow: rgb(252 75 2 / 0.28); }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.partner { border: 1.5px solid transparent; border-radius: 1.25rem;
  background: linear-gradient(150deg, color-mix(in oklab, var(--bg) 8%, var(--p-ink-dark)), color-mix(in oklab, var(--bg) 24%, var(--p-ink-dark))) padding-box,
              conic-gradient(from var(--ang), color-mix(in oklab, var(--bg), var(--p-ink-light) 35%), color-mix(in oklab, var(--bg), var(--p-ink-dark) 60%), var(--bg), color-mix(in oklab, var(--bg), var(--p-ink-dark) 60%), color-mix(in oklab, var(--bg), var(--p-ink-light) 35%)) border-box;
  box-shadow: 0 14px 34px -24px color-mix(in oklab, var(--bg), var(--p-ink-light) 60%); }
@media (hover: hover) and (pointer: fine) {
  .partner:hover { border-color: transparent; transform: translateY(-4px); box-shadow: 0 18px 40px -18px color-mix(in oklab, var(--bg), var(--p-ink-light) 50%); animation: partner-edge 2.4s linear infinite; }
}
@keyframes partner-edge { to { --ang: 360deg; } }
@media (prefers-reduced-motion: reduce) { .partner:hover { animation: none; } }

/* ---------- every button with rounded corners; the theme switch matches the language pill ---------- */
.theme-btn { width: 40px; height: 32px; border-radius: 999px; position: relative; }
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn::after { content: ""; position: absolute; inset: -6px -2px; }
.nav__calc, .vz__btn, .rev-btn, .game__x, .lb__nav, .lb__x { border-radius: var(--radius-pill); }
.vz__btn--icon, .lb__x, .game__x { border-radius: 999px; }
.field input, .field textarea, .field select { border-radius: 12px; }

/* ---------- phone numbers: no underline; on hover the digit groups jump in a wave and the phone icon rings ---------- */
.contact__phone, .foot__phone, .nav__phone { text-decoration: none; background-image: none; }
.ph, .pg { display: inline-block; }
.ph:nth-of-type(2), .pg:nth-of-type(2) { --i: 1; } .ph:nth-of-type(3), .pg:nth-of-type(3) { --i: 2; } .ph:nth-of-type(4), .pg:nth-of-type(4) { --i: 3; } .ph:nth-of-type(5), .pg:nth-of-type(5) { --i: 4; }
@media (hover: hover) and (pointer: fine) {
  a[href^="tel:"]:hover :is(.ph, .pg) { animation: tel-wave 640ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
  .nav__phone:hover .ico { animation: tel-ring 600ms var(--ease-out); }
}
a[href^="tel:"]:focus-visible :is(.ph, .pg) { animation: tel-wave 640ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes tel-wave { 35% { transform: translateY(-0.22em) scale(1.08); text-shadow: 0 0.2em 0.6em var(--peach-glow); } 70% { transform: translateY(0.05em); } }
@keyframes tel-ring { 20%, 60% { transform: rotate(-14deg); } 40%, 80% { transform: rotate(14deg); } }
@media (prefers-reduced-motion: reduce) { a[href^="tel:"] :is(.ph, .pg), .nav__phone .ico { animation: none !important; } }

/* ---------- compact footer: brand and contacts on the left, messengers and social links side by side ---------- */
.foot:not(#_) { padding-bottom: var(--space-lg); }
.foot__grid { grid-template-columns: auto minmax(0, 1fr); gap: var(--space-xl) calc(var(--gap-columns) * 2); align-items: center; }
.foot__brand { gap: var(--space-2xs); }
.foot__logo { margin-bottom: var(--space-xs); }
.foot__brand .foot__logo img { height: 64px; }
.foot__say { font-size: var(--text-md); }
.foot__phone { font-size: var(--text-2xl); }
.foot__links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--gap-columns); align-items: start; }
.foot__group { padding-top: 0; border-top: 0; row-gap: var(--space-xs); }
.foot__label { font-size: var(--text-lg); }
.foot__note { display: none; }
.foot__group .chips { margin-top: 0; gap: var(--space-2xs); }
.foot .chip { min-height: 44px; }
.foot__base { margin-top: var(--space-lg); padding-top: var(--space-sm); }
@media (max-width: 64rem) { .foot__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); } }
@media (max-width: 40rem) {
  .foot__links { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
  .foot__brand .foot__logo img { height: 56px; }
  .foot .chip { min-height: 64px; }
}

/* ---------- headings get the wider column, so a heading like «Рассчитать стоимость ремонта» takes two lines ---------- */
.band__head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.band__head h2 { text-wrap: balance; }
@media (max-width: 52rem) { .band__head { grid-template-columns: minmax(0, 1fr); } }

/* ---------- no underlines: links show themselves by colour and motion ---------- */
.calc__more summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid currentColor; font-size: 14px; line-height: 1; transition: transform 300ms var(--ease-out); }
.calc__more[open] summary::before { transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) { .calc__more summary:hover { color: var(--color-ink); } }
.linkish { text-decoration: none; border-bottom: 1px dashed currentColor; }

/* ---------- contacts: a shorter top; messengers light up in their brand colours ---------- */
.roller-divider + #kontakty.paint:not(#_) { padding-top: calc(var(--seam-gap) + 4px); }
#kontakty .contact__list li:nth-child(1) { --b: var(--brand-telegram); } #kontakty .contact__list li:nth-child(2) { --b: var(--brand-viber); } #kontakty .contact__list li:nth-child(3) { --b: var(--brand-whatsapp); }
@media (hover: hover) and (pointer: fine) { #kontakty .contact__list a:hover .ico--brand { color: var(--b); } }
#kontakty .contact__list a:focus-visible .ico--brand, #kontakty .contact__list a:active .ico--brand { color: var(--b); }

/* ---------- footer: messengers on one row, social links on the next, no empty space ---------- */
.roller-divider + .foot.paint:not(#_) { padding-top: calc(var(--seam-gap) + 4px); }
.foot__grid { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.foot__links { display: grid; grid-template-columns: max-content auto; align-items: center; gap: var(--space-sm) var(--space-lg); justify-self: end; }
.foot__group { display: contents; }
.foot__group .foot__label { grid-column: 1; grid-row: auto; margin: 0; white-space: nowrap; }
.foot__group .chips { grid-column: 2; grid-row: auto; display: flex; flex-wrap: wrap; margin: 0; }
@media (max-width: 64rem) { .foot__grid { grid-template-columns: minmax(0, 1fr); } .foot__links { justify-self: start; } }
@media (max-width: 40rem) {
  .foot__links { grid-template-columns: minmax(0, 1fr); justify-self: stretch; gap: var(--space-2xs); }
  .foot__group .foot__label { grid-column: 1; margin-top: var(--space-sm); }
  .foot__group .chips { grid-column: 1; }
  .foot__group .chips { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-2xs); }
}

/* ---------- footer, final: even rhythm under the roller, three parts in one row, a call to send a request ---------- */
.roller-divider + .foot.paint:not(#_) { padding-top: 44px; }
.foot:not(#_) { padding-bottom: var(--space-md); }
.foot__grid { grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-xl) calc(var(--gap-columns) * 1.5); align-items: center; }
.foot__links { justify-self: center; }
.foot__cta { display: grid; gap: var(--space-xs); justify-items: start; max-width: 17rem; padding: var(--space-lg); border-radius: 1.25rem;
  background: color-mix(in oklab, var(--p-ink-dark) 7%, transparent); border: 1px solid color-mix(in oklab, var(--p-ink-dark) 14%, transparent); }
.foot__cta-title { font-family: var(--font-serif); font-size: var(--text-xl); line-height: 1.15; color: var(--color-ink); }
.foot__cta-text { font-size: var(--text-sm); color: var(--color-ink-2); }
.foot__cta-btn { margin-top: var(--space-2xs); gap: var(--space-xs); }
.foot__cta-btn .ico { width: 18px; height: 18px; }
.foot__base { margin-top: var(--space-lg); padding-top: var(--space-md); }
@media (max-width: 80rem) {
  .foot__grid { grid-template-columns: minmax(0, 1fr) auto; }
  .foot__links { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
}
@media (max-width: 40rem) {
  .foot__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .foot__links { grid-row: auto; }
  .foot__cta { max-width: none; justify-items: stretch; }
  .foot__cta-btn { justify-content: center; }
}
.roller-divider + .foot.paint:not(#_) { padding-top: 8px; }
.foot:not(#_) { padding-bottom: var(--space-lg); }
.foot__base { margin-top: var(--space-xl); padding-top: var(--space-lg); }
.foot__grid { gap: var(--space-xl) var(--gap-columns); }
@media (min-width: 80.01rem) { .foot__group .chips { flex-wrap: nowrap; } }
.roller-divider + .foot.paint:not(#_) { padding-top: 26px; }
.foot__cta { padding: var(--space-md) var(--space-lg); }
.foot__cta-title { font-size: var(--text-lg); }

/* footer: the request button sits under the phone; messengers and social links get more air between their rows */
.foot__grid { grid-template-columns: auto minmax(0, 1fr); }
.foot__links { justify-self: end; row-gap: var(--space-lg); }
.foot__brand .foot__cta-btn { margin-top: var(--space-2xs); }
@media (max-width: 80rem) { .foot__links { grid-column: auto; grid-row: auto; } }
@media (max-width: 64rem) { .foot__grid { grid-template-columns: minmax(0, 1fr); } .foot__links { justify-self: start; } }
@media (max-width: 40rem) { .foot__links { row-gap: var(--space-2xs); } .foot__group .foot__label { margin-top: var(--space-md); } .foot__brand .foot__cta-btn { justify-self: stretch; justify-content: center; } }

/* ---------- icons: Phosphor duotone; the line work in ink, the soft back layer in the logo's orange ---------- */
.badge-icon { fill: currentColor; color: var(--logo-dot); }
.badge-icon { fill: var(--color-ink); }
.vz__like .ico { transition: transform 300ms var(--ease-out); }
.vz__like .ico-on { display: none; color: var(--logo-dot); }
.vz__like[aria-pressed="true"] .ico-off { display: none; }
.vz__like[aria-pressed="true"] .ico-on { display: inline-block; }
.spec-icon, .metric-icon-box { width: 56px; height: 56px; border-radius: 1.1rem;
  background: linear-gradient(145deg, color-mix(in oklab, var(--logo-dot) 16%, var(--surface-card-hover)), var(--surface-card-hover));
  box-shadow: inset 0 1px 0 color-mix(in oklab, var(--p-ink-dark) 35%, transparent), 0 10px 24px -16px color-mix(in oklab, var(--logo-dot) 60%, transparent); }
.spec-icon .ico, .metric-icon-box .ico { width: 30px; height: 30px; fill: var(--color-ink); color: var(--logo-dot); }
.metric-icon-box { width: 48px; height: 48px; }
.metric-icon-box .ico { width: 26px; height: 26px; }
.paint .kind__box .ico { width: 52px; height: 52px; padding: 11px; fill: var(--color-ink); color: var(--logo-dot);
  background: linear-gradient(145deg, color-mix(in oklab, var(--logo-dot) 16%, var(--surface-card-hover)), var(--surface-card-hover)); }
.paint .kind input:checked + .kind__box .ico { fill: var(--p-ink-light); color: var(--p-ink-dark); }
@media (max-width: 64rem) { .paint .kind__box { grid-template-columns: 52px minmax(0, 1fr); } }

/* ---------- prices: a deep bordeaux band, the price itself in large gold ---------- */
#ceny .spec-list { gap: var(--space-md); }
#ceny .spec-row { align-items: center; padding: var(--space-lg); border-radius: 1.5rem; background: color-mix(in oklab, var(--p-ink-dark) 6%, transparent); border: 1px solid color-mix(in oklab, var(--p-gold) 22%, transparent); }
#ceny .spec-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-xs) var(--space-lg); }
#ceny .spec-pill { padding: 0; background: none; border-radius: 0; font-family: var(--font-body); font-size: clamp(1.1rem, 0.9rem + 0.6vw, 1.35rem); color: color-mix(in oklab, var(--p-gold) 80%, var(--p-ink-dark)); white-space: nowrap; }
#ceny .spec-pill [data-setting] { font-family: var(--font-serif); font-size: clamp(2.6rem, 1.6rem + 3vw, 4.2rem); font-weight: 500; line-height: 1; letter-spacing: -0.02em;
  background: linear-gradient(180deg, var(--p-gold), var(--p-gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-inline: 0.08em; }
#ceny .spec-icon { background: linear-gradient(145deg, color-mix(in oklab, var(--p-gold) 22%, transparent), color-mix(in oklab, var(--p-ink-dark) 6%, transparent)); }
#ceny .spec-icon .ico { fill: var(--p-gold); color: var(--p-gold); }
@media (max-width: 40rem) { #ceny .spec-row { padding: var(--space-md); } }

/* icons: no glow under the plates */
.spec-icon, .metric-icon-box, .paint .kind__box .ico { box-shadow: none; }

/* night mode switch: the new look grows as a circle from the button; no crossfade underneath */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2;
  -webkit-mask-image: radial-gradient(circle closest-side, var(--mask-solid) 55%, transparent 100%); mask-image: radial-gradient(circle closest-side, var(--mask-solid) 55%, transparent 100%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 0 0; mask-size: 0 0; }

/* the easter-egg hint: small, above the dot; while it shows, the footer rises over the roller's paint */
.egg__tip { top: auto; bottom: calc(100% + 6px); padding: 2px 9px; border-radius: 999px; font-size: var(--text-xs); font-weight: 600; transform: translate(-50%, 4px); box-shadow: 0 6px 16px -8px var(--shade-deep); }
.egg__tip::after { top: 100%; bottom: auto; margin-left: -4px; border-width: 4px; border-top-color: var(--logo-dot); border-bottom-color: transparent; }
.egg:hover .egg__tip, .egg:focus-visible .egg__tip { transform: translate(-50%, 0); }
.foot:has(.egg:hover, .egg:focus-visible) { z-index: 40; }

/* ---------- icons: Hugeicons (stroke, rounded), one ink colour; plates stay soft, no glow ---------- */
.badge-icon { color: var(--color-ink); fill: none; }
.spec-icon .ico, .metric-icon-box .ico { color: var(--color-ink); fill: none; }
.paint .kind__box .ico { color: var(--color-ink); fill: none; }
.paint .kind input:checked + .kind__box .ico { color: var(--p-ink-light); }
#ceny .spec-icon .ico { color: var(--p-gold); fill: none; }
.vz__like .ico-on { color: var(--logo-dot); }

/* ---------- scroll cue on the opening screen: says the film is played by scrolling ---------- */
.cue { position: absolute; z-index: 3; right: var(--gutter); bottom: calc(var(--space-3xl) + var(--space-lg)); translate: 0 0; display: grid; justify-items: center; gap: 8px; padding: 8px 14px; border: 0; border-radius: var(--radius-pill); background: none; color: var(--color-ink); font: inherit; font-size: var(--text-sm); cursor: pointer; transition: opacity 300ms var(--ease-out), translate 300ms var(--ease-out); }
.cue:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.cue__txt { letter-spacing: 0.01em; opacity: 0.85; }
.cue__mouse { position: relative; width: 24px; height: 38px; border: 1.75px solid currentColor; border-radius: 12px; }
.cue__mouse i { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: currentColor; animation: cueWheel 1.8s var(--ease-out) infinite; }
.cue__swipe { display: none; height: 34px; }
.cue__swipe i { display: block; width: 14px; height: 14px; margin: -6px auto 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; opacity: 0; animation: cueChev 1.6s ease-in-out infinite; }
.cue__swipe i:nth-child(2) { animation-delay: 0.2s; }
.cue__swipe i:nth-child(3) { animation-delay: 0.4s; }
@media (hover: none) { .cue__mouse { display: none; } .cue__swipe { display: block; } }
@media (hover: hover) and (pointer: fine) { .cue:hover .cue__txt { opacity: 1; } .cue:hover { translate: 0 3px; } }
@keyframes cueWheel { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { transform: translateY(12px); opacity: 0; } }
@keyframes cueChev { 0% { opacity: 0; translate: 0 -6px; } 40% { opacity: 1; } 80%, 100% { opacity: 0; translate: 0 6px; } }
.cue.is-gone { opacity: 0; translate: 0 10px; pointer-events: none; }
@media (max-width: 40rem) { .cue { bottom: calc(var(--space-2xl) + var(--space-sm) + env(safe-area-inset-bottom)); padding-inline: 4px; } }
.intro .cue { opacity: 0; }
html:not(.js) .cue { display: none; }
@media (prefers-reduced-motion: reduce) { .cue__mouse i, .cue__swipe i { animation: none; opacity: 1; } }
@media (max-height: 560px) { .cue { display: none; } }

/* the site author's link in the footer: grey like the line, Facebook blue on hover */
.foot__author { display: inline-flex; align-items: center; gap: 5px; color: inherit; text-decoration: none; vertical-align: bottom; transition: color 200ms var(--ease-out); }
.foot__author .ico { width: 15px; height: 15px; }
.foot__author:hover, .foot__author:focus-visible { color: #1877f2; }
.foot__author:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 4px; }

/* the video: sound is blocked until the first click, so the sound button asks for one */
.vz.need-tap .vz__bar { opacity: 1; transform: none; }
.vz.need-tap #vz-sound { animation: vzAsk 1.4s var(--ease-out) infinite; }
@keyframes vzAsk { 0%, 100% { box-shadow: 0 0 0 0 rgb(255 255 255 / 0.55); } 70% { box-shadow: 0 0 0 10px rgb(255 255 255 / 0); } }
@media (prefers-reduced-motion: reduce) { .vz.need-tap #vz-sound { animation: none; } }
