/* ШАГ 1: Убираем горизонтальный overflow на всей странице */
html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

/* ШАГ 2: Фикс popup — fixed элемент должен считать ширину от viewport */
/* На Android fixed + 100vw = баг, если body был шире */
.t-popup {
  position: fixed !important;
  width: 100% !important;
  max-width: 100vw !important;
  left: 0 !important;
  right: 0 !important;
  overflow-x: hidden !important;
}

/* ШАГ 3: Контейнер формы — строго в рамках экрана */
@media screen and (max-width: 767px) {
  .uc-formmain .t-popupcontainer,
  #rec2269757791 .t-popupcontainer {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Все внутренние элементы формы — не шире контейнера */
  .uc-formmain .t702wrapper,
  .uc-formmain .t-form,
  .uc-formmain .t-input,
  .uc-formmain textarea.t-input,
  .uc-formmain .t-input-group,
  .uc-formmain .t-input-block,
  .uc-formmain .t-submit,
  #rec2269757791 .t702wrapper,
  #rec2269757791 .t-form,
  #rec2269757791 .t-input,
  #rec2269757791 textarea.t-input,
  #rec2269757791 .t-input-group,
  #rec2269757791 .t-input-block,
  #rec2269757791 .t-submit {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* font-size 16px — запрет авто-зума на iOS при фокусе на поле */
  .uc-formmain .t-input,
  .uc-formmain textarea.t-input,
  #rec2269757791 .t-input,
  #rec2269757791 textarea.t-input {
    font-size: 16px !important;
  }
}