.last-comments {
    margin-bottom: 6rem;

}

.last-comments__container {
    border-radius: 24px;
    background: var(--main-background-color);
    padding: 6rem;
    position: relative;
    overflow: hidden;
}

.last-comments__title {
    color: transparent;
    background-image: linear-gradient(0.894turn,var(--first-gradient-color) 0%,var(--secondary-gradient-color) 100%);
    -webkit-background-clip: text;
    font-weight: 500;
    letter-spacing: -1px;
    line-height: 1 !important;
    font-size: 4rem;
    margin-bottom: 2rem;
}

.last-comments__svg {
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
}
.last-comments__svg svg {
    width: 100%;
    height: 100%;
}

.last-comments__title span {
    color: transparent;
    background-image: linear-gradient(0.894turn,var(--first-gradient-color) 0%,var(--secondary-gradient-color) 100%);
    -webkit-background-clip: text;
}

.last-comments .swiper-slide {
    padding: 0 1rem;
}
.last-comments__item {
    background: var(--page-background-color);
    border-radius: 10px;
    padding: 3.5rem 3rem 4rem 4rem;
    display: block;
    width: 100%;
    min-height: 100%;
    cursor: pointer;
}

.last-comment__top {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    margin: 0 0 1.5rem;
    color: var(--main-text-color);
    text-decoration: none;
    transition: color 0.25s;
} 

.last-comment__product-img {
    width: 100%;
    height: 100%;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transition: opacity 0.2s;
}

.last-comment__product-title {
    display: block;
    -ms-flex: 1;
    flex: 1;
    font-size: 1.4rem;
    line-height: 1.43;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.last-comment__center {
    font-size: 1.5rem;
    line-height: 1.7;
    font-weight: 400;
}

.last-comments__swiper {
    border-radius: 24px;
}

.last-comment__comment {
    margin: 0 0 1.5rem;
    height: 8.8rem;
    font-size: 1.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.last-comment__modal-text {
    font-size: 1.6rem;
    color: var(--main-text-color);
    display: block;
    margin-bottom: 2rem;
}

.last-comment__date {
    position: relative;
    top: -1rem;
    margin: 0 0 1rem;
    display: block;
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.4;
    display: none;
}

.last-coment__image-container {
    position: relative;
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1.5rem;
}

.last-coment__image-container:hover .last-comment__product-img {
    opacity: 1;
}

.last-comment__link {
    color: var(--accent-color);
    padding: 0.6rem 2.5rem;
    border-radius: 30px;
    background: var(--main-background-color);
    border: 1px solid var(--accent-color);
    text-decoration: none;
    transition: border-color 0.25s, color 0.25s, background-color 0.25s;
    width: fit-content;
}

.last-comment__link:hover {
    border-color: var(--secondary-background-color);
    background-color: var(--secondary-background-color);
    color: var(--secondary-text-color);
    text-decoration: none;
}

.last-coments__top-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.last-comment__author {
    font-size: 1.8rem;
    font-weight: 600;
}

.last-comment__avatar {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin: 0;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--third-gradient-color) 0%, var(--fourth-gradient-color) 100%);
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    font-size: 4.8rem;
    line-height: 1.2;
    font-weight: 500;
    color: var(--secondary-text-color);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.last-comment__modal-rating,
.last-comment__rating-text {
    display: block;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--accent-color);
    pointer-events: none;
}

.last-comment__modal-rating {
    margin-bottom: 2rem;
}

.last-comment__rating-star {
    margin: 0 0.4rem;
    color: #E6C622;
    display: block;
    position: relative;
    top: -1px;
    width: 1.5rem;
    height: 1.4rem;
}

.last-comment__rating {
    display: flex;
    font-size: 1.6rem;
    align-items: center;
}

.last-comments__modal {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0,0,0,.6);
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.3s, visibility 0.3s, z-index 0.3s;
    opacity: 0;
    visibility: hidden;
}

.last-comments__modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    z-index: 9999;
}

.last-comment__modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 25px;
    height: 25px;
    cursor: pointer;
}
.last-comment__modal-close svg {
    width: 100%;
    height: 100%;
}

.last-comment__modal {
    background: var(--main-background-color);
    border-radius: 24px;
    max-height: 100%;
    overflow-y: auto;
    width: 54rem;
    height: fit-content;
    padding: 3rem;
    position: relative;
}

.last-comment__modal-title {
    color: #051e29;
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -1px;
    background-position: center center;
    border-color: transparent;
    border-style: solid;
    display: block;
    margin-bottom: 1rem;
}

.last-comment__modal-img {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 2rem;
}
.last-comment__modal-img {
    width: 100%;
    object-fit: contain;
}
.last-comment__modal-footer {
    width: 100%;
    height: 9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    font-size: 1.6rem;
    background: linear-gradient(0.88turn,rgba(58,212,219,1) 0%,rgba(26,181,248,1) 100%);
    color: var(--secondary-text-color);
    border-radius: 24px;
}

.last-comment__modal-link {
    font-size: 1.6rem;
    border-radius: 30px;
    padding: 1.5rem 2rem;
    color: var(--main-text-color);
    background: var(--main-background-color);
}

@media (max-width: 500px) {
    .last-comment__modal {
        border-radius: 0;
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 456px) {
    .last-comments__container {
        padding: 1.5rem;
    }
    .last-coment__image-container {
        width: 6rem;
        height: 6rem;
    }
    .last-comment__avatar {
        font-size: 3rem;
    }
    .last-comments__item {
        padding: 2.5rem;
    }
}