:root {
  --bg: #0b1120;
  --bg-alt: #131c33;
  --text: #eef2ff;
  --text-dim: #a3adc9;
  --accent: #3b82f6;
  --accent-dim: #1e3a6d;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
}

.logo { font-weight: 800; font-size: 1.4rem; letter-spacing: 0.05em; }

.lang-switch button {
  background: none;
  border: 1px solid var(--accent-dim);
  color: var(--text-dim);
  border-radius: 6px;
  padding: 4px 10px;
  margin-left: 6px;
  cursor: pointer;
}
.lang-switch button.active { color: var(--text); border-color: var(--accent); }

section { max-width: 960px; margin: 0 auto; padding: 48px 24px; }

.hero { text-align: center; padding-top: 80px; }
.hero h1 { font-size: 2.4rem; margin-bottom: 12px; }
.hero .subtitle { color: var(--text-dim); font-size: 1.15rem; margin-bottom: 28px; }

.cta-button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}

h2 { font-size: 1.8rem; margin-bottom: 24px; }

.feature-grid, .pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card, .price-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 20px;
}
.feature-card h3, .price-card h3 { margin-top: 0; }

.steps { padding-left: 20px; }
.steps li { margin-bottom: 12px; }
.steps li strong { display: block; }
.steps li span { color: var(--text-dim); }

.price-card .price { font-size: 1.3rem; font-weight: 700; color: var(--accent); }

.pricing-extra { margin-top: 32px; }
.pricing-extra ul { color: var(--text-dim); }
.pricing-note { font-size: 0.85rem; color: var(--text-dim); margin-top: 16px; }


form { display: flex; flex-direction: column; gap: 14px; max-width: 480px; }
form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; color: var(--text-dim); }
form input, form textarea {
  background: var(--bg-alt);
  border: 1px solid var(--accent-dim);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 1rem;
}
form button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-weight: 600;
  cursor: pointer;
}

.form-status { margin-top: 12px; padding: 10px; border-radius: 8px; }
.form-status.success { background: #123d24; color: #7ee2a8; }
.form-status.error { background: #3d1212; color: #f28b8b; }

.site-footer {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 32px 24px 48px;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

@media (max-width: 600px) {
  .hero h1 { font-size: 1.8rem; }
  section { padding: 32px 16px; }
}

.price-from { font-size: 2rem; font-weight: 700; color: var(--accent); margin: 0 0 8px; }
.pricing-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.cta-secondary { background: transparent; border: 1px solid var(--accent); color: var(--text); }
.compare h3 a { color: var(--text); }

/* Живой диалог в первом экране */
.hero { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) {
  .hero { grid-template-columns: 1fr 340px; text-align: left; max-width: 1040px; }
}
.demo { text-align: center; }
.demo-label { margin: 0; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.demo-caption { margin: 4px 0 14px; font-size: 0.85rem; color: var(--text-dim); }
.demo-phone {
  background: var(--bg-alt);
  border: 1px solid var(--accent-dim);
  border-radius: 28px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.demo-head { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--accent-dim); }
.demo-head b { display: block; font-size: 0.95rem; }
.demo-head small { color: #4ade80; font-size: 0.75rem; }
.demo-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 800;
}
.demo-feed {
  height: 440px; overflow-y: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
  scrollbar-width: none;
}
.demo-msg {
  max-width: 82%; padding: 9px 12px; border-radius: 14px;
  font-size: 0.88rem; line-height: 1.4;
  animation: demo-in 0.25s ease-out;
}
.demo-client { align-self: flex-start; background: #1f2a47; border-bottom-left-radius: 4px; }
.demo-bot { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.demo-action { align-self: flex-end; background: none; color: var(--text-dim); font-size: 0.78rem; font-family: ui-monospace, monospace; padding: 2px 4px; }
.demo-action::before { content: "⚙ "; }
.demo-card { align-self: flex-end; background: #0f2a1d; border: 1px solid #1f6b43; }
.demo-card strong { display: block; color: #4ade80; font-size: 0.85rem; }
.demo-card span { color: var(--text-dim); font-size: 0.8rem; }
.demo-typing { display: flex; gap: 4px; padding: 12px 14px; }
.demo-typing i { width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: 0.4; animation: demo-dot 1s infinite; }
.demo-typing i:nth-child(2) { animation-delay: 0.15s; }
.demo-typing i:nth-child(3) { animation-delay: 0.3s; }
.demo-input {
  display: flex; justify-content: space-between; align-items: center;
  margin: 0 12px 12px; padding: 8px 8px 8px 14px;
  background: var(--bg); border-radius: 20px; color: var(--text-dim); font-size: 0.85rem;
}
.demo-input i { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-style: normal; }
.demo-replay {
  margin-top: 14px; background: none; color: var(--text-dim);
  border: 1px solid var(--accent-dim); border-radius: 20px;
  padding: 6px 14px; cursor: pointer; font: inherit; font-size: 0.85rem;
}
.demo-replay:hover { color: var(--text); border-color: var(--accent); }
@keyframes demo-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes demo-dot { 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .demo-msg, .demo-typing i { animation: none; } }
