/* =========================================
   КАРУСЕЛЬ ОТЗЫВОВ
   ========================================= */
.ba-page-hero {
    padding-top: 6rem;
}

.reviews-carousel-section {
    padding: 2rem 0 4rem 0;
}

.reviews-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    scrollbar-width: thin;
}

.reviews-carousel::-webkit-scrollbar {
    height: 4px;
}

.reviews-carousel::-webkit-scrollbar-thumb {
    background: var(--color-muted);
    border-radius: var(--radius-pill);
}

.review-card {
    flex: 0 0 380px;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    scroll-snap-align: start;
    min-height: 160px;
    display: flex;
    align-items: center;
    transition: transform 0.45s var(--ease-out), box-shadow 0.45s ease;
}

/* =========================================
   ЖИДКОЕ СТЕКЛО ДЛЯ ОТЗЫВОВ
   ========================================= */
.glass-review {
    position: relative;
}

.glass-review p {
    font-size: 0.9375rem;
    color: var(--color-ink);
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
}

/* =========================================
   ГАЛЕРЕЯ ДО/ПОСЛЕ
   ========================================= */
.ba-gallery-section {
    padding: 2rem 0 6rem 0;
}

.ba-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.ba-item {
    display: flex;
    flex-direction: column;
}

/* Слайдер */
.ba-slider-mini {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--color-bg);
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    box-shadow: 0 22px 50px rgba(27, 27, 27, 0.1);
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease;
}

.ba-item:hover .ba-slider-mini {
    transform: translateY(-4px);
    box-shadow: 0 30px 64px rgba(27, 27, 27, 0.14);
}

.ba-slider-mini img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   ИСПРАВЛЕННАЯ ЛОГИКА ДЛЯ КАРТИНОК
   ========================================= */
.ba-mini-after {
    z-index: 1;
    /* Убираем жесткую обрезку 50%, JS будет управлять этим сам с самого старта */
    clip-path: inset(0 0 0 50%);
}


.ba-mini-before {
    z-index: 0;
}


/* Ползунок */
.ba-mini-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: 2;
    width: 2px;
    background: rgba(255, 255, 255, 0.6);
    cursor: ew-resize;
    transform: translateX(-50%);
}

.ba-mini-handle span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2rem;
    height: 2rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #333;
}

/* Бейджики (До / После) */
.ba-mini-badge {
    position: absolute;
    top: 1rem;
    z-index: 2;
    padding: 0.2rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    color: #333;
}

.ba-mini-before-label {
    left: 1rem;
}

.ba-mini-after-label {
    right: 1rem;
}