/* Сайт бухгалтерии — те же цвета, что у приложения директора */
:root {
  --ink: #17233b; --ink-2: #56627a; --paper: #ffffff; --canvas: #eef1f4; --line: #d6dce4;
  --brand: #24476b; --brand-ink: #ffffff; --ok: #24614a; --bad: #b42318; --warn: #8a3b12; --warn-bg: #fdf0e3;
  --radius-s: 4px; --radius-m: 10px; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6ebf2; --ink-2: #9aa6b8; --paper: #1a2232; --canvas: #121826; --line: #2d3850;
    --brand: #7fa7d1; --brand-ink: #10213a; --ok: #8fd1b3; --bad: #ff8a80; --warn: #f3b98a; --warn-bg: #3a2616; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 "Segoe UI", "PT Sans", Roboto, "Helvetica Neue", Arial, sans-serif; font-variant-numeric: tabular-nums lining-nums; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.1; letter-spacing: -.02em; margin: .3rem 0 1rem; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 1.25rem; }
h3 { font-size: 1.1rem; margin: 0 0 .4rem; }
small { display: block; color: var(--ink-2); font-size: .78em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand b { display: block; font-size: 1rem; line-height: 1.2; }
.brand small { margin: 0; }
.brand-mark { flex: none; width: 32px; height: 32px; border-radius: var(--radius-s);
  background: linear-gradient(var(--brand-ink), var(--brand-ink)) 7px 10px / 18px 2px no-repeat, linear-gradient(var(--brand-ink), var(--brand-ink)) 7px 15px / 18px 2px no-repeat, linear-gradient(var(--brand-ink), var(--brand-ink)) 7px 20px / 11px 2px no-repeat, var(--brand); }
.nav { display: flex; gap: 22px; font-size: .95rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--brand); text-decoration: underline; }

.btn { display: inline-block; appearance: none; border: 2px solid var(--brand); border-radius: var(--radius-s); background: var(--brand); color: var(--brand-ink);
  font: inherit; font-weight: 600; padding: .7rem 1.3rem; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn[disabled] { opacity: .6; cursor: default; }

.hero { background: var(--canvas); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.eyebrow { color: var(--ink-2); font-weight: 600; font-size: .9rem; margin: 0; }
.lead { color: var(--ink-2); font-size: 1.12rem; margin: 0 0 1.5rem; max-width: 40em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Телефон с приложением */
.phone { justify-self: center; width: 300px; border-radius: 36px; padding: 12px; background: #0f1828; box-shadow: 0 30px 60px -30px rgba(15, 24, 40, .55); }
.phone-screen { background: #eef1f4; color: #17233b; border-radius: 26px; padding: 16px 14px 18px; font-size: 12.5px; line-height: 1.35; }
.ph-bar { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 12px; margin-bottom: 10px; }
.ph-mark { width: 18px; height: 18px; border-radius: 3px; background: linear-gradient(#fff, #fff) 4px 6px / 10px 1.5px no-repeat, linear-gradient(#fff, #fff) 4px 9px / 10px 1.5px no-repeat, linear-gradient(#fff, #fff) 4px 12px / 6px 1.5px no-repeat, #24476b; }
.ph-org { font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.ph-verdict { background: #fdf0e3; border-left: 4px solid #8a3b12; border-radius: 3px; padding: 8px 10px; margin-bottom: 10px; }
.ph-verdict b { display: block; color: #8a3b12; }
.ph-verdict span { color: #56627a; }
.ph-figs { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid #d6dce4; border-radius: 8px; margin-bottom: 10px; }
.ph-figs div { padding: 7px 9px; border-top: 1px solid #d6dce4; }
.ph-figs div:nth-child(-n+2) { border-top: 0; }
.ph-figs div:nth-child(even) { border-left: 1px solid #d6dce4; }
.ph-figs small { color: #56627a; font-size: 10.5px; }
.ph-figs b { font-size: 14px; }
.ph-bad { color: #b42318 !important; }
.ph-aging { display: flex; height: 8px; border-radius: 2px; overflow: hidden; margin-bottom: 8px; }
.ph-aging i:nth-child(1) { background: #24614a; } .ph-aging i:nth-child(2) { background: #d9a03f; } .ph-aging i:nth-child(3) { background: #d0702f; } .ph-aging i:nth-child(4) { background: #b42318; }
.ph-aging.big { height: 12px; margin: 10px 0 14px; }
.ph-rows { background: #fff; border: 1px solid #d6dce4; border-radius: 8px; margin-bottom: 10px; }
.ph-rows div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 9px; border-top: 1px solid #d6dce4; }
.ph-rows div:first-child { border-top: 0; }
.ph-q { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ph-q div { background: #fff; border: 1px solid #d6dce4; border-radius: 6px; padding: 5px 7px; }
.ph-q small { font-size: 10px; color: #56627a; }

.facts { border-bottom: 1px solid var(--line); }
.facts-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-in div { padding: 26px 20px 26px 0; }
.facts-in div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts b { display: block; font-size: 1.15rem; }
.facts span { color: var(--ink-2); font-size: .92rem; }

.block { padding: 80px 0; }
.block-alt { background: var(--canvas); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.card { padding: 22px 22px 26px 0; border-bottom: 1px solid var(--line); }
.card:not(:nth-child(3n+1)) { padding-left: 22px; border-left: 1px solid var(--line); }
.card p { margin: 0; color: var(--ink-2); }
.for { margin: 1.5rem 0 0; color: var(--ink-2); }

.app-in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.app-list { padding-left: 1.2rem; margin: 0 0 1.75rem; }
.app-list li { margin-bottom: .6rem; }
.app-list li::marker { color: var(--brand); font-weight: 700; }
.app-shot { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px; box-shadow: 0 20px 40px -28px rgba(15, 24, 40, .35); font-size: .92rem; }
.shot-head { font-weight: 700; font-size: 1.05rem; }
.shot-sum { color: var(--ink-2); margin-top: .25rem; }
.shot-sum b { color: var(--ink); }
.app-shot table { width: 100%; border-collapse: collapse; }
.app-shot th { text-align: left; color: var(--ink-2); font-size: .78rem; font-weight: 600; padding: 0 6px 6px 0; }
.app-shot td { border-top: 1px solid var(--line); padding: 8px 6px 8px 0; vertical-align: top; }
.app-shot td:nth-child(n+2), .app-shot th:nth-child(n+2) { text-align: right; white-space: nowrap; }

.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 0; margin: 0; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 14px; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; color: var(--brand); font-weight: 700; font-size: .95rem; margin-bottom: .3rem; }
.steps b { display: block; font-size: 1.1rem; margin-bottom: .3rem; }
.steps span { color: var(--ink-2); }

.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contacts { list-style: none; padding: 0; margin: 0; font-size: 1.15rem; }
.contacts li { margin-bottom: .5rem; }
.lead-form { display: grid; gap: .45rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 26px; }
.lead-form label { font-weight: 600; font-size: .92rem; margin-top: .4rem; }
.lead-form input:not([type="checkbox"]) { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s); padding: .6rem .75rem; width: 100%; }
.lead-form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .85rem; color: var(--ink-2); margin-top: .8rem; }
.lead-form .check input { margin-top: .25rem; }
.lead-form .btn { justify-self: start; margin-top: .8rem; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: .5rem 0 0; font-weight: 600; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--bad); }

.doc { max-width: 760px; }
.doc h2 { font-size: 1.2rem; margin: 1.8rem 0 .5rem; }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-2); font-size: .88rem; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot b { color: var(--ink); }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .nav { display: none; }
  .hero-in, .app-in, .contact-in { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; padding-bottom: 48px; }
  .facts-in { grid-template-columns: 1fr 1fr; }
  .facts-in div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts-in div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr; }
  .card, .card:not(:nth-child(3n+1)) { padding: 20px 0; border-left: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .block { padding: 56px 0; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .brand small { display: none; }
  .top-in { gap: 12px; }
  .top .btn { padding: .45rem .7rem; font-size: .88rem; }
  .facts-in, .steps { grid-template-columns: 1fr; }
  .facts-in div, .facts-in div + div { padding: 16px 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts-in div:first-child { border-top: 0; }
  .phone { width: 100%; max-width: 320px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
