/* #content {
    width: 1165px !important;
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    background-image: url('/img/catalog.jpg');
    text-align: left;
    height: 2950px;
} */

/* ----- Блок с кнопкой "Нужна консультация?" ----- */
.com {
    margin: 30px 0 10px 10px;
    position: relative;
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.com > div {
    line-height: 1.3;
    padding: 25px 0;
}

.com button {
    height: 38px;
    margin-top: 15px;
    width: 230px;
    border: 1px solid red;
    color: #C13125;
    padding: 8px 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 16px;
}

.callmail {
    background-color: #F3F3F3 !important;
    padding: 8px 0 8px 65px !important;
}

h1 {
    padding-top: 20px;
    font-size: 27px;
    line-height: 1.1 !important;
}

/* ----- Блок с карточками товаров (#group) ----- */
#group {
    display: flex;
    margin: 0;
    padding: 10px 0 0 0;
}

#group .datblock {
    padding: 20px 0 0 0;
    width: 100%;
    display: grid;
    /* адаптивная сетка: минимум 200px на карточку */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

figure.cat {
    width: 100%;
    height: 320px;

    position: relative;
    overflow: visible;
    margin: 0;
}

figure.cat img {
    object-fit: contain;
    height: 160px;
    width: 100%;
    display: block;
    object-position: center;
    margin-top: auto;
}

 
#offers {
    width: 280px;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.catalog_form h4 {
    font-size: 18px;
}

.catalog_form {
    background: none;
    text-align: center;
    margin: 0 0 10px 10px;
    padding: 30px 20px;
}

.catalog_form > div.go {
    width: 100%;
    margin: 0;
    padding: 5px 3px 5px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.catalog_form > div.go > div {
    font-size: 12px;
    font-weight: 600;
    width: 100%;
    text-align: right;
    line-height: 1.3;
}

.catalog_form > div.go > div strong {
    color: #D62625;
}

.catalog_form > div.dt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.catalog_form > div.dt > span {
    text-align: left;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    color: #4d4d4d;
    font-size: 12px;
    font-weight: 600;
}

.catalog_form input[type="text"] {
    width: 70%;
    height: 22px;
    background-color: #ffffff;
    border: 1px solid #b3b3b3;
    border-radius: 5px;
}

.catalog_form button {
    background-color: #D62625;
    color: #ffffff;
    width: 100%;
    height: 29px;
    border-radius: 5px;
    border: #ffffff;
    cursor: pointer;
}

.catalog_form textarea {
    background-color: #ffffff;
    border: 1px solid #b3b3b3;
    border-radius: 5px;
    height: 60px;
    width: 100%;
}

 
#instok {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    text-align: center;
    margin: 30px 0 10px 10px;
    padding: 30px 0;
}

#instok h3 {
    padding: 0 20px;
    line-height: 1.3;
}

#instok .pos {
    margin-top: 20px;
}

 
#rev {
    width: 100%;
    margin: 30px 0;
    padding: 30px;
}

#rev .p3 {
    font-size: 28px;
    font-weight: 600;
    padding: 0 0 10px 0;
}

.datblock {
    position: relative;
}

/* область скрытия текста */
.text_hide_wrap {
    position: relative;
    overflow: hidden;
    max-height: 160px;
    transition: max-height 1.1s ease;
    padding-bottom: 50px;
}

.text_hide_wrap::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 110px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #F3F3F3);
    transition: opacity .3s ease;
}

.datblock.open .text_hide_wrap {
    max-height: 3000px;
}

.datblock.open .text_hide_wrap::after {
    opacity: 0;
}

.toggleReview {
    margin-top: 10px;
    cursor: pointer;
    padding: 12px;
    right: 0;
    bottom: 0;
    z-index: 3;
    background-color: #464A53;
    color: #ffffff;
    width: 180px;
    border-radius: 7px;
}

.datblock:not(.open) .item_text img {
    opacity: 0;
    display: none;
}

.datblock.open .item_text img {
    opacity: 1;
    display: block;
    transition: opacity .3s ease;
}

.item_text img {
    max-width: 40%;
    height: auto;
    float: left;
    margin: 6px 18px 10px 0;
    border-radius: 6px;
}

.item_text img.alignright {
    float: right;
    margin: 6px 0 10px 18px;
}

.item_text ul,
.item_text ol {
    display: flow-root;
}

.item_text em {
    font-style: normal;
}

/* ----- Swiper (товары в наличии) ----- */
.stockSwiper {
    width: 100%;
    height: 100%;
    padding: 0;
}

.stockSwiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F3F3F3;
    border-radius: 8px;
    box-sizing: border-box;
}

 
@media (max-width: 1180px) {
    #content {
        text-align: left;
        padding: 10px;
        padding-top: 25px;
    }

    #group .datblock {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 10px;
    }
}

 
@media (max-width: 768px) {
    #group {
        flex-direction: column;
    }

    #group .datblock {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    #offers {
        padding-top: 30px;
        width: 100%;
    }

    .stockSwiper .swiper-slide {
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        box-sizing: border-box;
    }
}

 
@media (max-width: 500px) {
    h1 {
        padding-top: 10px !important;
        font-size: 18px !important;
        line-height: 1.1 !important;
        margin: 0 !important;
    }

    #group .datblock {
        padding: 0;
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

 
@media (max-width: 350px) {
    #group .datblock {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}


figure.cat figcaption {
    line-height: 1.2;
    font-size: 14px;
    text-align: center;
    margin: 10px 0 0 0;
    padding: 0;
}

figure.cat figcaption a {
    color: inherit;
    text-decoration: none;
}

figure.cat figcaption a:hover {
    text-decoration: underline;
}

figure.cat figcaption h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 10px 0;
    line-height: 1.2;
}

figure.cat figcaption span {
    color: #ABABAB;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}