:root {
  --ink: #12132A;
  --deep: #1D2145;
  --paper: #F4F5F7;
  --line: #D8DBE4;
  --muted: #62667E;
  --accent: #2F9E7E;
  --accent-soft: #E4F2ED;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 940px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: "Space Grotesk", -apple-system, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

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

/* ── шапка ── */
header {
  border-bottom: 1px solid var(--line);
  background: rgba(244, 245, 247, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
}
.logo span { color: var(--accent); }

/* ── кнопки ── */
.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 15px;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--deep); }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* ── герой ── */
.hero { padding: 84px 0 64px; }
.hero h1 { font-size: clamp(34px, 5.5vw, 56px); font-weight: 700; max-width: 15ch; }
.hero p {
  font-size: 18px;
  color: var(--muted);
  margin: 20px 0 32px;
  max-width: 52ch;
}

/* ── схема маршрута (signature) ── */
.route {
  margin: 56px 0 0;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.route-track {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.node {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--ink);
  white-space: nowrap;
}
.node.on { border-color: var(--accent); background: var(--accent-soft); color: #1C5F4C; }
.wire {
  flex: 1 1 auto;
  height: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
  min-width: 20px;
}
.wire::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 34%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: flow 2.4s linear infinite;
}
@keyframes flow { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
@media (prefers-reduced-motion: reduce) { .wire::after { animation: none; opacity: 0.5; } }

/* ── сетка возможностей ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin: 24px 0;
}
.cell { background: #fff; padding: 26px 22px; }
.cell h3 { font-size: 16px; margin-bottom: 8px; }
.cell p { font-size: 14px; color: var(--muted); }

section { padding: 56px 0; border-top: 1px solid var(--line); }
section > .wrap > h2 { font-size: 28px; margin-bottom: 8px; }
.lede { color: var(--muted); margin-bottom: 24px; }

/* ── тарифы ── */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}
.plan.pick { border-color: var(--accent); }
.plan .term { font-size: 14px; color: var(--muted); }
.plan .price {
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
  font-weight: 600;
  margin: 6px 0 2px;
}
.plan .per { font-size: 13px; color: var(--muted); }
.tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1C5F4C;
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

/* ── шаги ── */
ol.steps { list-style: none; counter-reset: s; }
ol.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 20px 44px;
  border-left: 1px solid var(--line);
  margin-left: 13px;
}
ol.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
ol.steps li::before {
  content: counter(s);
  position: absolute;
  left: -13px;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  display: grid;
  place-items: center;
  font-family: "IBM Plex Mono", monospace;
}
ol.steps strong { display: block; font-weight: 600; }
ol.steps span { font-size: 14px; color: var(--muted); }

/* ── FAQ ── */
details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 10px;
}
details summary { cursor: pointer; font-weight: 500; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--muted); }
details[open] summary::after { content: "−"; }
details p { margin-top: 10px; font-size: 15px; color: var(--muted); }

/* ── подвал ── */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  font-size: 14px;
  color: var(--muted);
}
footer nav { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
footer a { color: var(--muted); }

/* ── правовые страницы ── */
.legal { padding: 48px 0 72px; max-width: 720px; }
.legal h1 { font-size: 30px; margin-bottom: 6px; }
.legal .date { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 18px; margin: 30px 0 10px; }
.legal p, .legal li { font-size: 15px; margin-bottom: 10px; }
.legal ul, .legal ol { padding-left: 22px; }
.fill { background: #FFF3D4; padding: 1px 5px; border-radius: 3px; }
