/* MathWave — главная v2: «плюшевый» мир. Подключается только на главной поверх site.css. */

/* ---------- Hero ---------- */
.hero2 { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 96px 0 72px; overflow: clip; }
.hero2-bg { position: absolute; inset: 0; z-index: -1; background: var(--bg); overflow: hidden; }
.hero2-bg .blob { display: none; }

.fur-stage { position: relative; width: min(100%, 1500px); margin: 0 auto; height: clamp(300px, 56svh, 640px); display: grid; place-items: center; touch-action: pan-y; }
.fur-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; cursor: default; }
.fur-canvas { touch-action: none; }
.fur-reset { position: absolute; left: clamp(12px, 3vw, 40px); bottom: 4px; z-index: 2; padding: 9px 15px; border: 1px solid #dcb4c7; border-radius: 999px; background: #fff7fbbb; color: #6a3e53; font: inherit; font-size: 13px; cursor: pointer; }
.fur-reset:hover { background: #fff; }
.fur-reset:focus-visible { outline: 2px solid #9d5075; outline-offset: 3px; }
.fur-reset[hidden] { display: none; }
.fur-fallback { font-family: var(--font-display); font-weight: 800; letter-spacing: -.05em; line-height: .9; font-size: clamp(64px, 13vw, 190px); color: var(--brand-rose); text-align: center; display: flex; gap: .05em; opacity: 0; animation: fur-fb-in .4s ease .7s forwards; }
@keyframes fur-fb-in { to { opacity: 1; } }
/* сцена поднялась — подложка не нужна; WebGL нет — показываем сразу */
.fur-ready .fur-fallback { animation: none; opacity: 0; pointer-events: none; }
.fur-fallback-only .fur-fallback { animation: none; opacity: 1; }
.fur-stage.fur-static { display: grid; place-items: center; height: auto; aspect-ratio: var(--fur-ar, 3 / 1); max-height: clamp(300px, 56svh, 640px); }
.fur-static picture, .fur-static img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.fur-hint { position: absolute; right: clamp(12px, 3vw, 40px); bottom: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); opacity: 0; transition: opacity .8s .6s; }
.fur-ready .fur-hint { opacity: 1; }
@media (max-width: 760px) { .fur-fallback { flex-direction: column; gap: 0; } .fur-hint { display: none; } }

.hero2-copy { text-align: center; margin-top: clamp(8px, 2vh, 28px); }
.hero2-copy .hero-eyebrow::before { display: none; }
.hero2-copy .hero-eyebrow { justify-content: center; }
.hero2-copy h1 { margin: 16px auto 0; font-size: clamp(30px, 4.2vw, 62px); letter-spacing: -.04em; line-height: 1.02; max-width: 22ch; }
.hero2-copy .hero-sub { margin: 20px auto 0; max-width: 54ch; animation: none; opacity: 1; }
.hero2-copy .hero-cta { justify-content: center; margin-top: 28px; animation: none; opacity: 1; }
@media (max-width: 760px) { .hero2 { padding-top: 84px; min-height: 0; } .fur-stage { height: clamp(260px, 44svh, 420px); } }

/* ---------- Автор ---------- */
.author-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 110px); align-items: center; }
.author-photo { position: relative; padding: 36px 24px 0; }
.photo-blob { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 48% 52% 46% 54% / 55% 45% 55% 45%; background: var(--bg-2); box-shadow: 0 40px 90px rgba(0, 0, 0, .12); animation: blob-morph 12s ease-in-out infinite alternate; }
@keyframes blob-morph { to { border-radius: 52% 48% 56% 44% / 46% 56% 44% 54%; } }
.photo-blob img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.photo-blob::before { content: ''; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; background: var(--ink); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; z-index: 2; pointer-events: none; }

.hang { position: absolute; top: 0; display: flex; flex-direction: column; align-items: center; transform-origin: top center; animation: hang-swing 4.5s ease-in-out infinite; z-index: 3; }
.hang-a { left: 6%; --len: 74px; animation-delay: -1s; }
.hang-b { right: 4%; --len: 110px; animation-duration: 5.3s; }
.hang .rope { width: 2px; height: var(--len); background: linear-gradient(var(--ink-soft), var(--line-strong)); }
.hang .tag { padding: 10px 16px; border-radius: 12px; background: #fff; border: 1.5px solid var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: -.01em; box-shadow: 0 14px 30px rgba(0, 0, 0, .10); position: relative; white-space: nowrap; }
.hang .tag::before { content: ''; position: absolute; top: -6px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px #fff; }
@keyframes hang-swing { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

.video-pill { position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 14px; white-space: nowrap; box-shadow: 0 16px 36px rgba(0, 0, 0, .22); z-index: 3; }
.video-pill svg { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: #fff; color: var(--ink); }

.stickers { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.stickers li { padding: 12px 18px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-family: var(--font-display); font-weight: 700; font-size: 15px; transition: transform .35s var(--ease), border-color .3s; }
.stickers li:nth-child(odd) { transform: rotate(-1.2deg); } .stickers li:nth-child(even) { transform: rotate(1.4deg); }
.stickers li:hover { transform: rotate(0) translateY(-3px); border-color: var(--ink); }
.author-copy .btn { margin-top: 32px; }
@media (max-width: 900px) { .author-grid { grid-template-columns: 1fr; } .author-photo { max-width: 460px; margin: 0 auto 32px; } }

/* ---------- Превью ---------- */
.preview { background: var(--bg-2); }
.preview-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.video-slot { position: relative; min-height: 340px; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--ink); box-shadow: var(--shadow); }
.video-slot::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(0, 0, 0, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .07) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(closest-side, #000 40%, transparent); }
.video-play { position: relative; width: 92px; height: 92px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: 0 24px 50px rgba(0, 0, 0, .22); transition: transform .4s var(--ease); }
.video-play svg { width: 40px; height: 40px; margin-left: 4px; }
.video-slot:hover .video-play { transform: scale(1.08); }
.video-label { position: absolute; left: 20px; top: 18px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .9); font-family: var(--font-display); font-weight: 700; font-size: 13px; }
.video-meta { position: absolute; left: 20px; bottom: 18px; font-size: 13px; color: var(--ink-soft); font-family: var(--font-display); font-weight: 600; }

.books { position: relative; min-height: 340px; display: flex; align-items: flex-end; justify-content: center; perspective: 1400px; padding-bottom: 40px; }
.book { position: absolute; bottom: 48px; width: clamp(140px, 13vw, 190px); aspect-ratio: 7 / 10; transform-style: preserve-3d; transform: translateX(var(--tx, 0)) rotateZ(var(--rot)) rotateY(-18deg) translateY(-140vh); transition: transform 1.1s cubic-bezier(.2, .9, .2, 1.05); transition-delay: calc(var(--i) * 140ms); text-decoration: none; }
.rv.in .book { transform: translateX(var(--tx, 0)) rotateZ(var(--rot)) rotateY(-18deg) translateY(0); }
.book.b1 { --tx: -62%; z-index: 1; } .book.b2 { --tx: 0; z-index: 3; bottom: 64px; } .book.b3 { --tx: 62%; z-index: 2; }
.book:hover { transform: translateX(var(--tx, 0)) rotateZ(0deg) rotateY(-6deg) translateY(-14px) scale(1.04); z-index: 5; transition-delay: 0s; transition-duration: .5s; }
.book .cover { position: absolute; inset: 0; border-radius: 6px 14px 14px 6px; background: #fff; border: 1.5px solid var(--ink); box-shadow: 0 30px 50px rgba(0, 0, 0, .18), inset 6px 0 12px -8px rgba(0, 0, 0, .35); padding: 18px 16px; display: flex; flex-direction: column; color: var(--ink); overflow: hidden; }
.book.live .cover { background: var(--ink); color: #fff; }
.book.live .yr, .book.live i { color: rgba(255, 255, 255, .7); }
.book .yr { font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.book b { margin-top: auto; font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.03em; line-height: 1; }
.book i { font-style: normal; margin-top: 6px; font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.book .cover-wave { position: absolute; right: -10px; top: 40%; width: 80px; opacity: .9; }
.book .cover-wave img { width: 100%; height: auto; display: block; }
.book .spine { position: absolute; left: 0; top: 0; bottom: 0; width: 22px; background: linear-gradient(90deg, #111 0%, #333 100%); transform-origin: left; transform: rotateY(90deg) translateX(-11px); border-radius: 4px 0 0 4px; }
.book .pages { position: absolute; right: 2px; top: 6px; bottom: 6px; width: 18px; background: repeating-linear-gradient(90deg, #fff 0 1.5px, #e6e6e6 1.5px 2.5px); transform-origin: right; transform: rotateY(90deg) translateX(9px) translateZ(2px); border-radius: 0 4px 4px 0; }
.books-shadow { position: absolute; left: 10%; right: 10%; bottom: 22px; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .22), transparent); filter: blur(6px); }
@media (max-width: 900px) { .preview-grid { grid-template-columns: 1fr; } .books { min-height: 300px; } .book { bottom: 30px; } .book.b2 { bottom: 46px; } }

.samples { margin-top: clamp(40px, 5vw, 72px); }
.samples .eyebrow { margin-bottom: 22px; }
.samples .sample-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.samples .sample-grid a { border-radius: var(--r-lg); transform: rotate(-.6deg); }
.samples .sample-grid a:nth-child(2) { transform: rotate(.8deg); }
.samples .sample-grid a:hover { transform: rotate(0) translateY(-4px); }
@media (max-width: 640px) { .samples .sample-grid { grid-template-columns: 1fr; } }

/* ---------- Таблички на верёвках ---------- */
.signs { position: relative; overflow: clip; padding-bottom: clamp(56px, 7vw, 100px); }
.beam { height: 12px; background: var(--ink); box-shadow: 0 6px 16px rgba(0, 0, 0, .18); position: relative; }
.beam::after { content: ''; position: absolute; inset: 3px 0 auto; height: 1px; background: rgba(255, 255, 255, .25); }
.signs-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 340px); gap: clamp(20px, 3vw, 44px); overflow-x: auto; scroll-snap-type: x proximity; padding: 0 var(--gutter) 24px; scrollbar-width: none; align-items: start; }
.signs-rail::-webkit-scrollbar { display: none; }
.sign { margin: 0; position: relative; scroll-snap-align: center; padding-top: calc(70px + var(--drop)); transform-origin: top center; transform: none; opacity: 1; transition: none; }
.sign .rope { position: absolute; top: 0; width: 2px; height: calc(70px + var(--drop) + 12px); background: var(--ink); border-radius: 2px; }
.sign .rope::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent 0 3px, rgba(255, 255, 255, .35) 3px 5px); }
.rope-l { left: 20%; } .rope-r { right: 20%; }
.sign .board { position: relative; background: #fff; border: 1.5px solid var(--ink); border-radius: 18px; padding: 18px 18px 20px; box-shadow: 0 30px 60px rgba(0, 0, 0, .12); display: grid; gap: 14px; }
.sign .nail { position: absolute; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #8d95a5 55%, #5f6878); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.nail-l { left: calc(20% - 4px); } .nail-r { right: calc(20% - 4px); }
.sign blockquote { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.sign .tg + blockquote { display: none; }
.sign figcaption { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 13px; color: var(--muted); }
.sign figcaption b { color: var(--ink); font-family: var(--font-display); }
.sign-shot { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.sign-shot img { width: 100%; }
/* качание: один раз при появлении, потом замирает */
.sign.rv { opacity: 0; transform: translateY(-30px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.sign.rv.in { opacity: 1; transform: none; animation: sign-swing 3.2s cubic-bezier(.3, .6, .3, 1) both; }
.sign:nth-child(odd).rv.in { animation-name: sign-swing-r; }
@keyframes sign-swing { 0% { rotate: -6deg; } 30% { rotate: 4deg; } 60% { rotate: -2deg; } 85% { rotate: .8deg; } 100% { rotate: var(--rot); } }
@keyframes sign-swing-r { 0% { rotate: 6deg; } 30% { rotate: -4deg; } 60% { rotate: 2deg; } 85% { rotate: -.8deg; } 100% { rotate: var(--rot); } }
.sign.rv.in .board:hover { transform: translateY(-4px); transition: transform .4s var(--ease); }
.signs-note { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* макет сообщения из Telegram (заглушка) */
.tg { background: var(--bg-2); border-radius: 12px; padding: 12px 12px 14px; font-size: 14px; }
.tg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tg-ava { width: 28px; height: 28px; border-radius: 50%; background: #bbb; filter: blur(2px); }
.tg-name { font-weight: 700; color: var(--ink); filter: blur(3px); user-select: none; }
.tg-time { margin-left: auto; font-size: 11px; color: var(--muted); }
.tg-bubble { background: #fff; border-radius: 4px 14px 14px 14px; padding: 10px 12px; color: var(--ink); line-height: 1.5; }

/* ---------- Курс ---------- */
.course { background: var(--bg-2); }
.course-big { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 3vw, 48px); background: #fff; border: 1.5px solid var(--ink); border-radius: 32px; padding: clamp(24px, 3.5vw, 48px); position: relative; isolation: isolate; box-shadow: var(--shadow); }
.cb-exam { font-family: var(--font-display); font-weight: 800; font-size: clamp(56px, 7vw, 112px); letter-spacing: -.05em; line-height: .9; color: var(--ink); }
.cb-exam small { display: block; margin-top: 10px; font-size: 14px; line-height: 1.35; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.cb-lead { margin-top: 22px; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-soft); max-width: 50ch; }
.chips { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 999px; background: var(--bg-2); font-size: 14px; font-weight: 600; }
.chips li b { font-family: var(--font-display); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.cb-side { display: grid; gap: 14px; align-content: start; padding: clamp(20px, 2.4vw, 32px); border-radius: 24px; background: var(--bg); border: 1.5px solid var(--line); }
.cb-price { font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 3.6vw, 56px); letter-spacing: -.04em; line-height: 1; }
.cb-price small { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.cb-facts { list-style: none; display: grid; gap: 8px; padding: 6px 0 4px; font-size: 14px; color: var(--ink-soft); }
.cb-facts b { color: var(--ink); font-family: var(--font-display); margin-right: 4px; }
.cb-side .btn { justify-content: center; }
.soon-row { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 14px; color: var(--muted); }
.soon-label { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-right: 6px; }
.soon-row a { padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--line-strong); color: var(--ink-soft); transition: border-color .3s, color .3s; }
.soon-row a:hover { border-color: var(--ink); color: var(--ink); }
@media (max-width: 900px) { .course-big { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .hero2-bg .blob, .photo-blob, .hang { animation: none; }
  .book, .rv.in .book { transform: translateX(var(--tx, 0)) rotateZ(var(--rot)) rotateY(-18deg); transition: none; }
  .sign.rv.in { animation: none; rotate: var(--rot); }
}

/* ---------- v3: «мягкая математика» ---------- */
/* свет за плюшевым словом и тетрадная клетка */
.hero2-bg .glow { position: absolute; left: 50%; top: 40%; width: min(130vw, 1600px); aspect-ratio: 2.1 / 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255, 214, 231, .95), rgba(255, 232, 242, .55) 48%, rgba(255, 255, 255, 0) 100%); }
.hero2-bg .paper { position: absolute; inset: 0; background-image: linear-gradient(rgba(0, 0, 0, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .05) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(62% 58% at 50% 46%, #000 15%, transparent 100%); mask-image: radial-gradient(62% 58% at 50% 46%, #000 15%, transparent 100%); }
.hero2-stage { position: relative; width: min(100%, 1500px); margin: 0 auto; }
.hero2-stage .fur-stage.fur-static { position: relative; z-index: 1; }
/* плюшевое слово: появление снизу с лёгким сжатием и «дыхание» */
.fur-static img { transform-origin: 50% 100%; animation: plush-in 1.1s cubic-bezier(.2, .9, .25, 1.12) both, plush-breathe 6s ease-in-out 1.3s infinite; }
@keyframes plush-in { from { opacity: 0; transform: translateY(46px) scale(.9, 1.08); } 65% { opacity: 1; transform: translateY(-8px) scale(1.03, .97); } to { opacity: 1; transform: none; } }
@keyframes plush-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.012, 1.022); } }
/* стикеры с формулами: бумажки вокруг слова, плавают и уезжают за курсором */
.fstickers { position: absolute; inset: 0; pointer-events: none; }
.fsticker { position: absolute; padding: 10px 14px; background: #fff; border: 1.5px solid var(--ink); border-radius: 10px; font-family: var(--font-display); font-weight: 700; font-size: clamp(12px, 1.1vw, 16px); white-space: nowrap; box-shadow: 0 14px 30px rgba(0, 0, 0, .10); color: var(--ink);
  rotate: var(--r); transform: translate(calc(var(--mx, 0px) * var(--d)), calc(var(--my, 0px) * var(--d))); transition: transform .6s var(--ease);
  animation: sticker-in .7s var(--ease) both, sticker-float 7s ease-in-out infinite alternate; animation-delay: calc(.5s + var(--i) * .1s), calc(var(--i) * -1.7s); z-index: 0; }
.fsticker { z-index: 2; }
.fsticker.mono { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-weight: 600; background: var(--ink); color: #fff; }
@keyframes sticker-in { from { opacity: 0; scale: .7; } to { opacity: 1; scale: 1; } }
@keyframes sticker-float { from { translate: 0 -6px; } to { translate: 0 9px; } }
@media (max-width: 760px) { .fsticker { font-size: 11px; padding: 7px 10px; } .fsticker:nth-child(3), .fsticker:nth-child(5) { display: none; } .fsticker:nth-child(2) { left: 56% !important; } .fsticker:nth-child(4) { top: 74% !important; } }
.demo-head .eyebrow b { white-space: nowrap; }
/* маркерное подчёркивание */
.hl { position: relative; z-index: 0; background: none; color: inherit; padding: 0 .06em; }
.hl::before { content: ''; position: absolute; inset: .14em -.08em .02em -.08em; z-index: -1; border-radius: .3em .5em .35em .45em; transform: rotate(-1.2deg) scaleX(0); transform-origin: left center; animation: hl-in .5s var(--ease) .55s forwards; }
.hl-pink::before { background: var(--brand-rose); opacity: .42; }
.hl-blue::before { background: var(--brand-sky); opacity: .45; }
@keyframes hl-in { to { transform: rotate(-1.2deg) scaleX(1); } }
.hero-trust2 { margin: 22px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; list-style: none; color: var(--muted); font-size: 14px; }
.hero-trust2 li::before { content: '·'; margin-right: 10px; color: var(--brand-rose); font-weight: 800; }
.hero-trust2 li:first-child::before { content: none; }
/* бумажная лента с темами */
.tape { overflow: hidden; border-block: 1.5px solid var(--ink); background: #fff; padding: 13px 0; rotate: -1deg; margin: -6px -2vw 40px; }
.tape-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.tape-track span { display: inline-flex; align-items: center; gap: 26px; padding: 0 13px 0 26px; font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.tape-track span::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-rose); }
.tape-track span:nth-child(even)::after { background: var(--brand-sky); }
.tape:hover .tape-track { animation-play-state: paused; }
/* мини-задача из курса */
.demo { margin-top: clamp(40px, 5vw, 72px); position: relative; overflow: hidden; background: #fff; border: 1.5px solid var(--ink); border-radius: 28px; padding: clamp(24px, 3vw, 44px); background-image: linear-gradient(rgba(0, 0, 0, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .045) 1px, transparent 1px); background-size: 28px 28px; }
.demo-head h3 { margin-top: 12px; font-size: clamp(24px, 2.8vw, 38px); letter-spacing: -.03em; }
.demo-task { margin-top: 16px; font-size: clamp(18px, 1.7vw, 26px); line-height: 1.4; }
.math { font-family: 'Cambria Math', 'STIX Two Math', 'Times New Roman', serif; font-style: italic; letter-spacing: .01em; }
.demo-options { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.demo-opt { padding: 14px 24px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; font-family: 'Cambria Math', 'Times New Roman', serif; font-size: 20px; font-weight: 700; transition: transform .25s var(--ease), border-color .2s, background .2s, color .2s; }
.demo-opt:hover:not([disabled]) { border-color: var(--ink); transform: translateY(-2px); }
.demo-opt.is-right { background: var(--ink); color: #fff; border-color: var(--ink); }
.demo-opt.is-wrong { border-color: var(--brand-rose); background: #ffeef6; animation: shake .45s; }
.demo-opt[disabled] { cursor: default; }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.demo-result { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 22px; animation: fade .35s var(--ease); }
.demo-verdict { font-family: var(--font-display); font-weight: 800; font-size: clamp(18px, 1.6vw, 22px); }
.demo-steps { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 8px; color: var(--ink-soft); font-size: 16px; line-height: 1.55; }
.demo-note { margin-top: 16px; font-size: 14px; color: var(--muted); }
.confetti { position: absolute; left: 50%; top: 45%; pointer-events: none; }
.confetti i { position: absolute; width: 10px; height: 10px; border-radius: 2px; background: var(--c); animation: pop 1.3s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes pop { from { transform: translate(0, 0) rotate(0); opacity: 1; } to { transform: translate(var(--dx), calc(var(--dy) + 140px)) rotate(var(--rz)); opacity: 0; } }
/* программа курса как волна */
.wave-program { margin-top: 28px; }
.wp-stage { position: relative; aspect-ratio: 1000 / 220; }
.wp-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wp-path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 2600; stroke-dashoffset: 2600; }
.in .wp-path { animation: wp-draw 1.3s var(--ease) .1s forwards; }
@keyframes wp-draw { to { stroke-dashoffset: 0; } }
.wp-node { position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform .3s var(--ease), background .2s, color .2s; opacity: 0; animation: sticker-in .35s var(--ease) both; animation-delay: calc(.2s + var(--k, 0) * .06s); }
.in .wp-node { opacity: 1; }
.wp-node b { font-family: var(--font-display); font-size: 12px; letter-spacing: .04em; }
.wp-node:hover, .wp-node.is-active { background: var(--ink); color: #fff; transform: scale(1.15); }
.wp-node.is-active::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--brand-rose); }
.wp-caption { margin-top: 14px; display: flex; gap: 14px; align-items: baseline; font-family: var(--font-display); font-weight: 800; font-size: clamp(18px, 1.7vw, 24px); letter-spacing: -.02em; min-height: 1.4em; }
.wp-caption b { font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.wp-list { display: none; }
@media (max-width: 720px) { .wp-stage, .wp-caption { display: none; } .wp-list { display: grid; gap: 8px; margin-top: 20px; padding-left: 22px; font-weight: 600; color: var(--ink-soft); } }
@media (prefers-reduced-motion: reduce) {
  .fur-static img, .fsticker, .tape-track, .wp-node, .demo-opt.is-wrong { animation: none; }
  .fsticker { opacity: 1; }
  .hl::before { animation: none; transform: rotate(-1.2deg) scaleX(1); }
  .wp-path { stroke-dashoffset: 0; animation: none; }
  .wp-node { opacity: 1; }
}

/* отзывы: длинный текст сворачивается, со скрином текст мельче */
.sign-more { display: inline; }
.sign-more summary { display: inline; cursor: pointer; color: var(--ink); font-weight: 700; list-style: none; }
.sign-more summary::-webkit-details-marker { display: none; }
.sign-more[open] summary { display: none; }
.sign.has-shot blockquote { font-size: 14px; }
.sign .tg + blockquote { display: none; }

/* ---------- wow ---------- */
/* при прокрутке плюшевое слово уходит вверх и растворяется (только там, где поддерживаются scroll-driven анимации) */
@supports (animation-timeline: scroll()) {
  .hero2-stage { animation: hero-scroll linear both; animation-timeline: scroll(root); animation-range: 0 70vh; transform-origin: 50% 100%; }
  @keyframes hero-scroll { to { transform: translateY(-70px) scale(.92); opacity: .35; } }
  .hero2-copy { animation: copy-scroll linear both; animation-timeline: scroll(root); animation-range: 0 60vh; }
  @keyframes copy-scroll { to { transform: translateY(-24px); } }
}
/* заголовок собирается по словам */
.hero-anim h1 .w { display: inline-block; opacity: 0; transform: translateY(.55em) rotate(2deg); animation: w-in .5s var(--ease) forwards; animation-delay: calc(var(--i) * 45ms + .08s); }
@keyframes w-in { to { opacity: 1; transform: none; } }
/* блик за курсором */
.hero2-bg .spot { position: absolute; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .85), rgba(255, 240, 247, .35) 55%, rgba(255, 255, 255, 0)); opacity: 0; transform: translate(var(--sx, 0px), var(--sy, 0px)); transition: opacity .6s; pointer-events: none; mix-blend-mode: screen; }
.hero2:hover .hero2-bg .spot { opacity: 1; }
/* магнитные кнопки */
.hero-cta .btn { transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s; }
.hero-cta .btn.is-magnet { transition: transform .12s linear; }
@media (prefers-reduced-motion: reduce) {
  .hero2-stage, .hero2-copy { animation: none; }
  .hero-anim h1 .w { animation: none; opacity: 1; transform: none; }
  .hero2-bg .spot { display: none; }
}

/* ---------- neutral: hero с фото, листки отзывов ---------- */
.hero3 { position: relative; min-height: 92svh; display: flex; align-items: center; padding: 120px 0 56px; overflow: clip; }
.hero3-bg { position: absolute; inset: 0; z-index: -1; background: var(--bg); }
.hero3-bg .paper { position: absolute; inset: 0; background-image: linear-gradient(rgba(0, 0, 0, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .05) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(70% 70% at 70% 40%, #000 10%, transparent 100%); mask-image: radial-gradient(70% 70% at 70% 40%, #000 10%, transparent 100%); }
.hero3-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero3-copy h1 { margin-top: 20px; font-size: clamp(38px, 5vw, 76px); letter-spacing: -.045em; line-height: .98; }
.hero3-copy .hero-sub { margin-top: 24px; max-width: 46ch; font-size: clamp(17px, 1.3vw, 20px); color: var(--ink-soft); }
.hero3-copy .hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero3-copy .hero-trust2 { justify-content: flex-start; margin-left: 0; }
.h1-wave { width: clamp(200px, 28vw, 320px); height: auto; margin-top: 14px; display: block; }
.hero3-photo { position: relative; margin: 0; width: min(100%, 520px); justify-self: end; aspect-ratio: 4 / 5; border-radius: 28px; overflow: visible; opacity: 0; animation: photo-in .7s var(--ease) .1s forwards; }
@keyframes photo-in { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.hero3-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; border-radius: 28px; border: 1.5px solid var(--ink); box-shadow: 0 30px 70px rgba(0, 0, 0, .12); }
.hero3-tag { position: absolute; left: -22px; bottom: 36px; margin: 0; padding: 14px 18px 14px 16px; background: #fff; border: 1.5px solid var(--ink); border-radius: 14px; box-shadow: 0 14px 34px rgba(0, 0, 0, .12); rotate: -2deg; font-size: 13px; line-height: 1.35; color: var(--ink-soft); }
.hero3-tag b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--ink); letter-spacing: -.01em; }
.pin { position: absolute; left: 50%; top: -7px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px #fff, 0 2px 4px rgba(0, 0, 0, .3); }
.hero3-tag .pin { left: 18px; }
@media (max-width: 900px) { .hero3 { min-height: 0; padding-top: 96px; } .hero3-grid { grid-template-columns: 1fr; } .hero3-photo { width: min(100%, 420px); justify-self: center; aspect-ratio: 1 / 1; } .hero3-tag { left: 12px; bottom: -14px; } }
.tape.tape-flat { rotate: 0deg; margin: 0 0 clamp(8px, 2vw, 24px); border-color: var(--line); }
.tape-flat .tape-track span { color: var(--ink-soft); }
/* отзывы: приколотые листки, всплывают по мере прокрутки */
.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px 24px; align-items: start; padding-top: 8px; }
.note { position: relative; margin: 0; background: #fff; border: 1.5px solid var(--ink); border-radius: 18px; padding: 26px 22px 22px; box-shadow: 0 22px 50px rgba(0, 0, 0, .09); rotate: var(--rot); }
.note.rv { opacity: 0; transform: translateY(36px) scale(.94); transition: none; }
.note.rv.in { opacity: 1; transform: none; animation: note-pop .5s cubic-bezier(.2, .9, .25, 1.15) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes note-pop { from { opacity: 0; transform: translateY(36px) scale(.94); } 70% { opacity: 1; transform: translateY(-4px) scale(1.01); } to { opacity: 1; transform: none; } }
.note:hover { rotate: 0deg; transition: rotate .4s var(--ease); }
.note blockquote { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.note.has-shot blockquote { font-size: 14px; margin-top: 14px; }
.note-shot { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.note-shot img { width: 100%; }
.note figcaption { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 13px; color: var(--muted); }
.note figcaption b { color: var(--ink); font-family: var(--font-display); }
.note .tg + blockquote { display: none; }
@media (prefers-reduced-motion: reduce) { .note.rv.in { animation: none; } .hero3-photo { animation: none; opacity: 1; } }

/* ---------- apple: центрированный hero, продукт, плитки ---------- */
.heroA { position: relative; padding: 150px 0 40px; text-align: center; overflow: clip; }
.heroA-copy { max-width: 980px; }
.heroA-copy .hero-eyebrow { justify-content: center; }
.heroA-copy .hero-eyebrow::before { display: none; }
.heroA-copy h1 { margin: 18px auto 0; font-size: clamp(44px, 6.6vw, 100px); letter-spacing: -.055em; line-height: .94; max-width: 16ch; }
.heroA-copy .hero-sub { margin: 26px auto 0; max-width: 52ch; font-size: clamp(18px, 1.5vw, 23px); color: var(--ink-soft); }
.heroA-copy .hero-cta { margin-top: 30px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px 28px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); }
.link-arrow .arrow { transition: transform .3s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(3px); }
.heroA-visual { position: relative; margin-top: clamp(40px, 6vw, 84px); display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 420px); justify-content: center; align-items: center; gap: clamp(20px, 3vw, 48px); }
/* iPad: корпус, камера, кнопки, статус-бар, экран с разбором, Apple Pencil слева */
.ipad-wrap { position: relative; width: min(100%, calc(64svh * .75)); margin: 0 auto; }
.device { position: relative; width: 100%; border-radius: 42px; background: #1b1b1d; padding: 15px; box-shadow: inset 0 0 0 1.5px #3d3d42, inset 0 0 0 3.5px #0e0e10, 0 50px 120px rgba(0, 0, 0, .26); opacity: 0; transform: translateY(40px) scale(.96); animation: device-in .75s var(--ease) .1s forwards; }
.device::after { content: ''; position: absolute; left: 50%; top: 5px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #05060a; box-shadow: 0 0 0 1px #2b2c31, inset 1px 1px 1px rgba(110, 130, 180, .55); }
.d-btn { position: absolute; background: #2c2c30; border-radius: 2px; box-shadow: inset 0 0 0 .5px #45454a; }
.d-power { top: -3px; right: 46px; width: 44px; height: 3px; }
.d-vol { right: -3px; width: 3px; height: 36px; }
.d-vol1 { top: 90px; } .d-vol2 { top: 136px; }
.device-screen { position: relative; display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; background: #fff; aspect-ratio: 3 / 4; }
.d-status { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 10px 22px 4px; font: 600 12px/1 -apple-system, "SF Pro Text", Inter, system-ui, sans-serif; color: #111; letter-spacing: 0; }
.d-ic { display: inline-flex; gap: 5px; align-items: center; }
.d-shot { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.d-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.d-shot::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .22), transparent 38%); pointer-events: none; }
.pencil { position: absolute; left: -40px; top: 12%; width: 14px; height: 66%; border-radius: 7px; background: linear-gradient(90deg, #e9e9e9, #fff 45%, #d4d4d4); box-shadow: 0 12px 28px rgba(0, 0, 0, .18); rotate: -5deg; opacity: 0; animation: device-in .6s var(--ease) .4s forwards; }
.pencil::before { content: ''; position: absolute; left: 0; right: 0; top: 34px; height: 2px; background: #cfcfcf; }
.pencil::after { content: ''; position: absolute; left: 0; right: 0; bottom: -24px; height: 26px; background: linear-gradient(90deg, #e6e6e6, #fff 45%, #cbcbcb); clip-path: polygon(0 0, 100% 0, 60% 100%, 40% 100%); }
@keyframes device-in { to { opacity: 1; transform: none; } }
.feedback { position: relative; text-align: left; background: #fff; border-radius: 24px; padding: 22px 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .14), 0 0 0 1px rgba(0, 0, 0, .04); opacity: 0; transform: translateY(24px) scale(.96); animation: device-in .6s var(--ease) .55s forwards; }
.fb-head { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.fb-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.fb-head b { display: block; font-family: var(--font-display); font-size: 15px; color: var(--ink); letter-spacing: -.01em; }
.feedback p { margin-top: 14px; font-size: 16px; line-height: 1.55; color: var(--ink); }
.fb-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.fb-tags span { padding: 6px 12px; border-radius: 999px; background: var(--bg-2); font-family: var(--font-display); font-weight: 700; font-size: 12px; color: var(--ink-soft); }
.fb-tags span:first-child { background: var(--brand-rose); color: #fff; }
.heroA .hero-trust2 { grid-column: 1 / -1; margin-top: 8px; }
@media (max-width: 900px) { .heroA { padding-top: 110px; } .heroA-visual { grid-template-columns: 1fr; } .ipad-wrap { width: min(100%, 400px); } .pencil { display: none; } .feedback { max-width: 460px; margin: -40px auto 0; } }
/* автор: фото-плитка */
.author-apple .photo-tile { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-2); }
.author-apple .photo-tile img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.author-apple .author-photo { padding: 0; }
.author-apple .stickers li { border: 0; background: var(--bg-2); }
/* bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bento-item { background: #fff; border-radius: 28px; padding: 32px 30px 34px; min-height: 260px; display: flex; flex-direction: column; }
.bento-item.wide { grid-column: span 2; }
.bento-item.dark { background: var(--ink); color: #fff; }
.bento-item .idx { font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: .12em; color: var(--muted); }
.bento-item h3 { margin-top: auto; padding-top: 40px; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.03em; }
.bento-item p { margin-top: 10px; color: var(--ink-soft); font-size: 16px; line-height: 1.55; max-width: 48ch; }
.bento-item.dark p, .bento-item.dark .idx { color: rgba(255, 255, 255, .72); }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .bento-item.wide { grid-column: auto; } .bento-item { min-height: 0; } .bento-item h3 { padding-top: 22px; } }
/* apple: заголовки секций по центру, плитки без обводок */
.is-apple .section-head { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.is-apple .section-head .h2 { max-width: 22ch; }
.is-apple .demo, .is-apple .course-big, .is-apple .cb-side, .is-apple .note, .is-apple .video-slot, .is-apple .book .cover { border-color: transparent; }
.is-apple .demo { background-color: var(--bg-2); background-image: none; }
.is-apple .course-big { box-shadow: 0 30px 80px rgba(0, 0, 0, .08); }
.is-apple .cb-side { background: var(--bg-2); }
.is-apple .note { box-shadow: 0 20px 50px rgba(0, 0, 0, .08); background: var(--bg-2); }
.is-apple .note .pin { display: none; }
.is-apple .note { rotate: 0deg; }
.is-apple .notes-section { background: #fff; }
.is-apple .preview { background: var(--bg-2); }
.is-apple .tape { border-color: transparent; background: transparent; }

/* apple + тетрадь в клеточку: сетка как основной мотив */
.heroA-bg { position: absolute; inset: 0; z-index: -1; background: var(--bg); }
.heroA-bg .paper { position: absolute; inset: 0; background-image: linear-gradient(rgba(0, 0, 0, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .06) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(75% 80% at 50% 35%, #000 20%, transparent 100%); mask-image: radial-gradient(75% 80% at 50% 35%, #000 20%, transparent 100%); }
.heroA-copy .h1-wave { display: block; margin: 18px auto 0; }
.is-apple .bento-item, .is-apple .feedback, .is-apple .note, .is-apple .course-big { background-image: linear-gradient(rgba(0, 0, 0, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .04) 1px, transparent 1px); background-size: 28px 28px; }
.is-apple .bento-item.dark { background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); }
.is-apple .notes-section { background: var(--bg); }
.is-apple .note { background: #fff; }

/* apple: страницы конспекта вместо 3D-методичек; при появлении листы расходятся, дальше статика */
.sheets { position: relative; min-height: 340px; padding: 0 0 56px; }
.sheet { position: absolute; left: 50%; top: calc(50% - 32px); translate: -50% -50%; width: min(56%, 236px); aspect-ratio: 800 / 1040; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .14), 0 0 0 1px rgba(0, 0, 0, .05); transition: transform 1s var(--ease), box-shadow .5s var(--ease); }
.sheet img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sheet.s1 { z-index: 2; } .sheet.s2 { z-index: 1; }
.sheets.in .sheet.s1 { transform: translate(17%, 4%) rotate(3deg); }
.sheets.in .sheet.s2 { transform: translate(-17%, -4%) rotate(-3deg); }
.sheet:hover, .sheet:focus-visible { z-index: 3; box-shadow: 0 34px 80px rgba(0, 0, 0, .2), 0 0 0 1px rgba(0, 0, 0, .06); }
.sheets-cap { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.sheets-cap b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink); }
@media (max-width: 900px) { .sheets { min-height: 400px; } .sheet { width: 54%; } }
@media (prefers-reduced-motion: reduce) { .sheet { transition: none; } }

/* мобильный: aspect-ratio переносил min-height 340px в минимальную ширину 604px и давал горизонтальный скролл */
@media (max-width: 900px) { .video-slot { min-height: 0; min-width: 0; aspect-ratio: 4 / 3; } }

/* отзывы без файла скрина: перенабранный текст в виде сообщения Telegram */
.tg.tg-real .tg-ava { filter: none; background: #e6e6e6; color: var(--ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 12px; font-style: normal; }
.tg.tg-real .tg-name { filter: none; user-select: auto; }
.tg.tg-real .tg-time { font-family: var(--font-display); font-weight: 600; letter-spacing: .02em; }
.tg.tg-real .tg-bubble { font-size: 15px; line-height: 1.55; }
.note .tg + figcaption { margin-top: 10px; }

/* отзывы «на полях». Обёртка .snote-wrap стоит на месте без трансформаций — её видит IntersectionObserver
   (сдвинутую за край карточку он не видит из-за overflow-x: clip у секции); сама карточка .snote выезжает из-за края. */
.is-apple .section { position: relative; overflow-x: clip; } /* clip: выезжающие заметки не растягивают страницу по горизонтали */
.snote-wrap { position: relative; z-index: 3; width: min(100% - var(--gutter) * 2, 440px); margin: 0 auto 28px; }
.snote-wrap.left { margin-left: var(--gutter); } .snote-wrap.right { margin-right: var(--gutter); }
.snote-wrap.rv { opacity: 1; transform: none; transition: none; }
.snote { margin: 0; opacity: 0; transform: translateX(var(--from)) rotate(var(--rot)); transition: transform 1s cubic-bezier(.2, .8, .2, 1), opacity .6s var(--ease); }
.snote-wrap.left .snote { --from: -60px; } .snote-wrap.right .snote { --from: 60px; }
.snote-wrap.in .snote { opacity: 1; transform: translateX(0) rotate(var(--rot)); }
.snote .tg { background: #fff; border-radius: 18px; padding: 14px 14px 16px; box-shadow: 0 22px 60px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .04); }
.snote .tg-bubble { background: var(--bg-2); font-size: 13.5px; line-height: 1.45; }
.snote figcaption { margin-top: 8px; padding: 0 8px; font-size: 12px; color: var(--muted); }
@media (min-width: 1280px) {
  /* у края экрана на стыке секций: половина в нижнем отступе предыдущей секции, половина в верхнем этой — заголовки и плитки не перекрывает */
  .snote-wrap { position: absolute; top: var(--dy, 0px); translate: 0 -50%; width: 236px; margin: 0; }
  .snote-wrap.left { left: 20px; } .snote-wrap.right { right: 20px; }
  .snote-wrap.left .snote { --from: -130%; } .snote-wrap.right .snote { --from: 130%; }
}
@media (prefers-reduced-motion: reduce) { .snote { transition: none; transform: rotate(var(--rot)); opacity: 1; } }
/* волна бренда под заголовком и в CTA */
.heroA .h1-wave { display: block; width: min(280px, 72vw); height: auto; margin: 8px auto -6px; }
.cta-wave { position: absolute; left: 50%; top: 50%; width: min(880px, 78vw); translate: -50% -50%; opacity: .3; pointer-events: none; z-index: 0; }
.cta-wave img { display: block; width: 100%; height: auto; }
.is-apple .cta .wrap { position: relative; z-index: 1; }

/* видеофрагмент урока */
.video-slot.has-video { display: block; background: #111; }
.video-slot.has-video::before { display: none; }
.video-el { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: #111; }
.video-slot .video-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; border: 0; cursor: pointer; z-index: 2; }
.video-slot .video-label, .video-slot .video-meta { z-index: 2; }
.video-slot.has-video .video-meta { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.video-slot.playing .video-play, .video-slot.playing .video-label, .video-slot.playing .video-meta { display: none; }

/* книга «обо мне» */
.book-modal {
  inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent;
}
.book-modal::backdrop { background: rgba(17, 17, 17, .62); }
.book-close {
  position: absolute; top: 18px; right: 22px; z-index: 3;
  padding: 10px 16px; border-radius: 999px; border: 1.5px solid #fff;
  background: rgba(17, 17, 17, .55); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
}
.book-close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.book-stage {
  min-height: 100%; display: grid; place-items: center;
  padding: 72px 24px 40px; perspective: 2400px;
}
.storybook {
  position: relative;
  width: min(980px, 94vw);
  height: min(620px, 74vh);
  transform-style: preserve-3d;
  border-radius: 4px 14px 14px 4px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .28), 8px 0 0 #111;
}
.book-board {
  position: absolute; inset: 0 50% 0 0;
  background: #141414; color: rgba(255,255,255,.55);
  display: grid; place-items: center; gap: 10px; align-content: center;
  border-radius: 12px 0 0 12px;
  font-family: var(--font-display); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
}
.book-board .board-wave { width: 72px; height: auto; }
.book-end { position: absolute; inset: 0 0 0 50%; background: #FFFBFC; border-radius: 0 14px 14px 0; z-index: 0; }
.storybook::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 18px; translate: -50% 0;
  background: linear-gradient(90deg, rgba(0,0,0,.18), transparent 40%, transparent 60%, rgba(0,0,0,.12));
  z-index: 40; pointer-events: none;
}
.leaf {
  position: absolute; inset: 0 0 0 50%;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform .85s cubic-bezier(.66, .05, .3, 1);
}
.leaf .face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  background:
    linear-gradient(rgba(0, 0, 0, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, .035) 1px, transparent 1px),
    #FFFBFC;
  background-size: 22px 22px, 22px 22px, auto;
  padding: clamp(22px, 3vw, 40px);
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, .06);
}
.leaf .face.back { transform: rotateY(180deg); }
.leaf.is-turned { transform: rotateY(-180deg); }
.leaf .kicker { font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: .16em; color: var(--muted); margin-bottom: 14px; }
.leaf h3 { font-size: clamp(22px, 2.4vw, 32px); margin-bottom: 16px; }
.leaf p, .leaf li { font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); }
.leaf p + p, .leaf ul, .leaf ol { margin-top: 12px; }
.leaf ol, .leaf ul { padding-left: 1.1em; }
.leaf li + li { margin-top: 8px; }
.leaf .hint { margin-top: 22px; font-size: 13px; color: var(--muted); }
.leaf .lead-sm { margin-bottom: 16px; }
.storybook .cover.face { padding: 0 !important; background: #111 !important; color: #fff; display: block !important; }
.storybook .cover-photo { position: absolute; inset: 0; }
.storybook .cover-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.storybook .cover-copy {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 24px 26px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .88) 55%);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.storybook .cover-wave { width: 88px; height: auto; margin-bottom: 10px; filter: brightness(1.15); }
.storybook .cover-kicker { font-family: var(--font-display); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.storybook .cover h2 { font-size: clamp(28px, 3.4vw, 42px); color: #fff; letter-spacing: -.04em; margin: 8px 0 8px; }
.storybook .cover-sub { color: rgba(255,255,255,.72); font-size: 14px; }
.diploma-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.diploma { margin: 0; }
.diploma-sheet {
  aspect-ratio: 4 / 5; border: 1.5px solid var(--ink); background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 16px 12px; gap: 8px;
}
.diploma-wave { width: 56px; height: auto; }
.diploma-sheet b { font-family: var(--font-display); font-size: 14px; }
.diploma-sheet p { font-size: 12px; color: var(--muted); }
.book-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.book-cta .btn { justify-content: center; width: 100%; }
.book-nav {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin-top: 18px; color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .08em;
}
.book-nav button {
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7); color: #fff;
  font-size: 28px; line-height: 1;
}
.book-nav button:disabled { opacity: .35; cursor: default; }
.book-nav button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 720px) {
  .storybook { width: min(100%, 420px); height: min(640px, 72vh); box-shadow: 0 30px 70px rgba(0,0,0,.28); }
  .storybook::before, .book-board, .book-end { display: none; }
  .leaf { inset: 0; }
  .diploma-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .leaf { transition: none; }
}


/* ---------- сцена отзывов: липкий экран, карточки падают сверху на джутовых верёвках, дальше лента едет вбок от прокрутки ---------- */
.is-apple .preview-grid { grid-template-columns: 1fr; }
.is-apple .video-slot { width: 100%; max-width: 960px; margin: 0 auto; }
/* переход как на yuga.com: фраза закреплена на экране и проявляется по словам, затем тёмная сцена с отзывами наезжает на неё снизу как лист */
.story { position: relative; }
.story-head { height: 140svh; }
.stmt-screen { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; background: #fff; }
.stmt { max-width: 22ch; font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4.6vw, 68px); letter-spacing: -.04em; line-height: 1.02; color: var(--ink); }
.stmt .w { color: #c9c9c9; transition: color .2s var(--ease); }
.stmt .w.on { color: var(--ink); }
.stage { position: relative; z-index: 2; height: calc(100svh + var(--stage-extra, 0px)); }
.stage-sticky { position: sticky; top: 0; height: 100svh; overflow: clip; display: flex; flex-direction: column; justify-content: space-between; padding: 0 0 32px; background: #111; color: #fff; border-radius: 44px 44px 0 0; box-shadow: 0 -40px 100px rgba(0, 0, 0, .35); }
.stage .eyebrow, .stage .eyebrow b, .stage .stage-title { color: #fff; }
.stage .stage-hint { color: rgba(255, 255, 255, .6); }
.stage-nav button { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.stage-nav button:hover { background: #fff; color: var(--ink); }
.rcard .rope::after { box-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
@media (max-width: 900px) { .stage-sticky { border-radius: 28px 28px 0 0; } .story-head { height: 125svh; } }
.stage-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 300px; gap: 44px; overflow-x: auto; padding: 0 max(var(--gutter), calc((100vw - 1240px) / 2)) 24px; scrollbar-width: none; }
.stage-rail::-webkit-scrollbar { display: none; }
.rcard { margin: 0; position: relative; padding-top: calc(96px + var(--drop)); transform-origin: top center; transform: translateY(-115%); rotate: 0deg; will-change: transform; }
.stage.in .rcard { animation: rc-drop 1.5s cubic-bezier(.3, 1.35, .45, 1) var(--delay) both, rc-swing 4.2s cubic-bezier(.3, .6, .3, 1) calc(1.1s + var(--delay)) both; }
@keyframes rc-drop { 0% { transform: translateY(-115%); } 70% { transform: translateY(3%); } 100% { transform: translateY(0); } }
@keyframes rc-swing { 0% { rotate: -6deg; } 25% { rotate: 4deg; } 50% { rotate: -2.2deg; } 72% { rotate: 1deg; } 88% { rotate: -.4deg; } 100% { rotate: var(--rot); } }
/* джутовая верёвка: витые пряди тёплого цвета, лёгкая цилиндрическая тень по краям */
.rcard .rope { position: absolute; top: -24px; left: 50%; width: 9px; height: calc(120px + var(--drop) + 18px); margin-left: -4px; border-radius: 4px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(255, 255, 255, .18) 45%, rgba(0, 0, 0, .3)), repeating-linear-gradient(-62deg, #a97c4b 0 3px, #d5b688 3px 6px, #8e6538 6px 9px);
  box-shadow: 0 0 0 .5px rgba(80, 50, 20, .35), 2px 4px 8px rgba(0, 0, 0, .12); }
.rcard .rope::after { content: ''; position: absolute; left: -3px; right: -3px; bottom: -2px; height: 14px; border-radius: 6px; background: repeating-linear-gradient(-62deg, #a97c4b 0 3px, #d5b688 3px 6px, #8e6538 6px 9px); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); } /* узел у карточки */
.rcard .board { position: relative; background: #fff; border-radius: 22px; padding: 26px 16px 16px; box-shadow: 0 30px 70px rgba(0, 0, 0, .14), 0 0 0 1px rgba(0, 0, 0, .05); }
.rcard .nail { position: absolute; top: 10px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #9aa2b1 55%, #5f6878); box-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.rcard .tg { padding: 10px 10px 12px; }
.rcard .tg-bubble { font-size: 14px; line-height: 1.5; }
.rcard figcaption { margin-top: 10px; padding: 0 6px; font-size: 12px; color: var(--muted); }
.stage-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.stage-title { margin-top: 10px; font-size: clamp(26px, 3vw, 40px); letter-spacing: -.035em; line-height: 1; }
.stage-hint { margin-top: 8px; font-size: 14px; color: var(--muted); }
.stage-nav { display: flex; gap: 10px; }
.stage-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: #fff; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); transition: background .25s var(--ease), color .25s var(--ease); }
.stage-nav button:hover { background: var(--ink); color: #fff; }
@media (max-width: 900px) { .stage-rail { grid-auto-columns: 270px; gap: 26px; } .stage-foot { flex-direction: column; align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { .rcard, .stage.in .rcard { animation: none; transform: none; rotate: var(--rot); } }

/* бельевая верёвка: один провисающий канат через всю ленту, крючки у стены, карточки на деревянных прищепках */
.stage-rail { position: relative; }
.stage-rail .line { position: absolute; left: 0; top: 0; max-width: none; pointer-events: none; overflow: visible; }
.rcard { padding-top: calc(var(--drop, 120px) + 12px); transform-origin: 50% var(--drop, 120px); }
.rcard .rope { display: none; }
.rcard .pin { position: absolute; top: calc(var(--drop, 120px) - 16px); left: 50%; width: 12px; height: 34px; margin-left: -6px; border-radius: 3px 3px 5px 5px; z-index: 2;
  background: linear-gradient(90deg, #b98a57, #e2c193 45%, #a87b4a); box-shadow: 0 2px 4px rgba(0, 0, 0, .35); rotate: var(--pin, 0deg); }
.rcard .pin::before { content: ''; position: absolute; left: 1px; right: 1px; top: 15px; height: 4px; background: #6f6f6f; border-radius: 2px; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .5); } /* пружинка */
.rcard .pin::after { content: ''; position: absolute; left: 4px; right: 4px; top: 22px; bottom: 3px; background: rgba(0, 0, 0, .12); border-radius: 2px; }
.rcard .board { padding-top: 22px; }
.stage.in .rcard { animation-name: rc-drop, rc-swing; }

/* CTA: волна целиком за заголовком, без обрезки; секция выше */
.is-apple .cta { min-height: 78svh; display: grid; place-items: center; padding: clamp(80px, 12vw, 160px) 0; }
.is-apple .cta h2 { margin-bottom: 30px; }
/* модалка полного отзыва */
.rcard .more { display: inline; border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.review-modal { border: 0; border-radius: 24px; padding: 0; max-width: min(640px, 92vw); background: #fff; color: var(--ink); box-shadow: 0 40px 100px rgba(0, 0, 0, .35); }
.review-modal::backdrop { background: rgba(0, 0, 0, .55); }
.review-modal .rm-body { padding: 32px 36px 36px; font-size: 17px; line-height: 1.6; }
.review-modal .rm-close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: #fff; cursor: pointer; font-size: 22px; line-height: 1; }

/* ---------- обо мне: история с закреплённым фото слева и главами справа ---------- */
.about-story { padding: clamp(40px, 6vw, 90px) 0 clamp(60px, 8vw, 120px); }
.as-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.as-photo { position: sticky; top: 100px; }
.as-photo .photo-tile { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-2); box-shadow: 0 30px 70px rgba(0, 0, 0, .12); }
.as-photo .photo-tile img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.as-step { min-height: 44svh; display: flex; flex-direction: column; justify-content: center; padding: 28px 0; border-top: 1px solid var(--line); }
.as-step.as-first { border-top: 0; min-height: 52svh; }
.as-step h3 { font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -.03em; line-height: 1.05; }
.as-step p { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 52ch; }
.as-step .lead { font-size: clamp(18px, 1.5vw, 22px); color: var(--ink-soft); }
.as-step .h2 { margin-bottom: 6px; }
.as-list { margin-top: 18px; padding-left: 22px; display: grid; gap: 12px; font-size: 17px; line-height: 1.5; color: var(--ink-soft); }
.docs { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px; }
.doc { margin: 0; width: 150px; padding: 10px 10px 8px; background: #fff; border-radius: 8px; box-shadow: 0 14px 34px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .05); rotate: var(--r, 0deg); transition: rotate .4s var(--ease), transform .4s var(--ease); }
.doc:hover { rotate: 0deg; transform: translateY(-4px); }
.doc-sheet { aspect-ratio: 3 / 4; border-radius: 4px; background-color: var(--bg-2); background-image: linear-gradient(rgba(0, 0, 0, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .05) 1px, transparent 1px); background-size: 14px 14px; }
.doc figcaption { margin-top: 8px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 12px; color: var(--ink-soft); }
@media (max-width: 900px) { .as-grid { grid-template-columns: 1fr; } .as-photo { position: static; max-width: 420px; } .as-step { min-height: 0; padding: 32px 0; } .as-step.as-first { min-height: 0; } }

/* документы: реальный скан */
.doc-real { width: 220px; }
.doc-open { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 4px; overflow: hidden; }
.doc-open img { display: block; width: 100%; height: auto; }
.review-modal .rm-body img { display: block; width: 100%; height: auto; border-radius: 8px; }
.review-modal.is-img { max-width: min(1100px, 94vw); }
.review-modal.is-img .rm-body { padding: 16px; }

/* ---------- отзывы-колода: стопка записок на тёмном листе, верхнюю можно смахнуть; заменила бельевую верёвку 24.09 ---------- */
.deck-stage { height: auto; background: #111; color: #fff; border-radius: 44px 44px 0 0; box-shadow: 0 -40px 100px rgba(0, 0, 0, .35); padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 10vw, 130px); overflow: clip; }
.deck-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.deck-stage .stage-title { margin: 0; font-size: clamp(34px, 4.4vw, 60px); line-height: .98; }
.deck-lead { margin-top: 18px; max-width: 34ch; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .62); }
.deck-ctrl { margin-top: 30px; display: flex; align-items: center; gap: 14px; }
.deck-btn { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .4); background: transparent; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), border-color .2s; }
.deck-btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.deck-btn:active { transform: scale(.92); }
.deck-btn-main { background: var(--brand-rose, #F07AB4); border-color: transparent; color: #111; }
.deck-count { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: rgba(255, 255, 255, .55); font-variant-numeric: tabular-nums; min-width: 64px; text-align: center; }
.deck-count b { color: #fff; font-size: 22px; }
.deck-hint { margin-top: 18px; display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(255, 255, 255, .5); }
.deck-hand { position: relative; width: 38px; height: 14px; }
.deck-hand::before { content: ''; position: absolute; left: 0; top: 50%; width: 38px; height: 2px; margin-top: -1px; background: rgba(255, 255, 255, .2); border-radius: 2px; }
.deck-hand::after { content: ''; position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; background: #fff; animation: deck-hand 1.6s cubic-bezier(.5, 0, .3, 1) infinite; }
@keyframes deck-hand { 0%, 15% { transform: translateX(0); opacity: 0; } 25% { opacity: 1; } 70% { transform: translateX(24px); opacity: 1; } 85%, 100% { transform: translateX(24px); opacity: 0; } }

.deck { position: relative; width: min(100%, 460px); justify-self: center; height: var(--deck-h, 380px); outline: none; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.deck:focus-visible { outline: 2px solid rgba(255, 255, 255, .6); outline-offset: 16px; border-radius: 30px; }
.dk-card { position: absolute; left: 0; top: 0; width: 100%; margin: 0; padding: 30px 28px 26px; background: #fff; color: var(--ink); border-radius: 26px; box-shadow: 0 30px 70px rgba(0, 0, 0, .38), 0 0 0 1px rgba(0, 0, 0, .05);
  transform-origin: 50% 100%; transition: transform .34s cubic-bezier(.2, .8, .2, 1), opacity .24s ease, box-shadow .3s; will-change: transform; cursor: grab; }
.dk-card::before { content: ''; position: absolute; left: 50%; top: -12px; width: 92px; height: 26px; margin-left: -46px; background: rgba(255, 214, 234, .82); border-radius: 3px; rotate: var(--tilt); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); } /* кусочек скотча */
.dk-card:nth-child(3n+2)::before { background: rgba(196, 226, 247, .85); }
.dk-card:nth-child(3n)::before { background: rgba(255, 233, 170, .85); }
.dk-card.is-drag { transition: none; cursor: grabbing; }
.dk-card > * { transition: opacity .2s ease; }
.dk-card:not(.is-top) > * { opacity: 0; }
.dk-card.is-top { box-shadow: 0 40px 90px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .05); }
.dk-top { display: flex; align-items: center; gap: 12px; }
.dk-ava { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: var(--font-display); font-weight: 800; color: #fff; background: linear-gradient(135deg, #F0A6D0, #6BB6E8); }
.dk-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.dk-who b { font-family: var(--font-display); font-size: 15px; }
.dk-who span { font-size: 13px; color: var(--muted); }
.dk-num { margin-left: auto; font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -.04em; color: #ececec; }
.dk-text { margin: 18px 0 0; font-size: 16.5px; line-height: 1.6; color: var(--ink-soft); }
.dk-mark { color: var(--ink); font-weight: 700; padding: 0 .1em; border-radius: .2em; background: linear-gradient(transparent 12%, #ffc6e2 12%, #ffc6e2 92%, transparent 92%) no-repeat 0 0 / 0% 100%; transition: background-size .5s cubic-bezier(.3, .7, .2, 1) .12s; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.dk-card.is-top .dk-mark { background-size: 100% 100%; }
.dk-more { margin-top: 14px; padding: 0; border: 0; background: none; font: inherit; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.dk-card.nudge { animation: dk-nudge .9s cubic-bezier(.4, 0, .2, 1); }
@keyframes dk-nudge { 0%, 100% { translate: 0 0; rotate: 0deg; } 30% { translate: 38px 0; rotate: 4deg; } 60% { translate: -8px 0; rotate: -1deg; } }
@media (max-width: 900px) {
  .deck-stage { border-radius: 28px 28px 0 0; }
  .deck-grid { grid-template-columns: 1fr; }
  .deck { width: 100%; max-width: 440px; margin-top: 12px; }
  .deck-hint { display: none; }
  .dk-card { padding: 26px 20px 22px; }
  .dk-text { font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) { .dk-card { transition: opacity .2s; } .dk-card.nudge, .deck-hand::after { animation: none; } .dk-mark { transition: none; } }

/* модалки: короткое появление */
.review-modal[open] { animation: modal-in .22s cubic-bezier(.2, .8, .2, 1); }
.review-modal[open]::backdrop { animation: fade .22s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .review-modal[open], .review-modal[open]::backdrop { animation: none; } }

/* ---------- демо «проверка как в курсе»: тетрадь в клетку, поля справа, красная ручка преподавателя (24.09) ---------- */
.demo-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.demo-side .eyebrow b { white-space: nowrap; }
.demo-side h3 { margin-top: 12px; font-size: clamp(24px, 2.8vw, 38px); letter-spacing: -.03em; line-height: 1.05; }
.demo-opt.is-picked { box-shadow: 0 0 0 3px rgba(17, 17, 17, .12); }
.demo-hint-btn { margin-top: 18px; padding: 0; border: 0; background: none; font: inherit; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink-soft); text-decoration: underline dashed; text-underline-offset: 4px; cursor: pointer; }
.demo-hint-btn:hover { color: var(--ink); }
.demo-hint { margin-top: 16px; max-width: 46ch; padding: 12px 16px; border-radius: 14px; background: #fff; border-left: 3px solid #6BB6E8; font-size: 15px; line-height: 1.5; color: var(--ink-soft); animation: fade .3s var(--ease); }
.demo-after { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; animation: fade .3s var(--ease) .2s both; }
.demo-note { margin-top: 26px; font-size: 13px; color: var(--muted); }

.demo-sheet { --pen: #E0314B; --ink-pen: #1f2d52; --step: 110ms; padding-bottom: 44px; }
.sheet-paper { position: relative; min-height: 340px; padding: 24px 66px 26px 20px; border-radius: 6px; background-color: #fff;
  background-image: linear-gradient(rgba(70, 130, 200, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(70, 130, 200, .16) 1px, transparent 1px); background-size: 22px 22px; background-position: -1px -1px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .05); rotate: -.6deg; }
.sheet-paper::after { content: ''; position: absolute; top: 0; bottom: 0; right: 52px; width: 1.5px; background: rgba(224, 49, 75, .5); } /* поля тетради */
.sheet-empty { min-height: 290px; display: grid; place-items: center; text-align: center; max-width: 30ch; margin: 0 auto; font-size: 16px; line-height: 1.5; color: var(--muted); }
.sheet-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sl { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; column-gap: 10px; min-height: 44px; font-family: 'Cambria Math', 'Times New Roman', serif; font-style: italic; font-size: clamp(17px, 1.55vw, 21px); line-height: 1.3; color: var(--ink-pen); opacity: 0; }
.sl-n { font-family: var(--font-display); font-style: normal; font-weight: 700; font-size: 12px; color: var(--muted); }
.sl-f { position: relative; justify-self: start; }
.sl-after { color: var(--ink-pen); }
.sl-fix { grid-column: 2; justify-self: start; margin: 2px 0 0 18px; color: var(--pen); font-size: .92em; rotate: -3deg; opacity: 0; }
.sl-fix::before { content: '→ '; }
.sl-m { position: absolute; right: -50px; top: 50%; width: 26px; height: 22px; margin-top: -11px; }
.tick { width: 100%; height: 100%; overflow: visible; }
.tick path, .pen path { fill: none; stroke: var(--pen); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.pen { position: absolute; left: -14px; top: -9px; width: calc(100% + 28px); max-width: none; height: calc(100% + 18px); overflow: visible; pointer-events: none; }
.pen path { stroke-width: 2.4; }
.sheet-stamp { position: absolute; right: 74px; top: 22px; padding: 6px 14px; border: 3px solid var(--pen); border-radius: 10px; font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; color: var(--pen); rotate: -12deg; opacity: 0; pointer-events: none; }
.demo-fb { position: relative; margin: 26px -30px -70px 30px; padding: 18px 20px; background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .16), 0 0 0 1px rgba(0, 0, 0, .04); rotate: .6deg; opacity: 0; }
.demo-fb p { margin-top: 12px; font-size: 15.5px; line-height: 1.55; color: var(--ink); }
.demo-fb .fb-tags span:first-child { background: #ffe3ea; color: #b4213a; }
.demo-fb .fb-tags span.ok { background: #e3f6ea; color: #1d7a46; }

/* последовательность: строки по очереди → галочки → обводка ошибки → исправление/штамп → комментарий */
.play .sl { animation: sl-in .3s var(--ease) forwards; animation-delay: calc(var(--n) * var(--step)); }
.play .sl-after { animation-name: sl-in-dim; }
.play .tick path { animation: pen-draw .28s ease-out forwards; animation-delay: calc(var(--n) * var(--step) + 240ms); }
.play .pen path { animation: pen-draw .55s ease-in-out forwards; animation-delay: calc(var(--last) * var(--step) + 200ms); }
.play .sl-fix { animation: fix-in .3s var(--ease) forwards; animation-delay: calc(var(--last) * var(--step) + 700ms); }
.play .sheet-stamp { animation: stamp-in .35s cubic-bezier(.3, 1.5, .5, 1) forwards; animation-delay: calc(var(--last) * var(--step) + 450ms); }
.play .demo-fb { animation: fb-in .4s var(--ease) forwards; animation-delay: calc(var(--last) * var(--step) + 850ms); }
@keyframes sl-in { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
@keyframes sl-in-dim { from { opacity: 0; translate: 0 6px; } to { opacity: .42; translate: 0 0; } }
@keyframes pen-draw { to { stroke-dashoffset: 0; } }
@keyframes fix-in { from { opacity: 0; translate: -6px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes stamp-in { from { opacity: 0; scale: 1.7; } to { opacity: .92; scale: 1; } }
@keyframes fb-in { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }

@media (max-width: 980px) {
  .demo-grid { grid-template-columns: 1fr; }
  .demo-sheet { padding-bottom: 30px; }
}
@media (max-width: 560px) {
  .sheet-paper { padding: 20px 46px 22px 14px; rotate: 0deg; }
  .sheet-paper::after { right: 36px; }
  .sl { grid-template-columns: 18px minmax(0, 1fr); column-gap: 8px; font-size: 16px; }
  .sl-m { right: -38px; width: 22px; height: 19px; margin-top: -10px; }
  .sheet-stamp { right: 52px; top: 14px; font-size: 15px; }
  .demo-fb { margin: 22px -40px -40px -4px; rotate: 0deg; }
}
@media (prefers-reduced-motion: reduce) {
  .play .sl, .play .sl-fix, .play .demo-fb, .play .sheet-stamp { animation: none; opacity: 1; translate: none; scale: none; }
  .play .sl-after { opacity: .42; }
  .play .tick path, .play .pen path { animation: none; stroke-dashoffset: 0; }
  .play .sheet-stamp { opacity: .92; }
}
[data-demo] [hidden] { display: none !important; }
.fr { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; font-size: .78em; line-height: 1.12; margin: 0 .08em; }
.fr > span:first-child { padding: 0 .12em .06em; border-bottom: 1.2px solid currentColor; }
.fr > span:last-child { padding-top: .06em; }
.demo-task .fr { font-size: .72em; }
