/* ============================================================
   SCARRYSOFT — лендинг-витрина
   Палитра и характер: интерфейс SCARP.CC (почти чёрный, белая кнопка,
   маленькие радиусы, плотность десктоп-тула).
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-alt: #0d0d0d;
  --surface: #141414;
  --surface-2: #181818;
  --line: #1e1e1e;
  --line-2: #262626;
  --text: #d4d4d4;
  --text-strong: #f5f5f5;
  --muted: #a3a3a3;
  --dim: #737373;
  --ok: #4ade80;
  --err: #f87171;
  --warn: #fbbf24;
  --white: #ffffff;
  --black: #000000;
  --radius: 6px;
  --radius-sm: 4px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
  --container: 1800px;
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: clamp(15px, 0.85vw + 4px, 19px);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Тонкая сетка на фоне — намёк на рабочий стол, не неон */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .28;
  mask-image: linear-gradient(to bottom, #000 0, transparent 900px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, transparent 900px);
}

a { color: var(--text-strong); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

h1, h2, h3, h4 { color: var(--text-strong); margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }

code {
  font-family: var(--mono);
  font-size: .88em;
  background: #1a1a1a;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: 1px 5px;
  color: var(--text-strong);
  white-space: nowrap;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(16px, 3.5vw, 72px); }
.container-narrow { max-width: 1100px; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--white); color: var(--black);
  padding: 8px 12px; border-radius: var(--radius-sm); z-index: 100;
}
.skip:focus { left: 8px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 3em; padding: 0 1.4em;
  font: inherit; font-weight: 500; font-size: 0.933rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-primary:hover { background: #e5e5e5; border-color: #e5e5e5; }
.btn-ghost { background: transparent; color: var(--text-strong); border-color: var(--line-2); }
.btn-ghost:hover { border-color: #404040; background: var(--surface); }
.btn-sm { height: 2.7em; padding: 0 1em; font-size: 0.867rem; }
.btn-block { width: 100%; white-space: normal; }
.icon { width: 16px; height: 16px; flex: none; }

/* ---------- Бренд ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  background: var(--white); color: var(--black);
  font-weight: 700; font-size: 1.0rem; line-height: 1;
  border-radius: 3px;
  flex: none;
}
.brand-mark.lg { width: 40px; height: 40px; font-size: 1.467rem; border-radius: var(--radius-sm); }
.brand-mark.mark-bolt .bolt { width: 62%; height: 62%; color: var(--black); }
.mock-logo b .bolt { width: 72%; height: 72%; color: var(--black); }
.brand-mark.mark-outline { background: transparent; color: var(--text-strong); border: 1px solid var(--text-strong); }
.brand-name { font-weight: 600; letter-spacing: .18em; font-size: 0.867rem; color: var(--text-strong); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(10,10,10,.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { font-size: 0.933rem; color: var(--muted); }
.site-nav a:not(.btn):hover { color: var(--text-strong); text-decoration: none; }
.site-nav .btn:hover, .site-nav .btn:focus-visible { color: var(--black); }
.site-nav .btn { color: var(--black); margin-left: 6px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--text); }

/* ---------- Герой ---------- */
.hero { padding: clamp(56px, 7vw, 120px) 0 clamp(48px, 5vw, 96px); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.6fr); gap: clamp(40px, 5vw, 96px); align-items: center; }
.eyebrow {
  font-size: 0.8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(36px, 4vw, 78px); line-height: 1.05; letter-spacing: .05em; max-width: none; white-space: nowrap; }
.lead { font-size: clamp(17px, 1.2vw, 23px); color: var(--muted); margin-top: 24px; max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-meta { margin-top: 26px; display: flex; flex-direction: column; gap: 8px; font-size: 0.867rem; color: var(--muted); }
.hero-meta li { display: flex; align-items: center; gap: 10px; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot-green { background: var(--ok); box-shadow: 0 0 0 3px rgba(74,222,128,.12); }
.dot-white { background: var(--white); box-shadow: 0 0 0 3px rgba(255,255,255,.1); }

/* ---------- Превью главного окна SCARP.CC в герое ---------- */
.hero-shot {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  overflow: hidden; font-size: clamp(12px, 0.72vw + 2px, 16px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.02) inset;
}
.hero-shot-frame {
  position: relative; width: 100%; aspect-ratio: 1440 / 1060; overflow: hidden;
  background: #0a0a0a; pointer-events: none; user-select: none;
}
.hero-shot-frame iframe {
  position: absolute; left: 0; top: 0; width: 1440px; height: 1060px; border: 0;
  transform-origin: 0 0; transform: scale(.5); pointer-events: none;
}
.hero-shot-note { margin-top: 12px; font-size: 0.85rem; color: var(--dim); }

/* ---------- Мокапы ---------- */
.mock {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.02) inset;
  font-size: clamp(12px, 0.72vw + 2px, 16px);
}
.mock-titlebar {
  display: flex; align-items: center; gap: 12px;
  height: 2.8em; padding: 0 1em;
  background: #101010; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 0.95em;
}
.mock-logo { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .14em; font-weight: 600; color: var(--text-strong); }
.mock-logo b { display: inline-flex; align-items: center; justify-content: center; width: 1.4em; height: 1.4em; background: var(--white); color: var(--black); border-radius: 2px; font-size: 0.85em; }
.mock-ver { color: var(--dim); }
.mock-wc { margin-left: auto; display: flex; gap: 6px; }
.mock-wc i { width: 8px; height: 8px; border-radius: 50%; background: #2a2a2a; display: block; }

.mock-scarp .mock-body { display: grid; grid-template-columns: 12em 1fr; min-height: 30em; }
.mock-side { border-right: 1px solid var(--line); padding: .8em .6em; background: #111; }
.mock-search {
  border: 1px solid var(--line-2); border-radius: 3px; padding: .45em .7em; color: var(--dim);
  margin-bottom: .7em; font-size: .92em;
}
.mock-item { padding: .5em .7em; border-radius: 3px; color: var(--muted); font-size: .95em; }
.mock-item.active { background: #1c1c1c; color: var(--text-strong); }
.mock-main { padding: .9em 1em; display: flex; flex-direction: column; gap: .9em; }
.mock-toolbar { display: flex; flex-wrap: wrap; gap: .5em; }
.mock-chip { border: 1px solid var(--line-2); border-radius: 3px; padding: .3em .7em; color: var(--text); font-size: .92em; background: #171717; }
.mock-chip-stop { border-color: rgba(248,113,113,.4); color: var(--err); }
.mock-table { width: 100%; border-collapse: collapse; font-size: .95em; }
.mock-table th { text-align: left; font-weight: 500; color: var(--dim); padding: .45em .5em; border-bottom: 1px solid var(--line); }
.mock-table td { padding: .6em .5em; border-bottom: 1px solid var(--line); color: var(--text); font-variant-numeric: tabular-nums; }
.st { display: inline-flex; align-items: center; gap: 6px; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-ok { color: var(--ok); }
.st-warn { color: var(--warn); }
.st-err { color: var(--err); }
.mock-log {
  margin-top: auto;
  background: #0e0e0e; border: 1px solid var(--line); border-radius: 3px;
  padding: .7em .9em; font-family: var(--mono); font-size: .88em; color: var(--muted);
  display: flex; flex-direction: column; gap: .3em;
}
.mock-ts { color: var(--dim); margin-right: .7em; }

.mock-console .console {
  margin: 0; padding: 1em 1.2em;
  font-family: var(--mono); font-size: .95em; line-height: 1.65;
  color: var(--text); white-space: pre-wrap; word-break: break-word;
  background: #0e0e0e;
}
.c-ts { color: var(--dim); }
.c-white { color: var(--text-strong); font-weight: 600; }
.c-ok { color: var(--ok); }
.c-warn { color: var(--warn); }
.c-dim { color: var(--dim); }

/* ---------- Секции ---------- */
.section { padding: clamp(56px, 5.5vw, 110px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: clamp(28px, 2.6vw, 48px); }
.section-head h2 { font-size: clamp(26px, 2.4vw, 46px); letter-spacing: -0.02em; }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 1.1rem; }

/* ---------- Карточки продуктов ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: clamp(20px, 2.2vw, 40px);
}
.card-scarp + .card-row { margin-top: 20px; }
.card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.card-title { display: flex; align-items: center; gap: 14px; }
.card-title h3 { font-size: 1.7rem; letter-spacing: .02em; }
.badge-red {
  display: inline-block; vertical-align: middle; margin-left: 10px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: .06em; line-height: 1;
  padding: 5px 8px; border-radius: 3px;
  background: rgba(220, 38, 38, .14); color: #ef4444; border: 1px solid rgba(220, 38, 38, .45);
  position: relative; top: -2px; white-space: nowrap;
}
.badge-orange {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: .08em; line-height: 1; text-transform: uppercase;
  padding: 4px 7px; border-radius: 3px;
  background: rgba(251, 191, 36, .12); color: #fbbf24; border: 1px solid rgba(251, 191, 36, .4);
  position: relative; top: -1px; white-space: nowrap;
}
.card-sub { color: var(--dim); font-size: 0.867rem; margin-top: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font-size: 0.767rem; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 3px; padding: 3px 8px;
  background: #111;
}
.tags .tag-oss { color: var(--ok); border-color: rgba(74,222,128,.35); }
.card-lead { font-size: 1.15rem; color: var(--text); max-width: 62ch; }

.card-scarp { padding: clamp(22px, 2.4vw, 44px); }
.card-scarp-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 36%); gap: 40px; align-items: start; margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.card-scarp-intro { display: flex; flex-direction: column; gap: 20px; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.plans-single { grid-template-columns: 1fr; }
.plan {
  min-width: 0;
  background: #101010; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 16px; display: flex; flex-direction: column; gap: 4px;
}
.plan-featured { border-color: #3a3a3a; }
.plan-name { font-size: 0.8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.plan-price { font-size: 2.6rem; font-weight: 600; color: var(--text-strong); letter-spacing: -0.02em; line-height: 1.1; }
.plan-note { font-size: 0.833rem; color: var(--muted); margin-bottom: 12px; }
.plan .btn { margin-top: auto; white-space: normal; padding: 0 10px; }

.fineprint { display: flex; flex-direction: column; gap: 5px; font-size: 0.833rem; color: var(--dim); }
.fineprint li { padding-left: 12px; position: relative; }
.fineprint li::before { content: ""; position: absolute; left: 0; top: .6em; width: 4px; height: 1px; background: var(--dim); }
.fineprint-center { margin-top: 24px; align-items: center; text-align: center; }
.fineprint-center li { padding-left: 0; }
.fineprint-center li::before { display: none; }

/* Плитки возможностей */
.feats { display: flex; flex-direction: column; gap: clamp(24px, 2.2vw, 36px); }
.feat-group h4 {
  font-size: 0.8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim);
  padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 14px;
}
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.feat-grid-2 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.feat {
  background: #101010; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 4px;
  transition: border-color .2s, background .2s;
}
.feat:hover { border-color: #333; background: #121212; }
.feat b { font-weight: 600; color: var(--text-strong); font-size: 1rem; line-height: 1.3; }
.feat span { color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.feat code { white-space: normal; font-size: .85em; }

.card-row { display: grid; grid-template-columns: 1fr; gap: clamp(16px, 1.5vw, 28px); }
.card-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 44%); gap: clamp(28px, 3vw, 64px); align-items: start; }
.card-main { display: flex; flex-direction: column; gap: 22px; }
.card-aside { display: flex; flex-direction: column; gap: 16px; }
.card-previous .mock-console { margin: 0; }

.honest {
  padding: 14px 16px;
  border-left: 2px solid var(--text-strong); background: #101010;
  font-size: 0.9rem; color: var(--muted);
}

.tgm-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); flex: none; }
.tgm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tgm-zip { font-size: 0.833rem; color: var(--dim); }
.shots { margin: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
.shots a { display: block; border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; background: #0e0e0e; }
.shots a:hover { border-color: #404040; }
.shots img { width: 100%; height: auto; }
.shots figcaption { grid-column: 1 / -1; font-size: 0.8rem; color: var(--dim); }

/* ---------- Связка ---------- */
.chain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.chain li { padding: clamp(22px, 2vw, 36px); position: relative; }
.chain li + li { border-left: 1px solid var(--line-2); }
.chain li + li::before {
  content: "→"; position: absolute; left: -9px; top: 26px;
  background: var(--surface); color: var(--dim); font-size: 0.933rem; line-height: 1; padding: 2px 0;
}
.chain-n { font-family: var(--mono); font-size: 0.8rem; color: var(--dim); display: block; margin-bottom: 12px; }
.chain h3 { font-size: 1.25rem; letter-spacing: .04em; margin-bottom: 10px; }
.chain p { font-size: 1rem; color: var(--muted); }

/* ---------- Сравнение ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 1.033rem; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: 0.8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); background: #101010; font-weight: 600; }
.compare thead th:nth-child(2) { color: var(--text-strong); }
.compare tbody th { font-weight: 500; color: var(--muted); width: 28%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare td.yes { color: var(--ok); }
.compare td.no { color: var(--dim); }

/* ---------- Цены ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.5vw, 28px); }
.price-card {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: clamp(22px, 2vw, 36px); display: flex; flex-direction: column; gap: 4px;
}
.price-featured { border-color: #3a3a3a; box-shadow: 0 0 0 1px #3a3a3a inset; }
.price-product { font-size: 0.867rem; font-weight: 600; letter-spacing: .06em; color: var(--text-strong); margin-bottom: 10px; }
.price-card .plan-price { font-size: 3.2rem; }
.price-card .btn { margin-top: auto; }
.price-oss {
  margin-top: 16px; padding: 18px 22px;
  border: 1px dashed var(--line-2); border-radius: var(--radius);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.price-oss .price-product { margin-bottom: 4px; }
.price-oss-line { display: flex; align-items: baseline; gap: 12px; color: var(--muted); font-size: 0.933rem; }
.price-oss-line .plan-price { font-size: 1.6rem; }
.price-oss-actions { display: flex; gap: 8px; }

/* ---------- Как получить ---------- */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.how-col { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: clamp(22px, 2vw, 36px); }
.how-col h3 { font-size: 1.25rem; letter-spacing: .04em; margin-bottom: 18px; }
.steps { display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; gap: 14px; font-size: 1.033rem; color: var(--text); align-items: flex-start; }
.steps li span {
  flex: none; width: 22px; height: 22px; border-radius: 3px;
  background: var(--white); color: var(--black);
  font-size: 0.8rem; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 40px 18px 0; position: relative;
  font-weight: 500; font-size: 1.2rem; color: var(--text-strong);
  user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: color .2s;
}
.faq summary:hover { color: var(--white); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%) rotate(0deg);
  color: var(--dim); font-size: 1.333rem; font-weight: 300; line-height: 1;
  transition: transform .3s ease, color .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--text-strong); }
/* Плавное раскрытие: высота анимируется через JS, без JS details работает как обычно */
.faq-body { overflow: hidden; }
.js .faq-body { height: 0; transition: height .35s cubic-bezier(.4, 0, .2, 1); }
.js .faq details[open] .faq-body { height: auto; }
.faq-inner { padding-bottom: 22px; }
.faq-inner p {
  color: var(--muted); font-size: 1.05rem; max-width: 80ch;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .3s ease .08s, transform .3s ease .08s;
}
.faq details[open] .faq-inner p { opacity: 1; transform: none; }
.faq details.closing .faq-inner p { opacity: 0; transform: translateY(-4px); transition-delay: 0s; }
.faq details.closing summary::after { transform: translateY(-50%) rotate(0deg); color: var(--dim); }
html:not(.js) .faq-inner p { opacity: 1; transform: none; }

/* ---------- Футер ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 28px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 24px; }
.footer-brand p { color: var(--dim); font-size: 0.867rem; margin-top: 12px; }
.footer-nav, .footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; }
.footer-nav a, .footer-links a { color: var(--muted); }
.footer-nav a:hover, .footer-links a:hover { color: var(--text-strong); }
.footer-bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.footer-bottom p { font-size: 0.8rem; color: var(--dim); }

/* ---------- Команда установки TG Manager ---------- */
.ps-install { width: 100%; margin-top: 4px; padding: 14px 16px; background: #0e0e0e; border: 1px solid var(--line-2); border-radius: var(--radius-sm); }
.ps-label { font-size: 0.8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.ps-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ps-cmd {
  flex: 1 1 320px; min-width: 0; white-space: pre-wrap; word-break: break-all;
  font-size: 0.9rem; padding: 9px 12px; background: #0a0a0a; border-color: var(--line-2); color: var(--text-strong);
}
.ps-cmd::before { content: "PS> "; color: var(--dim); }
.ps-copy { flex: none; }
.ps-copy.copied { border-color: var(--ok); color: var(--ok); }
.ps-note { margin-top: 10px; font-size: 0.85rem; color: var(--dim); }
.ps-inline { white-space: normal; word-break: break-all; }
.ps-copy-inline {
  font: inherit; font-size: 0.8em; color: var(--muted); background: transparent;
  border: 1px solid var(--line-2); border-radius: 3px; padding: 1px 8px; margin-left: 4px; cursor: pointer; vertical-align: middle;
}
.ps-copy-inline:hover { color: var(--text-strong); border-color: #404040; }
.ps-copy-inline.copied { color: var(--ok); border-color: var(--ok); }

/* ---------- Интерактивное демо ---------- */
.demo-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 4px; }
.demo-cta .btn { border-color: #3a3a3a; }
.demo-cta .btn:hover { border-color: var(--white); }
.demo-cta-note { font-size: 0.85rem; color: var(--dim); max-width: 46ch; line-height: 1.4; }
.demo-open .icon { width: 1.1em; height: 1.1em; }

.demo-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(14px) saturate(.8);
  -webkit-backdrop-filter: blur(14px) saturate(.8);
  animation: demo-fade .2s ease;
}
@keyframes demo-fade { from { opacity: 0; } to { opacity: 1; } }
.demo-window {
  position: absolute; inset: 2.5vh 2.5vw;
  display: flex; flex-direction: column;
  background: #0a0a0a; border: 1px solid #2e2e2e; border-radius: var(--radius);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .9);
  overflow: hidden;
  animation: demo-pop .25s cubic-bezier(.2, .8, .2, 1);
}
@keyframes demo-pop { from { transform: translateY(12px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }
.demo-bar {
  height: 46px; flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 10px 0 14px; background: #101010; border-bottom: 1px solid var(--line);
}
.demo-bar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.demo-mark {
  width: 22px; height: 22px; border-radius: 3px; background: var(--white); color: var(--black);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  font-weight: 700; font-size: 13px;
}
.demo-mark svg { width: 62%; height: 62%; }
.demo-mark.outline { background: transparent; color: var(--white); border: 1px solid var(--white); }
.demo-title { color: var(--text-strong); font-weight: 600; letter-spacing: .04em; font-size: 0.9rem; white-space: nowrap; }
.demo-note { color: var(--dim); font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-bar-right { display: flex; align-items: center; gap: 8px; flex: none; }
.demo-close {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--line-2); color: var(--muted);
  font-size: 22px; line-height: 1; cursor: pointer; font-family: inherit;
  transition: border-color .15s, color .15s, background .15s;
}
.demo-close:hover { color: var(--white); border-color: #505050; background: #161616; }
.demo-frame { flex: 1; width: 100%; border: 0; background: #0a0a0a; }
body.demo-locked { overflow: hidden; }
.demo-panel[hidden] { display: none !important; }
.demo-mobile {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 32px 24px; gap: 14px;
}
.demo-mobile-icon { color: var(--white); opacity: .9; margin-bottom: 4px; }
.demo-mobile-title { font-size: 1.35rem; letter-spacing: -.01em; max-width: 22ch; }
.demo-mobile-text { color: var(--muted); font-size: 1rem; max-width: 40ch; line-height: 1.55; }
.demo-mobile .btn { margin-top: 10px; min-width: 160px; }
.demo-window.has-panel .demo-frame { display: none; }
.demo-window.has-panel #demo-restart { display: none; }
.demo-addons {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 32px 24px; gap: 14px;
}
.demo-addons-soon {
  font-size: clamp(40px, 6vw, 96px); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--white); line-height: 1; margin-bottom: 8px;
}
.demo-addons-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.plan-addons {
  grid-column: 1 / -1; cursor: pointer; text-align: left; font: inherit; color: inherit;
  transition: border-color .15s, background .15s;
}
.plan-addons:hover { border-color: #505050; background: #141414; }
.plan-addons .plan-name { color: var(--text-strong); display: flex; align-items: center; gap: 10px; }
.plan-addons-text { display: block; font-size: 0.9rem; color: var(--muted); line-height: 1.4; margin-top: 6px; }
.plan-addons .badge-red { margin-left: 0; top: 0; flex: none; letter-spacing: .04em; text-transform: none; }

/* ---------- Появление при прокрутке ---------- */
html.js .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0s);
}
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { max-width: none; }
  .card-scarp-top { grid-template-columns: 1fr; gap: 28px; }
  .card-body { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .hero { padding: 40px 0 36px; }
  .section { padding: 48px 0; }
  .card, .card-scarp { padding: 18px; }
  .card-title h3 { font-size: 1.267rem; }
  .feat-grid, .feat-grid-2 { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .chain { grid-template-columns: 1fr; }
  .chain li + li { border-left: 0; border-top: 1px solid var(--line-2); }
  .chain li + li::before { left: 24px; top: -9px; padding: 0 2px; transform: rotate(90deg); }
  .how-grid { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .mock-scarp .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }

  /* Мобильное меню: не съедает экран, открывается по кнопке */
  .demo-window { inset: 0; border-radius: 0; border: 0; }
  .demo-note { display: none; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0;
    background: #0d0d0d; border-bottom: 1px solid var(--line-2);
    padding: 8px 16px 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.0rem; }
  .site-nav .btn { margin: 12px 0 0; border-bottom: 0; }
}
