:root {
  --bg: #f6f5f1;
  --paper: #ffffff;
  --ink: #16171a;
  --ink-2: #3d3f45;
  --muted: #6d6f76;
  --line: #e2e0d9;
  --accent: #1d5c48;
  --accent-2: #2f8a6c;
  --accent-soft: #e3efe9;
  --warm: #e8b04b;
  --radius: 14px;
  --font: "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); }
a { color: var(--accent); }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(246,245,241,.9); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { height: 68px; display: flex; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; }
.brand small { font-weight: 500; color: var(--muted); }
.menu { display: flex; gap: 26px; font-size: 15px; }
.menu a { color: var(--ink-2); text-decoration: none; }
.menu a:hover { color: var(--ink); }
.top-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.link { color: var(--ink-2); text-decoration: none; font-size: 15px; padding: 0 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; cursor: pointer; transition: background .15s; }
.btn:hover { background: #164a3a; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.burger { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }

/* hero */
.hero { padding: 72px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 20px; margin-bottom: 22px; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 19px; color: var(--ink-2); margin: 0 0 32px; max-width: 520px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { margin-top: 18px; font-size: 14px; color: var(--muted); }

.mock { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(22,23,26,.25); padding: 22px; }
.mock-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.mock-head .ch { display: flex; gap: 12px; align-items: center; }
.mock-head .ava { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, #2f8a6c, #1d5c48); color: #fff; display: grid; place-items: center; font-weight: 700; }
.mock-head b { display: block; font-size: 15px; }
.mock-head span { font-size: 13px; color: var(--muted); }
.badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.mock-kpis div { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.mock-kpis small { display: block; font-size: 12px; color: var(--muted); }
.mock-kpis b { font-size: 20px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
#chart { width: 100%; height: auto; }
#chart text { font-size: 11px; fill: var(--muted); font-family: var(--font); }
.legend { display: flex; gap: 18px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }

/* logos */
.logos { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.logos .wrap { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.logos p { margin: 0; font-size: 14px; color: var(--muted); }
.logos ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 36px; flex-wrap: wrap; align-items: center; }
.logos li { font-weight: 700; color: #8b8d93; font-size: 17px; letter-spacing: -.01em; }
.logos li:nth-child(2) { font-family: Georgia, serif; font-style: italic; font-weight: 400; font-size: 19px; }
.logos li:nth-child(4) { letter-spacing: .14em; font-size: 14px; }
.logos li:nth-child(5) { font-weight: 800; }

/* sections */
section.block { padding: 96px 0; }
.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-head .k { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 14px; }
.sec-head p { color: var(--ink-2); font-size: 18px; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step::before { counter-increment: s; content: "0" counter(s); display: block; font-weight: 700; color: var(--accent); font-size: 14px; margin-bottom: 18px; }
.step h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--ink-2); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feat { background: var(--paper); padding: 30px 28px; }
.feat svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 16px; }
.feat h3 { margin: 0 0 6px; font-size: 17px; }
.feat p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* calculator */
.calc-sec { background: var(--ink); color: #eceae4; }
.calc-sec .sec-head h2 { color: #fff; }
.calc-sec .sec-head p { color: #b3b4b8; }
.calc-sec .sec-head .k { color: var(--warm); }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.calc form { background: #1f2024; border: 1px solid #2d2f34; border-radius: var(--radius); padding: 28px; display: grid; gap: 20px; }
.field label { display: flex; justify-content: space-between; font-size: 14px; color: #b3b4b8; margin-bottom: 8px; }
.field label output { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.field select { width: 100%; height: 44px; border-radius: 10px; border: 1px solid #36383e; background: #16171a; color: #fff; padding: 0 12px; }
.field input[type=range] { width: 100%; accent-color: var(--warm); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: #16171a; border: 1px solid #36383e; border-radius: 10px; padding: 4px; }
.seg label { margin: 0; justify-content: center; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; width: 100%; text-align: center; padding: 8px 6px; border-radius: 7px; font-size: 14px; color: #b3b4b8; cursor: pointer; }
.seg input:checked + span { background: #2d2f34; color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--warm); }
.result { background: #1f2024; border: 1px solid #2d2f34; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.result .big { font-size: 52px; font-weight: 700; letter-spacing: -.03em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.result .big-l { color: #b3b4b8; font-size: 14px; margin: 8px 0 24px; }
.result dl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin: 0 0 24px; }
.result dt { font-size: 13px; color: #8e9096; }
.result dd { margin: 2px 0 0; font-size: 20px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 4px; background: #2d2f34; overflow: hidden; margin-top: auto; }
.bar i { display: block; height: 100%; background: var(--warm); border-radius: 4px; transition: width .3s; }
.result .fine { font-size: 12px; color: #8e9096; margin-top: 10px; }

/* cases */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.case .tag { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.case .num { font-size: 44px; font-weight: 700; letter-spacing: -.03em; color: var(--accent); line-height: 1; }
.case .num-l { font-size: 14px; color: var(--muted); margin: 6px 0 18px; }
.case h3 { font-size: 18px; margin: 0 0 8px; letter-spacing: -.01em; }
.case p { margin: 0 0 20px; color: var(--ink-2); font-size: 15px; }
.case a { margin-top: auto; font-weight: 600; font-size: 15px; text-decoration: none; }
.case a:hover { text-decoration: underline; }

/* pricing */
.billing { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 4px; margin-bottom: 32px; }
.billing button { border: 0; background: none; padding: 8px 16px; border-radius: 7px; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.billing button.on { background: var(--ink); color: #fff; }
.billing em { font-style: normal; color: var(--accent-2); font-weight: 600; margin-left: 4px; }
.billing button.on em { color: var(--warm); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.plan.hot { border: 2px solid var(--accent); position: relative; }
.plan.hot::before { content: "Чаще всего выбирают"; position: absolute; top: -13px; left: 28px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 6px; }
.plan h3 { margin: 0 0 4px; font-size: 20px; }
.plan .for { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.plan .price { font-size: 38px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan .per { font-size: 13px; color: var(--muted); min-height: 20px; margin-bottom: 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; font-size: 15px; }
.plan li { padding-left: 26px; position: relative; color: var(--ink-2); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }

/* faq */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 24px; font-weight: 400; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--ink-2); max-width: 700px; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact li { display: flex; gap: 12px; color: var(--ink-2); }
.contact li b { color: var(--ink); min-width: 120px; font-weight: 600; }
.cform { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; gap: 16px; }
.cform .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cform label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.cform input, .cform select, .cform textarea { border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; background: var(--bg); outline: none; width: 100%; }
.cform input:focus, .cform select:focus, .cform textarea:focus { border-color: var(--accent); background: #fff; }
.cform .err { border-color: #c0392b; }
.cform .agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: 13px; }
.cform .agree input { width: auto; margin-top: 4px; }
.done { text-align: center; padding: 40px 10px; }
.done svg { width: 48px; height: 48px; margin: 0 auto 16px; color: var(--accent); }
.done h3 { margin: 0 0 6px; font-size: 22px; }
.done p { margin: 0; color: var(--ink-2); }

/* footer */
footer { background: var(--ink); color: #b3b4b8; padding: 64px 0 36px; font-size: 14px; }
.fcols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; margin-bottom: 48px; }
.fcols h4 { color: #fff; margin: 0 0 14px; font-size: 14px; }
.fcols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.fcols a { color: #b3b4b8; text-decoration: none; }
.fcols a:hover { color: #fff; }
footer .brand { color: #fff; margin-bottom: 14px; }
.fbottom { border-top: 1px solid #2d2f34; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.fbottom a { color: #b3b4b8; }

/* legal */
.legal { max-width: 780px; padding: 56px 0 96px; }
.legal h1 { font-size: 38px; letter-spacing: -.02em; margin: 0 0 8px; }
.legal .upd { color: var(--muted); margin: 0 0 40px; }
.legal h2 { font-size: 20px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 980px) {
  .hero .wrap, .calc, .contact { grid-template-columns: 1fr; }
  .steps, .cases, .plans { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .fcols { grid-template-columns: 1fr 1fr; }
  .menu, .top-cta .link { display: none; }
  .hero { padding: 48px 0 64px; }
  section.block { padding: 72px 0; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .top-cta { display: none; }
  .burger { display: block; }
  .menu.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 16px; gap: 14px; }
  .features { grid-template-columns: 1fr; }
  .mock-kpis b { font-size: 16px; }
  .cform .row2, .result dl { grid-template-columns: 1fr; }
  .result .big { font-size: 42px; }
  .fcols { grid-template-columns: 1fr; }
}
