.compare-table {
    margin-top: 28px;
    margin-bottom: 118px;
}

.compare-table__top {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 81px;
    padding-top: 4px;
}

.compare-table__top-title {
    font-size: 20px;
    line-height: 130%;
}

.compare-table__top-names {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.compare-table__top-name {
    padding: 5px 27px 5px 26px;
    min-height: 36px;
    border-radius: 8px;
    position: relative;
    background: linear-gradient(94deg, #DB0050 0%, #FFAC58 100%), #E0E6F6;
    color: #FFF;
    display: flex;
    justify-content: center;
    text-align: center;
    font-size: 20px;
    line-height: 130%;
}

.compare-table__top-name-close {
    position: absolute;
    top: -13px;
    right: -11px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.compare-table__top-name-close::after,
.compare-table__restore-btn > span::after {
    content: "";
    position: absolute;
    top: -8px;
    right: -8px;
    bottom: -8px;
    left: -8px;
}

.close-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='12' viewBox='0 0 11 12' fill='none'%3E%3Cline x1='0.366397' y1='0.340194' x2='10.5807' y2='11.3402' stroke='black'/%3E%3Cline x1='10.5678' y1='1.03397' x2='0.353565' y2='11.2483' stroke='black'/%3E%3C/svg%3E");
    width: 11px;
    height: 12px;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: contain;
}


.compare-table__body {
    display: flex;
    flex-direction: column;
}

.compare-table__row {
    display: grid;
    grid-template-columns:  minmax(min-content, 230px) repeat(var(--products-count, 4), minmax(270px, 1fr));
    border-bottom: 1px solid rgba(36, 36, 36, 0.2);
    min-height: fit-content;
}

.compare-table__row:last-child {
    border-bottom: none;
}

.compare-table__cell {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(36, 36, 36, 0.2);
    font-size: 20px;
    line-height: 130%;
    min-height: fit-content;
    align-items: start;
    transition: .3s;
}

.compare-table__cell p {
    text-align: start;
    width: 100%;
}

.compare-table__cell:last-child {
    border-right: none;
}

.compare-table__cell--label {
    font-size: 24px;
    font-weight: 700;
    line-height: 130%;
    padding-left: 0;
    padding-right: 15px;
    align-items: start;
}

.compare-table__row--images .compare-table__cell {
    align-items: center;
    justify-content: start;
}

.compare-table__row--images .compare-table__cell.compare-table__cell--label {
    justify-content: end;
    align-items: start;
    padding-bottom: 139px;
}

.product-picture {
    height: 254px;
    display: flex;
    align-items: end;
}

.compare-table__row--images img {
    max-width: 100%;
    max-height: 254px;
    height: 254px;
    object-fit: contain;
    transition: .3s;
    order: -1 !important;
}

.product-image--air2,
.product-image.product-image--air2 {
    height: 220px;
}

.product-image--air,
.product-image.product-image--air {
    height: 214px;
}

.product-image--ultra,
.product-image.product-image--ultra {
    height: 246px;
}

.product-image--hpro {}

.compare-table__row--images .product-name {
    font-size: 30px;
    font-weight: 700;
    line-height: 130%;
    margin-bottom: 30px;
    margin-top: 47px;
}

.color-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.color-list li {
    font-size: 13px;
    line-height: 1.6;
}

.compare-table__row.compare-table__row--buttons {
    border-bottom: none;
}


/*.compare-table__row--buttons .compare-table__cell:not(:empty):not(.compare-table__cell--label).compare-table__row--buttons .compare-table__cell:not(:empty):not(.compare-table__cell--label) {*/
.btn-buy:not(:empty) {
    align-items: center;
    border-radius: 10px;
    display: flex;
    max-height: fit-content;
    min-height: 51px;
    justify-content: center;
    text-transform: uppercase;
    padding: 15px 20px;
    align-self: start;
    margin-top: 37px;
    justify-self: center;
    background: linear-gradient(94deg, #DB0050 0%, #FFAC58 100%), #E0E6F6;
    color: #FFF;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    line-height: 130%;
    border: none;
    zoom: 0.9;
    margin-bottom: 2px;
}

.compare-table__row--buttons .compare-table__cell.compare-table__cell--label {
    border: none;
}

.compare-table__cell--long {
    text-align: center;
    grid-column: 2 / 6;
}

.compare-table__cell--long p {
    text-align: center;
}

.compare-table__row.compare-table__row--buttons,
.compare-table__row--buttons .compare-table__cell {
    min-height: auto;
    border-right: none;
}

.btn-buy {
    transition: 0.3s;
}

.color-switcher {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: start;
}

.color-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: .3s;
}

.color-option--opacity {
    opacity: 0.8;
}

.color-option input[type="radio"] {
    display: none;
}

.color-dot {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    outline: 2px solid transparent;
    outline-offset: 2px;
    border: 1px solid transparent;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s;
}

.color-option input[type="radio"]:checked + .color-dot {
    outline-color: currentColor;
}

.color-dot--graphite {
    background-color: #676767;
    color: #676767;
}

.color-dot--atlantic {
    background-color: #5E9EDE;
    color: #5E9EDE;
}

.color-dot--lagoon {
    background-color: #40C9C4;
    color: #40C9C4;
}

.color-dot--black {
    background-color: #000;
    color: #000;
}

.color-dot--blue {
    background-color: #5E9EDE;
    color: #5E9EDE;
}

.color-dot--white {
    border: 1px solid #000;
    color: #000;
}

.color-dot--brown {
    background-color: #886D5E;
    color: #886D5E;
}

.color-dot--violet {
    background-color: #624991;
    color: #624991;
}


.color-dot--khaki {
    background-color: #495B29;
    color: #495B29;
}

.color-name {
    user-select: none;
    font-size: 20px;
    line-height: 170%;
}

.color-option--opacity .color-name {
    line-height: 1;
}

.compare-table__cell.removing {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

@media (any-hover: hover) {
    .btn-buy:hover {
        transform: scale(1.05);
    }

    /*.color-option:not(:has(input[type="radio"]:checked)):hover .color-dot {*/
    /*    border-color: #e91e63;*/
    /*}*/
}
.restore-product  {
    background: rgba(128, 128,128, 0.4);
    color: #0D0704;
}

.btn-buy.btn-buy--offline {
    background: rgba(128, 128,128, 0.7);
}

.compare-table__restore-btn {
    position: absolute;
    top: -13px;
    right: -11px;
    /*background: #50AF6F;*/
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #000;
}

.empty-compare-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-compare-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.empty-compare-modal__content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.empty-compare-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    padding: 0;
    width: 32px;
    height: 32px;
}

.empty-compare-modal__close:hover {
    color: #333;
}

.empty-compare-modal__content h3 {
    margin: 0 0 15px;
    font-size: 24px;
    color: #333;
}

.empty-compare-modal__content p {
    margin: 0 0 30px;
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

.empty-compare-modal__btn {
    background: #50AF6F;
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.empty-compare-modal__btn:hover {
    background: #45a063;
}

.compare-table__cell.compare-table__cell--button-wrapper {
    padding-top: 0;
    padding-bottom: 0;
}

.compare-table__cell.compare-table__cell--button-wrapper .btn-buy {
    align-self: center;
    justify-self: start;
}

body:has(.compare-table) .container-custom-mobile  {
    position: relative;
}

body:has(.compare-table) .presection__title  {
    font-size: 30px;
}

@media (min-width: 1440px) {
}

@media (min-width: 768px) {
    body:has(.compare-table) .faq--table__button-link.btn--grad.btn--grad:after {
        border-radius: 10px;
    }
}

@media (max-width: 1859px) {
    .compare-table {
        overflow-x: auto;
        position: relative;
        width: calc(100% + ((100dvw - 100%) / 2));
    }

    .compare-table__top {
        position: sticky;
        left: 0;
        z-index: 2;
    }

    .compare-table__body {
        position: relative;
        min-width: fit-content;
    }

    .compare-table__cell--label {
        position: sticky;
        transition: .3s;
        left: -1px;
        padding-left: 1px;
        z-index: 2;
        background-color: #FFF;
        border-right: 1px solid rgba(36, 36, 36, 0.2);
    }

    .compare-table__row--buttons {
        padding-bottom: 30px;
    }
}

@media (max-width: 1439px) {
    .compare-table__row {
        grid-template-columns: 220px repeat(var(--products-count, 4), minmax(270px, 1fr));
    }

    .compare-table__row--images .product-name {
        font-size: 28px;
    }
}

@media (max-width: 1099px) {
    .compare-table__row {
        grid-template-columns: 210px repeat(var(--products-count, 4), minmax(254px, calc((100% - 210px) / var(--products-count, 4))));
    }

    .compare-table__top-title {
        font-size: 16px;
    }

    .compare-table__top-names {
        gap: 15px;
    }

    .compare-table__top-name {
        padding: 5px 10px;
        min-height: auto;
        font-size: 16px;
    }

    .compare-table {
        margin-bottom: 60px;
    }
}

@media (max-width: 767px) {
    .container-custom-mobile:has(.compare-table) {
        margin: 0;
    }

    .compare-table__row {
        grid-template-columns: 170px repeat(var(--products-count, 4), minmax(223px, calc((100% - 170px) / var(--products-count, 4))));
    }

    .compare-table__top {
        flex-direction: column;
        align-items: start;
        gap: 25px;
        margin-bottom: 30px;
        padding-top: 0;
    }

    .compare-table__cell--label,
    .compare-table__cell,
    .color-name {
        font-size: 18px;
    }

    .compare-table__row--images .product-name {
        font-size: 24px;
    }
}

@media (max-width: 600px) {
    .compare-table__row {
        grid-template-columns: 145px repeat(var(--products-count, 4), minmax(223px, calc((100% - 145px) / var(--products-count, 4))));
    }

    .compare-table__cell--label {
        font-size: 17px;
    }
}

@media (max-width: 410px) {
    .compare-table__row {
        grid-template-columns: 125px repeat(var(--products-count, 4), minmax(223px, calc((100% - 145px) / var(--products-count, 4))));
    }

    .compare-table__cell--label {
        font-size: 14px;
    }
}