﻿/* ============================================================
   ДОПУСК, инженерные утилиты
   Светлая тёплая тема по умолчанию, тёмная по кнопке
   ============================================================ */

:root {
  --paper: #f7f3ea;
  --paper-2: #f0e9dc;
  --surface: #fffdf8;
  --surface-2: #f5efe4;
  --ink: #151f2c;
  --ink-soft: #3b4a5c;
  --muted: #6d7b8c;
  --line: rgba(21, 31, 44, .10);
  --line-2: rgba(21, 31, 44, .20);
  --accent: #0d6f86;
  --accent-soft: rgba(13, 111, 134, .09);
  --accent-2: #b96a37;
  --accent-2-soft: rgba(185, 106, 55, .10);
  --ok: #1d8a5e;
  --warn: #b4622a;
  --shadow-sm: 0 2px 10px rgba(24, 38, 56, .06);
  --shadow: 0 26px 60px -34px rgba(24, 38, 56, .45);
  --radius: 20px;
  --radius-sm: 14px;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", ui-monospace, Consolas, monospace;
  --max: 1180px;
  --header-h: 74px;
}

[data-theme="dark"] {
  --paper: #070e18;
  --paper-2: #0a1320;
  --surface: #0f1a2a;
  --surface-2: #142133;
  --ink: #e9f1fb;
  --ink-soft: #c3d1e2;
  --muted: #8ba0b8;
  --line: rgba(130, 170, 220, .16);
  --line-2: rgba(130, 170, 220, .28);
  --accent: #4fd8f0;
  --accent-soft: rgba(79, 216, 240, .12);
  --accent-2: #ffb168;
  --accent-2-soft: rgba(255, 177, 104, .12);
  --ok: #3ad39a;
  --warn: #ffb168;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .3);
  --shadow: 0 26px 60px -28px rgba(0, 0, 0, .8);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 82% -8%, var(--accent-soft), transparent 62%),
    radial-gradient(700px 460px at 4% 6%, var(--accent-2-soft), transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .35s ease, color .35s ease;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.14; letter-spacing: -.022em; font-weight: 800; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 5px; }

.skip-link {
  position: fixed; top: -120px; left: 16px; z-index: 999;
  padding: 12px 18px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- сетка на фоне ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .55;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
}

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 26px;
}
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 60px 0; }
.section + .section { border-top: 1px solid var(--line); }

/* ---------- шапка ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h); z-index: 100;
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 11px;
  background: var(--surface);
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__name {
  display: block; font-weight: 800; font-size: 15px; letter-spacing: .16em; text-transform: uppercase;
}
.brand__sub {
  display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em;
  color: var(--muted); text-transform: uppercase; margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  color: var(--ink-soft); transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--ink); background: var(--accent-soft); }
.nav a.is-active { color: var(--accent); }

.header__tools { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface);
  cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.icon-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.icon-btn svg { width: 18px; height: 18px; }
[data-theme="dark"] .icon-moon, :root:not([data-theme="dark"]) .icon-sun { display: none; }
.burger { display: none; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 13px; border: 1px solid transparent;
  font-weight: 700; font-size: 15.5px; cursor: pointer; white-space: nowrap;
  transition: transform .2s, box-shadow .25s, background-color .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; }

.btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 16px 34px -18px color-mix(in srgb, var(--accent) 80%, transparent);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -20px color-mix(in srgb, var(--accent) 85%, transparent); }

.btn--ghost {
  background: var(--surface); border-color: var(--line-2); color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn--link { padding: 0; background: none; color: var(--accent); font-weight: 700; box-shadow: none; }
.btn--link:hover { gap: 14px; }

.btn--sm { padding: 11px 18px; font-size: 14px; border-radius: 11px; }

/* ---------- типографика ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 18px;
}
.kicker::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.kicker--blue { color: var(--accent); }

.h2 { font-size: clamp(28px, 3.8vw, 44px); }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-soft); max-width: 64ch; }
.section-head { margin-bottom: 48px; max-width: 760px; }
.section-head--row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; max-width: none; flex-wrap: wrap;
}
.mono { font-family: var(--mono); }

/* ---------- hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 68px) 0 72px; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 56px; align-items: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 15px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-sm);
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 24px;
}
.hero__badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent);
}

.hero h1 {
  font-size: clamp(32px, 4.4vw, 56px);
  letter-spacing: -.035em;
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--accent); }
.hero__sub {
  font-size: clamp(16px, 1.7vw, 19.5px); color: var(--ink-soft);
  max-width: 52ch; margin-bottom: 30px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.trust span {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--ink-soft);
}
.trust svg { width: 16px; height: 16px; color: var(--ok); flex: none; }

.hero__media { position: relative; }
.hero__media .media {
  border-radius: 26px; box-shadow: var(--shadow);
  border: 1px solid var(--line-2);
}

/* ---------- медиа-слот под картинку ---------- */
.media {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  margin: 0;
}
.media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--16x10 { aspect-ratio: 16 / 10; }
.media--3x4 { aspect-ratio: 3 / 4; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media__caption {
  position: absolute; left: 14px; bottom: 12px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
}

/* ---------- цифры ---------- */
.stats { background: color-mix(in srgb, var(--paper-2) 70%, transparent); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 30px 26px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__value { font-family: var(--mono); font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.02em; }
.stat__value em { font-style: normal; color: var(--accent); }
.stat__label { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

/* ---------- карточки утилит ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .28s ease, box-shadow .28s, border-color .28s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}
.card__media { display: block; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.card__media img { transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.035); }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__cat {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 10px;
}
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 16px; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.card__link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14.5px; color: var(--accent);
}
.card__link svg { width: 16px; height: 16px; transition: transform .25s; }
.card:hover .card__link svg { transform: translateX(4px); }

.tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em;
  padding: 5px 9px; border-radius: 7px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--muted);
}

/* ---------- услуги ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service {
  position: relative; padding: 30px 28px 26px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform .28s, box-shadow .28s, border-color .28s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.service__num { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--accent-2); margin-bottom: 16px; }
.service h3 { font-size: 20px; margin-bottom: 10px; }
.service p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 18px; }
.service__meta {
  display: flex; flex-direction: column; gap: 7px;
  padding-top: 16px; border-top: 1px dashed var(--line-2);
  font-size: 13px; color: var(--muted);
}
.service__meta b { color: var(--ink); font-weight: 700; }

/* ---------- CTA полоса ---------- */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: 30px 34px; border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background:
    radial-gradient(600px 200px at 10% 0%, var(--accent-soft), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}
.cta-band h3 { font-size: 20px; margin: 0 0 4px; }
.cta-band p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- процесс ---------- */
.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.step { position: relative; padding-top: 36px; }
.step::before {
  content: ""; position: absolute; top: 12px; left: 0; right: -18px; height: 1px; background: var(--line-2);
}
.step:last-child::before { right: 0; }
.step__dot {
  position: absolute; top: 5px; left: 0; width: 15px; height: 15px; border-radius: 50%;
  border: 1px solid var(--accent); background: var(--paper);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 12%, transparent);
}
.step__dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--accent); }
.step__num { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--accent-2); }
.step h3 { font-size: 16.5px; margin: 10px 0 8px; }
.step p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------- о себе ---------- */
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.about__text p { color: var(--ink-soft); }
.quote {
  margin: 26px 0 0; padding: 20px 24px;
  border-left: 3px solid var(--accent-2);
  background: var(--accent-2-soft);
  border-radius: 0 14px 14px 0;
  font-size: 16px; color: var(--ink);
}
.quote cite { display: block; margin-top: 8px; font-size: 12.5px; color: var(--muted); font-style: normal; }

.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.principle {
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.principle svg { width: 20px; height: 20px; color: var(--accent); margin-bottom: 12px; }
.principle h3 { font-size: 15px; margin-bottom: 6px; }
.principle p { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- стек ---------- */
.stack { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface);
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent-2); transform: rotate(45deg); }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; cursor: pointer; font-weight: 700; font-size: 16.5px;
  list-style: none; transition: color .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__item summary::after {
  content: "+"; font-family: var(--mono); font-size: 22px; font-weight: 400;
  color: var(--accent); transition: transform .25s; flex: none; line-height: 1;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 40px 22px 4px; margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- контакты ---------- */
.contact {
  border: 1px solid var(--line-2); border-radius: 26px; padding: 52px;
  background:
    radial-gradient(700px 300px at 88% 0%, var(--accent-soft), transparent 68%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 52px; align-items: start; }
.contact h2 { font-size: clamp(26px, 3.2vw, 38px); }
.contact p { color: var(--ink-soft); }
.contact__links { display: grid; gap: 12px; }
.contact-link {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px; border: 1px solid var(--line); border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.contact-link:hover { border-color: var(--accent); transform: translateX(4px); box-shadow: var(--shadow-sm); }
.contact-link svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.contact-link__label {
  display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.contact-link__value { font-weight: 600; font-size: 15px; }

/* ---------- подвал ---------- */
.footer { border-top: 1px solid var(--line); padding: 46px 0 40px; font-size: 13.5px; color: var(--muted); }
.footer__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__links a { transition: color .2s; }
.footer__links a:hover { color: var(--accent); }
.footer strong { color: var(--ink); }

/* ============================================================
   страницы каталога и утилиты
   ============================================================ */
.page-hero { padding: calc(var(--header-h) + 56px) 0 44px; border-bottom: 1px solid var(--line); }
.breadcrumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 22px;
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span.sep { opacity: .45; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 52px); margin-bottom: 16px; }
.page-hero__lead { font-size: clamp(16px, 1.7vw, 19px); color: var(--ink-soft); max-width: 66ch; }

/* инструменты каталога */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 30px; }
.search { position: relative; flex: 1 1 300px; max-width: 380px; }
.search svg {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--muted); pointer-events: none;
}
.search input {
  width: 100%; padding: 13px 16px 13px 44px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font: inherit; font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: 10px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  transition: background-color .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.result-count { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-left: auto; }

/* пагинация */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.page-btn {
  min-width: 42px; height: 42px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface);
  font-family: var(--mono); font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.page-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.page-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-btn:disabled { opacity: .4; cursor: default; }
.page-btn svg { width: 16px; height: 16px; }

.empty {
  padding: 60px 24px; text-align: center;
  border: 1px dashed var(--line-2); border-radius: var(--radius);
  color: var(--muted);
}

/* страница утилиты */
.meta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 920px; }
.meta-item {
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.meta-item dt {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.meta-item dd { margin: 0; font-weight: 700; font-size: 14px; }

.case-body { padding: 60px 0 0; }
.case-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 60px; align-items: start; }
.case-content h2 { font-size: clamp(23px, 2.6vw, 30px); margin: 52px 0 18px; }
.case-content h2:first-child { margin-top: 0; }
.case-content p, .case-content li { color: var(--ink-soft); font-size: 16px; }
.case-content ul { margin: 0 0 1.3em; list-style: none; }
.case-content li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.case-content li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--accent-2); transform: rotate(45deg);
}

.callout {
  border: 1px solid var(--line-2); border-left: 3px solid var(--accent-2);
  border-radius: 0 14px 14px 0; background: var(--accent-2-soft);
  padding: 20px 24px; margin: 28px 0; font-size: 15px; color: var(--ink-soft);
}
.callout b { color: var(--ink); }
.callout--accent { border-left-color: var(--accent); background: var(--accent-soft); }

.figure { margin: 30px 0; }
.figure figcaption {
  margin-top: 12px; font-family: var(--mono); font-size: 11.5px;
  letter-spacing: .04em; color: var(--muted);
}

/* галерея */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 26px 0; }
.gallery .media { box-shadow: var(--shadow-sm); }
.gallery figcaption { margin-top: 8px; font-size: 12.5px; color: var(--muted); }

.feature-list { margin: 24px 0; }
.feature {
  display: grid; grid-template-columns: 32px 1fr; gap: 14px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.feature:first-child { border-top: 1px solid var(--line); }
.feature__icon {
  width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 9px; background: var(--accent-soft); color: var(--accent); margin-top: 2px;
}
.feature__icon svg { width: 15px; height: 15px; }
.feature h3 { font-size: 15.5px; margin: 0 0 4px; }
.feature p { margin: 0; font-size: 14px; color: var(--muted); }

.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 28px 0; }
.metric {
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.metric__value { font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--accent); letter-spacing: -.02em; }
.metric__label { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.case-side { position: sticky; top: calc(var(--header-h) + 24px); }
.side-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 22px; margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.side-card h3 {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: .14em; color: var(--muted); font-weight: 600; margin-bottom: 14px;
}
.side-card ul { list-style: none; }
.side-card li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px;
}
.side-card li:last-child { border-bottom: 0; }
.side-card li span:last-child { color: var(--ink-soft); text-align: right; }
.side-card p { font-size: 13.5px; color: var(--muted); }
.side-card .btn { width: 100%; margin-top: 6px; }

.case-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.case-nav a {
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); transition: border-color .25s, transform .25s, box-shadow .25s;
}
.case-nav a:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.case-nav__dir { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.case-nav h3 { font-size: 16px; margin: 0; }
.case-nav a:last-child { text-align: right; }

/* ---------- анимация появления ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s cubic-bezier(.2,.7,.2,1), transform .65s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .07s; }
.reveal[data-delay="2"] { transition-delay: .14s; }
.reveal[data-delay="3"] { transition-delay: .21s; }
.reveal[data-delay="4"] { transition-delay: .28s; }

/* ---------- адаптив ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__media { max-width: 640px; }
  .sticker { right: 12px; bottom: 12px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 34px; }
  .step:nth-child(3n)::before { right: 0; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__media { max-width: 460px; }
  .contact { padding: 40px; }
  .contact__grid { grid-template-columns: 1fr; gap: 36px; }
  .case-layout { grid-template-columns: 1fr; gap: 40px; }
  .case-side { position: static; }
  .meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .container { padding-inline: 20px; }
  .nav { display: none; }
  .burger { display: inline-grid; }
  .header__tools .btn--sm { display: none; }

  .nav.is-open {
    display: flex; position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 20px 24px; background: var(--paper);
    border-bottom: 1px solid var(--line-2); box-shadow: var(--shadow);
  }
  .nav.is-open a { padding: 14px 16px; border-radius: 11px; font-size: 16px; }

  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 18px; border-left: 0; }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }

  .cards { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2n)::before { right: 0; }
  .principles { grid-template-columns: 1fr; }
  .contact { padding: 28px 22px; border-radius: 20px; }
  .cta-band { padding: 24px; }
  .cta-band .btn { width: 100%; }
  .case-nav { grid-template-columns: 1fr; }
  .case-nav a:last-child { text-align: left; }
  .metrics { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; }
  .faq__item p { padding-right: 0; }
  .toolbar { gap: 10px; }
  .search { max-width: none; flex-basis: 100%; }
  .result-count { margin-left: 0; }
}

@media (max-width: 480px) {
  .hero { padding-top: calc(var(--header-h) + 44px); }
  .hero__actions .btn { width: 100%; }
  .hero h1 br { display: none; }
  .process { grid-template-columns: 1fr; }
  .step::before { right: 0; }
  .meta-grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; }
  .stat { padding-left: 0 !important; border-left: 0 !important; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .sticker { position: static; margin-top: 14px; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .header, .footer, .bg-grid, .hero__media, .btn, .case-side, .toolbar, .pagination { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 20px 0; }
}

