/* ==========================================================================
   FAQ блок стили для WordPress
   ========================================================================== */

.faq-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.faq-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    text-align: center;
}

.faq-subtitle {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 400;
}

.faq-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.faq-item {
    border-bottom: 1px solid #f5f5f5;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    background: none;
    border: none;
    width: 100%;
    padding: 24px 28px;
    text-align: left;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1.4;
}

.faq-question:hover {
    background-color: #f8fafc;
    color: #4a90e2;
}

.faq-question:focus {
    outline: none;
    background-color: #f8fafc;
}

.faq-question h3 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e2e8f0;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-icon::before {
    content: "+";
    font-size: 18px;
    font-weight: 600;
    color: #64748b;
    transition: all 0.3s ease;
}

.faq-item.active .faq-icon {
    background: #4a90e2;
    transform: rotate(45deg);
}

.faq-item.active .faq-icon::before {
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fafbfc;
}

.faq-answer-content {
    padding: 0 28px 24px 28px;
    font-size: 16px;
    line-height: 1.6;
    color: #4a5568;
}

.faq-answer-content p {
    margin: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .faq-section {
        padding: 0 16px;
        margin: 32px auto;
    }

    .faq-title {
        font-size: 28px;
        margin-bottom: 6px;
    }

    .faq-subtitle {
        font-size: 14px;
        margin-bottom: 32px;
    }

    .faq-question {
        padding: 20px 20px;
        font-size: 16px;
    }

    .faq-answer-content {
        padding: 0 20px 20px 20px;
        font-size: 15px;
    }

    .faq-icon {
        width: 20px;
        height: 20px;
        margin-left: 12px;
    }

    .faq-icon::before {
        font-size: 16px;
    }
}

/* Дополнительные стили для совместимости с WordPress темами */
.faq-section * {
    box-sizing: border-box;
}

.faq-section h2,
.faq-section h3 {
    font-family: inherit;
}

.faq-section button {
    font-family: inherit;
}

/* Стили для темной темы (опционально) */
@media (prefers-color-scheme: dark) {
    .faq-container {
        background: #1a202c;
        border-color: #2d3748;
    }
    
    .faq-title {
        color: #f7fafc;
    }
    
    .faq-subtitle {
        color: #a0aec0;
    }
    
    .faq-item {
        border-color: #2d3748;
    }
    
    .faq-question {
        color: #e2e8f0;
    }
    
    .faq-question:hover {
        background-color: #2d3748;
        color: #63b3ed;
    }
    
    .faq-answer {
        background: #171923;
    }
    
    .faq-answer-content {
        color: #cbd5e0;
    }
}