window.isMobile=!1;if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){window.isMobile=!0}
window.isTablet=/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/i.test(navigator.userAgent);window.isiOS=!1;if(/iPhone|iPad|iPod/i.test(navigator.userAgent)){window.isiOS=!0}
window.isiOSVersion='';if(window.isiOS){var version=(navigator.appVersion).match(/OS (\d+)_(\d+)_?(\d+)?/);if(version!==null){window.isiOSVersion=[parseInt(version[1],10),parseInt(version[2],10),parseInt(version[3]||0,10)]}}
window.browserLang=(window.navigator.userLanguage||window.navigator.language).toUpperCase().slice(0,2);window.tildaBrowserLang=window.browserLang;function t_throttle(fn,threshhold,scope){var last;var deferTimer;threshhold||(threshhold=250);return function(){var context=scope||this;var now=+new Date();var args=arguments;if(last&&now<last+threshhold){clearTimeout(deferTimer);deferTimer=setTimeout(function(){last=now;fn.apply(context,args)},threshhold)}else{last=now;fn.apply(context,args)}}}
function t602_init(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var indicator=rec.querySelector('.t602__indicator');if(!indicator)return;window.addEventListener('scroll',t_throttle(function(){var documentHeight=document.body.clientHeight;var windowScrollTop=document.documentElement.scrollTop;var windowHeight=window.innerHeight;var scrollPercent=(windowScrollTop/(documentHeight-windowHeight))*100;indicator.style.width=scrollPercent+'%'},100))}
function t228__init(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var menuBlock=rec.querySelector('.t228');var mobileMenu=rec.querySelector('.t228__mobile');var menuSubLinkItems=rec.querySelectorAll('.t-menusub__link-item');var rightBtn=rec.querySelector('.t228__right_buttons_but .t-btn');var mobileMenuPosition=mobileMenu?mobileMenu.style.position||window.getComputedStyle(mobileMenu).position:'';var mobileMenuDisplay=mobileMenu?mobileMenu.style.display||window.getComputedStyle(mobileMenu).display:'';var isFixedMobileMenu=mobileMenuPosition==='fixed'&&mobileMenuDisplay==='block';var overflowEvent=document.createEvent('Event');var noOverflowEvent=document.createEvent('Event');overflowEvent.initEvent('t228_overflow',!0,!0);noOverflowEvent.initEvent('t228_nooverflow',!0,!0);if(menuBlock){menuBlock.addEventListener('t228_overflow',function(){t228_checkOverflow(recid)});menuBlock.addEventListener('t228_nooverflow',function(){t228_checkNoOverflow(recid)})}
rec.addEventListener('click',function(e){var targetLink=e.target.closest('.t-menusub__target-link');if(targetLink&&window.isMobile&&window.innerWidth<=980){if(targetLink.classList.contains('t-menusub__target-link_active')){if(menuBlock)menuBlock.dispatchEvent(overflowEvent)}else{if(menuBlock)menuBlock.dispatchEvent(noOverflowEvent)}}
var currentLink=e.target.closest('.t-menu__link-item:not(.tooltipstered):not(.t-menusub__target-link):not(.t794__tm-link):not(.t966__tm-link):not(.t978__tm-link):not(.t978__menu-link)');if(currentLink&&mobileMenu&&isFixedMobileMenu)mobileMenu.click()});Array.prototype.forEach.call(menuSubLinkItems,function(linkItem){linkItem.addEventListener('click',function(){if(mobileMenu&&isFixedMobileMenu)mobileMenu.click()})});if(rightBtn){rightBtn.addEventListener('click',function(){if(mobileMenu&&isFixedMobileMenu)mobileMenu.click()})}
if(menuBlock){menuBlock.addEventListener('showME601a',function(){var menuLinks=rec.querySelectorAll('.t966__menu-link');Array.prototype.forEach.call(menuLinks,function(menuLink){menuLink.addEventListener('click',function(){if(mobileMenu&&isFixedMobileMenu)mobileMenu.click()})})})}}
function t228_checkOverflow(recid){var rec=document.getElementById('rec'+recid);var menu=rec?rec.querySelector('.t228'):null;if(!menu)return;var mobileContainer=document.querySelector('.t228__mobile_container');var mobileContainerHeight=t228_getFullHeight(mobileContainer);var windowHeight=document.documentElement.clientHeight;var menuPosition=menu.style.position||window.getComputedStyle(menu).position;if(menuPosition==='fixed'){menu.classList.add('t228__overflow');menu.style.setProperty('height',(windowHeight-mobileContainerHeight)+'px','important')}}
function t228_checkNoOverflow(recid){var rec=document.getElementById('rec'+recid);if(!rec)return!1;var menu=rec.querySelector('.t228');var menuPosition=menu?menu.style.position||window.getComputedStyle(menu).position:'';if(menuPosition==='fixed'){if(menu)menu.classList.remove('t228__overflow');if(menu)menu.style.height='auto'}}
function t228_setWidth(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var menuCenterSideList=rec.querySelectorAll('.t228__centerside');Array.prototype.forEach.call(menuCenterSideList,function(menuCenterSide){menuCenterSide.classList.remove('t228__centerside_hidden')});if(window.innerWidth<=980)return;var menuBlocks=rec.querySelectorAll('.t228');Array.prototype.forEach.call(menuBlocks,function(menu){var maxWidth;var centerWidth=0;var paddingWidth=40;var leftSide=menu.querySelector('.t228__leftside');var rightSide=menu.querySelector('.t228__rightside');var menuList=menu.querySelector('.t228__list');var mainContainer=menu.querySelector('.t228__maincontainer');var leftContainer=menu.querySelector('.t228__leftcontainer');var rightContainer=menu.querySelector('.t228__rightcontainer');var centerContainer=menu.querySelector('.t228__centercontainer');var centerContainerLi=centerContainer?centerContainer.querySelectorAll('li'):[];var leftContainerWidth=t228_getFullWidth(leftContainer);var rightContainerWidth=t228_getFullWidth(rightContainer);var mainContainerWidth=mainContainer?mainContainer.offsetWidth:0;var dataAlign=menu.getAttribute('data-menu-items-align');var isDataAlignCenter=dataAlign==='center'||dataAlign===null;maxWidth=leftContainerWidth>=rightContainerWidth?leftContainerWidth:rightContainerWidth;maxWidth=Math.ceil(maxWidth);Array.prototype.forEach.call(centerContainerLi,function(li){centerWidth+=t228_getFullWidth(li)});if(mainContainerWidth-(maxWidth*2+paddingWidth*2)>centerWidth+20){if(isDataAlignCenter){if(leftSide)leftSide.style.minWidth=maxWidth+'px';if(rightSide)rightSide.style.minWidth=maxWidth+'px'}}else{if(leftSide)leftSide.style.minWidth=maxWidth+'';if(rightSide)rightSide.style.minWidth=maxWidth+''}
if(menuList&&menuList.classList.contains('t228__list_hidden'))menuList.classList.remove('t228__list_hidden')})}
function t228_getFullWidth(el){if(!el)return 0;var marginLeft=el.style.marginLeft||window.getComputedStyle(el).marginLeft;var marginRight=el.style.marginRight||window.getComputedStyle(el).marginRight;marginLeft=parseInt(marginLeft,10)||0;marginRight=parseInt(marginRight,10)||0;return el.offsetWidth+marginLeft+marginRight}
function t228_getFullHeight(el){if(!el)return 0;var marginTop=el.style.marginTop||window.getComputedStyle(el).marginTop;var marginBottom=el.style.marginBottom||window.getComputedStyle(el).marginBottom;marginTop=parseInt(marginTop,10)||0;marginBottom=parseInt(marginBottom,10)||0;return el.offsetHeight+marginTop+marginBottom}
function t868_initPopup(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;rec.setAttribute('data-animationappear','off');rec.style.opacity='1';var popup=rec.querySelector('.t-popup');if(!popup)return;var hook=popup.getAttribute('data-tooltip-hook');if(!hook)return;var analitics=popup.getAttribute('data-track-popup');var customCodeHTML=t868__readCustomCode(rec);var recBlocks=document.querySelectorAll('.r');for(var i=0;i<recBlocks.length;i++){recBlocks[i].addEventListener('click',function(event){var target=event.target;var href=target.closest('a[href$="'+hook+'"]')?target:!1;if(!href)return;event.preventDefault();t868_showPopup(rec,customCodeHTML);t_onFuncLoad('t_popup__resizePopup',function(){t_popup__resizePopup(recid)});if(hook.substring(0,7)==='#popup:'&&analitics&&window.Tilda){var virtTitle=hook;virtTitle=virtTitle.substring(7);Tilda.sendEventToStatistics(analitics,virtTitle)}})}
if(!popup.getAttribute('data-popup-inited')&&'MutationObserver' in window){popup.setAttribute('data-popup-inited','yes');var stores=document.querySelectorAll('body .t-store');Array.prototype.forEach.call(stores,function(store){new MutationObserver(function(mutationsList){for(var mutation in mutationsList){var event=mutationsList[mutation];if(event.type==='attributes'){if(event.target.className.indexOf('t-popup_show')!==-1){popup.style.zIndex='99999999';t868_initPopup(recid);}}}}).observe(store,{attributes:!0,attributeFilter:['class'],subtree:!0,})})}}
function t868__readCustomCode(rec){var codeWrap=rec.querySelector('.t868 .t868__code-wrap');if(!codeWrap)return;var customCode=codeWrap.innerHTML;return customCode}
function t868_showPopup(rec){var popup=rec.querySelector('.t-popup');if(!popup)return;var popupContainer=popup.querySelector('.t-popup__container');if(!popupContainer)return;var codeWrap=popup.querySelector('.t868__code-wrap');if(!codeWrap)return;var windowWidth=window.innerWidth;var screenMin=rec.getAttribute('data-screen-min');var screenMax=rec.getAttribute('data-screen-max');if(screenMin&&windowWidth<parseInt(screenMin,10))return;if(screenMax&&windowWidth>parseInt(screenMax,10))return;popup.style.display='block';codeWrap.style.display='block';t868_setHeight(rec);setTimeout(function(){popupContainer.classList.add('t-popup__container-animated');popup.classList.add('t-popup_show')},100);if(typeof t_triggerEvent==='function')t_triggerEvent(document.body,'popupShowed');document.body.classList.add('t-body_popupshowed');popup.addEventListener('click',function(event){var container=event.target.closest('.t-popup__container');if(!container)t868_closePopup(rec)});var closeButton=rec.querySelector('.t-popup__close');if(closeButton){closeButton.addEventListener('click',function(){t868_closePopup(rec)})}
var buttons=rec.querySelectorAll('a[href*="#"]');Array.prototype.forEach.call(buttons,function(button){button.addEventListener('click',function(){var url=button.getAttribute('href');if(url.indexOf('#order')!==-1){var popupContainer=rec.querySelector('.t-popup__container');setTimeout(function(){while(popupContainer.firstChild){popupContainer.removeChild(popupContainer.firstChild)}},600)}
if(!url||url.substring(0,7)!=='#price:'){t868_closePopup(rec);if(!url||url.substring(0,7)==='#popup:'){setTimeout(function(){if(typeof t_triggerEvent==='function')t_triggerEvent(document.body,'popupShowed');document.body.classList.add('t-body_popupshowed')},300)}}})});document.addEventListener('keydown',function(event){if(event.keyCode===27){t868_closePopup(rec)}})}
function t868_closePopup(rec){var popup=rec.querySelector('.t-popup');var codeWrap=rec.querySelector('.t868 .t868__code-wrap');if(typeof t_triggerEvent==='function')t_triggerEvent(document.body,'popupHidden');document.body.classList.remove('t-body_popupshowed');popup.classList.remove('t-popup_show');setTimeout(function(){if(!popup.classList.contains('.t-popup_show')){popup.style.display='none';if(codeWrap){codeWrap.style.display='none'}}},300)}
function t868_setHeight(rec){var videoCarier=rec.querySelector('.t868__video-carier');if(!videoCarier)return;var paddingLeft=parseInt(videoCarier.style.paddingLeft,10)||0;var paddingRight=parseInt(videoCarier.style.paddingRight,10)||0;var height=(videoCarier.clientWidth-(paddingLeft+paddingRight))/(16/9);videoCarier.style.height=height;Array.prototype.forEach.call(videoCarier.closest,function(parent){parent.style.height=height})}
if(!Element.prototype.matches){Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.msMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.oMatchesSelector}
if(!Element.prototype.closest){Element.prototype.closest=function(s){var el=this;while(el&&el.nodeType===1){if(Element.prototype.matches.call(el,s)){return el}
el=el.parentElement||el.parentNode}
return null}}
function t794_init(recid){var rec=document.getElementById('rec'+recid);var menu=rec?rec.querySelector('.t794'):null;var hook=menu?menu.getAttribute('data-tooltip-hook'):'';if(!hook)return;var hookLinks=document.querySelectorAll('a[href="'+hook+'"]');hookLinks=Array.prototype.filter.call(hookLinks,function(hookLink){var isSubmenuAllowed=hookLink.getAttribute('data-submenu-disallowed')!=='yes';if(isSubmenuAllowed){hookLink.classList.add('t794__tm-link');hookLink.setAttribute('data-tooltip-menu-id',recid);return!0}
return!1});var parentMenu=hookLinks.length?hookLinks[0].closest('[data-menu]'):null;var tooltipMenu=rec.querySelector('.t794__tooltip-menu');var isParentFixed=parentMenu&&window.getComputedStyle(parentMenu).position==='fixed';if(tooltipMenu)tooltipMenu.setAttribute('data-pos-fixed',isParentFixed?'yes':'no');t794_addArrow(recid,hookLinks);t794_setUpMenu(recid,hookLinks);t_onFuncLoad('t_submenublocks__highlightActiveLinks',function(){t_submenublocks__highlightActiveLinks('.t794__list_item a')});if(menu.hasAttribute('data-full-submenu-mob')&&(window.isMobile||'ontouchend' in document)){t_onFuncLoad('t_submenublocks__setFullScreenMenu',function(){t_submenublocks__setFullScreenMenu(menu)})}}
function t794_addArrow(recid,hookLinks){var rec=document.getElementById('rec'+recid);var submenuBlock=rec?rec.querySelector('.t794'):null;var isArrowAppend=submenuBlock.getAttribute('data-add-arrow');if(!isArrowAppend)return;hookLinks=Array.prototype.slice.call(hookLinks);hookLinks.forEach(function(hookLink){var arrow=document.createElement('div');arrow.classList.add('t794__arrow');hookLink.appendChild(arrow);var isInsideZero=hookLink.closest('.tn-atom');var hasCustomBorderColor=window.getComputedStyle(hookLink).borderColor!=='rgba(0, 0, 0, 0)';if(isInsideZero&&!hasCustomBorderColor){hookLink.style.borderColor='initial';hookLink.style.border='none'}})}
function t794_setUpMenu(recid,hookLinks){var rec=document.getElementById('rec'+recid);var submenu=rec?rec.querySelector('.t794__tooltip-menu'):null;if(!submenu)return;var menuBlock=rec?rec.querySelector('.t794'):null;var verticalIndent=menuBlock.getAttribute('data-tooltip-margin');var content=submenu.querySelector('.t794__content');var hooksAndSubmenu=hookLinks.concat(submenu);if(window.innerWidth>980&&!('ontouchend' in document)){t_onFuncLoad('t_submenublocks__addEventsDesktop',function(){t_submenublocks__addEventsDesktop(submenu,hooksAndSubmenu,verticalIndent,'.t794')})}else{t_onFuncLoad('t_submenublocks__addEventsMobile',function(){t_submenublocks__addEventsMobile(submenu,hookLinks,verticalIndent,'.t794')})}
window.addEventListener('scroll',t_throttle(function(){if(content){content.addEventListener('mouseleave',function(){if(submenu.classList.contains('t794__tooltip-menu_show')){t_onFuncLoad('t_submenublocks__hideSubmenu',function(){t_submenublocks__hideSubmenu(submenu,'.t794')})}})}},300));var tooltipLinks=document.querySelectorAll('.t794__tooltip-menu a[href*="#"]');Array.prototype.forEach.call(tooltipLinks,function(tooltipLink){tooltipLink.addEventListener('click',function(){t_onFuncLoad('t_submenublocks__hideSubmenu',function(){t_submenublocks__hideSubmenu(submenu,'.t794')});var menuList=document.querySelectorAll('.t450, .t199__mmenu, .t280, .t282, .t204__burger, .t451, .t466');Array.prototype.forEach.call(menuList,function(menu){var event=document.createEvent('Event');event.initEvent('clickedAnchorInTooltipMenu',!0,!0);menu.dispatchEvent(event)});Array.prototype.forEach.call(tooltipLinks,function(link){link.classList.remove('t-active')});tooltipLink.classList.add('t-active')})})}
function t604_init(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;t604_imageHeight(recid);t604_arrowWidth(recid);t604_show(recid);t604_hide(recid);window.addEventListener('resize',t_throttle(function(){t_onFuncLoad('t_slds_updateSlider',function(){t_slds_updateSlider(recid)});t604_arrowWidth(recid)}));if(typeof jQuery!=='undefined'){$(rec).find('.t604').bind('displayChanged',function(){t_onFuncLoad('t_slds_updateSlider',function(){t_slds_updateSlider(recid)});t604_arrowWidth(recid)})}else{var currentBlock=rec.querySelector('.t604');if(currentBlock){currentBlock.addEventListener('displayChanged',function(){t_onFuncLoad('t_slds_updateSlider',function(){t_slds_updateSlider(recid)});t604_arrowWidth(recid)})}}}
function t604_show(recid){var rec=document.getElementById('rec'+recid);var playBtns=rec.querySelectorAll('.t604__play');Array.prototype.forEach.call(playBtns,function(play){play.addEventListener('click',function(){var parent=play.parentElement;var videoBg=parent?parent.querySelector('.t-slds__bgimg'):null;if(videoBg)videoBg.style.opacity='0';var sliderVideo=play.getAttribute('data-slider-video-type');var url=play.getAttribute('data-slider-video-url');var nextEl=play.nextElementSibling;if(nextEl)nextEl.style.zIndex='3';var iframe;switch(sliderVideo){case 'youtube':iframe=document.createElement('iframe');iframe.classList.add('t604__iframe');iframe.width='100%';iframe.height='100%';iframe.src='https://www.youtube.com/embed/'+url+'?autoplay=1&enablejsapi=1';iframe.frameBorder='0';iframe.setAttribute('webkitallowfullscreen','');iframe.setAttribute('mozallowfullscreen','');iframe.setAttribute('allowfullscreen','');iframe.setAttribute('allow','autoplay');if(nextEl)nextEl.innerHTML='';if(nextEl)nextEl.appendChild(iframe);break;case 'vimeo':var idMatch=/vimeo[^/]*\/(\d+)\/?(\w*)\/?/i.exec(url);var id=idMatch?idMatch[1]:null;var hash=idMatch?'?h='+idMatch[2]:null;iframe=document.createElement('iframe');iframe.classList.add('t604__iframe');iframe.width='100%';iframe.height='100%';iframe.src='https://player.vimeo.com/video/'+id+hash+'?autoplay=1&amp;api=1';iframe.frameBorder='0';iframe.setAttribute('webkitallowfullscreen','');iframe.setAttribute('mozallowfullscreen','');iframe.setAttribute('allowfullscreen','');if(nextEl)nextEl.innerHTML='';if(nextEl)nextEl.appendChild(iframe);break}})})}
function t604_hide(recid){var rec=document.getElementById('rec'+recid);var frames=rec.querySelectorAll('.t604__frame');rec.addEventListener('updateSlider',function(){Array.prototype.forEach.call(frames,function(frame){frame.innerHTML='';frame.style.zIndex=''})})}
function t604_imageHeight(recid){var rec=document.getElementById('rec'+recid);var images=rec.querySelectorAll('.t604__separator');Array.prototype.forEach.call(images,function(image){var imgHeight=image.getAttribute('data-slider-image-height');var imgWidth=image.getAttribute('data-slider-image-width');var imgRatio=imgHeight/imgWidth;var imgPadding=imgRatio*100;image.style.paddingBottom=imgPadding+'%'})}
function t604_arrowWidth(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var arrows=rec.querySelectorAll('.t-slds__arrow_wrapper');var slide=rec.querySelector('.t-slds__item_active .t-slds__wrapper');var slideWidth=slide?slide.offsetWidth:0;if(slide&&slideWidth===0){t_onFuncLoad('t_slds_SliderWidth',function(){setTimeout(function(){slideWidth=slide.offsetWidth;t604__updateArrowWidth(slideWidth,arrows)},300)})}else{t604__updateArrowWidth(slideWidth,arrows)}}
function t604__updateArrowWidth(slideWidth,arrows){var calcArrowWidth=window.innerWidth-slideWidth;var arrowWidth=window.innerWidth>960?(calcArrowWidth/2)+'px':'';if(arrowWidth!=='0px'&&arrowWidth!==''){Array.prototype.forEach.call(arrows,function(arrow){arrow.style.width=arrowWidth})}}
function t604__UpdateSliderArrowsHeight(recid){var sliderRec=document.getElementById('rec'+recid);if(!sliderRec)return;var activeItem=sliderRec.querySelector('.t-slds__item_active');if(activeItem){var separator=activeItem.querySelector('.t604__separator');var isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);var offsetForVideoBtns=0;var isVideo=activeItem.querySelector('[data-slider-video-type]');if(isVideo&&isMobile)offsetForVideoBtns=40;var itemPaddingTop=parseInt(getComputedStyle(activeItem).paddingTop)||0;var itemPaddingBottom=parseInt(getComputedStyle(activeItem).paddingBottom)||0;var height=(itemPaddingTop+itemPaddingBottom)-offsetForVideoBtns;if(separator&&separator.hasAttribute('data-slider-image-height')&&activeItem.clientHeight===0){height=parseInt(separator.getAttribute('data-slider-image-height'))-height}else{height=activeItem.clientHeight-height}}
var arrowWrappers=sliderRec.querySelectorAll('.t-slds__arrow_wrapper');if(height&&arrowWrappers.length>0){Array.prototype.forEach.call(arrowWrappers,function(arrowWrapper){arrowWrapper.style.height=height+'px';var arrow=arrowWrapper.querySelector('.t-slds__arrow');if(arrow)arrow.style.marginTop=offsetForVideoBtns/2+'px'})}}
function t598_init(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t598');if(!container)return;t598_setEqualHeight(recId);window.addEventListener('resize',t_throttle(function(){t598_setEqualHeight(recId)}));if(typeof jQuery!=='undefined'){$(container).on('displayChanged',function(){t598_setEqualHeight(recId)})}else{container.addEventListener('displayChanged',function(){t598_setEqualHeight(recId)})}}
function t598_setEqualHeight(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t598');if(!container)return;var titles=rec.querySelectorAll('.t598__title');var descriptions=rec.querySelectorAll('.t598__descr');var prices=rec.querySelectorAll('.t598__price');var imageWrappers=rec.querySelectorAll('.t598__imgwrapper');if(titles.length>0)t598_updateHeight(titles);if(descriptions.length>0)t598_updateHeight(descriptions);if(prices.length>0)t598_updateHeight(prices);if(imageWrappers.length>0){t598_updateHeight(imageWrappers);window.onload=function(){t598_updateHeight(imageWrappers)}}}
function t598_updateHeight(elements){var maxHeight=0;for(var i=0;i<elements.length;i++){elements[i].style.height=''}
for(var i=0;i<elements.length;i++){var element=elements[i];var elementStyle=getComputedStyle(element,null);var elementPaddingTop=parseInt(elementStyle.paddingTop)||0;var elementPaddingBottom=parseInt(elementStyle.paddingBottom)||0;var elementHeight=element.clientHeight-(elementPaddingTop+elementPaddingBottom);if(elementHeight>maxHeight)maxHeight=elementHeight}
if(window.innerWidth>=960){for(var i=0;i<elements.length;i++){elements[i].style.height=maxHeight+'px'}}else{for(var i=0;i<elements.length;i++){elements[i].style.height=''}}}
function t1069_init(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t1069');if(!container)return;t_onFuncLoad('t_card__addFocusOnTab',function(){t_card__addFocusOnTab(recId)});var rows=rec.querySelectorAll('.t1069__row');Array.prototype.forEach.call(rows,function(row){var titles=row.querySelectorAll('.t-card__title');var descriptions=row.querySelectorAll('.t-card__descr');var prices=row.querySelectorAll('.t1069__price');var subtitles=row.querySelectorAll('.t-card__uptitle');if(titles.length>0)t1069_equalHeight(titles);if(descriptions.length>0)t1069_equalHeight(descriptions);if(prices.length>0)t1069_equalHeight(prices);if(subtitles.length>0)t1069_equalHeight(subtitles)})}
function t1069_equalHeight(elements){var maxHeight=0;for(var i=0;i<elements.length;i++){elements[i].style.height=''}
for(var i=0;i<elements.length;i++){var element=elements[i];var elementStyle=getComputedStyle(element,null);var elementPaddingTop=parseInt(elementStyle.paddingTop)||0;var elementPaddingBottom=parseInt(elementStyle.paddingBottom)||0;var elementHeight=element.clientHeight-(elementPaddingTop+elementPaddingBottom);if(elementHeight>maxHeight)maxHeight=elementHeight}
if(window.innerWidth>=960){for(var i=0;i<elements.length;i++){elements[i].style.height=maxHeight+'px'}}else{for(var i=0;i<elements.length;i++){elements[i].style.height=''}}}
function t979_init(recid,rowheight,guttersizer){var rec=document.getElementById('rec'+recid);if(!rec)return;var grid=rec.querySelector('.t979__grid');if(!grid)return;var items=rec.querySelectorAll('.t979__grid-item');var images=rec.querySelectorAll('.t979__image');var overlayList=rec.querySelectorAll('.t979__overlay');if(guttersizer==='')guttersizer=0;t979_reverse(grid);t979_initMasonry(rec,recid,grid,rowheight,guttersizer,images);if(typeof jQuery!=='undefined'){$(rec).find('.t979').bind('displayChanged',t_throttle(function(){var gutterSizer=parseInt(guttersizer,10);var heightSizer=parseInt(rowheight,10);var containerWidth=grid?grid.offsetWidth:0;var imageWidths=t979_getImageWidths(grid,heightSizer);var rows=t979_divideRows(imageWidths,containerWidth);var heights=[];t979_fitItemsByWidth(rows,heights,containerWidth,heightSizer,gutterSizer);t979_updateItems(grid,rows,heights,gutterSizer);t979_updateGridHeight(grid,heights,gutterSizer)}))}else{var currentBlock=rec.querySelector('.t979');currentBlock.addEventListener('displayChanged',t_throttle(function(){var gutterSizer=parseInt(guttersizer,10);var heightSizer=parseInt(rowheight,10);var containerWidth=grid?grid.offsetWidth:0;var imageWidths=t979_getImageWidths(grid,heightSizer);var rows=t979_divideRows(imageWidths,containerWidth);var heights=[];t979_fitItemsByWidth(rows,heights,containerWidth,heightSizer,gutterSizer);t979_updateItems(grid,rows,heights,gutterSizer);t979_updateGridHeight(grid,heights,gutterSizer)}))}
window.addEventListener('resize',t_throttle(function(){var gutterSizer=parseInt(guttersizer,10);var heightSizer=parseInt(rowheight,10);var containerWidth=grid?grid.offsetWidth:0;var imageWidths=t979_getImageWidths(grid,heightSizer);var rows=t979_divideRows(imageWidths,containerWidth);var heights=[];t979_fitItemsByWidth(rows,heights,containerWidth,heightSizer,gutterSizer);t979_updateItems(grid,rows,heights,gutterSizer);t979_updateGridHeight(grid,heights,gutterSizer)}));t_onFuncLoad('imagesLoaded',function(){imagesLoaded(grid,function(){t979_initMasonry(rec,recid,grid,rowheight,guttersizer,images);Array.prototype.forEach.call(images,function(img){img.style.display='block'})})})}
function t979_reverse(grid){if(grid&&grid.classList.contains('t979__grid_reverse')){for(var i=grid.childElementCount-2;i>=0;i--){grid.appendChild(grid.children[i])}}}
function t979_initMasonry(rec,recid,grid,rowheight,guttersizer,images){var gutterSizer=parseInt(guttersizer,10);var heightSizer=parseInt(rowheight,10);Array.prototype.forEach.call(images,function(img){if(/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&window.lazy==='y'){t979__waitLazyLoadIMG(img,function(){t979_eventOnLoadImg(grid,heightSizer,gutterSizer)})}else{if(img.complete&&img.naturalHeight&&img.naturalWidth){t979_eventOnLoadImg(grid,heightSizer,gutterSizer)}else{img.addEventListener('load',function(){t979_eventOnLoadImg(grid,heightSizer,gutterSizer)})}}})}
function t979__waitLazyLoadIMG(img,cb){if(img.complete&&img.naturalHeight&&img.naturalWidth){cb()}else{setTimeout(function(){t979__waitLazyLoadIMG(img,cb)},500)}}
function t979_eventOnLoadImg(grid,heightSizer,gutterSizer){var containerWidth=grid?grid.offsetWidth:0;var imageWidths=t979_getImageWidths(grid,heightSizer);var rows=t979_divideRows(imageWidths,containerWidth);var heights=[];t979_fitItemsByWidth(rows,heights,containerWidth,heightSizer,gutterSizer);t979_updateItems(grid,rows,heights,gutterSizer);t979_updateGridHeight(grid,heights,gutterSizer)}
function t979_getImageWidths(grid,heightSizer){var imageWidths=[];if(!grid)return!1;var images=grid.querySelectorAll('.t979__image');Array.prototype.forEach.call(images,function(img){imageWidths.push(img.naturalWidth*heightSizer/img.naturalHeight)});return imageWidths}
function t979_divideRows(imageWidths,containerWidth){var rows=[];var curRow=0;var rowWidth=0;Array.prototype.forEach.call(imageWidths,function(item){rowWidth+=item;if(typeof rows[curRow]=='undefined'){rows[curRow]=[]}
rows[curRow].push(item);if(rowWidth>=containerWidth){curRow+=1;rowWidth=0}});return rows}
function t979_fitItemsByWidth(rows,heights,containerWidth,heightSizer,gutterSizer){rows.forEach(function(row){var sumWidth=0;var thresholdRatio=1.5;var rowWidth=containerWidth-gutterSizer*(row.length-1);row.forEach(function(width){sumWidth+=width});var ratio=rowWidth/sumWidth;if(ratio<thresholdRatio){row.forEach(function(width,curRow){width*=ratio;row[curRow]=width});heights.push(heightSizer*ratio)}else{heights.push(heightSizer)}
sumWidth=0;row.forEach(function(width){sumWidth+=width})})}
function t979_updateItems(grid,rows,heights,gutterSizer){if(!grid)return!1;var curRow=0;var curCol=0;var top=0;var left=0;var width=0;var height=0;var items=grid.querySelectorAll('.t979__grid-item');Array.prototype.forEach.call(items,function(item){if(curCol>=rows[curRow].length){top+=heights[curRow];curRow++;curCol=0;if(curRow!==0){top+=gutterSizer}
left=0}
left+=rows[curRow][curCol-1]?rows[curRow][curCol-1]+gutterSizer:0;width=rows[curRow][curCol];height=heights[curRow];item.style.top=top+'px';item.style.left=left+'px';item.style.width=width+'px';item.style.height=height+'px';curCol++})}
function t979_updateGridHeight(grid,heights,gutterSizer){var sumHeight=heights.reduce(function(cur,acc){return cur+acc+gutterSizer},0);sumHeight-=gutterSizer;if(grid)grid.style.height=sumHeight+'px'}
t_onReady(function(){t_onFuncLoad('t782_init',function(){t782_init()})});function t782_init(){var allBlocksST105=document.querySelectorAll('[data-record-type="782"]');if(window.st105_inited==='yes'&&allBlocksST105.length>1){console.error('Error: More than one payment block (ST105) on the page. Remove a duplicate.');return}
window.st105_inited='yes';window.tildaGetPaymentForm=function(price,product,paysystem,blockid,lid,uid,orderLink,capthaKey){var allRecords=document.querySelector('#allrecords');var nextUrl='htt'+'ps://'+window.tildaForm.endpoint+'/payment/next/';var virtualPage='/tilda/'+blockid+'/payment/';var virtualTitle='Go to payment from '+blockid;if(window.Tilda&&typeof Tilda.sendEventToStatistics==='function'){Tilda.sendEventToStatistics(virtualPage,virtualTitle,product,price)}
var requestData={projectid:allRecords.getAttribute('data-tilda-project-id'),pageid:allRecords.getAttribute('data-tilda-page-id'),formskey:allRecords.getAttribute('data-tilda-formskey'),price:price,product:product,system:paysystem,recid:blockid,'tildaspec-version-lib':2.1,lid:lid?lid:'',uid:uid?uid:'',};if(capthaKey)requestData['tildaspec-tildacaptcha']=capthaKey;var formData=new FormData();for(var key in requestData){formData.append(key,requestData[key])}
var request=new XMLHttpRequest();request.open('POST',nextUrl,!0);request.timeout=10000;request.responseType='json';request.send(formData);request.onload=function(){var data=request.response;if(orderLink){orderLink.classList.remove('t-btn_sending')}
submitFlag=0;if(data&&data.redirectto&&data.redirectto.length==3){window.tildaForm.endpoint='forms.tildaapi'+'.'+data.redirectto;tildaGetPaymentForm(price,product,paysystem,blockid,lid,uid,orderLink,capthaKey);return!1}
if(data&&data.needcaptcha){t782_drawRecaptcha(price,product,paysystem,blockid,lid,uid,orderLink);return!1}
if(data&&data.next&&data.next.type>''){var result=window.tildaForm.payment(document.querySelector('#'+blockid),data.next);successurl='';return!1}
if(data&&data.error){alert(data.error)}};request.onerror=function(error){if(orderLink){orderLink.classList.remove('t-btn_sending')}
submitFlag=0;var errorText='';if(error&&error.responseText>''){errorText=error.responseText+'. Please, try again later.'}else if(error&&error.statusText){errorText='Error ['+error.statusText+']. Please, try again later.'}else{errorText='Unknown error. Please, try again later.'}
alert(errorText)}};var payBox=document.querySelector('.js-payment-systembox');var submitFlag=0;var clickEvent=function(event){var orderLink=event.target.closest('a[href^="#order:"]');if(!orderLink)return;event.preventDefault();if(submitFlag===1){return!1}
var isST100Exist=document.querySelector('.t706');if(isST100Exist){var text='Conflict error: there are two incompatible blocks on the page: ST100 and ST105. Please go to Tilda Editor and delete one of these blocks.';if(window.browserLang==='RU'){text='Ошибка: на странице есть два несовместимых блока: ST100 и ST105. Пожалуйста, перейдите в редактор Тильды и удалите один из этих блоков.'}
console.error(text);return!1}
orderLink.classList.add('t-btn_sending');submitFlag=1;var tempOrder=orderLink.getAttribute('href');var orderParameters;var price=0;var product='';var lid='';var uid='';if(tempOrder.substring(0,7)==='#order:'){tempOrder=tempOrder.split(':');orderParameters=tempOrder[1].split('=');price=t782_cart__cleanPrice(orderParameters[1]);product=t782_cart__escapeHtml(orderParameters[0])}else{var productElement=orderLink.closest('.js-product');if(productElement){if(product===''){product=productElement.querySelector('.js-product-name').textContent;product=product?product:''}
if(price===''||price===0){price=productElement.querySelector('.js-product-price').textContent;price=t782_cart__cleanPrice(price)}
lid=productElement.getAttribute('data-product-lid')||'';uid=productElement.getAttribute('data-product-uid')||productElement.getAttribute('data-product-gen-uid')||'';var optprice=0;var options=[];var productOptions=productElement.querySelectorAll('.js-product-option');Array.prototype.forEach.call(productOptions,function(option){var productOption=option.querySelector('.js-product-option-name').textContent;var checkedOption=option.querySelector('option:checked');if(!checkedOption)return;var productVariant=checkedOption.value;var productPrice=checkedOption.getAttribute('data-product-variant-price');productPrice=t782_cart__cleanPrice(productPrice);if(productOption&&productVariant){productOption=t782_cart__escapeHtml(productOption);productVariant=t782_cart__escapeHtml(productVariant);productVariant=productVariant.replace(/(?:\r\n|\r|\n)/g,'');if(productOption.length>1&&productOption.charAt(productOption.length-1)==':'){productOption=productOption.substring(0,productOption.length-1)}
optprice=optprice+parseFloat(productPrice).toFixed(2);options.push(productOption+'='+productVariant)}});if(options.length){product=product+': '+options.join(', ')}}}
var blockid=orderLink.closest('.r').getAttribute('id');var paySystems=document.querySelectorAll('.js-dropdown-paysystem .js-payment-system');if(!product){var closestTitle=orderLink.closest('.r').querySelector('.title');if(closestTitle){product=closestTitle.textContent}else{product=orderLink.textContent}}
if(paySystems.length===0){alert('Error: payment system is not assigned. Add payment system in the Site Settings.');orderLink.classList.remove('t-btn_sending');submitFlag=0;return}
if(paySystems.length/allBlocksST105.length===1){var currentPaySystem=paySystems[0].getAttribute('data-payment-system');tildaGetPaymentForm(price,product,currentPaySystem,blockid,lid,uid,orderLink);return}else{var payBoxPaddingLeft=parseInt(window.getComputedStyle(payBox).paddingLeft,10);var payBoxPaddingRight=parseInt(window.getComputedStyle(payBox).paddingRight,10);var payBoxOuterWidth=parseInt(window.getComputedStyle(payBox).width,10);var payBoxWidth=payBoxOuterWidth-(payBoxPaddingLeft+payBoxPaddingRight);var orderLinkOffset={top:orderLink.getBoundingClientRect().top+window.pageYOffset,left:orderLink.getBoundingClientRect().left+window.pageXOffset,};payBox.style.top=orderLinkOffset.top+'px';t782_setPayBoxCoordinate(payBox,payBoxWidth,orderLinkOffset,orderLink);payBox.style.marginTop='-40px';payBox.style.position='absolute';payBox.style.zIndex='9999999';document.querySelector('body').appendChild(payBox);window.addEventListener('resize',function(){if(window.getComputedStyle(payBox).display==='block'&&orderLink){payBox.style.top=orderLinkOffset.top+'px';t782_setPayBoxCoordinate(payBox,payBoxWidth,orderLinkOffset,orderLink)}});payBox.style.display='block';document.addEventListener('click',hidePayBox,!1);function hidePayBox(event){event.stopPropagation();event.preventDefault();if(!orderLink.contains(event.target)){var closestOrderLink=event.target.closest('a[href^="#order"]');orderLink.classList.remove('t-btn_sending');submitFlag=0;payBox.style.display='none';payBox.removeEventListener('click',sendRequest,!1);document.removeEventListener('click',hidePayBox,!1);if(closestOrderLink)closestOrderLink.click()}}
function sendRequest(event){event.preventDefault();var paySystem=event.target;payBox.style.display='none';tildaGetPaymentForm(price,product,paySystem.getAttribute('data-payment-system'),blockid,lid,uid,orderLink);payBox.removeEventListener('click',sendRequest,!1)}
payBox.addEventListener('click',sendRequest,!1)}};var allRecords=document.querySelectorAll('.r');Array.prototype.forEach.call(allRecords,function(rec){rec.addEventListener('click',function(event){clickEvent(event)})});function t782_setPayBoxCoordinate(payBox,payBoxWidth,orderLinkOffset,orderLink){var orderLinkWidth=orderLink.getBoundingClientRect().width;var currentOrderLinkOffset=orderLinkOffset.left+orderLinkWidth/2;var payBoxMargin=payBoxWidth/2;if(window.innerWidth<=375){payBox.style.left='50%';payBox.style.marginLeft='-'+payBoxWidth/2+'px'}else if(t782_isInViewport(payBox)){payBox.style.marginLeft='-'+payBoxMargin+'px'}else{payBox.style.left=currentOrderLinkOffset+'px';payBox.style.marginLeft='-'+payBoxMargin+'px'}}
function t782_isInViewport(element){var rect=element.getBoundingClientRect();return(rect.top>=0&&rect.left>=0&&rect.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&rect.right<=(window.innerWidth||document.documentElement.clientWidth))}
function t782_cart__escapeHtml(text){var map={'<':'&lt;','>':'&gt;','"':'&quot;',"'":'&#039;',};return text.replace(/[<>"']/g,function(m){return map[m]})}
function t782_cart__cleanPrice(price){if(!price){price=0}else{price=price.replace(',','.');price=price.replace(/[^0-9\.]/g,'');price=parseFloat(price).toFixed(2);if(isNaN(price))price=0;price=parseFloat(price);price=price*1;if(price<0)price=0}
return price}}
function t782_drawRecaptcha(price,product,paysystem,blockid,lid,uid,orderLink){var allRecords=document.getElementById('allrecords');var formKey=allRecords.getAttribute('data-tilda-formskey');var rec=document.querySelector('[data-record-type="782"]');var recId=rec.getAttribute('id').replace('rec','');var formCaptchaBox=document.getElementById('tilda-form-captcha-box');if(formCaptchaBox)t_removeEl(formCaptchaBox);var randomKey;try{randomKey=''+new Date().getTime()+'='+parseInt(Math.random()*8,10)}catch(e){randomKey='rnd='+parseInt(Math.random()*8,10)}
var html='';html+='<div id="tilda-form-captcha-box" style="z-index: 99999999999; position:fixed; text-align: center; vertical-align: middle; top: 0px; left:0px; bottom: 0px; right: 0px; background: rgba(255,255,255,0.97);">';html+='<iframe id="captchaIframeBox" src="//'+window.tildaForm.endpoint+'/procces/captcha/?tildaspec-formid=';html+=recId+'&tildaspec-formskey='+formKey+'&'+randomKey+'"';html+=' frameborder="0" width="100%" height="100%">';html+='</iframe>';html+='</div>';document.body.insertAdjacentHTML('beforeend',html);if(!window.isT782AddRecaptchaEvent){window.isT782AddRecaptchaEvent=!0;window.addEventListener('message',function(event){t782_checkVerifyTildaCaptcha(event,price,product,paysystem,blockid,lid,uid,orderLink)})}}
function t782_checkVerifyTildaCaptcha(event,price,product,paysystem,blockid,lid,uid,orderLink){event=event||window.event;if(event.origin.indexOf(window.tildaForm.endpoint)!==-1){var formCaptchaBox=document.getElementById('tilda-form-captcha-box');if(event.data=='closeiframe'){if(formCaptchaBox)t_removeEl(formCaptchaBox);return}
var capthaKey=event.data;if(formCaptchaBox)t_removeEl(formCaptchaBox);tildaGetPaymentForm(price,product,paysystem,blockid,lid,uid,orderLink,capthaKey)}}
if(!Element.prototype.matches){Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.msMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.oMatchesSelector}
if(!Element.prototype.closest){Element.prototype.closest=function(s){var el=this;while(el&&el.nodeType===1){if(Element.prototype.matches.call(el,s)){return el}
el=el.parentElement||el.parentNode}
return null}}
function t696_onSuccess(form){t_onFuncLoad('t_forms__onSuccess',function(){t_forms__onSuccess(form)})}
function t268_init(recId){var rec=document.getElementById('rec'+recId);var container=rec.querySelector('.t268');t268_setHeight(recId);window.addEventListener('resize',function(){t268_setHeight(recId)});if(typeof jQuery!=='undefined'){$(container).on('displayChanged',function(){t268_setHeight(recId)})}else{container.addEventListener('displayChanged',function(){t268_setHeight(recId)})}}
function t268_setHeight(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t268');if(!container)return;var colRight=rec.querySelector('.t268__col-right');var colLeft=rec.querySelector('.t268__col-left');var colStyle=getComputedStyle(colRight,null);var colPaddingTop=parseInt(colStyle.paddingTop)||0;var colPaddingBottom=parseInt(colStyle.paddingBottom)||0;var colHeight=colRight.clientHeight-(colPaddingTop+colPaddingBottom);colLeft.style.height=colHeight+'px'}
function t121_init(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var wrapperBlock=rec.querySelector('.t121');var videoLazy=rec.querySelector('.t-video-lazyload');if(videoLazy){t_onFuncLoad('t_video_lazyload__setHeight',function(){var videoHeight=videoLazy.getAttribute('data-videolazy-height');if(videoHeight!=='540px')return;t_video_lazyload__setHeight(videoLazy);window.addEventListener('resize',function(){t_video_lazyload__setHeight(videoLazy)});if(!wrapperBlock)return;wrapperBlock.addEventListener('displayChanged',function(){t_video_lazyload__setHeight(videoLazy)})})}
var videoCarrier=rec.querySelector('.t-video-carier');if(!videoCarrier)return;var screenMin=rec.getAttribute('data-screenmin');var screenMax=rec.getAttribute('data-screenmax');var isLoad=!1;if(window.innerWidth<parseInt(screenMin,10)||window.innerWidth>parseInt(screenMax,10))return;window.addEventListener('scroll',t_throttle(function(){if(!isLoad){var videoCarrierOffsetTop=videoCarrier.getBoundingClientRect().top+window.pageYOffset;var videoCarrierHeight=parseInt(window.getComputedStyle(videoCarrier).height,10);var windowScrollTop=window.pageYOffset;var windowHeight=window.innerHeight;if(windowScrollTop+windowHeight>videoCarrierOffsetTop-500&&windowScrollTop<videoCarrierOffsetTop+videoCarrierHeight+501){t_onFuncLoad('processYoutubeVideo',function(){processYoutubeVideo(videoCarrier,videoCarrier.style.height)});isLoad=!0}}}));var event=document.createEvent('HTMLEvents');event.initEvent('scroll',!0,!1);window.dispatchEvent(event)}
window.requestAnimationFrame=(function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){window.setTimeout(callback,1000/60)}})();function t270_scroll(hash,offset){if(!hash)return;t270_checkLoad(hash,offset);if(hash.indexOf('#!/tproduct/')!==-1||hash.indexOf('#!/tab/')!==-1){return!0}
var isHistoryChangeAllowed=window.location.hash!==hash;var wrapperBlock=document.querySelector('.t270');var dontChangeHistory=wrapperBlock?Boolean(wrapperBlock.getAttribute('data-history-disabled')):!1;t270_scrollToEl(hash,offset);if(!dontChangeHistory&&isHistoryChangeAllowed){if(history.pushState){history.pushState(null,null,hash)}else{window.location.hash=hash}
isHistoryChangeAllowed=!1}
return!0}
function t270_checkLoad(hash,offset){if(window.t270_loadChecked)return;var sliderWrappers=document.body.querySelectorAll('.t-slds__items-wrapper');if(!sliderWrappers.length)return;var lastWrapper=sliderWrappers[sliderWrappers.length-1];var sliderImgs=lastWrapper?lastWrapper.querySelectorAll('.t-slds__bgimg'):[];var lastImg=sliderImgs[sliderImgs.length-1];var imageUrl=lastImg?window.getComputedStyle(lastImg).backgroundImage:'';imageUrl=imageUrl.substring(5,imageUrl.length-2);var preloaderImg=document.createElement('img');preloaderImg.src=imageUrl?imageUrl:'';preloaderImg.addEventListener('load',function(){t270_scroll(hash,offset);window.t270_loadChecked=!0})}
function t270_scrollToEl(hash,offset){if(document.body.getAttribute('data-scroll'))return;var scrollTargetY=t270_getTarget(hash,offset);if(isNaN(scrollTargetY))return;var body=document.body;var canSmoothScroll=window.CSS&&window.CSS.supports('scroll-behavior','smooth');if(window.isMobile&&canSmoothScroll&&'scrollBehavior' in document.documentElement.style){body.setAttribute('data-scroll','true');window.scrollTo({left:0,top:scrollTargetY,behavior:'smooth'});setTimeout(function(){body.removeAttribute('data-scroll')},500)}else{var html=document.querySelector('html');var documentHeight=Math.max(body.scrollHeight,body.offsetHeight,body.clientHeight,html.offsetHeight);var scrollY=window.scrollY||document.documentElement.scrollTop;var speed=2000;var time=Math.max(.1,Math.min(Math.abs(scrollY-scrollTargetY)/speed,.8));var currentTime=0;function t270_easeInQuad(pos){return Math.pow(pos,2)}
function t270_animationScroll(){currentTime+=1/60;var newDocumentHeight=Math.max(body.scrollHeight,body.offsetHeight,body.clientHeight,html.offsetHeight);if(documentHeight<newDocumentHeight){documentHeight=newDocumentHeight;scrollTargetY=t270_getTarget(hash,offset);scrollY=window.scrollY||document.documentElement.scrollTop;time=Math.max(.1,Math.min(Math.abs(scrollY-scrollTargetY)/speed,.8))}
var difference=currentTime/time;var animation=t270_easeInQuad(difference);if(difference<1){requestAnimationFrame(t270_animationScroll);window.scrollTo(0,scrollY+((scrollTargetY-scrollY)*animation))}else{body.removeAttribute('data-scroll');body.removeAttribute('data-scrollable');window.scrollTo(0,scrollTargetY)}}
body.setAttribute('data-scroll','true');body.setAttribute('data-scrollable','true');t270_animationScroll()}}
function t270_getTarget(hash,offset){var target;try{if(hash.substring(0,1)==='#'){target=document.getElementById(hash.substring(1))}else{target=document.querySelector(hash)}}catch(event){console.log('Exception t270: '+event.message);return}
if(!target){target=document.querySelector('a[name="'+hash.substr(1)+'"], div[id="'+hash.substr(1)+'"]');if(!target)return}
target=parseInt((target.getBoundingClientRect().top+window.pageYOffset)-offset,10);target=Math.max(target,0);return target}
function t702_initPopup(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t702');if(!container)return;rec.setAttribute('data-animationappear','off');rec.setAttribute('data-popup-subscribe-inited','y');rec.style.opacity=1;var documentBody=document.body;var popup=rec.querySelector('.t-popup');var popupTooltipHook=popup.getAttribute('data-tooltip-hook');var analitics=popup.getAttribute('data-track-popup');var popupCloseBtn=popup.querySelector('.t-popup__close');var hrefs=rec.querySelectorAll('a[href*="#"]');var submitHref=rec.querySelector('.t-submit[href*="#"]');if(popupTooltipHook){t_onFuncLoad('t_popup__addAttributesForAccessibility',function(){t_popup__addAttributesForAccessibility(popupTooltipHook)});document.addEventListener('click',function(event){var target=event.target;var href=target.closest('a[href$="'+popupTooltipHook+'"]')?target:!1;if(!href)return;event.preventDefault();t702_showPopup(recId);t_onFuncLoad('t_popup__resizePopup',function(){t_popup__resizePopup(recId)});t702__lazyLoad();if(analitics&&window.Tilda){Tilda.sendEventToStatistics(analitics,popupTooltipHook)}});t_onFuncLoad('t_popup__addClassOnTriggerButton',function(){t_popup__addClassOnTriggerButton(document,popupTooltipHook)})}
popup.addEventListener('scroll',t_throttle(function(){t702__lazyLoad()}));popup.addEventListener('click',function(event){var windowWithoutScrollBar=window.innerWidth-17;if(event.clientX>windowWithoutScrollBar)return;if(event.target===this)t702_closePopup(recId)});popupCloseBtn.addEventListener('click',function(){t702_closePopup(recId)});if(submitHref){submitHref.addEventListener('click',function(){if(documentBody.classList.contains('t-body_scroll-locked')){documentBody.classList.remove('t-body_scroll-locked')}})}
for(var i=0;i<hrefs.length;i++){hrefs[i].addEventListener('click',function(){var url=this.getAttribute('href');if(!url||url.substring(0,7)!='#price:'){t702_closePopup(recId);if(!url||url.substring(0,7)=='#popup:'){setTimeout(function(){if(typeof t_triggerEvent==='function')t_triggerEvent(document.body,'popupShowed');documentBody.classList.add('t-body_popupshowed')},300)}}})}
function t702_escClosePopup(event){if(event.key==='Escape')t702_closePopup(recId)}
popup.addEventListener('tildamodal:show'+popupTooltipHook,function(){document.addEventListener('keydown',t702_escClosePopup)});popup.addEventListener('tildamodal:close'+popupTooltipHook,function(){document.removeEventListener('keydown',t702_escClosePopup)})}
function t702_lockScroll(){var documentBody=document.body;if(!documentBody.classList.contains('t-body_scroll-locked')){var bodyScrollTop=typeof window.pageYOffset!=='undefined'?window.pageYOffset:(document.documentElement||documentBody.parentNode||documentBody).scrollTop;documentBody.classList.add('t-body_scroll-locked');documentBody.style.top='-'+bodyScrollTop+'px';documentBody.setAttribute('data-popup-scrolltop',bodyScrollTop)}}
function t702_unlockScroll(){var documentBody=document.body;if(documentBody.classList.contains('t-body_scroll-locked')){var bodyScrollTop=documentBody.getAttribute('data-popup-scrolltop');documentBody.classList.remove('t-body_scroll-locked');documentBody.style.top=null;documentBody.removeAttribute('data-popup-scrolltop');document.documentElement.scrollTop=parseInt(bodyScrollTop)}}
function t702_showPopup(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t702');if(!container)return;var windowWidth=window.innerWidth;var screenMin=rec.getAttribute('data-screen-min');var screenMax=rec.getAttribute('data-screen-max');if(screenMin&&windowWidth<parseInt(screenMin,10))return;if(screenMax&&windowWidth>parseInt(screenMax,10))return;var popup=rec.querySelector('.t-popup');var popupTooltipHook=popup.getAttribute('data-tooltip-hook');var ranges=rec.querySelectorAll('.t-range');var documentBody=document.body;if(ranges.length){Array.prototype.forEach.call(ranges,function(range){t702__triggerEvent(range,'popupOpened')})}
t_onFuncLoad('t_popup__showPopup',function(){t_popup__showPopup(popup)});if(typeof t_triggerEvent==='function')t_triggerEvent(document.body,'popupShowed');documentBody.classList.add('t-body_popupshowed');documentBody.classList.add('t702__body_popupshowed');if(/iPhone|iPad|iPod/i.test(navigator.userAgent)&&!window.MSStream&&window.isiOSVersion&&window.isiOSVersion[0]===11){setTimeout(function(){t702_lockScroll()},500)}
t702__lazyLoad();t702__triggerEvent(popup,'tildamodal:show'+popupTooltipHook);t_onFuncLoad('t_forms__calculateInputsWidth',function(){t_forms__calculateInputsWidth(recId)})}
function t702_closePopup(recId){var rec=document.getElementById('rec'+recId);var popup=rec.querySelector('.t-popup');var popupTooltipHook=popup.getAttribute('data-tooltip-hook');var popupAll=document.querySelectorAll('.t-popup_show:not(.t-feed__post-popup):not(.t945__popup)');if(popupAll.length==1){if(typeof t_triggerEvent==='function')t_triggerEvent(document.body,'popupHidden');document.body.classList.remove('t-body_popupshowed')}else{var newPopup=[];for(var i=0;i<popupAll.length;i++){if(popupAll[i].getAttribute('data-tooltip-hook')===popupTooltipHook){popupAll[i].classList.remove('t-popup_show');newPopup.push(popupAll[i])}}
if(newPopup.length===popupAll.length){if(typeof t_triggerEvent==='function')t_triggerEvent(document.body,'popupHidden');document.body.classList.remove('t-body_popupshowed')}}
if(typeof t_triggerEvent==='function')t_triggerEvent(document.body,'popupHidden');popup.classList.remove('t-popup_show');document.body.classList.remove('t702__body_popupshowed');if(/iPhone|iPad|iPod/i.test(navigator.userAgent)&&!window.MSStream&&window.isiOSVersion&&window.isiOSVersion[0]===11){t702_unlockScroll()}
t_onFuncLoad('t_popup__addFocusOnTriggerButton',function(){t_popup__addFocusOnTriggerButton()});setTimeout(function(){var popupHide=document.querySelectorAll('.t-popup:not(.t-popup_show)');for(var i=0;i<popupHide.length;i++){popupHide[i].style.display='none'}},300);t702__triggerEvent(popup,'tildamodal:close'+popupTooltipHook)}
function t702_sendPopupEventToStatistics(popupName){var virtPage='/tilda/popup/';var virtTitle='Popup: ';if(popupName.substring(0,7)=='#popup:'){popupName=popupName.substring(7)}
virtPage+=popupName;virtTitle+=popupName;if(window.Tilda&&typeof Tilda.sendEventToStatistics=='function'){Tilda.sendEventToStatistics(virtPage,virtTitle,'',0)}else{if(ga){if(window.mainTracker!='tilda'){ga('send',{hitType:'pageview',page:virtPage,title:virtTitle})}}
if(window.mainMetrika&&window[window.mainMetrika]){window[window.mainMetrika].hit(virtPage,{title:virtTitle,referer:window.location.href})}}}
function t702_onSuccess(form){t_onFuncLoad('t_forms__onSuccess',function(){t_forms__onSuccess(form)})}
function t702__lazyLoad(){if(window.lazy==='y'||document.getElementById('allrecords').getAttribute('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}}
function t702__triggerEvent(el,eventName){var event;if(typeof window.CustomEvent==='function'){event=new CustomEvent(eventName)}else if(document.createEvent){event=document.createEvent('HTMLEvents');event.initEvent(eventName,!0,!1)}else if(document.createEventObject){event=document.createEventObject();event.eventType=eventName}
event.eventName=eventName;if(el.dispatchEvent){el.dispatchEvent(event)}else if(el.fireEvent){el.fireEvent('on'+event.eventType,event)}else if(el[eventName]){el[eventName]()}else if(el['on'+eventName]){el['on'+eventName]()}}
function t802_insta_init(recId,instaUser){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t802');if(!container)return;var projectId=document.getElementById('allrecords').getAttribute('data-tilda-project-id');t802_insta_loadflow(recId,projectId,instaUser)}
function t802_insta_loadflow(recId,projectId,instaUser){var url='https://insta.tildacdn.com/fish/0.json';if(instaUser){url='https://insta.tildacdn.com/json/project'+projectId+'_'+instaUser+'.json'}
var xhr=new XMLHttpRequest();xhr.open('GET',url,!0);xhr.onreadystatechange=function(){if(xhr.readyState===4){if(xhr.status>=200&&xhr.status<400){var data=xhr.responseText;if(data){try{var objData=JSON.parse(data)}catch(error){console.log('Error. insta flow json not object');console.log(data)}
if(typeof objData==='object'){t802_insta_draw(recId,objData)}}}else{console.log('Error load instgram flow')}}};xhr.send()}
function t802_insta_draw(recId,objData){if(objData&&objData.photos&&objData.photos.length===0)return;var rec=document.getElementById('rec'+recId);if(!rec)return;var allImgWrappersNum=rec.querySelectorAll('.t802__imgwrapper_empty').length;for(var i=0;i<allImgWrappersNum;i++){if(objData.photos[i]){t802_insta_drawItem(recId,objData.username,objData.photos[i],i)}else{var empty=rec.querySelector('.t802__imgwrapper_empty');if(empty)empty.remove()}}
if(window.lazy==='y'||document.getElementById('allrecords').getAttribute('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}}
function t802_insta_drawItem(recId,userName,photo,counter){var rec=document.querySelector('#rec'+recId);if(!rec)return;var empty=rec.querySelector('.t802__imgwrapper_empty');var isZoomable=rec.querySelector('.t802__container').getAttribute('data-zoom');if(empty){empty.classList.remove('t802__imgwrapper_empty');var main=empty.parentNode;var imageWrapper=document.createElement('div');imageWrapper.classList.add('t802__bgimg');if(window.lazy==='y'||document.getElementById('allrecords').getAttribute('data-tilda-lazy')==='yes'){imageWrapper.classList.add('t-bgimg');imageWrapper.setAttribute('data-original',photo.url)}else{imageWrapper.style.backgroundImage='url('+photo.url+')'}
if(!isZoomable){var tagA=document.createElement('a');tagA.href=photo.link;tagA.target='_blank';empty.appendChild(imageWrapper);tagA.appendChild(empty);main.appendChild(tagA)}else{imageWrapper.setAttribute('data-zoomable','yes');imageWrapper.setAttribute('data-zoom-target',counter);imageWrapper.setAttribute('data-img-zoom-url',photo.url);if(photo.text){imageWrapper.setAttribute('data-img-zoom-descr',photo.text)}
imageWrapper.classList.add('t-zoomable');empty.appendChild(imageWrapper);main.appendChild(empty)}
var hover=empty.querySelector('.t802__hover-wrapper');if(hover&&window.isMobile===!1){var text=t802_insta_cropText(recId,'@'+userName+': '+photo.text);var divHover=document.createElement('div');var divText=document.createElement('div');divHover.classList.add('t802__hover-filter');divText.classList.add('t802__text','t-text','t-descr_xxs');divText.innerHTML=text;hover.appendChild(divHover);hover.appendChild(divText)}}}
function t802_insta_cropText(recId,text){var rec=document.getElementById('rec'+recId);var colsInLine=rec.querySelector('[data-cols-in-line]').getAttribute('data-cols-in-line');var maxLength=130;if(colsInLine==6){maxLength=90}
if(text.length>maxLength){text=text.substring(0,maxLength);text=text.substring(0,Math.min(maxLength,text.lastIndexOf(' ')));text+=' ...'}
return text}
function t827_init(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var wrapper=rec.querySelector('.t827');if(!wrapper)return;var grid=rec.querySelector('.t827__grid');var sizer=rec.querySelector('.t827__grid-sizer');var items=rec.querySelectorAll('.t827__grid-item');var images=rec.querySelectorAll('.t827__grid img');var overlayList=rec.querySelectorAll('.t827__overlay');var sizerWidth=sizer?sizer.offsetWidth||parseInt(window.getComputedStyle(sizer).width,10):0;if(window.getComputedStyle(rec).display==='none'){grid.setAttribute('data-hidden-tab','y')}
t827_reverse(grid);Array.prototype.forEach.call(images,function(img){img.addEventListener('load',function(){t827_initMasonry(rec,recid,grid);setTimeout(function(){t827_showOverlay(overlayList,items)},500)})});Array.prototype.forEach.call(overlayList,function(overlay){if(overlay.classList.contains('t827__overlay_preview')){setTimeout(function(){t827_showOverlay([overlay],items)},1000)}});t827_initMasonry(rec,recid,grid);setTimeout(function(){t827_calcColumnWidth(rec,sizerWidth,grid,sizer,items)});window.addEventListener('resize',t_throttle(function(){if(typeof window.noAdaptive!=='undefined'&&window.noAdaptive===!0&&window.isMobile){return}
t827_initMasonry(rec,recid,grid);t827_calcColumnWidth(rec,sizerWidth,grid,sizer,items)}));window.addEventListener('load',function(event){t827_initMasonry(rec,recid,grid);t827_calcColumnWidth(rec,sizerWidth,grid,sizer,items)});wrapper.addEventListener('displayChanged',function(e){t827_initMasonry(rec,recid,grid,e.type);t827_calcColumnWidth(rec,sizerWidth,grid,sizer,items)})}
function t827_reverse(grid){if(grid&&grid.classList.contains('t827__grid_reverse')){for(var i=grid.childElementCount-2;i>=0;i--){grid.appendChild(grid.children[i])}}}
function t827_initMasonry(rec,recid,grid,eventType){var gutterElement=rec.querySelector('.t827__gutter-sizer');var gutterWidth;if(gutterElement&&(gutterElement.offsetWidth===40||window.getComputedStyle(gutterElement).width==='40px')){gutterWidth=39}else{gutterWidth='#rec'+recid+' .t827__gutter-sizer'}
t_onFuncLoad('imagesLoaded',function(){if(eventType==='displayChanged'&&grid.getAttribute('data-hidden-tab')==='y'){grid.style.opacity='0';imagesLoaded(grid,function(){if(grid.style.opacity==='0'){grid.style.opacity=''}
grid.removeAttribute('data-hidden-tab')});setTimeout(function(){if(grid.style.opacity==='0'){grid.style.opacity=''}
grid.removeAttribute('data-hidden-tab')},3000);new Masonry(grid,{columnWidth:'#rec'+recid+' .t827__grid-sizer',itemSelector:'#rec'+recid+' .t827__grid-item',gutter:gutterWidth,isFitWidth:!0,transitionDuration:0,})}else{imagesLoaded(grid,function(){new Masonry(grid,{columnWidth:'#rec'+recid+' .t827__grid-sizer',itemSelector:'#rec'+recid+' .t827__grid-item',gutter:gutterWidth,isFitWidth:!0,transitionDuration:0,})})}})}
function t827_showOverlay(overlayList,items){if(window.innerWidth>=1024){Array.prototype.forEach.call(overlayList,function(overlay){overlay.style.display='block'})}else{Array.prototype.forEach.call(items,function(item){item.addEventListener('click',function(){var currentOverlay=item.querySelector('.t827__overlay');if(currentOverlay){if(currentOverlay.style.opacity==='0'){Array.prototype.forEach.call(overlayList,function(overlay){if(overlay===currentOverlay){overlay.style.opacity='1'}else{overlay.style.opacity='0'}})}else{currentOverlay.style.opacity='0'}}})})}}
function t827_calcColumnWidth(rec,sizerWidth,grid,sizer,items){var isRecHidden=window.getComputedStyle(rec).display==='none';if(isRecHidden){rec.style.setProperty('display','block','important')}
var container=rec.querySelector('.t827__container');var firstItem=rec.querySelector('.t827__grid-item');var gutterElement=rec.querySelector('.t827__gutter-sizer');var containerWidthViaPadding=container?container.offsetWidth||parseInt(window.getComputedStyle(container).width,10):0;var containerPaddingLeft=container?window.getComputedStyle(container).getPropertyValue('padding-left'):'0';var containerPaddingLeftValue=parseInt(containerPaddingLeft,10)||0;var containerPaddingRight=container?window.getComputedStyle(container).getPropertyValue('padding-right'):'0';var containerPaddingRightValue=parseInt(containerPaddingRight,10)||0;var containerWidth=containerWidthViaPadding-(containerPaddingLeftValue+containerPaddingRightValue);var itemWidth=firstItem?firstItem.offsetWidth||parseInt(window.getComputedStyle(firstItem).width,10):0;var gutterSizerWidth=gutterElement?gutterElement.offsetWidth||parseInt(window.getComputedStyle(gutterElement).width,10):0;if(gutterElement&&gutterSizerWidth===40)gutterSizerWidth=39;if(isRecHidden)rec.style.display='';var columnAmount=Math.round(containerWidth/sizerWidth);if(columnAmount===1&&containerWidth>320&&containerWidth<=480){columnAmount=2}
var newSizerWidth=((containerWidth-gutterSizerWidth*(columnAmount-1))/columnAmount);if(containerWidth>=itemWidth){if(sizer)sizer.style.width=newSizerWidth+'px';Array.prototype.forEach.call(items,function(item){item.style.width=newSizerWidth+'px'})}else{if(grid)grid.style.width='100%';if(sizer)sizer.style.width='100%';Array.prototype.forEach.call(items,function(item){item.style.width=newSizerWidth+'px'})}}
function t651_initPopup(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t651');if(!container)return;if(window.isMobile&&!window.isTablet){var phone=rec.querySelector('.t651__phone');if(!phone)return;var phoneText=phone.textContent.replace(/\s+/g,'');var button=rec.querySelector('.t651__btn');var buttonWrapper=rec.querySelector('.t651__btn_wrapper');var buttonText=rec.querySelector('.t651__btn-text');button.addEventListener('click',function(){window.location.href='tel:'+phoneText;if(buttonWrapper)buttonWrapper.classList.remove('t651__btn_animate');if(buttonText)buttonText.style.display='none'});return}
rec.setAttribute('data-animationappear','off');rec.style.opacity=1;var popup=rec.querySelector('.t651__popup');var analitics=popup.getAttribute('data-track-popup');var hook='TildaCallBackWidget'+recId;var button=rec.querySelector('.t651__btn');button.addEventListener('click',function(event){if(button.classList.contains('t651__btn_active')){t651_closePopup();return}
container.classList.add('t651_active');button.classList.add('t651__btn_active');t651_showPopup(recId);event.preventDefault();if(analitics&&window.Tilda){Tilda.sendEventToStatistics(analitics,hook)}})}
function t651_showPopup(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var popup=rec.querySelector('.t651__popup');if(!popup)return;var buttonWrapper=rec.querySelector('.t651__btn_wrapper');var buttonText=rec.querySelector('.t651__btn-text');if(buttonWrapper)buttonWrapper.classList.remove('t651__btn_animate');if(buttonText)buttonText.style.display='none';popup.style.display='block';setTimeout(function(){popup.classList.add('t651__popup_show')},50);document.addEventListener('keydown',t651_escClosePopup)}
function t651_escClosePopup(event){if(event.key==='Escape')t651_closePopup()}
function t651_closePopup(){var blocks=document.querySelectorAll('.t651.t651_active');var buttons=document.querySelectorAll('.t651__btn.t651__btn_active');var popups=document.querySelectorAll('.t651__popup.t651__popup_show');for(var i=0;i<blocks.length;i++){blocks[i].classList.remove('t651_active')}
for(var i=0;i<buttons.length;i++){buttons[i].classList.remove('t651__btn_active')}
for(var i=0;i<popups.length;i++){popups[i].classList.remove('t651__popup_show')}
setTimeout(function(){var popupHide=document.querySelectorAll('.t651__popup:not(.t651__popup_show)');for(var i=0;i<popupHide.length;i++){popupHide[i].style.display='none'}},300);document.removeEventListener('keydown',t651_escClosePopup)}
function t825_initPopup(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t825');if(!container)return;rec.setAttribute('data-animationappear','off');rec.style.opacity=1;var button=rec.querySelector('.t825__btn');var buttonClose=rec.querySelector('.t825__mobile-close');var popup=rec.querySelector('.t825__popup');var analitics=popup.getAttribute('data-track-popup');var hook='TildaSendMessageWidget'+recId;if(button){button.addEventListener('click',function(event){if(button.classList.contains('t825__btn_active')){t825_closePopup(rec);return}
button.classList.add('t825__btn_active');container.classList.add('t825_active');t825_showPopup(rec);event.preventDefault();if(analitics)Tilda.sendEventToStatistics(analitics,hook)})}
if(buttonClose){buttonClose.addEventListener('click',function(){t825_closePopup(rec)})}
var whatsApp=rec.querySelector('.t825__whatsapp');if(whatsApp){var whatsAppHref=whatsApp.getAttribute('href');if(whatsAppHref)t825_removeExtraSymbolsFromWhatsApp(whatsApp,whatsAppHref)}
t825__lazyLoad()}
function t825_removeExtraSymbolsFromWhatsApp(whatsApp,whatsAppHref){if(whatsAppHref&&whatsAppHref.indexOf('?text=')!==-1){var whatsAppHrefArr=whatsAppHref.split('?text=');whatsAppHrefArr[0]=whatsAppHrefArr[0].replace(/[\(\)+-]/g,'');whatsAppHref=whatsAppHrefArr[0]+'?text='+whatsAppHrefArr[1]}else{whatsAppHref=whatsAppHref.replace(/[\(\)+-]/,'')}
whatsApp.setAttribute('href',whatsAppHref)}
function t825_showPopup(rec){var popup=rec.querySelector('.t825__popup');var buttonWrapper=rec.querySelector('.t825__btn_wrapper');var buttonText=rec.querySelector('.t825__btn-text');if(buttonWrapper)buttonWrapper.classList.remove('t8245_btn_animate');if(buttonText)buttonText.style.display='none';if(window.innerWidth<960)document.body.classList.add('t825__body_popupshowed');popup.style.display='block';setTimeout(function(){popup.classList.add('t825__popup_show')},50);document.addEventListener('keydown',t825__escClosePopup);t825__lazyLoad()}
function t825__escClosePopup(event){if(event.key==='Escape')t825_closePopup()}
function t825_closePopup(rec){if(window.innerWidth<960)document.body.classList.remove('t825__body_popupshowed');var containers=document.querySelectorAll('.t825');var popups=document.querySelectorAll('.t825__popup');var buttons=document.querySelectorAll('.t825__btn');for(var i=0;i<containers.length;i++){containers[i].classList.remove('t825_active')}
for(var i=0;i<popups.length;i++){popups[i].classList.remove('t825__popup_show')}
for(var i=0;i<buttons.length;i++){buttons[i].classList.remove('t825__btn_active')}
setTimeout(function(){if(!rec)return;var popupHide=rec.querySelector('.t825__popup:not(.t825__popup_show)');if(popupHide){popupHide.style.display='none'}},300);document.removeEventListener('keydown',t825__escClosePopup)}
function t825__lazyLoad(){if(window.lazy==='y'||document.getElementById('allrecords').getAttribute('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}}