/* =========================================================
   FAQ — Termo Garaż
   Akordeon pytań o płytę warstwową.
   ========================================================= */

.tg-faq {
    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-faq__head {
    max-width: 38rem;
    margin: 0 auto clamp(2.5rem, 5.5vh, 4rem);
    text-align: center;
    opacity: 0;
    transform: translateY(14px);
}

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

.tg-faq__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-faq__eyebrow::before,
.tg-faq__eyebrow::after {
    content: "";
    width: clamp(1.5rem, 4vw, 2.5rem);
    height: 1px;
    background-color: var(--tg-line-strong);
}

.tg-faq__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-faq__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-faq__list {
    max-width: 46rem;
    margin: 0 auto;
    border-top: 1px solid var(--tg-line);
    opacity: 0;
    transform: translateY(14px);
}

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

.tg-faq__item {
    border-bottom: 1px solid var(--tg-line);
}

.tg-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: 3.25rem;
    padding: 1rem 0;
    cursor: pointer;
    list-style: none;
    font-size: clamp(1.02rem, 1.6vw, 1.15rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.tg-faq__q::-webkit-details-marker {
    display: none;
}

.tg-faq__q:focus {
    outline: none;
}

.tg-faq__q:focus-visible {
    outline: 2px solid var(--tg-ink);
    outline-offset: 4px;
    border-radius: 4px;
}

.tg-faq__q-text {
    text-wrap: balance;
}

.tg-faq__chev {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    color: var(--tg-muted);
    transition: transform 0.3s var(--tg-ease);
}

.tg-faq__chev svg {
    width: 0.9rem;
    height: 0.9rem;
}

.tg-faq__item[open] .tg-faq__chev {
    transform: rotate(90deg);
    color: var(--tg-ink);
}

.tg-faq__a {
    padding: 0 2.5rem 1.25rem 0;
}

.tg-faq__a p {
    margin: 0;
    max-width: 40rem;
    font-size: 1.02rem;
    line-height: 1.55;
    color: var(--tg-muted);
    text-wrap: pretty;
}

.tg-faq__actions {
    display: flex;
    justify-content: center;
    margin-top: clamp(2rem, 4vh, 3rem);
    opacity: 0;
    transform: translateY(14px);
}

.tg-faq.is-in .tg-faq__actions {
    animation: tg-rise 0.72s var(--tg-ease-out) 0.16s forwards;
}

@media (max-width: 640px) {
    .tg-faq__a {
        padding-right: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tg-faq__head,
    .tg-faq__list,
    .tg-faq__actions {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .tg-faq__chev {
        transition: none;
    }
}
