.carousel-section {
    width: 100%;
    padding: 20px 0;
    background: var(--bg);
}

.carousel-container {
    position: relative;
    width: 85%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    margin-top: 10px;
}

.carousel-imgs {
    display: none;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    max-height: 520px;
}

.carousel-slide {
    min-width: 100%;
    user-select: none;
    cursor: pointer;
}

.carousel-slide img {
    width: 100%;
    display: block;
    border-radius: 20px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.carousel-slide:hover img {
    transform: scale(1.05);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 193, 0, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    color: #111;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-container:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:active {
    border: none;
}

.carousel-btn:hover {
    background: var(--accent);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

/* буллиты */
.carousel-bullets {
    position: absolute;
    bottom: 15px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.carousel-bullet {
    width: 12px;
    height: 12px;
    background: var(--bg);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-bullet.active {
    background: var(--accent);
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 6000;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: var(--accent);
    cursor: pointer;
}

@media (max-width: 600px) {
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

.carousel-slide img {
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.carousel-btn:focus {
    outline: none;
}

.carousel-title {
    color: var(--accent);
    width: 85%;
    max-width: 900px;
    margin: 0 auto;
}