/* qartix.org: один акцент (кобальт), одна шкала скруглений (кнопки/чипы 999px, карточки 18px, поля 10px), тема по системе */
@font-face { font-family:'Onest'; font-style:normal; font-display:swap; font-weight:100 900;
  src:url(/assets/fonts/onest-cyrillic-wght-normal.woff2) format('woff2');
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:'Onest'; font-style:normal; font-display:swap; font-weight:100 900;
  src:url(/assets/fonts/onest-latin-wght-normal.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  color-scheme: light;
  --bg:#f6f7f9; --surface:#ffffff; --surface2:#eef1f6; --ink:#0e1320; --ink2:#2b3242; --muted:#5b6475; --line:#e2e6ed;
  --accent:#2f5ae6; --accent-ink:#2448c4; --accent-soft:#e8eefd; --on-accent:#ffffff;
  --ok:#14804a; --part:#9a6a07; --no:#b42318;
  --shadow:0 1px 2px rgba(16,24,48,.06), 0 12px 32px -12px rgba(16,24,48,.18);
  --shadow-lg:0 2px 6px rgba(16,24,48,.06), 0 40px 80px -30px rgba(20,40,110,.35);
  --r-card:18px; --r-field:10px;
  --font:'Onest',-apple-system,'SF Pro Text','Segoe UI',Roboto,'Helvetica Neue',Arial,'PingFang SC','Hiragino Sans GB','Noto Sans SC','Microsoft YaHei',sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg:#0b0e14; --surface:#121722; --surface2:#171d2a; --ink:#e9edf5; --ink2:#c9d0dd; --muted:#98a2b3; --line:#232b3a;
    --accent:#5b7cff; --accent-ink:#8ea4ff; --accent-soft:#18213d; --on-accent:#ffffff;
    --ok:#4ade80; --part:#f2c14e; --no:#f87171;
    --shadow:0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
    --shadow-lg:0 2px 6px rgba(0,0,0,.4), 0 40px 80px -30px rgba(0,0,0,.8);
  }
}

*,*::before,*::after { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; scroll-behavior:smooth; scroll-padding-top:84px; }
body { margin:0; background:var(--bg); color:var(--ink); font-family:var(--font); font-size:16px; line-height:1.55; -webkit-font-smoothing:antialiased; overflow-x:hidden; }
:lang(zh) body, html:lang(zh-CN) body { line-height:1.7; }
img { max-width:100%; height:auto; display:block; }
a { color:inherit; }
h1,h2,h3 { margin:0; font-weight:650; letter-spacing:-0.02em; line-height:1.12; text-wrap:balance; }
html:lang(zh-CN) h1, html:lang(zh-CN) h2, html:lang(zh-CN) h3 { letter-spacing:0; line-height:1.3; }
h2 { font-size:clamp(28px, 3.4vw, 44px); }
h3 { font-size:18px; letter-spacing:-0.01em; line-height:1.3; }
p { margin:0; }
.wrap { width:100%; max-width:1240px; margin:0 auto; padding:0 24px; }
.ic { width:22px; height:22px; flex:none; }
.ic-sm { width:18px; height:18px; }
.ic-lg { width:28px; height:28px; }
.nw { white-space:nowrap; }
.skip { position:absolute; left:-9999px; top:8px; background:var(--surface); padding:8px 12px; border-radius:8px; z-index:100; }
.skip:focus { left:8px; }
:focus-visible { outline:2px solid var(--accent); outline-offset:3px; border-radius:6px; }

/* кнопки */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; height:48px; padding:0 22px; border-radius:999px; font:inherit; font-weight:600; font-size:15.5px; text-decoration:none; white-space:nowrap; cursor:pointer; border:1px solid transparent; transition:transform .15s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.btn:active { transform:translateY(1px) scale(.985); }
.btn-primary { background:var(--accent); color:var(--on-accent); box-shadow:0 1px 0 rgba(255,255,255,.18) inset, 0 8px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { background:color-mix(in srgb, var(--accent) 88%, #000); }
.btn-ghost { background:transparent; color:var(--ink); border-color:var(--line); }
.btn-ghost:hover { border-color:color-mix(in srgb, var(--ink) 30%, var(--line)); background:var(--surface); }
.btn-sm { height:38px; padding:0 16px; font-size:14px; }
.btn-block { width:100%; }
.btn[disabled] { opacity:.7; cursor:progress; }

/* шапка */
.nav { position:sticky; top:0; z-index:20; background:color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter:saturate(160%) blur(14px); -webkit-backdrop-filter:saturate(160%) blur(14px); border-bottom:1px solid transparent; transition:border-color .2s; }
.nav.scrolled { border-bottom-color:var(--line); }
.nav-in { display:flex; align-items:center; gap:28px; height:68px; }
.logo { display:inline-flex; align-items:center; gap:10px; font-weight:700; font-size:19px; letter-spacing:-0.02em; text-decoration:none; }
.mark { width:30px; height:30px; flex:none; }
.nav-links { display:flex; align-items:center; gap:24px; margin-right:auto; }
.nav-links a { text-decoration:none; color:var(--muted); font-size:15px; font-weight:500; transition:color .15s; }
.nav-links a:hover { color:var(--ink); }
.nav-right { display:flex; align-items:center; gap:14px; }
.langs { display:inline-flex; gap:2px; padding:3px; border:1px solid var(--line); border-radius:999px; }
.langs a { font-size:13px; font-weight:600; text-decoration:none; color:var(--muted); padding:4px 9px; border-radius:999px; }
.langs a[aria-current] { background:var(--ink); color:var(--bg); }
.burger { display:none; width:42px; height:42px; border-radius:999px; border:1px solid var(--line); background:transparent; color:var(--ink); align-items:center; justify-content:center; cursor:pointer; }

/* первый экран: текст слева сверху, под ним широкий скриншот продукта */
.hero { padding:64px 0 0; overflow:hidden; }
.hero-in { display:block; }
.hero-txt { max-width:none; }
.eyebrow { font-size:14px; font-weight:600; color:var(--accent-ink); margin-bottom:18px; }
.hero h1 { font-size:clamp(36px, 4.6vw, 64px); letter-spacing:-0.035em; line-height:1.04; max-width:16.5em; }
html:lang(zh-CN) .hero h1 { letter-spacing:0; line-height:1.22; }
.hero-low { display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:24px 48px; margin-top:22px; }
.hero-sub { font-size:19px; color:var(--muted); max-width:36em; }
.hero-cta { display:flex; flex-wrap:wrap; gap:12px; }
.hero-img { position:relative; margin-top:48px; }
.hero-img::after { content:''; position:absolute; left:0; right:0; bottom:0; height:22%; background:linear-gradient(180deg, transparent, var(--bg)); pointer-events:none; }
.shot { border-radius:14px; border:1px solid var(--line); background:var(--surface); box-shadow:var(--shadow); cursor:zoom-in; }
.shot-hero { box-shadow:var(--shadow-lg); border-radius:18px 18px 0 0; border-bottom:0; width:100%; }

/* факты */
.facts { padding:24px 0 8px; }
.facts-in { display:grid; grid-template-columns:repeat(4, 1fr); border-top:1px solid var(--line); }
.fact { padding:26px 24px 8px 0; display:flex; flex-direction:column; gap:6px; }
.fact + .fact { padding-left:24px; border-left:1px solid var(--line); }
.fact b { font-size:30px; font-weight:650; letter-spacing:-0.02em; line-height:1.1; }
.fact span { color:var(--muted); font-size:15px; }

/* секции */
.sec { padding:104px 0; }
.sec-head { max-width:760px; margin-bottom:44px; }
.sec-head p, .lead { margin-top:16px; font-size:18px; color:var(--muted); max-width:62ch; }

/* бенто модулей */
.bento { display:grid; grid-template-columns:repeat(12, 1fr); gap:16px; grid-auto-flow:dense; }
.cell { position:relative; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-card); overflow:hidden; display:flex; flex-direction:column; min-height:260px; }
.cell-txt { padding:24px 24px 18px; }
.cell-txt p { margin-top:8px; color:var(--muted); font-size:15px; }
.cell-img { flex:1; min-height:180px; padding:0 0 0 24px; overflow:hidden; }
.cell-img picture, .cell-img img { height:100%; }
.cell-img img { width:auto; max-width:none; min-width:100%; object-fit:cover; object-position:left top; border-radius:12px 0 0 0; border-right:0; border-bottom:0; box-shadow:none; aspect-ratio:auto; }
.c-pipeline { grid-column:span 8; grid-row:span 2; }
.c-pipeline .cell-img img { min-height:420px; }
.c-client, .c-acts { grid-column:span 4; }
.c-finance { grid-column:span 5; }
.c-docs { grid-column:span 7; }
.c-leads, .c-more, .c-brand { grid-column:span 4; }
.c-more, .c-brand { justify-content:flex-end; }
.cell.tint { background:var(--surface2); }
.cell.accent { background:var(--accent); border-color:var(--accent); color:var(--on-accent); }
.cell.accent .cell-txt p { color:color-mix(in srgb, var(--on-accent) 82%, transparent); }
.cell-icons { display:flex; gap:10px; margin-bottom:auto; padding-bottom:28px; }
.cell-icons .ic { width:30px; height:30px; opacity:.9; }
.c-more .cell-txt, .c-brand .cell-txt { display:flex; flex-direction:column; height:100%; }

/* сплит текст + картинка */
.split { display:grid; grid-template-columns:minmax(0, 5fr) minmax(0, 7fr); gap:64px; align-items:center; }
.split-rev { grid-template-columns:minmax(0, 7fr) minmax(0, 5fr); }
.badge { display:inline-flex; width:48px; height:48px; border-radius:14px; align-items:center; justify-content:center; background:var(--accent-soft); color:var(--accent-ink); margin-bottom:22px; }
.badge .ic { width:26px; height:26px; }
.checks { list-style:none; padding:0; margin:28px 0 0; display:grid; gap:12px; }
.checks li { display:flex; gap:10px; align-items:flex-start; font-size:15.5px; color:var(--ink2); }
.ic-ok { color:var(--accent); margin-top:1px; }
.integr-list { margin:28px 0 0; display:grid; grid-template-columns:1fr 1fr; gap:22px 28px; }
.integr-list dt { font-weight:650; }
.integr-list dd { margin:6px 0 0; color:var(--muted); font-size:15px; }
.check { background:linear-gradient(180deg, transparent, var(--surface2) 40%, transparent); }

/* AI */
.ai-row { display:grid; grid-template-columns:repeat(4, 1fr); gap:32px; margin-top:44px; }
.ai-item { border-top:2px solid var(--accent); padding-top:22px; }
.ai-item .ic { color:var(--accent); margin-bottom:16px; }
.ai-item p { margin-top:8px; color:var(--muted); font-size:15px; }

/* сравнение */
.cmp { margin-top:40px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-card); overflow:hidden; }
.cmp-row { display:grid; grid-template-columns:minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); }
.cmp-row + .cmp-row { border-top:1px solid var(--line); }
.cmp-row > div { padding:16px 20px; }
.cmp-head > div { font-weight:650; font-size:15px; color:var(--muted); padding-top:20px; padding-bottom:20px; }
.cmp-head > .us { color:var(--accent-ink); }
.us { background:color-mix(in srgb, var(--accent) 6%, transparent); }
.cmp-feat { font-weight:550; color:var(--ink2); font-size:15px; }
.cmp-c { display:flex; gap:8px; align-items:flex-start; font-size:14.5px; color:var(--ink2); }
.cmp-c .ic { margin-top:2px; }
.cmp-c.yes .ic { color:var(--ok); }
.cmp-c.part .ic { color:var(--part); }
.cmp-c.no .ic { color:var(--no); }
.cmp-c.no span { color:var(--muted); }
.cmp-c.us.yes span { font-weight:600; color:var(--ink); }
.note { margin-top:16px; color:var(--muted); font-size:13px; }

/* как начинаем */
.steps { list-style:none; margin:44px 0 0; padding:0; display:grid; grid-template-columns:repeat(4, 1fr); gap:24px; position:relative; }
.steps::before { content:''; position:absolute; left:23px; right:23px; top:23px; height:1px; background:var(--line); }
.steps li { position:relative; }
.steps .ic { box-sizing:content-box; width:22px; height:22px; padding:12px; border-radius:999px; background:var(--bg); border:1px solid var(--line); color:var(--accent); position:relative; }
.steps h3 { margin-top:18px; }
.steps p { margin-top:6px; color:var(--muted); font-size:15px; }

/* о компании */
.about { background:var(--surface); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.about-in { display:grid; grid-template-columns:minmax(0, 5fr) minmax(0, 7fr); gap:64px; align-items:start; }
.about-grid { display:grid; grid-template-columns:1fr 1fr; gap:36px 32px; }
.about-item .ic { color:var(--accent); margin-bottom:14px; }
.about-item p { margin-top:8px; color:var(--muted); font-size:15px; }

/* заявка */
.req-in { display:grid; grid-template-columns:minmax(0, 5fr) minmax(0, 7fr); gap:64px; align-items:start; }
.req-txt { position:sticky; top:110px; }
.req-form { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-card); padding:28px; box-shadow:var(--shadow); display:grid; gap:18px; }
.f-row { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.f { display:flex; flex-direction:column; gap:7px; margin:0; min-width:0; }
.f > span, .f legend { font-size:14px; font-weight:600; color:var(--ink2); }
.f > span i { font-style:normal; font-weight:500; color:var(--muted); font-size:12.5px; margin-left:4px; }
.f small { color:var(--muted); font-size:12.5px; }
.f input, .f textarea { font:inherit; font-size:16px; color:var(--ink); background:var(--bg); border:1px solid var(--line); border-radius:var(--r-field); padding:11px 13px; width:100%; transition:border-color .15s, box-shadow .15s; }
.f input::placeholder { color:color-mix(in srgb, var(--muted) 80%, transparent); }
.f input:focus, .f textarea:focus { outline:none; border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.f textarea { resize:vertical; min-height:88px; }
.f .bad, .f input[aria-invalid="true"] { border-color:var(--no); }
.chips { border:0; padding:0; flex-direction:row; flex-wrap:wrap; gap:8px; }
.chips legend { margin-bottom:8px; padding:0; width:100%; }
.chip { position:relative; }
.chip input { position:absolute; opacity:0; inset:0; margin:0; cursor:pointer; }
.chip span { display:inline-flex; align-items:center; height:38px; padding:0 16px; border-radius:999px; border:1px solid var(--line); font-size:14.5px; font-weight:500; color:var(--ink2); background:var(--bg); transition:all .15s; }
.chip input:checked + span { background:var(--accent-soft); border-color:var(--accent); color:var(--accent-ink); }
.chip input:focus-visible + span { outline:2px solid var(--accent); outline-offset:2px; }
.hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.consent { font-size:12.5px; color:var(--muted); }
.f-msg { font-size:15px; min-height:0; }
.f-msg:empty { display:none; }
.f-msg.err { color:var(--no); }
.f-msg.ok { color:var(--ok); font-weight:600; }
.req-form.done > :not(.f-msg) { display:none; }
.req-form.done .f-msg { font-size:18px; padding:28px 4px; }

/* подвал */
.foot { padding:48px 0 40px; }
.foot-in { display:grid; grid-template-columns:1fr auto; gap:24px; align-items:start; }
.foot-brand p { margin-top:10px; color:var(--muted); font-size:14px; max-width:44ch; }
.foot-links { display:flex; flex-direction:column; align-items:flex-end; gap:14px; }
.foot-links > a { display:inline-flex; align-items:center; gap:6px; font-weight:600; text-decoration:none; color:var(--accent-ink); }
.copy { grid-column:1 / -1; color:var(--muted); font-size:13px; border-top:1px solid var(--line); padding-top:20px; }

/* просмотр скриншота */
.lb { padding:0; border:0; background:transparent; max-width:min(1600px, 96vw); max-height:94vh; overflow:visible; }
.lb::backdrop { background:rgba(8,10,16,.82); backdrop-filter:blur(4px); }
.lb img { max-height:90vh; width:auto; border-radius:12px; box-shadow:var(--shadow-lg); }
.lb-x { position:absolute; top:-46px; right:0; width:38px; height:38px; border-radius:999px; border:0; background:rgba(255,255,255,.14); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; }

/* появление при прокрутке */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity:0; transform:translateY(18px); transition:opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); transition-delay:var(--d, 0ms); }
  .js .reveal.in { opacity:1; transform:none; }
  .cell { transition:transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s; }
  .cell:hover { transform:translateY(-3px); box-shadow:var(--shadow); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto; } }

/* планшет */
@media (max-width: 1080px) {
  .nav-links { gap:18px; }
  .c-pipeline { grid-column:span 12; grid-row:auto; }
  .c-client, .c-acts, .c-leads, .c-more, .c-brand { grid-column:span 6; }
  .c-finance, .c-docs { grid-column:span 6; }
  .c-brand { grid-column:span 12; min-height:200px; }
  .ai-row { grid-template-columns:1fr 1fr; gap:32px 28px; }
}
@media (max-width: 960px) {
  .nav-links { display:none; position:absolute; top:68px; left:0; right:0; background:var(--bg); border-bottom:1px solid var(--line); flex-direction:column; align-items:stretch; gap:0; padding:8px 24px 16px; margin:0; }
  .nav-links.open { display:flex; }
  .nav-links a { padding:12px 0; font-size:17px; color:var(--ink); }
  .burger { display:inline-flex; }
  .split, .split-rev, .about-in, .req-in { grid-template-columns:1fr; gap:40px; }
  .split-rev .split-img { order:2; }
  .hero-img { margin-right:-24px; margin-top:36px; }
  .hero-img .shot { border-radius:14px 0 0 0; border-right:0; width:150%; max-width:none; }
  .hero-img { overflow:hidden; }
  .req-txt { position:static; }
}
/* телефон */
@media (max-width: 640px) {
  .wrap { padding:0 16px; }
  .nav-in { height:60px; gap:12px; }
  .nav-links { top:60px; padding:8px 16px 16px; }
  .nav-cta { display:none; }
  .langs a { padding:4px 7px; }
  .hero { padding:32px 0 0; }
  .hero-sub { font-size:17px; }
  .hero-cta .btn { flex:1 1 auto; }
  .hero-img { margin-right:-16px; margin-top:28px; }
  .facts-in { grid-template-columns:1fr 1fr; }
  .fact { padding:20px 12px 14px 0; }
  .fact + .fact { padding-left:0; border-left:0; }
  .fact:nth-child(even) { padding-left:16px; border-left:1px solid var(--line); }
  .fact:nth-child(n+3) { border-top:1px solid var(--line); }
  .fact b { font-size:24px; }
  .fact span { font-size:14px; }
  .sec { padding:72px 0; }
  .bento { gap:12px; }
  .c-pipeline, .c-client, .c-acts, .c-finance, .c-docs, .c-leads, .c-more, .c-brand { grid-column:span 12; }
  .c-pipeline .cell-img img { min-height:260px; }
  .cell { min-height:0; }
  .cell-img { min-height:200px; max-height:260px; padding-left:20px; }
  .cell-txt { padding:20px 20px 16px; }
  .c-more .cell-txt, .c-brand .cell-txt { min-height:180px; }
  .integr-list, .about-grid { grid-template-columns:1fr; }
  .ai-row { grid-template-columns:1fr; gap:28px; }
  .steps { grid-template-columns:1fr; gap:22px; }
  .steps::before { left:23px; right:auto; top:23px; bottom:23px; width:1px; height:auto; }
  .steps li { display:grid; grid-template-columns:auto 1fr; column-gap:16px; }
  .steps li .ic { grid-row:span 2; }
  .steps h3 { margin-top:10px; }
  /* сравнение: строка → карточка: признак сверху, три системы списком */
  .cmp-head { display:none; }
  .cmp-row { grid-template-columns:1fr; padding:6px 0 10px; }
  .cmp-row > div { padding:6px 16px; }
  .cmp-feat { padding-top:14px !important; font-weight:650; color:var(--ink); }
  .cmp-c { display:grid; grid-template-columns:96px auto 1fr; gap:8px; }
  .cmp-c::before { content:attr(data-col); font-size:13px; font-weight:600; color:var(--muted); padding-top:1px; }
  .cmp-c.us::before { color:var(--accent-ink); }
  .us { background:transparent; }
  .req-form { padding:20px; }
  .f-row { grid-template-columns:1fr; }
  .foot-in { grid-template-columns:1fr; }
  .foot-links { align-items:flex-start; }
}

/* мобильное приложение: текст + телефоны в рамках */
.mobile { background:var(--surface2); }
.mob-in { display:grid; grid-template-columns:minmax(0, 5fr) minmax(0, 7fr); gap:56px; align-items:center; }
.mob-list { list-style:none; padding:0; margin:28px 0 0; display:grid; gap:20px; }
.mob-list li { display:flex; gap:14px; align-items:flex-start; }
.mob-list .ic { color:var(--accent); margin-top:2px; }
.mob-list p { margin-top:4px; color:var(--muted); font-size:15px; }
.mob-how { margin-top:26px; font-size:14px; color:var(--muted); border-left:2px solid var(--accent); padding-left:12px; }
.phones { display:flex; justify-content:center; align-items:flex-start; gap:22px; }
.phone { flex:0 1 250px; padding:9px; border-radius:42px; background:#0d1018; box-shadow:var(--shadow-lg); }
.phone:nth-child(2) { margin-top:56px; }
.shot-phone { border-radius:34px; border:0; width:100%; box-shadow:none; }
@media (max-width: 960px) { .mob-in { grid-template-columns:1fr; gap:40px; } }
@media (max-width: 640px) {
  .phones { justify-content:flex-start; overflow-x:auto; scroll-snap-type:x mandatory; margin:0 -16px; padding:4px 16px 18px; gap:14px; }
  .phone { flex:0 0 68%; scroll-snap-align:center; border-radius:34px; padding:7px; }
  .phone:nth-child(2) { margin-top:0; }
  .shot-phone { border-radius:28px; }
}
