/* Грант Сонар — лендинг (направление 1c «финансово уверенно», индиго осветлён по решению основателя).
   Токены из дизайн-хендоффа: ../Взыскание_и_грант_радар_ дизайн и бренд/design_handoff_heroes/README.md */

:root {
  --ink: #1E1B4B;            /* текст на светлом */
  --surface-dark: #2B2668;   /* тёмные блоки: осветлённый индиго (в макете был #1E1B4B) */
  --indigo: #4F46BA;
  --indigo-light: #8C82F0;
  --amber: #F0A93B;
  --amber-on-dark: #F5C070;
  --amber-text: #B87A16;
  --canvas: #F5F4FB;
  --muted: #6B6890;
  --muted-2: #8C89AC;
  --muted-3: #9C99BC;
  --border: #E7E5F2;
  --card-bg: #F7F6FC;
  --chip-indigo-bg: #EAE6FB;
  --chip-amber-bg: #FBF0DA;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', -apple-system, 'Segoe UI', sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.5;
}
::selection { background: var(--amber); color: var(--ink); }
a { color: inherit; }
img, svg { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(43, 38, 104, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.nav-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.nav-brand span { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: #C3C0E0; text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--amber); color: var(--ink) !important; font-weight: 700 !important;
  padding: 10px 20px; border-radius: 10px;
}
.nav-cta:hover { filter: brightness(1.05); }

/* ---------- HERO ---------- */
.hero { background: var(--surface-dark); color: #fff; position: relative; overflow: hidden; }
.hero-radar { position: absolute; right: -90px; top: -60px; opacity: 0.14; pointer-events: none; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  padding-top: 72px; padding-bottom: 88px; position: relative;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(240, 169, 59, 0.16); color: var(--amber-on-dark);
  font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 100px; margin-bottom: 26px;
}
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.hero h1 { font-size: 50px; line-height: 1.06; font-weight: 800; letter-spacing: -0.025em; margin: 0 0 22px; }
.hero-sub { font-size: 19px; line-height: 1.5; color: #C3C0E0; margin: 0 0 32px; max-width: 490px; }
.hero-ctas { display: flex; gap: 14px; margin-bottom: 34px; flex-wrap: wrap; }
.btn-amber {
  display: inline-block; background: var(--amber); color: var(--ink); text-decoration: none;
  font-size: 17px; font-weight: 700; padding: 15px 28px; border-radius: 12px; border: 0; cursor: pointer;
}
.btn-amber:hover { filter: brightness(1.05); }
.btn-amber:active { transform: translateY(1px); }
.btn-ghost {
  display: inline-block; background: rgba(255, 255, 255, 0.08); color: #fff; text-decoration: none;
  font-size: 17px; font-weight: 600; padding: 15px 26px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.hero-checks { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-checks div { display: flex; align-items: center; gap: 9px; color: #B3AFD8; font-size: 14px; }
.hero-checks svg { color: var(--indigo-light); flex-shrink: 0; }

/* Карточка-отчёт в hero (продуктовый превью из макета) */
.report-card {
  background: #fff; border-radius: 20px; overflow: hidden; color: var(--ink);
  box-shadow: 0 30px 70px rgba(20, 16, 60, 0.4);
}
.report-head {
  padding: 20px 22px; border-bottom: 1px solid #EEEDF7;
  display: flex; justify-content: space-between; align-items: center;
}
.k-label { font-size: 12px; color: var(--muted-3); font-weight: 600; }
.report-head b { font-size: 17px; font-weight: 700; display: block; margin-top: 2px; }
.pill-indigo {
  background: var(--chip-indigo-bg); color: var(--indigo);
  font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 100px;
}
.report-body { padding: 22px; }
.report-total { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.report-total .sum { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 2px; }
.report-total .term { font-size: 18px; font-weight: 700; color: var(--indigo); margin-top: 2px; }
.report-rows { display: flex; flex-direction: column; gap: 10px; }
.report-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--card-bg); border-radius: 11px;
}
.report-row .ic {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.ic-indigo { background: var(--chip-indigo-bg); color: var(--indigo); }
.ic-amber { background: var(--chip-amber-bg); color: var(--amber-text); }
.ic-mute { background: #EDECF5; color: var(--muted-3); font-size: 13px; font-weight: 700; }
.report-row .t { flex: 1; }
.report-row .t b { font-size: 14px; font-weight: 700; display: block; }
.report-row .t span { font-size: 12px; color: var(--muted-3); }
.report-row .v { font-size: 14px; font-weight: 700; color: var(--indigo); }
.report-row .v.amber { color: var(--amber-text); }
.report-row .v.mute { color: var(--muted-3); }
.report-row.dim { opacity: 0.75; }

/* ---------- METRIC STRIP ---------- */
.metrics { background: #fff; border-bottom: 1px solid var(--border); }
.metrics-in {
  padding-top: 26px; padding-bottom: 26px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
}
.metrics-note { font-size: 14px; color: var(--muted-2); font-weight: 500; max-width: 430px; }
.metrics-note b { color: var(--ink); }
.metrics-nums { display: flex; gap: 40px; }
.metrics-nums .n { font-size: 26px; font-weight: 800; color: var(--indigo); font-variant-numeric: tabular-nums; }
.metrics-nums .n.amber { color: var(--amber-text); }
.metrics-nums .d { font-size: 13px; color: var(--muted-2); }

/* ---------- SECTIONS ---------- */
.section { padding-top: 84px; padding-bottom: 84px; }
.section-head { text-align: center; margin-bottom: 52px; }
.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--indigo); margin-bottom: 14px;
}
.section-head h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.section-head p { font-size: 17px; color: var(--muted); margin: 12px 0 0; }

/* Как работает */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 32px; }
.step-num {
  width: 44px; height: 44px; border-radius: 12px; background: var(--chip-indigo-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 800; color: var(--indigo); margin-bottom: 22px;
}
.step-num.amber { background: var(--chip-amber-bg); color: var(--amber-text); }
.step h3 { font-size: 21px; font-weight: 700; margin: 0 0 10px; }
.step p { font-size: 15px; color: var(--muted); line-height: 1.55; margin: 0; }

/* Что находим */
.find { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.find-grid {
  padding-top: 80px; padding-bottom: 80px;
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center;
}
.find-grid h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 18px; line-height: 1.12; }
.find-grid > div > p { font-size: 16px; color: var(--muted); line-height: 1.6; margin: 0; }
.find-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.find-card { border: 1px solid var(--border); border-radius: 14px; padding: 20px; background: var(--canvas); }
.find-card b { font-size: 16px; font-weight: 700; display: block; margin-bottom: 5px; }
.find-card span { font-size: 14px; color: var(--muted-2); line-height: 1.4; }

/* ---------- PRICING ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 34px;
  display: flex; flex-direction: column;
}
.plan-tag { font-size: 15px; font-weight: 700; color: var(--muted-2); margin-bottom: 8px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.plan-price .p { font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; }
.plan-price .u { font-size: 15px; color: var(--muted-2); }
.plan-note { font-size: 14px; color: var(--muted-2); margin-bottom: 24px; }
.plan-feats { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.plan-feats div { display: flex; gap: 10px; font-size: 14px; color: #4A476B; }
.plan-feats svg { flex-shrink: 0; color: var(--indigo); }
.plan-btn {
  margin-top: auto; text-align: center; background: #F2F1FA; color: var(--indigo);
  text-decoration: none; font-weight: 700; padding: 13px; border-radius: 11px; font-size: 15px;
}
.plan-btn:hover { background: #E9E7F7; }
.plan.featured {
  background: var(--surface-dark); border: 0; color: #fff; position: relative;
  box-shadow: 0 20px 44px rgba(43, 38, 104, 0.28);
}
.plan.featured .plan-tag, .plan.featured .plan-price .u, .plan.featured .plan-note { color: #B7B3DE; }
.plan.featured .plan-feats div { color: #DAD8EE; }
.plan.featured .plan-feats svg { color: var(--amber); }
.plan-flag {
  position: absolute; top: 20px; right: 20px; background: var(--amber); color: var(--ink);
  font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 100px;
}
.plan-btn.amber { background: var(--amber); color: var(--ink); }
.plan-btn.amber:hover { filter: brightness(1.05); background: var(--amber); }
.pricing-foot { text-align: center; font-size: 13px; color: var(--muted-2); margin-top: 26px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 4px 24px; }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; font-size: 16.5px; font-weight: 700; padding: 18px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.fq {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; background: var(--chip-indigo-bg);
  color: var(--indigo); display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 600; transition: transform 0.2s ease;
}
.faq-item[open] .fq { transform: rotate(45deg); }
.faq-item p { font-size: 15px; color: var(--muted); line-height: 1.6; margin: 0 0 20px; }

/* ---------- LEAD FORM ---------- */
.lead { background: var(--surface-dark); color: #fff; }
.lead-grid {
  padding-top: 80px; padding-bottom: 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.lead-grid h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 18px; line-height: 1.08; }
.lead-grid .lead-sub { font-size: 17px; color: #C3C0E0; line-height: 1.55; margin: 0 0 28px; }
.lead-points { display: flex; flex-direction: column; gap: 14px; }
.lead-points div { display: flex; gap: 11px; align-items: center; font-size: 15px; color: #DAD8EE; }
.lead-points svg { color: var(--indigo-light); flex-shrink: 0; }
.lead-form { background: #fff; border-radius: 20px; padding: 32px; color: var(--ink); }
.lead-form h3 { font-size: 20px; font-weight: 800; margin: 0 0 22px; }
.f-row { margin-bottom: 16px; }
.f-row label { font-size: 13px; font-weight: 600; color: var(--muted); display: block; margin-bottom: 7px; }
.f-row input, .f-row select {
  width: 100%; padding: 12px 14px; border: 1px solid #DDD9EE; border-radius: 10px;
  font-size: 15px; font-family: inherit; color: var(--ink); background: #fff;
}
.f-row input:focus, .f-row select:focus {
  outline: none; border-color: #5B4FE0; box-shadow: 0 0 0 3px rgba(91, 79, 224, 0.15);
}
.f-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.f-consent input { width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; }
.f-consent a { color: var(--indigo); }
.lead-form .btn-amber { width: 100%; text-align: center; }
.f-error { display: none; font-size: 14px; color: #B3261E; margin-top: 12px; }
.f-ok { text-align: center; padding: 30px 10px; }
.f-ok .ok-ic {
  width: 64px; height: 64px; border-radius: 50%; background: var(--chip-indigo-bg);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: var(--indigo);
}
.f-ok h3 { font-size: 24px; font-weight: 800; margin: 0 0 10px; }
.f-ok p { font-size: 15px; color: var(--muted); line-height: 1.5; margin: 0; }

/* ---------- FOOTER ---------- */
.footer { background: #fff; border-top: 1px solid var(--border); }
.footer-grid {
  padding-top: 48px; padding-bottom: 24px;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px;
}
.footer h4 { font-size: 14px; font-weight: 700; margin: 0 0 14px; }
.footer-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.footer-brand span { font-size: 18px; font-weight: 800; }
.footer p, .footer a { font-size: 14px; color: var(--muted); line-height: 1.7; }
.footer a { display: block; text-decoration: none; margin-bottom: 8px; }
.footer a:hover { color: var(--indigo); }
.footer-legal {
  border-top: 1px solid var(--border); padding: 18px 0 26px;
  font-size: 12.5px; color: var(--muted-2); line-height: 1.6;
}

/* ---------- LEGAL PAGES ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 24px 72px; }
.legal .back { display: inline-block; font-size: 14px; color: var(--indigo); text-decoration: none; margin-bottom: 26px; }
.legal h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }
.legal .rev { font-size: 14px; color: var(--muted-2); margin-bottom: 24px; }
.legal .note {
  background: var(--chip-amber-bg); border: 1px solid #F1DCB2; border-radius: 12px;
  padding: 14px 18px; font-size: 14px; color: #7A5410; margin-bottom: 32px; line-height: 1.55;
}
.legal h2 { font-size: 21px; font-weight: 800; margin: 34px 0 12px; }
.legal h3 { font-size: 17px; font-weight: 700; margin: 22px 0 8px; }
.legal p, .legal li { font-size: 15px; line-height: 1.65; color: #3D3A5E; }
.legal a { color: var(--indigo); }
.legal .req-box {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 20px; font-size: 14.5px; line-height: 1.7;
}
.legal-footer { border-top: 1px solid var(--border); background: #fff; }
.legal-footer .wrap {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 20px; padding-bottom: 24px; font-size: 13.5px; color: var(--muted-2);
}
.legal-footer a { color: var(--muted); text-decoration: none; }
.legal-footer a:hover { color: var(--indigo); }

/* ---------- BLOG ---------- */
.blog-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.blog-card {
  display: block; background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 26px 28px; text-decoration: none; color: var(--ink);
}
.blog-card:hover { border-color: #CCC7E8; }
.blog-card .date { font-size: 13px; color: var(--muted-2); margin-bottom: 6px; }
.blog-card h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 8px; }
.blog-card p { font-size: 15px; color: var(--muted); line-height: 1.55; margin: 0; }
.article { max-width: 720px; margin: 0 auto; padding: 48px 24px 72px; }
.article .date { font-size: 14px; color: var(--muted-2); margin-bottom: 10px; }
.article h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 22px; }
.article h2 { font-size: 23px; font-weight: 800; margin: 34px 0 12px; }
.article p, .article li { font-size: 16px; line-height: 1.7; color: #3D3A5E; }
.article a { color: var(--indigo); }
.article .cta-box {
  background: var(--surface-dark); color: #fff; border-radius: 16px; padding: 28px;
  margin-top: 40px;
}
.article .cta-box b { font-size: 19px; display: block; margin-bottom: 8px; }
.article .cta-box p { color: #C3C0E0; font-size: 15px; margin: 0 0 18px; }

/* ---------- MOBILE ---------- */
@media (max-width: 900px) {
  .hero-grid, .find-grid, .lead-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps, .plans { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: 36px; }
  .section-head h2, .lead-grid h2 { font-size: 29px; }
  .find-grid h2 { font-size: 28px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .metrics-in { flex-direction: column; align-items: flex-start; }
  .metrics-nums { gap: 26px; flex-wrap: wrap; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
}
@media (max-width: 520px) {
  .find-cards { grid-template-columns: 1fr; }
  .hero-ctas .btn-ghost { display: none; }
  .hero-radar svg { width: 300px; height: 300px; }
}
