/* Вариант D — «киберпанк-терминал»: тёмный фон, дорожки платы с импульсами
   тока (canvas), скан-линии, моноширинные акценты. */
:root {
  --bg: #050810;
  --bg-2: #070d18;
  --panel: rgba(9, 16, 28, .74);
  --panel-solid: #0a1220;
  --ink: #dbeafe;
  --ink-soft: #b9c7de;
  --muted: #7f8ea8;
  --line: rgba(34, 211, 238, .18);
  --line-strong: rgba(34, 211, 238, .38);
  --cyan: #22d3ee;
  --lime: #a3e635;
  --amber: #fbbf24;
  --mono: "SF Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* фон: canvas + скан-линии */
#bg-circuit {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: .9;
}
.scanlines {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(34, 211, 238, .045) 0 1px, transparent 1px 4px);
  animation: scan 9s linear infinite;
  opacity: .55;
}
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(4px); } }

.page { position: relative; z-index: 1; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(100% - 44px, var(--max)); margin-inline: auto; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: var(--cyan); color: #04121a; padding: 10px 16px; border-radius: 8px; z-index: 100; }

/* шапка */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 8, 16, .78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; padding: 14px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 16px; letter-spacing: .04em; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 30px; height: 30px; display: grid; place-items: center; font-size: 14px;
  border: 1px solid var(--line-strong); color: var(--cyan); border-radius: 6px;
  box-shadow: 0 0 18px rgba(34, 211, 238, .25) inset;
}
.logo b { color: var(--cyan); font-weight: 700; }
.nav { display: flex; gap: 20px; margin-left: auto; font-family: var(--mono); font-size: 13px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--cyan); text-decoration: none; }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 8px; font-weight: 600; font-size: 15px;
  font-family: var(--sans); border: 1px solid var(--line-strong);
  background: rgba(34, 211, 238, .06); color: var(--ink);
  cursor: pointer; transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn:hover { background: rgba(34, 211, 238, .14); box-shadow: 0 0 22px rgba(34, 211, 238, .22); text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--cyan); border-color: var(--cyan); color: #04121a; box-shadow: 0 0 26px rgba(34, 211, 238, .35); }
.btn-primary:hover { background: #67e8f9; box-shadow: 0 0 34px rgba(34, 211, 238, .5); }
.btn-sm { padding: 9px 14px; font-size: 13px; font-family: var(--mono); }

/* hero */
.hero { padding: 68px 0 56px; border-top: 0; }
.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--lime); margin: 0 0 20px; display: flex; align-items: center; gap: 10px;
}
.kicker::before { content: "▮"; animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: start; }
h1 {
  font-size: clamp(30px, 4.6vw, 50px); line-height: 1.12; letter-spacing: -.5px;
  margin: 0 0 18px; text-shadow: 0 0 26px rgba(34, 211, 238, .18);
  text-wrap: balance;
}
h1 em { font-style: normal; color: var(--cyan); text-shadow: 0 0 18px rgba(34, 211, 238, .45); }
.lead { font-size: 17px; color: var(--ink-soft); margin: 0 0 26px; max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero-note { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.8; }
.hero-note b { color: var(--ink-soft); }

/* «терминал» с идеей */
.term {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(5, 8, 16, .6), 0 24px 60px rgba(0, 0, 0, .55), 0 0 60px rgba(34, 211, 238, .08);
  overflow: hidden;
}
.term-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.term-bar span:last-child { color: var(--lime); }
.term-body { padding: 18px 16px 20px; font-family: var(--mono); font-size: 13px; }
.term-prompt { color: var(--muted); margin: 0 0 12px; }
.term-prompt b { color: var(--lime); font-weight: 600; }
.term-title { font-family: var(--sans); font-size: 19px; font-weight: 700; margin: 0 0 4px; color: var(--ink); }
.term-sub { color: var(--muted); font-size: 12px; margin: 0 0 14px; }
.term-row {
  display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
  padding: 7px 0; border-bottom: 1px dashed rgba(34, 211, 238, .13);
}
.term-row span:first-child { color: var(--muted); }
.term-row span:last-child { color: var(--cyan); font-weight: 600; }
.term-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  border: 1px solid rgba(163, 230, 53, .4); color: var(--lime); padding: 3px 8px; border-radius: 4px;
  background: rgba(163, 230, 53, .06);
}

/* цифры как показания приборов */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 38px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-family: var(--mono); }
.stat b { display: block; font-size: 24px; color: var(--cyan); letter-spacing: -.5px; text-shadow: 0 0 16px rgba(34, 211, 238, .35); }
.stat span { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }

/* секции */
section { padding: 60px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 700px; margin-bottom: 28px; }
h2 { font-size: clamp(22px, 2.8vw, 32px); margin: 0 0 10px; letter-spacing: -.3px; }
.section-head p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.module {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 20px; backdrop-filter: blur(6px);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.module:hover { border-color: var(--line-strong); box-shadow: 0 0 28px rgba(34, 211, 238, .16); transform: translateY(-2px); }
.module::before, .module::after {
  content: ""; position: absolute; width: 10px; height: 10px; border: 1px solid var(--line-strong);
}
.module::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.module::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.module-code { font-family: var(--mono); font-size: 11px; color: var(--lime); letter-spacing: .1em; }
.module h3 { margin: 10px 0 8px; font-size: 17px; }
.module p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* шаги */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* примеры и «кому подойдёт» */
.fits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.more { font-family: var(--mono); font-size: 13px; color: var(--cyan); display: inline-block; margin-top: 12px; }
.ex-tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 3px 8px;
}
.module ul { margin: 10px 0 0; padding: 0 0 0 4px; list-style: none; font-size: 14px; color: var(--muted); }
.module li { padding: 4px 0 4px 16px; position: relative; }
.module li::before { content: "–"; position: absolute; left: 0; color: var(--cyan); }
.step { font-family: var(--mono); }
.step-num { font-size: 11px; letter-spacing: .14em; color: var(--cyan); margin-bottom: 8px; }
.step h3 { font-family: var(--sans); font-size: 16px; margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; font-family: var(--sans); }

/* тарифы */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan {
  display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 22px; backdrop-filter: blur(6px);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.plan:hover { border-color: var(--line-strong); box-shadow: 0 0 30px rgba(34, 211, 238, .14); }
.plan.pro { border-color: rgba(163, 230, 53, .45); box-shadow: 0 0 34px rgba(163, 230, 53, .12); }
.plan-label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.plan.pro .plan-label { color: var(--lime); }
.plan-value { font-size: 38px; font-weight: 800; letter-spacing: -1px; margin: 8px 0 2px; }
.plan-value small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan-note { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.plan ul { list-style: none; margin: 0 0 18px; padding: 0; font-family: var(--mono); font-size: 13px; }
.plan li { padding: 7px 0 7px 18px; position: relative; border-top: 1px dashed rgba(34, 211, 238, .12); color: var(--ink-soft); }
.plan li:first-child { border-top: 0; }
.plan li::before { content: "▸"; position: absolute; left: 0; color: var(--cyan); }
.plan .btn { margin-top: auto; width: 100%; }

/* FAQ-терминал */
.faq { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); overflow: hidden; }
details { border-bottom: 1px solid var(--line); }
details:last-child { border-bottom: 0; }
summary {
  cursor: pointer; list-style: none; padding: 16px 18px;
  font-family: var(--mono); font-size: 14px; display: flex; gap: 12px; align-items: baseline;
  transition: background .15s ease;
}
summary:hover { background: rgba(34, 211, 238, .05); }
summary::-webkit-details-marker { display: none; }
summary::before { content: ">"; color: var(--lime); }
summary::after { content: "[+]"; margin-left: auto; color: var(--cyan); font-size: 12px; }
details[open] summary::after { content: "[–]"; }
.faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
details[open] .faq-body { grid-template-rows: 1fr; }
.faq-body > div { overflow: hidden; }
.faq-body p { margin: 0; padding: 0 18px 14px 42px; color: var(--muted); font-size: 14.5px; }
.faq-body ul { margin: 0; padding: 0 18px 14px 58px; color: var(--muted); font-size: 14.5px; }
.faq-body li { margin-bottom: 6px; }
.faq-body li b { color: var(--ink-soft); }

/* страницы-документы: политика и примеры идей */
.doc { max-width: 860px; padding: 40px 0 60px; }
.doc h1 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 10px; }
.doc h2 { font-size: 21px; margin: 32px 0 10px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--ink); }
.doc .lead { color: var(--muted); }
.doc .back { margin-bottom: 20px; display: inline-flex; }
.doc code {
  font-family: var(--mono); font-size: .92em; color: var(--cyan);
  background: rgba(34, 211, 238, .1); border: 1px solid var(--line);
  border-radius: 4px; padding: 1px 5px;
}
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.doc th { background: rgba(34, 211, 238, .08); color: var(--ink); font-weight: 600; }
.doc td { color: var(--ink-soft); }
.doc blockquote {
  margin: 16px 0; padding: 12px 16px; border-left: 2px solid var(--line-strong);
  background: rgba(34, 211, 238, .05); color: var(--ink-soft);
}

/* карточка примера идеи */
.idea {
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  backdrop-filter: blur(6px); padding: 22px; margin: 18px 0;
}
.idea-meta {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--lime); margin: 0 0 8px;
}
.idea h2 { font-size: 22px; margin: 0 0 10px; }
.idea p, .idea li { color: var(--ink-soft); }
.idea ul { padding-left: 22px; }
.idea strong { color: var(--ink); }
.idea code {
  font-family: var(--mono); font-size: .92em; color: var(--cyan);
  background: rgba(34, 211, 238, .1); border: 1px solid var(--line);
  border-radius: 4px; padding: 1px 5px;
}

/* финальный блок */
.cta {
  border: 1px solid var(--line-strong); border-radius: 14px; padding: 36px; text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(34, 211, 238, .16), transparent 65%), var(--panel);
  box-shadow: 0 0 60px rgba(34, 211, 238, .1);
}
.cta h2 { margin-bottom: 8px; }
.cta p { color: var(--muted); margin: 0 0 20px; }

/* подвал */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 44px; font-size: 13px; color: var(--muted); font-family: var(--mono); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: baseline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.legal { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); line-height: 1.8; color: #6c7a92; font-family: var(--sans); font-size: 12.5px; }

/* анимации и служебное */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--lime), var(--cyan)); box-shadow: 0 0 14px rgba(34, 211, 238, .6); z-index: 60; transition: width .12s linear; }
.to-top {
  position: fixed; right: 20px; bottom: 22px; width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(9, 16, 28, .9); color: var(--cyan);
  cursor: pointer; opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease; z-index: 55; font-size: 16px;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { box-shadow: 0 0 22px rgba(34, 211, 238, .35); }

/* кнопка паузы фона */
.bg-toggle {
  position: fixed; right: 20px; bottom: 74px; z-index: 55;
  width: 42px; height: 42px; display: grid; place-items: center; font-size: 14px;
  border: 1px solid var(--line); border-radius: 8px; background: rgba(9, 16, 28, .9);
  color: var(--muted); cursor: pointer; font-family: var(--mono);
  transition: color .15s ease, border-color .15s ease;
}
.bg-toggle:hover { color: var(--cyan); border-color: var(--line-strong); }

@media (max-width: 900px) {
  .hero-grid, .grid-3, .steps, .plans, .fits { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
  section { padding: 42px 0; }
  .scanlines { display: none; }
  .faq-body p { padding-left: 18px; }
  .faq-body ul { padding-left: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-progress { display: none; }
  .scanlines, .kicker::before { animation: none; }
  .btn:hover, .module:hover { transform: none; }
  .faq-body { transition: none; }
  #bg-circuit { opacity: .5; }
}
