/* Стили для секции FAQ */
.faq-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    isolation: isolate; /* Создает новый контекст наложения */
}

.faq-title {
    position: relative;
    padding-bottom: 15px;
    color: #2c3e50;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px !important;
}

.faq-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #4CAF50;
    border-radius: 2px;
}

/* Стили для аккордеона */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    margin-bottom: 15px;
    border-radius: 8px !important;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.faq-control {
    padding: 20px 25px !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    color: #2c3e50 !important;
    background-color: white !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.faq-control:hover {
    background-color: #f1f3f5 !important;
}

.faq-control[data-active] {
    background-color: #4CAF50 !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.25) !important;
}

.dmc-Accordion-chevron {
    color: #4CAF50;
}

.faq-control[data-active] .dmc-Accordion-chevron {
    color: white !important;
}

.faq-answer {
    padding: 20px 25px !important;
    font-size: 16px !important;
    color: #495057 !important;
    line-height: 1.7 !important;
    background: #f8f9fa !important;
}

/* Декоративные элементы */
.faq-section::before,
.faq-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: -1; /* Помещаем под основной контент */
}

.faq-section::before {
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(76, 175, 80, 0.1);
}

.faq-section::after {
    bottom: -70px;
    left: -70px;
    width: 250px;
    height: 250px;
    background: rgba(76, 175, 80, 0.08);
}

.title-container,
.faq-accordion {
    position: relative;
    z-index: 1; /* Помещаем контент поверх декораций */
}

/* Адаптивность */
@media (max-width: 768px) {
    .faq-control {
        padding: 15px 20px !important;
        font-size: 16px !important;
    }
    
    .faq-answer {
        padding: 15px 20px !important;
        font-size: 15px !important;
    }
    
    .faq-section {
        padding: 60px 20px;
    }
}