
.faq-section {
    max-width: 1400px;
    margin: 20px auto;
    padding: 10px 5px;
}

.faq-item {
    background: rgba(249, 115, 22, 0.08);
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.faq-title {
    padding: 20px;
    font-size: 18px;
    background: #f8f9fa;
    font-family: 'Rubik', sans-serif;
    color: #555;
    line-height: 1.5;
    font-weight: 400;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.1s;
}

.faq-title:hover {
    background-color: rgba(234, 88, 12, 0.1);
}

.faq-title::after {
    content: '+';
    font-size: 24px;
    color: #F97316;
}

.faq-item.active .faq-title::after {
    content: '-';
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
    text-align: left;
    font-size: 16px;
}

.faq-content p {
    margin: 0 0 10px 0;
    padding-left: 0;
    font-family: 'Rubik', sans-serif;
    color: #555;
    line-height: 1.5;
    font-weight: 400;
}

.faq-content ul {
    margin: 0;
    padding-left: 20px;
}

.faq-content li {
    margin-bottom: 5px;
}

.faq-item.active .faq-content {
    max-height: 2000px;
    padding: 20px;
}

/* Стили для Markdown контента в FAQ */
.faq-text {
    font-family: 'Rubik', sans-serif;
    color: #555;
    line-height: 1.6;
    font-weight: 400;
}

.faq-content .faq-text p {
    margin: 0 0 12px 0;
    padding-left: 0;
}

.faq-content .faq-text ul,
.faq-content .faq-text ol {
    margin: 10px 0;
    padding-left: 20px;
}

.faq-text strong {
    font-weight: 600;
    color: #333;
}

.faq-text em {
    font-style: italic;
}

.faq-text code {
    background: rgba(249, 115, 22, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    color: #F97316;
}

.faq-text a {
    color: #F97316;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.faq-text a:hover {
    border-bottom-color: #F97316;
}

/* ul/ol стили перемещены в .faq-content .faq-text выше */

.faq-text li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.faq-text ol {
    list-style-type: decimal;
}

.faq-text ul {
    list-style-type: disc;
}
