/* popup */

.popup {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 11;
  display: flex !important;
}

.popup_bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(0px);
  cursor: pointer;
}

.popup_body {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% + 30px));
  opacity: 0;
  background-size: auto 100%;
  background-position: left center;
  background-repeat: no-repeat;
  padding: 0;
  width: calc(100% - 32px);
  max-width: 843px;
  transition:
    opacity 0.25s ease,
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: flex-end;
  gap: 0;
}

.popup.first .popup_body {
  background-image: none !important;
}

.popup_close {
  display: block;
  position: absolute;
  right: 0;
  bottom: calc(100% + 7px);
  background-color: rgba(255, 255, 255, 0.8);
  width: 34px;
  height: 34px;
}

.popup .popup_close::after,
.popup .popup_close::before {
  background-color: var(--Green);
  height: 3px;
  transition: 0.1s all linear;
}

.popup .popup_close::before {
  rotate: 45deg;
  top: 49%;
  left: 25%;
  transform: translate(-10%, -2%);
}

.popup .popup_close:after {
  rotate: -45deg;
  top: 23%;
  left: 47%;
  transform: translate(-56%, -50%);
}

.popup_close:hover::after,
.popup_close:hover::before {
  background-color: var(--Red);
}

.popup_wrap {
  overflow: hidden;
  width: 100%;
}

.popup_content {
  width: calc(100% + 2px);
  padding: 40px 30px;
  background: rgba(27, 77, 62, 0.51);
  display: flex;
  flex-direction: column;
  gap: 18px;
  backdrop-filter: blur(16px);
  margin-left: -1px;
}

.popup_title {
  color: var(--White);
  font-size: 24px;
  font-weight: 700;
  line-height: 130%;
  text-transform: uppercase;
}

.popup_desc {
  color: var(--White);
  line-height: 130%;
  max-width: 425px;
}

/* ACTIVE STATE */

#popup:target {
  pointer-events: auto;
}

#popup:target .popup_bg {
  opacity: 1;
  backdrop-filter: blur(6px);
}

#popup:target .popup_body {
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* popup */

@media (max-width: 768px) {
  /* popup */

  .popup_body {
    flex-direction: column;
    background-image: none !important;
    max-width: 450px;
  }

  .popup_content {
    width: 100%;
    backdrop-filter: none;
    margin-left: 0;
    border: 1px solid #d7d7d71e;
  }

  .popup_title {
    font-size: 18px;
  }

  .popup_desc {
    font-size: 14px;
    max-width: 100%;
    padding-right: 5px;
  }

  .block_form {
    max-width: 100%;
  }

  @media (max-height: 812px) {
    .popup_desc {
      display: none;
    }
  }

  @media (max-height: 712px) {
    .popup_content {
      display: none;
    }
  }

  @media (max-height: 550px) {
  }
}
