.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: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  height: 100vh;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  z-index: 999;
  -webkit-transition: all  .3s ease-in-out;
  -o-transition: all  .3s ease-in-out;
  transition: all  .3s ease-in-out;
}

.comebacker__container {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  display: none;
  margin: auto;
  width: 770px;
  height: 525.5px;
  border-radius: 10px;
  overflow-y: auto;
  background: url('../img/comebacker.png'), #fff;
  background-size: 52% 100%, 48% 100%;
  background-position: left center, right center;
  background-repeat: no-repeat;
}

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

.comebacker__container-active {
  display: block;
}

.comebacker__content,
.popup__content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  height: 100%;
}

.comebacker__col-1 {
  -ms-flex-preferred-size: 49%;
      flex-basis: 49%;
  padding: 0 30px 20px 20px;
  max-width: 385px;
}

.comebacker__product {
  display: block;
  margin: 0 auto -30px;
  width: 75%;
}

.comebacker__timer {
  padding: 20px;
  border: 1px solid #F8F8F8;
  border-radius: 10px;
  -webkit-box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.15);
          box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.15);
  background-color: #fff;
}

.comebacker__timer_text {
  margin-bottom: 10px;
  font-family: 'Jost', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
  text-align: center;
  letter-spacing: 0.02em;
  color: #FE4C4C;
}

.comebacker__date {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  font-style: normal;
  max-width: 80px;
  width: 100%;
}

.comebacker__date-digit {
  display: block;
  width: 100%;
  padding: 5px 0;
  border: 1px solid #DBDBDB;
  border-radius: 6px;
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 103%;
  letter-spacing: 0.02em;
  text-align: center;
  color: #333;
}

.comebacker__day {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 10px;
  line-height: 12px;
  letter-spacing: 0.005em;
  color: #808080;
}

.comebacker__dogs {
  margin: 0 10px;
  font-family: 'Jost', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 24px;
  line-height: 103%;
  color: #DBDBDB;
}

.comebacker__desc,
.popup__desc {
  -ms-flex-preferred-size: 51.6%;
      flex-basis: 51.6%;
  padding: 30px 50px;
  margin: 0 auto;
  height: 100%;
  border-radius: 10px 0px 0px 10px;
  background-color: #fff;
}

.comebacker__title {
  margin-bottom: 17px;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 48px;
  line-height: 30px;
  letter-spacing: 0.02em;
  text-align: center;
  color: #292A31;
}

.comebacker__symbol {
  color: #E01065;
}

.comebacker__subtitle {
  font-weight: 700;
  font-size: 24px;
  line-height: 103%;
}

.comebacker__text,
.popup__text {
  margin-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
  color: #808080;
}

.comebacker__form,
.popup__form {
  margin-bottom: 0;
}

.comebacker__input,
.popup__input,
.comebacker__country,
.popup__country {
  padding: 14px;
  border: 1px solid #DBDBDB;
  -webkit-box-shadow: none;
          box-shadow: none;
}

.comebacker__btn,
.popup__btn {
  margin-top: 10px;
}

.comebacker__btn {
  font-size: 16px;
}

/* popup */

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

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

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

.popup__container-active {
  display: block;
}

.popup__close,
.comebacker__close {
  position: absolute;
  top: 20px;
  right: 38px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: 100px;
  background-color: rgba(255, 255, 255, 0.25);
}

.popup__close::before,
.popup__close::after,
.comebacker__close::before,
.comebacker__close::after {
  content: "";
  position: absolute;
  right: 30%;
  bottom: 50%;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background-color: rgba(0, 0, 0);
}

.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__desc {
  -ms-flex-preferred-size: 59.6%;
      flex-basis: 59.6%;
  height: 100%;
}

.popup__product {
  display: block;
  max-width: 64%;
  margin: 0 auto 135px;
}

.popup__title {
  margin-bottom: 17px;
  font-family: 'Jost', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 24px;
  line-height: 103%;
  letter-spacing: 0.02em;
  color: #292A31;
}

.popup__text {
  text-align: left;
}

.popup__form {
  position: relative;
}

@media (max-width: 1190px) {

  /* comebacker */

  .comebacker__container {
    width: 541px;
    height: 817px;
    background: url('../img/comebacker_768.png'), #fff;
    background-repeat: no-repeat;
    background-size: 100% 50%, 100% 50%;
  }

  .comebacker__content,
  .popup__content {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }

  .comebacker__col-1 {
    -ms-flex-preferred-size: 100%;
        flex-basis: 100%;
    margin: 0 auto;
    padding: 26px 0 20px;
  }

  .comebacker__product {
    width: 36.2%;
  }

  .comebacker__timer {
    max-width: 384px;
    width: 100%;
  }

  .comebacker__desc,
  .popup__desc {
    -ms-flex-preferred-size: 100%;
        flex-basis: 100%;
    padding: 40px 70px;
    border-radius: 10px 10px 0 0;
  }

  .comebacker__title {
    text-align: left;
  }

  .comebacker__text {
    text-align: left;
  }

  /* popup  */

  .popup__container {
    width: 541px;
    height: 854px;
    background: url("../img/popup_768.png"), var(--color-white);
    background-repeat: no-repeat;
    background-size: 100% 38%, 100% 62%;
  }

  .popup__col-1 {
    -ms-flex-preferred-size: 100%;
        flex-basis: 100%;
    width: 100%;
  }

  .popup__desc {
    width: 100%;
  }

  .popup__product {
    max-width: 34.2%;
    margin: 47px auto 39px;
  }

}

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

  .comebacker__container {
    max-width: 428px;
    width: 100%;
    height: auto;
    border-radius: 0;
    margin: 0 auto auto;
    background: url('../img/comebacker_428.png'), #fff;
    background-repeat: no-repeat;
    background-size: 100% 50%, 100% 50%;
    background-position: center top, center bottom;
  }

  .comebacker__close,
  .popup__close {
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .popup__close::before, 
  .popup__close::after, 
  .comebacker__close::before, 
  .comebacker__close::after {
    right: 32%;
  }

  .comebacker__col-1 {
    padding: 77px 20px 10px;
    max-width: 100%;
  }

  .comebacker__timer {
    max-width: 100%;
    padding: 10px;
    font-size: 16px;
    line-height: 20px;
  }

  .comebacker__product {
    width: 62.2%;
  }

  .comebacker__desc {
    padding: 30px 40px;
    border-radius: 10px 10px 0px 0px;;
  }

  .comebacker__title {
    margin-bottom: 10px;
  }

  .comebacker__btn {
    padding: 8px 0;
  }

  /* popup */

  .popup__container {
    max-width: 428px;
    width: 100%;
    height: auto;
    margin: 0 auto auto;
    border-radius: 0;
    background: url("../img/popup_428.png"), var(--color-white);
    background-repeat: no-repeat;
    background-size: 100% 56%, 100% 44%;
    background-position: center top, center bottom;
  }

  .popup__desc {
    padding: 20px 40px;
  }

  .popup__title,
  .popup__text {
    margin-bottom: 10px;
  }

  .popup__product {
    max-width: 40.2%;
    margin: 103px auto 56px;
  }
}

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

  .comebacker__container {
    max-width: 320px;
    background: url('../img/comebacker_320.png'), #fff;
    background-repeat: no-repeat;
    background-size: 100% 35%, 100% 65%;
  }

  .comebacker__col-1 {
    padding: 6px 20px 10px;
  }

  .comebacker__timer_text {
    font-size: 16px;
    line-height: 20px;
  }

  .comebacker__product {
    width: 38.3%;
    margin: 0 auto -20px;
  }

  .comebacker__desc,
  .popup__desc {
    padding: 20px;
  }

  .comebacker__title {
    font-weight: 700;
    font-size: 24px;
    line-height: 103%;
  }

  .comebacker__subtitle {
    margin-bottom: 20px;
  }

  /* popup */

  .popup__container {
    max-width: 320px;
    background: url('../img/popup_320.png'), #fff;
    background-repeat: no-repeat;
    background-size: 100% 33%, 100% 65%;
  }

  .popup__product {
    max-width: 38.2%;
    margin: 59px auto 22px;
  }

  .popup__desc {
    border-radius: 10px 10px 0 0;
  }

  .popup__title {
    font-size: 20px;
  }

  .popup__btn {
    padding: 8px 0;
  }
}