.testimonial-page,
.testimonial-detail,
.home-section--testimonial {
    background:
        radial-gradient(
            circle at top left,
            rgba(14, 116, 144, 0.1),
            transparent 26%
        ),
        radial-gradient(
            circle at right center,
            rgba(251, 146, 60, 0.12),
            transparent 24%
        ),
        linear-gradient(180deg, #f8fafc 0%, #eef6f8 100%);
    color: #163042;
}

.home-section--testimonial {
    position: relative;
}

.home-section--testimonial::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 38%),
        linear-gradient(315deg, rgba(14, 116, 144, 0.08), transparent 40%);
}

.home-module-section--testimonial > .site-container {
    position: relative;
    z-index: 1;
}

.home-testimonial__content,
.testimonial-page__description {
    color: #60798a;
    line-height: 1.8;
}

.home-testimonial-carousel {
    margin-top: 28px;
}

.home-section--testimonial .home-section__items {
    gap: 18px;
}

.home-testimonial-carousel .home-section__items {
    margin-top: 0;
}

.home-section--testimonial .home-section__items.is-carousel {
    --carousel-gap: 18px;
}

.testimonial-grid,
.home-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(var(--home-large-cols, 3), minmax(0, 1fr));
    gap: 18px;
}

.testimonial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 100%;
    padding: 24px;
    border: 1px solid rgba(22, 48, 66, 0.1);
    border-radius: 24px;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.98),
            rgba(255, 255, 255, 0.9)
        ),
        #fff;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.06);
}

.testimonial-card__quote-mark {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(14, 116, 144, 0.1);
    color: #0e7490;
    font-size: 18px;
}

.testimonial-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.testimonial-card__meta--end {
    justify-content: flex-end;
}

.testimonial-card__category {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(14, 116, 144, 0.1);
    color: #0f766e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.testimonial-card__category.has-custom-color {
    background: var(--category-surface, var(--category-bg, #0f766e));
    color: var(--category-text, #fff);
}

.testimonial-card__stars,
.testimonial-detail__stars {
    display: inline-flex;
    gap: 4px;
    color: #f59e0b;
}

.testimonial-card__body {
    color: inherit;
    text-decoration: none;
}

.testimonial-card__title {
    margin: 0;
    color: #0f172a;
    font-size: 23px;
    line-height: 1.3;
}

.testimonial-card__content {
    display: -webkit-box;
    overflow: hidden;
    margin: 12px 0 0;
    color: #5c7282;
    line-height: 1.85;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

.testimonial-card__footer,
.testimonial-card__person {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-card__footer {
    margin-top: auto;
    justify-content: space-between;
    flex-wrap: wrap;
}

.testimonial-card__avatar,
.testimonial-detail__avatar {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    overflow: hidden;
    border-radius: 18px;
    background: #dbeafe;
}

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

.testimonial-card__avatar--text,
.testimonial-detail__avatar--text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0e7490;
    font-size: 22px;
    font-weight: 800;
}

.testimonial-card__identity,
.testimonial-detail__identity {
    display: grid;
    gap: 4px;
}

.testimonial-card__identity strong,
.testimonial-detail__identity strong {
    color: #102433;
    font-size: 15px;
}

.testimonial-card__identity span,
.testimonial-detail__identity span {
    color: #60798a;
    font-size: 13px;
    line-height: 1.6;
}

.testimonial-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0e7490;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.testimonial-page__header {
    padding: 30px 0;
    border-bottom: 1px solid rgba(22, 48, 66, 0.12);
    background: rgba(244, 249, 251, 0.92);
}

.testimonial-page__intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-top: 16px;
}

.testimonial-page__intro p {
    margin: 0 0 10px;
    color: #0e7490;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.testimonial-page__intro h1 {
    margin: 0;
    color: #0f172a;
    font-size: 40px;
    line-height: 1.15;
}

.testimonial-page__summary {
    display: grid;
    gap: 6px;
    min-width: 240px;
    padding: 20px 22px;
    border: 1px solid rgba(14, 116, 144, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    text-align: right;
}

.testimonial-page__summary strong {
    color: #0e7490;
    font-size: 34px;
    line-height: 1;
}

.testimonial-page__summary span {
    color: #60798a;
    font-size: 13px;
    line-height: 1.7;
}

.testimonial-page__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.testimonial-page__categories a,
.testimonial-detail__tags span {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border: 1px solid rgba(22, 48, 66, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.testimonial-page__categories a.is-active {
    border-color: #0e7490;
    background: #0e7490;
    color: #fff;
}

.testimonial-page__body,
.testimonial-detail__layout {
    padding-top: 34px;
    padding-bottom: 64px;
}

.testimonial-pagination {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.testimonial-pagination .pagination,
.testimonial-pagination .catalog-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.testimonial-pagination .page-item {
    display: flex;
}

.testimonial-pagination .page-link,
.testimonial-pagination .catalog-pagination__page,
.testimonial-pagination .catalog-pagination__nav,
.testimonial-pagination .catalog-pagination__dots {
    display: grid;
    min-width: 40px;
    height: 40px;
    box-sizing: border-box;
    padding: 0 10px;
    place-items: center;
    border: 1px solid #dbe3ec;
    border-radius: 6px;
    background: #fff;
    color: #475569;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.testimonial-pagination .page-link:hover,
.testimonial-pagination .page-item.active .page-link,
.testimonial-pagination .catalog-pagination__page:hover,
.testimonial-pagination .catalog-pagination__nav:hover,
.testimonial-pagination .catalog-pagination__page.is-active {
    border-color: var(--web-link-text, #2563eb);
    background: var(--web-link-text, #2563eb);
    color: #fff;
}

.testimonial-pagination .page-item.disabled .page-link,
.testimonial-pagination .catalog-pagination__nav.is-disabled {
    background: #f8fafc;
    color: #cbd5e1;
    cursor: not-allowed;
}

.testimonial-pagination .catalog-pagination__dots {
    min-width: auto;
    border-color: transparent;
    background: transparent;
    color: #94a3b8;
}

.testimonial-empty {
    display: grid;
    gap: 12px;
    place-items: center;
    padding: 44px 20px;
    border: 1px dashed rgba(22, 48, 66, 0.18);
    border-radius: 22px;
    text-align: center;
    color: #60798a;
    background: rgba(255, 255, 255, 0.82);
}

.testimonial-empty i {
    font-size: 28px;
}

.testimonial-detail__hero {
    padding: 30px 0;
    border-bottom: 1px solid rgba(22, 48, 66, 0.12);
    background: rgba(244, 249, 251, 0.92);
}

.testimonial-detail__hero h1 {
    margin: 14px 0 0;
    color: var(--article-detail-h1-color, #0f172a);
    font-size: var(--article-detail-h1-size, 38px);
    line-height: 1.2;
}

.testimonial-detail__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
}

.testimonial-detail__layout--no-sidebar {
    grid-template-columns: minmax(0, 1fr);
}

.testimonial-detail__card,
.testimonial-detail__block,
.testimonial-detail__related {
    border: 1px solid rgba(22, 48, 66, 0.1);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.05);
}

.testimonial-detail__card {
    position: relative;
    padding: 28px;
}

.testimonial-detail__quote {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 18px;
    background: rgba(14, 116, 144, 0.1);
    color: #0e7490;
    font-size: 22px;
}

.testimonial-detail__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

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

.testimonial-detail__content {
    margin-top: 22px;
    color: #344a5a;
    font-size: 17px;
    line-height: 1.95;
}

.testimonial-detail__content p {
    margin: 0;
    white-space: pre-line;
}

.testimonial-detail__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.testimonial-detail__sidebar {
    display: grid;
    gap: 20px;
    align-content: start;
}

.testimonial-detail__block,
.testimonial-detail__related {
    padding: 22px;
}

.testimonial-detail__block h2,
.testimonial-detail__related h2 {
    margin: 0 0 14px;
    color: #102433;
    font-size: 18px;
}

.testimonial-detail__block-content,
.testimonial-detail__related-list span {
    color: #60798a;
    font-size: 14px;
    line-height: 1.75;
}

.testimonial-detail__block-content > :first-child {
    margin-top: 0;
}

.testimonial-detail__block-content > :last-child {
    margin-bottom: 0;
}

.testimonial-detail__related-list {
    display: grid;
    gap: 14px;
}

.testimonial-detail__related-list a {
    display: grid;
    gap: 4px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(22, 48, 66, 0.08);
    text-decoration: none;
}

.testimonial-detail__related-list a:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.testimonial-detail__related-list strong {
    color: #102433;
    font-size: 15px;
}

@media (max-width: 1024px) {
    .testimonial-page__intro,
    .testimonial-detail__layout {
        grid-template-columns: 1fr;
        display: grid;
    }

    .testimonial-page__summary {
        min-width: 0;
        text-align: left;
    }
}

@media (max-width: 767px) {
    .home-section--testimonial .home-section__items {
        gap: 16px;
    }

    .home-section--testimonial .home-section__items.is-carousel {
        --carousel-gap: 16px;
    }

    .testimonial-card,
    .testimonial-detail__card {
        padding: 20px;
    }

    .testimonial-page__intro h1,
    .testimonial-detail__hero h1 {
        font-size: 30px;
    }

    .testimonial-card__title {
        font-size: 20px;
    }
}
