@font-face {
  font-family: Golos;
  src: url("./media/golos.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
:root {
  --rail: min(1210px, calc(100% - 80px));
  --ink: #262626;
  --muted: #626262;
  --line: #e6e6e6;
  --hue: 273;
  --brand: hsl(var(--hue) 44% 60%);
  --accent: hsl(var(--hue) 44% 43%);
  --strong: hsl(var(--hue) 44% 34%);
  --edge: hsl(var(--hue) 44% 84%);
  --tint: hsl(var(--hue) 44% 94%);
  --selected: hsl(var(--hue) 44% 89%);
  --wash: hsl(var(--hue) 44% 97%);
  color: var(--ink);
  background: white;
  font: 16px/1.45 Golos, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1:focus { outline: none; }
::selection { background: var(--selected); color: var(--ink); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: clamp(27px, 2.2vw, 32px); font-weight: 675; text-wrap: balance; overflow-wrap: anywhere; }
h1 em { color: var(--accent); font-style: normal; }
h2 { font-weight: 625; font-size: 23px; }
h3 { font-size: 17px; font-weight: 610; }
small { color: var(--muted); font-size: .84rem; }
.mast { width: var(--rail); margin-inline: auto; display: flex; align-items: center; height: 94px; padding-top: 29px; }
.mast img { width: 108px; height: 37px; object-fit: contain; object-position: left; }
body:not([data-screen=age]) .mast { position: relative; width: 100%; height: 86px; padding: 0 clamp(28px,3.1vw,60px); gap: 30px; background: white; }
#quiz-status { display: contents; }
.chapter { position: absolute; left: 50%; transform: translateX(-50%); font-size: 16px; font-weight: 550; }
.counter { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.segments { position: absolute; inset: auto 0 0; display: flex; gap: 4px; }
.segments i { flex: 1; height: 4px; background: #efedf0; border-radius: 3px; overflow: hidden; }
.segments i span { display: block; height: 100%; background: var(--accent); transform-origin: left; }
main { width: 100%; padding-bottom: 64px; }
.back { width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 1px solid #ccc8cd; border-radius: 50%; background: white; color: var(--ink); }
.line-arrow { position: relative; display: inline-block; width: 16px; height: 1.6px; background: currentColor; transform: rotate(180deg); }
.line-arrow::after { content: ""; position: absolute; right: 0; top: 50%; width: 8px; height: 8px; border: solid currentColor; border-width: 1.6px 1.6px 0 0; transform: translateY(-50%) rotate(45deg); }
.chevron { flex: none; display: inline-block; width: 8px; height: 8px; border: solid currentColor; border-width: 1.6px 1.6px 0 0; transform: rotate(45deg); }
.entry { width: min(1080px, calc(100% - 80px)); margin: 16px auto 0; }
.entry h1 { max-width: 29ch; font-weight: 710; font-size: clamp(38px,4.1vw,58px); line-height: 1.045; letter-spacing: -.04em; }
.agepicker { margin-top: 24px; }
.agepicker h2 { font-size: 23px; margin-bottom: 13px; }
.agegrid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(10px,1.4vw,18px); }
.agecard { padding: 0; border: 0; overflow: hidden; border-radius: 15px; background: var(--tint); text-align: left; }
.portrait { display: block; width: 100%; aspect-ratio: 1 / 1.03; object-fit: cover; object-position: center 28%; }
.age-label { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; font-size: clamp(17px,1.7vw,23px); font-weight: 640; letter-spacing: -.025em; }
.round-arrow { display: grid; place-items: center; flex: none; border: 1px solid currentColor; border-radius: 50%; width: 25px; height: 25px; }
.round-arrow .chevron { margin-right: 3px; }
.agecard.selected .age-label { background: var(--accent); color: white; }
.step { position: relative; z-index: 1; width: min(552px,calc(100% - 36px)); margin: 62px auto 0; }
.step .headline { text-align: center; margin-bottom: 39px; }
.step h1 { font-size: clamp(32px,2.6vw,40px); font-weight: 555; line-height: 1.08; letter-spacing: -.037em; }
.headline p, .intro { font-size: 16px; color: var(--muted); line-height: 1.5; }
.headline p { margin-top: 10px; }
.options { display: grid; gap: 15px; }
.option { display: flex; align-items: center; width: 100%; gap: 14px; min-height: 74px; padding: 14px 24px; background: white; border: 1px solid #e7e4e8; border-radius: 16px; text-align: left; font-size: 19px; font-weight: 485; line-height: 1.3; }
.option-text { flex: 1; }
.option.selected { background: var(--wash); border-color: var(--wash); color: var(--ink); }
.marker { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border: 1px solid #c3bec5; border-radius: 50%; }
.multi .marker { border-radius: 6px; }
.selected .marker { border-color: var(--accent); background: var(--accent); }
.selected .marker::before { content: ""; width: 5px; height: 10px; border: solid white; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.option-icon, .days-symbol { display: grid; place-items: center; flex: none; width: 38px; height: 38px; color: var(--accent); background: var(--wash); border-radius: 50%; }
.option-icon svg { width: 25px; height: 25px; }
.days-symbol { font-variant-numeric: tabular-nums; font-size: 19px; font-weight: 600; }
.support-context { text-align: center; }
.coach-frame { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.coach-scene { position: absolute; bottom: 3svh; right: -3vw; height: min(72svh,51vw); width: auto; }
@media(min-width:721px) and (max-width:1170px) {
  .coach-scene { height: min(42svh,43vw); right: -4vw; }
}
.glass { position: relative; flex: none; width: 17px; height: 22px; border: 1.5px solid var(--accent); border-radius: 2px 2px 5px 5px; overflow: hidden; }
.glass::before { content: ""; position: absolute; inset: auto 1px 1px; height: 20%; background: var(--edge); border-radius: 1px 1px 3px 3px; }
[data-value=some] .glass::before { height: 50%; }
[data-value=more] .glass::before { height: 80%; }
[data-value=unknown] .glass { border-style: dashed; }
[data-value=unknown] .glass::before { display: none; }
.actions { margin-top: 20px; }
.service-error { margin:14px 0; color:var(--ink); line-height:1.45; }
.primary { width: 100%; min-height: 52px; padding: 12px 16px; border: 0; border-radius: 15px; background: var(--accent); color: #fff; font-weight: 600; }
.primary:disabled { background: #eeeeee; color: var(--muted); cursor: default; }
@media (hover:hover) {
  .option:hover { border-color: var(--edge); }
  .agecard:hover { outline: 2px solid var(--brand); }
  .back:hover { color: var(--accent); }
  .primary:enabled:hover { background: var(--strong); }
}
.link, .secondary { display: block; margin: 10px auto; padding: 10px; min-height: 44px; background: transparent; border: none; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.field { display: block; margin: 16px 0; color: var(--muted); }
.field input { display: block; width: 100%; padding: 14px 15px; margin-top: 6px; border: 1px solid #aeaeae; border-radius: 12px; color: var(--ink); background: white; caret-color: var(--accent); }
.field input::placeholder { color: var(--muted); }
.support, .checkout-note { margin: 17px 0; border-radius: 14px; background: var(--wash); padding: 15px 17px; }
.support p, .checkout-note p { margin-top: 6px; }
.plan, .price { margin: 23px 0; }
.plan h2 { margin-bottom: 10px; }
.plan .row { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.day { min-width: 32px; font-size: 14px; font-weight: 620; color: var(--accent); }
.lesson { flex: 1; line-height: 1.35; }
.lesson b { font-weight: 570; }
.duration { white-space: nowrap; font-size: .9rem; color: var(--muted); }
summary { cursor: pointer; padding: 10px 0; }
.plan p { margin-top: 8px; }
.price { padding-block: 18px; border-block: 1px solid var(--line); }
.price h2 { font-size: 20px; }
.price b { display: block; font-size: 42px; font-weight: 660; letter-spacing: -.035em; }
.price small { font-size: 16px; font-weight: 450; letter-spacing: 0; }
.err { color: var(--ink); }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.bmi-number { font-variant-numeric:tabular-nums; }
.bmi-category { transition:opacity .18s ease-out; }
.bmi-readout[data-counting] .bmi-category { opacity:0; }
@media(prefers-reduced-motion:reduce) { .bmi-category { transition:none; } }

.visual-answers { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
body:is([data-screen=body],[data-screen=shape],[data-screen=zones],[data-screen=place],[data-screen=gear]) .step { width: min(890px,calc(100% - 44px)); }
body:is([data-screen=body],[data-screen=zones]) .visual-answers { grid-template-columns: repeat(4,minmax(0,1fr)); }
.visual-answer { padding: 0; display: flex; flex-direction: column; min-width: 0; text-align: left; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; }
.visual-answer.selected { background: var(--wash); border-color: var(--accent); }
.visual-media { display: flex; width: 100%; aspect-ratio: 1.04; overflow: hidden; }
.visual-media img { display: block; flex: 1 1 0; width: 0; min-width: 0; object-fit: cover; }
.visual-label { width: 100%; display: flex; flex: 1; align-items: center; justify-content: space-between; padding: 14px 13px; gap: 8px; font-size: 16px; line-height: 1.25; font-weight: 540; }
.visual-label .marker { width: 19px; height: 19px; }
.habit-photo { display: block; width: 100%; height: clamp(160px,30vh,220px); border-radius: 15px; object-fit: cover; object-position: center 65%; margin-bottom: 18px; }
.bmi-readout { text-align: center; background: var(--wash); border-radius: 18px; padding: 20px 24px 25px; }
.bmi-number { font-size: clamp(52px,8vw,74px); line-height: 1.06; color: var(--accent); font-weight: 640; letter-spacing: -.04em; }
.bmi-scale { position: relative; margin: 26px 8px 0; height: 8px; border-radius: 5px; background: linear-gradient(to right,var(--edge) 14%,var(--brand) 14% 40%,var(--edge) 40% 60%,var(--selected) 60%); }
.bmi-scale i { position: absolute; top: 50%; transform: translate(-50%,-50%); height: 16px; width: 16px; border-radius: 50%; background: var(--strong); border: 2px solid white; }
.bmi-ticks { position: relative; margin: 5px 8px 0; height: 19px; font-size: 12px; color: var(--muted); }
.bmi-ticks span { position: absolute; transform: translateX(-50%); }
.measure-pair { display:grid; grid-template-columns:1fr 1fr; margin:22px 0; gap:15px; }
.measure-pair div { padding-bottom:12px; border-bottom:1px solid var(--line); }
.measure-pair dt,.result-note { color:var(--muted); font-size:14px; line-height:1.5; }
.measure-pair dd { margin:3px 0 0; font-size:21px; font-weight:550; }
.trajectory h2 { text-align:center; font-size:clamp(24px,4.2vw,31px); font-weight:570; }
.chart-paper { background:var(--wash); padding: 12px 12px 14px; border-radius:16px; margin-top:18px; }
.chart-paper svg { width:100%; height:auto; display:block; overflow:visible; }
.chart-grid { fill:none; stroke:var(--edge); stroke-dasharray:2 5; stroke-width:.8; }
.chart-area { fill:var(--selected); opacity:.46; }
.weight-path { fill:none; stroke:var(--accent); stroke-width:3.5; stroke-linecap:round; }
.weight-dot,.start-dot { fill:var(--accent); stroke:white; stroke-width:2; }
.chart-paper svg text { fill:var(--strong); font:600 13px Golos,Arial,sans-serif; }
.chart-axis,.chart-inspect { display:flex; gap:10px; align-items:center; justify-content:space-between; }
.chart-axis { margin:0 3%; font-size:12px; color:var(--muted); }
.chart-inspect { flex-wrap:wrap; margin:17px 0 12px; font-size:14px; }
.chart-inspect output { color:var(--accent); font-weight:600; }
.chart-inspect input { width:100%; accent-color:var(--accent); min-height:32px; margin:0; }
.result-message p { margin-top:12px; }
@media(hover:hover){ .visual-answer:hover { border-color:var(--accent); } }
@media(max-width:720px){
  body:is([data-screen=body],[data-screen=shape],[data-screen=zones],[data-screen=place],[data-screen=gear]) .step { width:min(552px,calc(100% - 32px)); }
  .visual-answers,body:is([data-screen=body],[data-screen=zones]) .visual-answers { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .visual-label { padding:10px; font-size:14px; }
  .visual-label .marker { width:16px;height:16px; }
  .visual-media { aspect-ratio:1.28; }
}
.place-icon { width: 27px; height: 27px; flex: none; color: var(--accent); }
.support-context { color: var(--muted); margin: -10px 0 20px; }
.profile-summary { display: flex; align-items: center; gap: 15px; }
.profile-summary img { flex: none; width: 69px; height: 78px; object-fit: cover; object-position: center 20%; border-radius: 12px; }
.profile-summary b { font-size: 18px; font-weight: 600; }
.profile-summary p { color: var(--muted); font-size: 14px; }
.week-control { margin-block: 28px; }
.week-top, .week-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.week-strip { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 5px; }
.weekday { display: grid; place-items: center; min-height: 44px; padding: 0; font-size: 14px; font-weight: 550; color: var(--muted); background: #f5f5f5; border: 1px solid transparent; border-radius: 10px; }
.weekday.on { background: var(--selected); color: var(--strong); }
button.weekday { border-color: var(--line); }
button.weekday.on { border-color: var(--accent); }
.text-button { padding: 8px 0; min-height: 44px; color: var(--accent); border: 0; background: transparent; text-underline-offset: .2em; text-decoration: underline; font-size: 14px; }
.day-count { font-size: 14px; color: var(--muted); margin: 6px 0 10px; }
.week-actions { justify-content: flex-start; margin-top: 10px; gap: 18px; }
.compact { min-height: 44px; background: var(--accent); color: white; border: 0; border-radius: 10px; padding: 8px 14px; }
.compact:disabled { background: #eee; color: var(--muted); }
.plan .row { align-items: center; border: 0; padding-block: 14px; min-height: 55px; }
.workout { border-bottom: 1px solid var(--line); }
.workout:first-of-type { border-top: 1px solid var(--line); }
.workout summary { list-style: none; }
.workout summary::-webkit-details-marker { display: none; }
.fold { display: block; flex: none; width: 9px; height: 9px; border: solid var(--accent); border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); margin-inline: 2px 4px; }
[open] > summary .fold { transform: translateY(2px) rotate(225deg); }
.workout-body { padding: 0 0 16px 44px; }
.workout-body p { margin: 0; color: var(--muted); font-size: 14px; }
.workout-body ol { margin: 10px 0 0; padding-inline-start: 22px; }
.workout-body li { padding-inline-start: 3px; margin-block: 4px; font-size: 15px; }
.workout-body li::marker { color: var(--accent); font-variant-numeric: tabular-nums; }
.price h2 { margin-bottom: 6px; }
.price > p { margin-top: 8px; }
.renewal, .preview-note { font-size: 14px; color: var(--muted); line-height: 1.5; }
.receipt { margin: 22px 0 16px; }
.receipt div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.receipt dt { color: var(--muted); }
.receipt dd { text-align: right; margin: 0; }
.receipt .total { border: none; }
.receipt .total dt, .receipt .total dd { font-size: 19px; font-weight: 640; color: var(--ink); }
@media (max-width:370px) {
  .week-strip { gap: 3px; }
  .plan .row { gap: 8px; }
  .workout-body { padding-left: 0; }
}
@media (hover:hover) {
  .workout summary:hover .lesson b, .text-button:hover { color: var(--strong); text-decoration: underline; text-underline-offset: .18em; }
}
[hidden] { display: none !important; }
@media(max-width:720px) {
  :root { --rail: min(calc(100% - 36px), 540px); }
  main { padding-bottom: 40px; }
  .mast { height: 54px; padding-top: 4px; }
  .mast img { width: 88px; height: 30px; }
  body:not([data-screen=age]) .mast { height: 53px; padding: 0 8px; border-bottom: 1px solid var(--line); }
  body:not([data-screen=age]) .mast img { display: none; }
  .back { width: 44px; height: 44px; border: 0; }
  .chapter { top: 6px; font-size: 15px; }
  .segments { inset: auto auto 10px 50%; width: min(44vw,180px); gap: 4px; transform: translateX(-50%); }
  .entry { width: min(calc(100% - 32px),490px); margin-top: 7px; }
  .entry h1 { max-width: 100%; font-size: clamp(28px,6.8vw,38px); }
  .agepicker { margin-top: 17px; }
  .agepicker h2 { font-size: 20px; margin-bottom: 10px; }
  .agegrid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .agecard { border-radius: 12px; }
  .portrait { aspect-ratio: auto; height: clamp(103px,18.5svh,180px); object-position: center 24%; }
  .age-label { padding: 7px 10px; font-size: 18px; }
  .round-arrow { width: 21px; height: 21px; }
  .step { width: min(552px,calc(100% - 36px)); margin-top: 23px; }
  .step h1 { font-size: clamp(25px,6vw,31px); line-height: 1.14; letter-spacing: -.032em; }
  .step .headline { margin-bottom: 24px; }
  .options { gap: 11px; }
  .option { min-height: 72px; padding: 12px 16px; font-size: 16px; gap: 12px; }
  .coach-scene { bottom: 3svh; right: -25vw; width: min(108vw,calc((100svh - 162px)*.6667)); height: auto; }
  body[data-screen=level] .options { width: 61%; }
  body[data-screen=level] .headline { max-width: 360px; margin-inline: auto; }
  body[data-screen=level] #app { min-height: calc(100svh - 76px); }
}
@media(max-width:720px) and (max-height:650px) {
  .mast { height: 42px; }
  .entry h1 { font-size: clamp(24px,6.2vw,32px); }
  .agepicker { margin-top: 12px; }
  .agepicker h2 { font-size: 18px; margin-bottom: 7px; }
  .portrait { height: clamp(82px,16.8svh,104px); }
  .age-label { padding: 5px 9px; font-size: 16px; }
}
