#opt-advantages {

    background-color: #FAFAFA;
    padding: 60px 0px 0px 0px;
}

.opt-adv-grid {

    display: flex;
    flex-wrap: wrap;
}

.opt-adv-grid__item {

    width: 25%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 110px;
}

.opt-adv-grid__item-icon {

    padding: 0px 60px 0px 20px;
}

.opt-adv-grid__item:nth-child(1) svg { width: 112px; height: 102px; }
.opt-adv-grid__item:nth-child(2) svg { width: 171px; height: 99px; }
.opt-adv-grid__item:nth-child(3) svg { width: 105px; height: 105px; }
.opt-adv-grid__item:nth-child(4) svg { width: 96px; height: 87px; }
.opt-adv-grid__item:nth-child(5) svg { width: 99px; height: 118px; }
.opt-adv-grid__item:nth-child(6) svg { width: 149px; height: 86px; }
.opt-adv-grid__item:nth-child(7) svg { width: 119px; height: 116px; }
.opt-adv-grid__item:nth-child(8) svg { width: 144px; height: 120px; }

#opt-terms {

    background-color: #FAFAFA;
    padding: 60px 0px 100px 0px;
    margin-bottom: 50px;
}

.opt-terms {

    display: flex;
}

.opt-terms__info {

    flex: 0 1 490px;
    padding-right: 37px;
    display: flex;
    flex-wrap: wrap;
}

.opt-terms__info-text {

    font-size: 18px;
    font-weight: 300;
    line-height: 1.3;
}

.opt-terms__table {

    flex: 1 0 25%;
    overflow-x: auto;
}

.opt-terms__table-tabs {

    display: flex;
    min-width: 950px;
    padding-top: 10px;
}


.opt-terms__table-tab {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    border: 1px #D93030 solid; 
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    padding: 10px;
    cursor: pointer;
    width: 100%;
    transition: height .2s ease;
    line-height: 1.3;
}

/*временно скрываем табы */
.opt-terms__table-tab:nth-child(2),
.opt-terms__table-tab:nth-child(3) {

    visibility: hidden;
}

.opt-terms__table-tab.active { 

    background: #D93030; 
    color: white;
}

.opt-terms__table-content {

    width: 100%;
    min-width: 950px;
}

.opt-terms__table-content table {

    width: 100%;
    border-collapse: collapse;
    font-size: 18px;
    text-align: center;
    border: 2px #f5f5f5 solid;
    font-weight: 300;
    background: #ffffff;
    display: none;
}

.opt-terms__table-content th {
    padding: 28px;
    width: 25%;
    font-weight: 400;
}

.opt-terms__table-content th:nth-child(3) {
    width: 50%;
}

.opt-terms__table-content td {

    padding: 28px;
    border: 2px #f5f5f5 solid;
}

.opt-terms__table-content .common-cell {

    vertical-align: middle;
    line-height: 1.3;
}

.opt-terms__table-content .discount-val {

    font-size: 24px;
    font-weight: 400;
}

.opt-terms .about-banner.notification {

    background-color: #ffffff;
    height: 168px;
    background-size: auto 100%;
    background-position-x: -50px;
    align-self: flex-end;
    display: flex;
}

.opt-terms .notification-label {

    font-size: 80px;
    font-weight: 500;
}

.opt-terms .notification .about-banner-text b {

    font-weight: 500;
}

.opt-terms .notification-label p {

    font-size: 18px;
}

.opt-terms .notification .about-banner-text {

    max-width: 42%;
    text-transform: uppercase;
}

#opt-catalog-download {

    background: url('/local/templates/rubosport/images/opt-red-bg.png') no-repeat top center;
    height: 500px;
}

#opt-catalog-download .wrapper {

    height: 100%;
}

.opt-download {

    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    margin: 0 auto;
    height: 100%;
}

.opt-download__info-text {

    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 70px;
}

.opt-download__btn {

    font-family: 'Rubik';
    font-size: 18px;
    cursor: pointer;
    text-transform: uppercase;
    border: none;
    color: #000000;
    width: 336px;
    height: 64px;
    border-radius: 6px;
    transition: box-shadow .2s ease;
}

.opt-download__btn:hover {

    box-shadow: 0 15px 15px -15px rgba(0, 0, 0, .5);
}

#opt-brands {

    padding: 100px 0px;
}

.banner-block {

    display: flex;
}

.banner-block.second {

    margin-top: 100px;
}

.banner-block__slider {

    width: calc(100% - 366px);

}

.banner-block__slider.full {
    width: 100%;
}

.banner-block__form {

    flex: 0 0 336px;
    margin-bottom: 30px;
}


.banner-block__slider + .banner-block__form,
.banner-block__form + .banner-block__slider {

    margin-left: 32px;
}

.orders-slider__item-link.hover {

    color: #000000;
}

.banner-block .m-slide-item {

    background: transparent;
}

.mb-form-open {

    display: none;
    align-items: center;
    justify-content: center;
    font-family: 'Rubik';
    font-size: 18px;
    text-transform: uppercase;
    width: 100%;
    height: 40px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    color: white;
    background-color: #D93030;
    max-width: 400px;
    margin: 0 auto;
    margin-bottom: 30px;
}

.banner-block__form.fancybox-content {

    padding: 30px;
    background: transparent;
}

.banner-block__form button.fancybox-close-small {

    right: -5px;
    top: -5px;
    color: #ffffff;
}

.opt-slider {

    margin-top: 60px;
}


@media screen and (max-width: 1280px) { 


    .banner-block .m-slide-item {

        height: 285px;
    }

    .opt-adv-grid__item {

        width: 33%;
    }
}

@media screen and (max-width: 1024px) {

    #opt-brands,
    #opt-terms {

        padding: 30px 0px;
    }
    
    .banner-block.second {

        margin-top: 30px;
    }
    
    .opt-terms {

        display: block;
    }

    .banner-block .m-slide-item {

        height: 370px;
    }

    .brands-list-item  {

        width: calc(25% - 30px);
    }

    .brands-overlay {

        height: 33.33%;
    }

    .opt-adv-grid__item {

        width: 50%;
        margin-bottom: 30px;
    }

    .opt-adv-grid__item-icon {
        padding: 0px 30px 0px 20px;
    }

    .opt-terms__info {

        padding-right: 0px;
    }

    .opt-terms .about-banner.notification {

        width: 100%;
        max-width: unset;
        margin-bottom: 30px;
        justify-content: flex-start;
    }

    .opt-terms .notification .about-banner-text {

        max-width: unset;
        margin-left: 70px;
    }

    .banner-block {
        display: block;
    }

    .banner-block__slider {

        width: 100%;
    }

    .banner-block__form {
        display: none;
    }

    .banner-block__slider + .banner-block__form, 
    .banner-block__form + .banner-block__slider {

        margin-left: 0;
    }

    .mb-form-open {

        display: flex;
    }

}

@media screen and (max-width: 768px) { 

    .opt-adv-grid__item:nth-child(1) svg { width: 85px;  }
    .opt-adv-grid__item:nth-child(2) svg { width: 115px;  }
    .opt-adv-grid__item:nth-child(3) svg { width: 73px;  }
    .opt-adv-grid__item:nth-child(4) svg { width: 75px;  }
    .opt-adv-grid__item:nth-child(5) svg { width: 72px;  }
    .opt-adv-grid__item:nth-child(6) svg { width: 105px; }
    .opt-adv-grid__item:nth-child(7) svg { width: 85px; }
    .opt-adv-grid__item:nth-child(8) svg { width: 100px;  }

    .opt-terms__table-content td,
    .opt-terms__table-content th {

        padding: 15px;
    }


    .banner-block .m-slide-item {

        height:270px;
    }
}

@media screen and (max-width: 600px) { 

    .opt-adv-grid__item { 

        font-size: 14px;
    }

    .opt-download__img {
        
        display: none;
    }

    .banner-block .m-slide-item {

        height:200px;
    }

}


@media screen and (max-width: 480px) { 

    .opt-slider {

        margin-top: 30px;
    }
    

    #opt-brands {

        padding: 30px 0px 15px 0px;
    }

    #opt-advantages {

        padding: 30px 0px 0px 0px;
    }

    #opt-terms {

        padding: 30px 0px;
        margin-bottom: 30px;
    }

    .banner-block.second {

        margin-top: 30px;
    }

    .opt-adv-grid {

        flex-wrap: nowrap;
        overflow: auto;
    }

    .opt-adv-grid__item {

        flex-direction: column-reverse;
        justify-content: flex-start;
        font-size: 14px;
        margin-right: 20px;
        text-align: center;
        width: 33%;
    }

    .opt-adv-grid__item-icon {
        padding: 0px 20px 0px 20px;
    }

    .opt-terms {

        display: block;
    }

    .opt-terms__info {

        padding-right: 0;
    }

    .opt-terms__table-tabs,
    .opt-terms__table-content {

        min-width: unset;
    }

    .opt-terms__table-content table {

        overflow-x: auto;
    }

    .opt-terms__table-content table tbody {

        display: block;
        width: 500px;
    }

    .opt-terms__table-content table,
    .opt-terms__table-content .discount-val {

        font-size: 14px;
    }

    .opt-terms__table-content td,
    .opt-terms__table-content th {

        padding: 10px;
        vertical-align: middle;
    }

    #opt-catalog-download {

        height: auto;
    }

    .opt-download {

        padding: 20px;
        flex-direction: column-reverse;
        text-align: center;
    }

    .opt-download__img {

        display: block;
        width: 200px;
        margin-bottom: 15px;
    }
    
    .opt-download__info-text {

        font-size: 14px;
        margin-bottom: 20px;
    }

    .opt-terms__info-text {

        font-size: 14px;
    }

    .opt-terms .about-banner.notification {

        height: 100px;
        margin: 15px 0px;
        padding: 0px 15px;
    }

    .opt-terms .notification-label {

        font-size: 42px;
        margin-bottom: 0px;

    }

    .opt-terms .notification .about-banner-text {

        font-size: 14px;
        max-width: unset;
        margin-left: 15px;
        line-height: 1.5;
    }

    .opt-terms .notification-label p {

        font-size: 14px;
    }


    .banner-block .m-slide-item {

        height: 145px;
    }

    .opt-terms__table-tabs {

        display: block;
        margin-bottom: 15px;
    }

    /*временно скрываем табы */
    .opt-terms__table-tab:nth-child(2),
    .opt-terms__table-tab:nth-child(3) {

        display: none;
    }

    .opt-terms__table-tab:nth-child(2) {

        border-radius: 0;
    }

    .opt-terms__table-tab:nth-child(3) {

        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
        border-top-left-radius: 0px;
        border-top-right-radius: 0px;
    }
}



