.popup-video {
  padding: 0;
}

.popup-classic {
  background: #f5f5f7;
  border-radius: 60px;
  padding: 80px;
  min-width: 768px;
}

.popup-classic .calendar__form-service {
  display: flex;
  flex-direction: column;
}
.fancybox__content > .f-button.is-close-btn {
  top: 44px;
  right: 44px;
}
.f-button {
  color: #9d9d9d;
}

.popup__title {
  font-size: 56px;
  font-weight: 700;
  line-height: 56px;
  letter-spacing: -0.02em;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
  margin-bottom: 30px;
}

.popup__subtitle {
  font-size: 24px;
  font-weight: 550;
  line-height: 24px;
  letter-spacing: -0.02em;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
  margin-bottom: 15px;
}

.popup-classic
  .calendar__form-service
  .select2-container
  .selection
  .select2-selection--single {
  margin-bottom: 40px;
}

.popup-classic .calendar__form-service .select2-container {
  max-width: 100%;
}

.popup__text {
  font-size: 16px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: -0.01em;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
  margin-bottom: 15px;
}
.popup-classic .calendar__form-contacts-inputs-wrapper {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}
.fancybox__backdrop {
  background: none;
  backdrop-filter: blur(10px);
}
.popup-classic
  .calendar__form-service
  .select2-container
  .select2-container--open
  .select2-dropdown--below {
  top: -40px;
}
.with-fancybox .hide-scrollbar .select2-container .select2-dropdown {
  top: -40px;
}

.popup-thanks {
  border-radius: 60px;
  padding: 80px;
  background: #f5f5f7;
  color: black;
  min-height: 343px;
}

.popup-thanks .popup__title {
  margin-bottom: 15px;
}

.popup-thanks .popup__subtitle {
  font-size: 24px;
  font-weight: 550;
  line-height: 24px;
  letter-spacing: -0.02em;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
  margin-bottom: 30px;
}

.popup-btn-resume {
  background: #e1e1e8;
  padding: 20px;
  width: 100%;
  align-self: center;
  margin: 0 auto;
  max-width: 100%;
  max-height: 58px;
  color: #171819;
  display: block;
  box-shadow: 0px 4px 10px 4px #64646b1a;
}

@media (max-width: 1200px) {
  .popup-classic .calendar__form-service {
    align-items: start;
  }
}

@media (max-width: 768px) {
  .popup-classic {
    max-width: 100%;
    min-width: 90%;
  }
}

@media (max-width: 580px) {
  .popup-classic {
    padding: 40px 10px;
    border-radius: 20px;
  }
  .is-compact .fancybox__content > .f-button.is-close-btn {
    --f-button-bg: transparent;
  }
  .popup__title {
    font-size: 32px;
    font-weight: 700;
    line-height: 28.8px;
    letter-spacing: -0.02em;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    margin-bottom: 20px;
  }
  .popup__subtitle {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 550;
    line-height: 18px;
    letter-spacing: -0.02em;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
  }

  .is-compact .fancybox__content > .f-button.is-close-btn {
    top: 15px;
    right: 19px;
  }
  .popup-classic
    .calendar__form-service
    .select2-container
    .selection
    .select2-selection--single {
    margin-bottom: 20px;
  }

  .popup__text {
    font-size: 14px;
    font-weight: 400;
    line-height: 14px;
    letter-spacing: -0.01em;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
  }
}
