.faq-block-wrapper {
    max-width: 1200px;
}

.faq-block-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.faq-section {
    margin-bottom: 40px;
}

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

.faq-section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.faq-block-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    transition: background-color 0.3s ease;
    user-select: none;
}

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

.faq-question.active {
    background: lightgray;
}

.faq-question-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    flex: 1;
    padding-right: 20px;
    line-height: 1.5;
}

.faq-toggle-icon {
    font-size: 24px;
        font-weight: 300;
        color: #666;
        transition: transform 0.3s ease;
        flex-shrink: 0;
        width: 30px;
        height: 30px;
        line-height: 35px;
        display: flex;
        align-items: end;
        justify-content: center;
        border-radius: 50%;
        background: #fff;
}

.faq-question.active .faq-toggle-icon {
    transform: rotate(45deg);
    color: #007bff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #fff;
        padding: 0 20px;
}

.faq-answer.active {
    max-height: 2000px;
    padding: 0 25px 20px 25px;
}

.faq-answer-content {
    padding-top: 20px;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

.faq-error {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    text-align: center;
}

/* Адаптивность */
@media (max-width: 768px) {
    .faq-block-wrapper {
        margin: 20px auto;
        padding: 0 15px;
    }

    .faq-block-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .faq-section {
        margin-bottom: 30px;
    }

    .faq-section-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .faq-question {
        padding: 15px 20px;
    }

    .faq-question-text {
        font-size: 16px;
    }

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

    .faq-answer-content {
        font-size: 15px;
    }
}