document.querySelectorAll(".article-faq__faq-item-question").forEach(button=> {
button.addEventListener("click", ()=> {
const answer=button.nextElementSibling;
document.querySelectorAll(".article-faq__faq-item-answer").forEach(item=> {
if(item!==answer){
item.style.maxHeight=null;
item.previousElementSibling.classList.remove("active");
}});
button.classList.toggle("active");
if(answer.style.maxHeight){
answer.style.maxHeight=null;
}else{
answer.style.maxHeight=answer.scrollHeight + "px";
}});
});