/* Касание — светлый интерфейс в духе «Рентгена»: мягкий серый фон, белые стеклянные панели,
   крупные скругления, гротеск Onest. Акцент — спокойный бирюзовый, мышцы — красные. */

:root {
  --bg: #EEF0F3;
  --surface: #FFFFFF;
  --ink: #0E1116;
  --ink-2: #2B313B;
  --muted: #6B7280;
  --line: rgba(14, 17, 22, .08);
  --accent: #0A8F7C;
  --accent-ink: #06705F;
  --accent-soft: #D7F2EC;
  --red: #E5484D;
  --red-soft: #FFE3E3;
  --amber: #B45309;
  --amber-soft: #FFF1D6;
  --glass: rgba(255, 255, 255, .8);
  --shadow: 0 18px 40px -22px rgba(16, 24, 40, .45);
  --shadow-sm: 0 6px 18px -8px rgba(16, 24, 40, .3);

  --font: "Onest", -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --out: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.3, .5, 1);
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, 0.063, 0.215, 0.405 7.2%, 0.759 12.3%, 0.893 15.3%, 0.991 18.6%, 1.047 22.3%,
      1.066 25.5%, 1.068 28.9%, 1.054 33.2%, 1.009 45.6%, 0.995 54.6%, 1.001 76.4%, 1);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

button, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
.muted { color: var(--muted); }
svg { flex: none; }

/* ═════════ экраны ═════════ */

.screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.screen.enter { animation: screen-in .5s var(--out) both; }
.screen.enter-back { animation: screen-in-back .5s var(--out) both; }
@keyframes screen-in { from { opacity: 0; transform: translateX(24px); } }
@keyframes screen-in-back { from { opacity: 0; transform: translateX(-24px); } }

.wrap {
  width: min(100%, 480px);
  margin: 0 auto;
  padding: 0 18px;
}

.scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
}

/* ── шапка ── */

.bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(12px + var(--safe-t)) 14px 10px;
}

.bar.over {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  justify-content: space-between;
  pointer-events: none;
}
.bar.over > * { pointer-events: auto; }

.bar-title {
  flex: 1;
  white-space: nowrap;
  text-align: center;
  font-size: 17px;
  font-weight: 650;
}

.round {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--spring), background .2s;
}
.round:active { transform: scale(.92); }
.round svg, .cta svg, .btn-soft svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.round-spacer { width: 44px; flex: none; }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
}

/* ── кнопки ── */

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 60px;
  padding: 0 7px 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -.01em;
  box-shadow: var(--shadow);
  transition: transform .3s var(--spring), opacity .2s;
}
.cta i {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
}
.cta svg { stroke: #fff; stroke-width: 2; transition: transform .4s var(--spring); }
.cta:hover svg { transform: translateX(2px); }
.cta:active { transform: scale(.97); }
.cta:disabled { opacity: .35; pointer-events: none; }
.cta-sm { height: 52px; font-size: 16px; padding-left: 20px; }
.cta-sm i { width: 40px; height: 40px; }
.cta-sm:not(:has(i)) { justify-content: center; padding: 0 20px; }

.btn-soft {
  height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  font-size: 15px;
  transition: transform .3s var(--spring);
}
.btn-soft:active { transform: scale(.96); }
.btn-soft.wide { width: 100%; margin-bottom: 10px; }

.row { display: flex; gap: 10px; align-items: center; }
.row .cta { flex: 1; }

.seg {
  position: relative;
  display: flex;
  padding: 4px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.seg button {
  position: relative;
  z-index: 1;
  border: 0;
  background: none;
  padding: 9px 15px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  transition: color .25s, background .3s var(--out);
}
.seg button[aria-checked="true"] { background: var(--ink); color: #fff; }

/* ═════════ старт ═════════ */

.intro { overflow-y: auto; padding: calc(14px + var(--safe-t)) 0 calc(20px + var(--safe-b)); }
.intro .wrap { display: flex; flex-direction: column; margin: auto; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  animation: rise .7s var(--out) both;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--ink);
}
.brand-mark svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linejoin: round; }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand-tag {
  margin-left: auto;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  font-size: 12px;
  color: var(--accent-ink);
}

.hero {
  position: relative;
  margin: 0;
  height: clamp(330px, 52vh, 480px);
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(90% 70% at 85% 0%, rgba(255, 255, 255, .5), transparent 60%),
    linear-gradient(160deg, #E4F4F0, #CFE9E3 60%, #BFE0D8);
  box-shadow: 0 30px 60px -34px rgba(10, 143, 124, .55);
  animation: hero-in .9s var(--spring) .1s both;
}
@keyframes hero-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }

.hero-stage { position: absolute; inset: 70px 0 0 16%; }
.hero-stage .layer-muscles { opacity: .55; }
.hero-stage .silhouette { fill: #F6F1EC; }

.hero-title {
  position: relative;
  z-index: 1;
  max-width: 9em;
  padding: 24px 22px 0;
  font-weight: 750;
  font-size: clamp(28px, 8.4vw, 36px);
  line-height: 1.02;
  letter-spacing: -.035em;
  color: var(--ink);
  pointer-events: none;
}

.hero-chip {
  position: absolute;
  z-index: 1;
  left: 22px;
  bottom: 22px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  font-size: 12.5px;
  font-weight: 600;
  transition: opacity .3s;
}

.steps {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.steps li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  animation: rise .7s var(--out) both;
}
.steps li:nth-child(1) { animation-delay: .45s; }
.steps li:nth-child(2) { animation-delay: .55s; }
.steps li:nth-child(3) { animation-delay: .65s; }
.steps b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 14px;
}
.steps span { display: grid; gap: 1px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.steps strong { font-size: 15px; color: var(--ink); font-weight: 650; }

.resume { margin-top: 14px; animation: rise .7s var(--out) .7s both; }
.resume-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px 10px 10px;
  border: 2px solid var(--accent);
  border-radius: 22px;
  background: var(--surface);
  text-align: left;
}
.resume-thumb {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 14px;
  background: #D9D3CE center / cover;
}
.resume-text { flex: 1; display: grid; gap: 2px; }
.resume-text small { color: var(--muted); font-size: 12.5px; }
.chev-r { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }

.intro .cta { margin-top: 16px; animation: rise .7s var(--out) .75s both; }

.fineprint {
  margin: 14px 4px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-wrap: pretty;
}

@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ═════════ камера ═════════ */

.capture { background: #0E1116; }
.cam { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.guide-sil {
  position: absolute;
  inset: 12% 8% 18%;
  width: 84%;
  height: 70%;
  pointer-events: none;
}
.guide-sil path { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .85); stroke-width: 3; stroke-dasharray: 10 9; vector-effect: non-scaling-stroke; }

.cam-hint {
  position: absolute;
  z-index: 2;
  top: calc(70px + var(--safe-t));
  left: 50%;
  transform: translateX(-50%);
  width: min(88%, 380px);
  margin: 0;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.cam-off {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #fff;
  text-align: center;
}
.cam-off p { display: grid; gap: 6px; max-width: 300px; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .75); }
.cam-off b { color: #fff; font-size: 18px; }

.cam-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 28px calc(26px + var(--safe-b));
}
.cam-dock .round { width: 52px; height: 52px; cursor: pointer; }
.cam-dock label.round { display: grid; }

.shutter {
  width: 78px;
  height: 78px;
  padding: 6px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: transparent;
  transition: transform .3s var(--spring);
}
.shutter span { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; }
.shutter:active { transform: scale(.9); }

/* ═════════ проверка точек ═════════ */

.stage-fill { position: absolute; inset: 0; }
.check .stage-fill { bottom: 0; }
.check { background: #1A1F27; }

.sheet {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 18px calc(18px + var(--safe-b));
  border-radius: 28px 28px 0 0;
  background: var(--surface);
  box-shadow: 0 -10px 40px -20px rgba(0, 0, 0, .4);
}
.sheet-mini { width: min(100%, 520px); margin: 0 auto; }
.sheet h2 { font-size: 20px; }
.sheet p { margin: 6px 0 14px; font-size: 14px; line-height: 1.45; }

.busy {
  position: absolute;
  z-index: 4;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: 14px;
}
.busy i {
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═════════ квиз ═════════ */

.progress { flex: 1; display: flex; gap: 4px; }
.progress i { flex: 1; height: 5px; border-radius: 3px; background: rgba(14, 17, 22, .1); overflow: hidden; }
.progress i::after { content: ""; display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .5s var(--out); }
.progress i.done::after { width: 100%; }
.q-count { width: 44px; text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); }

.q-body { flex: 1; overflow-y: auto; padding: 4px 0 12px; }
.q-body > .wrap { animation: q-in .45s var(--out) both; }
.q-body.back > .wrap { animation-name: q-in-back; }
@keyframes q-in { from { opacity: 0; transform: translateX(28px); } }
@keyframes q-in-back { from { opacity: 0; transform: translateX(-28px); } }

.q-title { font-size: 27px; font-weight: 750; line-height: 1.08; letter-spacing: -.03em; margin: 8px 0 6px; }
.q-sub { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; line-height: 1.4; }

.opts { display: grid; gap: 8px; }
.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 12px 14px;
  border: 2px solid transparent;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: border-color .2s, transform .3s var(--spring), background .2s;
}
.opt:active { transform: scale(.98); }
.opt span { flex: 1; display: grid; gap: 2px; }
.opt b { font-weight: 600; font-size: 15.5px; }
.opt small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.opt .tick {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 8px;
  border: 2px solid rgba(14, 17, 22, .15);
  transition: background .2s, border-color .2s;
}
.opt.single .tick { border-radius: 50%; }
.opt .tick svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .3s var(--spring); }
.opt[aria-pressed="true"], .opt[aria-checked="true"] { border-color: var(--accent); background: #F4FBF9; }
.opt[aria-pressed="true"] .tick, .opt[aria-checked="true"] .tick { background: var(--accent); border-color: var(--accent); }
.opt[aria-pressed="true"] .tick svg, .opt[aria-checked="true"] .tick svg { opacity: 1; transform: none; }
.opt.warn[aria-pressed="true"] { border-color: var(--amber); background: #FFFAF0; }
.opt.warn[aria-pressed="true"] .tick { background: var(--amber); border-color: var(--amber); }

/* карта тела */
.map-wrap { position: relative; }
.map-stage {
  position: relative;
  height: min(58vh, 560px);
  border-radius: 28px;
  overflow: hidden;
  background: #1A1F27;
  box-shadow: var(--shadow);
}
.map-stage.schema { background: linear-gradient(170deg, #F4F5F7, #E4E7EC); }
.map-wrap .seg { position: absolute; z-index: 2; top: 12px; left: 50%; transform: translateX(-50%); }
.map-note {
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; min-height: 34px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px 7px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 600;
  animation: chip-in .4s var(--spring) both;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.chip svg { width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 2.4; stroke-linecap: round; }
@keyframes chip-in { from { opacity: 0; transform: scale(.8); } }
.chips-empty { color: var(--muted); font-size: 13px; padding: 8px 2px; }

/* шкала */
.scale-num {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 18px 0 6px;
}
.scale-num b { font-size: 84px; font-weight: 800; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.scale-num span { font-size: 18px; font-weight: 600; color: var(--muted); }
.scale-word { font-size: 17px; font-weight: 650; margin: 0 0 22px; min-height: 1.3em; }
.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  background: transparent;
  margin: 0;
}
.range::-webkit-slider-runnable-track { height: 12px; border-radius: 6px; background: linear-gradient(90deg, #2FB58F, #F2C14E 50%, #E5484D); }
.range::-moz-range-track { height: 12px; border-radius: 6px; background: linear-gradient(90deg, #2FB58F, #F2C14E 50%, #E5484D); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; margin-top: -11px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 4px 14px rgba(16, 24, 40, .35); }
.range::-moz-range-thumb { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 4px 14px rgba(16, 24, 40, .35); }
.scale-ends { display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; }

.setup-h { font-size: 13px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 18px 2px 8px; }
.mins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mins button {
  height: 64px;
  border: 2px solid transparent;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-content: center;
  line-height: 1.1;
  transition: border-color .2s, transform .3s var(--spring);
}
.mins button b { font-size: 22px; font-weight: 750; }
.mins button small { font-size: 11.5px; color: var(--muted); }
.mins button[aria-checked="true"] { border-color: var(--accent); background: #F4FBF9; }

.q-foot, .dock {
  padding: 10px 18px calc(14px + var(--safe-b));
  background: linear-gradient(transparent, var(--bg) 30%);
}
.q-foot .cta, .dock .cta { width: min(100%, 444px); margin: 0 auto; }

.cam-title { white-space: nowrap; padding: 10px 16px; border-radius: 999px; font-weight: 650; font-size: 14px; box-shadow: var(--shadow-sm); }
.zone-list, .spot-list { margin-top: 12px; }
.spot-n {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 2.5px var(--red);
  font-style: normal;
  font-weight: 750;
  font-size: 12.5px;
}
.opt.warn-opt[aria-checked="true"] { border-color: var(--amber); background: #FFFAF0; }
.pinnable { cursor: crosshair; }
.pin-ring { fill: var(--red); stroke: #fff; stroke-width: calc(var(--u) * 3px); }
.pin-cross { stroke: #fff; stroke-width: calc(var(--u) * 3px); stroke-linecap: round; }
.pin-pulse { fill: none; stroke: var(--red); stroke-width: calc(var(--u) * 2.5px); animation: tp-pulse 1.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }

/* ═════════ результат ═════════ */

.deep { margin-top: 14px; padding: 14px 16px; border-radius: 18px; background: #F4FBF9; box-shadow: inset 0 0 0 1.5px rgba(10, 143, 124, .25); }
.deep h4 { margin-top: 0 !important; color: var(--accent-ink) !important; }
.deep .dots li + li { margin-top: 8px; }
.others h3 { font-size: 15px; margin-bottom: 10px; }
.mbar { display: grid; grid-template-columns: 1fr 90px 38px; align-items: center; gap: 10px; font-size: 13.5px; padding: 5px 0; }
.mbar i { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--red) var(--w), rgba(14, 17, 22, .08) var(--w)); }
.mbar b { text-align: right; font-variant-numeric: tabular-nums; }
.note.deep { display: block; padding: 12px 14px; background: #F4FBF9; color: var(--ink); }
.note.deep ol { margin: 6px 0 0; padding-left: 18px; }
.note.deep li + li { margin-top: 6px; }

.card {
  margin-top: 12px;
  padding: 18px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 17px; margin-bottom: 8px; }

.card-stage {
  position: relative;
  height: 340px;
  margin-top: 4px;
  border-radius: 26px;
  overflow: hidden;
  background: #1A1F27;
  box-shadow: var(--shadow);
}
.card-stage.schema { background: linear-gradient(170deg, #F4F5F7, #E4E7EC); }

.alert {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--amber-soft);
  color: #5B3A07;
  font-size: 13.5px;
  line-height: 1.45;
}
.alert b { display: block; font-size: 15px; margin-bottom: 2px; color: #3E2604; }
.alert svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.alert.stop { background: var(--red-soft); color: #7A1519; }
.alert.stop b { color: #5C0E11; }
.alert.info { background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow-sm); }
.alert.info b { color: var(--ink); }

.pat {
  margin-top: 12px;
  padding: 18px;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  animation: rise .6s var(--out) both;
}
.pat-top { display: flex; gap: 14px; align-items: center; }
.pct {
  position: relative;
  width: 58px;
  height: 58px;
  flex: none;
}
.pct svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pct circle { fill: none; stroke-width: 6; }
.pct .bg { stroke: rgba(14, 17, 22, .08); }
.pct .fg { stroke: var(--red); stroke-linecap: round; stroke-dasharray: 1; transition: stroke-dashoffset 1.2s var(--out); }
.pct b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; font-weight: 750; }
.pat-title { display: grid; gap: 3px; }
.pat-title small { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.pat-title h3 { font-size: 18px; line-height: 1.2; }
.pat-kicker { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.pat p { margin: 12px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.pat h4 { margin: 16px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 6px 10px; border-radius: 999px; background: var(--bg); font-size: 12.5px; font-weight: 600; }
.tag.m { background: var(--red-soft); color: #9A1C21; }
.dots { margin: 0; padding: 0 0 0 18px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.dots li + li { margin-top: 6px; }
.doc { display: flex; gap: 8px; margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--bg); font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.doc svg { width: 18px; height: 18px; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; }

/* ═════════ план ═════════ */

.plan-head { margin: 4px 2px 12px; }
.plan-total { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -.04em; }
.plan-head .muted { margin: 4px 0 0; font-size: 14px; line-height: 1.4; }

.prep {
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.prep summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 16px;
  list-style: none;
  cursor: pointer;
  font-weight: 650;
}
.prep summary::-webkit-details-marker { display: none; }
.prep summary small { color: var(--muted); font-weight: 500; font-size: 13px; }
.prep .chev { margin-left: auto; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; transition: transform .3s var(--spring); }
.prep[open] .chev { transform: rotate(180deg); }
.prep ul { margin: 0; padding: 0 16px 14px; list-style: none; display: grid; gap: 10px; }
.prep li { display: grid; gap: 2px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.prep li b { color: var(--ink); font-size: 14px; }

.plan-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.plan-turn {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 4px 4px;
  font-size: 13px;
  font-weight: 650;
  color: var(--accent-ink);
}
.plan-turn::before, .plan-turn::after { content: ""; flex: 1; height: 1px; background: rgba(10, 143, 124, .3); }
.item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px 10px 10px;
  border: 0;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform .3s var(--spring);
  animation: rise .5s var(--out) both;
}
.item:active { transform: scale(.98); }
.item-thumb {
  position: relative;
  width: 58px;
  height: 58px;
  flex: none;
  border-radius: 16px;
  overflow: hidden;
  background: #E4E7EC;
}
.item-thumb .stage { position: absolute; inset: 0; }
.item-num {
  position: absolute;
  z-index: 2;
  left: 4px;
  top: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .92);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.item-body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.item-body b { font-size: 15px; font-weight: 650; line-height: 1.25; }
.item-body small { color: var(--muted); font-size: 12.5px; }
.item-side { display: grid; justify-items: end; gap: 5px; }
.item-time { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.press-dots { display: flex; gap: 3px; }
.press-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(14, 17, 22, .12); }
.press-dots i.on { background: var(--red); }
.item.done { opacity: .55; }
.item.done .item-time { color: var(--accent-ink); }
.item.done .item-num { background: var(--accent); color: #fff; }

.empty-plan { padding: 28px 8px; text-align: center; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* ═════════ сеанс ═════════ */

.s-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.s-press { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.s-main { display: flex; align-items: center; gap: 14px; margin: 10px 0 4px; }
.timer.timer-sm { width: 96px; height: 96px; flex: none; }
.timer-sm .t-play { inset: 10px; }
.timer-sm .t-time { font-size: 19px; }
.s-now { flex: 1; min-width: 0; }
.s-step { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-ink); }
.s-now p { margin: 3px 0 0; font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.s-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.round-sm { width: 40px; height: 40px; }
.round-sm svg { width: 18px !important; height: 18px !important; }
.btn-more { flex: 1; height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; background: var(--bg); box-shadow: none; }
.btn-more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform .3s var(--spring); }
.btn-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.s-detail { margin-top: 10px; }
.s-detail .s-meta { margin-bottom: 4px; }

.session { background: #1A1F27; }
.s-stage-wrap { position: relative; flex: 1; min-height: 0; }
.s-stage-wrap .stage-fill.schema { background: linear-gradient(170deg, #F4F5F7, #E4E7EC); }

.s-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: calc(100% - 120px);
  height: 44px;
  padding: 0 14px 0 6px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 13.5px;
  font-weight: 600;
}
.s-pill b {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
}
.s-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

[data-voice] .i-off, [data-voice][aria-pressed="false"] .i-on { display: none; }
[data-voice][aria-pressed="false"] .i-off { display: block; }

.layers {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 36px;
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.layers button {
  border: 0;
  padding: 7px 11px;
  border-radius: 999px;
  background: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: background .2s, color .2s;
}
.layers button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.s-toast {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: calc(70px + var(--safe-t));
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  font-size: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, -8px) scale(.95);
  transition: opacity .3s, transform .4s var(--spring);
  pointer-events: none;
  white-space: nowrap;
}
.s-toast.on { opacity: 1; transform: translate(-50%, 0); }

.s-sheet {
  position: relative;
  z-index: 3;
  max-height: 34vh;
  transition: max-height .4s var(--out);
  overflow-y: auto;
  padding: 16px 18px calc(12px + var(--safe-b));
  margin-top: -24px;
  border-radius: 28px 28px 0 0;
  background: var(--surface);
  box-shadow: 0 -10px 40px -20px rgba(0, 0, 0, .5);
}
.s-titles { display: grid; gap: 4px; }
.chip-accent {
  justify-self: start;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
}
.s-titles h2 { font-size: 19px; line-height: 1.15; }
.s-sheet.open { max-height: 78vh; }
.points .s-sheet { max-height: 52vh; }
.s-meta { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.s-meta .press-dots { display: inline-flex; vertical-align: middle; margin: 0 2px; }

.s-controls { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 14px 0 8px; }
.s-controls .round svg { width: 20px; height: 20px; }
.timer { position: relative; width: 116px; height: 116px; }
.timer > svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.t-bg { fill: none; stroke: var(--bg); stroke-width: 8; }
.t-ring { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .3s linear; }
.t-play {
  position: absolute;
  inset: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2px;
  transition: transform .3s var(--spring);
}
.t-play:active { transform: scale(.94); }
.t-time { font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.t-icon svg { width: 18px; height: 18px; fill: #fff; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t-icon .i-pause { display: none; fill: none; }
.session.running .t-icon .i-play { display: none; }
.session.running .t-icon .i-pause { display: block; }

.s-tips { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; counter-reset: tip; }
.s-tips li {
  counter-increment: tip;
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
  transition: background .3s, color .3s;
}
.s-tips li::before {
  content: counter(tip);
  width: 22px;
  height: 22px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.s-tips li.on { background: #F4FBF9; color: var(--ink); }
.s-tips li.on::before { background: var(--accent); color: #fff; }

.s-notes { display: grid; gap: 6px; margin-top: 10px; }
.note { display: flex; gap: 8px; font-size: 13px; line-height: 1.4; color: var(--ink-2); padding: 10px 12px; border-radius: 14px; background: var(--bg); }
.note b { flex: none; }
.note.warn { background: var(--red-soft); color: #7A1519; }

.next-over {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(14, 17, 22, .45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fade .3s both;
}
@keyframes fade { from { opacity: 0; } }
.next-card {
  width: min(100%, 360px);
  padding: 22px;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
  animation: pop .5s var(--spring) both;
}
@keyframes pop { from { opacity: 0; transform: scale(.9); } }
.next-card h3 { font-size: 21px; margin: 4px 0; }
.next-card p { margin: 0 0 16px; font-size: 13.5px; }
.next-card .muted:first-child { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* ═════════ точечное расслабление ═════════ */

.points-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px 12px 12px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(120deg, #E1F5F0, #F4FBF9);
  box-shadow: var(--shadow-sm), inset 0 0 0 1.5px rgba(10, 143, 124, .25);
  text-align: left;
  transition: transform .3s var(--spring);
}
.points-card:active { transform: scale(.98); }
.points-card:disabled { opacity: .5; }
.points-ic {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 14px;
  background: var(--accent);
}
.points-ic svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; }
.points-txt { flex: 1; display: grid; gap: 2px; }
.points-txt b { font-size: 15.5px; font-weight: 650; }
.points-txt small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }

.points #p-pick h2, .points .s-titles h2 { font-size: 21px; }
.points #p-pick .s-meta { margin-top: 4px; }
.hold-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 6px; font-weight: 600; font-size: 14px; }
.seg-light { background: var(--bg); box-shadow: none; }
.seg-light button { padding: 8px 13px; }

.p-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.p-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border: 2px solid transparent;
  border-radius: 18px;
  background: var(--bg);
  text-align: left;
  transition: border-color .2s, background .2s, transform .3s var(--spring);
}
.p-row:active { transform: scale(.98); }
.p-row .n {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 2.5px var(--red);
  font-size: 12.5px;
  font-weight: 750;
}
.p-row span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.p-row b { font-size: 14.5px; font-weight: 650; }
.p-row small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.p-row.on { border-color: var(--accent); background: #F4FBF9; }
.p-row.done .n { background: var(--accent); color: #fff; box-shadow: none; }
.p-row .go {
  font-style: normal;
  flex: none;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
}
.p-row:not(.on) .go { display: none; }

.plus20 { font-weight: 750; font-size: 14px; }
.p-steps { list-style: none; display: flex; gap: 4px; margin: 6px 0 10px; padding: 0; }
.p-steps li {
  flex: 1;
  padding-top: 8px;
  border-top: 4px solid var(--bg);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  transition: border-color .3s, color .3s;
}
.p-steps li.past { border-color: rgba(10, 143, 124, .4); }
.p-steps li.on { border-color: var(--accent); color: var(--ink); }
.p-say {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #F4FBF9;
  font-size: 14.5px;
  line-height: 1.45;
  min-height: 3.2em;
}
.points .s-stage-wrap .stage-fill.schema { background: linear-gradient(170deg, #F4F5F7, #E4E7EC); }
.tp-pick { cursor: pointer; }
.tp-pick .hit { fill: transparent; }
.tp-pick .ring { fill: rgba(255, 255, 255, .9); stroke: var(--red); stroke-width: calc(var(--u) * 3px); }
.tp-pick text { fill: var(--ink); font-weight: 750; font-family: var(--font); pointer-events: none; }
.tp-pick.done .ring { fill: var(--accent); stroke: #fff; }
.tp-pick.done text { fill: #fff; }
.tp-pick.on .ring { stroke: var(--accent); stroke-width: calc(var(--u) * 4px); }
.tp-pulse { fill: none; stroke: var(--red); stroke-width: calc(var(--u) * 2px); animation: tp-pulse 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes tp-pulse { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(2.4); } }

/* ═════════ готово ═════════ */

.fin { overflow-y: auto; padding: calc(30px + var(--safe-t)) 0 calc(24px + var(--safe-b)); }
.fin .wrap { display: flex; flex-direction: column; }
.done-badge {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: var(--accent);
  box-shadow: 0 20px 40px -18px rgba(10, 143, 124, .8);
  animation: pop .6s var(--spring) both;
}
.done-badge svg { width: 36px; height: 36px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.fin h1 { margin-top: 18px; font-size: 32px; font-weight: 800; }
.fin > .wrap > .muted { margin: 6px 0 4px; font-size: 15px; }
.fin .cta { margin-top: 4px; }
.fin .card:last-of-type { margin-bottom: 16px; }

/* ═════════ всплывашка ═════════ */

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: calc(100px + var(--safe-b));
  max-width: min(90vw, 420px);
  margin: 0;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity .3s, transform .4s var(--spring);
  pointer-events: none;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ═════════ широкий экран ═════════ */

@media (min-width: 900px) {
  .session { flex-direction: row; }
  .s-stage-wrap { flex: 1; }
  .s-sheet {
    width: 420px;
    flex: none;
    max-height: none;
    margin: 0;
    border-radius: 0;
    padding-top: calc(20px + var(--safe-t));
  }
  .map-stage { height: min(62vh, 620px); }
  .card-stage { height: 400px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
