/* Finon — лендинг (finon.uz и finon.uz/cfo). Светлый, спокойный, синий акцент как в системе. */
:root {
  --bg: #f4f6fa; --surface: #ffffff; --fg: #121722; --muted: #5d6676; --line: #e3e7ef;
  --accent: #3157d5; --accent-2: #2443ad; --on-accent: #ffffff; --soft: #eaf0ff;
  --good: #12804c; --bad: #cf3535; --ink: #121722;
  --radius: 18px; --shadow: 0 1px 2px rgba(18, 23, 34, .04), 0 8px 28px rgba(18, 23, 34, .06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1218; --surface: #171b23; --fg: #eef1f6; --muted: #a1a9b8; --line: #272d38;
    --accent: #6d8cff; --accent-2: #8aa3ff; --on-accent: #0f1218; --soft: #1c2440;
    --good: #4fd08f; --bad: #ff7b7b; --ink: #eef1f6; --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1218; --surface: #171b23; --fg: #eef1f6; --muted: #a1a9b8; --line: #272d38;
  --accent: #6d8cff; --accent-2: #8aa3ff; --on-accent: #0f1218; --soft: #1c2440;
  --good: #4fd08f; --bad: #ff7b7b; --ink: #eef1f6; --shadow: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif; }
a { color: var(--accent); }
img, svg { max-width: 100%; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* шапка */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--fg); text-decoration: none; }
.logo i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--ink); }
.logo i svg { width: 18px; height: 18px; }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.nav a:hover, .nav a.on { color: var(--fg); }
.top .actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 20px; font: 700 15px/1.2 inherit; font-family: inherit;
  background: var(--accent); color: var(--on-accent); text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--accent-2); }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--surface); }
.btn.sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn:focus-visible, .nav a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* первый экран */
.hero { padding: 72px 0 48px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--soft); border-radius: 99px; padding: 5px 12px; margin-bottom: 18px; }
h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.06; letter-spacing: -.035em; margin: 0 0 18px; }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--muted); margin: 0 0 28px; max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note { font-size: 13.5px; color: var(--muted); margin-top: 14px; }

/* «окно системы» на первом экране */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 18px; }
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-weight: 700; font-size: 14px; }
.mock-head span { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.kpi small { display: block; color: var(--muted); font-size: 11.5px; }
.kpi b { display: block; font-size: 20px; letter-spacing: -.02em; }
.kpi em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--good); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; padding: 6px 4px 0; border-bottom: 1px solid var(--line); }
.bars div { flex: 1; display: flex; gap: 3px; align-items: flex-end; height: 100%; }
.bars i { flex: 1; border-radius: 5px 5px 0 0; background: var(--accent); }
.bars i + i { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.months { display: flex; gap: 10px; padding: 6px 4px 0; font-size: 11px; color: var(--muted); }
.months span { flex: 1; text-align: center; }
.mock-rows { margin-top: 12px; display: grid; gap: 6px; font-size: 13px; }
.mock-rows div { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 10px; background: var(--bg); }
.mock-rows b.us { color: var(--good); } .mock-rows b.we { color: var(--bad); }

/* секции */
section.block { padding: 64px 0; }
section.block.alt { background: var(--surface); border-block: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -.03em; margin: 0 0 12px; }
.sub { color: var(--muted); font-size: 17px; margin: 0 0 32px; max-width: 680px; }
.grid { display: grid; gap: 16px; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
section.alt .card { background: var(--bg); }
.card h3 { margin: 12px 0 6px; font-size: 18px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--soft); color: var(--accent); }
.ico svg { width: 22px; height: 22px; }
.q { font-weight: 700; color: var(--fg); }

/* шаги */
.steps { counter-reset: s; }
.step { position: relative; padding-top: 52px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 22px; left: 22px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.step .when { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--accent); }

/* тарифы */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.plan.hit { border: 2px solid var(--accent); box-shadow: var(--shadow); position: relative; }
.plan.hit::before { content: 'Чаще выбирают'; position: absolute; top: -13px; left: 24px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.plan h3 { margin: 0; font-size: 20px; }
.plan .for { color: var(--muted); font-size: 14px; margin: 4px 0 16px; min-height: 42px; }
.price { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.price small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.year { font-size: 13.5px; color: var(--muted); margin: 6px 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; font-size: 14.5px; }
.plan li { display: flex; gap: 9px; }
.plan li::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233157d5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan li.plus { font-weight: 700; }
.plan li.plus::before { background-image: none; }
.plan .btn { margin-top: auto; }
.options { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--muted); font-size: 14.5px; }
.options b { color: var(--fg); }

/* блок «финдиректор» на главной */
.cfo-band { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; background: var(--ink); color: var(--bg); border-radius: 28px; padding: 44px; }
.cfo-band h2 { color: inherit; }
.cfo-band p { color: color-mix(in srgb, var(--bg) 75%, transparent); margin: 0 0 22px; font-size: 17px; }
.cfo-band ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cfo-band li { background: color-mix(in srgb, var(--bg) 8%, transparent); border-radius: 14px; padding: 14px 16px; font-weight: 600; }
.cfo-band .btn { background: var(--bg); color: var(--ink); }
.cfo-band .btn:hover { background: var(--soft); }

/* пакеты финдиректора */
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mix .card b { display: block; font-size: 15px; margin-bottom: 4px; }

/* вопросы */
details.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
details.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; color: var(--accent); font-size: 22px; line-height: 1; }
details.faq[open] summary::after { content: '−'; }
details.faq p { color: var(--muted); margin: 10px 0 0; }

/* форма заявки */
.form-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
form.lead-form { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label.f { display: grid; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
label.f input, label.f textarea, label.f select { font: 500 15.5px/1.4 inherit; font-family: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; }
label.f textarea { min-height: 84px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: 14.5px; margin: 0; }
.form-msg.ok { color: var(--good); font-weight: 700; }
.form-msg.err { color: var(--bad); }
.small { font-size: 13px; color: var(--muted); }
.bullets { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.bullets li { display: flex; gap: 12px; align-items: flex-start; }
.bullets li b { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--soft); color: var(--accent); font-size: 14px; }

/* подвал */
footer { padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 24px; }
footer a { color: var(--muted); }

@media (max-width: 960px) {
  .hero .wrap, .form-wrap, .cfo-band { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3, .plans, .packs, .mix { grid-template-columns: 1fr; }
  .nav { display: none; }
  .hero { padding-top: 44px; }
  .cfo-band { padding: 28px; }
}
@media (max-width: 560px) {
  .g4, .g2, .row { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis .kpi:last-child { grid-column: 1 / -1; }
  .top .actions { gap: 6px; }
  .top .actions .btn.sm { padding: 8px 11px; font-size: 13.5px; }
  section.block { padding: 48px 0; }
}
