/* ========== СТРАНИЦА FAQ ========== */
.faq-categories {
    display: flex;
    gap: 12px;
    margin: 30px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    padding: 10px 20px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 140, 66, 0.2);
    border-radius: var(--border-radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.category-btn:hover {
    border-color: var(--orange-primary);
    color: var(--orange-light);
}

.category-btn.active {
    background: var(--gradient-orange);
    color: white;
    border-color: transparent;
}

/* Список вопросов */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 140, 66, 0.2);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--orange-primary);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.faq-question:hover {
    background: rgba(255, 140, 66, 0.05);
}

.faq-icon {
    font-size: 24px;
    min-width: 32px;
}

.faq-title {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.faq-toggle {
    font-size: 24px;
    color: var(--orange-primary);
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    padding: 0 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 24px 72px; /* 24px (иконка) + 16px (gap) + 32px = 72px */
}

.faq-answer p {
    margin-bottom: 16px;
}

.faq-answer ul, .faq-answer ol {
    margin-left: 20px;
    margin-bottom: 16px;
}

.faq-answer li {
    margin-bottom: 8px;
}

.faq-answer a {
    color: var(--orange-light);
    text-decoration: none;
    transition: all 0.3s;
}

.faq-answer a:hover {
    color: var(--orange-primary);
    text-decoration: underline;
}

.faq-answer strong {
    color: var(--orange-light);
}

/* Блок "Не нашли ответ?" */
.faq-contact {
    margin: 60px 0;
}

.contact-card {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.1), rgba(58, 110, 165, 0.1));
    border: 1px solid rgba(255, 140, 66, 0.3);
    border-radius: var(--border-radius-xl);
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px var(--orange-primary));
}

.contact-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.contact-text {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Адаптация */
@media (max-width: 768px) {
    .faq-question {
        padding: 16px;
    }

    .faq-title {
        font-size: 16px;
    }

    .faq-icon {
        font-size: 20px;
        min-width: 28px;
    }

    .faq-item.active .faq-answer {
        padding: 0 16px 16px 60px;
    }

    .contact-card {
        padding: 30px 20px;
    }

    .contact-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .faq-question {
        flex-wrap: wrap;
    }

    .faq-title {
        order: 2;
        width: calc(100% - 70px);
    }

    .faq-toggle {
        order: 3;
    }

    .faq-item.active .faq-answer {
        padding: 0 16px 16px 16px;
    }

    .category-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .contact-buttons .btn {
        width: 100%;
    }
}