const openPops = document.querySelectorAll('.open__popup');
const closePop = document.querySelector('.popup__close');
const popUps = document.querySelectorAll('.popup');
openPops.forEach((openPop, index) => {
openPop.addEventListener('click', function (e) {
e.preventDefault();
popUps[index].classList.add('active');
});
});
closePop.addEventListener('click', () => {
popUps.forEach(popUp => {
popUp.classList.remove('active');
});
});