/* ═══════════════════════════════════════════════
   Rantie Theme Extra CSS — точное воспроизведение оригинала
   ═══════════════════════════════════════════════ */

/* ─── ШРИФТЫ ─────────────────────────────────── */
body, input, textarea, select, button {
    font-family: 'Roboto', Arial, sans-serif;
}

/* ═══════════════════════════════════════════════
   ПОПАПЫ — оригинальная механика
   Открытие: jQuery('#id').show() + body.addClass('modal-open')
   Закрытие: jQuery('.popupBlock').hide() + body.removeClass('modal-open')
   CSS: .popupBlock { display:none } 
        .modal-open .popupBlock — НЕ используем (у нас show/hide напрямую)
   ═══════════════════════════════════════════════ */

/* Базовый попап */
.popupBlock {
    position: fixed !important;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 1050;
    display: none;           /* открывается через jQuery .show() */
    overflow-x: hidden;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.70);
    outline: 0;
    /* background-image задаётся инлайн в HTML для попапов с фото */
    background-size: cover;
    background-position: center;
}

/* Блокируем скролл страницы когда попап открыт */
body.modal-open {
    overflow: hidden;
}

/* modal-dialog — центрирование */
body .modal-dialog {
    margin: 50px auto 30px;
}
.popupBlock .modal-dialog {
    max-width: 700px;
    position: relative;
    width: auto;
}

/* modal-content — белый блок */
.popupBlock .modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    background-clip: padding-box;
    box-shadow: 0px 0px 20px #424242;
    outline: 0;
    padding: 30px 30px;
}

/* Кнопка закрытия */
.popupBlock .close {
    position: absolute;
    top: 8px; right: 8px;
    padding-left: 36px !important;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
    transition: all ease-in-out .2s;
    font-size: 0; /* скрываем текст, показываем через SVG/::before */
    line-height: 1;
}
.popupBlock .exicon-close-black {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url('../images/exicon_close_black.svg') 50% 50% no-repeat;
}
/* Если SVG нет — показываем × */
.popupBlock .exicon-close-black::before {
    /*content: '×';*/
    font-size: 28px;
    font-weight: 300;
    color: #555;
    line-height: 1;
    display: block;
    text-align: center;
}

.popupBlock .input-group { margin-bottom: 10px; }
.popupBlock .input-block textarea { padding-top: 17px; }

/* ─── СПЕЦИАЛЬНЫЕ ПОПАПЫ ─────────────────────── */

/* Попапы с формами займа — темный header */
#form_zoloto .modal-dialog,
#form_tehnika .modal-dialog {
    max-width: 400px;
}
#form_zoloto .modal-body,
#form_tehnika .modal-body {
    padding: 15px 30px;
}
#form_zoloto .modal-header,
#form_tehnika .modal-header {
    background: #51656c;
    padding: 15px 30px;
}
#form_zoloto .modal-header *,
#form_tehnika .modal-header * {
    color: #fff;
    text-align: left;
    font-size: 26px;
}
#form_zoloto .modal-content,
#form_tehnika .modal-content {
    background: #f7f7f7;
    padding: 0;
}
/* readonly поля — серый фон */
.z_proba, .z_weight, .z_price, .z_price1 {
    background: #dedede !important;
}

/* Попап «Руководитель» #form — с фото на фоне (background-image инлайн)
   modal-content поверх фото — белый блок */
#form .modal-content {
    padding: 30px;
    border-radius: 4px;
}
#form .modal-header {
    padding: 0 0 16px;
    border-bottom: none;
    position: relative;
}

/* Попап «Оценка залога» #form_zalog_1, #ocenka */
#form_zalog_1 .modal-content,
#ocenka .modal-content {
    padding: 30px;
}

/* Попап успеха #form_success */
#form_success {
    z-index: 1051;
}
#form_success .modal-dialog {
    height: 100vh;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
#form_success .modal-header {
    border: none;
    padding: 0;
}
#form_success .modal-content {
    padding: 30px;
    height: 304px;
    max-width: 688px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 15px;
}
#form_success .modal-body {
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
}
#form_success .success__title {
    font-size: 24px; margin: 0; color: #000; text-align: center;
}
#form_success .success__text {
    font-weight: 300; color: rgba(0,0,0,0.7); text-align: center;
    font-size: 18px; line-height: 1.4; margin-top: 15px;
}

/* Попап калькулятора #form_zalog */
#form_zalog .modal-dialog {
    max-width: 600px;
}
#form_zalog .modal-content {
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
}
#form_zalog .modal-header {
    background: #51656c;
    padding: 16px 24px;
}
#form_zalog .modal-header * {
    color: #fff;
}
#form_zalog .modal-body {
    padding: 20px 24px;
    background: #fff;
}

/* ═══════════════════════════════════════════════
   КАЛЬКУЛЯТОР — choose-address оверлей
   ТОЧНЫЙ КАК В ОРИГИНАЛЕ:
   top: 160px (ниже tabs ~100px + select 60px)
   height: calc(100% - 160px)
   Родитель #home / #profile должен быть position:relative
   ═══════════════════════════════════════════════ */

/* Tab-pane должен быть relative для позиционирования оверлея */
#home, #profile, #home5, #profile5 {
    position: relative;
}

.choose-address,
.choose-address2 {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 100%;
    z-index: 100;
    height: calc(100% - 160px);
    top: 160px;
    left: 0;
    pointer-events: none; /* НЕ блокирует клики по select и ползункам! */
}
.choose-address.active,
.choose-address2.active {
    background-color: rgba(255, 255, 255, 0.35);
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
}
.choose-address.disactive,
.choose-address2.disactive {
    display: none !important;
}
.select-clone-wrapper {
    width: 100%;
    height: 150px;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    box-shadow: 0px 0px 15px 0px rgb(0 0 0 / 10%);
    color: #E0001E;
    font-size: 16px;
    font-weight: 500;
}
.choose-address.active .select-clone-wrapper,
.choose-address2.active .select-clone-wrapper {
    display: flex;
}
@media (max-width: 480px) {
    .choose-address, .choose-address2 {
        top: 150px;
        height: calc(100% - 150px);
    }
}

/* Цвет select до/после выбора */
.calc-addresses {
    color: rgba(0,0,0,0.4);
    border: 1px solid #dcdcdc;
    -webkit-appearance: menulist;
    height: 60px;
    border-radius: 5px;
    font-size: 18px;
    margin: 5px 0;
    width: 100%;
    box-sizing: border-box;
}
.calc-addresses.alert {
    border-color: #E0001E !important;
    color: #E0001E !important;
}
/* После выбора — чёрный */
.calc-addresses.selected { color: rgba(0,0,0,0.9); }

/* Правая форма — select офиса */
select.otdel { color: rgba(0,0,0,0.4); }
select.otdel.selected { color: rgba(0,0,0,0.9); }

/* ═══════════════════════════════════════════════
   КНОПКА «ПОКАЗАТЬ БОЛЬШЕ»
   ═══════════════════════════════════════════════ */
a.readfull {
    display: inline-block;
    color: #e20020;
    font-size: 14px;
    cursor: pointer;
    margin-top: 12px;
    text-decoration: none;
    border-bottom: 1px dashed #e20020;
    line-height: 1.5;
}
a.readfull:hover { color: #b0001a; border-color: #b0001a; }
.fulltext { margin-top: 12px; }
/* JS управляет через .show()/.hide() или slideDown/Up
   НЕ через CSS hidden класс — чтобы не было конфликтов */

/* ═══════════════════════════════════════════════
   МЕТАЛЛЫ — карточки
   ═══════════════════════════════════════════════ */
.block-col {
    border-radius: 12px; padding: 10px;
    width: 90px; height: 90px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    transform-style: preserve-3d;
}
.block976__col_first .block-col {
    background: linear-gradient(135deg, #b8860b 0%, #ffd700 40%, #daa520 65%, #b8860b 100%);
}
.block976__col_first .gs-number,
.block976__col_first .gs-gramm,
.block976__col_first .gs-metal { color: #4a2c00; }
.block976__col:not(.block976__col_first) .block-col {
    background: linear-gradient(135deg, #8e9eab 0%, #d4d4d4 35%, #f0f0f0 50%, #c0c0c0 65%, #8e9eab 100%);
}
.block976__col:not(.block976__col_first) .gs-number,
.block976__col:not(.block976__col_first) .gs-gramm,
.block976__col:not(.block976__col_first) .gs-metal { color: #2c3e50; }
.gs-number { font-size: 28px; font-weight: 700; line-height: 1; }
.gs-gramm  { font-size: 11px; margin-top: 2px; }
.gs-metal  { font-size: 12px; margin-top: 2px; font-weight: 500; }
.block976__wrap { display:flex; align-items:center; height:100%; padding:12px 16px; }
.block976__wrap_left { margin-right:16px; flex-shrink:0; }
.block976__wrap_right { flex:1; }
.block976__row::after { content:''; display:table; clear:both; }
.block976__col { float:left; box-sizing:border-box; padding:0 10px; }
.block976__col.col_6 { width:50%; }
@media (max-width:640px) { .block976__col.col_6 { width:100%; float:none; margin-bottom:16px; } }

/* ═══════════════════════════════════════════════
   АДАПТИВ БЛОКОВ
   ═══════════════════════════════════════════════ */
.block231::after { content:''; display:table; clear:both; }
.block231 .block231__col { float:left; box-sizing:border-box; }
.block231 .col_6 { width:50%; padding:0 15px; }
.mob-show { display:none; }
@media (max-width:768px) {
    .desk-show { display:none !important; }
    .mob-show { display:flex; gap:12px; justify-content:center; padding:20px 16px; }
    .block-2-link { flex:1; text-align:center; background:#e20020; color:#fff; border-radius:5px; padding:10px; text-decoration:none; font-size:14px; }
    .block231 .col_6 { width:100%; float:none; margin-bottom:20px; }
}
.addresses__more-info { display:flex; flex-wrap:wrap; }
@media (max-width:768px) {
    .addresses__more-info { display:none; }
    .addresses__more-info.open { display:block; }
    .addresses__show-more { cursor:pointer; color:#e20020; font-size:13px; padding:4px 0; }
    /*.addresses__show-more::after { content:' ▼ Подробнее'; }*/
    /*.addresses__show-more.open::after { content:' ▲ Скрыть'; }*/
    .contacts__desk { display:none; }
    .contacts__mobile { display:block; }
}
@media (min-width:769px) {
    .contacts__mobile { display:none; }
    .contacts__desk { display:block; }
}

/* img_bg_filter */
.img_bg_filter { position:absolute; top:0; left:0; right:0; bottom:0; pointer-events:none; z-index:0; }
[data-id="197"] { position:relative; }
[data-id="197"] > *:not(.img_bg_filter) { position:relative; z-index:1; }

/* form success box */
.form_wrap__successbox, .success_block {
    background:#d4edda; color:#155724;
    padding:10px 14px; border-radius:4px;
    margin-bottom:12px; font-size:14px; display:none;
}

/* ═══════════════════════════════════════════════
   МОДАЛЬНЫЕ ОКНА — ДВА ТИПА
   ═══════════════════════════════════════════════ */

/*
 * ТИП 1: С фото на фоне — «Обратиться к руководителю» (скриншот 4)
 * Фото занимает весь экран, поверх — белый блок с формой по центру
 */
.popupBlock--photo {
    background: none !important;
    background-color: transparent !important;
    align-items: center;
    justify-content: center;
}
.modal-dialog--photo {
    max-width: 520px;
    width: 94%;
    background: none;
    box-shadow: none;
    position: relative;
}
/* Фото на весь попап */
.modal-photo-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
/* Белый блок с формой поверх фото */
.modal-content--onphoto {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 40px rgba(0,0,0,.5);
    overflow: hidden;
}
.modal-content--onphoto .modal-header {
    padding: 24px 24px 14px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}
.modal-content--onphoto .modal-body {
    padding: 16px 24px 24px;
    max-height: 70vh;
    overflow-y: auto;
}

/*
 * ТИП 2: Белая модалка — калькулятор, форма займа, оценка (скриншоты 3, 5)
 * Тёмный фон, белый прямоугольник
 */
.popupBlock:not(.popupBlock--photo) .modal-dialog {
    max-width: 560px;
    width: 94%;
    position: relative;
    flex-shrink: 0;
}
.popupBlock:not(.popupBlock--photo) .modal-content {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}
.popupBlock:not(.popupBlock--photo) .modal-header {
    padding: 16px 20px 12px;
    border-bottom: 1px solid #eee;
    position: relative;
}
.popupBlock:not(.popupBlock--photo) .modal-body {
    padding: 16px 20px 20px;
    max-height: 80vh;
    overflow-y: auto;
}

/* Кнопка закрытия — общая для обоих типов */
.popupBlock .close,
.popupBlock .exicon.close,
.popupBlock .rantie-modal-close {
    position: absolute !important;
    top: 8px; right: 10px;
    width: 36px; height: 36px;
    background: none !important;
    border: none !important;
    border-radius: 50%;
    font-size: 28px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    color: #666;
    z-index: 10;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}
.popupBlock .close:hover,
.popupBlock .rantie-modal-close:hover { color: #e20020; }
.exicon-close-black::before {
    /*content: '\00D7';*/
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
}

/* ═══════════════════════════════════════════════
   ОВЕРЛЕЙ КАЛЬКУЛЯТОРА — исправленное позиционирование
   ═══════════════════════════════════════════════ */

/*
 * tab-pane (#home, #profile) — position:relative
 * .choose-address — absolute, начинается ПОСЛЕ select (~70px)
 * select с адресом остаётся кликабельным (z-index выше оверлея)
 */
.tab-pane {
    position: relative;
}

/* select должен быть поверх оверлея */
.calc-addresses {
    position: relative;
    z-index: 200;
    color: rgba(0,0,0,0.4);
    border: 1px solid #dcdcdc;
    -webkit-appearance: menulist;
    height: 60px;
    border-radius: 5px;
    font-size: 18px;
    margin: 5px 0;
    width: 100%;
    box-sizing: border-box;
    transition: color 0.2s, border-color 0.2s;
}
.calc-addresses.selected,
.calc-addresses:not([value=""]):not([value]) {
    color: rgba(0,0,0,0.9);
}
.calc-addresses.alert {
    border-color: #E0001E !important;
    color: #E0001E !important;
}

/* Оверлей: начинается ПОСЛЕ select */
.choose-address,
.choose-address2 {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 100%;
    z-index: 100; /* ниже чем z-index select (200) */
    /* 70px = высота select(60px) + margin(10px) */
    top: 70px;
    left: 0;
    height: calc(100% - 70px);
    min-height: 80px;
    pointer-events: none; /* изначально не перехватываем клики */
}
/* Когда активен — показываем и перехватываем клики */
.choose-address.active,
.choose-address2.active {
    pointer-events: auto;
    background-color: rgba(255, 255, 255, 0.35);
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
}
.choose-address.disactive,
.choose-address2.disactive {
    display: none !important;
}

/* Подсказка внутри оверлея */
.select-clone-wrapper {
    width: calc(100% - 40px);
    max-width: 300px;
    min-height: 70px;
    display: none;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    color: #E0001E;
    font-size: 15px;
    text-align: center;
    padding: 16px;
    border-radius: 4px;
    font-family: 'Roboto', Arial, sans-serif;
}
.choose-address.active .select-clone-wrapper,
.choose-address2.active .select-clone-wrapper {
    display: flex;
}

@media (max-width: 480px) {
    .choose-address, .choose-address2 { top: 65px; height: calc(100% - 65px); }
}

/* ─── ПОКАЗАТЬ БОЛЬШЕ ─────────────────────────
   .fulltext.hidden — скрыт (Joomla-контент уже имеет этот класс)
   .fulltext без hidden — виден
─────────────────────────────────────────────── */
.fulltext.hidden { display: none !important; }
.fulltext        { margin-top: 12px; }

a.readfull {
    display: inline-block;
    color: #e20020;
    font-size: 14px;
    cursor: pointer;
    margin-top: 12px;
    text-decoration: none;
    border-bottom: 1px dashed #e20020;
    line-height: 1.5;
    font-family: 'Roboto', Arial, sans-serif;
}
a.readfull:hover { color: #b0001a; border-color: #b0001a; }

/* ─── block711 — предметы залога ────────────── */
.block711__table { position: relative; overflow: hidden; }
.block711__bg {
    position: absolute; top:0; left:0; right:0; bottom:0;
    background-size: cover; background-position: center;
    transition: transform .4s ease;
}
.block711__table:hover .block711__bg { transform: scale(1.05); }
.block711__overlay {
    position: absolute; top:0; left:0; right:0; bottom:0;
    background-image: -webkit-linear-gradient(top, rgba(15,15,15,.5), rgba(0,0,0,.4));
    background-image: linear-gradient(to bottom, rgba(15,15,15,.5), rgba(0,0,0,.4));
}
.block711__cell {
    position: relative; width:100%; height:100%;
    display: table-cell; vertical-align: middle; text-align: center;
}
.block711__title p { color: #fff; }
.block711__btn {
    white-space: normal;
    height: auto !important;
    padding: 8px 16px;
    line-height: 1.4;
}
/* Кнопка описания показывается при hover */
.block711__button-container { margin-top: 12px; }

/* ─── Карта — убираем gap снизу ─────────────── */
.mapBulder, .mapBulder .block020, .mapBulder .container_100 {
    line-height: 0; font-size: 0; display: block;
}
.mapBulder iframe { display: block; width: 100%; border: 0; }


/* ═══════════════════════════════════════════════════════════════
   МОБИЛЬНАЯ ШАПКА — точная копия оригинала
   ═══════════════════════════════════════════════════════════════ */

/* Мобильная полоса — скрыта на десктопе */
.block__mobile {
    background-color: #59737E;
    display: none;
}

@media (max-width: 991px) {
    /* Показываем мобильную полосу */
    .block__mobile {
        display: block;
    }

    /* Десктопные части шапки — скрываем */
    .block009__rightwrapper,
    .block992 {
        display: none !important;
    }

    /* Контейнер мобильной полосы:
       addresses-mob слева, бургер справа через justify-content:space-between */
    .block__mobile_container {
        padding: 0;
        padding-left: 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;   /* ← ключевое: бургер уходит вправо */
        position: relative;
        min-height: 80px;
        box-shadow: 0px 4px 4px rgba(0,0,0,0.15);
        z-index: 9;
    }

    /* Адреса ломбардов — слева */
    .addresses-mob {
        font-size: 13px;
        line-height: 15px;
        color: #fff !important;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        text-decoration: none;
    }
    .addresses-mob img {
        margin-right: 8px;
    }

    /* Бургер кнопка — справа, тёмный квадрат 80x80 */
    .block__mobile_burger {
        width: 80px;
        height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #41555D;
        cursor: pointer;
        flex-shrink: 0;
        transition: .5s ease-in-out;
        z-index: 1000;
    }
    .block__mobile_burger img {
        display: block;
    }

    /* Меню — открывается при body.open_menu */
    /* block992 = навигационная полоса */
    .open_menu #block99240730907494,
    .open_menu .block992 {
        display: block !important;
        position: fixed;
        top: 0; left: 0;
        width: 100%;           /* строго 100% — не шире экрана */
        max-width: 100vw;      /* никогда не шире viewport */
        height: 100%;
        z-index: 9998;
        background: #59737E;
        overflow-x: hidden;    /* горизонтальный скролл ЗАПРЕЩЁН */
        overflow-y: auto;
        padding-top: 100px;
        box-sizing: border-box;
    }
    .open_menu .block992 .block992__maincontainer {
        background: transparent !important;
        height: auto !important;
    }
    .open_menu .block992__list {
        display: block !important;
        padding: 0;
    }
    .open_menu .block992__list_item {
        display: block !important;
        width: 100%;
    }
    .open_menu { overflow-x: hidden; }
    .open_menu .block992__list a,
    .open_menu .block992__list .separator {
        display: block !important;
        font-size: 24px !important;
        line-height: 41px !important;
        padding: 7px 0 6px 20px !important;
        color: #fff !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    /* Подменю в открытом мобильном меню */
    .open_menu .block992 .nav-child {
        display: block;
        padding-left: 20px;
    }
    .open_menu .block992 .nav-child a {
        font-size: 16px !important;
        padding: 5px 0 5px 20px !important;
    }
    /* Кнопка закрытия (× сверху справа) */
    .open_menu .block__mobile_burger {
        position: fixed;
        top: 0; right: 0;
        z-index: 9999;
    }
}

@media (min-width: 992px) {
    .block__mobile { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   ПОЛЗУНОК — polzunok.svg
   В main.css: url('polzunok.svg') — относительный путь от CSS
   Файл polzunok.svg лежит рядом с main.css в assets/css/
   Дополнительно переопределяем через var(--polzunok-url) для надёжности
   ═══════════════════════════════════════════════════════════════ */
input[type="range"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 100%;
    margin: 13.8px 0;
    outline: none;
    background: transparent;
    border: 0 !important;
    box-shadow: none !important;
}
input[type="range"]:focus { outline: none; }
input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #cacaca;
    border-radius: 1.3px;
}
/* ПОЛЗУНОК — polzunok.svg (54x34px, тёмно-серый прямоугольник с тремя полосками) */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    height: 34px;
    width: 54px;
    background-color: transparent;
    background-image: url('../images/polzunok.svg');  /* путь от CSS файла */
    background-repeat: no-repeat;
    background-size: 54px 34px;
    cursor: pointer;
    margin-top: -13px;
    border: none;
}
input[type="range"]:focus::-webkit-slider-runnable-track {
    background: #b7b7b7;
}
input[type="range"]::-moz-range-track {
    width: 100%; height: 8px;
    cursor: pointer;
    background: #cacaca;
    border-radius: 1.3px;
}
input[type="range"]::-moz-range-thumb {
    height: 34px; width: 54px;
    background-color: #506a75;
    background-image: url('../images/polzunok.svg');
    background-repeat: no-repeat;
    background-size: contain;
    cursor: pointer;
    border: none;
    border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   СЛАЙДЕР — height:470px, текстовый блок на всю высоту
   ═══════════════════════════════════════════════════════════════ */
#layerslider_1 {
    position: relative;
    width: 100%;
    height: 60vh !important;
    overflow: hidden;
    background: #fff;
    margin: 0 !important;
    padding: 0 !important;
}
#layerslider_1 .ls-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}
#layerslider_1 .ls-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Текстовый блок занимает всю высоту слайда с padding по бокам */
#layerslider_1 .ls-l {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 40px 60px;        /* отступы по бокам и сверху */
    display: flex;
    justify-content: flex-end; /* контент по правому краю (как в оригинале) */
    flex-direction: column;
    z-index: 3;
    /* Текст */
    font-family: 'Open Sans', 'Roboto', Arial, sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    line-height: 1.8;
    text-align: left;
}

/* Точки */
#layerslider_1 .ls-dots {
    position: absolute;
    bottom: 14px;
    left: 0; right: 0;
    text-align: center;
    z-index: 10;
}
#layerslider_1 .ls-dot {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    margin: 0 4px;
    cursor: pointer;
    transition: background 0.3s;
}
#layerslider_1 .ls-dot.active { background: #fff; }

/* Мобильный */
@media (max-width: 768px) {
    #layerslider_1,
    #layerslider_1 .ls-slide { height: 220px !important; }
    #layerslider_1 .ls-l {
        padding: 20px 16px;
        font-size: 13px;
        line-height: 1.6;
        white-space: normal;
        justify-content: flex-start;
    }
}
