/* autoframe — тёмная тема, лаймовый акцент. Шрифт Manrope, если доступен. */
:root {
  --bg: #0a0a0a;
  --panel: #131313;
  --panel-2: #1a1a1a;
  --panel-3: #222;
  --line: #2a2a2a;
  --line-2: #3a3a3a;
  --text: #f3f3ee;
  --muted: #9b9b93;
  --dim: #6b6b66;
  --accent: #c6f432;
  --accent-2: #9fd11b;
  --accent-ink: #0c0f02;
  --danger: #ff6a55;
  --warn: #f4c542;
  --info: #7ab8ff;
  --radius: 22px;
  --radius-s: 12px;
  --shadow: 0 30px 80px rgba(0, 0, 0, .45);
  --font: "Manrope", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.accent { color: var(--accent); }
.small { font-size: 13px; }
.upper { text-transform: uppercase; letter-spacing: .04em; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }

/* --- шапка ---------------------------------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 40; padding: 14px 0; backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(10,10,10,.92), rgba(10,10,10,.6)); }
.topbar .bar { display: flex; align-items: center; gap: 24px; padding: 10px 14px 10px 20px;
  border: 1px solid var(--line); border-radius: 16px; background: rgba(19,19,19,.85); }
.logo { display: inline-flex; flex-direction: column; line-height: 1; font-weight: 800;
  font-size: 13px; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.logo span:last-child::after { content: ""; display: inline-block; width: 6px; height: 6px;
  margin-left: 4px; border-radius: 50%; background: var(--accent); }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 13px; }
.nav a { text-decoration: none; color: var(--muted); transition: color .15s; }
.nav a:hover { color: var(--text); }
.bar .actions { display: flex; gap: 10px; align-items: center; margin-left: 12px; }
.userchip { font-size: 13px; color: var(--muted); }

/* --- кнопки, таблетки, формы ------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent;
  color: var(--text); font: inherit; font-weight: 700; font-size: 13px; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none; cursor: pointer; transition: all .15s; }
.btn:hover { border-color: var(--text); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { background: #d4ff4d; box-shadow: 0 0 0 4px rgba(198,244,50,.18); }
.btn.ghost { border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); border-color: var(--line-2); }
.btn.danger { color: var(--danger); border-color: rgba(255,106,85,.35); }
.btn.small { padding: 8px 14px; font-size: 12px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; background: rgba(255,255,255,.02); }
.pill.center { display: table; margin: 0 auto 36px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  background: var(--panel-3); color: var(--muted); font-size: 12px; font-weight: 600; }
.tag.lime { background: rgba(198,244,50,.12); color: var(--accent); }
.tag.red { background: rgba(255,106,85,.13); color: var(--danger); }
.tag.amber { background: rgba(244,197,66,.13); color: var(--warn); }
.tag.blue { background: rgba(122,184,255,.13); color: var(--info); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); }
.input, .field input, .field select, .field textarea {
  width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line-2); background: transparent;
  color: var(--text); font: inherit; outline: none; border-radius: 0; transition: border-color .15s; }
.field textarea { resize: vertical; min-height: 44px; }
.field select { cursor: pointer; }
.field select option { background: var(--panel); }
.field input:focus, .field textarea:focus, .field select:focus, .input:focus { border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.box-input { padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel-2);
  color: var(--text); font: inherit; width: 100%; outline: none; }
.box-input:focus { border-color: var(--accent); }
textarea.box-input { resize: vertical; min-height: 60px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--muted); }
.check input { accent-color: var(--accent); margin-top: 3px; }
.check a { color: var(--accent); }
.error { padding: 12px 16px; border-radius: var(--radius-s); background: rgba(255,106,85,.1);
  border: 1px solid rgba(255,106,85,.35); color: #ffb1a6; font-size: 14px; }
.notice { padding: 12px 16px; border-radius: var(--radius-s); background: rgba(198,244,50,.07);
  border: 1px solid rgba(198,244,50,.25); color: #e3f7a8; font-size: 14px; }
.filedrop { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px dashed var(--line-2);
  border-radius: var(--radius-s); cursor: pointer; transition: border-color .15s; }
.filedrop:hover { border-color: var(--accent); }
.filedrop input { display: none; }
.segmented { display: inline-flex; padding: 4px; border: 1px solid var(--line-2); border-radius: 12px; gap: 4px; }
.segmented label { padding: 8px 14px; border-radius: 9px; cursor: pointer; font-size: 13px; color: var(--muted); }
.segmented label { position: relative; }
.segmented input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.segmented label:has(input:checked) { background: var(--accent); color: var(--accent-ink); font-weight: 700; }

/* --- карточки --------------------------------------------------------------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card.tight { padding: 20px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.stat { background: var(--panel-2); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { font-size: 30px; font-weight: 800; color: var(--accent); line-height: 1.2; }
.stat .d { font-size: 12px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }

/* --- лендинг ---------------------------------------------------------------- */
.hero { position: relative; padding: 48px 0 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -10%; top: 5%; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(198,244,50,.28), rgba(198,244,50,.06) 55%, transparent 75%);
  filter: blur(10px); pointer-events: none; }
.hero h1 { margin: 0 0 22px; font-size: clamp(32px, 5.3vw, 76px); line-height: .98; font-weight: 800;
  letter-spacing: -.035em; text-transform: uppercase; }
.hero .lead { max-width: 560px; color: #d7d7d0; font-size: 15px; margin: 0 0 34px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.formcard { position: relative; margin-top: 18px; }
.formcard .pill { position: absolute; top: -18px; left: 22px; background: var(--bg); }
.formcard .card { padding: 34px 28px 24px; }
.visual { position: relative; min-height: 460px; }
.visual svg.main { width: 100%; height: auto; filter: drop-shadow(0 40px 60px rgba(0,0,0,.6)); }
.float { position: absolute; background: rgba(22,22,22,.92); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 16px; box-shadow: var(--shadow); backdrop-filter: blur(6px); }
.float .k { font-size: 12px; color: var(--muted); }
.float .v { font-size: 28px; font-weight: 800; color: var(--accent); line-height: 1.1; }
.float .d { font-size: 11px; color: var(--text); margin-left: 8px; }
.float.a { top: 4%; right: 2%; }
.float.b { top: 30%; left: -2%; }
.float.c { bottom: -2%; right: -2%; width: 320px; }
.legend { display: grid; gap: 4px; font-size: 12px; }
.legend div { display: flex; justify-content: space-between; gap: 18px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.donut-row { display: flex; gap: 16px; align-items: center; }

.section { padding: 70px 0; }
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.step-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; min-height: 220px; }
.step-card::before { counter-increment: step; content: "0" counter(step); display: block; font-size: 36px;
  font-weight: 800; color: var(--accent); margin-bottom: 18px; letter-spacing: -.03em; }
.step-card h4 { margin: 0 0 8px; font-size: 16px; }
.step-card p { margin: 0; color: var(--muted); font-size: 13px; }
.step-card.key { border-color: rgba(198,244,50,.45); box-shadow: 0 0 0 1px rgba(198,244,50,.12) inset; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 44px 26px 26px; }
.plan .pill { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); background: var(--panel-3);
  border-color: var(--panel-3); }
.price { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 26px; }
.price b.ask { font-size: 30px; }
.price b { font-size: 52px; font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -.03em; }
.price span { font-size: 12px; color: var(--muted); line-height: 1.4; }
.price span em { display: block; color: var(--accent); font-style: normal; font-size: 16px; font-weight: 600; }
.plan h4 { margin: 0 0 10px; font-size: 15px; }
.plan p { color: var(--muted); font-size: 13px; margin: 0 0 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; font-size: 13px; }
.plan li::before { content: "✓"; color: var(--accent); margin-right: 10px; font-weight: 800; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; margin: 8px 0 22px;
  border-bottom: 1px solid var(--line); }
.bars div { flex: 1; background: var(--panel-3); border-radius: 6px 6px 0 0; position: relative; }
.bars div.on { background: var(--accent); }
.bars div span { position: absolute; top: -20px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(198,244,50,.1); color: var(--accent); margin-bottom: 16px; }
.feature h4 { margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 13px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 12px 0 0; }
.cta { text-align: center; padding: 60px 28px; background: radial-gradient(circle at 50% 120%, rgba(198,244,50,.2), transparent 60%), var(--panel); }
.cta h2 { font-size: clamp(28px, 4vw, 48px); margin: 0 0 12px; text-transform: uppercase; letter-spacing: -.02em; }
.footer { border-top: 1px solid var(--line); padding: 30px 0 50px; color: var(--dim); font-size: 13px; }
.footer .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 0 0 12px; text-transform: uppercase; letter-spacing: -.02em; line-height: 1.05; }

/* --- кабинет ---------------------------------------------------------------- */
.page { padding: 26px 0 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: clamp(28px, 4vw, 44px); text-transform: uppercase; letter-spacing: -.025em; line-height: 1; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.project { display: flex; flex-direction: column; gap: 14px; text-decoration: none; transition: border-color .15s, transform .15s; }
.project:hover { border-color: var(--line-2); transform: translateY(-2px); }
.project .url { color: var(--muted); font-size: 13px; word-break: break-all; }
.project .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: var(--panel-3); color: var(--muted); }
.status.review { background: rgba(198,244,50,.14); color: var(--accent); }
.status.done { background: rgba(198,244,50,.9); color: var(--accent-ink); }
.status.failed { background: rgba(255,106,85,.14); color: var(--danger); }
.status.run { color: var(--info); background: rgba(122,184,255,.1); }
.status.run .dot { animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.mini-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.mini-steps i { height: 4px; border-radius: 4px; background: var(--panel-3); }
.mini-steps i.on { background: var(--accent); }
.mini-steps i.now { background: linear-gradient(90deg, var(--accent), var(--panel-3)); animation: pulse 1.6s infinite; }
.empty { text-align: center; padding: 70px 20px; }
.empty .big { font-size: 64px; margin-bottom: 8px; }
.twocol { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.subcard { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

.stepper { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 18px; }
.stepper div { position: relative; padding: 14px 14px 12px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; font-size: 12px; color: var(--muted); }
.stepper div b { display: block; font-size: 11px; letter-spacing: .08em; color: var(--dim); margin-bottom: 4px; }
.stepper div.done { color: var(--text); }
.stepper div.done b { color: var(--accent); }
.stepper div.now { border-color: var(--accent); color: var(--text); box-shadow: 0 0 0 3px rgba(198,244,50,.12); }
.stepper div.now b { color: var(--accent); }
.stepper div.fail { border-color: var(--danger); }
.progress { height: 6px; border-radius: 6px; background: var(--panel-3); overflow: hidden; }
.progress i { display: block; height: 100%; width: 40%; background: var(--accent); border-radius: 6px;
  animation: slide 1.6s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
code, .mono { font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
pre.code { background: #0e0e0e; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px 16px;
  overflow-x: auto; font-size: 12.5px; margin: 10px 0 0; }

/* --- ревью кейсов ----------------------------------------------------------- */
.review-top { padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.review-top .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.review-top .search { flex: 1; min-width: 200px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12px; cursor: pointer;
  color: var(--muted); background: transparent; font: inherit; font-size: 12px; }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.counts { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.counts b { color: var(--text); }
.module-title { margin: 30px 0 12px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.case { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 12px; overflow: hidden; }
.case.removed { opacity: .5; }
.case.removed .case-title { text-decoration: line-through; }
.case.changed { border-color: rgba(244,197,66,.5); }
.case.added { border-color: rgba(122,184,255,.5); }
.case-head { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; cursor: pointer; }
.case-id { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; color: var(--accent); white-space: nowrap;
  padding: 4px 10px; border: 1px solid rgba(198,244,50,.3); border-radius: 8px; }
.case-title { font-weight: 700; font-size: 15px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.case-toggle { margin-left: auto; color: var(--dim); transition: transform .2s; }
.case.open .case-toggle { transform: rotate(180deg); }
.case-body { display: none; padding: 0 20px 20px; }
.case.open .case-body { display: block; }
.case-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; }
.case-section { margin-top: 16px; }
.case-section h5 { margin: 0 0 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.case-section ul { margin: 0; padding-left: 18px; }
table.steps { width: 100%; border-collapse: collapse; font-size: 14px; }
table.steps th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  padding: 8px 10px; border-bottom: 1px solid var(--line); font-weight: 700; }
table.steps td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.steps td:first-child { color: var(--accent); font-weight: 800; width: 34px; }
table.steps tr:last-child td { border-bottom: 0; }
.shots { display: grid; gap: 12px; }
.shot { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #000;
  cursor: zoom-in; max-height: 340px; }
.shot img { width: 100%; }
.shot .hl, .lightbox .hl { position: absolute; border: 2px solid var(--accent); border-radius: 6px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.35), 0 0 18px rgba(198,244,50,.6); pointer-events: none; }
.shot figcaption { position: absolute; left: 8px; bottom: 8px; right: 8px; font-size: 11px; padding: 4px 8px;
  border-radius: 8px; background: rgba(0,0,0,.72); color: var(--text); }
.case-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--line); }
.case-foot textarea { flex: 1; min-width: 220px; }
.editor { display: grid; gap: 14px; margin-top: 10px; }
.editor .step-row { display: grid; grid-template-columns: 30px 1fr 1fr 34px; gap: 8px; align-items: start; }
.editor .step-row b { color: var(--accent); padding-top: 10px; }
.icon-btn { width: 34px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent;
  color: var(--muted); cursor: pointer; font-size: 16px; }
.icon-btn:hover { color: var(--danger); border-color: var(--danger); }
.bottom-bar { position: sticky; bottom: 0; z-index: 30; margin-top: 30px; padding: 14px 0;
  background: rgba(10,10,10,.95); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
.bottom-bar .row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.saved { font-size: 12px; color: var(--muted); }
.saved.ok { color: var(--accent); }
.saved.err { color: var(--danger); }
.hint { font-size: 12px; color: var(--muted); }
.hint.warn { color: var(--warn); }

/* --- модальные окна --------------------------------------------------------- */
dialog { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); color: var(--text);
  padding: 28px; width: min(720px, 100% - 32px); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
dialog h3 { margin: 0 0 14px; font-size: 20px; text-transform: uppercase; }
.lightbox { width: min(1200px, 100% - 32px); padding: 14px; }
.lightbox .frame { position: relative; max-height: 80vh; overflow: auto; border-radius: 12px; }
.lightbox img { width: 100%; }

/* --- адаптив ------------------------------------------------------------------ */
@media (max-width: 1000px) {
  .hero-grid, .twocol, .case-grid { grid-template-columns: 1fr; }
  .visual { min-height: 380px; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .plans, .features { grid-template-columns: 1fr; }
  .stepper, .mini-steps { grid-template-columns: repeat(3, 1fr); }
  .nav { display: none; }
}
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .float.b { display: none; }
  .editor .step-row { grid-template-columns: 24px 1fr 34px; }
  .editor .step-row input:nth-of-type(2) { grid-column: 2; }
  .card { padding: 20px; }
}
