/* =========================================================
   TRUST — Termo Garaż
   Cichy pasek faktów pod Hero. Typografia prowadzi.
   ========================================================= */

.tg-trust {
    position: relative;
    background-color: var(--tg-base);
    color: var(--tg-ink);
    padding-block: clamp(2.5rem, 6vh, 4.5rem);
}

.tg-trust .adcore-wrap {
    border-top: 1px solid var(--tg-line);
    padding-top: clamp(2.25rem, 5vh, 3.5rem);
}

.tg-trust__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tg-trust__item {
    padding-inline: clamp(1.25rem, 2.2vw, 2.25rem);
    opacity: 0;
    transform: translateY(14px);
}

.tg-trust__item:first-child {
    padding-left: 0;
}

.tg-trust__item:last-child {
    padding-right: 0;
}

.tg-trust__item + .tg-trust__item {
    border-left: 1px solid var(--tg-line);
}

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

.tg-trust.is-in .tg-trust__item:nth-child(2) { animation-delay: 0.08s; }
.tg-trust.is-in .tg-trust__item:nth-child(3) { animation-delay: 0.16s; }
.tg-trust.is-in .tg-trust__item:nth-child(4) { animation-delay: 0.24s; }

.tg-trust__value {
    margin: 0 0 0.55rem;
    font-size: clamp(1.125rem, 1.35vw, 1.375rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.tg-trust__note {
    margin: 0;
    max-width: 16rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--tg-faint);
    transition: color 0.3s var(--tg-ease);
}

.tg-trust__item:hover .tg-trust__note,
.tg-trust__item:focus-within .tg-trust__note {
    color: var(--tg-ink);
}

/* =========================================================
   Breakpointy 1450 / 1201 / 1024 / 768 / 375
   ========================================================= */

@media (max-width: 1200px) {
    .tg-trust__item {
        padding-inline: 1.15rem;
    }

    .tg-trust__value {
        font-size: 1.125rem;
    }
}

@media (max-width: 1023px) {
    .tg-trust__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: clamp(1.75rem, 4vh, 2.5rem);
    }

    .tg-trust__item {
        padding-inline: 0 1.5rem;
    }

    .tg-trust__item:nth-child(2n) {
        padding-inline: 1.5rem 0;
    }

    .tg-trust__item + .tg-trust__item {
        border-left: 0;
    }

    .tg-trust__item:nth-child(2n) {
        border-left: 1px solid var(--tg-line);
    }
}

@media (max-width: 767px) {
    .tg-trust {
        padding-block: clamp(2rem, 5vh, 3rem);
        text-align: center;
    }

    .tg-trust .adcore-wrap {
        padding-top: clamp(1.75rem, 4vh, 2.5rem);
    }

    .tg-trust__grid {
        grid-template-columns: 1fr;
        row-gap: 0;
    }

    .tg-trust__item {
        padding: 1.35rem 0;
    }

    .tg-trust__item:nth-child(2n) {
        padding-inline: 0;
        border-left: 0;
    }

    .tg-trust__item + .tg-trust__item {
        border-top: 1px solid var(--tg-line);
    }

    .tg-trust__note {
        max-width: 22rem;
        margin-inline: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tg-trust__item,
    .tg-trust.is-in .tg-trust__item {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
