body{
    margin: 0;
}
.reviews h2,p{
    margin: 0;
}
main {
    content-visibility: unset !important;
}
.reviews{
    background-color: #060606;
    padding: 60px 0 80px 0 !important;
    font-family: "Commissioner", sans-serif;

    @media screen and (max-width: 768px){
        padding: 40px 16px !important;
    }
}

.reviews .maxwidth-theme {
    @media screen and (max-width: 768px){
        padding: 0 !important;
    }
}

.reviews__header{
    display: flex;
    justify-content: space-between;
}
.reviews__title-block{
    display: flex;
    align-items: center;
    gap: 10px;

    @media screen and (max-width: 768px) {
        gap: 12px;
    }
}
.reviews__title{
    color: white;
    font-size: 24px;
    font-weight: 300;
    @media screen and (max-width: 768px) {
        font-size: 20px;
    }
}
.reviews__arrow{
    width: 28px;
    height: 28px;
    margin-top: 4px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.24);
    aspect-ratio: 1/1;
}
.reviews__avito-block{
    display: flex;
    align-items: center;
    gap: 20px;
    color: #FFFFFF;
    transition: color 0.3s ease;
    @media screen and (max-width: 768px){
        display: none;
    }
}

.reviews__avito-block:hover {
    color: #afafaf;
}

.reviews__avito-mobile{
    display: none;
    align-items: center;
    gap: 14px;
    justify-content: center;
    margin-top: 60px;
    color: #FFFFFF;
    transition: color 0.3s ease;
    @media screen and (max-width: 768px){
        display: flex;
    }
}

.reviews__avito-mobile:hover {
    color: #afafaf;
}

.reviews .swiper-pagination-bullet-active {
    border: 0;
}

.reviews .swiper-pagination-bullet:before {
    display: none;
}

.reviews .swiper-pagination-bullet {
    background: #FFFFFF;
}

.reviews .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev {
    transform: scale(1);
}

.reviews .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev {
    transform: scale(1);
}

.reviews .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next {
    transform: scale(1);
}

.reviews .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next {
    transform: scale(1);
}

.reviews .swiper-horizontal>.swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal {
    bottom: -36px;
}

.reviews__avito-logo{
    width: 40px;
    height: 40px;
}
.reviews__avito-score-title{
    color: white;
    font-size: 32px;
    line-height: 100%;
}
.reviews__avito-mobile .reviews__avito-score-title {
    color: #FFF;
    font-size: 36px;
    font-weight: 400;
    line-height: 100%;
}
.reviews__avito-info-block{
    display: flex;
    flex-direction: column;
    height: 40px;
    justify-content: space-between;
    align-items: start;
}
.reviews__avito-stars{
    display: flex;
    align-items: center;
    gap: 5px;
}
.reviews__avito-reviews{
    color: white;
    font-size: 13px;
    opacity: 0.8;
}
.reviews__swiper {
    width: 100%;
    height: 363px;
    position: relative;
    margin-top: 35px;
    overflow: visible;
    @media screen and (max-width: 768px){
        width: 100%;
        height: 389px;
        margin-top: 24px;
        padding-left: 0px;
        padding-right: 0px;
    }
}

.reviews__swiper .swiper-pagination {
    display: none;
    @media screen and (max-width: 768px){
        display: block;
    }
}


.review-card {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
    border-radius: 16px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/* Стили для карточки */

.review-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 16px;
}

/* Поворот и смещение при наведении */
.swiper-slide:hover .review-card > img {
    transform: rotate(-4deg) translateY(-35px);
    @media screen and (max-width: 768px){
        transform: none;
    }
}

.reviews__button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #000;
    border-radius: 50%;
    cursor: pointer;
    width: 41px;
    height: 41px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.3s;
    @media screen and (max-width: 768px){
        display: none;
    }
}

.reviews__button--prev {
    left: -20px;
}

.reviews__button--next {
    right: -20px;
}

.reviews__button:hover {
    background-color: rgba(255, 255, 255, 0.8);
}



/* Стили для всплывающего элемента */
.review__detail {
    position: absolute;
    will-change: transform;
    bottom: 0;
    left: 45px;
    transform: translateY(110%);
    background-color: white;
    display: flex;
    width: 100%;
    height: 100%;
    padding: 24px;
    border-radius: 12px;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
    @media screen and (max-width: 768px){
        left: 0;
        top: auto;
        bottom: auto;
        opacity: 1;
        visibility: visible;
        transform: none;
        rotate: 0deg;
        color: white;
        background: transparent;
        padding: 0;
        height: 100%;
        width: 100%;
        justify-content: space-between;

        &::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 165px;
            border-radius: 12px 12px 0px 0px;
            background: linear-gradient(180deg, rgba(0, 0, 0, 0.60) 5%, rgba(0, 0, 0, 0.00) 60%);
        }

        &::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 185px;
            border-radius: 12px 12px 0px 0px;
            background: linear-gradient(180deg, rgba(0, 0, 0, 0.60) 5%, rgba(0, 0, 0, 0.00) 60%);
            transform: rotate(180deg);
        }
    }
}

/* Показ элемента при наведении */
.swiper-slide:hover .review__detail {
    opacity: 1;
    visibility: visible;
    transform: translateY(10%) rotate(4deg);
    @media screen and (max-width: 768px){
        transform: none
    }
}

/* Стили для заголовка */
.review__detail-header {
    display: flex;
    align-items: center;
    gap: 10px;
    @media screen and (max-width: 768px){
        padding: 16px;
        position: relative;
        z-index: 1;
    }
}

.review__detail-author-block {
    display: flex;
    flex-direction: column;
}

.review__detail-author-avatar{
    width: 40px;
    height: 40px;
    border-radius: 999px;
}

.review__detail-author-name {
    font-size: 18px;
    font-weight: 600;
    line-height: 100%;
    margin-bottom: 6px;
}

.review__detail-author-date {
    font-size: 14px;
    font-weight: 300;
    opacity: 0.6;
    line-height: 150%;
}

.review__detail-content {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    gap: 8px;
    @media screen and (max-width: 768px){
        padding: 16px;
        position: relative;
        z-index: 1;
    }
}

.review__detail-stars {
    display: flex;
    flex-direction: row;
    gap: 2px;
}

.review__detail-product {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.6;
    @media screen and (max-width: 768px){
        opacity: 1;
        display: -webkit-box;
    -webkit-line-clamp: 1;  /* Обрезать до 1 строки */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; /* Добавляет многоточие (...) */
    white-space: normal;     /* Убедитесь, что текст не принудительно в одну строку */
    }
}

.review__detail-read-block{
    display: none;
    @media screen and (max-width: 768px){
        display: flex;
        align-items: center;
        gap: 10px;
    }
}

.review__detail-plus{
    padding: 5px;
    background: white;
    border-radius: 9999px;
    aspect-ratio: 1/1;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review__detail-text {
    font-size: 15px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;  
    overflow: hidden;
    @media screen and (max-width: 768px){
       display: none;
    }
}

.review__detail-more {
    font-size: 14px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    @media screen and (max-width: 768px){
        display: none;
    }
}

/* Стили для всех точек пагинации */
.reviews__swiper .swiper-pagination-bullet {
    background-color: #FFFFFF;   /* Цвет неактивных точек */
    opacity: 1;             /* Прозрачность неактивных точек */
    border: 2.5px solid #525252;
}

/* Стили для активной точки */
.reviews__swiper .swiper-pagination-bullet-active {
    background-color: #FFFFFF; /* Цвет активной точки */
    opacity: 1;
    border: 2.5px solid white; /* Полная непрозрачность активной точки */
}


.review-popup__container{
    display: none;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    @media screen and (max-width:768px) {
        backdrop-filter: none;
        max-height: 100vh;
    }
}


.review-popup__container.open{
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Стили для всплывающего элемента */
.review-popup__content {
    position: absolute;
    background-color: white;
    /* opacity: 0; */
    padding: 32px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
    transition: bottom 0.3s ease;
    z-index: 1000;
    border-radius: 12px;
    max-height: 100%;
    overflow: hidden;
    width: 100%;
    max-width: 622px;
    opacity: 0;
    transition: all 0.3s ease;
    @media screen and (max-width: 768px){
        bottom: -100%;
        padding: 24px 16px;
        left: 0;
        width: 100%;
        border-radius: 20px 20px 0 0;
    }
}

.review-popup__content::webkit-scrollbar{
    display: none;
}

/* Активный класс для показа блока */
.review-popup__content.open {
    opacity: 1;
    @media screen and (max-width: 768px){
        bottom: 0;
    }
    padding-bottom: 125px;
    /* opacity: 1; */
}

/* Стили для заголовка */
.review-popup__header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.review-popup__author-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-popup__author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
}

.review-popup__author-name {
    font-size: 18px;
    font-weight: 600;
}

.review-popup__author-date {
    font-size: 15px;
    line-height: 22px;
    font-weight: 300;
    opacity: 0.6;
    @media screen and (max-width: 768px) {
        font-size: 14px;
        line-height: 21px;
    }
}

/* Стили для тела контента */
.review-popup__body {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    @media screen and (max-width: 768px) {
        margin-top: 16px;
    }
}

.review-popup__stars {
    display: flex;
    flex-direction: row;
    gap: 2px;
}

.review-popup__wrapper {
    display: flex;
    align-items: center;
    gap: 8px;

    @media screen and (max-width: 768px) {
        flex-direction: column;
        align-items: flex-start;
    }
}

.review-popup__product {
    font-size: 15px;
    font-weight: 400;
    opacity: 0.6;
    @media screen and (max-width: 768px) {
        font-size: 14px;
    }
}

.review-popup__description {
    font-size: 17px;
    line-height: 26px;
    font-weight: 500;
    @media screen and (max-width: 768px) {
        font-size: 15px;
        line-height: 22px;
        font-weight: 400;
    }
}

/* Стили для триггера (кнопки) открытия */
.review-popup__read-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.review-popup__plus {
    padding: 5px;
    background: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-popup__text {
    font-size: 15px;
    font-weight: 500;
}

.review-popup__control-tab{
    display: flex;
    justify-content: start;
    
    @media screen and (max-width:768px) {
        height: auto;
        justify-content: center;
        align-items: start;
        margin-bottom: 16px;
    }
}
.review-popup__control-bar{
    display: none;
    @media screen and (max-width:768px) {
        width: 40px;
        height: 4px;
        border-radius: 77px;
        background-color: rgba(0, 0, 0, 0.08);
        display: flex;
    }
}

.review-popup__control-title{
    font-size: 24px;
    font-weight: 500;
    line-height: 34px;
    margin-bottom: 32px;
    @media screen and (max-width:768px) {
       display: none;
    }
}


.review-popup__reviews-slider {
    position: absolute;
    display: none;
    @media screen and (max-width: 768px){
        bottom: -100%;
        left: 0;
        width: 100%;
        display: flex;
    }
   
    background-color: white;
    
    padding: 20px;
    box-shadow: 0px 15px 60.4px 0px rgba(0, 0, 0, 0.19);
    transition: bottom 0.3s ease;
    z-index: 1000;
}

.review-popup__reviews-slider.open {
    display: none;
    @media screen and (max-width: 768px){
        bottom: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

.review-popup__reviews-slider-controls{
    display: flex;
    align-items: center;
    gap: 20px;
}
.review-popup__reviews-slider-left,.review-popup__reviews-slider-right{
    width: 30px;
    height: 30px;
    padding: 10px;
    border-radius: 9999px;
    background: #F2F2F2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-popup__reviews-slider-left>img,.review-popup__reviews-slider-right>img{
   width: 100%;
   height: 100%;
}
.review-popup__reviews-slider-counter{
    font-size: 17px;
    opacity: 0.6;
}

.review-popup__reviews-slider-button{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border: 1px solid #AAAAAA;
    border-radius: 10px;
    @media screen and (max-width: 768px) {
        font-size: 15px;
        line-height: 15px;
        font-weight: 600;
        padding: 17px 23px;
    }
}


.review-popup__reviews-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: white;
    padding: 15px;
    box-shadow: 0 -0px 15px rgba(0, 0, 0, 0.2);
    transition: ease-in 0.3s ease;
    z-index: 9999;
    border-radius: 999px;
    display: none;
    justify-content: center;
    align-items: center;
    @media screen and (max-width: 768px){
        display: none;
    }
}

.review-popup__reviews-close-desktop {
    position: absolute;
    top: 12px;
    cursor: pointer;
    right: 12px;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
    transition: ease-in 0.3s ease;
    z-index: 9999;
    border-radius: 0;
    justify-content: center;
    align-items: center;
    @media screen and (max-width: 768px){
        display: none;
     }
}


.review-popup__reviews-close.open {
    display: none;
    @media screen and (max-width: 768px){
        display: flex;
    }
}

.review-popup__images{
    display: flex;
    margin-top: 10px;
    gap: 10px;
    @media screen and (max-width: 768px){
       display: none;
    }
}

.review-popup__image{
    width: 72px;
    height: 72px;
    border-radius: 8px;
    cursor: pointer;
    object-fit: cover;
}

.review-popup__images-more{
    width: 72px;
    height: 72px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F2F2F2;
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
}

.review-popup__reviews-slider-desktop{
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    width: 100%;
    @media screen and (max-width: 768px){
        display: none;
     }
}

.review-popup__reviews-slider-desktop-controls{
    display: flex;
    align-items: center;
    gap: 20px;
}
.review-popup__reviews-slider-desktop-left,.review-popup__reviews-slider-desktop-right{
    width: 30px;
    height: 30px;
    padding: 10px;
    border-radius: 9999px;
    background: #F2F2F2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.review-popup__reviews-slider-desktop-left>img,.review-popup__reviews-slider-desktop-right>img{
   width: 100%;
   height: 100%;
}
.review-popup__reviews-slider-desktop-counter{
    font-size: 17px;
    opacity: 0.6;
}

.review-popup__reviews-slider-desktop-button{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 17px 24px;
    border: 1px solid #AAAAAA;
    border-radius: 8px;
    cursor: pointer;
    color: #222;
    font-size: 17px;
    font-weight: 600;
    line-height: 17px;
    transition: all 0.3s ease;
}

.review-popup__reviews-slider-desktop-button:hover {
    background-color: #f5f5f5;
}
p{
    margin: 0;
}

.review-gallery-popup {
    display: none;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.review-gallery-popup.open{
    display: flex;
    justify-content: center;
    align-items: center;
}

.review-gallery-popup-counter {
    display: flex;
    font-size: 17px;
    font-weight: 400;
    line-height: 26px;
    color: white;
    position: absolute;
    left: 32px;
    top: 24px;
}

.review-gallery-popup__close {
    display: flex;
    cursor: pointer;
    position: absolute;
    top: 21px;
    right: 32px;
    transition: all 0.3s ease;
}

.review-gallery-popup__close:hover {
    opacity: 0.6;
}

.review-gallery-popup__swiper {
    width: 700px;
}

.review-gallery-popup__slide {
    width: 700px;
    height: 700px;
    border-radius: 12px;
    overflow: hidden;
}

.review-gallery-popup__content {
    width: 700px;
    position: relative;
}

.review-gallery-popup__slide {
    background: #FFFFFF;
    border-radius: 12px;
}

.review-gallery-popup__image {
    width: auto;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.review-gallery-popup__bg {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    filter: blur(20px);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.review-gallery-popup__button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #000;
    border-radius: 50%;
    cursor: pointer;
    width: 41px;
    height: 41px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.3s;
}

.review-gallery-popup__button.swiper-button-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.review-gallery-popup__button--next {
    right:-73px;
}

.review-gallery-popup__button--prev {
    left:-73px;
}

.review__detail-button-mobile {
    display: none;
    @media screen and (max-width: 768px) {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #FFF;
        font-size: 15px;
        font-weight: 600;
        line-height: 15px;
    }
}

.review__detail-button-mobile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #FFF;
    border-radius: 9999px;
}