/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background: #f8fafc;
}

.faq-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a202c;
}

.faq-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}



.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    padding-right: 20px;
}

.faq-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.faq-toggle-icon {
    color: white;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 30px 25px;
}

.faq-item.active .faq-toggle {
    background: #1d4ed8;
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(45deg);
}

.faq-answer-content {
    color: #4a5568;
    line-height: 1.6;
    padding-top: 10px;
}

.faq-answer-content p {
    margin-bottom: 1rem;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-answer-content ul,
.faq-answer-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.faq-answer-content strong {
    color: #1a202c;
    font-weight: 600;
}

.faq-answer-content a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.faq-answer-content a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Анимация появления */
.faq-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.faq-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Индикатор нового вопроса */
.faq-item:first-child .faq-question::before {
    content: 'Новый';
    background: #10b981;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    margin-right: 10px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0;
    }

    .faq-title {
        font-size: 2rem;
    }

    .faq-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .faq-question {
        padding: 20px;
    }

    .faq-question-text {
        font-size: 1rem;
        padding-right: 15px;
    }

    .faq-toggle {
        width: 35px;
        height: 35px;
    }

    .faq-toggle-icon {
        font-size: 1.3rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 20px;
    }
}

@media (max-width: 480px) {


    .faq-item {
        border-radius: 8px;
        margin-bottom: 12px;
    }

    .faq-question {
        padding: 18px 15px;
    }

    .faq-question-text {
        font-size: 0.95rem;
        padding-right: 10px;
    }

    .faq-toggle {
        width: 32px;
        height: 32px;
    }

    .faq-toggle-icon {
        font-size: 1.2rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 15px 18px;
    }
}

/* Темная тема поддержка */
@media (prefers-color-scheme: dark) {
    .faq-section {
        background: #1a202c;
    }

    .faq-title {
        color: #f7fafc;
    }

    .faq-subtitle {
        color: #cbd5e0;
    }

    .faq-item {
        background: #2d3748;
        border-color: #4a5568;
    }

    .faq-question:hover {
        background: #4a5568;
    }

    .faq-question-text {
        color: #f7fafc;
    }

    .faq-answer-content {
        color: #e2e8f0;
    }

    .faq-answer-content strong {
        color: #f7fafc;
    }

    .faq-answer-content a {
        color: #63b3ed;
    }

    .faq-answer-content a:hover {
        color: #90cdf4;
    }
}

/* Анимация для плавного раскрытия */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-answer-content {
    animation: slideDown 0.3s ease;
}

/* Аккордеон с возможностью открыть несколько */
.faq-container.multiple-open .faq-item.active {
    margin-bottom: 20px;
}