
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
    overflow-y: auto;
  }
  
  /* Общие стили для попапов */
  .popup {
    display: none;
    position: fixed; 
    z-index: 1001;
    background: #fff;
    padding: clamp(1rem, 0.9207rem + 0.3252vw, 1.25rem);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
  }
  
  /* Центрирование попапа */
  .popup-center { 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  /* Попап у верхней части экрана */
  .popup-top {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  /* Кнопка закрытия */
  .popup-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
  } 
  div#thankyouPopup {
    padding: clamp(3.125rem, 2.8216rem + 1.2945vw, 4.375rem) 30px 30px;
    border-radius: clamp(0.75rem, 0.6286rem + 0.5178vw, 1.25rem);
    max-width: 730px;
  }
  #thankyouPopup span.close-popup {
    display: flex
  ;
    position: absolute;
    top: 20px;
    right: 20px;
  }
  .popup-content.thank {
    display: flex
  ;
    flex-direction: column;
    align-items: center;
    row-gap: 20px;
    text-align: center;
  }
  .thank h2 {
    font-size: clamp(1.25rem, 1.1590rem + 0.3883vw, 1.625rem);
    text-transform: uppercase;
    line-height: normal;
  }
  .thank p {
    font-size: clamp(1rem, 0.9393rem + 0.2589vw, 1.25rem);
    max-width: 570px;
  }
  a.btn.pop-bnt {
    width: 100%;
  }
  div#partner_form {
    max-width: 730px;
    width: 100%;
    box-sizing: border-box;
    background-color: #4D665C;
    border-radius: clamp(0.625rem, 0.4733rem + 0.6472vw, 1.25rem);
    padding: calc(4.375rem - clamp(1.875rem, 1.7233rem + 0.6472vw, 2.5rem)) clamp(1rem, 0.7876rem + 0.9061vw, 1.875rem);
    position: relative;
    animation: popup-show 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}
span.close-popup {
  display: flex;
  position: absolute;
  right: clamp(1rem, 0.7876rem + 0.9061vw, 1.875rem);
  top: 40px;
}