.reviews {
    --rev-gap: 20px;
    --rev-radius: 22px;
    --rev-card-radius: 16px;
    --rev-pad: clamp(20px, 3.2vw, 40px);
    --rev-per-view: 3;
    --rev-brand: var(--color_brand);

    position: relative;
    box-sizing: border-box;
    padding: var(--rev-pad);
    border-radius: var(--rev-radius);
    color: #fff;
    overflow: hidden;
    background:
        radial-gradient(120% 150% at 14% -10%,
            color-mix(in srgb, var(--rev-brand) 74%, #fff) 0%,
            transparent 52%),
        linear-gradient(135deg,
            var(--rev-brand) 0%,
            color-mix(in srgb, var(--rev-brand) 82%, #000) 100%);
}



/* заголовок + навигация (в одну строку на всех экранах) */
.reviews .row.title-review {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: clamp(20px, 3vw, 30px);
}

.reviews .row.title-review>.title {
    flex: 0 1 auto;
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0;
}

.reviews .row.title-review>.pagination-review {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
}

.reviews .title h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(23px, 3.3vw, 40px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -.01em;
}

.reviews .pagination-review {
    position: static;
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.reviews__arrow {
    --sz: clamp(40px, 5vw, 48px);
    width: var(--sz);
    height: var(--sz);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--rev-brand);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background .2s, color .2s, opacity .2s, transform .1s;
}

.reviews__arrow svg {
    width: 24px;
    height: 24px;
    display: block;
}

.reviews__arrow:hover {
    background: color-mix(in srgb, #fff 90%, var(--rev-brand));
}

.reviews__arrow:active {
    transform: scale(.94);
}

.reviews__arrow:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.reviews__arrow:disabled,
.reviews__arrow[aria-disabled="true"] {
    background: color-mix(in srgb, #fff 26%, transparent);
    color: color-mix(in srgb, #fff 82%, transparent);
    cursor: default;
    pointer-events: none;
}

/* трек (нативный скролл + snap) */
.reviews__track {
    position: relative;
    z-index: 1;
    display: flex;
    gap: var(--rev-gap);
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 14px;
}

.reviews__track::-webkit-scrollbar {
    display: none;
}

.reviews__track:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
    border-radius: 10px;
}

/* слайд */
.reviews .slider-review {
    flex: 0 0 auto;
    margin: 0;
    height: auto;
    width: calc((100% - (var(--rev-per-view) - 1) * var(--rev-gap)) / var(--rev-per-view));
    scroll-snap-align: start;
}

/* карточка */
.reviews .box-review-slide {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--rev-card-radius);
    padding: clamp(16px, 1.6vw, 22px);
    box-shadow: 0 12px 26px -14px rgba(20, 30, 55, .35);
}

.reviews .review-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.reviews .review-head .left.avatar {
    flex-shrink: 0;
    line-height: 0;
}

.reviews .review-head .avatar svg {
    display: block;
    width: 40px;
    height: 40px;
}

.reviews .review-head .right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.reviews .lv1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.reviews .fio {
    min-width: 0;
    font-weight: 700;
    font-size: 15px;
    color: #1c2430;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reviews .stars {
    display: inline-flex;
    gap: 2px;
    flex-shrink: 0;
    line-height: 0;
}

.reviews .stars svg {
    display: block;
    width: 18px;
    height: 17px;
}

.reviews .date {
    font-size: 13px;
    color: #98a1ad;
    line-height: 1.3;
    margin-top: 2px;
}

.reviews .review-body {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.5;
    color: #3d4550;
    word-break: break-word;
}

.reviews .review-footer {
    margin-top: auto;
    padding-top: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #98a1ad;
}

.reviews .review-footer strong {
    color: var(--rev-brand);
    font-weight: 700;
}

/* декоративные круги фона */
.reviews .circle-rev-1,
.reviews .circle-rev-2 {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
}

.reviews .circle-rev-1 {
    width: min(46vw, 520px);
    aspect-ratio: 1;
    top: -18%;
    left: -8%;
    background: radial-gradient(circle, color-mix(in srgb, #fff 22%, transparent), transparent 70%);
}

.reviews .circle-rev-2 {
    width: min(40vw, 420px);
    aspect-ratio: 1;
    right: -10%;
    bottom: -30%;
    background: radial-gradient(circle, color-mix(in srgb, #000 16%, transparent), transparent 70%);
}

/* адаптив */
@media (max-width:1023px) {
    .reviews {
        --rev-per-view: 2;
    }
}

@media (max-width:639px) {
    .reviews {
        --rev-per-view: 1;
        --rev-gap: 14px;
    }

    .reviews .slider-review {
        width: 85%;
    }

    /* пик следующей — подсказка о свайпе */
}

@media (prefers-reduced-motion:reduce) {
    .reviews__track {
        scroll-behavior: auto;
    }

    .reviews__arrow {
        transition: none;
    }
}