/* ==========================================================================
Reviews — testimonial carousel
========================================================================== */
.testimonials {
    padding: 1.5rem 0 9rem;
}

.testimonials__track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.testimonials__card {
    position: relative;
    flex: 0 0 auto;
    width: 43.24rem;
    padding: 8.93rem 3.72rem 0;
    scroll-snap-align: start;
    background-color: var(--color-light);
}

.testimonials__photo {
    position: absolute;
    top: -1.5rem;
    left: 3.72rem;
    width: 9.4rem;
    height: 9.4rem;
    object-fit: cover;
    border-radius: 50%;
}

.testimonials__name {
    margin-left: 11.1rem;
    margin-top: -8.93rem;
    font-family: var(--font-serif);
    font-size: 2.444rem;
    color: var(--color-text-dark);
}

.testimonials__meta {
    margin-left: 11.1rem;
    margin-top: 0.4rem;
    font-family: var(--font-sans);
    font-size: 1.692rem;
    font-weight: 300;
    line-height: 1.3;
    color: #808080;
}

.testimonials__link {
    color: var(--color-accent);
}

.testimonials__text {
    margin-top: 2.2rem;
    padding-bottom: 3.5rem;
    font-family: var(--font-sans);
    font-size: 1.692rem;
    font-weight: 300;
    line-height: 1.4;
    color: var(--color-text-dark);
}

@media (max-width: 639px) {
    .testimonials {
        padding-bottom: 6rem;
    }
    .testimonials__card {
        width: 30rem;
        padding: 7rem 2.4rem 0;
    }
    .testimonials__photo {
        width: 7rem;
        height: 7rem;
        left: 2.4rem;
    }
    .testimonials__name, .testimonials__meta {
        margin-left: 8.4rem;
    }
}

/* ==========================================================================
Reviews — "Видео-отзывы"
========================================================================== */
.reviews-videos {
    padding-bottom: 7.5rem;
}

.reviews-videos__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7.5rem 4rem;
    margin-top: 3rem;
}

.reviews-videos__frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background-color: var(--color-bg-light);
}

.reviews-videos__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.reviews-videos__name {
    margin-top: 2.6rem;
    font-family: var(--font-serif);
    font-size: 2.6rem;
    color: var(--color-accent);
}

.reviews-videos__text {
    margin-top: 0.4rem;
    font-family: var(--font-sans);
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--color-light);
}

@media (max-width: 960px) {
    .reviews-videos__grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

/* ==========================================================================
Reviews — rating platform badges
========================================================================== */
.reviews-badges {
    padding: 3rem 0 1.5rem;
}

.reviews-badges__list {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem 9.2rem;
}

.reviews-badges__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
}

.reviews-badges__logo {
    height: 5.3rem;
    width: auto;
}

.reviews-badges__rating {
    height: 2.6rem;
    width: auto;
}

.reviews-badges__count {
    margin-top: 0.9rem;
    font-family: var(--font-sans);
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--color-light);
}

/* the record's own bottom padding follows Tilda's "-res-480" override, a
real max-width: 480px breakpoint (not tied to the 320-artboard switch) */
@media (max-width: 480px) {
    .reviews-badges {
        padding-bottom: 0;
    }
}

/* Reference alignment — September 2026 */
/* Arrows exist only on desktop in the original; below 1200 the cards are swiped. */
.testimonials__toolbar {
    display: none;
    justify-content: flex-end;
    gap: .5rem;
    padding-bottom: 2rem;
}

.testimonials__arrow {
    width: 3.76rem;
    height: 3.76rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    background: none;
    cursor: pointer;
}

.testimonials__arrow:disabled {
    opacity: .4;
    cursor: default;
}

.testimonials__arrow svg {
    width: 2rem;
    height: 2rem;
}

@media (min-width: 1200px) {
    .reviews-videos>.section-head {
        padding-left: 3rem;
    }
    .testimonials {
        padding: 1.41rem 0 8.46rem;
    }
    .testimonials>.container {
        width: 100%;
        max-width: 100%;
    }
    .testimonials__toolbar {
        display: flex;
        justify-content: flex-end;
        gap: .5rem;
        height: 7.52rem;
        padding-right: 5.48rem;
    }
    .testimonials__track {
        gap: 3.76rem;
        padding-left: 5.48rem;
        padding-right: 5.48rem;
        scrollbar-width: none;
    }
    .testimonials__card {
        width: 52.64rem;
        min-height: 35.59rem;
        padding: 3.76rem;
    }
    .testimonials__photo {
        top: 3.76rem;
        left: 3.76rem;
    }
    .testimonials__name {
        margin-top: 0;
    }
    .testimonials__text {
        margin-top: 3.29rem;
        padding-bottom: 0;
    }
    .testimonials__link {
        color: #808080;
    }
    .reviews-videos>.container:last-child {
        width: 1160px;
        max-width: calc(100% - 40px);
    }
    .reviews-videos {
        padding-bottom: 75px;
    }
    .reviews-videos__grid {
        margin-top: 30px;
        gap: 40px;
    }
    .reviews-videos__name {
        margin-top: 20px;
        font-size: 26px;
        line-height: 1.35;
    }
    .reviews-videos__text {
        margin-top: 5px;
        font-size: 18px;
        line-height: 1.55;
    }
    .reviews-badges {
        min-height: calc(15.8rem + 45px);
    }
}
