.slider {
    max-width: 100%;
    position: relative;
    margin: auto;
    margin-top: 0px;
    overflow: hidden;
    touch-action: pan-y;
    border: 5px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-block-end: 0px;
}

.slider-container {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    position: relative;
    animation: fadeIn 0.8s ease both;
}

@keyframes fadeIn {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

.slide img {
    width: 100%;
    display: block;
    pointer-events: none;
    transition: transform 0.5s ease;
}

/* Анимации для ПК */
@media (min-width: 769px) {
    .slider:hover .slide img {
        transform: scale(1.02);
    }
    
    .slider {
        border: 2px solid #bbb;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }
    
    .slider-container {
        transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
    }
}

/* Анимации для мобильных */
@media (max-width: 768px) {
    .slider-container {
        transition: transform 0.4s ease-out;
    }
    
    .slide {
        animation: mobileSlideIn 0.5s ease both;
    }
    
    @keyframes mobileSlideIn {
        from { transform: translateX(10px); opacity: 0.8; }
        to { transform: translateX(0); opacity: 1; }
    }
    
    .slider-dots {
        bottom: 10px;
    }
}

/* Индикаторы */
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: scale(0.9);
}

.dot.active {
    background: #fff;
    transform: scale(1.1);
}

.dot:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.8);
}

/* Переключение изображений */
.desktop-img {
    display: block;
    animation: zoomIn 12s infinite alternate;
}

.mobile-img {
    display: none;
}

@keyframes zoomIn {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

@media (max-width: 768px) {
    .desktop-img {
        display: none;
        animation: none;
    }
    .mobile-img {
        display: block;
        animation: mobileZoom 14s infinite alternate;
    }
    
    @keyframes mobileZoom {
        0% { transform: scale(1); }
        100% { transform: scale(1.03); }
    }
}