/* ЛэИ: общие стили форм (галочки согласий, ошибки, статус), 13.11.2026 */
.lei-consents { margin: 10px 0 6px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.lei-check { display: flex !important; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.4; font-weight: 400; color: inherit; cursor: pointer; margin: 0; width: auto !important; }
.lei-check input[type="checkbox"] {
  visibility: visible !important; position: static !important; opacity: 1 !important;
  flex: 0 0 18px; width: 18px; height: 18px; margin: 1px 0 0 !important; accent-color: #1d254b; cursor: pointer;
}
.lei-check input[type="checkbox"]::before,
.lei-check input[type="checkbox"]::after { content: none !important; display: none !important; }
.lei-check a { text-decoration: underline; color: inherit; }
.lei-err { display: none; color: #c0392b; font-size: 12px; margin: 2px 0 4px; font-weight: 500; }
.lei-invalid { border-color: #c0392b !important; background-color: #fdecea !important; }
.lei-form-status { display: none; margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: #fdecea; color: #a5281b; font-size: 13.5px; font-weight: 500; }
.lei-form-status--ok { background: #e8f7ee; color: #1e6b3a; }
.lei-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
form[data-sending="1"] [type="submit"] { opacity: .6; cursor: wait; }
/* Окно выбора офиса не перекрывает кнопки связи: чат доступен сразу */
body.lei-geo-open #lei-msg { z-index: 2100; }
/* Боковая форма лежит поверх шапки сайта (z-index шапки 1000), иначе крестик закрытия
   оказывается под шапкой и на телефоне вместо него нажимается меню-бургер */
leftmenu { z-index: 1500 !important; }
leftmenu [data-side-close] {
  position: absolute !important; top: 12px !important; right: 12px !important; left: auto !important;
  z-index: 2; width: 44px; height: 44px; display: flex !important; align-items: center; justify-content: center;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(29,37,75,.18); cursor: pointer;
}
leftmenu [data-side-close] svg { width: 22px; height: 22px; fill: #1d254b; }
/* Прокрутка внутри боковой формы не передаётся странице (иначе форма закрылась бы) */
leftmenu, #lei-wp form { overscroll-behavior: contain; }
/* Открытая боковая форма: кнопки связи сдвигаются, чтобы не закрывать поля */
body.lei-side-open #lei-msg { right: 424px; }
@media (max-width: 991px) { body.lei-side-open #lei-msg { display: none; } }
