

/* Start:/local/templates/bootstrap5/components/bitrix/news.list/portfolio/style.css?17925971652589*/
/* =========================================================
   КИНЕМАТИЧЕСКАЯ КАРУСЕЛЬ ПОРТФОЛИО (Speed-Ramp / Whip-Pan)
   ========================================================= */
.portfolio-carousel {
    overflow: hidden;
    position: relative;
}

/* Физика: резкий старт и долгое инерционное торможение в центре */
.portfolio-carousel .carousel-item {
    transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.55s ease !important;
}

/* Эффект легкого масштабирования при влете/вылете */
.portfolio-carousel .carousel-item-next:not(.carousel-item-start),
.portfolio-carousel .active.carousel-item-end {
    transform: translateX(100%) scale(0.96);
    opacity: 0;
}

.portfolio-carousel .carousel-item-prev:not(.carousel-item-end),
.portfolio-carousel .active.carousel-item-start {
    transform: translateX(-100%) scale(0.96);
    opacity: 0;
}

/* Кнопки переключения слайдов */
.carousel-nav-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--bs-border-color);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.carousel-nav-btn:hover {
    background: var(--accent-cyan);
    color: #070a12;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

/* Индикаторы-капсулы с прогрессом */
.portfolio-indicators {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.portfolio-indicators button {
    width: 32px;
    height: 6px;
    border-radius: 50rem;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.portfolio-indicators button.active {
    width: 64px;
    background: rgba(56, 189, 248, 0.25);
}

.portfolio-indicators button.active::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: var(--accent-cyan);
    animation: slideTimer 5s linear forwards;
}

.portfolio-carousel:hover .portfolio-indicators button.active::after {
    animation-play-state: paused;
}

@keyframes slideTimer {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}
/* End */
/* /local/templates/bootstrap5/components/bitrix/news.list/portfolio/style.css?17925971652589 */
