function adjustFontSize(n){[].forEach.call(n,function(n){var t=n.querySelector("span"),i;(t.style.transform="",window.innerWidth>1279)||(i=n.offsetWidth/t.offsetWidth,i<1&&(t.style.transform="scale("+i+")"))})}function topSliderStart(n){n.sliderTimer=setInterval(topSliderNext.bind(null,n),n.sliderTime);[].forEach.call(n.sliderBar.querySelectorAll("div"),function(t,i){t.addEventListener("click",function(){topSliderNext(n,i);clearInterval(n.sliderTimer);n.sliderTimer=setInterval(topSliderNext.bind(null,n),n.sliderTime)})})}function topSliderNext(n,t){typeof t=="undefined"?(n.sliderIndex+=1,n.sliderIndex>=n.sliderMax&&(n.sliderIndex=0)):n.sliderIndex=t;n.sliderZ++;[].forEach.call(n.sliderBar.children,function(t,i){i<n.sliderIndex?t.className="filled":i==n.sliderIndex?(t.className="",setTimeout(function(){t.className="filling"},10)):t.className=""});n.querySelector(".m-show").classList.remove("m-show");n.sliderItems[n.sliderIndex].style.zIndex=n.sliderZ;setTimeout(function(){n.sliderItems[n.sliderIndex].classList.add("m-show")},10)}function popupBodyStyles(n){var t,r,i;if(n)t=document.body.offsetWidth,r=window.pageYOffset,document.body.classList.add("popup-opened"),i=document.body.offsetWidth,i>t&&(document.body.style.paddingRight=i-t+"px"),window.scrollTo({top:r});else{if(document.querySelector(".popup-wrap.open")||document.querySelector(".mobile-nav.m-open"))return;document.body.classList.remove("popup-opened");document.body.style.paddingRight=""}}function debounce(n,t,i){var r;return function(){var u=this,f=arguments,e=function(){r=null;i||n.apply(u,f)},o=i&&!r;clearTimeout(r);r=setTimeout(e,t);o&&n.apply(u,f)}}function isMobile(){return/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/i.test(navigator.userAgent)}function loadedPage(){if(popupLoaded){getCookie("promoClosed")||popupLoaded.classList.add("open");let n=document.querySelector(".js-close");n&&(n.onclick=function(n){let t=n.target.closest(".popup-wrap");t.classList.remove("open");setModalCookie()});popupLoaded.onclick=function(n){var t=n.target.closest(".popup-register-body");this.classList.contains("open")&&!t&&setModalCookie()}}}function setModalCookie(){document.cookie="promoClosed=true"}function getCookie(n){let t=document.cookie.match(new RegExp("(?:^|; )"+n.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return t?decodeURIComponent(t[1]):undefined}function load(n,t){var i=new XMLHttpRequest;i.onreadystatechange=function(){this.readyState==4&&this.status==200&&(t.innerHTML=i.responseText)};i.open("GET",n,!0);i.send(null)}var formMaskInit=function(){$.each($(".has-phone-mask"),function(){$(this).inputmask({mask:"+375 99 999-99-99"})})},formValidInit=function(){$.validator.methods.email=function(n,t){return this.optional(t)||/[a-z]+@[a-z]+\.[a-z]+/.test(n)};var n=$(".validation-form-js");n.length&&$.each(n,function(n,t){$(t).validate({errorClass:"error",validClass:"success",errorElement:!1,errorPlacement:function(){return!0},highlight:function(n,t,i){$(n).removeClass(i).addClass(t);$(n).closest("form").find('label[for="'+$(n).attr("id")+'"]').removeClass(i).addClass(t);$(n).closest(".input").removeClass(i).addClass(t)},unhighlight:function(n,t,i){$(n).removeClass(t).addClass(i);$(n).closest("form").find('label[for="'+$(n).attr("id")+'"]').removeClass(t).addClass(i);$(n).closest(".input").removeClass(t).addClass(i)}})})},$allVideos,$fluidEl;$(document).ready(function(){formMaskInit();formValidInit()});!function(n,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():n.Layzr=t()}(this,function(){"use strict";function n(n){this._lastScroll=0;this._ticking=!1;this._optionsSelector=n.selector||"[data-layzr]";this._optionsAttr=n.attr||"data-layzr";this._optionsAttrRetina=n.retinaAttr||"data-layzr-retina";this._optionsAttrBg=n.bgAttr||"data-layzr-bg";this._optionsThreshold=n.threshold||0;this._optionsCallback=n.callback||null;this._retina=window.devicePixelRatio>1;this._srcAttr=this._retina?this._optionsAttrRetina:this._optionsAttr;this._nodes=document.querySelectorAll(this._optionsSelector);this._create()}return n.prototype._requestScroll=function(){this._lastScroll=window.scrollY||window.pageYOffset;this._requestTick()},n.prototype._requestTick=function(){this._ticking||(requestAnimationFrame(this.update.bind(this)),this._ticking=!0)},n.prototype._getOffset=function(n){var t=0;do isNaN(n.offsetTop)||(t+=n.offsetTop);while(n=n.offsetParent);return t},n.prototype._create=function(){this._requestScroll();window.addEventListener("scroll",this._requestScroll.bind(this),!1);window.addEventListener("resize",this._requestScroll.bind(this),!1)},n.prototype._destroy=function(){window.removeEventListener("scroll",this._requestScroll.bind(this),!1);window.removeEventListener("resize",this._requestScroll.bind(this),!1)},n.prototype._inViewport=function(n){var t=this._lastScroll,u=t+window.innerHeight,f=this._getOffset(n),i=f+n.offsetHeight,r=this._optionsThreshold/100*window.innerHeight;return i>=t-r&&u+r>=i},n.prototype._reveal=function(n){var t=n.getAttribute(this._srcAttr)||n.getAttribute(this._optionsAttr);n.hasAttribute(this._optionsAttrBg)?n.style.backgroundImage="url("+t+")":n.setAttribute("src",t);"function"==typeof this._optionsCallback&&this._optionsCallback.call(n);n.removeAttribute(this._optionsAttr);n.removeAttribute(this._optionsAttrRetina);n.removeAttribute(this._optionsAttrBg)},n.prototype.updateSelector=function(){this._nodes=document.querySelectorAll(this._optionsSelector)},n.prototype.update=function(){for(var t,i=this._nodes.length,n=0;i>n;n++)t=this._nodes[n],t.hasAttribute(this._optionsAttr)&&this._inViewport(t)&&this._reveal(t);this._ticking=!1},n});document.addEventListener("DOMContentLoaded",function(){function ct(n,t){n.style.height=n.offsetHeight+"px";n.style.overflow="hidden";setTimeout(function(){n.style.height="0px"},10);setTimeout(function(){n.style.height="";n.style.overflow="";t()},300)}function lt(n,t){var i=n.offsetHeight;n.style.height="0px";n.style.overflow="hidden";setTimeout(function(){n.style.height=i+"px"},10);setTimeout(function(){n.style.height="";n.style.overflow="";t()},300)}var o,s,h,c,l,a,v,y,u,i,p,w,b,k,d,t,g,nt,f,tt,it,n,r,rt,ut,ft,et,ot,st,e,ht;if(document.body.addEventListener("click",function(n){var r=document.querySelector(".lang.m-open"),t,i;r&&!n.target.closest(".lang.m-open")&&r.classList.remove("m-open");n.target.closest(".popup-wrap")&&(n.target.closest(".popup-close")||n.target.closest(".btn-close")||!n.target.closest(".popup"))&&(n.target.closest(".popup-wrap").classList.remove("open"),popupBodyStyles(!1));n.target.closest(".mobile-nav")&&(n.target.closest(".popup-close")||!n.target.closest(".mobile-nav__body"))&&(n.target.closest(".mobile-nav").classList.remove("m-open"),popupBodyStyles(!1));t=document.querySelector(".section-params .side-block.m-open");t&&(n.target.closest(".section-params .side-block .popup-close")?(t.classList.remove("m-open"),popupBodyStyles(!1)):n.target.closest(".section-params .side-block")||n.target.closest(".portal-select")||n.target.closest(".popup-wrap")||(t.classList.remove("m-open"),popupBodyStyles(!1)));i=document.querySelector(".form-select.m-custom.m-open");i&&setTimeout(function(){i.classList.remove("m-open")},10)}),document.querySelector(".page-layout")&&document.body.classList.add("w-page-layout"),document.querySelector(".page-layout.m-alt-footer")&&document.body.classList.add("m-alt-footer"),o=document.querySelector(".section-footer"),o){o.classList.add("m-hide");n();window.addEventListener("scroll",n);function n(){var n=document.body.scrollHeight-document.body.offsetHeight*2;o.classList[window.scrollY>n?"remove":"add"]("m-hide")}}s=document.querySelector(".mobile-nav");h=document.querySelector(".btn-mobile-nav");s&&h&&h.addEventListener("click",function(){s.classList.add("m-open");popupBodyStyles(!0)});c=document.querySelectorAll(".mobile-nav__body .with-sub-items > a");c.length&&[].forEach.call(c,function(n){var i=n.closest(".with-sub-items"),t=document.createElement("button");t.setAttribute("type","button");t.setAttribute("class","toggle");n.insertAdjacentElement("afterend",t);t.addEventListener("click",function(){i.className.indexOf("m-open")!==-1?i.classList.remove("m-open"):i.classList.add("m-open")})});l=document.querySelectorAll(".lang");l.length&&[].forEach.call(l,function(n){var t=n.querySelector(".lang__value");t&&t.addEventListener("click",function(){n.classList.toggle("m-open")})});a=document.querySelectorAll(".form-tarea.m-dynamic");a.length&&[].forEach.call(a,function(n){var t=document.createElement("div");t.className="tarea-shadow";t.innerHTML=n.value.replace(/</g,"_").replace(/>/g,"_");n.parentElement.appendChild(t);n.style.height=t.offsetHeight+"px";n.addEventListener("input",function(){t.style.width=n.offsetWidth+"px";t.innerHTML=n.value.replace(/</g,"_").replace(/>/g,"_");n.style.height=t.offsetHeight+"px"})});v=document.querySelector(".section-params .side-block");y=document.querySelector(".btn-change-params");v&&y&&y.addEventListener("click",function(){setTimeout(function(){v.classList.add("m-open");document.body.classList.add("popup-opened");popupBodyStyles(!0)},10)});u=document.querySelector(".section-params .main-block");i=document.querySelector(".section-params .main-block .flip-view");u&&i&&window.addEventListener("scroll",function(){if(window.innerWidth<1280){i.style.transform="";return}if(u.offsetTop<window.scrollY){var n=window.scrollY-u.offsetTop,t=u.offsetHeight-i.offsetHeight;i.style.transform="translateY("+(n>t?t:n)+"px)"}else i.style.transform=""});p=document.querySelectorAll(".side-block__slider");p.length&&[].forEach.call(p,function(n){n.addEventListener("click",function(t){if(t.target.closest(".el-head")){var r=t.target.closest("li"),i=n.querySelector("li.m-open");i&&ct(i.querySelector(".el-body"),function(){i.classList.remove("m-open")});r!==i&&(r.classList.add("m-open"),lt(r.querySelector(".el-body"),function(){}))}})});w=document.querySelectorAll(".flip-view");w.length&&[].forEach.call(w,function(n){n.addEventListener("click",function(t){t.target.closest(".toggle-btn")&&n.classList.toggle("m-flipped")})});b=document.querySelectorAll(".side-block__product");b.length&&[].forEach.call(b,function(n){n.addEventListener("click",function(t){t.target.closest(".toggle-btn")&&n.classList.toggle("m-flipped")})});k=document.querySelectorAll(".js-copy-buffer");k.length&&[].forEach.call(k,function(n){var t=n.getAttribute("data-copyfrom");n.addEventListener("click",function(){var n=document.querySelector(t);n&&n.value&&(n.select(),document.execCommand("copy"))})});d=document.querySelector(".section-top__visual");t=document.getElementById("popup-top-slides");d&&t&&(d.addEventListener("click",function(n){var u;if(!(window.innerWidth<1280)&&n.target.tagName.toLocaleLowerCase()==="img"){t.classList.add("open");popupBodyStyles(!0);var e=n.target.closest("div").className,i=t.querySelector(".popup-slides-content"),r=t.querySelector("."+e),f=i.querySelector(".active");f&&f.classList.remove("active");r&&i&&(r.classList.add("active"),u=0,[].forEach.call(i.children,function(n,t){n===r&&(u=t)}),i.style.transform="translateX(-"+u+"00%)")}}),t.addEventListener("click",function(n){var r;if(!n.target.closest(".active")&&n.target.tagName.toLocaleLowerCase()==="img"){var i=t.querySelector(".popup-slides-content"),u=i.querySelector(".active"),f=n.target.closest("div");u&&i&&(u.classList.remove("active"),f.classList.add("active"),r=0,[].forEach.call(i.children,function(n,t){n===f&&(r=t)}),i.style.transform="translateX(-"+r+"00%)")}!n.target.closest(".popup-slides")||n.target.classList.contains("popup-slides")||n.target.closest(".popup-close")||n.stopPropagation()}));g=document.querySelectorAll(".popup-trigger");g.length&&[].forEach.call(g,function(n){n.addEventListener("click",function(t){t.preventDefault();var u=n.getAttribute("data-popup"),i=document.getElementById(u),r=document.querySelector(".popup-wrap.open");i&&(i.classList.add("open"),r?r.classList.remove("open"):popupBodyStyles(!0))})});nt=document.querySelectorAll(".input-pass");nt.length&&[].forEach.call(nt,function(n){var t=n.querySelector(".pass-eye");t&&t.addEventListener("click",function(){var t=n.querySelector(".form-text");t&&(t.type=t.type==="password"?"text":"password")})});f=document.querySelector(".section-map");f&&(f.addEventListener("click",function(n){var t=n.target.closest(".section-map.m-blocked");t&&t.classList.remove("m-blocked")}),tt=f.querySelector(".btn-show"),it=f.querySelector("iframe"),tt&&it&&tt.addEventListener("click",function(n){n.preventDefault();it.classList.toggle("m-show")}));n=document.querySelector(".section-top__wide .slides");n&&(n.sliderTime=1e4,n.sliderIndex=0,n.sliderZ=1,n.sliderItems=n.querySelectorAll(".slide"),n.sliderMax=n.sliderItems.length,n.sliderMax&&(r=document.createElement("div"),r.className="slides-progress",[].forEach.call(n.sliderItems,function(){var n=document.createElement("div");n.className="i";r.appendChild(n)}),n.insertAdjacentElement("afterend",r),n.sliderBar=r,n.sliderItems[0].style.zIndex=n.sliderZ,n.sliderItems[0].classList.add("m-show"),setTimeout(function(){r.children[0].className="filling"},10),topSliderStart(n)));rt=document.querySelectorAll(".form-select.m-custom");rt.length&&[].forEach.call(rt,function(n){var t=n.querySelector(".btn-trigger");t&&(t.addEventListener("click",function(){setTimeout(function(){n.classList.add("m-open")},10)}),t.addEventListener("keydown",function(t){var i=t.keyCode||t.which;i===27&&n.classList.remove("m-open")}))});ut=document.querySelectorAll(".profile-tab__head a");ut.length&&[].forEach.call(ut,function(n){var t=document.querySelector(n.getAttribute("href"));n.addEventListener("click",function(n){var i,r,u;t&&(n.preventDefault(),i=document.querySelector(".profile-tab.m-active"),i&&i.classList.remove("m-active"),r=document.querySelector(".profile-nav .active"),r&&r.classList.remove("active"),i!==t)&&(t.classList.add("m-active"),u=document.querySelector('.profile-nav a[href="'+n.target.getAttribute("href")+'"]'),u&&u.closest("li").classList.add("active"),t.getBoundingClientRect().top<0&&t.scrollIntoView({behavior:"smooth",block:"start"}))})});ft=document.querySelectorAll(".profile-nav a");ft.length&&[].forEach.call(ft,function(n){var t=document.querySelector(n.getAttribute("href"));n.addEventListener("click",function(i){if(t){i.preventDefault();var r=document.querySelector(".profile-tab.m-active"),u=document.querySelector(".profile-nav .active");(r&&r.classList.remove("m-active"),u&&u.classList.remove("active"),r!==t)&&(t.classList.add("m-active"),n.closest("li").classList.add("active"))}})});et=document.querySelectorAll(".section-gallery");et.length&&[].forEach.call(et,function(n){var t=n.querySelectorAll(".cols > .col"),r,i,u,f;t.length===3&&(r=t.length,i=[],[].forEach.call(t[2].children,function(n){i.push(n.cloneNode(!0))}),u=i.splice(0,Math.ceil(r/2)),f=i,u.forEach(function(n){n.classList.add("el-copy");t[0].appendChild(n)}),f.forEach(function(n){n.classList.add("el-copy");t[1].appendChild(n)}))});ot=document.querySelectorAll(".section-gallery .el-img");ot.length&&([].forEach.call(ot,function(n){var t=n.getBoundingClientRect().top;t>=window.outerHeight&&(n.classList.add("u-fade"),n.classList.add("u-fade-out"))}),window.addEventListener("scroll",function(){var n=document.querySelectorAll(".section-gallery .el-img.u-fade-out");n.length&&[].forEach.call(n,function(n){var t=n.getBoundingClientRect().top;t<window.outerHeight&&(n.classList.remove("u-fade-out"),n.classList.add("u-fade-out2"),setTimeout(function(){n.classList.remove("u-fade-out2")},300))})}));st=document.querySelectorAll(".form-img-select .btn");st.length&&[].forEach.call(st,function(n){var r=n.querySelector("img"),i,t;r&&(i=r.getAttribute("title"),i)&&(t=document.createElement("span"),t.className="btn-tooltip",t.innerText=i,n.appendChild(t))});e=document.querySelectorAll(".section-product .text strong");e.length&&([].forEach.call(e,function(n){n.innerHTML="<span>"+n.innerHTML+"<\/span>"}),ht=debounce(adjustFontSize.bind(null,e),300),window.addEventListener("load",adjustFontSize.bind(null,e)),window.addEventListener("resize",ht));new Layzr({selector:"[data-layzr]",attr:"data-layzr",threshold:100,callback:null})});Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);Element.prototype.closest||(Element.prototype.closest=function(n){var t=this;do{if(t.matches(n))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===1);return null});let popupLoaded=document.getElementById("popup-loaded");window.onload=()=>{loadedPage()};document.addEventListener("DOMContentLoaded",function(){[].forEach.call(document.querySelectorAll("[data-url]"),function(n){load(n.dataset.url,n)})});$allVideos=$("iframe[src*='//www.youtube.com']");$fluidEl=$("p");$allVideos.each(function(){$fluidEl=$(this).parent();$(this).data("aspectRatio",this.height/this.width).removeAttr("height").removeAttr("width");$fluidEl.addClass("videoWrapper")});$(window).resize(function(){$allVideos.each(function(){$fluidEl=$(this).parent();var n=$fluidEl.width(),t=$(this);t.width(n).height(n*t.data("aspectRatio"))})}).resize()