const mobileMenu=document.getElementById("mobile-menu"),mainNav=document.getElementById("main-nav"),closeMenu=document.getElementById("close-menu"),syBody=document.getElementById("sy-body"),sySearch=document.getElementById("sy-search"),searchBlock=document.getElementById("search-block"),searchClose=document.getElementById("search-close");mobileMenu&&mobileMenu.addEventListener("click",function(){mainNav.classList.toggle("active"),syBody.classList.add("overflow-hidden")}),closeMenu&&closeMenu.addEventListener("click",function(){mainNav.classList.remove("active"),syBody.classList.remove("overflow-hidden")}),searchClose&&searchClose.addEventListener("click",function(){searchBlock.classList.toggle("active"),syBody.classList.remove("overflow-hidden")}),sySearch&&sySearch.addEventListener("click",function(){searchBlock.classList.toggle("active"),syBody.classList.add("overflow-hidden")});
