/* HLA4: pytania i odpowiedzi (FAQ) jako akordeon natywny details/summary. Tylko tokeny semantyczne --h4-*, czerń, biel i czerwień. */
.h4c-faq {
    margin: clamp(32px, 5vw, 64px) 0 0;
    color: var(--h4-text, #fff);
}

.h4c-faq__title {
    margin: 0 0 18px;
    font-family: var(--h4-font-display, "Barlow Condensed", "Arial Narrow", sans-serif);
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--h4-text, #fff);
}

.h4c-faq__list {
    display: grid;
    gap: 10px;
}

.h4c-faq__item {
    background: var(--h4-surface, rgba(255, 255, 255, 0.07));
    border: 1px solid var(--h4-line, rgba(255, 255, 255, 0.2));
    border-radius: var(--h4-radius, 8px);
}

.h4c-faq__item[open] {
    border-color: var(--h4-accent, #e0343f);
}

.h4c-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding: 14px 16px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--h4-text, #fff);
    cursor: pointer;
    list-style: none;
}

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

.h4c-faq__q::marker {
    content: "";
}

.h4c-faq__q::after {
    content: "";
    flex: 0 0 18px;
    height: 18px;
    background:
        linear-gradient(var(--h4-accent, #e0343f), var(--h4-accent, #e0343f)) center / 100% 2px no-repeat,
        linear-gradient(var(--h4-accent, #e0343f), var(--h4-accent, #e0343f)) center / 2px 100% no-repeat;
}

.h4c-faq__item[open] > .h4c-faq__q::after {
    background: linear-gradient(var(--h4-accent, #e0343f), var(--h4-accent, #e0343f)) center / 100% 2px no-repeat;
}

.h4c-faq__q:hover {
    background: var(--h4-surface-2, rgba(255, 255, 255, 0.12));
}

.h4c-faq__q:focus-visible {
    outline: 3px solid var(--h4-accent, #e0343f);
    outline-offset: 2px;
}

.h4c-faq__a {
    padding: 0 16px 18px;
    font-size: 17px;
    line-height: 1.65;
    color: var(--h4-text, #fff);
}

.h4c-faq__a p {
    margin: 0;
}

.h4c-faq__a a {
    color: var(--h4-link, #fff);
    text-decoration: underline;
    text-decoration-color: var(--h4-accent, #e0343f);
    text-underline-offset: 3px;
}

@media (min-width: 720px) {
    .h4c-faq__q {
        padding: 16px 22px;
        font-size: 18px;
    }

    .h4c-faq__a {
        padding: 0 22px 22px;
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .h4c-faq__q,
    .h4c-faq__q::after {
        transition: none;
    }
}
