/* «Форма»: sport-science dashboard.
   Chalk white, graphite, one coral accent. Unbounded (numerals, headings) + Golos Text.
   Self-hosted fonts, no external hosts, no data: URLs (strict CSP). */

/* ---------- fonts ---------- */
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/unbounded-normal-300-700-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/unbounded-normal-300-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/golos-text-normal-400-600-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/golos-text-normal-400-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- tokens ---------- */
:root {
  --chalk: #f2f0ea;
  --chalk-2: #e8e5dd;
  --paper: #fbfaf7;
  --white: #fff;
  --ink: #1f2326;
  --ink-2: #30363a;
  --muted: #5a6166;
  --line: rgb(31 35 38 / .13);
  --line-2: rgb(31 35 38 / .3);
  --coral: #ff5b45;
  --coral-soft: #ffd9d2;
  --coral-tint: #fff1ee;
  --coral-ink: #c4351c;
  --font-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 22px;
  --r-sm: 14px;
  --gutter: 20px;
  --sec: clamp(56px, 8vw, 108px);
  --header-h: 68px;
}
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 76px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font: 400 16px/1.55 var(--font-body);
  color: var(--ink);
  background-color: var(--chalk);
  background-image:
    linear-gradient(rgb(31 35 38 / .04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(31 35 38 / .04) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: -1px -1px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .18em; }
button { font: inherit; color: inherit; }
b, strong { font-weight: 600; }
small { font-size: .78em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .zones__read :focus-visible, .offer :focus-visible, .site-footer :focus-visible, .cta-band :focus-visible { outline-color: var(--coral); }
.wrap { width: min(100% - var(--gutter) * 2, 1240px); margin-inline: auto; }
.i { width: 1.2em; height: 1.2em; flex: none; }
.i path, .i rect, .i circle { stroke-width: 1.9; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--ink); color: var(--chalk); padding: 12px 18px; border-radius: 10px; }
.skip:focus { left: 12px; }

/* ---------- type ---------- */
.stat__num, .prog__price b, .price-row__price, .read__price b, .meter__num, .cert__value, .bar-row, .choice__price, .zcard__price b, .kpi b, .price-group__from, .offer h2, .hours b { word-spacing: .24em; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.05rem; }
.label { font: 600 11.5px/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.label--on-dark { color: rgb(242 240 234 / .62); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--coral); flex: none; }
.eyebrow--on-dark { color: rgb(242 240 234 / .8); }
.section__lead { font-size: clamp(1rem, 1.5vw, 1.12rem); color: var(--muted); max-width: 60ch; margin-top: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 15.5px/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn .i { transition: transform .2s; }
.btn:hover .i { transform: translateX(3px); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14.5px; }
.btn--accent { background: var(--coral); color: var(--ink); }
.btn--accent:hover { background: #ff7662; }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--chalk); }
.btn--ghost-dark { background: transparent; border-color: rgb(242 240 234 / .55); color: var(--chalk); }
.btn--ghost-dark:hover { background: var(--chalk); color: var(--ink); border-color: var(--chalk); }
.link-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; background: none; border: 0; cursor: pointer;
  font: 600 15px/1.2 var(--font-body); color: var(--ink); text-align: left;
}
.link-btn .i { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--coral); color: var(--ink); transition: transform .2s; }
.link-btn:hover .i { transform: translateX(4px); }
.icon-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--white); cursor: pointer; }
.icon-btn:hover { background: var(--ink); color: var(--chalk); }

/* ---------- demo ribbon (shared) ---------- */
.demo-ribbon { display: flex; align-items: center; gap: 20px; min-height: 44px; padding: 4px var(--gutter); background: #14171a; color: #ece9e2; font-size: 13px; line-height: 1.3; }
.demo-ribbon a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: inherit; font-weight: 600; text-decoration: none; white-space: nowrap; }
.demo-ribbon a:hover { text-decoration: underline; }
.demo-ribbon a .i { width: 16px; height: 16px; }
.demo-ribbon p { opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-ribbon__pkg { opacity: 1 !important; }
.demo-ribbon__pkg b { color: #fff; font-weight: 600; }
.demo-ribbon__note { margin-left: auto; }
@media (max-width: 700px) { .demo-ribbon__note { display: none; } .demo-ribbon { gap: 12px; } }
.demo-ribbon :focus-visible { outline-color: var(--coral); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgb(242 240 234 / .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.is-stuck { box-shadow: 0 10px 30px -22px rgb(31 35 38 / .6); }
.site-header__in { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; flex: none; }
.logo__mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--coral); color: var(--ink); }
.logo__mark svg { width: 24px; height: 24px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font: 700 19px/1 var(--font-display); letter-spacing: -.02em; }
.logo__kind { font-size: 11.5px; color: var(--muted); margin-top: 4px; letter-spacing: .01em; }
.nav { display: none; margin-inline: auto; gap: 4px; padding: 5px; background: rgb(31 35 38 / .06); border-radius: 999px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font: 600 14.5px/1 var(--font-body); text-decoration: none; color: var(--ink-2); transition: background-color .2s, color .2s; }
.nav a:hover { background: rgb(31 35 38 / .08); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--chalk); }
.site-header__cta { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.header-phone { display: none; align-items: center; min-height: 44px; font: 600 15px/1 var(--font-body); text-decoration: none; padding: 0 4px; }
.header-phone:hover { text-decoration: underline; }
.nav-toggle { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; cursor: pointer; }
.nav-toggle .i { width: 24px; height: 24px; }
.site-header .btn--sm { display: none; }
@media (min-width: 560px) { .site-header .btn--sm { display: inline-flex; } }
@media (max-width: 1019px) {
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; border-radius: 0 0 var(--r) var(--r); padding: 12px var(--gutter) 20px; background: var(--paper); border-bottom: 1px solid var(--line); margin: 0; gap: 2px; }
  .nav.is-open { display: flex; }
  .nav a { min-height: 52px; font-size: 17px; }
}
@media (min-width: 1020px) { .nav { display: flex; } .nav-toggle { display: none; } .header-phone { display: inline-flex; } .site-header__cta { margin-left: 0; } }

/* ---------- progress (all gauges) ---------- */
progress { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 8px; border: 0; border-radius: 999px; background: rgb(31 35 38 / .12); overflow: hidden; }
progress::-webkit-progress-bar { background: rgb(31 35 38 / .12); border-radius: 999px; }
progress::-webkit-progress-value { background: var(--coral); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--coral); border-radius: 999px; }

/* ---------- hero ---------- */
.hero { padding: clamp(28px, 4.5vw, 64px) 0 clamp(36px, 5vw, 72px); }
.hero__grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1040px) { .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 44px; align-items: start; } .js .hero__grid { align-items: center; } }
.hero__title { font-size: clamp(2rem, 8.2vw, 3.2rem); line-height: 1.08; letter-spacing: -.03em; margin: 22px 0 22px; text-wrap: balance; }
@media (min-width: 1040px) { .hero__title { font-size: clamp(2.3rem, 3.2vw, 3rem); } }
.hero__title em { font-style: normal; background: linear-gradient(transparent 80%, var(--coral) 80% 96%, transparent 96%); padding: 0 .04em; margin: 0 -.04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero__lead { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--ink-2); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 34px; }
.rating-badge { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; text-decoration: none; }
.rating-badge:hover b { text-decoration: underline; }
.rating-badge b { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.hero__note { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; font-size: 14.5px; font-weight: 500; }
.live { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); flex: none; position: relative; }
.live::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--coral); opacity: 0; animation: live 2s ease-out infinite; }
@keyframes live { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.4); opacity: 0; } }

.stars { display: inline-flex; gap: 2px; color: rgb(31 35 38 / .2); }
.stars .on { color: var(--coral); }
.stars .i { width: 17px; height: 17px; }

/* ---------- zone selector (signature) ---------- */
.zones { min-width: 0; }
.zones__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.zones__title { font-size: clamp(1.2rem, 2.2vw, 1.6rem); margin-top: 8px; }
.seg { display: none; padding: 4px; background: rgb(31 35 38 / .08); border-radius: 999px; }
.js .seg { display: inline-flex; }
.seg__btn { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; font: 600 14.5px/1 var(--font-body); cursor: pointer; transition: background-color .2s, color .2s; }
.seg__btn[aria-pressed="true"] { background: var(--ink); color: var(--chalk); }
.seg__btn:not([aria-pressed="true"]):hover { background: rgb(31 35 38 / .08); }
.zones__body { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .zones__body { grid-template-columns: minmax(220px, 250px) minmax(0, 1fr); } }
.zones__fig { position: relative; display: flex; justify-content: center; padding: 22px 12px 14px; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r); }
.zones__svgs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; width: 100%; }
.js .body.is-off { display: none; }
.body { width: 100%; max-width: 226px; height: auto; overflow: visible; }
.zones__hint { position: absolute; top: 12px; right: 12px; z-index: 2; display: none; padding: 6px 12px; border-radius: 999px; background: var(--coral); font: 600 12px/1.2 var(--font-body); transition: opacity .3s; pointer-events: none; }
.js .zones__hint { display: block; }
.zones__hint.is-gone { opacity: 0; }
.b-base { fill: #e6e3db; stroke: none; }
.b-ruler path { stroke: rgb(31 35 38 / .28); stroke-width: 1; fill: none; }
.b-ruler text { font: 500 9px var(--font-body); fill: var(--muted); }
.b-line { stroke: rgb(31 35 38 / .25); stroke-width: 1; fill: none; stroke-linecap: round; }
.b-line--dash { stroke-dasharray: 2 4; }
.b-dot { fill: rgb(31 35 38 / .35); }
.b-cut { stroke: var(--white); stroke-width: 3; fill: none; pointer-events: none; }
.zl { cursor: pointer; outline: none; }
.zhit { fill: transparent; stroke: transparent; stroke-width: 20; stroke-linejoin: round; pointer-events: all; }
.zl .zone { fill: var(--white); stroke: var(--ink); stroke-width: 1.4; transition: fill .2s; }
.zl:hover .zone { fill: var(--coral-soft); }
.zl.is-active .zone { fill: var(--coral); }
.zl:focus-visible .zone { stroke-width: 3.2; fill: var(--coral-soft); }
.zl.is-active:focus-visible .zone { fill: var(--coral); }
.pin { display: none; pointer-events: none; }
.pin.is-on { display: block; }
.pin__dot { fill: var(--ink); stroke: var(--white); stroke-width: 2; }
.pin__ring { fill: none; stroke: var(--ink); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; animation: ping 1.9s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.55); opacity: .9; } 100% { transform: scale(2); opacity: 0; } }

.zones__read { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--ink); color: var(--chalk); border-radius: var(--r); min-width: 0; }
.read__zone { font-size: clamp(1.4rem, 2.6vw, 1.85rem); color: var(--chalk); margin-top: -4px; }
.read__course { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 16px; line-height: 1.3; }
.read__desc { font-size: 14px; color: rgb(242 240 234 / .72); }
.read__meters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px 0; border-block: 1px solid rgb(242 240 234 / .16); }
.meter { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.meter__num { font: 700 clamp(1.5rem, 3.2vw, 2rem)/1 var(--font-display); letter-spacing: -.03em; color: var(--chalk); }
.meter__num small { font: 500 12px var(--font-body); letter-spacing: 0; color: rgb(242 240 234 / .7); }
.meter__unit { font-size: 12.5px; color: rgb(242 240 234 / .7); line-height: 1.2; }
.segbar { display: flex; gap: 3px; height: 8px; margin-top: 2px; }
.segbar i { flex: 1; border-radius: 3px; background: rgb(242 240 234 / .18); transition: background-color .25s; transition-delay: calc(var(--i, 0) * 45ms); }
.segbar i.on { background: var(--coral); }
.zones__read progress { background: rgb(242 240 234 / .18); height: 8px; margin-top: 2px; }
.zones__read progress::-webkit-progress-bar { background: rgb(242 240 234 / .18); }
.read__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.read__price .label { flex-basis: 100%; }
.read__price b { font: 700 clamp(1.7rem, 3.6vw, 2.3rem)/1 var(--font-display); letter-spacing: -.03em; color: var(--coral); }
.read__unit { font-size: 14px; color: rgb(242 240 234 / .75); }
.read__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.read__note { font-size: 12.5px; line-height: 1.45; color: rgb(242 240 234 / .62); }

.zones__chips { display: none; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.js .zones__chips { display: flex; }
.chip, .zones__chips button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--white); font: 600 14px/1 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s; }
.chip:hover, .zones__chips button:hover { border-color: var(--ink); }
.zones__chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--chalk); }
.chip__n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--coral); color: var(--ink); font-size: 12px; }

/* no-JS fallback: all programmes as a grid */
.zones__data { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 18px; }
.js .zones__data { display: none; }
.zcard { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-sm); }
.zcard h3 { font-size: 1rem; }
.zcard__course { font-weight: 600; font-size: 14.5px; }
.zcard__desc { font-size: 13.5px; color: var(--muted); }
.zcard__facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.zcard__facts dt { color: var(--muted); }
.zcard__facts dd { font-weight: 600; }
.zcard__price b { font: 700 1.2rem var(--font-display); }
.zcard__price small { color: var(--muted); }

/* ---------- metrics bento ---------- */
.metrics { padding: 0 0 clamp(24px, 3vw, 40px); }
.metrics__grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .metrics__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.metrics__photo { position: relative; overflow: hidden; border-radius: var(--r); min-height: 280px; background: var(--chalk-2); }
.metrics__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.metrics__photo::before, .metrics__photo::after { content: ''; position: absolute; z-index: 1; width: 34px; height: 34px; border: 2.5px solid #fff; pointer-events: none; }
.metrics__photo::before { top: 18px; left: 18px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.metrics__photo::after { top: 18px; right: 18px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.metrics__photo figcaption { position: absolute; left: 14px; bottom: 14px; z-index: 1; max-width: calc(100% - 28px); padding: 9px 14px; border-radius: 999px; background: rgb(251 250 247 / .94); font-size: 13px; font-weight: 500; }
.metrics__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stat { display: flex; flex-direction: column; gap: 10px; padding: clamp(18px, 2.4vw, 28px); background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r); }
.stat__num { font: 700 1.5rem/1 var(--font-display); letter-spacing: -.04em; white-space: nowrap; }
@media (min-width: 460px) { .stat__num { font-size: clamp(1.8rem, 5vw, 2.6rem); } }
@media (min-width: 900px) { .stat__num { font-size: clamp(1.8rem, 3.4vw, 3.2rem); } }
.stat__num small { font: 600 .36em/1 var(--font-body); letter-spacing: 0; color: var(--muted); }
.stat__cap { font-size: 14px; color: var(--muted); line-height: 1.35; margin-bottom: auto; }
.stat .gauge, .stat .years { margin-top: 10px; }
.years { display: flex; align-items: flex-end; gap: 5px; height: 30px; }
.years i { flex: 1; border-radius: 4px 4px 2px 2px; background: var(--coral); }
.years i:nth-child(1) { height: 30%; } .years i:nth-child(2) { height: 42%; } .years i:nth-child(3) { height: 55%; } .years i:nth-child(4) { height: 68%; } .years i:nth-child(5) { height: 84%; } .years i:nth-child(6) { height: 100%; }
.metrics__tiles .stat:nth-child(1) { background: var(--coral); border-color: var(--coral); }
.metrics__tiles .stat:nth-child(1) .stat__cap, .metrics__tiles .stat:nth-child(1) .stat__num small { color: rgb(31 35 38 / .78); }
.metrics__tiles .stat:nth-child(1) progress { background: rgb(31 35 38 / .2); }
.metrics__tiles .stat:nth-child(1) progress::-webkit-progress-bar { background: rgb(31 35 38 / .2); }
.metrics__tiles .stat:nth-child(1) progress::-webkit-progress-value { background: var(--ink); }
.metrics__tiles .stat:nth-child(1) progress::-moz-progress-bar { background: var(--ink); }

.med-warning { display: flex; align-items: center; gap: 14px; padding: 14px 20px; background: var(--coral-tint); border: 1.5px solid var(--coral); border-radius: var(--r-sm); font-size: 14.5px; font-weight: 500; margin-bottom: 0; }
.med-warning + .section, .wrap:has(> .med-warning) + .section { padding-top: clamp(40px, 6vw, 80px); }
.med-warning::before { content: '!'; display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--coral); font: 700 14px var(--font-display); }

/* ---------- sections ---------- */
.section { padding: var(--sec) 0; }
.section--tight { padding-top: clamp(24px, 4vw, 48px); }
.section--tint { background: rgb(232 229 221 / .72); }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(26px, 4vw, 48px); }
.section__head h2 { margin-top: 14px; }
.section__more { margin-top: 28px; }
.reveal { will-change: auto; }
@media (prefers-reduced-motion: no-preference) {
  .js:not(.no-reveal) .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
  .js:not(.no-reveal) .reveal.is-in { opacity: 1; transform: none; }
}

/* programmes */
.progs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.prog { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r); transition: transform .25s, border-color .25s, box-shadow .25s; }
.prog::before { content: ''; position: absolute; left: 24px; top: -1.5px; width: 44px; height: 5px; border-radius: 0 0 5px 5px; background: var(--coral); }
.prog:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 22px 40px -28px rgb(31 35 38 / .55); }
.prog__cat { font: 600 11.5px/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.prog h3 { font-size: 1.12rem; line-height: 1.2; min-height: 2.4em; }
.prog__time { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.prog__price { margin-top: auto; }
.prog__price b { font: 700 clamp(1.7rem, 3vw, 2.15rem)/1 var(--font-display); letter-spacing: -.035em; }

/* offer */
.offer-sec { padding: 0 0 var(--sec); }
.offer { display: grid; gap: 32px; padding: clamp(26px, 5vw, 56px); background: var(--ink); color: var(--chalk); border-radius: 28px; overflow: hidden; position: relative; }
@media (min-width: 900px) { .offer { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; } }
.offer::after { content: ''; position: absolute; right: -150px; top: -170px; width: 300px; height: 300px; border-radius: 50%; border: 40px solid var(--coral); opacity: .9; pointer-events: none; }
.offer__text { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.offer h2 { font-size: clamp(1.6rem, 3.6vw, 2.7rem); color: var(--chalk); margin-top: 4px; }
.offer p { color: rgb(242 240 234 / .82); max-width: 54ch; }
.offer .offer__warning { font-size: 13px; color: rgb(242 240 234 / .62); }
.offer__text .btn { margin-top: 8px; }
.offer__chart { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: var(--r); background: rgb(242 240 234 / .07); border: 1px solid rgb(242 240 234 / .14); }
.bar-row { display: grid; gap: 8px; font: 700 clamp(1.4rem, 3vw, 2rem)/1 var(--font-display); letter-spacing: -.03em; color: rgb(242 240 234 / .55); }
.bar-row progress { height: 14px; background: rgb(242 240 234 / .16); }
.bar-row progress::-webkit-progress-bar { background: rgb(242 240 234 / .16); }
.bar-row progress::-webkit-progress-value { background: rgb(242 240 234 / .5); }
.bar-row progress::-moz-progress-bar { background: rgb(242 240 234 / .5); }
.bar-row--hot { color: var(--coral); }
.bar-row--hot progress::-webkit-progress-value { background: var(--coral); }
.bar-row--hot progress::-moz-progress-bar { background: var(--coral); }
.bar-row:not(.bar-row--hot) span { text-decoration: line-through; text-decoration-thickness: 2px; }
.offer .offer__save { font-size: 14px; font-weight: 600; color: var(--chalk); }

/* about */
.about { display: grid; gap: 40px; }
@media (min-width: 960px) { .about { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; } .about__intro { position: sticky; top: calc(var(--header-h) + 24px); } }
.about__intro .section__head { margin-bottom: 28px; }
.about__photo { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--chalk-2); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.benefits { display: grid; gap: 0; }
.benefit { display: grid; grid-template-columns: 60px 1fr; gap: 20px; align-items: start; padding: 26px 0; border-top: 1.5px solid var(--line-2); }
.benefit:last-child { border-bottom: 1.5px solid var(--line-2); }
.benefit__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--coral); color: var(--ink); }
.benefit__icon .i { width: 28px; height: 28px; }
.benefit h3 { font-size: 1.15rem; margin-bottom: 8px; }
.benefit p { color: var(--muted); max-width: 52ch; }

/* masters */
.masters { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.master { display: flex; flex-direction: column; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden; }
.master__photo { aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--chalk-2); }
.master__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform .6s; }
.master:hover .master__photo img { transform: scale(1.04); }
.master__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.master h3 { font-size: 1.2rem; }
.master__role { font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.master__about { color: var(--muted); font-size: 15px; }
.master__skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.master__skills li { padding: 7px 13px; border-radius: 999px; background: var(--chalk); border: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.master__exp { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 4px 12px; margin-top: auto; padding-top: 14px; }
.master__exp-lbl { font: 600 11.5px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.master__exp b { font: 700 1.25rem/1 var(--font-display); letter-spacing: -.03em; }
.master .link-btn { margin-top: 6px; }
@media (min-width: 820px) {
  .masters--detailed { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .master--detailed { flex-direction: row; }
  .master--detailed .master__photo { flex: 0 0 300px; aspect-ratio: auto; min-height: 340px; }
  .master--detailed .master__body { padding: 34px 40px; justify-content: center; gap: 12px; }
  .master--detailed h3 { font-size: 1.7rem; }
  .master--detailed .master__about { font-size: 17px; max-width: 54ch; }
  .master--detailed .master__exp { max-width: 340px; margin-top: 10px; }
}

/* works */
.works { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .works { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .works { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 262px; gap: 14px; }
  .work { aspect-ratio: auto !important; }
  .work:nth-child(1), .work:nth-child(4) { grid-row: span 2; }
}
.work { position: relative; display: block; padding: 0; border: 0; border-radius: var(--r-sm); overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 5; background: var(--chalk-2); }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.work:hover img { transform: scale(1.06); }
.work::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 0 solid var(--coral); transition: border-width .2s; pointer-events: none; }
.work:hover::after, .work:focus-visible::after { border-width: 4px; }

/* reviews */
.reviews-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(26px, 4vw, 44px); }
.reviews-head .section__head { margin-bottom: 0; }
.score { display: flex; align-items: center; gap: 18px; padding: 16px 24px; background: var(--ink); color: var(--chalk); border-radius: var(--r); }
.score__num { font: 700 clamp(2.4rem, 5vw, 3.4rem)/1 var(--font-display); letter-spacing: -.04em; color: var(--coral); }
.score > div { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.score .stars { color: rgb(242 240 234 / .25); }
.reviews { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.review { display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r); }
.review__top { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; }
.review__top .stars { grid-column: 1 / -1; margin-top: 8px; }
.avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--chalk); font: 700 17px var(--font-display); flex: none; }
.avatar--any { background: var(--coral); color: var(--ink); }
.avatar--any .i { width: 24px; height: 24px; }
.review figcaption { font-weight: 600; }
.review__meta { display: block; font-size: 13px; color: var(--muted); }
.review blockquote { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.review__service { margin-top: auto; align-self: flex-start; padding: 7px 14px; border-radius: 999px; background: var(--coral-tint); border: 1px solid var(--coral-soft); font-size: 13px; font-weight: 600; }

/* certificates */
.certs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.cert { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 230px; padding: 24px 24px 22px; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--ink); color: var(--chalk); text-align: left; cursor: pointer; overflow: hidden; transition: transform .25s; }
.cert:hover { transform: translateY(-5px) rotate(-.6deg); }
.cert::before { content: ''; position: absolute; top: 50%; right: -13px; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--chalk); border: 1.5px solid var(--ink); }
.cert__brand { font: 700 19px/1 var(--font-display); letter-spacing: -.02em; }
.cert__label { font: 600 11.5px/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.cert__value { font: 700 clamp(1.8rem, 3.4vw, 2.3rem)/1 var(--font-display); letter-spacing: -.04em; margin-top: auto; }
.cert__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font: 600 14px/1 var(--font-body); }
.cert--2 { background: var(--coral); color: var(--ink); }
.cert--3 { background: var(--white); color: var(--ink); }
.cert--any { background: transparent; color: var(--ink); border-style: dashed; }
.cert--any .cert__value { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }

/* faq */
.faq-wrap { display: grid; gap: 36px; }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; align-items: start; } .faq__head { position: sticky; top: calc(var(--header-h) + 24px); } }
.faq__head .section__head { margin-bottom: 24px; }
.messengers { display: flex; flex-wrap: wrap; gap: 10px; }
.msg { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px 0 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; font: 600 14.5px/1 var(--font-body); text-decoration: none; transition: background-color .2s, color .2s; }
.msg:hover { background: var(--ink); color: var(--chalk); }
.msg .i { width: 20px; height: 20px; }
.faq details { border-top: 1.5px solid var(--line-2); }
.faq details:last-child { border-bottom: 1.5px solid var(--line-2); }
.faq summary { position: relative; display: flex; align-items: center; min-height: 68px; padding: 14px 56px 14px 0; font: 600 clamp(1rem, 1.8vw, 1.12rem)/1.35 var(--font-body); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ''; position: absolute; right: 12px; top: 50%; width: 18px; height: 2.5px; margin-top: -1px; background: var(--ink); border-radius: 2px; transition: transform .25s, background-color .25s; }
.faq summary::after { transform: rotate(90deg); }
.faq summary:hover::before, .faq summary:hover::after { background: var(--coral-ink); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 56px 24px 0; color: var(--muted); max-width: 62ch; }
.faq details[open] { background: linear-gradient(90deg, var(--coral) 0 4px, transparent 4px); padding-left: 20px; }
.faq details[open] summary { padding-left: 0; }

/* contacts */
.contacts__in { display: grid; gap: 28px; }
@media (min-width: 960px) { .contacts__in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: stretch; } }
.contacts h2 { margin: 14px 0 28px; }
.contact-list { display: grid; gap: 4px; margin-bottom: 24px; }
.contact-list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.ci { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--coral-soft); }
.contact-list b { display: block; font-weight: 600; font-size: 16.5px; }
.contact-list li > div > span { color: var(--muted); font-size: 14px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover b { text-decoration: underline; }
.hours { display: flex; gap: 14px; font-size: 15px; }
.hours span { min-width: 56px; color: var(--muted); }
.hours b { font-family: var(--font-display); font-size: 15px; letter-spacing: -.02em; }
.contacts .messengers { margin-bottom: 22px; }
.contacts__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.map { min-height: 340px; border-radius: var(--r); overflow: hidden; border: 1.5px solid var(--line-2); background: var(--chalk-2); }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* subpage heads */
.page-head { padding: clamp(28px, 4vw, 56px) 0 clamp(8px, 2vw, 24px); }
.page-head__grid { display: grid; gap: 28px; }
@media (min-width: 1000px) { .page-head__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 56px; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.page-head h1 { font-size: clamp(2.1rem, 6.2vw, 3.8rem); letter-spacing: -.035em; }
.page-head .section__lead { max-width: 56ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.kpis { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.kpi { display: grid; grid-template-columns: minmax(124px, auto) minmax(0, 1fr); align-items: center; gap: 18px; padding: 16px 20px; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-sm); }
.kpi b { font: 700 clamp(1.4rem, 2.4vw, 1.75rem)/1.05 var(--font-display); letter-spacing: -.04em; white-space: nowrap; word-spacing: .2em; }
.kpi b small { font: 600 .46em var(--font-body); letter-spacing: 0; color: var(--muted); word-spacing: 0; }
.kpi span { font-size: 14px; line-height: 1.4; color: var(--muted); }
.kpi:first-child { background: var(--coral); border-color: var(--coral); }
.kpi:first-child span { color: rgb(31 35 38 / .8); }

/* price groups */
.price-groups { display: grid; gap: 16px; }
@media (min-width: 1100px) { .price-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.price-group { padding: clamp(18px, 2.6vw, 30px); background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r); }
.price-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 2.5px solid var(--ink); }
.price-group__head h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
.price-group__from { font: 700 1.05rem/1 var(--font-display); letter-spacing: -.03em; white-space: nowrap; color: var(--coral-ink); }
.price-group__from small { font: 600 .66em var(--font-body); letter-spacing: 0; color: var(--muted); }
.price-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.price-row:last-child { border-bottom: 0; padding-bottom: 4px; }
.price-row__name { grid-column: 1; grid-row: 1; }
.price-row__name span { display: block; font-weight: 600; font-size: 16.5px; line-height: 1.3; }
.price-row__name small { display: block; margin-top: 3px; font-size: 13.5px; color: var(--muted); }
.price-row__time { display: grid; grid-template-columns: 78px minmax(0, 1fr); align-items: center; gap: 10px; grid-column: 1; grid-row: 2; max-width: 260px; font-size: 13.5px; color: var(--muted); }
.price-row__price { grid-column: 2; grid-row: 1 / 3; font: 700 clamp(1.1rem, 2.2vw, 1.35rem)/1 var(--font-display); letter-spacing: -.03em; white-space: nowrap; text-align: right; }
.price-row__book { display: none; }
@media (min-width: 640px) {
  .price-row { grid-template-columns: minmax(0, 1fr) auto 48px; column-gap: 18px; }
  .price-row__book { display: grid; grid-column: 3; grid-row: 1 / 3; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--coral); color: var(--ink); cursor: pointer; transition: transform .2s, background-color .2s; }
  .price-row__book:hover { background: var(--ink); color: var(--chalk); transform: scale(1.06); }
}
@media (max-width: 639px) {
  .price-row__book { display: flex; align-items: center; justify-content: center; gap: 10px; grid-column: 1 / -1; grid-row: 3; width: 100%; height: 46px; margin-top: 4px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 600 14.5px/1 var(--font-body); cursor: pointer; }
  .price-row__book::before { content: 'Записаться'; }
  .price-row__book:hover { background: var(--ink); color: var(--chalk); }
}

@media (max-width: 479px) {
  .price-row__name { grid-column: 1 / -1; }
  .price-row__time { grid-row: 2; }
  .price-row__price { grid-column: 2; grid-row: 2; }
}

/* cta band */
.cta-band { padding: clamp(32px, 5vw, 56px) 0; background: var(--ink); color: var(--chalk); margin-top: var(--sec); }
.cta-band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); color: var(--chalk); }
.cta-band p { color: rgb(242 240 234 / .75); margin-top: 10px; max-width: 56ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.offer-sec + .cta-band { margin-top: 0; }

/* footer */
.site-footer { padding: clamp(36px, 5vw, 64px) 0 calc(36px + 4px); background: var(--ink); color: rgb(242 240 234 / .8); font-size: 14.5px; border-top: 1px solid rgb(242 240 234 / .12); }
.cta-band + .site-footer { border-top: 1px solid rgb(242 240 234 / .14); }
.site-footer__in { display: grid; gap: 28px; }
@media (min-width: 900px) { .site-footer__in { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 4fr); gap: 48px; } }
.site-footer .logo__name { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--chalk); margin-bottom: 14px; letter-spacing: -.04em; }
.site-footer p + p { margin-top: 6px; }
.site-footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a:hover { color: var(--coral); }
.site-footer__small { font-size: 13px; opacity: .65; }

/* mobile bar */
.mobile-bar { display: none; }
@media (max-width: 720px) {
  body { padding-bottom: 84px; }
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); background: rgb(251 250 247 / .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .mobile-bar .btn { flex: 1; min-width: 0; padding-inline: 14px; }
  .mobile-bar__call { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--ink); font: 600 15px/1 var(--font-body); text-decoration: none; }
}
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 400; transform: translateX(-50%); width: max-content; max-width: min(92vw, 520px); padding: 14px 20px; background: var(--ink); color: var(--chalk); border-left: 5px solid var(--coral); border-radius: 12px; font-size: 14.5px; line-height: 1.4; box-shadow: 0 20px 40px -18px rgb(31 35 38 / .7); }
@media (max-width: 720px) { .toast { bottom: 100px; } }

/* ---------- dialogs: booking, certificate, lightbox ---------- */
dialog { color: var(--ink); font-family: var(--font-body); }
.booking { width: min(640px, calc(100vw - 24px)); max-width: none; padding: 0; border: 0; border-radius: 26px; background: var(--paper); box-shadow: 0 40px 90px -30px rgb(20 23 26 / .6); overflow: hidden; }
.booking[open] { display: block; }
.booking::backdrop, .lightbox::backdrop { background: rgb(20 23 26 / .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.booking__form { display: flex; flex-direction: column; max-height: min(860px, calc(100dvh - 24px)); }
.booking__head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 28px 14px; }
.booking__head h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); margin-top: 6px; }
.booking__step-label { font: 600 11.5px/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--coral-ink); }
.booking__progress { flex: none; height: 6px; margin: 0 28px; border-radius: 999px; background: var(--chalk-2); overflow: hidden; }
.booking__progress span { display: block; height: 100%; width: 25%; background: var(--coral); border-radius: 999px; transition: width .35s cubic-bezier(.2, .7, .2, 1); }
.booking__scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.booking__step { display: block; margin: 0; padding: 18px 28px 12px; border: 0; min-width: 0; }
.booking__step legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font: 600 1.05rem/1.3 var(--font-display); letter-spacing: -.02em; }
.booking__step legend + * { clear: both; }
.booking__group { margin: 18px 0 8px; font: 600 11.5px/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.booking__hint { margin-top: 12px; font-size: 14px; color: var(--muted); }
.choice { position: relative; display: flex; align-items: center; gap: 14px; min-height: 60px; margin-bottom: 8px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--white); cursor: pointer; transition: border-color .2s, background-color .2s; }
.choice:hover { border-color: var(--line-2); }
.choice:has(input:checked) { border-color: var(--ink); background: var(--coral-tint); }
.choice:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.choice input[type="radio"], .consent input[type="checkbox"], .design input { -webkit-appearance: none; appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border: 2px solid var(--line-2); border-radius: 50%; background: var(--white); display: grid; place-content: center; cursor: pointer; }
.choice input[type="radio"]::after, .design input::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--coral); transform: scale(0); transition: transform .15s; }
.choice input[type="radio"]:checked, .design input:checked { border-color: var(--ink); }
.choice input[type="radio"]:checked::after, .design input:checked::after { transform: scale(1); }
.choice__main { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 2px; }
.choice__main b { font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.choice__main small { font-size: 13px; color: var(--muted); }
.choice__price { font: 700 .95rem/1 var(--font-display); letter-spacing: -.03em; white-space: nowrap; }
.choice--master img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; }
.choice--amount { justify-content: center; text-align: center; }
.choice--amount input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; }
.choice--amount .choice__main b { font: 700 1.2rem var(--font-display); letter-spacing: -.03em; }
.cert-amounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.cert-dialog__sub { margin-top: 18px; }
.cert-designs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.design { position: relative; display: flex; align-items: flex-end; aspect-ratio: 1.4; padding: 12px; border-radius: var(--r-sm); cursor: pointer; border: 2px solid transparent; font-size: 13px; font-weight: 600; }
.design input { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; background: #fff; }
.design:has(input:checked) { border-color: var(--ink); }
.design--1 { background: var(--ink); color: var(--chalk); }
.design--2 { background: var(--coral); color: var(--ink); }
.design--3 { background: var(--white); color: var(--ink); border-color: var(--line-2); }
.days { display: grid; grid-auto-flow: column; grid-auto-columns: 68px; gap: 8px; padding-bottom: 10px; overflow-x: auto; scroll-snap-type: x proximity; }
.day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 80px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--white); cursor: pointer; scroll-snap-align: start; }
.day small { font-size: 12px; color: var(--muted); }
.day b { font: 700 1.25rem/1 var(--font-display); letter-spacing: -.03em; }
.day[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--chalk); }
.day[aria-checked="true"] small { color: rgb(242 240 234 / .75); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin-top: 12px; }
.slot { min-height: 46px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--white); font: 600 15px/1 var(--font-body); cursor: pointer; }
.slot:hover:not(:disabled) { border-color: var(--ink); }
.slot:disabled { opacity: .38; text-decoration: line-through; cursor: not-allowed; }
.slot[aria-checked="true"] { background: var(--coral); border-color: var(--ink); }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: var(--white); font: inherit; color: var(--ink); }
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--coral-soft); }
.field [aria-invalid="true"] { border-color: var(--coral-ink); }
.field__err { min-height: 1.2em; margin-top: 4px; font-size: 13px; color: var(--coral-ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; font-size: 14px; cursor: pointer; }
.consent input[type="checkbox"] { border-radius: 7px; margin-top: 1px; }
.consent input[type="checkbox"]:checked { background: var(--coral); border-color: var(--ink); background-image: linear-gradient(var(--ink), var(--ink)); background-size: 0 0; }
.consent input[type="checkbox"]::after { content: ''; width: 6px; height: 11px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); margin-top: -2px; transition: transform .15s; }
.consent input[type="checkbox"]:checked::after { transform: rotate(45deg) scale(1); }
.consent-note { margin-top: 4px; font-size: 13px; color: var(--muted); }
.booking__foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 28px 22px; border-top: 1px solid var(--line); background: var(--white); }
.booking__summary { flex: 1; min-width: 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.booking__nav { display: flex; gap: 8px; margin-left: auto; }
.booking__done { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 26px; text-align: center; }
.booking__done h3 { font-size: 1.5rem; }
.booking__done p { color: var(--muted); font-size: 14.5px; }
.done__icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--coral); }
.done__icon .i { width: 32px; height: 32px; }
.done__summary { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; width: 100%; max-width: 420px; padding: 18px 20px; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-sm); text-align: left; font-size: 14.5px; }
.done__summary dt { color: var(--muted); }
.done__summary dd { font-weight: 600; }
.demo-note { padding: 10px 14px; border-radius: 10px; background: var(--coral-tint); font-size: 13px !important; color: var(--ink-2) !important; }
@media (max-width: 640px) {
  .booking { width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .booking__form { height: 100dvh; max-height: 100dvh; }
  .booking__head, .booking__step, .booking__foot { padding-inline: 20px; }
  .booking__progress { margin-inline: 20px; }
  .booking__foot { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); flex-wrap: wrap; }
  .booking__summary { flex-basis: 100%; }
  .booking__nav { width: 100%; }
  .booking__nav .btn { flex: 1; }
}
.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 94dvh; overflow: visible; }
.lightbox img { max-width: 96vw; max-height: 86dvh; border-radius: var(--r-sm); }
.lightbox__close { position: absolute; top: -58px; right: 0; background: var(--white); }

/* ---------- legal pages ---------- */
.legal-page { padding-bottom: 0; }
.legal-bar { border-bottom: 1px solid var(--line); background: rgb(242 240 234 / .9); }
.legal-bar__in { display: flex; align-items: center; min-height: var(--header-h); }
.legal { padding: clamp(28px, 5vw, 64px) 0 var(--sec); }
.legal__doc { max-width: 760px; }
.legal h1 { font-size: clamp(1.5rem, 3.6vw, 2.25rem); letter-spacing: -.03em; margin-bottom: 16px; }
.legal__meta { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--coral-soft); font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.legal h2 { position: relative; margin: 38px 0 12px; padding-left: 18px; font-size: clamp(1.05rem, 2vw, 1.3rem); letter-spacing: -.02em; }
.legal h2::before { content: ''; position: absolute; left: 0; top: .12em; bottom: .12em; width: 5px; border-radius: 3px; background: var(--coral); }
.legal p, .legal li { color: var(--ink-2); font-size: 16.5px; line-height: 1.7; margin-top: 10px; }
.legal ul { padding-left: 22px; list-style: none; }
.legal li { position: relative; }
.legal li::before { content: ''; position: absolute; left: -18px; top: .72em; width: 8px; height: 8px; border-radius: 2px; background: var(--coral); }
.legal a { color: var(--ink); font-weight: 600; text-decoration-color: var(--coral); text-decoration-thickness: 2px; }
.legal__box { padding: clamp(20px, 3vw, 32px); background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r); margin: 22px 0 10px; }
.legal__box p:first-child { margin-top: 0; }
@media (min-width: 1000px) {
  .legal--toc { display: grid; grid-template-columns: 280px minmax(0, 760px); gap: 64px; align-items: start; }
  .legal__toc { position: sticky; top: calc(var(--header-h) + 24px); }
}
.legal__toc { padding: 20px; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r); margin-bottom: 28px; }
.legal__toc ol { margin-top: 8px; }
.legal__toc li { margin: 0; padding: 0; }
.legal__toc li::before { display: none; }
.legal__toc a { display: flex; align-items: center; min-height: 44px; padding: 8px 0 8px 14px; border-left: 3px solid var(--line); font-size: 14px; font-weight: 500; line-height: 1.35; text-decoration: none; color: var(--ink-2); }
.legal__toc a:hover { color: var(--ink); border-left-color: var(--coral); }

/* ---------- «от» marker, small units, long words ---------- */
.prog__price b small, .price-row__price small { font: 600 max(.4em, 12px)/1 var(--font-body); letter-spacing: 0; word-spacing: 0; color: var(--muted); margin-right: .2em; }
.stat__num small, .kpi b small { font-size: max(.4em, 12px); }
h1, h2, h3, .price-row__name span, .choice__main b, .prog h3 { overflow-wrap: break-word; }
.lightbox :focus-visible { outline-color: #fff; }

/* ---------- small screens ---------- */
@media (max-width: 559px) {
  .zones { display: flex; flex-direction: column; gap: 14px; }
  .zones__head { order: 1; margin-bottom: 0; }
  .zones__body { display: contents; }
  .zones__fig { order: 2; padding: 16px 10px 10px; }
  .zones__chips { order: 3; margin-top: 0; }
  .zones__read { order: 4; padding: 20px; }
  .zones__data { order: 5; margin-top: 0; }
  .body { max-width: 164px; }
  .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cert { min-height: 172px; padding: 16px; }
  .cert::before { display: none; }
  .cert__brand { font-size: 16px; }
  .cert__label { font-size: 10px; letter-spacing: .08em; }
  .cert__value { font-size: 1.3rem; }
  .cert--any .cert__value { font-size: 1.05rem; }
  .cert__cta { font-size: 13px; }
}
@media (max-width: 639px) {
  .progs, .masters:not(.masters--detailed), .reviews {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 14px;
  }
  .progs::-webkit-scrollbar, .masters::-webkit-scrollbar, .reviews::-webkit-scrollbar { display: none; }
  .progs > *, .masters:not(.masters--detailed) > *, .reviews > * { scroll-snap-align: start; }
  .progs .reveal, .masters .reveal, .reviews .reveal { opacity: 1 !important; transform: none !important; }
}
@media (max-width: 420px) { .btn { white-space: normal; text-align: center; line-height: 1.2; padding-block: 12px; } }
@media (max-width: 899px) { .offer::after { right: -190px; top: -210px; width: 260px; height: 260px; border-width: 34px; } }
@media (max-width: 819px) { .master--detailed .master__photo { aspect-ratio: 4 / 3.1; } .master--detailed .master__photo img { object-position: 50% 22%; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .live::after, .pin__ring { display: none; }
}

/* --- лента демо: плашка «ДЕМО» и кнопка «Хочу такой» (ночь 2026-10-17) --- */
.demo-ribbon{display:flex;flex-wrap:wrap;align-items:center}
.demo-ribbon>a{grid-row:auto}
.demo-ribbon .demo-ribbon__pill{flex:none;display:inline-flex;align-items:center;margin:2px 0;padding:2px 9px;border-radius:999px;background:rgba(255,255,255,.16);background:color-mix(in srgb,currentColor 14%,transparent);font:600 11.5px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;letter-spacing:.03em;white-space:nowrap;opacity:1}
.demo-ribbon .demo-ribbon__note{margin-left:0}
.demo-ribbon .demo-ribbon__cta{flex:none;margin:4px 0 4px auto;min-height:34px;padding:0 14px;border:1.5px solid currentColor;border-radius:999px;background:rgba(255,255,255,.12);background:color-mix(in srgb,currentColor 12%,transparent);font-weight:700;letter-spacing:0;text-transform:none}
.demo-ribbon .demo-ribbon__cta-short{display:none}
@media (max-width:1099px){.demo-ribbon .demo-ribbon__note{display:none}}
@media (min-width:781px) and (max-width:1099px){
.demo-ribbon>a:first-child{order:1}
.demo-ribbon .demo-ribbon__pill{order:2}
.demo-ribbon .demo-ribbon__cta{order:3}
.demo-ribbon .demo-ribbon__pkg{order:4;flex:1 1 100%;white-space:normal;overflow:visible;text-overflow:clip}
}
@media (max-width:780px){
.demo-ribbon{gap:2px 10px;padding-top:4px;padding-bottom:6px}
.demo-ribbon>a:first-child{order:1}
.demo-ribbon .demo-ribbon__cta{order:2}
.demo-ribbon .demo-ribbon__pill{order:3}
.demo-ribbon .demo-ribbon__pkg{order:4;flex:1 1 190px;white-space:normal;overflow:visible;text-overflow:clip;line-height:1.25;padding:0}
}
@media (max-width:420px){
.demo-ribbon .demo-ribbon__cta-long{display:none}
.demo-ribbon .demo-ribbon__cta-short{display:inline}
.demo-ribbon .demo-ribbon__cta{padding:0 12px}
}
.site-footer__small a,.foot__small a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.demo-want{display:inline-block;padding:10px 0 4px;font-weight:600}

/* --- лента демо: вторая ссылка «О студии» (раунд 2, 2026-10-17) --- */
.demo-ribbon .demo-ribbon__studio{flex:none;min-height:30px;margin:0;font-size:12px;font-weight:600;opacity:.9;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.demo-ribbon .demo-ribbon__studio:hover,.demo-ribbon .demo-ribbon__studio:focus-visible{opacity:1}
@media (min-width:781px) and (max-width:1099px){.demo-ribbon>p:not([class]){order:1}.demo-ribbon .demo-ribbon__studio{order:2}}
@media (max-width:780px){.demo-ribbon .demo-ribbon__studio{order:3}}
