.slider-container {
    position: relative;
    width: 80%;
    max-width: 800px;
    margin: 50px auto;
    overflow: hidden; /* Восстанавливаем для корректной работы слайдера */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
}

.slider {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    flex: 0 0 100%; /* Каждый слайд занимает полную ширину */
    text-align: center;
}

.slide img {
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    z-index: 10;
}

.prev { left: 10px; }
.next { right: 10px; }

.navigation {
    text-align: center;
    margin-top: 15px;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dot {
    height: 12px;
    width: 12px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.dot.active {
    background-color: rgba(0, 0, 0, 0.7);
}

@media (max-width: 600px) {
    .slider-container { width: 90%; }
    .prev, .next { font-size: 16px; padding: 8px; }
    .dot { height: 10px; width: 10px; }
}