:root {
    --photo-width: 250px;
    --photo-gap: 200px;
}

.carousel-section {
    width: 100%;
    max-width: 1200px;
    padding: 40px 0;
    text-align: center;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 200px;
    background: #000000;
    box-shadow: 0 10px 20px -5px rgba(25, 25, 25, 0.125);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.carousel-track {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    animation: smoothMove 30s linear infinite;
    gap: var(--photo-gap);
    will-change: transform;
}

.carousel-track.paused {
    animation-play-state: paused;
}

.photo-item {
    flex-shrink: 0;
    width: var(--photo-width);
    height: 100px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    position: relative;
}

.photo-item:hover {
    transform: scale(1.1) translateY(-10px);
    z-index: 10;
}

.photo-item img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-item:hover::before {
    opacity: 1;
}

@keyframes smoothMove {
    0% {
        transform: translateY(-50%) translateX(0);
    }
    100% {
        transform: translateY(-50%) translateX(calc((var(--photo-width) + var(--photo-gap)) * -15));
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .carousel-section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .carousel-container {
        height: 250px;
    }

    .photo-item {
        width: 150px;
        height: 100px;
    }
}
