.bac-carousel {
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: 40px auto;
    height: 500px;
}

.bac-slide {
    display: none;
    position: relative;
    width: 100%;
    height: 100%;
}

.bac-slide.active {
    display: block;
}

.bac-comparison {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.bac-comparison img,
.bac-before img,
.bac-after img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bac-before,
.bac-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bac-after {
    clip-path: inset(0 50% 0 0); /* Показывает только правую часть */
}

.bac-slider {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.bac-background {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    z-index: 0;
}

.bac-prev {
    left: 0;
}

.bac-next {
    right: 0;
}

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

.bac-prev-btn {
    left: 10px;
}

.bac-next-btn {
    right: 10px;
}


.bac-background {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
    width: 30%;
    height: 80%;
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    opacity: 0.6;
    z-index: 1;
    transition: 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.bac-prev {
    left: -5%;
}

.bac-next {
    right: -5%;
}