@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

/* Popup wrapper */
.popup__wrap {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  display: none;
  justify-content: center;
  align-items: center;
  pointer-events: all;
  background-color: rgba(0, 0, 0, .6);
  z-index: 99;
  overflow-y: auto;
  padding: 30px 16px;
  min-height: 100vh;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.popup__wrap.popup-wrap_top {
  align-items: flex-start;
}

/* Popup base */
.popup {
  padding: 40px 20px;
  animation-duration: .3s;
  background-color: #fff;
  border-radius: 30px;
  box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, .2);
  margin: 0;
  box-sizing: border-box;
  max-width: 950px;
  width: 100%;
}

.popup.popup__review {
  padding: 50px;
}

.popup__close {
  position: fixed;
  top: 5px;
  right: 5px;
  width: 43px;
  height: 43px;
  background-color: #187bf1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
}

.popup__close .t-popup__close-icon {
  width: 23px;
  height: 23px;
}

/* Contact popup specific */
.popup__contact {
  max-width: 450px;
  padding: 40px 50px 50px;
  position: relative;
}

.popup__contact-title {
  margin: 0 0 30px 0;
  font-size: 18px;
  font-weight: 400;
  text-align: center;
  color: #333;
  line-height: 1.4;
  letter-spacing: 0.5px;
}

.popup__contact-title-highlight {
  color: #2196F3;
  font-weight: 600;
}

.popup__contact-vpn-note {
  color: #E53935;
  font-size: 14px;
  margin: -10px 30px 0 0;
  font-style: italic;
  text-align: right;
  font-weight: 600;
  height: 22px;
}

.popup__contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.popup__contact-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px 30px !important;
  border-radius: 50px;
  text-decoration: none !important;
  font-size: 16px !important;
  font-weight: 500;
  color: white !important;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  max-width: 300px;
}

.popup__contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.popup__contact-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.popup__contact-btn-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.popup__contact-btn-whatsapp {
  background: #2fbe0e;
}

.popup__contact-btn-whatsapp:hover {
  background: #2aaa0d;
}

.popup__contact-btn-telegram {
  background: #3597E0;
}

.popup__contact-btn-telegram:hover {
  background: #2f8bcd;
}

.popup__contact-btn-phone {
  background: #187bf1;
}

.popup__contact-btn-phone:hover {
  background: #116ad6;
}

@media (max-width: 640px) {
  .popup__contact {
    padding: 30px 25px 35px;
    max-width: 350px;
  }

  .popup__contact-title {
    font-size: 18px;
    margin-bottom: 25px;
  }

  .popup__contact-btn {
    padding: 14px 20px;
    font-size: 15px;
  }

  .popup__contact-buttons {
    gap: 12px;
  }
}

/* Popup консультации */
.popup__consult {
  max-width: 600px;
  padding: 20px 20px 50px 20px;
  position: relative;
}

.popup__consult-title {
  color: #161717;
  font-size: 32px;
  font-weight: 700;
  line-height: 38px;
  max-width: 400px;
  margin-top: 18px;
  margin: 18px auto 30px auto;
  text-align: center;
  font-family: 'Lato', sans-serif;
}

.popup__consult-text {
  max-width: 400px;
  text-align: center;
  font-size: 18px;
  line-height: 22px;
  margin: 0 auto 24px auto;
  font-family: 'Lato', sans-serif;
  color: #333;
}

.popup__consult-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.popup__consult-methods {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.popup__consult-method {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  transition: 0.3s;
}

.popup__consult-method input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.popup__consult-icon {
  width: 53px;
  height: 53px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  transition: 0.3s;
  border: 1px solid rgb(217, 217, 217);
}

.popup__consult-icon svg {
  width: 32px;
  height: 32px;
  transition: 0.3s;
}

.popup__consult-icon svg path {
  fill: rgb(217, 217, 217);
  transition: 0.3s;
}

.popup__consult-method--call input[type="radio"]:checked + .popup__consult-icon {
  background: rgb(60, 210, 84);
  border-color: rgb(60, 210, 84);
}

.popup__consult-method--call input[type="radio"]:checked + .popup__consult-icon svg path {
  fill: #fff;
}

.popup__consult-method--telegram input[type="radio"]:checked + .popup__consult-icon {
  background: rgb(0, 115, 191);
  border-color: rgb(0, 115, 191);
}

.popup__consult-method--telegram input[type="radio"]:checked + .popup__consult-icon svg path {
  fill: #fff;
}

.popup__consult-method--whatsapp input[type="radio"]:checked + .popup__consult-icon {
  background: rgb(60, 210, 84);
  border-color: rgb(60, 210, 84);
}

.popup__consult-method--whatsapp input[type="radio"]:checked + .popup__consult-icon svg path {
  fill: #fff;
}

.popup__consult-label {
  display: none;
}

.popup__consult-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #E6E6E6;
  font-size: 14px;
  max-width: 400px;
  background-color: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.8);
  border-width: 1px 1px 1px 1px;
  border-radius: 32px 32px 32px 32px;
  box-sizing: border-box;
  margin: 0 auto;
  font-family: 'Lato', sans-serif;
}

.popup__consult-agree {
  margin: 0 auto;
  max-width: 400px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #555;
  font-family: 'Lato', sans-serif;
}

.popup__consult-privacy {
  margin: 0 auto;
  max-width: 400px;
  font-size: 12px;
  color: #2a7ae2;
  text-decoration: underline;
  text-align: center;
  font-family: 'Lato', sans-serif;
}

.popup__consult-submit {
  background-color: #0073BF;
  color: #FFFFFF;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 700;
  font-style: normal;
  line-height: 25px;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: #0073BF;
  border-radius: 32px 32px 32px 32px;
  padding: 12px 24px 12px 24px;
  transition: 0.3s;
  cursor: pointer;
  display: inline-block;
  width: 245px;
  margin: 0 auto 0px auto;
}

.popup__consult-submit:hover {
  background-color: #045F95;
  color: #FFFFFF;
  border-color: #0073BF;
}

@media (max-width: 640px) {
  .popup__consult {
    padding: 20px 16px 40px;
    max-width: 100%;
  }

  .popup__consult-title {
    font-size: 24px;
    line-height: 28px;
    margin: 10px auto 20px auto;
  }

  .popup__consult-text {
    font-size: 16px;
    line-height: 20px;
    margin: 0 auto 20px auto;
  }

  .popup__consult-methods {
    gap: 16px;
    flex-wrap: wrap;
  }

  .popup__consult-input {
    max-width: 100%;
  }

  .popup__consult-agree,
  .popup__consult-privacy {
    max-width: 100%;
    padding: 0 10px;
  }

  .popup__consult-submit {
    width: 100%;
    max-width: 300px;
  }
}

/* Popup обратного звонка */
.popup__callback {
  max-width: 500px;
  padding: 40px 30px;
  position: relative;
}

.popup__callback-title {
  color: #161717;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
  text-align: center;
  font-family: 'Lato', sans-serif;
}

.popup__callback-text {
  color: #161717;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 25px;
  text-align: center;
  font-family: 'Lato', sans-serif;
}

.popup__callback-input {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Lato', sans-serif;
  margin-bottom: 15px;
  box-sizing: border-box;
}

.popup__callback-input:focus {
  outline: none;
  border-color: #017DC7;
}

.popup__callback-consent {
  color: #666;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: center;
  font-family: 'Lato', sans-serif;
}

.popup__callback-consent a {
  color: #017DC7;
  text-decoration: underline;
}

.popup__callback-consent a:hover {
  color: #0028dd;
}

.popup__callback-submit {
  width: 100%;
  padding: 16px 20px;
  background-color: #017DC7;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  transition: background-color 0.3s;
}

.popup__callback-submit:hover {
  background-color: #0028dd;
}

.popup__callback-submit:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.popup__callback-success {
  padding: 20px;
  text-align: center;
  color: #161717;
  font-size: 18px;
  font-family: 'Lato', sans-serif;
}

@media (max-width: 640px) {
  .popup__callback {
    padding: 30px 20px;
    max-width: 350px;
  }

  .popup__callback-title {
    font-size: 20px;
  }

  .popup__callback-text {
    font-size: 14px;
  }

  .popup__callback-input {
    padding: 12px 15px;
    font-size: 14px;
  }

  .popup__callback-submit {
    font-size: 16px;
    padding: 14px 20px;
  }
}
