(()=>{var e,t={547:()=>{},566:()=>{},988:()=>{document.addEventListener("DOMContentLoaded",(function(){function e(){var e=document.querySelectorAll("[data-scroll-section]"),t=window.scrollY+100;e.forEach((function(s){var n=s.offsetTop,o=n+s.offsetHeight;t>=n&&t1&&void 0!==arguments[1]?arguments[1]:{},s=t.offset,n=void 0===s?80:s,o=t.behavior,r=void 0===o?"smooth":o;if(t.block,e){var i=e.offsetTop,a=Math.max(0,i-n);window.scrollTo({top:a,behavior:r})}}(t,{offset:80,behavior:"smooth"}),document.querySelectorAll("[data-scroll-section]").forEach((function(e){e.classList.remove("scroll-active")})),t.classList.add("scroll-active")}else console.warn('Секция с data-scroll-section="'.concat(e,'" не найдена'))}}))})),window.addEventListener("scroll",(function(){clearTimeout(t),t=setTimeout(e,100)}))})),document.addEventListener("DOMContentLoaded",(function(){document.addEventListener("focus",(function(e){if(e.target.matches("#fluentform_4 .ff-el-form-control")){var t=e.target.closest(".ff-el-group");t&&t.classList.add("focused")}}),!0),document.addEventListener("blur",(function(e){if(e.target.matches("#fluentform_4 .ff-el-form-control")){var t=e.target.closest(".ff-el-group");t&&t.classList.remove("focused")}}),!0),document.addEventListener("input",(function(e){if(e.target.matches("#fluentform_4 .ff-el-form-control")){var t=e.target.closest(".ff-el-group");t&&(""!==e.target.value.trim()?t.classList.add("has-value"):t.classList.remove("has-value"))}e.target.matches("#fluentform_4 .ff-el-phone")&&function(e){var t=e.target.value.replace(/\D/g,"");t.startsWith("8")&&(t="7"+t.slice(1));!t.startsWith("7")&&t.length>0&&(t="7"+t);var s="";t.length>0&&(s="+7",t.length>1&&(s+=" ("+t.slice(1,4),t.length>4&&(s+=") "+t.slice(4,7),t.length>7&&(s+="-"+t.slice(7,9),t.length>9&&(s+="-"+t.slice(9,11))))));e.target.value=s}(e)})),document.addEventListener("keydown",(function(e){e.target.matches("#fluentform_4 .ff-el-phone")&&function(e){if("Backspace"===e.key||"Delete"===e.key){var t=e.target.selectionStart,s=e.target.value;t>0&&[" ","(",")","-"].includes(s[t-1])&&setTimeout((function(){e.target.setSelectionRange(t-1,t-1)}),0)}}(e)}))})),document.addEventListener("DOMContentLoaded",(function(){var e={burger:null,overlay:null,container:null,isOpen:!1,init:function(){this.burger=document.getElementById("burger"),this.overlay=document.getElementById("menu-overlay"),this.container=document.getElementById("menu-container"),this.burger&&this.overlay&&this.container&&this.bindEvents()},bindEvents:function(){var e=this;this.burger.addEventListener("click",(function(){e.isOpen?e.close():e.open()})),this.overlay.addEventListener("click",(function(t){t.target===e.overlay&&e.close()})),document.addEventListener("keydown",(function(t){"Escape"===t.key&&e.isOpen&&e.close()}))},open:function(){this.isOpen||(this.isOpen=!0,this.animateBurger(!0),this.showMenu())},close:function(){this.isOpen&&(this.isOpen=!1,this.animateBurger(!1),this.hideMenu())},animateBurger:function(e){var t=this.burger.querySelector(".line-1"),s=this.burger.querySelector(".line-2"),n=this.burger.querySelector(".line-3");e?(t.classList.remove("-translate-y-[6px]"),t.classList.add("rotate-[45deg]"),s.classList.add("opacity-[0]"),n.classList.remove("translate-y-[6px]"),n.classList.add("-rotate-[45deg]")):(t.classList.add("-translate-y-[6px]"),t.classList.remove("rotate-[45deg]"),s.classList.remove("opacity-[0]"),n.classList.add("translate-y-[6px]"),n.classList.remove("-rotate-[45deg]"))},showMenu:function(){document.body.style.overflow="hidden",this.overlay.classList.remove("opacity-[0]","invisible"),this.overlay.classList.add("opacity-[1]","visible"),this.container.classList.remove("translate-x-full"),this.container.classList.add("translate-x-[0]")},hideMenu:function(){document.body.style.overflow="",this.container.classList.remove("translate-x-[0]"),this.container.classList.add("translate-x-full"),this.overlay.classList.remove("opacity-[1]","visible"),this.overlay.classList.add("opacity-[0]","invisible")}};e.init(),window.MenuSystem=e}))}},s={};function n(e){var o=s[e];if(void 0!==o)return o.exports;var r=s[e]={exports:{}};return t[e](r,r.exports,n),r.exports}n.m=t,e=[],n.O=(t,s,o,r)=>{if(!s){var i=1/0;for(d=0;d=r)&&Object.keys(n.O).every((e=>n.O[e](s[l])))?s.splice(l--,1):(a=!1,r0&&e[d-1][2]>r;d--)e[d]=e[d-1];e[d]=[s,o,r]},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={847:0,992:0,252:0};n.O.j=t=>0===e[t];var t=(t,s)=>{var o,r,[i,a,l]=s,c=0;if(i.some((t=>0!==e[t]))){for(o in a)n.o(a,o)&&(n.m[o]=a[o]);if(l)var d=l(n)}for(t&&t(s);cn(988))),n.O(void 0,[992,252],(()=>n(547)));var o=n.O(void 0,[992,252],(()=>n(566)));o=n.O(o)})();