/* RetailFactory — основная таблица стилей
   Шрифты лежат локально: сторонних запросов при загрузке нет. */

/* ---------- Шрифты ---------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrainsmono-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrainsmono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* ---------- Токены ---------- */
:root {
  --ink: #0D1117;
  --ink-2: #151B23;
  --ink-3: #1C242F;

  --text: #0D1117;
  --text-2: #3A4452;
  --muted: #5A6573;

  --line: #E4E8EE;
  --line-2: #D8DEE7;
  --mist: #F4F6F9;

  --accent: #2A51E8;
  --accent-dark: #1B3BBF;
  --accent-light: #7D9BFF;
  --accent-soft: #DCE4FF;

  --on-dark: #C3CCD9;
  --on-dark-muted: #9BA6B5;

  --warm: #FF8A3D;
  --warm-text: #C44300;

  --radius: 16px;
  --radius-sm: 12px;
  --wrap: 1240px;
  --gutter: 40px;

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #fff;
  color: var(--text);
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Раскладка ---------- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.sec { padding-block: 104px; }
.sec--sm { padding-block: 80px; }
.sec--dark { background: var(--ink); color: #fff; }
.sec--mist { background: var(--mist); border-block: 1px solid var(--line); }

.sec--dotted {
  background-color: var(--ink);
  background-image: radial-gradient(#202A38 1.1px, transparent 1.1px);
  background-size: 34px 34px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.row--lg { gap: 56px; }
.row--sm { gap: 20px; }
.row--center { align-items: center; }
.row--end { align-items: flex-end; }
.row--between { justify-content: space-between; }

/* ---------- Типографика ---------- */
h1, .h1 {
  font-size: clamp(34px, 3.9vw, 56px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.025em;
}
h2, .h2 {
  font-size: clamp(27px, 3.1vw, 44px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.022em;
}
.h2--sm { font-size: clamp(25px, 2.6vw, 36px); }
h3, .h3 {
  font-size: 21px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.012em;
}
.h3--lg { font-size: clamp(22px, 2vw, 28px); font-weight: 800; letter-spacing: -0.018em; }

.lead {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--muted);
}
.sec--dark .lead { color: var(--on-dark-muted); }

.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.sec--dark .label { color: var(--accent-light); }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.sec--dark .mono { color: var(--on-dark-muted); }

.measure { max-width: 760px; }
.measure--sm { max-width: 600px; }

.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.mt-26 { margin-top: 26px; }
.mt-36 { margin-top: 36px; }
.mt-48 { margin-top: 48px; }
.mt-56 { margin-top: 56px; }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 17, 23, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  padding-block: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  flex: 0 0 auto;
}
.logo:hover { color: #fff; }
.logo__mark {
  width: 32px; height: 32px;
  border: 1.5px solid var(--accent-light);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav a {
  color: var(--on-dark);
  font-size: 15px;
  font-weight: 500;
  padding-block: 4px;
}
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] {
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--accent-light);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}
.burger {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  width: 18px; height: 1.5px;
  background: #fff;
  position: relative;
}
.burger span::before,
.burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px; height: 1.5px;
  background: #fff;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost-dark { color: #fff; border-color: rgba(255, 255, 255, 0.24); }
.btn--ghost-dark:hover { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn--ghost { color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { color: var(--text); border-color: var(--muted); }
.btn--light { background: #fff; color: var(--accent-dark); font-weight: 700; }
.btn--light:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn--sm { min-height: 44px; padding: 12px 18px; font-size: 15px; }
.btn--block { width: 100%; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  padding-block: 10px;
}
.sec--dark .arrow-link { color: var(--accent-light); }
.sec--dark .arrow-link:hover { color: #fff; }

/* ---------- Первый экран ---------- */
.hero__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
}
.hero__text { flex: 1.05 1 440px; min-width: 0; }
.hero__visual { flex: 1 1 420px; min-width: 0; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 80px;
}
.stat {
  flex: 1 1 240px;
  min-width: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 22px;
}
.stat__num {
  font-size: clamp(30px, 2.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}
.stat__num--warm { color: var(--warm); }
.stat__cap {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

/* ---------- Окно браузера со скриншотом ---------- */
.frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px rgba(13, 17, 23, 0.12);
  background: #fff;
}
.frame__bar {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding-inline: 14px;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}
.frame__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line-2);
  flex: 0 0 auto;
}
.frame__url {
  margin-left: 10px;
  flex: 1;
  min-width: 0;
  height: 21px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding-inline: 9px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
}
.frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.frame--dark {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  background: var(--ink-2);
}
.frame--dark .frame__bar {
  background: var(--ink-3);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.frame--dark .frame__dot { background: rgba(255, 255, 255, 0.2); }
.frame--dark .frame__url {
  background: var(--ink);
  border-color: transparent;
  color: var(--on-dark-muted);
}

/* ---------- Карточки ---------- */
.card {
  flex: 1 1 300px;
  min-width: 0;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.card__num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--accent); }
.card p { margin-top: 12px; font-size: 16px; color: var(--muted); }
.card h3 { margin-top: 18px; }

.feature {
  flex: 1 1 420px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px;
}
.feature__icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature h3 { margin-top: 24px; font-size: 22px; }
.feature > p { margin-top: 12px; font-size: 16px; color: var(--muted); }
.feature ul { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.feature li { font-size: 15px; color: var(--text-2); display: flex; gap: 10px; }
.feature li::before { content: '—'; color: var(--accent); flex: 0 0 auto; }

/* ---------- Блок услуги на отдельной странице ---------- */
.svc { display: flex; flex-wrap: wrap; gap: 56px; }
.svc__info { flex: 1 1 360px; min-width: 0; }
.svc__cards { flex: 1.25 1 420px; min-width: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.svc__head { display: flex; align-items: center; gap: 16px; }
.svc__num { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; color: var(--muted); }
.feature__icon--lg { width: 52px; height: 52px; border-radius: 14px; }

.subcard {
  flex: 1 1 260px;
  min-width: 0;
  background: var(--mist);
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 26px;
}
.sec--mist .subcard { background: #fff; border-color: var(--line); }
.subcard h3 { font-size: 17px; }
.subcard p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--on-dark);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 9px 13px;
}

/* ---------- Кейсы ---------- */
.case {
  flex: 1 1 240px;
  min-width: 0;
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.case--featured { border-color: rgba(125, 155, 255, 0.35); }
.case > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}
.case__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.case__name { font-size: 20px; font-weight: 700; color: #fff; }
.case__niche { margin-top: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--on-dark-muted); }
.case__niche--warm { color: var(--warm); }
.case__text { font-size: 15px; line-height: 1.6; color: var(--on-dark); }
.case__tags { margin-top: auto; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2);
  background: var(--mist);
  border-radius: 6px;
  padding: 7px 10px;
}
.tag--dark {
  color: var(--on-dark-muted);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* Развёрнутый кейс на отдельной странице */
.case-row { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.case-row__info { flex: 1 1 360px; min-width: 0; }
.case-row__shot { flex: 1.2 1 420px; min-width: 0; }
.case-row__title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }

.fact { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; }
.fact:first-of-type { margin-top: 28px; }
.fact__key { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fact__key--result { color: var(--warm-text); }
.fact p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.sec--mist .fact { border-top-color: var(--line-2); }
.sec--dark .fact { border-top-color: rgba(255, 255, 255, 0.14); }
.sec--dark .fact__key { color: var(--on-dark-muted); }
.sec--dark .fact__key--result { color: var(--warm); }
.sec--dark .fact p { color: var(--on-dark); }

/* ---------- Отзывы ---------- */
.quote {
  position: relative;
  flex: 1 1 300px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 28px;
  overflow: hidden;
}
/* Крупная кавычка — фоновая текстура карточки, а не читаемый текст */
.quote::before {
  content: '“';
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 152px;
  line-height: 1;
  color: var(--line);
  pointer-events: none;
}
.quote p,
.quote footer { position: relative; z-index: 1; }
.quote p { font-size: 17px; line-height: 1.55; }
.quote footer { margin-top: 20px; font-size: 15px; font-weight: 600; }

/* ---------- Партнёры ---------- */
.partners { text-align: center; }
.partners__list {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px 0;
}
.partner {
  padding-inline: 28px;
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--muted);
}
.partner + .partner { border-left: 1px solid var(--line-2); }

/* ---------- Таймлайн принципов ---------- */
.tl { display: flex; flex-direction: column; }
.tl__item { display: flex; flex-wrap: wrap; gap: 32px; }
.tl__rail {
  flex: 0 0 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.tl__num {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 17px;
  flex: 0 0 auto;
}
.tl__num--accent { background: var(--accent); }
.tl__line { flex: 1; width: 1px; background: var(--line); min-height: 32px; }
.tl__body { flex: 1 1 420px; min-width: 0; padding-bottom: 44px; }
.tl__body p { margin-top: 16px; font-size: 17px; line-height: 1.65; color: var(--text-2); max-width: 760px; }

/* ---------- Сравнение подходов ---------- */
.compare {
  flex: 1 1 320px;
  min-width: 0;
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 32px;
}
.compare--ours { border-color: rgba(125, 155, 255, 0.35); }
.compare__title { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); }
.compare--ours .compare__title { color: var(--accent-light); }
.compare ul { margin-top: 24px; display: flex; flex-direction: column; gap: 18px; }
.compare li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; line-height: 1.55; color: var(--on-dark-muted); }
.compare--ours li { color: #fff; }
.compare svg { flex: 0 0 auto; margin-top: 2px; }

/* ---------- Схема интеграций ---------- */
.diagram { display: flex; flex-wrap: wrap; gap: 0; align-items: center; }
.diagram__col { flex: 1 1 230px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.diagram__link {
  flex: 0 1 72px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 16px;
}
.diagram__link span { display: block; width: 100%; height: 1px; background: #C9D1DB; }
.node {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  background: #fff;
}
.node__kind { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); }
.node__name { margin-top: 6px; font-size: 16px; font-weight: 700; }
.node--center {
  flex: 1.15 1 280px;
  min-width: 0;
  background: var(--ink);
  border: none;
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}
.node--center .logo__mark { display: inline-flex; width: 44px; height: 44px; }
.node--center p:first-of-type { margin-top: 18px; font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.node--center p:last-of-type { margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--on-dark-muted); }

/* ---------- Шаги работы ---------- */
.step {
  flex: 1 1 260px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 26px;
}
.step--last { border-color: rgba(125, 155, 255, 0.35); }
.step__num {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: rgba(125, 155, 255, 0.14);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 14px;
}
.step--last .step__num { background: var(--accent); color: #fff; }
.step h3 { margin-top: 20px; font-size: 17px; color: #fff; }
.step p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--on-dark-muted); }

/* ---------- Форма ---------- */
.form {
  flex: 1.3 1 460px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.field { display: flex; flex-direction: column; gap: 8px; flex: 1 1 200px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.field label span { font-weight: 500; color: var(--muted); }
.field input,
.field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  padding: 13px 14px;
  width: 100%;
}
.field input { height: 50px; }
.field textarea { line-height: 1.5; resize: vertical; min-height: 130px; }
.field input::placeholder,
.field textarea::placeholder { color: #9AA4B2; }
.form__note { font-size: 13px; line-height: 1.5; color: var(--muted); }
.form__status { font-size: 15px; font-weight: 600; color: var(--accent-dark); }

.contact-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  color: var(--text);
}
.contact-card:hover { color: var(--text); border-color: var(--line-2); }
.contact-card__icon {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-card__kind { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact-card__value { display: block; margin-top: 8px; font-size: 19px; font-weight: 700; overflow-wrap: break-word; }

/* ---------- Лента проектов ---------- */
.proj { flex: 1 1 240px; min-width: 0; display: block; color: var(--muted); }
.proj img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.proj span { display: block; margin-top: 12px; font-family: var(--mono); font-size: 12px; }
.proj:hover { color: var(--text-2); }

/* ---------- Призыв к действию ---------- */
.cta {
  border-radius: 24px;
  padding: 64px 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}
.cta--blue { background: var(--accent); color: #fff; }
.cta--dark { background: var(--ink); color: #fff; }
.cta__text { flex: 1.4 1 420px; min-width: 0; }
.cta__text p { margin-top: 18px; font-size: 17px; line-height: 1.6; max-width: 580px; }
.cta--blue .cta__text p { color: var(--accent-soft); }
.cta--dark .cta__text p { color: var(--on-dark-muted); }
.cta__actions { flex: 1 1 250px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }

/* ---------- Подвал ---------- */
.footer { background: var(--ink); color: #fff; padding: 72px 0 40px; }
.footer__about { flex: 1.4 1 300px; min-width: 0; }
.footer__about p { margin-top: 18px; font-size: 15px; line-height: 1.6; color: var(--on-dark-muted); max-width: 320px; }
.footer__col { flex: 1 1 180px; min-width: 0; }
.footer__head { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.footer__col ul { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.footer__col a { color: var(--on-dark); font-size: 15px; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}
.footer__bottom p { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- Движение ----------
   Всё лёгкое и короткое: 0.18–0.28s на реакции, 0.55s на появление.
   Блок @media (prefers-reduced-motion) в конце файла гасит это целиком,
   а класс .js-anim вешает инлайновый скрипт в <head> — без JS контент
   виден сразу и никогда не остаётся спрятанным. */

.btn {
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }

.arrow-link svg { transition: transform 0.22s cubic-bezier(0.22, 0.8, 0.26, 1); }
.arrow-link:hover svg { transform: translateX(5px); }

.nav a { position: relative; }
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1.5px;
  background: var(--accent-light);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s cubic-bezier(0.22, 0.8, 0.26, 1);
}
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"]::after { content: none; }

.logo__mark, .footer__col a { transition: color 0.18s ease, border-color 0.18s ease; }

.card, .feature, .subcard, .quote, .contact-card, .node, .step, .compare {
  transition: transform 0.26s cubic-bezier(0.22, 0.8, 0.26, 1), box-shadow 0.26s ease, border-color 0.2s ease;
}
.card:hover, .feature:hover, .subcard:hover, .quote:hover, .contact-card:hover, .node:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(13, 17, 23, 0.08);
  border-color: var(--line-2);
}

.partner, .quote::before { transition: color 0.26s ease; }
.partner:hover { color: var(--text); }
.quote:hover::before { color: var(--line-2); }

a.step:hover {
  transform: translateY(-3px);
  border-color: rgba(125, 155, 255, 0.45);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

.case { transition: transform 0.26s cubic-bezier(0.22, 0.8, 0.26, 1), border-color 0.2s ease; }
.case:hover { transform: translateY(-4px); border-color: rgba(125, 155, 255, 0.45); }
.case > img { transition: transform 0.5s cubic-bezier(0.22, 0.8, 0.26, 1); }
.case:hover > img { transform: scale(1.035); }

.proj img { transition: transform 0.26s cubic-bezier(0.22, 0.8, 0.26, 1), box-shadow 0.26s ease; }
.proj:hover img { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(13, 17, 23, 0.12); }

.field input, .field textarea { transition: border-color 0.18s ease, box-shadow 0.18s ease; }
.field input:hover, .field textarea:hover { border-color: var(--muted); }

.header { transition: box-shadow 0.25s ease; }
.header.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32); }

.burger span, .burger span::before, .burger span::after {
  transition: transform 0.22s ease, background-color 0.18s ease, top 0.22s ease;
}
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Появление блоков при прокрутке */
.js-anim .hero__text,
.js-anim .hero__visual,
.js-anim .stat,
.js-anim .card,
.js-anim .feature,
.js-anim .case,
.js-anim .quote,
.js-anim .partner,
.js-anim .subcard,
.js-anim .step,
.js-anim .proj,
.js-anim .compare,
.js-anim .tl__item,
.js-anim .node,
.js-anim .node--center,
.js-anim .case-row__info,
.js-anim .case-row__shot,
.js-anim .cta {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s cubic-bezier(0.22, 0.8, 0.26, 1), transform 0.55s cubic-bezier(0.22, 0.8, 0.26, 1);
}
.js-anim .is-in { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  :root { --gutter: 24px; }

  .header { position: relative; }
  .header__inner { gap: 16px; }
  .header__actions { order: 2; margin-left: auto; }
  .header__actions .btn { display: none; }
  .burger { display: flex; order: 3; }

  .nav {
    order: 4;
    display: none;
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
  }
  .nav.is-open { display: flex; animation: nav-in 0.22s cubic-bezier(0.22, 0.8, 0.26, 1) both; }
  .nav a::after { content: none; }
  .nav a {
    padding: 15px 2px;
    font-size: 17px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .nav a:last-child { border-bottom: none; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--accent-light); }

  .sec { padding-block: 72px; }
  .sec--sm { padding-block: 56px; }
  .row--lg { gap: 36px; }
  .stats { margin-top: 48px; }
  .cta { padding: 44px 28px; }
  .form { padding: 28px; }
  .card, .feature { padding: 26px; }
  .tl__item { gap: 20px; }
  .tl__body { padding-bottom: 32px; }
  .diagram__link { flex-basis: 100%; height: 32px; padding: 0; }
  .diagram__link span { width: 1px; height: 100%; margin-inline: auto; }

  /* При переносе строк вертикальные разделители висели бы в воздухе */
  .partners__list { gap: 14px 26px; }
  .partner { padding-inline: 0; }
  .partner + .partner { border-left: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .footer { padding-top: 56px; }
  .footer__bottom { margin-top: 36px; }
  .cta__actions .btn { width: 100%; }
  .tl__rail { flex-basis: 56px; }
  .tl__num { width: 48px; height: 48px; font-size: 15px; }
}

@keyframes nav-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Печать ---------- */
@media print {
  .header, .burger, .cta__actions, .skip-link { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .sec--dark, .cta--dark, .cta--blue, .footer { background: #fff !important; color: #000 !important; }
}
