/**
 * mod_zt_layerslider — стили герой-слайдера.
 * Воспроизводит вид Revolution Slider с боевого сайта.
 */

.zt-layerslider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #eef2f7;
}

.zt-ls-viewport {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

/* Слайд */
.zt-ls-slide {
    position: absolute;
    inset: 0;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-in-out, visibility .8s;
    will-change: opacity;
}

.zt-ls-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Текстовые слои */
.zt-ls-layer {
    position: absolute;
    z-index: 5;
    max-width: 90%;
    box-sizing: border-box;
}

.zt-ls-layer h1,
h1.zt-ls-layer {
    margin: 0;
}

/* Кнопки */
.zt-ls-btn {
    display: inline-block;
    z-index: 7;
    white-space: nowrap;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .3s, color .3s, border-color .3s;
}

.zt-ls-btn:hover,
.zt-ls-btn:focus {
    background-color: transparent !important;
    color: #0e7cc9 !important;
    border-color: #0e7cc9 !important;
    text-decoration: none;
}

/* Стрелки */
.zt-ls-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    color: #1d4bdd;
    font-size: 16px;
    line-height: 42px;
    text-align: center;
    cursor: pointer;
    transition: background-color .25s, color .25s;
}

.zt-ls-arrow:hover {
    background: #1d4bdd;
    color: #fff;
}

.zt-ls-prev {
    left: 18px;
}

.zt-ls-next {
    right: 18px;
}

/* Точки */
.zt-ls-bullets {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    z-index: 10;
    text-align: center;
    line-height: 0;
}

.zt-ls-bullet {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .65);
    border: 1px solid rgba(29, 75, 221, .35);
    cursor: pointer;
    transition: background-color .25s;
}

.zt-ls-bullet.is-active {
    background: #1d4bdd;
}

/* Адаптив */
@media (max-width: 991px) {
    .zt-ls-viewport {
        height: 380px;
    }
}

@media (max-width: 767px) {
    .zt-ls-viewport {
        height: 300px;
    }

    .zt-ls-layer {
        max-width: 92%;
    }

    .zt-ls-btn {
        padding: 8px 18px !important;
        font-size: 11px !important;
    }

    .zt-ls-arrow {
        width: 34px;
        height: 34px;
        line-height: 34px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .zt-ls-viewport {
        height: 240px;
    }
}

/* ============================================================
   Вертикальное центрирование слоёв — как в Revolution Slider:
   top = 50% - (высота/2) + voffset
   Реализуем через translateY(-50%).
   ============================================================ */
.zt-ls-layer.zt-ls-middle {
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

/* Кнопки в слайдере — как на боевом */
.zt-ls-btn.zt-ls-middle {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}
/* Заголовок герой-слайдера — коррекция вертикали (+10px),
   как в Revolution Slider (центрирование по «маске»). */
.zt-ls-layer.zt-ls-title {
    margin-top: 10px;
}
/* ============================================================
   Сетка герой-слайдера — как в Revolution Slider (gridWidth 1240).
   Слои позиционируются относительно центрированной сетки.
   ============================================================ */
.zt-ls-grid {
    position: relative;
    width: 100%;
    max-width: 1240px;
    height: 100%;
    margin: 0 auto;
}

/* Слои теперь внутри сетки */
.zt-ls-grid .zt-ls-layer {
    /* позиция задаётся inline */
}

@media (max-width: 1259px) {
    .zt-ls-grid {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
}