.popup__support-fix,
.popup__review,
.popup__support {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .7);
  backdrop-filter: blur(25px);
  top: 0;
  left: 0;
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  transition: all ease .2s 0s;
}
.popup__support-fix.open,
.popup__review.open,
.popup__support.open {
  opacity: 1;
  visibility: visible;
}
.popup__support-fix.open .popup__support__content,
.popup__review.open .popup__support__content ,
.popup__support.open .popup__support__content {
  opacity: 1;
}
.label__name,
.label__phone {
  display: none;
  margin-top: 12px;
  color: var(--red, #D7171F);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
}
.label__name.hide,
.label__phone.hide {
  display: block;
}
.popup__support__body {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: right;
  padding: 30px 10px;
}
.popup__support__content{
  max-width: 800px;
  width: 100%;
  background: #FFF;
  height: 1080px;
  position: relative;
  z-index: 5;
  top: -30px;
  /* left: 28%; */
}

.popup-video .popup__support__content {
  max-width: 100%;
  left: 0;
}

.popup-video-wrapper {
  text-align: center;
  height: 100%;
  position: relative;
  top: 20%;
}

.popup-video-wrapper iframe {
  width: 800px;
  height: 450px;
}

.popup__text {
  margin-top: 20px;
  padding-right: 20px;
  color: #000;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%; /* 28.8px */
}
.popup__image-wrapper {
  z-index: 15;
  position: absolute;
  margin-top: 20px;
  left: 87%;
}
.popup__support__close-img {
  cursor: pointer;
  width: 60px;
  height: 60px;
}
.popup__support__text-wrapper {
  max-width: 640px;
  width: 100%;
  margin: 60px;
  margin-left: 48px;
}

.popup__title {
  width: 640px;
  color: var(--black, #081A32);
  font-family: 'PantonSemibold';
  font-size: 48px;
  font-style: normal;
  font-weight: 600;
  line-height: 100%; 
}
.popup__form {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
}
.popup__name-wrapper,
.popup__phone-wrapper {
  position: relative;
}
.star__name,
.star__phone {
  z-index: 6;
  position: absolute;
  left: 625px;
  top: 10px;
  width: 9px;
}
.popup__name,
.popup__phone {
  position: relative;
  max-width: 640px;
  width: 100%;
  height: 68px;
  border-radius: 6px;
  background: var(--bg, #ECF1F6);
  padding-left: 20px;
  z-index: 6;
  color: var(--gray-text, #788999);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  cursor: pointer;
}
.popup__name.wrong:valid,
.popup__phone.wrong:valid,
.popup__name.wrong:focus:valid,
.popup__phone.wrong:focus:valid {
  outline-color: #D7171F;
  border: #D7171F 2px solid;
}
.popup__name:focus:valid,
.popup__phone:focus:valid {
  outline-color: #0D4DA1;
}
.popup__name.active:focus,
.popup__phone.active:focus {
  outline-color: #D7171F;
} 

.popup__name::placeholder,
.popup__phone::placeholder  {
  color: var(--gray-text, #788999);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
}
.popup__phone-wrapper {
  margin-top: 12px;
}
.popup__checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 40px;
}



.popup__checkbox-label {
  color: var(--black, #081A32);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%; /* 20.8px */
}
.popup__send-wrapper {
  margin-top: 40px;
  display: flex;
  gap: 16px;
}

.popup__send-wrapper .wpcf7-spinner {
  display: none;
}

.send__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 167px;
  height: 60px;
  border-radius: 32px;
  background: #D7171F;
  color: #FFF;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 110%;
  transition: .3s ease all;
}

.send__btn:hover {
  color: #081A32;
}

.send__btn:hover,
.send__btn:disabled {
  background: #ECF1F6;
}

.popup__send-wrapper:hover svg.popup__arrow path {
  fill: #081A32;
}

.custom-checkbox {
  position: absolute;
  width: 20px;
  height: 20px;
  z-index: -1;
  opacity: 0;
  transition: all .2s ease;
  
}
.custom-checkbox+label {
  display: inline-flex;
  align-items: center;
  user-select: none;
}
.custom-checkbox+label::before,
.custom-checkbox+.wpcf7-list-item-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  flex-grow: 0;
  border: 1px solid transparent;
  background-color: #ECF1F6;
  border-radius: 8px;
  margin-right: 13px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
  transition: .2s ease all;
}
.custom-checkbox:checked+label::before,
.custom-checkbox:checked+.wpcf7-list-item-label::before {
  border: none;
  background-color: #fff;
  background-image: url("../img/icons/checkbox.svg");
}
.wpcf7-acceptance .wpcf7-list-item {
  margin-left: 0;
}
.wpcf7-acceptance .wpcf7-list-item-label {
  display: flex;
  align-items: center;
}
.popup__support .wpcf7-not-valid-tip {
  margin-top: 12px;
}
.custom-checkbox.active:not(:disabled):not(:checked)+label::before {
  border-color: #D7171F;
}
.custom-checkbox:not(:disabled):not(:checked)+label:hover::before {
  cursor: pointer;
}
.custom-checkbox:not(:disabled):active+label::before {
  background-color: #fff;
}

/*  */
.popup__support__content.review {
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 300px;
}
.popup-review__title-wrapper {
  display: flex;
  align-items: center;
  gap: 48px;
}
.popup-review__img {
  width: 250px;
  height: 250px;
}
.popup-review__title {
  color: var(--black, #081A32);
  font-size: 48px;
  font-style: normal;
  font-weight: 600;
  line-height: 100%; /* 48px */
}
.popup-review__text-wrapper {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.popup-review__text {
  color: var(--black, #081A32);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%; /* 23.4px */
}
.letter__wrapper {
  margin-top: 68px;
  border-radius: 32px;
  border: 1px solid var(--sup, #D8DFE5);
  background: #FFF;
  width: 100%;
  height: 413px;
  display: flex;
  justify-content: space-between;
  padding: 32px;
}
.letter__title {
  color: var(--black, #081A32);
  font-size: 32px;
  font-style: normal;
  font-weight: 600;
  line-height: 100%; /* 32px */
}
.letter__img {
  border-radius: 32px;
  width: 265px;
  height: 366px;
  flex-shrink: 0;
  cursor: pointer;
}

.img__fullscreen-wrapper {
  position: fixed;
  top: 0;
  left:0;
  z-index: 15;
  background-color: rgba(0, 0, 0, .7);
  backdrop-filter: blur(25px);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all .5s ease-in-out;
  transform: translateX(0);
}
.img__fullscreen-wrapper.hide {
  transform: translateX(3000px);
}
.crest__full {
  cursor: pointer;
  top: 70px;
  left: 67%;
  position: absolute;
  width: 60px;
  height: 60px;
}
.letter__full {
  width: 500px;
  height: 1000px;
  object-fit: contain;
}

/* Плашки «что на выходе» на странице услуги переиспользуют попап отзыва, но
   его размеры зашиты под портретное благодарственное письмо: 265×366 без
   object-fit сплющивают любой горизонтальный скриншот, а крестик полноэкранного
   вида позиционирован от ширины 500px. Модификатор снимает эти ограничения;
   письма отзывов остаются как были. */
.popup__review--artifact .popup__support__content.review {
  height: auto;
  max-height: calc(100vh - 60px);
  padding-bottom: 60px;
}

.popup__review--artifact .letter__wrapper {
  margin-top: 40px;
  height: auto;
  padding: 24px;
}

.popup__review--artifact .letter__img {
  width: 100%;
  height: auto;
  max-height: 60vh;
  border-radius: 16px;
  object-fit: contain;
}

.popup__review--artifact .letter__full {
  width: auto;
  height: auto;
  max-width: 88vw;
  max-height: 88vh;
}

.popup__review--artifact .crest__full {
  top: 40px;
  left: auto;
  right: 40px;
}
/*  */

@media (min-width: 1830px) {
  .popup__support__content {
    /* ri: 30%; */
  }
}
@media (max-width: 1620px) {
  .popup__support__content {
    /* left: 26%; */
  }
}
@media (max-width: 1500px) {
  .popup__support__content {
    /* left: 24%; */
  }
}
@media (max-width: 1380px) {
  .popup__support__content {
    /* left: 22%; */
  }
}
@media (max-width: 1290px) {
  .popup__support__content {
    /* left: 20%; */
  }
}
@media (max-width: 1200px) {
  .popup__support__content {
    /* left: 18%; */
  }
}
@media (max-width: 1120px) {
  .popup__support__content {
    /* left: 15%; */
  }
}
@media (max-width: 1025px) {
  .popup__support__content {
    /* left: 12%; */
  }
}
@media (max-width: 950px) {
  .popup__support__content {
    /* left: 8%; */
  }
  .crest__full {
    /* left: 90%; */
  }
}
@media (max-width: 860px) {
  .popup__support__body {
    padding: 0;
  }
  .popup__support__content {
    left: 0;
    max-width: 100%;
    height: 1080px;
  }
  .popup__support__text-wrapper {
    margin-top: 130px;
  }
  .popup__image-wrapper {
    margin-top: 50px;
  }
}
@media (max-width: 740px) {
  .popup__support__text-wrapper.review {
    margin-left: 20px;
    max-width: 640px;
    padding-right: 40px;
    width: 100%;
  }
  .letter__wrapper {
    flex-direction: column;
    align-items: center;
    height: 100%;
    gap: 20px;
  }
  .popup-review__img {
    width: 150px;
    height: 150px;
  }
  .popup-review__title-wrapper {
    flex-direction: column;
  }
  .popup-review__title {
    font-size: 32px;
  }
}
@media (max-width: 710px) {
  .popup__title {
    font-size: 36px;
  }
  .popup__support__close-img {
    height: 50px;
    width: 50px;
  }
  .popup__name,
  .popup__phone {
    width: 500px;
    height: 55px;
  }
  .popup__form {
    width: 500px;
  }
  .star__name,
  .star__phone {
    left: 483px;
  }
  .popup__text {
    max-width: 500px;
    padding-right: 20px;
  }
}
@media (max-width: 650px) {
  .popup-video-wrapper {
    top: 30%;
  }
  .popup-video-wrapper iframe {
    width: 90%;
    height: 200px;
  }
  .crest__full {
    left: 85%;
  }
  .letter__full {
    width: 300px;
    height: 500px;
    object-fit: contain;
  }
}
@media (max-width: 560px) {
  .popup__support__text-wrapper {
    margin-left: 25px;
    padding-right: 25px;
  }
  .popup__title {
    font-size: 30px;
  }
  .popup__name,
  .popup__phone,
  .popup__name-wrapper,
  .popup__phone-wrapper,
  .popup__form,
  .popup__support__text-wrapper {
    width: 350px;
  }
  .popup__support__text-wrapper.fix {
    max-width: 450px;
    width: 100%;
    
  }
  .popup__text {
    overflow: auto;
  }
  .star__name,
  .star__phone {
    left: 330px;
  }
}
@media (max-width: 400px) {
  .popup__name,
  .popup__phone,
  .popup__name-wrapper,
  .popup__phone-wrapper,
  .popup__form,
  .popup__support__text-wrapper {
    width: 300px;
  }
  .crest__full {
    width: 50px;
    height: 50px;
    top: 20px;
  }
  .star__name,
  .star__phone {
    left: 280px;
  }
  .popup__title {
    font-size: 26px;
  }
  .popup__image-wrapper {
    left: 80%;
  }
  .popup__support__close-img {
    margin-left: 15px;
  }
}