/* Обертка */
.faq-wrapper {
    max-width: 1360px;
    margin: 0 auto 40px auto;
    padding: 0 0px;
    font-family: 'Inter', sans-serif;
}

/* Заголовок блока */
.faq-main-title {
    color: #292A2A !important;
    font-size: 40px !important;
    font-weight: 600 !important;
    margin-bottom: 24px !important;
}

.faq-list {
    display: flex;
    flex-direction: column;
   
}

/* Карточка вопроса */
.faq-item {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 12px; /* Перенесли отступ сюда */
}
.faq-item:last-child {
    margin-bottom: 0; /* Убираем отступ у последнего элемента */
}

/* Заголовок вопроса (Кликабельная область) */
.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Выравнивает по центру */
    padding: 14px 20px; /* Сделали отступы сверху и снизу равными (было 12px) */
    background: #F3F4F5;
    cursor: pointer;
    gap: 20px;
    transition: background 0.2s;
    border-radius: 12px;
}

/* Текст вопроса */
.faq-title {
    flex: 1;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    color: #292A2A;
    transition: color 0.2s;
    margin: 0; /* ДОБАВЛЕНО: Сбрасываем случайные отступы текста, которые могут давать сдвиг вниз */
}

/* Иконка (Кнопка) */
.faq-icon {
    width: 48px;
    height: 48px;
    border-radius: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid transparent;
    transition: all 0.2s;
}

/* Иконки внутри кнопки */
.icon-plus, .icon-minus {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* По умолчанию (Закрытый): Показываем плюс, скрываем минус */
.icon-minus { display: none; }
.icon-plus { display: flex; }

/* --- СОСТОЯНИЕ ACTIVE (Открытый) --- */
.faq-item.active .faq-title {
    color: #00B1BA;
}

.faq-item.active .faq-icon {
    background: transparent;
    border: 1px solid rgba(0, 177, 186, 0.20);
}

/* Меняем иконки */
.faq-item.active .icon-plus { display: none; }
.faq-item.active .icon-minus { display: flex; }

/* Тело ответа (Скрыто по умолчанию) */
.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #F3F4F5;
    border-top: none;
    border-radius: 0 0 12px 12px; 
    /* УБРАЛИ margin-top: -12px; - больше не нужно, теперь блоки прилегают друг к другу правильно */
}

/* Контент внутри ответа */
.faq-content {
    padding: 0 20px 20px 20px;
    color: #292A2A;
    font-size: 16px;
    line-height: 1.4;
}

/* Анимация открытия */
.faq-item.active .faq-body {
    max-height: 500px;
    transition: max-height 0.3s ease-in;
}

/* --- HOVER ЛОГИКА --- */
.faq-item:not(.active) .faq-header:hover .faq-title {
    color: #00B1BA;
}


/* =========================================
   АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ
   ========================================= */

/* Планшеты */
@media (max-width: 1024px) {
    .faq-main-title {
        font-size: 32px !important;
    }
    .faq-title {
        font-size: 20px;
    }
}

/* Телефоны (горизонтальные и вертикальные) */
@media (max-width: 768px) {
    .faq-wrapper {
        margin-bottom: 30px;
    }
    .faq-main-title {
        font-size: 26px !important;
        margin-bottom: 20px !important;
    }
    .faq-title {
        font-size: 18px;
    }
    .faq-header {
        padding: 12px 16px;
        gap: 12px;
    }
    .faq-icon {
        width: 42px;
        height: 42px;
    }
    .faq-content {
        padding: 0 16px 16px 16px;
        font-size: 15px;
    }
}

/* Маленькие телефоны */
@media (max-width: 480px) {
    .faq-main-title {
        font-size: 22px !important;
    }
    .faq-title {
        font-size: 16px;
    }
    .faq-icon {
        width: 36px;
        height: 36px;
    }
    /* Немного уменьшаем саму SVG иконку */
    .faq-icon svg {
        transform: scale(0.85);
    }
    .faq-header {
        padding: 10px 12px;
    }
    .faq-content {
        padding: 0 12px 14px 12px;
        font-size: 14px;
        line-height: 1.3;
    }
    .faq-list {
        gap: 8px;
    }
}