/* Modal «Попробовать бесплатно» (из auto_site, цвета под текущий проект) */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup-overlay--visible {
  display: flex;
  opacity: 1;
}

#callback-popup {
  z-index: 1001;
}

.popup {
  background-color: #edf2f6;
  border-radius: 20px;
  padding: 53px;
  max-width: 486px;
  width: 100%;
  position: relative;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.popup-overlay--visible .popup {
  transform: translateY(0);
}

.popup__close {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #293df2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  color: #fff;
}

.popup__close:hover {
  background-color: #fff;
  color: #293df2;
}

.popup__close-icon {
  width: 18px;
  height: 18px;
  color: inherit;
}

.popup__title {
  font-family: "Oswald", sans-serif;
  font-size: 32px;
  font-weight: 400;
  color: #261746;
  margin-bottom: 20px;
}

.popup__subtitle {
  font-family: "PT Sans", sans-serif;
  font-size: 16px;
  color: #7c99ba;
  margin-bottom: 4px;
  text-transform: none;
}

.popup .popup__form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.popup .form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.popup .form__label {
  font-size: 14px;
  font-weight: 700;
  color: #7c99ba;
}

.popup .form__input {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid #bfcedf;
  border-radius: 8px;
  font-family: "PT Sans", Arial, sans-serif;
  font-size: 16px;
  background-color: #ffffff;
  color: #261746;
  transition: border-color 0.2s ease;
}

.popup .form__input::placeholder {
  color: #bfcedf;
}

.popup .form__input:focus {
  outline: none;
  border-color: #293df2;
}

.popup .popup__form .form__input {
  padding: 18px 29px;
}

.popup .popup__form .btn--gradient {
  padding: 18px;
  font-size: 16px;
  margin-top: -2px;
  border-radius: 27px;
  max-width: 385px;
  width: 100%;
  height: 60px;
}

.popup .btn--gradient {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  font-family: "PT Sans", Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(90deg, #293df2 0%, #5c00f2 100%);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(41, 61, 242, 0.2);
  transition: filter 0.3s ease;
}

.popup .btn--gradient:hover {
  filter: brightness(1.15);
}

.popup__success {
  display: none;
}

.popup__success--visible {
  display: block;
}

.popup__success-title {
  font-family: "PT Sans", sans-serif;
  margin-bottom: 30px;
  color: #261746;
  font-weight: 400;
  font-size: 16px;
}

.popup__success-text {
  font-family: "Oswald", sans-serif;
  font-size: 16px;
  color: #261746;
  margin-bottom: 50px;
  text-transform: none;
  font-weight: 400;
  font-size: 32px;
  color: #261746;
}

.popup__success-subtitle {
  font-family: "PT Sans", sans-serif;
  margin-bottom: 23px;
  text-transform: none;
  font-weight: 400;
  font-size: 16px;
  color: #261746;
}

.popup__success-social {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 18px;
}

.popup__success-social-link {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.popup__success-social-link:hover {
  background-color: #b9beef;
}

/* Callback modal: заголовок → текст → форма */
.popup--callback {
  max-width: 520px;
}

.popup--callback .popup__title {
  margin-bottom: 12px;
}

.popup--callback .popup__lead {
  margin-bottom: 24px;
  line-height: 1.5;
}

.popup .form__textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.popup--callback .popup__success-text {
  margin-bottom: 0;
  font-size: 18px;
  font-family: "PT Sans", sans-serif;
  line-height: 1.45;
}

@media (max-width: 480px) {
  .popup {
    padding: 28px 20px;
  }

  .popup__title {
    font-size: 24px;
  }
}