/* Стили каркаса. Цвета, радиус и шрифт — из темы ниши (переменные в 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; } }

/* ---- calorie-scanner/theme.css ---- */
/* «Кусь»: кухонные весы спортивного человека. Белый фон, чёрная жирная типографика, один горячий акцент,
   плоские плитки без теней, крупные цифры на каждом экране. Слой поверх каркаса: без него ниша остаётся
   рабочей на цветах, радиусе и шрифте из темы. */

@font-face{font-family:"Nunito";font-weight:600;font-style:normal;font-display:swap;src:url(assets/fonts/nunito-latin-600.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212}
@font-face{font-family:"Nunito";font-weight:600;font-style:normal;font-display:swap;src:url(assets/fonts/nunito-cyrillic-600.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Nunito";font-weight:700;font-style:normal;font-display:swap;src:url(assets/fonts/nunito-latin-700.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212}
@font-face{font-family:"Nunito";font-weight:700;font-style:normal;font-display:swap;src:url(assets/fonts/nunito-cyrillic-700.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Nunito";font-weight:900;font-style:normal;font-display:swap;src:url(assets/fonts/nunito-latin-900.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212}
@font-face{font-family:"Nunito";font-weight:900;font-style:normal;font-display:swap;src:url(assets/fonts/nunito-cyrillic-900.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}

/* Цвета макросов те же, что на обложке. Тени и персиковые подложки каркаса выключены: плитки плоские, серые.
   Знаки ₽ и ≈ берутся из системного шрифта стека. */
:root{--protein:#2f6bff;--fat:#ffb000;--carbs:#8b5cf6;
  --shadow:none;--soft:var(--card);--soft-2:#e9e7e1;--line:#e4e2dc;font-weight:600}
h1,h2,h3{font-weight:900;text-wrap:balance}
.eyebrow{font-weight:900;color:var(--muted)}
.fine{font-weight:600}

/* Бренд: значок как иконка приложения */
.brand{font-weight:900;font-size:19px}
.brand-mark{background:var(--accent);border-radius:10px;font-size:18px}

/* Кнопки: одна горячая таблетка на экран */
.cta{border-radius:999px;min-height:60px;font-size:19px;font-weight:900;box-shadow:0 10px 22px -10px color-mix(in srgb,var(--accent) 80%,transparent)}
.cta.ghost{background:var(--bg);color:var(--text);box-shadow:inset 0 0 0 2px var(--text)}
.link{font-weight:700}
.icon-btn{background:var(--card)}

/* Лендинг: обложка 3:2 целиком, боли — строками с горячей точкой */
.hero{border-radius:28px}
.hero img{aspect-ratio:3/2}
.landing h1{font-size:31px;line-height:1.06;margin:18px 0 12px}
.pains{gap:0;margin:12px 0}
.pains li{background:none;border-radius:0;padding:5px 0 5px 22px;font-size:16px;font-weight:700;line-height:1.3}
.pains li::before{content:"";left:2px;top:.78em;transform:none;width:9px;height:9px;background:var(--accent)}
.lead{font-size:15px;line-height:1.4;color:var(--muted);margin:12px 0}
.trust{font-weight:700}

/* Квиз: крупные плоские плитки, выбранная — в чёрной рамке */
.segments i{height:8px;border-radius:4px}
.quiz h2{font-size:30px;line-height:1.08;margin:4px 0 6px}
.options{gap:12px;margin-top:22px}
.option{min-height:76px;padding:14px 18px 14px 14px;border-radius:24px;font-size:18px;font-weight:900}
.option.on{border-color:var(--text);background:var(--card)}
.opt-icon{width:48px;height:48px;border-radius:50%;background:var(--bg);font-size:24px}
.radio{box-shadow:inset 0 0 0 2.5px #c9c7c1;background:var(--bg)}

/* Съёмка: чёрные уголки по краям и круглая «тарелка» в центре */
.capture h2{font-size:28px;line-height:1.1}
.viewfinder{width:236px;height:236px;margin:30px auto 24px;border-radius:0;background:none;overflow:visible}
.viewfinder .c,.scan .c{width:44px;height:44px}
.viewfinder .c{border-color:var(--text)}
.viewfinder .c.tl{left:0;top:0;border-radius:22px 0 0 0}
.viewfinder .c.tr{right:0;top:0;border-radius:0 22px 0 0}
.viewfinder .c.bl{left:0;bottom:0;border-radius:0 0 0 22px}
.viewfinder .c.br{right:0;bottom:0;border-radius:0 0 22px 0}
.vf-icon{display:grid;place-items:center;width:172px;height:172px;border-radius:50%;background:var(--card);font-size:78px;filter:none}
.scanline{box-shadow:none;height:4px}
.tips{gap:6px;font-weight:700;max-width:330px}
.tips li{border-radius:18px;padding:11px 16px}

/* Анализ: фото в кадре, белые уголки поверх */
.scan{border-radius:32px}
.scan::after{background:none}
.scan .c{border-color:#fff}
.scan .c.tl{border-radius:18px 0 0 0}.scan .c.tr{border-radius:0 18px 0 0}.scan .c.bl{border-radius:0 0 0 18px}.scan .c.br{border-radius:0 0 18px 0}
.analyzing h2{font-size:26px}
.checklist li{font-weight:700}

/* Результат: главное число — герой экрана, фото и название блюда строкой над ним */
.result{padding-top:18px}
.result-hero{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px 12px;height:auto;margin:0;overflow:visible;border-radius:0;background:none}
.result-hero::after{display:none}
.result-hero img,.result-hero .ph{grid-row:1;grid-column:1;width:60px;height:60px;border-radius:50%}
.result-hero .ph{font-size:30px;background:var(--card)}
.result-title{display:contents}
.result-title p{grid-row:1;grid-column:2;margin:0;font-style:normal;font-weight:700;font-size:16px;line-height:1.25;opacity:1;color:var(--text)}
.result-title h1{grid-row:2;grid-column:1/-1;margin:0;font-size:clamp(46px,15.6vw,66px);line-height:1;letter-spacing:-.035em;color:var(--accent);text-shadow:none}

/* БЖУ: три «мерных стакана» в ряд, заливка снизу = доля калорий блюда от этого макроса (--meter) */
.facts{grid-template-columns:repeat(3,1fr);gap:8px;margin:18px 0 6px}
.fact{min-height:124px;padding:14px 14px 0;border-radius:24px}
.fact-label{position:relative;z-index:1;margin:0;font-weight:700;white-space:nowrap}
.fact b{position:relative;z-index:1;margin-top:2px;font-size:27px;font-weight:900;line-height:1.1;letter-spacing:-.02em}
.fact[data-key="p"]{--m:var(--protein)}
.fact[data-key="f"]{--m:var(--fat)}
.fact[data-key="c"]{--m:var(--carbs)}
.fact[data-key="p"] .fact-label::before,.fact[data-key="f"] .fact-label::before,.fact[data-key="c"] .fact-label::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--m)}
.fact .meter{position:absolute;left:0;right:0;bottom:0;height:calc(var(--meter)*100%);margin:0;border-radius:0;overflow:visible;background:color-mix(in srgb,var(--m,var(--accent)) 34%,var(--card));border-top:3px solid var(--m,var(--accent))}
.fact .meter::after{display:none}
/* Четвёртый факт (погрешность) — широкая строка под плитками */
.fact[data-key="err"]{grid-column:1/-1;min-height:0;display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 12px;padding:15px 18px;background:var(--bg);box-shadow:inset 0 0 0 2px var(--line)}
.fact[data-key="err"] b{margin:0;font-size:17px;white-space:nowrap}
/* Доля от дневной нормы — широкая строка с горизонтальной шкалой: блюдо как часть дня */
.fact[data-key="day"]{grid-column:1/-1;min-height:0;display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 12px;padding:15px 18px 16px}
.fact[data-key="day"] b{margin:0;font-size:17px;white-space:nowrap}
.fact[data-key="day"] .meter{position:relative;flex:0 0 100%;height:10px;margin-top:10px;border:0;border-radius:5px;overflow:hidden;background:var(--line)}
.fact[data-key="day"] .meter::after{display:block;animation:none;border-radius:5px;background:var(--accent)}

/* Платная часть: чёрная метка, серые плитки, чёрная карточка открытия в конце */
.section-head{margin:26px 0 10px}
.section-head h2{font-size:22px}
.pro{background:var(--text);color:var(--bg);font-weight:900}
.card h3{font-size:17px;line-height:1.2;font-weight:900}
.lock-pill{flex:none;background:var(--bg);color:var(--text)}
.blk-icon{flex:none}
.card p{line-height:1.45}
.card[data-key="items"] .steps,.card[data-key="swaps"] .steps{gap:0;margin-top:10px}
.card[data-key="items"] .steps li,.card[data-key="swaps"] .steps li{padding:10px 0;border-top:2px solid var(--line);font-weight:700;line-height:1.3;text-wrap:pretty}
.card[data-key="items"] .steps li::before,.card[data-key="swaps"] .steps li::before{display:none}
.unlock-card{border:0;background:var(--text);color:var(--bg);padding:18px 20px}
.unlock-card b{color:var(--bg);font-weight:900;font-size:17px}
.unlock-card small{color:var(--accent);font-weight:900;font-size:15px}
.success{box-shadow:inset 0 0 0 2px var(--text);background:var(--bg);margin-top:18px}
.success h3{font-weight:900}

/* Пейволл: число результата крупно над заголовком */
.pw-photo img{width:88px;height:88px;border-radius:50%}
.pw-head .eyebrow{margin-top:10px;font-size:24px;letter-spacing:-.02em;text-transform:none;color:var(--accent)}
.pw-head h1{font-size:27px;line-height:1.08;margin-top:2px}
.checks{margin:16px 0}
.checks li{font-weight:700;line-height:1.3}
.checks .tick{background:var(--text);color:var(--bg)}
.plan{border-radius:22px;background:var(--bg)}
.plan.on{border-color:var(--text);background:var(--card)}
.plan-text b{font-weight:900}
.plan-text small{font-weight:600}
.timeline b{font-weight:900}

/* Скидка: процент — главным числом шторки */
.gift{background:var(--text);border-radius:50%;box-shadow:none}
.sheet .badge{padding:0;border-radius:0;background:none;color:var(--accent);font-size:84px;line-height:1;letter-spacing:-.04em}
.sheet h2{font-size:24px}
.prices s{font-weight:700}
.prices b{color:var(--text);font-size:42px}
