/* Базовые стили карусели - ширина 100% от родителя */
.base-carousel {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.base-carousel__container {
    overflow: hidden;
    width: 100%;
}

.base-carousel__track {
    display: flex;
    gap: 20px;
    transition: transform 0.3s linear;
}

.base-carousel__track:active {
    cursor: grabbing;
}

.base-carousel__slide {
    flex: 0 0 calc(25% - 15px);
    min-width: 0;
}

/* Карточка */
.base-card {
    background: #fff;
    border: 4px solid #f0f0f0;
    overflow: hidden;
    border-radius: 12px;
}

.base-card__image {
    width: 100%;
    height: 180px;
    background: #f5f5f5;
}

.base-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.base-card__content {
    padding: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 60px;
}

.base-card__title {
    font-family: Playfair;
    font-size: 18px;
    font-weight: normal;
    color: #464646;
    margin: 0;
    text-align: center;
    line-height: 1;
}

.base-card__button {
    display: inline-block;
    padding: 6px 12px;
    background: #A69DCC;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    border-radius: 4px;
}

/* Стрелки ПОВЕРХ картинок */
.base-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    z-index: 10;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.base-carousel__arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.base-carousel__arrow--prev {
    left: 10px;
}

.base-carousel__arrow--next {
    right: 10px;
}

/* Затемнение по краям */
.base-carousel::before,
.base-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.base-carousel::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.95), transparent);
}

.base-carousel::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,0.95), transparent);
}

/* Dots навигация */
.base-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.base-carousel__dot {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.base-carousel__dot.active {
    background: #A69DCC;
}

/* Пустое состояние */
.base-carousel__empty {
    padding: 40px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 8px;
    color: #666;
}

/* ===== АДАПТИВНОСТЬ ===== */

/* 3 слайда */
@media (max-width: 992px) {
    .base-carousel__slide {
        flex: 0 0 calc(33.333% - 14px);
    }
}

/* 2 слайда */
@media (max-width: 768px) {
    .base-carousel__slide {
        flex: 0 0 calc(50% - 10px);
    }
    .base-carousel {
        padding: 15px 0;
    }
    .base-carousel__arrow {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    .base-carousel__arrow--prev {
        left: 5px;
    }
    .base-carousel__arrow--next {
        right: 5px;
    }
}

/* 1 слайд */
@media (max-width: 576px) {
    .base-carousel__slide {
        flex: 0 0 100%;
    }
    .base-carousel::before,
    .base-carousel::after {
        display: none;
    }
    .base-carousel__arrow {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}

/* Touch-устройства */
.base-carousel {
    touch-action: pan-y pinch-zoom;
}

.base-carousel__track img,
.base-carousel__track a {
    user-select: none;
    -webkit-user-drag: none;
}