:root {
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-light: #eff6ff;
  --primary-glow: rgba(29, 78, 216, 0.16);
  --accent: #2563eb;

  --ink: #090d16;
  --ink-secondary: #1e293b;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-light: #f1f5f9;

  --bg: #ffffff;
  --bg-tint: #f8fafc;
  --bg-subtle: #f1f5f9;

  --ok: #059669;
  --ok-bg: #ecfdf5;
  --warn: #d97706;
  --warn-bg: #fffbeb;
  --bad: #dc2626;
  --bad-bg: #fef2f2;

  --r-sm: 8px;
  --r: 16px;
  --r-lg: 24px;
  --r-pill: 9999px;

  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 1px 2px -1px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.02);
  --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, 0.08), 0 1px 3px 0 rgba(15, 23, 42, 0.04);
  --shadow-card: 0 12px 36px -8px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-dark: 0 24px 60px -12px rgba(2, 6, 23, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
svg { width: 1.15em; height: 1.15em; flex: none; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(840px, 100% - 48px); }
.center { text-align: center; margin-top: 32px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.028em;
  font-weight: 700;
}
h1 { font-size: clamp(36px, 4.8vw, 56px); font-weight: 800; letter-spacing: -0.035em; }
h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--ink) 20%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 { font-size: clamp(28px, 3.2vw, 38px); letter-spacing: -0.03em; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px var(--primary-glow);
}
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-line {
  background: #ffffff;
  color: var(--ink-secondary);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-line:hover {
  background: var(--bg-tint);
  border-color: #cbd5e1;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.btn-white {
  background: #ffffff;
  color: var(--ink);
  border-color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.btn-white:hover {
  background: #f8fafc;
  border-color: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.btn-lg { padding: 15px 30px; font-size: 15.5px; }
.btn-block { width: 100%; }
.link { color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { color: var(--primary-hover); text-decoration: underline; text-underline-offset: 4px; }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  transition: background 0.2s, border-color 0.2s;
}
.top.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--line);
  box-shadow: 0 4px 20px -8px rgba(15, 23, 42, 0.05);
}
.top-in { display: flex; align-items: center; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: -0.02em; }
.logo { width: 36px; height: 36px; border-radius: 10px; display: block; flex: none; box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2); }
.menu { display: flex; gap: 4px; margin-left: 28px; flex: 1; }
.menu a {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--muted);
  transition: all 0.15s;
}
.menu a:hover { color: var(--ink); background: var(--bg-subtle); }
.menu a.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }
.menu-cta { display: none; }
.top-cta { display: flex; gap: 10px; }
.top-cta .btn { padding: 9px 20px; font-size: 14px; }
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 10px;
  cursor: pointer;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.burger i { width: 18px; height: 1.5px; background: var(--ink); border-radius: 2px; }

/* Hero */
.hero, .page-hero, .req {
  position: relative;
  background: radial-gradient(1000px 500px at 50% -50px, rgba(239, 246, 255, 0.9) 0%, rgba(255, 255, 255, 0) 100%), #ffffff;
  border-bottom: 1px solid var(--line-light);
}
.hero { padding: 76px 0 96px; }
.hero-in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink-secondary);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.lead-p { font-size: 18.5px; color: var(--muted); margin: 24px 0 28px; max-width: 580px; line-height: 1.6; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.chips li {
  background: var(--bg-tint);
  border: 1px solid var(--line);
  padding: 7px 15px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-secondary);
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.page-hero { padding: 80px 0 48px; text-align: center; }
.page-hero .lead-p { margin-inline: auto; }

/* Dashboard Mockup в Hero */
.hero-vis { position: relative; padding: 20px 0; }
.hero-glow {
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.win {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(226, 232, 240, 0.9);
  overflow: hidden;
}
.win-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #fafbfc;
  border-bottom: 1px solid var(--line);
}
.win-dots { display: flex; gap: 7px; }
.win-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.win-title { font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: -0.01em; }
.win-status {
  font-size: 11px;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tl { padding: 20px 24px 26px; }
.tl-head, .tl-row { display: grid; grid-template-columns: 88px repeat(5, 1fr); align-items: center; gap: 12px; }
.tl-head { font-size: 11.5px; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.tl-head span { color: transparent; }
.tl-row { padding: 12px 0; border-top: 1px dashed var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.tl-row div {
  grid-column: span 5;
  position: relative;
  height: 20px;
  background: repeating-linear-gradient(90deg, #f8fafc 0 1px, transparent 1px 20%);
}
.tl-row i { position: absolute; top: 0; height: 20px; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,0.06); }

.float {
  position: absolute;
  z-index: 2;
  display: flex;
  gap: 14px;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  animation: fl 6s ease-in-out infinite;
}
.float b { display: block; color: var(--ink); font-size: 14.5px; font-weight: 600; }
.float small { color: var(--muted); font-size: 12.5px; }
.f1 { left: -32px; bottom: -8px; }
.f2 { right: -20px; top: -12px; animation-delay: -3s; }
.f-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--warn-bg);
  color: var(--warn);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 17px;
}
.ok-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ok-bg);
  color: var(--ok);
  display: inline-grid;
  place-items: center;
  font-size: 20px;
  flex: none;
}
@keyframes fl { 50% { transform: translateY(-8px); } }

/* Секции */
.sec { padding: 96px 0; }
.sec-tint { background: var(--bg-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { text-align: center; margin-bottom: 54px; }
.sec-head p { color: var(--muted); font-size: 18.5px; margin-top: 10px; max-width: 620px; margin-inline: auto; }
.sec-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 12px;
}

/* Карточки функционала */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 34px 30px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}
.card h3 { margin: 20px 0 10px; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.ico-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-grid;
  place-items: center;
  font-size: 24px;
}

/* Dark Section (Безопасность/Enterprise) */
.dark {
  background: linear-gradient(145deg, #090d16 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  padding: 64px 60px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 52px;
  align-items: center;
  color: #cbd5e1;
  box-shadow: var(--shadow-dark);
  position: relative;
  overflow: hidden;
}
.dark:after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.dark-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #93c5fd;
  margin-bottom: 12px;
}
.dark h2 { color: #ffffff; margin-bottom: 16px; }
.dark p { font-size: 17.5px; margin-bottom: 30px; line-height: 1.6; }
.dark-list { display: grid; gap: 12px; position: relative; z-index: 1; }
.dark-list li {
  display: flex;
  gap: 16px;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 20px;
  border-radius: 14px;
  color: #f8fafc;
  font-weight: 500;
  font-size: 15px;
}
.dark-list svg { font-size: 22px; color: #60a5fa; }

/* Карточки тарифов */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 420px)); justify-content: center; gap: 26px; }
.plan {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
  box-shadow: var(--shadow-sm);
}
.plan:hover { box-shadow: var(--shadow-md); border-color: #cbd5e1; }
.plan-hot {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-card);
}
.plan-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 14px;
  border-radius: var(--r-pill);
}
.plan-range {
  display: inline-block;
  margin: 10px 0 16px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: var(--r-pill);
}
.plan-price {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-bottom: 24px;
  margin-top: auto;
}
.plan-price b { display: block; font-size: 42px; color: var(--ink); letter-spacing: -0.035em; font-weight: 800; line-height: 1.1; }
.plan-price small { color: var(--muted); font-size: 14px; }

/* FAQ Аккордеон */
.faq { display: grid; gap: 14px; }
.faq details {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0 26px;
  transition: border-color 0.2s;
  box-shadow: var(--shadow-sm);
}
.faq details[open] { border-color: #cbd5e1; }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 34px 22px 0;
  font-weight: 600;
  color: var(--ink);
  font-size: 17px;
  position: relative;
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.2s;
}
.faq details[open] summary:after { content: "–"; color: var(--primary); }
.faq details p { padding: 0 0 22px; color: var(--muted); font-size: 15.5px; line-height: 1.65; }

/* CTA Блок */
.cta {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  border-radius: var(--r-lg);
  padding: 58px 60px;
  display: flex;
  gap: 36px;
  align-items: center;
  justify-content: space-between;
  color: #eff6ff;
  box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.35);
}
.cta h2 { color: #ffffff; margin-bottom: 10px; }
.cta p { font-size: 18px; color: #dbeafe; }

/* Features Split Showcase */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 48px 0; }
.split.rev > div:first-child { order: 2; }
.split h2 { margin: 20px 0 14px; font-size: clamp(26px, 2.8vw, 34px); }
.split p { color: var(--muted); font-size: 16.5px; margin-bottom: 22px; line-height: 1.6; }
.split-vis {
  background: linear-gradient(145deg, #f8fafc, #f1f5f9);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.mg { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 16px; }
.mg span { height: 36px; border-radius: 8px; background: #e2e8f0; }
.mg .a { background: var(--primary); }
.mg .b { background: var(--ok); }
.list { display: grid; gap: 12px; }
.item { display: flex; align-items: center; gap: 14px; background: #ffffff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow-sm); }
.item > i { width: 5px; height: 38px; border-radius: 4px; flex: none; }
.item div { flex: 1; min-width: 0; }
.item b { display: block; color: var(--ink); font-size: 15px; }
.item small { color: var(--muted); font-size: 13px; }
.av { width: 42px; height: 42px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.badge { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: var(--r-pill); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.wait { background: var(--warn-bg); color: var(--warn); }
.badge.no { background: var(--bad-bg); color: var(--bad); }

.doc { background: #ffffff; border-radius: var(--r); padding: 32px; border: 1px solid var(--line); position: relative; box-shadow: var(--shadow-sm); }
.doc b { display: block; margin-bottom: 18px; color: var(--ink); font-size: 18px; }
.doc i { display: block; height: 9px; border-radius: 5px; background: #e2e8f0; margin-bottom: 12px; }
.stamp { margin-top: 24px; display: inline-block; border: 2px solid var(--ok); color: var(--ok); font-weight: 800; font-size: 12px; padding: 7px 14px; border-radius: 8px; transform: rotate(-3deg); text-transform: uppercase; letter-spacing: 0.05em; }

.mail-card { background: #ffffff; border-radius: var(--r); padding: 28px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.mail-card > b { color: var(--primary); font-size: 18px; display: block; margin-bottom: 10px; }
.mail-card p { margin-bottom: 16px; font-size: 15px; }
.mrow { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; background: var(--bg-tint); font-size: 14px; border-top: 1px solid var(--line-light); }
.mrow:first-of-type { border-radius: 10px 10px 0 0; }
.mrow span { color: var(--muted); }

/* Электронная подпись / Steps */
.steps { counter-reset: s; display: grid; gap: 14px; }
.steps li {
  counter-increment: s;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px 26px 24px 80px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.steps li:before {
  content: counter(s);
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
}
.steps b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: 15px; }

/* Формы и Leadform */
.lead { display: grid; gap: 20px; margin-top: 24px; position: relative; }
.field > span { display: block; font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.field .inp {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 15.5px;
  padding: 14px 18px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
  transition: all 0.2s;
}
.field .inp:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.field .inp.bad { border-color: var(--bad); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--bg-subtle); padding: 5px; border-radius: 14px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg b { display: block; text-align: center; padding: 10px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--muted); transition: all 0.2s; }
.seg input:checked + b { background: #ffffff; color: var(--primary); box-shadow: var(--shadow-sm); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.check input {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  flex: none;
  margin-top: 1px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.15s;
  background: #ffffff;
}
.check input:checked { background: var(--primary); border-color: var(--primary); }
.check input:checked:after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.form-err { color: var(--bad); font-size: 14px; font-weight: 500; }
.form-ok {
  position: absolute;
  inset: -6px;
  background: #ffffff;
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}
.form-ok[hidden], .form-err[hidden] { display: none; }
.form-ok b { font-size: 20px; color: var(--ink); }
.form-ok small { color: var(--muted); }
.form-ok .ok-ico { width: 64px; height: 64px; font-size: 32px; border-radius: 50%; }

/* Модальное окно */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-bg { position: absolute; inset: 0; background: rgba(9, 13, 22, 0.65); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fi 0.25s; }
.modal-box {
  position: relative;
  background: #ffffff;
  border-radius: var(--r-lg);
  padding: 42px 38px;
  width: min(480px, 100%);
  max-height: 92vh;
  overflow: auto;
  box-shadow: 0 30px 60px -15px rgba(2, 6, 23, 0.3);
  border: 1px solid var(--line);
  animation: pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-box h3 { font-size: 26px; margin-bottom: 8px; }
.modal-x {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-tint);
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.modal-x:hover { background: var(--line-light); color: var(--ink); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
@keyframes fi { from { opacity: 0; } }
body.lock { overflow: hidden; }

/* Таблицы и списки галочек */
.ticks { display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.ticks svg { color: var(--ok); font-size: 20px; margin-top: 2px; }

/* Footer */
.foot { background: #090d16; color: #94a3b8; padding: 72px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 52px; }
.foot h4 { color: #ffffff; font-size: 14.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
.foot a { display: block; margin-bottom: 11px; font-size: 14.5px; transition: color 0.15s; }
.foot a:hover { color: #ffffff; }
.foot .brand { display: flex; color: #ffffff; margin-bottom: 14px; }
.foot-brand p { max-width: 340px; font-size: 14.5px; line-height: 1.6; color: #64748b; }
.foot-bot { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 26px 0; font-size: 13.5px; text-align: center; color: #64748b; }

/* Reveal анимации при скролле */
.rv { opacity: 0; transform: translateY(18px); transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.rv.in { opacity: 1; transform: none; }

@media(max-width: 980px) {
  .hero-in, .split, .dark { grid-template-columns: 1fr; gap: 40px; }
  .split.rev > div:first-child { order: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .hero-vis { max-width: 560px; margin: 0 auto; width: 100%; }
  .f1 { left: -10px; }
  .f2 { right: -10px; }
  .cta { flex-direction: column; align-items: flex-start; padding: 42px 36px; }
}
@media(max-width: 860px) {
  .top-cta { display: none; }
  .burger { display: flex; }
  .menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 16px 24px 28px;
    margin: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    display: none;
  }
  .menu.open { display: flex; }
  .menu a { padding: 12px 14px; font-size: 16px; }
  .menu-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
}
@media(max-width: 640px) {
  .cards, .foot-in { grid-template-columns: 1fr; }
  .sec { padding: 64px 0; }
  .dark { padding: 38px 26px; }
  .modal-box { padding: 32px 22px; }
  .hero { padding-top: 48px; }
  .float { display: none; }
}