/* ==========================================================================
   1. ЧИСТКА СТРАНИЦЫ (ОБНОВЛЕНО)
   ========================================================================== */


/* При этом заголовок над товарами (в правой колонке) оставляем */
body.catalog-constructions-page .right_block h1,
body.catalog-constructions-page .catalog-section-header {
    display: block !important;
    font-size: 24px !important;
    margin-bottom: 20px !important;
    font-weight: bold !important;
    color: #333 !important;
}

/* ==========================================================================
   2. ОСНОВНОЙ КОНТЕЙНЕР БАННЕРА
   ========================================================================== */

.custom-catalog-banner-js {
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    margin-bottom: 32px;
    width: 100%;
    min-height: 350px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5; /* Цвет-заглушка */
}

/* Слой 1: Цвет или Градиент наложения */
.banner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2; /* Между текстом и фоном */
    pointer-events: none;
}

/* Слой 2: Контент баннера (Текст + Кнопки) */
.banner-flex-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 60px;
    width: 100%;
    position: relative;
    
}

.banner-text-part { 
    flex: 0 0 65%; 
    z-index: 3;
}

/* Заголовок баннера */
.banner-title-main {
    font-size: 32px !important;
    font-weight: 500 !important;
    margin-bottom: 20px !important;
    border: none !important;
    padding: 0 !important;
    text-transform: none !important;
    line-height: 1.2 !important;
    color: #333 !important; /* Белый текст для контраста с фоном */
    letter-spacing: -0.5px;
}

/* Описание */
.banner-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 35px;
    color: #333;
    opacity: 0.95;
    max-width: 580px;
}

/* Слой 3: Активная картинка (Товар) */
.banner-img-part {
    flex: 0 0 35%;
    text-align: right;
    position: relative;
    z-index: 4; /* На десктопе картинка ПОВЕРХ градиента */
}

.banner-img-part img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    transition: transform 0.5s ease;
}

/* ==========================================================================
   3. КНОПКИ
   ========================================================================== */

.banner-buttons {
    display: flex;
    gap: 16px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.banner-btn {
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 35px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-transform: none !important;
    border: none !important;
    cursor: pointer;
}

/* Основная кнопка (Получить расчет) */
.banner-btn:not(.secondary) {
    background: #2cb099 !important; /* Бирюзовый Аспро */
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(44, 176, 153, 0.3) !important;
}

.banner-btn:not(.secondary):hover {
    background: #249682 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 176, 153, 0.4) !important;
}

/* Вторая кнопка (Нужна консультация) */
body.catalog-constructions-page .banner-btn.secondary {
    background: rgba(255, 255, 255, 0.8) !important;
    color: #333 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

/* Фикс текста внутри второй кнопки для Аспро */
body.catalog-constructions-page .banner-btn.secondary span,
body.catalog-constructions-page .banner-btn.secondary b {
    color: #333 !important;
}

body.catalog-constructions-page .banner-btn.secondary:hover {
    background: #ffffff !important;
    color: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

/* 1. Полностью скрываем блок цены и блок с кнопками (Заказать/В корзину) */
product-item-info-container {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: hidden !important;
    margin-bottom: 0px;
}

.product-item-title {
    text-align: center !important;
}
.product-item-button-container {
display: none !important;
}

product-item-container:hover {
    background-color: #f5f5f5 !important; /* Тот же серый фон, что и в обычном состоянии */
    border-color: #e0e0e0 !important;
}
.product-item-image-wrapper {
    position: relative;
    display: block;
    margin-bottom: 0px;
    padding-top: 100%;
    width: 100%;
  
}

.product-item {
    border-radius: 10px !important;
    background: #f5f5f5 !important;
    padding: 0px 0 0px !important;
    margin-bottom: 20px;
}


/* ==========================================================================
   4. МОБИЛЬНАЯ ВЕРСИЯ
   ========================================================================== */

@media (max-width: 991px) {
    .custom-catalog-banner-js {
        min-height: 250px !important;
        border-radius: 12px !important;
    }

    .banner-flex-layout {
        padding: 40px 25px !important; /* Уменьшенные отступы */
        flex-direction: column !important;
        text-align: center !important;
    }

    .banner-text-part {
        flex: 0 0 100% !important;
    }

    .banner-title-main {
        font-size: 26px !important;
        margin-bottom: 15px !important;
        z-index: 3 !important;
    }

    .banner-description {
        font-size: 16px !important;
        margin-bottom: 25px !important;
        z-index: 3 !important;
    }

    .banner-buttons {
        display: flex !important;
        flex-direction: column !important; /* Кнопки встают друг под другом */
        width: 100% !important;
        gap: 12px !important; /* Современный отступ между элементами flex */
        margin-top: 25px !important;
        
    }

    .banner-btn {
        width: 100% !important;
        margin: 0 !important; /* Сбрасываем лишние отступы Аспро */
        height: 50px !important; /* Одинаковая высота кнопок */
        z-index: 3 !important;
    }

    /* ЭФФЕКТ: Картинка за Цвет/Градиент */
    .banner-img-part {
        width: 100% !important;
        right: -20px !important;
        bottom: -20px !important;
        opacity: 1 !important; /* Делаем еще бледнее под заливкой */
        transform: rotate(-10deg);
        z-index: 1!important;
        position: absolute;
    }

    
    .banner-img-part img {
        filter: blur(0px) !important;
        box-shadow: none !important;
    }
    .banner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2;
    }
   .product-item {
    border-radius: 10px !important;
    background: #f5f5f5 !important;
    padding: 0px 0 0px !important;
}
.product-item-button-container {
display: none !important;
}
}
.topic {
   display: none;
}

