/* IRT site v4 · Kora frame + Willow intro. Numbers: tools/ref/kora/NOTES.md, tools/ref/framer-intro/NOTES.md */

/* ---------- fonts ---------- */
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-cyr.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-lat.woff2") format("woff2"); font-weight: 200 800; font-display: swap; 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; }
/* IRT Hand 4.1: block, so the hand captions never flash in a fallback */
@font-face { font-family: "IRT Hand"; src: url("../fonts/IRTHand-Regular.woff2") format("woff2"); font-weight: 400; font-display: block; }
/* FreeSerif Bold: only the countdown digit */
@font-face { font-family: "FreeSerif"; src: url("../fonts/FreeSerifBold.woff2") format("woff2"); font-weight: 700; font-display: block; }

/* ---------- tokens ---------- */
:root {
  --paper: #EEF0F1;
  --card: #F7F8F8;
  --mist: #DCE4E9;
  --shell: #E3E8EB;            /* Kora «Primary» shell under panels: paper → mist */
  --ink: #231A1C;
  --ink-2: rgba(35, 26, 28, .62);
  --line: rgba(35, 26, 28, .12);
  --wine: #641B29;
  --wine-deep: #420711;
  --blue: #88A4B5;
  --cream: #FFF7EA;
  --cream-2: rgba(255, 247, 234, .75);
  --crimson: #871029;
  --night: #0B0809;

  --f: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-hand: "IRT Hand", "Segoe Script", cursive;

  /* Kora springs (NOTES §4.1): bounce .29 and bounce 0; Willow bounce .2 */
  --s29: linear(0, .094, .293, .511, .703, .848, .947, 1.005, 1.033, 1.042, 1.039, 1.031, 1.022, 1.014, 1.007, 1.003, 1, .999, .998, .998, 1);
  --s0: linear(0, .079, .236, .403, .551, .671, .764, .833, .883, .919, .944, .962, .974, .983, .988, .992, .995, .997, .998, .999, 1);
  --s2: linear(0, .079, .249, .438, .609, .748, .852, .923, .969, .995, 1.009, 1.014, 1.015, 1.013, 1.01, 1.008, 1.005, 1.003, 1.002, 1.001, 1);
  --expo: cubic-bezier(.16, 1, .3, 1);
  --std: cubic-bezier(.4, 0, .2, 1);

  /* grid (Kora §3.1) */
  --pad: 60px;          /* container side padding */
  --sec: 120px;         /* section vertical padding */
  --gap-t: 80px;        /* title → content */
  --inset: 20px;        /* coloured frames inset */
  --r-xl: 40px; --r-l: 30px; --r-m: 20px; --r-s: 15px;

  /* type (Kora §3.2) desktop / tablet / phone */
  --t-xl: 120px; --t-h2: 80px; --t-stat: 60px; --t-h3l: 45px; --t-h3m: 30px; --t-h3s: 20px;
  --t-leadl: 30px; --t-leadm: 25px; --t-leads: 20px; --t-body: 17px; --t-ui: 15px; --t-cap: 13px;
  --hdr-h: 60px;
  --grain-size: 600px;
}
@media (max-width: 1199.98px) {
  :root { --pad: 40px; --sec: 90px; --gap-t: 50px;
    --t-xl: 80px; --t-h2: 60px; --t-stat: 54px; --t-h3l: 30px; --t-h3m: 25px; --t-h3s: 19px;
    --t-leadl: 25px; --t-leadm: 20px; --t-leads: 17px; --t-body: 15px; }
}
@media (max-width: 809.98px) {
  :root { --pad: 20px; --sec: 60px; --gap-t: 30px; --inset: 10px; --r-xl: 30px; --r-l: 24px;
    --t-xl: 50px; --t-h2: 35px; --t-stat: 48px; --t-h3l: 25px; --t-h3m: 20px; --t-h3s: 17px;
    --t-leadl: 20px; --t-leadm: 17px; --t-leads: 15px; --t-body: 15px; --t-ui: 14px;
    --hdr-h: 52px; --grain-size: 480px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 100px; overflow-x: clip; background-color: var(--paper); }   /* round 27: Safari 26 tints its bars from the page background */
html.is-intro.is-locked, html.is-intro.is-locked body { overflow: hidden; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 600 var(--t-ui)/1.5 var(--f); letter-spacing: -.03em;
  font-kerning: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; border-radius: 8px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { display: block; }
[hidden] { display: none !important; }
a, button, label, summary { touch-action: manipulation; }
.nw { white-space: nowrap; }
/* ⚠ = fact waiting for the owners: stays in the layout as is, small, text presentation */
.wf { font-family: system-ui, -apple-system, sans-serif; font-size: .62em; vertical-align: .55em; margin-left: .12em; opacity: .7; font-weight: 400; letter-spacing: 0; line-height: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 8px 16px; border-radius: 40px; background: var(--ink); color: var(--cream); transition: top .2s; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 var(--pad); }
.sec { padding: var(--sec) 0; position: relative; }
.mute { color: var(--ink-2); }

/* headings: Kora Manrope Variable (wght 585, XL 500), lh 105%, −0.04em; Cyrillic set a touch lighter */
/* round 15 (Yana): no single word left alone on the last line, anywhere; classed balance rules below still win */
p, li, dd, dt, label, legend, figcaption, blockquote, h3, td, th { text-wrap: pretty; }
.xl, .h2, .hero__t, .phrase__t, .cmp__t, .results__t, .case__t, .svc__h, .cmp__h, .phase__h, .member b, .faq__t {
  font-family: var(--f); letter-spacing: -.04em; font-weight: 560; text-wrap: balance;
}
.xl { font-size: var(--t-xl); line-height: 1; font-weight: 500; }
.h2 { font-size: var(--t-h2); line-height: 1.05; }
.lead { font-size: var(--t-leads); line-height: 1.35; letter-spacing: -.03em; font-weight: 600; }

/* hand captions: IRT Hand, calt + kern always */
.hand {
  font-family: var(--f-hand); font-weight: 400; letter-spacing: 0; line-height: 1.15;
  font-feature-settings: "calt" 1, "kern" 1; text-transform: none; transform: rotate(var(--r, -4deg));
  transform-origin: 0 60%;
}
.hand--cream { color: var(--cream); }
.hand--crimson { color: var(--crimson); }
/* «пишется» слева направо */
/* the mask leaves .7em around the box: tails and loops of IRT Hand reach outside it (the «з» of «знаю» was cut) */
[data-write], [data-scrub-write] { clip-path: inset(-.7em -.7em -.7em -.7em); }
.js [data-write], .js [data-scrub-write] { clip-path: inset(-.7em calc(100% + .8em) -.7em -.7em); transition: clip-path .35s cubic-bezier(.45, .05, .25, 1); }
.js [data-write].is-written, .js [data-scrub-write].is-written { clip-path: inset(-.7em -.7em -.7em -.7em); transition: clip-path .9s cubic-bezier(.45, .05, .25, 1); }

/* ---------- grain: one fixed layer, lightly «boiling» like film ----------
   The layer itself never moves: only the texture offset jumps between far-apart random spots,
   ~10 times a second, so the grain changes in place instead of sliding left/right. */
.grain-page {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; overflow: hidden;
  background: url("../img/grain.webp") 0 0 / var(--grain-size) repeat;
  mix-blend-mode: color-dodge; opacity: .13;
}
/* a third of the grain re-seeds ~4 times a second: the texture barely breathes.
   round 27: the same jumps as a transform of an oversized layer (was background-position: a full-screen repaint
   and re-raster 4 times a second, the periodic hitch on desktop); now the compositor only moves a ready texture */
.grain-page::after {
  content: ""; position: absolute; inset: -320px;
  background: url("../img/grain.webp") 0 0 / var(--grain-size) repeat;
  opacity: .32; animation: grain-boil 2s steps(1, end) infinite; will-change: transform;
}
@keyframes grain-boil {
  0%    { transform: translate3d(0, 0, 0); }
  12.5% { transform: translate3d(-173px, 241px, 0); }
  25%   { transform: translate3d(311px, -97px, 0); }
  37.5% { transform: translate3d(-59px, -283px, 0); }
  50%   { transform: translate3d(227px, 139px, 0); }
  62.5% { transform: translate3d(-293px, 53px, 0); }
  75%   { transform: translate3d(89px, -211px, 0); }
  87.5% { transform: translate3d(-131px, 307px, 0); }
}
.grain { display: none; }
/* mode B (if the page layer dirties text): grain only over photos and dark blocks */
.grain-local .grain-page { display: none; }
.grain-local .grain { display: block; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: url("../img/grain.webp") 0 0 / var(--grain-size) repeat; mix-blend-mode: color-dodge; opacity: .18; }

/* ---------- buttons: calm hover, colour only (no rolling label, no growing dot) ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 44px; padding: 0 24px;
  border-radius: 40px; font-size: var(--t-ui); line-height: 1.5; white-space: nowrap;
  --bg: var(--wine); --fg: var(--cream); --bg-h: #4F1520; --fg-h: var(--cream);
  background: var(--bg); color: var(--fg);
  transition: background-color .45s cubic-bezier(.25, .1, .25, 1), color .45s cubic-bezier(.25, .1, .25, 1), transform .2s ease;
}
.btn--ink { --bg: var(--ink); --bg-h: var(--wine); }
.btn--cream { --bg: var(--cream); --fg: var(--ink); --bg-h: #F3E6D2; }
.btn__txt { position: relative; display: grid; }
.btn__txt > span + span, .btn__fill, .btn__dot { display: none; }
@media (hover: hover) { .btn:hover { background: var(--bg-h); color: var(--fg-h); } }
.btn:active { transform: scale(.98); }
.btn--wide { width: 100%; height: 56px; font-size: var(--t-body); }
/* round 11 test: no «Записаться» under every «С чем приходят» card on phones. To bring it back, drop the svc--no-cta class in index.html */
@media (max-width: 809.98px) { .svc--no-cta .svc__col > .btn--wide { display: none; } }

.lnk { display: inline-flex; align-items: center; gap: 8px; height: 44px; font-size: var(--t-ui); color: var(--ink); white-space: nowrap; }
.lnk--cream { color: var(--cream); }
.lnk__txt { display: grid; overflow: hidden; }
.lnk__txt > span { grid-area: 1 / 1; transition: transform .36s var(--s29), opacity .36s var(--s29); }
.lnk__txt > span + span { display: none; }
.lnk__txt { transition: opacity .45s ease; }
.lnk__ico { position: relative; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; transition: background-color .36s var(--s29), color .36s; }
.lnk__ico svg { width: 15px; height: 15px; }
@media (hover: hover) {
  .lnk:hover .lnk__txt { opacity: .78; }
  .lnk--cream:hover .lnk__ico { background: var(--cream); color: var(--wine); }
}

/* small parts */
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--r-s); background: var(--ink); color: var(--cream); font-size: var(--t-cap); }
.label { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px 0 8px; border-radius: var(--r-s); background: var(--shell); font-size: var(--t-cap); color: var(--ink); white-space: nowrap; }
.label__ic { width: 20px; height: 20px; display: grid; place-items: center; color: var(--wine); }
.label__ic svg { width: 19px; height: 19px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 8px; border-radius: var(--r-s); background: var(--shell); font-size: var(--t-cap); line-height: 1.5; }
.ic { flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; }
.ic svg { width: 14px; height: 14px; }
.ic--x { background: var(--ink); color: var(--mist); }
.ic--ok { background: var(--cream); color: var(--wine); }
.ic--cream { background: var(--cream); color: var(--wine); width: 25px; height: 25px; }
.ic--cream svg { width: 16px; height: 16px; }
.ic--wine { background: var(--wine); color: var(--cream); width: 36px; height: 36px; }
.ic--wine svg { width: 22px; height: 22px; }
.arrow-c { flex: none; width: 25px; height: 25px; border-radius: 50%; background: var(--shell); display: grid; place-items: center; transition: background-color .36s var(--s29), color .36s var(--s29), transform .36s var(--s29); transform: scale(1.3); }
.arrow-c svg { width: 15px; height: 15px; }
.ava { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; box-shadow: 0 0 0 2px var(--shell); background: var(--mist); }
.ava--blue { background: url("../img/blue-720.webp") center / cover; }
.ava--md { width: 49px; height: 49px; }
.ava--lg { width: 64px; height: 64px; }
.ava-stack { display: inline-flex; }
.ava-stack .ava + .ava { margin-left: -6px; }
.panel { background: var(--card); border-radius: var(--r-l); }

/* glass (Kora: rgba(255,255,255,.35) + blur 10 + 1px ring, r 20) */
.glass {
  position: absolute; z-index: 3; width: 300px; padding: 16px 16px 16px; border-radius: var(--r-m);
  background: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); color: #fff;
}
.glass p { font-size: var(--t-ui); line-height: 1.5; }
.glass footer { margin-top: 12px; font-size: var(--t-cap); color: rgba(255, 255, 255, .82); }

/* =========================================================
   0. INTRO · Willow leader (framer-intro NOTES §3–§5), IRT colours
   ========================================================= */
.intro { display: none; }
.is-intro .intro { display: block; position: fixed; inset: 0; z-index: 90; cursor: pointer; }
.intro__curtain { position: absolute; inset: 0; background: var(--night); clip-path: inset(0 0 0 0); will-change: clip-path; }
.intro__stack {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; grid-template-columns: var(--mw, 170px) 200px var(--mw, 170px); align-items: center; gap: 32px;
}
.intro__mask { overflow: clip; height: 64px; display: flex; align-items: center; }
.intro__mask--l { justify-content: flex-end; }
.intro__line { position: relative; }
.intro__word {
  display: block; font: 400 38px/1.4 var(--f-hand); font-feature-settings: "calt" 1, "kern" 1; color: var(--cream);
  white-space: nowrap; transform: translateY(64px); opacity: .001; padding: 0 2px;
}
.intro__tile { position: relative; width: 200px; height: 200px; border-radius: 34px; background: #2A1F21; overflow: hidden; isolation: isolate; }
.intro__seq { position: absolute; inset: 0; z-index: 2; }
.intro__seq img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* static grain on the frames (Willow jitter removed by brief) */
.intro__grain { position: absolute; inset: 0; z-index: 2; background: url("../img/grain.webp") 0 0 / 300px repeat; mix-blend-mode: overlay; opacity: .35; }
.intro__leader { position: absolute; inset: -16px; z-index: 3; background: #161012; display: grid; place-items: center; }
.intro__leader svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro__ring { fill: none; stroke: rgba(255, 247, 234, .55); stroke-width: .4; }
.intro__pie { fill: none; stroke: #7A6A6D; stroke-width: 34; stroke-dasharray: 0 1; transform: rotate(-90deg); transform-origin: 50px 50px; }
.intro__digit { position: relative; font: 700 30px/1 "FreeSerif", serif; letter-spacing: -.02em; color: var(--cream); }
@media (max-width: 1199.98px) {
  .intro__stack { left: 0; right: 0; translate: 0 -50%; padding: 0 20px; grid-template-columns: 1fr 161px 1fr; gap: 12px; }
  .intro__tile { width: 161px; height: 161px; border-radius: 24px; }
  .intro__leader { inset: -30px -28px; }
  .intro__seq { inset: -14px -12px; }
  .intro__word { font-size: 36px; }
}
/* phones: the two words do not fit beside the tile, they sit above-left and below-right of it */
@media (max-width: 599.98px) {
  .intro__stack { grid-template-columns: 1fr; grid-template-rows: auto 161px auto; gap: 8px; justify-items: center; padding: 0 28px; }
  .intro__mask--l { justify-self: start; margin-left: calc(50% - 80px - 40px); }
  .intro__mask--r { justify-self: end; margin-right: calc(50% - 80px - 52px); }
  .intro__word { font-size: 34px; }
}

/* =========================================================
   HEADER · Kora nav pill + fixed «Book a call» with photo
   ========================================================= */
.hdr { position: fixed; z-index: 50; top: 0; left: env(safe-area-inset-left, 0px); right: env(safe-area-inset-right, 0px); pointer-events: none; }   /* round 27: off the notch in landscape (0 elsewhere) */
.nav {
  position: absolute; top: 30px; left: 30px; display: flex; align-items: center; height: var(--hdr-h);
  padding: 0 12px 0 16px; border-radius: 30px; background: var(--card); pointer-events: auto;
}
.nav__logo { display: block; width: 58px; color: var(--wine); margin-right: 12px; }
.nav__logo svg { width: 58px; height: 38px; fill: currentColor; overflow: visible; }
.nav__links { display: flex; }
.nav__links a { position: relative; display: grid; place-items: center; width: 108px; height: 36px; font-size: var(--t-ui); color: var(--ink); }
.nav__links a::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 22px; height: 4px; margin-left: -11px; border-radius: 4px; background: var(--wine); transform: scale(.2); opacity: 0; transition: transform .36s var(--s29), opacity .2s; }
.nav__links a:hover::after, .nav__links a.is-here::after { transform: none; opacity: 1; }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; margin-left: auto; border-radius: 50%; }
.nav__burger i { position: absolute; left: 12px; right: 12px; height: 0; border-top: 2px solid var(--ink); border-radius: 2px; transition: transform .4s var(--expo), top .4s var(--expo); }
.nav__burger i:first-child { top: 17px; }
.nav__burger i:last-child { top: 25px; }
.menu-open .nav__burger i:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .nav__burger i:last-child { top: 21px; transform: rotate(-45deg); }

/* book (Kora 5.1): dark pill + 60px avatar overlapping by 28px; fixed for IRT */
.book {
  position: fixed; z-index: 60; top: 30px; right: 30px; display: inline-flex; align-items: center; height: 60px; padding-right: 28px;
  border-radius: 40px; color: var(--cream); -webkit-tap-highlight-color: transparent;
  margin-right: env(safe-area-inset-right, 0px);   /* round 27: off the notch in landscape (0 elsewhere) */
}
.book__btn { position: relative; display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 44px 0 24px; border-radius: 40px; background: var(--ink); overflow: hidden; isolation: isolate; transition: height .46s var(--s29), padding .46s var(--s29); }
.book__fill { position: absolute; z-index: 1; right: 50%; margin-right: -11px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--wine); transform: scale(0); transition: transform .36s var(--s29); }
.book__txt { position: relative; z-index: 2; display: grid; overflow: hidden; font-size: var(--t-ui); line-height: 1.5; white-space: nowrap; }
.book__t { grid-area: 1 / 1; transition: transform .36s var(--s29), opacity .36s var(--s29); transform-origin: 0 50%; }
.book__t + .book__t { transform: translateY(30px) rotate(-30deg) scale(.9); opacity: 0; }
.t-sm { display: none; }
.book__icon { position: relative; z-index: 2; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--cream); transition: transform .36s var(--s29), width .46s var(--s29), opacity .3s; margin-right: 8px; }
.book__icon i { position: absolute; left: 5px; right: 5px; top: 9px; height: 2px; border-radius: 2px; background: var(--ink); }
.book__icon i + i { transform: rotate(90deg) scaleX(0); transition: transform .36s var(--s29); }
.book__ava { position: relative; width: 1px; height: 60px; }
.book__ring { position: absolute; top: 0; left: -29px; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--cream); background: url("../img/blue-720.webp") center / cover; transition: width .46s var(--s29), height .46s var(--s29), top .46s var(--s29); }
.book__ring img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transform: scale(1.25); transform-origin: 50% 20%; transition: transform .36s var(--s29), opacity .36s var(--s29); }
/* round 30 (client): the wine IRT mark on cream instead of Yana's photo */
.book__ring:has(.book__logo) { background: var(--cream); }
.book__logo { position: absolute; left: 14%; top: 22%; width: 72%; height: 56%; fill: var(--wine); overflow: visible; transition: transform .36s var(--s29); }
.book__you { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 4px; border-radius: 50%; background: var(--wine); color: var(--cream); font: 400 26px/1 var(--f-hand); font-feature-settings: "calt" 1, "kern" 1; transform: translateY(-100%); transition: transform .36s var(--s29); }
/* hover: the pill only darkens, nothing jumps */
.book__btn { transition: background-color .45s cubic-bezier(.25, .1, .25, 1), height .46s var(--s29), padding .46s var(--s29); }
.book__t + .book__t, .book__fill, .book__you { display: none; }
@media (hover: hover) { .book:hover .book__btn { background: var(--wine); } }
/* after the first screen: collapses to the avatar with a small caption */
/* round 13: compact keeps the nav pill height (60) */
.book.is-compact .book__btn { padding: 0 44px 0 24px; }
.book.is-compact .t-lg { display: none; }
.book.is-compact .t-sm { display: inline; }
.book.is-compact .book__icon { width: 0; margin-right: 0; opacity: 0; }

@media (max-width: 1199.98px) {
  .nav { top: 20px; left: 20px; padding-right: 8px; }
  .nav__links { display: none; }
  .nav__burger { display: block; margin-left: 4px; }
  .nav__logo { margin-right: 0; }
  .book { top: 20px; right: 20px; height: var(--hdr-h); padding-right: 28px; }
  .book .t-lg { display: none; }
  .book .t-sm { display: inline; }
  .book__btn, .book.is-compact .book__btn { height: var(--hdr-h); padding: 0 44px 0 24px; }
  .book__icon { display: none; }
  .book__ava { height: var(--hdr-h); }
  .book__ring, .book.is-compact .book__ring { width: var(--hdr-h); height: var(--hdr-h); left: -29px; }
  .book__you { font-size: 22px; }
}
@media (max-width: 809.98px) {
  /* phone, same as desktop: a compact pill with the logo top-left, «Записаться» top-right */
  .nav { left: 12px; top: 12px; height: 48px; padding: 0 4px 0 12px; }
  .nav__logo { width: 50px; margin-right: 8px; }
  .nav__logo svg { width: 50px; height: 33px; }
  .book { top: 12px; right: 12px; height: 48px; padding-right: 24px; }
  .book__btn, .book.is-compact .book__btn { height: 40px; padding: 0 40px 0 16px; font-size: 14px; }
  .book.is-compact .book__txt, .book__txt { font-size: 14px; }
  .book__ava { height: 48px; }
  .book__ring, .book.is-compact .book__ring { width: 48px; height: 48px; left: -24px; }
  /* round 11: two equal pills (same width, same 48px height); «Записаться» waits until the comparison, then stays */
  .nav { padding: 0 2px 0 16px; }
  .nav__logo { margin-right: 4px; }
  .book { height: 48px; padding-right: 0; opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.94); transform-origin: 100% 50%; transition: opacity .45s var(--std), transform .6s var(--s29), visibility 0s .6s; }
  .book.is-shown { opacity: 1; visibility: visible; transform: none; transition: opacity .45s var(--std), transform .6s var(--s29), visibility 0s; }
  .book__btn, .book.is-compact .book__btn { width: 146px; height: 48px; padding: 0 48px 0 16px; }
  .book__ava { height: 48px; }
  .book__ring, .book.is-compact .book__ring { width: 40px; height: 40px; top: 4px; left: -45px; box-shadow: none; }
}

/* round 15: «Записаться» steps away at the booking section (after the phone rules, so it wins over .is-shown) */
@media (min-width: 810px) { .book { transition: opacity .45s var(--std), transform .6s var(--s29), visibility 0s; } }
.book.is-away { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-10px) scale(.94); transform-origin: 100% 50%; transition: opacity .45s var(--std), transform .6s var(--s29), visibility 0s .6s; }

/* phone/tablet menu: full-screen light panel, items rise from masks */
.menu { position: fixed; inset: 0; z-index: 45; overscroll-behavior: contain; touch-action: none; background: var(--paper); display: flex; flex-direction: column; justify-content: flex-end; padding: 112px 20px calc(112px + env(safe-area-inset-bottom)); }
.menu__list { display: grid; gap: 4px; }
.menu__list li { overflow: clip; }
.menu__list a { display: block; font-size: clamp(40px, 11vw, 64px); line-height: 1.12; letter-spacing: -.04em; font-weight: 560; color: var(--ink); }
.menu__list a span { display: block; transform: translateY(105%); transition: transform .8s var(--expo); }
.menu.is-open .menu__list a span { transform: none; }
.menu__list li:nth-child(2) a span { transition-delay: .05s; }
.menu__list li:nth-child(3) a span { transition-delay: .1s; }
.menu__list li:nth-child(4) a span { transition-delay: .15s; }
.menu__list li:nth-child(5) a span { transition-delay: .2s; color: var(--wine); }
.menu__hand { margin-top: 28px; font-size: clamp(28px, 8vw, 40px); white-space: nowrap; opacity: 0; transition: opacity .6s .3s; color: var(--crimson); }
.menu.is-open .menu__hand { opacity: 1; }
.menu { opacity: 0; transition: opacity .3s var(--std); }
.menu.is-open { opacity: 1; }

/* =========================================================
   1–3. SCENE · hero photo (sticky) → phrase → comparison
   ========================================================= */
.scene { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: calc(var(--vh, 1svh) * 100); margin-bottom: -100vh; margin-bottom: calc(var(--vh, 1svh) * -100); z-index: 0; overflow: hidden;
  background-color: var(--paper); }   /* round 27: Safari 26 samples a full-width sticky layer at the screen edge for its bar colour: paper, not the sky */
.stage__frame { position: absolute; inset: var(--inset); border-radius: var(--r-xl); overflow: hidden; transform-origin: 50% 50%; will-change: transform; background: var(--paper); }
.stage__win { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: #95BACF; }
.stage__zoom { position: absolute; inset: 0; transform-origin: 50% 50%; }
.stage__zoom picture, .stage__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__img { object-fit: cover; object-position: 62% 50%; }
.stage__blur { will-change: opacity; }
.stage__tint { position: absolute; inset: 0; background: var(--wine-deep); opacity: .1; }
/* spring (call 30.10): a deeper sky instead of the grey-brown shade, only where the cream text sits */
.stage__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22, 40, 60, .38) 0%, rgba(22, 40, 60, .12) 42%, rgba(22, 40, 60, 0) 64%), linear-gradient(0deg, rgba(22, 40, 60, .16) 0%, rgba(22, 40, 60, 0) 28%); }
.stage.is-off { visibility: hidden; }
/* round 27: touch screens freeze --vh, but in-app browsers (Telegram) grow the window when their bars fold.
   The sticky photo and comparison scenes then clip their layers --bleed lower, so the zoomed photo or a sliding card
   never ends at a hard line above the real bottom edge. Layout stays on the frozen height; desktops unchanged */
@media (hover: none) {
  :root { --bleed: 140px; }
  html .stage, html .cmp__stage { overflow: visible; clip-path: inset(0 0 calc(-1 * var(--bleed)) 0); }
}

.hero { position: sticky; top: 0; height: 100vh; height: calc(var(--vh, 1svh) * 100); z-index: 1; pointer-events: none; }
.hero__in {
  position: absolute; inset: var(--inset); display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(96px, var(--vh, 1svh) * 15.5, 140px) var(--pad) clamp(24px, var(--vh, 1svh) * 4.4, 40px); color: var(--cream); will-change: transform;
}
.hero__in a { pointer-events: auto; }
.hero__t { font-size: clamp(40px, min(5.56vw, var(--vh, 1svh) * 8.7), 88px); line-height: 1.05; color: var(--cream); max-width: 13em; }
.hero__t .ln { display: block; }
.hero__hand { font-size: clamp(40px, min(3.6vw, var(--vh, 1svh) * 6.4), 64px); margin: .32em 0 0 .06em; --r: -4deg; width: max-content; max-width: 100%; }
.hero__lead { margin-top: clamp(12px, var(--vh, 1svh) * 2.6, 24px); max-width: 470px; font-size: clamp(16px, min(1.4vw, var(--vh, 1svh) * 2.5), 20px); line-height: 1.35; letter-spacing: -.03em; color: var(--cream); }
.hero__cta { display: flex; width: fit-content; align-items: center; gap: 20px; margin-top: clamp(16px, var(--vh, 1svh) * 3.4, 32px); }
.hero__bottom { margin-top: auto; padding-top: 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; pointer-events: none; }
.hero__bottom > * { pointer-events: auto; }
/* short windows: the story card leaves the first screen (it opens from «Истории» below), so nothing overlaps */
.hero__in.is-tight .story { display: none; }
.hero__in.is-tight .hero__bottom { padding-top: 12px; }
/* still too tall (very low windows, embeds): type follows the window height, then the hand line and avatars go, then the lead */
.hero__in.is-t2 { padding-top: max(64px, var(--vh, 1svh) * 14); padding-bottom: 12px; }
.hero__in.is-t2 .hero__t { font-size: clamp(22px, var(--vh, 1svh) * 7.6, 40px); max-width: 15em; }
.hero__in.is-t2 .hero__t .ln { display: inline; }
.hero__in.is-t2 .hero__hand { font-size: clamp(20px, var(--vh, 1svh) * 6, 34px); margin-top: .28em; }
.hero__in.is-t2 .hero__lead { font-size: clamp(13px, var(--vh, 1svh) * 3.8, 16px); margin-top: calc(var(--vh, 1svh) * 1.6); max-width: 440px; }
.hero__in.is-t2 .hero__cta { margin-top: calc(var(--vh, 1svh) * 2.4); }
.hero__in.is-t3 .hero__hand, .hero__in.is-t3 .hero__bottom { display: none; }
.hero__in.is-t4 .hero__lead { display: none; }
.trust { display: flex; align-items: center; gap: 12px; font-size: var(--t-cap); color: var(--cream); }
.trust .ava { box-shadow: 0 0 0 2px rgba(255, 247, 234, .9); }

/* story card: one light surface, live portrait, text, arrow (round 11: lighter than the Kora two-panel card) */
.story { display: flex; align-items: center; gap: 16px; width: 470px; max-width: 100%; padding: 8px 16px 8px 8px; border-radius: var(--r-l); background: rgba(247, 248, 248, .92); color: var(--ink); }
.story__ph { position: relative; flex: none; width: 84px; aspect-ratio: 4 / 5; border-radius: calc(var(--r-l) - 8px); overflow: hidden; }
.story__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .6s var(--expo); }
.story__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.story__lab { font-size: 12px; line-height: 1.3; color: var(--ink-2); }
.story__lab b { font-weight: 600; color: var(--wine); }
.story__txt { font-size: var(--t-cap); line-height: 1.45; }
.story .arrow-c { transform: none; width: 34px; height: 34px; }
@media (hover: hover) {
  .story:hover .story__ph img { transform: scale(1.06); }
  .story:hover .arrow-c { background: var(--wine); color: var(--cream); }
}

/* phrase (Kora Problem Intro): sticky, words revealed by scroll */
.phrase { position: sticky; top: 0; height: 100vh; height: calc(var(--vh, 1svh) * 100); z-index: 1; display: grid; place-items: center; pointer-events: none; padding: 0 var(--pad); }
.phrase__in { position: relative; max-width: 1240px; text-align: center; }
.phrase__t { font-size: clamp(40px, 4.6vw, 76px); line-height: 1.05; color: var(--cream); text-shadow: 0 1px 2px rgba(22, 40, 60, .16), 0 0 34px rgba(22, 40, 60, .3); }
@media (max-width: 809.98px) { .br-d { display: none; } }
.phrase__t .w { display: inline-block; will-change: transform, opacity, filter; }
.phrase__ln { display: block; white-space: nowrap; }
/* round 28: the «з» reaches .136em left of its text box and its tail .19em below. Real iOS cut that ink (a layer or a mask
   never reaches past the box there). The box is padded on every side and the margins take the padding back: same place, ink inside */
.phrase__hand { position: absolute; right: -.6em; top: 100%; margin-top: .15em; padding: .1em .2em .4em .3em; transform-origin: .3em .79em; font-size: clamp(44px, 5vw, 72px); --r: -6deg; white-space: nowrap; }
/* round 27: «знаю, но…» writes once; the reset happens unseen (no rewind), and the finished line has no mask at all */
.js .phrase__hand[data-scrub-write]:not(.is-written) { transition: none; }
.js .phrase__hand[data-scrub-write].is-done { clip-path: none; }
/* round 30: phones and tablets (the client still saw the «з» cut in an in-app browser): no mask at all there,
   the line fades in once the quote is in. Desktop keeps the left-to-right writing */
@media (hover: none) {
  .js .phrase__hand[data-scrub-write] { clip-path: none; opacity: 0; transform: rotate(var(--r)) translateY(6px); transition: opacity .7s var(--std), transform .9s var(--s29); }
  .js .phrase__hand[data-scrub-write].is-written { opacity: 1; transform: rotate(var(--r)); }
  .js .phrase__hand[data-scrub-write]:not(.is-written) { transition: none; }
}
.phrase__space { height: 100vh; height: calc(var(--vh, 1svh) * 100); }

/* comparison (Kora 4.4) */
.cmp { position: relative; z-index: 2; background: var(--paper); padding: 60px 0; }
.cmp__stage { position: sticky; top: 0; height: 100vh; height: calc(var(--vh, 1svh) * 100); display: grid; place-items: center; perspective: 1200px; overflow: hidden; }
.cmp__stage > * { grid-area: 1 / 1; }
.cmp__t { position: relative; z-index: 2; font-size: var(--t-h2); line-height: 1.05; text-align: center; white-space: nowrap; pointer-events: none; }
.cmp__l { display: block; will-change: transform, opacity; transform-style: preserve-3d; }
.cmp__cards { position: relative; display: flex; justify-content: center; will-change: transform, opacity; transform-origin: 50% 50%; }
.cmp__card { width: 500px; height: min(650px, calc(var(--vh, 1svh) * 100 - 150px)); padding: 48px; border-radius: var(--r-xl); transition: transform .76s var(--s29), opacity .5s; }
.cmp__in { height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; transition: opacity .76s var(--s29); }
.cmp__card--talk { position: relative; z-index: 2; background: var(--mist); }
.cmp__card--irt { position: absolute; z-index: 1; left: 50%; margin-left: -250px; background: var(--wine); color: var(--cream); transform: scale(.8); }
.cmp__label { display: flex; align-items: center; gap: 10px; font-size: var(--t-cap); color: var(--ink-2); }
/* talk card: same caps stack as the IRT lockup (3 lines, same size and position) */
.cmp { --lk-w: 250px; }
.cmp__label--caps { display: block; min-height: calc(var(--lk-w) * 116 / 189 - 8px); padding-top: calc(var(--lk-w) * .152); margin: -8px 0 6px; font-size: calc(var(--lk-w) * .1035); line-height: 1.07; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--ink); }
.cmp__label--caps span { display: block; }
.cmp__body { display: flex; flex-direction: column; gap: 24px; }
.cmp__body .cmp__h { margin-top: 0; }
.cmp__card--irt .cmp__label { color: var(--cream-2); }
.cmp__logo { width: 50px; height: 32px; fill: var(--cream); overflow: visible; }
/* Figma lockup (2711:86): script crossing the caps stack. On the wine card the script goes a shade deeper, caps stay cream */
.lockup { display: block; width: var(--lk-w, 250px); height: auto; aspect-ratio: 189 / 116; overflow: visible; --lk-s: #2E040B; --lk-c: #FFEFD5; }
.cmp__label--lk { margin: -8px 0 6px -2px; }
.cmp__h { margin-top: 16px; font-size: var(--t-h3l); line-height: 1.1; }
/* «до» / «после» by hand in the card corner; an arrow joins the pair (call 30.10 §3.2) */
.cmp__hand { position: absolute; z-index: 2; top: 40px; right: 46px; font-size: 52px; line-height: 1; --r: -6deg; color: var(--crimson); pointer-events: none; }
.cmp__card--irt .cmp__hand { color: var(--cream); }
/* desktop: the arrow hangs on the talk card (it stays on top), between the two cards; phones and tablets: on the IRT card, pointing down */
.cmp__arrow { position: absolute; z-index: 4; right: -38px; top: 50%; width: 56px; height: 56px; margin-top: -28px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--cream); box-shadow: 0 0 0 6px var(--paper); opacity: 0; transform: scale(.5); transition: opacity .4s ease, transform .56s var(--s29); }
.cmp__arrow svg { width: 24px; height: 24px; }
.cmp.is-show .cmp__arrow { opacity: 1; transform: none; transition-delay: .3s; }
.cmp__arrow--y { display: none; }
.cmp__list { display: grid; gap: 12px; }
.cmp__list li { display: flex; gap: 8px; font-size: var(--t-ui); line-height: 1.4; }
.cmp__list li > span:last-child, .apply__list li > span:last-child, .pane__list li > span { min-width: 0; }
.cmp__list .ic { margin-top: -2px; width: 24px; height: 24px; }
.cmp__list .ic svg { width: 19px; height: 19px; }
/* 03.11 (Yana's video): once the heading flies apart, «до» and «после» come in already side by side, to compare at a glance */
.cmp__track { height: 200vh; height: calc(var(--vh, 1svh) * 200); }
.cmp__card--talk { transform: translateX(-260px); }
.cmp__card--irt { transform: translateX(260px); }

/* =========================================================
   4. RESULT IN NUMBERS (Kora «Within six months…» + bar graph)
   ========================================================= */
.results { padding: var(--sec) 0 calc(var(--sec) / 2); }
.results__frame { position: relative; }
.results--blue .results__frame { margin: 0 var(--inset); padding: var(--sec) 0; border-radius: var(--r-xl); overflow: hidden; background: url("../img/blue-1440.webp") 50% 40% / cover; }
.results--blue { padding-top: calc(var(--sec) / 2); }
.results__top { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 8px 56px; }
.results__big { font-size: clamp(120px, 15vw, 236px); line-height: .8; letter-spacing: -.07em; font-weight: 500; color: var(--wine); white-space: nowrap; font-variant-numeric: tabular-nums; margin-left: -.04em; }
.results__pc { font-size: .55em; letter-spacing: -.02em; vertical-align: .62em; margin-left: .04em; }
.results__txt { max-width: 640px; padding-bottom: 8px; }
.results__t { font-size: var(--t-leadl); line-height: 1.25; letter-spacing: -.04em; font-weight: 600; color: var(--ink); text-wrap: pretty; }
.results__t .hl { color: var(--wine); }
.results__note { margin-top: 16px; max-width: 600px; font-size: var(--t-cap); line-height: 1.5; color: var(--ink-2); }
.results__tail { display: block; margin-top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.chart { margin-top: clamp(80px, 9vw, 140px); padding-top: clamp(40px, 4.4vw, 64px); border-top: 1px solid var(--line); }
.chart__t { max-width: 900px; margin-bottom: clamp(28px, 3vw, 44px); font-size: var(--t-h3l); line-height: 1.1; letter-spacing: -.04em; font-weight: 560; color: var(--ink); text-wrap: balance; }
.chart__src { margin-top: 20px; max-width: 34em; font-size: var(--t-cap); line-height: 1.5; color: var(--ink-2); text-wrap: balance; }
.chart__src a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(100, 27, 41, .35); text-underline-offset: 3px; transition: color .25s, text-decoration-color .25s; }
@media (hover: hover) { .chart__src a:hover { color: var(--wine); text-decoration-color: var(--wine); } }
/* «как мы считаем»: the footnote folds away on phones only */
.results__how { display: none; }
@media (max-width: 809.98px) {
  .results__how { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; min-height: 44px; padding: 0 16px; border-radius: 40px; background: var(--shell); font-size: var(--t-cap); color: var(--ink); }
  .results__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--s0, ease); }
  .results__more > .results__note { min-height: 0; overflow: hidden; margin-top: 0; padding-top: 0; }
  .results__more.is-open { grid-template-rows: 1fr; }
  .results__more.is-open > .results__note { padding-top: 12px; }
}
.chart__plot { position: relative; padding-bottom: 32px; }
.chart__grid { position: absolute; top: 0; bottom: 0; left: var(--lw, 0px); right: 0; pointer-events: none; }
.chart__grid i { position: absolute; top: 0; bottom: 32px; left: calc(var(--x) / var(--max, 9) * 100%); width: 1px; background: var(--line); font-style: normal; }
.chart__grid b { position: absolute; top: 100%; left: 0; translate: -50% 8px; font-size: var(--t-cap); font-weight: 600; font-style: normal; color: var(--ink); }
.chart__rows { position: relative; display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: var(--lw, 0px) 1fr; align-items: center; }
.bar__l { font-size: var(--t-ui); color: var(--ink); padding-right: 16px; }
.bar__track { position: relative; height: 56px; }
.bar__fill { position: relative; display: flex; align-items: center; justify-content: flex-end; height: 100%; width: calc(var(--v) / var(--max, 9) * 100%); min-width: 44px; padding: 0 16px; border-radius: var(--r-s); background: var(--blue); color: var(--ink); font-size: var(--t-ui); }
.bar--wine .bar__fill { background: var(--wine); color: var(--cream); }
.bar__v { white-space: nowrap; }
.js [data-bars] .bar__fill { clip-path: inset(0 100% 0 0 round 15px); }
.js [data-bars] .bar__v { opacity: 0; }
.js [data-bars].is-in .bar__fill { clip-path: inset(0 0 0 0 round 15px); transition: clip-path 1.2s cubic-bezier(.73, .54, .05, .99) calc(.3s + var(--d, 0s)); }
.js [data-bars].is-in .bar__v { opacity: 1; transition: opacity .5s calc(1.1s + var(--d, 0s)); }
@media (min-width: 810px) { .chart { --lw: 200px; } }
@media (max-width: 809.98px) {
  .bar { grid-template-columns: 1fr; gap: 8px; }
  .bar__track { height: 40px; }
  .chart__grid { display: none; }
  .chart__plot { padding-bottom: 0; }

@media (max-width: 809.98px) {
  .results__top { grid-template-columns: 1fr; gap: 16px; }
  .results__big { font-size: 128px; }
}
}

/* =========================================================
   5. WHAT PEOPLE COME WITH (Kora services: sticky stack)
   ========================================================= */
.svc { padding-bottom: calc(var(--sec) - 20px); }
.svc .xl { margin-bottom: 20px; }
.svc__list { position: relative; }
/* the first sticky card sits ~80px under the heading, like every other heading → content gap */
@media (min-width: 1200px) { .svc__list { margin-top: calc(-30px - max(10px, (var(--vh, 1svh) * 100 - 810px) / 2)); } }
@media (min-width: 810px) and (max-width: 1199.98px) { .svc__list { margin-top: calc(-24px - max(13px, (var(--vh, 1svh) * 100 - 804px) / 2)); } }
.svc__item { position: sticky; top: 0; height: 100vh; height: calc(var(--vh, 1svh) * 100); display: grid; align-content: center; padding: 88px var(--pad) 20px; max-width: 1600px; margin: 0 auto; z-index: var(--i); }
.svc__card { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; height: min(700px, calc(var(--vh, 1svh) * 100 - 130px)); padding: 8px; border-radius: var(--r-xl); background: var(--shell); }
.svc__col { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.svc__panel { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: clamp(32px, var(--vh, 1svh) * 5.5, 48px); border-radius: var(--r-l); background: var(--card); }
.svc__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.svc__no { font-size: var(--t-leads); line-height: 1.35; }
.svc__h { margin-top: 16px; max-width: 470px; font-size: var(--t-h3m); line-height: 1.25; }
.svc__d { margin-top: 16px; max-width: 450px; font-size: var(--t-ui); line-height: 1.5; color: var(--ink-2); }
.svc__tags { margin-top: auto; padding-top: 24px; }
.svc__tt { font-size: var(--t-body); margin-bottom: 12px; }
.svc__fn { margin-top: 12px; font-size: 12px; line-height: 1.45; color: var(--ink-2); max-width: 560px; }
/* the old site's nine requests, in plain words, inside the cards (call 30.10 §5.3) */
.svc__rows { display: grid; gap: 8px; margin-top: 16px; max-width: 500px; }
.svc__d + .svc__rows { margin-top: 12px; }
.svc__rows li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.42; color: var(--ink-2); }
.svc__rows li::before { content: ""; position: absolute; left: 1px; top: .52em; width: 6px; height: 6px; border-radius: 50%; background: var(--wine); }
.svc__media { position: relative; border-radius: var(--r-l); overflow: hidden; background: var(--mist); }
.svc__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.svc__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(35, 26, 28, .38), rgba(35, 26, 28, 0) 45%); pointer-events: none; }
.svc__media .glass { right: 20px; bottom: 20px; border-radius: 12px; }
.js [data-quote] { opacity: 0; transform: translate(30px, 30px) rotate(-5deg) scale(.8); transform-origin: 100% 100%; transition: opacity .56s var(--s29) .1s, transform .56s var(--s29) .1s; }
.js [data-quote].is-in { opacity: 1; transform: none; }

/* =========================================================
   5b. QUIZ (old site, linear, 7 steps): shell + wine intro panel + question panel (Kora pricing toggles)
   ========================================================= */
.quiz__card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px; padding: 8px; border-radius: var(--r-xl); background: var(--shell); }
.quiz__intro { position: relative; display: flex; flex-direction: column; min-height: 600px; padding: 48px; border-radius: var(--r-l); background: var(--wine); color: var(--cream); overflow: hidden; isolation: isolate; }
.quiz__logo { position: absolute; z-index: -1; left: -12%; bottom: -10%; width: 125%; height: auto; fill: var(--cream); opacity: .07; pointer-events: none; }
.quiz__t { font-size: clamp(32px, 3.3vw, 54px); line-height: 1.06; letter-spacing: -.04em; font-weight: 560; text-wrap: balance; color: var(--cream); }
.quiz__get { margin-top: auto; padding-top: 40px; }
.quiz__gt { margin-bottom: 12px; font-size: var(--t-cap); color: var(--cream-2); }
.quiz__list { display: grid; gap: 12px; }
.quiz__list li { display: flex; align-items: center; gap: 12px; font-size: var(--t-body); line-height: 1.4; }
.quiz__box { display: flex; flex-direction: column; min-height: 600px; padding: 48px; border-radius: var(--r-l); background: var(--card); }
.quiz__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.quiz__bar { display: flex; flex: 1; gap: 8px; max-width: 380px; }
.quiz__bar li { flex: 1; height: 4px; border-radius: 4px; background: var(--shell); transition: background-color .5s ease; }
.quiz__bar li.is-on { background: var(--wine); }
.quiz__n { font-size: var(--t-cap); color: var(--ink-2); white-space: nowrap; }
.quiz__steps { flex: 1; margin-top: 32px; }
.quiz__step.is-in { animation: qz-in .5s var(--s29) both; }
@keyframes qz-in { from { opacity: 0; transform: translateX(16px); } }
.quiz__q { max-width: 640px; font-size: var(--t-h3m); line-height: 1.18; letter-spacing: -.04em; font-weight: 560; text-wrap: balance; }
.quiz__q--long { font-size: clamp(22px, 1.9vw, 27px); }
.quiz__opts { display: grid; gap: 8px; margin-top: 24px; }
.opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px 12px 16px; border-radius: 20px; background: var(--paper); cursor: pointer; transition: background-color .3s; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt__dot { flex: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px rgba(35, 26, 28, .18); transition: background-color .25s, box-shadow .25s; }
.opt__t { font-size: var(--t-ui); line-height: 1.4; }
.opt:has(input:checked) { background: #fff; }
.opt input:checked + .opt__dot { background: var(--wine); box-shadow: inset 0 0 0 4px #fff, 0 0 0 1px var(--wine); }
.opt input:focus-visible + .opt__dot { outline: 2px solid var(--wine); outline-offset: 3px; }
@media (hover: hover) { .opt:hover { background: #fff; } }
.quiz__warn { padding: 12px 16px; border-radius: 16px; background: rgba(100, 27, 41, .08); font-size: var(--t-ui); line-height: 1.4; color: var(--wine); }
.quiz__other { margin-top: 2px; }
.quiz__box .fld input[type=text], .quiz__box .fld input[type=tel], .quiz__box .fld textarea { background: #fff; }
.quiz__box .fld textarea { height: 168px; margin-top: 24px; }
.quiz__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; margin-top: 24px; }
.quiz__box .chip span { background: var(--paper); }
.quiz__box .chip input:checked + span { background: #fff; box-shadow: inset 0 0 0 1px rgba(35, 26, 28, .1); }
.quiz__nav { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.quiz__back { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-ui); }
.quiz__back .arrow-c { transform: none; }
.quiz__back .arrow-c svg { transform: scaleX(-1); }
@media (hover: hover) { .quiz__back:hover .arrow-c { background: var(--ink); color: var(--cream); } }
.quiz__next { margin-left: auto; min-width: 150px; height: 48px; font-size: var(--t-body); }
.btn:disabled { opacity: .38; cursor: not-allowed; }
@media (hover: hover) { .btn:disabled:hover { background: var(--bg); } }
.quiz.is-sent .quiz__top, .quiz.is-sent .quiz__steps, .quiz.is-sent .quiz__nav { display: none; }

/* =========================================================
   6. HOW IT WORKS
   ========================================================= */
.proc__t { max-width: 1000px; }
/* plates under the heading (call 30.10 §7.2) */
.proc__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(24px, 3vw, 40px); }
.proc__chips li { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px; border-radius: 40px; background: var(--card); font-size: var(--t-ui); }
.proc__chips .label__ic { width: 24px; height: 24px; }
.proc__chips .label__ic svg { width: 23px; height: 23px; }

/* four steps as rows; the three questions live inside step 3 (call 30.10 §7.3) */
.steps { position: relative; display: grid; gap: 8px; margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; list-style: none; }
.step { position: relative; display: grid; grid-template-columns: 120px minmax(0, 5fr) minmax(0, 6fr); column-gap: 32px; align-items: start; padding: 32px 36px 32px; border-radius: var(--r-l); background: var(--card); transition: background-color .5s ease, color .5s ease; }
.step__n { grid-column: 1; grid-row: 1 / span 2; --r: -4deg; font-size: 88px; line-height: .8; color: var(--crimson); margin: -4px 0 0 -2px; transition: color .5s ease; }
.step__main { grid-column: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.step__chip { padding: 8px 12px; border-radius: 40px; background: var(--paper); font-size: 14px; line-height: 1.3; color: var(--ink-2); max-width: 100%; transition: background-color .5s ease, color .5s ease; }
.step__h { font-size: clamp(24px, 2.2vw, 34px); line-height: 1.12; letter-spacing: -.04em; font-weight: 560; }
.step__d { grid-column: 3; margin-top: 4px; max-width: 560px; font-size: var(--t-body); line-height: 1.5; color: var(--ink-2); transition: color .5s ease; }
.step__qs { grid-column: 2 / -1; margin-top: 32px; }
/* round 24: no hover recolour on the steps (they are not links, and step 3 never had it) */
/* three questions: printed question, the client's answer by hand */
.qs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.qs__i { display: flex; flex-direction: column; min-height: clamp(232px, 19.5vw, 279px); padding: 24px 28px 32px; border-radius: var(--r-m); background: #fff; }
.qs__n { font-size: var(--t-cap); letter-spacing: .04em; color: var(--ink-2); }
.qs__q { margin-top: 12px; font-size: clamp(22px, 1.9vw, 30px); line-height: 1.14; letter-spacing: -.04em; font-weight: 560; color: var(--ink); text-wrap: balance; }
.qs__a { --r: -3deg; margin-top: auto; padding-top: 24px; font-size: clamp(36px, 3vw, 50px); line-height: 1.02; transform-origin: 0 100%; text-wrap: balance; }
@media (min-width: 1200px) { .qs__a { font-size: min(50px, 3vw, 4.9vw - 27px); } }   /* round 18: «Отвечать спокойно» stays on one line */
.qs__fn { margin-top: 12px; font-size: var(--t-cap); color: var(--ink-2); }
.steps__next { margin-top: 16px; font-size: var(--t-body); line-height: 1.5; color: var(--ink-2); }

/* =========================================================
   6b. CALM (old «Всё для вашего комфорта и спокойствия»): shell + four panels, card 2 in wine
   ========================================================= */
.calm__t { max-width: 1000px; }
.calm__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: var(--gap-t); padding: 8px; border-radius: var(--r-xl); background: var(--shell); }
.calm__c { position: relative; display: flex; flex-direction: column; min-height: 360px; padding: 40px 44px 44px; border-radius: var(--r-l); background: var(--card); overflow: hidden; isolation: isolate; }
.calm__ic { display: grid; place-items: center; width: 40px; height: 40px; margin-left: -3px; color: var(--wine); }
.calm__ic svg { width: 40px; height: 40px; }
.calm__h { margin-top: auto; padding-top: 48px; max-width: 520px; font-size: var(--t-h3m); line-height: 1.18; letter-spacing: -.04em; font-weight: 560; text-wrap: balance; }
.calm__d { margin-top: 16px; max-width: 580px; font-size: var(--t-ui); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.calm__c--key { background: var(--wine); color: var(--cream); }
.calm__c--key .calm__d { color: var(--cream-2); }
.calm__c--key .calm__ic { color: var(--cream); }
.calm__logo { position: absolute; z-index: -1; right: -26%; bottom: -30%; width: 96%; height: auto; fill: var(--cream); opacity: .08; pointer-events: none; }

/* =========================================================
   7. STORIES (Kora testimonials + case study)
   ========================================================= */
.feat { position: relative; aspect-ratio: 1320 / 758; max-height: calc(var(--vh, 1svh) * 100 - 40px); min-height: 560px; border-radius: var(--r-xl); overflow: hidden; color: var(--cream); background: #6b4a3c; }
.feat__ph, .feat__ph img { position: absolute; inset: 0; width: 100%; height: 100%; }
.feat__ph img { object-fit: cover; object-position: 50% 40%; }
.feat::after { content: ""; position: absolute; inset: 0; background: rgba(35, 26, 28, .35); }
.feat__t { position: absolute; z-index: 2; left: 40px; top: 70px; color: var(--cream); }
.feat__q { left: 40px; top: calc(70px + var(--t-xl) + 20px); width: 375px; padding: 32px; border-radius: var(--r-l); }
.glass--lg p { font-size: var(--t-leadm); line-height: 1.35; letter-spacing: -.03em; }
.glass--lg footer { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .35); font-size: var(--t-ui); color: #fff; }
.feat__hand { position: absolute; z-index: 2; right: 48px; bottom: 34px; font-size: clamp(56px, 6vw, 96px); --r: -6deg; transform-origin: 100% 100%; }

.quotes { display: flex; gap: 8px; margin-top: 20px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.quotes::-webkit-scrollbar { display: none; }
.quote { position: relative; flex: 0 0 calc((100% - 20px) / 3); min-width: 0; scroll-snap-align: start; padding: 28px 32px 24px; border-radius: var(--r-l); background: var(--card); }
.quote__ft { display: grid; gap: 8px; font-size: var(--t-ui); line-height: 1.45; color: var(--ink); }
.quote__ft b { font-weight: 600; }
.quote__vis { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 170px; border-radius: 14px; background: var(--cream); color: var(--wine); }
.quote__vis svg { width: 84px; height: 84px; }
.quote__vis .hand { font-size: clamp(34px, 3vw, 44px); line-height: 1; transform: rotate(-4deg); }
.quote__vis + .quote__ft { margin-top: 0; }
.quote__in { display: flex; flex-direction: column; height: 100%; gap: 20px; }
.quote__cat { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--r-s); background: var(--shell); font-size: var(--t-cap); color: var(--ink); }
.quote__t { margin-top: 12px; max-width: 520px; padding-right: 24px; font-size: var(--t-body); line-height: 1.3; letter-spacing: -.02em; font-weight: 560; text-wrap: balance; }
.quote footer { margin-top: auto; }
/* the screenshot / before-after sits at the bottom, right above the name; the title stays on top */
.quote__in > .shot, .quote__in > .quote__ft { margin-top: auto; }
.quote__in > .shot + footer, .quote__in > .quote__ft + footer { margin-top: 0; }
/* client's own message: a real chat screenshot in a frame; a long one fades out at the bottom */
.shot { max-height: 380px; overflow: hidden; padding-bottom: 32px; margin-bottom: -12px; -webkit-mask-image: linear-gradient(#000 calc(100% - 32px), transparent); mask-image: linear-gradient(#000 calc(100% - 32px), transparent); }
.shot img { display: block; width: 100%; height: auto; border-radius: 14px; outline: 1px solid rgba(35, 26, 28, .08); outline-offset: -1px; }
.shot--full { max-height: none; padding: 0; margin: 2px 0 8px; -webkit-mask-image: none; mask-image: none; }
.shot--full img { width: auto; max-height: min(720px, 80vh); }
.quote footer { padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--t-cap); color: var(--ink-2); }
.plus { position: absolute; top: 18px; right: 18px; width: 20px; height: 20px; border-radius: 50%; background: var(--shell); transition: transform .56s var(--s29); }
.plus::before, .plus::after { content: ""; position: absolute; left: 4px; right: 4px; top: 9px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .56s var(--s29); }
.plus::after { transform: rotate(90deg); }
.quote footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quote__more { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: var(--t-cap); color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap; }
.quote__more .arrow-c { transition: background-color .45s ease, color .45s ease; }
.quote { cursor: pointer; }   /* round 24: the whole card opens the story */
@media (hover: hover) { .quote:hover .quote__more .arrow-c { background: var(--wine); color: var(--cream); } }
.stories__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; margin-top: 12px; }
.stories__nav { display: flex; align-items: center; gap: 8px; }
.qnav { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: var(--cream); cursor: pointer; transition: background-color .3s ease, opacity .3s ease; }
.qnav svg { width: 20px; height: 20px; }
.qnav--prev svg { transform: rotate(180deg); }
.qnav:disabled, .stories__all:disabled { opacity: .3; cursor: default; }
@media (hover: hover) { .qnav:not(:disabled):hover { background: var(--wine); } }
.stories__all { margin-left: 8px; font: inherit; font-size: var(--t-ui); background: none; border: 0; padding: 0; cursor: pointer; }
.stories__fn { font-size: var(--t-cap); color: var(--ink-2); }

/* story sheet */
.sd { position: fixed; inset: 0 0 0 auto; width: min(680px, 100%); height: 100%; max-width: none; max-height: none; margin: 0; padding: 8px; border: 0; background: none; color: var(--ink); overflow: visible; }
.sd::backdrop { background: rgba(35, 20, 24, .42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .45s ease; }
.sd[open].is-open::backdrop { opacity: 1; }
.sd__in { display: flex; flex-direction: column; height: 100%; border-radius: var(--r-xl); background: var(--paper); overflow: hidden; transform: translateX(40px); opacity: 0; transition: transform .6s var(--s0), opacity .4s ease; }
.sd.is-open .sd__in { transform: none; opacity: 1; }
.sd__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 24px 0 32px; }
.sd__cat { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 40px; background: var(--ink); color: var(--cream); font-size: 13px; }
.sd__x { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); cursor: pointer; transition: background-color .45s ease; }
.sd__x i { position: absolute; left: 14px; right: 14px; top: 21px; height: 2px; border-radius: 2px; background: var(--ink); transform: rotate(45deg); }
.sd__x i + i { transform: rotate(-45deg); }
@media (hover: hover) { .sd__x:hover { background: var(--shell); } }
.sd__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 24px 32px 32px; outline: none; }
.sd__t { font-size: clamp(30px, 2.8vw, 40px); line-height: 1.08; letter-spacing: -.04em; font-weight: 560; text-wrap: balance; }
.sd__meta { margin-top: 12px; font-size: var(--t-ui); color: var(--ink-2); }
.sd__sum { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; }
.sd__sum > div { padding: 16px 16px; border-radius: var(--r-m); background: var(--card); }
.sd__sum > div + div { background: var(--wine); color: var(--cream); }
.sd__sum dt { font-size: 12px; letter-spacing: .02em; color: var(--ink-2); }
.sd__sum > div + div dt { color: var(--cream-2); }
.sd__sum dd { margin-top: 8px; font-size: 16px; line-height: 1.4; letter-spacing: -.01em; font-weight: 560; }
@media (max-width: 809.98px) { .sd__sum { grid-template-columns: 1fr; } }
.sd__text { margin-top: 24px; display: grid; gap: 16px; max-width: 580px; }
.sd__text p { font-size: 17px; line-height: 1.6; color: var(--ink); }
.sd__text .sd__note { padding: 16px 20px; border-radius: var(--r-m); background: var(--card); color: var(--ink-2); font-size: 16px; }
.sd__fn { margin-top: 24px; font-size: var(--t-cap); color: var(--ink-2); }
.sd__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px 24px 32px; border-top: 1px solid var(--line); }
.sd__nav { display: flex; align-items: center; gap: 8px; }
.sd__arrow { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background-color .45s ease, color .45s ease; }
.sd__arrow svg { width: 18px; height: 18px; }
.sd__arrow:first-child svg { transform: scaleX(-1); }
@media (hover: hover) { .sd__arrow:hover { background: var(--ink); color: var(--cream); } }
.sd__count { min-width: 52px; text-align: center; font-size: var(--t-cap); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sd-lock { overflow: hidden; }
/* about Yana: same sheet as the stories */
.yana__head { display: flex; align-items: center; gap: 16px; }
.sd--yana .sd__meta { margin-top: 16px; font-size: var(--t-ui); line-height: 1.5; }
.sd--yana .sd__text p:last-child { padding: 0; background: none; color: var(--ink); font-size: 17px; }
.yana__dip { margin-top: 24px; padding: 20px 24px 24px; border-radius: var(--r-m); background: var(--card); }
.yana__dt { font-size: var(--t-ui); color: var(--ink-2); }
.yana__list { display: grid; gap: 8px; margin-top: 12px; }
.yana__list li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.4; }
.yana__list li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--wine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23FFF7EA' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.yana__fb { display: flex; align-items: baseline; gap: 8px; margin-top: 24px; font-size: 16px; line-height: 1.45; text-wrap: pretty; }
.yana__fb b { flex: none; font-size: 40px; line-height: 1; letter-spacing: -.04em; font-weight: 600; color: var(--wine); }
.sd--yana .sd__foot { justify-content: flex-end; }
@media (max-width: 809.98px) {
  .sd { inset: 0; width: 100%; padding: 0; }
  .sd__in { border-radius: 0; transform: translateY(30px); }
  .sd__bar { padding: 12px 12px 0 20px; }
  .sd__body { padding: 20px 20px 24px; }
  .sd__t { font-size: 28px; }
  .sd__text p { font-size: 16px; }
  .sd__foot { padding: 12px 12px calc(12px + env(safe-area-inset-bottom)) 12px; }
  .quote footer { flex-wrap: wrap; }
}

.case { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: var(--sec); padding: 8px; border-radius: var(--r-xl); background: var(--shell); scroll-margin-top: 100px; }
.case__l, .case__r { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.case__top { padding: 32px; }
.case__top .badge { margin-bottom: 16px; }
.case__fn { margin-top: 24px; font-size: var(--t-cap); color: var(--ink-2); }
.case__t { font-size: var(--t-h3m); line-height: 1.3; max-width: 540px; }
/* round 17: one shared label column as wide as the longest label («Результат через»), so pills never run into the values */
.case__rows { margin-top: 28px; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; }
.case__rows > div { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; }
@media (max-width: 599.98px) { .case__rows > div { row-gap: 8px; } .case__rows > div:first-child > dd { grid-column: 1 / -1; padding-left: 4px; } }   /* the request quote goes under its label on phones */
.case__rows dt { justify-self: start; }
.case__rows dd { font-size: var(--t-cap); color: var(--ink-2); }
.case__story { margin-top: 28px; display: grid; gap: 12px; font-size: var(--t-ui); line-height: 1.5; color: var(--ink-2); max-width: 560px; }
.case__story b { color: var(--ink); font-weight: 700; }
.case__stats { display: grid; grid-template-columns: 1fr; padding: 32px; gap: 32px; }
.stat { display: flex; flex-direction: column; }
.stat + .stat { padding-left: 32px; border-left: 1px solid var(--line); }
.stat__c { font-size: var(--t-cap); color: var(--ink-2); }
.stat__v { display: flex; align-items: baseline; margin-top: 8px; font-size: var(--t-stat); line-height: 1; letter-spacing: -.04em; font-weight: 600; color: var(--ink); }
.stat__x { font-size: .6em; color: var(--wine); margin-right: 2px; }
.stat__suf { margin-left: 8px; font-size: .5em; letter-spacing: -.03em; color: var(--wine); }
.stat__pre { margin-right: 8px; font-size: .5em; letter-spacing: -.03em; color: var(--wine); }
.stat__s { margin-top: 8px; font-size: var(--t-cap); color: var(--ink-2); }
.case__ph { position: relative; flex: 1; min-height: 300px; border-radius: var(--r-l); overflow: hidden; }
.case__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }

/* =========================================================
   8. FOUNDER & TEAM
   ========================================================= */
.founder__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; align-items: center; }
.founder__ph { position: relative; aspect-ratio: 4 / 5; max-height: calc(var(--vh, 1svh) * 100 - 60px); border-radius: var(--r-xl); overflow: hidden; }
.founder__bg, .founder__yana { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.founder__yana { object-position: 50% 30%; }
.founder__t { max-width: 720px; font-size: clamp(36px, 4.6vw, 72px); }
.founder__txt { min-width: 0; }
.founder__lead { margin-top: 32px; max-width: 560px; color: var(--ink-2); font-weight: 450; line-height: 1.5; letter-spacing: -.02em; }
.founder__lead + .founder__lead { margin-top: 12px; }   /* round 15, Yana: lighter, in three paragraphs, more air */
.founder__cap { left: 20px; bottom: 20px; width: auto; max-width: calc(100% - 40px); display: grid; gap: 4px; padding: 12px 16px; background: rgba(46, 22, 28, .38); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.founder__cap b { font-size: var(--t-ui); font-weight: 600; }
.founder__cap span { font-size: var(--t-cap); color: rgba(255, 255, 255, .86); }
.founder__act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; margin-top: 36px; }
.founder__more { font: inherit; font-size: var(--t-ui); }
.founder__more .lnk__ico { background: var(--ink); color: var(--cream); }
@media (hover: hover) { .founder__more:hover .lnk__ico { background: var(--wine); } }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; margin-top: var(--gap-t); }
.member { display: flex; align-items: center; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.member img { flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.member p { display: grid; gap: 4px; font-size: var(--t-ui); line-height: 1.4; color: var(--ink-2); }
.member b { font-size: var(--t-h3s); line-height: 1.3; color: var(--ink); }
.member { align-items: flex-start; }
.member__d { margin-top: 8px; font-size: var(--t-cap); line-height: 1.45; }
.member__more { justify-self: start; margin-top: 8px; font-size: var(--t-ui); color: var(--ink); }
.team__fn { margin-top: 16px; font-size: var(--t-ui); color: var(--ink-2); }

/* =========================================================
   9. PRICES (Kora pricing: plan toggles + pane, rolling price)
   ========================================================= */
.prices { padding: 0; }
.prices__frame { margin: 0 var(--inset); padding: var(--sec) 0; border-radius: var(--r-xl); background: var(--ink); color: var(--cream); }
.prices__t { color: var(--cream); }
.prices__t .mute { color: var(--cream-2); }
.prices__lead { margin-top: 24px; max-width: 660px; color: var(--cream-2); }
.prices__grid { display: grid; grid-template-columns: minmax(0, 516fr) minmax(0, 784fr); gap: 20px; margin-top: var(--gap-t); }
.prices__l { display: flex; flex-direction: column; gap: 40px; }
.plans { display: grid; gap: 8px; padding: 8px; border-radius: var(--r-l); background: var(--shell); }
/* round 16: every plan reads the same way: a hand numeral, the printed word laid over its tail, the price on the right */
.plans__h { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; margin: 0 0 12px 4px; font-size: var(--t-h3s); line-height: 1.35; letter-spacing: -.01em; color: var(--cream); }
.plans__h .ava { flex: none; width: 40px; height: 40px; box-shadow: 0 0 0 2px var(--ink); }
.plans__h .ava + .ava { margin-left: -8px; }
.plan { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 20px; align-items: center; column-gap: 12px; width: 100%; min-height: 84px; padding: 12px 20px 12px 56px; border-radius: calc(var(--r-l) - 8px); background: var(--card); color: var(--ink); text-align: left; transition: background-color .3s; }
.plan.is-on { background: #fff; }
.plan__n { position: absolute; left: 18px; top: 50%; font-size: 104px; line-height: .8; color: rgba(135, 16, 41, .24); transform: translateY(-.4em) rotate(-6deg); transform-origin: 30% 60%; transition: color .35s var(--std); pointer-events: none; }
.plan.is-on .plan__n { color: var(--crimson); }
/* round 21: nothing picked yet → every tile is bright; after a pick the others dim a little */
.prices__l:not(.has-pick) .plan { background: #fff; }
.prices__l:not(.has-pick) .plan__n { color: var(--crimson); }
.prices__l:not(.has-pick) .plan__pr { color: var(--ink); }
.plan__n--ic { left: 12px; }
.plan__n--ic svg { display: block; width: .44em; height: auto; margin-top: .3em; fill: currentColor; }
.plan__tx { position: relative; display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 16px; }
.plan__tx b { font-size: var(--t-leads); line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.plan__pr { margin-left: auto; font-size: var(--t-leads); line-height: 1.3; font-weight: 500; letter-spacing: -.01em; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan.is-on .plan__pr { color: var(--ink); }
.plan__ck { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: transparent; transition: background-color .3s, color .3s; }
.plan__ck svg { width: 14px; height: 14px; }
.plan.is-on .plan__ck { background: var(--ink); color: var(--cream); }
.pane { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 48px; border-radius: var(--r-l); background: #34292B; transition: background-color .5s var(--std); }
.pane > :not(.pane__big) { position: relative; z-index: 1; }
/* round 20: until a tile is tapped the pane is the «Не знаете, какой формат выбрать?» card, in the quiz card's look */
.pane.is-idle { background: var(--wine); }
.pane > .pane__logo { position: absolute; z-index: 0; left: -12%; bottom: -10%; width: 125%; height: auto; fill: var(--cream); opacity: .07; pointer-events: none; transition: opacity .5s var(--std); }
.pane:not(.is-idle) > .pane__logo { opacity: 0; }
.pane.is-idle > .pane__top, .pane.is-idle > .pane__body, .pane.is-idle > .pane__fn, .pane.is-idle > .pane__big, .pane:not(.is-idle) > .pane__idle { display: none; }
.pane__idle { display: flex; flex-direction: column; flex: 1; }
.pane__ask { font-size: clamp(32px, 3.3vw, 54px); line-height: 1.06; letter-spacing: -.04em; font-weight: 560; text-wrap: balance; color: var(--cream); }
.pane__sub { margin-top: 16px; max-width: 470px; font-size: var(--t-leads); line-height: 1.35; color: var(--cream-2); }
.pane__get { margin-top: auto; padding-top: 40px; }
.pane__go { align-self: flex-start; margin-top: 32px; }
.pane:not(.is-idle) > .pane__top, .pane:not(.is-idle) > .pane__body { animation: paneIn .5s var(--std) backwards; }
.pane:not(.is-idle) > .pane__body { animation-delay: .06s; }
@keyframes paneIn { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .pane > * { animation: none !important; } }
/* the chosen plan's numeral, by hand and huge, under the text of the pane */
.pane__big { position: absolute; right: 6%; bottom: -.14em; font-size: clamp(300px, 36vw, 560px); line-height: .8; color: var(--crimson); opacity: .5; --r: -8deg; transform-origin: 50% 50%; pointer-events: none; }
.pane__big svg { display: block; width: .9em; height: auto; margin-bottom: .12em; fill: currentColor; }
.pane__big.is-in { animation: paneBig .7s var(--std); }
@keyframes paneBig { from { opacity: 0; transform: translateY(.06em) rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .pane__big.is-in { animation: none; } }
.pane__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pane__amt { display: flex; align-items: baseline; flex-wrap: wrap; min-height: 1.08em; font-size: var(--t-stat); line-height: 1.05; letter-spacing: -.04em; font-weight: 600; }
.pane__rub { font-size: .62em; }
.pane__num { display: inline-flex; align-items: baseline; }
.pane__per { margin: 4px 0 0 .1em; font-size: clamp(34px, 3vw, 44px); line-height: 1; color: var(--cream-2); --r: -4deg; transform: rotate(var(--r)); transform-origin: 0 50%; }
.pane__body { margin: 40px 0; }
.pane__list { display: grid; gap: 16px; }
.pane__list li { display: flex; align-items: center; gap: 12px; font-size: var(--t-body); line-height: 1.4; }
.pane__list li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23641B29' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.pane__star { margin-left: 1px; }
.pane__fn { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255, 247, 234, .14); font-size: var(--t-cap); color: var(--cream-2); transition: opacity .3s; }
.pane__fn.is-off { opacity: 0; visibility: hidden; }
/* odometer (Kora NumberFlow: digits roll, spring .75 b0) */
.odo { display: inline-flex; overflow: hidden; height: 1.08em; line-height: 1.08; }
.odo__c { display: inline-block; overflow: hidden; height: 1.08em; transition: width .75s var(--s0); }
.odo__s { display: flex; flex-direction: column; transition: transform .75s var(--s0); }
.odo__s span { display: block; height: 1.08em; text-align: center; }

/* =========================================================
   10. FAQ (Kora 5.5)
   ========================================================= */
.faq__t { text-align: center; margin-bottom: var(--gap-t); }
.faq__box { max-width: 600px; margin: 0 auto; display: grid; gap: 8px; }
.faq__list { display: grid; gap: 8px; padding: 8px; border-radius: var(--r-xl); background: var(--shell); }
.qa { border-radius: calc(var(--r-xl) - 8px); background: var(--card); overflow: clip; transition: background-color .4s; }
.qa.is-open { background: #fff; }
.qa h3 { font: inherit; }
.qa__q { position: relative; display: flex; align-items: center; width: 100%; gap: 20px; padding: 24px 60px 24px 24px; text-align: left; font-size: var(--t-body); line-height: 1.5; }
.qa__q .plus { top: 50%; right: 25px; margin-top: -10px; }
.qa.is-open .plus { transform: rotate(180deg); }
.qa.is-open .plus::after { transform: rotate(90deg) scaleX(0); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .56s var(--s29); }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa__a > div { overflow: hidden; }
.qa__a p { padding: 0 24px 24px; max-width: 520px; font-size: var(--t-ui); line-height: 1.5; color: var(--ink-2); opacity: 0; transition: opacity .3s; }
.qa.is-open .qa__a p { opacity: 1; transition: opacity .5s .12s; }
.faq__more { display: flex; align-items: center; gap: 24px; padding: 32px; border-radius: var(--r-xl); background: var(--shell); }
.ava-trio { display: flex; align-items: center; flex: none; }
.ava-trio .ava { width: 54px; height: 54px; }
.ava-trio .ava--blue { width: 64px; height: 64px; margin: 0 -10px; position: relative; z-index: 1; }
.faq__mt { font-size: var(--t-leads); line-height: 1.35; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; transition: text-decoration-color .3s; }
.faq__more:hover .faq__mt { text-decoration-color: var(--wine); }

/* =========================================================
   11. APPLICATION (Kora CTA: photo frame + glass form)
   ========================================================= */
.apply { padding: 0; }
.apply__frame { position: relative; margin: 0 var(--inset); padding: var(--sec) 0; border-radius: var(--r-xl); overflow: hidden; color: var(--cream); background: #A0C2D4; transform-origin: 50% 100%; }
.apply__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.apply__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22, 40, 60, .34), rgba(22, 40, 60, .10) 55%, rgba(22, 40, 60, 0)); }
.apply__grid { position: relative; z-index: 4; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: 48px; }
.apply__l { display: flex; flex-direction: column; }
.apply__t { color: var(--cream); max-width: 560px; margin-top: -.16em; }
.apply__list { display: grid; gap: 20px; margin-top: 60px; }
.apply__list li { display: flex; align-items: center; gap: 12px; font-size: var(--t-ui); }
.form { position: relative; padding: 32px; border-radius: var(--r-l); background: rgba(238, 240, 241, .62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); color: var(--ink); }
.form__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; }
@media (min-width: 810px) { .form { display: flex; flex-direction: column; } .form__fields { flex: 1; grid-template-rows: auto auto auto 1fr auto; } .form__fields .fld--msg { grid-template-rows: 1fr; } .form__fields .fld--msg textarea { height: 100%; min-height: 112px; } }
.fld { display: grid; gap: 8px; align-content: start; }
.fld--wide, .fld--chips { grid-column: 1 / -1; }
.fld label, .fld legend { font-size: var(--t-cap); color: var(--ink); }
.fld legend { margin-bottom: 8px; padding: 0; }
.fld input[type=text], .fld input[type=tel], .fld textarea {
  width: 100%; height: 48px; padding: 0 16px; border: 0; border-radius: 30px; background: rgba(255, 255, 255, .72);
  font: 600 var(--t-ui)/1.5 var(--f); letter-spacing: -.03em; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(35, 26, 28, .08); transition: box-shadow .25s;
}
.fld textarea { height: 112px; padding: 12px 16px; border-radius: 20px; resize: vertical; }
.fld input:focus, .fld textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--wine); }
.fld.is-err input { box-shadow: inset 0 0 0 2px var(--crimson); }
.fld__e { font-size: var(--t-cap); color: var(--crimson); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: 30px; background: rgba(255, 255, 255, .5); font-size: var(--t-cap); transition: background-color .25s; }
.chip__ic { flex: none; width: 24px; height: 24px; color: rgba(35, 26, 28, .42); transition: color .25s, transform .35s var(--s29); }
.chip input:checked + span { background: #fff; }
.chip input:checked + span .chip__ic { color: var(--wine); transform: rotate(-8deg) scale(1.1); }
@media (hover: hover) { .chip:hover .chip__ic { color: var(--wine); } }
.chip input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 12px; font-size: var(--t-cap); cursor: pointer; position: relative; }
.check input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; cursor: pointer; }
.check__box { flex: none; width: 20px; height: 20px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px rgba(35, 26, 28, .25); display: grid; place-items: center; color: transparent; transition: background-color .2s, color .2s; }
.check__box svg { width: 15px; height: 15px; }
.check input:checked + .check__box { background: var(--wine); color: var(--cream); box-shadow: none; }
.check input:focus-visible + .check__box { outline: 2px solid var(--wine); outline-offset: 2px; }
.fld--check.is-err .check__box { box-shadow: inset 0 0 0 2px var(--crimson); }
.form__bot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(35, 26, 28, .1); }
.form__fn { font-size: var(--t-cap); color: var(--ink-2); }
.form.is-sent .form__fields, .form.is-sent .form__bot { display: none; }

/* round 29: «заявка у нас», one screen for the form and the quiz: centred in the card, the client's name and channel,
   what happens next (same steps as «Как пройдёт первая сессия»), Telegram for those who don't want to wait */
.done { display: flex; flex-direction: column; align-items: flex-start; margin: auto 0; padding: 12px 0; }
.done[hidden] { display: none; }
.done__ic { position: relative; flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--wine); color: var(--cream); }
.done__ic svg { width: 38px; height: 38px; }
.done__h { margin-top: 28px; font-size: var(--t-h3l); line-height: 1.1; letter-spacing: -.04em; font-weight: 560; }
.done__t { margin-top: 12px; max-width: 26em; font-size: var(--t-leads); line-height: 1.4; letter-spacing: -.02em; color: var(--ink-2); text-wrap: pretty; }
.done__next { display: grid; gap: 16px; width: 100%; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.done__next li { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: start; gap: 10px; font-size: var(--t-ui); line-height: 1.45; text-wrap: pretty; }
.done__n { --r: -6deg; font-size: 34px; line-height: .9; color: var(--crimson); padding: 0 .12em .12em; margin: -4px 0 0 -4px; }
.done__alt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 32px; font-size: var(--t-cap); color: var(--ink-2); }
.done__alt .direct { color: var(--ink); }
.quiz__box .done__alt .direct { box-shadow: inset 0 0 0 1px var(--line); }   /* the quiz card and the pill share a tone: a hairline keeps it a button */
/* entrance: the circle grows, the tick writes itself left to right, the rest rises in turn */
.js .done:not([hidden]) .done__ic { animation: done-pop .7s var(--s29) both; }
.js .done:not([hidden]) .done__ic svg { animation: done-tick .55s cubic-bezier(.45, .05, .25, 1) .3s both; }
.js .done:not([hidden]) > :not(.done__ic) { animation: done-up .7s var(--s29) both; }
.js .done:not([hidden]) > .done__h { animation-delay: .18s; }
.js .done:not([hidden]) > .done__t { animation-delay: .26s; }
.js .done:not([hidden]) > .done__next { animation-delay: .36s; }
.js .done:not([hidden]) > .done__alt { animation-delay: .46s; }
@keyframes done-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes done-tick { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes done-up { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.rm .done *, .rm .done > * { animation: none !important; }

/* =========================================================
   FOOTER (Kora: circle floods the background, card grows, giant logo .1→1)
   ========================================================= */
/* the wine footer is a tile like the others: inset from the page edges, rounded, the paper card inside it */
.ftr { position: relative; overflow: hidden; margin: var(--inset); padding: var(--inset); border-radius: calc(var(--r-xl) + var(--inset)); background: var(--wine); }   /* round 24: the frame is the same wine as the giant mark inside */
/* desktop: the tile itself is clear, the growing wine circle (main.js footer reveal) fills it */
@media (min-width: 1200px) { .ftr { background: none; } }
.ftr__circle { position: absolute; left: 50%; top: 320px; width: 600px; height: 600px; margin-left: -300px; border-radius: 50%; background: var(--wine); transform: scale(var(--fc, 9.9)); will-change: transform; }
.ftr__card { position: relative; z-index: 1; max-width: 1880px; margin: 0 auto; padding: 88px var(--pad) 0; border-radius: var(--r-xl); background: var(--paper); overflow: hidden; transform-origin: 50% 100%; transform: scale(var(--fk, 1)); }
/* row 1: brand + CTA | Yana's words + Telegram */
.ftr__top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 60px; align-items: start; }
.ftr__logo { display: inline-block; width: 92px; color: var(--wine); }
.ftr__logo svg { display: block; width: 100%; height: auto; fill: currentColor; }
.ftr__hand { margin-top: 24px; font-size: clamp(40px, 4vw, 60px); line-height: 1.05; --r: -4deg; }
.ftr__voice { padding-top: 0; }
.ftr__q { margin-top: -7px; }
.ftr__q { max-width: 600px; font-size: var(--t-h3m); line-height: 1.2; letter-spacing: -.035em; font-weight: 560; text-wrap: balance; }
.ftr__who { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.ftr__who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.ftr__who p { display: grid; gap: 2px; font-size: var(--t-ui); line-height: 1.3; }
.ftr__who span { font-size: var(--t-cap); color: var(--ink-2); }
.ftr__tg { display: inline-flex; align-items: center; gap: 12px; height: 56px; margin-top: 36px; padding: 0 24px 0 8px; border-radius: 40px; background: var(--wine); color: var(--cream); font-size: var(--t-body); letter-spacing: -.01em; font-weight: 560; box-shadow: 0 10px 24px -14px rgba(100, 27, 41, .7); transition: background-color .3s; }
.ftr__tg-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--cream); color: var(--wine); transition: transform .36s var(--s29); }
.ftr__tg-ic svg { width: 18px; height: 18px; }
@media (hover: hover) { .ftr__tg:hover { background: var(--crimson); } .ftr__tg:hover .ftr__tg-ic { transform: scale(1.08); } }
/* row 2: labelled columns, like Kora's Socials / Legal / Navigation */
.ftr__mid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 60px; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.ftr__lab { margin-bottom: 16px; font-size: var(--t-cap); color: var(--ink-2); }
.ftr__lab ~ .ftr__lab { margin-top: 36px; }
.ftr__soc { display: flex; flex-wrap: wrap; gap: 8px; }
.ftr__soc a { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 30px; background: var(--card); font-size: var(--t-ui); transition: background-color .3s, color .3s; }
@media (hover: hover) { .ftr__soc a:hover { background: var(--wine); color: var(--cream); } }
.ftr__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 8px; font-size: var(--t-cap); color: var(--ink); }
.ftr__legal a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; transition: text-decoration-color .3s; }
@media (hover: hover) { .ftr__legal a:hover { text-decoration-color: var(--wine); } }
.ftr__nav { display: grid; gap: 4px; }
.ftr__nav a { display: inline-flex; align-items: center; gap: 12px; font-size: var(--t-h3m); line-height: 1.3; letter-spacing: -.04em; font-weight: 560; transition: color .3s; }
.ftr__nav a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--wine); transition: transform .36s var(--s29); }
@media (hover: hover) { .ftr__nav a:hover { color: var(--wine); } .ftr__nav a:hover::before { transform: scale(1.6); } }
/* crisis line: calm, but impossible to miss */
/* SOS (round 11): a warm cream note in Yana's hand, a curl pointing to a soft 112 button with a drawn heart */
.ftr__sos { display: flex; align-items: center; gap: 16px 24px; margin-top: 60px; padding: 32px; border-radius: var(--r-l); background: var(--cream); color: var(--crimson); }
.ftr__sos-t { flex: 0 1 auto; max-width: 620px; font-size: var(--t-leadm); line-height: 1.35; letter-spacing: -.02em; font-weight: 560; text-wrap: balance; }
.ftr__sos-h { flex: none; margin-left: auto; font-size: clamp(40px, 3.4vw, 52px); line-height: 1; --r: -5deg; }
.ftr__sos-arr { flex: none; width: 92px; height: 46px; margin-left: -6px; color: var(--crimson); transform: translateY(8px) rotate(-4deg); }
.ftr__sos-btn { flex: none; display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 28px 0 9px; border-radius: 40px; background: var(--wine); color: var(--cream); font-size: 22px; font-weight: 600; letter-spacing: .02em; box-shadow: 0 10px 24px -14px rgba(100, 27, 41, .7); transition: background-color .3s, transform .5s var(--s29); }
.ftr__sos-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--cream); color: var(--crimson); }
.ftr__sos-ic svg { width: 26px; height: 26px; }
@media (hover: hover) { .ftr__sos-btn:hover { background: var(--crimson); transform: scale(1.04); } }

.ftr__base { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 0 60px; margin-top: clamp(32px, 4vw, 60px); }
.ftr__giant { position: relative; --gw: min(60vw, 1120px); height: calc(var(--gw) * .646 * .8); margin-left: calc(-.12 * var(--gw)); pointer-events: none; }
.ftr__giant svg { position: absolute; left: 0; top: 0; width: var(--gw); height: auto; fill: var(--wine); overflow: visible; transform-origin: 30% 100%; transform: scale(var(--fg, 1)); }
.ftr.is-moving .ftr__card, .ftr.is-moving .ftr__giant svg { will-change: transform; }   /* round 27: layers only during the reveal */
.ftr__fine { display: grid; gap: 8px; padding-bottom: 32px; font-size: var(--t-cap); line-height: 1.45; color: var(--ink-2); }
@media (min-width: 810px) and (max-width: 1199.98px) {
  .ftr__base { grid-template-columns: 1fr; }
  .ftr__fine { order: -1; max-width: 640px; padding-bottom: 0; }
  .ftr__giant { margin-top: 20px; margin-left: calc(-.03 * var(--gw)); }
}

/* =========================================================
   hero load states (Kora 4.2) — window → frame, words from blur
   ========================================================= */
.is-loading .stage__win { clip-path: inset(42.5% 42.5% round 12px); }
.is-loading .stage__zoom { transform: scale(.45); }
.is-loading .stage__tint, .is-loading .stage__shade { opacity: 0; }
.is-loading .hero__t .w, .is-loading .hero__lead .l { opacity: .001; filter: blur(5px); transform: translateY(2px) scale(.9); }
.is-loading [data-hero-in] { opacity: .001; transform: translateY(10px) scale(.9); }
.is-loading .book { opacity: 0; }
.is-intro.is-loading .hdr { transform: translateY(-110px); }
.is-loading .hero__t:not(.is-split), .is-loading .hero__lead:not(.is-split) { opacity: 0; }
.hero__t .w, .hero__lead .l, .xl .w, .h2 .w, .results__t .l, .case__t .l, .lead .l { display: inline-block; }
.hero__lead .l, .results__t .l, .lead .l, .case__t .l { display: inline; }

/* generic appear (Kora 4.6): opacity .001→1, scale .9→1, y 10→0, spring .46 b.29; titles by words with blur 5 */
.js [data-appear]:not(.is-in), .js [data-appear-group]:not(.is-in) > * { opacity: .001; transform: translateY(10px) scale(.96); }
.js [data-appear].is-in, .js [data-appear-group].is-in > * { opacity: 1; transform: none; transition: opacity .46s var(--s29) var(--d, 0s), transform .46s var(--s29) var(--d, 0s); }
.js [data-split].is-split:not(.is-in) .w, .js [data-split].is-split:not(.is-in) .l { opacity: .001; filter: blur(5px); transform: translateY(2px) scale(.9); }
.js [data-split].is-split.is-in .w, .js [data-split].is-split.is-in .l { opacity: 1; filter: blur(0); transform: none; transition: opacity .7s var(--s29) var(--d, 0s), filter .7s var(--s29) var(--d, 0s), transform .7s var(--s29) var(--d, 0s); }
.js .hero__t.is-split .w, .js .hero__lead.is-split .l { transition: opacity .7s var(--s29) var(--d, 0s), filter .7s var(--s29) var(--d, 0s), transform .7s var(--s29) var(--d, 0s); }
.js [data-split].is-split .w, .js [data-split].is-split .l { will-change: auto; }

/* =========================================================
   TABLET 810–1199
   ========================================================= */
@media (max-width: 1199.98px) {
  .hero__t { font-size: clamp(40px, min(6vw, var(--vh, 1svh) * 7.4), 64px); }
  .stage__img { object-position: 80% 50%; }
  .story { width: 430px; }
  /* comparison: no 3D, two cards side by side, appear */
  .cmp { padding: 0; }
  /* same story as desktop: the heading alone, it flies apart, the talk card grows in, the IRT card slides over it */
  .cmp__stage { position: sticky; top: 0; height: 100vh; height: calc(var(--vh, 1svh) * 100); display: grid; place-items: center; perspective: 900px; overflow: hidden; padding: calc(var(--hdr-h, 60px) + 24px) var(--pad) 56px; }
  .cmp__stage > * { grid-area: 1 / 1; }
  .cmp__t { white-space: normal; text-align: center; margin: 0; z-index: 4; }
  .cmp__l { display: block; }
  .cmp__cards { display: grid; width: 100%; max-width: 620px; margin: 0 auto; transform-origin: 50% 50%; }
  .cmp__card, .cmp__card--irt { grid-area: 1 / 1; position: relative; left: auto; margin: 0; width: auto; height: auto; padding: 40px; transition: none; transform-origin: 50% 0; will-change: transform; }
  .cmp__card--irt { z-index: 3; box-shadow: 0 -18px 40px -24px rgba(35, 10, 16, .45); }
  .cmp__arrow--x { display: none; }
  .cmp__arrow--y { display: grid; }
  .cmp__arrow, .cmp.is-show .cmp__arrow { left: 50%; right: auto; top: -28px; margin: 0 0 0 -28px; opacity: 1; transform: rotate(90deg); transition: none; }
  .cmp--static .cmp__cards { gap: 24px; }
  .cmp__card--talk, .cmp__card--irt, .cmp.is-show .cmp__card--irt { transform: none; }
  .cmp.is-show .cmp__card--talk, .cmp.is-show .cmp__card--irt { transform: none; }
  .cmp__card--talk .cmp__in { opacity: 1; transition: none; }
  .cmp__in { height: 100%; }
  .cmp__track { display: block; height: 200vh; height: calc(var(--vh, 1svh) * 200); }
  .cmp--static .cmp__stage { position: static; height: auto; display: block; }
  .cmp--static .cmp__t { text-align: left; margin-bottom: var(--gap-t); }
  .cmp--static .cmp__track { display: none; }
  .cmp--static .cmp__cards { display: flex; flex-direction: column; gap: 8px; }
  .svc__item { padding-top: 84px; }
  .svc__panel { padding: 32px; }
  .qs { grid-template-columns: 1fr; }
  .qs__i { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 8px 32px; }
  .qs__n { grid-column: 1 / -1; }
  .qs__q { margin-top: 0; }
  .qs__a { padding-top: 0; }
  .step { grid-template-columns: 90px minmax(0, 1fr); padding: 32px 32px 32px; }
  .step__n { font-size: 76px; }
  .step__d { grid-column: 2; margin-top: 12px; }
  .step__qs { grid-column: 1 / -1; margin-top: 24px; }
  .calm__c { min-height: 0; padding: 32px 32px 36px; }
  .feat { aspect-ratio: auto; height: min(760px, calc(var(--vh, 1svh) * 100 - 40px)); }
  .feat__t { top: 50px; left: 30px; }
  .feat__q { left: 30px; top: auto; bottom: 30px; }
  .feat__hand { right: 30px; bottom: auto; top: 70px; }
  .case { grid-template-columns: 1fr 1fr; }
  .founder__grid { gap: 48px; }
  .team { grid-template-columns: 1fr; }
  .prices__grid { grid-template-columns: 1fr; }
  .quiz__card { grid-template-columns: 1fr; }
  .quiz__intro { min-height: 0; padding: 40px; }
  .quiz__box { min-height: 560px; padding: 40px; }
  .pane { padding: 40px; }
  .apply__grid { grid-template-columns: 1fr; gap: 40px; }
  .apply__bg { top: auto; height: 135%; object-position: 0% 50%; } /* she sits top right, clear of the text column */
  .ftr__nav a { font-size: 25px; }
}

/* =========================================================
   PHONE <810
   ========================================================= */
@media (max-width: 809.98px) {
  html { scroll-padding-top: 80px; }
  .stage__img { object-position: 85% 50%; }
  .stage__shade { background: linear-gradient(180deg, rgba(22, 40, 60, .32) 0%, rgba(22, 40, 60, .16) 45%, rgba(22, 40, 60, 0) 70%, rgba(22, 40, 60, .2) 100%); }
  .hero__in { padding: clamp(84px, var(--vh, 1svh) * 12, 112px) 20px 12px; }
  /* round 16: the three written lines kept whole on phones, so «результата» never hangs alone */
  .hero__t { font-size: clamp(25px, min(calc((100vw - 60px) / 11.7), var(--vh, 1svh) * 4.6), 40px); line-height: 1.08; max-width: none; }
  .hero__hand { font-size: clamp(28px, 8vw, 34px); margin-top: .3em; }
  .hero__lead { font-size: 15px; line-height: 1.35; max-width: 340px; margin-top: clamp(8px, var(--vh, 1svh) * 1.6, 16px); }
  .hero__cta { gap: 16px; margin-top: clamp(12px, var(--vh, 1svh) * 2.4, 24px); }
  .hero__bottom { padding-top: 16px; flex-direction: column; align-items: stretch; gap: 12px; }
  .trust .ava { width: 28px; height: 28px; }
  .story { width: 100%; padding: 8px 12px 8px 8px; gap: 12px; border-radius: var(--r-m); }
  .story__ph { width: 60px; border-radius: 14px; }
  .story__body { gap: 4px; }
  .story .arrow-c { width: 30px; height: 30px; }
  .badge { height: 24px; font-size: 12px; }
  .story__txt { font-size: 12.5px; line-height: 1.4; }
  /* round 28: the first screen leaves with the page itself (no script-driven layer): nothing can stutter while an in-app browser folds its bars */
  .hero { position: relative; }
  .hero__in { will-change: auto; }
  .phrase { place-items: start center; padding-top: calc(var(--vh, 1svh) * 12); }   /* round 23: quote higher on phones (Vlad) */
  .phrase__t { font-size: max(22px, min(35px, 7.6vw, var(--vh, 1svh) * 9)); line-height: 1.08; }
  .phrase__ln { white-space: normal; text-wrap: balance; }
  .phrase__hand { position: static; display: block; margin: -.05em 0 -.4em auto; width: max-content; font-size: 44px; }

  .cmp__stage { padding: 76px var(--pad) 52px; }
  .cmp__t { font-size: 36px; }
  .cmp__card, .cmp__card--irt { padding: 24px 24px; border-radius: var(--r-xl); }
  .cmp__h { font-size: 26px; margin-top: 8px; }
  .cmp__list { gap: 8px; }
  .cmp__body { gap: 16px; margin-top: 16px; }
  .cmp__list li { font-size: 15px; }
  .cmp { --lk-w: 170px; }
  .cmp__hand { top: 20px; right: 22px; font-size: 38px; }
  .cmp__arrow, .cmp.is-show .cmp__arrow { width: 48px; height: 48px; top: -24px; margin-left: -24px; }

  .results--blue .results__frame { padding: 60px 0; }

  .svc .xl { margin-bottom: 32px; font-size: min(var(--t-xl), calc((100vw - 40px) / 7.1)); }   /* «С чем приходят» stays one line */
  .svc__item { position: relative; height: auto; padding: 0 var(--pad) 8px; }
  .svc__card { grid-template-columns: 1fr; height: auto; padding: 8px; gap: 8px; border-radius: var(--r-xl); }
  .svc__media { order: -1; aspect-ratio: 4 / 4.4; }
  .svc__panel { padding: 24px 24px; }
  .svc__h { margin-top: 16px; }
  .glass { width: auto; left: 12px; right: 12px; bottom: 12px !important; }
  .svc__media .glass { right: 12px; }

  .qs__i { display: flex; align-items: stretch; padding: 24px 20px 24px; }
  .qs__q { margin-top: 8px; font-size: 23px; }
  .qs__a { padding-top: 12px; font-size: min(42px, calc((100vw - 124px) / 6.6)); }
  .proc__chips li { height: 40px; font-size: 14px; }
  .steps { gap: 8px; }
  .step { grid-template-columns: 62px minmax(0, 1fr); column-gap: 12px; padding: 24px 20px 24px; }
  .step__n { grid-row: 1; font-size: 64px; }
  .step__main { gap: 8px; }
  .step__h { font-size: min(23px, calc((100vw - 158px) / 9.8)); }
  .step__d { grid-column: 1 / -1; margin-top: 12px; font-size: 15px; }
  .step__qs { margin-top: 20px; }
  .steps__next { font-size: 15px; }
  .calm__grid { grid-template-columns: 1fr; padding: 8px; gap: 8px; }
  .calm__c { padding: 24px 24px 28px; }
  .calm__h { padding-top: 32px; font-size: 23px; }
  .calm__logo { width: 150%; right: -60%; bottom: -24%; }

  .feat { aspect-ratio: auto; height: max(640px, 160vw); max-height: none; min-height: 0; }
  .feat__t { top: 34px; left: 22px; }
  .feat__q { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 24px; }
  .feat__hand { top: 104px; right: 22px; bottom: auto; font-size: 46px; }
  .quote { flex-basis: 86%; padding: 24px 24px; }
  .quote__t { font-size: var(--t-body); }
  .case { grid-template-columns: 1fr; padding: 8px; gap: 8px; }
  .case__top, .case__stats { padding: 24px 24px; }
  .case__stats { grid-template-columns: 1fr; gap: 24px; }
  .stat + .stat { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .case__ph { min-height: 260px; }

  .founder__grid { grid-template-columns: 1fr; gap: 36px; }
  .founder__ph { max-height: none; }
  .founder__act { margin-top: 28px; }
  .founder__cap { left: 12px; right: 12px; bottom: 12px !important; max-width: none; }
  .member img { width: 60px; height: 60px; }

  .prices__frame { padding: 60px 0; }
  .plan { column-gap: 8px; min-height: 80px; padding: 12px 12px 12px 64px; }   /* round 19: text clear of the hand numeral on phones (Vlad: «чуть правее») */
  .plan__n { left: 16px; font-size: 84px; }   /* round 20: 7% smaller (Vlad) */
  .plan__n--ic { left: 12px; }
  .plan__n--ic svg { width: .56em; }
  .plan__tx { gap: 0 8px; }   /* round 18: price stays on the right, clear of the numeral (Vlad: «закрывается цена») */
  .plan__tx { flex-wrap: nowrap; align-items: center; }   /* round 22: a long name wraps in two lines, the price stays beside it, centred (Vlad) */
  .plan__tx b { min-width: 0; }
  .pane__big { font-size: 280px; right: 6%; }
  .plans__h .ava { width: 34px; height: 34px; }
  .prices__l { gap: 20px; }
  .prices__grid { row-gap: 40px; }
  .pane { padding: 28px 24px; }
  .pane__list { grid-template-columns: 1fr; }
  .pane__body { margin-top: 28px; }
  .pane__fn { margin-top: 28px; }

  .quiz__card { padding: 8px; gap: 8px; }
  .quiz__intro { padding: 32px 24px 28px; }
  .quiz__get { padding-top: 32px; }
  .quiz__list li { font-size: 15px; }
  .quiz__box { min-height: 600px; padding: 32px 24px 28px; }
  .quiz.is-sent .quiz__box { min-height: 0; }
  .quiz__top { flex-direction: column; align-items: stretch; gap: 12px; }
  .quiz__bar { max-width: none; }
  .quiz__steps { margin-top: 24px; }
  .quiz__q { font-size: 23px; }
  .quiz__q--long { font-size: 20px; }
  .quiz__opts { margin-top: 16px; }
  .opt { min-height: 48px; padding: 12px 12px; gap: 12px; }
  .opt__t { font-size: 14px; }
  .quiz__fields { grid-template-columns: 1fr; gap: 16px; }
  .quiz__nav { margin-top: 24px; padding-top: 16px; }
  .quiz__next { min-width: 0; padding: 0 24px; }
  .faq__more { padding: 24px; gap: 16px; }
  .ava-trio .ava { width: 40px; height: 40px; }
  .ava-trio .ava--blue { width: 48px; height: 48px; }
  .faq__mt { font-size: 15px; }

  .apply__frame { padding: 60px 0 8px; }
  .apply__bg { top: 0; height: 100%; object-position: 40% 40%; }
  .apply__list { margin-top: 32px; gap: 12px; }
  .form { padding: 20px; margin: 0 -10px; border-radius: 20px; }
  .chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .chip span { flex-direction: column; justify-content: center; width: 100%; height: 64px; padding: 0 4px; gap: 4px; border-radius: 20px; }   /* round 20: icon over the label, fits 320 */
  .chip__ic { width: 24px; height: 24px; }
  .form__fields { grid-template-columns: 1fr; gap: 20px; }
  .form__bot { flex-direction: column-reverse; align-items: stretch; text-align: center; }
  .form__bot .btn { justify-content: center; height: 52px; }
  .form__bot .btn .btn__dot { position: absolute; right: 18px; }

  .ftr__circle { top: 200px; width: 300px; height: 300px; margin-left: -150px; }
  .ftr__card { padding-top: 48px; }
  .ftr__top, .ftr__mid, .ftr__base { grid-template-columns: 1fr; }
  .ftr__top { gap: 60px; }
  .ftr__nav { gap: 0; }
  .ftr__nav a { min-height: 44px; }
  .ftr__legal { gap: 0 20px; margin-top: 0; }
  .ftr__legal a { display: inline-block; padding: 12px 0; }
  .ftr__soc a { height: 44px; }
  .ftr__logo { width: 74px; }
  .ftr__q { font-size: 22px; }
  .ftr__tg { margin-top: 24px; }
  .ftr__mid { margin-top: 48px; padding-top: 32px; gap: 36px; }
  .ftr__nav a { font-size: 25px; }
  .ftr__sos { flex-wrap: wrap; gap: 16px 16px; margin-top: 40px; padding: 24px; }
  .ftr__sos-t { flex: 1 1 100%; }
  .ftr__sos-h { margin-left: 0; font-size: 40px; }
  .ftr__sos-btn { margin-left: auto; }
  .ftr__sos-arr { display: none; }
  .ftr__sos-btn { height: 56px; }
  .ftr__fine { order: -1; padding-bottom: 0; }
  .ftr__giant { --gw: 84vw; height: calc(var(--gw) * .646 * .78); margin-top: 24px; margin-left: calc(-.03 * var(--gw)); }
}

/* =========================================================
   TOUCH PERFORMANCE (round 11, iPhone audit): no full-screen blended grain, no live backdrop blur,
   phrase words animate only opacity/transform
   ========================================================= */
@media (hover: none) {
  .grain-page, .grain { display: none; }
  .glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(35, 26, 28, .42); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
  .form { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(238, 240, 241, .93); }
  .sd::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(35, 20, 24, .55); }
  .phrase__t .w { will-change: transform, opacity; }
}

/* =========================================================
   REDUCED MOTION: no intro, no scrub, no parallax, everything visible
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .grain-page::after { animation: none !important; }
}
.rm .stage__blur, .rm .hero__in, .rm .stage__frame { will-change: auto; }
.rm .stage__blur--hi { opacity: 0; }
.rm .stage__blur--lo { opacity: .55; }
.rm [data-write], .rm [data-scrub-write] { clip-path: none !important; }
.rm [data-quote] { opacity: 1 !important; transform: none !important; }
.rm [data-bars] .bar__fill { clip-path: none !important; }
.rm [data-bars] .bar__v { opacity: 1 !important; }
.rm .phrase { position: relative; height: auto; min-height: calc(var(--vh, 1svh) * 100); }

/* reduced motion: the comparison is a plain section, heading above, two cards side by side (stacked on phones) */
.rm .cmp { padding: var(--sec) 0; }
.rm .cmp__stage { position: static; height: auto; display: block; overflow: visible; perspective: none; padding: 0 var(--pad); }
.rm .cmp__stage > * { grid-area: auto; }
.rm .cmp__t { white-space: normal; text-align: left; max-width: 1010px; margin: 0 auto var(--gap-t); opacity: 1 !important; transform: none !important; }
.rm .cmp__l { display: inline; transform: none !important; opacity: 1 !important; }
.rm .cmp__cards { display: flex; gap: 8px; max-width: 1010px; margin: 0 auto; transform: none !important; opacity: 1 !important; }
.rm .cmp__card, .rm .cmp__card--irt { position: relative; left: auto; margin: 0; flex: 1 1 0; width: auto; height: auto; min-height: 0; transform: none !important; box-shadow: none; }
.rm .cmp__card--talk .cmp__in { opacity: 1 !important; }
.rm .cmp__arrow { opacity: 1; transform: none; }
.rm .cmp__arrow--y { transform: rotate(90deg); }
@media (min-width: 810px) and (max-width: 1199.98px) { .rm .cmp__arrow--x { display: grid; top: 50%; right: -39px; left: auto; margin: -28px 0 0; transform: none; } .rm .cmp__arrow--y { display: none; } }
.rm .cmp__cards { gap: 24px; }
.rm .cmp__in { height: 100%; }
.rm .cmp__track { display: none; }
@media (max-width: 809.98px) { .rm .cmp__cards { flex-direction: column; } .rm .cmp__card, .rm .cmp__card--irt { flex: none; } .rm .cmp__list { margin-top: 24px; } }


/* 03.11: the chart shows the usual spread without counts (Yana: 2–3 sessions most often, then 4–7, then 1) */
.chart--rel .chart__plot { padding-bottom: 0; }
.chart--rel .bar__fill { min-width: 24px; }

@media (min-width: 810px) and (max-width: 1199.98px) { .quote { flex-basis: calc((100% - 8px) / 2); } }

/* round 22: narrowest phones, «сессия / с основателем» and its price still share one row */
@media (max-width: 359.98px) {
  .plan { column-gap: 4px; padding: 12px 8px 12px 56px; }
  .plan__n { left: 12px; font-size: 78px; }
  .plan__tx { gap: 0 8px; }
  .plan__tx b, .plan__pr { font-size: 13.5px; }
}


/* ================= round 24 (10.11) ================= */
/* «С чем приходят»: the text is as large as the panel allows. --k is set by fitSvc() in main.js:
   the largest scale at which rows, tags and the footnote still fit above «Записаться» (they used to slide under it in low windows). */
@media (min-width: 810px) {
  .svc__card { height: min(760px, calc(var(--vh, 1svh) * 100 - 116px)); }
  .svc__panel { --k: 1; padding: clamp(24px, var(--vh, 1svh) * 4.6, 48px) clamp(28px, 3.4vw, 48px); overflow: hidden; }
  .svc__h { margin-top: calc(16px * var(--k)); max-width: none; font-size: calc(var(--t-h3m) * var(--k)); text-wrap: balance; }
  .svc__d { font-size: calc(16px * var(--k)); max-width: none; }
  .svc__rows { gap: calc(8px * var(--k)); margin-top: calc(16px * var(--k)); max-width: none; }
  .svc__rows li { padding-left: calc(18px * var(--k)); font-size: calc(16px * var(--k)); text-wrap: pretty; }
  .svc__rows li::before { width: calc(6px * var(--k)); height: calc(6px * var(--k)); }
  .svc__tags { padding-top: calc(20px * var(--k)); }
  .svc__tt { margin-bottom: calc(12px * var(--k)); font-size: calc(18px * var(--k)); }
  .svc__tags .tags { gap: calc(8px * var(--k)); }
  .svc__tags .tags li { min-height: calc(26px * var(--k)); padding: calc(4px * var(--k)) calc(10px * var(--k)); font-size: calc(14px * var(--k)); }
  .svc__fn { margin-top: calc(12px * var(--k)); font-size: max(11px, calc(12.5px * var(--k))); max-width: none; }
  /* a window so low that nothing fits even at the smallest scale: the cards stop sticking and take the height they need */
  .svc__list.is-flow { margin-top: 0; }
  .svc__list.is-flow .svc__item { position: relative; height: auto; padding-top: 0; padding-bottom: 8px; }
  .svc__list.is-flow .svc__card { height: auto; }
  .svc__list.is-flow .svc__media { min-height: 320px; }
}

/* comparison cards: everything inside follows --ck (1 = the designed size). fitCmp() in main.js lowers it
   until the lists fit the card (desktop: fixed card height) or the card fits the window (tablet, phone). */
.cmp { --ck: 1; --c-pad: 48px; --c-h: var(--t-h3l); --c-li: var(--t-ui); --c-lg: 12px; --c-bg: 24px; --lk0: 250px; --c-hand: 52px; }
@media (max-width: 1199.98px) { .cmp { --c-pad: 40px; } }
@media (max-width: 809.98px) { .cmp { --c-pad: 24px; --c-h: 26px; --c-li: 15px; --c-lg: 8px; --c-bg: 16px; --lk0: 170px; --c-hand: 38px; } }
.cmp__cards { --lk-w: calc(var(--lk0) * var(--ck)); }
.cmp__card, .cmp__card--irt { padding: calc(var(--c-pad) * var(--ck)); }
.cmp__in { gap: calc(32px * var(--ck)); }
.cmp__body { gap: calc(var(--c-bg) * var(--ck)); }
.cmp__h { font-size: calc(var(--c-h) * var(--ck)); }
.cmp__list { gap: calc(var(--c-lg) * var(--ck)); }
.cmp__list li { gap: calc(8px * var(--ck)); font-size: max(12px, calc(var(--c-li) * var(--ck))); }
.cmp__list .ic { width: calc(24px * var(--ck)); height: calc(24px * var(--ck)); flex: none; }
.cmp__list .ic svg { width: calc(19px * var(--ck)); height: calc(19px * var(--ck)); }
.cmp__hand { top: calc(var(--c-pad) * var(--ck) - 8px * var(--ck)); right: calc(var(--c-pad) * var(--ck) - 2px); font-size: calc(var(--c-hand) * var(--ck)); }

/* steps on phones: number and title in one row, then the chip and the text from the card's left edge
   (the chip used to hang under the title, indented, while the text started at the edge) */
@media (max-width: 809.98px) {
  .step { grid-template-columns: 50px minmax(0, 1fr); align-items: center; row-gap: 0; }
  .step__main { display: contents; }
  .step__h { grid-column: 2; grid-row: 1; }
  .step__chip { grid-column: 1 / -1; justify-self: start; margin-top: 12px; }
  .step__d { margin-top: 12px; }
}

/* contact fields: Telegram nick under the channel chips, direct link to our Telegram */
.fld input::placeholder, .fld textarea::placeholder { color: rgba(35, 26, 28, .38); }
.direct { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: 30px; background: rgba(255, 255, 255, .6); font-size: var(--t-cap); color: var(--ink); white-space: nowrap; transition: background-color .25s, color .25s; }
.direct svg { flex: none; width: 24px; height: 24px; color: var(--wine); transition: color .25s; }
@media (hover: hover) { .direct:hover { background: var(--wine); color: var(--cream); } .direct:hover svg { color: var(--cream); } }
.direct:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.form__alt { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; }
.form__bot { flex-wrap: wrap; }
.quiz__direct { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-top: 24px; font-size: var(--t-cap); color: var(--ink-2); }
.quiz .direct { background: var(--paper); }
@media (hover: hover) { .quiz .direct:hover { background: var(--wine); } }
@media (max-width: 809.98px) {
  .form__alt { flex-direction: column-reverse; align-items: stretch; }
  .form__alt .direct, .quiz__direct .direct { justify-content: center; height: 48px; }
  .quiz__direct { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ================= round 27: booking form and the quiz's last step ================= */
/* One contact input per channel in the same place; under it one message line that is always there (hint or error,
   stacked in one grid cell), so switching Telegram / WhatsApp / call or showing an error never changes the height. */
.form__fields { gap: 20px; }
.fld input[type=text], .fld input[type=tel], .fld textarea { font-size: 16px; }   /* iOS zooms into anything smaller */
.fld input[type=tel] { font-variant-numeric: tabular-nums; }
.fld--contact [hidden] { display: none !important; }
.fld__tel { position: relative; display: block; }
.fld__mask { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 16px; font: 600 16px/1.5 var(--f); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: rgba(35, 26, 28, .3); white-space: pre; pointer-events: none; overflow: hidden; }
.fld__mask i { font-style: normal; color: transparent; }
.fld__m { display: grid; padding: 0 16px; font-size: var(--t-cap); line-height: 1.4; color: var(--ink-2); }
.fld__m > span { grid-area: 1 / 1; visibility: hidden; }
.fld__m > .is-on { visibility: visible; }
.fld__m .fld__e { color: var(--crimson); }
.fld--check { gap: 4px; }
.fld--check .fld__m { padding: 0 0 0 32px; }
.check { align-items: flex-start; line-height: 1.5; }
.check a { text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(35, 26, 28, .32); text-underline-offset: .2em; transition: color .2s, text-decoration-color .2s; }
@media (hover: hover) { .check a:hover { color: var(--wine); text-decoration-color: var(--wine); } }
.form__bot { margin-top: 12px; }
.quiz__fields + .quiz__direct { margin-top: 8px; }   /* the consent's error line above is already reserved */
.fld legend { margin-bottom: 12px; }
.form { container: form / inline-size; }
@media (min-width: 810px) {
  .chip span, .direct { height: 44px; }   /* hit area ≥ 44 */
  /* a narrower card (1200 to ~1500): «Чёткий запрос не нужен» goes over the Telegram button, «Записаться» stays in the same row */
  @container form (max-width: 599.98px) {
    .form__bot { flex-wrap: nowrap; align-items: flex-end; }
    .form__alt { flex-direction: column; align-items: flex-start; gap: 8px; }
  }
  /* the card sits as far from the frame's bottom edge as from its side edge */
  .apply__frame { padding-bottom: calc(max(0px, (100% - 2 * var(--inset) - 1600px) / 2) + var(--pad)); }
}
/* the heading always fits its column: it used to run under the card between ~1200 and ~1500 and past the frame at 320 */
.apply__l { container-type: inline-size; }
.apply__t { max-width: 9em; font-size: min(var(--t-h2), 11.6cqi); }   /* 9em: always «Запишитесь / на первую сессию» */
@media (max-width: 1199.98px) { .apply__grid { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1200px) { .apply__grid { grid-template-columns: minmax(0, 1fr) minmax(0, clamp(480px, 40vw, 600px)); } }
@media (max-width: 809.98px) {
  .apply__frame { padding-bottom: 12px; }
  .form { margin: 0 -8px; }
  .form__fields { gap: 16px; }
  .form__alt { row-gap: 8px; }
  .form__fn { line-height: 1.3; }
}

/* prices, desktop and tablet: the label starts clear of the hand numeral (it used to sit on the numeral's tail: «3сессии») */
@media (min-width: 810px) {
  .plan { padding-left: 92px; }
  .plan__n { left: 22px; font-size: 96px; }
  .plan__n--ic { left: 18px; }
}

/* round 25: hand numerals 1/3/5/8 about a quarter smaller (team: «слишком большие»); the IRT mark keeps its size */
.plan__n { font-size: 80px; }
.plan__n--ic { font-size: 104px; }
@media (max-width: 809.98px) { .plan__n { font-size: 66px; } .plan__n--ic { font-size: 84px; } }
@media (max-width: 359.98px) { .plan__n { font-size: 60px; } .plan__n--ic { font-size: 78px; } }
@media (min-width: 810px) { .plan { padding-left: 80px; } .plan__n { font-size: 72px; } .plan__n--ic { font-size: 96px; } }
/* round 25: the IRT mark sat ~5px below the card's middle; lifted to the label's line */
.plan__n--ic svg { margin-top: .24em; }
@media (min-width: 810px) { .plan { padding-left: 76px; } }
@media (max-width: 359.98px) { .plan__n--ic { font-size: 70px; } }   /* round 25: the mark clear of «сессия» on the narrowest phones */
/* round 27 (Vlad): desktop, she sits lower and to the left, in the gap between the list and the form, clear of the heading */
@media (min-width: 1200px) { .apply__bg { left: -15.5%; right: auto; width: 116%; max-width: none; object-position: 50% 23%; } }
@media (min-width: 1200px) and (max-width: 1499.98px) { .apply__bg { object-position: 50% 14%; } } /* narrower desktop: the stems stay below the list */
