/* ==========================================================================
   Квиз Ecogarden — копия marquiz-квиза на собственной вёрстке.
   Все размеры сняты замерами с боевой страницы, а не подобраны на глаз.
   Точки перелома оригинала: 819px (появляется боковая колонка), 767px (мобильная раскладка).
   ========================================================================== */

/* Gilroy отдаётся только в 400/500/600 — начертания 700 в оригинале нет,
   браузер синтезирует жирный из 600. Повторяем ровно так же. */
@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/gilroy-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/gilroy-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/gilroy-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --main: #005caf;
  --main-text: #ffffff;
  --bg: #ffffff;
  --text: #363636;
  --text-soft: #494949;
  --border: #e6e6e6;
  --border-input: #cccccc;
  --sidebar-bg: #f7f7f7;
  --bubble-bg: #ededed;
  --track: #d9d9d9;
  --font: 'Gilroy', Helvetica, Arial, sans-serif;
  --radius-btn: 32px;
  --radius-input: 4px;
  --radius-card: 5px;
  /* 840px — контентная колонка на экранах вопросов, плюс 2×16px внутренних полей */
  --col: 872px;
  --sidebar-w: 320px;
  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  color: var(--text-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app { height: 100%; }

button { font-family: inherit; cursor: pointer; }
input  { font-family: inherit; }
a { color: var(--main); }

/* Иконки вставляются инлайновым SVG внутрь span — задаём размер один раз */
.icon-slot, .field__icon, .phone__chev, .nav-back > span, .nav-next > span,
.question__badge > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-back > span svg, .nav-next > span svg { width: 18px; height: 18px; display: block; }
.field__icon svg { width: 22px; height: 22px; display: block; }
.phone__chev svg { width: 18px; height: 18px; display: block; }
.question__badge > span svg { width: 14px; height: 14px; display: block; }

/* Смена экранов: въезд справа налево, как animationStyle: rightLeft */
@keyframes screen-in {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
.screen { animation: screen-in .35s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  .screen { animation: none; }
}

/* ==========================================================================
   Стартовый экран
   ========================================================================== */

.start {
  position: relative;
  height: 100%;
  min-height: 100dvh;
  overflow: hidden;
}

.start__bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/bg.webp');
  background-size: cover;
  background-position: 0 40%;
}
/* Затемнение слева под текст — градиент из оригинала */
.start__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgb(39, 38, 38), rgba(0, 0, 0, 0));
}

.start__inner {
  position: relative;
  height: 100%;
  min-height: 100dvh;
  padding: 16px 32px 32px;
  display: flex;
  flex-direction: column;
}

.start__head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.start__logo {
  width: 37px;
  height: 37px;
  object-fit: contain;
  display: block;
}
.start__company {
  color: #fff;
  font-size: 16px;
  font-weight: 400;
}

.start__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* 524px — ширина текстовой колонки в оригинале, замер на 1440px */
  max-width: 524px;
}

.start__title {
  margin: 0 0 16px;
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
  color: #fff;
}

.start__subtitle {
  margin: 0 0 16px;
  color: #fff;
  font-size: 16px;
  line-height: 24px;
}
.start__subtitle p { margin: 0 0 12px; }
.start__subtitle p:last-child { margin-bottom: 0; }

.start__foot {
  flex: 0 0 auto;
  color: #fff;
}
.start__phone {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}
.start__legal {
  font-size: 10px;
  font-weight: 500;
  line-height: 14px;
}

/* Кнопка «Рассчитать стоимость» и вообще главная кнопка */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--main);
  color: var(--main-text);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  padding: 12px 30px;
  min-height: 56px;
  box-shadow: 0 1px 4px rgba(0, 92, 175, .2);
  overflow: hidden;
  text-decoration: none;   /* кнопка-ссылка на экране «Спасибо» */
  transition: filter .15s var(--ease), box-shadow .15s var(--ease);
}
.btn:hover { filter: brightness(1.08); }
.btn:active { filter: brightness(.95); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Блик, который делает кнопку «стеклянной» — есть в оригинале */
.btn--shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,.1) 10%, rgba(255,255,255,.2) 20%, rgba(255,255,255,.6));
  transform: skewX(-20deg);
  animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine {
  0%, 60% { left: -60%; }
  100%    { left: 130%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn--shine::after { animation: none; opacity: 0; }
}

.start__cta { align-self: flex-start; }

/* ==========================================================================
   Экраны вопросов
   ========================================================================== */

.quiz {
  display: flex;
  height: 100%;
  min-height: 100dvh;
  background: #fff;
}

.quiz__main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.quiz__content {
  flex: 1 1 auto;
  padding: 10px 0 0;
}

.quiz__inner {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 16px;
}

/* В оригинале под заголовок зарезервирован блок 68px, а текст прижат к его низу.
   Из-за этого варианты ответа начинаются на одной высоте независимо от длины заголовка. */
.question__title {
  display: flex;
  align-items: flex-end;
  min-height: 68px;
  margin: 0 0 16px;
  font-size: 32px;
  font-weight: 700;
  line-height: 38.4px;
  color: var(--text);
}

.question__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 4px 10px;
  border: 1px solid var(--main);
  border-radius: 4px;
  background: rgba(0, 92, 175, .06);
  color: var(--main);
  font-size: 12px;
  line-height: 16px;
}
.question__badge svg { width: 14px; height: 14px; flex: 0 0 auto; }

.answers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.answer {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding: 12.8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
  color: var(--text);
  font-size: 16px;
  line-height: 19px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.answer:hover { border-color: var(--main); }
.answer:focus-visible { outline: 2px solid var(--main); outline-offset: 2px; }

.answer__mark {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bubble-bg);
  position: relative;
  transition: background .15s var(--ease);
}
.answer--many .answer__mark { border-radius: 4px; }

.answer[aria-checked='true'] { border-color: var(--main); }
.answer[aria-checked='true'] .answer__mark { background: var(--main); }
.answer[aria-checked='true'] .answer__mark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
/* У одиночного выбора точка, у множественного галочка */
.answer:not(.answer--many)[aria-checked='true'] .answer__mark::after {
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}

/* Поле «Другое…» стоит на месте последнего варианта */
.answer--other { padding: 0; overflow: hidden; }
.answer--other .answer__mark { margin-left: 16px; }
.answer--other input {
  flex: 1 1 auto;
  min-width: 0;
  align-self: stretch;
  border: 0;
  background: #f5f5f5;
  padding: 0 16px;
  font-size: 16px;
  color: var(--text);
}
.answer--other input:focus { outline: none; background: #f0f0f0; }

/* Нижняя панель: прогресс и навигация */
.navbar {
  flex: 0 0 auto;
  background: #fff;
  padding: 16px 0 24px;
}
.navbar__inner {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: flex-end;
  gap: 24px;
}
.navbar__progress { flex: 1 1 auto; min-width: 0; }

.progress__label {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.progress__label b {
  color: var(--main);
  font-weight: 600;
  margin-left: 4px;
}
.progress__track {
  height: 6px;
  border-radius: 25px;
  background: var(--track);
  overflow: hidden;
}
.progress__fill {
  height: 100%;
  border-radius: 25px;
  background-color: var(--main);
  /* диагональная штриховка, как в оригинале */
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, .18) 0 6px,
    rgba(255, 255, 255, 0) 6px 12px
  );
  transition: width .35s var(--ease);
}

.navbar__nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 2px;
}

.nav-back {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: #9b9b9b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-back:hover:not(:disabled) { border-color: var(--main); color: var(--main); }
.nav-back:disabled { opacity: .4; cursor: default; }

.nav-next {
  min-height: 43px;
  gap: 6px;
  padding: 0 16px 0 22px;
  font-size: 16px;
  box-shadow: 0 3px 10px rgba(0, 92, 175, .5);
}
.nav-next:disabled {
  opacity: .5;
  cursor: default;
  filter: none;
}
.nav-next svg { width: 18px; height: 18px; }

.nav-hint {
  font-size: 12px;
  color: #b0b0b0;
  text-align: right;
  margin-top: 6px;
}
.nav-hint b { color: var(--main); font-weight: 400; }

/* Боковая колонка с ассистентом. Показывается только если у вопроса есть подсказка. */
.sidebar {
  flex: 0 0 var(--sidebar-w);
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 16px 32px;
}

.assistant__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.assistant__ava {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
}
.assistant__ava img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
/* зелёный кружок «на связи» */
.assistant__ava::after {
  content: '';
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3ac267;
  border: 1.5px solid var(--sidebar-bg);
}
.assistant__name { font-size: 14px; font-weight: 600; color: var(--text); }
.assistant__role { font-size: 13px; color: #9b9b9b; }

.assistant__bubble {
  background: var(--bubble-bg);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 20px;
  color: var(--text);
}
.assistant__bubble p { margin: 0; }

/* ==========================================================================
   Экран формы контактов
   ========================================================================== */

.final {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.final__top {
  flex: 0 0 auto;
  padding: 26px 0 16px;
  border-bottom: 1px solid #f0f0f0;
}
.final__top-inner {
  /* 660px — ширина полосы прогресса в оригинале, плюс 2×16px полей */
  max-width: 692px;
  margin: 0 auto;
  padding: 0 16px;
}
.final__progress-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 8px;
}
.final__motivation { font-size: 14px; color: var(--text-soft); }
.final__percent { font-size: 14px; font-weight: 600; color: var(--main); }

.final__body {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 144px 16px 48px;
}
/* Карточка шире полей: в оригинале заголовок 579px, а поля 550px */
.final__card { width: 100%; max-width: 580px; }

.final__header {
  margin: 0 0 38px;
  font-size: 28px;
  font-weight: 700;
  line-height: 31.5px;
  color: var(--text);
  text-align: center;
}

.field,
.final__submit,
.consent {
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.field { margin-bottom: 20px; }
.field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  color: rgba(54, 54, 54, .7);
}
.field__control { position: relative; display: flex; }
.field__icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: #b5b5b5;
  pointer-events: none;
}
.field__input {
  width: 100%;
  height: 56px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-input);
  background: transparent;
  font-size: 18px;
  color: var(--text);
  padding: 0 20px 0 54.4px;
  transition: border-color .15s var(--ease);
}
.field__input::placeholder { color: #b5b5b5; }
.field__input:focus { outline: none; border-color: var(--main); }
.field--filled .field__input { border-color: var(--main); }

/* Телефон: слева селектор страны, справа само поле */
.field--phone .field__control { gap: 0; }
.phone__country {
  flex: 0 0 120px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 16px;
  border: 1px solid var(--border-input);
  border-right: 0;
  border-radius: var(--radius-input) 0 0 var(--radius-input);
  background: #fff;
  font-size: 18px;
  color: var(--text);
}
.phone__flag { flex: 0 0 auto; }
.phone__flag svg { width: 21px; height: 15px; display: block; border-radius: 2px; }
.phone__chev { margin-left: auto; width: 18px; height: 18px; color: #7a7a7a; }
.field--phone .field__input {
  border-radius: 0 var(--radius-input) var(--radius-input) 0;
  padding: 0 12px;
}

.final__submit {
  display: flex;      /* inline-flex не центрируется авто-полями */
  width: 100%;
  height: 50px;
  min-height: 50px;
  margin-top: 4px;
  font-size: 18px;
}
.final__submit:disabled { opacity: .5; cursor: default; filter: none; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
  font-size: 12px;
  line-height: 17px;
  color: var(--text);
}
.consent input {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin: 2px 0 0;
  accent-color: var(--main);
}
.consent a { text-decoration: none; }
.consent a:hover { text-decoration: underline; }

.field__error {
  margin-top: 6px;
  font-size: 13px;
  color: #d0021b;
}
/* Ошибка отправки под кнопкой: тот же цвет и кегль, по центру; [hidden] прячет */
.final__error { margin-top: 10px; text-align: center; line-height: 1.35; }
.final__error[hidden] { display: none; }

/* ==========================================================================
   Экран благодарности
   ========================================================================== */

/* Снято замерами с боевой страницы 27.08.2026 — после тестовой заявки,
   потому что иначе до этого экрана в оригинале не дойти.
   Точки перелома здесь свои, не те же, что у вопросов:
   1200px — кнопка теряет фиксированную высоту, 900px — пропадают боковые поля,
   767px — мельчают заголовок и подзаголовок. */

.thanks {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 64px 16px 16px;
  background: #fff;
  text-align: center;
  /* 16/24 — базовая строка оригинала. На ней стоят высоты строчных боксов
     под логотипом, фото и иконками соцсетей; без неё они на 3px ниже. */
  font-size: 16px;
  line-height: 24px;
}

/* Картинки здесь намеренно строчные, а не блочные: в оригинале под ними
   остаётся 7px от строки, и на них держится вся вертикальная раскладка. */
.thanks__logo-wrap { margin: 0 auto; }
.thanks__logo {
  max-height: 24px;
  max-width: 80px;
  object-fit: cover;
}

/* margin: auto 0 съедает свободную высоту сверху и снизу поровну —
   так блок встаёт по центру остатка, а не по центру экрана */
.thanks__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  place-content: center;
  width: 100%;
  margin: auto 0;
  padding: 0 60px;
  gap: 24px;
}

/* Колонка ужимается по содержимому: ширину задаёт самая длинная строка.
   Нижние 32px есть и в оригинале — из-за них блок стоит на 16px выше центра. */
.thanks__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  max-width: 720px;
  margin-bottom: 32px;
  text-align: center;
}

.thanks__image {
  position: relative;
  width: max-content;
  margin-bottom: 24px;
}
.thanks__img {
  width: 200px;
  height: 126px;
  object-fit: cover;
  object-position: center;
  border-radius: 28px;
  filter: brightness(100%);
  transition: filter .2s ease-out;
}
.thanks__image:hover .thanks__img { filter: brightness(40%); }

/* Иконка «развернуть» проступает только по наведению — так же в оригинале */
.thanks__expand {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .2s ease-out;
  color: #fff;
  cursor: pointer;
}
.thanks__image:hover .thanks__expand { opacity: 1; }
.thanks__expand svg { display: block; width: 24px; height: 24px; fill: currentColor; }

.thanks__title {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
.thanks__text {
  margin: 0 0 24px;
  max-width: 800px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
  word-break: break-word;
}

.thanks__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  margin-bottom: 30px;
}

/* Кнопка не наследует .btn: у неё своя геометрия и серая заливка.
   #e6e6e6 — это --color-bg-base-10 оригинала. */
.thanks__btn {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 480px;
  min-height: 50px;
  padding: 6px 32px 6px 22px;
  background: #e6e6e6;
  color: var(--text);
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: start;
  text-decoration: none;
  user-select: none;
}
.thanks__btn:visited { color: var(--text); }

/* Стрелка приколота к правому верхнему углу и повёрнута на −45° */
.thanks__arrow {
  position: absolute;
  top: 3px;
  right: 3px;
  transform: rotate(-45deg);
}
.thanks__arrow svg { width: 20px; height: 20px; fill: var(--text); }

/* justify-content здесь flex-start, а по центру ряд ставит align-items
   родительской колонки — как в оригинале */
.thanks__socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  max-width: 480px;
}
.thanks__social { position: relative; display: block; }
.thanks__social svg { width: 20px; height: 20px; fill: var(--text); }

/* Просмотр фото во весь экран по клику. Крестик на широком экране стоит
   сбоку от картинки, на узком — в углу затемнения; в оригинале это два
   разных элемента, показывается ровно один. */
.thanks-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .5);
}
.thanks-modal__container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thanks-modal__content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  max-width: 90vw;
  max-height: 90vh;
}
.thanks-modal__wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-width: 888px;
  max-height: 560px;
}
.thanks-modal__img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 28px;
  object-fit: contain;
}
.thanks-modal__close {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thanks-modal__close svg { width: 32px; height: 32px; fill: currentColor; }
.thanks-modal__close--narrow { position: absolute; right: -12px; top: -12px; }

@media (max-width: 1200px) {
  .thanks { padding: 16px; }
  .thanks__btn { display: block; max-width: 348px; min-height: 0; }
  .thanks-modal__close--wide { display: none; }
}
@media (min-width: 1201px) {
  .thanks-modal__close--narrow { display: none; }
}

@media (max-width: 900px) {
  .thanks__content { padding: 0; }
}

@media (max-width: 767px) {
  .thanks__col { padding-left: 20px; padding-right: 20px; max-width: none; }
  .thanks__title { font-size: 24px; }
  .thanks__text { font-size: .938rem; }
}

/* ==========================================================================
   768–818px: боковой колонки уже нет, но раскладка ещё «широкая»
   ========================================================================== */

@media (max-width: 818px) {
  .sidebar { display: none; }
}

/* Подсказка ассистента на узких экранах: тот же блок, но под заголовком вопроса.
   Место в разметке переключает JS, здесь только внешний вид. */
.assistant-inline {
  margin: 0 0 16px;
}
.assistant-inline .assistant {
  background: var(--sidebar-bg);
  border-radius: 10px;
  padding: 12px 14px;
}
.assistant-inline .assistant__head { margin-bottom: 6px; }
.assistant-inline .assistant__ava,
.assistant-inline .assistant__ava img { width: 34px; height: 34px; }
.assistant-inline .assistant__ava::after { border-color: var(--sidebar-bg); }
.assistant-inline .assistant__bubble {
  background: transparent;
  padding: 0;
  font-size: 14px;
  line-height: 19px;
}

/* ==========================================================================
   ≤767px: мобильная раскладка. В оригинале это другой макет, а не сжатый десктоп.
   ========================================================================== */

@media (max-width: 767px) {

  /* --- стартовый экран: картинка баннером сверху, текст тёмный на белом --- */
  .start { display: flex; flex-direction: column; height: auto; min-height: 100dvh; }
  .start__bg {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
    height: 26vh;
    min-height: 180px;
    background-image: url('../img/bg-m.webp');
    background-position: center 45%;
  }
  .start__bg::after { display: none; }

  .start__inner {
    position: static;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    padding: 0 0 24px;
  }
  .start__head {
    padding: 16px 24px;
    border-bottom: 1px solid #ededed;
  }
  .start__company { color: var(--text); }
  .start__body {
    max-width: none;
    padding: 32px 24px 0;
    justify-content: flex-start;
    flex: 1 1 auto;
  }
  /* 24px — на 390px заголовок ложится в две строки с переносом после
     «благоустройства», как в оригинале */
  .start__title { font-size: 24px; line-height: 30px; color: var(--text); }
  .start__subtitle { color: var(--text-soft); margin-bottom: 24px; }
  .start__cta { align-self: stretch; width: 100%; }
  .start__foot { text-align: center; padding: 28px 24px 0; color: var(--text); }
  .start__legal { color: var(--text-soft); }

  /* --- вопросы: одна колонка, подсказка сверху, липкая панель снизу --- */
  .quiz { flex-direction: column; }
  .quiz__content { padding: 20px 0 0; }
  .quiz__inner { padding: 0 20px; }
  .question__title { font-size: 22px; line-height: 28px; margin-bottom: 14px; }
  .answers { grid-template-columns: 1fr; gap: 12px; }
  .answer { min-height: 56px; }

  .navbar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: #eaeaea;
    padding: 12px 0;
  }
  .navbar__inner { padding: 0 16px; gap: 12px; align-items: center; }
  .progress__label { margin-bottom: 6px; font-size: 13px; }
  .navbar__nav { gap: 10px; padding-bottom: 0; }
  .nav-back { width: 36px; height: 36px; background: transparent; }
  .nav-hint { display: none; }

  /* --- форма --- */
  .final__top { padding: 18px 0 12px; }
  .final__body { padding: 24px 20px 40px; align-items: flex-start; }
  .final__header { font-size: 24px; line-height: 29px; text-align: left; margin-bottom: 26px; }
  .field__label { font-size: 16px; }
  .field__input { height: 52px; font-size: 16px; }
  .phone__country { height: 52px; flex-basis: 104px; font-size: 16px; }

  /* Экран благодарности живёт в своём разделе выше — у него другие переломы */
}

/* Очень узкие экраны */
@media (max-width: 380px) {
  .quiz__inner, .start__body, .start__head { padding-left: 16px; padding-right: 16px; }
  .question__title { font-size: 20px; line-height: 26px; }
}
