/* MixStat — лендинг (LP3). Без фреймворков: быстрые статические страницы для SEO. */
:root {
  --accent: #005bff;
  --accent-2: #7b3dff;
  --accent-3: #00c2a8;
  --ink: #0d1424;
  --muted: #5b6477;
  --line: #e4e8f0;
  --bg: #ffffff;
  --soft: #f5f7fb;
  --radius: 18px;
  --shadow: 0 10px 40px rgba(13, 20, 36, 0.08);
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* --- шапка --- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.top.scrolled { border-color: var(--line); box-shadow: 0 2px 18px rgba(13, 20, 36, .05); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 18px; }
.brand:hover { text-decoration: none; }
.logo {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: 13px; font-weight: 800;
}
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { color: var(--muted); font-size: 15px; }
.nav a:hover, .nav a.active { color: var(--ink); text-decoration: none; }
.top .actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.burger { display: none; margin-left: auto; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 12px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(0, 91, 255, .28); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(0, 91, 255, .36); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: #fff; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; border-radius: 14px; }

/* --- первый экран --- */
.hero { position: relative; overflow: hidden; padding: 84px 0 72px; }
.hero .blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; z-index: -1;
  animation: float 16s ease-in-out infinite;
}
.blob.b1 { width: 520px; height: 520px; background: #b9d0ff; top: -160px; left: -120px; }
.blob.b2 { width: 460px; height: 460px; background: #dcc9ff; top: -80px; right: -140px; animation-delay: -5s; }
.blob.b3 { width: 380px; height: 380px; background: #b8f3e9; bottom: -200px; left: 35%; animation-delay: -9s; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, 40px) scale(1.08); } }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px;
  background: rgba(0, 91, 255, .08); color: var(--accent); font-size: 14px; font-weight: 600;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 0 0 rgba(0, 194, 168, .6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 194, 168, .55); } 70% { box-shadow: 0 0 0 10px rgba(0, 194, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 194, 168, 0); } }
h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.08; margin: 18px 0 18px; letter-spacing: -0.02em; }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent-2) 55%, var(--accent-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 580px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 14px; }
.note { color: var(--muted); font-size: 14px; }

/* «живой» макет дашборда */
.mock {
  position: relative; background: #fff; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 18px; transform: perspective(1200px) rotateY(-6deg) rotateX(3deg); transition: transform .6s;
}
.mock:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.mock .bar { display: flex; gap: 6px; margin-bottom: 14px; }
.mock .bar i { width: 10px; height: 10px; border-radius: 50%; background: #e4e8f0; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { background: var(--soft); border-radius: 12px; padding: 12px; }
.tile small { color: var(--muted); font-size: 12px; display: block; }
.tile b { font-size: 20px; display: block; margin-top: 2px; }
.tile .up { color: #0a9b6a; font-size: 12px; font-weight: 600; }
.chart { height: 150px; margin-top: 12px; border-radius: 12px; background: var(--soft); position: relative; overflow: hidden; }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart path.line { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.6s ease forwards .4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.float-card {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: 10px 14px; font-size: 13px; animation: bob 5s ease-in-out infinite;
}
.float-card b { display: block; font-size: 15px; }
.fc1 { left: -26px; bottom: 34px; }
.fc2 { right: -18px; top: 44px; animation-delay: -2.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* --- секции --- */
section { padding: 84px 0; }
section.soft { background: var(--soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 46px; }
h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.015em; }
h3 { font-size: 20px; margin: 0 0 8px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d4dbea; }
.card p { color: var(--muted); margin: 0; }
.ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(0, 91, 255, .12), rgba(123, 61, 255, .12));
}
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }
.card li { margin: 4px 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #e9f7ef; color: #0a8a5b; }
.tag.soon { background: #fff4e0; color: #b46a00; }
.tag.plan { background: #eef0f5; color: var(--muted); }

/* цифры */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats b { font-size: clamp(32px, 4vw, 46px); display: block; }
.stats span { color: var(--muted); }

/* шаги */
.steps { counter-reset: s; }
.step { position: relative; padding-left: 66px; }
.step::before {
  counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0;
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* тарифы */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 36px; font-weight: 800; margin: 10px 0 2px; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan ul { flex: 1; }
.plan .btn { margin-top: 18px; }
.plan.featured { border: 2px solid var(--accent); box-shadow: 0 16px 40px rgba(0, 91, 255, .14); }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* призыв */
.cta-band {
  border-radius: 28px; padding: 56px; color: #fff; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
}
.cta-band h2 { color: #fff; }
.cta-band p { opacity: .9; font-size: 18px; }
.cta-band .btn-primary { background: #fff; color: var(--accent); box-shadow: none; }

/* бегущая строка */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 16px 0; background: #fff; }
.marquee .track { display: flex; gap: 48px; width: max-content; animation: run 40s linear infinite; color: var(--muted); font-weight: 600; }
.marquee .track span::before { content: "✦"; color: var(--accent); margin-right: 12px; }
@keyframes run { to { transform: translateX(-50%); } }

/* подвал */
footer { padding: 48px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
footer h4 { color: var(--ink); margin: 0 0 10px; font-size: 15px; }
footer a { color: var(--muted); display: block; margin: 6px 0; }

/* появление при прокрутке */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

.page-hero { padding: 70px 0 40px; text-align: center; }
.page-hero .lead { margin: 0 auto; }
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 26px; margin-top: 36px; }
.prose p, .prose li { color: #2c3446; }

@media (max-width: 960px) {
  .hero-grid, .g3, .g4, .g2, footer .cols { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav, .top .actions { display: none; }
  .burger { display: block; }
  /* Открытое меню: шапка растёт вниз, разделы и кнопки — строками на всю ширину. */
  .top.open { background: #fff; box-shadow: 0 12px 30px rgba(13, 20, 36, .12); }
  .top.open .wrap { flex-wrap: wrap; height: auto; min-height: 64px; row-gap: 0; }
  .top.open .brand, .top.open .burger { height: 64px; }
  .top.open .burger { order: 1; }
  .top.open .nav { order: 2; }
  .top.open .actions { order: 3; }
  .top.open .nav, .top.open .actions { display: flex; flex-basis: 100%; margin: 0; }
  .top.open .nav { flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
  .top.open .nav a { padding: 12px 0; font-size: 17px; }
  .top.open .actions { padding: 8px 0 18px; }
  .top.open .actions .btn { flex: 1; }
  .mock { transform: none; }
  .fc1, .fc2 { display: none; }
  .cta-band { padding: 36px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* баннер cookie (общий выбор с сервисом) */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80; max-width: 720px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  padding: 14px 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 14px;
}
.consent p { margin: 0; flex: 1; min-width: 220px; color: var(--muted); }
.consent .btn { height: 38px; padding: 0 14px; font-size: 14px; }

/* Документы (LEGAL1): таблицы целей обработки, реквизиты. */
.doc-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc-table th, .doc-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc-table th { background: var(--soft); font-weight: 600; }
.requisites { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.requisites dt { color: var(--muted); }
.requisites dd { margin: 0; }
