.reviews {
    font-family: "Montserrat", sans-serif;
    background-color: #f5f8fc;
    color: #3e3e3e;
    padding: 0 0px 50px;
    overflow: visible;
}

.reviews-wrapper {
    width: min(1200px, calc(100% - (10px + 10px)));
    margin-inline: auto;
    padding: 0 15px;
    position: relative;
    overflow: visible;
}

.reviews-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #222222;
    text-align: center;
    position: relative;
    padding-bottom: 16px;
}

.reviews-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: rgba(253, 221, 61, 1);
}

.reviews-top {
    display: flex;
    margin-bottom: 30px;
    gap: 30px;
    flex-wrap: wrap;
}

.reviews-top__block {
    padding: 20px;
    background: #fff;
    width: calc((100% - 90px) / 4);
    min-width: 200px;
    height: 115px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    border-radius: 5px;
    text-decoration: none;
}

.reviews-top__block-stats {
    padding: 24px;
    background: #2697dd;
    color: white;
    font-family: 'Montserrat', sans-serif;
}

.reviews-top__block-title {
    font-size: 32px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.reviews-top__block-text {
    font-size: 16px;
    font-weight: 500;
    color: white;
    line-height: 1.5;
}

.reviews .reviews-top__block .header-rating {
    gap: 15px;
}

.reviews .reviews-top__block .header-rating > div:first-child {
    width: 52px;
    height: 70px;
    padding-top: 0px;
    font-size: 24px;
    background-image: url(../img/flag.svg);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviews .header-rating {
    display: flex;
    gap: 6px;
    font-weight: 400;
    font-size: 13px;
    line-height: 150%;
    color: #3e3e3e;
    align-items: center;
}

.reviews .header-rating > div:first-child {
    width: 37px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    padding-top: 9px;
    height: 50px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #3e3e3e;
    background: url(img/flag.svg) center / contain no-repeat;
}

.reviews .reviews-top__block .header-rating span {
    display: flex;
    font-family: "Montserrat", sans-serif;
    flex-direction: column;
    font-size: 14px;
    gap: 5px;
}

.reviews .reviews-top__block .header-rating .header-rating__stars {
    display: flex;
    gap: 2px;
    align-items: center;
}

.reviews .reviews-top__block .header-rating .header-rating__star {
    width: 24px;
    height: 24px;
    fill: rgba(255, 204, 0, 1);
}

.reviews-top__block-stars {
    display: flex;
    gap: 2px;
}

.reviews-top__block-star {
    width: 24px;
    height: 24px;
    fill: rgba(255, 204, 0, 1);
}

.reviews-top__block-bottom {
    display: flex;
    margin-top: auto;
    width: 100%;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.reviews-top__block-bottom span {
    font-weight: 600;
    font-size: 28px;
    line-height: 105%;
    color: #3e3e3e;
    text-decoration: none;
}

.reviews-top__block-logo {
    max-width: 100%;
    height: 32px;
    object-fit: contain;
}

.reviews-swiper {
    padding: 0px 30px;
    margin: 0px -30px;
    position: relative;
    overflow: hidden;
}

.review-slide {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 434px;
    background: #e9f3ff;
    border-radius: 5px;
    padding: 29px 23px;
}

.review-slide__top {
    display: flex;
    margin-bottom: 26px;
    align-items: center;
    justify-content: space-between;
        gap: 7px;
}

.review-slide__name {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 18px;
    gap: 15px;
        line-height: 23px;
}

.review-slide__circle {
    width: 48px;
    height: 48px;
    background-color: #2697dd;
    border-radius: 50%;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 18px;
    text-align: center;
    color: #fff;
}

.review-slide__logo {
    width: 100px;
    min-height: 44px;
    padding: 7px;
    background: #fff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

.review-slide__logo-ya {
    max-width: 57px;
    height: 24px;
    object-fit: contain;
}

.review-slide__logo-2gis {
    max-width: 81px;
    height: 24px;
    object-fit: contain;
}

.review-slide__logo-prod {
    max-width: 81px;
    height: 24px;
    object-fit: contain;
}

.review-slide__text {
    flex: 1;
    margin-bottom: 20px;
}

.review-slide-text {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    --lines: 9;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: max-height 0.35s ease;
}

.review-slide-text.--clamp {
    -webkit-line-clamp: var(--lines);
    line-clamp: var(--lines);
}

.review-slide-text.--expanded {
    -webkit-line-clamp: none;
    line-clamp: none;
    display: block;
}

.review-slide-toggle {
    margin-top: 13px;
    background: none;
    border: none;
    color: rgba(133, 133, 133, 1);
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    font-style: italic;
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
}

.review-slide-toggle:hover {
    text-decoration: underline;
}

.review-slide-toggle.hidden {
    display: none;
}

.review-slide-toggle span,
.review-slide-toggle svg {
    pointer-events: none;
}

.review-slide__bottom {
    padding-top: 25px;
    align-items: center;
    margin-top: auto;
    justify-content: space-between;
    gap: 10px;
    display: flex;
}

.review-slide__date {
    font-weight: 400;
    font-size: 16px;
    color: #979590;
}

.review-slide__rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-slide__rating img {
    pointer-events: none;
}

.review-slide__stars {
    display: flex;
    gap: 2px;
}

.review-slide__star {
    width: 24px;
    height: 24px;
    fill: rgba(255, 204, 0, 1);
}

.review-slide__rating span {
    font-weight: 600;
    font-size: 18px;
    color: #3e3e3e;
}

.reviews .swiper-button-next,
.reviews .swiper-button-prev {
    margin-top: 0px;
    top: 65%;
    width: 40px;
    transition: 0.3s ease 0s;
    height: 40px;
    border-radius: 50%;
    color: rgba(69, 86, 104, 1);
    background-color: #fff;
    box-shadow: 0 0 10px 0 rgba(131, 123, 112, 0.3);
    transform: translateY(-50%);
    z-index: 9999;
    position: absolute;            
}

.reviews .swiper-button-next:hover,
.reviews .swiper-button-prev:hover {
    background-color: rgba(253, 221, 61, 1);
    color: #fff;
}

.reviews .swiper-button-next:active,
.reviews .swiper-button-prev:active {
    background-color: #c1b6a2;
    color: #fff;
}

.swiper-slide {
    height: auto;
    align-self: flex-start;
}

.review-slide {
    height: auto;
}

.reviews .swiper-button-next {
    right: -30px;
}

.reviews .swiper-button-prev {
    left: -30px;
}

.reviews-swiper .swiper-button-next,
.reviews-swiper .swiper-button-prev,
.reviews-wrapper > .swiper-button-next,
.reviews-wrapper > .swiper-button-prev {
    position: absolute;
    z-index: 10000;
    overflow: visible;
}

.reviews-wrapper > .swiper-button-next {
    right: -50px;
}

.reviews-wrapper > .swiper-button-prev {
    left: -50px;
}


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

.reviews .swiper-button-next svg,
.reviews .swiper-button-next img,
.reviews .swiper-button-prev svg,
.reviews .swiper-button-prev img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.reviews .swiper-button-next::after,
.reviews .swiper-button-prev::after {
    display: none;
}



@media (max-width: 1100px) and (min-width: 701px) {
    .reviews-top__block {
        width: calc((100% - 30px) / 2);
    }

    .reviews-top__block-text {
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    .reviews {
        padding: 35px 0px;
    }
}

@media (max-width: 768px) {
    .reviews {
        padding: 40px 0px;
    }

   

    .reviews-title {
        font-size: 24px;
        padding-bottom: 28px;
    }

    .reviews-top {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
        width: 100%;
        box-sizing: border-box;
    }

    .reviews-top__block {
        width: 100%;
        min-width: 0;
        padding: 20px;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
    }

    .reviews-top__block-stats {
        padding: 20px;
    }

    .reviews-top__block-title {
        font-size: 22px;
    }

    .reviews-top__block-text {
        font-size: 12px;
    }
    .reviews .header-rating {
        display: flex;        
        align-items: flex-start;
        gap: 8px!important;
    }

    .reviews .reviews-top__block .header-rating > div:first-child {
        width: 32px;
        height: 50px;
        font-size: 16px;
    }

    .reviews .reviews-top__block .header-rating span {
        font-size: 12px;
    }

    .reviews .reviews-top__block .header-rating .header-rating__star {
        width: 14px;
        height: 14px;
    }

    .reviews-top__block-star {
        width: 14px;
        height: 14px;
    }

    .reviews-top__block-bottom {
        gap: 10px;
        margin-top: 0px;
    }

    .reviews-top__block-bottom span {
        font-size: 20px;
    }

    .reviews-top__block-logo {
        height: 24px;
    }

    .reviews-swiper {
        padding: 0px 15px;
        margin: 0px -15px;
    }

.reviews-wrapper > .swiper-button-next,
.reviews-wrapper > .swiper-button-prev,
    .reviews-swiper .swiper-button-next,
    .reviews-swiper .swiper-button-prev {
        display: none !important;
    }

    .review-slide {
        min-height: 485px;
    }

    .reviews-swiper .swiper-pagination {
        display: block;
        position: relative;
        bottom: 0;
        margin-top: 20px;
        text-align: center;
    }

    .reviews-swiper .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        background-color: rgba(50, 53, 85, 0.3);
        opacity: 1;
        margin: 0 4px;
    }

    .reviews-swiper .swiper-pagination-bullet-active {
        background-color: #323555;
    }
}

@media (max-width: 480px) {
    .reviews {
        padding: 30px 0px;
    }

    .reviews-wrapper {
        
        padding: 0 10px;
    }

    .reviews-top__block {
        width: 100%;
    }
}