/* ============================================================
   FAQ ACCORDION — раскрывающиеся вопрос-ответ блоки.
   Логика — в users/js/faq-accordion.js.
   Используется в: home, crm, dispatch.
   ============================================================ */

.faq-accordion {
    margin-top: 1em;
    margin-bottom: 2em;
}

.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: .5em;
    margin-bottom: 1em;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: box-shadow .2s ease, border-color .2s ease;
}

.faq-item.is-open {
    border-color: #557a95;
    box-shadow: 0 6px 20px rgba(85, 122, 149, 0.15);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2em;
    background: #fff;
    border: none;
    text-align: left;
    padding: 1em 1.5em;
    font: inherit;
    font-weight: 700;
    line-height: 1.35em;
    color: #444444;
    cursor: pointer;
}

.faq-item.is-open .faq-question {
    color: #557a95;
}

.faq-icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    background: #f4f4f4;
    color: #557a95;
    font-weight: 700;
    transition: transform .3s ease, background .3s ease, color .3s ease;
}

.faq-item.is-open .faq-icon {
    background: #557a95;
    color: #fff;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
}

.faq-answer p {
    margin: 0;
    padding: 0 1.25em 1.25em;
    line-height: 1.35em;
    color: #555555;
}
