.testimonial-page-hero,
.testimonial-page-list,
.testimonial-submission-section {
    position: relative;
}

.testimonial-page-hero {
    padding: 110px 0 40px;
}

.testimonial-page-hero__shell {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 32px;
    align-items: stretch;
}

.testimonial-page-hero__copy,
.testimonial-page-hero__highlight,
.testimonial-story-card,
.contact-page__right {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(34, 32, 29, 0.06);
    box-shadow: 0 18px 45px rgba(20, 18, 16, 0.08);
    border-radius: 28px;
}

.testimonial-page-hero__copy {
    padding: 38px;
}

.testimonial-page-hero__text {
    color: #6f695f;
    font-size: 16px;
    line-height: 1.85;
    margin-bottom: 28px;
}

.testimonial-page-hero__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.testimonial-page-hero__metric {
    padding: 18px;
    border-radius: 20px;
    background: rgba(9, 204, 127, 0.08);
}

.testimonial-page-hero__metric strong {
    display: block;
    color: #0d7c4d;
    font-size: 24px;
    line-height: 1.1;
}

.testimonial-page-hero__metric span {
    display: block;
    margin-top: 8px;
    color: #5f594f;
    font-size: 13px;
}

.testimonial-page-hero__highlight {
    padding: 18px;
    background: linear-gradient(180deg, rgba(9, 204, 127, 0.08), rgba(255, 255, 255, 0.95));
}

.testimonial-spotlight-card {
    padding: 28px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    min-height: 100%;
}

.testimonial-spotlight-card__quote {
    font-size: 34px;
    color: var(--pifoxen-base);
    margin-bottom: 16px;
}

.testimonial-spotlight-card__text,
.testimonial-story-card__text {
    color: #403a34;
    font-size: 16px;
    line-height: 1.9;
    margin: 0;
}

.testimonial-spotlight-card__person {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
}

.testimonial-spotlight-card__avatar-image,
.testimonial-story-card__avatar-image {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(34, 32, 29, 0.08);
    background: rgba(255, 255, 255, 0.92);
    flex-shrink: 0;
}

.testimonial-spotlight-card__person h3,
.testimonial-story-card__top h3 {
    margin: 0 0 4px;
    font-size: 20px;
}

.testimonial-spotlight-card__person p,
.testimonial-story-card__top p,
.testimonial-story-card__time {
    margin: 0;
    color: #7b746a;
    font-size: 14px;
}

.testimonial-page-list {
    padding: 20px 0 60px;
}

.testimonial-page-list__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.testimonial-page-list__header .section-title {
    margin-bottom: 0;
}

.testimonial-sort-control {
    flex-shrink: 0;
    min-width: 240px;
}

.testimonial-sort-control label {
    display: block;
    margin: 0 0 10px;
    color: #5f594f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.testimonial-sort-control__field {
    position: relative;
}

.testimonial-sort-control__field::after {
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6a645a;
}

.testimonial-sort-control select {
    width: 100%;
    height: 54px;
    padding: 0 46px 0 18px;
    border: 1px solid rgba(34, 32, 29, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    color: #2b2621;
    font-size: 14px;
    font-weight: 600;
    appearance: none;
    box-shadow: 0 12px 28px rgba(20, 18, 16, 0.06);
}

.testimonial-sort-control select:focus {
    outline: none;
    border-color: #09cc7f;
    box-shadow: 0 0 0 4px rgba(9, 204, 127, 0.12);
}

.testimonial-story-list {
    display: grid;
    gap: 18px;
}

.testimonial-story-card {
    padding: 20px 24px;
}

.testimonial-story-card--row {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.testimonial-story-card__media {
    flex-shrink: 0;
}

.testimonial-story-card__body {
    flex: 1;
    min-width: 0;
}

.testimonial-story-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.testimonial-story-card__time {
    white-space: nowrap;
    font-size: 13px;
}

.testimonial-show-more {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

.testimonial-empty-state {
    min-height: 240px;
    padding: 32px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px dashed rgba(34, 32, 29, 0.14);
    display: grid;
    place-items: center;
    text-align: center;
}

.testimonial-empty-state i {
    color: var(--pifoxen-base);
    font-size: 32px;
    margin-bottom: 12px;
}

.testimonial-submission-section {
    padding: 30px 0 110px;
}

.testimonial-submission-section__points {
    margin-top: 28px;
}

.testimonial-submission-section__points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #5f594f;
    line-height: 1.7;
}

.testimonial-submission-section__points li + li {
    margin-top: 12px;
}

.testimonial-submission-section__points i {
    color: var(--pifoxen-base);
    margin-top: 4px;
}

.contact-page__right {
    padding: 36px;
}

.testimonial-consent {
    margin: 8px 0 24px;
}

.testimonial-consent label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #5d564d;
    line-height: 1.7;
}

.testimonial-consent input {
    margin-top: 5px;
}

.comment-form__input-box {
    margin-bottom: 20px;
    position: relative;
}

.comment-form__input-box input,
.comment-form__input-box select,
.comment-form__input-box textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd6cc;
    border-radius: 16px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.comment-form__input-box input:focus,
.comment-form__input-box select:focus,
.comment-form__input-box textarea:focus {
    border-color: #09cc7f;
    outline: none;
    box-shadow: 0 0 0 4px rgba(9, 204, 127, 0.12);
}

.comment-form__input-box.has-error input,
.comment-form__input-box.has-error select,
.comment-form__input-box.has-error textarea,
.testimonial-consent.has-error label {
    border-color: #dc3545;
}

.text-message-box textarea {
    min-height: 150px;
    resize: vertical;
}

.error-text {
    display: block;
    margin-top: 6px;
    color: #c43737;
    font-size: 12px;
}

.alert-message {
    padding: 15px 20px;
    border-radius: 14px;
    margin-bottom: 20px;
    display: none;
    font-weight: 500;
    border: 1px solid;
}

.alert-message.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-message.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

[data-theme="dark"] .testimonial-page-hero__copy,
[data-theme="dark"] .testimonial-page-hero__highlight,
[data-theme="dark"] .testimonial-story-card,
[data-theme="dark"] .contact-page__right,
[data-theme="dark"] .testimonial-spotlight-card,
[data-theme="dark"] .testimonial-empty-state,
[data-theme="dark"] .comment-form__input-box input,
[data-theme="dark"] .comment-form__input-box select,
[data-theme="dark"] .comment-form__input-box textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    color: #f4f3ef;
}

[data-theme="dark"] .testimonial-page-hero__text,
[data-theme="dark"] .testimonial-story-card__top p,
[data-theme="dark"] .testimonial-story-card__time,
[data-theme="dark"] .testimonial-spotlight-card__person p,
[data-theme="dark"] .testimonial-consent label,
[data-theme="dark"] .testimonial-submission-section__points li {
    color: rgba(255, 255, 255, 0.72);
}

[data-theme="dark"] .testimonial-page-hero__metric {
    background: rgba(9, 204, 127, 0.12);
}

[data-theme="dark"] .testimonial-page-hero__metric strong {
    color: #8bf0be;
}

[data-theme="dark"] .testimonial-sort-control label {
    color: rgba(255, 255, 255, 0.72);
}

[data-theme="dark"] .testimonial-sort-control select {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    color: #f4f3ef;
}

[data-theme="dark"] .testimonial-sort-control__field::after {
    color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 1199px) {
    .testimonial-page-hero__shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .testimonial-page-hero {
        padding-top: 80px;
    }

    .testimonial-page-hero__copy,
    .contact-page__right,
    .testimonial-story-card,
    .testimonial-spotlight-card {
        padding: 24px;
    }

    .testimonial-page-hero__metrics {
        grid-template-columns: 1fr;
    }

    .testimonial-page-list__header {
        align-items: stretch;
        flex-direction: column;
    }

    .testimonial-sort-control {
        width: 100%;
        min-width: 0;
    }

    .testimonial-story-card--row,
    .testimonial-story-card__top {
        flex-direction: column;
    }

    .testimonial-story-card__time {
        white-space: normal;
    }
}
