/**
 * Стили секции FAQ.
 * Используется шаблоном template-parts/faq-section.php.
 */

.faq {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 751px;
    width: 100%;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
    padding-left: 0;
}

.faq-item {
    position: relative;
    z-index: 1;
    margin-top: 0;
    background: #15151A;
    border-radius: 24px;
    padding: 20px;
}

.faq-item-border {
    border-radius: 24px;
    padding: 1px;
    background: transparent;
}

.faq-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 16px;
}

.faq-question::marker {
    display: none;
}

.faq-question-icon {
    display: flex;
    align-items: center;
    align-content: center;
    width: 36px;
    height: 36px;
    padding: 8px;
    border-radius: 8px;
    background: linear-gradient(180deg, #27272E 0%, rgba(31, 31, 36, 0.8) 100%);
}

.faq-question-text {
    margin: 0;
    flex: 1;
    color: #F5F5FA;
    font-weight: 500;
    font-size: 20px;
    line-height: 120%;
    vertical-align: middle;
}

.faq-chevron {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    transform: rotate(-90deg);
}

.faq-details[open] .faq-chevron {
    transform: rotate(0deg);
}

.faq-item-border:has(.faq-details[open]) {
    background: linear-gradient(90deg, #0000ff6e 0%, #ff220047 60%);
}

.faq-answer {
    padding-top: 12px;
    padding-left: 52px;

    p {
        color: #EBEBF5;
        font-weight: 400;
        font-size: 18px;
        line-height: 132%;
        vertical-align: middle;
    }
}

@media (max-width: 768px) {
    .faq {
        padding-left: 16px;
        padding-right: 16px;
    }
}