function t_animate__init(){t_animate__checkAnimationAvailability()&&(t_animate__generateStyles(),t_animate__wrapTextWithOpacity(),t_animate__addNoHoverClassToBtns(),t_animate__preventHorizontalScroll(),window.innerWidth>=1200&&t_animate__parseNumberText(),setTimeout((function(){t_animate__startAnimation()}),1500))}function t_animate__checkMobile(elems){return Array.prototype.filter.call(elems,(function(elem){var ZBParent=elem.closest(".t396__elem"),ZBAnimateMobile=ZBParent?ZBParent.getAttribute("data-animate-mobile"):null;if(elem.classList.contains("r")){var elems=elem.querySelectorAll(".t-animate");return Array.prototype.forEach.call(elems,(function(el){el.classList.remove("t-animate")})),!1}return!!ZBAnimateMobile||(elem.classList.remove("t-animate"),!1)}))}function t_animate__preventHorizontalScroll(){var allRec=document.querySelector(".t-records"),fadeInLeftEls=document.querySelectorAll("[data-animate-style=fadeinleft]");fadeInLeftEls=Array.prototype.filter.call(fadeInLeftEls,(function(el){return!el.classList.contains("t396__elem")})),allRec&&fadeInLeftEls.length&&(allRec.style.overflowX="hidden")}function t_animate__checkAnimationAvailability(){var allRec=document.querySelector(".t-records"),animationOff=allRec?allRec.getAttribute("data-blocks-animationoff"):null,editMode=allRec?allRec.getAttribute("data-tilda-mode"):null;if(/Bot/i.test(navigator.userAgent)||"yes"===animationOff||t_animate__checkIE()||"edit"===editMode){var animationList=document.querySelectorAll(".t-animate");return Array.prototype.forEach.call(animationList,(function(animation){animation.classList.remove("t-animate")})),!1}return!0}function t_animate__generateStyles(){var isZeroOnPage;if(!!document.querySelector(".t396")){for(var breakpoints=t_animate__getBreakpointsArr(),styleStr='.t396 .t-animate[data-animate-style="fadein"],.t396 .t-animate[data-animate-style="fadeinup"],.t396 .t-animate[data-animate-style="fadeindown"],.t396 .t-animate[data-animate-style="fadeinleft"],.t396 .t-animate[data-animate-style="fadeinright"],.t396 .t-animate[data-animate-style="zoomin"],.t396 .t-animate[data-animate-style="zoomout"] {opacity: 0;-webkit-transition-property: opacity, transform;transition-property: opacity, transform;-webkit-transition-duration: 1s;transition-duration: 1s;-webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);-webkit-backface-visibility: hidden;backface-visibility: hidden;}',index=0;index/g," ").replace(/[^\d., ]+/g,"").replace(/ (\.|,)/g,"").replace(/(\d)(?=\d) /g,"$1").trim(),removeNumberSpace=number;if(-1===text.indexOf(number)&&(removeNumberSpace=number=number.split(" ")[0]),""!==number){curElem.setAttribute("data-animate-number-count",text),t_animate__changeNumberOnZero(curElem,text.replace(removeNumberSpace,"num"));var notAnimatedNumbers=curElem.querySelectorAll("span");notAnimatedNumbers=Array.prototype.filter.call(notAnimatedNumbers,(function(notAnimNumber){return!notAnimNumber.classList.contains(".t-animate__number")})),Array.prototype.forEach.call(notAnimatedNumbers,(function(notAnimatedNumber){notAnimatedNumber.setAttribute("style",style)}))}}}))}function t_animate__changeNumberOnZero(el,removeNumberSpace){el.innerHTML=removeNumberSpace.replace(/num/g,'0')}function t_animate__animateNumbers(curElem){if(!curElem)return!1;var text=curElem.getAttribute("data-animate-number-count"),style=[],notAnimatedNumbers=curElem.querySelectorAll("span");(notAnimatedNumbers=Array.prototype.filter.call(notAnimatedNumbers,(function(notAnimNumber){return!notAnimNumber.classList.contains(".t-animate__number")}))).length&&(style=notAnimatedNumbers[0].getAttribute("style")||"");var number=[],numberDotOrComma=null;if(text){numberDotOrComma=text.match(/\d+\.\d+|\d+,\d+/g);var numberWithSpace=text.match(/\d+/g),removeNumberSpace,numberWithoutLetter;text.replace(/(\d)(?= \d) /g,"$1").split(" ").forEach((function(item){isNaN(parseInt(item.replace(/[^\d., ]+/g,""),10))||number.push(item.replace(/[^\d., ]+/g,""))}))}var decimalLength=0,isFloat=!1,isComma=!1;curElem.removeAttribute("data-animate-number-count"),null!==numberDotOrComma&&(isComma=-1!==numberDotOrComma[0].indexOf(",")),number.forEach((function(item,i){var itemSplitArr;null!==numberDotOrComma&&(-1!==item.indexOf(",")&&(itemSplitArr=item.split(",")),-1!==item.indexOf(".")&&(itemSplitArr=item.split(".")),-1===item.indexOf(",")&&-1===item.indexOf(".")||(decimalLength=itemSplitArr[1].length,number[i]=+itemSplitArr.join("."),isFloat=!0))}));var animatedNumber=curElem.querySelector(".t-animate__number");if(number[0]){var maxNum=Number(number[0])||0,startNum=0,round=Math.pow(10,decimalLength);isFloat&&(maxNum*=round,startNum*=round);var timer=12,animationStep=0,interval=setInterval((function(){if(startNum+=maxNum/108,animationStep=isFloat?(Math.round(startNum)/round).toFixed(decimalLength)+"":Math.floor(startNum)+"",numberWithSpace.length>1&&(animationStep=animationStep.replace(/(\d)(?=(\d{3})+([^\d]|$))/g,"$1 ")),isComma&&(animationStep=animationStep.replace(/\./g,",")),animatedNumber&&(animatedNumber.textContent=animationStep),startNum>=maxNum){clearInterval(interval),curElem.innerHTML=text;var curElSpan=curElem.querySelectorAll("span");Array.prototype.forEach.call(curElSpan,(function(span){span.setAttribute("style",style)}))}}),12)}}function t_animate__setAnimationState(animGroupsBlocks,animChainsBlocks,animElems){var viewTop=window.pageYOffset,viewBottom=viewTop+window.innerHeight;t_animate__setGroupsBlocksState(animGroupsBlocks,viewTop,viewBottom),animChainsBlocks.forEach((function(curBlock){t_animate__assignChainDelay(curBlock,viewBottom,viewTop),t_animate__checkSectionButtonAnimation__outOfTurn(curBlock)})),t_animate__setAnimELemsState(animElems,viewTop,viewBottom),window.addEventListener("resize",t_throttle(t_animate__removeInlineAnimStyles))}function t_animate__setAnimELemsState(animElems,viewTop,viewBottom){animElems.forEach((function(curElem){var curElemOffsetTop=curElem.getBoundingClientRect().top+window.pageYOffset;if(curElemOffsetTop=curElemTrigger||curElem.closest(".t1093"))&&curElem.classList.add("t-animate_wait")}))}function t_animate__setGroupsBlocksState(animGroupsBlocks,viewTop,viewBottom){animGroupsBlocks.forEach((function(curBlock){var curBlockAnimElems=curBlock.querySelectorAll(".t-animate");curBlockAnimElems=Array.prototype.filter.call(curBlockAnimElems,(function(animEl){return!("yes"===animEl.getAttribute("data-animate-chain"))}));var curBlockOffset=curBlock.getBoundingClientRect().top+window.pageYOffset;t_animate__removeAnimFromHiddenSlides(curBlock);var sectionHeadDelay=t_animate__assignSectionDelay(curBlock);t_animate__assignGroupDelay(curBlock,sectionHeadDelay),Array.prototype.forEach.call(curBlockAnimElems,(function(el){var parentIsHidden=el.closest(".t397__off")||el.closest(".t395__off")||el.closest(".t400__off");if(el.classList.contains("t-animate_no-hover")&&parentIsHidden&&el.classList.remove("t-animate_no-hover"),curBlockOffset<=viewTop-100)return t_animate__saveSectionHeaderStartTime(curBlock),el.classList.remove("t-animate"),el.classList.remove("t-animate_no-hover"),el.style.transitionDelay="",!0;curBlockOffsetviewTop-100&&(t_animate__makeSectionButtonWait(curBlock),el.classList.contains(".t-animate__btn-wait-chain")||(t_animate__removeNoHoverClassFromBtns(el),parentIsHidden?el.classList.add("t-animate_wait"):el.classList.add("t-animate_started"))),curBlockOffset>=viewBottom&&el.classList.add("t-animate_wait")}))}))}function t_animate__setAnimationStateChains(animChainsBlocks){if(!animChainsBlocks||!animChainsBlocks.length)return!1;var viewTop=window.pageYOffset,viewBottom=viewTop+window.innerHeight;Array.prototype.forEach.call(animChainsBlocks,(function(curBlock){t_animate__assignChainDelay(curBlock,viewBottom,viewTop),t_animate__checkSectionButtonAnimation__outOfTurn(curBlock)}))}function t_animate__assignSectionDelay(curBlock){var sectionHeadDelay=0,sectionTitle=curBlock.querySelectorAll(".t-section__title.t-animate"),sectionDescr=curBlock.querySelectorAll(".t-section__descr.t-animate");return sectionTitle.length&&(sectionHeadDelay=.16),sectionDescr.length&&(Array.prototype.forEach.call(sectionDescr,(function(descr){descr.style.transitionDelay=sectionHeadDelay+"s"})),sectionHeadDelay+=.16),sectionHeadDelay}function t_animate__assignGroupDelay(curBlock,sectionHeadDelay){var animDelay=0;if(curBlock.querySelectorAll("[data-animate-order]").length)t_animate__assignOrderedElemsDelay(curBlock,sectionHeadDelay);else{var elemImg=curBlock.querySelectorAll(".t-img.t-animate"),elemSubtitle=curBlock.querySelectorAll(".t-uptitle.t-animate"),elemTitle=curBlock.querySelectorAll(".t-title.t-animate");elemTitle=Array.prototype.filter.call(elemTitle,(function(title){return!title.classList.contains("t-section__title")}));var elemDescr=curBlock.querySelectorAll(".t-descr.t-animate");elemDescr=Array.prototype.filter.call(elemDescr,(function(descr){return!descr.classList.contains("t-section__descr")}));var elemBtn=curBlock.querySelectorAll(".t-btn.t-animate, .t-btnwrapper.t-animate");elemBtn=Array.prototype.filter.call(elemBtn,(function(descr){return!descr.closest(".t-section__bottomwrapper")}));var elemTimer=curBlock.querySelectorAll(".t-timer.t-animate"),elemForm=curBlock.querySelectorAll("form.t-animate");elemImg.length&&(animDelay=.5),elemTitle.length&&Array.prototype.forEach.call(elemTitle,(function(title){title.style.transitionDelay=animDelay+"s"})),elemTitle.length&&(animDelay+=.3),elemDescr.length&&Array.prototype.forEach.call(elemDescr,(function(descr){descr.style.transitionDelay=animDelay+"s"})),elemDescr.length&&(animDelay+=.3),elemSubtitle.length&&Array.prototype.forEach.call(elemSubtitle,(function(subTitle){subTitle.style.transitionDelay=animDelay+"s"})),elemSubtitle.length&&(animDelay+=.3),(elemSubtitle.length||elemTitle.length||elemDescr.length)&&(animDelay+=.2),elemTimer.length&&Array.prototype.forEach.call(elemTimer,(function(timer){timer.style.transitionDelay=animDelay+"s"})),elemTimer.length&&(animDelay+=.5),elemBtn.length&&(elemBtn[0].style.transitionDelay=animDelay+"s"),2===elemBtn.length&&(animDelay+=.4),2===elemBtn.length&&(elemBtn[1].style.transitionDelay=animDelay+"s"),0!==elemForm.length&&Array.prototype.forEach.call(elemForm,(function(form){form.style.transitionDelay=animDelay+"s"}))}}function t_animate__assignOrderedElemsDelay(curBlock,sectionHeadDelay){var animDelay=0;sectionHeadDelay&&(animDelay=sectionHeadDelay);var elem1=curBlock.querySelectorAll('.t-animate[data-animate-order="1"]'),elem2=curBlock.querySelectorAll('.t-animate[data-animate-order="2"]'),elem3=curBlock.querySelectorAll('.t-animate[data-animate-order="3"]'),elem4=curBlock.querySelectorAll('.t-animate[data-animate-order="4"]'),elem5=curBlock.querySelectorAll('.t-animate[data-animate-order="5"]'),elem6=curBlock.querySelectorAll('.t-animate[data-animate-order="6"]'),elem7=curBlock.querySelectorAll('.t-animate[data-animate-order="7"]'),elem8=curBlock.querySelectorAll('.t-animate[data-animate-order="8"]'),elem9=curBlock.querySelectorAll('.t-animate[data-animate-order="9"]');elem1.length&&Array.prototype.forEach.call(elem1,(function(el){el.style.transitionDelay=animDelay+"s"})),elem1.length&&elem2.length&&(animDelay+=1*t_animate__getAttrByResBase(elem2[0],"delay"),Array.prototype.forEach.call(elem2,(function(el){el.style.transitionDelay=animDelay+"s"}))),(elem1.length||elem2.length)&&elem3.length&&(animDelay+=1*t_animate__getAttrByResBase(elem3[0],"delay"),Array.prototype.forEach.call(elem3,(function(el){el.style.transitionDelay=animDelay+"s"}))),(elem1.length||elem2.length||elem3.length)&&elem4.length&&(animDelay+=1*t_animate__getAttrByResBase(elem4[0],"delay"),Array.prototype.forEach.call(elem4,(function(el){el.style.transitionDelay=animDelay+"s"}))),(elem1.length||elem2.length||elem3.length||elem4.length)&&elem5.length&&(animDelay+=1*t_animate__getAttrByResBase(elem5[0],"delay"),Array.prototype.forEach.call(elem5,(function(el){el.style.transitionDelay=animDelay+"s"}))),(elem1.length||elem2.length||elem3.length||elem4.length||elem5.length)&&elem6.length&&(animDelay+=1*t_animate__getAttrByResBase(elem6[0],"delay"),Array.prototype.forEach.call(elem6,(function(el){el.style.transitionDelay=animDelay+"s"}))),(elem1.length||elem2.length||elem3.length||elem4.length||elem5.length||elem6.length)&&elem7.length&&(animDelay+=1*t_animate__getAttrByResBase(elem7[0],"delay"),Array.prototype.forEach.call(elem7,(function(el){el.style.transitionDelay=animDelay+"s"}))),(elem1.length||elem2.length||elem3.length||elem4.length||elem5.length||elem6.length||elem7.length)&&elem8.length&&(animDelay+=1*t_animate__getAttrByResBase(elem8[0],"delay"),Array.prototype.forEach.call(elem8,(function(el){el.style.transitionDelay=animDelay+"s"}))),(elem1.length||elem2.length||elem3.length||elem4.length||elem5.length||elem6.length||elem7.length||elem8.length)&&elem9.length&&(animDelay+=1*t_animate__getAttrByResBase(elem9[0],"delay"),Array.prototype.forEach.call(elem9,(function(el){el.style.transitionDelay=animDelay+"s"})))}function t_animate__assignChainDelay(curBlock,viewBottom,viewTop){var chain=curBlock.querySelectorAll(".t-animate[data-animate-chain=yes]"),itemOrder=0;if(chain.length){var chainEl=chain[0],rowOffset=chainEl.getBoundingClientRect().top+window.pageYOffset;chainEl.classList.add("t-animate__chain_first-in-row");var sectionHeadDelay=t_animate__getCurBlockSectionHeadDelay(curBlock);Array.prototype.forEach.call(chain,(function(curItem){var curItemOffset=curItem.getBoundingClientRect().top+window.pageYOffset;if(curItemOffset0){el.style.opacity="";var div=document.createElement("div");div.style.opacity=opacity;var children=el.childNodes;Array.prototype.forEach.call(children,(function(child){var clonedChild=child.cloneNode(!0);div.appendChild(clonedChild)})),el.innerHTML="",el.appendChild(div)}}}))}function t_animate__checkIE(){var sAgent=window.navigator.userAgent,Idx=sAgent.indexOf("MSIE"),ieVersion="",oldIE=!1;return Idx>0&&(8!==(ieVersion=parseInt(sAgent.substring(Idx+5,sAgent.indexOf(".",Idx))))&&9!==ieVersion||(oldIE=!0)),oldIE}window.t_animation__isOnlyScalable=Boolean(-1!==navigator.userAgent.search("Firefox")||Boolean(window.opr&&window.opr.addons||window.opera||-1!==navigator.userAgent.indexOf(" OPR/"))),"loading"!==document.readyState?t_animate__init():document.addEventListener("DOMContentLoaded",t_animate__init);