/**
 * Модальное окно «Повышение квалификации»
 * ПК: нижний правый угол, мобильный: пол экрана внизу
 */

.promo-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.3s, visibility 0.3s;
  -o-transition: opacity 0.3s, visibility 0.3s;
  transition: opacity 0.3s, visibility 0.3s;
}

.promo-popup__link{
	color: #f76d6d;
}

.promo-popup_visible {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.promo-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(36, 49, 94, 0.3);
  cursor: pointer;
}

.promo-popup__box {
  position: relative;
  z-index: 1;
  max-width: 400px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  -webkit-box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
          box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 24px 20px 28px;
  color: rgb(36, 49, 94);
}

.promo-popup__close {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
  color: rgba(36, 49, 94, 0.6);
  background: none;
  border: none;
  cursor: pointer;
  -webkit-transition: color 0.2s;
  -o-transition: color 0.2s;
  transition: color 0.2s;
}

.promo-popup__close:hover {
  color: rgb(247, 109, 109);
}

.promo-popup__content {
  padding-right: 8px;
}

.promo-popup__lead {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.35;
}

.promo-popup__content > p {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 12px;
  color: rgba(36, 49, 94, 0.85);
}

.promo-popup__list {
  list-style: none;
  margin: 0 0 14px 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(36, 49, 94, 0.9);
}

.promo-popup__list li {
  padding-left: 16px;
  position: relative;
  margin-bottom: 4px;
}

.promo-popup__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: rgb(247, 109, 109);
}

.promo-popup__question {
  font-weight: 500;
  margin-bottom: 14px !important;
}

.promo-popup__form.form {
  background: none;
  padding: 0;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 14px;
}

.promo-popup__form .form__items {
  gap: 12px;
}

.promo-popup__form .form__input_textarea {
  min-height: 70px;
  padding-top: 12px;
  resize: vertical;
}

.promo-popup__hint {
  margin-top: 4px;
  margin-bottom: 0;
  font-size: 12px;
  color: rgba(36, 49, 94, 0.6);
}

.promo-popup__submit {
  margin-top: 8px;
}

.promo-popup__message {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
}

.promo-popup__message_success {
  background: rgba(40, 167, 69, 0.12);
  color: #155724;
}

.promo-popup__message_error {
  background: rgba(220, 53, 69, 0.12);
  color: #721c24;
}

@media (max-width: 47.99875em) {
  .promo-popup {
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: flex-end;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    padding: 0;
  }

  .promo-popup__box {
    max-width: none;
    width: 100%;
    max-height: 97vh;
    border-radius: 16px 16px 0 0;
    padding: 20px 16px 24px;
  }

  .promo-popup__lead {
    font-size: 1rem;
  }

  .promo-popup__content > p,
  .promo-popup__list {
    font-size: 13px;
  }
}
