/* Дополнения к стилям конструктора для автономной версии */

/* Слайдеры: горизонтальная прокрутка с «примагничиванием» к слайду */
.site-slider {
  overflow-x: auto !important;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.site-slider::-webkit-scrollbar { display: none; }
.site-slider [class*="__slide"] { scroll-snap-align: start; }
.site-slider [class*="__slide"] a,
.site-slider [class*="__slide"] button { pointer-events: auto; }

/* Ошибки в полях формы */
.site-field-error .sb-input__error,
.site-field-error .sb-textarea__error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #e5484d;
}
.site-field-error .sb-input__field,
.site-field-error .sb-textarea__field { border-bottom-color: #e5484d !important; }

/* Кнопка закрытия попапа */
.popups-host .site-popup-close {
  top: 24px; right: 24px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer; color: #111;
}
.popups-host__content { margin: 40px 16px; }
@media (max-width: 639px) { .popups-host__content { margin: 0; } }

/* Пустой чекбокс согласия без текста — скрываем */
.s-form-type-1__agreement-list:has(.s-form-type-1__agreement-text:empty),
.s-form-type-1__agreement-list:has(.s-form-type-1__agreement-text > br:only-child) { display: none; }
.site-agree-error { color: #e5484d; }
.site-agree-error .sb-custom-checkbox { outline: 1px solid #e5484d; outline-offset: 2px; }
.s-form-type-6__agreement-list:has(.s-form-type-6__agreement-text:empty),
.s-form-type-6__agreement-list:has(.s-form-type-6__agreement-text > br:only-child) { display: none; }

/* Кнопка «наверх» */
.site-back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 50;
  width: 44px; height: 44px; border: 0; border-radius: 8px;
  background: rgba(17,17,17,.56); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s, background .2s;
}
.site-back-to-top:hover { background: rgba(17,17,17,.8); }
.site-back-to-top_shown { opacity: 1; visibility: visible; }
@media (max-width: 639px) { .site-back-to-top { right: 16px; bottom: 16px; } }

/* Страницы политики и согласия */
.legal__body h1 { margin: 24px 0 8px; }
.legal__body h2 { margin: 36px 0 12px; }
.legal__body p { margin: 0 0 12px; color: rgba(17,17,17,.8); line-height: 1.6; }
.legal__body ul { margin: 0 0 12px; padding-left: 22px; list-style: disc; color: rgba(17,17,17,.8); line-height: 1.6; }
.legal__body li { margin-bottom: 4px; }

/* Строка со ссылками на документы внизу каждой страницы */
.site-legal { padding: 20px 16px 32px; color: rgba(17,17,17,.56); display: flex; flex-wrap: wrap; gap: 8px 12px; }
.site-legal span { opacity: .5; }

/* Уведомление о cookie */
.site-cookie {
  position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: 420px;
  background: #fff; color: #111; border-radius: 8px; padding: 16px 18px;
  box-shadow: 0 6px 24px rgba(17,17,17,.16); font-size: 13px; line-height: 1.45;
  display: flex; gap: 14px; align-items: center;
}
.site-cookie a { color: inherit; }
.site-cookie button {
  flex: none; border: 0; border-radius: 6px; padding: 9px 16px; cursor: pointer;
  background: #303952; color: #fff; font-size: 13px;
}
@media (max-width: 639px) { .site-cookie { right: 16px; max-width: none; } }

/* Переключатель языка в меню */
.site-lang .s-header-type-1__link { font-weight: 600; letter-spacing: .04em; }
