function t_throttle(e,t,o){var i,n;return t||(t=250),function(){var r=o||this,a=+new Date,s=arguments;i&&a-1&&(i=parseInt(s.height)/100,c=Math.round(o*i)+"px",(d=e(a).parent(".t-cover"))&&(d=d[0])&&(l=d.querySelector(".t-cover__filter"),h=d.querySelector(".t-cover__wrapper"),l&&(l.style.height=c),h&&(h.style.height=c),s.height=d.style.height=c));var a,s,c,d,l,h,u=document.body.querySelectorAll("[data-height-correct-vh]");for(o=e(window).height(),i=0,n=0,r=u.length;n-1&&(i=parseInt(s.height)/100,c=o+"px",d=e(a).parent(".t-cover"),s.height=c)};e(document).ready(function(){setTimeout(function(){t()},400)}),e(window).load(function(){setTimeout(function(){t()},400)})}1==$isMobile&&(e(window).width()<480?(e(document).ready(function(){var t;e("div[data-customstyle=yes]").each(function(t){e(this).css("font-size").replace("px","")>26&&(e(this).css("font-size",""),e(this).css("line-height",""))}),e("[field]").find("span").each(function(t){e(this).css("font-size").replace("px","")>26&&e(this).css("font-size","")}),e(".t-title, .t-name, .t-heading, .t-descr, .t-text, .t-subtitle").not(".tn-elem, .tn-atom").each(function(o){if(void 0!==(t=e(this).attr("style"))&&""!=t&&t.indexOf("font-size")>-1&&e(this).css("font-size").replace("px","")>26){var i=t.replace("font-size","fontsize").replace("line-height","lineheight");e(this).attr("style",i)}})}),e(window).load(function(){var t=e(window).width();e(".r").each(function(){var o=e(this);e(this).find("div").not("[data-auto-correct-mobile-width=false], .tn-elem, .tn-atom").each(function(){var i=parseInt(e(this).outerWidth(!0));i>t&&(console.log("Block not optimized for mobile width. Block width:"+i+" Block id:"+o.attr("id")),console.log(e(this)),o.css("overflow","auto"),i-3>t&&o.css("word-break","break-all"))})})})):e(window).width()<900&&e(document).ready(function(){var t;e("div[data-customstyle=yes]").each(function(t){e(this).css("font-size").replace("px","")>30&&(e(this).css("font-size",""),e(this).css("line-height",""))}),e("[field]").find("span").each(function(t){e(this).css("font-size").replace("px","")>30&&e(this).css("font-size","")}),e(".t-title, .t-name, .t-heading, .t-descr, .t-text, .t-subtitle").not(".tn-elem, .tn-atom").each(function(o){if(void 0!==(t=e(this).attr("style"))&&""!=t&&t.indexOf("font-size")>-1&&e(this).css("font-size").replace("px","")>30){var i=t.replace("font-size","fontsize").replace("line-height","lineheight");e(this).attr("style",i)}})}))}(jQuery),function(e){function t(){this.setScrollListener()}t.prototype.videoTags=[],t.prototype.defaultConfig={isNeedStop:!1},t.prototype.videoConfigs=[],t.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)},t.prototype.unergisterVideo=function(e){if(!(e instanceof HTMLVideoElement))throw new Error("Wrong tag passed into unregisterNewVideo");var t;return(t=this.videoTags.indexOf(e))>-1&&("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)},t.prototype.pauseVideo=function(e,t){if(!t)throw new Error("Wrong config type!");e.pause(),t.isNeedStop&&e.load()},t.prototype.setScrollListener=function(){e(window).bind("scroll",t_throttle(jQuery.proxy(this.scrollCb,this),200))},t.prototype.scrollCb=function(){for(var t=e(window).height(),o=null,i=0,n=this.videoTags.length;it/2){var r=1-(Math.abs(_vrect.top)-t/2)/(t/2)-.2;r>0&&r<=1&&0!=o.volume&&(o.volume=r)}Math.abs(_vrect.top)>t||0==_vrect.height?this.pauseVideo(o,this.videoConfigs[i]):o.paused&&o.play()}},t.prototype.getVideoObject=function(e){for(var t=0,o=this.videoTags.length;t>o;t++){var i=this.videoTags[t];if(i.v===e)return i}return null},t.prototype.getVideoBoundingRect=function(t,o){void 0===o&&(o=!0);var i=null;return o&&(i=e(t).parents(".r")[0])||(i=t),i.getBoundingClientRect()},window.videoLoadProcessor=new t}(jQuery),function(e){function t(){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,e(window).resize(jQuery.proxy(this.recalculateAllSequencesOffsets,this)),this._resizeInterval=setInterval(jQuery.proxy(this.scrollCb,this),500)}function o(t){var o,i=e("#rec"+t),n=i.find(".t-cover").height();(o=i.find("div[data-hook-content]").outerHeight())>300&&n1e3&&(o+=100),console.log("auto correct cover height: "+o),i.find(".t-cover").height(o),i.find(".t-cover__filter").height(o),i.find(".t-cover__carrier").height(o),i.find(".t-cover__wrapper").height(o),0==$isMobile&&setTimeout(function(){var e=i.find(".t-cover__carrier");e.find("iframe").length>0&&(console.log("correct video from cover_fixcontentheight"),r(e,o+"px")),e.find("video").length>0&&console.log("correct html5video from cover_fixcontentheight")},2e3))}function i(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(),a+s>n&&a<=n+r?(1!==c&&o.playVideo(),"yes"==i&&(a>n+r-100?o.setVolume(30):a>n+r-200?o.setVolume(70):a+sn-500?2!==c&&(o.playVideo(),o.pauseVideo()):2!==c&&o.pauseVideo()}t.prototype.defaultConfig={orientation:"vertical",speedFactor:1,automated:!1},t.prototype.sequenceObjects=[],t.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)},t.prototype.registerNewBlock=function(e){if(!(e instanceof HTMLElement))throw new Error("Wrong node type in registerNewBlock");for(var t=0,o=this.sequenceObjects.length;tthis.itemTransitionTop){a=s;break}if(null!=a){(i=n.top/this.itemTransitionTop)>1?i=1:i<0&&(i=0);for(s=0,c=r.length;s0&&n.bottom>n.height-t.sequenceHeight-100?this.processSequence(t):this.stopSequence(t)}},t.prototype.setScrollCb=function(){this._scrollCb=jQuery.proxy(this.scrollCb,this),e(window).bind("scroll",t_throttle(this._scrollCb,200))},window.sequenceController=new t,window.processVideo=function(t){mp4Src=e(t).attr("data-content-video-url-mp4"),webmSrc=e(t).attr("data-content-video-url-webm"),e(t).css("background-color","transparent"),e(t).css("background-image","");var o={mp4:mp4Src,webm:webmSrc,preload:"none",autoplay:!1,loop:!0,scale:!0,zIndex:0,width:"100%"};vid=e(t).videoBG(o),videoLoadProcessor.registerNewVideo(vid,{isNeedStop:!1})},window.cover_init=function(t){e(document).ready(function(){var i=document.body.querySelector("#coverCarry"+t),n=e(i),r=n.attr("data-content-cover-bg"),a=n.attr("data-content-cover-height"),s=n.attr("data-content-cover-parallax"),c=n.attr("data-content-video-url-mp4"),d=n.attr("data-content-video-url-webm"),l=n.attr("data-content-video-url-youtube"),h=n.attr("data-content-video-noloop"),u=n.attr("data-content-video-nomute"),p=n.attr("data-content-bg-base64"),f=n.attr("data-content-video-nocover");r||(r=""),a||(a=""),s||(s=""),c||(c=""),d||(d=""),l||(l=""),h||(h=""),u||(u=""),l||(l=""),p||(p=""),f&&"yes"==f&&(c="",d="",l=""),!$isMobile||""==d&&""==c&&""==l||n.css("background-image","url('"+r+"')"),setTimeout(function(){o(t)},500);var v=e("#rec"+t).find("img[data-hook-clogo]");if(v.length&&v.load(function(){setTimeout(function(){o(t)},500)}),$isMobile&&e(window).on("orientationchange",function(){o(t)}),(""!==c||""!==d||""!==l)&&0==$isMobile)if(""!=l||""==c&&""==d){if(""!=l){n.css("background-color","#000000"),n.css("background-image",""),n.attr("data-content-cover-bg","");b=0;(x=e(window)).scroll(function(){w&&window.clearTimeout(w),w=window.setTimeout(function(){var e,t,o;(b=n.find("iframe").length)>0||(e=n.offset().top,t=n.height(),(o=x.scrollTop())+x.height()>e-500&&o<=e+t+500&&processYoutubeVideo(i,a))},100)}),x.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",""),""!=h)var m=!1;else m=!0;if(""!=u)var g=1;else g="";var w,y="";"fixed"==s&&(a.indexOf("vh")>-1&&parseInt(a)>100&&(n.css("height","100vh"),y="yes"),a.indexOf("px")>-1&&parseInt(a)>e(window).height()&&(n.css("height","100vh"),y="yes"));var b="",x=e(window),T=n.parent();x.scroll(function(){var e,t,o;(w&&window.clearTimeout(w),w=window.setTimeout(function(){var e,t,o;if(!(b>0)&&(e=n.offset().top,t=n.height(),(o=x.scrollTop())+x.height()>e-500&&o<=e+t+500)){var i=n.videoBG({mp4:c,webm:d,poster:"",preload:"none",autoplay:!1,loop:m,volume:g,scale:!0,zIndex:0,width:"100%"});videoLoadProcessor.registerNewVideo(i),b=1}},100),"fixed"==s&&"yes"==y)&&(e=T.offset().top,t=T.height(),(o=x.scrollTop())>=e+t-x.height()?(n.css("position","absolute"),n.css("bottom","0px"),n.css("top","auto")):o>=e?(n.css("position","fixed"),n.css("top","0px")):o").attr("src",r).load(function(){e(this).remove(),n.css("background-image","url('"+r+"')"),n.css("opacity","1")}),n.css("background-image",""),n.css("opacity","0"),n.css("transition","opacity 25ms")}var k=e("#rec"+t).find(".t-cover__arrow-wrapper");k.length>0&&k.click(function(){var o=e("#rec"+t).height();o>0&&e("html, body").animate({scrollTop:e("#rec"+t).offset().top+o},500)})})},e(document).ready(function(){e(".t-cover__carrier").each(function(){var t=e(this).attr("data-content-cover-id");t>0&&cover_init(t)})});var n=e.Deferred();function r(t,o){console.log("setWidthHeightYoutubeVideo:"+o);var i=t.find("iframe"),n=t.attr("data-content-video-nocover"),r=t.attr("data-content-video-noadcut-youtube"),a=t.attr("data-content-video-ratio"),s=.5625;if(a>0&&(s=1*parseFloat(a)),"yes"!=n){if(o||(o="100vh"),o.indexOf("vh")>-1){var c=window.innerHeight;c||(c=e(window).height());var d=Math.floor(c*(parseInt(o)/100))}else d=parseInt(o);var l=Math.floor(parseInt(window.innerWidth));l||(l=e(window).width());var h=l,u=y=l*s,p=y,f=1;if("yes"==r||(u=u+110+110,p=y-220),p0&&i.css("margin-top",-Math.floor(g/2)+"px"),w>0&&i.css("margin-left",-Math.floor(w/2)+"px")}else{var y;o||(y=Math.floor(t.width()*s)),o&&o.indexOf("vh")>-1?y=Math.floor(window.innerHeight*(parseInt(o)/100)):o&&(y=parseInt(o)),i.css("width","100%"),i.height(y+"px")}}window.processYoutubeVideo=function(t,o){!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)}}();n.then(function(){var n,a=e(t),s=a.attr("data-content-video-url-youtube"),c=a.attr("data-content-video-nomute"),d=a.attr("data-content-video-noloop"),l=a.attr("data-content-video-nocover"),h=document.createElement("iframe");h.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"yes"!=t?(e[e.length-1],e=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=15&&(i(l,d,r,a),h=0),h++),s=window.setTimeout(function(){i(l,d,r,a),h=0},100)}),d.scroll(),o.target.setVolume&&"yes"!=c&&o.target.setVolume(0),o.target.setLoop(!0)},onStateChange:function(t){if(t.target.setVolume&&"yes"!=c&&t.target.setVolume(0),-1===t.data){var o=window.fix_scrolltop_beforestop_youtube;o>=0&&(e("html, body").scrollTop(o),delete window.fix_scrolltop_beforestop_youtube)}t.data===YT.PlayerState.PLAYING?n=window.setInterval(function(){var e=t.target.getCurrentTime(),o=t.target.getDuration();e+1>o&&0!==o&&(t.target.seekTo(0),"yes"===d&&(t.target.stopVideo(),t.target.clearVideo()))},1e3):window.clearTimeout(n)}}});r(a,o)})},window.onYouTubeIframeAPIReady=function(){n.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=0;n--)(i=e(t[n])).offset().top1e3&&a>b?e(this).addClass("r_hidden"):e(this).addClass("r_showed"),e(this).addClass("r_anim")}),o.bind("scroll",t_throttle(i,200)),i()}e("body").height()+70o?"block"!=i&&e(this).css("display","block"):"none"!=i&&e(this).css("display","none"))})}e(document).ready(function(){t(),o(),e(window).bind("resize",t_throttle(t,200)),e(window).bind("resize",t_throttle(o,200))})}(jQuery),function(e){e.fn.videoBG=function(t,o){o={};if("object"==typeof t)o=e.extend({},e.fn.videoBG.defaults,t);else{if(t)return e(t).videoBG(o);o=e.fn.videoBG.defaults}var i=e(this);if(i.length){"static"!=i.css("position")&&i.css("position")||i.css("position","relative"),0==o.width&&(o.width=i.width()),0==o.height&&(o.height=i.height()),o.textReplacement&&(o.scale=!0,i.width(o.width).height(o.height).css("text-indent","-9999px"));var n=e.fn.videoBG.video(o);return o.scale&&n.height(o.height).width(o.width),i.append(n),void 0===i.attr("data-content-video-nomute")&&i.find("video").prop("muted",!0),function(t,o){var i=t.closest(".t-cover__carrier"),n=o+"";console.log("setWidthHeightHTMLVideo:"+n);var r=i.find("video"),a=i.attr("data-content-video-nocover"),s=i.attr("data-content-video-ratio"),c=.5625;if(s>0&&(c=1*parseFloat(s)),"yes"!=a){if(n||(n="100vh"),n.indexOf("vh")>-1){var d=window.innerHeight;d||(d=e(window).height());var l=Math.floor(d*(parseInt(n)/100))}else l=parseInt(n);var h=Math.floor(parseInt(window.innerWidth));h||(h=e(window).width());var u=h,p=y=h*c,f=1;y0&&r.css("margin-top",-Math.floor(g/2)+"px"),w>0&&r.css("margin-left",-Math.floor(w/2)+"px")}else{var y;n||(y=Math.floor(i.width()*c)),n&&n.indexOf("vh")>-1?y=Math.floor(window.innerHeight*(parseInt(n)/100)):n&&(y=parseInt(n)),r.css("width","100%"),r.height(y+"px")}}(n,o.height),n.find("video")[0]}},e.fn.videoBG.setFullscreen=function(t){var o,i=e(window).width(),n=e(window).height();if(t.css("min-height",0).css("min-width",0),t.parent().width(i).height(n),i/n>t.aspectRatio)t.width(i).height("auto"),(o=(t.height()-n)/2)<0&&(o=0),t.css("top",-o);else if(t.width("auto").height(n),(o=(t.width()-i)/2)<0&&(o=0),t.css("left",-o),0===o)setTimeout(function(){e.fn.videoBG.setFullscreen(t)},500);e("body > .videoBG_wrapper").width(i).height(n)},e.fn.videoBG.video=function(t){var o=e("
");o.addClass("videoBG").css("position",t.position).css("z-index",t.zIndex).css("top",0).css("left",0).css("height",t.height).css("width",t.width).css("opacity",t.opacity).css("overflow","hidden");var i,n=e("