:root {
  --bg: #0e0c24; --bg2: #16133a; --card: rgba(255,255,255,.04); --line: rgba(255,255,255,.09);
  --text: #eceaff; --muted: #a9a5d6; --accent: #8f86ff; --accent2: #ff8a5c; --ok: #4ade80;
  --radius: 18px; --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 "Inter", "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--text); background: var(--bg); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(34px, 5vw, 60px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; text-align: center; }
h3 { font-size: 19px; font-weight: 700; }
section { max-width: var(--max); margin: 0 auto; padding: 90px 24px 20px; }
.sub { text-align: center; color: var(--muted); margin: -8px 0 24px; }
.grad { background: linear-gradient(90deg, #b3acff, #ff9d72); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* фоновое свечение, мягко двигается */
.bg-glow { position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
  background: radial-gradient(40vmax 40vmax at 20% 10%, rgba(120,104,255,.28), transparent 60%),
              radial-gradient(35vmax 35vmax at 85% 30%, rgba(255,128,90,.16), transparent 60%),
              radial-gradient(45vmax 45vmax at 50% 100%, rgba(83,74,183,.25), transparent 60%);
  animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(3vmax, -2vmax, 0) scale(1.06); } }

/* шапка */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 14px max(24px, calc((100vw - var(--max)) / 2 + 24px));
  background: rgba(14,12,36,.65); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.brand img { border-radius: 9px; }
.links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; color: var(--muted); }
.links a:hover { color: var(--text); }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 14px; font-weight: 700; border: 0; cursor: pointer; font-size: 16px;
  color: #fff; background: linear-gradient(135deg, #7a6cff, #534ab7); box-shadow: 0 10px 30px -10px rgba(122,108,255,.8); transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(122,108,255,.9); }
.btn.ghost { background: transparent; border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--accent); }
.btn.small { padding: 9px 16px; font-size: 14px; border-radius: 11px; }
.chip { display: inline-block; font-size: 13px; padding: 6px 12px; border-radius: 99px; background: rgba(143,134,255,.14); color: #c9c4ff; border: 1px solid rgba(143,134,255,.3); }
.chip.hot { background: rgba(255,138,92,.15); color: #ffb79a; border-color: rgba(255,138,92,.35); }

/* первый экран */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; padding-top: 70px; }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 20px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: 14px; }
.hero-points li::before { content: "✓"; color: var(--ok); margin-right: 6px; font-weight: 800; }
.hero-ui { position: relative; perspective: 1400px; }
.win { background: rgba(22,19,58,.9); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transform: rotateY(-10deg) rotateX(6deg);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(143,134,255,.12); transition: transform .6s; }
.hero-ui:hover .win { transform: rotateY(-3deg) rotateX(2deg); }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff6b6b; } .win-bar i:nth-child(2) { background: #ffd166; } .win-bar i:nth-child(3) { background: #4ade80; }
.win-bar span { margin-left: 10px; }
.win-body { padding: 16px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kpis div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.kpis b { font-size: 24px; display: block; } .kpis small { color: var(--muted); font-size: 12px; }
.rows .row { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; font-size: 14px;
  animation: rowIn .6s both; }
.rows .row:nth-child(2) { animation-delay: .1s } .rows .row:nth-child(3) { animation-delay: .2s } .rows .row:nth-child(4) { animation-delay: .3s } .rows .row:nth-child(5) { animation-delay: .4s }
.rows .row.hl { background: rgba(143,134,255,.12); }
@keyframes rowIn { from { opacity: 0; transform: translateX(16px); } }
.rows .t { color: var(--muted); font-variant-numeric: tabular-nums; } .rows .r { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { font-size: 11.5px; padding: 3px 9px; border-radius: 99px; font-weight: 700; }
.pill.ok { background: rgba(74,222,128,.15); color: #86efac; } .pill.go { background: rgba(96,165,250,.15); color: #93c5fd; }
.pill.wait { background: rgba(250,204,21,.13); color: #fde68a; } .pill.new { background: rgba(255,138,92,.18); color: #ffb79a; animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(255,138,92,0); } 0% { box-shadow: 0 0 0 0 rgba(255,138,92,.45); } }
.chess { margin-top: 14px; } .chess .lbl { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.bars { position: relative; height: 14px; background: rgba(255,255,255,.04); border-radius: 6px; margin-bottom: 6px; }
.bars i { position: absolute; top: 0; bottom: 0; left: calc(var(--s) * 1%); width: calc(var(--w) * 1%); border-radius: 6px;
  background: linear-gradient(90deg, #7a6cff, #a79fff); transform-origin: left; animation: grow 1.2s cubic-bezier(.2,.8,.2,1) both .5s; }
@keyframes grow { from { transform: scaleX(0); } }
.route { position: absolute; left: -40px; right: -10px; bottom: -70px; width: 110%; height: 140px; pointer-events: none; }
.route path { fill: none; stroke: rgba(255,138,92,.55); stroke-width: 3; stroke-dasharray: 2 12; stroke-linecap: round; }
.route .dot { fill: #ff8a5c; filter: drop-shadow(0 0 8px #ff8a5c); }

/* цифры */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 110px; }
.stats div { text-align: center; padding: 22px 12px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.stats b { display: block; font-size: 26px; } .stats span { color: var(--muted); font-size: 14px; }

/* карточки */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .3s, border-color .3s, background .3s; }
.card:hover { transform: translateY(-6px); border-color: rgba(143,134,255,.45); background: rgba(143,134,255,.06); }
.card p { color: var(--muted); margin: 0; }
.ico { font-size: 30px; display: inline-block; margin-bottom: 10px; }
.pains-answer { text-align: center; font-size: 20px; font-weight: 700; margin: 34px auto 0; max-width: 700px; }

/* возможности: вкладки */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.tab { background: var(--card); color: var(--muted); border: 1px solid var(--line); padding: 10px 16px; border-radius: 12px; cursor: pointer; font: inherit; font-size: 15px; transition: .2s; }
.tab:hover { color: var(--text); }
.tab.on { color: #fff; background: linear-gradient(135deg, rgba(122,108,255,.45), rgba(83,74,183,.45)); border-color: rgba(143,134,255,.6); }
.pane { display: none; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.pane.on { display: grid; animation: fadeUp .45s both; }
.feat { padding: 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.feat p { color: var(--muted); margin: 0; font-size: 15px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }

/* шаги */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; counter-reset: s; position: relative; }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.step span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-weight: 800; margin-bottom: 12px;
  background: linear-gradient(135deg, #ff8a5c, #d85a30); }
.step p { color: var(--muted); margin: 0; font-size: 15px; }

/* цена */
.price-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px; max-width: 900px; margin: 30px auto 0; }
.plan { padding: 30px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan.main { background: linear-gradient(160deg, rgba(122,108,255,.18), rgba(22,19,58,.6)); border-color: rgba(143,134,255,.55); box-shadow: 0 30px 60px -30px rgba(122,108,255,.6); }
.amount { font-size: 46px; font-weight: 800; margin-top: 14px; font-variant-numeric: tabular-nums; }
.per { color: var(--muted); margin-bottom: 14px; }
.plan ul { padding: 0; list-style: none; margin: 14px 0 22px; flex: 1; }
.plan li { padding: 5px 0; } .plan li::before { content: "✓"; color: var(--ok); margin-right: 8px; font-weight: 800; }
.calc { display: block; font-weight: 600; }
.calc input { width: 100%; margin-top: 10px; accent-color: #8f86ff; }
.hint { color: var(--muted); font-size: 13px; margin: 8px 0 0; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin-bottom: 10px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--accent); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 18px; color: var(--muted); }

/* контакты */
.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 44px; border-radius: 26px;
  background: linear-gradient(135deg, rgba(122,108,255,.22), rgba(216,90,48,.12)); border: 1px solid rgba(143,134,255,.4); }
.contact-card h2 { text-align: left; }
.contact-card p { color: var(--muted); }
.contacts { display: grid; gap: 12px; margin-top: 22px; }
.c { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 700; padding: 14px 18px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--line); transition: .2s; }
.c:hover { border-color: var(--accent); transform: translateX(4px); }
.lead { display: grid; gap: 12px; }
.lead label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.lead input, .lead textarea { font: inherit; color: var(--text); background: rgba(14,12,36,.6); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; outline: none; transition: border-color .2s; }
.lead input:focus, .lead textarea:focus { border-color: var(--accent); }
.lead small { color: var(--muted); }
.err { color: #ff8f8f; margin: 0; font-size: 14px; }

.foot { max-width: var(--max); margin: 80px auto 0; padding: 30px 24px 40px; display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; border-top: 1px solid var(--line); color: var(--muted); }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot small { width: 100%; }
.install { position: fixed; right: 18px; bottom: 18px; z-index: 30; }
.install { padding: 12px 18px; border-radius: 12px; border: 1px solid rgba(143,134,255,.5); background: rgba(22,19,58,.95); color: var(--text); font: inherit; cursor: pointer; }

/* появление при прокрутке */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .bg-glow, .route .dot, .pill.new { animation: none; } }

/* адаптив */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; } .hero-ui { max-width: 560px; }
  .stats, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .price-wrap, .contact-card { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .links { position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0; background: rgba(14,12,36,.97); padding: 8px 24px 18px; display: none; }
  .links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  body.menu-open .links { display: flex; }
  .burger { display: block; margin-left: auto; } .nav .btn.small { display: none; }
  .grid3, .stats, .steps { grid-template-columns: 1fr; }
  section { padding-top: 64px; } .contact-card { padding: 26px; }
  .win { transform: none; }
}

/* экраны программы во вкладках возможностей */
.shots { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 190px; gap: 14px; margin-bottom: 6px; }
.shot-main { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid rgba(143,134,255,.35); background: #0b0a1d; cursor: zoom-in;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), 0 0 0 6px rgba(143,134,255,.06); aspect-ratio: 16 / 10; }
.shot-main img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: opacity .35s, transform .6s; }
.shot-main:hover img { transform: scale(1.015); }
.shot-main figcaption { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 10px; font-size: 14px; font-weight: 600;
  background: rgba(14,12,36,.82); backdrop-filter: blur(8px); border: 1px solid var(--line); }
.thumbs { display: flex; flex-direction: column; gap: 10px; }
.thumb { padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: none; cursor: pointer; text-align: left; color: var(--muted);
  font: inherit; font-size: 12.5px; transition: border-color .2s, transform .2s; }
.thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.thumb span { display: block; padding: 6px 9px; }
.thumb:hover { transform: translateY(-2px); }
.thumb.on { border-color: var(--accent); color: var(--text); }
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(5,4,16,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; }
.lb[hidden] { display: none; }
.lb img { max-width: 96vw; max-height: 86vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.lb p { color: var(--muted); margin: 12px 0 0; }
.lb-x { position: absolute; top: 18px; right: 22px; font-size: 22px; background: none; border: 0; color: var(--text); cursor: pointer; }
@media (max-width: 720px) {
  .shots { grid-template-columns: 1fr; }
  .thumbs { flex-direction: row; overflow-x: auto; }
  .thumb { flex: 0 0 140px; }
}

/* заявка: ловушка для ботов и сообщение об отправке */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-ok { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; animation: fadeUp .5s both; }
.lead-ok[hidden] { display: none; }
.ok-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; font-weight: 800; color: #0e0c24;
  background: linear-gradient(135deg, #4ade80, #22c55e); box-shadow: 0 10px 30px -8px rgba(74,222,128,.7); margin-bottom: 14px; }
.lead-ok p { color: var(--muted); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.lead[hidden] { display: none; }
