:root {
  --ink: #0f1b33;
  --ink-2: #44506a;
  --muted: #7a859c;
  --line: #e3e8f2;
  --bg: #ffffff;
  --bg-alt: #f5f7fc;
  --tg: #2481cc;
  --max: #6b4ce6;
  --grad: linear-gradient(120deg, var(--tg) 0%, var(--max) 100%);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 27, 51, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); font-size: 14px; margin: 6px 0 0; }

/* кнопки */
.btn {
  display: inline-block; padding: 14px 24px; border-radius: 12px; border: 0;
  background: var(--grad); color: #fff; font-weight: 600; text-decoration: none;
  box-shadow: 0 8px 20px rgba(75, 90, 220, .25); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(75, 90, 220, .32); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--max); }
.btn--light { background: #fff; color: var(--ink); box-shadow: none; }
.btn--line { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }

/* шапка */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.88);
       backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; }
.logo__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
              background: var(--grad); color: #fff; font-size: 13px; letter-spacing: .02em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.nav a:hover { color: var(--max); }

/* первый экран */
.hero { padding: 72px 0 80px; background:
        radial-gradient(600px 300px at 85% 10%, rgba(107,76,230,.10), transparent 70%),
        radial-gradient(500px 280px at 10% 90%, rgba(36,129,204,.10), transparent 70%); }
.hero__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--max);
           background: rgba(107,76,230,.08); padding: 5px 12px; border-radius: 99px; margin-bottom: 18px; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.badges li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2);
             background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; }

/* макет чата */
.mock { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.mock__bar span { width: 10px; height: 10px; border-radius: 50%; background: #d6dce8; }
.mock__bar b { margin-left: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.mock__body { padding: 18px; display: flex; flex-direction: column; gap: 12px; background: #fbfcfe; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 85%; }
.msg div { padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.msg p { margin: 0; }
.msg time { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.msg--in div { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg--out { align-self: flex-end; }
.msg--out div { background: linear-gradient(120deg, rgba(36,129,204,.12), rgba(107,76,230,.12)); border-bottom-right-radius: 4px; }
.msg blockquote { margin: 0 0 6px; padding: 4px 8px; border-left: 3px solid var(--max); font-size: 12px; color: var(--ink-2); background: rgba(255,255,255,.6); border-radius: 4px; }
.file { color: var(--tg); font-weight: 500; }

/* секции */
.sec { padding: 84px 0; }
.sec--alt { background: var(--bg-alt); }
.sub { font-size: 18px; color: var(--ink-2); max-width: 640px; margin-bottom: 36px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { color: var(--ink-2); font-size: 15px; margin: 0; }
.ico { font-size: 26px; margin-bottom: 10px; }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; counter-increment: s; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 700; margin-bottom: 14px; }
.steps b { display: block; font-size: 18px; margin-bottom: 6px; }
.steps span { color: var(--ink-2); font-size: 15px; }
.note { margin-top: 24px; color: var(--ink-2); }

.sec__split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 16px 52px; position: relative; color: var(--ink-2); font-size: 15px; }
.checks li::before { content: "✓"; position: absolute; left: 16px; top: 14px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 13px; font-weight: 700; }
.checks b { color: var(--ink); }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 20px; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; }
.plan--main { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: var(--shadow); }
.plan .price { font-size: 40px; font-weight: 800; margin: 6px 0 0; }
.plan .per { color: var(--muted); font-size: 14px; }
.plan ul { padding-left: 18px; color: var(--ink-2); margin: 8px 0 24px; flex: 1; }
.plan .btn { text-align: center; }
.tag { position: absolute; top: 16px; right: 16px; font-size: 12px; font-weight: 600; color: #fff; background: var(--grad); padding: 3px 10px; border-radius: 99px; }

.faq { max-width: 800px; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; position: relative; padding-right: 30px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 22px; color: var(--max); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-2); margin: 12px 0 0; }

.cta { background: var(--grad); color: #fff; text-align: center; }
.cta__in p { opacity: .9; font-size: 18px; }
.cta .hero__cta { justify-content: center; }

.foot { padding: 40px 0; border-top: 1px solid var(--line); }
.foot__in { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; justify-content: space-between; }
.foot nav { display: flex; flex-direction: column; gap: 8px; }
.foot nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.foot nav a:hover { color: var(--max); }

/* юридические страницы */
.doc { max-width: 780px; padding: 56px 20px 80px; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); }
.doc h2 { font-size: 22px; margin-top: 32px; }
.doc p, .doc li { color: var(--ink-2); }
.draft { background: #fff7e6; border: 1px solid #ffd591; color: #8a5300; border-radius: 12px; padding: 12px 16px; font-size: 14px; }

@media (max-width: 960px) {
  .hero__in, .sec__split { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .nav { display: none; }
  .top .btn--sm { margin-left: auto; }
}
@media (max-width: 560px) {
  .grid, .plans { grid-template-columns: 1fr; }
  .sec { padding: 60px 0; }
  .hero { padding: 48px 0 56px; }
  .msg { max-width: 95%; }
}
