/* ==========================================================================
   AntiFake — дизайн-система
   ========================================================================== */
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

:root {
  --bg: #06070c;
  --bg-2: #0b0d16;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-3: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --text: #eceef7;
  --text-2: #b7bcd0;
  --muted: #7d839b;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --pink: #f472b6;
  --green: #34d399;
  --lime: #a3e635;
  --yellow: #fbbf24;
  --orange: #fb923c;
  --red: #f43f5e;
  --grad: linear-gradient(120deg, var(--cyan), var(--violet) 55%, var(--pink));
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea { font: inherit; color: inherit; }
::selection { background: rgba(139, 92, 246, 0.45); }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

/* ---------- фон ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.b1 { width: 620px; height: 620px; background: radial-gradient(circle, rgba(34, 211, 238, .55), transparent 65%); top: -220px; left: -160px; animation: drift1 22s ease-in-out infinite alternate; }
.b2 { width: 700px; height: 700px; background: radial-gradient(circle, rgba(139, 92, 246, .55), transparent 65%); top: -120px; right: -260px; animation: drift2 26s ease-in-out infinite alternate; }
.b3 { width: 560px; height: 560px; background: radial-gradient(circle, rgba(244, 114, 182, .35), transparent 65%); bottom: -260px; left: 30%; animation: drift3 30s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(180px, 140px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-200px, 180px) scale(.9); } }
@keyframes drift3 { to { transform: translate(-160px, -120px) scale(1.2); } }
.grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
}
.noise { position: absolute; inset: 0; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- шапка ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  backdrop-filter: blur(16px) saturate(140%);
  background: linear-gradient(to bottom, rgba(6, 7, 12, .8), rgba(6, 7, 12, .35));
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; }
.brand-mark { position: relative; width: 34px; height: 34px; display: grid; place-items: center; }
.brand-mark svg { width: 30px; height: 30px; filter: drop-shadow(0 4px 14px rgba(139, 92, 246, .6)); }
.brand-scan { position: absolute; left: 3px; right: 3px; height: 2px; background: #fff; box-shadow: 0 0 10px #fff, 0 0 20px var(--cyan); border-radius: 2px; animation: brandscan 3.2s ease-in-out infinite; opacity: .8; }
@keyframes brandscan { 0%, 100% { top: 6px; opacity: 0; } 15% { opacity: .9; } 50% { top: 26px; opacity: .9; } 65% { opacity: 0; } }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.brand-name b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.topnav { display: flex; gap: 6px; }
.nav-btn { position: relative; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; color: var(--text-2); transition: background .25s, color .25s; }
.nav-btn:hover { background: var(--surface-2); color: var(--text); }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.key-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 3px rgba(255,255,255,.05); }
.key-dot.ok { background: var(--green); box-shadow: 0 0 10px var(--green); }
.key-dot.bad { background: var(--red); box-shadow: 0 0 10px var(--red); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- виды ---------- */
main { width: min(1200px, 100%); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 80px; }
.view { display: none; }
.view.is-active { display: block; animation: viewIn .6s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- герой ---------- */
.hero { text-align: center; padding: clamp(48px, 9vh, 110px) 0 40px; display: flex; flex-direction: column; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.hero-title { font-family: var(--font-display); font-size: clamp(36px, 7.2vw, 84px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; margin: 22px 0 18px; max-width: 14ch; }
.glitch { position: relative; display: inline-block; background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; background: inherit; -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0; }
.glitch::before { animation: glitchA 5s infinite steps(1); }
.glitch::after { animation: glitchB 5s infinite steps(1); }
@keyframes glitchA { 0%, 92%, 100% { opacity: 0; transform: none; clip-path: none; } 93% { opacity: .8; transform: translate(-4px, 1px); clip-path: inset(10% 0 55% 0); filter: hue-rotate(90deg); } 95% { opacity: .8; transform: translate(3px, -2px); clip-path: inset(60% 0 10% 0); } 97% { opacity: 0; } }
@keyframes glitchB { 0%, 93%, 100% { opacity: 0; transform: none; clip-path: none; } 94% { opacity: .7; transform: translate(4px, 0); clip-path: inset(35% 0 35% 0); filter: hue-rotate(-90deg); } 96% { opacity: .7; transform: translate(-3px, 2px); clip-path: inset(0 0 80% 0); } 98% { opacity: 0; } }
.hero-sub { color: var(--text-2); font-size: clamp(15px, 1.8vw, 18px); max-width: 680px; margin: 0 0 36px; }

/* ---------- форма проверки ---------- */
.probe { position: relative; width: min(820px, 100%); border-radius: 24px; padding: 1.5px; text-align: left; }
.probe-glow { position: absolute; inset: 0; border-radius: inherit; background: conic-gradient(from var(--angle), transparent 0 40%, var(--cyan), var(--violet), var(--pink), transparent 70% 100%); animation: spin 5s linear infinite; opacity: .9; }
.probe-glow::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: inherit; filter: blur(26px); opacity: .45; }
@keyframes spin { to { --angle: 360deg; } }
.probe-inner { position: relative; border-radius: 23px; background: linear-gradient(180deg, rgba(16, 18, 30, .96), rgba(10, 11, 20, .97)); padding: 14px; box-shadow: var(--shadow); }
.tabs { position: relative; display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; }
.tab { position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; transition: color .3s; }
.tab .i { width: 16px; height: 16px; }
.tab.is-active { color: var(--text); }
.tab-ink { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--border-2); transition: transform .45s var(--ease), width .45s var(--ease); }
.mode { display: none; }
.mode.is-active { display: block; animation: viewIn .4s var(--ease) both; }
.url-field { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); transition: border-color .25s, box-shadow .25s; }
.url-field:focus-within, textarea:focus { border-color: rgba(139, 92, 246, .6); box-shadow: 0 0 0 4px rgba(139, 92, 246, .15); }
.url-field .lead { color: var(--muted); }
.url-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 12px 0; font-size: 16px; }
.platform-chip { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-3); color: var(--text); animation: pop .35s var(--ease); white-space: nowrap; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
textarea { width: 100%; resize: vertical; min-height: 140px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); outline: 0; font-size: 15px; line-height: 1.55; transition: border-color .25s, box-shadow .25s; }
.counter { text-align: right; color: var(--muted); font-size: 12px; margin-top: 4px; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 16px; border-radius: 14px; border: 1.5px dashed var(--border-2); background: var(--surface); cursor: pointer; transition: border-color .25s, background .25s, transform .25s; text-align: center; }
.drop:hover, .drop.drag { border-color: var(--violet); background: rgba(139, 92, 246, .08); }
.drop.drag { transform: scale(1.01); }
.drop-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); box-shadow: 0 10px 30px -8px rgba(139, 92, 246, .7); margin-bottom: 6px; }
.drop-icon .i { width: 24px; height: 24px; color: #fff; }
.drop-title { font-weight: 700; }
.drop-sub { color: var(--muted); font-size: 13px; }
.drop-file { margin-top: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface-3); font-size: 13px; font-weight: 600; }
.probe-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.toggles { display: flex; gap: 16px; flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-2); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.track { width: 36px; height: 20px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border-2); position: relative; transition: background .3s; }
.thumb { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.switch input:checked + .track { background: var(--grad); border-color: transparent; }
.switch input:checked + .track .thumb { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--violet); outline-offset: 2px; }

.cta { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 9px; padding: 13px 26px; border-radius: 14px; background: var(--grad); background-size: 160% 100%; color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .01em; box-shadow: 0 12px 34px -10px rgba(139, 92, 246, .8), inset 0 1px 0 rgba(255,255,255,.3); transition: transform .25s var(--ease), box-shadow .25s, background-position .6s; }
.cta:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 18px 40px -10px rgba(139, 92, 246, .95), inset 0 1px 0 rgba(255,255,255,.3); }
.cta:active { transform: translateY(0) scale(.98); }
.cta:disabled { opacity: .6; cursor: progress; }
.cta .i { width: 18px; height: 18px; stroke-width: 2.2; }
.cta-shine { position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: shine 3.6s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.cta.small { padding: 10px 20px; font-size: 14px; }
.ghost-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text-2); font-weight: 600; font-size: 13px; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.ghost-btn:hover { background: var(--surface-3); color: var(--text); }
.ghost-btn:active { transform: scale(.97); }
.ghost-btn.danger:hover { border-color: rgba(244, 63, 94, .5); color: #fda4af; }
.url-field .ghost-btn { padding: 9px; border: 0; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--text-2); transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.link-btn { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-weight: 600; margin-top: 22px; padding: 6px 10px; border-radius: 10px; transition: color .2s, background .2s; }
.link-btn:hover { color: var(--text); background: var(--surface-2); }
.link-btn.small { margin: 0; font-size: 12px; padding: 3px 8px; }

.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; color: var(--muted); font-size: 13px; align-items: center; }
.platforms i { font-style: normal; padding: 4px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }

/* ---------- блоки главной ---------- */
.section-title { font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 38px); letter-spacing: -.02em; text-align: center; margin: 80px 0 10px; font-weight: 600; }
.section-sub { text-align: center; color: var(--text-2); max-width: 640px; margin: 0 auto 36px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.feature { position: relative; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: transform .4s var(--ease), border-color .3s, background .3s; }
.feature::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(139, 92, 246, .16), transparent 45%); opacity: 0; transition: opacity .3s; }
.feature:hover { transform: translateY(-4px); border-color: var(--border-2); }
.feature:hover::before { opacity: 1; }
.f-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 14px; background: var(--surface-3); border: 1px solid var(--border-2); }
.f-icon .i { width: 21px; height: 21px; stroke: url(#g-accent); stroke-width: 2; }
.feature b { display: block; font-size: 16px; margin-bottom: 4px; }
.feature p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; counter-reset: s; }
.how-steps li { padding: 24px; border-radius: var(--radius); background: linear-gradient(180deg, var(--surface-2), transparent); border: 1px solid var(--border); }
.how-n { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }
.how-steps b { font-size: 16px; }
.how-steps p { color: var(--muted); font-size: 13.5px; margin: 6px 0 0; }

/* ---------- процесс ---------- */
.run { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 32px; padding-top: 40px; align-items: start; }
.run-left { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 18px; }
.scanner { position: relative; width: min(340px, 80vw); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.scan-ring { position: absolute; border-radius: 50%; border: 1px solid var(--border-2); }
.r1 { inset: 0; border-style: dashed; animation: rot 40s linear infinite; }
.r2 { inset: 12%; border-color: rgba(34, 211, 238, .3); animation: rot 18s linear infinite reverse; border-top-color: var(--cyan); border-width: 2px; }
.r3 { inset: 24%; border-color: rgba(139, 92, 246, .3); animation: rot 9s linear infinite; border-right-color: var(--violet); border-width: 2px; }
@keyframes rot { to { transform: rotate(360deg); } }
.scan-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 75%, rgba(34, 211, 238, .0) 75%, rgba(34, 211, 238, .35) 99%, var(--cyan) 100%); animation: rot 2.6s linear infinite; mask: radial-gradient(circle, transparent 35%, #000 36%); }
.scanner.done .scan-sweep, .scanner.done .scan-ring { animation-play-state: paused; opacity: .4; }
.scan-core { position: relative; width: 48%; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(circle at 30% 25%, rgba(139, 92, 246, .35), rgba(10, 11, 20, .95) 70%); border: 1px solid var(--border-2); box-shadow: 0 0 60px -10px rgba(139, 92, 246, .6), inset 0 0 30px rgba(34, 211, 238, .15); }
.scan-pct { font-family: var(--font-display); font-size: 42px; font-weight: 700; line-height: 1; }
.scan-pct small { font-size: 18px; color: var(--muted); }
.scan-label { color: var(--text-2); font-size: 12px; margin-top: 8px; max-width: 120px; line-height: 1.3; }
.run-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.run-cost { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; font-family: var(--font-mono); }
.run-cost .sep { opacity: .4; }
.run-title { font-family: var(--font-display); font-size: 26px; font-weight: 600; margin: 4px 0 18px; letter-spacing: -.02em; }

.stages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.stage { position: relative; display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); transition: background .4s, border-color .4s, opacity .4s, transform .4s var(--ease); opacity: .55; animation: stageIn .6s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes stageIn { from { opacity: 0; transform: translateX(16px); } }
.stage.running { opacity: 1; background: linear-gradient(90deg, rgba(139, 92, 246, .14), var(--surface)); border-color: rgba(139, 92, 246, .45); }
.stage.running::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent) -200% 0 / 50% 100% no-repeat; animation: borderRun 1.6s linear infinite; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; -webkit-mask-composite: xor; }
@keyframes borderRun { to { background-position: 300% 0; } }
.stage.done, .stage.error, .stage.skipped { opacity: 1; }
.stage.skipped { opacity: .5; }
.st-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); position: relative; }
.st-icon .i { width: 19px; height: 19px; color: var(--muted); }
.stage.running .st-icon { border-color: transparent; }
.stage.running .st-icon::before { content: ''; position: absolute; inset: -1px; border-radius: 12px; border: 2px solid transparent; border-top-color: var(--cyan); border-right-color: var(--violet); animation: rot .9s linear infinite; }
.stage.running .st-icon .i { color: var(--text); }
.stage.done .st-icon { background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .4); }
.stage.done .st-icon .i { color: var(--green); }
.stage.error .st-icon { background: rgba(244, 63, 94, .12); border-color: rgba(244, 63, 94, .4); }
.stage.error .st-icon .i { color: var(--red); }
.st-check { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.st-title { font-weight: 700; font-size: 14.5px; }
.st-desc { color: var(--muted); font-size: 12.5px; line-height: 1.4; overflow-wrap: anywhere; }
.stage.done .st-desc { color: var(--text-2); }
.stage.error .st-desc { color: #fda4af; }
.st-state { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-family: var(--font-mono); white-space: nowrap; }
.stage.running .st-state { color: var(--cyan); }
.stage.done .st-state { color: var(--green); }
.stage.error .st-state { color: var(--red); }
.st-progress { grid-column: 2 / 4; height: 3px; border-radius: 3px; background: var(--surface-3); overflow: hidden; margin-top: -4px; }
.st-progress > i { display: block; height: 100%; background: var(--grad); width: 0; transition: width .5s var(--ease); }

.terminal { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, .45); border: 1px solid var(--border); font-family: var(--font-mono); font-size: 12.5px; color: var(--text-2); max-height: 210px; overflow: auto; }
.terminal .ln { display: flex; gap: 10px; animation: lnIn .35s var(--ease) both; }
@keyframes lnIn { from { opacity: 0; transform: translateY(4px); } }
.terminal .t { color: var(--muted); flex: none; }
.terminal .ln.err { color: #fda4af; }
.terminal .ln.ok { color: #86efac; }
.terminal .cursor { display: inline-block; width: 7px; height: 14px; background: var(--cyan); animation: blink 1s steps(1) infinite; vertical-align: -2px; }

/* ---------- карточки ---------- */
.card { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); padding: 22px; backdrop-filter: blur(6px); }
.preview { padding: 16px; animation: viewIn .5s var(--ease) both; }
.pv-thumb { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; background: #000; margin-bottom: 12px; }
.pv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-thumb::after { content: ''; position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(to bottom, transparent, rgba(34, 211, 238, .35), transparent); animation: scanY 2.4s linear infinite; }
.scanner.done ~ * .pv-thumb::after, .preview.static .pv-thumb::after { display: none; }
@keyframes scanY { from { top: -30%; } to { top: 100%; } }
.pv-title { font-weight: 700; line-height: 1.35; }
.pv-meta { color: var(--muted); font-size: 12.5px; margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.filmstrip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 10px; }
.filmstrip figure { margin: 0; position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 16/10; background: #000; animation: pop .4s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.filmstrip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.filmstrip figcaption { position: absolute; right: 3px; bottom: 2px; font-size: 10px; font-family: var(--font-mono); background: rgba(0,0,0,.65); padding: 0 4px; border-radius: 4px; }

/* ---------- отчёт ---------- */
.report { padding-top: 36px; display: flex; flex-direction: column; gap: 18px; }
.demo-banner { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .35); color: #fde68a; font-size: 13.5px; }
.verdict-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: center; padding: 30px; border-radius: 24px; background: linear-gradient(140deg, color-mix(in srgb, var(--vc) 16%, transparent), rgba(255,255,255,.02) 55%); border: 1px solid color-mix(in srgb, var(--vc) 40%, transparent); }
.verdict-hero::before { content: ''; position: absolute; width: 420px; height: 420px; left: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--vc) 40%, transparent), transparent 65%); filter: blur(40px); opacity: .6; pointer-events: none; }
.gauge { position: relative; width: 240px; height: 240px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(135deg); overflow: visible; }
.gauge .g-bg { fill: none; stroke: var(--surface-3); stroke-width: 14; stroke-linecap: round; }
.gauge .g-fg { fill: none; stroke: var(--vc); stroke-width: 14; stroke-linecap: round; filter: drop-shadow(0 0 12px var(--vc)); transition: stroke-dashoffset 1.8s var(--ease); }
.gauge .g-ticks { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 2; stroke-dasharray: 1 9.8; }
.gauge-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge-num { font-family: var(--font-display); font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.gauge-cap { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; margin-top: 6px; font-weight: 700; }
.v-label { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-weight: 800; font-size: 13px; letter-spacing: .03em; text-transform: uppercase; background: color-mix(in srgb, var(--vc) 18%, transparent); color: var(--vc); border: 1px solid color-mix(in srgb, var(--vc) 45%, transparent); }
.v-label .i { width: 16px; height: 16px; stroke-width: 2.4; }
.v-headline { font-family: var(--font-display); font-size: clamp(22px, 2.8vw, 32px); line-height: 1.2; letter-spacing: -.02em; margin: 14px 0 12px; font-weight: 600; }
.v-headline.long { font-size: clamp(17px, 1.9vw, 22px); line-height: 1.35; }
.v-label { max-width: 100%; text-align: left; line-height: 1.35; }
.v-summary { color: var(--text-2); margin: 0; font-size: 15.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip { padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-3); border: 1px solid var(--border-2); color: var(--text-2); }
.chip.red { background: rgba(244, 63, 94, .14); border-color: rgba(244, 63, 94, .4); color: #fda4af; }
.chip.green { background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .35); color: #86efac; }
.chip.yellow { background: rgba(251, 191, 36, .12); border-color: rgba(251, 191, 36, .35); color: #fde68a; }
.v-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; color: var(--muted); font-size: 12.5px; }
.v-meta span { display: inline-flex; align-items: center; gap: 6px; }
.v-meta .i { width: 15px; height: 15px; }

.subnav { position: sticky; top: 66px; z-index: 10; display: flex; gap: 6px; overflow-x: auto; padding: 8px; margin: 0 -8px; border-radius: 14px; background: rgba(6, 7, 12, .7); backdrop-filter: blur(14px); scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 7px 13px; border-radius: 10px; color: var(--text-2); font-size: 13px; font-weight: 600; text-decoration: none; transition: background .2s, color .2s; }
.subnav a:hover, .subnav a.on { background: var(--surface-3); color: var(--text); }

.criteria { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.crit { padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); transition: transform .3s var(--ease), border-color .3s; }
.crit:hover { transform: translateY(-3px); border-color: var(--border-2); }
.crit-head { display: flex; align-items: center; gap: 9px; color: var(--text-2); font-size: 13px; font-weight: 700; }
.crit-head .i { width: 17px; height: 17px; color: var(--sc, var(--muted)); }
.crit-score { font-family: var(--font-display); font-size: 28px; font-weight: 700; margin: 10px 0 8px; color: var(--sc, var(--muted)); line-height: 1; }
.crit-score small { font-size: 13px; color: var(--muted); font-weight: 600; font-family: var(--font); margin-left: 2px; }
.crit.na { opacity: .5; }
.bar { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--sc, var(--violet)); box-shadow: 0 0 12px var(--sc, var(--violet)); transition: width 1.4s var(--ease); }
.crit-note { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.4; }

.sec { scroll-margin-top: 130px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-title { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.sec-title .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--border-2); }
.sec-title .ic .i { stroke: url(#g-accent); stroke-width: 2; }
.sec-sub { color: var(--muted); font-size: 13px; }
.muted { color: var(--muted); }
.empty { color: var(--muted); font-size: 14px; padding: 8px 0; }

.findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.findings li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 14.5px; }
.findings .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; flex: none; }
.findings .red .dot { background: var(--red); box-shadow: 0 0 10px var(--red); }
.findings .yellow .dot { background: var(--yellow); box-shadow: 0 0 10px var(--yellow); }
.findings .green .dot { background: var(--green); box-shadow: 0 0 10px var(--green); }
.truth { margin-top: 14px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(120deg, rgba(52, 211, 153, .12), rgba(52, 211, 153, .02)); border: 1px solid rgba(52, 211, 153, .3); }
.truth b { color: #86efac; display: flex; gap: 8px; align-items: center; margin-bottom: 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.recs { margin: 12px 0 0; padding-left: 20px; color: var(--text-2); }
.recs li { margin: 4px 0; }

.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(244, 63, 94, .1); border: 1px solid rgba(244, 63, 94, .35); margin-bottom: 14px; }
.alert .i { color: var(--red); margin-top: 2px; }
.alert.warn { background: rgba(251, 191, 36, .08); border-color: rgba(251, 191, 36, .3); }
.alert.warn .i { color: var(--yellow); }

.cmp { display: grid; gap: 10px; }
.cmp-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.cmp-cell { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; }
.cmp-cell .lbl { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--muted); margin-bottom: 6px; }
.cmp-cell.claimed { border-left: 3px solid var(--mc); }
.cmp-cell.orig { border-left: 3px solid var(--green); }
.cmp-mid { display: grid; place-items: center; }
.cmp-badge { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--mc); text-align: center; width: 92px; }
.cmp-badge .i { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: color-mix(in srgb, var(--mc) 18%, transparent); border: 1px solid color-mix(in srgb, var(--mc) 45%, transparent); stroke-width: 2.2; }
.cmp-note { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); margin: -4px 4px 4px; }
.orig-says { padding: 16px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border-2); margin-bottom: 14px; position: relative; }
.orig-says .i { position: absolute; right: 14px; top: 14px; width: 30px; height: 30px; opacity: .25; }
.orig-says b { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--cyan); }
.orig-says p { margin: 6px 0 0; }
.orig-list { display: grid; gap: 8px; margin-top: 14px; }

.link-card { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none !important; transition: background .2s, border-color .2s, transform .25s var(--ease); min-width: 0; }
.link-card:hover { background: var(--surface-3); border-color: var(--border-2); transform: translateX(3px); }
.fav { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; flex: none; text-transform: uppercase; }
.lc-body { min-width: 0; flex: 1; }
.lc-title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-host { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-tags { display: flex; gap: 4px; flex: none; }
.lc-tags .chip { font-size: 10.5px; padding: 2px 8px; }
.link-card > .i { color: var(--muted); }

.claims { display: grid; gap: 12px; }
.claim { border-radius: 16px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: border-color .3s; }
.claim:hover { border-color: var(--border-2); }
.claim-top { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding: 16px 18px; cursor: pointer; }
.claim-n { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: 13px; background: var(--surface-3); color: var(--text-2); }
.claim-text { font-weight: 600; font-size: 15px; line-height: 1.45; }
.claim-sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.vbadge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; color: var(--vc); background: color-mix(in srgb, var(--vc) 15%, transparent); border: 1px solid color-mix(in srgb, var(--vc) 40%, transparent); }
.claim-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.claim.open .claim-body { grid-template-rows: 1fr; }
.claim-body > div { overflow: hidden; }
.claim-inner { padding: 0 18px 18px 62px; display: grid; gap: 12px; }
.claim-inner p { margin: 0; color: var(--text-2); font-size: 14px; }
.quote { padding: 10px 14px; border-left: 3px solid var(--violet); background: rgba(139, 92, 246, .08); border-radius: 0 10px 10px 0; font-style: italic; color: var(--text-2); font-size: 14px; }
.correct { padding: 10px 14px; border-radius: 10px; background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .25); font-size: 14px; }
.correct b { color: #86efac; }
.conf { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.conf .bar { flex: 1; max-width: 200px; height: 4px; }
.chev { transition: transform .35s var(--ease); color: var(--muted); }
.claim.open .chev { transform: rotate(180deg); }
.claim-right { display: flex; align-items: center; gap: 10px; }

.ai-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.mini-gauge { padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; gap: 16px; }
.mini-gauge svg { width: 78px; height: 78px; transform: rotate(-90deg); flex: none; }
.mini-gauge .mg-bg { fill: none; stroke: var(--surface-3); stroke-width: 8; }
.mini-gauge .mg-fg { fill: none; stroke: var(--sc); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1.6s var(--ease); filter: drop-shadow(0 0 6px var(--sc)); }
.mg-num { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--sc); line-height: 1; }
.mg-lbl { font-size: 13px; color: var(--text-2); font-weight: 700; margin-top: 4px; }
.mg-sub { font-size: 12px; color: var(--muted); }
.mini-gauge.na { opacity: .45; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.list-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; margin: 0 0 8px; }
.sig-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sig-list li { padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 13.5px; }
.sig-list li small { display: block; color: var(--muted); font-style: italic; margin-top: 3px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-bottom: 14px; }
.metric { padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.metric b { display: block; font-family: var(--font-mono); font-size: 17px; }
.metric span { font-size: 11.5px; color: var(--muted); }

.meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.meter { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.meter-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 8px; }
.meter-top b { color: var(--sc); font-family: var(--font-mono); }
.tech { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.sev { display: flex; gap: 3px; margin-top: 6px; }
.sev i { width: 6px; height: 16px; border-radius: 3px; background: var(--surface-3); }
.sev i.on { background: var(--orange); box-shadow: 0 0 6px var(--orange); }
.sev.s3 i.on { background: var(--red); box-shadow: 0 0 6px var(--red); }
.tech b { font-size: 14.5px; }
.tech p { margin: 4px 0 0; color: var(--text-2); font-size: 13.5px; }
.tech .quote { margin-top: 8px; font-size: 13px; }

.src-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.src-avatar { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 26px; color: #fff; }
.src-name { font-weight: 800; font-size: 17px; }

.content-box { display: grid; grid-template-columns: 300px 1fr; gap: 20px; }
.transcript { max-height: 320px; overflow: auto; padding: 14px 16px; border-radius: 12px; background: rgba(0,0,0,.3); border: 1px solid var(--border); font-size: 14px; color: var(--text-2); white-space: pre-wrap; line-height: 1.65; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 13px; margin-top: 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 10px 0; }
.foot-meta { text-align: center; color: var(--muted); font-size: 12px; font-family: var(--font-mono); }

/* ---------- ошибка ---------- */
.fatal { text-align: center; padding: 80px 20px; }
.fatal-icon { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; margin: 0 auto 20px; background: rgba(244, 63, 94, .12); border: 1px solid rgba(244, 63, 94, .4); animation: shake .6s var(--ease); }
.fatal-icon .i { width: 34px; height: 34px; color: var(--red); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.fatal h2 { font-family: var(--font-display); font-weight: 600; }
.fatal p { color: var(--text-2); max-width: 560px; margin: 0 auto 24px; }

/* ---------- drawer & modal ---------- */
.drawer, .modal { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.drawer-backdrop, .modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .35s; }
.drawer.open, .modal.open { pointer-events: auto; }
.drawer.open .drawer-backdrop, .modal.open .modal-backdrop { opacity: 1; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(440px, 100%); background: linear-gradient(180deg, #10121d, #0a0b14); border-left: 1px solid var(--border-2); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .5s var(--ease); }
.drawer.open .drawer-panel { transform: none; }
.drawer-head, .modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.drawer-head h3, .modal-head h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.drawer-body { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.drawer-foot { padding: 14px 20px; border-top: 1px solid var(--border); }
.h-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); cursor: pointer; transition: background .2s, transform .25s var(--ease); animation: stageIn .45s var(--ease) both; animation-delay: calc(var(--i) * 40ms); text-align: left; width: 100%; }
.h-item:hover { background: var(--surface-3); transform: translateX(-3px); }
.h-score { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--vc); background: conic-gradient(var(--vc) calc(var(--p) * 1%), var(--surface-3) 0); position: relative; }
.h-score::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: #0e1019; }
.h-score span { position: relative; }
.h-title { font-weight: 700; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.h-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.h-del { opacity: 0; transition: opacity .2s; }
.h-item:hover .h-del { opacity: 1; }
.h-empty { text-align: center; color: var(--muted); padding: 60px 20px; }

.modal { display: grid; place-items: center; padding: 16px; }
.modal-panel { position: relative; width: min(640px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; border-radius: 22px; background: linear-gradient(180deg, #11131f, #0a0b14); border: 1px solid var(--border-2); box-shadow: var(--shadow); transform: translateY(20px) scale(.97); opacity: 0; transition: transform .45s var(--ease), opacity .3s; }
.modal.open .modal-panel { transform: none; opacity: 1; }
.modal-body { overflow: auto; padding: 20px; display: flex; flex-direction: column; gap: 22px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; }
.set-label { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.set-hint { color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.set-hint.ok { color: #86efac; }
.set-hint.bad { color: #fda4af; }
.key-row { display: flex; gap: 6px; }
.key-row input, .combo input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface); outline: 0; font-family: var(--font-mono); font-size: 13.5px; transition: border-color .2s, box-shadow .2s; }
.key-row input:focus, .combo input:focus { border-color: rgba(139, 92, 246, .6); box-shadow: 0 0 0 4px rgba(139, 92, 246, .15); }
.model-rows { display: grid; gap: 12px; }
.model-row label { display: block; font-size: 13px; font-weight: 700; }
.model-row .desc { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.combo { position: relative; }
.combo input { width: 100%; }
.combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5; max-height: 260px; overflow: auto; border-radius: 12px; background: #12141f; border: 1px solid var(--border-2); box-shadow: var(--shadow); padding: 4px; animation: viewIn .25s var(--ease); }
.combo-opt { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.combo-opt:hover, .combo-opt.active { background: var(--surface-3); }
.combo-opt .id { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.combo-opt .price { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-2); white-space: nowrap; text-align: right; }
.mods { display: flex; gap: 3px; margin-top: 2px; }
.mods i { font-style: normal; font-size: 10px; padding: 0 5px; border-radius: 4px; background: var(--surface-3); color: var(--text-2); }
input[type=range] { width: 100%; accent-color: var(--violet); }
.tools { flex-direction: row; display: flex; gap: 8px; flex-wrap: wrap; }
.tool-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); border: 1px solid var(--border); }
.tool-pill.ok { color: #86efac; }
.tool-pill.bad { color: #fda4af; }

/* ---------- тосты ---------- */
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: #151726; border: 1px solid var(--border-2); box-shadow: var(--shadow); font-size: 14px; animation: toastIn .45s var(--ease) both; max-width: min(420px, calc(100vw - 40px)); }
.toast.out { animation: toastOut .35s ease forwards; }
.toast.ok .i { color: var(--green); }
.toast.err .i { color: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* ---------- адаптив ---------- */
@media (max-width: 980px) {
  .run { grid-template-columns: 1fr; }
  .run-left { position: static; }
  .verdict-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .verdict-hero .chips, .verdict-hero .v-meta { justify-content: center; }
  .criteria { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-box { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .topnav .nav-btn span:not(.badge):not(.key-dot) { display: none; }
  .ai-grid, .two-col { grid-template-columns: 1fr; }
  .cmp-row { grid-template-columns: 1fr; }
  .cmp-mid { justify-items: start; }
  .cmp-badge { flex-direction: row; width: auto; }
  .claim-inner { padding-left: 18px; }
  .claim-top { grid-template-columns: auto 1fr; }
  .claim-right { grid-column: 1 / -1; justify-content: space-between; }
  .probe-bar { flex-direction: column; align-items: stretch; }
  .cta { justify-content: center; }
  .gauge { width: 200px; height: 200px; }
  .gauge-num { font-size: 52px; }
  .verdict-hero { padding: 22px 18px; }
  .lc-tags { display: none; }
  .filmstrip { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
