(function($,window){"use strict";$(".tabs-header").on("click","li:not(.active)",function(){var index_el=$(this).index();$(this).addClass("active").siblings().removeClass("active");$(this).closest(".tabs").find(".tabs-item").removeClass("active").eq(index_el).addClass("active")});if($(".contacts-info-wrap.image_form").length){$(".contacts-info-wrap.image_form .images-wrap").lightGallery({selector:".img-wrap",mode:"lg-slide",closable:true,iframeMaxWidth:"80%",download:false,thumbnail:true})}function fixSubscribe(){if($(".contacts-info-wrap.subscribe").length){$(".contacts-info-wrap.subscribe").each(function(){var parent=$(this);var target=parent.find(".subscribe-form");if(!$(target).hasClass("fixed")){var copy=parent.find(".subscribe-copyright");var copyHeight=$(copy).outerHeight();var targetHeight=$(target).outerHeight();var parentHeight=parent.outerHeight();var parentBottom=parent.offset().top+parentHeight;var windowBottom=$(window).scrollTop()+$(window).outerHeight();var diff=windowBottom-parentBottom+(parentHeight-targetHeight);diff=diff>0?diff:0;if($(window).width()>767){diff=diff