/* ====== POPUP ====== */
.speaker-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: opacity 0.3s ease;
  }
  
  .speaker-popup.active {
    display: flex;
    animation: fadeIn 0.3s ease;
  }
  
  .speaker-popup__content {
    background: #fff;
    border-radius: 14px;
    padding: 30px 40px;
    max-width: 520px;
    width: 90%;
    color: #111;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  }
  
  .speaker-popup__text {
    list-style: disc;
    padding-left: 20px;
    line-height: 1.6;
  }
  
  .speaker-popup__close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    color: #444;
    cursor: pointer;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
  }





  .license-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
  }

  .license-popup__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
  }
  
  .license-popup.active {
    opacity: 1;
    pointer-events: all;
  }
  
  /* Анимация появления окна */
  .license-popup__content {
    position: relative;
    max-width: 700px;
    width: 90%;
    border-radius: 8px;
  
    transform: scale(0.85);
    opacity: 0;
    transition: transform .35s ease, opacity .35s ease;
  }
  
  .license-popup.active .license-popup__content {
    transform: scale(1);
    opacity: 1;
  }
  
  .license-popup__content img {
    width: 500px;
    margin: 0 auto;
    display: block;
    border-radius: 6px;
  }
  
  .license-popup__close {
    position: absolute;
    top: -40px;
    right: -40px;
    background: none;
    border: none;
    font-size: 60px;
    color: white;
    cursor: pointer;
    transition: opacity .3s ease;
  }
  
  .license-popup__close:hover {
    opacity: .6;
  }








  /* POPUP */
.popup {
  position: fixed;
  left: 0; top: 0;
  width: 100%; height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup.active {
  display: flex;
}

.popup__overlay {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
}

.popup__window {
  position: relative;
  background: #fff;
  padding: 40px 50px;
  max-width: 600px;
  max-height: calc(100vh - 32px);
  width: 90%;
  border-radius: 12px;
  overflow-y: auto;
}

.popup__close {
  position: absolute;
  top: 10px; right: 15px;
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.popup__title {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 25px;
}

.popup__form > label {
  display: block;
  font-weight: 600;
  margin: 12px 0 6px;
}

.popup__form > input:not([type="hidden"]) {
  width: 100%;
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

.popup__submit {
  width: 100%;
  margin-top: 30px;
  padding: 16px;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  transition: .3s;
}

.popup__submit.is-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: .85;
  cursor: progress;
  pointer-events: none;
}

.popup__submit.is-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: popupSubmitSpin .8s linear infinite;
}

.popup__submit:disabled {
  cursor: progress;
}

.popup__submit:hover {
  background: #ffbc42;
  color: #000;
}

.popup__submit.is-loading:hover {
  background: #000;
  color: #fff;
}

@keyframes popupSubmitSpin {
  to {
    transform: rotate(360deg);
  }
}

.popup__agreements {
  margin-top: 14px;
}

.popup__form .program-request__agreement {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0 0;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  color: #666;
}

.popup__form .program-request__agreement:first-child {
  margin-top: 0;
}

.popup__form .program-request__agreement input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  padding: 0;
  border-radius: 3px;
  accent-color: #000;
  cursor: pointer;
}

.popup__form .program-request__agreement span {
  flex: 1;
}

.popup__form .program-request__agreement a {
  color: #333;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.popup__form .program-request__agreement--invalid {
  color: #e53935;
}

.popup__form .program-request__agreement--invalid a {
  color: #e53935;
}

@media (max-width: 600px) {
  .popup__window {
    padding: 32px 20px 24px;
  }
}



.popup {
  overflow: hidden;
}
