.home-payment-options {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 34px);
  margin-top: clamp(34px, 5vw, 72px);
  margin-bottom: clamp(18px, 3vw, 34px);
  color: #101820;
}

.home-payment-options__header {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.home-payment-options__title {
  margin: 0;
  color: #101820;
  font-family: var(--font-ui, Arial, sans-serif);
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 800;
  line-height: 1.08;
}

.home-payment-options__description {
  max-width: 650px;
  margin: 0;
  color: #767e8b;
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 500;
  line-height: 1.55;
}

.home-payment-options__content {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
  gap: 18px;
  align-items: stretch;
}

.home-payment-options__left,
.home-payment-options__right {
  min-width: 0;
}

.home-payment-options__left {
  display: grid;
  grid-template-rows: minmax(390px, 1fr) 64px;
  gap: 18px;
}

.home-payment-options__right {
  display: grid;
  grid-template-rows: minmax(184px, .95fr) auto minmax(226px, auto);
  gap: 18px;
}

.home-payment-options__small-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-payment-card,
.home-payment-options__mortgage-link {
  border: 0;
  border-radius: 8px;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.home-payment-card {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 184px;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease;
}

.home-payment-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 58px rgba(46, 33, 96, .16);
}

.home-payment-card--primary {
  min-height: 390px;
  justify-content: flex-start;
  gap: 24px;
  padding: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 80%, rgba(255, 198, 146, .34), transparent 23%),
    linear-gradient(135deg, #2E2160 0%, #432e86 52%, #271b58 100%);
}

.home-payment-card--secondary {
  color: #101820;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(246, 245, 250, .94)),
    #f4f2f7;
  padding-right: 92px;
}

.home-payment-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.home-payment-card__tag {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 30px;
  align-items: center;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  color: var(--brand-purple, #2E2160);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: lowercase;
}

.home-payment-card__body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  max-width: 430px;
}

.home-payment-card__title {
  display: block;
  color: inherit;
  font-size: clamp(20px, 1.55vw, 26px);
  font-weight: 800;
  line-height: 1.18;
}

.home-payment-card__text {
  display: block;
  color: currentColor;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  opacity: .74;
}

.home-payment-card__arrow {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: #101820;
  transition: color .22s ease, transform .22s ease;
}

.home-payment-card__arrow svg,
.home-payment-options__mortgage-link svg,
.home-payment-offer__submit svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.home-payment-card:hover .home-payment-card__arrow {
  color: var(--brand-purple, #2E2160);
  transform: scale(1.06);
}

.home-payment-card--secondary .home-payment-card__arrow {
  position: absolute;
  top: 28px;
  right: 28px;
  margin-top: 0;
}

.home-payment-card--tranche {
  min-height: 76px;
  justify-content: center;
  padding: 18px 92px 18px 28px;
}

.home-payment-card--tranche .home-payment-card__body {
  gap: 4px;
  max-width: 620px;
}

.home-payment-card--tranche .home-payment-card__title {
  font-size: clamp(18px, 1.25vw, 22px);
}

.home-payment-card--tranche .home-payment-card__text {
  font-size: 14px;
}

.home-payment-card__percent {
  position: absolute;
  right: -10px;
  bottom: -88px;
  color: rgba(255, 198, 146, .52);
  font-size: clamp(190px, 18vw, 290px);
  font-weight: 900;
  line-height: .8;
  transform: rotate(-10deg);
}

.home-payment-options__mortgage-link {
  display: inline-flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: #f4f2f7;
  color: var(--brand-purple, #2E2160);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  transition: background-color .22s ease, transform .22s ease;
}

.home-payment-options__mortgage-link:hover {
  background: #ece8f4;
  transform: translateY(-1px);
}

.home-payment-offer {
  position: relative;
  display: grid;
  min-height: 226px;
  margin-top: 0;
  overflow: hidden;
  align-content: start;
  gap: 22px;
  padding: 28px;
  border-radius: 8px;
  background: #f4f2f7;
}

.home-payment-offer::before {
  content: none;
}

.home-payment-offer__copy,
.home-payment-offer__form {
  position: relative;
  z-index: 1;
}

.home-payment-offer__copy {
  display: grid;
  gap: 8px;
}

.home-payment-offer__copy h3 {
  max-width: 720px;
  margin: 0;
  color: #101820;
  font-size: clamp(19px, 1.35vw, 24px);
  font-weight: 800;
  line-height: 1.22;
}

.home-payment-offer__copy p {
  margin: 0;
  color: #767e8b;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

.home-payment-offer__form {
  display: grid;
  gap: 10px;
}

.home-payment-offer__inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 56px;
  gap: 8px;
  align-items: start;
}

.home-payment-offer__inputs label {
  display: grid;
  min-width: 0;
  min-height: 56px;
  align-content: center;
  padding: 8px 18px;
  border-radius: 8px;
  background: #fff;
}

.home-payment-offer__inputs span {
  color: #767e8b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.home-payment-offer__inputs input {
  width: 100%;
  min-width: 0;
  margin-top: 4px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #101820;
  font: inherit;
  font-size: 15px;
  line-height: 1.2;
}

.home-payment-offer__submit {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  background: var(--brand-purple, #2E2160);
  color: #fff;
  cursor: pointer;
  transition: transform .22s ease, background-color .22s ease;
}

.home-payment-offer__submit-label {
  display: none;
  color: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.home-payment-offer__submit:hover {
  background: #3b2a77;
  transform: scale(1.03);
}

.home-payment-offer__submit:disabled {
  cursor: wait;
  opacity: .72;
}

.home-payment-offer__policy,
.home-payment-offer__status {
  margin: 0;
  color: #767e8b;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.home-payment-offer__policy a {
  color: var(--brand-purple, #2E2160);
  font-weight: 800;
  text-decoration: none;
}

.home-payment-offer__status {
  min-height: 18px;
  color: var(--brand-purple, #2E2160);
}

.home-payment-offer__form.is-error .home-payment-offer__status {
  color: #b12b2b;
}

@media (max-width: 1100px) {
  .home-payment-options__content {
    grid-template-columns: 1fr;
  }

  .home-payment-options__left,
  .home-payment-options__right {
    grid-template-rows: auto;
  }

  .home-payment-card--primary {
    min-height: 330px;
  }
}

@media (max-width: 750px) {
  .home-payment-options {
    margin-top: 36px;
  }

  .home-payment-options__header,
  .home-payment-options__small-grid,
  .home-payment-offer__inputs {
    grid-template-columns: 1fr;
  }

  .home-payment-card,
  .home-payment-offer {
    padding: 22px 20px;
  }

  .home-payment-card--secondary {
    padding-right: 82px;
  }

  .home-payment-card--secondary .home-payment-card__arrow {
    top: 20px;
    right: 20px;
  }

  .home-payment-card__percent {
    right: -6px;
    bottom: -54px;
    font-size: 170px;
  }

  .home-payment-card--primary {
    min-height: 300px;
    gap: 22px;
    padding: 22px 20px;
  }

  .home-payment-card--secondary {
    min-height: 170px;
  }

  .home-payment-offer__submit {
    width: 100%;
  }

  .home-payment-offer__submit-label {
    display: inline;
  }
}
