/* ============ База ============ */
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #16202e;
  --muted: #5b6b7f;
  --line: #e3e9f1;
  --accent: #1a56db;
  --accent-dark: #1442ab;
  --accent-soft: #e8effc;
  --green: #0e9f6e;
  --red: #d64545;
  --amber: #b7791f;
  --pilot-bg: #12234d;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(22, 32, 46, .08);
  --shadow-sm: 0 2px 10px rgba(22, 32, 46, .06);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 12px; }
h3 { font-size: 19px; margin-bottom: 8px; }

.section { padding: 84px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-sub { color: var(--muted); font-size: 18px; max-width: 720px; margin-bottom: 40px; }
.section-sub-light { color: #c6d2ea; font-size: 18px; max-width: 760px; margin: 0 auto 44px; }

/* ============ Кнопки ============ */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(26, 86, 219, .30); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-white { background: #fff; color: var(--pilot-bg); }
.btn-white:hover { background: #e8effc; }
.btn-lg { padding: 16px 30px; font-size: 17px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }

/* ============ Шапка ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700;
}
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.btn-nav { padding: 9px 18px; font-size: 15px; }

/* ============ Герой ============ */
.hero { padding: 72px 0 84px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: var(--accent-soft); color: var(--accent-dark);
  font-size: 14px; font-weight: 600;
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(32px, 4.6vw, 46px); margin-bottom: 18px; }
.hero-sub { color: var(--muted); font-size: 19px; margin-bottom: 28px; }
.hero-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-cta-note { color: var(--ink); font-size: 15px; max-width: 210px; line-height: 1.4; }
.hero-points { list-style: none; display: grid; gap: 8px; }
.hero-points li { color: var(--muted); font-size: 15px; padding-left: 24px; position: relative; }
.hero-points li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.hero-points b { color: var(--ink); }

/* ============ Чат-мокап ============ */
.chat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 480px;
  margin: 0 auto;
}
.chat-wide { max-width: 640px; }
.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #1a2c4e 0%, #12234d 100%);
  color: #fff;
}
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.chat-title { display: flex; flex-direction: column; line-height: 1.3; }
.chat-title b { font-size: 15px; }
.chat-title span { font-size: 12.5px; color: #9fb3d9; }
.chat-title span::before { content: "●"; color: #34d399; font-size: 9px; margin-right: 5px; vertical-align: 1px; }
.chat-body { padding: 18px; display: grid; gap: 12px; background: #f2f5fa; }

.msg { border-radius: 14px; padding: 12px 16px; font-size: 14.5px; line-height: 1.5; }
.msg.user {
  background: var(--accent); color: #fff;
  justify-self: end;
  border-bottom-right-radius: 4px;
  max-width: 75%;
  font-size: 15px;
}
.msg.bot {
  background: #fff; border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
  display: grid; gap: 10px;
}
.msg-lead { font-size: 15px; }
.msg-time { text-align: center; color: var(--muted); font-size: 12.5px; font-weight: 500; }

.msg-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.msg-table td { padding: 6px 8px; border-top: 1px solid #edf1f7; }
.msg-table tr:first-child td { border-top: none; }
.msg-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.msg-table .thead td { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.msg-table .total td { border-top: 2px solid var(--line); font-weight: 700; }
.msg-table .ref td { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.msg-table .ref .num { font-weight: 400; }

.up { color: var(--green); }
.down { color: var(--red); }

.msg-rec {
  background: #f0f7f4; border-left: 3px solid var(--green);
  padding: 8px 12px; border-radius: 0 8px 8px 0;
  font-size: 13.5px;
}
.msg-trace { color: #93a1b5; font-size: 12px; }
.chat-hint { text-align: center; color: var(--muted); font-size: 12px; }

/* ============ Карточки ============ */
.cards { display: grid; gap: 20px; }
.cards-pains { grid-template-columns: repeat(3, 1fr); }
.cards-pains .card:nth-child(4),
.cards-pains .card:nth-child(5) { grid-column: span 1; }
.cards-sec { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.card-ico { font-size: 28px; margin-bottom: 14px; }
.card p { color: var(--muted); font-size: 15px; }

/* ============ Решение ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
.step {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}
.step-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin-bottom: 14px;
}
.step p { color: var(--muted); font-size: 15px; }

.solution-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.solution-feature {
  border-radius: var(--radius);
  padding: 24px 26px;
  background: var(--accent-soft);
  border: 1px solid #d5e2f8;
}
.solution-feature.honest { background: #f0f7f4; border-color: #d3e8de; }
.solution-feature p { color: #3c4c61; font-size: 15px; }

.abilities {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.abilities h3 { margin-bottom: 16px; }
.abilities-list {
  list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px;
}
.abilities-list li {
  padding-left: 26px; position: relative;
  color: #3c4c61; font-size: 15px;
}
.abilities-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ============ Демо ============ */
.demo-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.demo-tab {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 100px;
  padding: 10px 18px;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
}
.demo-tab:hover { border-color: var(--accent); color: var(--accent); }
.demo-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.demo-pane { display: none; }
.demo-pane.active { display: block; animation: fadeUp .25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.demo-disclaimer { color: var(--muted); font-size: 13.5px; margin-top: 22px; text-align: center; }

/* ============ Пилот ============ */
.section-pilot {
  background: linear-gradient(160deg, #0f1d3d 0%, #12234d 55%, #173064 100%);
  color: #fff;
}
.pilot-head { text-align: center; }
.section-pilot h2 { color: #fff; }
.timeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 30px;
}
.tl-item {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(2px);
}
.tl-day {
  display: inline-block;
  background: #fff; color: var(--pilot-bg);
  font-weight: 700; font-size: 13.5px;
  border-radius: 100px; padding: 4px 14px;
  margin-bottom: 14px;
}
.tl-item h3 { color: #fff; }
.tl-item p { color: #c6d2ea; font-size: 15px; }
.tl-item b { color: #fff; }
.tl-arrow { align-self: center; font-size: 26px; color: #51689e; }
.pilot-result {
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  padding: 20px 26px;
  color: #dbe4f5; font-size: 16px;
  max-width: 860px; margin: 0 auto 34px;
}
.pilot-result b { color: #fff; }
.pilot-cta { text-align: center; }

/* ============ Форма ============ */
.form-wrap {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}
.form-points { list-style: none; display: grid; gap: 12px; margin-top: 8px; }
.form-points li { padding-left: 28px; position: relative; color: #3c4c61; font-size: 16px; }
.form-points li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; font-size: 17px; }

.lead-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: grid; gap: 16px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; gap: 6px; }
.form-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-form label { font-size: 14px; font-weight: 600; color: #3c4c61; }
.lead-form input, .lead-form select, .lead-form textarea {
  font-family: inherit; font-size: 16px;
  padding: 12px 14px;
  border: 1px solid #cfd9e6;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, .14);
}
.lead-form input.err { border-color: var(--red); }
.form-hint { font-size: 13px; color: var(--muted); margin-top: -8px; }
.form-hint.err { color: var(--red); }
.form-status { font-size: 15px; font-weight: 600; display: none; }
.form-status.ok { display: block; color: var(--green); }
.form-status.fail { display: block; color: var(--red); }
.form-legal { font-size: 12.5px; color: #93a1b5; }

/* honeypot: вне экрана, не display:none (боты умные) */
.hp-field {
  position: absolute; left: -9999px; top: -9999px;
  height: 1px; width: 1px; overflow: hidden;
}

/* ============ Футер ============ */
.footer { padding: 30px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }

/* ============ Адаптив ============ */
@media (max-width: 1020px) {
  .cards-pains { grid-template-columns: repeat(2, 1fr); }
  .cards-sec { grid-template-columns: repeat(2, 1fr); }
  .abilities-list { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .section { padding: 60px 0; }
  .nav-links { display: none; }
  .hero { padding: 44px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-demo { order: 2; }
  .steps { grid-template-columns: 1fr; }
  .solution-extra { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .tl-arrow { transform: rotate(90deg); justify-self: center; }
  .form-wrap { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards-pains, .cards-sec { grid-template-columns: 1fr; }
  .form-grid2 { grid-template-columns: 1fr; }
  .hero-cta { gap: 14px; }
  .btn-lg { width: 100%; text-align: center; }
  .hero-cta-note { max-width: none; }
  .chat-body { padding: 14px; }
  .msg.user { max-width: 90%; }
  .demo-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .demo-tab { white-space: nowrap; flex-shrink: 0; }
  .lead-form { padding: 22px; }
}
