:root {
  --popup-width: 630px;
  --popup-height: 660px;
  --close-x: 14px;
  --close-y: 16px;
  --text-dist: 38px;
  --submit-width: 206px;
  --submit-height: 40px;
  --submit-radius: 20px;
  --submit-fontsize: 1.125em;
  --submit-dist: 6.5px;
  --thanks-button-dist: 35px;
}

#popup-noveg {
  --blue: #2a3b74;
}

#popup-noveg .popup-content {
  width: var(--popup-width);
  height: var(--popup-height);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: url(../images/eg/popup-back.jpg);
  background-image: -webkit-image-set(url("../images/eg/popup-back.webp") 1x, url("../images/eg/popup-back@2x.webp") 2x);
  padding: 15px;
}

#popup-noveg picture {
  display: contents;
}

#popup-noveg .popup-default,
#popup-noveg .popup-start,
#popup-noveg .popup-thanks {
  width: 100%;
  height: 100%;
}

#popup-noveg .popup-default {
  display: none;
}

#popup-noveg .popup-close {
  width: auto;
  height: auto;
  top: 0;
  right: 0;
  padding: var(--close-y) var(--close-x);
}

#popup-noveg form {
  margin-top: 10px;
}

#popup-noveg .button {
  width: 280px;
  height: 45px;
  border-radius: 54px;
  background: #BF1E2E;
  color: #FFF;
  text-align: center;
  font-size: 20px;
  font-style: normal;
  line-height: normal;
  text-transform: uppercase;
  margin-top: 20px;
  border: none;
  padding: 0;
}

@supports (text-box: trim-both cap alphabetic) {
  #popup-noveg .button span {
    text-box: trim-both cap alphabetic;
  }

  #popup-noveg .button-start,
  #popup-noveg form .button {
    display: block;
    align-content: center;
    text-box: trim-both cap alphabetic;
  }
}

#popup-noveg .popup-start .button {
  margin-top: 0;
}

#popup-noveg .popup-default .button {
  width: 235px;
}

#popup-noveg .popup-thanks .button {
  width: 235px;
}

#popup-noveg .reject:before,
#popup-noveg .reject:after {
  content: none !important;
}

#popup-noveg p {
  padding: 0;
  margin: 0;
  line-height: 1;
}

#popup-noveg .form-text {
  color: #FFF;
  text-align: center;
  font-size: 43px;
  font-style: normal;
  line-height: 55px;
  /* 127.907% */
  margin-bottom: 28px;
}

#popup-noveg .main-text {
  color: #FFF;
  text-align: center;
  font-size: 29px;
  font-style: normal;
  line-height: normal;
}

#popup-noveg .reject {
  color: #FFF;
  text-align: center;
  font-size: 20px;
  font-style: normal;
  line-height: normal;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
  border: none;
  padding: 0;
  margin-top: 30px;
  margin-bottom: 35px;
}

#popup-noveg .thanks-text {
  color: #FFF;
  text-align: center;
  font-size: 26px;
  font-style: normal;
  line-height: normal;
}

#popup-noveg .main {
  margin-top: -15px;
}

#popup-noveg .thanks {
  margin-bottom: -21px;
  margin-top: -55px;
}

@media screen and (max-width: 567px) {
  :root {
    --popup-width: 100%;
    --popup-height: 100%;
    --close-x: 4cqw;
    --close-y: 5cqw;
    --text-dist: 5.25cqw;
    --submit-width: 37.5cqw;
    --submit-height: 8.25cqw;
    --submit-radius: 4.25cqw;
    --submit-fontsize: 0.8125em;
    --submit-dist: 2.5cqw;
    --thanks-button-dist: 6cqw;
  }

  #popup-noveg {
    container-type: inline-size;
  }

  #popup-noveg .popup-content {
    width: 100%;
    height: 100%;
    padding: 3.75cqw;
  }

  #popup-noveg .button {
    width: 70cqw;
    height: 11.25cqw;
    border-radius: 13.5cqw;
    font-size: 5cqw;
    margin-top: 5cqw;
  }

  #popup-noveg .popup-default .button,
  #popup-noveg .popup-thanks .button {
    width: 58.75cqw;
  }

  #popup-noveg .form-text,
  #popup-noveg .main,
  #popup-noveg .thanks {
    max-width: 100%;
  }

  #popup-noveg .main {
    margin-top: -3.75cqw;
  }

  #popup-noveg .thanks {
    margin-top: -13.75cqw;
    margin-bottom: -5.25cqw;
  }

  #popup-noveg .buttons {
    gap: 2.25cqw;
  }

  #popup-noveg .popup-close {
    padding: 7.25cqw;
  }

  #popup-noveg .main {
    width: 95%;
  }

  #popup-noveg .thanks {
    width: 95%;
  }

  #popup-noveg .main-text {
    font-size: 6cqw;
  }

  #popup-noveg .form-text {
    font-size: 7.75cqw;
    line-height: 13.75cqw;
    margin-bottom: 7cqw;
  }

  #popup-noveg .thanks-text {
    font-size: 5cqw;
  }

  #popup-noveg .reject {
    font-size: 5cqw;
    margin-top: 7.5cqw;
    margin-bottom: 8.75cqw;
    padding: 0;
  }
}