/* Сайт ООО «СПМК»: автоматизация управления. Без внешних зависимостей: системные шрифты, один файл стилей. */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --text: #18212f;
  --muted: #56637a;
  --line: #dde3ee;
  --accent: #2b5c8f;
  --accent-ink: #ffffff;
  --accent-soft: #e3edf8;
  --ok: #1f7a4d;
  --shadow: 0 10px 30px rgba(24, 33, 47, 0.08);
  --radius: 16px;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1622;
    --surface: #161f2e;
    --surface-2: #1b2638;
    --text: #e8edf5;
    --muted: #9aa8bf;
    --line: #26324a;
    --accent: #7fb0e6;
    --accent-ink: #0b1320;
    --accent-soft: #1c2b44;
    --ok: #5ccf97;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; letter-spacing: 0.01em; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.brand-mark .icon { width: 20px; height: 20px; stroke-width: 2.2; }
.brand small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); letter-spacing: 0; line-height: 1.1; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; background: transparent; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px; cursor: pointer; }
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 20px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.small { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn .icon { width: 18px; height: 18px; }

/* ---------- блоки ---------- */
.hero { padding: 64px 0 48px; }
.hero .wrap { display: grid; gap: 40px; grid-template-columns: 1.15fr 0.85fr; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12; margin: 0 0 18px; letter-spacing: -0.015em; }
h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 19px; line-height: 1.3; margin: 0 0 8px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 24px; max-width: 62ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 26px; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.points li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 16px; }
.points li b { color: var(--text); }
.points .icon { color: var(--ok); margin-top: 2px; }

.section { padding: 56px 0; }
.section.alt { background: var(--surface-2); }
.section-head { max-width: 720px; margin: 0 0 32px; }
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.card .res { margin-top: 12px; font-size: 14px; color: var(--text); padding-top: 12px; border-top: 1px dashed var(--line); }
.card .res b { color: var(--accent); }

/* условный пример интерфейса */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.mock-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 14px; }
.mock-top span { font-size: 12px; font-weight: 600; color: var(--muted); }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin-bottom: 12px; font-size: 14px; }
.bar-row .track { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar-row .track i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.bar-row .track i.warn { background: #d9922b; }
.bar-row .track i.bad { background: #c9503f; }
.mock-note { margin: 14px 0 0; font-size: 12px; color: var(--muted); }

/* шаги */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); counter-reset: step; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 74px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 20px; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

/* таблица сроков */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 16px; }
th { background: var(--surface-2); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
tr:last-child td { border-bottom: none; }
td.term { white-space: nowrap; font-weight: 700; color: var(--accent); }
tr.total td { background: var(--accent-soft); font-weight: 600; }
.note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* рекламный блок */
.ad { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow); }
.ad p { margin: 0 0 12px; }
.ad p:last-of-type { margin-bottom: 18px; }

.twocol { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 860px) { .twocol { grid-template-columns: 1fr; } }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.list li { display: flex; gap: 10px; align-items: flex-start; }
.list .icon { color: var(--ok); width: 20px; height: 20px; margin-top: 3px; }

/* контакты */
.contact { display: grid; gap: 28px; grid-template-columns: 1.1fr 0.9fr; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 18px; }
.contact-list .icon { color: var(--accent); margin-top: 3px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.draft { background: #fff4e0; color: #7a4a00; border: 1px solid #f0cf94; border-radius: 12px; padding: 12px 14px; font-size: 15px; }
@media (prefers-color-scheme: dark) { .draft { background: #3a2a10; color: #f6d9a1; border-color: #6a4a1a; } }

.footer { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--muted); font-size: 15px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
[id] { scroll-margin-top: 80px; }

/* ---------- схема работы и экраны платформы ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .flow { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); } }
.flow li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; }
.flow li b { display: block; font-size: 17px; margin-bottom: 4px; color: var(--accent); }
.flow li p { margin: 0; color: var(--muted); font-size: 15px; }
.flow li::after { content: "→"; position: absolute; right: -18px; top: 50%; transform: translateY(-50%); color: var(--accent); font-weight: 700; font-size: 20px; }
.flow li:last-child::after { display: none; }
@media (max-width: 1000px) { .flow li::after { display: none; } }

.shot-row { display: grid; gap: 36px; grid-template-columns: 1fr 1.15fr; align-items: center; padding: 34px 0; border-top: 1px solid var(--line); }
.shot-row:first-of-type { border-top: none; padding-top: 0; }
.shot-row.rev { grid-template-columns: 1.15fr 1fr; }
.shot-row.rev .shot-text { order: 2; }
@media (max-width: 880px) { .shot-row, .shot-row.rev { grid-template-columns: 1fr; gap: 20px; } .shot-row.rev .shot-text { order: 0; } }
.shot-text h3 { font-size: 24px; margin: 0 0 10px; line-height: 1.25; }
.shot-text > p { color: var(--muted); margin: 0 0 14px; }
.shot-col { display: grid; gap: 18px; }
.shot { margin: 0; }
.shot a { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); background: var(--surface); }
.shot img { display: block; width: 100%; height: auto; transition: transform .2s ease; }
.shot a:hover img { transform: scale(1.015); }
.shot figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .shot img { transition: none; } .shot a:hover img { transform: none; } }

/* ---------- живая демонстрация ---------- */
.demo-box { display: grid; gap: 28px; grid-template-columns: 1.2fr 1fr; align-items: start; }
.demo-box h3 { margin: 0 0 12px; font-size: 22px; }
.demo-cred { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow); }
.demo-cred dl { margin: 0 0 18px; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; align-items: center; }
.demo-cred dt { color: var(--muted); }
.demo-cred dd { margin: 0; }
.demo-cred code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; user-select: all; }
@media (max-width: 880px) { .demo-box { grid-template-columns: 1fr; } }