:root {
  color-scheme: light;
  --bg: #f5f3ec;
  --paper: #ffffff;
  --ink: #0b0b0b;
  --muted: #696861;
  --line: #d9d6cd;
  --line-dark: #b7b3a9;
  --yellow: #fcde06;
  --black: #0b0b0b;
  --danger: #b83a2e;
  --safe-top: max(18px, env(safe-area-inset-top));
  --safe-bottom: max(14px, env(safe-area-inset-bottom));
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--ink); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, strong { letter-spacing: -.025em; }
p { color: var(--muted); line-height: 1.55; }

.app-shell { width: 100%; min-height: 100dvh; }
.screen { width: min(100%, 1180px); min-height: 100dvh; margin: 0 auto; padding: var(--safe-top) 20px calc(104px + var(--safe-bottom)); }
.screen.no-nav { padding-bottom: calc(36px + var(--safe-bottom)); }
.eyebrow, .stage-kicker { display: block; color: #7b6d00; font-size: .69rem; font-weight: 850; letter-spacing: .14em; line-height: 1.3; text-transform: uppercase; }
.yellow { color: var(--ink); background: var(--yellow); }
.muted { color: var(--muted); }

.brand { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.brand-word { font-size: .82rem; font-weight: 900; letter-spacing: -.045em; text-transform: uppercase; }
.avatar, .icon-button, .back-button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-weight: 850; cursor: pointer; }
.avatar { background: var(--ink); color: var(--paper); border-color: var(--ink); font-size: .76rem; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; margin-bottom: 44px; }
.topbar > .eyebrow { color: var(--muted); }

.btn { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; background: var(--yellow); color: var(--ink); font-weight: 850; letter-spacing: -.02em; cursor: pointer; transition: transform .16s ease, background .16s ease; }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.secondary { background: transparent; border-color: var(--ink); }
.btn.full { width: 100%; }
.btn.small { min-height: 44px; padding: 0 18px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: transparent; font-weight: 750; cursor: pointer; }
.text-link svg { width: 16px; }

.desktop-side { display: none; }
.bottom-nav { position: fixed; z-index: 50; left: 14px; right: 14px; bottom: var(--safe-bottom); display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.bottom-nav::after { content: ""; position: absolute; z-index: -1; top: 100%; left: -15px; right: -15px; height: calc(var(--safe-bottom) + 1px); background: var(--bg); }
.nav-item { min-height: 58px; display: grid; justify-items: center; align-content: center; gap: 3px; padding: 0; border: 0; border-radius: 15px; background: transparent; color: #77756e; cursor: pointer; }
.nav-item span { font-size: .68rem; font-weight: 760; }
.nav-item.active { background: var(--yellow); color: var(--ink); }
.nav-item svg { width: 20px; height: 20px; }

.page-heading { margin-bottom: 38px; }
.page-heading h1 { margin: 9px 0 14px; font-size: clamp(3rem, 13vw, 6.4rem); line-height: .9; text-transform: uppercase; }
.page-heading p { max-width: 620px; margin-bottom: 0; font-size: 1rem; }
.today-heading { margin-bottom: 22px; }
.today-help-link { margin-top: 2px; color: var(--muted); font-size: .78rem; text-decoration: underline; text-underline-offset: 4px; }

/* Первый старт */
.onboarding-page { width: min(100%, 920px); margin: 0 auto; }
.onboarding-heading { max-width: 720px; margin-bottom: 38px; }
.onboarding-heading h1 { margin: 10px 0 18px; font-size: clamp(3.1rem, 13vw, 6.5rem); line-height: .86; text-transform: uppercase; }
.onboarding-heading p { max-width: 52ch; }
.onboarding-steps { border-top: 1px solid var(--line-dark); }
.onboarding-steps article { display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.onboarding-steps article > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--yellow); font-size: .72rem; font-weight: 900; }
.onboarding-steps h2 { margin: 0 0 6px; font-size: 1.18rem; }
.onboarding-steps p { margin: 0; font-size: .86rem; }
.onboarding-nav { display: grid; gap: 0; margin: 34px 0 28px; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.onboarding-nav > .eyebrow { padding: 20px 0 12px; }
.onboarding-nav > div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.onboarding-nav p { margin: 0; font-size: .8rem; }
.onboarding-cta { width: min(100%, 430px); }

/* Сегодня */
.today-hero { min-height: 620px; position: relative; overflow: hidden; border-radius: 30px; background: #fbd900; isolation: isolate; }
.today-hero::before { content: ""; position: absolute; z-index: 1; inset: 0; background: var(--paper); clip-path: ellipse(92% 36% at 0 0); pointer-events: none; }
.today-hero-copy { position: relative; z-index: 2; padding: 28px 26px 0; }
.today-hero-copy h2 { max-width: 10ch; margin: 10px 0 12px; font-size: clamp(3.15rem, 16vw, 6.2rem); line-height: .86; text-transform: uppercase; }
.today-hero.long-title .today-hero-copy h2 { max-width: 18ch; font-size: clamp(2rem, 8vw, 3.1rem); line-height: .94; }
.today-hero-copy p { max-width: 31ch; margin-bottom: 20px; font-size: .94rem; }
.today-week-path { margin-top: 32px; }
.today-week-path > div { margin: 16px 0 22px; border-top: 1px solid var(--line-dark); }
.today-path-day { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.today-path-day > span { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line-dark); border-radius: 50%; font-size: .66rem; font-weight: 900; }
.today-path-day.completed > span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.today-path-day.current > span { background: var(--yellow); border-color: var(--yellow); }
.today-path-day.locked { color: #9d9a92; }
.today-path-day strong { display: block; font-size: .9rem; }
.today-path-day small { color: var(--muted); font-size: .7rem; }
.today-photo { position: absolute; z-index: 0; inset: 0; background-color: #fbd900; background-image: url("assets/today-running-man-dsc03628.jpg"); background-position: center calc(100% + 42px); background-repeat: no-repeat; background-size: 100% auto; }
.week-brief { display: grid; gap: 22px; margin: 38px 2px 8px; padding: 28px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.week-brief > div:first-child { display: grid; gap: 7px; }
.week-brief strong { max-width: 34ch; font-size: 1.35rem; line-height: 1.18; }
.week-musicality-link { max-width: 43ch; margin-top: 6px; color: #726700; font-size: .78rem; line-height: 1.45; text-align: left; }
.week-progress { display: flex; align-items: center; gap: 14px; }
.week-progress > span { flex: 1; height: 7px; overflow: hidden; background: #dfdcd3; }
.week-progress i { display: block; height: 100%; background: var(--yellow); }
.week-progress b { min-width: 38px; font-size: .78rem; }
.today-complete { display: flex; flex-direction: column; position: relative; overflow: hidden; border-radius: 30px; background: var(--yellow); isolation: isolate; }
.today-complete-copy { position: relative; z-index: 2; padding: 30px 26px 24px; }
.today-complete-copy h2 { margin: 9px 0 16px; font-size: clamp(3.4rem, 15vw, 4.6rem); text-transform: uppercase; }
.today-complete-copy p { max-width: 33ch; margin-bottom: 20px; color: rgba(11,11,11,.78); }
.today-complete-copy .btn { background: var(--ink); color: var(--yellow); }
.today-complete-copy .text-link { display: flex; margin-top: 18px; }
.today-complete-photo { flex: none; height: clamp(250px, 75vw, 340px); border-top: 1px solid rgba(11,11,11,.16); background: url("assets/start-dsc03610.jpg") center 25% / cover no-repeat; }
.today-complete::after { content: ""; display: none; position: absolute; z-index: 1; pointer-events: none; }

/* Завершение дня */
.day-complete-page { width: min(100%, 760px); margin: 8vh auto 0; }
.day-complete-page > h1 { max-width: 10ch; margin: 12px 0 20px; font-size: clamp(3.8rem, 17vw, 7.2rem); line-height: .84; text-transform: uppercase; }
.day-complete-page.week-complete > h1 { max-width: 12ch; font-size: clamp(3.15rem, 14vw, 6.6rem); line-height: .9; }
.day-complete-lead { max-width: 42ch; margin-bottom: 42px; font-size: 1.05rem; }
.day-complete-next { display: grid; gap: 9px; margin-bottom: 24px; padding: 24px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.day-complete-next strong { font-size: clamp(1.25rem, 5vw, 1.75rem); }
.day-complete-page > .btn { width: min(100%, 430px); }
.day-complete-note { margin: 14px 0 0; font-size: .78rem; }

/* Мой курс */
.course-heading h1 { max-width: 12ch; font-size: clamp(2.85rem, 11vw, 5.75rem); }
.weeks-stack { border-top: 1px solid var(--line-dark); }
.week-row { border-bottom: 1px solid var(--line-dark); }
.week-row.current { margin: 0 -12px; padding: 0 12px; background: var(--paper); border-left: 5px solid var(--yellow); }
.week-summary { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) 30px; align-items: start; gap: 14px; padding: 24px 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.week-number { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-dark); font-size: .73rem; font-weight: 900; }
.week-row.current .week-number { background: var(--yellow); border-color: var(--yellow); }
.week-row.complete .week-number { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.week-row.locked { color: #9d9a92; }
.week-lock-reason { margin: -10px 44px 22px 58px; color: #77756e; font-size: .75rem; line-height: 1.45; }
.week-musicality-context { margin: -10px 44px 20px 58px; }
.week-musicality-context p { margin: 0 0 7px; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.week-copy { min-width: 0; }
.week-copy > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.week-copy strong { display: block; font-size: 1.12rem; line-height: 1.25; }
.week-copy p { margin: 8px 0 0; font-size: .76rem; }
.week-row-progress { height: 5px; margin-top: 12px; overflow: hidden; background: #dfdcd3; }
.week-row-progress i { display: block; height: 100%; background: var(--yellow); }
.week-state { display: grid; place-items: center; width: 30px; height: 30px; font-size: 1.5rem; font-weight: 300; }
.week-lessons { display: none; padding: 0 0 18px 58px; }
.week-lessons.open { display: grid; }
.week-lessons button { display: grid; grid-template-columns: 30px 1fr 20px; align-items: center; gap: 12px; padding: 15px 0; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.week-lessons button > span { color: #817300; font-size: .68rem; font-weight: 850; }
.week-lessons strong, .week-lessons small { display: block; }
.week-lessons strong { font-size: .9rem; }
.week-lessons small { margin-top: 3px; color: var(--muted); font-size: .7rem; }
.week-lessons svg { width: 15px; }
.week-lessons .journey-day.current { font-weight: 800; }
.week-lessons .journey-day.current > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--yellow); color: var(--ink); }
.week-lessons .journey-day.locked { color: #99968e; cursor: not-allowed; }
.course-final-link { margin-top: 22px; }

/* Материалы */
.material-group { margin-bottom: 58px; }
.safety-page { width: min(100%, 740px); margin: 0 auto; }
.safety-note { margin-bottom: 26px; padding: 24px; border: 1px solid var(--line-dark); background: var(--paper); }
.safety-note p { margin: 12px 0; }
.safety-note ul { padding-left: 22px; color: var(--muted); line-height: 1.55; }
.safety-note li { margin-bottom: 6px; }
.safety-note > strong { display: block; line-height: 1.35; }
.safety-links { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: 20px; }
.safety-links .text-link { font-size: .78rem; }
.editorial-heading { display: grid; grid-template-columns: 36px 1fr; gap: 15px; align-items: start; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line-dark); }
.editorial-heading > span { color: #817300; font-size: .72rem; font-weight: 900; }
.editorial-heading h2 { margin-bottom: 5px; font-size: 1.65rem; }
.editorial-heading p { margin: 0; font-size: .82rem; }
.practice-list { display: grid; }
.practice-row { width: 100%; display: grid; grid-template-columns: 98px 1fr 22px; align-items: center; gap: 17px; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.material-frame { width: 98px; aspect-ratio: 4/5; background-position: center; background-size: cover; }
.warmup-frame { background-image: url("assets/warmup-frame.jpg"); }
.cooldown-frame { background-image: url("assets/cooldown-frame.jpg"); }
.knee-frame { background-image: url("assets/knee-frame.jpg?v=2"); background-size: 145% auto; background-position: 90% 80%; }
.safety-frame { background-image: url("assets/fliprock-coach.webp"); background-position: center 38%; }
.material-index { display: grid; place-items: center; width: 98px; aspect-ratio: 4/5; background: var(--yellow); font-size: 1.4rem; font-weight: 900; }
.practice-row > div:nth-child(2) > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.practice-row strong { display: block; font-size: 1.18rem; }
.practice-row p { margin: 4px 0 0; font-size: .75rem; }
.practice-row svg { width: 17px; }
.reading-list { border-top: 1px solid var(--line); }
.reading-list button { width: 100%; display: grid; grid-template-columns: 30px 1fr 20px; align-items: center; gap: 12px; padding: 21px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.reading-list button > span { color: #817300; font-size: .7rem; font-weight: 850; }
.reading-list strong { display: block; font-size: 1.05rem; }
.reading-list p { margin: 4px 0 0; font-size: .75rem; }
.guide-list { display: grid; gap: 8px; border-top: 0; }
.guide-list button { padding: 20px 14px; border: 1px solid var(--line); background: var(--paper); }
.guide-list button > span { color: var(--ink); }
.guide-list button:hover, .guide-list button:focus-visible { border-color: #a18f00; background: #fffbe2; }
.music-download-list button small { display: block; margin-top: 7px; color: #817300; font-size: .7rem; font-weight: 750; }
.guide-original { margin-top: 28px; padding: 18px 20px; border: 1px solid var(--line-dark); background: var(--paper); }
.guide-original a { display: inline-block; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.guide-original p { margin: 7px 0 0; font-size: .78rem; }

.document-guide { width: min(100%, 1122px); margin: 0 auto; }
.document-guide-heading { margin-bottom: 26px; }
.document-guide-heading h1 { max-width: 18ch; margin: 10px 0 12px; font-size: clamp(2.2rem, 8vw, 4.5rem); line-height: 1.08; letter-spacing: 0; overflow-wrap: anywhere; text-wrap: balance; }
.document-guide-heading p { max-width: 48ch; margin-bottom: 22px; }
.document-download { width: max-content; max-width: 100%; }
.document-pages { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; width: min(100%, var(--document-width)); margin: 0 auto; overflow-x: auto; overscroll-behavior-inline: contain; }
.document-page { position: relative; flex: none; width: 100%; margin: 0; overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.document-page img { display: block; width: 100%; height: auto; }
.document-track-link { position: absolute; z-index: 2; display: block; border-radius: 50%; }
.document-track-link:hover, .document-track-link:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; background: rgba(252,222,6,.12); }
.document-pages.zoomed .document-page { width: var(--document-width); max-width: none; }
.document-zoom-toggle { margin: 0 0 14px; color: #726700; font-size: .85rem; }
.document-zoom-hint { margin: -7px 0 14px; font-size: .76rem; }
.document-guide-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
@media (min-width: 900px) { .document-zoom-toggle, .document-zoom-hint { display: none; } }

/* Тренировка */
.training-top { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 12px; margin-bottom: 14px; }
.training-top > div { min-width: 0; text-align: center; }
.training-top > div span, .training-top > div strong { display: block; }
.training-top > div span { color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.training-top > div strong { margin-top: 3px; overflow: hidden; font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.training-stepper { display: flex; gap: 8px; margin: 0 0 22px; overflow-x: auto; scrollbar-width: none; }
.training-stepper::-webkit-scrollbar { display: none; }
.training-stepper button { min-width: max-content; display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px 8px 8px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.training-stepper button span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e3e0d8; font-size: .58rem; font-weight: 900; }
.training-stepper button b { font-size: .68rem; letter-spacing: 0; }
.training-stepper button.active { border-color: var(--ink); color: var(--ink); }
.training-stepper button.active span { background: var(--yellow); }
.training-stepper button.done span { background: var(--ink); color: var(--paper); }
.training-panel { width: min(100%, 720px); margin: 0 auto; }
.training-panel h1 { margin: 8px 0 12px; font-size: clamp(2.75rem, 13vw, 5rem); line-height: .9; text-transform: uppercase; }
.stage-copy { max-width: 520px; margin-bottom: 18px; font-size: .92rem; }
.video-stage, .common-video-wrap { position: relative; width: min(100%, 430px); aspect-ratio: 9/16; margin: 0 auto; overflow: hidden; border-radius: 24px; background: var(--black); }
.video-stage::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.82)), var(--lesson-art) center / cover no-repeat; }
.video-stage.has-player::before { display: none; }
.video-stage iframe, .video-stage mux-player, .common-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.common-video-placeholder { display: grid; place-items: end start; background-color: #23231f; background-position: center; background-size: cover; color: var(--paper); isolation: isolate; }
.common-video-placeholder::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(11,11,11,.08), rgba(11,11,11,.84)); }
.common-video-placeholder.warmup-placeholder { background-image: url("assets/warmup-frame.jpg"); }
.common-video-placeholder.cooldown-placeholder { background-image: url("assets/cooldown-frame.jpg"); }
.common-video-placeholder.knee-placeholder { background-image: url("assets/knee-frame.jpg?v=2"); }
.common-video-poster { background-position: center; background-size: cover; }
.common-video-poster::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,11,.06) 42%, rgba(11,11,11,.82)); }
.common-video-poster.warmup-poster { background-image: url("assets/warmup-frame.jpg"); }
.common-video-poster.cooldown-poster { background-image: url("assets/cooldown-frame.jpg"); }
.common-video-poster.knee-poster { background-image: url("assets/knee-frame.jpg?v=2"); }
.common-video-poster .video-overlay { pointer-events: none; }
.common-video-placeholder > div { padding: 24px; }
.common-video-placeholder .stage-kicker { color: var(--yellow); }
.common-video-placeholder strong { display: block; margin: 8px 0; font-size: 1.55rem; }
.common-video-placeholder p { max-width: 28ch; margin: 0; color: #dedbd2; font-size: .82rem; }
.video-overlay { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 18px; color: var(--paper); }
.video-overlay h2 { margin: 7px 0 12px; font-size: 1.55rem; }
.video-track { height: 4px; overflow: hidden; background: rgba(255,255,255,.24); }
.video-track span { display: block; width: var(--watch, 0%); height: 100%; background: var(--yellow); }
.video-time { display: flex; justify-content: space-between; margin-top: 7px; font-size: .66rem; }
.play-button { position: absolute; z-index: 3; left: 50%; top: 50%; display: grid; place-items: center; width: 66px; height: 66px; padding: 0; border: 0; border-radius: 50%; background: var(--yellow); color: var(--ink); transform: translate(-50%, -50%); cursor: pointer; }
.video-state { display: grid; place-items: center; }
.video-message { position: relative; z-index: 4; max-width: 260px; padding: 24px; color: var(--paper); text-align: center; }
.video-message strong { display: block; margin: 12px 0 18px; }
.movement-tip { width: min(100%, 520px); margin: 28px auto 22px; padding: 18px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.movement-tip span { color: #817300; font-size: .67rem; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.movement-tip p { margin: 7px 0 0; font-size: .84rem; }
.day-task { margin: 18px 0 24px; padding: 18px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.day-task p { margin: 8px 0; color: var(--ink); }
.day-task strong { font-size: .84rem; }
.week-three-reminder { margin: 18px auto; padding: 16px 18px; border-left: 4px solid var(--yellow); background: var(--paper); }
.week-three-reminder p { margin: 7px 0 0; font-size: .8rem; }
.assignment-videos { display: grid; gap: 34px; }
.assignment-video { display: grid; gap: 10px; }
.assignment-video > h2 { width: min(100%, 430px); margin: 0 auto; font-size: 1.3rem; }
.assignment-video > .stage-kicker { width: min(100%, 430px); margin: 0 auto; }
.training-panel > .btn { width: min(100%, 430px); margin: 24px auto 0; display: flex; }

.beat-panel { width: min(100%, 620px); }
.bpm-player { padding: 34px 26px; border-radius: 28px; background: var(--black); color: var(--paper); text-align: center; }
.bpm-player .stage-kicker { color: var(--yellow); }
.bpm-now { display: flex; justify-content: center; align-items: baseline; gap: 8px; margin: 26px 0 10px; }
.bpm-now strong { font-size: clamp(6rem, 28vw, 10rem); line-height: .75; letter-spacing: -.09em; }
.bpm-now span { color: var(--yellow); font-size: .86rem; font-weight: 850; }
.bpm-player .stage-copy { margin: 0 auto 26px; color: #aaa9a3; font-size: .84rem; }
.bpm-day-tip { max-width: 42ch; margin: -12px auto 24px; color: var(--paper); font-size: .84rem; }
.bpm-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bpm-chip { min-height: 48px; border: 1px solid #474742; border-radius: 999px; background: transparent; color: var(--paper); font-weight: 850; cursor: pointer; }
.bpm-chip.active { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.audio-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.audio-play, .audio-loop { min-height: 78px; display: grid; grid-template-columns: 34px auto; align-items: center; justify-content: center; gap: 8px; border: 1px solid #474742; border-radius: 18px; background: #181816; color: var(--paper); cursor: pointer; }
.audio-play span, .audio-loop span { font-size: 1.4rem; }
.audio-play b, .audio-loop b { font-size: .78rem; }
.audio-play.playing, .audio-loop.active { border-color: var(--yellow); color: var(--yellow); }
.common-video-panel .common-video-wrap { margin-bottom: 22px; }
.result-panel { text-align: left; }
.result-summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 32px 0; padding: 20px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.result-summary span { font-size: 1.25rem; font-weight: 850; }
.result-summary strong { color: #817300; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.feedback-buttons { display: grid; gap: 9px; }
.feedback-buttons a, .feedback-buttons button { min-height: 52px; display: flex; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; font-weight: 800; cursor: pointer; }
.feedback-buttons a:first-child { background: var(--ink); color: var(--paper); }
.video-report-box { display: grid; gap: 14px; margin-top: 28px; padding: 22px; border: 1px solid var(--line-dark); background: var(--paper); }
.video-report-heading p { margin: 7px 0 0; font-size: .86rem; }
.video-report-box.sent { border-color: #817300; background: #fffbea; }
.self-report-box p:last-child { margin: 0; font-size: .76rem; }
.self-checklist { display: grid; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.self-checklist strong { font-size: .85rem; }
.self-checklist label { display: flex; gap: 9px; align-items: start; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.self-checklist input { accent-color: var(--yellow); margin-top: 3px; }
.result-hint { font-size: .85rem; }
.final-music { padding: 26px; border-radius: 26px; background: var(--ink); color: var(--paper); }
.final-music .stage-kicker { color: var(--yellow); }
.final-music > p { margin: 12px 0 24px; color: #c8c7c1; font-size: .86rem; }
.final-track-list { display: grid; gap: 8px; }
.final-track { width: 100%; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 12px; min-height: 58px; padding: 10px 14px; border: 1px solid #57564e; border-radius: 14px; background: #1b1b19; color: var(--paper); text-align: left; cursor: pointer; }
.final-track.active { border-color: var(--yellow); }
.final-track span { color: var(--yellow); font-size: .7rem; font-weight: 900; }
.final-track strong { font-size: .85rem; }
.final-track b { font-size: .72rem; }
.report-confirm { min-height: 48px; border: 0; border-radius: 999px; background: var(--yellow); color: var(--ink); font-weight: 850; cursor: pointer; }
.report-confirm.confirmed { display: flex; align-items: center; justify-content: center; gap: 8px; background: transparent; color: #655b08; cursor: default; }
.report-confirm.confirmed svg { width: 18px; }
.report-required-note { margin: -2px 0 0; color: var(--danger); font-size: .75rem; }
.report-max-note { margin: -5px 0 0; color: var(--muted); font-size: .75rem; }
.lesson-complete.done { background: var(--paper); border-color: var(--line-dark); }
.final-assignment-panel .result-summary { display: grid; gap: 8px; }
.final-assignment-panel .result-summary strong { font-size: 1rem; color: var(--ink); }

/* Финал курса */
.course-finale { width: min(100%, 960px); margin: 0 auto; }
.finale-hero { padding: clamp(28px, 7vw, 68px) 0 clamp(54px, 10vw, 100px); border-bottom: 1px solid var(--line-dark); }
.finale-hero h1 { margin: 14px 0 32px; font-size: clamp(3.65rem, 15vw, 8.5rem); line-height: .82; text-transform: uppercase; }
.finale-hero h1 strong { display: inline-block; color: var(--ink); font-weight: 900; }
.finale-progress { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.finale-progress > span { height: 8px; background: #d8d4ca; }
.finale-progress i { display: block; width: 100%; height: 100%; background: var(--yellow); }
.finale-progress b { font-size: .85rem; }
.finale-hero > p { margin: 12px 0 0; font-size: .76rem; font-weight: 750; }
.finale-copy { max-width: 760px; padding: clamp(58px, 10vw, 110px) 0; }
.finale-copy h2 { max-width: 22ch; margin: 50px 0 16px; font-size: clamp(1.55rem, 5.5vw, 2.7rem); line-height: 1.08; }
.finale-copy h2:first-child { margin-top: 0; }
.finale-copy p { max-width: 62ch; margin-bottom: 22px; font-size: clamp(1rem, 2vw, 1.15rem); }
.finale-weeks { display: grid; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.finale-weeks div { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 4px; border-bottom: 1px solid var(--line); font-weight: 800; }
.finale-weeks div:last-child { border-bottom: 0; }
.finale-weeks b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); }
.finale-next { margin-top: clamp(58px, 10vw, 110px); padding: clamp(34px, 7vw, 70px); background: var(--yellow); }
.finale-next .eyebrow { color: var(--ink); }
.finale-next h2 { margin: 12px 0 20px; font-size: clamp(3rem, 11vw, 6.5rem); line-height: .86; text-transform: uppercase; }
.finale-next p { max-width: 45ch; color: rgba(11,11,11,.68); }
.finale-next-action { margin-top: 12px; border-color: var(--ink); background: var(--ink); color: var(--paper); }
.finale-next .text-link { display: flex; margin-top: 22px; }

/* Подстраницы материалов */
.material-video-main, .reading-page, .material-page { width: min(100%, 760px); margin: 0 auto; }
.material-video-main h1, .reading-page h1, .material-page h1 { margin: 10px 0 14px; font-size: clamp(3rem, 14vw, 6rem); line-height: .9; text-transform: uppercase; }
.reading-page h1 { font-size: clamp(1.8rem, 9vw, 6rem); }
.material-video-knee h1 { font-size: clamp(2.35rem, 9vw, 5rem); }
.material-video-main > p { max-width: 520px; }
.material-video-main .video-stage { margin-top: 26px; }
.reading-lead { max-width: 560px; font-size: 1.04rem; }
.reading-page section { display: grid; grid-template-columns: 34px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line-dark); }
.reading-page section > span { color: #817300; font-size: .72rem; font-weight: 900; }
.reading-page section h2 { margin-bottom: 7px; font-size: 1.4rem; }
.reading-page section p { margin: 0; }

/* Профиль, вход и состояния */
.card { border: 1px solid var(--line); background: var(--paper); }
.profile-card { padding: 26px; text-align: center; }
.profile-card .avatar { width: 72px; height: 72px; margin: 0 auto 16px; }
.profile-card h2 { margin-bottom: 5px; }
.profile-card p { margin: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin: 36px 0 12px; }
.access-simple { display: grid; grid-template-columns: 1fr auto; gap: 7px 14px; padding: 18px; }
.access-simple span { color: var(--muted); font-size: .74rem; }
.access-simple button { grid-column: 2; grid-row: 1 / span 2; border: 0; background: transparent; font-weight: 800; cursor: pointer; }
.settings-row { width: 100%; display: grid; grid-template-columns: 24px 1fr 20px; align-items: center; gap: 12px; margin-top: 28px; padding: 18px 0; border: 0; border-top: 1px solid var(--line-dark); background: transparent; text-align: left; cursor: pointer; }

.login-screen { min-height: 100dvh; display: grid; align-items: center; padding: calc(var(--safe-top) + 24px) 20px calc(30px + var(--safe-bottom)); background: var(--bg); color: var(--ink); }
.login-content { width: min(100%, 520px); margin: 0 auto; }
.login-content .brand { margin-bottom: clamp(56px, 12vh, 110px); color: var(--ink); }
.login-content h1 { margin: 10px 0 16px; font-size: clamp(3.1rem, 13vw, 5.2rem); line-height: .9; text-transform: uppercase; }
.login-content > p { max-width: 440px; color: var(--muted); }
.login-card { margin-top: 30px; padding: 22px; border-color: var(--line); border-radius: 24px; background: var(--paper); }
.purchase-for { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 10px; padding: 0; border: 0; }
.purchase-for legend { margin-bottom: 10px; font-size: .8rem; font-weight: 800; }
.purchase-for label, .guardian-check { display: inline-flex; align-items: flex-start; gap: 7px; font-size: .82rem; line-height: 1.35; cursor: pointer; }
.purchase-for input, .guardian-check input { flex: none; margin-top: 2px; accent-color: #8a7b00; }
.register-note { margin: 0 0 16px; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.guardian-check { margin: 0 0 12px; }
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.field input { min-height: 52px; padding: 0 15px; border: 1px solid var(--line-dark); border-radius: 12px; background: var(--bg); color: var(--ink); }
.form-error { color: #ff9d91 !important; font-size: .78rem; }
.login-back-link { width: 100%; margin-top: 15px; padding: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.login-help-link { display: block; margin: 18px auto 4px; color: var(--ink); font-size: .82rem; font-weight: 750; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.login-help-note { margin: 0 auto; color: var(--muted); font-size: .72rem; line-height: 1.45; text-align: center; }
.legal-form-note { margin: 12px 0 18px; font-size: .76rem; line-height: 1.5; }
.legal-form-note a { color: var(--ink); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.status-state { min-height: 70dvh; display: grid; place-content: center; justify-items: start; max-width: 620px; }
.status-state h1 { margin: 12px 0; font-size: clamp(3rem, 13vw, 6rem); line-height: .9; text-transform: uppercase; }
.status-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 24px; border-radius: 50%; background: var(--yellow); }
.status-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.spinner { display: block; width: 24px; height: 24px; border: 3px solid rgba(0,0,0,.16); border-top-color: currentColor; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

.toast { position: fixed; z-index: 100; left: 50%; bottom: calc(92px + var(--safe-bottom)); max-width: calc(100% - 36px); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: .78rem; font-weight: 700; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Landing остаётся отдельной страницей */
.landing-page { background: var(--bg); }
.landing-top { position: absolute; z-index: 5; top: 0; left: 50%; width: min(100%, 1240px); display: flex; justify-content: space-between; align-items: center; padding: 24px 20px; transform: translateX(-50%); }
.landing-brand { font-weight: 900; text-transform: uppercase; }
.landing-brand span { background: var(--yellow); }
.landing-login { min-height: 42px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; font-weight: 800; cursor: pointer; }
.landing-hero { min-height: 100dvh; display: grid; padding-top: 88px; }
.landing-hero-copy { position: relative; z-index: 2; padding: 44px 20px 10px; }
.landing-hero-copy h1 { margin: 12px 0 18px; font-size: clamp(3.75rem, 16.5vw, 8.5rem); line-height: .88; text-transform: uppercase; }
.landing-hero-copy h1 span {
  display: inline-block;
  color: var(--ink);
}
.landing-lead { max-width: 560px; font-size: 1rem; }
.landing-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.landing-facts span { padding: 8px 11px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: .7rem; }
.landing-photo { background-position: center; background-size: cover; }
.landing-photo-main { position: relative; min-height: 54vh; background-image: url("assets/start-dsc03610.jpg"); }
.landing-photo-main::before { content: ""; position: absolute; inset: 0 0 auto; height: 64px; background: linear-gradient(to bottom, var(--bg), transparent); pointer-events: none; }
.landing-section { padding: 72px 20px; }
.landing-section > * { width: min(100%, 1120px); margin-left: auto; margin-right: auto; }
.landing-section h2 { margin-top: 12px; font-size: clamp(2.4rem, 11.25vw, 3.1rem); line-height: 1.04; letter-spacing: -.025em; text-transform: uppercase; text-wrap: balance; }
.landing-section.dark { background: var(--ink); color: var(--paper); }
.landing-section.dark p { color: #aaa9a3; }
.course-result-list { margin-top: 38px; border-top: 1px solid var(--line-dark); }
.course-result-list article { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--line-dark); }
.course-result-list article > span { color: #817300; font-size: .7rem; font-weight: 900; letter-spacing: .08em; }
.course-result-list strong { display: block; font-size: clamp(1.22rem, 4vw, 1.65rem); line-height: 1.12; }
.course-result-list p { max-width: 760px; margin: 9px 0 0; }
.course-result-list b { color: var(--ink); }
.audience-section { padding-top: 42px; }
.audience-list { margin-top: 38px; border-top: 1px solid var(--line-dark); }
.audience-list article { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line-dark); }
.audience-list article > span { color: #817300; font-size: .72rem; font-weight: 900; letter-spacing: .08em; }
.audience-list strong { display: block; font-size: clamp(1.22rem, 4vw, 1.7rem); line-height: 1.12; }
.audience-list p { max-width: 720px; margin: 9px 0 0; }
.flow-title { display: grid; gap: .08em; line-height: 1.02 !important; }
.flow-title span { display: block; }
.result-grid, .flow-grid { display: grid; gap: 1px; margin-top: 34px; background: var(--line); }
.result-grid article, .flow-grid article { padding: 22px; background: var(--bg); }
.flow-grid article { background: #141412; }
.result-grid strong, .flow-grid strong { display: block; font-size: 1.1rem; }
.result-grid p, .flow-grid p { margin: 7px 0 0; }
.flow-grid b { display: block; margin-bottom: 18px; color: var(--yellow); }
.program-note { max-width: 560px; margin-top: 18px; font-size: 1rem; }
.landing-weeks { margin-top: 34px; border-top: 1px solid var(--line-dark); }
.landing-weeks article { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; padding: 28px 0; border-bottom: 1px solid var(--line-dark); }
.landing-weeks article > span { width: fit-content; padding-top: 5px; border-top: 4px solid var(--yellow); color: var(--ink); font-size: .78rem; font-weight: 900; letter-spacing: .08em; }
.landing-weeks small { display: block; margin-bottom: 6px; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.landing-weeks strong { display: block; font-size: clamp(1.35rem, 4vw, 2rem); line-height: 1.08; }
.landing-weeks p { display: block; margin: 0; }
.landing-weeks .week-moves { margin-top: 10px; color: var(--ink); font-size: .9rem; font-weight: 750; }
.landing-weeks .week-outcome { max-width: 720px; margin-top: 10px; color: var(--muted); }
.pricing-grid { display: grid; gap: 14px; margin-top: 32px; }
.pricing-card { position: relative; display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line-dark); border-radius: 22px; background: var(--paper); }
.pricing-card.recommended { border: 2px solid var(--ink); }
.pricing-card .eyebrow { margin: 0; }
.pricing-price { display: block; margin: 14px 0 8px; font-size: clamp(2.6rem, 8vw, 4rem); line-height: 1; letter-spacing: -.06em; }
.pricing-card > p { margin: 0 0 16px; font-size: .87rem; }
.pricing-card ul { display: grid; gap: 9px; margin: 0 0 24px; padding-left: 19px; font-size: .85rem; line-height: 1.35; }
.pricing-card .pricing-not-included { margin-top: auto; color: var(--muted); font-size: .76rem; }
.pricing-card .btn { margin-top: auto; }
.pricing-badge { width: fit-content; margin: -39px 0 16px auto; padding: 7px 10px; border-radius: 999px; background: var(--yellow); font-size: .65rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.pricing-note { margin-top: 18px; font-size: .75rem; }
.selected-plan-note { padding: 12px 16px; border-left: 4px solid var(--yellow); background: var(--paper); font-size: .8rem; }
.checkout-card strong { display: block; font-size: 1.25rem; line-height: 1.2; }
.checkout-card p { color: var(--muted); line-height: 1.5; }
.checkout-plan-options { display: grid; gap: 8px; margin: 20px 0 0; padding: 0; border: 0; }
.checkout-plan-options legend { margin-bottom: 9px; font-size: .76rem; font-weight: 800; }
.checkout-plan-options label { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.checkout-plan-options label:has(input:checked) { border-color: var(--ink); background: var(--yellow); }
.checkout-plan-options input { flex: none; accent-color: var(--ink); }
.checkout-plan-options span { min-width: 0; flex: 1; font-size: .78rem; font-weight: 700; }
.checkout-plan-options strong { flex: none; font-size: .8rem; white-space: nowrap; }
.checkout-party { display: grid; gap: 11px; margin: 18px 0; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.checkout-party div { display: grid; gap: 3px; min-width: 0; }
.checkout-party span { color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.checkout-party strong { font-size: .9rem; line-height: 1.35; overflow-wrap: anywhere; }
.course-includes { background: var(--yellow); color: var(--ink); }
.course-includes .eyebrow { color: var(--ink); }
.includes-list { display: grid; margin-top: 38px; border-top: 1px solid rgba(11,11,11,.55); }
.includes-list article { padding: 24px 0; border-bottom: 1px solid rgba(11,11,11,.55); }
.includes-list strong { display: block; font-size: clamp(1.2rem, 4vw, 1.65rem); line-height: 1.12; }
.includes-list p { margin: 8px 0 0; color: rgba(11,11,11,.7); }
.testimonials-section { background: var(--bg); }
.testimonials-heading > p { max-width: 560px; margin-top: 18px; }
.testimonials-grid { margin-top: 38px; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.testimonial { padding: 28px 0; border-bottom: 1px solid var(--line-dark); }
.testimonial-meta { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 18px; align-items: baseline; }
.testimonial-meta span, .testimonial-meta strong { font-size: .7rem; font-weight: 900; line-height: 1.3; }
.testimonial-meta span { color: #817300; letter-spacing: .08em; }
.testimonial-meta strong { letter-spacing: .11em; text-transform: uppercase; }
.testimonial p { max-width: 760px; margin: 18px 0 0 56px; color: var(--ink); font-size: 1.05rem; line-height: 1.5; letter-spacing: -.015em; }
.testimonial-featured p { font-size: clamp(1.3rem, 5.5vw, 1.6rem); line-height: 1.36; letter-spacing: -.02em; }
.testimonials-compact .testimonial:last-child { border-bottom: 0; }
.support-section { display: grid; gap: 44px; background: var(--paper); }
.support-section > div:last-child { min-width: 0; }
.landing-section.support-section h2 { font-size: clamp(2.1rem, 8vw, 4.1rem); overflow-wrap: anywhere; }
.landing-photo-support { width: min(72vw, 280px); aspect-ratio: 4 / 5; margin: 0; overflow: hidden; }
.landing-photo-support img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 57%; }
.support-section > div:last-child p { max-width: 560px; margin-bottom: 24px; }
.messenger-row { display: flex; flex-wrap: wrap; gap: 8px; }
.messenger-row span { padding: 9px 12px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: .72rem; }
.faq-list { margin-top: 38px; border-top: 1px solid var(--line-dark); }
.faq-item { border-bottom: 1px solid var(--line-dark); }
.faq-item > button { width: 100%; min-height: 76px; display: grid; grid-template-columns: minmax(0, 1fr) 32px; align-items: center; gap: 18px; padding: 20px 0; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.faq-item > button span { font-size: clamp(1.05rem, 4vw, 1.4rem); font-weight: 800; line-height: 1.2; }
.faq-item > button b { font-size: 1.8rem; font-weight: 400; line-height: 1; text-align: right; }
.faq-answer { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .22s ease, opacity .18s ease; }
.faq-answer > div { overflow: hidden; }
.faq-answer p { max-width: 760px; margin: 0; padding: 0 50px 24px 0; }
.faq-item.open .faq-answer { grid-template-rows: 1fr; opacity: 1; }
.landing-final { text-align: center; }
.landing-final p { max-width: 480px; }

/* Существующие длинные гайды */
.guide-sheet { display: grid; gap: 28px; }
.guide-lead { font-size: 1rem; }
.guide-section { padding-top: 22px; border-top: 1px solid var(--line-dark); }
.guide-section-title { display: grid; grid-template-columns: 34px 1fr; gap: 14px; }
.guide-section-title span { color: #817300; font-weight: 900; }
.shoe-grid, .why-grid, .model-list, .avoid-list, .genre-grid, .listen-grid { display: grid; gap: 12px; margin-top: 18px; }
.shoe-grid article, .why-grid article, .model-list article, .avoid-list article, .genre-grid article, .listen-grid article { padding: 18px; border: 1px solid var(--line); background: var(--paper); }
.shoe-grid p, .why-grid p, .model-list p, .avoid-list p, .genre-grid p, .listen-grid p { margin: 7px 0 0; }

@media (min-width: 700px) {
  .screen { padding-left: 34px; padding-right: 34px; }
  .today-hero { min-height: 560px; }
  .today-hero::before { background: linear-gradient(90deg, var(--paper) 0 31%, rgba(255,255,255,.97) 42%, rgba(255,255,255,.7) 51%, transparent 66%); clip-path: none; }
  .today-hero-copy { width: 49%; padding: 70px 0 54px 50px; }
  .today-photo { background-position: right 48%; background-size: auto 150%; }
  .week-brief { grid-template-columns: minmax(0, 1fr) minmax(220px, .65fr); align-items: end; }
  .week-brief .text-link { grid-column: 1 / -1; }
  .today-complete { min-height: 560px; display: grid; align-content: space-between; }
  .today-complete-copy { width: 56%; padding: 64px 0 54px 50px; }
  .today-complete-copy h2 { font-size: clamp(4.2rem, 8vw, 7.5rem); }
  .today-complete-photo { position: absolute; height: auto; inset: 0 0 0 48%; border-top: 0; background-position: center 28%; }
  .today-complete::after { display: block; inset: 0 0 0 38%; background: linear-gradient(90deg, var(--yellow) 0 14%, transparent 52%); }
  .practice-row { grid-template-columns: 160px 1fr 28px; }
  .material-frame, .material-index { width: 160px; aspect-ratio: 16/10; }
  .practice-row strong { font-size: 1.45rem; }
  .training-stepper { justify-content: center; }
  .feedback-buttons { grid-template-columns: 1fr 1fr; }
  .onboarding-steps { display: grid; grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid var(--line-dark); }
  .onboarding-steps article { padding: 28px; border-right: 1px solid var(--line); }
  .onboarding-steps article:nth-child(even) { border-right: 0; }
  .onboarding-nav { grid-template-columns: 1fr 1fr 1fr; }
  .onboarding-nav > .eyebrow { grid-column: 1 / -1; }
  .onboarding-nav > div { display: block; padding: 18px; border-right: 1px solid var(--line); }
  .onboarding-nav > div:last-child { border-right: 0; }
  .onboarding-nav p { margin-top: 5px; }
  .finale-weeks { grid-template-columns: repeat(4, 1fr); }
  .finale-weeks div { padding: 0 18px; border-right: 1px solid var(--line-dark); border-bottom: 0; }
  .finale-weeks div:last-child { border-right: 0; }
  .result-grid, .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .landing-section h2 { font-size: clamp(3.6rem, 7vw, 6rem); line-height: .98; }
  .includes-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .includes-list article { padding: 28px 32px 28px 0; }
  .includes-list article:nth-child(odd) { border-right: 1px solid rgba(11,11,11,.55); }
  .includes-list article:nth-child(even) { padding-left: 32px; padding-right: 0; }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testimonials-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); }
  .testimonial-featured { padding: 38px 48px 38px 0; border-right: 1px solid var(--line-dark); border-bottom: 0; }
  .testimonials-compact { padding-left: 48px; }
  .testimonial p { margin-left: 56px; }
  .landing-hero { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .landing-hero-copy { align-self: center; padding: 110px 6vw 60px; }
  .landing-photo-main { min-height: 100dvh; }
  .landing-photo-main::before { display: none; }
  .support-section { grid-template-columns: .8fr 1.2fr; align-items: center; }
  .landing-photo-support { width: min(100%, 340px); justify-self: start; }
  .shoe-grid, .why-grid, .genre-grid, .listen-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .app-shell { padding-left: 230px; }
  .screen { width: min(100%, 1240px); padding: 38px 54px 70px; }
  .screen > .topbar { justify-content: flex-end; }
  .screen > .topbar > .brand { display: none; }
  .bottom-nav { display: none; }
  .desktop-side { position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; width: 230px; display: flex; flex-direction: column; padding: 32px 22px; border-right: 1px solid var(--line); background: var(--paper); }
  .desktop-nav { display: grid; gap: 5px; margin-top: 56px; }
  .desktop-link { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); text-align: left; cursor: pointer; }
  .desktop-link span { font-size: .82rem; font-weight: 750; }
  .desktop-link.active { background: var(--yellow); color: var(--ink); }
  .desktop-side-foot { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
  .desktop-side-foot p { margin: 7px 0 0; font-size: .75rem; }
  .page-heading { margin-top: 30px; }
  .page-heading h1 { max-width: 10ch; }
  .today-hero-copy h2 { font-size: 5.25rem; }
  .week-summary { grid-template-columns: 56px minmax(0, 1fr) 34px; padding: 30px 0; }
  .week-number { width: 52px; height: 52px; }
  .week-copy strong { font-size: 1.42rem; }
  .week-lessons { padding-left: 70px; }
  .course-finale { padding-bottom: 50px; }
  .material-group { width: min(100%, 920px); }
  .training-panel > .btn { margin-top: 30px; }
  .movement-panel { width: min(100%, 1100px); display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); column-gap: 42px; align-items: start; }
  .movement-panel > * { grid-column: 2; }
  .movement-panel > .video-stage, .movement-panel > .assignment-videos { grid-column: 1; grid-row: 1 / span 8; width: 100%; margin: 0; }
  .movement-panel .movement-tip { width: 100%; margin-left: 0; }
  .movement-panel > .btn { margin-left: 0; }
  .result-grid, .flow-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 420px) {
  .screen { padding-left: 18px; padding-right: 18px; }
  .topbar { margin-bottom: 32px; }
  .today-hero { min-height: 610px; }
  .today-hero-copy { padding-right: 22px; }
  .today-hero-copy h2 { font-size: 3rem; }
  .today-hero-copy p { display: none; }
  .today-hero-copy .btn { margin-top: 8px; }
  .today-photo { background-position: center calc(100% + 42px); }
  .today-complete-copy { padding: 28px 24px 22px; }
  .today-complete-copy p { max-width: 30ch; }
  .practice-row { grid-template-columns: 84px 1fr 18px; }
  .material-frame, .material-index { width: 84px; }
  .training-stepper { margin-left: -18px; margin-right: -18px; padding: 0 18px; }
  .training-stepper button b { display: none; }
  .training-stepper button.active b { display: block; }
  .movement-panel .stage-copy { display: none; }
  .movement-panel.day-two-copy .stage-copy { display: block; }
  .training-panel h1 { font-size: 2.75rem; }
  .video-stage, .common-video-wrap { border-radius: 20px; }
  .bpm-player { margin: 0 -6px; padding: 32px 18px; }
  .finale-hero h1 { font-size: 3.65rem; }
  .finale-next { margin-left: -18px; margin-right: -18px; padding: 38px 18px; }
  .finale-next h2 { font-size: 3.1rem; }
}

@media (max-width: 360px) {
  .materials-heading h1 { font-size: 2.75rem; }
}

@media (min-width: 421px) and (max-width: 520px) {
  .today-hero-copy h2 { font-size: 3rem; }
  .today-hero-copy p { display: none; }
  .today-hero-copy .btn { margin-top: 8px; }
  .today-photo { background-position: center calc(100% + 86px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.dev-mode-badge {
  position: fixed;
  z-index: 1000;
  right: 10px;
  top: calc(var(--safe-top) - 16px);
  padding: 3px 5px;
  border: 1px solid rgba(11, 11, 11, .3);
  border-radius: 5px;
  background: var(--yellow);
  color: var(--ink);
  font: 700 8px/1.1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
  pointer-events: none;
}
.dev-mode-badge.mock { background: #f5d0c5; }
.dev-mode-badge[hidden] { display: none; }

/* Единая типографика крупных заголовков внутри курса. */
:is(.onboarding-heading h1, .page-heading h1, .today-hero-copy h2,
    .today-complete-copy h2, .day-complete-page > h1, .training-panel h1,
    .finale-hero h1, .finale-next h2) {
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-wrap: balance;
}

@media (max-width: 520px) {
  .today-hero.long-title .today-hero-copy h2 { max-width: 100%; }
}

/* Учебная иерархия: контекст → тип задания → название → цель → мета. */
.assignment-type {
  display: table;
  width: max-content;
  max-width: 100%;
  margin-top: 15px;
  padding: 6px 8px 5px;
  background: var(--yellow);
  color: var(--ink);
  font-size: .75rem;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.assignment-meta {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
  font-weight: 750;
}
.assignment-alias {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.4;
  font-weight: 750;
  letter-spacing: .06em;
}
.today-hero.has-alias .today-hero-copy h2 { margin-bottom: 4px; }
.today-hero-copy .assignment-alias { margin-bottom: 12px; }
.assignment-heading { min-width: 0; }
.assignment-heading .stage-kicker { font-size: .78rem; }
.movement-panel .assignment-heading h1 {
  max-width: 100%;
  margin: 10px 0 14px;
  font-size: clamp(2rem, 8.7vw, 2.375rem);
  line-height: 1.06 !important;
  letter-spacing: 0 !important;
  text-transform: none;
  overflow-wrap: normal;
  hyphens: none;
  text-wrap: pretty;
}
.movement-panel .assignment-heading.has-alias h1 { margin-bottom: 4px; }
.assignment-heading .assignment-alias { margin-bottom: 14px; }
.assignment-goal {
  max-width: 38ch;
  margin: 0 0 16px;
  color: #494842;
  font-size: clamp(1rem, 4.3vw, 1.125rem);
  line-height: 1.44;
}
.movement-panel .day-task {
  margin: 25px 0 20px;
  padding: 17px 0 0;
  border-bottom: 0;
}
.movement-panel .day-task .stage-kicker { margin-bottom: 9px; }
.movement-panel .day-task strong {
  display: block;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 800;
}
.movement-panel .day-task p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.45;
}

@media (max-width: 699px) {
  .page-heading h1 { font-size: clamp(2.25rem, 10vw, 2.75rem); }
  .today-heading { margin-bottom: 18px; }
  .today-hero { min-height: 0; }
  .today-hero::before { display: none; }
  .today-hero-copy {
    padding: 24px 24px 27px;
    border-radius: 0 0 84px 0;
    background: var(--paper);
  }
  .today-hero-copy h2,
  .today-hero.long-title .today-hero-copy h2 {
    max-width: 100%;
    margin: 10px 0 13px;
    font-size: clamp(2rem, 8.7vw, 2.375rem);
    line-height: 1.06 !important;
    letter-spacing: 0 !important;
    text-transform: none;
    overflow-wrap: normal;
    hyphens: none;
    text-wrap: pretty;
  }
  .today-hero-copy p {
    display: block;
    max-width: 34ch;
    margin-bottom: 13px;
    color: #494842;
    font-size: 1rem;
    line-height: 1.44;
  }
  .today-hero-copy .btn { margin-top: 18px; }
  .today-photo {
    position: relative;
    inset: auto;
    height: min(105vw, 450px);
    background-position: center -14vw;
    background-size: 100% auto;
  }
  .onboarding-heading h1,
  .day-complete-page > h1,
  .finale-hero h1,
  .finale-next h2 { font-size: clamp(2.25rem, 10vw, 2.75rem); }
}

@media (min-width: 700px) {
  .movement-panel .assignment-heading h1 { font-size: clamp(2.5rem, 4.3vw, 3.5rem); }
  .assignment-goal { font-size: 1.125rem; }
}
.legal-links { display:flex; flex-wrap:wrap; gap:12px 22px; padding:30px max(24px, 5vw); background:#1d1d1b; }
.legal-links a { color:#f5f3ec; font-size:.78rem; line-height:1.4; }
.legal-seller-note { flex-basis:100%; color:#c5c3bb; font-size:.76rem; line-height:1.5; }
.legal-page { min-height:100vh; background:var(--paper); }
.legal-page article { min-height:55vh; max-width:860px; margin:auto; padding:72px 24px; }
.legal-page h1 { margin:14px 0 24px; font-size:clamp(2rem, 7vw, 4rem); line-height:1.08; overflow-wrap:anywhere; }
.legal-edition { margin:-12px 0 28px; color:#716e64; font-size:0.9rem; }
.legal-page p { max-width:58ch; }
.legal-page article a { color:inherit; text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere; }
.legal-copy { max-width: 680px; }
.legal-copy section { padding: 20px 0; border-top: 1px solid var(--line-dark); }
.legal-copy section h2 { margin: 0 0 10px; font-size: clamp(1.2rem, 4.5vw, 1.55rem); line-height: 1.2; }
.legal-copy section p { margin: 0 0 12px; color: #514f49; line-height: 1.6; overflow-wrap: anywhere; }
.legal-copy section p:last-child { margin-bottom: 0; }
.legal-copy section strong { color: var(--ink); }
.legal-draft-notice { margin: 0 0 28px; padding: 18px 20px; border-left: 4px solid var(--yellow); background: #fff; }
.legal-draft-notice strong { display: block; margin-bottom: 6px; font-size: .9rem; }
.legal-draft-notice p { margin: 0; color: #514f49; font-size: .84rem; line-height: 1.5; }
