/* Надежда дома: лендинг (11.11.2026). Подключается после app.css: палитра, шрифты и кнопки берутся оттуда.
   Страница собрана из живых карточек: каждая повторяет вид и движение приложения. Состояния карточек (done, fin,
   on, res…) переключает landing.js; в разметке стоят итоговые состояния, поэтому без скрипта и при выключенной
   анимации в системе страница показывает готовый результат. Двигаем только transform и opacity. */
body.landing { background: var(--bg); }
.ld { overflow-x: hidden; overflow-x: clip; }
.ld-wrap { max-width: 1080px; margin-left: auto; margin-right: auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.ld svg { display: block; flex: 0 0 auto; }

/* ------------------------------------------------------------ верх и шапка */
.ld-top { display: flex; align-items: center; justify-content: space-between; padding-top: calc(14px + env(safe-area-inset-top, 0px)); padding-bottom: 10px; }
.ld-brand { display: inline-flex; align-items: center; gap: 10px; font: 600 18px var(--display); color: var(--ink); }
.ld-brand img { border-radius: 50%; }
.ld-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding-top: 14px; padding-bottom: 6px; }
.ld-eyebrow { color: var(--plum); font: 600 13px var(--display); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 10px; }
.ld-hero h1 { font-size: 33px; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 12px; }
.ld-lead { font-size: 19px; margin: 0; }
.ld-cta { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 6px; }
.ld-cta .btn { max-width: 420px; }
.ld-after { color: var(--muted); font-size: 15px; }
/* телефон с настоящим экраном: виден верх, низ уходит в фон; Надя машет рядом */
.ld-hero-vis { position: relative; justify-self: center; width: 300px; max-width: 100%; margin-top: 16px; }
.ld-hero-vis::before { content: ""; position: absolute; left: 50%; top: 46%; width: 460px; height: 460px; margin: -230px 0 0 -230px; border-radius: 50%; background: radial-gradient(closest-side, rgba(149, 43, 151, .16), rgba(149, 43, 151, 0)); pointer-events: none; }
.ld-phone { position: relative; width: 268px; height: 450px; margin: 0 0 0 auto; padding: 8px 8px 0; border-radius: 40px 40px 0 0; background: var(--ink); overflow: hidden; box-shadow: 0 24px 60px rgba(42, 36, 64, .22); }
.ld-phone img { width: 100%; height: auto; border-radius: 32px 32px 0 0; }
.ld-phone::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 130px; background: linear-gradient(rgba(244, 240, 248, 0), var(--bg)); }
.ld-hero-nad { position: absolute; left: -8px; bottom: 6px; width: 148px; height: 148px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(42, 36, 64, .2)); }
.ld-video { position: relative; border-radius: 28px; overflow: hidden; box-shadow: 0 18px 44px rgba(42, 36, 64, .18); aspect-ratio: 4 / 5; background: var(--ink); }
.ld-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes ld-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.ld-hero-txt > * { animation: ld-up .7s var(--ease-out) both; }
.ld-hero-txt > :nth-child(2) { animation-delay: 60ms; }
.ld-hero-txt > :nth-child(3) { animation-delay: 120ms; }
.ld-hero-txt > :nth-child(4) { animation-delay: 180ms; }
.ld-hero-vis { animation: ld-up .9s var(--ease-out) .12s both; }

/* ------------------------------------------------------------ разделы */
.ld-sec { padding-top: 38px; padding-bottom: 6px; }   /* не shorthand: у раздела с ld-wrap свои поля по бокам */
.ld-head { margin-bottom: 18px; }
.ld-head h2, .c-nadya h2 { font-size: 28px; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 6px; }
.ld-head p { margin: 0; font-size: 17px; color: var(--muted); }
/* появление при прокрутке: один раз, снизу вверх. Без скрипта (нет класса ld-js) всё видно сразу */
.ld-js .rv { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.ld-js .rv.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ занятия: два ряда обложек едут навстречу */
.ld-marq { display: grid; gap: 12px; }
.ld-marq-row { overflow: hidden; }
.ld-marq-track { display: flex; width: max-content; animation: ld-marq 64s linear infinite; will-change: transform; }
.ld-marq-row.rev .ld-marq-track { animation-direction: reverse; }
.ld-js .ld-marq:not(.on) .ld-marq-track { animation-play-state: paused; }
@keyframes ld-marq { to { transform: translateX(-50%); } }
.ld-cov { position: relative; flex: 0 0 auto; width: 236px; margin: 0 12px 0 0; border-radius: 16px; overflow: hidden; background: var(--lav-soft); }
.ld-cov img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ld-cov figcaption { position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(42, 36, 64, .74); color: #fff; font: 600 12px/1.5 var(--display); letter-spacing: .01em; }
.ld-goals { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; margin-bottom: 0; }
.ld-goals li { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px 0 11px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); font: 500 15px var(--body); color: var(--ink); white-space: nowrap; }
.ld-goals svg { width: 19px; height: 19px; color: var(--plum); }

/* ------------------------------------------------------------ карточки механик */
.ld-bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.ld-card { position: relative; border-radius: 28px; padding: 22px 20px 20px; overflow: hidden; background: var(--surface); }
.ld-card > header h3 { font-size: 24px; letter-spacing: -.01em; margin: 0 0 2px; }
.ld-card > header p { margin: 0; font-size: 16px; color: var(--text); }
.ld-demo { position: relative; margin-top: 16px; transition: opacity .28s ease; }
/* круг сцены кончился: карточка гаснет, состояние сбрасывается без переходов (nofx), карточка проявляется с начала */
.ld-demo.rst { opacity: 0; }
.ld-demo.nofx, .ld-demo.nofx * { transition: none !important; }
.c-drops { background: var(--plum-soft); }
.c-quests { background: var(--ok-soft); }
.c-streak { background: var(--fire-soft); }
.c-levels { box-shadow: inset 0 0 0 1.5px var(--line); }
.c-nadya { background: var(--lav-soft); }

/* капельки: шапка клуба, занятие, кнопка. Капельки летят из кнопки в счётчик (landing.js) */
.d-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.d-chip { display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 13px 0 9px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font: 600 16px var(--display); }
.d-chip svg { width: 20px; height: 20px; }
.d-chip.fire { color: #C84F1F; } .d-chip.fire svg { color: var(--fire); }
.d-chip.drop { color: var(--plum-ink); transition: transform .22s var(--ease-out); } .d-chip.drop svg { color: var(--plum); }
.d-chip.drop.bump { transform: scale(1.16); transition-duration: .08s; }
.d-chip b { font-variant-numeric: tabular-nums; }
.d-lv { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px 0 4px; border-radius: 999px; background: #FFE1BF; color: #8A4A12; font: 600 14px var(--display); white-space: nowrap; min-width: 0; }
.d-ring, .lv-badge { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.d-ring { width: 32px; height: 32px; }
.d-ring svg, .lv-badge svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.d-ring circle, .lv-badge circle { fill: none; stroke-width: 3.5; }
.d-ring .t { stroke: rgba(255, 255, 255, .78); }
.d-ring .p, .lv-badge .p { stroke: currentColor; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 95)); transition: stroke-dashoffset .5s var(--ease-out); }
.d-ring b, .lv-badge b { position: relative; font: 600 14px var(--display); line-height: 1; }
.d-lesson { margin-top: 12px; padding: 8px 8px 12px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.d-cover { position: relative; border-radius: 15px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--lav-soft); }
.d-cover img { width: 100%; height: 100%; object-fit: cover; }
.d-play, .d-ok { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: opacity .25s ease, transform .4s var(--ease-pop); }
.d-play { background: rgba(255, 255, 255, .94); } .d-play svg { width: 22px; height: 22px; fill: var(--ink); margin-left: 3px; }
.d-ok { background: var(--ok); color: #fff; opacity: 0; transform: scale(.8); } .d-ok svg { width: 26px; height: 26px; }
.done .d-play { opacity: 0; transform: scale(.9); } .done .d-ok { opacity: 1; transform: none; }
.d-btn { position: relative; display: grid; align-items: center; justify-items: center; margin: 10px 2px 0; height: 48px; border-radius: 14px; background: var(--cta); color: var(--cta-ink); box-shadow: 0 4px 0 var(--cta-edge); font: 600 16px var(--body); transition: transform .12s var(--ease-out), box-shadow .12s var(--ease-out), background .3s ease, color .3s ease; }
.d-btn > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 7px; transition: opacity .2s ease; }
.d-btn svg { width: 20px; height: 20px; }
.d-btn .b { opacity: 0; }
.press .d-btn { transform: translateY(3px); box-shadow: 0 1px 0 var(--cta-edge); }
.done .d-btn { background: var(--ok-soft); color: var(--ok-edge); box-shadow: 0 0 0 transparent; }
.done .d-btn .a { opacity: 0; } .done .d-btn .b { opacity: 1; }
.d-tap { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(42, 36, 64, .18); opacity: 0; transform: scale(1.35); transition: opacity .2s ease, transform .3s var(--ease-out); pointer-events: none; }
.tap .d-tap { opacity: 1; transform: none; }
.ld-fly { position: absolute; left: 0; top: 0; width: 20px; height: 20px; margin: -10px 0 0 -10px; color: var(--plum); pointer-events: none; will-change: transform, opacity; opacity: 0; z-index: 3; }
.ld-fly svg { width: 100%; height: 100%; }

/* задания дня: строки закрываются по очереди, потом День закрыт */
.q-box { padding: 14px 14px 4px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.q-prog { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.q-prog span { font: 500 14px var(--body); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.q-bar { flex: 1; height: 10px; border-radius: 999px; background: var(--lav-soft); overflow: hidden; }
.q-bar i { display: block; width: 100%; height: 100%; border-radius: 999px; background: var(--cta); transform: translateX(calc(-100% + var(--k, 1) * 100%)); transition: transform .6s var(--ease-out), background .3s ease; }
.all .q-bar i { background: var(--ok); }
/* правая колонка постоянной ширины: галочка в пилюле не сдвигает текст и не меняет высоту карточки */
.q-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) 66px; gap: 11px; align-items: center; padding: 10px 0; border-top: 1.5px solid var(--line); }
.q-row:first-of-type { border-top: 0; }
.q-row .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--lav-soft); color: var(--plum); display: flex; align-items: center; justify-content: center; transition: background .3s ease, color .3s ease; }
.q-row .ic svg { width: 23px; height: 23px; }
.q-row b { display: block; font: 600 15px/1.25 var(--body); color: var(--ink); transition: color .3s ease; }
.q-row div span { display: block; margin-top: 1px; font-size: 13px; line-height: 1.3; color: var(--muted); }
.q-row em { justify-self: end; display: inline-flex; align-items: center; gap: 3px; padding: 4px 10px; border-radius: 999px; background: var(--plum-soft); color: var(--plum-ink); font: 600 14px var(--display); white-space: nowrap; transition: background .3s ease, color .3s ease, transform .4s var(--ease-pop); }
.q-row em svg { width: 0; height: 13px; opacity: 0; transition: width .3s var(--ease-out), opacity .2s ease; }
.q-row.done .ic { background: var(--ok-soft); color: var(--ok); }
.q-row.done b { color: var(--muted); }
.q-row.done em { background: var(--ok-soft); color: var(--ok-edge); }
.q-row.done em svg { width: 13px; opacity: 1; }
.q-row.pop em { transform: scale(1.14); }
/* низ карточки: пока задания не сделаны, строка про бонус; когда сделаны все, Надя танцует и День закрыт */
.q-fin { position: relative; height: 72px; margin-top: 8px; }
.q-hint { position: absolute; left: 0; right: 0; top: 50%; margin: -11px 0 0; text-align: center; font: 600 15px/22px var(--display); color: #2F7650; transition: opacity .25s ease, transform .4s var(--ease-out); }
.fin .q-hint { opacity: 0; transform: translateY(-6px); }
.q-win { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 10px; opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .25s ease, transform .5s var(--ease-pop); }
.fin .q-win { opacity: 1; transform: none; }
.q-win img { width: 72px; height: 72px; object-fit: contain; }
.q-win b { display: block; font: 600 20px/1.15 var(--display); color: #256B45; }
.q-win span { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; padding: 3px 10px 3px 7px; border-radius: 999px; background: #fff; color: var(--plum-ink); font: 600 15px var(--display); }
.q-win span svg { width: 15px; height: 15px; color: var(--plum); }

/* серия: огонёк на белом за каждый день, пропуск закрывает заморозка */
.s-pill { display: inline-flex; align-items: center; gap: 8px; height: 62px; padding: 0 24px 0 16px; border-radius: 999px; background: #fff; box-shadow: 0 8px 22px rgba(200, 79, 31, .14); color: #C84F1F; font: 600 34px var(--display); transition: transform .25s var(--ease-out); }
.s-pill.bump { transform: scale(1.07); transition-duration: .08s; }
.s-pill svg { width: 36px; height: 36px; color: var(--fire); }
.s-pill b { font-variant-numeric: tabular-nums; }
.s-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; margin-top: 18px; }
.s-d { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.s-d i { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .5); display: flex; align-items: center; justify-content: center; transition: background .3s ease, box-shadow .3s ease; }
.s-d i svg { width: 20px; height: 20px; color: var(--fire); opacity: 0; transform: scale(.7); transition: opacity .2s ease, transform .45s var(--ease-pop); }
.s-d.on i { background: #fff; box-shadow: 0 3px 10px rgba(200, 79, 31, .16); }
.s-d.on i svg { opacity: 1; transform: none; }
.s-d.fz i svg { width: 18px; height: 18px; color: #5E9BD8; }
.s-d.fz.on i { background: #EAF3FB; box-shadow: none; }
.s-d em { font: 600 12px var(--display); font-style: normal; color: #A2644C; }
.s-note { display: flex; align-items: center; gap: 7px; margin: 16px 0 0; font-size: 15px; color: #7A4A38; opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .5s var(--ease-out); }
.s-note svg { width: 18px; height: 18px; color: #5E9BD8; }
.note .s-note { opacity: 1; transform: none; }

/* уровни: кольцо заполняется, новый цвет идёт волной от кружка, Надя меняет образ */
.lv-stage { position: relative; height: 236px; padding: 0 12px 16px; border-radius: 22px; overflow: hidden; background: var(--c0); color: var(--i); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; transition: color .4s ease; }
.lv-wave { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: var(--c1); -webkit-clip-path: circle(0 at 36px 36px); clip-path: circle(0 at 36px 36px); }
.lv-stage.sw .lv-wave { animation: ld-wave .75s var(--ease-out) both; }
@keyframes ld-wave {
  from { -webkit-clip-path: circle(22px at 36px 36px); clip-path: circle(22px at 36px 36px); }
  to { -webkit-clip-path: circle(150% at 36px 36px); clip-path: circle(150% at 36px 36px); }
}
.lv-badge { position: absolute; left: 12px; top: 12px; width: 48px; height: 48px; background: #fff; box-shadow: 0 6px 16px rgba(42, 36, 64, .12); transition: transform .3s var(--ease-pop); }
.lv-badge .t { stroke: rgba(42, 36, 64, .08); }
.lv-badge b { font-size: 19px; }
.lv-badge .p { transition: stroke-dashoffset 1.25s var(--ease-in-out); }
.lv-badge.z .p { transition: none; }
.lv-stage.full .lv-badge { transform: scale(1.12); }
.lv-nad { position: relative; width: 150px; height: 150px; object-fit: contain; transition: opacity .22s ease, transform .5s var(--ease-pop), filter .22s ease; }
.lv-stage.swap .lv-nad { opacity: 0; transform: scale(.9); filter: blur(4px); }
.lv-name { position: relative; margin-top: 2px; font: 600 22px/1.2 var(--display); transition: opacity .22s ease; }
.lv-stage.swap .lv-name { opacity: 0; }
.lv-perk { position: absolute; right: 12px; top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border-radius: 999px; background: rgba(255, 255, 255, .72); font: 600 13px var(--display); opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .5s var(--ease-out); }
.lv-perk svg { width: 16px; height: 16px; }
.lv-stage.gold .lv-perk { opacity: 1; transform: none; }
.lv-dots { display: flex; justify-content: space-between; margin-top: 14px; }
.lv-dots button { position: relative; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--c); color: var(--i); font: 600 13px var(--display); cursor: pointer; transition: transform .25s var(--ease-out), box-shadow .25s ease; }
.lv-dots button::after { content: ""; position: absolute; left: -3px; right: -3px; top: -8px; bottom: -8px; }
.lv-dots button.gold { background: linear-gradient(135deg, #FBEBB0, #F3D170 70%, #E9B949); }
.lv-dots button.on { transform: scale(1.14); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--i); }

/* ------------------------------------------------------------ еда: снимок, разбор, результат */
.ld-food { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.f-ways { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; padding: 0; }
.f-ways li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); font: 600 14px var(--display); color: var(--ink); }
.f-ways svg { width: 24px; height: 24px; color: var(--plum); }
.f-card { padding: 12px; border-radius: 28px; background: var(--cta-soft); }
.f-photo { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--lav-soft); }
.f-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform .9s var(--ease-out); }
.shot .f-photo img, .res .f-photo img { transform: none; }
.f-br { position: absolute; width: 26px; height: 26px; border: 3px solid #fff; opacity: .95; transition: opacity .3s ease, transform .5s var(--ease-out); }
.f-br.a { left: 14px; top: 14px; border-right: 0; border-bottom: 0; border-radius: 9px 0 0 0; }
.f-br.b { right: 14px; top: 14px; border-left: 0; border-bottom: 0; border-radius: 0 9px 0 0; }
.f-br.c { left: 14px; bottom: 14px; border-right: 0; border-top: 0; border-radius: 0 0 0 9px; }
.f-br.d { right: 14px; bottom: 14px; border-left: 0; border-top: 0; border-radius: 0 0 9px 0; }
.res .f-br { opacity: 0; }
.f-flash { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: #fff; opacity: 0; pointer-events: none; }
.shot .f-flash { animation: ld-flash .45s ease-out both; }
@keyframes ld-flash { 0% { opacity: 0; } 18% { opacity: .85; } 100% { opacity: 0; } }
.f-scan { position: absolute; left: 0; right: 0; top: 0; height: 46%; background: linear-gradient(rgba(149, 43, 151, 0), rgba(149, 43, 151, .3)); border-bottom: 2px solid rgba(255, 255, 255, .95); opacity: 0; transform: translateY(-100%); pointer-events: none; }
.scan .f-scan { animation: ld-scan 1.25s var(--ease-in-out) both; }
@keyframes ld-scan { 0% { opacity: 0; transform: translateY(-100%); } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; transform: translateY(218%); } }
.f-wait { position: absolute; left: 50%; bottom: 12px; padding: 6px 14px; border-radius: 999px; background: rgba(42, 36, 64, .78); color: #fff; font: 600 13px var(--display); white-space: nowrap; opacity: 0; transform: translate(-50%, 6px); transition: opacity .25s ease, transform .4s var(--ease-out); }
.scan .f-wait { opacity: 1; transform: translate(-50%, 0); }
.f-res { position: relative; margin-top: 10px; padding: 12px 14px 14px; border-radius: 20px; background: #fff; }
/* пока результата нет, на его месте заготовка тех же очертаний: пустого белого поля нет */
.f-skel { position: absolute; left: 14px; right: 14px; top: 12px; bottom: 14px; transition: opacity .3s ease; }
.res .f-skel { opacity: 0; }
.f-skel i { position: absolute; border-radius: 10px; background: var(--lav-soft); opacity: .7; }
.f-skel i:nth-child(1) { left: 4px; top: 4px; width: 64px; height: 64px; border-radius: 50%; }
.f-skel i:nth-child(2) { left: 82px; top: 16px; width: 46%; height: 16px; }
.f-skel i:nth-child(3) { left: 82px; top: 42px; width: 52px; height: 18px; border-radius: 999px; }
.f-skel i:nth-child(4) { left: 0; top: 86px; width: 58%; height: 18px; }
.f-skel i:nth-child(5), .f-skel i:nth-child(6), .f-skel i:nth-child(7) { bottom: 0; width: calc((100% - 16px) / 3); height: 54px; border-radius: 14px; }
.f-skel i:nth-child(5) { left: 0; } .f-skel i:nth-child(6) { left: calc((100% - 16px) / 3 + 8px); } .f-skel i:nth-child(7) { right: 0; }
.scan .f-skel i { animation: ld-skel 1s ease-in-out infinite; }
.scan .f-skel i:nth-child(n+4) { animation-delay: .15s; }
@keyframes ld-skel { 0%, 100% { opacity: .7; } 50% { opacity: .35; } }
.f-i { opacity: 0; transform: translateY(10px); transition: opacity .3s ease, transform .55s var(--ease-out); }
.res .f-i { opacity: 1; transform: none; }
.res .f-name { transition-delay: 70ms; } .res .f-bju { transition-delay: 140ms; }
.f-top { display: flex; align-items: center; gap: 10px; }
.f-top img { width: 72px; height: 72px; object-fit: contain; }
.f-top b { display: block; font: 600 19px/1.2 var(--display); color: var(--ink); }
.f-pts { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; padding: 3px 10px 3px 7px; border-radius: 999px; background: var(--plum-soft); color: var(--plum-ink); font: 600 14px var(--display); }
.f-pts svg { width: 14px; height: 14px; color: var(--plum); }
.f-name { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 8px; }
.f-name b { font: 600 17px/1.25 var(--display); color: var(--ink); }
.f-name span { font-size: 14px; color: var(--muted); white-space: nowrap; }
.f-name strong { font: 600 26px var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.f-bju { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.f-bju span { padding: 8px 4px; border-radius: 14px; background: var(--lav-soft); text-align: center; font-size: 13px; line-height: 1.3; color: var(--muted); }
.f-bju b { display: block; font: 600 18px var(--display); color: var(--ink); }

/* ------------------------------------------------------------ Надя: напомнит, ответит, подышит */
.c-nadya { padding-bottom: 18px; }
.c-nadya h2 { margin-bottom: 0; }
.n-stage { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 4px; align-items: center; margin-top: 12px; }
.n-fig { position: relative; width: 112px; height: 124px; }
.n-fig img { position: absolute; left: 0; top: 6px; width: 112px; height: 112px; object-fit: contain; opacity: 0; transform: scale(.92); transition: opacity .25s ease, transform .5s var(--ease-pop); }
.n-fig img.on { opacity: 1; transform: none; }
.n-halo { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -44px 0 0 -48px; border-radius: 50%; background: rgba(149, 43, 151, .13); opacity: 0; transition: opacity .4s ease; }
.breath .n-halo { opacity: 1; animation: ld-breath 5s ease-in-out infinite; }
.breath .n-fig img.on { animation: ld-breath-n 5s ease-in-out infinite; }
@keyframes ld-breath { 0%, 100% { transform: scale(.82); } 45% { transform: scale(1.3); } }
@keyframes ld-breath-n { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.06); } }
.n-bubble { position: relative; min-height: 104px; padding: 12px 14px 13px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.n-bubble::before { content: ""; position: absolute; left: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: #fff; box-shadow: inset 1.5px 0 0 var(--line), inset 0 -1.5px 0 var(--line); transform: rotate(45deg); border-radius: 0 0 0 4px; }
.n-bubble span { display: block; margin-bottom: 3px; font: 600 12px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--plum); }
.n-bubble p { margin: 0; font-size: 16px; line-height: 1.4; color: var(--ink); transition: opacity .2s ease, filter .2s ease; }
.n-bubble p.out { opacity: 0; filter: blur(3px); }
.n-tabs { display: flex; gap: 8px; margin-top: 14px; }
.n-tabs button { flex: 1 1 0; min-width: 0; height: 46px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .6); color: var(--text); font: 600 15px var(--display); cursor: pointer; transition: background .25s ease, color .25s ease, transform .16s var(--ease-out), box-shadow .25s ease; }
.n-tabs button:active { transform: scale(.97); }
.n-tabs button.on { background: #fff; color: var(--plum-ink); box-shadow: 0 4px 14px rgba(42, 36, 64, .08); }

/* ------------------------------------------------------------ санаторий */
.san-main { position: relative; border-radius: 24px; overflow: hidden; background: var(--lav); }
.san-main img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.san-main .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18px 16px; background: linear-gradient(rgba(42, 36, 64, 0), rgba(42, 36, 64, .8)); color: #fff; }
.san-main .cap b { display: block; font: 600 19px/1.2 var(--display); }
.san-main .cap span { display: block; margin-top: 3px; font-size: 15px; opacity: .94; }
.san-band { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.san-band img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }

/* ------------------------------------------------------------ цены, вопросы, подвал */
.ld-price { margin-top: 38px; padding-top: 34px; padding-bottom: 36px; background: var(--lav-soft); }
.pr-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pr { display: flex; flex-direction: column; align-items: center; padding: 14px 4px 14px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); text-align: center; }
.pr.on { box-shadow: inset 0 0 0 2px var(--cta), 0 10px 26px rgba(240, 168, 104, .28); }
.pr span { font: 500 14px/1.25 var(--body); color: var(--text); min-height: 36px; display: flex; align-items: center; }
.pr b { font: 600 clamp(19px, 5.9vw, 30px)/1.15 var(--display); color: var(--ink); white-space: nowrap; }
.pr em { margin-top: 5px; font: 500 12px/1.3 var(--body); font-style: normal; color: var(--muted); }
.pr-cta { margin: 18px auto 0; max-width: 460px; }
.pr-gift { margin: 12px 0 0; text-align: center; font: 600 16px var(--body); }
.pr-gift a { color: var(--plum); text-decoration: underline; text-underline-offset: 3px; }
/* новогодний сезон: подарок плашкой с Надей (11.11.2026) */
.pr-gift-ny { display: flex; align-items: center; gap: 12px; max-width: 460px; margin: 14px auto 0; padding: 10px 16px 10px 10px; border-radius: 20px; background: linear-gradient(120deg, #2D2149, #4B3880); color: #fff; text-decoration: none; box-shadow: 0 10px 24px rgba(45, 33, 73, .22); }
.pr-gift-ny img { flex: 0 0 64px; width: 64px; height: 64px; }
.pr-gift-ny span { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.pr-gift-ny b { font: 600 17px/1.25 var(--display); color: #fff; }
.pr-gift-ny em { font: 500 14px/1.3 var(--body); font-style: normal; color: #D9CDEE; margin-top: 2px; }
.pr-gift-ny:active { transform: scale(.985); }
.ld-faq { padding-top: 34px; }
.ld-faq details { margin-bottom: 8px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.ld-faq summary { position: relative; padding: 14px 44px 14px 16px; font: 600 16px/1.3 var(--body); color: var(--ink); cursor: pointer; list-style: none; }
.ld-faq summary::-webkit-details-marker { display: none; }
.ld-faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .25s var(--ease-out); }
.ld-faq details[open] summary::after { transform: translateY(4px) rotate(-135deg); }
.ld-faq details p { margin: 0; padding: 0 16px 14px; font-size: 16px; }
.ld-foot { padding-top: 26px; padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14px; }
.ld-foot p { margin: 0 0 6px; }

/* Кнопка внизу экрана на телефоне. Safari на iOS 26 заливает зону под своей панелью сплошным цветом, если у края экрана
   стоит закреплённый (fixed или sticky) элемент шириной от 90 % экрана: он ищет такой элемент в точке посередине
   нижнего края, в 4 px от него (WebKit, LocalFrameView::fixedContainerEdges), а цвет берёт у элемента или снимает с
   экрана. Прежняя полоса во всю ширину с переходом в фон давала персиковую заливку под цвет кнопки (Даниил, 11.11.2026).
   Поэтому закреплена сама кнопка: она уже 90 % экрана и приподнята над краем, спрятанная невидима (visibility), и
   появляется на месте, не выезжая из-за края. Не делать её шире 85 % экрана и не прижимать к краю ближе 12 px;
   полосу, подложку или переход в фон под ней не возвращать. */
.ld-stick { position: fixed; z-index: 30; left: 0; right: 0; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: min(80vw, 400px); height: 52px; margin: 0 auto; padding: 0 12px; border-radius: 16px; box-shadow: 0 4px 0 var(--cta-edge), 0 14px 30px rgba(42, 36, 64, .24); opacity: 0; visibility: hidden; transform: translateY(8px) scale(.97); transition: opacity .2s ease, transform .2s var(--ease-out), visibility 0s linear .2s; }
.ld-stick.on { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .4s var(--ease-out), box-shadow .12s var(--ease-out), visibility 0s; }
.ld-stick.on:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--cta-edge), 0 8px 18px rgba(42, 36, 64, .2); transition-duration: .12s; }

/* ------------------------------------------------------------ узкие телефоны */
@media (max-width: 359px) {
  .ld-hero h1 { font-size: 29px; }
  .ld-head h2, .c-nadya h2 { font-size: 25px; }
  .ld-card { padding: 20px 16px 16px; }
  .d-chip { padding: 0 10px 0 7px; font-size: 15px; } .d-lv { padding-right: 10px; font-size: 13px; gap: 5px; }
  .q-box { padding: 12px 12px 2px; } .q-row { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 9px; } .q-row .ic { width: 38px; height: 38px; }
  .q-row em { padding: 4px 8px; font-size: 13px; }
  .lv-dots button { width: 26px; height: 26px; font-size: 12px; }
  .n-stage { grid-template-columns: 92px minmax(0, 1fr); } .n-fig { width: 92px; height: 104px; } .n-fig img { width: 92px; height: 92px; }
  .n-halo { width: 80px; height: 80px; margin: -36px 0 0 -40px; }
  .n-tabs button { font-size: 14px; }
  .pr span { font-size: 13px; }
  .f-top b { font-size: 17px; } .f-name b { font-size: 15px; } .f-name strong { font-size: 23px; } .f-bju span { font-size: 12px; }
}
/* совсем узкий экран (обложка складного телефона): в шапке карточки от уровня остаётся кружок, как в приложении */
@media (max-width: 319px) {
  .d-lv { padding-right: 4px; } .d-lvn { display: none; }
  .ld-hero h1 { font-size: 26px; } .ld-cta .btn { font-size: 16px; padding: 0 10px; }
}

/* ------------------------------------------------------------ планшет и компьютер */
@media (min-width: 760px) {
  .ld-hero { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 24px; align-items: center; padding-top: 34px; padding-bottom: 10px; }
  .ld-hero h1 { font-size: 50px; margin-bottom: 16px; }
  .ld-lead { font-size: 21px; }
  .ld-cta { align-items: flex-start; margin-top: 26px; }
  .ld-cta .btn { width: auto; padding: 0 30px; }
  .ld-hero-vis { width: 360px; justify-self: end; margin-top: 0; }
  .ld-phone { width: 304px; height: 540px; }
  .ld-hero-nad { width: 184px; height: 184px; left: -22px; bottom: 8px; }
  .ld-sec { padding-top: 64px; }
  .ld-head { margin-bottom: 24px; }
  .ld-head h2, .c-nadya h2 { font-size: 38px; }
  .ld-head p { font-size: 19px; }
  .ld-lessons .ld-head, .ld-goals, .ld-game .ld-head { text-align: center; justify-content: center; }
  .ld-marq { gap: 16px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
  .ld-cov { width: 304px; margin-right: 16px; border-radius: 20px; }
  .ld-cov figcaption { left: 10px; bottom: 10px; font-size: 13px; }
  .ld-goals { margin-top: 26px; }
  .ld-bento { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
  .ld-card { padding: 28px 28px 26px; border-radius: 32px; }
  .ld-card > header h3 { font-size: 28px; }
  .ld-bento > * { grid-column: span 6; }
  .ld-bento .rv:nth-child(even) { transition-delay: 80ms; }
  .ld-demo { margin-top: 20px; }
  .c-drops .ld-demo, .c-quests .ld-demo { max-width: 400px; margin-left: auto; margin-right: auto; }
  .c-streak { display: flex; flex-direction: column; } .c-streak .ld-demo { margin-top: auto; margin-bottom: auto; padding: 20px 0 6px; }
  .s-pill { height: 76px; font-size: 42px; padding: 0 30px 0 20px; } .s-pill svg { width: 44px; height: 44px; }
  .s-days { margin-top: 30px; } .s-d i { width: 40px; height: 40px; } .s-d i svg { width: 22px; height: 22px; }
  .s-note { margin-top: 26px; font-size: 16px; }
  .lv-stage { height: 262px; } .lv-nad { width: 170px; height: 170px; } .lv-name { font-size: 26px; }
  .lv-dots { max-width: 440px; margin-left: auto; margin-right: auto; margin-top: 18px; } .lv-dots button { width: 36px; height: 36px; font-size: 15px; }
  .ld-food { max-width: 480px; margin: 0 auto; }
  .f-ways { margin-top: 22px; gap: 10px; } .f-ways li { padding: 16px 4px 14px; font-size: 15px; }
  .f-card { padding: 16px; border-radius: 32px; }
  .c-nadya { max-width: 760px; margin: 0 auto; padding: 32px 36px 30px; }
  .n-stage { grid-template-columns: 170px minmax(0, 1fr); gap: 10px; margin-top: 18px; }
  .n-fig { width: 170px; height: 180px; } .n-fig img { width: 170px; height: 170px; }
  .n-halo { width: 140px; height: 140px; margin: -66px 0 0 -70px; }
  .n-bubble { padding: 18px 22px 20px; min-height: 0; } .n-bubble p { font-size: 20px; }
  .n-tabs { margin-top: 20px; } .n-tabs button { height: 52px; font-size: 17px; }
  .san-main img { aspect-ratio: 21 / 9; }
  .san-main .cap { padding: 70px 28px 24px; } .san-main .cap b { font-size: 26px; } .san-main .cap span { font-size: 17px; }
  .san-band { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
  .ld-price { margin-top: 64px; padding-top: 56px; padding-bottom: 60px; }
  .ld-price .ld-head { text-align: center; }
  .pr-row { max-width: 760px; margin: 0 auto; gap: 14px; }
  .pr { padding: 22px 10px 22px; border-radius: 24px; } .pr span { font-size: 17px; min-height: 0; margin-bottom: 4px; } .pr b { font-size: 36px; } .pr em { font-size: 14px; }
  .pr-cta { margin-top: 26px; }
  .ld-faq { max-width: 800px; padding-top: 60px; }
  .ld-faq summary { font-size: 18px; padding: 18px 48px 18px 20px; } .ld-faq details p { padding: 0 20px 18px; font-size: 17px; }
  .ld-foot { padding-bottom: 44px; }
  .ld-stick { display: none; }
}
@media (min-width: 980px) {
  .ld-bento > .c-streak { grid-column: span 5; } .ld-bento > .c-levels { grid-column: span 7; }
  .ld-cta { flex-direction: row; align-items: center; gap: 16px; }
  .ld-food { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 56px; align-items: center; }
  .ld-food .ld-head { margin-bottom: 0; }
  .f-ways { max-width: 380px; margin-top: 26px; }
}
@media (hover: hover) and (pointer: fine) {
  .ld-marq:hover .ld-marq-track { animation-play-state: paused; }
  .n-tabs button:not(.on):hover { background: rgba(255, 255, 255, .85); }
  .lv-dots button:not(.on):hover { transform: scale(1.08); }
}

/* анимация в системе выключена: без движения, карточки показывают итог, обложки листаются пальцем */
@media (prefers-reduced-motion: reduce) {
  .ld-hero-txt > *, .ld-hero-vis { animation: none; }
  .ld-js .rv { transform: none; transition: opacity .3s ease; }
  .ld-marq-track { animation: none; }
  .ld-marq-row { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .ld-marq-row::-webkit-scrollbar { display: none; }
  .ld-cov[aria-hidden] { display: none; }
  .breath .n-halo, .breath .n-fig img.on { animation: none; }
  .ld-stick, .ld-stick.on { transition: none; }
}
