/* --- Общие стили --- */
.refloor-tabs {
    margin: 65px auto 30px;
}
.flex-1 {
    flex: 1;
}

/* --- Вкладки --- */
.tab-header {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid #ccc;
    margin-bottom: 30px;
}

.tab {
    padding: 10px 20px;
    min-width: 172px;
    cursor: pointer;
    color: #232323;
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 400;
    text-align: center;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab.active {
    color: #000;
    font-weight: 600;
    border-bottom: 2px solid #000;
}

.tab-content {
    display: none;
    min-height: 596px;
}

.tab-content.active {
    display: block;
    
}

.tab-content.height-auto {
    height: auto;
    min-height: unset;
}



.tab-content .h-100 {
    height: 100%;
    position: relative;
}

.tab-content .advantage {
    justify-items: center;
    margin-left: 40%; /* calc(100% / 100 * 40) */
    padding-left: 10%; /* calc(100% / 100 * 10) */
    padding-top: 15%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: normal;
    background: #F8F9FB;
    position: relative;
}

.advantage-title-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 48px;
    font-size: 24px;
    font-weight: 600;
    gap: 16px;
}

.advantage-title-container .advantage-icon {
    width: 40px;
    height: 40px;
}

.tab-advantages {
    background-size: auto 120%;
    background-repeat: no-repeat;
    background-position: 0px bottom;
}

.tab-advantages .btn-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px 15px;
    padding-bottom: 20%;
}

.tab-advantages .btn-item {
    padding: 0 10px;
    height: 25px;
    font-size: 12px;
    text-transform: uppercase;
    color: #b7b7b7;
    border: #b7b7b7 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 0;
    text-decoration: none;
}

.tab-advantages .btn-item:hover {
    text-decoration: none;
}

.tab-advantages .btn-item.active {
    color: #232323;
    border: #232323 1px solid;
}

/* --- Слайдер коллекций --- */
.collections-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 100%;
    margin: 40px auto;
    box-sizing: border-box;
}

.collections-viewport {
    overflow: hidden;
    flex: 1;
    width: 100%;
}

.collections-track {
    display: flex;
    transition: transform 0.4s ease;
    height: 100%;
    will-change: transform;
}

.collection-card {
    flex: 0 0 33.333%;
    box-sizing: border-box;
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.collection-card img {
    width: auto;
    /*max-height: 60%;*/
    object-fit: contain;
    margin: 0 auto 10px;
}
.collection-card h4{
    text-transform: uppercase;
}
.collection-card h4,
.collection-card p {
    margin: 0;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}

.collections-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 50%;
    font-size: 22px;
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.collections-arrow:hover {
    background: #000;
    color: #fff;
}

.collections-arrow.prev {
    left: 10px;
}

.collections-arrow.next {
    right: 10px;
}

/* --- Адаптив --- */
@media (max-width: 768px) {
    .collection-card {
        flex: 0 0 100%;
    }
    .collection-card img {
        max-height: 100%;
    }
}

@media (max-width: 720px) {
    .widget.c-sections.c-sections-template-1 .widget-element-name {
        font-size: 14px;
        line-height: 16px;
    }
}

/* --- Секции и виджеты --- */
.widget.c-sections.c-sections-template-1 .widget-element-wrap {
    border: 1px solid #F2F2F2;
    margin: 0 0 -1px -1px;
    transition: 0.4s;
}

.widget.c-sections.c-sections-template-1 .widget-element-wrap:hover {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.widget.c-sections.c-sections-template-1 .widget-element-picture {
    max-width: 100%;
    max-height: 100%;
}

.widget.c-sections.c-sections-template-1 .widget-element-picture-block {
    position: relative;
    display: block;
    padding-top: 80%;
}

.widget.c-sections.c-sections-template-1 .widget-element-picture-wrap {
    position: absolute;
    top: 45px;
    left: 45px;
    right: 45px;
    bottom: 10px;
    text-align: center;
}

.widget.c-sections.c-sections-template-1 .widget-element-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    text-decoration: none;
    color: #222222;
    transition: 0.4s;
}

.widget.c-sections.c-sections-template-1 .widget-element-name-wrap {
    padding: 20px 20px 40px 20px;
}

/* --- Списки секций --- */
.section-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.section-list-item {
    width: 180px;
    height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    border: #f2f2f2 1px solid;
    text-align: center;
    padding: 45px;
    font-size: 14px;
    font-weight: 600;
}

.section-list-item img {
    width: 80px;
    aspect-ratio: 1;
    object-fit: cover;
}

/* --- Блоки с преимуществами --- */
.refloor-tabs .related-products {
    display: flex;
    flex-direction: row;
    gap: 40px;
    margin-bottom: 38px;
}

.refloor-tabs .related-product {
    padding: 31px 43px;
    background: #edeeef;
    border-radius: 16px;
    flex: 1;
}

.refloor-tabs .related-product-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 50px;
}

.label-ms-spc-2000-prof {
    background: #8D54B4;
    color: white;
    padding: 2px 12px;
}

.label-ms-wood-4000-prof {
    background: #16A0AB;
    color: white;
    padding: 2px 12px;
}

#refloorInforelated {
    background: #F8F9FB;
    padding: 50px 0 0;
}

.refloor-catalog{
    display: flex;
    justify-content: center;
}

.refloor-catalog__link{
    padding: 15px 24px;
    font-size: 16px;
    border: 2px solid #000;
    border-radius: 5px !important;
    transition: 0.5s;
}

.related-products-advantages {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
}

.related-advantages-item {
    height: 55px;
    padding: 0px 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    background: #EDEEEF;
    border-radius: 16px;
    gap: 9px;
    font-weight: normal;
}

.related-advantages-item span {
    font-size: 30px;
    font-weight: 700;
    text-transform: uppercase;
}

/* --- О блоке "о продукте" --- */
.product-about-container {
    display: flex;
    flex-direction: row;

}

.product-about-column-info {
    max-width: 100%;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}
.product-about-column-content {
    width: 100%;
    max-width: 80%  ;
    padding: 60px 0 52px 23px;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.product-about-column-content-left{
    max-width: 450px;
}
.advantage--color-white{
    background: #fff !important;
}


.product-about-column-info .title {
    text-transform: uppercase;
}
.product-about-container .banner {
    width: 100%;
    object-fit: cover;
    min-height: 585px;
}
.product-about-text-item:nth-child(1){
    padding: 9px 17px 9px 56px;
    font-size: 20px;
    font-weight: bold;
}
.product-about-text-item:nth-child(2){
    padding: 5px 10px;    
}
.product-about-text-item-font{
    font-size: 40px;
}
.product-about-text-item--price{
    background-image: url("images/price_bg.png");
}

.product-about-text{
    position: absolute;
    padding-bottom: 19px;
    display: flex;
    flex-direction: column;
    gap: 19px;
}
.product-about-text-item{
    background-color: #E7E6E2;
}

.product-about-right{
    display: flex;
    align-items: end;
}

.product-about-photo {
    flex: 1;
}
.product-about-advantage {
    height: 80px;
    border-bottom: #000 1px solid;
    display: flex;
    flex-direction: row;
    gap: 25px;
    align-items: center;
}
.product-about-advantage:last-child {
    border-bottom: none;
}

.section-list-item a{
    display: block;
    /* line-height: 1.2em; */
    height: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
}

#refloorInfospc {
    background: #F8F9FB;
    padding: 20px 0 0;
}
#refloorInfospc .tab-header {
    margin-bottom: 50px;
}
#refloorInfospc .tab-content {
    border-bottom: solid 42px #282828
}
.tab-content-picture--struct{
    max-width: 98%;
}
.refloor-tabs--nobg{
    background: transparent !important;
}
@media screen {
    .refloor-catalog__link:hover{
        background-color: #000;
        color: #fff;
        text-decoration: none;
    }
}

@media(max-width: 935px){
    .section-list-item{
        height: unset;
        width: 100%;
        max-width: 33%;
    }
    .section-list{
        flex-wrap: wrap;
    }
    .related-product-img{
        top: 190px !important;
    }
}

@media(max-width: 768px){
    .tab-header{
        justify-content: unset;
        overflow-x: scroll;
    }
    .refloor-tabs .related-products{
        flex-direction: column;
    }
    .related-product-img {
        top: 3% !important;
        left: 73% !important;
    }
    .refloor-tabs .related-product{
        flex: unset;
        height: 38vh;
    }
    .related-product-title{
        max-width: 230px;
        font-size: 16px !important;
        margin-bottom: 20px;
    }
    .product-about-column-content{
        flex-direction: column;
    }
    .product-about-column-pic{
        top: 0;
    }
}

@media(max-width: 660px){
    .product-about-container{
        flex-direction: column;
    }
    .product-about-column-content, .product-about-column-info, .product-about-container .banner{
        width: 100%;
    }
    
    .advantage{
        margin-left: unset !important;
        margin-bottom: 40%;
        padding-left: 5%;
        padding-right: 5%;
    }
    .tab-advantages .btn-container{
        padding-bottom: 3%;
    }
    .related-advantages-item span {
        font-size: 20px !important;
    }
    .related-advantages-item{
        font-size: 14px !important;
    }
    
    .product-about-advantage:nth-child(2){
        border-bottom: unset;
    }   
}

@media(max-width: 600px){
    .tab--minw{
        min-width: unset;
        width: 25%;
    }
    .tab{
        font-size: 12px;
    }
    .section-list-item, .section-list-item a{
        height: max-content;
    }
    .product-about-column-content-left img{
        display: none;
    }
    .product-about-column-content{
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .product-about-column-content-left{
        padding-bottom: 7px;
    }
    .product-about-column-content-left h3{
        font-size: 16px !important;
    }    
    .product-about-column-content-left p, .product-about-advantage-text{
        font-size: 14px !important;
    }
    .product-about-advantage{
        gap: 25px;
    }
    #refloorInfospc .tab-header {
        margin-bottom: 10px;
    }
    .product-about-advantage{
        height: 60px;
    }    
    .product-about-container .banner{
        min-height: unset;
    }
    .tab-advantages .btn-item{
        font-size: 11px;
    }
}
@media(max-width: 550px){
    .related-advantages-item, .related-advantages-item--mw49{
        flex-direction: column;
        align-items: start;
        gap: 0px;
        width: 100%;
        max-width: 100% !important;
    }
}
@media(max-width: 500px){
    .related-advantages-item span {
        font-size: 16px !important;
    }
    .related-advantages-item {
        font-size: 12px !important;
    }
    .related-advantages-item {
        height: unset;
        padding: 10px 27px;
    }    
}
@media(max-width: 490px){
    .related-product-img{
        width: 355px !important;
        top: -5% !important;
        left: 60% !important;
    }
    .related-product ul {
        max-width: 79% !important;
    }
    .related-advantages-item span{
        white-space: nowrap;
    }
}

@media(max-width: 480px){
    .section-list-item {
        max-width: 47%;
    }
    .section-list{
        gap: 20px;
    }
    .section-list-item{
        padding: 17px;
    }
    .product-about-advantage{
        height: unset !important;
        padding: 10px 0;
    }
}
@media(max-width: 380px){

}