.c-product-highlight {
    background: #fff;
    -webkit-box-shadow: 1px 1px 6px #ccc;
    box-shadow: 1px 1px 6px #ccc;
    position: relative;
    overflow: hidden;
}

.c-product-highlight__tabs-wrapper {
    display: none;
}

.c-product-highlight__img-wrapper {
    display: none;
}

.c-icon-toggle:before,
.c-icon-toggle:after {
    content: "";
    position: absolute;
    background-color: var(--brand__icon-toggle--bg-color, #fff);
    -webkit-transition: -webkit-transform .15s ease-out;
    transition: -webkit-transform .15s ease-out;
    transition: transform .15s ease-out;
    transition: transform .15s ease-out, -webkit-transform .15s ease-out;
}

.c-icon-toggle {
    position: relative;
    display: inline-block;
}

.c-icon-toggle:before {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    margin-left: -1px;
}

.c-icon-toggle:after {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    margin-top: -1px;
}

.show .c-icon-toggle:before,
.is-active .c-icon-toggle:before {
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
}

.show .c-icon-toggle:after,
.is-active .c-icon-toggle:after {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

@media (min-width: 768px) {
    .c-product-highlight {
        min-height: 550px;
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        position: relative;
    }

    .c-product-highlight__tabs-wrapper {
        position: absolute;
        top: -5px;
        right: 0;
        bottom: -5px;
        left: 0;
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        z-index: 11;
    }

    .c-product-highlight__tabs-wrapper {
        position: static;
        margin: -5px 0;
    }

    .c-product-highlight__tabs {
        list-style-type: none;
        list-style-position: outside;
        margin: 0;
        padding: 0;
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        margin-bottom: 0 !important;
    }

    .c-product-highlight__tabs>* {
        -webkit-box-flex: 1;
        -webkit-flex: 1;
        -ms-flex: 1;
        flex: 1;
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
    }

    .c-product-highlight__tab {
        position: relative;
        -webkit-align-content: center;
        -ms-flex-line-pack: center;
        align-content: center;
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        color: #fff !important;
        background: 0 0;
        -webkit-box-align: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
        padding: 5px 20px;
        padding-left: calc(25px - 1.5px*var(--product-highlight__amount));
        cursor: pointer;
        text-decoration: none;
        border: 5px solid #fff;
        border-left-width: .000001px;
        margin-left: -.000001px;
        -webkit-transform-origin: 100% 0;
        transform-origin: 100% 0;
        -webkit-transform: skew(-5deg);
        transform: skew(-5deg);
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
        width: 300px;
        width: calc(300px - 550px/var(--product-highlight__amount)*(var(--product-highlight__tab-number) - 1)*.0874886635);
    }

    .c-product-highlight__tab-text {
        font-size: 1.1428571429rem;
        font-weight: bold;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
        line-height: 1;
        font-size: calc(20px - .6px*var(--product-highlight__amount));
        -webkit-transform: skew(5deg);
        transform: skew(5deg);
        padding-left: 10px;
        padding-right: 50px;
    }

    .c-product-highlight__tab-bg {
        position: absolute;
        top: -1px;
        right: 0;
        bottom: -1px;
        left: 0;
        z-index: -1;
        width: 100%;
        -webkit-transition: width .1s cubic-bezier(.34, .43, .64, 1.04), border .15s cubic-bezier(.34, .43, .64, 1.04);
        transition: width .1s cubic-bezier(.34, .43, .64, 1.04), border .15s cubic-bezier(.34, .43, .64, 1.04);
    }

    /*
     * Белая подпись неактивной вкладки на светлом фото (дерево, штукатурка)
     * почти не читалась. Слой -bg и так лежит между фото вкладки и подписью —
     * затемняем его градиентом, как плашки мобильного аккордеона. Активную и
     * наведённую вкладку правило ниже заливает красным.
     */
    .c-product-highlight__tab:not(.is-active):not(:hover) .c-product-highlight__tab-bg {
        background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.15) 100%);
    }

    /* Стрелка тоже белая и терялась на фото. */
    .c-product-highlight__tab-bg:after {
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    }

    .c-product-highlight__tab.is-active .c-product-highlight__tab-bg,
    .c-product-highlight__tab:hover .c-product-highlight__tab-bg {
        background: var(--ffj-red-01);
        border-right: none;
        padding-right: 20px;
        width: 120%;
    }

    .c-product-highlight__tab.is-active {
        color: #fff;
    }

    .c-product-highlight__tab-bg:after {
        content: "\f30b";
        font-family: 'FontAwesome';
        position: absolute;
        top: 50%;
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%);
        right: 25px;
        -webkit-transform: skew(5deg) translateY(calc(-50%));
        transform: skew(5deg) translateY(calc(-50%));
    }

    .c-product-highlight__panels {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-flex: 1;
        -webkit-flex: 1;
        -ms-flex: 1;
        flex: 1;
    }

    .c-product-highlight-panel {
        display: none;
        min-height: 0;
    }

    .c-product-highlight-panel.is-active {
        display: block;
    }

    .c-product-highlight__panel-cta {
        display: none;
    }

    .c-product-highlight-panel.is-active .c-product-highlight-panel__content {
        text-align: right;
        position: absolute;
        right: 40px;
        bottom: 40px;
        display: block;
        z-index: 11;
        max-width: 60%;
    }

    .c-product-highlight__line {
        position: absolute;
        top: 0;
        bottom: 0;
        left: -315px;
        z-index: 10;
        -webkit-transform: skew(-5deg);
        transform: skew(-5deg);
        background: #fff;
        width: 600px;
    }

    .c-product-highlight__img-wrapper {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
    }

    .c-product-highlight__img {
        -o-object-fit: cover;
        object-fit: cover;
        -o-object-position: center center;
        object-position: center center;
        height: 100%;
        width: 100%;
    }

}

@media (max-width: 767.98px) {
    .c-product-highlight-panel {
        background-color: transparent;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        margin: 0 0 2px;
    }

    .c-product-highlight__panel-cta {
        padding: 20px 20px;
        width: 100%;
        color: #fff !important;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
        background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 60%, rgba(0, 0, 0, 0.1) 100%);
        border: 0;
        cursor: pointer;
        -webkit-transition: padding 500ms ease;
        transition: padding 500ms ease;
        text-decoration: none;
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
        -webkit-justify-content: space-between;
        -ms-flex-pack: justify;
        justify-content: space-between;
        gap: 5px;
    }

    .c-product-highlight__panel-icon {
        min-width: 20px;
        height: 20px;
    }

    .c-product-highlight-panel__content {
        padding: 0 20px;
        max-height: 0;
        overflow: hidden;
        -webkit-transition: all 500ms ease;
        transition: all 500ms ease;
        width: 100%;
        text-align: center;
    }

    .c-product-highlight-panel.is-active .c-product-highlight-panel__content {
        padding: 160px 5px 20px;
        -webkit-transition: all 500ms ease;
        transition: all 500ms ease;
        max-height: 1000px;
    }

}