:root {
  --bg: #0a0a0f;
  --bg-2: #11111a;
  --bg-3: #1a1a26;
  --line: #23232f;
  --text: #f0f0f5;
  --muted: #8a8a99;
  --accent: #7c5cff;
  --accent-2: #5b8cff;
  --green: #2ecc71;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.5vw, 42px); font-weight: 700; margin-bottom: 12px; }
h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
p { color: var(--muted); }
.section__lead { color: var(--muted); margin-bottom: 40px; font-size: 18px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: all .2s;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(124,92,255,.3); }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); }
.btn--link { color: var(--muted); padding: 12px 8px; }
.btn--link:hover { color: var(--text); }
.btn--lg { padding: 16px 32px; font-size: 16px; width: 100%; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(10,10,15,.8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav__row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.logo { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.logo span { color: var(--accent); }
.nav nav { display: flex; gap: 28px; }
.nav nav a { color: var(--muted); font-size: 15px; transition: color .2s; }
.nav nav a:hover { color: var(--text); }
.burger { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; padding: 4px 8px; }
@media (max-width: 820px) {
  .nav nav { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; padding: 16px 24px; gap: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
  .nav nav.open { display: flex; }
  .nav nav a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav nav a:last-child { border-bottom: none; }
  .burger { display: block; }
}

/* Mobile sticky CTA */
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .sticky-cta { display: flex; position: fixed; bottom: 0; left: 0; right: 0; padding: 12px 16px env(safe-area-inset-bottom, 12px); background: rgba(10,10,15,.92); backdrop-filter: blur(12px); border-top: 1px solid var(--line); z-index: 90; gap: 10px; justify-content: stretch; }
  .sticky-cta .btn { flex: 1; padding: 12px; font-size: 14px; }
  body { padding-bottom: 70px; }
  .fchat-btn { bottom: 80px; }
}

/* Hero */
.hero { padding: 80px 0 100px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(124,92,255,.15), transparent 60%);
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; position: relative; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; gap: 40px; } }
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 100px;
  background: rgba(124,92,255,.1); border: 1px solid rgba(124,92,255,.3);
  color: var(--accent); font-size: 13px; font-weight: 500; margin-bottom: 24px;
}
.hero__lead { font-size: 19px; margin: 20px 0 32px; max-width: 540px; }
.hero__cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 48px; }
.hero__meta { display: flex; gap: 32px; flex-wrap: wrap; }
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta b { font-size: 26px; font-weight: 700; color: var(--text); }
.hero__meta span { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* Demo chat in hero */
.chat {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.chat__avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff;
}
.chat__name { font-weight: 600; }
.chat__status { font-size: 12px; color: var(--green); }
.chat__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; min-height: 280px; max-height: 380px; overflow-y: auto; }
.msg { padding: 10px 14px; border-radius: 14px; max-width: 80%; font-size: 14.5px; line-height: 1.45; }
.msg--in { background: var(--bg-3); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg--out { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg--typing { display: flex; gap: 4px; align-items: center; padding: 14px; }
.msg--typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: bounce 1.4s infinite; }
.msg--typing span:nth-child(2) { animation-delay: .2s; }
.msg--typing span:nth-child(3) { animation-delay: .4s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-6px); opacity: 1; } }
.chat__input { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--line); }
.chat__input input { flex: 1; background: var(--bg-3); border: 1px solid var(--line); color: var(--text); padding: 10px 14px; border-radius: 10px; font-size: 14px; outline: none; }
.chat__input input:focus { border-color: var(--accent); }
.chat__input button { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border: none; padding: 0 18px; border-radius: 10px; font-weight: 600; cursor: pointer; }

/* Sections */
section { padding: 80px 0; }
.problem__grid, .how__steps { display: grid; gap: 20px; }
.problem__grid { grid-template-columns: repeat(4, 1fr); margin-top: 40px; }
@media (max-width: 900px) { .problem__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .problem__grid { grid-template-columns: 1fr; } }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card__ico { font-size: 32px; margin-bottom: 14px; }

.how__steps { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .how__steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .how__steps { grid-template-columns: 1fr; } }
.step { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.step__num { font-size: 14px; color: var(--accent); font-weight: 700; letter-spacing: 0.1em; margin-bottom: 14px; }

/* Calculator */
.calc { background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 40px; margin-top: 30px; }
.calc__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 800px) { .calc__grid { grid-template-columns: 1fr; } }
.calc__row { margin-bottom: 22px; }
.calc__row label { display: block; color: var(--muted); margin-bottom: 8px; font-size: 14px; }
.calc__row input { width: 100%; background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; color: var(--text); font-size: 16px; outline: none; }
.calc__row input:focus { border-color: var(--accent); }
.calc__result { background: linear-gradient(135deg, rgba(124,92,255,.15), rgba(91,140,255,.15)); border: 1px solid rgba(124,92,255,.3); border-radius: var(--radius); padding: 30px; text-align: center; }
.calc__loss { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.calc__amount { font-size: 42px; font-weight: 700; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.calc__hint { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* Case */
.case { background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 40px; margin-top: 30px; }
.case__tag { display: inline-block; background: rgba(46,204,113,.1); color: var(--green); border: 1px solid rgba(46,204,113,.3); padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 600; margin-bottom: 16px; }
.case__lead { margin: 12px 0 28px; font-size: 16px; }
.case__stats { display: flex; gap: 40px; flex-wrap: wrap; }
.case__stats b { font-size: 32px; font-weight: 700; display: block; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.case__stats span { color: var(--muted); font-size: 14px; }

/* Pricing */
.price__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 800px) { .price__grid { grid-template-columns: 1fr; } }
.plan { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; position: relative; display: flex; flex-direction: column; }
.plan--hot { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 60px rgba(124,92,255,.2); }
.plan__badge { position: absolute; top: -12px; right: 24px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 100px; }
.plan__name { font-size: 14px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.plan__price { font-size: 36px; font-weight: 700; margin: 12px 0 24px; }
.plan__price span { font-size: 16px; color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; flex: 1; margin-bottom: 24px; }
.plan li { padding: 8px 0 8px 24px; color: var(--text); position: relative; font-size: 15px; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Lead form */
.lead { padding-bottom: 100px; }
.lead__box { background: linear-gradient(135deg, rgba(124,92,255,.1), rgba(91,140,255,.05)); border: 1px solid var(--line); border-radius: 20px; padding: 50px 40px; text-align: center; max-width: 620px; margin: 0 auto; }
.lead__box p { margin: 12px 0 32px; }
.form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.form input { background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; color: var(--text); font-size: 15px; outline: none; }
.form input:focus { border-color: var(--accent); }
.form__msg { font-size: 14px; padding: 4px; min-height: 20px; }
.form__msg.ok { color: var(--green); }
.form__msg.err { color: #ff6b6b; }
.lead__small { color: var(--muted); font-size: 13px; margin-top: 16px; }

/* Floating chat */
.fchat-btn { position: fixed; right: 24px; bottom: 24px; width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); border: none; cursor: pointer; box-shadow: 0 10px 30px rgba(124,92,255,.4); z-index: 100; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff; transition: transform .2s; }
.fchat-btn:hover { transform: scale(1.08); }
.fchat-window { position: fixed; right: 24px; bottom: 100px; width: 380px; max-width: calc(100vw - 48px); height: 540px; max-height: calc(100vh - 130px); background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.6); display: none; flex-direction: column; z-index: 100; overflow: hidden; }
.fchat-window.open { display: flex; }
.fchat-window .chat__body { flex: 1; max-height: none; }

/* Testimonials */
.tg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
@media (max-width: 900px) { .tg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tg-grid { grid-template-columns: 1fr; } }
.tg-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 24px; transition: border .2s; }
.tg-card:hover { border-color: var(--accent); }
.tg-stars { color: #ffc107; font-size: 14px; letter-spacing: 2px; margin-bottom: 12px; }
.tg-text { color: var(--text); font-size: 15px; line-height: 1.55; margin-bottom: 20px; }
.tg-author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.tg-avatar { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 17px; flex-shrink: 0; }
.tg-author b { color: var(--text); font-size: 14px; }
.tg-author span { color: var(--muted); font-size: 12px; }

/* FAQ */
.faq-item { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color .2s; }
.faq-item[open] { border-color: var(--accent); }
.faq-item summary { padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 24px; color: var(--accent); transition: transform .2s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 24px 20px; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Footer */
.foot { padding: 60px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; margin-top: 60px; }
.foot__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
@media (max-width: 800px) { .foot__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .foot__cols { grid-template-columns: 1fr; } }
.foot__col h4 { color: var(--text); font-size: 14px; font-weight: 600; margin-bottom: 14px; letter-spacing: 0.05em; text-transform: uppercase; }
.foot__col a { display: block; padding: 4px 0; color: var(--muted); font-size: 14px; transition: color .2s; }
.foot__col a:hover { color: var(--accent); }
.foot__brand .logo { display: inline-block; margin-bottom: 12px; }
.foot__brand p { font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 280px; }
.foot__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }

/* Mobile polish */
@media (max-width: 720px) {
  section { padding: 56px 0; }
  .hero { padding: 48px 0 60px; }
  .container { padding: 0 18px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .hero__lead { font-size: 16px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .hero__meta { gap: 18px; }
  .hero__meta b { font-size: 22px; }
  .hero__meta div { flex: 1; min-width: 120px; }
  .calc { padding: 24px 20px; }
  .calc__amount { font-size: 32px; }
  .case { padding: 28px 22px; }
  .case__stats { gap: 22px; }
  .case__stats b { font-size: 24px; }
  .price__grid { gap: 14px; }
  .plan { padding: 24px 20px; }
  .lead__box { padding: 36px 22px; }
  .fchat-btn { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .fchat-window { right: 8px; bottom: 80px; width: calc(100vw - 16px); height: calc(100vh - 110px); }
  .faq-item summary { padding: 16px 18px; font-size: 15px; }
  .faq-item p { padding: 0 18px 18px; font-size: 14px; }
}

@media (max-width: 480px) {
  h1 { font-size: 28px; line-height: 1.2; }
  .hero__meta { flex-direction: column; gap: 16px; }
  .badge { font-size: 12px; }
}
