/**
 * Promo Carousel - Стили
 * Карусель промо-карточек на главной странице
 */

/* Секция карусели */
.bb-promo-carousel-section {
    margin-top: 15px;
    border-radius: 12px;
    box-shadow: 0px 4px 4px 2px #49432142;
    background: #ffffff;
    padding: 40px 0 60px;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Градиентные overlay по краям */
.bb-promo-carousel-section::before,
.bb-promo-carousel-section::after {
    content: '';
    position: absolute;
    top: 0;
    width: 555px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.bb-promo-carousel-section::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.bb-promo-carousel-section::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

/* Контейнер карусели */
.bb-promo-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0 0 30px 0;
}

/* Wrapper с карточками */
.bb-promo-carousel-wrapper {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

/* Карточка */
.bb-promo-card {
    flex: 0 0 565px;
    width: 565px;
    height: 551px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #EFEFEF;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bb-promo-card:hover {
    /*transform: translateY(-5px);*/
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

/* Верхняя область - картинка */
.bb-promo-card-image {
    flex: 1;
    overflow: hidden;
    background: #EFEFEF;
}

.bb-promo-card-image img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Нижняя область - контент */
.bb-promo-card-content {
    height: 120px;
    padding: 20px 25px;
    background: #EFEFEF;
    display: flex;
    gap: 8px;
    align-items: center;
}

.bb-promo-card-title {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.bb-promo-card-description {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.bb-promo-card-button {
    text-wrap: nowrap;
    display: flex;
    background: #3A92FF;
    color: #ffffff;
    padding: 7px 33px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    width: fit-content;
    transition: background 0.3s ease;
}

.bb-promo-card:hover .bb-promo-card-button {
    background: #277fec;
}

/* Элементы управления */
.bb-promo-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
}

/* Стрелки */
.bb-promo-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #D9D9D9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.bb-promo-arrow:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.bb-promo-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.bb-promo-arrow img {
    max-width: 20px;
    width: 12px;
    height: auto;
}

.bb-promo-arrow-prev img {
    transform: scaleX(-1);
}

/* Dots - индикаторы */
.bb-promo-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bb-promo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d0d0d0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bb-promo-dot:hover {
    background: #a0a0a0;
}

.bb-promo-dot.active {
    background: #155EA0;
}

/* Адаптивность - планшеты */
@media (max-width: 1024px) {
    .bb-promo-carousel-section {
        padding: 30px 0 50px;
    }
}

/* Адаптивность - мобильные */
@media (max-width: 768px) {
    .bb-promo-carousel-section {
        padding: 20px 0;
    }

    /* Скрываем градиентные overlay на мобильных */
    .bb-promo-carousel-section::before,
    .bb-promo-carousel-section::after {
        display: none;
    }

    .bb-promo-card {
        flex: 0 0 274px;
        width: 274px;
        height: 332px;
    }

    .bb-promo-card-content {
        padding: 15px 18px;
        gap: 6px;
    }

    .bb-promo-card-title {
        font-size: 14px;
    }

    .bb-promo-card-description {
        font-size: 12px;
    }

    .bb-promo-card-button {
        padding: 8px 20px;
        font-size: 12px;
        margin-top: 8px;
    }

    .bb-promo-controls {
        display: none;
        gap: 15px;
    }

    .bb-promo-arrow {
        width: 40px;
        height: 40px;
    }

    .bb-promo-arrow img {
        width: 10px;
    }

    .bb-promo-dot {
        width: 10px;
        height: 10px;
    }

    .bb-promo-dots {
        gap: 8px;
    }
}
