.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color: var(--text-color);
}

.comebacker-overlay {
  position: fixed;
  top: 0;
  left: 0;
  display: none;
  width: 100%;
  height: 100%;
  z-index: 300;
  background-color: var(--text-color);
  opacity: 0.5;
}

.popup-overlay__active {
  opacity: 0.5;
  visibility: visible;
}

.popup::-webkit-scrollbar,
.comebacker::-webkit-scrollbar {
  width: 0;
}

.popup-overlay.active,
.comebacker-overlay.active {
  display: block;
}

/* comebacker */

.comebacker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  height: 100vh;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  z-index: 999;
  transition: all  .3s ease-in-out;
}

.comebacker__container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
  margin: auto;
  width: 1011px;
  height: 670px;
  border-radius: 100px 10px 100px 100px;
  overflow-y: auto;
  background: -webkit-gradient(
      linear,
      left bottom,
      left top,
      from(var(--color-bg)),
      to(var(--color-bg))
    ),
    -webkit-gradient(linear, left bottom, left top, from(var(--color-white)), to(var(--color-white)));
  background: -o-linear-gradient(bottom, var(--color-bg), var(--color-bg)),
    -o-linear-gradient(bottom, var(--color-white), var(--color-white));
  background: linear-gradient(to top, var(--color-bg), var(--color-bg)),
    linear-gradient(to top, var(--color-white), var(--color-white));
  background-size: 49% 100%, 51% 100%;
  background-position: left center, right center;
  background-repeat: no-repeat;
}

.comebacker-active {
  opacity: 1;
  visibility: visible;
  transition: all .3s ease-in-out;
}

.comebacker__container-active {
  display: block;
}

.comebacker__content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding-right: 65px;
}

.comebacker__product {
  width: auto;
}

.comebacker__desc {
  -ms-flex-preferred-size: 41.227%;
  flex-basis: 41.227%;
}

.comebacker__title {
  margin-bottom: 20px;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 43px;
  letter-spacing: 0.02em;
  color: var(--text-color);
}

.comebacker__subtitle {
  margin-bottom: 60px;
}

.comebacker__btn {
  display: block;
  padding: 20px;
  text-align: center;
}

/* popup */

.popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  height: 100vh;
  width: 100%;
  opacity: 0;
  overflow-y: auto;
  visibility: hidden;
  transition: all .3s ease-in-out;
}

.popup__container {
  position: relative;
  width: 1010px;
  height: 670px;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
  margin: auto;
  overflow-y: auto;
  border-radius: 100px 10px 100px 100px;
  background: url("../images/popup.png"), var(--color-white);
  background-repeat: no-repeat;
  background-size: 50% 100%;
  background-position: left center;
}

.popup-active {
  opacity: 1;
  visibility: visible;
  transition: all .3s ease-in-out;
}

.popup__container-active {
  display: block;
}

.popup__close,
.comebacker__close {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 12px;
  height: 12px;
  cursor: pointer;
}

.popup__close::before,
.popup__close::after,
.comebacker__close::before,
.comebacker__close::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 50%;
  width: 100%;
  height: 2px;
  background-color: var(--color-price);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

.popup__close::before,
.comebacker__close::before {
  -webkit-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.popup__close::after,
.comebacker__close::after {
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.popup__content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  padding: 80px 65px 82px 0;
}

.popup__desc {
  -ms-flex-preferred-size: 41.27%;
  flex-basis: 41.27%;
}

.popup__title {
  margin-bottom: 10px;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 43px;
  letter-spacing: 0.02em;
  color: var(--text-color);
}

.popup__subtitle {
  margin-bottom: 40px;
  max-width: 90%;
}

.popup__form {
  position: relative;
}

@media (max-width: 1100px) {

  /* comebacker */

  .comebacker__container {
    width: 707px;
    height: 421px;
    border-radius: 60px 10px 60px 60px;
    background-size: 50% 100%, 50% 100%;
  }

  .comebacker__content {
    padding: 0 20px 9px 14px;
  }

  .comebacker__col-1 {
    -ms-flex-preferred-size: 50%;
    flex-basis: 50%;
  }

  .comebacker__product {
    width: 100%;
  }

  .comebacker__desc {
    -ms-flex-preferred-size: 47.09%;
    flex-basis: 47.09%;
  }

  .comebacker__title {
    margin-bottom: 10px;
    max-width: 95%;
    font-size: 24px;
    line-height: 29px;
    letter-spacing: 0.01em;
  }

  .comebacker__subtitle {
    margin-bottom: 40px;
  }

  /* popup  */

  .popup__container {
    width: 708px;
    height: 550px;
    border-radius: 60px 10px 60px 60px;
    background: url("../images/popup_768.png"), var(--color-white);
    background-repeat: no-repeat;
    background-size: 50% 100%;
    background-position: left center;
  }

  .popup__desc {
    -ms-flex-preferred-size: 45.495%;
    flex-basis: 45.495%;
  }

  .popup__content {
    padding: 64px 20px 61px 0;
  }

  .popup__title {
    max-width: 90%;
    font-size: 24px;
    line-height: 29px;
    letter-spacing: 0.01em;
  }

  .popup__subtitle {
    max-width: 100%;
    margin-bottom: 35px;
  }
}

@media (max-width: 737.8px) {
  
  /* comebacker */

  .comebacker__container {
    width: 374px;
    height: 718px;
    border-radius: 60px;
    background-size: 100% 60%, 100% 40%;
    background-position: center top, center bottom;
  }

  .comebacker__content {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 0 20px 40px;
  }

  .comebacker__close {
    top: 36px;
    right: 35px;
  }

  .comebacker__close::before,
  .comebacker__close::after {
    background-color: var(--color-number);
  }

  .comebacker__col-1 {
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;
    margin-bottom: 38px;
  }

  .comebacker__product {
    display: block;
    margin: 0 auto;
    width: 103%;
  }

  .comebacker__title {
    max-width: 92%;
  }

  /* popup */

  .popup__container {
    width: 374px;
    height: 719px;
    border-radius: 40px;
    background: url("../images/popup_414.png"), var(--color-white);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
  }

  .popup__content {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 285px 20px 38px;
  }

  .popup__desc {
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;
  }
}

@media (max-width: 406px) {
  /* comebacker */

  .comebacker__container {
    width: 280px;
    height: 455px;
    background-size: 100% 40%, 100% 60%;
  }

  .comebacker__close {
    top: 26px;
    right: 26px;
  }

  .comebacker__content {
    padding: 0 20px 30px;
  }

  .comebacker__col-1 {
    margin-bottom: 20px;
  }

  .comebacker__product {
    width: 63.7%;
  }

  .comebacker__title {
    font-size: 20px;
    line-height: 24px;
  }

  .comebacker__subtitle {
    margin-bottom: 15px;
  }

  /* popup */

  .popup__container {
    width: 280px;
    height: 455px;
    background: var(--color-white);
  }

  .popup__content {
    padding: 32px 20px 29px;
  }

  .popup__title {
    font-size: 20px;
    line-height: 24px;
  }

  .popup__subtitle {
    margin-bottom: 15px;
  }

  .popup__input {
    padding: 11px 15px;
  }

  .popup__btn {
    padding: 15px;
  }

  .popup__check {
    top: 142px;
    left: 15px;
  }
}
