/* Стили для блока FAQ */
.faq-main-section {
    padding: 60px 0;
    background: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #333;
    font-weight: 600;
}

/* Категории */
.faq-category {
    margin-bottom: 40px;
}

.faq-category-title {
    font-size: 22px;
    color: #444;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f5e100;
    font-weight: 600;
    position: relative;
    padding-left: 15px;
}

.faq-category-title:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 25px;
    background: #f5e100;
    border-radius: 3px;
}

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

/* Элемент FAQ */
.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    background: white;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.faq-item[itemtype="https://schema.org/Question"]:focus-within {
    border-color: #f5e100;
    box-shadow: 0 0 0 3px rgba(245, 225, 0, 0.1);
}

/* Вопрос */
.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
}

.faq-question:focus {
    outline: 2px solid #f5e100;
    outline-offset: 2px;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.faq-toggle {
    font-size: 24px;
    font-weight: 300;
    color: #f5e100;
    transition: transform 0.3s;
    margin-left: 15px;
    min-width: 20px;
    text-align: center;
}

/* Ответ */
.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    line-height: 1.6;
    color: #555;
}

.faq-answer div {
    padding: 20px 0;
}

/* Стилизация контента в ответах */
.faq-answer p {
    margin-bottom: 15px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul, .faq-answer ol {
    margin: 15px 0 15px 20px;
    padding: 0;
}

.faq-answer li {
    margin-bottom: 8px;
}

.faq-answer strong {
    color: #2c3e50;
}

/* Адаптивность */
@media (max-width: 768px) {
    .faq-main-section {
        padding: 40px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    
    .faq-category-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .faq-question {
        padding: 15px;
    }
    
    .faq-question h4 {
        font-size: 16px;
    }
    
    .faq-answer {
        padding: 0 15px;
    }
    
    .faq-answer div {
        padding: 15px 0;
    }
}

@media (max-width: 480px) {
    .faq-main-section {
        padding: 30px 0;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .faq-category-title {
        font-size: 18px;
    }
    
    .faq-question h4 {
        font-size: 15px;
    }
    
    .faq-toggle {
        font-size: 20px;
    }
}