.testimonials-block {
    padding: 60px 24px;
    background: transparent;
}

.testimonials-block__inner {
    max-width: var(--yoge-container-max, 1580px);
    margin: 0 auto;
}

.testimonials-header {
    margin-bottom: 28px;
}

.testimonials-chip {
    display: inline-block;
    border: 1px solid rgba(20, 26, 24, 0.6);
    border-radius: 999px;
    padding: 7px 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #181a17;
    background: #e9f0ec;
    margin-bottom: 14px;
}

.testimonials-header__rule {
    height: 1px;
    background: rgba(20, 26, 24, 0.2);
    margin-bottom: 18px;
}

.testimonials-header__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.testimonials-title {
    font-size: clamp(32px, 3.8vw, 48px);
    line-height: 1.08;
    font-weight: 600;
    color: #181a17;
    margin: 0;
    max-width: min(720px, 85vw);
}

.testimonials-nav {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.testimonials-nav button {
    width: 44px;
    height: 36px;
    border: 1px solid rgba(20, 26, 24, 0.55);
    background: transparent;
    border-radius: 4px;
    font-size: 24px;
    line-height: 1;
    color: #181a17;
    cursor: pointer;
}

.testimonials-nav button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Ширина карточки = ширина вьюпорта слайдера (не всего трека) */
.testimonials-slider {
    overflow: hidden;
    width: 100%;
    container-type: inline-size;
    container-name: testim;
    touch-action: pan-y pinch-zoom;
}

.testimonials-track {
    display: flex;
    gap: 16px;
    transition: transform 0.35s ease;
    will-change: transform;
}

@container testim (min-width: 768px) {
    .testimonials-track {
        gap: 30px;
    }
}

.testimonial-card {
    flex: 0 0 100cqw;
    min-width: 0;
    position: relative;
    background: #fff;
    border-radius: 22px;
    padding: 28px 26px 24px;
    box-shadow: 0 8px 32px rgba(20, 40, 30, 0.06);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

@container testim (min-width: 768px) {
    .testimonial-card {
        flex: 0 0 calc((100cqw - 30px) / 2);
        min-height: 260px;
    }
}

@container testim (min-width: 1200px) {
    .testimonial-card {
        flex: 0 0 calc((100cqw - 60px) / 3);
        min-height: 280px;
    }
}

.testimonial-card__quote {
    position: absolute;
    top: 0;
    right: -7px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #448C74;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(68, 140, 116, 0.35);
}

.testimonial-card__quote-mark {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.35rem;
    line-height: 0.9;
    color: #fff;
    display: block;
    margin-top: 2px;
}

.testimonial-card__stars {
    display: flex;
    gap: 3px;
    margin-bottom: 16px;
    padding-right: 76px;
}

.testimonial-star {
    font-size: 15px;
    line-height: 1;
    color: rgba(30, 50, 40, 0.22);
}

.testimonial-star--on {
    color: #e5c466;
}

.testimonial-card__text {
    margin: 0 0 auto;
    padding: 0;
    flex: 1;
}

.testimonial-card__text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: #5a6560;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding-top: 4px;
}

.testimonial-card__author img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-card__name {
    display: block;
    font-style: normal;
    font-size: 17px;
    font-weight: 700;
    color: #181a17;
    margin-bottom: 4px;
}

.testimonial-card__role {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.85px;
    text-transform: uppercase;
    color: #7a8680;
}

@media (max-width: 991px) {
    .testimonials-block {
        padding: 15px 15px;
    }

    .testimonials-header {
        margin-bottom: 20px;
    }

    .testimonials-title {
        font-size: clamp(26px, 6vw, 36px);
        max-width: none;
    }

    .testimonials-header__row {
        align-items: center;
    }

    .testimonial-card {
        padding: 24px 18px 22px;
        border-radius: 18px;
    }

    .testimonial-card__text p {
        font-size: 15px;
    }

    .testimonial-card__quote {
        width: 56px;
        height: 56px;
        top: 0;
        right: -7px;
    }

    .testimonial-card__quote-mark {
        font-size: 2rem;
    }

    .testimonial-card__stars {
        padding-right: 68px;
    }
}

@media (max-width: 767px) {
    .testimonial-card {
        min-height: auto;
    }

    .testimonial-card__author img {
        width: 52px;
        height: 52px;
    }
}
