/* ==========================================================================
   FLAT-EX — одностраничный сайт по макету Figma
   Ровно два фиксированных состояния, без промежуточного масштабирования:
     - десктоп (от 768px)  — карточка 1230px, координаты и кегли из
       фрейма Desktop макета;
     - мобильная (до 767px) — карточка 375px, координаты и кегли из
       фрейма Mob макета.
   Если окно браузера уже 1230px, но шире 767px (переходная ширина,
   которой нет в макете), появляется горизонтальная прокрутка —
   так и должно быть: дизайн не «резиновый», он не подстраивается.
   ========================================================================== */

:root {
  --teal:        #298990;
  --teal-dark:   #0A6D74;
  --teal-mid:    #4E9BA1;
  --ink:         #000000;
  --card-bg:     #ECECEC;
  --page-bg:     #FFFFFF;

  --title-from:  #234873;
  --title-to:    #2DA7AB;

  --card-radius: 20px;
  --card-w:      1230px;
  --nav-w:       1230px;
  --nav-h:       82px;

  --pad-x: 50px;
  --pad-y: 54px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  /* Страница фиксированной ширины: карточка 1230px + поля секции по 24px.
     Без этого в узком окне (например, телефон в горизонтальной ориентации)
     блоки во всю ширину — шапка и подвал — получают ширину экрана, а их
     содержимое шире; тогда фон шапки обрывается и кнопка справа висит
     без белой подложки. */
  min-width: calc(var(--card-w) + 48px);
  background: var(--page-bg);
  color: var(--ink);
  font-family: 'Geologica', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 300;
  line-height: 1.35;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

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

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

/* ==========================================================================
   Верхнее меню — прилипает к верху страницы.
   position: sticky (а не fixed), чтобы шапка не «отклеивалась» от контента,
   если карточка 1230px не помещается в узкое окно и появляется
   горизонтальная прокрутка — шапка едет вместе со страницей.
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.nav.is-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.09);
  background: rgba(255, 255, 255, 0.97);
}

.nav__inner {
  width: var(--nav-w);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__logo { flex: none; line-height: 0; }
.nav__logo img { width: 150px; height: auto; }

.nav__menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__list a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 0;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav__list a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav__list a:hover { color: var(--teal); }
.nav__list a:hover::after,
.nav__list a.is-active::after { transform: scaleX(1); }
.nav__list a.is-active { color: var(--teal-dark); }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  padding: 13px 26px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn--primary {
  background: linear-gradient(115deg, var(--title-from), var(--title-to));
  color: #fff;
  box-shadow: 0 6px 18px rgba(41, 137, 144, 0.32);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(41, 137, 144, 0.42);
}

.btn--primary:active { transform: translateY(0); }

/* Градиент и направление — как у фигуры в главном блоке.
   Светлый персиковый край фигуры (#F2D2A9) на кнопке не используем:
   белый текст на нём даёт контраст 1.9:1 и не читается. */
.btn--accent {
  background: linear-gradient(242deg, #E77C8E -60%, #DA1C6F 40%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(218, 28, 111, 0.28);
}

.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(218, 28, 111, 0.38);
}

.btn--accent:active { transform: translateY(0); }

/* бургер — виден только в мобильном состоянии, см. медиа-блок ниже */
.nav__burger {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.nav__burger span {
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 3px;
  background: var(--teal-dark);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ==========================================================================
   Секции-карточки — фиксированная десктопная карточка 1230px
   ========================================================================== */

.section {
  padding: 0 24px 48px;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

.section:last-of-type { padding-bottom: 72px; }

.card {
  position: relative;
  width: var(--card-w);
  height: 677px;      /* строго, не min-height — иначе .card__body{height:100%}
                          не может выровняться на карточку короче контента,
                          и элементы с bottom:Npx (например .hero__cta)
                          позиционируются не туда */
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: var(--card-radius);
  overflow: hidden;
  isolation: isolate;
}

/* в блоке «Сотрудничество» есть форма, которой нет в макете —
   контента больше, чем в остальных карточках, поэтому именно тут
   высота не жёсткая, а минимальная */
#cooperation .card { height: auto; min-height: 677px; }

.card__body {
  position: relative;
  z-index: 2;
  padding: var(--pad-y) var(--pad-x);
  height: 100%;
}

/* декоративные иллюстрации */
.art {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.art img { position: absolute; max-width: none; }

/* принудительный перенос строки только в мобильной версии:
   в десктопной этот <br> отключён и строка идёт сплошной */
.br-mobile { display: none; }

/* цельный слой иллюстраций, выгруженный из макета вместе с масками */
.art-bg {
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
}

/* мобильные иллюстрации по умолчанию скрыты — включаются только
   в мобильном состоянии (см. медиа-блок ниже); без этого правила
   они рендерились непозиционированными поверх десктопной версии */
.art-bg-m,
.m-cloud1, .m-cloud2, .m-dashdot, .m-peak-sm, .m-peak-lg,
.m-how-arrows, .m-how-city {
  display: none;
}

/* ==========================================================================
   Заголовки с градиентом и белой «тенью»-копией
   ========================================================================== */

.title {
  position: relative;
  margin: 0;
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.01em;
  font-size: 119px;
  background: linear-gradient(122deg, var(--title-from) 0%, var(--title-to) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
  max-width: 100%;
}

/* белая копия заголовка со смещением — как в макете */
.title::before {
  content: attr(data-text);
  position: absolute;
  left: 0.055em;
  top: 0.055em;
  width: 100%;
  z-index: -1;
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
}

.title--hero {
  font-size: 88px;
  line-height: 0.96;
  width: min(100%, 8.4em);
}

.title--about {
  font-size: 246px;
  line-height: 0.75;
  width: min(100%, 2.2em);
}

/* ==========================================================================
   1. Главный блок
   ========================================================================== */

.hero__left { padding-top: 29px; padding-left: 16px; }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 377px; gap: 0; }

.hero__grid .benefits {
  margin-top: 14px;
  padding-top: 0;
  display: grid;
  grid-template-rows: 164px 164px auto;
  gap: 0;
}

.hero__grid .benefit { grid-template-columns: 41px 318px; }

/* кнопка в нижней части главного блока */
.hero__cta {
  position: absolute;
  left: 844px;      /* по левому краю текста преимуществ */
  bottom: 54px;
  font-size: 21px;
  padding: 16px 40px;
}

.benefits {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding-top: 10px;
}

.benefit {
  position: relative;
  display: grid;
  grid-template-columns: 41px minmax(0, 1fr);
  align-items: start;
}

.benefit p {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 300;
}

.benefit strong {
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.12;
  display: inline;
}

.benefit__dot {
  width: 18px;
  height: 18px;
  margin-top: 11px;  /* маркер опущен на 7px относительно строки текста */
  border: 3px solid var(--teal);
  border-radius: 50%;
  position: relative;
}

/* пунктирная линия под каждым маркером, включая последний */
.benefit .benefit__dot::after {
  content: '';
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  width: 3px;
  height: 96px;
  background-image: linear-gradient(var(--teal) 45%, transparent 45%);
  background-size: 3px 9px;
  opacity: 0.85;
}

.benefit__icon {
  width: 23px;
  height: auto;
  margin-top: 3px;
}

/* в новом макете розовой стрелки в блоке «Сотрудничество» нет —
   осталась только группа с людьми */
.art--coop .art-people { left: 299px; top: 112px; width: 558px; }

.art--hero .art-cloud-tr { left: 211px; top: 19px;  width: 569px; }
.art--hero .art-cloud-bl { left: 66px;  top: 470px; width: 323px; }
.art--hero .art-cloud-sm { left: 442px; top: 367px; width: 174px; }
.art--hero .art-peaks-lg { left: 297px; top: 331px; width: 460px; }
.art--hero .art-peaks-sm { left: 255px; top: 470px; width: 204px; }

/* ==========================================================================
   2. Как это работает
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: 253px 214px 241px 214px 208px;
  gap: 0;
  margin-top: 58px;
}

.step { position: relative; }

.step__num {
  display: block;
  font-size: 125px;
  font-weight: 900;
  line-height: 0.96;
  background: linear-gradient(140deg, var(--title-from), var(--title-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step__line {
  position: absolute;
  top: 62px;
  left: 100px;
  display: flex;
  align-items: center;
  gap: 7px;
  width: 123px;
  height: 18px;
}

.step__line::before {
  content: '';
  width: 18px;
  height: 18px;
  border: 3px solid var(--teal);
  border-radius: 50%;
  flex: none;
}

.step__line::after {
  content: '';
  flex: 1;
  height: 3px;
  background-image: linear-gradient(90deg, var(--teal) 45%, transparent 45%);
  background-size: 9px 3px;
  opacity: 0.85;
}

.step p {
  margin-top: 37px;
  font-size: 19px;
  line-height: 1.32;
  font-weight: 300;
}

.step strong { font-weight: 800; }

/* ширина подписей — как в макете, иначе строки наезжают на соседнюю колонку */
.steps .step:nth-child(1) p { max-width: 209px; }
.steps .step:nth-child(2) p { max-width: 180px; }
.steps .step:nth-child(3) p { max-width: 197px; }
.steps .step:nth-child(4) p { max-width: 160px; }
.steps .step:nth-child(5) p { max-width: 209px; }

/* ==========================================================================
   3–4. Карточки выгод
   ========================================================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: none;
  margin: 70px 0 0 5px;
}

.feature { position: relative; padding-left: 44px; }

.feature::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 46px;
  width: 3px;
  height: 96px;
  background-image: linear-gradient(var(--teal) 45%, transparent 45%);
  background-size: 3px 9px;
  opacity: 0.85;
}

.feature__icon {
  position: absolute;
  left: 0;
  top: 4px;
  width: 23px;
  height: auto;
}

.feature h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--teal-dark);
  min-height: 59px;
  max-width: 326px;
}

.feature p {
  margin-top: 22px;
  font-size: 20px;
  line-height: 1.42;
  font-weight: 300;
  max-width: 300px;
}

#developer .cards { grid-template-columns: 435px 360px 330px; }
#buyer     .cards { grid-template-columns: 371px 386px 368px; }
#buyer .feature:nth-child(3) p { max-width: 357px; }

/* ==========================================================================
   5. Кто мы
   ========================================================================== */

.about__grid {
  display: grid;
  grid-template-columns: 540px 475px;
  gap: 0 143px;
  align-items: start;
  padding-top: 132px;    /* координаты заголовка из макета */
  padding-bottom: 48px;
  margin-right: -28px;   /* текстовая колонка в макете шире правого поля */
}

.about__text { position: relative; margin-top: 101px; }

.about__text h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--teal-dark);
}

.about__text p {
  margin-top: 26px;
  font-size: 20px;
  line-height: 1.42;
  font-weight: 300;
  max-width: 380px;
}

/* ==========================================================================
   6. Сотрудничество
   ========================================================================== */

.coop__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 363px;
  gap: 0;
  margin-top: 52px;
  align-items: start;
}

.coop__left { padding-left: 10px; }

.coop__lead {
  font-size: 35px;
  line-height: 1.16;
  font-weight: 800;
  max-width: 686px;
}

/* ==========================================================================
   Форма обратной связи
   ========================================================================== */

.form {
  margin-top: 30px;
  max-width: 686px;
}

.form__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field--wide { grid-column: 1 / -1; }

.field__label {
  font-size: 17px;
  font-weight: 600;
  color: var(--teal-dark);
}

.field__input {
  font: inherit;
  font-size: 18px;
  font-weight: 300;
  color: var(--ink);
  background: #fff;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 16px 20px;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field__input::placeholder { color: #9A9A9A; }

.field__input:hover { border-color: #D6D6D6; }

.field__input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(41, 137, 144, 0.15);
}

.field__input:user-invalid {
  border-color: #D8365D;
  box-shadow: 0 0 0 4px rgba(216, 54, 93, 0.13);
}

/* поле-ловушка для ботов */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 20px;
  margin-top: 26px;
}

.form__submit {
  font-size: 19px;
  padding: 16px 44px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.form__submit[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.form__error {
  font-size: 16px;
  color: #C21D4E;
  max-width: 340px;
}

.form__error:empty { display: none; }

/* ==========================================================================
   Окно «Спасибо»
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 32, 42, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: modal-fade 0.2s ease;
}

.modal__window {
  position: relative;
  background: #fff;
  border-radius: 22px;
  padding: 44px 52px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  animation: modal-pop 0.24s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.modal__text {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--teal-dark);
}

.modal__ok {
  margin-top: 30px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  padding: 14px 52px;
}

@keyframes modal-fade { from { opacity: 0; } }
@keyframes modal-pop  { from { opacity: 0; transform: translateY(14px) scale(0.96); } }

.benefits--coop {
  padding-top: 0;
  margin-top: 12px;
  display: grid;
  grid-template-rows: 134px 134px auto;
  gap: 0;
}

.benefits--coop .benefit { grid-template-columns: 51px 278px; }

.benefits--coop .benefit p { font-size: 26px; }
.benefits--coop .benefit strong { font-size: 26px; }

/* пунктирная линия под каждой иконкой, включая последнюю */
.benefits--coop .benefit::after {
  content: '';
  position: absolute;
  left: 10px;
  top: 34px;
  width: 3px;
  height: 77px;   /* на 20% короче: 96 -> 77 */
  background-image: linear-gradient(var(--teal) 45%, transparent 45%);
  background-size: 3px 9px;
  opacity: 0.85;
}

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

.footer {
  border-top: 1px solid #E3E3E3;
  padding: 36px 24px;
}

.footer__inner {
  width: var(--card-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 15px;
}

.footer img { width: 130px; height: auto; }
.footer a { text-decoration: none; font-weight: 600; }
.footer a:hover { color: var(--teal); }

/* ==========================================================================
   Мобильная версия — фиксированный макет по фрейму «Mob» из Figma (375px)
   Второе (и единственное второе) фиксированное состояние сайта.

   Блоки 1–5 собраны абсолютным позиционированием по координатам макета:
   высота карточки задана точно, иначе низ фоновой иллюстрации срезался бы
   overflow:hidden, а текст наезжал бы на рисунок.
   ========================================================================== */

@media (max-width: 767px) {

  :root { --nav-h: 70px; }

  /* на самых узких телефонах (уже 375px) карточка обрезается по краям
     вместо горизонтальной прокрутки */
  body { min-width: 0; overflow-x: hidden; }

  /* --- шапка: бургер вместо горизонтального меню --- */
  .nav__inner { width: auto; padding: 0 20px; }

  .nav__burger { display: flex; }

  .nav__menu {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 8px 20px 24px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }

  .nav__menu.is-open { transform: translateY(0); }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }

  .nav__list a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid #EEE;
    font-size: 17px;
  }

  .nav__list a::after { content: none; }

  .nav__cta { margin-top: 18px; text-align: center; }

  /* --- карточка --- */
  .section { width: 375px; max-width: 100%; margin: 0 auto; padding: 0 0 20px; }

  .card { width: 375px; border-radius: 16px; }
  .card__body { padding: 0; }

  /* высоты карточек — ровно как в мобильном макете */
  #hero .card       { height: 750px; }
  #developer .card  { height: 750px; }
  #buyer .card      { height: 696px; }
  #about .card      { height: 537px; }
  /* в макете 4 шага и 893px; на сайте шагов пять — добавлен ещё один шаг */
  #how .card        { height: 1043px; }
  /* в этом блоке есть форма, которой в макете нет */
  #cooperation .card { height: auto; min-height: 788px; }

  /* десктопные слои иллюстраций скрыты, включаются мобильные */
  .art img { display: none; }
  .art .art-bg-m,
  .art .m-cloud1, .art .m-cloud2, .art .m-dashdot,
  .art .m-peak-sm, .art .m-peak-lg,
  .art .m-how-arrows, .art .m-how-city { display: block; }

  .art-bg-m { position: absolute; top: 0; left: 0; width: 375px; height: auto; }

  /* --- заголовки --- */
  .title {
    font-size: 40.6px;
    line-height: 39px;
    width: auto;
    max-width: 100%;
  }

  /* ======================= 1. Главный блок ======================= */

  .hero__grid { display: block; }
  .hero__left { padding: 0; }

  .title--hero {
    position: absolute;
    left: 42px; top: 40px;
    width: 305px;
    font-size: 40.6px;
    line-height: 39px;
  }

  .m-cloud1  { left: 261px; top: 160px; width: 86px; }
  .m-cloud2  { left: 66px;  top: 178px; width: 224px; }
  .m-dashdot { left: 43px;  top: 217px; width: 41px; }
  .m-peak-sm { left: 42px;  top: 269px; width: 114px; }
  .m-peak-lg { left: 66px;  top: 191px; width: 258px; }

  .hero__grid .benefits { display: block; margin: 0; padding: 0; }

  .hero__grid .benefit {
    position: absolute;
    left: 42px;
    width: 292px;
    grid-template-columns: 27px minmax(0, 1fr);
  }

  .hero__grid .benefit:nth-child(1) { top: 395px; }
  .hero__grid .benefit:nth-child(2) { top: 484px; }
  .hero__grid .benefit:nth-child(3) { top: 573px; }

  .benefit p      { font-size: 20px; line-height: 21px; }
  .benefit strong { font-size: 20px; line-height: 21px; }

  .benefit__dot { width: 12px; height: 12px; border-width: 2px; margin-top: 6px; }

  .br-mobile { display: inline; }

  .benefit .benefit__dot::after {
    width: 2px;
    height: 64px;
    top: calc(100% + 6px);
    background-size: 2px 8px;
  }

  .hero__cta {
    position: absolute;
    left: 42px; top: 672px;
    bottom: auto;   /* иначе десктопный bottom:54px растягивает кнопку
                       между двумя границами и сплющивает её по высоте */
    width: 292px;
    text-align: center;
    font-size: 17px;
    padding: 15px 20px;
  }

  /* ==================== 2. Как это работает ==================== */

  #how .title { position: absolute; left: 43px; top: 42px; width: 240px; }

  .m-how-arrows { left: 220px; top: -49px; width: 251px; }
  /* прижат к нижнему краю: в макете под силуэтом остаётся полоска
     серого, из-за неё картинка выглядит оторванной от низа карточки */
  .m-how-city   { left: -7px; top: auto; bottom: 0; width: 394px; }

  .steps { display: block; margin: 0; }

  .step {
    position: absolute;
    left: 44px;
    width: 302px;
    margin: 0;
    display: block;
  }

  .steps .step:nth-child(1) { top: 164px; }
  .steps .step:nth-child(2) { top: 328px; }
  .steps .step:nth-child(3) { top: 493px; }
  .steps .step:nth-child(4) { top: 657px; }
  .steps .step:nth-child(5) { top: 821px; }

  .step__num {
    position: absolute;
    left: 0; top: 0;
    font-size: 124.8px;
    line-height: 120px;
  }

  .steps .step p {
    position: absolute;
    left: 93px; top: 25px;
    width: 209px;
    max-width: none;
    margin: 0;
    font-size: 16px;
    line-height: 21px;
  }

  /* кружок с пунктиром под каждой цифрой */
  .step__line {
    display: flex;
    position: absolute;
    left: 25px; top: 120px;
    width: 123px;
    height: 18px;
    gap: 10px;
  }

  .step__line::before { width: 17px; height: 18px; border-width: 3px; }

  /* у третьего шага подпись на строку длиннее остальных (в мобильном
     макете этого шага нет вовсе), поэтому его маркер опускаем — иначе
     пунктир проходит по последней строке текста */
  .steps .step:nth-child(3) .step__line { top: 141px; }

  /* ================= 3–4. Карточки выгод ================= */

  .cards { display: block; margin: 0; max-width: none; }

  .feature { position: absolute; width: 290px; }

  .feature__icon { left: 0; top: 2px; width: 18px; }

  .feature::before {
    left: 8px; top: 25px;
    width: 2px; height: 74px;
    background-size: 2px 8px;
  }

  .feature h3 { min-height: 49px; max-width: none; }
  .feature p  { max-width: none; }

  #developer .feature { left: 42px; padding-left: 33px; }
  #developer .feature:nth-child(1) { top: 161px; }
  #developer .feature:nth-child(2) { top: 311px; }
  #developer .feature:nth-child(3) { top: 463px; }
  #developer .title { position: absolute; left: 42px; top: 40px; width: 306px; }
  #developer .feature h3 { font-size: 23.2px; line-height: 24.4px; }
  #developer .feature p  { margin-top: 15px; font-size: 15.2px; line-height: 20.3px; }

  #buyer .feature { left: 44px; padding-left: 34px; }
  #buyer .feature:nth-child(1) { top: 153px; }
  #buyer .feature:nth-child(2) { top: 304px; }
  #buyer .feature:nth-child(3) { top: 479px; }
  #buyer .title { position: absolute; left: 42px; top: 40px; width: 306px; }
  #buyer .feature h3 { font-size: 23.4px; line-height: 24.7px; }
  #buyer .feature p  { margin-top: 16px; font-size: 15.4px; line-height: 20.5px; }
  #buyer .feature:nth-child(3) p { max-width: none; }

  /* ======================= 5. Кто мы ======================= */

  .about__grid { display: block; padding: 0; margin: 0; }

  .title--about {
    position: absolute;
    left: 42px; top: 53px;
    width: 245px;
    font-size: 107px;
    line-height: 80.3px;
  }

  .about__text {
    position: absolute;
    left: 79px; top: 238px;
    width: 254px;
    margin: 0;
  }

  .about__text h3 { font-size: 18.8px; line-height: 19.9px; }

  .about__text p {
    margin-top: 22px;
    font-size: 12.4px;
    line-height: 16.5px;
    max-width: none;
  }

  .about__text p + p { margin-top: 14px; }

  /* вертикальный пунктир с кружком слева от текста — в макете он лежит
     не в маске блока, поэтому в фоновую картинку не попал */
  .about__text::before {
    content: '';
    position: absolute;
    left: -34px; top: 14px;
    width: 4px; height: 131px;
    background-image: linear-gradient(var(--teal) 45%, transparent 45%);
    background-size: 4px 11px;
    opacity: 0.85;
  }

  .about__text::after {
    content: '';
    position: absolute;
    left: -47px; top: 161px;
    width: 30px; height: 29px;
    border: 5px solid var(--teal);
    border-radius: 50%;
  }

  /* ==================== 6. Сотрудничество ==================== */

  #cooperation .card__body { padding: 32px 24px 40px; }

  .coop__grid { display: block; margin-top: 24px; }
  .coop__left { padding-left: 0; }

  .coop__lead { font-size: 21px; line-height: 1.16; max-width: none; }

  .form { margin-top: 20px; max-width: none; }
  .form__fields { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .field--wide { grid-column: auto; }
  .field__label { font-size: 15px; }
  /* 16px — минимум, при котором iOS Safari не зумит страницу при фокусе */
  .field__input { font-size: 16px; padding: 14px 18px; }
  .form__row { margin-top: 20px; }
  .form__submit { width: 100%; text-align: center; font-size: 17px; padding: 15px 20px; }

  .benefits--coop {
    display: flex;
    flex-direction: column;
    margin-top: 34px;
    gap: 28px;
  }

  .benefits--coop .benefit { grid-template-columns: 45px minmax(0, 1fr); }
  .benefits--coop .benefit p      { font-size: 22px; line-height: 23.2px; }
  .benefits--coop .benefit strong { font-size: 22px; line-height: 23.2px; }

  .benefits--coop .benefit::after {
    left: 10px; top: 30px;
    width: 2px; height: 64px;   /* на 20% короче: 80 -> 64 */
    background-size: 2px 8px;
  }

  /* --- подвал --- */
  .footer__inner { width: auto; }
}
