/* ══════════════════════════════════════════════════
   ЧЁРНЫЙ СТИЛЬ
   Один шрифт — Manrope. Один цвет букв — белый.
   Иерархия строится размером, весом и воздухом,
   а не цветом: цвет текста везде одинаковый.
   ══════════════════════════════════════════════════ */

:root {
  --black: #000000;
  --white: #ffffff;
  --line: rgba(255, 255, 255, 0.16);
  --line-soft: rgba(255, 255, 255, 0.08);
  --font: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --shell: 1360px;
  --pad: 40px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--black); }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* зерно: тонкая плёнка поверх фона — даёт «дорогую» текстуру */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("../img/grain.svg");
  background-size: 240px 240px;
  opacity: 0.035;
  mix-blend-mode: screen;
}
.header, main, .footer { position: relative; z-index: 2; }

/* всё наследует один цвет — без исключений */
h1, h2, h3, p, a, span, i, b, li { color: var(--white); font-family: var(--font); }

h1, h2, h3 { font-weight: 800; line-height: 0.95; letter-spacing: -0.03em; }

a { text-decoration: none; }
i { font-style: normal; }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ─────────── Шапка ─────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 1px solid var(--line-soft);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 92px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--white);
}
/* Логотип — готовая надпись из макета, а не набор шрифтом:
   так начертание совпадает буквально. */
.logo__img {
  display: block;
  width: auto;
  height: 68px;
  flex-shrink: 0;
}
.nav { display: flex; gap: 34px; margin-left: auto; margin-right: 8px; }
.nav a {
  font-size: 15px;
  font-weight: 500;
  opacity: 0.62;
  transition: opacity 0.2s;
}
.nav a:hover { opacity: 1; }

.pill {
  border: 1px solid var(--white);
  border-radius: 100px;
  padding: 11px 22px;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s;
}
.pill i { font-size: 0.9em; }
.pill:hover { background: var(--white); color: var(--black); }
.pill:hover i { color: var(--black); }

.burger { display: none; }

/* ─────────── Хиро ─────────── */
.hero { padding: 76px 0 60px; }
.hero__kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 40px;
}
.hero__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 56px;
  align-items: center;
  margin-bottom: 56px;
}
.hero__title {
  font-size: clamp(31px, 5.2vw, 74px);
  text-transform: uppercase;
  line-height: 1;
}
.hero__title .line { display: block; }
.hero__mark {
  width: 100%;
  height: auto;
  justify-self: end;
}
.hero__bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 44px;
  align-items: end;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.hero__sub {
  font-size: 17px;
  max-width: 48ch;
  opacity: 0.68;
}
.hero__cta { text-align: right; }
.hero__note { font-size: 13px; opacity: 0.45; margin-top: 12px; }

.btn {
  display: inline-block;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--white);
  border-radius: 100px;
  padding: 16px 36px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: background 0.25s, color 0.25s;
}
.btn i { color: var(--black); transition: color 0.25s; }
.btn:hover { background: transparent; color: var(--white); }
.btn:hover i { color: var(--white); }
.btn--big { padding: 19px 46px; font-size: 16.5px; }

/* ─────────── Тикер ─────────── */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  overflow: hidden;
}
.ticker__row {
  display: flex;
  width: max-content;
  animation: slide 42s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker__row { animation-play-state: paused; }
/* разделителей нет — слова разводит воздух */
.ticker__group {
  display: flex;
  gap: 58px;
  padding-right: 58px;
}
.ticker__group i {
  font-size: clamp(15px, 1.6vw, 21px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }   /* ровно 3 копии из 6 — стык незаметен */
}
/* при системном «уменьшении движения» не останавливаем, а слегка замедляем */
@media (prefers-reduced-motion: reduce) {
  .ticker__row { animation-duration: 60s; }
}

/* ─────────── Карта в первом экране ─────────── */
/* Стрелка — компас: смотрит туда, где курсор.
   Города и расстояния взяты по реальным координатам. */
.hero__map {
  width: 100%;
  max-width: 440px;
  height: auto;
  overflow: visible;
  justify-self: end;
}
.map__rings circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.10);
  stroke-width: 1;
}
.map__spokes line {
  stroke: rgba(255, 255, 255, 0.13);
  stroke-width: 1;
  stroke-dasharray: 2 5;
}
.map__cities circle {
  fill: rgba(255, 255, 255, 0.55);
  transition: fill 0.25s, r 0.25s;
}
.map__scale {
  fill: rgba(255, 255, 255, 0.28);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
}
.map__cities text {
  fill: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: fill 0.25s;
}
.map__city.is-quiet text { opacity: 0; transition: opacity 0.2s; }
.map__city.is-quiet.is-near text { opacity: 1; }
.map__city.is-near circle { fill: var(--white); r: 4.6; }
.map__city.is-near text { fill: var(--white); }

.map__needle line {
  stroke: var(--white);
  stroke-width: 1.4;
}
.map__needle polygon { fill: var(--white); }
.map__needle {
  transform: rotate(0deg);
  transition: transform 0.45s cubic-bezier(0.22, 0.75, 0.25, 1);
}

.map__base circle { fill: var(--white); }
.map__pulse {
  fill: none;
  stroke: rgba(255, 255, 255, 0.42);
  stroke-width: 1;
}
.map__base text {
  fill: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.map__read {
  fill: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.map__read-city { fill: var(--white); font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  /* стрелка следует за курсором мгновенно — это отклик на действие,
     а не украшательная анимация, поэтому её не выключаем, а только не сглаживаем */
  .map__needle { transition: none; }
}

/* ─────────── Блоки ─────────── */
.block { padding: 96px 0; }
.block__head { margin-bottom: 52px; }
.tag {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 18px;
}
.block__title {
  font-size: clamp(30px, 3.6vw, 52px);
  text-transform: uppercase;
}

/* ритм без смены цвета букв: фон чуть приподнят, текст остаётся белым */
.block--invert {
  background: #0b0b0b;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ─────────── Услуги: строки ─────────── */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 62px minmax(220px, 1fr) 1.4fr;
  gap: 24px;
  align-items: center;
  padding: 26px 10px;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s ease, background 0.3s ease;
}
.row:hover { background: rgba(255, 255, 255, 0.05); padding-left: 22px; padding-right: 22px; }
.row__num { font-size: 12.5px; font-weight: 500; opacity: 0.4; }
.row__name {
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.row__desc { font-size: 14.5px; opacity: 0.55; }
/* без стрелки affordance даёт сама строка: подсветка и сдвиг на ховере */
.row:hover .row__name { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* ─────────── Связка «+» ─────────── */
.combo {
  margin-top: 64px;
  padding: 44px 0 0;
  border-top: 1px solid var(--line);
}
.combo__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
}
.combo span {
  font-size: clamp(19px, 2.2vw, 32px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.025em;
}
.combo b {
  font-size: clamp(16px, 1.7vw, 24px);
  font-weight: 400;
  opacity: 0.35;
}
.combo__note {
  max-width: 54ch;
  margin-top: 20px;
  font-size: 15px;
  opacity: 0.55;
}

/* ─────────── Шаги ─────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  padding: 34px 26px 40px 0;
  border-right: 1px solid var(--line);
}
.step:last-child { border-right: none; padding-right: 0; }
.step:not(:first-child) { padding-left: 26px; }
.step__num {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  opacity: 0.4;
  margin-bottom: 38px;
}
.step h3 {
  font-size: 20px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.step p { font-size: 14.5px; opacity: 0.62; }

/* два сценария после сдачи */
.after {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 46px;
}
.after__card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px 30px 34px;
}
.after__tag {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 20px;
}
.after__card h3 {
  font-size: clamp(19px, 1.9vw, 24px);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.after__card p { font-size: 14.5px; opacity: 0.6; }

.claim {
  margin-top: 68px;
  font-size: clamp(21px, 2.6vw, 38px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 1.08;
  max-width: 24ch;
}

/* ─────────── Кейсы ─────────── */
.works {
  display: grid;
  gap: 22px;
}

/* ── плитка кейса ── */
.work {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--black);
  transition: border-color 0.35s;
}
.work:hover { border-color: rgba(255, 255, 255, 0.32); }

.work__tile {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.work__tile:focus-visible { outline: 2px solid var(--white); outline-offset: -2px; }

.work__cover {
  display: block;
  position: relative;
  overflow: hidden;
  background: #050505;
}
.work__cover img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.001);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.work__tile:hover .work__cover img { transform: scale(1.03); }

/* строка под обложкой */
.work__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px 20px;
  border-top: 1px solid var(--line-soft);
}
.work__id { display: block; min-width: 0; }
.work__id b {
  display: block;
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.work__id i {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  opacity: 0.5;
}
.work__chip {
  flex: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 15px;
  opacity: 0.7;
  white-space: nowrap;
  transition: border-color 0.3s, opacity 0.3s;
}
.work__tile:hover .work__chip { border-color: var(--white); opacity: 1; }

/* ── окно кейса ── */
.work__modal {
  width: min(1060px, calc(100vw - 28px));
  max-height: calc(100dvh - 36px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: var(--black);
  color: var(--white);
  overflow: hidden auto;
  overscroll-behavior: contain;
}
.work__modal::backdrop { background: rgba(0, 0, 0, 0.8); }
.work__mbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 0 26px;
  background: var(--black);
  border-bottom: 1px solid var(--line-soft);
}
.work__mtitle {
  min-width: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  padding: 12px 0;
}
.work__mtitle i {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 400;
  font-style: normal;
  opacity: 0.5;
}
.work__close {
  flex: none;
  display: block;
  width: 56px;
  align-self: stretch;
  min-height: 56px;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line-soft);
  background: var(--black);
  cursor: pointer;
  transition: background 0.25s;
}
.work__close:hover { background: rgba(255, 255, 255, 0.08); }
.work__close:focus-visible { outline: 2px solid var(--white); outline-offset: -3px; }
.work__close span {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  margin: 0 auto;
}
.work__close span::before,
.work__close span::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  height: 1.4px;
  background: var(--white);
}
.work__close span::before { transform: rotate(45deg); }
.work__close span::after { transform: rotate(-45deg); }

.work__grid {
  display: grid;
  grid-template-columns: 1fr;
}
.work__main,
.work__side { padding: 30px 26px 34px; }
.work__side { border-top: 1px solid var(--line-soft); }

/* ── видео о проекте ── */
.work__video {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-bottom: 26px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  overflow: hidden;
  background: #050505;
}
.work__v {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050505;
}
.work__play {
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  background: rgba(0, 0, 0, 0.34);
  color: var(--white);
  font: inherit;
  cursor: pointer;
  transition: background 0.3s, opacity 0.25s;
}
.work__play:hover { background: rgba(0, 0, 0, 0.2); }
.work__play:focus-visible { outline: 2px solid var(--white); outline-offset: -4px; }
.work__play-mark {
  width: 62px;
  height: 62px;
  border: 1px solid var(--white);
  border-radius: 50%;
  position: relative;
  transition: background 0.3s;
}
/* треугольник — чистой геометрией, без картинок */
.work__play-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-42%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--white);
  transition: border-left-color 0.3s;
}
.work__play:hover .work__play-mark { background: var(--white); }
.work__play:hover .work__play-mark::after { border-left-color: var(--black); }
.work__play-txt {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}
.work__video.is-playing .work__play {
  opacity: 0;
  pointer-events: none;
}

.work__lede {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.5;
  opacity: 0.82;
  max-width: 52ch;
  margin-bottom: 26px;
}
.work__sub {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.42;
  margin-bottom: 14px;
}
.work__list { list-style: none; display: grid; gap: 9px; }
.work__list li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.5;
  opacity: 0.72;
  max-width: 50ch;
}
.work__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 9px;
  height: 1px;
  background: rgba(255, 255, 255, 0.42);
}

/* цифра результата */
.work__metric { margin-bottom: 28px; }
.work__metric b {
  display: block;
  font-size: clamp(46px, 6.4vw, 76px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.045em;
}
.work__metric b i { font-size: 0.5em; letter-spacing: -0.02em; }
.work__metric span {
  display: block;
  margin-top: 10px;
  font-size: 13.5px;
  opacity: 0.5;
  max-width: 24ch;
}
.work__note {
  border-left: 1px solid var(--line);
  padding-left: 16px;
  margin-bottom: 28px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.66;
  max-width: 44ch;
}
.work__note b {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 7px;
}
.work__result {
  font-size: 14.5px;
  line-height: 1.55;
  opacity: 0.72;
  max-width: 46ch;
  margin-bottom: 24px;
}
.work__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.work__tags li {
  font-size: 12px;
  letter-spacing: 0.02em;
  opacity: 0.62;
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  padding: 6px 13px;
}

/* ── строка «показать примеры лично» ── */
.works__cta {
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}
.works__cta p { font-size: 14.5px; opacity: 0.6; max-width: 62ch; }
.works__cta p b {
  display: block;
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 800;
  letter-spacing: -0.02em;
  opacity: 1;
  margin-bottom: 6px;
}
.works__cta-btn {
  flex: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 14px 26px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.works__cta-btn:hover { background: var(--white); color: var(--black); border-color: var(--white); }

@media (max-width: 560px) {
  /* обложка — готовый баннер с вшитым текстом: на узком экране
     он мельчает до нечитаемого, поэтому кадрируем к левой части */
  .work__cover img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: left center;
  }
  .work__bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 20px 22px;
  }
  .work__main,
  .work__side { padding: 26px 20px 30px; }
  .work__metric b { font-size: 54px; }
  .work__modal {
    width: 100vw;
    max-width: 100vw;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .work__mbar { padding-left: 20px; }
  .work__bar { padding: 16px 18px 18px; }
}

@media (min-width: 900px) {
  .works { grid-template-columns: repeat(2, 1fr); }
  .work__grid { grid-template-columns: 1.32fr 1fr; }
  .work__main { padding: 38px 20px 46px 34px; }
  .work__side {
    padding: 38px 34px 46px 34px;
    border-top: 0;
    border-left: 1px solid var(--line-soft);
  }
}

/* ─────────── Финал ─────────── */
.final {
  padding: 108px 0 116px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.final .tag { margin-bottom: 22px; }
.final__title {
  font-size: clamp(32px, 4.4vw, 64px);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.final__sub {
  font-size: 16.5px;
  opacity: 0.6;
  max-width: 56ch;
  margin: 0 auto 40px;
}
.final__note { font-size: 13px; opacity: 0.42; margin-top: 18px; }

/* ─────────── Юридические страницы ─────────── */
.doc { padding: 96px 0 120px; }
.doc__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 18px 0 14px;
  text-transform: uppercase;
  max-width: 18ch;
}
.doc__meta {
  font-family: inherit;
  font-size: 13px;
  opacity: 0.45;
  margin-bottom: 46px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.doc h2 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 38px 0 12px;
}
.doc p {
  font-size: 15.5px;
  line-height: 1.65;
  opacity: 0.72;
  max-width: 64ch;
  margin-bottom: 12px;
}
.doc__todo {
  border-left: 2px solid rgba(255, 150, 130, 0.55);
  padding: 10px 0 10px 16px;
  opacity: 0.6;
  font-size: 14px;
}
.doc__back {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.doc__back a {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}
.doc__back a:hover { border-bottom-color: var(--white); }

/* строка реквизитов: держится тихо, но на месте */
.footer__legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  opacity: 0.38;
}
.footer__legal a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, opacity 0.25s;
}
.footer__legal a:hover { border-bottom-color: currentColor; }

/* ─────────── Контакты в финале ─────────── */
.contacts {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 56px;
  margin: 40px 0 0;
  padding: 0;
}
.contacts li { display: block; text-align: center; }
.contacts span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.42;
  margin-bottom: 8px;
}
.contacts a {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.015em;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: border-color 0.25s;
}
.contacts a:hover { border-bottom-color: var(--white); }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .contacts { gap: 20px 32px; }
  .contacts a { font-size: 17px; }
  .footer__links { justify-content: flex-start; }
}

/* ─────────── Форма заявки ─────────── */
.lead {
  max-width: 720px;
  margin: 58px auto 0;
  padding-top: 44px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.lead__or {
  text-align: center;
  font-size: 14px;
  opacity: 0.55;
  margin-bottom: 30px;
}
.lead__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 22px;
}
.lead__field { display: block; }
/* ловушка для ботов: человек её не видит и не может сфокусировать */
.lead__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead__field--wide,
.lead__agree,
.lead__submit,
.lead__status { grid-column: 1 / -1; }
.lead__field > span {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 10px;
}
.lead__field > span i {
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.06em;
  opacity: 0.7;
  text-transform: none;
}
.lead__field input {
  width: 100%;
  padding: 14px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--white);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.25s;
}
.lead__field input::placeholder { color: rgba(255, 255, 255, 0.26); }
.lead__field input:focus {
  outline: none;
  border-bottom-color: var(--white);
}
.lead__field input:user-invalid { border-bottom-color: rgba(255, 120, 100, 0.7); }

.lead__agree {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  opacity: 0.62;
  cursor: pointer;
  margin-top: 4px;
}
.lead__agree input {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: #fff;
}
.lead__agree a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

.lead__submit {
  justify-self: start;
  margin-top: 6px;
  cursor: pointer;
}
.lead__submit[disabled] { opacity: 0.55; cursor: default; }

.lead__status {
  margin: 0;
  min-height: 22px;
  font-size: 14px;
  line-height: 1.5;
}
.lead__status.is-ok { color: var(--white); }
.lead__status.is-err { color: rgba(255, 150, 130, 0.9); }

@media (max-width: 640px) {
  .lead { margin-top: 44px; padding-top: 34px; }
  .lead__form { grid-template-columns: 1fr; gap: 18px; }
  .lead__submit { justify-self: stretch; }
}

/* ─────────── Подвал ─────────── */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer p { font-size: 14px; opacity: 0.5; }
.footer a { font-size: 15px; font-weight: 500; }
.footer a:hover { opacity: 0.65; }

/* ─────────── Появление ─────────── */
.js .block, .js .final {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.js .in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .block, .js .final { opacity: 1; transform: none; transition: none; }
}

/* ─────────── Адаптив ─────────── */
@media (max-width: 1080px) {
  :root { --pad: 28px; }
  .hero__main { grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { padding: 32px 24px 36px 0; }
  .step:nth-child(2n) { border-right: none; padding-right: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 32px; }
  .step:not(:first-child) { padding-left: 0; }
  .step:nth-child(2n) { padding-left: 24px; }
}

@media (max-width: 900px) {
  .hero__main { grid-template-columns: 1fr; gap: 34px; }
  .hero__mark { width: 200px; justify-self: start; opacity: 0.9; }
  /* карта на узком экране: подписи заданы в единицах viewBox,
     поэтому при уменьшении их надо увеличивать, иначе не прочесть */
  .hero__map { width: 330px; justify-self: start; }
  .map__cities text { font-size: 19px; }
  .map__base text { font-size: 15px; }
  .map__read { font-size: 15px; }
}

@media (max-width: 860px) {
  .row {
    grid-template-columns: 44px 1fr;
    gap: 14px;
    align-items: start;
    padding: 22px 8px;
  }
  .row__desc { grid-column: 2 / 3; font-size: 14px; margin-top: 7px; }
  .cases { grid-template-columns: 1fr; }
  .case__art { width: 40%; }
}

@media (max-width: 720px) {
  :root { --pad: 20px; }
  body { font-size: 16px; }

  .nav {
    position: fixed;
    inset: 92px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--black);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 26px;
    margin: 0;
    display: none;
  }
  .nav a { padding: 15px 0; font-size: 17px; opacity: 1; }
  .nav-open .nav { display: flex; }
  .header .pill { display: none; }

  .burger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
  }
  .burger span {
    width: 26px;
    height: 2px;
    background: var(--white);
    transition: transform 0.25s;
  }
  .nav-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .hero { padding: 52px 0 46px; }
  .hero__kicker { margin-bottom: 28px; letter-spacing: 0.12em; }
  .hero__main { margin-bottom: 40px; gap: 28px; }
  .hero__mark { width: 156px; }
  .hero__map { width: 100%; max-width: 340px; }
  .map__cities text { font-size: 21px; }
  .map__base text { font-size: 17px; }
  .map__read { font-size: 17px; }
  .map__scale { font-size: 15px; }
  .hero__bottom { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .hero__sub { font-size: 16px; }
  .hero__cta { text-align: left; }
  .btn { display: block; text-align: center; padding: 16px 28px; }

  .block { padding: 68px 0; }
  .block__head { margin-bottom: 36px; }
  .combo { margin-top: 46px; padding-top: 34px; }
  .combo__row { gap: 10px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step:nth-child(2n) {
    border-right: none;
    padding: 28px 0 30px;
    border-top: 1px solid var(--line);
  }
  .step:first-child { border-top: none; }
  .step__num { margin-bottom: 20px; }
  .step h3 { font-size: 19px; }
  .claim { margin-top: 48px; }
  .after { grid-template-columns: 1fr; gap: 16px; margin-top: 34px; }
  .after__card { padding: 24px 22px 26px; }
  .ticker__group { gap: 40px; padding-right: 40px; }

  .case { padding: 28px 22px 32px; }
  .case__art { width: 46%; right: 10px; top: 10px; }
  .case__tag { margin-bottom: 52px; }

  .final { padding: 72px 0 78px; }
  .final__sub { font-size: 15.5px; margin-bottom: 32px; }
  .btn--big { padding: 17px 32px; font-size: 15.5px; }

  .footer__inner { flex-direction: column; text-align: center; gap: 16px; }
  /* на узких экранах длинное название переносим в две строки */
  .logo__img { height: 52px; }
}
