//закрытие по клику мимо окна
//хак для ИЕ, чтобы работал closest и matches
(function(evt) {
evt.matches = evt.matches || evt.mozMatchesSelector || evt.msMatchesSelector || evt.oMatchesSelector || evt.webkitMatchesSelector;
evt.closest = evt.closest || function closest(selector) {
if (!this) return null;
if (this.matches(selector)) return this;
if (!this.parentElement) {return null}
else return this.parentElement.closest(selector)
};
}(Element.prototype));
//end хак для ИЕ
document.addEventListener("mouseup", function (evt) {
if (evt.target.closest('.modal') === null) {
closepopup();
}
});function closepopup() {
тут то как вы закрываете меню/модалку
добавляете/убираете классы и т.д.
} font-weight: 400px px лишние <p footer-contacts> class забылиtype="submite" пишется submit
Где-то можно обойтись и без инпута, но правильнее всё таки с ним.