/* Модальное окно в стиле сайта ENDORPHIN */
.call-modal__js {
  cursor: pointer;
}

.r-modal-loader {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
}

.r-modal-loader.is-active {
  display: flex;
}

.r-modal-loader__spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: r-modal-spin 0.8s linear infinite;
}

@keyframes r-modal-spin {
  to {
    transform: rotate(360deg);
  }
}

.r-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: transparent;
}

.r-modal-overlay.is-open {
  display: flex;
}

.r-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  animation: r-modal-in 0.25s ease;
  text-align: center;
}

@keyframes r-modal-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.r-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  color: #333;
  transition: background 0.2s, color 0.2s;
}

.r-modal__close:hover {
  background: rgba(0, 0, 0, 0.12);
  color: #000;
}

.r-modal__content {
  padding: 40px 32px 36px;
}

.r-modal__media {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.r-modal__picture {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 20px;
  transform: rotate(6deg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.r-modal__title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: #111;
}

.r-modal__desc {
  margin: 0 auto 26px;
  max-width: 320px;
  font-size: 15px;
  line-height: 1.5;
  color: #555;
}

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

.r-modal__input {
  width: 100%;
  padding: 15px 16px;
  font-size: 15px;
  text-align: center;
  color: #111;
  background: #e9e9e9;
  border: 2px solid transparent;
  border-radius: 12px;
  outline: none;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.r-modal__input::placeholder {
  color: #666;
}

.r-modal__input:focus {
  background: #fff;
  border-color: #14990a;
  box-shadow: 0 0 0 4px rgba(20, 153, 10, 0.1);
}

.r-modal__button {
  width: 100%;
  margin-top: 6px;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: #14990a;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.r-modal__button:hover {
  background: #108208;
}

.r-modal__button:active {
  transform: translateY(1px);
}

.r-modal__button:disabled {
  background: #9ad495;
  cursor: not-allowed;
}

.r-modal__message {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.4;
}

.r-modal__message.is-success {
  color: #14990a;
}

.r-modal__message.is-error {
  color: #d93025;
}

@media (max-width: 480px) {
  .r-modal__content {
    padding: 32px 22px 28px;
  }

  .r-modal__picture {
    width: 120px;
    height: 120px;
  }

  .r-modal__title {
    font-size: 20px;
  }
}

/* --- Блок специальных условий --- */
.r-special {
  padding: 70px 0 80px;
  background: #fff;
}

.r-special__title {
  margin: 0 0 38px;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-transform: none;
  letter-spacing: normal;
  color: #111;
}



.r-special__title span {
  color: #14990a;
}

.r-special__grid {
  display: flex;
  gap: 28px;
  justify-content: center;
}

.r-special__card {
  flex: 1 1 360px;
  max-width: 480px;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  margin-top: 3rem;
}

.r-special__top {
  position: relative;
  min-height: 240px;
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: linear-gradient(135deg, #7fd05a 0%, #2aaa54 100%);
}

.r-special__tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #14990a;
  background: #fff;
  border-radius: 999px;
}

.r-special__icon {
  margin-top: auto;
  padding-top: 10px;
}

.r-special__icon svg {
  display: block;
  width: 140px;
  height: auto;
}

.r-special__icon img {
  display: block;
  width: 170px;
  height: auto;
}

.r-special__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 36px 36px;
  text-align: center;
}

.r-special__percent {
  margin-bottom: 14px;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.25;
  color: #111;
  height: 5rem;
  display: flex;
  align-items: center;
}

.r-special__percent span {
  color: #14990a;
}

.r-special__text {
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 2rem 0;
  font-size: 16px;
  line-height: 1.45;
  color: #333;
  height: 4rem;
}

.r-special__text span {
  color: #14990a;
  font-weight: 700;
}

.r-special__divider {
  width: 65%;
  height: 1px;
  margin: 12px auto 12px;
  background: #e5e5e5;
}

.r-special__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #14990a;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.r-special__btn:hover {
  background: #108208;
}

._r-hero__buttons ._r-hero__hint {
  position: absolute;
  left: 176px;
  z-index: 10;
  background: #e7e7e7;
  color: black;
  height: 60px;
  width: 400px;
  padding: 0 1rem 0 4rem;
  font-weight: 350;
  font-style: italic;
  font-size: 17px;
  border-radius: 1000px;
  text-align: center;
  display: flex;
  align-items: center;
}

._r-hero__buttons ._r-button {
  z-index: 20;
}

.contract_page,
.contract_subpage {
  ._r-hero__numbered {
    gap: 0;
    width: 840px;
    position: absolute;
  }

  ._r-hero__numbered-item {
    display: flex;
    align-items: center;
    gap: 7px;
  }

  ._r-hero__numbered-item div:first-child {
    font-size: 22px;
  }

  ._r-hero__numbered-item div:last-child {
    font-size: 12px;
    font-style: normal;
    font-weight: 550;
    line-height: 150%;
    text-transform: uppercase;
    max-width: 190px;
  }
}

@media (max-width: 768px) {
  .r-special {
    padding: 50px 0 60px;
  }

  .r-special__title {
    font-size: 26px;
  }

  .r-special__grid {
    flex-direction: column;
    align-items: center;
  }

  .r-special__card {
    width: 100%;
    max-width: 420px;
  }
}

@media (max-width: 1024px) {
  .r-special__percent {
    font-size: 32px;
  }
}