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

button {
  font-family: inherit;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-black);
  background-color: var(--color-bg-grey);
  /* Было 1276px — впритык к ширине контента. На окне 1280 полоса
     прокрутки браузера (~15px) выдавливала страницу за край, появлялась
     горизонтальная прокрутка и правый край обрезался. */
  min-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-container {
  /* width -> max-width: контейнеру ничто не мешает сузиться, а на широких
     экранах вид остаётся прежним. */
  width: 100%;
  max-width: 1276px;
  box-sizing: border-box;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.header-hero-bullets {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ==============================
   Header
   ============================== */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-white);
  border-radius: 16px;
  padding: 16px 16px 16px 24px;
}

.header__logo-img {
  display: block;
  width: 217px;
  height: 37px;
}

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

.header__nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-grey);
  border-radius: 18px;
  padding: 10px 20px;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  color: var(--color-black);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.header__nav-link:hover {
  background-color: var(--color-nav-hover);
}

/* ==============================
   Buttons
   ============================== */

@keyframes arrow-slide {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

.btn img {
  animation: arrow-slide 1s ease-in-out infinite;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 700;
  line-height: 16px;
  white-space: nowrap;
}

.btn-black {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 18px 32px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.btn-black:hover {
  background-color: #3A3A3A;
}

.btn-yellow {
  background-color: var(--color-yellow);
  color: var(--color-black);
  padding: 18px 28px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.btn-yellow:hover {
  background-color: var(--color-yellow-hover);
}

/* ==============================
   Hero
   ============================== */

.hero {
  position: relative;
  padding: 40px;
  border-radius: 32px;
  overflow: hidden;
  background-image: url('../img/hero-bg.webp');
  background-size: cover;
  background-position: center;
}

.hero__card {
  position: relative;
  background: var(--color-white);
  max-width: 696px;
  padding: 40px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

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

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg-grey);
  border-radius: 8px;
  padding: 12px 20px;
  align-self: flex-start;
}

.hero__badge-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

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

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

.hero__title-green {
  color: var(--color-green);
}

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

.hero__actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.hero__avatars {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.hero__avatar {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--color-white);
  margin-right: -8px;
}

.hero__avatar:last-child {
  margin-right: 0;
}

.hero__social-text {
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  color: var(--color-black);
  min-width: 0;
}

.hero__social-count {
  color: var(--color-green);
  font-weight: 700;
}

/* ==============================
   Bullets
   ============================== */

.bullets {
  display: flex;
  gap: 20px;
}

.bullet {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--color-white);
  border-radius: 16px;
  padding: 20px;
}

.bullet__icon {
  display: block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

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

/* ==============================
   Steps
   ============================== */

.steps {
  background: var(--color-black);
  padding: 40px;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

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

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

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

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

.steps__card {
  flex: 1;
  padding: 32px;
  border-radius: 24px;
}

.steps__card--dark {
  background: var(--color-black-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

.steps__card--yellow {
  background: var(--color-yellow);
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}

.steps__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-grey-text-2);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 16px;
  font-weight: 700;
  line-height: 16px;
  color: var(--color-grey-text-2);
  white-space: nowrap;
}

.steps__card-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 32px;
  color: var(--color-white);
  width: 100%;
}

.steps__card--yellow .steps__card-title {
  color: var(--color-black);
}

.steps__btn {
  width: 100%;
  justify-content: center;
}

/* ==============================
   Quiz
   ============================== */

.quiz,
.quiz-final,
.quiz-disqualify {
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 40px;
  background-image: url('../img/quiz-bg.webp');
  background-size: cover;
  background-position: center;
}

.quiz::before,
.quiz-final::before,
.quiz-disqualify::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #1c1c1c 0%, rgba(28, 28, 28, 0.2) 50%);
  pointer-events: none;
}

.quiz__left {
  flex: 0 0 calc(50% - 10px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  position: relative;
}

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

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

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

.quiz__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-white);
  border-radius: 8px;
  padding: 10px 16px;
}

.quiz__badge-icon {
  display: block;
  flex-shrink: 0;
}

.quiz__badge span {
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  color: var(--color-black);
  white-space: nowrap;
}

.quiz__card {
  flex: 0 0 calc(50% - 10px);
  min-width: 0;
  background: var(--color-white);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
  position: relative;
}

/* Progress */

.quiz__progress {
  display: flex;
  align-items: center;
  width: 100%;
}

.quiz__step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--color-grey-border);
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

.quiz__step span {
  font-size: 16px;
  font-weight: 700;
  line-height: 16px;
  color: var(--color-grey-border);
  transition: color 0.2s ease;
}

.quiz__step--active {
  border-color: var(--color-green);
}

.quiz__step--active span {
  color: var(--color-green);
}

.quiz__line {
  flex: 1 0 0;
  height: 2px;
  background: var(--color-grey-border);
  transition: background-color 0.2s ease;
}

.quiz__line--active {
  background: var(--color-green);
}

/* Body */

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

.quiz__body--exit {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

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

/* Variants */

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

.quiz__option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 22px 24px;
  border-radius: 8px;
  background: var(--color-bg-grey);
  border: none;
  cursor: pointer;
  text-align: center;
  width: 100%;
}

.quiz__option--has-hint {
  padding: 14px 24px;
}

.quiz__option--active {
  background: var(--color-green);
  padding: 14px 24px;
}

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

.quiz__option--active .quiz__option-label {
  color: var(--color-white);
}

.quiz__option-hint {
  font-size: 12px;
  font-weight: 500;
  line-height: 12px;
  color: var(--color-grey-text);
}

.quiz__option--active .quiz__option-hint {
  color: var(--color-white);
}

/* Controls */

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

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

.quiz__btn-nav:disabled {
  opacity: 0.3;
  cursor: default;
}

.quiz__btn-back img {
  transform: scaleX(-1);
}

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

.quiz--hidden { display: none; }
.quiz-final { display: none; }
.quiz-final--visible { display: flex; }
.quiz-disqualify { display: none; }
.quiz-disqualify--visible { display: flex; }

/* Quiz Final */

.quiz-final__card {
  gap: 32px;
}

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

.quiz-final__title-green {
  color: var(--color-green);
}

.quiz-final__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.quiz-final__bullets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
}

.quiz-final__bullet {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-bg-grey);
  border-radius: 6px;
  padding: 14px 20px;
}

.quiz-final__bullet span {
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  color: var(--color-grey-text);
  white-space: nowrap;
}

/* Quiz Disqualify */

.quiz-disqualify__card {
  gap: 32px;
}

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

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

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

.quiz-disqualify__desc a {
  color: var(--color-green);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease;
}

.quiz-disqualify__desc a:hover {
  text-decoration-color: transparent;
}

/* Quiz Number Input */

.quiz__input-number {
  display: block;
}

/* ==============================
   For Whom
   ============================== */

.for-whom {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  width: 100%;
}

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

.for-whom__title-green {
  color: var(--color-green);
}

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

.for-whom__card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 32px;
  padding: 32px;
  background: var(--color-white);
  border-radius: 24px;
}

.for-whom__card-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 32px;
  color: var(--color-black);
  width: 100%;
}

.for-whom__card-desc {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--color-grey-text-2);
  width: 100%;
}

.for-whom__icon-wrap {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  transform: rotate(15deg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.for-whom__icon-wrap img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

/* ==============================
   Refinancing
   ============================== */

.refinancing {
  background: var(--color-white);
  padding: 40px;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.refinancing__title {
  font-size: 44px;
  font-weight: 700;
  line-height: 48px;
  color: var(--color-black);
  text-align: center;
  width: 100%;
}

.refinancing__title-green {
  color: var(--color-green);
}

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

.refinancing__card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  border-radius: 24px;
  background: var(--color-bg-grey);
}

.refinancing__card-img {
  width: 100%;
  aspect-ratio: 744 / 552;
  overflow: hidden;
}

.refinancing__card-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

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

/* ==============================
   CTA
   ============================== */

.cta {
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 40px;
  background-image: url('../img/cta-bg.webp');
  background-size: cover;
  background-position: center;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #1c1c1c 0%, rgba(28, 28, 28, 0.2) 50%);
  pointer-events: none;
}

.cta__left {
  flex: 0 0 calc(50% - 10px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  position: relative;
}

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

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

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

.cta__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-white);
  border-radius: 8px;
  padding: 10px 16px;
}

.cta__badge-icon {
  display: block;
  flex-shrink: 0;
}

.cta__badge span {
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  color: var(--color-black);
  white-space: nowrap;
}

.cta__card {
  flex: 0 0 calc(50% - 10px);
  min-width: 0;
  background: var(--color-white);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  position: relative;
}

.cta__card-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 32px;
  color: var(--color-black);
  width: 100%;
}

.cta__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

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

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

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

.cta__btn {
  width: 100%;
  justify-content: center;
}

.cta__privacy {
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  color: var(--color-grey-text);
  text-align: center;
  width: 100%;
}

.cta__privacy-link {
  color: var(--color-green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease;
}

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

/* ==============================
   Examples
   ============================== */

.examples {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.examples__title {
  font-size: 44px;
  font-weight: 700;
  line-height: 48px;
  color: var(--color-black);
  text-align: center;
  width: 100%;
}

.examples__title-green {
  color: var(--color-green);
}

.examples__table {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.examples__labels {
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 32px;
  background: var(--color-white);
  border-radius: 24px;
}

.examples__label {
  flex: 1;
  font-size: 20px;
  font-weight: 500;
  line-height: 20px;
  color: var(--color-grey-text-2);
}

.examples__card {
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 32px;
  background: var(--color-white);
  border-radius: 24px;
}

.examples__row {
  flex: 1;
  min-width: 0;
}

.examples__row-label {
  display: none;
}

.examples__line {
  display: none;
}

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

.examples__cell {
  display: flex;
  gap: 12px;
  align-items: center;
}

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

.examples__badge {
  width: 36px;
  height: 36px;
  border-radius: 22px;
  background: var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.examples__badge img {
  display: block;
}

.examples__cta {
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 32px;
  background: var(--color-green);
  border-radius: 24px;
  width: 100%;
}

.examples__cta-text {
  flex: 1;
  font-size: 28px;
  font-weight: 700;
  line-height: 32px;
  color: var(--color-white);
}

/* ==============================
   Footer
   ============================== */

.footer {
  background: var(--color-black);
  border-radius: 32px 32px 0 0;
  padding: 60px 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 80px;
}

.footer__container {
  /* Как и .page-container: жёсткая ширина давала горизонтальную прокрутку
     на окне 1280, когда полоса прокрутки съедает ~15px. */
  width: 100%;
  max-width: 1276px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.footer__logo {
  display: block;
  width: 217px;
  height: 37px;
  flex-shrink: 0;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.footer__link {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--color-footer-text);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--color-white);
}

/* ==============================
   Popup
   ============================== */

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 28, 28, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.popup {
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.popup-overlay--active .popup {
  transform: translateY(0);
  opacity: 1;
}

/* Popup Requisites */

.popup-requisites {
  position: relative;
  background: var(--color-white);
  width: 628px;
  padding: 60px;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

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

.popup-requisites__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.popup-requisites__item {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--color-black);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-grey-line);
}

.popup-requisites__item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.popup-requisites__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;
}

/* ==============================
   Desktop-only / Mobile toggles
   ============================== */

.btn__text-short { display: none; }
.hero__img { display: none; }

/* ==============================
   Mobile (@media max-width: 768px)
   ============================== */

@media (max-width: 768px) {

  body {
    min-width: 0;
  }

  .page-container {
    width: 100%;
    padding: 16px 16px 0;
    gap: 36px;
  }

  .header-hero-bullets {
    gap: 16px;
  }

  main {
    gap: 16px;
  }

  /* --- Header --- */

  .header {
    border-radius: 12px;
    padding: 12px 12px 12px 16px;
  }

  .header__logo-img {
    width: 164px;
    height: 28px;
  }

  .header__nav {
    display: none;
  }

  .header .btn-black {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 12px;
  }

  .btn__text-full { display: none; }
  .btn__text-short { display: inline; }

  /* --- Hero --- */

  .hero {
    padding: 20px;
    border-radius: 24px;
    background-image: none;
    background-color: var(--color-white);
  }

  .hero__card {
    max-width: none;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    gap: 16px;
  }

  .hero__heading {
    gap: 16px;
  }

  .hero__badge {
    gap: 6px;
    padding: 9px 12px;
  }

  .hero__badge-icon {
    width: 14px;
    height: 14px;
  }

  .hero__badge span {
    font-size: 14px;
    line-height: 14px;
  }

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

  .hero__img {
    display: block;
    width: 100%;
    aspect-ratio: 160 / 90;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
  }

  .hero__img img {
    position: absolute;
    width: 139.29%;
    height: 138.21%;
    left: -38.9%;
    top: -5.42%;
    max-width: none;
  }

  br {
    display: none;
  }

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

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

  .btn-yellow {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }

  .hero__social-proof {
    gap: 12px;
  }

  .hero__avatar {
    width: 28px;
    height: 28px;
  }

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

  /* --- Bullets --- */

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

  .bullet {
    border-radius: 12px;
    padding: 14px 20px;
    gap: 12px;
  }

  .bullet__icon {
    width: 24px;
    height: 24px;
  }

  .bullet span {
    font-size: 16px;
    line-height: 24px;
  }

  /* --- Steps --- */

  .steps {
    padding: 20px;
    border-radius: 24px;
    gap: 20px;
  }

  .steps__heading {
    gap: 16px;
  }

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

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

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

  .steps__card {
    padding: 20px;
    border-radius: 16px;
  }

  .steps__card--dark {
    justify-content: flex-start;
    gap: 20px;
  }

  .steps__card--yellow {
    gap: 20px;
  }

  .steps__badge {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 12px;
  }

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

  .steps__btn {
    padding: 14px 24px;
  }

  /* --- Quiz --- */

  .quiz,
  .quiz-final,
  .quiz-disqualify {
    flex-direction: column;
    padding: 20px;
    border-radius: 24px;
    gap: 28px;
  }

  .quiz::before,
  .quiz-final::before,
  .quiz-disqualify::before {
    background: linear-gradient(to bottom, #1c1c1c 0%, rgba(28, 28, 28, 0.2) 50%);
  }

  .quiz__left {
    gap: 20px;
    width: 100%;
  }

  .quiz__left-text {
    gap: 16px;
  }

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

  .quiz__left-subtitle {
    font-size: 16px;
    line-height: 24px;
  }

  .quiz__badge {
    gap: 6px;
    padding: 9px 12px;
  }

  .quiz__badge-icon {
    width: 14px;
    height: 14px;
  }

  .quiz__badge span {
    font-size: 14px;
    line-height: 14px;
  }

  .quiz__card {
    padding: 20px;
    border-radius: 16px;
    gap: 20px;
    width: 100%;
  }

  .quiz__step {
    width: 28px;
    height: 28px;
  }

  .quiz__step span {
    font-size: 12px;
    line-height: 12px;
  }

  .quiz__body {
    gap: 20px;
  }

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

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

  .quiz__option {
    padding: 19px 20px;
  }

  .quiz__option--has-hint {
    padding: 11px 20px;
  }

  .quiz__option--active {
    padding: 19px 20px;
  }

  .quiz__option--active.quiz__option--has-hint {
    padding: 11px 20px;
  }

  .quiz__option-label {
    font-size: 14px;
    line-height: 14px;
  }

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

  /* --- Quiz Final / Disqualify --- */

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

  .quiz-final__form {
    gap: 12px;
  }

  .quiz-final__bullets {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .quiz-final__bullet {
    padding: 11px 20px;
    gap: 8px;
  }

  .quiz-final__bullet img {
    width: 14px;
    height: 14px;
  }

  .quiz-final__bullet span {
    font-size: 14px;
    line-height: 14px;
  }

  .quiz-disqualify__heading {
    gap: 12px;
  }

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

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

  /* --- For Whom --- */

  .for-whom {
    gap: 20px;
  }

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

  .for-whom__cards {
    flex-direction: column;
    gap: 16px;
  }

  .for-whom__card {
    padding: 20px;
    border-radius: 16px;
    gap: 20px;
    width: 100%;
  }

  .for-whom__card-title {
    font-size: 20px;
    line-height: 24px;
  }

  .for-whom__icon-wrap {
    width: 68px;
    height: 68px;
  }

  /* --- Refinancing --- */

  .refinancing {
    padding: 20px;
    border-radius: 24px;
    gap: 20px;
  }

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

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

  .refinancing__card {
    padding: 20px;
    border-radius: 16px;
    gap: 12px;
    width: 100%;
  }

  .refinancing__card-text {
    gap: 12px;
  }

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

  /* --- Examples --- */

  .examples {
    gap: 20px;
  }

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

  .examples__labels {
    display: none;
  }

  .examples__card {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border-radius: 16px;
  }

  .examples__row {
    flex: unset;
    display: flex;
    align-items: flex-end;
    width: 100%;
  }

  .examples__row-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    line-height: 12px;
    color: var(--color-grey-text-2);
    white-space: nowrap;
    flex-shrink: 0;
  }

  .examples__line {
    display: block;
    height: 1px;
    background: var(--color-grey-line);
    width: 100%;
    flex-shrink: 0;
  }

  .examples__amount {
    flex: 1;
    font-size: 20px;
    line-height: 20px;
    text-align: right;
  }

  .examples__cell {
    flex: 1;
    justify-content: flex-end;
    gap: 8px;
  }

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

  .examples__badge {
    width: 20px;
    height: 20px;
  }

  .examples__badge img {
    width: 16px;
    height: 16px;
  }

  .examples__cta {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    border-radius: 16px;
  }

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

  .examples__cta .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }

  /* --- CTA --- */

  .cta {
    flex-direction: column;
    padding: 20px;
    border-radius: 24px;
    gap: 28px;
  }

  .cta::before {
    background: linear-gradient(to bottom, #1c1c1c 0%, rgba(28, 28, 28, 0.2) 50%);
  }

  .cta__left {
    gap: 20px;
    width: 100%;
  }

  .cta__left-text {
    gap: 16px;
  }

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

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

  .cta__badge {
    gap: 6px;
    padding: 9px 12px;
  }

  .cta__badge-icon {
    width: 14px;
    height: 14px;
  }

  .cta__badge span {
    font-size: 14px;
    line-height: 14px;
  }

  .cta__card {
    gap: 20px;
    padding: 20px;
    border-radius: 16px;
    width: 100%;
  }

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

  .cta__form {
    gap: 12px;
  }

  .cta__input {
    padding: 14px 20px;
  }

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

  /* --- Footer --- */

  .footer {
    border-radius: 24px 24px 0 0;
    padding: 36px 0;
    margin-top: 36px;
  }

  .footer__container {
    width: 100%;
    flex-direction: column;
    gap: 20px;
    padding: 0 16px;
  }

  .footer__links {
    gap: 4px;
    width: 100%;
  }

  .footer__link {
    font-size: 12px;
    line-height: 20px;
    white-space: normal;
  }

  /* --- Popup --- */

  .popup-overlay {
    padding: 0 16px;
  }

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

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

  .popup-requisites__list {
    gap: 8px;
  }

  .popup-requisites__item {
    font-size: 14px;
    line-height: 22px;
    padding-bottom: 8px;
  }

  .popup-requisites__close {
    top: 16px;
    right: 16px;
  }

}

/* Сообщение под формой заявки. Элемент создаёт js/quiz.js: в макете места
   под него нет, а без него отказ сервера выглядит так, будто кнопка просто
   не сработала, — и человек уходит уверенный, что заявка ушла. */
.lead-note {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--color-black);
  text-align: center;
}

.lead-note--error {
  color: #E81515;
}

.cta__input--error {
  border-color: #E81515;
  box-shadow: inset 0 0 0 1px #E81515;
}
