/* Вариант v6 «Лента»: светлая бумага, крупные панели на горизонтальной ленте, пружинная прокрутка. */
:root {
  color-scheme: light;
  --bg: #ecebe6; --panel: #fafaf8; --ink: #121211; --muted: #62625b; --faint: #85857d;
  --line: rgba(var(--ink-rgb), .13); --line-strong: rgba(var(--ink-rgb), .32);
  --err: #bd3b30; --warn: #9a6a12;
  --ink-rgb: 18, 18, 17; --shadow-rgb: 18, 18, 17;
  --spring: linear(0, .009, .035 2.1%, .141, .281 6.7%, .723 12.9%, .938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163 27%, 1.154, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --slide: cubic-bezier(.45, 0, .1, 1);
  --pw: min(600px, 84vw); --gap: 28px;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --display: "Bahnschrift", "SF Pro Display", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
/* Тёмная тема: по настройке системы или ?theme=dark */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0e0e0d; --panel: #171716; --ink: #f1f0ec; --muted: #a3a39b; --faint: #7f7f78;
  --line: rgba(255, 255, 255, .11); --line-strong: rgba(255, 255, 255, .28);
  --err: #f07a6f; --warn: #e2b45c; --ink-rgb: 241, 240, 236; --shadow-rgb: 0, 0, 0; color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #0e0e0d; --panel: #171716; --ink: #f1f0ec; --muted: #a3a39b; --faint: #7f7f78;
  --line: rgba(255, 255, 255, .11); --line-strong: rgba(255, 255, 255, .28);
  --err: #f07a6f; --warn: #e2b45c; --ink-rgb: 241, 240, 236; --shadow-rgb: 0, 0, 0; color-scheme: dark;
}
.shot-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .shot-light { display: none; } :root:not([data-theme="light"]) .shot-dark { display: block; } }
:root[data-theme="dark"] .shot-light { display: none; } :root[data-theme="dark"] .shot-dark { display: block; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--display); -webkit-font-smoothing: antialiased; overflow-x: hidden; font-feature-settings: "tnum" 1; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }

/* Заставка */
.splash { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: none; place-content: center; justify-items: center; gap: 22px; transition: transform .95s var(--ease); }
.splash.is-lift { transform: translateY(-100%); }
.splash-name { display: flex; font-size: clamp(44px, 13vw, 84px); font-weight: 300; letter-spacing: -.04em; line-height: 1.1; }
.splash-name .ch { display: inline-block; overflow: hidden; padding-bottom: .1em; }
.splash-name .ch > i { display: block; font-style: normal; transform: translateY(110%); animation: letter .8s var(--ease) forwards; animation-delay: calc(var(--n) * 70ms + 150ms); }
.splash-line { width: min(220px, 50vw); height: 1px; background: var(--line); overflow: hidden; }
.splash-line i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; animation: fill 1.35s var(--ease) .35s forwards; }
@keyframes letter { to { transform: none; } }
@keyframes fill { to { transform: scaleX(1); } }
.splash-on .splash { display: grid; }

.stage { min-height: 100dvh; display: flex; flex-direction: column; }

/* Верх: заказ и ход выполнения */
.top { display: grid; gap: 12px; justify-items: center; padding: 18px 16px 0; padding-top: max(18px, env(safe-area-inset-top)); }
.order { margin: 0; font: 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: center; overflow-wrap: anywhere; }
.order b { color: var(--ink); font-weight: 600; }
.sep { display: inline-block; width: 3px; height: 3px; margin: 0 10px; border-radius: 50%; background: var(--faint); vertical-align: middle; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; }
.pill { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; font: 12px var(--mono); letter-spacing: .06em; color: var(--faint); overflow: hidden; max-width: 46px; white-space: nowrap; transition: max-width .6s var(--ease), background .4s, color .4s, border-color .4s; }
.pill .t { opacity: 0; transition: opacity .3s; }
.pill.is-done { color: var(--ink); border-color: var(--ink); }
.pill.is-now { max-width: 190px; background: var(--ink); color: var(--panel); border-color: var(--ink); }
.pill.is-now .t { opacity: 1; transition-delay: .25s; }
.pill.is-err { background: var(--err); border-color: var(--err); }
.pill.is-warn { background: var(--warn); border-color: var(--warn); }

/* Лента */
.viewport { flex: 1; width: 100%; display: flex; align-items: center; overflow: hidden; padding: 16px 0; }
.track { display: flex; align-items: center; gap: var(--gap); width: max-content; transition: transform .9s var(--slide); will-change: transform; backface-visibility: hidden; }

.panel { position: relative; flex: none; width: var(--pw); min-height: clamp(400px, 58vh, 540px); padding: 40px 40px 36px; display: grid; align-content: start; gap: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; contain: layout paint; transition: transform .9s var(--slide), opacity .5s; will-change: transform, opacity; transform: scale(.92); opacity: .5; pointer-events: none; }
.panel.is-cur { transform: none; opacity: 1; pointer-events: auto; }
.panel.is-past { transform: scale(.92); }
.panel:not(.is-cur) * { animation-play-state: paused !important; }

.ghost { position: absolute; right: -8px; top: -18px; font-size: clamp(120px, 24vw, 200px); font-weight: 700; letter-spacing: -.06em; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line-strong); opacity: .7; pointer-events: none; transition: transform .9s var(--slide); will-change: transform; }
.kicker { margin: 0; font: 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); position: relative; }
h1 { margin: 0; font-size: clamp(34px, 8vw, 56px); line-height: 1; font-weight: 300; letter-spacing: -.045em; max-width: 12ch; text-wrap: balance; position: relative; }
.lead { margin: 0; color: var(--muted); max-width: 40ch; position: relative; }
.fine { margin: 0; font-size: 13px; color: var(--muted); }
.tone-warn #k0 { color: var(--warn); }
.tone-err #k2 { color: var(--err); }

.odo { display: inline-flex; height: 1em; font-weight: inherit; letter-spacing: -.02em; line-height: 1; }
.od { display: inline-block; height: 1em; overflow: hidden; }
.od-strip { display: flex; flex-direction: column; transition: transform 1.2s var(--ease); }
.od-strip i { font-style: normal; display: block; height: 1em; line-height: 1; }

.up { display: grid; gap: 10px; position: relative; }
.drop { position: relative; display: grid; place-items: center; min-height: 84px; padding: 12px; border: 1.5px dashed var(--line-strong); border-radius: 16px; text-align: center; font-size: 14px; color: var(--muted); cursor: pointer; transition: border-color .25s, background .25s, transform .4s var(--spring); }
.drop:hover, .drop.is-over { border-color: var(--ink); background: rgba(var(--ink-rgb), .04); }
.drop.is-over { transform: scale(1.02); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop img { max-height: 78px; max-width: 100%; border-radius: 8px; filter: grayscale(1) contrast(1.1); }
.h-touch { display: none; }
@media (pointer: coarse) { .h-fine { display: none; } .h-touch { display: inline; } }
kbd { padding: 0 5px; border: 1px solid var(--line-strong); border-radius: 5px; font: 11px var(--mono); }
.form-error { margin: 0; padding-left: 12px; border-left: 2px solid var(--warn); font-size: 14px; color: var(--warn); }
.row { display: flex; gap: 10px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--panel); font-weight: 500; transition: transform .35s var(--spring), background .2s, color .2s; touch-action: manipulation; }
.btn:hover { background: transparent; color: var(--ink); }
.btn:active { transform: scale(.95); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .4; }

.checks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; position: relative; }
.checks li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; transition: opacity .5s, transform .6s var(--ease); }
.js .checks li:not(.is-in) { opacity: 0; transform: translateX(-10px); }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li.is-in { opacity: 1; transform: none; }
.checks .ck { flex: none; width: 18px; height: 18px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; }
.checks .ck svg { width: 11px; height: 11px; fill: none; stroke: var(--panel); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .5s var(--ease) .1s; }
.checks li.is-ok .ck { background: var(--ink); border-color: var(--ink); }
.checks li.is-ok .ck svg { stroke-dashoffset: 0; }
.checks li.is-wait .ck { border-top-color: var(--ink); animation: spin .9s linear infinite; }
.checks .v { margin-left: auto; font: 13px var(--mono); color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }

.flow { position: relative; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.flow i { position: absolute; top: 0; bottom: 0; left: 0; width: 34%; background: var(--ink); animation: flow 1.8s var(--ease) infinite; will-change: transform; }
@keyframes flow { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.tone-err .flow i { background: var(--err); animation-play-state: paused; }

/* Финал: галочка, звёзды и главная кнопка отзыва */
.check { width: 96px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.check circle, .check path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.panel.is-cur .check circle { animation: draw 1.2s var(--ease) .4s forwards; }
.panel.is-cur .check path { animation: draw .7s var(--ease) 1.2s forwards; stroke-width: 2.2; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.review { display: grid; gap: 12px; justify-items: start; position: relative; padding-top: 6px; }
.stars { display: flex; gap: 4px; }
.stars svg { width: 26px; height: 26px; fill: transparent; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; transform-origin: 50% 60%; }
.panel.is-cur .stars svg { animation: star .8s var(--spring) forwards; animation-delay: calc(1.7s + var(--s, 0) * 110ms); }
.stars svg:nth-child(2) { --s: 1; } .stars svg:nth-child(3) { --s: 2; } .stars svg:nth-child(4) { --s: 3; } .stars svg:nth-child(5) { --s: 4; }
@keyframes star { 0% { fill: transparent; transform: scale(.6) rotate(-20deg); } 60% { fill: var(--ink); transform: scale(1.25) rotate(6deg); } 100% { fill: var(--ink); transform: none; } }
.btn--accent { position: relative; overflow: hidden; min-height: 56px; padding: 0 32px; font-size: 17px; font-weight: 600; box-shadow: 0 10px 28px rgba(var(--shadow-rgb), .22); }
.btn--accent:hover { background: var(--ink); color: var(--panel); transform: translateY(-2px); }
.btn--accent::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: translateX(-150%); animation: shine 3.4s var(--ease) 2.8s infinite; }
@keyframes shine { 0% { transform: translateX(-150%); } 35%, 100% { transform: translateX(380%); } }

/* Липкая нижняя панель */
.bar { position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px max(16px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: linear-gradient(to top, var(--bg) 62%, transparent); }
.chat { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--ink); color: var(--panel); font-weight: 600; font-size: 16px; box-shadow: 0 8px 24px rgba(var(--shadow-rgb), .25); transition: transform .35s var(--spring), box-shadow .3s, background .3s, color .3s; touch-action: manipulation; }
.chat svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.chat:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(var(--shadow-rgb), .3); }
.chat:active { transform: scale(.96); }
.tone-err .chat, .tone-warn .chat { background: var(--err); animation: ring 2.2s ease-out infinite; }
.tone-warn .chat { background: var(--ink); animation: none; }
@keyframes ring { 0% { box-shadow: 0 8px 24px rgba(var(--shadow-rgb), .25), 0 0 0 0 rgba(189, 59, 48, .45); } 70%, 100% { box-shadow: 0 8px 24px rgba(var(--shadow-rgb), .25), 0 0 0 16px rgba(189, 59, 48, 0); } }
.is-finished .chat { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); box-shadow: none; }

.demo { position: fixed; top: 10px; right: 10px; z-index: 120; display: flex; flex-wrap: wrap; gap: 4px; max-width: 46vw; padding: 6px; background: var(--panel); border: 1px solid var(--line-strong); font-size: 11px; }
.demo a { padding: 4px 7px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.demo a.is-on { background: var(--ink); color: var(--panel); }

/* Адаптация */
@media (max-width: 560px) {
  :root { --pw: 86vw; --gap: 12px; }
  .panel { padding: 28px 22px 26px; border-radius: 22px; gap: 16px; }
  .pill { max-width: 40px; padding: 0 10px; } .pill.is-now { max-width: 172px; }
  .o-wide { display: none; }
  .viewport { padding: 16px 0; }
  .bar { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
  .chat { justify-content: center; width: 100%; }
  .row .btn { flex: 1 1 130px; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .panel { min-height: 0; padding: 22px 28px; gap: 12px; border-radius: 20px; }
  .ghost { display: none; }
  h1 { font-size: 34px; }
  .viewport { padding: 12px 0; } .top { gap: 6px; padding-top: 10px; }
  .bar { padding-top: 8px; padding-bottom: 10px; } .chat { min-height: 44px; }
}
@media (min-width: 1400px) { :root { --pw: 640px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }

/* Задания: действие и сумма в одной фразе, сумма отмечена фишкой (небольшой акцент) */
.ask { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; }
.ask--plain { grid-template-columns: 1fr; }
.ask-n { display: grid; place-items: center; width: 30px; height: 30px; margin-top: 4px; border: 1.5px solid var(--ink); border-radius: 50%; font: 600 13px var(--mono); }
.ask-b { display: grid; gap: 10px; justify-items: start; min-width: 0; width: 100%; }
.ask-t { margin: 0; font-size: clamp(25px, 5.2vw, 34px); line-height: 1.2; font-weight: 500; letter-spacing: -.025em; }
.ask-s { margin: -4px 0 0; color: var(--muted); font-size: 15px; }
.num { display: inline-flex; align-items: center; line-height: 1; padding: .25em .42em .09em; margin: 0 .04em; border-radius: .28em; background: var(--ink); color: var(--panel); font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.ask-b .drop { width: 100%; }

/* Соседние панели: содержимое скрыто, название этапа крупно на весь блок */
.peek { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr; padding: 40px; opacity: 0; visibility: hidden; transition: opacity .4s .25s, visibility 0s .25s; pointer-events: none; }
.panel:not(.is-cur) .peek { opacity: 1; visibility: visible; }
.peek-s { font: 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.peek-t { align-self: center; font-size: clamp(42px, 11vw, 92px); font-weight: 300; letter-spacing: -.055em; line-height: .95; overflow-wrap: anywhere; background: linear-gradient(90deg, var(--ink) 0%, rgba(var(--ink-rgb), .2) 96%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.panel.is-past .peek-t { background-image: linear-gradient(90deg, rgba(var(--ink-rgb), .5) 0%, rgba(var(--ink-rgb), .12) 96%); }
.panel:not(.is-cur) > :not(.ghost):not(.peek) { opacity: 0; visibility: hidden; transition: opacity .15s, visibility 0s .15s; }
.panel.is-cur > .peek { transition-delay: 0s; }
@media (max-width: 560px) { .peek { padding: 28px 22px; } .ask { grid-template-columns: 26px 1fr; gap: 10px; } .ask-n { width: 26px; height: 26px; font-size: 12px; } }

/* Фон: точечная сетка, плавно гаснущая к краям, и метки-перекрестия по углам экрана */
.deco { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.deco::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(var(--ink-rgb), .16) 1px, transparent 1.2px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 20%, transparent 78%); mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 20%, transparent 78%); }
.reg { position: absolute; width: 14px; height: 14px; opacity: .45; background: linear-gradient(var(--ink), var(--ink)) center / 100% 1px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1px 100% no-repeat; }
.reg.tl { left: max(14px, env(safe-area-inset-left)); top: max(14px, env(safe-area-inset-top)); }
.reg.tr { right: max(14px, env(safe-area-inset-right)); top: max(14px, env(safe-area-inset-top)); }
.reg.bl { left: max(14px, env(safe-area-inset-left)); bottom: max(14px, env(safe-area-inset-bottom)); }
.reg.br { right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); }
.stage { position: relative; z-index: 1; }

/* Этапы 2–4 (текущий блок): обычный заголовок сверху, содержимое растянуто по высоте равномерно */
.panel--fill { grid-template-rows: auto auto 1fr; align-content: stretch; min-height: clamp(470px, 66vh, 590px); }
.low { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; align-self: stretch; position: relative; }
.low .ask-t { margin: 0; }
.grp { display: grid; gap: 16px; }
.low .check { width: clamp(88px, 22vw, 120px); align-self: flex-start; }
@media (max-width: 560px) { .panel--fill { min-height: min(500px, 64vh); } }
@media (max-height: 560px) and (orientation: landscape) { .panel--fill { min-height: 0; } }

/* Состояния строк списка: ожидает, нужно уточнить, сбой */
.checks li.is-todo { opacity: 1; color: var(--faint); }
.checks li.is-todo .ck { border-style: dashed; }
.checks li.is-warn .ck, .checks li.is-err .ck { background: var(--bad); border-color: var(--bad); color: var(--panel); font: 700 11px var(--mono); }
.checks li.is-warn { --bad: var(--warn); color: var(--warn); } .checks li.is-err { --bad: var(--err); color: var(--err); }
.checks li.is-warn .ck svg, .checks li.is-err .ck svg { display: none; }

/* Самые узкие телефоны (320–360 px): компактные таблетки хода выполнения */
@media (max-width: 360px) {
  .pager { gap: 5px; }
  .pill { max-width: 34px; height: 30px; padding: 0 8px; gap: 6px; font-size: 11px; }
  .pill.is-now { max-width: 150px; }
}

/* ── Телефоны: компактный первый экран ──
   Номер шага стоит в строке с заголовком, остальное на всю ширину; пары кнопок в одну строку */
@media (max-width: 560px) {
  .ask { grid-template-columns: 26px 1fr; row-gap: 12px; align-items: center; }
  .ask-b { display: contents; }
  .ask-b > :not(.ask-t) { grid-column: 1 / -1; }
  .ask-n { margin-top: 0; }
  .ask-t { font-size: clamp(21px, 6.2vw, 25px); }
  .ask-s { margin: -6px 0 0; font-size: 14px; }
  .row { gap: 8px; flex-wrap: nowrap; }
  .row .btn { flex: 1 1 0; min-width: 0; padding: 0 10px; font-size: 15px; white-space: nowrap; }
  .m-hide { display: none; }
  .drop { min-height: 76px; }
  h1 { font-size: clamp(32px, 9.5vw, 40px); }
  .panel { gap: 14px; }
}
.btn { gap: .4em; }
@media (max-width: 560px) { .review { justify-items: stretch; } .review .stars { justify-self: start; } .btn--accent { width: 100%; } }

/* ── Невысокие экраны ноутбуков и планшетов (≤ 860 px по высоте): всё помещается без прокрутки ── */
@media (min-width: 561px) and (max-height: 860px) {
  .top { gap: 8px; padding-top: 12px; }
  .viewport { padding: 8px 0; }
  .panel { padding: 28px 34px 26px; gap: 12px; }
  .panel--fill { min-height: clamp(420px, 64vh, 540px); }
  h1 { font-size: clamp(32px, 5.4vh, 48px); }
  .ask-t { font-size: clamp(22px, 3.6vh, 30px); }
  .ask-b { gap: 8px; }
  .drop { min-height: 62px; }
  .btn, .chat { min-height: 44px; }
  .ghost { font-size: clamp(110px, 20vh, 170px); }
  .peek { padding: 28px 34px; }
  .bar { padding-top: 8px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}
@media (min-width: 561px) and (max-height: 640px) {
  .panel { padding: 22px 30px; }
  .panel--fill { min-height: 0; }
  .checks li { padding: 9px 0; }
  .ghost { font-size: 110px; }
}

/* ── Высокие планшеты (iPad вертикально и т. п.): блок крупнее, чтобы не терялся на большом экране ── */
@media (min-width: 700px) and (min-height: 960px) {
  :root { --pw: min(660px, 84vw); }
  .panel { padding: 48px 48px 44px; gap: 20px; }
  .panel--fill { min-height: 620px; }
  .peek { padding: 48px; }
  h1 { font-size: 62px; }
  .ask-t { font-size: 34px; }
  .lead, .checks li { font-size: 17px; }
}

/* ── «Готово»: мягкое зелёное свечение фона за блоком ── */
:root { --ok-rgb: 52, 168, 103; }
:root[data-theme="dark"] { --ok-rgb: 64, 196, 120; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ok-rgb: 64, 196, 120; } }
.deco::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transform-origin: 50% 48%;
  background:
    radial-gradient(ellipse 55% 45% at 50% 48%, rgba(var(--glow-rgb), .24), transparent 70%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(var(--glow-rgb), .12), transparent 75%);
}
.is-finished .deco::after { opacity: 1; animation: ok-in 1.9s var(--ease) .35s both, ok-breathe 6s ease-in-out 2.6s infinite; }
/* Загорается вместе с прорисовкой галочки (круг 0,4–1,6 с, «птичка» 1,2–1,9 с) и коротко вспыхивает, когда она дорисована */
@keyframes ok-in { 0% { opacity: 0; transform: scale(.82); } 70% { opacity: .85; transform: scale(.98); } 84% { opacity: 1; transform: scale(1.04); } 100% { opacity: .9; transform: none; } }
@keyframes ok-breathe { 0%, 100% { opacity: .9; } 50% { opacity: .6; } }
.is-finished .panel--done.is-cur { border-color: rgba(var(--ok-rgb), .35); box-shadow: 0 24px 80px -30px rgba(var(--ok-rgb), .45); transition: border-color 1s 1.1s, box-shadow 1.2s 1.1s; }
@media (prefers-reduced-motion: reduce) { .is-finished .deco::after { animation: none; } }

/* ── Боевая страница ── */
/* Строка-сведение (сумма к оплате): точка вместо галочки */
.checks li.is-info .ck { border-color: transparent; }
.checks li.is-info .ck::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.checks li.is-info .ck svg { display: none; }

/* Кнопка чата и отзыва: ссылки на страницу заказа площадки */
a.chat, a.btn { text-decoration: none; }
.chat[aria-disabled="true"], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* Детали заказа: раскрываются по нажатию под ходом выполнения */
.facts { position: relative; z-index: 5; font-size: 13px; }
.facts > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; color: var(--muted); font: 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.facts > summary::-webkit-details-marker { display: none; }
.facts > summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform .25s; }
.facts[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.facts > summary:hover { color: var(--ink); }
.facts > summary:focus-visible { outline: 2px solid var(--ink); }
.facts dl { position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); width: min(380px, calc(100vw - 32px)); margin: 0; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: 0 18px 50px -20px rgba(var(--shadow-rgb), .35); display: grid; }
.facts dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); }
.facts dl > div:first-child { border-top: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; font-weight: 500; overflow-wrap: anywhere; color: var(--ink); }

/* Отправка QR: пока идёт запрос */
form[aria-busy="true"] .drop { opacity: .6; }
.drop.has-file .hint { display: none; }
.drop-x { position: absolute; top: 6px; right: 6px; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--panel); color: var(--ink); box-shadow: 0 2px 8px rgba(var(--shadow-rgb), .2); font-size: 18px; line-height: 1; }

/* Страница-сообщение (не найдено, недоступно, слишком много запросов) */
.msg-v2 .viewport { justify-content: center; padding: 16px; }
.msg-card { width: min(560px, 100%); min-height: 0; margin: auto; transform: none; opacity: 1; pointer-events: auto; }

/* ── Свечение фона по состоянию: зелёное «Готово», красное сбой с нашей стороны, янтарное нужна правка покупателя ── */
:root { --glow-rgb: var(--ok-rgb); --err-rgb: 189, 59, 48; --warn-rgb: 222, 158, 40; }
:root[data-theme="dark"] { --err-rgb: 240, 110, 98; --warn-rgb: 230, 180, 80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --err-rgb: 240, 110, 98; --warn-rgb: 230, 180, 80; } }
.tone-err { --glow-rgb: var(--err-rgb); }
.tone-warn { --glow-rgb: var(--warn-rgb); }
.tone-err .deco::after, .tone-warn .deco::after { opacity: 1; animation: ok-in 1.4s var(--ease) .4s both, ok-breathe 6s ease-in-out 2s infinite; }
.tone-err .panel.is-cur, .tone-warn .panel.is-cur { border-color: rgba(var(--glow-rgb), .4); box-shadow: 0 24px 80px -30px rgba(var(--glow-rgb), .5); transition: border-color .8s .5s, box-shadow 1s .5s; }
@media (prefers-reduced-motion: reduce) { .tone-err .deco::after, .tone-warn .deco::after { animation: none; } }
