/* Ops Lab — единая таблица стилей */

:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --surface-2: #eef2f0;
  --text: #182126;
  --muted: #59666e;
  --line: #dce3e0;
  --accent: #1b5e8a;
  --accent-strong: #134a6e;
  --on-accent: #ffffff;
  --accent-soft: #e2edf5;
  --green: #2c8a57;
  --green-soft: #e1f1e7;
  --amber: #c27a22;
  --amber-soft: #f8ecd9;
  --red: #c4483e;
  --code-bg: #eef1ef;
  --shadow: 0 1px 2px rgba(20, 30, 35, .06), 0 8px 24px rgba(20, 30, 35, .06);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1417;
    --surface: #151d21;
    --surface-2: #1b252a;
    --text: #e2e8ea;
    --muted: #9aa8af;
    --line: #29353b;
    --accent: #6db3e2;
    --accent-strong: #93c8ec;
    --on-accent: #0a1a24;
    --accent-soft: #172f3e;
    --green: #5cc48a;
    --green-soft: #15301f;
    --amber: #e3a552;
    --amber-soft: #33270f;
    --red: #ec7b70;
    --code-bg: #10181c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font: 17px/1.6 var(--font);
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---------- Шапка ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.brand:hover { color: var(--text); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.bm-bg { fill: var(--accent); }
.bm-line { stroke: var(--on-accent); }

.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .97rem; }
.site-nav a:hover { background: var(--surface-2); color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.site-nav .nav-cta { background: var(--accent); color: var(--on-accent); font-weight: 600; margin-left: 6px; }
.site-nav .nav-cta:hover { background: var(--accent-strong); color: var(--on-accent); }

.menu-btn { display: none; }

@media (max-width: 820px) {
  .js .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
    background: var(--surface); color: var(--text); cursor: pointer;
  }
  .menu-icon, .menu-icon::before, .menu-icon::after {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
    position: relative; transition: transform .2s, background-color .2s;
  }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -6px; }
  .menu-icon::after { top: 6px; }
  .menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

  .js .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 4px 0 16px; }
  .js .site-nav.open { display: flex; }
  .js .site-nav a { padding: 12px; font-size: 1.05rem; }
  .js .site-nav .nav-cta { margin: 8px 0 0; text-align: center; }
  .site-nav { width: 100%; padding-bottom: 10px; }
}

/* ---------- Кнопки, бейджи ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; line-height: 1.2;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green); margin-bottom: .8rem;
}
.tag {
  display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-strong);
}
.tag-green { background: var(--green-soft); color: var(--green); }
.tag-amber { background: var(--amber-soft); color: var(--amber); }

/* ---------- Секции ---------- */

.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 2.4rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); }
.page-head .lead { max-width: 720px; }
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); color: var(--muted); }

/* ---------- Hero ---------- */

.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero-points { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 8px; color: var(--muted); }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; }
.hero-points svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.check { fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Иллюстрации (inline SVG) */
.ill { display: block; width: 100%; height: auto; }
.i-card { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.i-card-2 { fill: var(--surface-2); stroke: var(--line); stroke-width: 1.5; }
.i-grid { stroke: var(--line); stroke-width: 1; fill: none; stroke-dasharray: 4 5; }
.i-axis { stroke: var(--line); stroke-width: 1.5; fill: none; }
.i-line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.i-line2 { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.i-line-red { fill: none; stroke: var(--red); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.i-dash { fill: none; stroke: var(--amber); stroke-width: 2; stroke-dasharray: 6 5; }
.i-area { fill: var(--accent-soft); }
.i-point { fill: var(--accent); stroke: var(--surface); stroke-width: 3; }
.i-point-red { fill: var(--red); stroke: var(--surface); stroke-width: 3; }
.i-muted { fill: var(--surface-2); }
.i-ok { fill: var(--green); }
.i-warn { fill: var(--amber); }
.i-bad { fill: var(--red); }
.i-accent { fill: var(--accent); }
.i-soft { fill: var(--accent-soft); }
.i-green-soft { fill: var(--green-soft); }
.i-stroke { fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-stroke-accent { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.i-wire { fill: none; stroke: var(--muted); stroke-width: 2.5; stroke-linecap: round; }
.i-text { fill: var(--text); font: 600 14px var(--font); }
.i-text-sm { fill: var(--muted); font: 12px var(--font); }
.i-text-big { fill: var(--text); font: 700 22px var(--font); }
.i-text-accent { fill: var(--accent); font: 700 13px var(--font); }
.i-text-mono { fill: var(--muted); font: 11px var(--mono); }

/* ---------- Сетки и карточки ---------- */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column;
}
.section-alt .card { background: var(--bg); }
.card h3 { margin-bottom: .4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .more { margin-top: auto; padding-top: 12px; font-weight: 600; }
.card-link { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.card-link:hover { color: inherit; border-color: var(--accent); }
.card-link:hover h3 { color: var(--accent); }

.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; }
.icon-green { background: var(--green-soft); }
.icon-green .i-stroke-accent { stroke: var(--green); }
.icon-amber { background: var(--amber-soft); }
.icon-amber .i-stroke-accent { stroke: var(--amber); }

.list-check { list-style: none; padding: 0; margin: 0 0 1em; }
.list-check li { position: relative; padding-left: 26px; margin: 6px 0; }
.list-check li::before {
  content: ""; position: absolute; left: 3px; top: .5em; width: 11px; height: 6px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg);
}
.list-dash { list-style: none; padding: 0; }
.list-dash li { position: relative; padding-left: 20px; margin: 6px 0; }
.list-dash li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 10px; height: 2px; background: var(--muted); }

/* ---------- Шаги ---------- */

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: step; }
.steps li { counter-increment: step; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; font: 700 .9rem var(--mono);
  color: var(--accent); margin-bottom: 10px;
}
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--muted); margin: 0; font-size: .97rem; }
.steps .dur { display: block; margin-top: 12px; font-size: .85rem; color: var(--green); font-weight: 600; }

/* ---------- Цифры ---------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 20px; }
.stat { padding: 8px 0 8px 20px; border-left: 3px solid var(--accent); }
.stat b { display: block; font-size: clamp(2.2rem, 1.8rem + 1.6vw, 3rem); line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .97rem; }

/* ---------- Отзывы ---------- */

.quote { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 18px; font-size: 1.04rem; }
.quote blockquote p:last-child { margin: 0; }
.quote figcaption { margin-top: auto; color: var(--muted); font-size: .92rem; display: flex; gap: 12px; align-items: center; }
.quote figcaption svg { width: 38px; height: 38px; flex: none; }
.q-mark { fill: var(--accent-soft); }
.q-mark-fg { fill: var(--accent); }

/* ---------- Призыв ---------- */

.cta {
  background: var(--accent); color: var(--on-accent); border-radius: calc(var(--radius) + 6px);
  padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.4fr auto; gap: 24px; align-items: center;
}
.cta h2 { margin-bottom: .3em; }
.cta p { margin: 0; opacity: .9; }
.cta .btn { background: var(--on-accent); color: var(--accent); }
.cta .btn:hover { opacity: .92; color: var(--accent); }
@media (max-width: 720px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Тарифы ---------- */

.period { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 28px; gap: 4px; flex-wrap: wrap; }
.period[hidden] { display: none; }
.period button {
  font: inherit; font-size: .95rem; font-weight: 600; border: 0; background: transparent; color: var(--muted);
  padding: 8px 16px; border-radius: 9px; cursor: pointer;
}
.period button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.period .save { color: var(--green); font-weight: 700; }

.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan .badge { position: absolute; top: -13px; left: 24px; background: var(--accent); color: var(--on-accent); font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.35rem; margin-bottom: .2em; }
.plan .for { color: var(--muted); font-size: .95rem; min-height: 3em; }
.price { margin: 14px 0 4px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price b { font-size: 2.3rem; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); }
.price-note { color: var(--muted); font-size: .88rem; min-height: 1.5em; margin-bottom: 18px; }
.plan .list-check { font-size: .97rem; margin-bottom: 24px; }
.plan .btn { margin-top: auto; }

.p-year { display: none; }
.plans[data-period="year"] .p-month { display: none; }
.plans[data-period="year"] .p-year { display: inline; }
.plans[data-period="year"] .price-note.p-year { display: block; }

/* ---------- Таблицы ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 0 0 1.5em; }
table { border-collapse: collapse; width: 100%; font-size: .96rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- FAQ ---------- */

.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 32px 14px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.5rem; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); }

/* ---------- Кейсы ---------- */

.case { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; }
.case + .case { margin-top: 20px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.case h2 { font-size: 1.45rem; }
.case h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 1.2em 0 .4em; }
.case p { margin-bottom: .6em; }
.case-side { display: flex; flex-direction: column; gap: 14px; }
.case-result { background: var(--green-soft); border-radius: 12px; padding: 18px; }
.case-result b { display: block; font-size: 1.9rem; line-height: 1.1; color: var(--green); letter-spacing: -.02em; }
.case-result span { font-size: .93rem; }
.case-chart { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.case-chart figcaption { font-size: .82rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 820px) { .case { grid-template-columns: 1fr; } }

/* ---------- Блог ---------- */

.post-list { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.post-card .post-meta { margin-bottom: 10px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--muted); font-size: .88rem; }
.post-card h2, .post-card h3 { font-size: 1.3rem; }
.post-card p { color: var(--muted); }
.post-cover { border-radius: 10px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 18px; overflow: hidden; }

.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 6px; }

.article { padding: clamp(32px, 5vw, 56px) 0 24px; }
.article-head { margin-bottom: 2rem; }
.article-head h1 { font-size: clamp(1.9rem, 1.3rem + 2.3vw, 2.7rem); }

.prose { font-size: 1.04rem; line-height: 1.7; }
.prose h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.7rem); margin: 2.2em 0 .6em; scroll-margin-top: 84px; }
.prose h3 { font-size: 1.15rem; margin: 1.8em 0 .5em; }
.prose li { margin: .3em 0; }
.prose figure { margin: 2em 0; }
.prose figure .ill { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.prose figcaption { color: var(--muted); font-size: .88rem; margin-top: 8px; text-align: center; }

code { font-family: var(--mono); font-size: .88em; background: var(--code-bg); padding: .12em .38em; border-radius: 5px; border: 1px solid var(--line); }
pre {
  font: .86rem/1.6 var(--mono); background: var(--code-bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; overflow-x: auto; margin: 0 0 1.4em; tab-size: 4; -webkit-overflow-scrolling: touch;
}
pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.c { color: var(--muted); }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 2rem; font-size: .96rem; }
.toc b { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin: 4px 0; }

.note { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 0 0 1.4em; }
.note.warn { border-color: var(--amber); background: var(--amber-soft); }
.note p:last-child { margin: 0; }

.article-foot { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }

/* ---------- О компании ---------- */

.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); }
.timeline b { display: block; font-family: var(--mono); color: var(--accent); font-size: .95rem; }
.timeline p { margin: 2px 0 0; color: var(--muted); }

.role { display: flex; gap: 16px; align-items: flex-start; }
.role .avatar { width: 52px; height: 52px; flex: none; }
.av-bg { fill: var(--accent-soft); }
.av-fg { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.role h3 { font-size: 1.05rem; margin-bottom: .25em; }
.role p { margin: 0; color: var(--muted); font-size: .95rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { border: 1px solid var(--line); background: var(--surface); padding: 6px 12px; border-radius: 999px; font-size: .92rem; }

/* ---------- Контакты ---------- */

.contact-main { font-size: clamp(1.4rem, 1.1rem + 1.5vw, 2.2rem); font-weight: 700; letter-spacing: -.01em; word-break: break-all; }
.mail-tpl { white-space: pre-wrap; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }
@media (max-width: 520px) { dl.facts { grid-template-columns: 1fr; gap: 2px; } dl.facts dd { margin-bottom: 10px; } }

/* ---------- 404 ---------- */

.e404 { text-align: center; padding: clamp(48px, 10vw, 120px) 0; }
.e404 .ill { max-width: 420px; margin: 0 auto 24px; }
.e404 .btn-row { justify-content: center; }

/* ---------- Подвал ---------- */

.site-footer { margin-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); background: var(--surface); font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.1fr; gap: 32px; padding-top: 44px; padding-bottom: 32px; }
.foot-grid p { color: var(--muted); margin-top: 12px; }
.foot-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin: 7px 0; }
.foot-grid a { color: var(--text); text-decoration: none; }
.foot-grid a:hover { color: var(--accent); text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 18px; padding-bottom: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: .87rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Мелочи ---------- */

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

@media print {
  .site-header, .site-footer, .cta, .menu-btn { display: none; }
  body { background: #fff; color: #000; }
}

.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover { color: var(--accent); text-decoration: underline; }
