:root {
  --bg: #0b1220; --bg2: #111a2e; --card: #121d33; --line: #1f2c47;
  --text: #e7edf7; --muted: #93a1bb; --accent: #2dd4bf; --accent2: #2dd4bf;
  --ok: #34d399; --radius: 14px;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f6f8fc; --bg2: #ffffff; --card: #ffffff; --line: #dfe5f0; --text: #0f1b33; --muted: #5a6985; --accent: #0f766e; --accent2: #0f766e; --ok: #059669; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

header.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); letter-spacing: .2px; }
.logo:hover { text-decoration: none; }
.logo svg { width: 28px; height: 28px; }
nav a { color: var(--muted); margin-left: 22px; font-size: 15px; }
nav a:hover { color: var(--text); text-decoration: none; }

.hero { padding: 84px 0 64px; text-align: center; }
.hero h1 { font-size: clamp(32px, 6vw, 54px); line-height: 1.1; margin: 0 0 18px; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { max-width: 640px; margin: 0 auto 30px; color: var(--muted); font-size: 18px; }
.btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 600; border: 1px solid var(--line); color: var(--text); background: var(--card); }
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.primary { background: var(--accent); color: #fff; border: 0; }
.stats { display: flex; gap: 36px; justify-content: center; flex-wrap: wrap; margin-top: 46px; color: var(--muted); font-size: 14px; }
.stats b { display: block; color: var(--text); font-size: 22px; }

section { padding: 60px 0; }
section.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: 30px; margin: 0 0 10px; letter-spacing: -.3px; }
.lead { color: var(--muted); margin: 0 0 34px; max-width: 640px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 12px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.ico svg { width: 20px; height: 20px; }

.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { position: relative; padding: 22px 22px 22px 70px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--accent); }
.step h3 { margin: 0 0 4px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.plan.hot { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan h3 { margin: 0; font-size: 18px; }
.price { font-size: 36px; font-weight: 700; margin: 8px 0 2px; }
.price small { font-size: 15px; color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 22px; color: var(--muted); font-size: 15px; flex: 1; }
.plan li { padding: 5px 0 5px 24px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; font-size: 15px; }

.doc { padding: 54px 20px 70px; max-width: 760px; }
.doc h1 { font-size: 34px; margin: 0 0 8px; }
.doc h2 { font-size: 21px; margin: 30px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 26px; }

.srv { display: grid; gap: 10px; }
.srv .row { display: flex; justify-content: space-between; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.pill { font-size: 13px; padding: 3px 11px; border-radius: 99px; color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); margin-left: 18px; }
footer a:first-child { margin-left: 0; }

@media (max-width: 760px) {
  /* Шапка в два ряда: логотип сверху, меню ниже одной строкой с горизонтальной прокруткой. */
  header.top .wrap { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 0; }
  nav { width: 100%; display: flex; gap: 20px; overflow-x: auto; white-space: nowrap; padding: 8px 0 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  nav::-webkit-scrollbar { display: none; }
  nav a { margin-left: 0; font-size: 14px; flex: none; }
  .hero { padding: 44px 0 36px; }
  .hero p { font-size: 16px; }
  .stats { gap: 18px 28px; margin-top: 34px; }
  section { padding: 44px 0; }
  h2 { font-size: 25px; }
  footer .wrap { flex-direction: column; }
  footer a { margin: 0 16px 0 0; display: inline-block; }
}
@media (prefers-color-scheme: dark) {
  .btn.primary, .step::before { color: #04121c; }
}
