.img_product {
    width: 100%;
    height: 290px;
    border-radius: 10px;
    object-fit: cover;
}
.text_product {
    position: absolute;
    bottom: 0px;
    left: 0px;
    z-index: 100;
    color: #FFFFFF;
    background: rgba(37, 37, 37, 0.55);
    width: calc(100% - 30px);
    padding: 15px 15px;
    border-radius: 5px;
    margin: 15px;
}
.div_product {
    flex: 0 0 calc(33.333% - 10px);
    white-space: nowrap;
}
.brand_box {
    width: 100%;
    height: 185px;
    position: relative;
    overflow: hidden;
}
.brand_image {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: top center;
    border-radius: 15px 15px 0px 0px;
    border-radius: 10px;
}
.tg_post {
    width: 100%;
    height: 290px;
    position: relative;
    /* overflow: hidden; */
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}
.main_tg_block {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    align-items: stretch; 
    gap: 15px;
}
@media (max-width: 1240px){
    .img_product{
        width: 100%;
    }
    .div_product {
        flex: 0 0 calc(50% - 7.5px); 
    }
    .tg_div_slide {
        width: 440px;
    }
    .tg_post {
        width: 410px;
        position: relative;
        overflow: hidden;
        height: 234px;
    }
    .main_tg_block {
        display: flex;
        gap: 15px;
    }
    .tg_div_slide {
        display: flex;
        flex-direction: column;
    }
    .second_div_30_20 {
        flex-grow: 1; 
    }
}
@media (max-width: 768px){
.main_tg_block {
    gap: 5px;
}
.tg_div_slide {
    width: 428px; 
    display: flex;
    flex-direction: column;
    flex: 1;
}
.tg_post {
    width: 305px;
    height: 139px;
}
.second_div_30_20 {
    padding-bottom: 20px;
}
.tg_div_slide .second_div_30_20 {
    flex: 1; 
}

.tg_div_slide {
    width: 325px; /* На всю ширину контейнера */
}
.brand_image {
    border-radius: 5px;
}

.img_product {
    width: 325px;
    height: 400px;
    border-radius: 5px;
}
.text_product {
    width: 305px;
    margin: 15px 10px;
}
.div_product {
        flex: 0 0 325px; /* ⬅️ ФИКСИРОВАННАЯ ширина, а не 100% */
        white-space: normal;
    }
div.gap_15_5[style*="flex-wrap: wrap"] {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 10px;
        padding: 10px 0;
        margin: 0 -15px;
        padding-left: 15px;
        -webkit-overflow-scrolling: touch;
    }
    
    .div_product {
        flex: 0 0 325px !important;
        white-space: normal;
    }
}