/* --- Секция FAQ --- */
.faq-section {
    padding: 80px 20px;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.faq-container {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
a {
    color: #fff;
}

/* Карточка вопроса */
.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: 
        background-color 0.5s cubic-bezier(0.25, 1, 0.5, 1),
        border-color 0.5s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Шапка вопроса */
.faq-question {
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question span {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    transition: color 0.4s ease;
}

.faq-icon {
    font-size: 26px;
    color: #D4FC1E;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); 
    line-height: 1;
}

/* Контейнер ответа */
.faq-answer {
    max-height: 0;
    opacity: 0;
    padding: 0 30px;
    transition: 
        max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s ease,
        padding 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    font-size: 16px;
    overflow: hidden;
}

/* --- ЛОГИКА ДЛЯ ПК (HOVER) --- */
@media (hover: hover) {
    .faq-item:hover {
        background: rgba(212, 252, 30, 0.05);
        border-color: rgba(212, 252, 30, 0.3);
        transform: translateY(-3px);
    }

    .faq-item:hover .faq-answer {
        max-height: 400px;
        opacity: 1;
        padding-bottom: 30px;
    }

    .faq-item:hover .faq-icon {
        transform: rotate(45deg);
        color: #fff;
    }

    .faq-item:hover .faq-question span {
        color: #D4FC1E;
    }
}

/* --- ЛОГИКА ДЛЯ МОБИЛЬНЫХ (JS ACTIVE CLASS) --- */
.faq-item.active {
    background: rgba(212, 252, 30, 0.05);
    border-color: rgba(212, 252, 30, 0.3);
}

.faq-item.active .faq-answer {
    max-height: 400px;
    opacity: 1;
    padding-bottom: 30px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: #fff;
}

.faq-item.active .faq-question span {
    color: #D4FC1E;
}

/* Адаптив */
@media (max-width: 768px) {
    .faq-question { padding: 20px; }
    .faq-question span { font-size: 16px; }
    .faq-answer { padding: 0 20px; }
}