html, body { overflow-x: hidden; }

.uc-clipx .t396,
.uc-clipx .t396__artboard {
  overflow-x: hidden; /* fallback */
  overflow-x: clip;   /* аккуратно отрезает “выбросы” по X */
}

/* Поп-апы на мобильных: адаптивная ширина, не выше экрана, внутренний скролл */
@media (max-width: 640px) {
  /* сам поп-ап блока с классом uc-modal */
  .uc-modal .t-popup { padding: 0 !important; }

  .uc-modal .t-popup__container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    max-height: 100vh; /* базовый вариант */
  }
  /* точнее для мобильных браузеров с динамической адресной строкой */
  @supports (height: 100dvh) {
    .uc-modal .t-popup__container { max-height: 100dvh !important; }
  }

  .uc-modal .t-popup__content {
    padding: 16px !important;
    overflow-y: auto !important;     /* прокрутка СОДЕРЖИМОГО, не страницы */
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    max-height: calc(100vh - 48px);
  }
  @supports (height: 100dvh) {
    .uc-modal .t-popup__content { max-height: calc(100dvh - 48px) !important; }
  }

  /* кнопка закрытия, чтобы не наезжала на контент */
  .uc-modal .t-popup__close { top: 8px !important; right: 8px !important; }
  
  
  /* временно отключаем плавный скролл, когда восстанавливаем позицию */
html.uc-nosmooth { scroll-behavior: auto !important; }

  
  
