/* FemFit — editorial sport design */
:root {
  --bg: #F2F2F0; --card: #FFFFFF; --ink: #0A0A0A; --muted: #75757A; --line: #E4E4E1; --soft: #F2F2F0;
  --accent: #0A0A0A; --on-accent: #FFFFFF; --coral: #FF4D2E; --ok: #18B368;
  --ph-men: #FF3358; --ph-fol: #1FC97A; --ph-ovu: #FFB21E; --ph-lut: #7C5CFF; --ph-pms: #E256C4; --ph-neu: #9A9AA0;
  --hero: #0A0A0A; --hero-ink: #FFFFFF;
  --r: 28px; --display: "Inter Tight", "Inter", -apple-system, system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --card: #121214; --ink: #F5F5F7; --muted: #8E8E93; --line: #232326; --soft: #1C1C1F;
    --accent: #F5F5F7; --on-accent: #000000; --hero: #121214; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --card: #121214; --ink: #F5F5F7; --muted: #8E8E93; --line: #232326; --soft: #1C1C1F;
  --accent: #F5F5F7; --on-accent: #000000; --hero: #121214; color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 Inter, -apple-system, system-ui, sans-serif; -webkit-font-smoothing: antialiased; padding-bottom: 110px; letter-spacing: -.005em; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { margin: 0; line-height: 1; font-family: var(--display); }
h1 { font-size: clamp(44px, 12vw, 76px); font-weight: 900; letter-spacing: -.045em; text-transform: uppercase; margin: 8px 0 2px; }
h2 { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
h3 { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { font: 700 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* шапка */
.top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.brand { font: 900 21px/1 var(--display); letter-spacing: -.05em; text-transform: uppercase; display: flex; gap: 8px; align-items: center; }
.brand i { font-style: italic; }
.logo { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(var(--ph-men) 0 18%, var(--ph-fol) 0 46%, var(--ph-ovu) 0 54%, var(--ph-lut) 0 80%, var(--ph-pms) 0); -webkit-mask: radial-gradient(circle, transparent 5px, #000 6px); mask: radial-gradient(circle, transparent 5px, #000 6px); }
.mode-pill { border: 0; background: var(--card); border-radius: 99px; padding: 8px 14px; font-size: 12px; font-weight: 700; letter-spacing: .02em; }

main { max-width: 760px; margin: 0 auto; padding: 0 16px 24px; display: grid; gap: 12px; }
.card { background: var(--card); border-radius: var(--r); padding: 22px; }
.row { display: flex; gap: 10px; align-items: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.btn { border: 0; border-radius: 99px; padding: 14px 22px; font: 700 15px var(--display); letter-spacing: -.01em; background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .15s ease, opacity .15s; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--soft); color: var(--ink); }
.btn.line { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); }
.btn.sm { padding: 10px 16px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .4; cursor: default; }

/* ===== HERO фазы ===== */
.hero { position: relative; overflow: hidden; border-radius: 32px; padding: 24px 22px 22px; background: var(--hero); color: var(--hero-ink); isolation: isolate; min-height: 360px; display: flex; flex-direction: column; }
.hero::before { content: ""; position: absolute; inset: -30%; z-index: -1; background:
  radial-gradient(40% 45% at 85% 15%, color-mix(in srgb, var(--pc) 95%, transparent), transparent 70%),
  radial-gradient(45% 40% at 10% 95%, color-mix(in srgb, var(--pc2) 70%, transparent), transparent 70%);
  filter: blur(10px); animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-4%, 3%) scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }
.hero .eyebrow { color: rgba(255,255,255,.7); }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hero-day { font: 900 clamp(120px, 38vw, 200px)/.78 var(--display); letter-spacing: -.07em; margin: 22px 0 0 -6px; }
.hero-day small { font-size: .2em; letter-spacing: -.02em; font-weight: 700; opacity: .6; margin-left: 8px; }
.hero-phase { font: 900 clamp(28px, 8vw, 44px)/.95 var(--display); letter-spacing: -.04em; text-transform: uppercase; margin-top: 16px; }
.hero p { margin: 10px 0 0; color: rgba(255,255,255,.78); max-width: 46ch; font-size: 15px; }
.hero .meta { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.hero .chip { background: rgba(255,255,255,.12); backdrop-filter: blur(10px); border-radius: 99px; padding: 6px 12px; font-size: 12px; font-weight: 600; }
.cbar { display: flex; gap: 3px; margin-top: 20px; height: 8px; position: relative; }
.cbar i { border-radius: 4px; opacity: .45; }
.cbar i.cur { opacity: 1; }
.cbar b { position: absolute; top: -6px; width: 4px; height: 20px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 3px rgba(0,0,0,.35); transform: translateX(-2px); }
.tips { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.tips li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; display: grid; grid-template-columns: 26px 1fr; }
.tips li::before { content: counter(t, decimal-leading-zero); counter-increment: t; font: 800 11px/1.9 var(--display); color: var(--muted); }
.tips { counter-reset: t; }
.tips li:first-child { border-top: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.phase-name { font-weight: 800; }

/* ===== тренировка ===== */
.wk-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; }
.km { font: 900 clamp(76px, 22vw, 112px)/.8 var(--display); letter-spacing: -.06em; white-space: nowrap; }
.km small { font-size: 18px; letter-spacing: 0; font-weight: 800; margin-left: 4px; }
.km s { display: block; font-size: 15px; letter-spacing: 0; color: var(--muted); font-weight: 600; margin-bottom: 8px; text-decoration-thickness: 1.5px; }
.km .zero { font-size: 56px; color: var(--muted); }
.type { display: inline-flex; align-items: center; gap: 7px; font: 800 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.type::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tc, var(--ink)); }
.t-easy { --tc: #1FC97A; } .t-long { --tc: #2F7BFF; } .t-intervals { --tc: #FF4D2E; } .t-tempo { --tc: #FFB21E; }
.t-hills { --tc: #B5772F; } .t-strides { --tc: #14C3C3; } .t-rest { --tc: #9A9AA0; } .t-cross { --tc: #7C5CFF; }
.w-title { font: 900 clamp(30px, 8vw, 44px)/.95 var(--display); letter-spacing: -.045em; text-transform: uppercase; margin-top: 10px; }
.steps { margin: 20px 0 0; display: grid; }
.step { display: grid; grid-template-columns: 120px 1fr; gap: 12px; font-size: 15px; padding: 14px 0; border-top: 1px solid var(--line); }
.step b { font: 800 11px/1.9 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.step.solo { grid-template-columns: 120px 1fr; } .step.solo::before { content: ""; }
.changes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chg, .flag { border-radius: 99px; padding: 8px 14px; font-size: 13px; font-weight: 600; }
.chg { background: color-mix(in srgb, var(--coral) 12%, transparent); color: var(--coral); }
.chg::before { content: "↻  "; font-weight: 800; }
.flag { background: var(--soft); color: var(--ink); }
.flag::before { content: "●  "; color: var(--coral); }
details.orig { margin-top: 14px; font-size: 13px; color: var(--muted); }
details.orig summary { cursor: pointer; font-weight: 700; list-style: none; }
details.orig summary::before { content: "+ "; }
details.orig[open] summary::before { content: "– "; }
.done-badge { color: var(--ok); font: 800 12px var(--display); letter-spacing: .08em; text-transform: uppercase; }
.cta { margin-top: 20px; }

/* ===== чек-ин ===== */
.check { display: grid; gap: 14px; margin-top: 16px; }
.check-row { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.seg button { border: 0; background: var(--soft); padding: 9px 0; border-radius: 99px; font-size: 12px; font-weight: 700; color: var(--muted); transition: .15s; }
.seg button.on { background: var(--ink); color: var(--bg); }
.seg button.on.lv2 { background: var(--ph-ovu); color: #000; } .seg button.on.lv3 { background: var(--coral); color: #fff; }

/* ===== готовность ===== */
.ready { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; }
.score-ring { width: 120px; height: 120px; }
.score { font: 900 46px/1 var(--display); letter-spacing: -.05em; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.metric { background: var(--soft); border-radius: 20px; padding: 14px; }
.metric b { display: block; font: 900 26px/1 var(--display); letter-spacing: -.04em; }
.metric b small { font-size: 12px; letter-spacing: 0; color: var(--muted); font-weight: 700; }
.metric > span { font: 700 10px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 6px; }
.spark { width: 100%; height: 70px; }

/* ===== неделя ===== */
.week-nav { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 8px; }
.week-nav h2 { font-size: 30px; font-weight: 900; letter-spacing: -.045em; text-transform: uppercase; }
.week-nav button { border: 0; background: var(--card); width: 44px; height: 44px; border-radius: 50%; font-size: 20px; flex: none; }
.strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 18px; }
.strip div { text-align: center; }
.strip .col { height: 120px; display: flex; align-items: flex-end; justify-content: center; }
.strip .col i { width: 100%; max-width: 34px; border-radius: 10px; background: var(--pc); min-height: 6px; }
.strip .col i.off { background: var(--line); }
.strip small { display: block; font: 800 11px var(--display); letter-spacing: .06em; color: var(--muted); margin-top: 6px; }
.strip b { font: 800 13px var(--display); }
.totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.totals div { background: var(--soft); border-radius: 20px; padding: 14px; }
.totals span { font: 700 10px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.totals b { display: block; font: 900 30px/1.05 var(--display); letter-spacing: -.05em; margin-top: 4px; }
.day { display: grid; grid-template-columns: 58px 1fr auto; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 24px; background: var(--card); border: 0; text-align: left; width: 100%; position: relative; }
.day.today { box-shadow: inset 0 0 0 2px var(--ink); }
.day .d { font: 900 22px/1 var(--display); letter-spacing: -.03em; text-transform: uppercase; } .day .d small { display: block; font: 600 12px Inter; letter-spacing: 0; color: var(--muted); margin-top: 4px; text-transform: none; }
.day .t { font-size: 14px; } .day .t .muted { font-size: 12px; margin-top: 4px; }
.day .k { font: 900 30px/1 var(--display); letter-spacing: -.05em; text-align: right; }
.day .k small { display: block; font: 700 11px Inter; letter-spacing: 0; color: var(--coral); margin-top: 3px; }
.days { display: grid; gap: 8px; }
.pdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pc); margin-right: 5px; vertical-align: 1px; }

/* ===== календарь ===== */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 16px auto 0; max-width: 440px; }
.cal .h { text-align: center; font: 800 10px var(--display); letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.cal .c { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font: 800 14px var(--display); background: var(--pc); color: #fff; position: relative; }
.cal .c.pred { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--pc) 70%, transparent); }
.cal .c.tdy { outline: 3px solid var(--ink); outline-offset: 2px; }
.cal .c.flow::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 16px; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }

/* ===== формы ===== */
label.f { display: grid; gap: 8px; font: 700 10px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
input[type=date], input[type=number], select { font: 600 16px Inter, sans-serif; letter-spacing: 0; text-transform: none; color: var(--ink); background: var(--soft); border: 0; border-radius: 16px; padding: 13px 14px; width: 100%; outline: none; }
input:focus, select:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 600; }
.switch input { width: 51px; height: 31px; appearance: none; -webkit-appearance: none; background: var(--line); border-radius: 99px; position: relative; cursor: pointer; transition: .25s; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: .25s; }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { left: 22px; }

/* ===== часы ===== */
.dev { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 16px; background: var(--soft); border-radius: 22px; }
.dev .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-size: 22px; font-weight: 900; }
.status { font: 800 11px var(--display); letter-spacing: .08em; text-transform: uppercase; } .status.ok { color: var(--ok); }
details summary { list-style: none; } details summary::-webkit-details-marker { display: none; }
ol.small li { margin: 4px 0; }
code { background: var(--soft); padding: 2px 6px; border-radius: 6px; font-size: 12px; }

/* ===== шаблоны ===== */
.tpl-list { display: grid; gap: 6px; max-height: 460px; overflow: auto; margin-top: 14px; scrollbar-width: thin; }
.tpl { display: grid; grid-template-columns: 34px 1fr 90px 48px; gap: 12px; align-items: center; padding: 12px 14px; border: 0; border-radius: 18px; background: var(--soft); text-align: left; font-size: 13px; }
.tpl b:first-child { font: 900 16px var(--display); color: var(--muted); }
.tpl b:last-child { font: 900 20px var(--display); letter-spacing: -.04em; }
.tpl.on { background: var(--ink); color: var(--bg); } .tpl.on b:first-child { color: inherit; opacity: .6; }
.tpl.on .bar { background: rgba(255,255,255,.2); } .tpl.on .bar i { background: var(--ph-fol); }
.bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; } .bar i { display: block; height: 100%; background: var(--ink); }
.mix { display: flex; gap: 3px; } .mix i { width: 9px; height: 9px; border-radius: 50%; }

/* ===== онбординг ===== */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); z-index: 20; display: grid; place-items: end center; }
.sheet { background: var(--card); width: 100%; max-width: 560px; max-height: 94vh; overflow: auto; border-radius: 32px 32px 0 0; padding: 26px 22px 30px; display: grid; gap: 16px; animation: up .35s cubic-bezier(.2,.8,.2,1); }
.sheet h1 { font-size: clamp(38px, 10vw, 56px); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 700px) { .modal { place-items: center; } .sheet { border-radius: 32px; } }
.choice { display: grid; gap: 8px; }
.choice button { text-align: left; border: 0; background: var(--soft); border-radius: 22px; padding: 18px; display: grid; gap: 4px; transition: .15s; }
.choice button.on { background: var(--ink); color: var(--bg); } .choice button.on .muted { color: inherit; opacity: .7; }
.choice button b { font: 800 18px var(--display); letter-spacing: -.02em; }
.dots { display: flex; gap: 6px; } .dots i { width: 22px; height: 4px; border-radius: 2px; background: var(--line); } .dots i.on { background: var(--ink); }

/* ===== таббар ===== */
.tabs { position: fixed; bottom: calc(14px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 6; display: grid; grid-template-columns: repeat(5, 1fr); width: min(440px, calc(100% - 24px)); background: color-mix(in srgb, var(--card) 78%, transparent); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); border-radius: 99px; padding: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.18), inset 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent); }
.tabs button { border: 0; background: transparent; display: grid; gap: 2px; justify-items: center; font: 700 10px var(--display); letter-spacing: .02em; color: var(--muted); padding: 7px 0; border-radius: 99px; transition: .2s; }
.tabs button span { font-size: 17px; line-height: 1.1; }
.tabs button.on { background: var(--ink); color: var(--bg); }
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 99px; font-size: 14px; font-weight: 600; z-index: 30; max-width: calc(100% - 32px); animation: up .3s ease; }
.note { font-size: 12px; color: var(--muted); }

@media (max-width: 460px) {
  .card { padding: 20px 18px; }
  .step, .step.solo { grid-template-columns: 1fr; gap: 4px; }
  .check-row { grid-template-columns: 1fr; gap: 8px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .ready { grid-template-columns: 96px 1fr; gap: 14px; } .score-ring { width: 96px; height: 96px; }
  .tpl { grid-template-columns: 30px 1fr 48px; } .tpl .mix { display: none; }
  .day { padding: 16px; grid-template-columns: 50px 1fr auto; }
}

/* ================= MOTION ================= */
:root { --ease: cubic-bezier(.2,.8,.2,1); --spring: cubic-bezier(.34,1.56,.64,1); }

/* подзаголовок на главной */
.intro { margin-top: 6px; }
.lead { margin: 0; max-width: 34ch; font: 700 15px/1.35 var(--display); letter-spacing: -.01em;
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 40%, var(--ph-pms) 50%, var(--ph-lut) 55%, var(--ink) 65%, var(--ink) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s ease-in-out infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0 0; } }

/* появление блоков на новом экране */
.enter > * { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms); }
.enter .days > *, .enter .tips li, .enter .metrics > *, .enter .totals > *, .enter .changes > *, .enter .steps > * { animation: rise .7s var(--ease) both; animation-delay: calc(250ms + var(--k, 0) * 60ms); }
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(.985); } }
.enter h1 { animation: slam .9s var(--ease) both; }
@keyframes slam { from { opacity: 0; transform: translateY(40%); letter-spacing: .02em; filter: blur(6px); } }

/* hero */
.hero canvas.field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .65; pointer-events: none; }
.hero-day { transition: transform .5s var(--ease); will-change: transform; }
.hero-phase .wd { display: inline-block; }
.enter .hero-phase .wd { animation: wordUp .8s var(--ease) both; animation-delay: calc(300ms + var(--j) * 90ms); }
@keyframes wordUp { from { opacity: 0; transform: translateY(60%) rotate(4deg); filter: blur(4px); } }
.enter .hero-day span { display: inline-block; animation: pop .9s var(--spring) both .1s; }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }
.enter .cbar i { animation: barIn .7s var(--ease) both; transform-origin: left; }
.enter .cbar i:nth-child(1) { animation-delay: .45s } .enter .cbar i:nth-child(2) { animation-delay: .52s } .enter .cbar i:nth-child(3) { animation-delay: .59s } .enter .cbar i:nth-child(4) { animation-delay: .66s } .enter .cbar i:nth-child(5) { animation-delay: .73s }
@keyframes barIn { from { transform: scaleX(0); opacity: 0; } }
.cbar b::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid #fff; animation: ping 2.2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.enter .cbar b { animation: slideIn 1.1s var(--ease) both .6s; }
@keyframes slideIn { from { left: 0; opacity: 0; } }

/* бегущая строка */
.marquee { margin: 18px -22px -22px; padding: 14px 0 16px; overflow: hidden; border-top: 1px solid rgba(255,255,255,.12);
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee .track { display: flex; gap: 22px; width: max-content; animation: slide 26s linear infinite; }
.marquee span { font: 900 26px/1 var(--display); letter-spacing: -.03em; text-transform: uppercase; white-space: nowrap; }
.marquee span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.2px rgba(255,255,255,.7); }
.marquee span::after { content: "✦"; margin-left: 22px; font-size: 14px; vertical-align: 5px; color: var(--pc); -webkit-text-stroke: 0; }
.hero:hover .marquee .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* подсветка под курсором */
.spot { position: relative; overflow: hidden; isolation: isolate; }
.spot::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--ph-pms) 14%, transparent), transparent 70%); }
.hero.spot::after { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.10), transparent 70%); }
.spot:hover::after { opacity: 1; }
.spot > * { position: relative; z-index: 1; }
.hero.spot > canvas.field { position: absolute; z-index: -1; }

/* тренировка */
.enter .workout .km span { display: inline-block; animation: pop .9s var(--spring) both .35s; }
.btn.cta { position: relative; overflow: hidden; }
.btn.cta:not(.line)::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-100%); animation: sheen 3.6s ease-in-out infinite 1.2s; }
@keyframes sheen { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.done-badge { animation: pop .6s var(--spring) both; }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 50; }

/* готовность: кольцо рисуется, пульс бежит */
.enter .sr-arc { animation: draw 1.4s var(--ease) both .3s; }
@keyframes draw { from { stroke-dashoffset: var(--c); } }
.ecg { position: relative; height: 54px; margin-top: 14px; }
.ecg svg { width: 100%; height: 100%; overflow: visible; }
.ecg path { stroke-dasharray: 26 74; animation: ecg var(--dur, 2s) linear infinite; filter: drop-shadow(0 0 6px currentColor); }
@keyframes ecg { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

/* неделя и календарь */
.enter .strip i { animation: grow .9s var(--spring) both; animation-delay: calc(200ms + var(--j, 0) * 70ms); transform-origin: bottom; }
@keyframes grow { from { transform: scaleY(0); } }
.strip i { transition: filter .2s, transform .2s; } .strip div:hover i { filter: brightness(1.15); transform: scaleY(1.04); transform-origin: bottom; }
.enter .cal .c { animation: dotIn .5s var(--spring) both; animation-delay: calc(var(--j, 0) * 14ms + 150ms); }
@keyframes dotIn { from { opacity: 0; transform: scale(.3); } }
.cal .c { transition: transform .2s var(--spring); } .cal .c:hover { transform: scale(1.12); }
.cal .c.tdy { animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe { 50% { outline-offset: 5px; } }
.day { transition: transform .25s var(--ease), box-shadow .25s; }
.day:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }

/* таббар с переезжающим индикатором */
.tab-ind { position: absolute; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 99px; background: var(--ink); transition: transform .5s var(--spring), width .5s var(--spring); z-index: 0; }
.tabs button { position: relative; z-index: 1; }
.tabs button.on { background: transparent; color: var(--bg); }
.tabs button.on span { animation: hop .5s var(--spring); }
@keyframes hop { 40% { transform: translateY(-4px) scale(1.12); } }
.seg button { transition: background .2s, color .2s, transform .2s var(--spring); }
.seg button:active { transform: scale(.9); }
.choice button { transition: transform .2s var(--ease), background .2s; } .choice button:hover { transform: translateY(-2px); }

/* логотип медленно вращается */
.logo { animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.ecg path.base { stroke-dasharray: none; animation: none; opacity: .16; filter: none; }
