/* Главная страница */

#stars { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 40px); }

.banner {
  position: sticky; top: 0; z-index: 60;
  padding: 12px 20px;
  text-align: center;
  font-size: 14.5px;
  background: linear-gradient(90deg, rgba(251, 113, 133, 0.22), rgba(255, 77, 106, 0.22));
  border-bottom: 1px solid rgba(251, 113, 133, 0.4);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}

/* шапка */
.nav { position: sticky; top: 0; z-index: 50; transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(9, 7, 10, 0.72); border-color: var(--line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-size: 15px; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--text); background: var(--surface); }

/* герой */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 56px; padding: 56px 0 72px; }
.hero h1 { margin: 22px 0 20px; font-size: clamp(38px, 5.6vw, 66px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; }
.lead { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 0; padding: 0; color: var(--muted); font-size: 14.5px; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; fill: none; stroke: var(--ok); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* окно-демо */
.hero-demo { position: relative; }
.demo { position: relative; padding: 0; overflow: hidden; box-shadow: var(--shadow), var(--glow); border-radius: 22px; }
.demo-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.demo-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.demo-bar i:nth-child(1) { background: #ff6b81; } .demo-bar i:nth-child(2) { background: #ffcd4d; } .demo-bar i:nth-child(3) { background: #46d98a; }
.demo-bar span { margin-left: 10px; }
.demo-body { display: flex; flex-direction: column; gap: 14px; height: 340px; padding: 20px; overflow: hidden; }
.dm { max-width: 88%; padding: 11px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; animation: dm-in 0.5s var(--ease); }
.dm.u { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 5px; }
.dm.a { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.dm.a b { color: #fff; }
.dm.a ul { margin: 6px 0 0; padding-left: 18px; }
.dm .caret { display: inline-block; width: 7px; height: 15px; margin-left: 2px; vertical-align: -2px; background: var(--a2); animation: blink 0.9s steps(1) infinite; }
.dm.img { padding: 6px; width: 62%; }
.dm.img .pic { aspect-ratio: 4 / 3; border-radius: 12px; background: linear-gradient(135deg, #ff8a3d, #ff3d5a 45%, #8f1230); position: relative; overflow: hidden; }
.dm.img .pic::before { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: 18%; top: 16%; background: radial-gradient(circle, #fff6c9, #ffd166 60%, transparent 62%); box-shadow: 0 0 60px 10px rgba(255, 209, 102, 0.5); }
.dm.img .pic::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -8%; height: 42%; background: #2a0a14; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.dm.img .pic.load { background: linear-gradient(110deg, rgba(255,255,255,.06) 30%, rgba(255,255,255,.18) 50%, rgba(255,255,255,.06) 70%); background-size: 200% 100%; animation: sweep 1.3s linear infinite; }
.dm.img .pic.load::before, .dm.img .pic.load::after { display: none; }
.dm.img small { display: block; padding: 7px 8px 3px; color: var(--muted); font-size: 12.5px; }
.demo-input { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 16px 16px; padding: 12px 14px 12px 18px; border-radius: 14px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.demo-send { width: 34px; height: 34px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; flex: none; }
.demo-send svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes dm-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes sweep { to { background-position: -200% 0; } }

.float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; box-shadow: var(--shadow); font-size: 14px; }
.float b { display: block; font-size: 14px; }
.float small { color: var(--muted); font-size: 12.5px; }
.f-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--grad); flex: none; }
.f-ico svg { width: 20px; height: 20px; stroke: #fff; }
.f1 { right: -22px; top: 34px; animation: bob 7s ease-in-out infinite; }
.f2 { left: -26px; bottom: 74px; animation: bob 8s ease-in-out -3s infinite; }
@keyframes bob { 50% { transform: translateY(-14px); } }

/* лента */
.marquee { overflow: hidden; padding: 18px 0; border-block: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 44px; color: var(--muted); font-weight: 600; font-size: 17px; white-space: nowrap; }
.marquee-track span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* секции */
.section { padding: 100px 0 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.eyebrow { display: inline-block; margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; background: var(--grad-cool); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card { padding: 28px; transition: transform 0.4s var(--ease), border-color 0.3s, background 0.3s; position: relative; overflow: hidden; grid-column: span 2; }
.card.big { grid-column: span 4; }
.card:nth-child(5) { grid-column: span 2; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(214, 27, 59, 0.16), transparent 45%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.card:hover { transform: translateY(-5px); border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 20px; letter-spacing: -0.02em; margin: 18px 0 8px; }
.card p { color: var(--muted); font-size: 15.5px; }
.ico { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; }
.ico svg { width: 25px; height: 25px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.g1 { background: linear-gradient(135deg, #d61b3b, #b3153a); box-shadow: 0 8px 24px -8px #d61b3b; }
.g2 { background: linear-gradient(135deg, #ff4d6a, #ff8a3d); box-shadow: 0 8px 24px -8px #ff4d6a; }
.g3 { background: linear-gradient(135deg, #ff5c6c, #d61b3b); box-shadow: 0 8px 24px -8px #ff5c6c; }
.g4 { background: linear-gradient(135deg, #8f1230, #ff4d6a); box-shadow: 0 8px 24px -8px #ff4d6a; }
.g5 { background: linear-gradient(135deg, #fbbf24, #ff4d6a); box-shadow: 0 8px 24px -8px #fbbf24; }
.mini-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.mini-list span { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); font-size: 13px; color: var(--muted); }

/* шаги */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { padding: 30px; position: relative; }
.step .num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--grad); font-weight: 800; font-size: 19px; box-shadow: 0 10px 26px -10px #b3153a; }
.step h3 { margin: 18px 0 8px; font-size: 20px; letter-spacing: -0.02em; }
.step p { color: var(--muted); }
.step code, .faq code { padding: 2px 9px; border-radius: 8px; background: rgba(214, 27, 59, 0.18); border: 1px solid rgba(214, 27, 59, 0.3); color: #ffc7d0; font-family: var(--mono); font-size: 0.92em; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 52px; right: -19px; width: 20px; height: 2px; background: linear-gradient(90deg, var(--a1), transparent); }

/* тарифы */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 32px 28px; position: relative; transition: transform 0.4s var(--ease), border-color 0.3s; }
.plan:hover { transform: translateY(-6px); border-color: var(--line-2); }
.plan.pop { border-color: transparent; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; box-shadow: var(--glow); }
.plan .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 5px 16px; border-radius: 999px; background: var(--grad); font-size: 12.5px; font-weight: 700; white-space: nowrap; box-shadow: 0 8px 22px -8px #b3153a; }
.plan h3 { font-size: 22px; letter-spacing: -0.02em; }
.plan .note { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.plan .price { margin: 22px 0 6px; display: flex; align-items: baseline; gap: 6px; }
.plan .price b { font-size: 46px; letter-spacing: -0.04em; font-weight: 800; line-height: 1; }
.plan .price span { color: var(--muted); font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 11px; font-size: 15px; }
.plan li svg { flex: none; width: 19px; height: 19px; margin-top: 2px; fill: none; stroke: var(--ok); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { padding: 0; border-radius: 18px; transition: border-color 0.2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 20px; line-height: 1; transition: transform 0.3s var(--ease), background 0.2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--a1); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

.final { margin: 100px auto 0; padding: 64px 32px; text-align: center; background: radial-gradient(600px 240px at 50% 0%, rgba(214, 27, 59, 0.28), transparent 70%), var(--surface); }
.final-logo { width: 150px; height: 150px; margin: -18px auto 14px; filter: drop-shadow(0 10px 36px rgba(214, 27, 59, 0.6)); }
.final h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.03em; font-weight: 800; }
.final p { color: var(--muted); margin: 12px 0 28px; font-size: 17px; }

.footer { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding: 56px 0 40px; margin-top: 40px; color: var(--faint); font-size: 14px; border-top: 1px solid var(--line); }
.footer .logo { color: var(--text); font-size: 17px; }
.footer .logo-mark { width: 28px; height: 28px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 28px; }
  .hero-demo { max-width: 560px; margin-inline: auto; width: 100%; }
  .f1 { right: -6px; } .f2 { left: -6px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card, .card.big, .card:nth-child(5) { grid-column: span 1; }
  .card.big { grid-column: span 2; }
  .steps, .plans { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .plan.pop { order: -1; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-in { height: 64px; }
  .section { padding-top: 72px; }
  .bento { grid-template-columns: 1fr; }
  .card.big { grid-column: span 1; }
  .demo-body { height: 300px; }
  .float { display: none; }
  .footer { flex-direction: column; align-items: flex-start; }
}
