/* BEAN FINANCE — лендинг и база знаний. Палитра и шрифты — как в приложении. */
:root {
  --cream-50: #FFFCF9; --cream-100: #FFF8F3; --cream-200: #FBEFE6; --cream-300: #F4E3D6;
  --berry: #E60023; --berry-600: #C8001F; --berry-50: #FFF0F1;
  --rose: #F9E4E1; --sage: #E4ECDC; --sage-500: #5F7A4B; --butter: #FDF1C7; --lilac: #ECE4F4;
  --mocha-300: #B39480; --mocha-400: #8E6C58; --mocha-500: #6B4F3F; --mocha-800: #2B1D16;
  --shadow: 0 1px 2px rgba(43,29,22,.04), 0 8px 24px -12px rgba(43,29,22,.18);
  --lift: 0 12px 32px -12px rgba(43,29,22,.28);
  --r: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream-100); color: var(--mocha-800);
  font: 16px/1.6 "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--berry-600); }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(36px, 5.4vw, 64px); }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--mocha-400); }
.center { text-align: center; }

/* кнопки */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 14px 26px;
  font-weight: 700; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; border: 0; cursor: pointer; font-size: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--berry); color: #fff; box-shadow: 0 10px 24px -10px rgba(230,0,35,.6); }
.btn-primary:hover { background: var(--berry-600); }
.btn-soft { background: #fff; color: var(--mocha-800); box-shadow: var(--shadow); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* шапка */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,248,243,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--cream-300); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--mocha-800); font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 21px; }
.brand i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--berry); font-style: normal; font-size: 19px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--mocha-500); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--mocha-800); }
@media (max-width: 860px) { .nav .hide-m { display: none; } }

/* первый экран */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--berry); }
.hero .lead { font-size: 19px; color: var(--mocha-500); max-width: 560px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.hero .note { font-size: 14px; color: var(--mocha-400); }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }

/* макет интерфейса */
.mock { background: #fff; border-radius: 32px; box-shadow: var(--lift); padding: 22px; position: relative; }
.mock .bar { display: flex; gap: 6px; margin-bottom: 16px; }
.mock .bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--cream-300); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { border-radius: 20px; padding: 12px 14px; }
.kpi small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--mocha-500); }
.kpi b { font-family: Fraunces, Georgia, serif; font-size: 22px; }
.kpi.rose { background: var(--rose); } .kpi.sage { background: var(--sage); } .kpi.butter { background: var(--butter); }
.pnl { width: 100%; border-collapse: collapse; font-size: 14px; }
.pnl td { padding: 7px 4px; border-top: 1px solid var(--cream-200); }
.pnl td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.pnl tr.total td { font-weight: 700; border-top: 2px solid var(--cream-300); }
.pnl .neg { color: var(--mocha-400); font-weight: 500; }
.chip { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.chip.sage { background: var(--sage); color: var(--sage-500); }
.float-card { position: absolute; background: #fff; border-radius: 22px; box-shadow: var(--lift); padding: 12px 16px; font-size: 13px; }
.float-card.tg { left: -28px; bottom: -26px; max-width: 240px; }
.float-card.cost { right: -18px; top: -22px; }
@media (max-width: 920px) { .float-card.tg { left: 8px; } .float-card.cost { right: 8px; } }

/* секции */
section { padding: 64px 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--berry-600); margin-bottom: 10px; }
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } .g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .g4, .g2 { grid-template-columns: 1fr; } }
.card { background: #fff; border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); }
.card .ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; margin-bottom: 14px; }
.card p { color: var(--mocha-500); font-size: 15px; margin: 0; }
.bg-rose { background: var(--rose); } .bg-sage { background: var(--sage); } .bg-butter { background: var(--butter); } .bg-lilac { background: var(--lilac); } .bg-cream { background: var(--cream-200); }
.pain .card { box-shadow: none; }
.band { background: var(--mocha-800); color: #fff; border-radius: 40px; padding: 48px; }
.band .muted { color: #D3BFB2; }
.steps { counter-reset: s; }
.step { position: relative; padding-top: 56px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--berry); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: Fraunces, Georgia, serif; }
.step p { color: #EADFD8; }

/* тарифы */
.price { display: flex; flex-direction: column; }
.price .sum { font-family: Fraunces, Georgia, serif; font-size: 44px; font-weight: 700; margin: 6px 0 2px; }
.price .sum small { font-family: "DM Sans", sans-serif; font-size: 16px; font-weight: 500; color: var(--mocha-400); }
.price ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.price li { padding: 6px 0 6px 28px; position: relative; font-size: 15px; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--sage-500); font-weight: 700; }
.price.best { outline: 3px solid var(--berry); }
.badge-top { position: absolute; top: -14px; right: 24px; background: var(--berry); color: #fff; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; }

/* FAQ */
details { background: #fff; border-radius: 22px; padding: 18px 22px; box-shadow: var(--shadow); margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--berry); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 12px 0 0; color: var(--mocha-500); }

/* подвал */
footer { padding: 48px 0 40px; border-top: 1px solid var(--cream-300); margin-top: 40px; font-size: 14px; color: var(--mocha-400); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
footer a { color: var(--mocha-500); text-decoration: none; }
footer a:hover { color: var(--mocha-800); }
footer .cols { display: flex; gap: 40px; flex-wrap: wrap; }
footer .cols div { display: flex; flex-direction: column; gap: 6px; }

/* база знаний и документы */
.doc { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 40px 20px 20px; }
.doc aside { position: sticky; top: 90px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; font-size: 14px; }
.doc aside h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--mocha-300); margin: 18px 0 6px; }
.doc aside a { display: block; padding: 4px 10px; border-radius: 999px; color: var(--mocha-500); text-decoration: none; }
.doc aside a.on, .doc aside a:hover { background: var(--cream-200); color: var(--mocha-800); }
.doc article { background: #fff; border-radius: 32px; padding: 40px 44px; box-shadow: var(--shadow); min-width: 0; }
.doc article h1 { font-size: clamp(30px, 3.6vw, 40px); }
.doc article h2 { font-size: 24px; margin-top: 1.6em; }
.doc article h3 { margin-top: 1.4em; }
.doc article li { margin: 4px 0; }
.doc article code { background: var(--cream-200); border-radius: 6px; padding: 1px 6px; font-size: 14px; }
.doc article table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.doc article th, .doc article td { border-bottom: 1px solid var(--cream-200); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc article blockquote { margin: 1em 0; padding: 12px 18px; background: var(--butter); border-radius: 16px; }
.doc .crumbs { font-size: 14px; margin-bottom: 14px; }
.doc .crumbs a { color: var(--mocha-400); text-decoration: none; }
.doc .next { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--cream-200); font-weight: 600; }
.doc .next a { text-decoration: none; }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; } .doc aside { position: static; max-height: none; } .doc article { padding: 26px 22px; } }
.kb-sections { columns: 2 320px; column-gap: 24px; }
.kb-sections .card { break-inside: avoid; margin-bottom: 24px; }
.kb-sections .card a { display: block; padding: 5px 0; text-decoration: none; color: var(--mocha-800); font-weight: 600; }
.kb-sections .card a span { display: block; font-weight: 400; font-size: 14px; color: var(--mocha-400); }
.search { width: 100%; max-width: 560px; border: 0; border-radius: 999px; padding: 16px 22px; font-size: 16px; box-shadow: var(--shadow); outline: none; font-family: inherit; }
.draft { background: var(--butter); border-radius: 16px; padding: 12px 16px; font-size: 14px; margin-bottom: 20px; }
