/* Стили каркаса. Цвета, радиус и шрифт — из темы ниши (переменные в index.html),
   своё лицо ниши — apps/<slug>/theme.css, он дописывается после этого файла. */
:root {
  --r: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --soft: color-mix(in srgb, var(--accent) 10%, var(--card));
  --soft-2: color-mix(in srgb, var(--accent) 18%, var(--card));
  --line: color-mix(in srgb, var(--text) 10%, transparent);
  --shadow: 0 1px 2px color-mix(in srgb, var(--text) 6%, transparent), 0 8px 24px color-mix(in srgb, var(--text) 6%, transparent);
  --good: #1f8a4c;
  --bad: #c2410c;
  --warn: #a16207;
  font: 16px/1.45 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.screen { max-width: 480px; margin: 0 auto; padding: 16px 16px 150px; min-height: 100dvh; animation: enter .28s ease both; }
/* только прозрачность: transform на .screen сломал бы position: fixed у нижней панели */
@keyframes enter { from { opacity: 0; } }
h1 { font-size: 28px; line-height: 1.12; margin: 16px 0 10px; letter-spacing: -.025em; font-weight: 800; }
h2 { font-size: 24px; line-height: 1.18; margin: 6px 0 14px; letter-spacing: -.02em; font-weight: 800; }
h3 { font-size: 16px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.muted { color: var(--muted); }
.eyebrow { margin: 18px 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.fine { font-size: 12px; line-height: 1.4; color: var(--muted); text-align: center; margin: 8px 4px 0; }

/* бренд */
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--soft-2); font-size: 17px; }
.brand-mark.big { width: 72px; height: 72px; border-radius: 22px; font-size: 38px; margin: 0 auto; }

/* нижняя панель и кнопки */
.bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; max-width: 480px; margin: 0 auto; padding: 18px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(color-mix(in srgb, var(--bg) 0%, transparent), var(--bg) 26%); }
.cta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; border: 0; border-radius: calc(var(--r) - 2px); padding: 16px 20px; font-size: 18px; font-weight: 750; letter-spacing: -.01em; background: var(--accent); color: var(--accentText); box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--accent) 70%, transparent); transition: transform .12s ease, filter .12s; }
.cta:active { transform: scale(.98); }
.cta:disabled { filter: saturate(.6) opacity(.75); }
.cta.busy::after { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.cta.shine::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .28) 50%, transparent 65%); transform: translateX(-100%); animation: shine 3.2s ease-in-out 1s infinite; }
@keyframes shine { 40%, 100% { transform: translateX(100%); } }
.cta.ghost { background: var(--card); color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.cta.small { min-height: 46px; font-size: 16px; padding: 10px 16px; margin-top: 10px; }
.link { display: block; margin: 6px auto 0; padding: 10px 14px; background: none; border: 0; color: var(--muted); font-size: 15px; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); color: var(--text); font-size: 20px; }

/* лендинг */
.landing .brand { margin-bottom: 14px; }
.hero { position: relative; border-radius: calc(var(--r) + 6px); overflow: hidden; box-shadow: var(--shadow); }
.hero img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hero-chip { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 999px; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 14px; font-weight: 700; box-shadow: var(--shadow); animation: pop .5s .4s cubic-bezier(.2, 1.4, .4, 1) both; }
.chip-dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accentText); font-size: 13px; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.9); } }
.landing h1 { margin-top: 20px; }
.pains { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.pains li { position: relative; padding: 11px 14px 11px 40px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); font-size: 15px; }
.pains li::before { content: "?"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--bad) 14%, var(--card)); color: var(--bad); font-weight: 800; font-size: 12px; }
.lead { font-size: 16px; margin: 14px 0 12px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 13px; font-weight: 600; }
.trust li { display: flex; align-items: center; gap: 5px; }
.trust .ico, .tips .ico { color: var(--accent); stroke-width: 2.6; width: 1em; height: 1em; }

/* квиз */
.top { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.segments { flex: 1; display: flex; gap: 6px; }
.segments i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; position: relative; }
.segments i.done { background: var(--accent); }
.segments i.now::after { content: ""; position: absolute; inset: 0; width: 50%; background: var(--accent); border-radius: 3px; animation: grow .5s ease both; }
@keyframes grow { from { width: 0; } }
.step-n { font-size: 13px; font-weight: 700; color: var(--muted); min-width: 28px; text-align: right; }
.quiz .eyebrow { margin-top: 26px; }
.options { display: grid; gap: 10px; margin-top: 18px; }
.option { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 14px; text-align: left; background: var(--card); border: 2px solid transparent; border-radius: var(--r); box-shadow: var(--shadow); font-size: 17px; font-weight: 600; transition: border-color .15s, background .15s, transform .12s; }
.option:active { transform: scale(.985); }
.option.on { border-color: var(--accent); background: var(--soft); }
.opt-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--soft); font-size: 22px; flex: none; }
.opt-label { flex: 1; }
.radio { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); color: transparent; font-size: 14px; flex: none; transition: .15s; }
.radio .ico { stroke-width: 3; }
.on > .radio { background: var(--accent); box-shadow: none; color: var(--accentText); }

/* съёмка */
.capture { text-align: center; }
.capture .brand { justify-content: center; }
.viewfinder, .scan { position: relative; margin: 26px auto 22px; width: 240px; height: 240px; border-radius: 32px; background: radial-gradient(circle at 50% 40%, var(--soft-2), var(--soft) 70%); display: grid; place-items: center; overflow: hidden; }
.vf-icon { font-size: 88px; filter: drop-shadow(0 8px 16px color-mix(in srgb, var(--text) 18%, transparent)); animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
.c { position: absolute; width: 34px; height: 34px; border: 4px solid var(--accent); z-index: 2; }
.c.tl { left: 14px; top: 14px; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; }
.c.tr { right: 14px; top: 14px; border-left: 0; border-bottom: 0; border-radius: 0 14px 0 0; }
.c.bl { left: 14px; bottom: 14px; border-right: 0; border-top: 0; border-radius: 0 0 0 14px; }
.c.br { right: 14px; bottom: 14px; border-left: 0; border-top: 0; border-radius: 0 0 14px 0; }
.scanline { position: absolute; left: 10%; right: 10%; top: 12%; height: 3px; border-radius: 3px; z-index: 2; background: var(--accent); box-shadow: 0 0 14px 3px color-mix(in srgb, var(--accent) 60%, transparent); animation: scan 2.2s ease-in-out infinite alternate; }
@keyframes scan { to { top: 86%; } }
.viewfinder .scanline { opacity: .45; }
.tips { list-style: none; padding: 0; margin: 16px auto 0; max-width: 320px; display: grid; gap: 8px; text-align: left; font-size: 15px; }
.tips li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.notice { display: flex; gap: 10px; align-items: flex-start; text-align: left; margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--bad) 10%, var(--card)); color: color-mix(in srgb, var(--bad) 80%, var(--text)); font-size: 15px; }
.notice .ico { margin-top: 2px; }

/* анализ */
.analyzing { text-align: center; padding-top: 6vh; }
.scan img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 60%, color-mix(in srgb, var(--accent) 22%, transparent)); }
.checklist { list-style: none; padding: 0; margin: 8px auto 0; max-width: 300px; text-align: left; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--muted); transition: color .2s; }
.checklist .tick { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); color: transparent; font-size: 14px; flex: none; }
.checklist .tick .ico { stroke-width: 3; }
.checklist li.now { color: var(--text); }
.checklist li.now .tick { box-shadow: inset 0 0 0 2.5px var(--accent); border-right: 0; animation: pulse 1s ease-in-out infinite; }
.checklist li.done { color: var(--text); }
.checklist li.done .tick { background: var(--accent); color: var(--accentText); box-shadow: none; animation: pop .3s ease both; }
@keyframes pulse { 50% { box-shadow: inset 0 0 0 2.5px var(--accent), 0 0 0 6px color-mix(in srgb, var(--accent) 15%, transparent); } }

/* результат */
.result { padding-top: 0; }
.result-hero { position: relative; margin: 0 -16px; height: 300px; overflow: hidden; border-radius: 0 0 28px 28px; background: var(--soft-2); }
.result-hero img { width: 100%; height: 100%; object-fit: cover; }
.result-hero .ph { display: grid; place-items: center; height: 100%; font-size: 96px; }
.result-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgb(0 0 0 / .62)); }
.result-title { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; color: #fff; }
.result-title h1 { margin: 0; font-size: 30px; text-shadow: 0 2px 12px rgb(0 0 0 / .3); }
.result-title p { margin: 4px 0 0; font-style: italic; opacity: .9; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 6px; }
.fact { position: relative; overflow: hidden; padding: 12px 14px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.fact-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.fact-icon { font-size: 15px; }
.fact b { display: block; font-size: 15px; font-weight: 650; line-height: 1.3; }
.fact[data-tone="bad"] b { color: var(--bad); }
.fact[data-tone="good"] b { color: var(--good); }
.fact[data-tone="warn"] b { color: var(--warn); }
.fact[data-tone="warn"] { background: color-mix(in srgb, var(--warn) 8%, var(--card)); }
.fact[data-tone="bad"] { background: color-mix(in srgb, var(--bad) 7%, var(--card)); }
.meter { display: block; height: 6px; margin-top: 8px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; }
.meter::after { content: ""; position: absolute; inset: 0; width: calc(var(--meter) * 100%); border-radius: 3px; background: var(--accent); animation: grow .9s .2s ease both; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 8px; }
.section-head h2 { margin: 0; font-size: 20px; }
.pro { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: var(--accent); color: var(--accentText); font-size: 12px; font-weight: 800; }
.pro .ico { width: 13px; height: 13px; stroke-width: 2.6; }
.card { position: relative; margin: 10px 0; padding: 16px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.card p { margin: 0; }
.blk-icon { font-size: 18px; }
.lock-pill { margin-left: auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--soft-2); color: var(--accent); font-size: 14px; }
.blur i { display: block; height: 10px; margin: 10px 0 0; border-radius: 5px; background: linear-gradient(90deg, var(--line), color-mix(in srgb, var(--text) 4%, transparent)); filter: blur(2px); }
.blur i:nth-child(2) { width: 88%; } .blur i:nth-child(3) { width: 64%; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; position: relative; padding-left: 36px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--soft-2); color: var(--accent); font-size: 13px; font-weight: 800; }
.unlock-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin: 12px 0; padding: 16px; text-align: left; border: 2px dashed color-mix(in srgb, var(--accent) 55%, transparent); border-radius: var(--r); background: var(--soft); color: var(--accent); }
.unlock-card span { display: grid; gap: 2px; }
.unlock-card b { font-size: 16px; color: var(--text); }
.unlock-card small { font-size: 14px; font-weight: 700; }
.success { display: flex; gap: 14px; margin-top: 16px; box-shadow: inset 0 0 0 2px var(--accent), var(--shadow); animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.success h3 { font-size: 17px; margin-bottom: 4px; }
.success p { color: var(--muted); font-size: 15px; }
.ok-badge { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accentText); font-size: 20px; flex: none; }
.ok-badge .ico { stroke-width: 3; }
.install-ios { display: flex; align-items: center; gap: 8px; margin-top: 10px !important; font-size: 14px; font-weight: 600; color: var(--accent) !important; }

/* пейволл */
.paywall { padding-top: 12px; padding-bottom: 210px; }
.paywall .close { position: absolute; right: max(16px, calc(50% - 224px)); top: 12px; z-index: 6; width: 34px; height: 34px; font-size: 16px; color: var(--muted); box-shadow: none; background: color-mix(in srgb, var(--text) 6%, transparent); animation: enter .3s 1.2s ease both; }
.pw-head { text-align: center; padding-top: 8px; }
.pw-photo { position: relative; display: inline-block; }
.pw-photo img { width: 84px; height: 84px; border-radius: 26px; object-fit: cover; box-shadow: var(--shadow); }
.pw-photo i { position: absolute; right: -6px; bottom: -6px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accentText); box-shadow: 0 0 0 3px var(--bg); font-size: 15px; }
.pw-photo .ico { stroke-width: 3; }
.pw-head .eyebrow { margin: 12px 0 0; }
.pw-head h1 { margin: 4px 0 0; font-size: 27px; }
.checks { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; font-weight: 550; }
.tick { display: grid; place-items: center; width: 24px; height: 24px; margin-top: -1px; border-radius: 50%; background: var(--soft-2); color: var(--accent); font-size: 13px; flex: none; }
.tick .ico { stroke-width: 3.2; }
.plans { display: grid; gap: 10px; }
.plan { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; text-align: left; background: var(--card); border: 2px solid var(--line); border-radius: var(--r); transition: border-color .15s, background .15s; }
.plan.on { border-color: var(--accent); background: var(--soft); }
.plan-text { display: grid; gap: 1px; }
.plan-text b { font-size: 17px; }
.plan-text small { font-size: 14px; color: var(--muted); }
.plan-badge { position: absolute; right: 12px; top: -11px; padding: 3px 9px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 11px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.timeline { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 0; }
.timeline li { position: relative; display: flex; gap: 12px; padding-bottom: 14px; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: linear-gradient(var(--accent), var(--line)); }
.timeline .dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--soft-2); color: var(--accent); font-size: 14px; flex: none; }
.timeline li.now .dot { background: var(--accent); color: var(--accentText); }
.timeline .dot .ico { stroke-width: 2.8; }
.timeline b { display: block; font-size: 15px; }
.timeline small { display: block; font-size: 14px; color: var(--muted); line-height: 1.35; }
.secure { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 4px; }
.secure .ico { width: 14px; height: 14px; }

/* скидка: шторка поверх пейволла */
.sheet-wrap { position: fixed; inset: 0; z-index: 20; }
.scrim { position: absolute; inset: 0; background: rgb(0 0 0 / .45); opacity: 0; transition: opacity .25s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto; padding: 30px 20px calc(16px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: var(--bg); text-align: center; transform: translateY(100%); transition: transform .32s cubic-bezier(.2, .9, .3, 1); }
.sheet-wrap.open .scrim { opacity: 1; }
.sheet-wrap.open .sheet { transform: none; }
.gift { display: grid; place-items: center; width: 64px; height: 64px; margin: -64px auto 10px; border-radius: 20px; background: var(--accent); color: var(--accentText); font-size: 32px; box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.badge { display: inline-block; padding: 6px 16px; border-radius: 999px; background: color-mix(in srgb, var(--bad) 12%, var(--card)); color: var(--bad); font-size: 22px; font-weight: 900; }
.sheet h2 { margin: 12px 0 6px; }
.prices { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin: 4px 0 18px; }
.prices s { color: var(--muted); font-size: 20px; }
.prices b { color: var(--accent); font-size: 36px; font-weight: 900; letter-spacing: -.02em; }

/* статусы оплаты */
.status { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 80dvh; }
.status-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 24px; background: var(--soft-2); color: var(--accent); font-size: 34px; }
.status.failed .status-icon { background: color-mix(in srgb, var(--bad) 12%, var(--card)); color: var(--bad); }
.status-text { max-width: 300px; margin: 18px auto 0; font-size: 17px; font-weight: 600; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--soft-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* подвал и управление подпиской */
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 22px 0 0; }
.foot-link { padding: 6px 4px; background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.subscription h1 { margin-top: 20px; }
.sub-card { padding: 18px; }
.sub-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.sub-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--text) 8%, var(--card)); color: var(--muted); font-size: 13px; font-weight: 750; }
.sub-badge .ico { width: 14px; height: 14px; stroke-width: 3; }
.sub-badge[data-status="active"] { background: color-mix(in srgb, var(--good) 14%, var(--card)); color: var(--good); }
.sub-badge[data-status="canceled"] { background: color-mix(in srgb, var(--warn) 14%, var(--card)); color: var(--warn); }
.sub-rows { margin: 14px 0 0; display: grid; gap: 0; }
.sub-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.sub-row dt { color: var(--muted); font-size: 14px; font-weight: 600; }
.sub-row dd { margin: 0; text-align: right; font-size: 15px; font-weight: 700; }
.sub-note { margin: 14px 0 0 !important; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.45; }
.sub-card:not(:has(.sub-rows)) .sub-note { border-top: 0; padding-top: 4px; }
.sub-multi { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.sub-multi-title { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px !important; }
.sub-multi-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.sub-multi-list li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.sub-feedback { margin: 12px 0 14px; }
.cta.danger-outline { background: var(--card); color: var(--bad); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--bad) 55%, transparent); }
.cta.danger { background: var(--bad); color: #fff; box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--bad) 65%, transparent); }
.sub-confirm-text { margin: 8px 0 20px; color: var(--muted); font-size: 15px; line-height: 1.45; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---- pdf-to-word/theme.css ---- */
/* Лицо ниши «PDF в Word»: деловая бумага, акцент Word-индиго и живой лист предпросмотра 390×844 */
.pw-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin-top: 10px;
}
.dropzone {
  margin: 14px 0;
  padding: 20px 16px;
  border-radius: calc(var(--r) + 4px);
  border: 2px dashed color-mix(in srgb, var(--accent) 42%, transparent);
  background: linear-gradient(180deg, var(--card), color-mix(in srgb, var(--accent) 4%, var(--card)));
  box-shadow: var(--shadow);
  text-align: center;
  transition: border-color .15s, background .15s, transform .12s;
  cursor: pointer;
}
.dropzone.drag {
  border-color: var(--accent);
  background: var(--soft);
  transform: scale(.99);
}
.dz-icons {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.fmt-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
}
.fmt-pill.pdf {
  background: #fee2e2;
  color: #b91c1c;
}
.fmt-pill.docx {
  background: #dbeafe;
  color: #1d4ed8;
}
.dz-arrow {
  color: var(--muted);
  font-weight: 800;
}
.dropzone b {
  display: block;
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 4px;
}
.dropzone small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.free-note {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
}

.samples-box {
  margin: 12px 0 14px;
}
.samples-box > span {
  display: block;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 7px;
}
.sample-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.sample-chip {
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
  box-shadow: 0 1px 2px rgb(15 23 42 / .04);
}
.sample-chip:active {
  transform: scale(.97);
}

/* Экран результата и предпросмотра документа */
.doc-screen {
  padding-top: 14px;
  padding-bottom: 185px;
}
.doc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--card);
  font-size: 13px;
  font-weight: 650;
}
.doc-summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--shadow);
}
.word-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(145deg, #2563eb, #1e40af);
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  flex: none;
}
.doc-meta {
  min-width: 0;
  flex: 1;
}
.doc-meta h1 {
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 6px;
  word-break: break-word;
}
.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.meta-pill.accent {
  background: var(--soft);
  color: var(--accent);
}
.sandbox-pill {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fef3c7;
  color: #92400e;
  font-size: 12.5px;
  font-weight: 650;
}
.lock-banner {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 9%, var(--card));
  border: 1.5px solid color-mix(in srgb, var(--accent) 28%, transparent);
  font-size: 13.5px;
  line-height: 1.4;
}

.batch-list {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}
.batch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 13px;
  background: var(--card);
  border: 1.5px solid var(--line);
  text-align: left;
}
.batch-row.on {
  border-color: var(--accent);
  background: var(--soft);
}
.batch-row b {
  display: block;
  font-size: 14px;
  word-break: break-word;
}
.batch-row small {
  color: var(--muted);
  font-size: 12px;
}
.dl-chip {
  padding: 6px 10px;
  border-radius: 10px;
  border: 0;
  background: var(--accent);
  color: var(--accentText);
  font-size: 12.5px;
  font-weight: 700;
  flex: none;
}

.page-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 6px;
  margin-top: 14px;
  scrollbar-width: none;
}
.page-tabs::-webkit-scrollbar { display: none; }
.page-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--card);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--muted);
}
.page-tab.on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accentText);
}
.page-tab .ico {
  width: 12px;
  height: 12px;
}

.paper-sheet {
  margin-top: 8px;
  padding: 18px 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid color-mix(in srgb, var(--text) 9%, transparent);
  box-shadow: 0 6px 20px rgb(15 23 42 / .06);
}
.paper-sheet h3 {
  font-size: 16.5px;
  line-height: 1.3;
  margin: 0 0 10px;
  color: #0f172a;
}
.paper-sheet h4 {
  font-size: 14.5px;
  line-height: 1.35;
  margin: 12px 0 6px;
  color: #1e293b;
}
.paper-sheet p {
  font-size: 14.5px;
  line-height: 1.52;
  margin: 0 0 10px;
  color: #1e293b;
}
.paper-sheet ul {
  margin: 0 0 10px;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.48;
  color: #1e293b;
}
.paper-lock {
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  background: var(--bg);
  text-align: center;
}
.paper-lock p {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0;
}
.toast-ok {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #dcfce7;
  color: #166534;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
}
.bottom-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.bottom-actions button {
  flex: 1;
}
