/**
 * ZORIN Member - Стили для секции FAQ
 * Определяет внешний вид аккордеона с вопросами и ответами
 */

.faq {
    background-color: var(--light-bg);
    position: relative;
}

.dark-mode .faq {
    background-color: var(--dark-bg);
}

/* Стили для табов */
.faq .tabs {
    margin-bottom: 60px;
}

/* Список вопросов */
.faq-list {
    max-width: 800px;
    margin: 0 auto 60px;
    display: none;
}

.faq-list.active {
    display: block;
}

/* Отдельный элемент FAQ */
.faq-item {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.dark-mode .faq-item {
    background-color: var(--dark-bg-alt);
    box-shadow: var(--shadow-dark);
    border-color: rgba(255, 255, 255, 0.03);
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.dark-mode .faq-item:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.faq-item.active {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.dark-mode .faq-item.active {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Вопрос */
.faq-question {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--primary-light);
}

.faq-question h3 {
    font-size: 18px;
    margin-bottom: 0;
    color: var(--light-text);
    padding-right: 20px;
    transition: var(--transition);
}

.dark-mode .faq-question h3 {
    color: var(--dark-text);
}

.faq-item.active .faq-question h3 {
    color: var(--primary-color);
}

.faq-question svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

/* Ответ */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: all 0.3s ease-in-out;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 25px 20px;
}

.faq-answer p {
    color: var(--light-text-secondary);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 0;
}

.dark-mode .faq-answer p {
    color: var(--dark-text-secondary);
}

/* Призыв к действию в секции FAQ */
.faq-cta {
    text-align: center;
    background-color: var(--light-bg-alt);
    border-radius: var(--border-radius);
    padding: 50px 40px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.dark-mode .faq-cta {
    background-color: var(--dark-bg-alt);
}

.faq-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230088cc' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

.faq-cta h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--light-text);
    position: relative;
    z-index: 1;
}

.dark-mode .faq-cta h3 {
    color: var(--dark-text);
}

.faq-cta p {
    font-size: 17px;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.faq-cta .btn {
    position: relative;
    z-index: 1;
}

/* Адаптивность */
@media (max-width: 768px) {
    .faq-question h3 {
        font-size: 16px;
    }
    
    .faq-cta {
        padding: 40px 20px;
    }
    
    .faq-cta h3 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: 15px 20px;
    }
    
    .faq-question h3 {
        font-size: 14px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 15px;
    }
    
    .faq-cta h3 {
        font-size: 20px;
    }
}