* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #1a1a2e;
  line-height: 1.5;
  background: #f6f7fb;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }

/* Кнопки */
.btn {
  display: inline-block;
  background: #fff;
  color: #3b82f6;
  border: 2px solid #3b82f6;
  border-radius: 12px;
  padding: 12px 26px;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.btn:hover { background: #eff6ff; }
.btn:active { transform: scale(.98); }
.btn-primary { background: #3b82f6; color: #fff; }
.btn-primary:hover { background: #2563eb; }
.btn-big { background: #22c55e; border-color: #22c55e; color: #fff; font-size: 20px; padding: 16px 38px; }
.btn-big:hover { background: #16a34a; }
.btn-outline { border-color: #cbd5e1; color: #334155; font-size: 14px; padding: 8px 16px; }
.btn-outline:hover { background: #f1f5f9; }

.hint { font-size: 14px; color: #64748b; margin-top: 10px; }
.muted { color: #64748b; font-size: 14px; }

/* Шапка */
.topbar { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 14px 0; }
.logo { font-size: 20px; font-weight: 700; }

/* Герой */
.hero { background: linear-gradient(135deg, #1e3a8a, #3b82f6); color: #fff; text-align: center; padding: 70px 0 60px; }
.hero h1 { font-size: 38px; font-weight: 800; margin-bottom: 18px; line-height: 1.2; }
.accent { color: #fbbf24; }
.hero-sub { font-size: 18px; max-width: 640px; margin: 0 auto 28px; opacity: .95; }
.hero-cta .hint { color: #dbeafe; }

/* Секции */
section { padding: 54px 0; }
section h2 { font-size: 28px; text-align: center; margin-bottom: 34px; }
.features { background: #fff; }
.how { background: #f6f7fb; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  padding: 28px 24px; text-align: center;
}
.card-ico { font-size: 40px; margin-bottom: 12px; }
.card h3 { margin-bottom: 10px; font-size: 18px; }
.card p { color: #475569; font-size: 15px; }

.steps { max-width: 520px; margin: 0 auto; counter-reset: step; list-style: none; }
.steps li {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 18px 20px 18px 60px; margin-bottom: 14px; position: relative; font-size: 16px;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 18px; top: 16px;
  width: 28px; height: 28px; border-radius: 50%;
  background: #3b82f6; color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Тарифы */
.pricing { background: #fff; }
.pricing-grid { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; align-items: start; }
.price-card {
  border: 1px solid #e2e8f0; border-radius: 16px; padding: 28px 24px; text-align: center; background: #fff;
}
.price-card.popular { border-color: #3b82f6; box-shadow: 0 10px 30px rgba(59,130,246,.15); }
.price-card h3 { margin-bottom: 8px; font-size: 18px; }
.price { font-size: 34px; font-weight: 800; margin: 6px 0; }
.price span { font-size: 15px; color: #64748b; font-weight: 400; }
.price-card p { color: #64748b; margin-bottom: 12px; }
.price-card ul { text-align: left; list-style: none; margin: 12px 0 20px; }
.price-card li { padding: 5px 0 5px 24px; position: relative; color: #334155; font-size: 15px; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: #22c55e; font-weight: 700; }
.badge {
  display: inline-block; background: #3b82f6; color: #fff; font-size: 12px;
  border-radius: 20px; padding: 3px 12px; margin-bottom: 8px;
}

/* CTA */
.cta { background: linear-gradient(135deg, #13315c, #1e40af); color: #fff; text-align: center; }
.cta h2 { margin-bottom: 10px; }
.cta p { margin-bottom: 22px; opacity: .9; }

/* Команды бота */
.commands-sec { background: #fff; }
.commands {
  max-width: 720px; margin: 0 auto;
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px 24px;
}
.commands li {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 12px 16px; font-size: 15px; color: #334155;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .93em; background: #eff6ff; color: #1d4ed8;
  border-radius: 6px; padding: 2px 6px;
}
.note {
  max-width: 720px; margin: 22px auto 0; text-align: center;
  font-size: 14px; color: #64748b;
}
.note code { background: #f1f5f9; color: #334155; }

/* FAQ */
.faq-sec { background: #f6f7fb; }
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 16px 20px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 16px; color: #1e3a8a;
  list-style: none; position: relative; padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: -2px;
  font-size: 22px; font-weight: 400; color: #3b82f6;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { margin-bottom: 8px; }
.faq p { font-size: 15px; color: #475569; }

footer { background: #0f172a; color: #cbd5e1; text-align: center; padding: 26px 0; }
footer a { color: #93c5fd; text-decoration: none; }
footer a:hover { text-decoration: underline; }

a:focus-visible, summary:focus-visible {
  outline: 3px solid #93c5fd; outline-offset: 3px; border-radius: 6px;
}

@media (max-width: 600px) {
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 16px; }
  section h2 { font-size: 24px; }
  .commands { grid-template-columns: 1fr; }
}