/* =========================================================
   OPINIE — Termo Garaż
   Nagłówek sekcji plus widget Trustindex (Google).
   Karty widgetu w trustindex.css.
   ========================================================= */

.tg-reviews {
    position: relative;
    background-color: var(--tg-base);
    color: var(--tg-ink);
    padding-block: clamp(4.5rem, 9.5vh, 7.75rem);
    scroll-margin-top: 5.5rem;
}

.tg-reviews__head {
    max-width: 38rem;
    margin: 0 auto clamp(2.5rem, 5.5vh, 4rem);
    text-align: center;
    opacity: 0;
    transform: translateY(14px);
}

.tg-reviews.is-in .tg-reviews__head {
    animation: tg-rise 0.72s var(--tg-ease-out) forwards;
}

.tg-reviews__eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    margin: 0 0 1.1rem;
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--tg-faint);
}

.tg-reviews__eyebrow::before,
.tg-reviews__eyebrow::after {
    content: "";
    width: clamp(1.5rem, 4vw, 2.5rem);
    height: 1px;
    background-color: var(--tg-line-strong);
}

.tg-reviews__title {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4.6vw, 3.25rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.tg-reviews__lead {
    margin: 0 auto;
    max-width: 32rem;
    font-size: var(--tg-fs-lead);
    line-height: 1.5;
    color: var(--tg-muted);
    text-wrap: pretty;
}

.tg-reviews__widget {
    min-width: 0;
    overflow: visible;
    opacity: 0;
    transform: translateY(14px);
}

.tg-reviews.is-in .tg-reviews__widget {
    animation: tg-rise 0.72s var(--tg-ease-out) 0.1s forwards;
}

.tg-reviews.has-widget .tg-reviews__widget {
    min-height: 17rem;
}

.tg-reviews__empty {
    margin: 0 auto;
    max-width: 30rem;
    text-align: center;
    font-size: var(--tg-fs-body);
    line-height: 1.5;
    color: var(--tg-muted);
}

.tg-reviews__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    margin-top: clamp(2rem, 4vh, 2.75rem);
    opacity: 0;
    transform: translateY(14px);
}

.tg-reviews.is-in .tg-reviews__actions {
    animation: tg-rise 0.72s var(--tg-ease-out) 0.22s forwards;
}

@media (max-width: 1200px) {
    .tg-reviews__title {
        font-size: clamp(1.9rem, 4vw, 2.75rem);
    }
}

@media (max-width: 1023px) {
    .tg-reviews {
        padding-block: clamp(3.75rem, 8vh, 6.25rem);
    }
}

@media (max-width: 767px) {
    .tg-reviews {
        padding-block: clamp(3.15rem, 7vh, 4.75rem);
    }

    .tg-reviews.has-widget .tg-reviews__widget {
        min-height: 16rem;
    }

    .tg-reviews__actions {
        flex-direction: column;
        align-items: center;
    }

    .tg-reviews__actions .tg-btn,
    .tg-reviews__actions .tg-link {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 479px) {
    .tg-reviews__title {
        font-size: 1.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tg-reviews__head,
    .tg-reviews__widget,
    .tg-reviews__actions,
    .tg-reviews.is-in .tg-reviews__head,
    .tg-reviews.is-in .tg-reviews__widget,
    .tg-reviews.is-in .tg-reviews__actions {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
