/* Стили для блока отзывов клиентов */

/* Основные стили */
.testimonials {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 64px 0;
}

.testimonials__container {
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.testimonials__title {
    font-family: 'TT Firs Neue', sans-serif;
    font-weight: 400;
    font-size: 36px;
    line-height: 1em;
    text-transform: uppercase;
    text-align: left;
    color: #FFFFFF;
}

.testimonials__slider {
    width: 100%;
    overflow: hidden;
}

.testimonials__track {
    display: flex;
    gap: 20px;
    width: max-content;
    transition: transform 0.3s ease;
}

/* Карточка отзыва */
.testimonial-card {
    flex-shrink: 0;
    width: 400px;
    height: 440px;
    background-color: #F0F0F0 !important;
    border-radius: 0;
    overflow: hidden;
}

.testimonial-card__content {
    height: 100%;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    background-color: #F0F0F0;
}

.testimonial-card__header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.testimonial-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: #F0F0F0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-card__project {
    font-family: 'TT Firs Neue', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.067em;
    color: #17181D;
    flex: 1;
}

.testimonial-card__body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.testimonial-card__quote {
    display: flex;
    gap: 24px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.testimonial-card__quote-mark {
    font-family: 'TT Firs Neue', sans-serif;
    font-weight: 400;
    font-size: 36px;
    line-height: 1em;
    text-transform: uppercase;
    color: #17181D;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.testimonial-card__text {
    font-family: 'TT Firs Neue', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.333em;
    color: #17181D;
    text-align: center;
    flex: 1;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    box-sizing: border-box;
}

/* Стили для HTML-форматирования в тексте отзыва */
.testimonial-card__text p {
    margin: 0 0 12px 0;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.testimonial-card__text p:last-child {
    margin-bottom: 0;
}

.testimonial-card__text strong,
.testimonial-card__text b {
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.testimonial-card__text em,
.testimonial-card__text i {
    font-style: italic;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.testimonial-card__text ul,
.testimonial-card__text ol {
    margin: 0 0 12px 20px;
    padding: 0;
    text-align: left;
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
}

.testimonial-card__text li {
    margin-bottom: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.testimonial-card__text a {
    color: #17181D;
    text-decoration: underline;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.testimonial-card__text a:hover {
    text-decoration: none;
}

.testimonial-card__divider {
    width: 100%;
    height: 1px;
    background-color: #17181D;
}

.testimonial-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.testimonial-card__rating {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.testimonial-card__stars {
    display: flex;
    gap: 2.5px;
}

.testimonial-card__stars .star {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.testimonial-card__rating-text {
    font-family: 'TT Firs Neue', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.067em;
    color: #17181D;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-card__avatar {
    width: 64px;
    height: 64px;
    border-radius: 32px;
    background-color: #FFFFFF;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-card__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-card__author-name {
    font-family: 'TT Firs Neue', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.067em;
    color: #17181D;
}

/* Адаптивность для 768px */
@media (max-width: 768px) {
    
    .testimonials__title {
        font-size: 24px;
    }
    
    .testimonial-card {
        width: 400px;
        height: 440px;
    }
}

/* Адаптивность для 393px */
@media (max-width: 394px) {
    
    .testimonials__container {
        padding: 0 24px;
        gap: 32px;
    }
    
    .testimonial-card {
        width: 320px;
        height: 472px;
    }
    
    .testimonial-card__content {
        padding: 24px;
        gap: 32px;
    }
    
    .testimonial-card__header {
        gap: 12px;
    }
    
    .testimonial-card__icon {
        width: 40px;
        height: 40px;
    }
    
    .testimonial-card__quote-mark {
        font-size: 28px;
        width: 16px;
    }
    
    .testimonial-card__text {
        width: 184px;
    }
    
    .testimonial-card__footer {
        flex-direction: column;
        gap: 24px;
    }
    
    .testimonial-card__avatar {
        width: 56px;
        height: 56px;
        border-radius: 28px;
    }
}

/* Утилиты для горизонтальной прокрутки */
.testimonials__slider {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.testimonials__slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Плавная прокрутка */
.testimonials__track {
    scroll-behavior: smooth;
}

/* Hover эффекты для карточек */
.testimonial-card:hover {
    transform: translateY(-4px);
    transition: transform 0.2s ease;
}

/* Анимация появления карточек */
.testimonial-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Задержка анимации для каждой карточки */
.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }
.testimonial-card:nth-child(4) { animation-delay: 0.4s; }
.testimonial-card:nth-child(5) { animation-delay: 0.5s; }



/* Стили для пустого состояния */
.testimonials__empty {
    text-align: center;
    padding: 64px 20px;
}

.testimonials__empty p {
    font-family: 'TT Firs Neue', sans-serif;
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* Стили для архивной страницы отзывов */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 32px;
    margin: 48px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 48px;
}

.page-title {
    font-family: 'TT Firs Neue', sans-serif;
    font-weight: 400;
    font-size: 48px;
    line-height: 1.2em;
    text-transform: uppercase;
    color: #17181D;
    margin: 0 0 16px 0;
}

.page-description {
    font-family: 'TT Firs Neue', sans-serif;
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* Стили для пагинации */
.wp-pagenavi {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 48px 0;
}

.wp-pagenavi a,
.wp-pagenavi span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background-color: #F0F0F0;
    color: #17181D;
    text-decoration: none;
    font-family: 'TT Firs Neue', sans-serif;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.wp-pagenavi a:hover {
    background-color: #17181D;
    color: #FFFFFF;
}

.wp-pagenavi .current {
    background-color: #17181D;
    color: #FFFFFF;
}

/* Стили для отдельной страницы отзыва */
.single-testimonial {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 20px;
}

.testimonial-header {
    margin-bottom: 48px;
}

.testimonial-header__content {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.testimonial-header__icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background-color: #F4F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-header__title {
    font-family: 'TT Firs Neue', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 1.2em;
    color: #17181D;
    margin: 0 0 24px 0;
}

.testimonial-header__meta {
    display: flex;
    gap: 32px;
    align-items: center;
    flex-wrap: wrap;
}

.testimonial-header__rating {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-stars {
    display: flex;
    gap: 4px;
}

.rating-text {
    font-family: 'TT Firs Neue', sans-serif;
    font-size: 14px;
    color: #666;
}

.testimonial-header__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-name {
    font-family: 'TT Firs Neue', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #17181D;
}

.testimonial-date {
    font-family: 'TT Firs Neue', sans-serif;
    font-size: 14px;
    color: #666;
}

.testimonial-content {
    margin-bottom: 48px;
}

.testimonial-quote {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.quote-mark {
    font-family: 'TT Firs Neue', sans-serif;
    font-weight: 400;
    font-size: 48px;
    line-height: 1em;
    color: #17181D;
    flex-shrink: 0;
}

.quote-text {
    font-family: 'TT Firs Neue', sans-serif;
    font-size: 18px;
    line-height: 1.6em;
    color: #17181D;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    box-sizing: border-box;
}

/* Стили для HTML-форматирования в тексте отдельного отзыва */
.quote-text p {
    margin: 0 0 16px 0;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.quote-text p:last-child {
    margin-bottom: 0;
}

.quote-text strong,
.quote-text b {
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.quote-text em,
.quote-text i {
    font-style: italic;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.quote-text ul,
.quote-text ol {
    margin: 0 0 16px 20px;
    padding: 0;
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
}

.quote-text li {
    margin-bottom: 6px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.quote-text a {
    color: #17181D;
    text-decoration: underline;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.quote-text a:hover {
    text-decoration: none;
}

.testimonial-footer {
    margin-bottom: 48px;
}

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

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h3 {
    font-family: 'TT Firs Neue', sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: #17181D;
    margin: 0 0 8px 0;
}

.author-project {
    font-family: 'TT Firs Neue', sans-serif;
    font-size: 16px;
    color: #666;
    margin: 0;
}



/* Адаптивность для архивной страницы */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .single-testimonial {
        padding: 32px 20px;
    }
    
    .testimonial-header__content {
        flex-direction: column;
        gap: 16px;
    }
    
    .testimonial-header__title {
        font-size: 24px;
    }
    
    .testimonial-header__meta {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    

}
