/* Kodirov site. Phone first (390 px), then tablet and desktop. Brand: cyan #00AFD7, navy #14212C, cream poster
   background, Anton headlines (Sofia Sans Extra Condensed on the Russian page: Anton has no Cyrillic, Oswald's У hangs low), Onest text (KS-6: Geist read as an AI-template default). */
:root {
  --cyan: #00AFD7;
  --cyan-ink: #00799A;
  --navy: #14212C;
  --ink2: #4E5B6B;
  --cream: #F1EBE2;
  --cream2: #F7F3ED;
  --line: #E2DACE;
  --white: #FFFFFF;
  --err: #C62828;
  --head: Anton, "Sofia Sans Extra Condensed", "Onest", sans-serif;
  --text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --plaque: Montserrat, "Onest", sans-serif;
  --r: 18px;
  /* motion: strong ease-out for fades and reveals, ease-in-out for things travelling on screen, the iOS drawer curve
     for the bar; --land = a cubic ease-out cut at 72 % of its time: things land firmly with a little speed left, no
     overshoot and no crawl over the last pixels (owner 2026-10-31: no micro-jitter) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --land: linear(0, 0.1065, 0.2053, 0.2968, 0.3811, 0.4587, 0.5297, 0.5945, 0.6534, 0.7066, 0.7544, 0.7972, 0.8351,
    0.8685, 0.8977, 0.9229, 0.9445, 0.9627, 0.9779, 0.9902, 1);
  color-scheme: light;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--text); color: var(--navy); background: var(--white); font-size: 17px; line-height: 1.55; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: rgba(0, 175, 215, .3); color: var(--navy); }
.wrap {
  width: 100%; max-width: 1240px; margin: 0 auto;
  padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 820px; }
/* the ring in cyan-ink: plain cyan is ~2.2:1 on cream and white, under the 3:1 a focus ring needs (WCAG 1.4.11) */
:focus-visible { outline: 3px solid var(--cyan-ink); outline-offset: 3px; border-radius: 6px; }
#main:focus { outline: none; }
.skip { position: absolute; left: 12px; top: 10px; z-index: 50; padding: 10px 18px; border-radius: 99px;
  background: var(--navy); color: var(--white); font-weight: 600; text-decoration: none; transform: translateY(-180%); }
.skip:focus { transform: none; }

/* headlines */
.H { font-family: var(--head); font-weight: 400; line-height: .95; letter-spacing: .3px; color: var(--navy);
  text-transform: uppercase; }
.H > span { display: block; }
.H { text-wrap: balance; }
.lead, .qa p, .faq p, .vid-cap .vid-t { text-wrap: pretty; }
.H .c { color: var(--cyan); }
.H.sm { font-size: clamp(36px, 9vw, 64px); }
html[lang="ru"] .H { font-family: "Sofia Sans Extra Condensed", "Onest", sans-serif; font-weight: 900; letter-spacing: 0; }
.lead { color: var(--ink2); font-size: 18px; margin-top: 12px; max-width: 62ch; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px;
  padding: 14px 24px; border-radius: 99px; font-weight: 600; font-size: 17px; text-decoration: none; white-space: nowrap;
  border: 0; cursor: pointer; font-family: inherit;
  transition: transform .16s var(--ease-out), background-color .2s ease, border-color .2s ease; }
.btn:active { transform: scale(.97); }
.btn img { width: 20px; height: 20px; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-cyan { background: var(--cyan); color: var(--navy); }
.btn-line { background: var(--white); color: var(--navy); border: 1.5px solid #CFE3EA; }
.wide { width: 100%; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(241, 235, 226, .94); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(20, 33, 44, .06); }
.top-in { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; }
.brand strong { display: block; font-size: 16px; line-height: 1.2; }
.brand small { display: block; font-size: 13px; color: var(--ink2); }
.nav { display: none; gap: 26px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--cyan-ink); }
.lang { font-weight: 700; font-size: 14px; text-decoration: none; border: 1.5px solid var(--navy); border-radius: 99px;
  padding: 6px 12px; min-height: 40px; display: inline-flex; align-items: center; }
.top-cta { display: none; min-height: 44px; padding: 10px 20px; font-size: 15px; }

/* hero */
.hero { background: var(--cream); padding: 22px 0 34px; overflow: hidden; }
.hero-in { display: grid; gap: 22px; }
.hero h1 { font-size: clamp(56px, 16.5vw, 132px); }
html[lang="ru"] .hero h1 { font-size: clamp(46px, 15vw, 118px); }  /* «ПЛАСТИЧЕСКИЙ» ≈ 5.5 em wide: fits 320 px */
.hero-media { position: relative; margin-inline: calc(50% - 50vw); }  /* full bleed out of the padded wrap */
/* the operating-room video melts into the cream page (client 2026-11-28): a full-width band with eased fades top and
   bottom on a phone, the whole right half with a fade on its left edge on desktop */
.hero-vid { position: relative; aspect-ratio: 1; overflow: hidden; overflow: clip; background: #BFE3EC; }
.hero-vid video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 45% 40%; }
.hero-vid { -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.26) 6%, rgba(0, 0, 0, 0.6) 12%, rgba(0, 0, 0, 0.84) 18%, rgba(0, 0, 0, 0.96) 23%, rgba(0, 0, 0, 1) 27%, rgba(0, 0, 0, 1) 76%, rgba(0, 0, 0, 0.96) 80%, rgba(0, 0, 0, 0.84) 85%, rgba(0, 0, 0, 0.6) 91%, rgba(0, 0, 0, 0.26) 96%, rgba(0, 0, 0, 0) 100%); mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.26) 6%, rgba(0, 0, 0, 0.6) 12%, rgba(0, 0, 0, 0.84) 18%, rgba(0, 0, 0, 0.96) 23%, rgba(0, 0, 0, 1) 27%, rgba(0, 0, 0, 1) 76%, rgba(0, 0, 0, 0.96) 80%, rgba(0, 0, 0, 0.84) 85%, rgba(0, 0, 0, 0.6) 91%, rgba(0, 0, 0, 0.26) 96%, rgba(0, 0, 0, 0) 100%); }
.pv { position: absolute; left: 50%; bottom: 20px; translate: -50% 0; display: flex; align-items: center;
  gap: 10px; background: var(--white); padding: 7px 18px 7px 7px; border-radius: 99px; font-weight: 600; font-size: 15px;
  text-decoration: none; white-space: nowrap; box-shadow: 0 14px 34px rgba(14, 42, 58, .22);
  transition: transform .16s var(--ease-out); }
.pv:active { transform: scale(.97); }
.pv i { width: 40px; height: 40px; border-radius: 50%; background: var(--cyan); display: grid; place-items: center; }
.pv i img { width: 18px; height: 18px; margin-left: 2px; }
.qa { display: grid; gap: 10px; }
.qa-row { display: grid; gap: 6px; }
.plq { display: inline-block; justify-self: start; background: var(--cyan); color: var(--navy); font-family: var(--plaque);
  font-weight: 900; font-size: 17px; padding: 10px 16px; border-radius: 12px; letter-spacing: .2px; }
.qa p { font-size: 17px; font-weight: 500; }
.src { font-size: 14px; color: var(--ink2); }
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.acts .btn-navy { position: relative; overflow: hidden; }
.acts .btn-navy { grid-column: 1 / -1; }
.tel { font-size: 15px; color: var(--ink2); display: flex; gap: 16px; flex-wrap: wrap; }
.tel a { text-decoration: none; font-weight: 600; color: var(--navy); }

/* sections */
.sec { padding: 64px 0; }
.cream { background: var(--cream2); }
.doc-in { display: grid; gap: 26px; align-items: center; }
.doc-ph { width: 100%; max-width: 340px; justify-self: center; border-radius: 28px; aspect-ratio: 3 / 4; object-fit: cover;
  object-position: 50% 20%; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.facts div { background: var(--cream); border-radius: var(--r); padding: 14px 12px; }
.facts b { display: block; font-family: var(--head); font-weight: 400; font-size: 34px; line-height: 1; }
html[lang="ru"] .facts b { font-family: "Sofia Sans Extra Condensed", sans-serif; font-weight: 900; }
.facts span { font-size: 14px; color: var(--ink2); }
.ops { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.op { width: 100%; height: 100%; text-align: left; background: var(--cream2); border: 1.5px solid transparent;
  border-radius: var(--r); padding: 16px 14px; font: inherit; color: inherit; cursor: pointer; display: grid; gap: 4px;
  position: relative; transition: border-color .2s ease, transform .2s var(--ease-out); }
.op b { font-size: 16px; line-height: 1.25; overflow-wrap: break-word; hyphens: auto; }
.op span { font-size: 14px; color: var(--ink2); }
.op em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--cyan-ink); margin-top: 6px; }
.op:active { transform: scale(.98); }
.vids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.vid { position: relative; display: block; border-radius: var(--r); overflow: hidden; text-decoration: none;
  background: var(--navy); aspect-ratio: 9 / 16; }
.vid.wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.vid img { width: 100%; height: 100%; object-fit: cover; }
.vid-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 12px 12px; color: var(--white);
  background: linear-gradient(0deg, rgba(14, 33, 44, .85), rgba(14, 33, 44, 0)); }
.vid-cap .vid-t { display: block; margin: 0; font-size: 14px; line-height: 1.25; font-weight: 700; }
.vid-cap small { font-size: 13px; opacity: .85; }
.vid .play { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--cyan); display: grid; place-items: center; }
.vid .play img { width: 18px; height: 18px; margin-left: 2px; }
.faq { margin-top: 22px; display: grid; gap: 10px; }
.faq details { background: var(--cream2); border-radius: var(--r); padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex;
  justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq .pm { position: relative; flex: none; width: 16px; height: 16px; margin-top: 4px; }
.faq .pm::before, .faq .pm::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px;
  border-radius: 2px; background: var(--cyan-ink); transition: transform .28s var(--ease-out); }
.faq .pm::after { transform: rotate(90deg); }
.faq details[open]:not(.shut) .pm::after { transform: rotate(180deg); }
.faq .ans { overflow: hidden; }
.faq details p { padding: 0 0 16px; color: var(--ink2); }

/* form */
.form-in { display: grid; gap: 30px; }
.contacts { margin-top: 26px; display: grid; gap: 6px; }
.contacts h3 { font-family: var(--head); font-weight: 400; font-size: 28px; letter-spacing: .3px; }
html[lang="ru"] .contacts h3 { font-family: "Sofia Sans Extra Condensed", sans-serif; font-weight: 900; }
.contacts p { color: var(--ink2); }
.contacts .ph { font-size: 22px; font-weight: 700; text-decoration: none; }
.contacts .links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.contacts .links a { display: flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.lead-form, form.lead { background: var(--white); border-radius: 26px; padding: 22px 18px; display: grid; gap: 14px;
  box-shadow: 0 20px 60px rgba(14, 42, 58, .1); }
.f { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.f[hidden] { display: none; }
.f input, .f select, .f textarea { font: inherit; font-weight: 400; font-size: 17px; color: var(--navy);
  border: 1.5px solid #7D8A97; border-radius: 14px; padding: 13px 14px; background: var(--white); width: 100%;
  caret-color: var(--cyan-ink); transition: border-color .2s ease, outline-color .2s ease, color .2s ease; }
.f.wait select { color: transparent; }
.f.hit select { border-color: var(--cyan); outline: 3px solid rgba(0, 175, 215, .25); }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--cyan); outline: 3px solid rgba(0, 175, 215, .25); }
.f.bad input, .f.bad select, .f.bad textarea { border-color: var(--err); }
.er { color: var(--err); font-weight: 500; font-size: 14px; min-height: 0; }
.ck { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink2); }
.ck input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--cyan-ink); flex: none; }
.ck a { color: var(--cyan-ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { font-weight: 600; }
.text-link { color: var(--cyan-ink); }
.msg.ok { color: #1B7A47; }
.msg.bad { color: var(--err); }
form.lead { position: relative; }
form.lead button[type=submit] { position: relative; clip-path: inset(0 0 0 0 round 99px); }
.b-txt { transition: opacity .15s ease; }
.b-ok { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; opacity: 0; }
/* sent: the fields fade where they are (the card keeps its size), the button closes into a cyan circle, travels to the
   middle of the card and the check wipes in; the message rides under it (both move by --dy, set in motion.js) */
form.lead.sent > :not(button):not(.msg) { opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s; }
form.lead.sent button[type=submit] { cursor: default; background: var(--cyan);
  clip-path: inset(0 calc(50% - var(--r, 27px)) 0 calc(50% - var(--r, 27px)) round 99px);
  transform: translateY(var(--dy, 0px)) scale(1.2);
  transition: clip-path .35s var(--ease-out), background-color .25s ease, transform .55s var(--ease-in-out) .08s; }
form.lead.sent .b-txt { opacity: 0; }
form.lead.sent .b-ok { opacity: 1; animation: k-wipe .3s var(--ease-out) .42s both; }
form.lead.sent { padding-bottom: 36px; }
form.lead.sent .msg { position: absolute; left: 18px; right: 18px; top: var(--my, auto); text-align: center;
  transform: translateY(var(--dy, 0px)); animation: k-msg .4s var(--ease-out) .45s both; }
/* busy: a light band runs across the button while the request is on its way */
form.lead button.busy::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%);
  animation: k-sweep 1.1s linear infinite; }
/* the operation name flying from its card to the form field (motion.js) */
.fly { position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; padding: 8px 14px; border-radius: 99px;
  background: var(--cyan); color: var(--navy); font-weight: 600; font-size: 16px; line-height: 1.25; white-space: nowrap;
  box-shadow: 0 12px 30px rgba(14, 42, 58, .22); will-change: transform, translate; animation: k-pill .1s var(--ease-out) both; }
.fly.land { opacity: 0; transition: opacity .26s ease; }

/* privacy */
.prose p { margin-top: 16px; max-width: 70ch; }
.prose .btn { margin-top: 10px; }

/* footer + phone bar */
.foot { background: var(--navy); color: #C9D3DC; padding: 26px 0 96px; font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot a { color: var(--white); }
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
  padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  background: rgba(255, 255, 255, .96); box-shadow: 0 -8px 30px rgba(14, 42, 58, .12); }
.bar .btn { min-height: 48px; padding: 10px 14px; }
.bar-js .bar { transform: translateY(calc(100% + 12px)); visibility: hidden;
  transition: transform .28s var(--ease-drawer), visibility 0s linear .28s; }
.bar-js .bar.on { transform: none; visibility: visible; transition: transform .4s var(--ease-drawer); }

/* the smallest phones (320 px): «Abdominoplastika» in a half-width tile, «КОНСУЛЬТАЦИЮ» in a 36 px headline and the
   one-line «Записаться на консультацию» are wider than the screen; one tile per row, 30 px headlines, buttons may take
   two lines (from 360 px on nothing changes; the home first screen is client-approved and keeps its own buttons) */
@media (max-width: 359px) {
  .H.sm { font-size: 30px; }
  .ops { grid-template-columns: minmax(0, 1fr); }
  :is(.op-page, form.lead) .btn { white-space: normal; text-align: center; line-height: 1.3; }
}
@media (min-width: 720px) {
  .acts { display: flex; flex-wrap: wrap; }
  .ops { grid-template-columns: repeat(4, 1fr); }
  .vids { grid-template-columns: 2fr 1fr 1fr 1fr; align-items: stretch; }
  .vid.wide { grid-column: auto; aspect-ratio: auto; }
  .vid.wide img { object-position: 0 50%; }
  .form-in { grid-template-columns: 1fr 1fr; align-items: start; }
  form.lead { padding: 30px 28px; }
  form.lead.sent { padding-bottom: 44px; }
}
@media (min-width: 1000px) {
  body { font-size: 18px; }
  .nav { display: flex; }
  .top-cta { display: inline-flex; }
  .top-in { height: 76px; gap: 26px; }
  .hero { padding: 54px 0 64px; }
  .hero-in { grid-template-columns: minmax(0, 1fr) 470px; grid-template-areas: "h m" "q m" "a m" "t m";
    column-gap: 56px; row-gap: 22px; align-items: start; }
  .hero h1 { grid-area: h; font-size: clamp(100px, 9.2vw, 134px); }
  html[lang="ru"] .hero h1 { font-size: min(104px, calc((50vw - 18px) / 5.9)); }  /* ends before the video starts */
  .hero { position: relative; }
  .hero-in { grid-template-columns: minmax(0, calc(50vw - max(18px, (100vw - 1240px) / 2 + 18px) + 56px)) minmax(0, 1fr); }
  .hero h1, .hero .qa, .hero .acts, .hero .tel { position: relative; z-index: 1; }  /* above the video */
  .hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; margin-inline: 0; }  /* the grid keeps its empty column «m» */
  .hero-vid { position: absolute; inset: 0; aspect-ratio: auto; }
  .hero-vid video { object-position: 40% 50%; }
  .hero-vid { -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.03) 4%, rgba(0, 0, 0, 0.12) 9%, rgba(0, 0, 0, 0.28) 15%, rgba(0, 0, 0, 0.48) 21%, rgba(0, 0, 0, 0.68) 27%, rgba(0, 0, 0, 0.84) 33%, rgba(0, 0, 0, 0.94) 39%, rgba(0, 0, 0, 0.99) 44%, rgba(0, 0, 0, 1) 48%); mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.03) 4%, rgba(0, 0, 0, 0.12) 9%, rgba(0, 0, 0, 0.28) 15%, rgba(0, 0, 0, 0.48) 21%, rgba(0, 0, 0, 0.68) 27%, rgba(0, 0, 0, 0.84) 33%, rgba(0, 0, 0, 0.94) 39%, rgba(0, 0, 0, 0.99) 44%, rgba(0, 0, 0, 1) 48%); }
  .pv { bottom: 40px; }
  .qa { grid-area: q; }
  .qa-row { grid-template-columns: 300px 1fr; align-items: center; gap: 18px; }
  .plq { font-size: 19px; padding: 12px 18px; justify-self: stretch; }
  .acts { grid-area: a; }
  .tel { grid-area: t; }
  .doc-in { grid-template-columns: 420px 1fr; gap: 56px; }
  .doc-ph { max-width: 420px; }
  .bar { display: none; }
  .foot { padding-bottom: 28px; }
  .op:hover { border-color: var(--cyan); }
  .btn-navy:hover { background: #22364A; }
  .btn-cyan:hover { background: #00A0C4; }
  .btn-line:hover { border-color: var(--cyan); }
}
/* ===== motion =====
   One authored moment: the hero sequence, once per load (CSS, started by motion.js when the headline font is in, or by
   the inline script after 1.5 s). Letters drop with a vertical smear and a chroma split (the reel hook A290, without
   its shake: no micro-jitter, letters land dead still), the operating-room video opens from the text side, the
   question plaques pop in one by one and their answers are written in. About 1.4 s in all. Then quiet:
   reveals on scroll, hover and press feedback, state changes.
   «settled» (2.5 s after start) drops the finished intro layers; the resting styles equal the last keyframes. */
.H .w { display: inline-block; white-space: nowrap; }
.H .ch { display: inline-block; position: relative; isolation: isolate; transform-origin: 50% 100%; }
.hero .ln { --d0: 0ms; }
.hero .ln.c { --d0: 130ms; --drop: -.38em; }
.hero .ln:first-child { position: relative; z-index: 1; }  /* the second line falls behind the first, not through it */
.js:not(.go) .hero :is(.ch, .hero-vid, .pv, .plq, .qa p, .src, .acts .btn, .tel) { opacity: 0; }
.js:not(.go):not(.bar-js) .bar { visibility: hidden; }

@media (prefers-reduced-motion: no-preference) {
  .go:not(.settled) .hero .ch { animation: k-drop .48s var(--land) both;
    animation-delay: calc(var(--d0) + var(--i) * 22ms); }
  .go:not(.settled) .hero .ch::before, .go:not(.settled) .hero .ch::after { content: attr(data-c); position: absolute;
    left: 0; top: 0; z-index: -1; pointer-events: none; transform-origin: 50% 100%; color: rgba(0, 229, 255, .85);
    animation: k-ghost-c .36s var(--ease-out) both; animation-delay: calc(var(--d0) + var(--i) * 22ms); }
  .go:not(.settled) .hero .ch::after { color: rgba(255, 59, 92, .8); animation-name: k-ghost-r; }
  .go:not(.settled) .hero .hero-vid { animation: k-unveil .8s var(--ease-out) .1s both; }
  .go:not(.settled) .hero .pv { animation: k-pop .42s var(--land) .85s both; }
  .go:not(.settled) .hero .plq { transform-origin: 0 50%; animation: k-pop .42s var(--land) .4s both; }
  .go:not(.settled) .hero .qa-row:nth-child(2) .plq { animation-delay: .5s; }
  .go:not(.settled) .hero .qa-row:nth-child(3) .plq { animation-delay: .6s; }
  .go:not(.settled) .hero .qa p { animation: k-write .5s var(--ease-out) .52s both; }
  .go:not(.settled) .hero .qa-row:nth-child(2) p { animation-delay: .62s; }
  .go:not(.settled) .hero .qa-row:nth-child(3) p { animation-delay: .72s; }
  .go:not(.settled) .hero .src { animation: k-fade .4s ease .95s both; }
  .go:not(.settled) .hero .acts .btn { animation: k-rise .42s var(--land) .66s both; }
  .go:not(.settled) .hero .acts .btn:nth-child(2) { animation-delay: .71s; }
  .go:not(.settled) .hero .acts .btn:nth-child(3) { animation-delay: .76s; }
  .go:not(.settled) .hero .tel { animation: k-fade .4s ease .85s both; }
  /* one light pass over the main button once everything has landed */
  .go:not(.settled) .hero .acts .btn-navy::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%);
    animation: k-sweep .7s var(--ease-in-out) 1.35s both; }
}

@keyframes k-drop { from { opacity: 0; transform: translateY(var(--drop, -.75em)) scale(.9, 1.28); } 18% { opacity: 1; }
  to { opacity: 1; transform: none; } }
@keyframes k-ghost-c { from { opacity: .9; transform: translate(.06em, -.22em) scaleY(1.7); } to { opacity: 0; transform: none; } }
@keyframes k-ghost-r { from { opacity: .8; transform: translate(-.06em, -.12em) scaleY(1.4); } to { opacity: 0; transform: none; } }
@keyframes k-unveil { from { opacity: 0; clip-path: inset(0 0 0 24%); } to { opacity: 1; clip-path: inset(0); } }
@keyframes k-pop { from { opacity: 0; transform: translateY(8px) scale(.8); } 30% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes k-write { from { opacity: 0; clip-path: inset(0 100% 0 0); } 25% { opacity: 1; }
  to { opacity: 1; clip-path: inset(-4px -4% -4px 0); } }
@keyframes k-fade { from { opacity: 0; } }
@keyframes k-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes k-msg { from { opacity: 0; transform: translateY(var(--dy, 0px)); } }
@keyframes k-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes k-sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes k-pill { from { opacity: 0; scale: .9; } }

/* scroll reveals (classes set by motion.js, so without it everything simply shows) */
.mo .rv { opacity: 0; transform: translateY(14px); transition: opacity .35s var(--ease-out), transform .45s var(--land);
  transition-delay: var(--rd, 0ms); }
.mo .rv.in { opacity: 1; transform: none; }
.mo .rv-h { clip-path: inset(-.5em -.3em -.25em -.3em); }
.mo .rv-h > span { transform: translateY(130%); transition: transform .55s var(--land) var(--rd, 0ms); }
.mo .rv-h > span + span { transition-delay: calc(var(--rd, 0ms) + 70ms); }
.mo .rv-h.in > span { transform: none; }
.mo .rv-img { opacity: 0; clip-path: inset(10% 12% 10% 12% round 28px); transform: scale(1.06);
  transition: opacity .4s ease, clip-path .8s var(--ease-out), transform .8s var(--land);
  transition-delay: var(--rd, 0ms); }
.mo .rv-img.in { opacity: 1; clip-path: inset(0 round 28px); transform: none; }
.facts b { font-variant-numeric: tabular-nums; }

/* depth while scrolling away from the first screen: the operating-room video drifts slower than its frame
   (compositor scroll timeline; no fallback needed) */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-vid video { animation: k-vpar linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  }
}
@keyframes k-vpar { from { transform: scale(1.14); } to { transform: translateY(6%) scale(1.14); } }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .op:hover { transform: translateY(-4px); }
  .op:hover:active { transform: translateY(-2px) scale(.98); }
  .op::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
    box-shadow: 0 18px 40px rgba(14, 42, 58, .12); transition: opacity .28s var(--ease-out); }
  .op:hover::after { opacity: 1; }
  .op em { transition: transform .28s var(--ease-out); }
  .op:hover em { transform: translateX(4px); }
  .vid img { transition: transform .6s var(--ease-out); }
  .vid:hover img { transform: scale(1.05); }
  .vid .play { transition: transform .28s var(--ease-out); }
  .vid:hover .play { transform: scale(1.1); }
  .pv:hover { transform: scale(1.03); }
  .pv:hover:active { transform: scale(.97); }
  .nav a { position: relative; }
  .nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
    background: var(--cyan); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .3s var(--ease-out); }
  .nav a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
}

/* reduced motion: nothing travels; the first screen and the sections fade in, states still change visibly */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .op, .pv, .faq .pm::before, .faq .pm::after { transition: none; }
  .go:not(.settled) .hero :is(.H, .hero-media, .qa, .acts, .tel) { animation: k-fade .3s ease both; }
  .mo .rv, .mo .rv-img { transform: none; clip-path: none; transition: opacity .4s ease; }
  .mo .rv-h > span { transform: none; }
  .mo .rv-h { opacity: 0; transition: opacity .4s ease; }
  .mo .rv-h.in { opacity: 1; }
  .bar-js .bar, .bar-js .bar.on { transition: visibility 0s; }
  form.lead.sent button[type=submit] { transition: background-color .2s ease; }
  form.lead.sent .b-ok { animation: k-fade .3s ease .1s both; }
  form.lead.sent .msg { animation: k-fade .3s ease .1s both; }
  form.lead button.busy::after { animation: none; background: rgba(255, 255, 255, .14); }
}
@media print {
  .mo .rv, .mo .rv-img { opacity: 1; transform: none; clip-path: none; }
  .mo .rv-h > span { transform: none; }
  .bar { display: none; }
}

/* ===== operation pages (KS-1): /operatsiyalar/<slug>/, built by tools/build.py page_op =====
   A calm page to read in the brand frame: a cream band (crumbs, the title, the duration right under it, the short
   answer, booking; a «short facts» card beside it on desktop), then a reading column on white, the form, all
   operations. Its motion is small: the title rises out of its own bottom edge once and the duration pill lands; on
   scroll the section headings rise, the recovery rail draws down, its steps come in as a list. No intro replay. */
.op { text-decoration: none; }
.op.is-here { background: var(--navy); color: var(--white); cursor: default; }
.op.is-here span, .op.is-here em { color: #C9D3DC; }
.draft { background: #FFF3C4; color: var(--navy); font-size: 15px; font-weight: 500; }
.draft .wrap { display: flex; align-items: center; gap: 10px; min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
.draft img { width: 20px; height: 20px; flex: none; }
.ophero { background: var(--cream); padding: 14px 0 36px; }
.ophero-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.ophero-txt { display: grid; gap: 16px; min-width: 0; container-type: inline-size; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: 14px;
  color: var(--ink2); }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; }
.crumbs li + li::before { content: ""; width: 12px; height: 12px;
  background: url(/assets/icons/caret-right-bold-4e5b6b.svg) center / contain no-repeat; }
.crumbs a { color: var(--navy); text-underline-offset: 3px; }
/* the title fills its column: --n = the longest word in average capitals (build.py fit_units), --k = the face's average capital width in em */
.op-h { --k: .5; font-size: min(104px, 11vw, (100vw - 36px) / (var(--n) * var(--k))); overflow-wrap: break-word; }
html[lang="ru"] .op-h { --k: .62; }
@media (min-width: 1000px) {  /* browsers without container units: the band's text column is the page minus the card */
  .op-h { font-size: min(104px, (min(100vw, 1240px) - 36px - 456px) / (var(--n) * var(--k))); }
}
@supports (width: 1cqi) {
  .op-h { font-size: min(104px, 15vw, 100cqi / (var(--n) * var(--k))); }
}
.dur { justify-self: start; display: inline-flex; align-items: center; gap: 12px; min-height: 48px;
  padding: 6px 20px 6px 6px; border-radius: 28px; background: var(--white); line-height: 1.3;
  box-shadow: 0 10px 28px rgba(14, 42, 58, .08); }
.dur i { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cyan); }
.dur i img { width: 20px; height: 20px; }
.dur-l { color: var(--ink2); font-weight: 500; }
.dur b { font-weight: 700; font-variant-numeric: tabular-nums; }
.dur[data-state="soon"] i { background: #EAF7FB; }
.dur[data-state="soon"] b { font-weight: 600; color: var(--ink2); }
.op-acts { grid-area: auto; }  /* the home hero places .acts into its named grid area «a» on desktop */
.op-lead { font-size: 19px; line-height: 1.5; font-weight: 500; max-width: 46ch; text-wrap: pretty; }
.op-key { align-self: start; background: var(--white); border-radius: 26px; padding: 20px 20px 6px;
  box-shadow: 0 20px 60px rgba(14, 42, 58, .08); }
.op-key-h { font-family: var(--head); font-weight: 400; font-size: 26px; line-height: 1; letter-spacing: .3px; text-transform: uppercase; }
html[lang="ru"] .op-key-h { font-family: "Sofia Sans Extra Condensed", "Onest", sans-serif; font-weight: 900; letter-spacing: 0; }
.op-key dl { margin-top: 8px; }
.op-key dl > div { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.op-key dl > div:first-child { border-top: 0; }
.op-key dt { font-size: 14px; font-weight: 500; color: var(--ink2); }
.op-key dd { font-weight: 600; text-wrap: pretty; }
.op-body { padding-bottom: 56px; }
.op-sec, .op-fine { max-width: 66ch; }
.op-sec { padding-top: 48px; }
.H.s2 { font-size: clamp(30px, 7.4vw, 48px); }
.op-sec > p { margin-top: 14px; line-height: 1.65; }
.op-sec h3, .op-sec h4 { margin-top: 28px; font-size: 21px; line-height: 1.3; font-weight: 700; text-wrap: balance; }
.op-sec h3 + p, .op-sec h3 + ul, .op-sec h4 + p { margin-top: 8px; }
.op-sec h3 + p, .op-sec h4 + p { line-height: 1.65; }
.op-list { margin-top: 12px; padding-left: 1.25em; display: grid; gap: 6px; }
.op-list li { padding-left: 4px; text-wrap: pretty; }
.op-list li::marker { color: var(--cyan-ink); }
.op-vid { margin-top: 26px; }
.op-vid .vid { max-width: 260px; }
.op-vid .vid.wide { max-width: 560px; aspect-ratio: 16 / 9; }
/* recovery: one rail with a dot per step, the time on a cyan plaque, the last step (the result) in navy */
.tl { list-style: none; position: relative; margin-top: 24px; display: grid; gap: 24px; }
.tl::before { content: ""; position: absolute; left: 10px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px;
  background: var(--line); transform-origin: 50% 0; }
.tl-i { position: relative; display: grid; gap: 8px; padding-left: 40px; }
.tl-i::before { content: ""; position: absolute; left: 3px; top: 10px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--cyan); }
.tl-t { line-height: 1; }
.plq.sm { font-size: 15px; padding: 7px 12px; border-radius: 10px; line-height: 1.3; }
.tl-b { line-height: 1.6; text-wrap: pretty; }
.tl-i.end::before { background: var(--navy); border-color: var(--navy); }
.tl-i.end .plq { background: var(--navy); color: var(--white); }
.op-note { color: var(--ink2); }
.call { margin-top: 24px; padding: 18px 18px 14px; border-radius: var(--r); background: var(--cream2); }
.op-sec .call h3 { margin-top: 0; display: flex; align-items: center; gap: 10px; font-size: 19px; }
.call h3 img { width: 24px; height: 24px; flex: none; }
.call .btn { margin-top: 10px; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.op-fine { margin-top: 40px; font-size: 15px; color: var(--ink2); }
/* wide screens: a right column under the band with the section links, the duration and booking; it simply stays in
   view while the page is read (owner: nothing slides after the scroll position, no moving marker) */
.op-side { display: none; }
.op-side-h { font-family: var(--head); font-weight: 400; font-size: 22px; line-height: 1; letter-spacing: .3px;
  text-transform: uppercase; }
html[lang="ru"] .op-side-h { font-family: "Sofia Sans Extra Condensed", "Onest", sans-serif; font-weight: 900; letter-spacing: 0; }
.toc { list-style: none; }
.toc a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; border-top: 1px solid var(--line);
  font-weight: 600; text-decoration: none; text-wrap: balance; }
.toc li:first-child a { border-top: 0; }
.side-dur { font-size: 16px; line-height: 1.4; color: var(--ink2); }
.side-dur b { color: var(--navy); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (min-width: 720px) {
  .tl-i { grid-template-columns: 14rem minmax(0, 1fr); gap: 0 20px; align-items: start; }  /* «После снятия повязки» on one line */
}
@media (min-width: 1000px) {
  .ophero { padding: 36px 0 64px; }
  .ophero-in { grid-template-columns: minmax(0, 1fr) 400px; column-gap: 56px; align-items: start; }
  .op-key { margin-top: 48px; }
  .op-sec { padding-top: 64px; }
  .op-body { padding-bottom: 72px; }
}
@media (min-width: 1100px) {
  .op-body { display: grid; grid-template-columns: minmax(0, 1fr) 400px; column-gap: 56px; align-items: start; }
  .op-col { grid-column: 1; grid-row: 1; }
  .op-side { display: grid; gap: 14px; grid-column: 2; grid-row: 1; position: sticky; top: 100px; margin-top: 64px;
    padding: 22px 24px 24px; border-radius: 26px; background: var(--cream2); }
}
@media (hover: hover) and (pointer: fine) {
  .toc a { transition: color .2s ease; }
  .toc a:hover { color: var(--cyan-ink); }
}
@media (max-width: 999px) {
  :focus { scroll-margin-bottom: 84px; }  /* a focused field never hides under the phone bar */
}
/* the title waits for its face below its own bottom edge, not invisible: it is painted from the first frame (the
   page's largest text, so the browser's «largest paint» is not held back by the font) and only its clip hides it */
.js:not(.go) .ophero .dur { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js:not(.settled) .op-h { clip-path: inset(-.3em -.3em -.2em -.3em); }
  .js:not(.go) .op-h > span { transform: translateY(115%); }
  .go:not(.settled) .op-h > span { animation: k-line .55s var(--land) both; }
  .go:not(.settled) .ophero .dur { transform-origin: 0 50%; animation: k-pop .42s var(--land) .16s both; }
  .mo .tl.rv-line::before { transform: scaleY(0); transition: transform .55s var(--land); }
  .mo .tl.rv-line.in::before { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js:not(.go) .op-h > span { opacity: 0; }
  .go:not(.settled) .ophero :is(.op-h, .dur) { animation: k-fade .3s ease both; }
}
@keyframes k-line { from { transform: translateY(115%); } }
@media (hover: hover) and (pointer: fine) {
  .op.is-here:hover { transform: none; border-color: transparent; }
  .op.is-here::after { content: none; }
}
@media print {
  .op-page :is(.top, .skip, .bar, #yozilish, #barcha, .op-acts) { display: none; }
  .mo .tl.rv-line::before { transform: none; }
}
