.popup {
  position: fixed;
  z-index: 100000;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.7);
  width: 100%;
  height: 100%;
  overflow: auto;
  -webkit-transition: opacity 0.5s linear;
  -o-transition: opacity 0.5s linear;
  transition: opacity 0.5s linear;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}

.popup.is-active {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.popup__wrapper {
  display: table;
  width: 100%;
  height: 100%;
}

.popup__inner {
  display: table-cell;
  vertical-align: middle;
  padding: 50px 15px;
}

.popup__content {
  background-color: #fff;
  width: 944px;
  box-shadow: 0px 21px 30px 2px rgba(0, 0, 0, 0.28);
  border-radius: 15px;
  padding: 6px 7px;
  margin: 0 auto;
  position: relative;
}

.btn-close {
  border: none;
  cursor: pointer;
  background: none;
  padding: 0;
  width: 50px;
  height: 50px;
  -webkit-transition: -webkit-transform 0.2s linear;
  transition: -webkit-transform 0.2s linear;
  -o-transition: transform 0.2s linear;
  transition: transform 0.2s linear;
  transition: transform 0.2s linear, -webkit-transform 0.2s linear;
  -webkit-transition: opacity 0.2s linear;
  -o-transition: opacity 0.2s linear;
  transition: opacity 0.2s linear;
  position: absolute;
  top: -10px;
  right: -44px;
}

.btn-close::before,
.btn-close::after {
  content: "";
  background-color: #fff;
  height: 30px;
  width: 4px;
  position: absolute;
  border-radius: 20px;
  top: 8px;
}

.btn-close::before {
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.btn-close::after {
  -webkit-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.btn-close:hover {
  -webkit-transform: scale(1.1);
  -ms-transform: scale(1.1);
  transform: scale(1.1);
}

.btn-close:active {
  -webkit-transform: scale(0.9);
  -ms-transform: scale(0.9);
  transform: scale(0.9);
  opacity: 0.8;
}

#third__modal {
  background: url("../img/modal/03.png") 0 100% no-repeat, #fff;
}
#second__modal {
  background: url("../img/modal/02.png") 16% 100% no-repeat, #fff;
}
#first__modal {
  background: url("../img/modal/01.png") 0 100% no-repeat, #fff;
}

.popup-presentation__item {
  border: 2px solid #dedede;
  border-radius: 15px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.popup-presentation__title {
  margin: 76px 0 0 60px;
  max-width: 306px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 300;
  color: #000000;
  letter-spacing: 0.025em;
}
.popup-presentation__title span {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: #04aaaa;
}
.second-presentation__title{
  max-width: 356px;
  margin: 62px 0 0 41px;
}

.popup-presentation__form {
  max-width: 350px;
  margin: 62px 38px;
}

.modal-input {
  max-width: 350px;
  margin-bottom: 18px;
}

.popup-presentation__form-field {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  width: 100%;
  margin-top: 0;
  padding: 0;
}
.modal__policy {
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: start;
}
.modal__policy p {
  text-align: center;
}

.modal__policy p span {
  color: #034b9f;
}
.modal__cover {
  width: 350px;
  margin-bottom: 21px;
}
.popup-close {
  font-size: 18px;
  text-decoration: underline;
  line-height: 150%;
  cursor: pointer;
}
.popup-close:hover {
  text-decoration: none;
}
/* =================================form =============================== */

@media (max-width: 1023px) {
  .popup__content {
    width: 650px;
  }
  .popup-presentation__title {
    margin: 64px 0 0 11px;
    font-size: 22px;
  }
  .popup-presentation__title span {
    font-size: 22px;
  }
  .popup-presentation__form {
    max-width: 320px;
    margin: 60px 21px;
  }
  .modal__cover {
    width: 320px;
  }
  .modal-input {
    max-width: 320px;
    margin-bottom: 18px;
  }
  #first__modal {
    background: url("../img/modal/01.png") -99% 118% no-repeat, #fff;
  }
  #third__modal {
    background: url("../img/modal/03.png") -138% 100% no-repeat, #fff;
}
}

@media (max-width: 767px) {
  .popup__content {
    width: 270px;
  }
  .popup-presentation__item {
    flex-direction: column;
  }
  .popup-presentation__title {
    margin: 30px 10px 20px 10px;
    font-size: 17px;
    text-align: center;
  }
  .popup-presentation__title span {
    font-size: 17px;
  }
  .popup-presentation__form {
    max-width: 270px;
    margin: 15px 10px;
}
.modal-input {
  max-width: 250px;
  font-size: 16px;
  padding: 20px 0 22px 59px;
}
.form__input-phone {
  background: url("../img/form/phone.png") 18px 17px no-repeat, #f2f1f1;
}
.form__input-name {
  background: url("../img/form/person.png") 18px 14px no-repeat, #f2f1f1;
}
.form__input-email {
  background: url("../img/form/email.png") 17px 13px no-repeat, #f2f1f1;
}
.modal__cover {
  width: 250px;
}
  #first__modal {
    background: #fff;
  }
  #second__modal {
    background: #fff;
  }
  #third__modal {
    background: #fff;
  }
  .btn-close {
    top: -40px;
    right: -11px;
  }
  .btn-close::before,
  .btn-close::after {
    height: 25px;
  }
}


@media (max-width: 600px) {
  .popup-presentation__title {
    font-size: 17px;
    padding: 20px;
    line-height: 120%;
  }
  .popup-presentation__descr {
    font-size: 16px;
    padding: 10px;
  }
}

/* ========================================= policy ==================================== */

.priv-policy_modal {
  padding: 40px;
}
.priv-policy__title {
  font-weight: 800;
  max-width: 600px;
  margin: 0 auto 20px auto;
  font-size: 21px;
  line-height: 120%;
  text-align: center;
  color: #29313d;
}
.priv-policy__subtitle {
  font-weight: 700;
  max-width: 600px;
  margin: 0 auto 20px auto;
  font-size: 18px;
  line-height: 120%;
  text-align: left;
  color: #29313d;
}
.priv-policy__text {
  max-width: 750px;
  font-weight: 400;
  font-size: 16px;
  line-height: 125%;
  text-align: left;
  margin: 0 auto 15px 20px;
  color: #000;
}
.priv-policy__item {
  font-weight: 400;
  font-size: 14px;
  line-height: 125%;
  text-align: left;
  padding-left: 20px;
  margin: 0 auto 10px auto;
  color: #000;
}
.politicy-close {
  margin-top: 20px;
  max-width: 240px;
  color: #000;
}
@media (max-width: 767px) {
  .priv-policy_modal {
    padding: 30px;
  }
}
@media (max-width: 600px) {
  .priv-policy_modal {
    padding: 20px;
  }
  .priv-policy__title {
    font-size: 17px;
  }
  .priv-policy__subtitle {
    font-size: 16px;
  }
  .priv-policy__text {
    font-size: 14px;
  }
  .popup-close {
    font-size: 16px;
  }
}
