/* FAQ (#faq): компактная сетка, микроразметка Question/Answer, без конфликта с .faq-section у тарифов */

#faq.faq-section {
    background: transparent;
    padding: clamp(28px, 5vh, 44px) 0 clamp(32px, 5vh, 48px);
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 215, 0, 0.07);
    scroll-margin-top: 88px;
}

#faq .faq-shell {
    max-width: min(1040px, 100%);
    margin: 0 auto;
    padding: 0 clamp(18px, 3.5vw, 36px);
}

#faq .faq-header--compact {
    text-align: left;
    margin-bottom: clamp(14px, 2.2vh, 20px);
    max-width: 42rem;
}

#faq .faq-header__top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.85rem;
    margin-bottom: 0.45rem;
}

#faq .faq-tag {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    color: rgba(255, 215, 0, 0.92);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0;
    border: 1px solid rgba(255, 215, 0, 0.22);
    background: rgba(255, 215, 0, 0.05);
}

#faq .faq-title {
    font-family: var(--font-h);
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: none;
    color: #fff;
    line-height: 1.2;
    margin: 0;
}

#faq .faq-desc {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.48);
    max-width: none;
    margin: 0;
    line-height: 1.45;
}

#faq .faq-desc__nowrap {
    white-space: nowrap;
}

#faq .faq-matrix {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    column-gap: clamp(18px, 3vw, 36px);
    row-gap: 0;
}

@media (min-width: 880px) {
    #faq .faq-matrix {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #faq .faq-header--compact {
        max-width: none;
        margin-bottom: clamp(12px, 2vh, 18px);
    }
}

@media (max-width: 479px) {
    #faq .faq-desc__nowrap {
        white-space: normal;
    }
}

#faq .faq-item {
    background: transparent;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    overflow: visible;
    transition: border-color 0.2s ease;
}

#faq .faq-item:hover {
    border-bottom-color: rgba(255, 215, 0, 0.14);
}

#faq .faq-item:focus-within {
    border-bottom-color: rgba(255, 215, 0, 0.22);
    box-shadow: none;
}

#faq .faq-details {
    display: block;
}

#faq .faq-question {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 10px 2px 10px 0;
    font-family: var(--font-h);
    font-size: clamp(0.8rem, 1.05vw, 0.88rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.94);
    text-align: left;
    cursor: pointer;
    list-style: none;
    background: transparent;
    border: none;
    line-height: 1.35;
    transition: color 0.2s ease;
}

#faq .faq-question::-webkit-details-marker,
#faq .faq-question::marker {
    display: none;
}

#faq .faq-question::after {
    content: '';
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    margin-top: 0.35em;
    border-right: 1.5px solid rgba(255, 215, 0, 0.55);
    border-bottom: 1.5px solid rgba(255, 215, 0, 0.55);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}

#faq .faq-details[open] .faq-question::after {
    transform: rotate(-135deg);
    margin-top: 0.5em;
}

#faq .faq-question:hover {
    color: rgba(255, 215, 0, 0.95);
}

#faq .faq-answer {
    padding: 0 18px 12px 0;
}

#faq .faq-answer p {
    margin: 0;
    padding: 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.55;
    border: none;
}

@media (max-width: 600px) {
    #faq.faq-section {
        scroll-margin-top: 72px;
    }

    #faq .faq-question {
        padding: 11px 2px 11px 0;
        font-size: 0.82rem;
    }

    #faq .faq-answer {
        padding: 0 0 11px;
    }

    #faq .faq-answer p {
        font-size: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #faq .faq-question::after {
        transition: none;
    }
}
