.m-page {
    overflow: hidden;
}
.form-block {
    padding: 60px 0;
}
.compare {
    padding-top: 218px;
    padding-bottom: 60px;
}
.compare::before {
    content: none;
}
.compare__content {
    margin-top: 40px;
}

.compare-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.compare-groups {
    flex-grow: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    /* overflow-x: auto; */
}
.compare-group {
    flex-shrink: 0;
    max-width: 250px;
    padding: 6px 12px;
    border-radius: 10px;
    background-color: #fff;
    cursor: pointer;
    transition: background-color .3s;
}
.compare-group * {
    transition: .3s;
}
.compare-group__name {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.38;
    color: #191C21;
}
.compare-group__count {
    padding: 3px 7px;
    font-size: 12px;
    font-weight: 500;
    color: #92969A;
    border-radius: 8px;
    border: 1px solid #F3F4F5;
    background: #FFF;
}
.compare-group__remove {
    display: none;
    padding: 4px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
}
.compare-group__remove svg path {
    stroke: #fff
}

.compare-group:not(.compare-group--active):hover .compare-group__name {
    color: #20247A;
}

.compare-group--active {
    padding-right: 6px;
    background-color: #20247A;
    cursor: default;
}
.compare-group--active .compare-group__name {
    color: #FFF;
}
.compare-group--active .compare-group__count {
    color: #FFF;
    background-color: #363A87;
    border-color: #363A87;
}
.compare-group--active .compare-group__remove {
    display: inline-flex;
}
.compare-group--active .compare-group__remove:hover {
    background-color: #BACFE3;
}
.compare-group--active .compare-group__remove:hover svg path {
    stroke: #343E4A;
}

.compare-top__btn {
    flex-shrink: 0;
    padding: 13px 16px;
}

/* ////////COMPARE///////// */

.comp {
    margin-top: 40px;
}
.comp--diff .comp-row.same-data {
    display: none;
}

.comp__diff-toggle {
    padding: 15px 12px;
    border-top: 1px solid #F3F4F5;
    border-bottom: 1px solid #F3F4F5;
    background-color: #fff;
}

.comp-stat {
    padding: 20px 0px;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #F3F4F5;
    background-color: #fff;
}
.comp-stat:last-child {
    border-bottom: none;
    border-radius: 0 0 15px 15px;
}
.comp-stat__header {
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
}
.comp-stat__toggle {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .4s;
}
.comp-stat__header.body-hidden .comp-stat__toggle {
    transform: rotate(180deg);
}
.comp-stat__body {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.comp-row__title {
    padding: 8px 12px;
    width: 100%;
}
.comp-row {
    color: #343E4A;
}
.comp-row__data {
    padding: 0 12px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    column-gap: 18px;
    transition: .3s;
}
.comp-td {
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 138%; /* 17.94px */
    display: none;
}
.comp-td.visible {
    display: block;
}

.comp-row__data:hover {
    background-color: #E7EDF3;
    color: #20247A;
}
.products-slider_navigation {
    z-index: 10;
}
.comp__slider {
    background-color: #fff;
    border-radius: 15px 15px 0 0;
    position: relative;
}
.comp-swiper {
    padding-bottom: 20px;
}
.comp-swiper__paginations {
    display: none;
}
.comp-swiper-right {
    display: none;
}
.comp-swiper-wrapper {
    align-items: stretch;
}
.comp-product {
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    height: auto;
    width: 235px;
}
.comp-product__top {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.comp-product__image {
    display: block;
    margin-bottom: 10px;
    position: relative;
}
.comp-product__img {
    aspect-ratio: 21/20;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}
.comp-product .product-cart_tags {
    padding: 11px 10px;
}
.comp-product__content {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
}
.comp-product__title {
    margin-bottom: 10px;
    color: #343E4A;
    display: -webkit-box;
    -webkit-box-orient: vertical; 
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;    
}
.comp-product__prices {
    margin-top: auto;
}
.comp-product__prices .product-cart__info {
    margin-top: 6px;
}

.comp-product__tools {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}
.comp-product__add2cart {
    flex-grow: 1;
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 13px;
}
.comp-product__add2cart svg {
    flex-shrink: 0;
}
.comp-product__tool {
    flex-shrink: 0;
    width: 39px;
    height: 39px;
    border: 1px solid #F3F4F5;
    background-color: #F3F4F5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    transition: .3s;
}
.comp-product__tool:hover {
    background-color: #fff;
}


/* FIXED SLIDER */

.comp__slider.fixed {
    position: fixed;
    width: 1500px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    border-radius: 0;
}
.comp__slider.fixed.hidden {
    display: none;
}
.comp__slider.fixed .comp-swiper {
    padding: 5px 12px;
}
.comp__slider.fixed .comp-product {
    padding: 0;
}
.comp__slider.fixed .comp-product__top {
    flex-direction: row;
}
.comp__slider.fixed .comp-product__image {
    margin-bottom: 0;
    margin-right: 4px;
    flex-shrink: 0;
}
.comp__slider.fixed .comp-product__img {
    width: 36px;
}
.comp__slider.fixed .comp-product .product-cart_tags {
    display: none;
}
.comp__slider.fixed .comp-product__content {
    width: calc(100% - 42px);
}
.comp__slider.fixed .comp-product__tools {
    width: 100%;
}
.comp__slider.fixed .product-cart__info {
    display: none;
}
.comp__slider.fixed .comp-product__title {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 0;
}
.comp__slider.fixed .product-cart_prices {
    display: flex;
    align-items: center;
    gap: 5px;
}
.comp__slider.fixed .product-cart_prices .product-cart__newprice {
    font-size: 13px;
    padding: 0;
    margin: 0;
}
.comp__slider.fixed .product-cart_prices .product-cart__oldprice {
    font-size: 12px;
}
.comp__slider.fixed .comp-product__tools {
    margin-top: 5px;
}
.comp__slider.fixed .comp-product__add2cart span {
    display: none;
}
.comp__slider.fixed .products-slider_navigation {
    display: none;
}

.compare-bottom {
    display: none;
}

.popup-compare .popup-inner {
    padding: 0;
    max-width: 421px;
    width: 100%;
}
.popup-compare__content {
    padding: 30px 30px 15px;
}
.popup-compare-clear__text {
    font-size: 13px;
    line-height: 1.38;
    font-weight: 500;
    color: #343E4A;
    margin-top: 15px;
}
.popup-compare__buttons {
    border-top: 1px solid #F3F4F5;
    padding: 15px 30px;
    display: flex;
    gap: 15px;;
}

.popup-compare__buttons .btn {
    font-size: 15px;
    flex: 1;
    padding: 18px 20px;
}

.popup-compare__buttons .btn.popup__close {
    position: relative;
    top: 0;
    right: 0;
    width: auto;
    height: auto;
    border: none;
    border-radius: 12px;
}
.popup-compare__buttons .btn.popup__close:hover {
    border-color: initial;
}

.popup-compare-remove .popup__title {
    margin-bottom: 15px;
}

.viewed-products {
    padding-bottom: 94px;
}
.product-footer {
    padding-top: 60px;
    padding-bottom: 60px;
}
.product-related_slider {
    margin-top: 30px;
}

@media screen and (max-width: 1700px) {
    .comp__slider .products-slider_navigation {
        top: calc(50% - 15px)
    }
}

@media screen and (max-width: 1550px) {
    .comp-row__data {
        grid-template-columns: repeat(5, 1fr);
    }
    .comp__slider.fixed {
        width: 1212px;
    }
}

@media screen and (max-width: 1260px) {
    .comp__slider.fixed {
        width: 100%;
        left: 0;
        top: 0;
        transform: translateX(0);
    }
    .comp-row__data {
        grid-template-columns: repeat(4, 1fr)
    }
    .compare {
        padding-top: 144px;
    }
    .compare-groups {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    .compare-group__remove .tooltip-top__window {
        display: none;
    }
    .compare-top__btn {
        display: none;
    }

    .comp-product__tool {
        width: 36px;
        height: 36px;
    }
}

@media screen and (max-width: 991px) {
    .compare {
        padding-bottom: 30px;
    }
    .compare__content {
        margin-top: 20px;
    }


    .compare-groups {
        padding-bottom: 10px;
    }
    .comp {
        margin-top: 10px;
    }

    .comp-row__data {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .comp-swiper {
        padding-top: 6px;
        padding-bottom: 17px;
    }
    .comp__diff-toggle {
        padding: 9px 6px;
    }
    .comp-stat {
        padding: 6px 0;
    }
    .comp-stat__header {
        padding-left: 6px;
    }
    .comp-stat__body {
        margin-top: 8px;
        gap: 6px;
    }
    .comp-row__title {
        padding: 0 6px;
    }
    .comp-row__data {
        padding: 0 6px;
    }
    .comp-td {
        padding: 6px 0;
    }
    .comp-stat__title {
        font-size: 15px;
    }

    .comp-product {
        padding: 0 6px;
    }


    .viewed-products {
        padding-bottom: 20px;
    }


    .product-footer {
        padding-top: 20px;
        padding-bottom: 40px;
    }
    .product-related_slider {
        margin-top: 18px;
    }
}

@media screen and (max-width: 768px) {
    .compare {
        padding-top: 116px;
    }
    .form-block {
        padding: 40px 0;
    }
    .comp-product__add2cart span {
        display: none;
    }
}

@media screen and (max-width: 580px) {
    .comp-row__data {
        display: flex;
    }
    .comp.reverse .comp-row__data {
        flex-direction: row-reverse;
    }
    .comp-td {
        flex: 1;
    }
    .comp__slider {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }
    .comp__slider .swiper {
        padding-top: 30px;
        width: calc(50% - 5px);
    }

    .comp-swiper__paginations {
        position: absolute;
        width: 100%;
        top: 6px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
    }
    .swiper-pagination__bullets {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px;
    }
    .swiper-pagination__bullets .swiper-pagination-bullet {
        width: 4px;
        height: 4px;
        border: none;
        background-color: #BACFE3;
        opacity: 1 !important;
    }
    .swiper-pagination__bullets .swiper-pagination-bullet-active {
        background-color: #20247A;
    }

    .comp-swiper__fraction {
        font-size: 12px;
        line-height: 1.33;
        color: #92969A;
        pointer-events: none;
    }

    .comp__slider.fixed .comp-swiper__paginations {
        top: 0;
    } 

    .comp-swiper-right {
        display: block;
        padding-bottom: 20px;
    }
    .comp__slider.fixed {
        padding: 6px 20px;
    }
    .comp__slider.fixed .swiper {
        padding: 0;
    }
    .comp__slider.fixed .comp-product {
        padding-top: 30px;
    }
    .comp__slider.fixed .swiper-pagination {
        top: 5px;
    }
    .comp__slider.fixed .comp-product__tool {
        width: 32px;
        height: 32px;
    }
    .comp-product__prices .product-cart__info {
        margin-top: 0;
    }
    .comp-product__title {
        margin-bottom: 0;
    }

    .compare-bottom {
        margin-top: 20px;
        display: flex;
        justify-content: center;
    }
    .compare-bottom .btn {
        display: flex;
    }

    .popup-compare .popup__title {
        padding-right: 57px;
    }

    .popup-compare__content {
        padding: 14px;
    }
    .popup-compare__buttons {
        padding: 14px;
    }
    .popup-compare__buttons .btn {
        font-size: 13px;
        padding: 11px 15px;
    }


    .product-footer {
        padding-bottom: 20px;
    }
}