:root {
  --bg: #ffffff;
  --bg-tint: #f6f7f9;
  --ink: #14161b;
  --ink-soft: #3c414a;
  --muted: #6b7280;
  --line: #e6e8ee;
  --accent: #1f5fe0;
  --accent-ink: #ffffff;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.01em; }

a { color: var(--accent); }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(31, 95, 224, .35);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.logo-mark { font-weight: 800; letter-spacing: .1em; font-size: 17px; }
.logo-text { color: var(--muted); font-size: 13px; }

.nav { display: flex; gap: 22px; }
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
}
.nav a:hover { color: var(--ink); }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
  transition: transform .08s ease, border-color .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { border-color: #c9cfda; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn--primary:hover { background: #1b54c8; border-color: #1b54c8; }

.btn--ghost { background: transparent; }
.btn--small { padding: 9px 14px; font-size: 14px; }

/* ---------- hero ---------- */

.hero {
  padding: 84px 20px 72px;
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(31, 95, 224, .10), transparent 60%),
    radial-gradient(700px 360px at 90% 0%, rgba(19, 160, 120, .08), transparent 55%);
  border-bottom: 1px solid var(--line);
}

.hero-inner { max-width: 860px; margin: 0 auto; text-align: center; }

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 13px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
}

.hero-lead {
  margin: 0 auto 28px;
  max-width: 620px;
  color: var(--ink-soft);
  font-size: clamp(16px, 2vw, 19px);
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-note { margin: 18px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- секции ---------- */

.section { padding: 72px 20px; }
.section--tint { background: var(--bg-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-inner { max-width: 1120px; margin: 0 auto; }

.section-title {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.4vw, 34px);
}

.section-lead {
  margin: 0 0 32px;
  max-width: 720px;
  color: var(--muted);
}

/* ---------- карточки модулей ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.card-top { display: flex; align-items: center; gap: 12px; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  font-size: 18px;
  color: var(--accent);
}

.card h3 { margin: 0; font-size: 19px; }

.card-tagline { margin: 12px 0 16px; color: var(--muted); }

.card-link {
  margin-top: auto;
  padding-top: 16px;
  text-decoration: none;
  font-weight: 600;
}

.list { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.list li { margin: 6px 0; }

/* ---------- шаги ---------- */

.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  counter-reset: step;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}

.step h3 { margin: 0 0 8px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); }

/* ---------- две колонки ---------- */

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.col-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.col-card h3 { margin: 0 0 8px; font-size: 20px; }
.col-lead { margin: 0 0 16px; color: var(--muted); }

/* ---------- таблица ---------- */

.table-wrap { overflow-x: auto; }

.compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 620px;
}

.compare th, .compare td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.compare thead th {
  background: var(--bg-tint);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-soft);
}

.compare tbody th { font-weight: 500; color: var(--ink); }
.compare td { text-align: center; color: var(--muted); }
.compare td.yes { color: #17663a; font-weight: 600; }
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }

.footnote { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- схема интерфейса ---------- */

.demo { display: flex; justify-content: center; }

.demo-frame {
  margin: 0;
  width: 100%;
  max-width: 880px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.demo-bar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-tint);
}
.demo-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #d8dce4;
}

.demo-body {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
}

@media (max-width: 700px) {
  .demo-body { grid-template-columns: 1fr; }
}

.demo-feed, .demo-event { padding: 20px; }
.demo-event { border-left: 1px solid var(--line); background: #fbfcfe; }

.demo-feed-head {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.demo-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}
.demo-item--muted { opacity: .62; }

.demo-source {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

.demo-item h4 { margin: 6px 0; font-size: 15px; }
.demo-item p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.demo-time { font-size: 12px; color: var(--muted); }

.demo-event h4 { margin: 0 0 14px; font-size: 16px; }

.demo-timeline { list-style: none; margin: 0 0 14px; padding: 0; }
.demo-timeline li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}
.demo-timeline span { color: var(--muted); min-width: 44px; }

.demo-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-tags span {
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.demo-frame figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* ---------- FAQ ---------- */

.faq { max-width: 840px; }

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }

.faq p { margin: 12px 0 0; color: var(--ink-soft); }

/* ---------- финальный призыв ---------- */

.cta-band {
  padding: 56px 20px;
  background: #101828;
  color: #fff;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-band h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .72); }

.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn { border-color: rgba(255, 255, 255, .22); color: #fff; background: transparent; }
.cta-band .btn--primary { background: #fff; color: #101828; border-color: #fff; }

/* ---------- подвал ---------- */

.footer {
  padding: 40px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-note { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.footer-nav { display: flex; gap: 20px; }
.footer-nav a { color: var(--ink-soft); text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: var(--ink); }

.footer-copy {
  margin: 0;
  width: 100%;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

/* ---------- мобильные ---------- */

@media (max-width: 860px) {
  .nav { display: none; }
  .hero { padding: 56px 18px 48px; }
  .section { padding: 52px 18px; }
  .header-inner { padding: 12px 16px; }
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
