/* Avelis «Кришталь» — home page, DA-3b: the client's story (approved mock-up v3, 13.10.2026) + every block of the old home.
   One device leads the page: the route line. It draws on the first screen, fills while the five chapters pass,
   forks in «pen or programme» and runs down the safety promises.
   Rule kept everywhere: the illustrated heroine is never on one screen with a real quote or number.
   Static order (no JS, reduced motion) is the default; html.is-live is set only by js/b-motion.js. */

/* ---------- shared bits ---------- */
.sig{font-size:var(--fs-small);color:var(--muted)}
.sig b{font-weight:600;color:var(--ink)}
/* generated scenes are marked honestly and quietly */

/* one heading voice for every block below the story */
.about__title,.advantages__title,.prices__title,.pen-vs-program__title,.gallery__title,.prep-cards__title,
.safety__title,.faq__title,.blog__title,.reviews__title,.contacts__title{font-size:var(--fs-h2);font-weight:300;max-width:18ch}
/* one rhythm: each block brings only its top space; ink blocks and the last one close themselves */
.about,.advantages,.prices,.pen-vs-program,.gallery,.prep-cards,.safety,.faq,.cta-banner,.blog,.reviews,.contacts{padding:var(--section) 0 0}
.safety,.contacts{padding-bottom:var(--section)}
.safety{margin-top:var(--section)}

/* ---------- the route rail (first screen and story share it) ---------- */
.rail{position:relative;--p:0;padding-top:4px}
.rail__stops{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:relative}
.rail__stops::before,.rail__stops::after{content:"";position:absolute;left:10%;width:80%;top:9px;height:2px;border-radius:2px;background:var(--line)}
.rail__stops::after{background:var(--ink);transform-origin:0 50%;transform:scaleX(var(--p));z-index:1}
.rail__stop{position:relative;z-index:2;display:grid;gap:10px;justify-items:center;text-align:center;font-size:var(--fs-small);line-height:1.3;color:var(--muted);padding-inline:6px}
.rail__stop a{color:inherit;text-decoration:none;display:inline-block;padding:2px 0}
.rail__stop a:hover{color:var(--ink);text-decoration:underline}
.rail__stop i{width:20px;height:20px;border-radius:50%;background:var(--frost);box-shadow:inset 0 0 0 2px var(--ink);transition:background .4s,transform var(--t-med) var(--ease-out)}
.rail__stop.is-on{color:var(--ink)}
.rail__stop.is-on i{background:var(--ink)}
.rail__stop.is-here i{transform:scale(1.25);box-shadow:inset 0 0 0 2px var(--ink),0 0 0 7px rgba(11,52,70,.12)}
.rail__tag{position:absolute;z-index:3;top:1px;left:calc(50% + 16px);padding:3px 8px;border-radius:var(--r-pill);background:var(--ice);color:var(--ink);font:600 11px/1.1 var(--f-body);font-style:normal;white-space:nowrap}
.rail__doc{position:relative;margin-top:18px;display:flex;align-items:center;gap:12px;font-size:var(--fs-micro);color:var(--logo)}
.rail__doc::after{content:"";flex:1;height:0;border-top:2px dashed rgba(12,88,129,.55)}
.rail__doc b{font-weight:600;white-space:nowrap}
/* endless loops run only while the page scrolls and the element is in view (b-motion.js sets the classes): at rest nothing repaints */
html.is-live .rail__doc::after{animation:hm-dash 1.6s linear infinite paused;border-top:0;height:2px;background:repeating-linear-gradient(90deg,rgba(12,88,129,.55) 0 6px,transparent 6px 12px);background-size:12px 2px}
@keyframes hm-dash{to{background-position:12px 0}}
html.is-scrolling .rail__doc.in-view::after{animation-play-state:running}

/* ---------- first screen ---------- */
.hm-hero{position:relative;min-height:calc(100 * var(--vh, 1svh));display:grid;grid-template-rows:1fr;padding:76px 0 clamp(24px,calc(4 * var(--vh, 1svh)),44px);overflow:hidden}
.hm-hero__photo{position:absolute;inset:0 0 0 38%;z-index:0}
/* the photo melts into the frost on the left and at the bottom: no edge between the first screen and the story (p.1, 3b) */
.hm-hero__photo .scene-img{object-position:70% 30%;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 22%),linear-gradient(180deg,#000 72%,transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent 0,#000 22%),linear-gradient(180deg,#000 72%,transparent);mask-composite:intersect}
.hm-hero__wrap{position:relative;z-index:2;display:grid;grid-template-rows:1fr}
.hm-hero__text{align-self:center;display:grid;gap:14px;max-width:560px;padding-top:clamp(20px,calc(5 * var(--vh, 1svh)),64px)}
.promo__title{font-size:clamp(34px,3.9vw,60px);font-weight:300;letter-spacing:-.04em;line-height:1.04}
.promo__lead{font-size:var(--fs-lead);color:var(--muted);max-width:38ch}
.promo__tags{font-size:var(--fs-micro);color:var(--muted);letter-spacing:.01em}
.promo__offer{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin-top:4px}
.promo__heading{font-family:var(--f-display);font-weight:300;font-size:clamp(17px,1.3vw,20px);letter-spacing:-.02em;line-height:1.2}
.promo__heading strong{display:block;white-space:nowrap;font-weight:500;font-size:1.6em;letter-spacing:-.04em;line-height:1.05;margin-top:2px}
.promo__badge{order:-1;flex:none;padding:6px 11px;border-radius:var(--r-pill);background:var(--ink);color:var(--white);font:600 13px/1 var(--f-body)}
.promo__sub{font-size:var(--fs-small);color:var(--ink);font-weight:500}
.promo__discount-note{font-size:var(--fs-micro);color:var(--muted)}
.hm-hero__photo .illu{top:88px;bottom:auto}
@media (min-width:761px) and (max-height:920px){.promo__title{font-size:clamp(34px,min(3.9vw,6.2vh),60px)}.hm-hero__text{gap:10px;padding-top:clamp(8px,calc(2 * var(--vh, 1svh)),64px)}}
@media (min-width:761px) and (max-height:800px){.promo__title{font-size:clamp(30px,5.1vh,60px)}.promo__lead{font-size:16px}.hm-hero .actions .btn{min-height:46px}.promo__heading strong{font-size:1.45em}}

/* ---------- the story: five stops ---------- */
.hm-ch{position:relative}
.hm-stop{position:relative;overflow:hidden}
/* static order: the scene owns one screen */
.hm-stop .scene-img{height:calc(92 * var(--vh, 1svh));bottom:auto}
.hm-stop .illu{top:calc(92 * var(--vh, 1svh) - 40px);bottom:auto}
.hm-col{position:relative;z-index:3;width:min(440px,100% - 24px);margin-left:var(--gutter);display:grid;gap:12px;min-height:calc(92 * var(--vh, 1svh));align-content:end;padding:96px 0 clamp(24px,4vw,56px)}
.hm-col--r{margin-left:auto;margin-right:var(--gutter);width:min(412px,100% - 24px)}
.hm-stop+.hm-stop{margin-top:2px}
.hm-plate{padding:clamp(22px,2.4vw,32px);display:grid;gap:10px}
.hm-plate__n{font-family:var(--f-display);font-weight:300;font-size:15px;color:var(--muted)}
.hm-plate h2{font-size:var(--fs-h2);font-weight:300}
.hm-plate h3{font-family:var(--f-body);font-weight:600;font-size:var(--fs-lead);letter-spacing:0;line-height:1.3}
.hm-plate p{color:var(--muted)}
.hm-pill{justify-self:start;padding:7px 14px;border-radius:var(--r-pill);background:var(--ink);color:var(--white)!important;font-size:var(--fs-small);font-weight:600;line-height:1.3}

/* a real doctor: compact card, scene made from her own photo (consent 11.10) */
.hm-doc{display:grid;grid-template-columns:104px 1fr;gap:14px;align-items:center;padding:8px 18px 8px 8px;border-radius:22px}
.hm-doc__pic{aspect-ratio:1;border-radius:16px;overflow:hidden}
.hm-doc__pic img{width:100%;height:100%;object-fit:cover;object-position:76% 40%}
.hm-doc p{font-size:var(--fs-small);line-height:1.35}
.hm-doc__name{display:block;font-weight:600}
.hm-doc__role{display:block;color:var(--muted);font-size:var(--fs-micro)}
.hm-doc__tag{display:block;margin-bottom:4px;font-size:12px;font-weight:600;color:var(--logo)}

/* chapter 2: Kyiv home visit leads; the thermobox (all Ukraine) is the smaller second path */
.hm-ship{display:grid;grid-template-columns:84px 1fr;gap:14px;align-items:center;padding:8px 18px 8px 8px;border-radius:22px}
.hm-ship__pic{aspect-ratio:1;border-radius:14px;overflow:hidden}
.hm-ship__pic img{width:100%;height:100%;object-fit:cover;object-position:7% 50%;transform:scale(1.8);transform-origin:50% 60%}
.hm-ship p{font-size:var(--fs-micro);line-height:1.4;color:var(--muted)}
.hm-ship b{display:block;font-size:var(--fs-small);color:var(--ink);margin-bottom:2px}
.scene-img--door{object-position:100% 40%}

/* the conversation: Instagram messages to the clinic, names hidden */

/* result: real photos, no heroine on this screen */
.hm-stop--result{background:var(--frost);padding:clamp(72px,9vw,120px) 0}
.hm-res{position:relative;z-index:3;width:min(var(--wrap),100% - 2*var(--gutter));margin:0 auto;display:grid;grid-template-columns:auto minmax(0,1fr);gap:clamp(28px,5vw,80px);align-items:center}
.cmp{position:relative;height:min(calc(56 * var(--vh, 1svh)),560px);max-width:100%;aspect-ratio:var(--ar,380/599);border-radius:30px;overflow:hidden;background:var(--mist);touch-action:pan-y;box-shadow:0 40px 80px -48px rgba(11,52,70,.55);--x:50%}
.cmp img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;user-select:none;-webkit-user-drag:none}
.cmp__after{clip-path:inset(0 0 0 var(--x))}
.cmp__line{position:absolute;top:0;bottom:0;left:var(--x);width:0;z-index:2;pointer-events:none}
.cmp__line::before{content:"";position:absolute;top:0;bottom:0;left:-1px;width:2px;background:rgba(248,251,252,.9)}
.cmp__knob{position:absolute;top:50%;left:0;width:54px;height:54px;margin:-27px 0 0 -27px;border-radius:50%;display:grid;place-items:center;color:var(--ink)}
.cmp__knob svg{width:24px;height:24px}
.cmp__tag{position:absolute;top:14px;z-index:2;padding:6px 12px;border-radius:var(--r-pill);font-size:var(--fs-micro);background:rgba(248,251,252,.76);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.cmp__tag--b{left:14px}.cmp__tag--a{right:14px}
.cmp input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize;z-index:3}
.cmp:has(input:focus-visible){outline:2px solid var(--logo);outline-offset:4px}
.hm-res__h{display:none}
.hm-fact{display:grid;gap:10px;justify-items:start}
.hm-fact__n{font-family:var(--f-display);font-weight:300;font-size:15px;color:var(--muted)}
.hm-fact__kg{font-family:var(--f-display);font-weight:300;font-size:clamp(56px,7vw,112px);line-height:.95;letter-spacing:-.05em;white-space:nowrap}
.hm-fact__time{font-size:var(--fs-h3);font-family:var(--f-display);font-weight:300;letter-spacing:-.02em}
.hm-pick{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.hm-pick button{min-height:44px;padding:0 16px;border-radius:var(--r-pill);border:1px solid var(--line);background:rgba(248,251,252,.6);font:500 14px var(--f-body);color:var(--ink);cursor:pointer;transition:background var(--t-fast),border-color var(--t-fast)}
.hm-pick button:hover{border-color:var(--ink)}
.hm-pick button[aria-pressed="true"]{background:var(--ink);color:var(--white);border-color:var(--ink)}
.hm-fact .actions{margin-top:14px}

.hm-rail2,.hm-frost{display:none}

/* live mode: the five stops share one sticky stage (computers; phones read a list, see below) */
@media (min-width:761px){
  html.is-live .hm-ch{height:calc((100 + 7.2 * 880 / 10.2) * var(--vh, 1svh))}   /* one screen + the chapters' data-w sum (7.2 since 21.10b, was 10.2) at 880/10.2 screens a unit */
  html.is-live .hm-stage{position:sticky;top:0;height:calc(100 * var(--vh, 1svh));overflow:hidden;background:var(--frost)}
  /* stops are transparent layers on the frost stage: a chapter's text can arrive before its photo */
  html.is-live .hm-stop{position:absolute;inset:0;min-height:0;margin:0;padding:0;display:block;background:none}
  /* the scene starts under the header (always solid): no head or face is ever behind it; the frame follows data-face (b-motion.js) */
  html.is-live .hm-stop .scene-img{top:var(--hb,76px);height:calc(100% - var(--hb,76px))}
  /* the melting edges of a picture that stepped back (b-motion.js frame) */
  /* the melting edges of a picture that stepped back (b-motion.js frame): tiny frost alpha ramps stretched, not CSS gradients —
     a gradient under the rail's live blur re-dithers and shimmers by a shade at rest on a real GPU (Brave/Metal, 21.10) */
  html.is-live .scene-veil{position:absolute;display:block;pointer-events:none;background-repeat:no-repeat;
    --veil-l:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAABCAYAAABubagXAAAAFElEQVR42mN8++nLfwYGhj8jFQMAGB1B2D7bbN8AAAAASUVORK5CYII=);--veil-r:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAABCAYAAABubagXAAAAE0lEQVR42mN8++kLMwMDA8tIxQBQWAPUYf6m9AAAAABJRU5ErkJggg==);
    --veil-t:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAABACAYAAADbER1AAAAAFklEQVR42mN4++nLfyYGBoY/owQ5BADZvUJVUWBqHQAAAABJRU5ErkJggg==);--veil-b:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAABACAYAAADbER1AAAAAFklEQVR42mN4++kLMxMDAwPLKEEOAQBvkwRRCvX2LAAAAABJRU5ErkJggg==)}
  html.is-live .hm-stop .illu{top:calc(var(--hb,76px) + 12px);bottom:auto;left:14px;right:auto}
  /* --hb / --rb (b-motion.js): the header's bottom + 12px and the rail's top − 20px, measured — cards and result live between them */
  html.is-live .hm-col{position:absolute;left:0;bottom:var(--rb,calc(150px + 2 * var(--vh, 1svh)));min-height:0;padding:0}
  /* chapter 2 (client edits 3b): the cards stand left like every chapter, the heroine in the doorway stays clear on the right */
  html.is-live .hm-col--r{margin-left:var(--gutter);margin-right:0}
  html.is-live .hm-res{position:absolute;left:50%;top:calc(var(--hb,76px) + 12px);bottom:var(--rb,150px);transform:translateX(-50%);align-content:center}
  html.is-live .hm-res .cmp{height:min(calc(56 * var(--vh, 1svh)),560px,var(--av,560px))}
  html.is-live .hm-rail2{display:block;position:absolute;z-index:6;left:50%;bottom:clamp(14px,calc(2.4 * var(--vh, 1svh)),26px);transform:translateX(-50%);width:min(var(--wrap),100% - 2*var(--gutter));padding:18px 24px 14px;border-radius:24px}
  html.is-live .hm-frost{display:block;position:absolute;inset:0;width:100%;height:100%;z-index:5;pointer-events:none}
}
/* «Тиждень 1»: on narrow computer windows the plate would cover her hands with the pen — the photo slides right */
@media (min-width:761px) and (max-width:1100px){html.is-live #st-2 .scene-img{object-position:20% 40%}}
/* narrow and low: the rail's labels wrap and the rail grows — the cards sit higher */
@media (min-width:761px) and (max-width:1100px) and (max-height:760px){html.is-live .hm-stage .hm-col{bottom:var(--rb,calc(144px + 2 * var(--vh, 1svh)))}}
/* tablets 761–960: the cards take the left half, like on low computer windows; they sit above the taller rail (its labels wrap here) */
@media (min-width:761px) and (max-width:960px){
  html.is-live .hm-stage .hm-col{width:calc(50% - var(--gutter) - 8px);bottom:var(--rb,calc(178px + 2 * var(--vh, 1svh)))}
  /* the result: photo and numbers side by side as on computers — stacked, the month pills and buttons slid under the rail */
  html.is-live .hm-res{grid-template-columns:auto minmax(0,1fr);justify-items:start;text-align:left;gap:32px}
  html.is-live .hm-res .cmp{height:min(calc(100 * var(--vh, 1svh) - 330px),520px,var(--av,520px))}
  html.is-live .hm-res .hm-fact{justify-items:start}
}
/* laptop windows ≤760 high (client edits 3, 20.10): every chapter fits whole below the header — tighter spacing,
   type and thumbnails; nothing is hidden */
@media (min-width:761px) and (max-height:760px){
  html.is-live .hm-col{bottom:var(--rb,calc(126px + 2 * var(--vh, 1svh)));gap:8px}
  html.is-live .hm-fact{gap:6px}
  html.is-live .hm-fact__kg{font-size:clamp(48px,min(7vw,12vh),112px)}
  html.is-live .hm-fact .actions{margin-top:6px}
  html.is-live .hm-rail2{padding:12px 20px 10px}
  html.is-live .hm-rail2 .rail__stop{gap:6px}
  html.is-live .hm-plate{padding:18px 22px;gap:6px}
  html.is-live .hm-plate h2{font-size:clamp(28px,5.4vh,40px);line-height:1.05}
  html.is-live .hm-plate h3{font-size:16px}
  html.is-live .hm-plate p{font-size:15px;line-height:1.45}
  html.is-live .hm-pill{padding:5px 12px;font-size:13px}
  html.is-live .hm-doc{grid-template-columns:64px 1fr;padding:6px 14px 6px 6px}
  html.is-live .hm-ship{grid-template-columns:60px 1fr;padding:6px 14px 6px 6px}
  /* chapter 2 is the tallest column (plate + thermobox): a wider card wraps the text into fewer lines */
  html.is-live .hm-col--r{width:min(480px,100% - 24px)}
}
/* ≤640 high (1280×600 and the like): the band between header and rail is ~350px — the plates get tighter still */
@media (min-width:961px) and (max-height:640px){
  html.is-live .hm-plate{padding:14px 20px;gap:4px}
  html.is-live .hm-plate p{font-size:14px;line-height:1.4}
}

/* ---------- about: what the clinic is + the two real doctors ---------- */
.about__wrap{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);grid-template-areas:"text docs" "facts docs";grid-template-rows:auto 1fr;gap:clamp(28px,4vw,56px) clamp(28px,5vw,80px);align-items:start}
.about__text-block{grid-area:text}.about__card-part{grid-area:docs}.about-facts{grid-area:facts}
.about__text-block{display:grid;gap:22px;align-content:start;padding-top:clamp(0px,3vw,40px)}
.about__desc{font-size:clamp(19px,1.6vw,24px);line-height:1.45;max-width:36ch;color:var(--muted)}
.about__desc strong{color:var(--ink);font-weight:600}
/* the two ways on: buttons like the first screen's (17.10, the client) — the clinic filled, the programme outlined */
.about__links{display:flex;flex-wrap:wrap;gap:12px}
/* the four facts: cards in the language of «Переваги» (24.10, the client: «просто текстом») — two by two everywhere */
.about-facts{display:grid;align-self:start;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(10px,1.4vw,16px)}
.about-facts__item{padding:clamp(18px,1.8vw,24px) clamp(12px,1.6vw,22px) clamp(20px,2vw,26px);border:1px solid rgba(11,52,70,.11);border-radius:var(--r-card);
  background:linear-gradient(180deg,var(--white) 0%,#e7eef1 100%);display:grid;gap:12px;align-content:start;justify-items:center;text-align:center}
.about-facts__title{display:block;font-family:var(--f-body);font-weight:600;font-size:var(--fs-lead);line-height:1.25;margin-bottom:4px;text-wrap:balance}
.about-facts__text{display:block;color:var(--muted);font-size:var(--fs-small);line-height:1.45;text-wrap:balance}
/* «Переваги» (24.10, the client: «тухло… хотя бы центрируем как на старом, и иконки в цвет»): centred, the icon a filled
   disc from the logo's petrol to a lighter sea-blue, white glyph, soft coloured shadow; the about facts share it */
.advantages__item{justify-items:center;text-align:center}
.advantages__item-title,.advantages__item-text{text-wrap:balance}
.advantages__icon,.about-facts__icon{width:56px;height:56px;margin-bottom:6px;border-radius:50%;display:grid;place-items:center;color:#fff;
  background:linear-gradient(145deg,#0a4a6d 0%,var(--logo) 45%,#2a83ad 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 10px 22px -10px rgba(12,88,129,.6),0 2px 6px -2px rgba(11,52,70,.25)}
.advantages__icon svg,.about-facts__icon svg{width:24px;height:24px}
/* hover (26.10, the user: «как на старом — подсветка-обводка»): the card lifts 6px, a 1px gradient rim (ink → logo → ice,
   mask xor on ::before) fades in, a ring and a soft glow in the icons' blue. Mouse only — touch keeps no stuck state;
   reduced motion: rim and shadow without the lift. Transform only, so the grid never moves. */
@media (hover:hover) and (pointer:fine){
  .advantages__item,.about-facts__item{position:relative;transition:transform .35s ease,box-shadow .35s ease,border-color .35s ease}
  .advantages__item::before,.about-facts__item::before{content:"";position:absolute;inset:-1px;border-radius:inherit;padding:1px;pointer-events:none;
    background:linear-gradient(145deg,rgba(12,88,129,.55),rgba(42,131,173,.18) 50%,rgba(143,208,226,.7));
    -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;
    mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;opacity:0;transition:opacity .35s ease}
  .advantages__item:hover,.about-facts__item:hover{transform:translateY(-6px);border-color:rgba(12,88,129,.16);
    box-shadow:0 16px 48px -6px rgba(11,52,70,.16),0 0 0 1px rgba(143,208,226,.42),0 0 40px rgba(42,131,173,.16)}
  .advantages__item:hover::before,.about-facts__item:hover::before{opacity:1}
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:reduce){
  .advantages__item:hover,.about-facts__item:hover{transform:none}
}
.about__card-part{display:grid;gap:18px}
.about__title--card{font-size:var(--fs-h3);font-weight:300}
.about-doctors{position:relative;display:grid;grid-template-columns:auto auto 1fr;grid-template-areas:"vp vp vp" "prev next dots";gap:16px 10px;align-items:center}
.about-doctors__viewport{grid-area:vp;overflow:hidden;border-radius:30px}
.about-doctors__track{display:flex;transition:transform .7s var(--ease-out)}
.about-doctors__slide{flex:0 0 100%;position:relative}
.about-doctors__arrow{width:48px;height:48px;border-radius:var(--r-control);border:1px solid var(--line);background:var(--white);display:grid;place-items:center;cursor:pointer;transition:background var(--t-fast),border-color var(--t-fast)}
.about-doctors__arrow--prev{grid-area:prev}.about-doctors__arrow--next{grid-area:next}
.about-doctors__arrow:hover{background:var(--ink);border-color:var(--ink)}
.about-doctors__arrow-icon,.gallery__arrow-icon{width:10px;height:10px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateX(2px) rotate(45deg)}
.about-doctors__arrow-icon--rev,.gallery__arrow-icon--rev{transform:translateX(-2px) rotate(-135deg)}
.about-doctors__arrow:hover .about-doctors__arrow-icon,.gallery__arrow:hover .gallery__arrow-icon{color:var(--white)}
.about-doctors__dots,.gallery__dots{grid-area:dots;display:flex;gap:6px;justify-content:flex-end}
.about-doctors__dot,.gallery__dot{width:28px;height:24px;border:0;padding:0;background:none;cursor:pointer;position:relative}
.about-doctors__dot::before,.gallery__dot::before{content:"";position:absolute;left:0;right:0;top:11px;height:2px;border-radius:2px;background:var(--silver);transition:background var(--t-fast)}
.about-doctors__dot.is-active::before,.gallery__dot.is-active::before{background:var(--ink)}

/* ---------- advantages (A3, 14.10): the numbers on a dark ink panel, the six points below as a ruled sheet ---------- */
.advantages__panel{--pad:clamp(28px,5vw,72px);--rule:rgba(248,251,252,.16);display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"head cta" "stats stats";
  gap:0 clamp(28px,6vw,96px);align-items:end;padding:clamp(40px,5vw,72px) var(--pad) 0;border-radius:36px;background:var(--ink);color:var(--white);overflow:hidden}
.advantages__head{grid-area:head;display:grid;gap:12px}
.advantages__eyebrow{order:2;font-size:var(--fs-lead);color:rgba(248,251,252,.74)}
.advantages__cta{grid-area:cta}
.advantages__stats{grid-area:stats;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:clamp(40px,5vw,64px) calc(-1 * var(--pad)) 0;border-top:1px solid var(--rule)}
.advantages__stat{display:grid;align-content:start;gap:14px;padding:clamp(28px,3vw,40px) clamp(16px,2.4vw,36px) clamp(32px,3.4vw,48px);border-left:1px solid var(--rule)}
.advantages__stat:first-child{border-left:0;padding-left:var(--pad)}
.advantages__stat-value{font-family:var(--f-display);font-weight:300;font-size:clamp(40px,4.4vw,68px);letter-spacing:-.05em;line-height:1;white-space:nowrap}
.advantages__stat-text{color:rgba(248,251,252,.74);font-size:var(--fs-small);max-width:24ch}
/* each point is its own light card: hairline, a faint cold fall from near-white to a touch colder than the ground */
.advantages__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,1.6vw,20px);margin-top:clamp(32px,4vw,56px)}

/* ---------- prices: two equal lists of 6, injections on ink, pens on light; button at the bottom of each ---------- */
.prices__list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(14px,2vw,24px);align-items:stretch;margin-top:clamp(28px,4vw,52px)}
.prices__box{border-radius:30px;padding:clamp(24px,3vw,44px);display:flex;flex-direction:column;gap:6px}
.prices__box--inj{background:var(--ink);color:var(--white)}
.prices__box--pens{background:var(--white);box-shadow:inset 0 0 0 1px var(--line)}
.prices__subtitle{font-family:var(--f-body);font-weight:600;font-size:var(--fs-lead);letter-spacing:0;margin-bottom:10px}
.prices__row{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:13px 0;border-bottom:1px solid var(--line)}
.prices__box--inj .prices__row{border-bottom-color:var(--line-dark)}
.prices__name,.prices__value{transition:transform var(--t-med) var(--ease-out),color var(--t-fast)}
.prices__row:hover .prices__name{transform:translateX(6px);color:var(--ink)}
.prices__row:hover .prices__value{transform:translateX(-6px)}
.prices__box--inj .prices__row:hover .prices__name{color:var(--white)}
.prices__name{color:var(--muted);font-size:var(--fs-body)}
.prices__box--inj .prices__name{color:var(--muted-dark)}
.prices__label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.prices__value{font-family:var(--f-display);font-weight:400;font-size:clamp(18px,1.5vw,22px);letter-spacing:-.03em;white-space:nowrap;font-variant-numeric:tabular-nums}
.prices__box--inj .prices__value{color:var(--white)}
.prices__footnote{margin-top:18px;font-size:var(--fs-small);color:var(--muted);max-width:52ch}
.prices__box--inj .prices__footnote{color:var(--muted-dark)}
.prices__cta{margin-top:auto;padding-top:26px}
.prices__box--inj .prices__cta .btn{background:var(--ice);color:var(--ink)}
.prices__box--inj .prices__cta .btn:hover{background:var(--white)}
.prices__box--inj :focus-visible{outline-color:var(--ice)}

/* ---------- pen or programme: the route forks into two formats ---------- */
.pen-vs-program__head{display:grid;gap:12px;justify-items:center;text-align:center}
.pen-vs-program__title{margin-inline:auto}
.pen-vs-program__eyebrow{order:2;font-size:var(--fs-lead);color:var(--muted)}
.pen-vs-program__stage{position:relative;margin-top:clamp(20px,3vw,36px)}
.fork{display:block;width:100%;height:clamp(56px,7vw,96px);overflow:visible}
.fork__line{fill:none;stroke:var(--ink);stroke-width:2;vector-effect:non-scaling-stroke;stroke-dasharray:1;stroke-dashoffset:var(--fork,0)}
.fork__node{fill:var(--ink)}
.pen-vs-program__grid{display:grid;grid-template-columns:1fr auto 1fr;gap:clamp(12px,2vw,24px);align-items:stretch}
.pen-vs-program__card{padding:clamp(26px,3vw,44px);display:grid;align-content:start;gap:12px;border-radius:30px}
.pen-vs-program__card+.pen-vs-program__or+.pen-vs-program__card{background:var(--ink);color:var(--white);-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:0 30px 60px -40px rgba(11,52,70,.6)}
.pen-vs-program__card-title{font-size:var(--fs-h3);font-weight:300}
.pen-vs-program__card-sub{font-size:var(--fs-small);color:var(--muted)}
.pen-vs-program__card-text{color:var(--muted)}
.pen-vs-program__card-text strong{color:var(--ink)}
.pen-vs-program__card-text s{opacity:.7}
.pen-vs-program__or+.pen-vs-program__card .pen-vs-program__card-sub,.pen-vs-program__or+.pen-vs-program__card .pen-vs-program__card-text{color:var(--muted-dark)}
.pen-vs-program__or+.pen-vs-program__card .pen-vs-program__card-text strong{color:var(--white)}
.pen-vs-program__tag{justify-self:start;margin-top:8px;padding:8px 14px;border-radius:var(--r-pill);font-size:var(--fs-micro);font-weight:600;background:var(--mist)}
.pen-vs-program__tag--save{background:var(--ice);color:var(--ink)}
.pen-vs-program__or{align-self:center;font-family:var(--f-display);font-weight:300;font-size:var(--fs-lead);color:var(--muted)}
.pen-vs-program__footer{position:relative;margin-top:clamp(16px,2vw,24px);padding:clamp(22px,2.6vw,32px);display:grid;grid-template-columns:1fr 1fr;gap:12px 48px;color:var(--muted)}
.pen-vs-program__footer strong{color:var(--ink)}

/* ---------- before / after gallery (real photos, lightbox) ---------- */
.gallery__title{margin-bottom:clamp(24px,3vw,44px)}
.gallery__slider{display:grid;grid-template-columns:auto auto 1fr;grid-template-areas:"vp vp vp" "prev next dots";gap:20px 10px;align-items:center}
.gallery__viewport{grid-area:vp;overflow:hidden;margin-right:-16px}
.gallery__track{display:flex;transition:transform .7s var(--ease-out)}
.gallery__slide{flex:0 0 50%;padding-right:16px}
.gallery__card{display:grid;gap:14px;width:100%;padding:0;border:0;background:none;text-align:left;cursor:zoom-in}
.gallery__media{aspect-ratio:3/2;border-radius:26px;overflow:hidden;background:var(--mist);box-shadow:inset 0 0 0 1px var(--line)}
.gallery__media img{width:100%;height:100%;object-fit:cover;transition:transform var(--t-slow) var(--ease-out)}
.gallery__card:hover .gallery__media img{transform:scale(1.025)}
.gallery__caption{font-family:var(--f-display);font-weight:300;font-size:clamp(17px,1.4vw,21px);letter-spacing:-.02em;padding-inline:4px}
.gallery__arrow{width:48px;height:48px;border-radius:var(--r-control);border:1px solid var(--line);background:var(--white);display:grid;place-items:center;cursor:pointer;transition:background var(--t-fast),border-color var(--t-fast)}
.gallery__arrow--prev{grid-area:prev}.gallery__arrow--next{grid-area:next}
.gallery__arrow:hover{background:var(--ink);border-color:var(--ink)}

/* ---------- three medicines on equal terms ---------- */

/* ---------- safety: the promise, on ink; the route runs down the four promises ---------- */
.safety{background:var(--ink);color:var(--white)}
.safety__panel{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(28px,6vw,96px);align-items:start;background:none;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;border-radius:0}
.safety__panel::before{display:none}
.safety__title{position:sticky;top:120px;font-size:clamp(32px,3.8vw,56px)}
.safety__grid{position:relative;display:grid;gap:clamp(28px,4vw,48px);padding-left:44px;--p:1}
.safety__grid::before,.safety__grid::after{content:"";position:absolute;left:9px;top:10px;bottom:10px;width:2px;border-radius:2px;background:var(--line-dark)}
.safety__grid::after{background:var(--ice);transform-origin:50% 0;transform:scaleY(var(--p))}
.safety__item{position:relative;display:grid;gap:8px}
.safety__item::before{content:"";position:absolute;left:-44px;top:4px;width:20px;height:20px;border-radius:50%;background:var(--ink);box-shadow:inset 0 0 0 2px var(--ice);z-index:1}
.safety__item-title{font-size:var(--fs-h3);font-weight:300}
.safety__item-text{color:var(--muted-dark);max-width:52ch}
.safety__note{grid-column:2;padding:18px 0 0 44px;color:var(--muted-dark);font-size:var(--fs-small)}
.safety__note a{color:var(--ice)}
.safety :focus-visible{outline-color:var(--ice)}

/* ---------- FAQ (.faq__item/.faq__q/.faq__a feed the FAQ JSON-LD) ---------- */
.faq__wrap{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,7fr);gap:clamp(24px,5vw,80px);align-items:start}
.faq__side{position:sticky;top:120px;display:grid;gap:24px;justify-items:start}

/* ---------- CTA: the heroine at the mirror (illustration) beside the offer ---------- */
.cta-banner__panel{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);border-radius:36px;overflow:hidden;background:var(--ink);color:var(--white);min-height:min(520px,calc(70 * var(--vh, 1svh)))}
.cta-banner__copy{display:grid;gap:18px;align-content:center;justify-items:start;padding:clamp(28px,4vw,64px)}
.cta-banner__copy h2{font-size:clamp(30px,3.4vw,50px);font-weight:300;line-height:1.1}
.cta-banner__copy h2 strong{font-weight:500;color:var(--ice);white-space:nowrap}
.cta-banner__sub{color:var(--muted-dark);max-width:34ch}
.cta-banner__scene{position:relative;min-height:320px}
.cta-banner__scene .scene-img{object-position:62% 35%}
.cta-banner__scene::before{content:"";position:absolute;inset:0 auto 0 0;width:28%;z-index:1;background:linear-gradient(90deg,var(--ink),rgba(11,52,70,0))}
.cta-banner :focus-visible{outline-color:var(--ice)}

.blog__all{margin-top:28px}

/* ---------- reviews: the real screenshots, framed like a phone screen ---------- */
.reviews__title{margin-bottom:clamp(24px,3vw,44px)}

/* ---------- contacts ---------- */
.contacts__wrap{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(24px,4vw,64px);align-items:stretch}
.contacts__info{display:grid;gap:12px;align-content:start;justify-items:start}
.contacts__title{margin-bottom:12px}
.contacts__brand{font-size:var(--fs-small);color:var(--muted)}
.contacts__hours,.contacts__address{color:var(--muted)}
.contacts__map{border-radius:32px;overflow:hidden;min-height:420px;background:var(--mist);box-shadow:inset 0 0 0 1px var(--line)}
.contacts__map iframe{display:block;width:100%;height:100%;min-height:420px;border:0;filter:saturate(.55) contrast(1.03)}

/* modal photo: the doctor's consultation scene; screenshot lightbox without gallery arrows */

/* ---------- responsive ---------- */
@media (max-width:960px){
  .hm-hero__photo{inset:0 0 0 20%}
  .hm-res{grid-template-columns:1fr;justify-items:center;text-align:center}
  .hm-fact{justify-items:center}
  .about__wrap{grid-template-areas:"text" "docs" "facts"}
  .about__wrap,.advantages__panel,.prices__list,.safety__panel,.faq__wrap,.contacts__wrap,.cta-banner__panel{grid-template-columns:1fr}
  .advantages__panel{grid-template-areas:"head" "cta" "stats"}
  .advantages__cta{margin-top:24px}
  .advantages__stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .advantages__stat:nth-child(odd){border-left:0;padding-left:var(--pad)}
  .advantages__stat:nth-child(n+3){border-top:1px solid var(--rule)}
  .advantages__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .about__card-part{max-width:460px}
  .pen-vs-program__grid{grid-template-columns:1fr}
  .pen-vs-program__or{justify-self:center}
  .pen-vs-program__footer{grid-template-columns:1fr}
  .fork{display:none}
  .safety__title,.faq__side{position:static}
  .safety__note{grid-column:auto}
  .cta-banner__scene{min-height:300px;order:-1}
  .cta-banner__scene::before{inset:auto 0 0;width:auto;height:40%;background:linear-gradient(0deg,var(--ink),rgba(11,52,70,0))}
}
/* first screen 961–1100 (story-hero3: the patient's pen at 40% of the photo, the doctor's face ends at 83%): the photo starts under the header,
   its right edge is pinned so the doctor's face ends ~12px from the screen edge (30.1cqh = (1 − .832) × 2400/1340 × height), the title wraps narrower */
@media (min-width:961px) and (max-width:1100px){
  .hm-hero__photo{top:72px;container-type:size}
  .hm-hero__photo .scene-img{object-position:right calc(12px - 30.1cqh) top 0;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 14%),linear-gradient(180deg,#000 72%,transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent 0,#000 14%),linear-gradient(180deg,#000 72%,transparent);mask-composite:intersect}
  .hm-hero__photo .illu{top:14px}
  .promo__title{max-width:9.4em}
}
/* tablets 761–960: the first screen as on the phone — the whole photo on top (full width, 2400×1340), the text under it */
@media (min-width:761px) and (max-width:960px){
  .hm-hero{display:flex;flex-direction:column;padding-top:64px}
  .hm-hero__wrap{display:flex;flex:1;align-items:center}
  .hm-hero__photo{position:relative;inset:auto;height:calc(100vw * 1340 / 2400);margin:0}
  .hm-hero__photo .scene-img{object-position:50% 0;-webkit-mask-image:linear-gradient(180deg,#000 80%,transparent);mask-image:linear-gradient(180deg,#000 80%,transparent)}
  .hm-hero__photo .illu{top:14px}
  .hm-hero__text{padding:0 0 32px;margin-top:-12px;max-width:640px;position:relative}
}
@media (min-width:960px) and (max-width:960px){.hm-hero{padding-top:76px}}
@media (max-width:599px){
  .gallery__slide{flex-basis:100%}
}
@media (max-width:760px){
  /* no live blur on phones (see .glass in b-base.css) */
  .illu,.cmp__tag,.about__card{-webkit-backdrop-filter:none;backdrop-filter:none;background:rgba(244,248,250,.94)}
  /* first screen: price and «Записатися» above the fold on 390×844 and 360×740 — the offer comes right after the title */
  .hm-hero__photo{height:calc(34 * var(--vh, 1svh))}
  .hm-hero__text{display:flex;flex-direction:column}
  .promo__title{order:1}.promo__offer{order:2}.promo__sub{order:3}.hm-hero__text .actions{order:4}.promo__discount-note{order:5}.promo__lead{order:6}.promo__tags{order:7}
  .promo__lead{font-size:16px}
  .hm-hero .actions .btn{min-height:48px;padding:0 20px}
  .promo__heading strong{font-size:1.45em}
  .hm-hero{padding-top:64px}
  .hm-hero__photo{position:relative;inset:auto;height:calc(44 * var(--vh, 1svh));margin:0}
  .hm-hero__photo .scene-img{-webkit-mask-image:linear-gradient(180deg,#000 70%,transparent);mask-image:linear-gradient(180deg,#000 70%,transparent);object-position:72% 30%}
  .hm-hero{display:block}
  .hm-hero__wrap{display:block}
  .hm-hero__text{padding:0 0 20px;margin-top:-28px;gap:14px;position:relative}
  .promo__title{font-size:clamp(27px,7.6vw,34px)}
  .hm-hero__photo .illu{top:12px}
  .hm-col,.hm-col--r{width:auto;margin-inline:12px}
  .hm-doc{grid-template-columns:72px 1fr;padding:6px 14px 6px 6px}
  .hm-doc p{font-size:14px}
  .hm-plate h2{font-size:30px}
  .cmp{height:auto;width:min(100%,340px);max-height:calc(46 * var(--vh, 1svh))}
  .hm-fact__kg{font-size:clamp(48px,14vw,64px)}
  .hm-fact__time{font-size:20px}
  .hm-fact .actions{justify-content:center}
  .scene-img--door{object-position:57% 40%}
  .about-facts__title{font-size:16px}
  .about-facts__text{font-size:14px}
  .advantages__grid{grid-template-columns:1fr;gap:12px}
  /* the panel runs edge to edge on phones: two columns of big numbers on thin rules */
  .advantages__panel{--pad:var(--gutter);margin-inline:calc(-1 * var(--gutter));padding-top:48px;border-radius:0}
  .advantages__stat{padding:22px 14px 26px;gap:10px}
  .advantages__stat-value{font-size:clamp(34px,10.4vw,52px)}
  .advantages__stat-text{font-size:14px;line-height:1.4}
  .safety__grid{padding-left:38px}
  .safety__item::before{left:-38px}
  .safety__note{padding-left:38px}
  .contacts__map,.contacts__map iframe{min-height:300px}
  .contacts__phone{font-size:clamp(26px,7.6vw,34px)}
}

/* where the heroine stands in each scene: keep her in frame on 390/360 */
@media (max-width:760px){
  .hm-hero__photo .scene-img{object-position:80% 28%}
}

/* ---------- phones (≤760): the story is a plain list of steps on the route line (16.10, the user: «something simple») ----------
   Every chapter's words are on the page at once: a small scene photo (64–96 px, 132 on wide phones) with the chapter's number and title beside it,
   its text below, the thermobox as a mini card (no doctors in the list since 17.10); one thin route line with a node per step
   (the line of the safety list), which with motion fills as you read, as the safety one does. Nothing is pinned — the same
   with JS, without JS and with reduced motion (there the line is simply whole). The result is the fifth step on the same line (17.10). */
@media (max-width:760px){
  .hm-ch{padding-top:56px}
  .hm-stage{position:relative;padding:0 var(--gutter)}
  .hm-stop:not(.hm-stop--result){position:relative;overflow:visible;display:grid;grid-template-columns:var(--th) minmax(0,1fr);column-gap:16px;align-content:start;--th:clamp(64px,20vw,96px);
    margin:0 0 0 38px;padding:0 0 40px}
  .hm-stop+.hm-stop{margin-top:0}
  /* the route: a node per step, the line runs from node to node down to the result's node */
  .hm-stop:not(.hm-stop--result)::before{content:"";position:absolute;left:-29px;top:10px;bottom:-14px;width:2px;border-radius:2px;background:var(--line)}
  /* with motion the line fills down to the result as you read, like the safety list's (b-motion.js sets --rl and --p) */
  .hm-stage::after{content:"";position:absolute;z-index:0;left:calc(var(--gutter) + 9px);top:14px;width:2px;height:var(--rl,0);border-radius:2px;background:var(--ink);transform-origin:50% 0;transform:scaleY(var(--p,1))}
  .hm-stop::after{content:"";position:absolute;left:-38px;top:4px;width:20px;height:20px;border-radius:50%;background:var(--ink);box-shadow:inset 0 0 0 2px var(--ice);z-index:1}
  .hm-stop:not(.hm-stop--result) .scene-img{position:relative;inset:auto;grid-column:1;grid-row:1 / span 2;align-self:start;width:var(--th);height:var(--th);border-radius:16px}
  #st-0 .scene-img{object-position:80% 40%}
  #st-1 .scene-img{object-position:62% 40%}
  #st-2 .scene-img{object-position:60% 35%}
  #st-3 .scene-img{object-position:76% 30%}
  /* one honest mark for the photos of the list, above the first step */
  .hm-stop .illu{display:none}
  #st-0 .illu{display:block;top:-38px;right:0;bottom:auto}
  /* the chapter's words: the sheet's boxes step aside, their parts sit on the step's grid */
  .hm-stop .hm-col,.hm-stop .hm-plate{display:contents}
  .hm-stop .hm-plate::before{display:none}
  .hm-stop .hm-plate__n{grid-column:2;grid-row:1;align-self:end;font-size:13px;line-height:1.2}
  /* the longest word of any step (RU «Консультация», 8.07em) fits the column beside the photo: column = 72vw - 54px */
  .hm-stop .hm-plate h2{grid-column:2;grid-row:2;align-self:start;margin-top:6px;font-size:clamp(20px,calc(8.6vw - 7px),28px);line-height:1.08}
  .hm-stop .hm-pill,.hm-stop .hm-plate h3,.hm-stop .hm-plate p:not(.hm-plate__n),.hm-stop .hm-doc,.hm-stop .hm-ship{grid-column:1 / -1}
  .hm-stop .hm-pill{margin-top:16px;padding:8px 14px;font-size:14px;font-weight:500}
  .hm-stop .hm-plate h3{margin-top:16px;font-size:17px}
  .hm-stop .hm-plate p:not(.hm-plate__n):not(.hm-pill){margin-top:4px;font-size:16px;line-height:1.5}
  /* no doctors in the phone list (17.10, the client): the thermobox stays as a mini card under the step's text */
  .hm-stop .hm-doc{display:none}
  .hm-stop .hm-ship{order:1;margin-top:16px;justify-self:stretch}
  .hm-ship{grid-template-columns:72px 1fr;padding:6px 14px 6px 6px}
  .hm-ship p{font-size:14px}
  .hm-ship b{font-size:15px}
  /* the result is the fifth step on the line (17.10, the client): node, heading above the photos, everything in the step's column */
  #st-4{position:relative;overflow:visible;margin:0 0 0 38px;padding:0 0 72px;background:none}
  /* its heading reads like the other steps': the small «5 з 5» above, the big title below (19.10, the client) */
  #st-4 .hm-res__h{display:block;margin-bottom:16px;padding-top:6px}
  #st-4 .hm-res__n{font-family:var(--f-display);font-weight:300;font-size:13px;line-height:1.2;color:var(--muted)}
  #st-4 .hm-res__h h2{margin-top:6px;font-size:clamp(20px,calc(8.6vw - 7px),28px);font-weight:300;line-height:1.08}
  #st-4 .hm-res{width:100%;gap:18px;justify-items:stretch;text-align:left}
  /* the line goes on from the fifth node down the left edge of the before/after and ends at its bottom (17.10, the client):
     one piece beside the heading, one beside the photos — same height formula as .cmp below, so it needs no script */
  #st-4 .hm-res__h{position:relative}
  #st-4 .hm-res__h::before,#st-4 .hm-res::before{content:"";position:absolute;left:-29px;width:2px;border-radius:2px;background:var(--line)}
  #st-4 .hm-res__h::before{top:10px;bottom:-16px}
  #st-4 .hm-res::before{top:0;height:max(360px,min(calc(56 * var(--vh, 1svh)),560px))}
  #st-4 .cmp{width:100%;height:min(calc(56 * var(--vh, 1svh)),560px);min-height:360px;max-height:none;aspect-ratio:auto;border-radius:20px;box-shadow:none}
  #st-4 .cmp img{object-position:50% 22%}
  html.js #st-4 .cmp input{pointer-events:none}
  #st-4 .hm-fact{padding-inline:0;justify-items:start}
  #st-4 .hm-fact__n{display:none}
  #st-4 .hm-pick{gap:6px}
  #st-4 .hm-pick button{padding:0 12px}
  #st-4 .hm-fact .actions{justify-content:flex-start;justify-self:stretch;flex-direction:column}
  #st-4 .hm-fact .actions .btn{width:100%;padding:0 16px;text-wrap:balance}
  #st-4 .hm-fact .btn--outline{display:inline-flex}
  .about__links{flex-direction:column}
  .about__links .btn{width:100%}
}
@media (min-width:560px) and (max-width:760px){
  .hm-stop:not(.hm-stop--result){--th:132px;column-gap:20px}
  .hm-stop:not(.hm-stop--result) .scene-img{border-radius:20px}
  .hm-stop .hm-plate h2{font-size:34px}
  .hm-stop .hm-plate h3{font-size:20px}
  .hm-stop .hm-plate p:not(.hm-plate__n):not(.hm-pill){font-size:18px}
  #st-4 .hm-res{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center}
  #st-4 .cmp{align-self:start}
  #st-4 .hm-res::before{height:min(calc(56 * var(--vh, 1svh)),560px)}
  #st-4 .hm-res__h h2{font-size:34px}
  #st-4 .cmp{border-radius:30px;min-height:0}
  .prep-card{grid-template-columns:minmax(0,2fr) minmax(0,3fr)}
  /* wide phones: big pictures below the story leave room for their words on the same screen */
  .about__photo-wrap{aspect-ratio:4/3}
  .cta-banner__scene{min-height:240px;max-height:240px}
  .review-card{aspect-ratio:1/1}
}
