/* ТКО-Учёт, лендинг. Цвета и радиусы те же, что в продукте (frontend/src/styles/tokens.css). */
:root {
  --bg: #f4f7f8; --surface: #fff; --surface-2: #f7f9fa;
  --ink: #0f2129; --ink-2: #50636c; --ink-3: #66767e; --line: #e3e9ed;
  --primary: #0e7490; --primary-600: #125e77; --primary-050: #e7f2f6;
  --accent: #19c3a0; --accent-600: #12a98a;
  --dark: #0f2b34; --dark-2: #143a46;
  --warn-bg: #fdf0d3; --warn: #9a5408;
  --r: 14px; --r-lg: 22px;
  --shadow: 0 1px 2px rgba(15,33,41,.05), 0 2px 8px rgba(15,33,41,.06);
  --shadow-lg: 0 24px 60px rgba(15,33,41,.22);
  --font: 'Segoe UI', system-ui, -apple-system, Roboto, 'DejaVu Sans', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.01em; }
h2 { font-size: 34px; font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 19px; font-weight: 750; }
p { margin: 0; }
code { font-family: ui-monospace, 'JetBrains Mono', Menlo, Consolas, monospace; font-size: .95em; background: rgba(255,255,255,.12); padding: 2px 7px; border-radius: 6px; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { max-width: 1140px; margin: 0 auto; padding-inline: 20px; }
.muted { color: var(--ink-3); }
section { padding-block: 84px; scroll-margin-top: 72px; }
.sub { font-size: 18px; color: var(--ink-2); max-width: 760px; margin-bottom: 36px; }
.only-mob { display: none !important; }

/* кнопки */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 11px; font-weight: 700; text-decoration: none; font-size: 15px; border: 1.5px solid transparent; transition: transform .12s, background .12s, box-shadow .12s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-lg { padding: 15px 24px; font-size: 17px; border-radius: 13px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-accent { background: var(--accent); color: #062a24; box-shadow: 0 8px 24px rgba(25,195,160,.35); }
.btn-accent:hover { background: var(--accent-600); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }

/* шапка */
.top { position: sticky; top: 0; z-index: 20; background: rgba(15,43,52,.92); backdrop-filter: blur(10px); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.top-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; margin-right: auto; }
.mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(140deg, #1fd1ab, #0e7490); display: grid; place-items: center; color: #fff; }
.mark svg { width: 22px; height: 22px; stroke-width: 2; }
.brand-t { font-weight: 800; font-size: 18px; line-height: 1.05; display: flex; flex-direction: column; }
.brand-t small { font-weight: 500; font-size: 11.5px; color: rgba(255,255,255,.6); letter-spacing: .02em; }
.nav { display: flex; gap: 22px; }
.nav a { color: rgba(255,255,255,.82); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.nav a:hover { color: #fff; }

/* герой */
.hero { background: radial-gradient(1200px 600px at 20% -10%, #1a5566 0%, var(--dark) 55%), var(--dark); color: #fff; padding-block: 76px 0; text-align: center; overflow: hidden; }
.eyebrow { color: #7fe0c9; font-weight: 700; font-size: 13.5px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { font-size: 52px; font-weight: 850; max-width: 900px; margin: 0 auto 20px; letter-spacing: -.02em; }
.hero .lead { font-size: 20px; color: rgba(255,255,255,.82); max-width: 780px; margin: 0 auto 30px; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.trust { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.7); font-size: 14.5px; }
.trust svg { width: 18px; height: 18px; color: #7fe0c9; }
.shot-hero { margin: 52px auto -2px; max-width: 1040px; box-shadow: var(--shadow-lg); border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; }
.shot-hero .bar { border-radius: var(--r-lg) var(--r-lg) 0 0; }

/* «окно браузера» для скриншотов */
.shot { margin: 0; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(15,33,41,.08); }
.shot .bar { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: #e9eef1; border-bottom: 1px solid #dbe3e7; color: #5b6b72; font-size: 12.5px; }
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9d3d8; display: inline-block; }
.shot .bar span { margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot img { cursor: zoom-in; }
.shot-narrow { max-width: 360px; justify-self: center; }

/* боли */
.pain { background: var(--surface); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { background: var(--bg); border-radius: var(--r); padding: 26px 26px 28px; }
.card { display: flex; flex-direction: column; gap: 10px; }
.card h3 { margin-bottom: 0; }
.card p { color: var(--ink-2); }
.card .fix { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 15px; display: flex; gap: 10px; }
.fix svg { width: 18px; height: 18px; margin-top: 2px; color: var(--accent-600); stroke-width: 2.4; }

/* шаги */
.step { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; padding-block: 34px; }
.step.rev .step-t { order: 2; }
.step.rev .shot { order: 1; }
.step + .step { border-top: 1px solid var(--line); }
.num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; margin-bottom: 14px; font-size: 17px; }
.step h3 { font-size: 26px; margin-bottom: 12px; }
.step p { color: var(--ink-2); font-size: 16.5px; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 9px; color: var(--ink); font-size: 15.5px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 17px; height: 17px; border-radius: 50%; background: var(--primary-050); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e7490' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); background-size: 11px; background-position: center; background-repeat: no-repeat; }

/* демо и роли */
.demo { background: var(--surface); }
.role { background: var(--bg); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.role-h { display: flex; align-items: center; gap: 12px; }
.role-h svg { width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: var(--primary); color: #fff; }
.role .ticks { margin: 0 0 8px; font-size: 15px; }
.role-go { margin-top: auto; justify-content: center; }
.demo-foot { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; justify-content: space-between; }
.logins-d summary { cursor: pointer; color: var(--primary); font-weight: 600; font-size: 14.5px; }
.logins-d p { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.logins-d code { background: var(--primary-050); color: var(--primary-600); font-weight: 700; }

/* возможности */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.f { background: var(--surface); border-radius: var(--r); padding: 22px 22px 24px; box-shadow: var(--shadow); }
.f svg { width: 26px; height: 26px; color: var(--primary); margin-bottom: 12px; }
.f h3 { font-size: 17px; margin-bottom: 6px; }
.f p { color: var(--ink-2); font-size: 14.5px; }

/* честный блок */
.honest { background: var(--surface); }
.hcard { border-left: 4px solid var(--accent); background: var(--bg); border-radius: 0 var(--r) var(--r) 0; padding: 22px 26px; }
.hcard h3 { margin-bottom: 8px; }
.hcard p { color: var(--ink-2); }

/* цена */
.pcard { background: var(--dark); color: #fff; border-radius: var(--r-lg); padding: 44px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.amount { font-size: 52px; font-weight: 850; letter-spacing: -.02em; line-height: 1; margin-bottom: 14px; }
.amount span { font-size: 20px; font-weight: 600; color: rgba(255,255,255,.7); margin-left: 6px; }
.pnote { color: rgba(255,255,255,.8); font-size: 17px; margin-bottom: 26px; }
.pinc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.pinc li { position: relative; padding-left: 32px; }
.pinc li::before { content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23062a24' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); background-size: 12px; background-position: center; background-repeat: no-repeat; }

.dnote { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); }
.dnote svg { width: 18px; height: 18px; }

/* пилот */
.pilot { margin-top: 22px; display: flex; align-items: center; gap: 28px; padding: 24px 28px; border-radius: var(--r-lg); background: var(--primary-050); border: 1.5px solid #bfdde7; }
.pilot > div { flex: 1; }
.pilot-t { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.pilot p:not(.pilot-t) { color: var(--ink-2); }

/* внедрение */
.impl-h { font-size: 24px; margin: 56px 0 20px; }
.impl { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.impl li { counter-increment: s; background: var(--surface); border-radius: var(--r); padding: 20px 22px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.impl li::before { content: counter(s); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary-050); color: var(--primary); font-weight: 800; margin-bottom: 6px; }
.impl b { font-size: 17px; }
.impl span { color: var(--ink-2); font-size: 14.5px; }

/* вопросы */
.faq { background: var(--surface); }
.faq details { background: var(--bg); border-radius: 12px; padding: 4px 22px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; font-size: 16.5px; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 2px; top: 10px; transition: transform .15s; font-size: 22px; color: var(--primary); font-weight: 500; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 16px; }

/* контакты */
.cgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.c { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--surface); box-shadow: var(--shadow); border-radius: var(--r); text-decoration: none; color: var(--ink); border: 1.5px solid transparent; transition: border-color .12s, transform .12s; }
.c:hover { border-color: var(--primary); transform: translateY(-2px); }
.c svg { width: 26px; height: 26px; color: var(--primary); }
.c span { display: flex; flex-direction: column; min-width: 0; }
.c b { font-size: 15.5px; }
.c small { color: var(--ink-3); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.author { margin-top: 28px; display: flex; align-items: center; gap: 18px; max-width: 760px; color: var(--ink-2); font-size: 16px; }
.author b { color: var(--ink); }
.ava { flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: linear-gradient(140deg, #1fd1ab, #0e7490); color: #fff; font-size: 30px; font-weight: 800; }

/* нижняя панель контактов на телефоне */
.mbar { display: none; }

.foot { padding-block: 26px; color: var(--ink-2); font-size: 14px; border-top: 1px solid var(--line); }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* страница политики */
.doc { padding-block: 56px 72px; }
.doc .wrap { max-width: 800px; }
.doc h1 { font-size: 38px; font-weight: 800; margin-bottom: 8px; overflow-wrap: anywhere; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc p { color: var(--ink-2); font-size: 16.5px; }
.doc p + p { margin-top: 10px; }
.foot a { color: var(--ink-2); }

/* лайтбокс */
.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(6,20,26,.86); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox img { max-width: 96vw; max-height: 92vh; width: auto; height: auto; border-radius: 10px; box-shadow: var(--shadow-lg); background: #fff; }
.lightbox button { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 28px; cursor: pointer; line-height: 1; }

@media (max-width: 1000px) {
  h2 { font-size: 30px; }
  .hero h1 { font-size: 42px; }
  .step, .pcard { grid-template-columns: 1fr; gap: 28px; }
  .impl { grid-template-columns: repeat(2, 1fr); }
  .step.rev .step-t { order: 1; } .step.rev .shot { order: 2; }
  .grid3, .fgrid, .cgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) { .nav { display: none; } }
@media (max-width: 640px) {
  .only-desk { display: none !important; }
  .only-mob { display: flex !important; }
  .top .btn.only-mob { display: inline-flex !important; }
  body { padding-bottom: 64px; }
  .mbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; inset: auto 0 0 0; z-index: 30; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(15,43,52,.96); backdrop-filter: blur(10px); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border-radius: 11px; background: var(--accent); color: #062a24; font-weight: 700; text-decoration: none; }
  .mbar a + a { background: rgba(255,255,255,.12); color: #fff; }
  .mbar svg { width: 18px; height: 18px; }
  .shot-narrow { max-width: 260px; }
  .impl { grid-template-columns: 1fr; }
  .doc h1 { font-size: 28px; }
  .pilot { flex-direction: column; align-items: stretch; padding: 22px; gap: 16px; }
  .pilot .btn { justify-content: center; }
  .author { align-items: flex-start; }
  .ava { width: 56px; height: 56px; font-size: 24px; }
  section { padding-block: 56px; }
  h2 { font-size: 26px; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 31px; }
  .hero .lead { font-size: 17px; }
  .top-in { height: 58px; gap: 12px; }
  .brand-t small { display: none; }
  .btn-lg { padding: 13px 18px; font-size: 16px; }
  .cta .btn { width: 100%; justify-content: center; }
  .grid3, .grid2, .fgrid, .cgrid { grid-template-columns: 1fr; }
  .step h3 { font-size: 22px; }
  .pcard { padding: 28px 22px; }
  .amount { font-size: 40px; }
  .shot-hero { margin-top: 36px; border-radius: 12px 12px 0 0; }
}
