/* ===== Демо платформы на главной: «как учится ученик» ===== */
.pdemo {
    --d-blue: var(--blue, #2563EB);
    --d-ink: var(--ink, #0F172A);
    --d-muted: var(--muted, #64748B);
    --d-light: var(--light, #EFF5FF);
    --d-surface: var(--surface, #FFFFFF);
    --d-ring: var(--ring, #9EC1FF);
    --d-ok: var(--ok, #15803D);
    --d-ok-bg: var(--tint-ok, #DCFCE7);
    --d-warn-bg: var(--tint-warn, #FEF3C7);
    --d-tint: var(--tint-blue, #DBE8FF);
    --d-hero: var(--hero, #2563EB);
    display: flex; flex-direction: column; gap: 18px; font-family: 'Nunito', system-ui, sans-serif;
}
.pdemo-nav { display: flex; align-items: center; justify-content: center; gap: 12px; }
.pdemo-arrow {
    width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.16); color: #fff;
    font: 900 18px 'Nunito', sans-serif; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.pdemo-arrow:hover { background: rgba(255, 255, 255, 0.28); }
.pdemo-current {
    display: inline-flex; align-items: center; gap: 10px; min-width: 250px; justify-content: center; padding: 8px 18px 8px 8px;
    border-radius: 999px; background: #fff; color: #1D4ED8; font-weight: 900; font-size: 17px; overflow: hidden;
}
.pdemo-current b { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; background: var(--d-blue); color: #fff; font-size: 14px; }
.pdemo-current small { color: #64748B; font-weight: 800; font-size: 13px; }
.pdemo-current.swap b, .pdemo-current.swap span { animation: pd-swap 0.45s ease; }
@keyframes pd-swap { 0% { opacity: 0; transform: translateY(14px); } 100% { opacity: 1; transform: none; } }
/* Тонкая шкала шагов: пройденные — белые, текущий — заполняется */
.pdemo-steps { display: flex; gap: 4px; max-width: 420px; width: 100%; margin: -6px auto 0; }
.pdemo-step { flex: 1; height: 6px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.22); cursor: pointer; position: relative; overflow: hidden; }
.pdemo-step::after { content: ""; position: absolute; inset: 0; width: 0; background: #fff; border-radius: inherit; }
.pdemo-step.done::after { width: 100%; }
.pdemo-step.on::after { width: 100%; animation: pd-fill 5s linear; }
.pdemo-step:hover { background: rgba(255, 255, 255, 0.4); }
@keyframes pd-fill { from { width: 0; } }
.pdemo-caption { text-align: center; color: #fff; font-size: 18px; font-weight: 800; min-height: 26px; margin: 0; opacity: 0.95; }

/* Окно «браузера», внутри — сцена фиксированного размера, масштабируется под ширину */
.pdemo-window {
    position: relative; width: 100%; max-width: 960px; margin: 0 auto; border-radius: 22px; overflow: hidden;
    background: var(--d-light); box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255,255,255,0.15);
    aspect-ratio: 960 / 534;
}
.pdemo-chrome { position: absolute; inset: 0 0 auto 0; height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: #E2E8F0; z-index: 5; }
.pdemo-chrome i { width: 11px; height: 11px; border-radius: 50%; background: #F87171; }
.pdemo-chrome i:nth-child(2) { background: #FBBF24; }
.pdemo-chrome i:nth-child(3) { background: #34D399; }
.pdemo-chrome span { margin-left: 14px; flex: 1; max-width: 360px; height: 20px; border-radius: 8px; background: #fff; color: #64748B; font-size: 11px; font-weight: 700; display: flex; align-items: center; padding: 0 10px; }
.pdemo-stage { position: absolute; top: 34px; left: 0; width: 960px; height: 500px; transform-origin: 0 0; }

/* Шапка приложения */
.pd-top { height: 52px; background: var(--d-hero); display: flex; align-items: center; justify-content: space-between; padding: 0 22px; color: #fff; }
.pd-logo { font-weight: 900; font-size: 20px; letter-spacing: -0.01em; }
.pd-logo em { font-style: normal; background: #E11D74; padding: 0 4px; border-radius: 3px; margin-right: 1px; }
.pd-user { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14px; }
.pd-elo { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,0.16); font-weight: 900; transition: transform 0.3s; }
.pd-elo.bump { transform: scale(1.18); background: #fff; color: var(--d-blue); }
.pd-coins { display: inline-flex; align-items: center; gap: 4px; }
.pd-ava { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--d-blue); display: inline-flex; align-items: center; justify-content: center; font-weight: 900; }

/* Сцены */
.pd-scene { position: absolute; top: 52px; left: 0; right: 0; bottom: 0; padding: 22px; opacity: 0; transform: translateY(14px); transition: opacity 0.45s ease, transform 0.45s ease; pointer-events: none; }
.pd-scene.on { opacity: 1; transform: none; }
.pd-h { font-size: 28px; font-weight: 900; color: var(--d-ink); margin: 0 0 4px; letter-spacing: -0.01em; }
.pd-sub { color: var(--d-muted); font-weight: 700; font-size: 14px; margin: 0 0 16px; }
.pd-card { background: var(--d-surface); border-radius: 18px; padding: 16px 18px; color: var(--d-ink); }
.pd-label { font-size: 11px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--d-blue); }
.pd-grid3 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.pd-big { font-size: 40px; font-weight: 900; line-height: 1.05; margin-top: 4px; }
.pd-big.blue { color: var(--d-blue); }
.pd-small { font-size: 13px; color: var(--d-muted); font-weight: 700; }
.pd-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-radius: 14px; background: var(--d-light); font-weight: 800; font-size: 15px; margin-top: 8px; opacity: 0; transform: translateX(-10px); transition: opacity 0.35s, transform 0.35s, box-shadow 0.2s; }
.pd-row.in { opacity: 1; transform: none; }
.pd-row.hot { box-shadow: 0 0 0 3px var(--d-ring); }
.pd-row .pd-b { color: var(--d-blue); font-weight: 900; }
.pd-row .pd-b.warn { color: #B45309; }

/* Задача */
.pd-task { display: grid; grid-template-columns: 1fr 250px; gap: 14px; }
.pd-statement { font-size: 17px; font-weight: 700; line-height: 1.45; margin: 10px 0 14px; }
.pd-statement code { font-family: 'Cascadia Code', Consolas, monospace; background: var(--d-light); padding: 1px 6px; border-radius: 6px; font-size: 15px; }
.pd-input { height: 46px; border-radius: 14px; border: 3px solid var(--d-ring); background: var(--d-surface); display: flex; align-items: center; padding: 0 14px; font-size: 20px; font-weight: 800; color: var(--d-ink); }
.pd-input .caret { width: 2px; height: 22px; background: var(--d-blue); margin-left: 2px; animation: pd-blink 1s steps(1) infinite; }
@keyframes pd-blink { 50% { opacity: 0; } }
.pd-btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 20px; border-radius: 14px; background: var(--d-blue); color: #fff; font-weight: 900; font-size: 16px; margin-top: 10px; transition: transform 0.12s; }
.pd-btn.press { transform: scale(0.94); }
.pd-result { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--d-ok-bg); box-shadow: inset 6px 0 0 var(--d-ok); color: var(--d-ink); font-weight: 900; display: flex; justify-content: space-between; opacity: 0; transform: scale(0.96); transition: opacity 0.3s, transform 0.3s; }
.pd-result.in { opacity: 1; transform: none; }
.pd-result span { color: var(--d-ok); }
.pd-side .pd-ringwrap { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.pd-ring { width: 64px; height: 64px; }
.pd-ring circle { fill: none; stroke-width: 6; }
.pd-ring .trk { stroke: var(--d-tint); }
.pd-ring .arc { stroke: #E5A500; stroke-linecap: round; transition: stroke-dasharray 0.9s ease; transform: rotate(-90deg); transform-origin: 50% 50%; }
.pd-ring text { font: 900 22px 'Nunito', sans-serif; fill: #E5A500; }
.pd-float { position: absolute; font-weight: 900; color: var(--d-ok); font-size: 22px; opacity: 0; pointer-events: none; }
.pd-float.go { animation: pd-float 1.2s ease-out forwards; }
@keyframes pd-float { 0% { opacity: 0; transform: translateY(6px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-40px); } }

/* Домашка */
.pd-nums { display: flex; gap: 8px; margin: 12px 0 14px; }
.pd-num { width: 46px; height: 46px; border-radius: 12px; background: var(--d-light); color: var(--d-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 17px; transition: background 0.3s, color 0.3s, transform 0.3s; }
.pd-num.ok { background: var(--d-ok); color: #fff; transform: scale(1.06); }
.pd-num.part { background: #E5A500; color: #fff; }
.pd-bar { height: 12px; border-radius: 999px; background: var(--d-light); overflow: hidden; }
.pd-bar i { display: block; height: 100%; width: 0; background: var(--d-blue); border-radius: 999px; transition: width 0.4s ease; }
.pd-toast { position: absolute; right: 22px; bottom: 22px; width: 330px; padding: 14px 16px; border-radius: 16px; background: var(--d-surface); box-shadow: 0 16px 40px rgba(15,23,42,0.18), 0 0 0 3px var(--d-ring); color: var(--d-ink); font-weight: 800; opacity: 0; transform: translateY(16px); transition: opacity 0.35s, transform 0.35s; }
.pd-toast.in { opacity: 1; transform: none; }
.pd-toast b { color: var(--d-ok); }

/* Прогресс */
.pd-prog { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; }
.pd-chart { width: 100%; height: 230px; }
.pd-chart .grid { stroke: var(--d-tint); stroke-width: 1; }
/* Линию рисует JS по её настоящей длине (без «паузы» в начале) */
.pd-chart .line { fill: none; stroke: var(--d-blue); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pd-chart .dot { fill: var(--d-surface); stroke: var(--d-blue); stroke-width: 3; opacity: 0; }
.pd-chart .dot.in { opacity: 1; transition: opacity 0.3s; }
.pd-chart text { font: 700 12px 'Nunito', sans-serif; fill: var(--d-muted); }
.pd-level { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 14px; border-radius: 999px; background: #FDF0C4; color: #8A6100; font-weight: 900; opacity: 0; transform: scale(0.6); transition: opacity 0.3s, transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); }
.pd-level.in { opacity: 1; transform: none; }

/* Родитель */
.pd-parent { display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: start; }
.pd-phone { background: #0F172A; border-radius: 30px; padding: 10px; height: 404px; }
.pd-phone-screen { background: var(--d-light); border-radius: 22px; height: 100%; padding: 14px 12px; overflow: hidden; }
.pd-phone-top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 900; color: var(--d-ink); margin-bottom: 10px; }
.pd-notif { display: flex; gap: 10px; padding: 10px; border-radius: 14px; background: var(--d-surface); margin-bottom: 8px; font-size: 13px; font-weight: 800; color: var(--d-ink); opacity: 0; transform: translateY(-10px); transition: opacity 0.35s, transform 0.35s; }
.pd-notif.in { opacity: 1; transform: none; }
.pd-notif i { flex: 0 0 30px; height: 30px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-style: normal; background: var(--d-tint); }
.pd-notif small { display: block; color: var(--d-muted); font-weight: 700; font-size: 11px; margin-top: 2px; }
.pd-quote { font-size: 28px; font-weight: 900; color: var(--d-ink); line-height: 1.2; margin: 18px 0 10px; }
.pd-facts { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.pd-fact { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--d-surface); font-weight: 800; color: var(--d-ink); opacity: 0; transform: translateX(14px); transition: opacity 0.35s, transform 0.35s; }
.pd-fact.in { opacity: 1; transform: none; }
.pd-fact b { color: var(--d-blue); font-size: 22px; min-width: 70px; }

/* Курсор */
.pd-cursor { position: absolute; left: 0; top: 0; width: 26px; height: 26px; z-index: 10; pointer-events: none; transition: transform 0.9s cubic-bezier(0.45, 0, 0.2, 1); filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3)); }
.pd-cursor::after { content: ""; position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--d-blue); opacity: 0; }
.pd-cursor.click::after { animation: pd-click 0.5s ease-out; }
@keyframes pd-click { 0% { opacity: 1; transform: scale(0.4); } 100% { opacity: 0; transform: scale(2.2); } }

.pdemo-controls { display: flex; justify-content: center; }
.pdemo-pause { border: 0; background: transparent; color: rgba(255,255,255,0.8); font: 800 14px 'Nunito', sans-serif; cursor: pointer; padding: 6px 10px; }
.pdemo-pause:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
    .pd-scene, .pd-row, .pd-result, .pd-toast, .pd-notif, .pd-fact, .pd-level, .pd-cursor { transition: none !important; }
    .pd-cursor { display: none; }
}
@media (max-width: 640px) {
    .pdemo-current { min-width: 0; font-size: 15px; }
    .pdemo-caption { font-size: 15px; }
    .pdemo-window { border-radius: 14px; }
}
.pd-answers { margin-top: 12px; }
.pd-answers .pd-row { opacity: 1; transform: none; margin-top: 6px; padding: 9px 14px; font-size: 14px; }
.pd-ok { color: var(--d-ok); font-weight: 900; }
.pd-part { color: #B45309; font-weight: 900; }

/* ---------- Тренировка: плитки номеров ---------- */
.pd-kims { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.pd-kim { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 104px; padding: 12px; border-radius: 14px; background: var(--d-surface); color: var(--d-ink); border: 3px solid transparent; transition: border-color 0.2s, transform 0.15s; }
.pd-kim b { font-size: 20px; font-weight: 900; color: var(--d-blue); line-height: 1; }
.pd-kim span { font-size: 12px; font-weight: 800; line-height: 1.25; flex: 1; }
.pd-kim i { display: block; height: 6px; border-radius: 999px; background: var(--d-light); overflow: hidden; }
.pd-kim i::after { content: ""; display: block; height: 100%; width: var(--p, 30%); background: var(--d-blue); border-radius: 999px; }
.pd-kim.weak::before { content: "слабое место"; position: absolute; top: 8px; right: 8px; padding: 1px 7px; border-radius: 999px; background: var(--d-warn-bg); color: #B45309; font-size: 10px; font-weight: 900; }
.pd-kim.hot { border-color: var(--d-blue); }
.pd-kim.press, .pd-sbtn.press, .pd-pkg.press { transform: scale(0.95); }

/* ---------- Ошибки ---------- */
.pd-stages { display: inline-flex; gap: 6px; align-items: center; }
.pd-stages > span { width: 12px; height: 12px; border-radius: 50%; background: var(--d-tint); transition: background 0.3s, transform 0.3s; }
.pd-stages > span.on { background: var(--d-blue); }
.pd-stages > span.pop { transform: scale(1.5); }
.pd-was { display: inline-block; margin: 0 0 10px; padding: 4px 10px; border-radius: 10px; background: var(--d-warn-bg); color: #92400E; font-size: 13px; font-weight: 800; }

/* ---------- Вопрос преподавателю ---------- */
.pd-chat { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.pd-msg { max-width: 76%; padding: 10px 14px; border-radius: 16px; font-weight: 700; font-size: 15px; line-height: 1.4; opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.3s; }
.pd-msg.in { opacity: 1; transform: none; }
.pd-msg small { display: block; font-size: 11px; font-weight: 900; color: var(--d-muted); margin-bottom: 2px; }
.pd-msg.me { align-self: flex-end; background: var(--d-light); color: var(--d-ink); }
.pd-msg.teacher { align-self: flex-start; background: var(--d-tint); color: var(--d-ink); box-shadow: inset 4px 0 0 var(--d-blue); }
.pd-typing { display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 16px; background: var(--d-tint); align-self: flex-start; opacity: 0; transition: opacity 0.2s; }
.pd-typing.in { opacity: 1; }
.pd-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--d-blue); animation: pd-dot 1s infinite; }
.pd-typing i:nth-child(2) { animation-delay: 0.15s; } .pd-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes pd-dot { 50% { transform: translateY(-4px); opacity: 0.5; } }
.pd-compose { display: flex; gap: 8px; margin-top: 12px; }
.pd-compose .pd-input { flex: 1; font-size: 15px; height: 42px; }
.pd-compose .pd-btn { margin-top: 0; }

/* ---------- Пробник ---------- */
.pd-mock-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.pd-timer { padding: 8px 14px; border-radius: 12px; background: var(--d-surface); font: 900 22px 'Cascadia Code', Consolas, monospace; color: var(--d-ink); }
.pd-mnums { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; }
.pd-mnum { height: 38px; border-radius: 10px; background: var(--d-light); color: var(--d-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; transition: background 0.2s, color 0.2s; }
.pd-mnum.ans { background: var(--d-blue); color: #fff; }
.pd-mres { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 14px; opacity: 0; transform: translateY(10px); transition: opacity 0.4s, transform 0.4s; }
.pd-mres.in { opacity: 1; transform: none; }
.pd-mres .pd-card { background: var(--d-light); }

/* ---------- Расписание и занятие ---------- */
.pd-clock { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--d-surface); font-weight: 900; color: var(--d-ink); font-size: 15px; }
.pd-lrow { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 16px; background: var(--d-light); margin-top: 10px; }
.pd-lrow .pd-when { min-width: 150px; color: var(--d-blue); font-weight: 900; font-size: 18px; }
.pd-lrow .pd-what { flex: 1; font-weight: 800; }
.pd-sbtn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 46px; padding: 4px 16px; border-radius: 14px; font-weight: 900; font-size: 15px; line-height: 1.1; background: var(--d-surface); color: var(--d-muted); transition: background 0.3s, color 0.3s, transform 0.12s; }
.pd-sbtn small { font-size: 11px; font-weight: 800; }
.pd-sbtn.live { background: var(--d-blue); color: #fff; box-shadow: 0 0 0 4px var(--d-ring); }
.pd-call { position: absolute; inset: 0; background: #0B1220; padding: 20px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; opacity: 0; transition: opacity 0.4s; }
.pd-call.in { opacity: 1; }
.pd-call-main { border-radius: 16px; background: #111A2B; padding: 16px; color: #E5EAF3; font: 600 14px/1.6 'Cascadia Code', Consolas, monospace; position: relative; }
.pd-call-main .kw { color: #60A5FA; } .pd-call-main .st { color: #FBBF24; }
.pd-call-side { display: flex; flex-direction: column; gap: 12px; }
.pd-cam { flex: 1; border-radius: 16px; background: linear-gradient(160deg, #1E3A8A, #2563EB); display: flex; align-items: flex-end; padding: 12px; color: #fff; font-weight: 900; position: relative; }
.pd-cam::before { content: attr(data-initial); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 46px; opacity: 0.5; }
.pd-live { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: #DC2626; color: #fff; font: 900 12px 'Nunito', sans-serif; }
.pd-call-bar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 10px; }
.pd-call-bar span { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.15); display: inline-flex; align-items: center; justify-content: center; }
.pd-call-bar span:last-child { background: #DC2626; }

.pd-lesson-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.pd-video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; background: linear-gradient(135deg, #0F172A, #1E3A8A); margin-top: 10px; display: flex; align-items: center; justify-content: center; }
.pd-video::after { content: "▶"; width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,0.92); color: var(--d-blue); display: flex; align-items: center; justify-content: center; font-size: 22px; padding-left: 4px; }
.pd-vtabs { display: flex; gap: 6px; margin-top: 8px; }
.pd-vtabs span { padding: 4px 10px; border-radius: 999px; background: var(--d-light); font-size: 12px; font-weight: 900; color: var(--d-muted); }
.pd-vtabs span.on { background: var(--d-blue); color: #fff; }
.pd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pd-chips span { padding: 6px 12px; border-radius: 999px; background: var(--d-light); font-size: 13px; font-weight: 800; }
.pd-chips span.on { box-shadow: 0 0 0 3px var(--d-blue); background: var(--d-surface); }
.pd-pdf { margin-top: 10px; height: 120px; border-radius: 12px; background: var(--d-light); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.pd-pdf i { display: block; height: 8px; border-radius: 4px; background: var(--d-tint); }
.pd-pdf i:nth-child(1) { width: 60%; background: var(--d-ring); } .pd-pdf i:nth-child(3) { width: 80%; } .pd-pdf i:nth-child(5) { width: 45%; }

/* ---------- Оплата ---------- */
.pd-pay { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; }
.pd-balance { font-size: 64px; font-weight: 900; line-height: 1; margin: 8px 0 4px; color: #DC2626; transition: color 0.3s; }
.pd-balance.ok { color: var(--d-ok); }
.pd-pkgs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.pd-pkg { padding: 14px; border-radius: 14px; border: 3px solid var(--d-light); background: var(--d-surface); font-weight: 800; transition: border-color 0.2s, transform 0.12s; }
.pd-pkg b { display: block; font-size: 22px; font-weight: 900; color: var(--d-ink); }
.pd-pkg.on { border-color: var(--d-blue); box-shadow: 0 0 0 3px var(--d-ring); }
.pd-steps-pay { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 800; color: var(--d-muted); }
.pd-head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pdemo .block { display: block; }

/* Телефон: сцена крупнее и плавно панорамируется (см. demo.js) */
.pdemo-window.pdemo-mobile { aspect-ratio: auto; }
.pdemo-window.pdemo-mobile .pdemo-stage { transition: transform 0.7s cubic-bezier(0.45, 0, 0.2, 1); }
.pdemo-window.pdemo-mobile .pdemo-chrome span { max-width: 180px; }
