/* Стили для секции отзывов */
.testimonials {
    padding: 6.25rem 0;
    background-color: #0A1B2B;
}

.testimonials-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.125rem; /* 18px */
    font-weight: 400;
    text-align: center;
    color: #A64200;
    text-transform: uppercase;
    margin-bottom: 1.25rem; /* 20px */
}

/* Заголовок секции по шкале: 40→32→28→24→20 */
.testimonials-title {
    font-family: 'Manrope', sans-serif;
    font-size: 40px;
    font-weight: 500;
    text-align: center;
    color: white;
    margin-bottom: 5rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.testimonials-container {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    max-width: 1840px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 1440px) {
    .testimonials-container {
        padding: 0 40px;
    }
}

/* Card surface: same as .inheritance-service-hero / service cards (0.04 fill, 0.16 border, 8px radius) */
.testimonial-card {
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 1.875rem; /* уменьшаем с 40px до 30px */
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
}

.testimonial-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.125rem; /* 18px */
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.875rem; /* уменьшаем с 40px до 30px */
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.25rem; /* 20px */
}

/* Плавная адаптация размера кружка: 70px (1920) → … → 40px (320) */
.author-photo {
    min-width: clamp(2.5rem, max(2.5rem, calc(2.5rem + (100vw - 320px) * 0.01875)), 4.375rem);
    width: 2.5rem;
    width: clamp(2.5rem, max(2.5rem, calc(2.5rem + (100vw - 320px) * 0.01875)), 4.375rem);
    height: 2.5rem;
    height: clamp(2.5rem, max(2.5rem, calc(2.5rem + (100vw - 320px) * 0.01875)), 4.375rem);
    border-radius: 50%;
    background-color: #A64200;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-size: clamp(1.25rem, max(1.25rem, calc(1.25rem + (100vw - 320px) * 0.0047)), 2rem);
    font-weight: 500;
    color: white;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.625rem; /* 10px */
}

.author-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.125rem; /* 18px */
    font-weight: 500;
    color: #A64200;
    margin: 0;
}

.platform-logo {
    height: 1.5rem; /* 24px */
    width: auto;
}

/* ===== КАРУСЕЛЬ ОТЗЫВОВ ===== */
.testimonials-carousel {
    position: relative;
    max-width: 1840px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 1440px) {
    .testimonials-carousel {
        margin: 0 auto;
        padding: 0 40px;
    }
}

.carousel-viewport {
    overflow: hidden;
    padding-bottom: 12px; /* чтобы нижняя граница карточек не обрезалась */
}

.carousel-track {
    display: flex;
    gap: 1.25rem; /* 20px аналогично карточкам */
    transition: transform 400ms ease;
    will-change: transform;
}

.carousel-track .testimonial-card {
    flex: 0 0 calc(100% / var(--slides-per-view, 3));
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(10,27,43,.6);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
}

.carousel-btn:hover { background: rgba(10,27,43,.85); }
.carousel-btn:disabled { opacity: .4; cursor: default; }

.carousel-btn.prev { left: 6px; }
.carousel-btn.next { right: 6px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.carousel-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.35);
    cursor: pointer;
}

.carousel-dots button[aria-current="true"] { background: #A64200; }

/* Адаптив для больших экранов */
@media (max-width: 1440px) {
    .testimonials-container {
        padding: 0 20px;
        margin: 0 auto;
    }  
}

/* Адаптив для средних экранов */
@media (max-width: 1200px) {
    .testimonials-container {
        gap: 30px;
    }
}

@media (max-width: 1440px) {
    .testimonials-title { font-size: 32px; }
}

@media (max-width: 1280px) {
    .testimonials-title { font-size: 28px; }
}

@media (max-width: 1024px) {
    .testimonials-title { font-size: 24px; }
}

/* Ширина карточек в зависимости от экрана */
@media (max-width: 1200px) {
    .testimonials-carousel { padding: 0 16px; }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .carousel-track .testimonial-card { flex-basis: calc(100% / 2); }
}

/* Специальный диапазон */
@media (max-width: 994px) and (min-width: 769px) {
    .testimonials-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        padding: 0 40px;
        margin: 0 auto;
    }

    .testimonial-card {
        flex: 0 0 calc(50% - 10px);
        margin: 0;
    }
}

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

    .carousel-track .testimonial-card { flex-basis: 100%; }
    .testimonials-container {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
    }

    .testimonial-card {
        flex: 1;
        width: 100%;
        margin: 0;
    }

    .testimonials-title {
        font-size: 24px;
        margin-bottom: 40px;
    }
}

/* Адаптив для маленьких планшетов */
@media (max-width: 600px) {
    .testimonials-container {
        flex-direction: column;
        gap: 25px;
        padding: 0 15px;
    }

    .testimonial-card {
        flex: 1 1 auto;
        width: 100%;
    }
}

@media (max-width: 425px) {
    .testimonials {
        padding: 40px 0 3rem;
    }

    .testimonials-container {
        padding: 0 20px;
    }

    .testimonials-subtitle {
        font-size: 1rem; /* 16px */
    }

    .testimonials-title {
        font-size: 20px;
        margin-bottom: 2.5rem;
    }

    .testimonial-text {
        font-size: 1rem; /* 16px */
    }

    .author-name {
        font-size: 1rem; /* 16px */
    }

    .testimonial-card {
        padding: 1.25rem; /* 20px */
    }

}

@media (max-width: 375px) {
    .testimonials-title {
        font-size: 20px;
        margin-bottom: 2rem;
    }

    .testimonial-card {
        padding: 1rem; /* 16px */
    }

    .author-name {
        font-size: 0.875rem; /* 14px */
    }

    .platform-logo {
        height: 1.25rem; /* 20px */
    }

    .testimonial-author {
        gap: 0.625rem; /* 10px */
    }

    .author-info {
        gap: 0.3125rem; /* 5px */
    }
}

@media (min-width: 431px) and (max-width: 473px) {
    .testimonials-container {
        padding: 0 15px; 
    }
}

/* Адаптив для сверхмалых экранов */
@media (max-width: 320px) {
    .testimonial-card {
        padding: 1rem; /* 16px */
    }

    .testimonial-text {
        font-size: 0.875rem; /* 14px */
        margin-bottom: 1.25rem; /* 20px */
    }

    .author-name {
        font-size: 0.75rem; /* 12px */
    }

    .platform-logo {
        height: 1rem; /* 16px */
    }
} 
