/* ============================================================
   MORTGAGE — Ипотека и способы оплаты
   ============================================================ */

.mortgage {
  background: #FFFFFF;
  padding: var(--section-py) var(--container-padding);
  font-family: 'Sora', system-ui, sans-serif;
  color: #1A1A1A;
}

.mortgage__container {
  max-width: var(--container-max);
  margin: 0 auto;
}

/* ---------- Заголовок ---------- */
.mortgage__head {
  max-width: 880px;
  margin: 0 0 clamp(40px, 5vw, 64px);
}

.mortgage__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4A6815;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.mortgage__label::before {
  content: "";
  width: 32px;
  height: 2px;
  background: #C9F25A;
  border-radius: 2px;
}

.mortgage__title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.mortgage__title-accent {
  color: #6B6B6B;
  font-weight: 300;
}

.mortgage__subtitle {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.55;
  color: #2A2A2A;
  font-weight: 400;
  margin: 0;
  max-width: 640px;
}

.mortgage__subtitle strong {
  color: #4A6815;
  font-weight: 600;
}

/* ---------- 3 карточки программ ---------- */
.mortgage__programs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
  margin-bottom: clamp(32px, 4vw, 48px);
}

.mortgage__card {
  background: #FAFAF7;
  border: 1px solid #E5E2D8;
  border-radius: 20px;
  padding: clamp(24px, 2.5vw, 32px);
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.mortgage__card:hover {
  border-color: #C9F25A;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(74, 104, 21, 0.08);
}

.mortgage__card--hit {
  background: linear-gradient(180deg, #FAFAF7 0%, rgba(201, 242, 90, 0.18) 100%);
  border-color: rgba(201, 242, 90, 0.55);
}

.mortgage__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #C9F25A;
  color: #1A1A1A;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 6px;
}

.mortgage__card-name {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: #1A1A1A;
}

.mortgage__card-text {
  font-size: 15px;
  line-height: 1.5;
  color: #2A2A2A;
  font-weight: 400;
  margin: 0;
}

/* ---------- Карточка "Нет участка?" ---------- */
.mortgage__land {
  background: #1A1A1A;
  color: #FFFFFF;
  border-radius: 24px;
  padding: clamp(32px, 4vw, 48px);
  margin-bottom: clamp(32px, 4vw, 48px);
  position: relative;
  overflow: hidden;
}

.mortgage__land::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(201, 242, 90, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.mortgage__land-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(24px, 3vw, 36px);
  position: relative;
  z-index: 1;
}

.mortgage__land-icon {
  font-size: 32px;
  line-height: 1;
}

.mortgage__land-title {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}

.mortgage__land-title span {
  color: #C9F25A;
}

.mortgage__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  position: relative;
  z-index: 1;
}

.mortgage__step {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
  position: relative;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.mortgage__step:hover {
  background: rgba(201, 242, 90, 0.08);
  border-color: rgba(201, 242, 90, 0.3);
}

.mortgage__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #C9F25A;
  color: #1A1A1A;
  font-size: 13px;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 12px;
}

.mortgage__step-text {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: #FFFFFF;
  margin: 0;
}

/* ---------- Чек-лист сопровождения ---------- */
.mortgage__service {
  background: #FAFAF7;
  border: 1px solid #E5E2D8;
  border-radius: 20px;
  padding: clamp(28px, 3vw, 40px);
  margin-bottom: clamp(32px, 4vw, 48px);
}

.mortgage__service-title {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: #1A1A1A;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mortgage__service-title::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #C9F25A;
  color: #1A1A1A;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50%;
}

.mortgage__service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}

.mortgage__service-list li {
  font-size: 15px;
  line-height: 1.5;
  color: #2A2A2A;
  padding-left: 24px;
  position: relative;
}

.mortgage__service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 8px;
  border-left: 2px solid #4A6815;
  border-bottom: 2px solid #4A6815;
  transform: rotate(-45deg);
}

.mortgage__service-save {
  display: inline-block;
  background: #C9F25A;
  color: #1A1A1A;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
}

/* ---------- Низ блока: банки + маткапитал + CTA ---------- */
.mortgage__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: clamp(20px, 2.5vw, 32px);
  border-top: 1px solid #E5E2D8;
}

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

.mortgage__banks-label {
  font-size: 13px;
  color: #6B6B6B;
  font-weight: 500;
}

.mortgage__bank {
  font-size: 15px;
  font-weight: 600;
  color: #1A1A1A;
  padding: 8px 14px;
  background: #FAFAF7;
  border: 1px solid #E5E2D8;
  border-radius: 10px;
}

.mortgage__matkap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #2A2A2A;
}

.mortgage__matkap-icon {
  font-size: 18px;
}

.mortgage__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1A1A1A;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 16px 28px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.mortgage__cta:hover {
  background: #C9F25A;
  color: #1A1A1A;
  transform: translateY(-2px);
}

.mortgage__cta-arrow {
  transition: transform 0.25s ease;
}

.mortgage__cta:hover .mortgage__cta-arrow {
  transform: translate(4px, -4px);
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .mortgage__programs {
    grid-template-columns: 1fr;
  }
  .mortgage__steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .mortgage__service-list {
    grid-template-columns: 1fr;
  }
  .mortgage__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .mortgage__cta {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .mortgage__steps {
    grid-template-columns: 1fr;
  }
  .mortgage__land-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}