/* Manrope — свой хостинг. Урезан до кириллицы, латиницы, цифр и пунктуации
   (209 глифов, ~15 КБ на начертание). Здесь был @import с fonts.googleapis.com —
   он создаёт последовательную цепочку css -> css шрифта -> шрифт и тормозит
   первую отрисовку. НЕ возвращать. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/manrope-700.woff2') format('woff2');
}


/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; }

/* ─── Variables ─── */
:root {
  --white:            #FFFFFF;
  --black:            #1C1C1C;
  --green:            #4CAF50;
  --orange:           #E84B37;
  --orange-hover:     #CA2D19;
  --grey-border:      #ECECEC;
  --grey-bg:          #F3F3F3;
  --grey-bg-hover:    #DFDFDF;
  --grey-text:        #616161;
  --grey-text-2:      #979797;
  --grey-border-2:    #D8D8D8;
  --red:              #B43E41;
  --red-error:        #E81515;
  --orange-light:     #FFEBE5;
  --orange-light-text:#FFAF9B;
  --green-light:      #E9F7E9;
  --green-light-text: #A6F5AA;
  --brown-heavy:      #663A2A;
}

/* ─── Base ─── */
body {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Ровно 1276 — впритык к ширине контента, и на окне 1280 полоса
     прокрутки браузера (~15px) выдавливала страницу за край.
     Контейнеры и так max-width, сузиться им ничто не мешает. */
  min-width: 1200px;
}

/* ─── Container ─── */
.container {
  /* Было width: 1276px — жёстко. На окне 1280 полоса прокрутки браузера
     съедает ~15px, и контейнер выпирал за край: появлялась горизонтальная
     прокрутка. max-width оставляет вид на широких экранах прежним, а на
     узких даёт контейнеру сжаться. Проверено: высоты заголовков не меняются. */
  width: 100%;
  max-width: 1276px;
  box-sizing: border-box;
  margin: 0 auto;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 16px;
  color: var(--white);
  border-radius: 8px;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn--orange {
  background-color: var(--orange);
  padding: 22px 36px;
}
.btn--orange:hover { background-color: var(--orange-hover); }

.btn--orange-sm {
  background-color: var(--orange);
  padding: 18px 32px;
}
.btn--orange-sm:hover { background-color: var(--orange-hover); }

.btn--grey {
  background-color: var(--grey-bg);
  color: var(--black);
  padding: 22px 36px;
  transition: background-color 0.2s ease;
}
.btn--grey:hover { background-color: var(--grey-bg-hover); }

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--grey-border);
  padding: 22px 0;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.header__tagline {
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
  color: var(--black);
  white-space: nowrap;
}

.header__tagline span {
  color: var(--orange);
}

/* ══════════════════════════════════════
   HERO (Block 1)
══════════════════════════════════════ */
.hero {
  background: linear-gradient(to bottom, var(--grey-bg), var(--white));
  padding: 72px 0 120px;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__content {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.hero__main {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
}

.hero__heading {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero__title {
  font-size: 60px;
  font-weight: 700;
  line-height: 64px;
  letter-spacing: -1.2px;
  color: var(--black);
}
.hero__title span { color: var(--orange); }

.hero__subtitle {
  font-size: 20px;
  line-height: 28px;
  color: var(--black);
}


.hero__cta {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero__social {
  flex: 1 0 0;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.hero__avatars {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.hero__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--white);
  position: relative;
}
.hero__avatar + .hero__avatar { margin-left: -12px; }
.hero__avatar img {
  position: absolute;
  inset: -2px;
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
}

.hero__proof-text {
  font-size: 14px;
  line-height: 22px;
  color: var(--grey-text);
  flex-shrink: 0;
}
.hero__proof-text strong {
  font-weight: 700;
  color: var(--orange);
}

.hero__image {
  width: 520px;
  height: 580px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.hero__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── Hero bullets ─── */
.hero__bullets {
  display: flex;
  gap: 20px;
  width: 100%;
}

.hero__bullet {
  flex: 1 0 0;
  background: var(--grey-bg);
  border-radius: 16px;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}
.hero__bullet img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.hero__bullet p {
  font-size: 20px;
  line-height: 28px;
  color: var(--black);
  white-space: nowrap;
}




/* ══════════════════════════════════════
   WHO FOR (Block 2)
══════════════════════════════════════ */
.who-for {
  background: var(--grey-bg);
  padding: 120px 0;
}

.who-for__inner {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.who-for__title {
  font-size: 44px;
  font-weight: 700;
  line-height: 48px;
  color: var(--black);
  text-align: center;
}

.who-for__title span {
  color: var(--orange);
}

.who-for__grid {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.who-for__cards {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.who-for__row {
  display: flex;
  gap: 20px;
  height: 300px;
}

.who-for__card {
  flex: 1 0 0;
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-self: stretch;
  min-width: 0;
}

.who-for__card-icon {
  width: 64px;
  height: 64px;
  background: var(--orange-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.who-for__card-icon img {
  width: 32px;
  height: 32px;
}

.who-for__card-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.who-for__card-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
  color: var(--black);
}

.who-for__card-desc {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--grey-text);
}

.who-for__cta {
  width: 412px;
  flex-shrink: 0;
  background: var(--orange);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}

.who-for__cta-img {
  width: 206px;
  height: 280px;
  object-fit: cover;
  flex-shrink: 0;
}

.who-for__cta-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.who-for__cta-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 32px;
  color: var(--white);
}

.who-for__cta-desc {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--white);
}

.btn--white-orange {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px 36px;
  background-color: var(--white);
  color: var(--orange);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 16px;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.btn--white-orange:hover {
  background-color: transparent;
  border-color: var(--white);
  color: var(--white);
}


/* ══════════════════════════════════════
   WHAT DEBTS (Block 4)
══════════════════════════════════════ */
.what-debts {
  background: var(--white);
  padding: 120px 0;
}

.what-debts__inner {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.what-debts__title {
  font-size: 44px;
  font-weight: 700;
  line-height: 48px;
  color: var(--black);
  text-align: center;
}

.what-debts__title span {
  color: var(--orange);
}

.what-debts__cols {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.what-debts__col {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.what-debts__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: 8px;
}

.what-debts__item--green {
  background: var(--green-light);
}

.what-debts__item--red {
  background: var(--orange-light);
}

.what-debts__item img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.what-debts__item p {
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  color: var(--black);
}


/* ══════════════════════════════════════
   QUIZ SECTION (Block 5)
══════════════════════════════════════ */
.quiz-section {
  background: var(--orange);
  padding: 120px 0;
}

/* ─── Quiz widget ─── */
.quiz-widget {
  background: var(--white);
  border-radius: 16px;
  padding: 120px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.quiz__progress {
  background: var(--grey-border);
  border-radius: 6px;
  height: 12px;
  width: 100%;
  overflow: hidden;
}

.quiz__progress-bar {
  background: var(--orange);
  border-radius: 6px;
  height: 100%;
  transition: width 0.4s ease;
}

.quiz__body {
  display: flex;
  flex-direction: column;
  gap: 40px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.quiz__body--hidden {
  opacity: 0;
  transform: translateY(8px);
}

.quiz__heading {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.quiz__question {
  font-size: 44px;
  font-weight: 700;
  line-height: 48px;
  color: var(--black);
}


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

.quiz__option {
  border: 1px solid var(--grey-border-2);
  border-radius: 8px;
  padding: 15px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  cursor: pointer;
}

.quiz__option img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.quiz__option--selected {
  border: 1px solid var(--orange);
  box-shadow: inset 0 0 0 1px var(--orange);
}

.quiz__option-label {
  font-size: 16px;
  font-weight: 700;
  line-height: 16px;
  color: var(--black);
  white-space: nowrap;
}

.quiz__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz__counter {
  font-size: 14px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 0.56px;
  text-transform: uppercase;
  color: var(--grey-text-2);
  text-align: center;
}

.quiz__arrow {
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.quiz__arrow img { width: 28px; height: 28px; }

.quiz__arrow--disabled {
  opacity: 0.3;
  cursor: default;
}

/* — Экран дисквалификации (Менее 200 тыс.) — */
.quiz__disqualify {
  display: none;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.quiz__disqualify--visible {
  display: flex;
}

.quiz__disqualify--hidden {
  opacity: 0;
  transform: translateY(8px);
}

.quiz__disqualify-heading {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
  width: 100%;
}

.quiz__disqualify-title {
  font-size: 44px;
  font-weight: 700;
  line-height: 48px;
  color: var(--black);
}

.quiz__disqualify-accent {
  color: var(--orange);
}

.quiz__disqualify-desc {
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  color: var(--black);
}

.quiz__disqualify-btn {
  width: 100%;
}

/* — Финальный шаг квиза — */
.quiz__final {
  display: none;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

.quiz__final--visible {
  display: flex;
}

  /* 44px были рассчитаны на «Введите данные и узнайте результат» — четыре
     слова. Новый текст вчетверо длиннее и на 44px занимал четыре строки,
     уводя форму вниз экрана. 38px дают три строки с запасом и держатся
     даже на узком окне 1200. Мобильный размер задан ниже, в @media. */
.quiz__final-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 44px;
  color: var(--black);
  text-align: center;
}


.quiz__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

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

.quiz__input-wrap {
  width: 100%;
}

.quiz__input {
  width: 100%;
  border: 1px solid var(--grey-border-2);
  border-radius: 8px;
  padding: 18px 20px;
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1rem;
  color: var(--black);
  background: var(--white);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Подсветка поля, которое надо заполнить. Оформление то же, что у поля
   кода на странице подтверждения, — одна ситуация, один вид.
   Переход берётся из базового правила, поэтому появляется мягко. */
.quiz__input--error {
  border: 1px solid var(--red-error);
  box-shadow: inset 0 0 0 1px var(--red-error);
  color: var(--red-error);
}

/* Два класса подряд — не опечатка: базовое .quiz__input::placeholder
   объявлено НИЖЕ по файлу, и при равной специфичности выигрывало бы оно. */
.quiz__input.quiz__input--error::placeholder {
  color: var(--red);
}

.quiz__input:focus {
  border-color: var(--orange);
  box-shadow: inset 0 0 0 1px var(--orange);
}

.quiz__input::placeholder {
  color: var(--grey-text-2);
}

.quiz__submit {
  width: 100%;
  padding: 22px 36px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1rem;
  border: none;
  cursor: pointer;
}

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

.quiz__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--grey-bg);
  border-radius: 6px;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1rem;
  color: var(--grey-text-2);
  white-space: nowrap;
}

/* Текст ошибки под кнопкой формы теста. Элемент создаёт js/quiz.js:
   в макете места под него нет, а без него отказ сервера выглядит так,
   будто кнопка просто «не сработала». */
.quiz__form-error {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.375rem;
  color: var(--red-error);
  text-align: center;
  width: 100%;
  margin-top: 0.5rem;
}

.quiz__form-privacy {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25rem;
  color: var(--grey-text-2);
  text-align: center;
  width: 100%;
}

.quiz__form-link {
  color: var(--orange);
  text-decoration: underline;
  text-decoration-skip-ink: none;
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease;
}

.quiz__form-link:hover {
  text-decoration-color: transparent;
}


/* ══════════════════════════════════════
   HOW IT WORKS (Block 5)
══════════════════════════════════════ */
.how-it-works {
  background: var(--grey-bg);
  padding: 120px 0;
}

.how-it-works__inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.how-it-works__heading {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  min-width: 0;
}

.how-it-works__title {
  font-size: 44px;
  font-weight: 700;
  line-height: 48px;
  color: var(--black);
}

.how-it-works__title span {
  color: var(--orange);
}

.how-it-works__subtitle {
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  color: var(--black);
}

.how-it-works__steps {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.how-it-works__step {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.how-it-works__numb {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 2px solid var(--green);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 16px;
  color: var(--green);
}

.how-it-works__step-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.how-it-works__step-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 0 0;
  min-width: 0;
}

.how-it-works__step-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  color: var(--black);
}

.how-it-works__step-desc {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--grey-text);
}

.how-it-works__btn-mobile {
  display: none;
}


/* ══════════════════════════════════════
   CTA FORM (Block 6)
══════════════════════════════════════ */
.cta-form {
  background: var(--orange);
  padding: 72px 0 120px;
}

.cta-form__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.cta-form__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.cta-form__image {
  width: 520px;
  height: 580px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.cta-form__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-form__image--mobile {
  display: none;
}

.cta-form__main {
  width: 628px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.cta-form__heading {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cta-form__title {
  font-size: 44px;
  font-weight: 700;
  line-height: 48px;
  color: var(--white);
}

.cta-form__subtitle {
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  color: var(--white);
}

.cta-form__form-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cta-form__row {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Сообщение под формой «Перезвоните мне». Элемент создаёт js/quiz.js:
   в макете места под него нет, а без него нажатие выглядело как отправка
   заявки, хотя заявку принимает только форма после теста. */
.cta-form__note {
  margin: 12px 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  color: var(--white);
  text-align: center;
}

/* Секция оранжевая, и приглушённый персиковый на ней не читался.
   Оставляем белый, как у обычного сообщения, а на ошибку указывает
   подсветка самого поля. */
.cta-form__note--error {
  color: var(--white);
  font-weight: 700;
}

.cta-form__input--error {
  border: 1px solid var(--red-error);
  box-shadow: inset 0 0 0 1px var(--red-error);
}

.cta-form__input {
  flex: 1 0 0;
  min-width: 0;
  background: var(--white);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 18px 20px;
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1rem;
  color: var(--black);
  outline: none;
}


.cta-form__input::placeholder {
  color: var(--grey-text-2);
}

.cta-form__submit {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 36px;
  background-color: var(--brown-heavy);
  border: none;
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 16px;
  color: var(--white);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.cta-form__submit:hover {
  background-color: #522616;
}

.cta-form__privacy {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25rem;
  color: var(--orange-light-text);
}

.cta-form__link {
  color: var(--white);
  text-decoration: underline;
  text-decoration-skip-ink: none;
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease;
}

.cta-form__link:hover {
  text-decoration-color: transparent;
}

.cta-form__bullets {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}

.cta-form__bullet {
  flex: 1 0 0;
  background: var(--orange-light);
  border-radius: 16px;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}

.cta-form__bullet img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.cta-form__bullet p {
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  color: var(--black);
  white-space: nowrap;
}


/* ══════════════════════════════════════
   SMS PAGE
══════════════════════════════════════ */
.sms-layout {
  min-height: 100vh;
  /* dvh учитывает экранную клавиатуру: без него карточка
     центруется по высоте экрана и уезжает под клавиатуру */
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.sms-page {
  flex: 1 0 0;
  background: var(--grey-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

.sms-page__container {
  width: 1276px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sms-card {
  background: var(--white);
  border-radius: 16px;
  padding: 60px;
  width: 628px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sms-card__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 32px;
  color: var(--black);
}

/* Номер телефона не переносим: иначе на узких экранах строка рвётся
   по дефису и получается «...646-» / «30-98». Перенос уходит перед
   номером, сам номер остаётся целым. */
.sms-card__phone {
  white-space: nowrap;
}

.sms-card__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sms-card__input {
  width: 100%;
  border: 1px solid var(--grey-border-2);
  border-radius: 8px;
  padding: 18px 20px;
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1rem;
  color: var(--black);
  background: var(--white);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sms-card__input:focus {
  border-color: var(--orange);
  box-shadow: inset 0 0 0 1px var(--orange);
}

.sms-card__input::placeholder {
  color: var(--grey-text-2);
}

.sms-card__links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
}

.sms-card__resend {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  color: var(--grey-text-2);
  background: none;
  border: none;
  padding: 0;
  cursor: default;
}

.sms-card__actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.sms-card__input--error {
  border: 1px solid var(--red-error);
  box-shadow: inset 0 0 0 1px var(--red-error);
  color: var(--red-error);
}

.sms-card__input--error::placeholder {
  color: var(--red);
}

.sms-card__error-msg {
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  color: var(--red-error);
}

.sms-card__action {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  color: var(--black);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sms-card__action:hover {
  color: var(--grey-text-2);
}

/* ══════════════════════════════════════
   POPUP — Реквизиты
══════════════════════════════════════ */
.popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 28, 28, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.popup--visible {
  opacity: 1;
  visibility: visible;
}

.popup__dialog {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  padding: 60px;
  width: 628px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex-shrink: 0;
}

.popup__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup__close img {
  width: 24px;
  height: 24px;
}

.popup__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 32px;
  color: var(--black);
}

.popup__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popup__item {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--black);
}

.popup__dialog--centered {
  gap: 24px;
  text-align: center;
}

.popup__desc {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--black);
}

.popup__divider {
  height: 1px;
  background: var(--grey-border);
  width: 100%;
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  background: var(--white);
  padding: 60px 0;
}

.footer__container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.footer__logo { width: 249px; height: 48px; flex-shrink: 0; }
.footer__logo img { width: 249px; height: 48px; object-fit: contain; }

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 412px;
}

.footer__link {
  font-size: 16px;
  line-height: 16px;
  color: var(--grey-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--grey-text-2);
}

/* ══════════════════════════════════════
   THANKS PAGE
══════════════════════════════════════ */
.page-thanks {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* dvh учитывает экранную клавиатуру: без него карточка
     центруется по высоте экрана и уезжает под клавиатуру */
  min-height: 100dvh;
}

.thanks-section {
  flex: 1;
  background: var(--grey-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

.thanks-section .container {
  display: flex;
  justify-content: center;
}

.thanks-card {
  background: var(--white);
  border-radius: 16px;
  padding: 60px;
  width: 628px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.thanks-card__badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.thanks-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 14px;
  color: var(--white);
}

.thanks-badge--orange  { background: var(--orange); }
.thanks-badge--green { background: var(--green); }

.thanks-card__avatar img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
}

.thanks-card__heading {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
  width: 100%;
}

.thanks-card__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 32px;
  color: var(--black);
}

.thanks-card__desc {
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  color: var(--grey-text);
}

.thanks-card__btn {
  width: 100%;
}

/* ══════════════════════════════════════
   MOBILE  ≤ 768px
══════════════════════════════════════ */
@media (max-width: 768px) {

  body {
    min-width: 0;
  }

  /* ─── Container ─── */
  .container {
    width: 100%;
    padding: 0 16px;
  }

  /* ─── Buttons ─── */
  .btn--orange {
    width: 100%;
    justify-content: center;
    padding: 18px 32px;
  }

  .btn--orange-sm {
    font-size: 12px;
    line-height: 12px;
    padding: 12px 24px;
    border-radius: 6px;
  }

  /* ─── Header ─── */
  .header { padding: 6px 0; }
  .header__container {
    justify-content: flex-start;
    gap: 16px;
  }
  .header__logo {
    width: 166px;
    height: 32px;
    overflow: hidden;
  }
  .header__logo img { width: 166px; height: 32px; }
  .header__tagline {
    flex: 1 0 0;
    min-width: 0;
    font-size: 12px;
    line-height: 20px;
    text-align: right;
    white-space: normal;
  }

  /* ─── Hero ─── */
  .hero { padding: 32px 0; }

  .hero__content {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  .hero__main    { gap: 20px; }
  .hero__heading { gap: 16px; }

  .hero__title {
    font-size: 28px;
    line-height: 32px;
    letter-spacing: -0.56px;
  }
  .hero__subtitle {
    font-size: 16px;
    line-height: 24px;
  }

  .hero__cta {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
  }
  .hero__cta .btn--orange {
    width: 100%;
    padding: 18px 32px;
    justify-content: center;
  }

  .hero__social {
    flex: none;
    width: 100%;
    gap: 12px;
  }

  .hero__avatar     { width: 32px; height: 32px; }
  .hero__avatar img { width: 32px; height: 32px; inset: -2px; }
  .hero__avatar + .hero__avatar { margin-left: -10px; }

  .hero__proof-text { font-size: 12px; line-height: 20px; }

  .hero__image {
    width: 197px;
    height: 220px;
    align-self: center;
  }

  /* ─── Hero bullets ─── */
  .hero__bullets {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .hero__bullet {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 14px 0;
    gap: 12px;
    border-radius: 8px;
  }
  .hero__bullet img { width: 24px; height: 24px; }
  .hero__bullet p   { font-size: 16px; line-height: 24px; }

  /* ─── Who For (Block 2) ─── */
  .who-for { padding: 52px 0; }

  .who-for__inner { gap: 28px; }

  .who-for__title {
    font-size: 24px;
    line-height: 28px;
  }

  .who-for__grid { 
    flex-direction: column;
    gap: 16px; 
  }

  .who-for__row {
    flex-direction: column;
    height: auto;
    gap: 16px;
  }

  .who-for__cards { gap: 16px; }

  .who-for__card {
    padding: 24px;
    gap: 24px;
    border-radius: 12px;
  }

  .who-for__card-icon {
    width: 60px;
    height: 60px;
  }

  .who-for__card-icon img {
    width: 28px;
    height: 28px;
  }

  .who-for__card-title {
    font-size: 20px;
    line-height: 24px;
  }

  .who-for__cta {
    width: 100%;
    padding: 24px;
    gap: 12px;
    border-radius: 12px;
  }

  .who-for__cta-img {
    width: 147px;
    height: 200px;
  }

  .who-for__cta-body {
    gap: 16px;
  }

  .who-for__cta-title {
    font-size: 20px;
    line-height: 24px;
  }

  .btn--white-orange { padding: 16px 32px; }

  /* ─── What Debts (Block 4) ─── */
  .what-debts {
    padding: 52px 0;
  }

  .what-debts__inner {
    gap: 28px;
  }

  .what-debts__title {
    font-size: 24px;
    line-height: 28px;
  }

  .what-debts__cols {
    flex-direction: column;
    gap: 8px;
  }

  .what-debts__col {
    gap: 8px;
    width: 100%;
  }

  .what-debts__item {
    padding: 16px;
    gap: 12px;
  }

  .what-debts__item img {
    width: 24px;
    height: 24px;
  }

  .what-debts__item p {
    font-size: 16px;
    line-height: 24px;
  }

  /* ─── How It Works (Block 5) ─── */
  .how-it-works {
    padding: 52px 0;
  }

  .how-it-works__inner {
    flex-direction: column;
    gap: 28px;
  }

  .how-it-works__heading {
    gap: 16px;
  }

  .how-it-works__title {
    font-size: 24px;
    line-height: 28px;
  }

  .how-it-works__title br {
    display: none;
  }

  .how-it-works__subtitle {
    font-size: 16px;
    line-height: 24px;
  }

  .how-it-works__subtitle br {
    display: none;
  }

  .how-it-works__btn-desktop {
    display: none;
  }

  .how-it-works__btn-mobile {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 18px 32px;
  }

  .how-it-works__steps {
    gap: 16px;
  }

  .how-it-works__step {
    padding: 24px;
    gap: 20px;
  }

  /* ─── CTA Form (Block 6) ─── */
  .cta-form {
    padding: 52px 0;
  }

  .cta-form__inner {
    gap: 24px;
  }

  .cta-form__content {
    flex-direction: column;
    gap: 24px;
  }

  .cta-form__image--desktop {
    display: none;
  }

  .cta-form__image--mobile {
    display: block;
    width: 197px;
    height: 220px;
    align-self: center;
  }

  .cta-form__main {
    width: 100%;
    gap: 24px;
    align-items: center;
  }

  .cta-form__heading {
    gap: 16px;
    width: 100%;
  }

  .cta-form__title {
    font-size: 24px;
    line-height: 28px;
  }

  .cta-form__subtitle {
    font-size: 16px;
    line-height: 24px;
  }

  .cta-form__form-wrap {
    gap: 12px;
    width: 100%;
  }

  .cta-form__row {
    flex-direction: column;
    gap: 12px;
  }

  .cta-form__input {
    flex: none;
    width: 100%;
    padding: 14px 20px;
  }

  .cta-form__submit {
    flex: none;
    width: 100%;
    padding: 18px 32px;
  }

  .cta-form__privacy {
    font-size: 0.625rem;
    line-height: 1.125rem;
    text-align: center;
  }

  .cta-form__bullets {
    flex-direction: column;
    gap: 8px;
  }

  .cta-form__bullet {
    border-radius: 8px;
    padding: 14px 0;
    gap: 12px;
    width: 100%;
  }

  .cta-form__bullet img {
    width: 24px;
    height: 24px;
  }

  .cta-form__bullet p {
    font-size: 16px;
    line-height: 24px;
  }

  /* ─── Quiz section ─── */
  .quiz-section { padding: 52px 0; }

  .quiz-widget {
    padding: 24px;
    gap: 24px;
    border-radius: 12px;
  }

  .quiz__progress     { height: 8px; border-radius: 4px; }
  .quiz__progress-bar { border-radius: 4px; }

  .quiz__body { gap: 24px; }

  .quiz__heading { gap: 16px; }

  .quiz__question {
    font-size: 24px;
    line-height: 28px;
  }


  .quiz__variants {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .quiz__option       { padding: 13px 20px; }
  .quiz__option-label { font-size: 14px; line-height: 14px; }
  .quiz__option img   { width: 24px; height: 24px; }

  .quiz__arrow img    { width: 28px; height: 28px; }

  .quiz__counter {
    font-size: 12px;
    line-height: 12px;
    letter-spacing: 0.48px;
  }

  /* ─── Quiz disqualify screen ─── */
  .quiz__disqualify {
    gap: 24px;
  }

  .quiz__disqualify-heading {
    gap: 16px;
  }

  .quiz__disqualify-title {
    font-size: 24px;
    line-height: 28px;
  }

  .quiz__disqualify-title br {
    display: none;
  }

  .quiz__disqualify-desc {
    font-size: 14px;
    line-height: 22px;
  }

  .quiz__disqualify-desc br {
    display: none;
  }

  .quiz__disqualify-btn {
    padding: 18px 32px;
  }

  /* ─── Quiz final step ─── */
  .quiz__final {
    gap: 24px;
  }

    /* Текст длинный: на 24px он занимал девять строк и отжимал форму вниз
       экрана. 20px дают семь строк и поднимают поля почти на сто пикселей. */
  .quiz__final-title {
    font-size: 20px;
    line-height: 25px;
  }

  .quiz__form-inputs {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .quiz__input {
    padding: 14px 20px;
  }

  .quiz__form-badges {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .quiz__badge {
    padding: 11px 20px;
    font-size: 14px;
    line-height: 14px;
  }

  .quiz__badge img {
    width: 14px;
    height: 14px;
  }

  .quiz__form-privacy {
    font-size: 10px;
    line-height: 18px;
  }

  /* ─── SMS page ─── */
  .sms-page { padding: 32px 16px; }

  .sms-page__container { width: 100%; }

  .sms-card {
    width: 100%;
    padding: 40px 24px;
    border-radius: 12px;
    gap: 20px;
  }

  .sms-card__title {
    font-size: 20px;
    line-height: 24px;
  }

  .sms-card__input { padding: 14px 20px; }

  .sms-card__error-msg {
    font-size: 12px;
    line-height: 20px;
  }

  .sms-card__links {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .sms-card__actions {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .sms-card__resend,
  .sms-card__action {
    font-size: 14px;
    line-height: 14px;
  }

  /* ─── Popup ─── */
  .popup { padding: 0 16px; }

  .popup__dialog {
    width: 100%;
    padding: 40px 24px;
    border-radius: 12px;
    gap: 20px;
  }

  .popup__close {
    top: 16px;
    right: 16px;
  }

  .popup__title {
    font-size: 20px;
    line-height: 24px;
  }

  .popup__dialog--centered { gap: 16px; }

  .popup__desc {
    font-size: 14px;
    line-height: 22px;
  }

  .popup__list { gap: 8px; }

  .popup__item {
    font-size: 14px;
    line-height: 22px;
  }

  /* ─── Footer ─── */
  .footer { padding: 32px 0; }
  .footer__container {
    flex-direction: column;
    gap: 20px;
  }
  .footer__logo     { width: 208px; height: 40px; }
  .footer__logo img { width: 208px; height: 40px; }
  .footer__links    { width: 100%; gap: 12px; }
  .footer__link     { font-size: 14px; line-height: 14px; }

  /* ─── Thanks page ─── */
  .thanks-section {
    padding: 20px 0;
  }

  .thanks-section .container {
    width: 100%;
    padding: 0 16px;
  }

  .thanks-card {
    width: 100%;
    padding: 24px;
    gap: 20px;
    border-radius: 12px;
  }

  .thanks-badge {
    gap: 6px;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 12px;
  }

  .thanks-badge img {
    width: 12px;
    height: 12px;
  }

  .thanks-card__avatar img {
    width: 100px;
    height: 100px;
  }

  .thanks-card__heading { gap: 12px; }

  .thanks-card__title {
    font-size: 20px;
    line-height: 24px;
  }

  .thanks-card__desc {
    font-size: 14px;
    line-height: 22px;
  }

  .thanks-card__btn {
    padding: 18px 32px;
  }
}

/* Процент в заголовке экрана формы. Цвет свой на каждом лендинге:
   чёрный заголовок на белой карточке.
   Числа в Manrope по умолчанию пропорциональные — из-за этого «97%» и
   «100%» дают разную ширину и заголовок подпрыгивает при смене ответов;
   tabular-nums выравнивает. */
.quiz-percent {
  color: var(--orange);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
