:root {
  --navy: #0e1a33;
  --navy-2: #15264a;
  --teal: #14b8a6;
  --teal-dark: #0f8f81;
  --amber: #ff8a1f;
  --bg: #f4f6fa;
  --surface: #ffffff;
  --text: #0e1a33;
  --text-2: #4a5873;
  --text-3: #7a879e;
  --border: #e1e6f0;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(14 26 51 / 0.05), 0 12px 32px rgb(14 26 51 / 0.07);
  --max: 1160px;
  font-family: Inter, 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.muted { color: var(--text-2); }
.eyebrow { display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 14px; }

/* шапка */
.nav { position: sticky; top: 0; z-index: 20; background: rgb(14 26 51 / 0.92); backdrop-filter: blur(10px); color: #fff; }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; }
.logo:hover { text-decoration: none; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav ul a { color: #c9d4ea; text-decoration: none; font-weight: 500; font-size: 0.97rem; }
.nav ul a:hover { color: #fff; }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid rgb(255 255 255 / 0.25); border-radius: 10px; font-weight: 600; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); padding: 12px 20px 20px; display: flex; flex-direction: column; gap: 4px; }
.menu nav a { color: #e2e9f7; text-decoration: none; padding: 12px 4px; border-bottom: 1px solid rgb(255 255 255 / 0.08); }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 14px; font: inherit; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: var(--amber); color: #1c1200; box-shadow: 0 8px 22px rgb(255 138 31 / 0.35); }
.btn.primary:hover { background: #ff9a3d; }
.btn.ghost { color: #fff; border-color: rgb(255 255 255 / 0.35); }
.btn.ghost:hover { background: rgb(255 255 255 / 0.08); }
.btn.outline { color: var(--navy); border-color: var(--border); background: var(--surface); }
.btn.outline:hover { border-color: var(--teal); }
.btn.small { padding: 10px 18px; font-size: 0.95rem; border-radius: 12px; }

/* hero */
.hero { background: radial-gradient(1200px 520px at 80% -10%, #1d3a6e 0%, transparent 60%), var(--navy); color: #fff; padding: 72px 0 84px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero .eyebrow { color: var(--teal); }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero p.lead { font-size: 1.2rem; color: #c9d4ea; max-width: 34rem; margin-bottom: 30px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .fine { margin-top: 22px; font-size: 0.92rem; color: #93a4c4; max-width: 34rem; }
.hero figure { margin: 0; }
.hero img { border-radius: 22px; box-shadow: 0 30px 80px rgb(0 0 0 / 0.45); border: 1px solid rgb(255 255 255 / 0.08); width: 100%; height: auto; }

/* секции */
section { padding: 88px 0; }
section.tight { padding: 64px 0; }
.head { max-width: 46rem; margin-bottom: 44px; }
.head p { margin-top: 14px; color: var(--text-2); font-size: 1.1rem; }
.center { text-align: center; margin-inline: auto; }
.grid { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 1rem; }
.card .ico { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 18px; }
.step { position: relative; }
.step .n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--navy); color: var(--teal); font-weight: 800; font-size: 1.2rem; margin-bottom: 16px; }

/* проблема */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: 22px; box-shadow: var(--shadow); }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.checks li::before { content: '✓'; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #d8f5f0; color: var(--teal-dark); font-weight: 800; font-size: 0.85rem; margin-top: 2px; }
.checks.no li::before { content: '✕'; background: #fde8e8; color: #b42318; }

/* каналы */
.channels { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 26px; }
.chan { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 20px; box-shadow: var(--shadow); font-weight: 700; }
.chan img { width: 44px; height: 44px; border-radius: 12px; }
.chan small { display: block; font-weight: 400; color: var(--text-3); }

/* фиксируется / нет */
.honest { background: var(--navy); color: #fff; }
.honest h2 { color: #fff; }
.honest .head p { color: #b3c1dd; }
.honest .card { background: var(--navy-2); border-color: rgb(255 255 255 / 0.1); box-shadow: none; }
.honest .card h3 { color: #fff; }
.honest .checks li { color: #c9d4ea; }
.honest .checks li::before { background: rgb(20 184 166 / 0.18); color: var(--teal); }
.honest .checks.no li::before { background: rgb(255 138 31 / 0.18); color: var(--amber); }

/* тарифы */
.pricing { background: linear-gradient(180deg, var(--bg), #e9eef8); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; max-width: 880px; margin-inline: auto; }
.plan { position: relative; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--teal); }
.plan .tag { position: absolute; top: -14px; right: 22px; background: var(--teal); color: #04312c; font-weight: 800; font-size: 0.8rem; padding: 4px 12px; border-radius: 99px; }
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 2px; }
.price small { font-size: 1rem; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; color: var(--text-2); font-size: 0.98rem; }
.plan li::before { content: '✓'; color: var(--teal-dark); font-weight: 800; }
.plan li.off { color: var(--text-3); }
.plan li.off::before { content: '🔒'; font-weight: 400; font-size: 0.85rem; }
.plan .btn { margin-top: auto; }
.table-wrap { overflow-x: auto; margin-top: 40px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.compare th { background: #f7f9fd; font-size: 0.92rem; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 22%; }
.compare tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--teal-dark); font-weight: 800; }
.compare .no { color: var(--text-3); }
.note { margin-top: 20px; font-size: 0.95rem; color: var(--text-2); text-align: center; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 4px 22px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--teal-dark); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 18px; color: var(--text-2); }

/* CTA и подвал */
.final { background: radial-gradient(900px 400px at 20% 0%, #1d3a6e, transparent 60%), var(--navy); color: #fff; text-align: center; padding: 84px 0; }
.final p { color: #b3c1dd; margin: 14px auto 28px; max-width: 34rem; }
footer { background: #091226; color: #93a4c4; padding: 48px 0 36px; font-size: 0.93rem; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer h4 { color: #fff; margin: 0 0 12px; font-size: 0.95rem; }
footer a { color: #b9c7e3; text-decoration: none; display: block; padding: 3px 0; }
footer a:hover { color: #fff; text-decoration: underline; }
footer .legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 0.1); line-height: 1.55; }

/* юридические страницы */
.doc { background: var(--surface); }
.doc main { padding: 56px 0 90px; }
.doc article { max-width: 820px; margin-inline: auto; }
.doc article h1 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); margin-bottom: 20px; }
.doc article h2 { font-size: 1.35rem; margin: 34px 0 12px; }
.doc article p, .doc article li { color: #26324d; }
.doc article table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.95rem; display: block; overflow-x: auto; }
.doc article th, .doc article td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc article th { background: #f7f9fd; }
.doc article blockquote { margin: 18px 0; padding: 12px 18px; background: #f2f7fb; border-left: 4px solid var(--teal); border-radius: 0 12px 12px 0; }
mark.todo { background: #fff0cc; color: #7a4b00; border-radius: 4px; padding: 0 4px; }
.draft-banner { background: #fff7e6; border-bottom: 1px solid #f0d9a6; color: #6b4a00; font-size: 0.9rem; padding: 10px 0; text-align: center; }

@media (max-width: 920px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 56px; }
  section { padding: 64px 0; }
  .nav ul { display: none; }
  .nav .btn.small { display: none; }
  .menu { display: block; }
  footer .cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* правки: пропорции изображений и списки */
img { height: auto; }
.hero img, .split > img { height: auto; aspect-ratio: auto; }
.split > img { width: 100%; align-self: center; }
.chan img { width: 44px; height: 44px; object-fit: contain; }
.checks li { display: block; position: relative; padding-left: 38px; }
.checks li::before { position: absolute; left: 0; top: 2px; margin: 0; }

/* инструкция по установке */
.install { background: #fff; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; max-width: 860px; margin-inline: auto; }
.steps li { counter-increment: s; position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 20px 24px 20px 76px; }
.steps li::before { content: counter(s); position: absolute; left: 22px; top: 18px; width: 38px; height: 38px; border-radius: 12px; background: var(--navy); color: var(--teal); display: grid; place-items: center; font-weight: 800; }
.steps b { color: var(--navy); }
.steps .path { display: inline-block; margin: 2px 0; padding: 2px 10px; background: #e5ecf8; border-radius: 8px; font-weight: 600; font-size: 0.95rem; }
.install .tip { max-width: 860px; margin: 22px auto 0; padding: 16px 22px; background: #fff7e6; border: 1px solid #f0d9a6; border-radius: 14px; color: #5c4200; }

/* модалка заявки */
dialog#lead { border: 0; border-radius: 22px; padding: 0; width: min(520px, calc(100% - 28px)); box-shadow: 0 40px 100px rgb(0 0 0 / 0.4); color: var(--text); }
dialog#lead::backdrop { background: rgb(9 18 38 / 0.62); backdrop-filter: blur(3px); }
dialog#lead .box { padding: 30px 30px 28px; }
dialog#lead h2 { font-size: 1.6rem; margin-bottom: 6px; }
dialog#lead .sub { color: var(--text-2); margin-bottom: 20px; font-size: 0.98rem; }
dialog#lead label { display: block; font-weight: 600; font-size: 0.9rem; margin: 14px 0 6px; }
dialog#lead input[type=text], dialog#lead input[type=tel], dialog#lead input[type=email] { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fbfcfe; }
dialog#lead input:focus { outline: 2px solid var(--teal); border-color: transparent; }
dialog#lead .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.88rem; color: var(--text-2); margin-top: 18px; }
dialog#lead .consent input { margin-top: 4px; flex: none; }
dialog#lead .err { color: #b42318; background: #fdecec; border-radius: 10px; padding: 0 12px; margin-top: 14px; font-size: 0.92rem; }
dialog#lead .err:not(:empty) { padding: 10px 12px; }
dialog#lead .actions { display: flex; gap: 12px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
dialog#lead .x { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--text-3); cursor: pointer; }
dialog#lead .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
dialog#lead .done { text-align: center; padding: 14px 4px 4px; }
dialog#lead .done .ok { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: #d8f5f0; color: var(--teal-dark); display: grid; place-items: center; font-size: 2rem; font-weight: 800; }
dialog#lead [hidden] { display: none !important; }

.install .tip .btn { margin-left: 10px; vertical-align: middle; }

.channels { gap: 12px; }
.chan { padding: 10px 14px; gap: 12px; font-size: 0.95rem; }
.chan small { font-size: 0.78rem; }
