.popup-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  padding: 2rem 1.5rem;
  display: none;
  overflow-y: auto;
  height: 100%;
}
.popup-bg.show {
  display: block;
}
@media only screen and (min-width: 992px) {
  .popup-bg.show {
    animation: popupBg 0.2s linear forwards;
  }
  @keyframes popupBg {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}

.popup {
  display: none;
  background-color: #fff;
  border-radius: 16px;
  position: relative;
  margin: 0 auto;
  max-width: 100%;
}
@supports (corner-shape: squircle) {
  .popup {
    corner-shape: squircle;
    border-radius: 3.2rem;
  }
}
@media only screen and (min-width: 576px) {
  .popup {
    max-width: 780px;
  }
}
@media only screen and (min-width: 992px) {
  .popup {
    border-radius: 1rem;
    width: auto;
  }
  @supports (corner-shape: squircle) {
    .popup {
      corner-shape: squircle;
      border-radius: 2rem;
    }
  }
}
.popup .popup--thanks {
  padding: 7rem 1rem 5rem !important;
}
.popup.show {
  display: block;
}
@media only screen and (min-width: 992px) {
  .popup.show {
    animation: popupShow 0.15s linear forwards;
  }
  @keyframes popupShow {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
.popup-wrap {
  min-height: 100%;
  display: flex;
  align-items: center;
}
.popup__wrap {
  padding: 40px 20px 20px;
  width: 100%;
}
@media only screen and (min-width: 992px) {
  .popup__wrap {
    padding: 46px 60px;
  }
}
.popup__close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  cursor: pointer;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  border-radius: 0.4rem;
  transition: 0.2s ease-in-out;
}
.popup__close:hover {
  background-color: #f5f5f5;
}
.popup__img {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem 1rem;
  flex-wrap: wrap;
}
.popup__img .img-p {
  width: 100%;
  display: flex;
  justify-content: center;
  border: none;
  padding: 0;
}
.popup__img li {
  border-right: 0.03rem solid #bbbcd5;
  padding-right: 1rem;
}
.popup__img li:last-of-type {
  border: 0;
  padding: 0;
}
.popup__img img {
  display: block;
  width: 100%;
  height: auto;
}
.popup__video {
  margin-bottom: 3rem;
}
.popup__title {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.8rem;
  font-size: 2.4rem;
  line-height: 2.7rem;
}
@media only screen and (min-width: 992px) {
  .popup__title {
    margin-bottom: 1.6rem;
  }
}
.popup__title + .popup__bttn {
  margin: 1rem auto 0;
  display: block;
  text-align: center;
}
@media only screen and (min-width: 992px) {
  .popup__title + .popup__bttn {
    width: fit-content;
  }
}
.popup__subtitle {
  font-size: 1.8rem;
  line-height: 2.2rem;
}
@media only screen and (min-width: 992px) {
  .popup__subtitle {
    font-size: 2.2rem;
    line-height: 2.5rem;
  }
}
.popup__descr {
  font-size: 1.4rem;
  line-height: 120%;
  margin-top: 1.6rem;
  text-align: center;
}
@media only screen and (min-width: 992px) {
  .popup__descr {
    margin-top: 3rem;
  }
}
.popup__descr-short {
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 120%;
  letter-spacing: -0.02em;
  color: #7c858e;
  margin-top: 3.2rem;
  text-align: center;
  max-width: 50rem;
}
@media only screen and (min-width: 992px) {
  .popup__descr-short {
    margin: 2rem auto 1.4rem;
  }
}
.popup ul {
  counter-reset: numbers;
}
.popup__list {
  background-color: #fff;
  padding: 2rem 3rem;
  border-radius: 0.4rem;
  margin-bottom: 3rem;
  text-align: left;
}
.popup__list-title, .popup__list-descr {
  margin-bottom: 2rem;
}
.popup__list.list-numbers > li:before {
  background-color: #fff !important;
}
.popup__list ul {
  margin-top: 1rem;
}
.popup__documents-title, .popup__documents-descr {
  margin-bottom: 2rem;
}
.popup__documents-items {
  margin-bottom: 3rem;
}
.popup__documents-item.module-documents__item {
  width: 100%;
}
.popup__documents-item.module-documents__item:not(:last-of-type) {
  margin-bottom: 1rem;
}
.popup .main__form {
  padding: 0;
}
.popup__form {
  margin-top: 3.2rem;
}
.popup__info br {
  content: "";
  display: block;
  height: 1rem;
}
.popup__info strong {
  font-size: 1.6rem;
}
.popup__info ul {
  margin-top: 1rem;
}
.popup__info ul.grid-2 {
  grid-gap: 10px 20px;
}
.popup__info ul li {
  display: flex;
  align-items: center;
}
.popup__info + .popup__bttn {
  text-align: center;
  margin-top: 2.4rem;
}
.popup .switch-section-step {
  display: none;
}
.popup .switch-section-step.active {
  display: block;
}
.popup .switch-section-step-first {
  padding: 2rem 3rem 3rem 3rem;
}
.popup .switch-section-next .popup__img {
  display: none;
}

.popup--thanks {
  text-align: center;
  padding: 7rem 1rem 5rem !important;
}
@media only screen and (min-width: 992px) {
  .popup--thanks {
    padding: 6rem 3.2rem 6rem !important;
  }
}
.popup--thanks .popup__title {
  font-size: 2.4rem;
  margin-right: 0;
}
.popup--thanks .popup__subtitle {
  margin-top: 0.8rem;
}
.popup--thanks .popup__bttn {
  margin-top: 3rem;
}
.popup--thanks .popup__img {
  display: block;
}
.popup--thanks .popup__img img {
  max-width: 28rem;
  height: auto;
  margin: 0 auto !important;
}
@media only screen and (min-width: 992px) {
  .popup--thanks .popup__img img {
    max-width: 28.7rem;
  }
}
@media only screen and (min-width: 992px) {
  .popup--thanks .popup__wrap {
    margin-top: 4.8rem;
  }
}

.popup--img .popup__close svg {
  filter: invert(0) !important;
}
.popup--img .popup__close:hover {
  background-color: rgba(255, 255, 255, 0.25);
}
.popup--img .popup__img {
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}
@media only screen and (min-width: 992px) {
  .popup--img .popup__head {
    background-color: #f7f7f7;
    padding-bottom: 3.2rem;
  }
  .popup--img .popup__title {
    margin: 1.6rem 0 0;
    text-align: center;
  }
}

.popup--subscribe {
  max-width: 971px;
}
.popup--subscribe .popup__wrapper {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 12px 14px;
}
@media only screen and (min-width: 992px) {
  .popup--subscribe .popup__wrapper {
    flex-direction: row;
    padding: 16px;
  }
}
.popup--subscribe .popup__close svg {
  filter: invert(0);
}
.popup--subscribe .popup__close:hover {
  background-color: #f5f5f5;
}
.popup--subscribe .popup__img {
  max-width: 389px;
}
.popup--subscribe .popup__wrap {
  padding: 16px 0 0;
}
@media only screen and (min-width: 992px) {
  .popup--subscribe .popup__wrap {
    padding: 32px 50px 16px;
  }
}
.popup--subscribe .popup__title {
  color: #030303;
  margin: 0;
  text-align: center;
  font-weight: 500;
  line-height: 110%;
  font-size: 26px;
}
@media only screen and (min-width: 992px) {
  .popup--subscribe .popup__title {
    font-size: 38px;
  }
}
.popup--subscribe .popup__subtitle {
  color: #030303;
  margin-top: 26px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}
@media only screen and (min-width: 992px) {
  .popup--subscribe .popup__subtitle {
    margin-top: 36px;
    font-size: 20px;
  }
}
.popup--subscribe .popup__descr {
  color: #030303;
  margin-top: 21px;
  font-size: 13px;
  text-align: left;
}
@media only screen and (min-width: 992px) {
  .popup--subscribe .popup__descr {
    margin-top: 24px;
    font-size: 14px;
  }
}
.popup--subscribe .popup__descr ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.popup--subscribe .popup__descr ul li {
  position: relative;
  padding-left: 24px;
  font-size: inherit;
}
@media only screen and (min-width: 992px) {
  .popup--subscribe .popup__descr ul li {
    flex-direction: row;
  }
}
.popup--subscribe .popup__descr ul li::before {
  content: "";
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='14' viewBox='0 0 15 14' fill='none'%3E%3Cpath d='M7.5 0L9.39064 5.10936L14.5 7L9.39064 8.89064L7.5 14L5.60936 8.89064L0.5 7L5.60936 5.10936L7.5 0Z' fill='%235ECE06'/%3E%3C/svg%3E") no-repeat center center;
  background-size: cover;
  position: absolute;
  top: 0;
  left: 0;
}
.popup--subscribe .popup__form .wpcf7 input[type=submit] {
  background-color: #030303;
  height: 50px;
  font-size: 13px;
  font-weight: 500;
  text-transform: inherit;
}
@media only screen and (min-width: 992px) {
  .popup--subscribe .popup__form .wpcf7 input[type=submit] {
    height: 58px;
    font-size: 14px;
  }
}
.popup--subscribe .popup__form .wpcf7 input[type=submit]:hover {
  background-color: rgba(3, 3, 3, 0.8);
}
.popup--subscribe .popup__form .wpcf7-form-control-wrap input {
  background: #fff;
  border: 1px solid #030303;
  height: 50px;
  color: #030303;
  font-size: 12px;
}
@media only screen and (min-width: 992px) {
  .popup--subscribe .popup__form .wpcf7-form-control-wrap input {
    height: 58px;
    font-size: 14px;
  }
}
.popup--subscribe .popup__form .wpcf7-form-control-wrap input::placeholder {
  color: #858c94;
}
.popup--subscribe .popup__form .wpcf7-acceptance .wpcf7-list-item-label a {
  color: #030303;
}

.popup--discount {
  padding: 0 !important;
}
.popup--discount .popup__close svg {
  filter: invert(0);
}
.popup--discount .popup__img {
  max-width: 39.3rem;
  margin: 0 auto;
  margin-top: -4rem;
}
.popup--discount .popup__info {
  max-width: 49rem;
}
.popup--discount .popup__info h2 {
  text-align: center;
}
.popup--discount .popup__info h2 strong {
  font-size: inherit;
  color: #2980ff;
}
.popup--discount .popup__info h2 + h4 {
  margin-top: 1.2rem;
}
.popup--discount .popup__info h4 {
  text-align: center;
  font-weight: 600;
  font-size: 2rem;
}
@media only screen and (min-width: 992px) {
  .popup--discount .popup__info h4 {
    font-size: 1.8rem;
  }
}
.popup--discount .popup__info h4 + p {
  margin-top: 1.2rem;
}
.popup--discount .popup__info p {
  text-align: center;
  color: #606492;
}
.popup--discount .popup__descr-short {
  margin-top: 1.2rem;
}
@media only screen and (min-width: 992px) {
  .popup--discount .popup__title {
    margin: 2.8rem 0 0;
    text-align: center;
    font-size: 1.6rem;
  }
  .popup--discount .bttn-step {
    min-width: 41.2rem;
  }
}
@media only screen and (max-width: 576px) {
  .popup--discount .bttn-step {
    width: 100%;
  }
}

#popup-thanks {
  max-height: 66rem;
  height: 100%;
  max-width: 76rem;
  width: 100%;
}
#popup-thanks .popup__wrap {
  height: 100%;
}
#popup-thanks .popup__info {
  margin-top: 4.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#popup-thanks .popup__title {
  font-size: 2.8rem;
  line-height: 3.2rem;
}
@media only screen and (min-width: 992px) {
  #popup-thanks .popup__title {
    font-size: 4.2rem;
    line-height: 4.8rem;
  }
}