/* Лендинг aimar.ru: светлый, крупный первый экран, карточки со значками
   (в духе шаблона «New Institution»). Шрифты — системные: внешних запросов нет. */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --primary: #2563eb;
  --primary-ink: #1d4ed8;
  --accent-a: #7c3aed;
  --accent-b: #0d9488;
  --soft: #eef2ff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }

/* шапка */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(248, 250, 252, .85); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 800; font-size: 19px; letter-spacing: -.3px; }
.logo:hover { text-decoration: none; }
.menu { display: flex; gap: 22px; margin: 0 auto; }
.menu a { color: var(--ink); font-size: 15px; font-weight: 500; }
.right { display: flex; align-items: center; gap: 14px; }
.link { color: var(--ink); font-weight: 500; font-size: 15px; }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; line-height: 1.2;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.small { padding: 9px 14px; font-size: 14px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-ink); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #cbd5e1; }
.btn-light { background: #fff; color: var(--primary-ink); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .55); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center .actions { justify-content: center; }

/* первый экран */
.hero {
  position: relative; overflow: hidden; padding: 88px 0 96px;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(124, 58, 237, .14), transparent 70%),
    radial-gradient(50% 60% at 10% 100%, rgba(13, 148, 136, .10), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--bg);
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(248,250,252,0) 60%, var(--bg)); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px;
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 13px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, .15); }
h1 {
  margin: 0; max-width: 900px;
  font-size: clamp(38px, 6vw, 68px); line-height: 1.04; font-weight: 800; letter-spacing: -1.6px;
}
.accent {
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub { max-width: 720px; margin: 26px 0 0; font-size: clamp(17px, 2vw, 20px); color: var(--muted); }
.note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

/* разделы */
.block { padding: 88px 0; }
.block.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { margin: 0; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; font-weight: 800; letter-spacing: -.8px; max-width: 820px; }
.center h2 { margin-inline: auto; }
.lead { margin: 14px 0 0; max-width: 760px; font-size: 18px; color: var(--muted); }
.center .lead { margin-inline: auto; }
h3 { margin: 16px 0 8px; font-size: 19px; line-height: 1.3; letter-spacing: -.2px; }

.cards { display: grid; gap: 18px; margin-top: 40px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.alt .card { background: var(--bg); box-shadow: none; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon {
  display: inline-flex; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center;
  background: var(--soft); color: var(--primary);
}
.icon svg { width: 22px; height: 22px; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); counter-reset: s; }
.step { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.step p { margin: 0; color: var(--muted); font-size: 16px; }
.num {
  display: inline-flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; font-weight: 700;
}

.chips { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 15px; font-weight: 500; }

.figure { display: flex; align-items: baseline; gap: 16px; margin-top: 32px; }
.figure strong { font-size: clamp(44px, 7vw, 72px); line-height: 1; letter-spacing: -2px; color: var(--primary); }
.figure span { color: var(--muted); max-width: 320px; }

.cards.apps { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.app { display: flex; flex-direction: column; }
.app p { flex: 1; }
.app-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 18px; }
.meta { font-size: 13px; color: var(--muted); }
.soon { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--primary-ink); font-size: 13px; font-weight: 600; }
#apps .actions { margin-top: 24px; }

.stats { display: grid; gap: 18px; margin-top: 36px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.stat strong { display: block; font-size: clamp(34px, 4.4vw, 48px); line-height: 1.05; letter-spacing: -1.2px; color: var(--primary); }
.stat span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; }

.faq { margin-top: 32px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--primary); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--muted); }

.final { padding: 88px 0; background: linear-gradient(120deg, var(--primary-ink), var(--accent-a)); color: #fff; }
.final h2 { color: #fff; }
.final .lead { color: rgba(255, 255, 255, .85); }

.doc h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.8px; }
.doc h2 { font-size: 24px; margin-top: 32px; }
.doc p, .doc li { color: var(--muted); }

/* подвал */
.foot { padding: 48px 0 32px; border-top: 1px solid var(--line); background: var(--surface); font-size: 15px; }
.foot .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.foot p { color: var(--muted); max-width: 420px; margin: 10px 0 0; }
.legal { display: grid; gap: 8px; }
.legal a { color: var(--muted); }
.copy { margin-top: 32px; color: var(--muted); font-size: 13px; }

.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; max-width: 640px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.cookie p { margin: 0; flex: 1 1 280px; font-size: 14px; color: var(--muted); }
.cookie .actions { margin: 0; }

/* телефон и планшет */
@media (max-width: 1024px) {
  .cards.four { grid-template-columns: repeat(2, 1fr); }
  .menu { display: none; }
  .bar { justify-content: space-between; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 56px 0 64px; }
  .block, .final { padding: 64px 0; }
  .cards, .cards.four, .cards.three, .steps { grid-template-columns: 1fr; }
  .right .btn.guest { display: none; }
  .actions .btn { flex: 1 1 100%; }
  .figure { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
