/* ARS-X — сайт ars-x.ru (8.6). Светлая тема по умолчанию, тёмная — по системе или переключателю.
   Идея: «книга учёта» — продажи, деньги и команда сведены в одну ведомость. Отсюда моноширинные цифры, линейки
   и карточка-«чек» с итогами. Фирменный фиолетовый ARS-X + зелёный «деньги». */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/static/site86/fonts/Inter-Regular.woff?v=8.7.1-beta.1") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("/static/site86/fonts/Inter-Medium.woff?v=8.7.1-beta.1") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/static/site86/fonts/Inter-SemiBold.woff?v=8.7.1-beta.1") format("woff"); }
@font-face { font-family: "Inter Display"; font-weight: 700; font-style: normal; font-display: swap; src: url("/static/site86/fonts/InterDisplay-Bold.woff?v=8.7.1-beta.1") format("woff"); }
@font-face { font-family: "Inter Display"; font-weight: 800; font-style: normal; font-display: swap; src: url("/static/site86/fonts/InterDisplay-ExtraBold.woff?v=8.7.1-beta.1") format("woff"); }

:root {
  color-scheme: light;
  --bg: #fbfaff;
  --bg-2: #ffffff;
  --bg-3: #f2effd;
  --ink: #15121f;
  --ink-2: #3b3650;
  --muted: #6b6683;
  --line: #e4e0f2;
  --rule: #ece9f6;
  --brand: #6a4af0;
  --brand-2: #8468ff;
  --brand-soft: #efeaff;
  --money: #0f8f63;
  --money-soft: #e3f6ee;
  --warn: #a65e00;
  --danger: #c4322a;
  --on-brand: #ffffff;
  --shadow: 0 24px 60px -28px rgba(46, 25, 130, .35), 0 0 0 1px rgba(30, 20, 80, .06);
  --font: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Inter Display", "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --r: 16px;
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d0b15; --bg-2: #15121f; --bg-3: #1d1a2c; --ink: #f3f1fa; --ink-2: #cdc8e0; --muted: #9590ad; --line: #2c2840; --rule: #221f33;
    --brand: #8a70ff; --brand-2: #a28eff; --brand-soft: #241d42; --money: #3ccf95; --money-soft: #12291f; --warn: #f0a640; --danger: #ff7a70;
    --shadow: 0 30px 70px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0b15; --bg-2: #15121f; --bg-3: #1d1a2c; --ink: #f3f1fa; --ink-2: #cdc8e0; --muted: #9590ad; --line: #2c2840; --rule: #221f33;
  --brand: #8a70ff; --brand-2: #a28eff; --brand-soft: #241d42; --money: #3ccf95; --money-soft: #12291f; --warn: #f0a640; --danger: #ff7a70;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--brand); color: var(--on-brand); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(36px, 4.4vw, 56px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 62ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.muted { color: var(--muted); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
b, strong { font-weight: 600; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font: 600 16px/1 var(--font);
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 10px 24px -12px var(--brand); }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }

/* ---------- шапка ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--bg); }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 32px; width: auto; }  /* 8.7: растровый логотип, как в программе (SVG был нарисован упрощённо) */
.logo .on-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo .on-light { display: none; } :root:not([data-theme="light"]) .logo .on-dark { display: block; } }
:root[data-theme="dark"] .logo .on-light { display: none; }
:root[data-theme="dark"] .logo .on-dark { display: block; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--bg-3); }
.top-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.theme-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.menu-btn { display: none; }
@media (max-width: 980px) {
  .nav { position: fixed; inset: 68px 0 auto; flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px));
    margin: 0; transform: translateY(-120%); transition: transform .25s; box-shadow: var(--shadow); }
  .nav.open { transform: none; }
  .nav a { padding: 12px; font-size: 17px; }
  .menu-btn { display: grid; }
  .top-cta .login { display: none; }
}
@media (max-width: 520px) { .top-cta .btn-primary { padding: 0 12px; font-size: 14px; } .logo img { height: 28px; } }

/* ---------- первый экран ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto 40%; height: 720px; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 16%, transparent), transparent);
  pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 56px); align-items: center; position: relative; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: 14px; color: var(--muted); }
.shot-frame { position: relative; min-width: 0; }
.window { border-radius: 14px; overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow); }
.window-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--bg-3); border-bottom: 1px solid var(--line); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.window img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; }
.receipt { position: absolute; right: -14px; bottom: -28px; width: min(280px, 62%); background: var(--bg-2); border-radius: 14px; padding: 16px 18px 14px; box-shadow: var(--shadow);
  border: 1px solid var(--line); }
.receipt::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -7px; height: 8px;
  background: radial-gradient(circle at 6px -2px, transparent 6px, var(--bg-2) 6.5px) 0 0 / 12px 8px repeat-x; }
.receipt h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.receipt dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; }
.receipt dt { color: var(--ink-2); }
.receipt dd { margin: 0; text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.receipt .total { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 4px; font-weight: 700; }
.receipt .up { color: var(--money); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .receipt { right: 8px; bottom: -22px; } }

/* ---------- полоса цифр ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.facts-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { padding: 22px 20px; border-left: 1px solid var(--rule); display: grid; gap: 2px; }
.fact:first-child { border-left: 0; }
.fact strong { font: 800 clamp(26px, 3vw, 34px)/1.1 var(--display); letter-spacing: -.02em; }
.fact span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .facts-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fact:nth-child(3) { border-left: 0; } .fact:nth-child(n+3) { border-top: 1px solid var(--rule); } }

/* ---------- разделы ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }

/* сравнение */
.versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.versus-col { border: 1px solid var(--line); border-radius: var(--r); padding: 26px; background: var(--bg-2); display: grid; gap: 14px; align-content: start; }
.versus-col.ours { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); background: linear-gradient(180deg, var(--brand-soft), var(--bg-2) 70%); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--money-soft);
  -webkit-mask: none; box-shadow: inset 0 0 0 1.5px var(--money); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 6px; height: 9px; border: solid var(--money); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ticks.cross li::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.ticks.cross li::after { left: 5px; top: 12px; width: 8px; height: 0; border-width: 0 0 2px; border-color: var(--muted); transform: none; }
@media (max-width: 760px) { .versus { grid-template-columns: minmax(0, 1fr); } }

/* модули: вкладки */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.tab { border: 1px solid var(--line); background: var(--bg-2); color: var(--ink-2); border-radius: 999px; padding: 9px 16px; font: 600 15px/1 var(--font); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.panel { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 52px); align-items: center; }
.panel[hidden] { display: none; }
.panel-copy { display: grid; gap: 16px; min-width: 0; }
.panel .window img { aspect-ratio: 16 / 10; }
.tag-new { display: inline-block; font: 700 11px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--money); background: var(--money-soft); padding: 4px 8px; border-radius: 6px; vertical-align: middle; margin-left: 6px; }
@media (max-width: 900px) { .panel { grid-template-columns: minmax(0, 1fr); } }

/* отрасли */
.industries { display: flex; flex-wrap: wrap; gap: 8px; }
.industries span { border: 1px solid var(--line); background: var(--bg-2); border-radius: 999px; padding: 8px 14px; font-size: 15px; }
.industries span.beta::after { content: " · бета"; color: var(--muted); font-size: 13px; }
.industry-note { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.industry-note div { border-top: 2px solid var(--brand); padding-top: 14px; display: grid; gap: 6px; }
@media (max-width: 760px) { .industry-note { grid-template-columns: minmax(0, 1fr); } }

/* шаги */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; background: var(--bg-2); display: grid; gap: 10px; align-content: start; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 700 14px/1 var(--mono); color: var(--brand); }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* тарифы */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.plan { border: 1px solid var(--line); border-radius: var(--r); padding: 24px 20px; background: var(--bg-2); display: flex; flex-direction: column; gap: 12px; position: relative; }
.plan.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.plan .badge { position: absolute; top: -12px; left: 20px; background: var(--brand); color: var(--on-brand); font: 700 12px/1 var(--font); padding: 6px 10px; border-radius: 999px; }
.plan-price { font: 800 34px/1 var(--display); letter-spacing: -.03em; }
.plan-price small { font: 500 15px/1 var(--font); color: var(--muted); letter-spacing: 0; }
.plan-year { font-size: 14px; color: var(--muted); min-height: 1.5em; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 5px; height: 9px; border: solid var(--money); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.plan .btn { width: 100%; margin-top: auto; }
.plan ul { margin-bottom: 8px; }
.plans-foot { margin-top: 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 1020px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* сравнение тарифов */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
.compare { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 15px; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--rule); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font: 700 15px/1.2 var(--display); background: var(--bg-3); }
.compare td.n { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.compare tr:last-child td { border-bottom: 0; }
.yes { color: var(--money); font-weight: 700; }
.no { color: var(--muted); }

/* вопросы */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font: 400 24px/1 var(--font); color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); }

/* призыв */
.cta { border-radius: 24px; padding: clamp(32px, 5vw, 56px); background: linear-gradient(135deg, #2a1c74, #5b3fe0 60%, #7b5cfa); color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px; align-items: center; }
.cta p { color: rgba(255, 255, 255, .82); margin-top: 10px; max-width: 56ch; }
.cta .btn-primary { background: #fff; color: #2a1c74; box-shadow: none; }
.cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
.cta .btn-ghost:hover { border-color: #fff; color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .cta { grid-template-columns: minmax(0, 1fr); } }

/* партнёрам */
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; background: var(--bg-2); display: grid; gap: 10px; align-content: start; }
@media (max-width: 900px) { .cards3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards3 { grid-template-columns: minmax(0, 1fr); } }
.form { display: grid; gap: 14px; max-width: 720px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.form input, .form textarea { font: 16px/1.4 var(--font); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; }
.form input:focus, .form textarea:focus { border-color: var(--brand); outline: none; }
.form .hp { position: absolute; left: -9999px; }
.form-msg { font-weight: 600; }
.form-msg.ok { color: var(--money); }
.form-msg.err { color: var(--danger); }
@media (max-width: 600px) { .form-row { grid-template-columns: minmax(0, 1fr); } }

/* подвал */
.foot { padding: 48px 0 calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--bg-2); font-size: 14px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 28px; }
.foot h4 { margin: 0 0 10px; font-size: 14px; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--brand); text-decoration: underline; }
.foot-legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } }

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (max-width: 600px) {
  .receipt { position: relative; right: auto; bottom: auto; width: auto; max-width: 300px; margin: -36px 12px 0 auto; }
  .industries span { font-size: 14px; padding: 6px 12px; }
}

/* 8.6.0-beta.3: свои страницы из админки */
.page86 .hero-page .hero-copy { max-width: 820px; }
.prose { max-width: 70ch; display: grid; gap: 14px; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.prose p { margin: 0; }
.prose a, .faq a { color: var(--brand); }
.figure86 { margin: 0; display: grid; gap: 12px; }
.figure86.narrow { max-width: 760px; }
.figure86 figcaption { color: var(--muted); font-size: 14px; }
.figure86 img { display: block; width: 100%; height: auto; border-radius: 14px; }
.figure86 .window img { border-radius: 0; aspect-ratio: auto; }
.raw86 { min-width: 0; overflow-x: auto; }
