:root {
  --bg: #ffffff;
  --soft: #f3f6fb;
  --text: #121827;
  --hint: #5f6b80;
  --line: #e3e8f0;
  --accent: #1677ff;
  --accent-2: #0b3bd1;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(16, 32, 80, 0.08), 0 2px 6px rgba(16, 32, 80, 0.05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1017;
    --soft: #141924;
    --text: #e9edf5;
    --hint: #93a0b8;
    --line: #232b3a;
    --accent: #4b93ff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 14px; }
h3 { font-size: 19px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; }
.nav { display: none; gap: 26px; margin-left: auto; }
.nav a { color: var(--hint); font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }
.top .btn { margin-left: auto; }
@media (min-width: 820px) { .nav { display: flex; } .top .btn { margin-left: 0; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-weight: 600;
  padding: 14px 24px; border-radius: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(22, 119, 255, 0.3); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 11px; }
.btn-light { background: #fff; color: var(--accent-2); }
.btn-light:hover { box-shadow: 0 10px 28px rgba(0, 10, 60, 0.28); }

/* ---------- первый экран ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(120, 180, 255, 0.55), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(40, 90, 255, 0.6), transparent 70%),
    linear-gradient(160deg, #1677ff 0%, #0b3bd1 60%, #06154a 100%);
}
.hero-in { display: grid; gap: 36px; padding: 56px 16px 64px; align-items: center; }
@media (min-width: 720px) { .hero-in { padding: 72px 28px 84px; } }
@media (min-width: 960px) { .hero-in { grid-template-columns: 1fr 1.05fr; gap: 48px; } }
.pill {
  display: inline-block; padding: 6px 12px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
}
.hero h1 { font-size: clamp(34px, 6vw, 58px); margin: 18px 0 16px; }
.lead { font-size: clamp(17px, 2vw, 19px); opacity: 0.9; margin: 0 0 28px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.note { font-size: 14px; opacity: 0.8; }
.hero-media video {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 30px 60px rgba(0, 10, 60, 0.4);
  background: #0b3bd1;
}

/* ---------- секции ---------- */
.section { padding: 64px 0; }
@media (min-width: 720px) { .section { padding: 88px 0; } }
.section.alt { background: var(--soft); }
.sub { color: var(--hint); margin: 0 0 28px; max-width: 46em; }
.fine { color: var(--hint); font-size: 14px; margin: 22px 0 0; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  counter-increment: s; position: relative;
  background: var(--soft); border-radius: var(--radius); padding: 60px 20px 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.steps li::before {
  content: counter(s); position: absolute; top: 18px; left: 20px;
  width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15px;
}
.steps span { color: var(--hint); font-size: 15px; }

.cards { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--hint); margin: 8px 0 0; font-size: 15px; }
.ico {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px;
  border-radius: 14px; font-size: 22px;
  background: color-mix(in srgb, var(--c) 14%, transparent);
}

.plans { display: grid; gap: 16px; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; background: var(--bg); }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.tag {
  position: absolute; top: -12px; left: 20px; padding: 3px 10px; border-radius: 99px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
}
.price { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 16px; }
.price small { font-size: 15px; font-weight: 500; color: var(--hint); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 15px; }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.two { display: grid; gap: 48px; }
@media (min-width: 960px) { .two { grid-template-columns: 1.2fr 1fr; } }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 16px; }
.checks li { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; color: var(--hint); font-size: 15px; }
.checks b { color: var(--text); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: -2px; font-size: 22px; color: var(--hint); }
.faq details[open] summary::after { content: '−'; }
.faq p { color: var(--hint); margin: 10px 0 0; font-size: 15px; }

.cta { background: linear-gradient(135deg, #1677ff, #0b3bd1); color: #fff; text-align: center; }
.cta-in { padding: 64px 16px; }
.cta p { opacity: 0.9; margin: 0 0 26px; font-size: 18px; }

/* ---------- подвал ---------- */
.foot { border-top: 1px solid var(--line); padding: 44px 0 28px; font-size: 14px; }
.foot-in { display: grid; gap: 32px; }
@media (min-width: 820px) { .foot-in { grid-template-columns: 1.2fr 1.4fr 1fr; } }
.foot h4 { margin: 0 0 12px; font-size: 14px; }
.foot-in > div:not(:first-child) a { display: block; color: var(--hint); margin-bottom: 8px; overflow-wrap: anywhere; }
.foot-in a:hover { color: var(--text); }
.req { color: var(--hint); margin: 14px 0 0; }
.copy { color: var(--hint); margin-top: 28px; }

/* ---------- страницы документов ---------- */
.doc { padding: 40px 0 72px; }
.doc .wrap { max-width: 820px; }
.doc .back { display: inline-block; margin-bottom: 22px; font-size: 15px; }
.doc h1 { font-size: clamp(26px, 4.5vw, 36px); margin-bottom: 8px; }
.doc h2 { font-size: 21px; margin: 34px 0 10px; scroll-margin-top: 80px; }
.doc p, .doc li { color: color-mix(in srgb, var(--text) 85%, var(--hint)); }
.doc p { margin: 8px 0; }
.doc ul { padding-left: 22px; margin: 6px 0 10px; }
.doc .edition { color: var(--hint); margin: 0 0 18px; }
.doc .draft { background: #fff4d6; color: #6b4b00; border-radius: 12px; padding: 12px 16px; font-size: 14px; }
.doc .missing { background: #ffe1e1; color: #8a1c1c; border-radius: 4px; padding: 0 3px; }
.doclist { list-style: none; padding: 0; display: grid; gap: 10px; }
