:root {
  --bg:        #ffffff;
  --bg-alt:    #f6f7fb;
  --line:      #e6e8ef;
  --text:      #14172a;
  --text-2:    #4b5063;
  --muted:     #8a8f9f;
  --accent:    #4f46e5;
  --accent-2:  #6366f1;
  --accent-3:  #8b5cf6;
  --accent-soft:#eef0ff;
  --radius:    14px;
  --shadow:    0 8px 24px rgba(20,23,42,.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
}

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 68px;
  display: flex; align-items: center; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600;
  font-size: 16px;
}
.brand-mark {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  border-radius: 8px; color: #fff;
  display: grid; place-items: center; font-weight: 700;
}
.nav-links {
  display: flex; gap: 22px;
  margin-left: 12px;
}
.nav-links a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--accent); }
.nav-actions {
  margin-left: auto;
  display: flex; align-items: center; gap: 14px;
}
.link-quiet {
  color: var(--text-2);
  font-weight: 500;
  font-size: 14px;
}
.link-quiet:hover { color: var(--accent); }

/* ============ BUTTONS ============ */
.btn-primary, .btn-ghost {
  display: inline-block;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  border: 1px solid transparent;
  transition: transform .08s, background .12s, border-color .12s, color .12s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 6px 16px rgba(79,70,229,.25);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent); }
.btn-primary.big, .btn-ghost.big {
  padding: 14px 22px;
  font-size: 15px;
  border-radius: 12px;
}
.btn-primary.full, .btn-ghost.full { display: block; width: 100%; }

/* ============ HERO ============ */
.hero {
  padding: 56px 0 80px;
  background: radial-gradient(1200px 600px at 80% -10%, #f0eeff 0%, transparent 60%),
              linear-gradient(180deg, #fcfcfe 0%, #ffffff 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft);
  border: 1px solid #d8dafa;
  color: var(--accent);
  font-size: 12.5px; font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-badge-mark { color: #22c55e; }

.hero-title {
  font-size: 56px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 18px;
}
.hero-title .accent {
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title .dark { color: var(--text); }
@media (max-width: 980px) { .hero-title { font-size: 40px; } }

.hero-sub {
  font-size: 17px;
  color: var(--text-2);
  margin: 0 0 28px;
  max-width: 540px;
}
.hero-ctas { display: flex; gap: 10px; margin-bottom: 32px; flex-wrap: wrap; }

.hero-mini {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  max-width: 540px;
}
.hero-mini-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.hero-mini-item b {
  display: block;
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 2px;
}
.hero-mini-item span {
  color: var(--muted);
  font-size: 12.5px;
}

/* ============ HERO chart ============ */
.hero-right {
  position: relative;
  min-height: 420px;
}
.chart {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 30px rgba(79,70,229,.18));
}
.pill {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow);
}
.pill-1 { top: 56%;  left: 4%;  }
.pill-2 { top: 38%;  left: 28%; }
.pill-3 { top: 24%;  left: 52%; }
.pill-4 { top: 12%;  right: 14%; }
.pill-5 { top: 0;    right: -2%; background: linear-gradient(135deg, var(--accent-3), var(--accent)); color: #fff; border-color: transparent; }
@media (max-width: 980px) {
  .hero-right { min-height: 320px; }
}

/* ============ Sections ============ */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.kicker {
  display: inline-block;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.015em;
  margin: 0 0 10px;
}
@media (max-width: 700px) { .section-head h2 { font-size: 26px; } }
.section-head p { color: var(--muted); margin: 0; }

/* ============ Features ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }
.feat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .1s, box-shadow .15s, border-color .15s;
}
.feat:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d8dafa; }
.feat-ico {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 18px;
  margin-bottom: 14px;
}
.feat h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.feat p { margin: 0; color: var(--text-2); font-size: 14px; }

/* ============ Audience ============ */
.aud-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 800px) { .aud-grid { grid-template-columns: 1fr; } }
.aud {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.aud-tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px; font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.aud h3 { margin: 0 0 14px; font-size: 19px; font-weight: 600; }
.aud ul {
  margin: 0; padding: 0; list-style: none;
}
.aud li {
  padding: 8px 0 8px 22px;
  position: relative;
  color: var(--text-2);
  font-size: 14.5px;
  border-bottom: 1px solid var(--line);
}
.aud li:last-child { border-bottom: 0; }
.aud li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 8px;
  color: var(--accent);
  font-weight: 700;
}

/* ============ Pricing ============ */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }
.price {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex; flex-direction: column;
}
.price.featured {
  border-color: var(--accent-2);
  box-shadow: 0 18px 40px rgba(79,70,229,.12);
  transform: translateY(-4px);
}
.price-name { font-weight: 600; font-size: 15px; color: var(--accent); }
.price-amount {
  font-size: 36px; font-weight: 700; margin: 8px 0 18px;
  letter-spacing: -.015em;
}
.price-amount span { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.price ul { list-style: none; margin: 0 0 22px; padding: 0; }
.price li {
  padding: 7px 0 7px 22px;
  position: relative;
  font-size: 14px;
  color: var(--text-2);
}
.price li::before {
  content: "✓"; position: absolute; left: 0; top: 7px; color: var(--accent); font-weight: 700;
}
.price .btn-primary, .price .btn-ghost { margin-top: auto; }

/* ============ FAQ ============ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 10px;
  transition: border-color .12s;
}
.faq details[open] { border-color: var(--accent-2); }
.faq summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: -2px;
  font-size: 22px;
  color: var(--accent);
  transition: transform .15s;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 10px 0 0;
  color: var(--text-2);
  font-size: 14.5px;
}

/* ============ CTA ============ */
.cta {
  padding: 70px 0;
  background: linear-gradient(135deg, #1a1d27 0%, #2a2740 100%);
  color: #fff;
  text-align: center;
}
.cta h2 { font-size: 32px; margin: 0 0 8px; font-weight: 700; letter-spacing: -.015em; }
.cta p { color: #b8bccc; margin: 0 0 22px; }

/* ============ Footer ============ */
.foot {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 13px;
  color: var(--text-2);
}
.foot-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap;
}

/* ============ Мобильная адаптация ============ */
@media (max-width: 700px) {
  .container { padding: 0 16px; }
  /* ссылки-якоря в навбаре на телефоне не влезают — остаются логотип и кнопки */
  .nav-links { display: none; }
  .nav-actions { gap: 10px; }
  .section { padding: 52px 0; }
  .hero-title { font-size: 32px; }
  .hero-mini { grid-template-columns: 1fr 1fr; }
  .hero-ctas .btn-primary.big, .hero-ctas .btn-ghost.big { width: 100%; text-align: center; }
}
