/* Новый слайдер */
.new-slider-section {
    width: 100%;
    margin: 50px 0;
    overflow: hidden;
    position: relative;
}

.new-slider-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.new-slider {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease;
}

.new-slide {
    min-width: 100%;
    flex-shrink: 0;
    position: relative;
    display: none;
}

.new-slide.active {
    display: block;
}

/* Стили для изображений */
.new-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Скрываем мобильные изображения по умолчанию */
.new-slide .mobile-img {
    display: none;
}

/* Кнопки навигации - квадратные с простыми стрелками, прижатые к краям */
.new-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #7a7a7a;
    color: white;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    transition: background-color 0.3s;
}

.new-slider-btn:hover {
    background-color: #d50032;
}

.new-slider-btn.prev {
    left: 0;
    border-radius: 0 4px 4px 0;
}

.new-slider-btn.next {
    right: 0;
    border-radius: 4px 0 0 4px;
}

/* Прямоугольные переключалки с косыми краями */
.new-slider-dots {
    position: absolute;
    bottom: 25px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.new-slider-dots .dot {
    width: 20px;
    height: 10px;
    background: white;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.new-slider-dots .dot.active {
    background: #d50032;
}

/* Скос для первого и последнего элемента */
.new-slider-dots .dot:first-child {
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
}

.new-slider-dots .dot:last-child {
    clip-path: polygon(0 0, 92% 0, 100% 100%, 0% 100%);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .new-slider-btn {
        width: 30px;
        height: 50px;
        font-size: 18px;
    }
    
    .new-slider-dots .dot {
        width: 16px;
        height: 8px;
    }
    
    /* Показываем мобильные изображения */
    .new-slide .desktop-img {
        display: none;
    }
    
    .new-slide .mobile-img {
        display: block;
    }
}

@media (max-width: 480px) {
    .new-slider-btn {
        width: 25px;
        height: 40px;
        font-size: 16px;
    }
    
    .new-slider-dots .dot {
        width: 12px;
        height: 6px;
    }
}