:root {
  --ink: #15233B;
  --mute: #566A85;
  --bg: #FFFFFF;
  --bg-2: #F4F7FB;
  --line: #DCE7F3;
  --accent: #2E6BE6;
  --accent-ink: #1F5AD0;
  --hot: #FF5A36;
  --ok: #14936A;
  --err: #D3473D;
  --radius: 16px;
  --head: "Manrope", "Segoe UI", system-ui, sans-serif;
  --body: "Onest", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 var(--body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--head); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
a { color: var(--accent-ink); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.mute { color: var(--mute); }
[hidden] { display: none !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; border: 0;
  background: var(--hot); color: #fff; font: 700 16px var(--head); text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255, 90, 54, .28); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.btn.small { padding: 9px 16px; font-size: 14px; }
.btn.line { background: transparent; color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px var(--line); padding: 9px 16px; font-size: 14px; }
.btn.line:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }

/* шапка */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 19px var(--head); }
.brand img { width: 30px; height: 30px; }
.with { font-size: 13px; color: var(--mute); padding: 4px 10px; border-radius: 999px; background: var(--bg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.top-nav { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.langs { display: flex; background: var(--bg-2); border-radius: 999px; padding: 3px; }
.langs button { border: 0; background: none; font: 700 12px var(--head); color: var(--mute); padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.langs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(21, 35, 59, .12); }

/* первый экран */
.hero { padding: 64px 0 72px; background: radial-gradient(1200px 500px at 80% -10%, rgba(46, 107, 230, .10), transparent 60%), linear-gradient(var(--bg), var(--bg-2)); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { font: 700 13px var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); margin: 0 0 16px; }
.lead { font-size: 19px; color: var(--mute); max-width: 560px; margin: 0 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { list-style: none; display: flex; gap: 32px; padding: 0; margin: 36px 0 0; flex-wrap: wrap; }
.facts b { display: block; font: 800 22px var(--head); }
.facts span { font-size: 14px; color: var(--mute); }

.chat { margin: 0; background: #fff; border-radius: 22px; padding: 18px; box-shadow: 0 2px 4px rgba(21, 35, 59, .05), 0 24px 60px rgba(21, 35, 59, .12); border: 1px solid var(--line); }
.chat-head { display: flex; align-items: center; gap: 8px; font: 700 14px var(--head); padding: 2px 4px 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(20, 147, 106, .18); }
.msg { max-width: 84%; padding: 10px 14px; border-radius: 16px; margin: 0 0 8px; font-size: 15px; position: relative; opacity: 0; animation: pop .4s forwards; }
.msg time { display: block; font-size: 11px; opacity: .6; margin-top: 2px; text-align: right; }
.msg.in { background: var(--bg-2); border-bottom-left-radius: 4px; }
.msg.out { background: var(--accent); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.msg.ok { background: var(--ok); }
.msg:nth-of-type(2) { animation-delay: .5s; } .msg:nth-of-type(3) { animation-delay: 1.1s; } .msg:nth-of-type(4) { animation-delay: 1.7s; } .msg:nth-of-type(5) { animation-delay: 2.3s; }
.chat figcaption { font-size: 13px; color: var(--mute); text-align: center; margin-top: 10px; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .msg { animation: none; opacity: 1; } html { scroll-behavior: auto; } }

/* блоки */
.block { padding: 80px 0; }
.block.alt { background: var(--bg-2); }
.sub { color: var(--mute); font-size: 17px; max-width: 680px; margin: 0 0 36px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: #b9cde6; box-shadow: 0 10px 30px rgba(21, 35, 59, .07); }
.card p { color: var(--mute); margin: 0 0 14px; }
.card ul { list-style: none; padding: 0; margin: 0 0 18px; font-size: 15px; }
.card li { padding-left: 24px; position: relative; margin-bottom: 6px; }
.card li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.price { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price b { font: 800 22px var(--head); }
.price span { color: var(--mute); font-size: 14px; }
.card-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0; margin: 0; }
.steps li { counter-increment: s; background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font: 800 16px var(--head); margin-bottom: 14px; }
.steps b { display: block; font: 700 18px var(--head); margin-bottom: 6px; }
.steps span { color: var(--mute); }

/* форма */
.book { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: rgba(20, 147, 106, .14); color: var(--ok); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.form, .done { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: 0 20px 50px rgba(21, 35, 59, .08); }
.done { display: block; text-align: center; padding: 48px 28px; }
.done h3 { font-size: 26px; }
.done p { color: var(--mute); margin-bottom: 22px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.form .wide { grid-column: 1 / -1; }
.form input, .form select, .form textarea { font: 16px var(--body); color: var(--ink); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; width: 100%; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(46, 107, 230, .12); }
.form input[aria-invalid="true"] { border-color: var(--err); }
.form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--mute); }
.form .check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { color: var(--err); font-size: 14px; margin: 0; min-height: 0; }
.err:empty { display: none; }

.foot { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--mute); }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 880px) {
  .hero { padding: 40px 0 56px; }
  .hero-grid, .book { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; }
  .block { padding: 56px 0; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; padding: 20px; }
  .top-nav .btn { display: none; }
  .with { display: none !important; }
  .facts { gap: 20px; }
}
