function t_throttle(i,n,r){var a,s;return n||(n=250),function(){var e=r||this,t=+new Date,o=arguments;a&&t<a+n?(clearTimeout(s),s=setTimeout(function(){a=t,i.apply(e,o)},n)):(a=t,i.apply(e,o))}}window.isSearchBot=!1,function(u){if($isMobile=!1,/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&($isMobile=!0),/Bot/i.test(navigator.userAgent)&&(window.isSearchBot=!0),window.isMobile=$isMobile,1==$isMobile){var e=function(){for(var e=document.body.querySelectorAll(".t-cover__carrier"),t=u(window).height(),o=0,i=0,n=e.length;i<n;i++)-1<(a=(r=e[i]).style).height.indexOf("vh")&&(o=parseInt(a.height)/100,s=Math.round(t*o)+"px",(c=u(r).parent(".t-cover"))&&(c=c[0])&&(d=c.querySelector(".t-cover__filter"),l=c.querySelector(".t-cover__wrapper"),d&&(d.style.height=s),l&&(l.style.height=s),a.height=c.style.height=s));var r,a,s,c,d,l,h=document.body.querySelectorAll("[data-height-correct-vh]");for(t=u(window).height(),o=0,i=0,n=h.length;i<n;i++)-1<(a=(r=h[i]).style).height.indexOf("vh")&&(o=parseInt(a.height)/100,s=t+"px",c=u(r).parent(".t-cover"),a.height=s)};u(document).ready(function(){setTimeout(function(){e()},400)}),u(window).load(function(){setTimeout(function(){e()},400)})}1==$isMobile&&(u(window).width()<480?(u(document).ready(function(){var o;u("div[data-customstyle=yes]").each(function(e){26<u(this).css("font-size").replace("px","")&&(u(this).css("font-size",""),u(this).css("line-height",""))}),u("[field]").find("span").each(function(e){26<u(this).css("font-size").replace("px","")&&u(this).css("font-size","")}),u(".t-title, .t-name, .t-heading, .t-descr, .t-text, .t-subtitle").not(".tn-elem, .tn-atom").each(function(e){if(void 0!==(o=u(this).attr("style"))&&""!=o&&-1<o.indexOf("font-size")&&26<u(this).css("font-size").replace("px","")){var t=o.replace("font-size","fontsize").replace("line-height","lineheight");u(this).attr("style",t)}})}),u(window).load(function(){var o=u(window).width();u(".r").each(function(){var t=u(this);u(this).find("div").not("[data-auto-correct-mobile-width=false], .tn-elem, .tn-atom, .tn-atom__videoiframe").each(function(){var e=parseInt(u(this).outerWidth(!0));o<e&&(console.log("Block not optimized for mobile width. Block width:"+e+" Block id:"+t.attr("id")),console.log(u(this)),t.css("overflow","auto"),o<e-3&&t.css("word-break","break-all"))})})})):u(window).width()<900&&u(document).ready(function(){var o;u("div[data-customstyle=yes]").each(function(e){30<u(this).css("font-size").replace("px","")&&(u(this).css("font-size",""),u(this).css("line-height",""))}),u("[field]").find("span").each(function(e){30<u(this).css("font-size").replace("px","")&&u(this).css("font-size","")}),u(".t-title, .t-name, .t-heading, .t-descr, .t-text, .t-subtitle").not(".tn-elem, .tn-atom").each(function(e){if(void 0!==(o=u(this).attr("style"))&&""!=o&&-1<o.indexOf("font-size")&&30<u(this).css("font-size").replace("px","")){var t=o.replace("font-size","fontsize").replace("line-height","lineheight");u(this).attr("style",t)}})}))}(jQuery),function(r){function e(){this.setScrollListener()}e.prototype.videoTags=[],e.prototype.defaultConfig={isNeedStop:!1},e.prototype.videoConfigs=[],e.prototype.registerNewVideo=function(e,t){if(!(e instanceof HTMLVideoElement))throw new Error("Wrong tag passed into registerNewVideo");return-1==this.videoTags.indexOf(e)&&(this.videoTags.push(e),this.videoConfigs.push(void 0===t?this.defaultConfig:t),this.scrollCb(),!0)},e.prototype.unergisterVideo=function(e){if(!(e instanceof HTMLVideoElement))throw new Error("Wrong tag passed into unregisterNewVideo");var t;return-1<(t=this.videoTags.indexOf(e))&&("function"==typeof e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e),this.pauseVideo(e,this.videoConfigs[t]),this.videoTags.splice(t,1),this.videoConfigs.splice(t,1),!0)},e.prototype.pauseVideo=function(e,t){if(!t)throw new Error("Wrong config type!");e.pause(),t.isNeedStop&&e.load()},e.prototype.setScrollListener=function(){r(window).bind("scroll",t_throttle(jQuery.proxy(this.scrollCb,this),200))},e.prototype.scrollCb=function(){for(var e=r(window).height(),t=null,o=0,i=this.videoTags.length;o<i;o++){if(t=this.videoTags[o],_vrect=this.getVideoBoundingRect(t,!1),Math.abs(_vrect.top)<e&&Math.abs(_vrect.top)>e/2){var n=1-(Math.abs(_vrect.top)-e/2)/(e/2)-.2;0<n&&n<=1&&0!=t.volume&&(t.volume=n)}Math.abs(_vrect.top)>e||0==_vrect.height?this.pauseVideo(t,this.videoConfigs[o]):t.paused&&t.play()}},e.prototype.getVideoObject=function(e){for(var t=0,o=this.videoTags.length;o<t;t++){var i=this.videoTags[t];if(i.v===e)return i}return null},e.prototype.getVideoBoundingRect=function(e,t){void 0===t&&(t=!0);var o=null;return t&&(o=r(e).parents(".r")[0])||(o=e),o.getBoundingClientRect()},window.videoLoadProcessor=new e}(jQuery),function(T){function e(){this.setScrollCb(),this.itemHeight=screen.availHeight;this.itemTransitionTop=.25*this.itemHeight,this.activeItemIndex=null,this.windowHeight=document.documentElement.clientHeight||window.innerHeight||screen.availHeight,this.topOffsetShift=-150,T(window).resize(jQuery.proxy(this.recalculateAllSequencesOffsets,this)),this._resizeInterval=setInterval(jQuery.proxy(this.scrollCb,this),500)}function k(e){var t,o=T("#rec"+e),i=o.find(".t-cover").height();300<(t=o.find("div[data-hook-content]").outerHeight())&&i<t+40&&(1e3<(t=t+120)&&(t+=100),console.log("auto correct cover height: "+t),o.find(".t-cover").height(t),o.find(".t-cover__filter").height(t),o.find(".t-cover__carrier").height(t),o.find(".t-cover__wrapper").height(t),0==$isMobile&&setTimeout(function(){var e=o.find(".t-cover__carrier");0<e.find("iframe").length&&(console.log("correct video from cover_fixcontentheight"),s(e,t+"px")),0<e.find("video").length&&console.log("correct html5video from cover_fixcontentheight")},2e3))}function l(e,t,o,i){var n,r,a,s,c;n=e.offset().top,r=e.height(),a=t.scrollTop(),s=t.height(),c=o.getPlayerState(),n<a+s&&a<=n+r?(1!==c&&o.playVideo(),"yes"==i&&(n+r-100<a?o.setVolume(30):n+r-200<a?o.setVolume(70):a+s<n+200?o.setVolume(30):o.setVolume(100))):a+s<n&&n-500<a+s?2!==c&&(o.playVideo(),o.pauseVideo()):2!==c&&o.pauseVideo()}e.prototype.defaultConfig={orientation:"vertical",speedFactor:1,automated:!1},e.prototype.sequenceObjects=[],e.prototype.recalculateAllSequencesOffsets=function(){this._resizeTimeout&&clearTimeout(this._resizeTimeout),this._resizeInterval&&clearInterval(this._resizeInterval),this._resizeTimeout=setTimeout(jQuery.proxy(function(){this.scrollCb(),this._resizeInterval=setInterval(jQuery.proxy(this.scrollCb,this),500)},this),10)},e.prototype.registerNewBlock=function(t){if(!(t instanceof HTMLElement))throw new Error("Wrong node type in registerNewBlock");for(var e=0,o=this.sequenceObjects.length;e<o;e++)if(this.sequenceObjects[e].sequenceBlock===t)return!1;var i=t.querySelector('[data-hook="sequence-holder"]'),a=0,n=this.getAbsoluteTopOffset(i),r=function(){var e=Array.prototype.slice.call(t.querySelectorAll('[data-hook="sequence-item"]'),0),r=[];return e.forEach(jQuery.proxy(function(e,t,o){var i=this.getItemHeight(e),n=e.querySelector('[data-hook="item-background"]');e.style.height=i+"px",n.style.height=this.itemHeight+"px",t<o.length-1&&(a+=i),r.push({node:e,height:i,topOffset:this.getAbsoluteTopOffset(e.querySelector(".txt-holder"))-(t==o.length-1?0:this.topOffsetShift),backgroundHolder:n})},this)),r}.call(this),s=(this.itemHeight,{sequenceBlock:t,sequenceHolder:i,sequenceHolderTopOffset:n,sequenceHeight:a,items:r,started:!1,prevBackgroundColor:""});return this.sequenceObjects.push(s),this.scrollCb(),!0},e.prototype.getItemHeight=function(e){var t=e.querySelector("[data-hook='item-text']");e.querySelector("[data-hook='item-background']");st=e.style;var o=parseFloat(getComputedStyle(t).top);return t.style.top=o+"px",Math.max(t.clientHeight+o,this.itemHeight)},e.prototype.fixTextBlocksPosition=function(e){txtBlocks=Array.prototype.slice.call(e.querySelectorAll('[data-hook="item-text"]'),0),txtBlocks.forEach(function(e,t,o){e.parentNode.querySelector("[data-hook='item-background']").style.top="-"+e.clientHeight+"px"})},e.prototype.unergisterBlock=function(e){for(var t=0,o=this.sequenceObjects.length,i=null;t<o;t++)if(this.sequenceObjects[t].sequenceBlock===e){i=t;break}return null!==i&&(this.sequenceObjects.splice(i,1),!0)},e.prototype.getAbsoluteTopOffset=function(e){var t=e.offsetTop;for(e=e.offsetParent;null!=e;)t+=e.offsetTop,e=e.offsetParent;return t},e.prototype.processSequence=function(e){0==e.started&&(e.prevBackgroundColor=document.body.style.backgroundColor,document.body.style.backgroundColor="rgb(0, 0, 0)",e.started=!0);e.sequenceBlock,e.sequenceHolder;for(var t,o,i,n,r=e.items,a=null,s=0,c=r.length;s<c;s++)if((t=r[s].node).querySelector(".txt-holder"),(n=t.getBoundingClientRect()).top<this.itemTransitionTop&&n.bottom<n.height+this.itemTransitionTop&&n.bottom>this.itemTransitionTop){a=s;break}if(null!=a){1<(i=n.top/this.itemTransitionTop)?i=1:i<0&&(i=0);for(s=0,c=r.length;s<c;s++)t=r[s].node,"fixed"!=(o=r[s].backgroundHolder.style).position&&(o.position="fixed"),t.querySelector(".txt-holder").style.opacity=s==a?(o.opacity=1-i,1-i):s==a-1?o.opacity=i:o.opacity=0}},e.prototype.stopSequence=function(e){0!=e.started&&(e.items.forEach(function(e,t,o){e.backgroundHolder.style.position="relative",e.backgroundHolder.style.display="block",e.backgroundHolder.style.opacity=1}),document.body.style.backgroundColor=e.prevBackgroundColor,e.started=!1)},e.prototype.scrollCb=function(){T(window).scrollTop();for(var e,t=0,o=this.sequenceObjects.length;t<o;t++){var i=(e=this.sequenceObjects[t]).sequenceHolder.getBoundingClientRect();i.top<0&&0<i.bottom&&i.bottom>i.height-e.sequenceHeight-100?this.processSequence(e):this.stopSequence(e)}},e.prototype.setScrollCb=function(){this._scrollCb=jQuery.proxy(this.scrollCb,this),T(window).bind("scroll",t_throttle(this._scrollCb,200))},window.sequenceController=new e,window.processVideo=function(e){mp4Src=T(e).attr("data-content-video-url-mp4"),webmSrc=T(e).attr("data-content-video-url-webm"),T(e).css("background-color","transparent"),T(e).css("background-image","");var t={mp4:mp4Src,webm:webmSrc,preload:"none",autoplay:!1,loop:!0,scale:!0,zIndex:0,width:"100%"};vid=T(e).videoBG(t),videoLoadProcessor.registerNewVideo(vid,{isNeedStop:!1})},window.cover_init=function(x){T(document).ready(function(){var i=document.body.querySelector("#coverCarry"+x),n=T(i),e=n.attr("data-content-cover-bg"),r=n.attr("data-content-cover-height"),a=n.attr("data-content-cover-parallax"),s=n.attr("data-content-video-url-mp4"),c=n.attr("data-content-video-url-webm"),t=n.attr("data-content-video-url-youtube"),o=n.attr("data-content-video-noloop"),d=n.attr("data-content-video-nomute"),l=n.attr("data-content-bg-base64"),h=n.attr("data-content-video-nocover");e||(e=""),r||(r=""),a||(a=""),s||(s=""),c||(c=""),t||(t=""),o||(o=""),d||(d=""),t||(t=""),l||(l=""),h&&"yes"==h&&(t=c=s=""),!$isMobile||""==c&&""==s&&""==t||n.css("background-image","url('"+e+"')"),setTimeout(function(){k(x)},500);var u=T("#rec"+x).find("img[data-hook-clogo]");if(u.length&&u.load(function(){setTimeout(function(){k(x)},500)}),$isMobile&&T(window).on("orientationchange",function(){k(x)}),(""!==s||""!==c||""!==t)&&0==$isMobile)if(""!=t||""==s&&""==c){if(""!=t){n.css("background-color","#000000"),n.css("background-image",""),n.attr("data-content-cover-bg","");g=0;(w=T(window)).scroll(function(){v&&window.clearTimeout(v),v=window.setTimeout(function(){var e,t,o;0<(g=n.find("iframe").length)||(e=n.offset().top,t=n.height(),e-500<(o=w.scrollTop())+w.height()&&o<=e+t+500&&processYoutubeVideo(i,r))},100)}),w.scroll()}}else{if(n.css("background-color","#000000"),n.css("background-image","url('https://tilda.ws/img/spinner-white.gif')"),n.css("background-size","auto"),n.attr("data-content-cover-bg",""),""!=o)var p=!1;else p=!0;if(""!=d)var f=1;else f="";var v,m="";"fixed"==a&&(-1<r.indexOf("vh")&&100<parseInt(r)&&(n.css("height","100vh"),m="yes"),-1<r.indexOf("px")&&parseInt(r)>T(window).height()&&(n.css("height","100vh"),m="yes"));var g="",w=T(window),y=n.parent();w.scroll(function(){var e,t,o;(v&&window.clearTimeout(v),v=window.setTimeout(function(){var e,t,o;if(!(0<g)&&(e=n.offset().top,t=n.height(),e-500<(o=w.scrollTop())+w.height()&&o<=e+t+500)){var i=n.videoBG({mp4:s,webm:c,poster:"",preload:"none",autoplay:!1,loop:p,volume:f,scale:!0,zIndex:0,width:"100%"});videoLoadProcessor.registerNewVideo(i),g=1}},100),"fixed"==a&&"yes"==m)&&(e=y.offset().top,t=y.height(),o=w.scrollTop(),e+t-w.height()<=o?(n.css("position","absolute"),n.css("bottom","0px"),n.css("top","auto")):e<=o?(n.css("position","fixed"),n.css("top","0px")):o<e&&(n.css("position","relative"),n.css("top","auto")))}),w.scroll()}if("dynamic"==a&&0==$isMobile&&n.parallax("50%",.2,!0),"yes"==l&&""!=e&&""==s&&""==c&&""==t){T("<img/>").attr("src",e).load(function(){T(this).remove(),n.css("background-image","url('"+e+"')"),n.css("opacity","1")}),n.css("background-image",""),n.css("opacity","0"),n.css("transition","opacity 25ms")}var b=T("#rec"+x).find(".t-cover__arrow-wrapper");0<b.length&&b.click(function(){var e=T("#rec"+x).height();0<e&&T("html, body").animate({scrollTop:T("#rec"+x).offset().top+e},500)})})},T(document).ready(function(){T(".t-cover__carrier").each(function(){var e=T(this).attr("data-content-cover-id");0<e&&cover_init(e)})});var t=T.Deferred();function s(e,t){console.log("setWidthHeightYoutubeVideo:"+t);var o=e.find("iframe"),i=e.attr("data-content-video-nocover"),n=e.attr("data-content-video-noadcut-youtube"),r=e.attr("data-content-video-ratio"),a=.5625;if(0<r&&(a=1*parseFloat(r)),"yes"!=i){if(t||(t="100vh"),-1<t.indexOf("vh")){var s=window.innerHeight;s||(s=T(window).height());var c=Math.floor(s*(parseInt(t)/100))}else c=parseInt(t);var d=Math.floor(parseInt(window.innerWidth));d||(d=T(window).width());var l=d,h=w=d*a,u=w,p=1;if("yes"==n||(h=h+110+110,u=w-220),u<c)if(w<c)p=c/w+.02;else p=w/c+.02;var f=Math.floor(l*p),v=Math.floor(h*p),m=v-c,g=f-d;o.height(v+"px"),o.width(f+"px"),0<m&&o.css("margin-top",-Math.floor(m/2)+"px"),0<g&&o.css("margin-left",-Math.floor(g/2)+"px")}else{var w;t||(w=Math.floor(e.width()*a)),t&&-1<t.indexOf("vh")?w=Math.floor(window.innerHeight*(parseInt(t)/100)):t&&(w=parseInt(t)),o.css("width","100%"),o.height(w+"px")}}window.processYoutubeVideo=function(d,a){!function(){if("yes"!==window.loadytapi_flag){window.loadytapi_flag="yes";var e=document.createElement("script");e.src="https://www.youtube.com/iframe_api";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}}();t.then(function(){var t,e=T(d),o=e.attr("data-content-video-url-youtube"),c=e.attr("data-content-video-nomute"),i=e.attr("data-content-video-noloop"),n=e.attr("data-content-video-nocover"),r=document.createElement("iframe");r.src=function(e,t,o){-1==e.indexOf("https://www.youtube.com/embed")&&(e="https://www.youtube.com/embed"+("/"==e[0]?e:"/"+e));var i=location.protocol+"//"+location.host;return e="yes"!=t?(e[e.length-1],e+"?autoplay=1&loop=1&enablejsapi=1&&playerapiid=featuredytplayer&controls=0&modestbranding=1&rel=0&showinfo=0&color=white&iv_load_policy=3&theme=light&wmode=transparent&origin="+i+"&playlist="+function(e){for(var t=e.split("/"),o=null,i=0,n=t.length;i<n;i++)"embed"==t[i]&&(o=t[i+1]);return o}(e)):(e[e.length-1],e+"?autoplay=0&loop=0&enablejsapi=1&&playerapiid=featuredytplayer&controls=1&modestbranding=1&rel=0&showinfo=0&color=black&iv_load_policy=3&theme=dark&wmode=transparent&origin="+i),"yes"!==o&&(e+="&mute=1"),e}(o,n,c),r.frameBorder=0,r.allow="autoplay",d.appendChild(r),0==$isMobile&&new YT.Player(r,{events:{onReady:function(e){var t,o,i,n,r,a,s;t=d,o=e.target,i=c,r=T(window),a=T(t),s=0,r.scroll(function(){n&&(window.clearTimeout(n),15<=s&&(l(a,r,o,i),s=0),s++),n=window.setTimeout(function(){l(a,r,o,i),s=0},100)}),r.scroll(),e.target.setVolume&&"yes"!=c&&e.target.setVolume(0),e.target.setLoop(!0)},onStateChange:function(o){if(o.target.setVolume&&"yes"!=c&&o.target.setVolume(0),-1===o.data){var e=window.fix_scrolltop_beforestop_youtube;0<=e&&(T("html, body").scrollTop(e),delete window.fix_scrolltop_beforestop_youtube)}o.data===YT.PlayerState.PLAYING?t=window.setInterval(function(){var e=o.target.getCurrentTime(),t=o.target.getDuration();t<e+1&&0!==t&&(o.target.seekTo(0),"yes"===i&&(o.target.stopVideo(),o.target.clearVideo()))},1e3):window.clearTimeout(t)}}});s(e,a)})},window.onYouTubeIframeAPIReady=function(){t.resolve()}}(jQuery),function(e){function t(){this.callbacks={}}t.prototype.defaultConfig={single:!1,context:null},t.prototype.addEventListener=function(e,t,o){evtCallbacks=this._getEventCallbacks(e),evtCallbacks||(evtCallbacks=this.callbacks[e]=[]),evtCallbacks.push({callback:t,config:"object"==typeof o?o:this.defaultConfig})},t.prototype._getEventCallbacks=function(e){return this.callbacks[e]},t.prototype.removeEventListener=function(e,t){var o=this._getEventCallbacks(e);if(!o)return!1;for(var i=0,n=o.length;i<n;i++)if(t===o[i].callback)return o.splice(i,1),!0;return!1},t.prototype.emitEvent=function(e,t){var o=[];extend(o,this._getEventCallbacks(e));for(var i,n,r,a=0,s=o.length;a<s;a++)n=(i=o[a]).callback,(r=i.config).context?n.call(r.context,t):n(t),r.single&&this.removeEventListener(e,n)},window.observer=new t}(jQuery),function(n){n(document).ready(function(){if(0==$isMobile&&"yes"!==n("#allrecords").attr("data-blocks-animationoff")&&0==window.isSearchBot){n(".r").each(function(e){n(this).attr("style")&&-1!==n(this).attr("style").indexOf("background-color")&&n(this).attr("data-animationappear","off")});var o=n(".r").not("[data-animationappear=off], [data-screen-min], [data-screen-max]"),i=n(window);function e(){if(o.length)for(var e,t=o.length-1;0<=t;t--)(e=n(o[t])).offset().top<i.scrollTop()+i.height()-100&&(e.removeClass("r_hidden"),e.addClass("r_showed"),o.splice(t,1))}o.each(function(e){a=n(this).offset().top,b=i.scrollTop()+i.height()+300,1e3<a&&a>b?n(this).addClass("r_hidden"):n(this).addClass("r_showed"),n(this).addClass("r_anim")}),i.bind("scroll",t_throttle(e,200)),e()}n("body").height()+70<n(window).height()&&n(".t-tildalabel").css("display","none")})}(jQuery),function(r){function e(){var e=r(window);window.winWidth=e.width(),window.winHeight=e.height()}function t(){var t,o,i,n=r(window).width();r("div.r[data-screen-max], div.r[data-screen-min]").each(function(e){i=r(this).css("display"),void 0===(t=r(this).attr("data-screen-max"))&&(t=1e4),t=parseInt(t),void 0===(o=r(this).attr("data-screen-min"))&&(o=0),(o=parseInt(o))<=t&&(n<=t&&o<n?"block"!=i&&r(this).css("display","block"):"none"!=i&&r(this).css("display","none"))})}r(document).ready(function(){e(),t(),r(window).bind("resize",t_throttle(e,200)),r(window).bind("resize",t_throttle(t,200))})}(jQuery),function(y){y.fn.videoBG=function(e,t){t={};if("object"==typeof e)t=y.extend({},y.fn.videoBG.defaults,e);else{if(e)return y(e).videoBG(t);t=y.fn.videoBG.defaults}var o=y(this);if(o.length){"static"!=o.css("position")&&o.css("position")||o.css("position","relative"),0==t.width&&(t.width=o.width()),0==t.height&&(t.height=o.height()),t.textReplacement&&(t.scale=!0,o.width(t.width).height(t.height).css("text-indent","-9999px"));var i=y.fn.videoBG.video(t);return t.scale&&i.height(t.height).width(t.width),o.append(i),void 0===o.attr("data-content-video-nomute")&&o.find("video").prop("muted",!0),function(e,t){var o=e.closest(".t-cover__carrier"),i=t+"";console.log("setWidthHeightHTMLVideo:"+i);var n=o.find("video"),r=o.attr("data-content-video-nocover"),a=o.attr("data-content-video-ratio"),s=.5625;if(0<a&&(s=1*parseFloat(a)),"yes"!=r){if(i||(i="100vh"),-1<i.indexOf("vh")){var c=window.innerHeight;c||(c=y(window).height());var d=Math.floor(c*(parseInt(i)/100))}else d=parseInt(i);var l=Math.floor(parseInt(window.innerWidth));l||(l=y(window).width());var h=l,u=w=l*s,p=1;w<d&&(p=w<d?d/w+.02:w/d+.02);var f=Math.floor(h*p),v=Math.floor(u*p),m=v-d,g=f-l;n.height(v+"px"),n.width(f+"px"),0<m&&n.css("margin-top",-Math.floor(m/2)+"px"),0<g&&n.css("margin-left",-Math.floor(g/2)+"px")}else{var w;i||(w=Math.floor(o.width()*s)),i&&-1<i.indexOf("vh")?w=Math.floor(window.innerHeight*(parseInt(i)/100)):i&&(w=parseInt(i)),n.css("width","100%"),n.height(w+"px")}}(i,t.height),i.find("video")[0]}},y.fn.videoBG.setFullscreen=function(e){var t,o=y(window).width(),i=y(window).height();if(e.css("min-height",0).css("min-width",0),e.parent().width(o).height(i),o/i>e.aspectRatio)e.width(o).height("auto"),(t=(e.height()-i)/2)<0&&(t=0),e.css("top",-t);else if(e.width("auto").height(i),(t=(e.width()-o)/2)<0&&(t=0),e.css("left",-t),0===t)setTimeout(function(){y.fn.videoBG.setFullscreen(e)},500);y("body > .videoBG_wrapper").width(o).height(i)},y.fn.videoBG.video=function(e){var t=y("<div/>");t.addClass("videoBG").css("position",e.position).css("z-index",e.zIndex).css("top",0).css("left",0).css("height",e.height).css("width",e.width).css("opacity",e.opacity).css("overflow","hidden");var o,i=y("<video/>");(i.css("position","relative").css("z-index",e.zIndex).attr("poster",e.poster).css("top",0).css("left",0).css("min-width","100%").css("min-height","100%"),e.autoplay&&i.attr("autoplay",e.autoplay),0<e.volume?i.prop("volume",e.volume):i.prop("volume",0),e.fullscreen)&&(i.bind("canplay",function(){i.aspectRatio=i.width()/i.height(),y.fn.videoBG.setFullscreen(i)}),y(window).resize(function(){clearTimeout(o),o=setTimeout(function(){y.fn.videoBG.setFullscreen(i)},100)}),y.fn.videoBG.setFullscreen(i));var n=i[0];e.loop&&(loops_left=e.loop,i.bind("ended",function(){loops_left&&n.play(),!0!==loops_left&&loops_left--})),i.bind("canplay",function(){e.autoplay&&n.play()}),y.fn.videoBG.supportsVideo()&&(y.fn.videoBG.supportType("webm")&&""!=e.webm?i.attr("src",e.webm):y.fn.videoBG.supportType("mp4")&&""!=e.mp4?i.attr("src",e.mp4):i.attr("src",e.ogv));var r=y("<img/>");return r.attr("src",e.poster).css("position","absolute").css("z-index",e.zIndex).css("top",0).css("left",0).css("min-width","100%").css("min-height","100%"),y.fn.videoBG.supportsVideo()?t.html(i):t.html(r),e.textReplacement&&(t.css("min-height",1).css("min-width",1),i.css("min-height",1).css("min-width",1),r.css("min-height",1).css("min-width",1),t.height(e.height).width(e.width),i.height(e.height).width(e.width),r.height(e.height).width(e.width)),y.fn.videoBG.supportsVideo(),t},y.fn.videoBG.supportsVideo=function(){return document.createElement("video").canPlayType},y.fn.videoBG.supportType=function(e){if(!y.fn.videoBG.supportsVideo())return!1;var t=document.createElement("video");switch(e){case"webm":return t.canPlayType('video/webm; codecs="vp8, vorbis"');case"mp4":return t.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"');case"ogv":return t.canPlayType('video/ogg; codecs="theora, vorbis"')}return!1},y.fn.videoBG.wrapper=function(){var e=y("<div/>");return e.addClass("videoBG_wrapper").css("position","absolute").css("top",0).css("left",0),e},y.fn.videoBG.defaults={mp4:"",ogv:"",webm:"",poster:"",autoplay:!0,loop:!0,scale:!1,position:"absolute",opacity:1,textReplacement:!1,zIndex:0,width:0,height:0,fullscreen:!1,imgFallback:!0}}(jQuery),function(d){var n=d(window),l=n.height();n.resize(function(){l=n.height()}),d.fn.parallax=function(e,a,t){var s,o=d(this),c=void 0!==document.body.style["-webkit-transform"];function i(){var r=n.scrollTop();o.each(function(){var e=d(this),t=e.offset().top,o=s(e),i=this.getBoundingClientRect();if(!(t+o<r||r+l<t)){var n=-1*Math.round(i.top*a);c?this.style["-webkit-transform"]="translateY("+n+"px)":this.style.top=n+"px"}})}c&&o.css("position","relative"),window.correctFirstTop4Parallax=function(){o.each(function(){o.offset().top})},window.correctFirstTop4Parallax(),s=t?function(e){return e.outerHeight(!0)}:function(e){return e.height()},(arguments.length<1||null===e)&&(e="50%"),(arguments.length<2||null===a)&&(a=.1),(arguments.length<3||null===t)&&(t=!0),d(window).resize(window.correctFirstTop4Parallax),n.bind("scroll",i).resize(i),"complete"!==document.readyState?window.addEventListener("load",function(){i()}):i()}}(jQuery),window.Tilda=window.Tilda||{},function(u){Tilda.sendEventToStatistics=function(e,t,o,i){var n="/"==e.substring(0,1),r=[],a=0,s=u("#allrecords").data("fb-event");s=!(!s||"nosend"!=s);var c;if(c=u("#allrecords").data("tilda-currency")||u(".t706").data("project-currency-code")||"RUB",o||(o=window.location.href),0<(i=i?parseFloat(i):0))if(window.dataLayer||(window.dataLayer=[]),-1!=e.indexOf("/tilda/")&&-1!=e.indexOf("/payment/")&&window.tildaForm&&""<window.tildaForm.orderIdForStat)o={ecommerce:{purchase:{actionField:{id:window.tildaForm.orderIdForStat},products:window.tildaForm.arProductsForStat}},event:"purchase"};else if(o&&o.ecommerce&&(o.ecommerce.add&&o.ecommerce.add.products?r=o.ecommerce.add.products:o.ecommerce.remove&&o.ecommerce.remove.products&&(r=o.ecommerce.remove.products),r&&0<r.length)){for(a=0;a<r.length;a++)r[a].id||(r[a].sku?r[a].id=r[a].sku:r[a].uid?r[a].id=r[a].uid:r[a].recid&&r[a].lid&&(r[a].id=r[a].recid+"_"+r[a].lid));o.ecommerce.add&&o.ecommerce.add.products?(o.ecommerce.add.products=r,o.event="addToCart"):o.ecommerce.remove&&o.ecommerce.remove.products?(o.ecommerce.remove.products=r,o.event="removeFromCart"):(n?(o.event="pageView",o.eventAction=e):o.event=e,o.title=t,o.value=i)}null!=window.dataLayer&&(n?0<i?o&&o.ecommerce?window.dataLayer.push(o):window.dataLayer.push({event:"pageView",eventAction:e,title:t,value:i,product:o}):window.dataLayer.push({event:"pageView",eventAction:e,title:t,referer:o}):o&&o.ecommerce&&o.ecommerce?window.dataLayer.push(o):window.dataLayer.push({event:e,eventAction:t,value:i,referer:o}));try{window.gtagTrackerID&&"gtag"==window.mainTracker&&(n?o&&o.event?"purchase"==o.event?gtag("event","purchase",{transaction_id:o.ecommerce.purchase.actionField.id,value:parseFloat(i).toFixed(2),currency:c,items:o.ecommerce.purchase.products}):"addToCart"==o.event&&o.ecommerce.add?gtag("event","add_to_cart",{items:o.ecommerce.add.products}):"removeFromCart"==o.event&&o.ecommerce.remove&&gtag("event","remove_from_cart",{items:o.ecommerce.remove.products}):gtag("config",window.gtagTrackerID,{page_title:t,page_path:e}):gtag("event",e,{event_category:"tilda",event_label:t,value:i}))}catch(e){}if(window.ga&&"tilda"!=window.mainTracker&&"gtag"!=window.mainTracker)if(n)if(o&&o.event){try{if(window.Tilda.isLoadGAEcommerce||(window.Tilda.isLoadGAEcommerce=!0,ga("require","ec")),ga("set","currencyCode",c),"purchase"==o.event){var d=o.ecommerce.purchase.products.length;for(h=0;h<d;h++)l=o.ecommerce.purchase.products[h],ga("ec:addProduct",{id:l.id||h,name:l.name,price:parseFloat(l.price).toFixed(2),quantity:l.quantity});ga("ec:setAction","purchase",{id:o.ecommerce.purchase.actionField.id,revenue:parseFloat(i).toFixed(2)})}else if("addToCart"==o.event&&o.ecommerce.add){d=o.ecommerce.add.products.length;for(h=0;h<d;h++)l=o.ecommerce.add.products[h],ga("ec:addProduct",{id:l.id||h,name:l.name,price:parseFloat(l.price).toFixed(2),quantity:l.quantity});ga("ec:setAction","add")}else if("removeFromCart"==o.event&&o.ecommerce.remove){var l,h;d=o.ecommerce.remove.products.length;for(h=0;h<d;h++)l=o.ecommerce.remove.products[h],ga("ec:addProduct",{id:l.id||h,name:l.name,price:parseFloat(l.price).toFixed(2),quantity:l.quantity});ga("ec:setAction","remove")}}catch(e){}ga("send",{hitType:"pageview",page:e,title:t,params:o})}else ga("send",{hitType:"pageview",page:e,title:t});else ga("send",{hitType:"event",eventCategory:"tilda",eventAction:e,eventLabel:t,eventValue:i});""<window.mainMetrika&&window[window.mainMetrika]&&(n?0<i?window[window.mainMetrika].hit(e,{title:t,order_price:i,params:o}):window[window.mainMetrika].hit(e,{title:t}):0<i?window[window.mainMetrika].reachGoal(e,{title:t,params:o,order_price:i}):window[window.mainMetrika].reachGoal(e,{title:t,referer:o})),null!=window.fbq&&0==s&&(n?-1==e.indexOf("tilda/")||-1==e.indexOf("/payment/")&&-1==e.indexOf("/submitted/")?-1!=e.indexOf("tilda/popup")?window.fbq("track","ViewContent",{content_name:t,content_category:"popup",content_ids:[e],content_type:"popup"}):window.fbq("track","ViewContent",{content_name:t,content_category:"event",content_ids:[e],content_type:"event"}):0<i&&c?window.fbq("track","InitiateCheckout",{content_name:t,content_category:e,value:i,currency:c}):window.fbq("track","Lead",{content_name:t,content_category:e}):window.fbq("track",e,{content_name:t,value:i})),"function"==typeof window.tildastat&&(n?(0<e.indexOf("payment")&&-1<e.indexOf("tilda/form")&&(e=e.replace("tilda/form","tilda/rec")),window.tildastat("pageview",{page:e})):window.tildastat("pageview",{page:"/tilda/event/"+e}))},Tilda.saveUTM=function(){try{var e=window.location.href,t="",o="";if(-1!==e.toLowerCase().indexOf("utm_")&&"string"==typeof(t=(t=(e=e.toLowerCase()).split("?"))[1])){var i,n=t.split("&");for(i in n)"utm_"==n[i].split("=")[0].substring(0,4)&&(o=o+n[i]+"|||");if(0<o.length){var r=new Date;r.setDate(r.getDate()+30),document.cookie="TILDAUTM="+encodeURIComponent(o)+"; path=/; expires="+r.toUTCString()}}}catch(e){}},u(document).ready(function(){var e=navigator.userAgent.toLowerCase(),t=-1!=e.indexOf("msie")&&parseInt(e.split("msie")[1]);8!=t&&9!=t||u(".t-btn").each(function(){var e=u(this).attr("href");0<u(this).find("table").length&&""<e&&-1==e.indexOf("#popup:")&&-1==e.indexOf("#price:")&&u(this).click(function(e){e.preventDefault();var t=u(this).attr("href");window.location.href=t})});try{1==u("#allrecords").length&&"no"==u("#allrecords").data("tilda-cookie")||Tilda.saveUTM()}catch(e){}u(".r").off("click","a.js-click-stat"),u(".r").on("click","a.js-click-stat",function(e){var t=u(this).data("tilda-event-name"),o=u(this).text(),n=u(this).attr("href")||"",r=u(this).attr("target");if(t||(t="/tilda/click/".$(this).closest(".r").attr("id")+"/?url="+n),Tilda.sendEventToStatistics(t,o),"http"==n.substring(0,4))return window.setTimeout(function(){var e,t,o="",i="";if("_blank"==r){if(-1!=n.indexOf("?")&&(n=(o=n.split("?"))[0],-1!=(o=o[1]).indexOf("#")&&(o=o.split("#"),n=n+"#"+o[1],o=o[0]),o=o.split("&")),0==u("#tildaredirectform").length?u("body").append('<form id="tildaredirectform" target="_blank" method="GET" action="'+n+'" style="display:none;"></form>'):u("#tildaredirectform").attr("method","GET").attr("action",n),i="",0<o.length)for(e in o)(t=o[e].split("="))&&0<t.length&&(i+='<input type="hidden" name="'+t[0]+'" value="'+(t[1]?t[1]:"")+'">');u("#tildaredirectform").html(i),u("#tildaredirectform").submit()}else window.location.href=n},300),e.preventDefault(),!1}),u("input.js-amount").each(function(){var e=u(this).val();e=e.replace(/,/g,"."),e=parseFloat(e.replace(/[^0-9\.]/g,"")),u(this).val(e)}),Tilda.showFormError=function(e,t){var o=e.find(".js-errorbox-all");o&&0!=o.length||(e.prepend('<div class="js-errorbox-all"></div>'),o=e.find(".js-errorbox-all"));var i=o.find(".js-rule-error-all");i&&0!=i.length||(o.append('<p class="js-rule-error-all"></p>'),i=o.find(".js-rule-error-all")),"string"==typeof t?i.html(t):t&&t.responseText?i.html(t.responseText+". Later, plaese try again."):t&&t.statusText?i.html("Error - "+t.statusText+". Later, plaese try again."):i.html("Unknown error. Later, plaese try again."),i.show(),o.show()},Tilda.robokassaPayment=function(i,n,r){return u.ajax({type:"POST",url:"https://forms.tildacdn.com/payment/robokassa/",data:i.serialize(),dataType:"text",success:function(e){n.removeClass("t-btn_sending"),n.data("form-sending-status","0"),n.data("submitform","");var t=n.closest(".r").attr("id");if("{"==e.substring(0,1)){if(window.JSON&&window.JSON.parse?json=window.JSON.parse(e):json=u.parseJSON(e),!json)return void Tilda.showFormError(i,!1);if(""<json.error)return void Tilda.showFormError(i,json.error)}else if("http"==e.substring(0,4)){Tilda.sendEventToStatistics("/tilda/payment/"+t+"/click/","Payment button: "+n.val(),"",r);var o=e;window.setTimeout(function(){window.location.href=o},500)}else Tilda.showFormError(i,e)},fail:function(e){n.removeClass("t-btn_sending"),n.data("form-sending-status","0"),n.data("submitform","");Tilda.showFormError(i,e)},timeout:15e3})}})}(jQuery);