/* =========================================
   КОНТЕЙНЕР СЛАЙДЕРА
   ========================================= */
.ss-container {
    width: 100%;
    position: relative;
}

/* =========================================
   ОБЁРТКА — УПРАВЛЯЕТ ВЫСОТОЙ
   ========================================= */
.ss-slides-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;

    /* базовое соотношение сторон */
    aspect-ratio: 16 / 9;

    /* ограничение по высоте экрана */
    max-height: 70vh;
}

/* =========================================
   СЛАЙД
   ========================================= */
.ss-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* активный слайд */
.ss-slide.ss-visible {
    opacity: 1;
    position: relative;
}

/* =========================================
   КАРТИНКА
   ========================================= */
.ss-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================
   ТЕКСТ НА СЛАЙДЕ
   ========================================= */
.ss-title {
    position: absolute;
    bottom: 15px;
    left: 20px;
    color: #fff;
    font-size: 20px;
    text-shadow: 0 0 5px #000;
}

/* =========================================
   СТРЕЛКИ
   ========================================= */
.ss-prev,
.ss-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 10px 14px;
    border-radius: 4px;
    cursor: pointer;
    z-index: 10;
}

.ss-prev { left: 10px; }
.ss-next { right: 10px; }

/* =========================================
   ТОЧКИ
   ========================================= */
.ss-dots {
    text-align: center;
    margin-top: 20px;
}

.ss-dot {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.ss-dot.active {
    background: #333;
}

/* =========================================
   НИЗКАЯ ВЫСОТА ЭКРАНА (1366×768, 1024×768)
   ========================================= */
@media (max-height: 800px) {

    .ss-slides-wrapper {
        aspect-ratio: 16 / 10;
        max-height: 60vh;
    }

    .ss-title {
        font-size: 18px;
        bottom: 10px;
    }
}

/* =========================================
   ОЧЕНЬ НИЗКАЯ ВЫСОТА
   ========================================= */
@media (max-height: 700px) {

    .ss-slides-wrapper {
        aspect-ratio: 3 / 2;
        max-height: 55vh;
    }

    .ss-title {
        font-size: 16px;
    }
}

/* =========================================
   MOBILE — БЕЗ АГРЕССИВНЫХ ОГРАНИЧЕНИЙ
   ========================================= */
@media (max-width: 768px) {

    .ss-slides-wrapper {
        aspect-ratio: 4 / 3;
        max-height: none;
    }

    .ss-title {
        font-size: 16px;
    }
}




