window.isMobile=!1;if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){window.isMobile=!0}
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 t959__init(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t959');if(!container)return;t959__updateLazyLoad(recId);t959_unifyHeights(recId);window.addEventListener('resize',t_throttle(function(){t959_unifyHeights(recId)}));window.addEventListener('load',function(){t959_unifyHeights(recId)});container.addEventListener('displayChanged',t_throttle(function(){t959_unifyHeights(recId)}));t_onFuncLoad('t_card__moveClickOnCard',function(){t_card__moveClickOnCard(recId)});t_onFuncLoad('t_card__addFocusOnTab',function(){t_card__addFocusOnTab(recId)})}
function t959__updateLazyLoad(recId){var allRecords=document.getElementById('allrecords');var container=document.querySelector('#rec'+recId+' .t959__container_mobile-flex');var mode=allRecords.getAttribute('data-tilda-mode');if(container&&mode!=='edit'&&mode!=='preview'&&window.isMobile){if(window.lazy==='y'||allRecords.getAttribute('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){container.addEventListener('touchmove',t_throttle(function(){t_lazyload_update()}))})}}}
function t959_unifyHeights(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var main=rec.querySelector('.t959');if(!main)return;var containers=main.querySelectorAll('.t959__container');for(var i=0;i<containers.length;i++){var container=containers[i];var cardsContent=container.querySelectorAll('.t959__card-content');var cards=container.querySelectorAll('.t959__card-inner');if(!cards.length){return}
var cardStyle=getComputedStyle(cards[0],null);var cardPaddingLeft=parseInt(cardStyle.paddingLeft)||0;var cardPaddingRight=parseInt(cardStyle.paddingRight)||0;var cardWidth=cards[0].clientWidth-(cardPaddingLeft+cardPaddingRight);var maxHeight=0;var ratio=container.getAttribute('data-ratio');var minHeightFromRatio=0;switch(ratio){case '16_9':minHeightFromRatio=cardWidth*0.5625;break;case '4_3':minHeightFromRatio=cardWidth*0.75;break;case '3_2':minHeightFromRatio=cardWidth*0.6666;break;case '1_1':minHeightFromRatio=cardWidth;break;case '2_3':minHeightFromRatio=cardWidth*1.5;break;case '3_4':minHeightFromRatio=cardWidth*1.3333;break;case '9_16':minHeightFromRatio=cardWidth*1.7777;break}
for(var j=0;j<cardsContent.length;j++){var cardContent=cardsContent[j];var titleHeight=t959_outerHeight(cardContent.querySelector('.t-card__title'));var descHeight=t959_outerHeight(cardContent.querySelector('.t-card__descr'));var colHeight=titleHeight+descHeight;if(colHeight>maxHeight)maxHeight=colHeight}
if(maxHeight>minHeightFromRatio){for(var j=0;j<cards.length;j++){cards[j].style.paddingBottom=maxHeight+'px'}}else{for(var j=0;j<cards.length;j++){cards[j].style.paddingBottom=null}}}}
function t959_outerHeight(element){if(!element)return 0;var height=element.offsetHeight;var style=getComputedStyle(element);height+=parseInt(style.marginTop)+parseInt(style.marginBottom);return height}
function t821_init(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var menu=rec?rec.querySelector('.t821'):null;if(!menu)return;var isFixed=menu.style.position==='fixed'||window.getComputedStyle(menu).position==='fixed';var isRedactorMode=menu.classList.contains('t821_redactor-mode');if(!isRedactorMode){menu.classList.remove('t821__beforeready');if(isFixed&&menu.getAttribute('data-bgopacity-two')){t_onFuncLoad('t_menu__changeBgOpacity',function(){t_menu__changeBgOpacity(recid,'.t821');window.addEventListener('scroll',t_throttle(function(){t_menu__changeBgOpacity(recid,'.t821')},200))})}
if(isFixed&&menu.getAttribute('data-appearoffset')){menu.classList.remove('t821__beforeready');t_onFuncLoad('t_menu__showFixedMenu',function(){t_menu__showFixedMenu(recid,'.t821');window.addEventListener('scroll',t_throttle(function(){t_menu__showFixedMenu(recid,'.t821')},200))})}}
t_onFuncLoad('t_menu__setBGcolor',function(){t_menu__setBGcolor(recid,'.t821');window.addEventListener('resize',t_throttle(function(){t_menu__setBGcolor(recid,'.t821')},200))})}
function t985_init(recid,searchVariants){var rec=document.querySelector('#rec'+recid);if(!rec)return;if(searchVariants.length>0){t985_addSearchVariants(recid,searchVariants)}
var searchWidgetIcon=rec.querySelectorAll('.t985__search-widget-icon');Array.prototype.forEach.call(searchWidgetIcon,function(widgetIcon){widgetIcon.addEventListener('click',function(){t985_showSearch(rec)})});var closeIcon=rec.querySelector('.t985__close-icon');if(closeIcon){closeIcon.addEventListener('click',function(){t985_hideSearch(rec)})}
var overlay=rec.querySelector('.t985__overlay');if(overlay){overlay.addEventListener('click',function(event){var target=event.target;var parentTarget=target.parentElement;if(!target.classList.contains('.t985__widgetheader')&&!parentTarget.classList.contains('.t985__widgetheader')){t985_hideSearch(rec)}})}}
function t985_addSearchVariants(recid,searchVariants){var rec=document.querySelector('#rec'+recid);if(!rec)return;var container=rec.querySelector('.t985__searchvariants');var cleanVariants=searchVariants.replace(/(<([^>]+)>)/gi,'')
var searchArray=cleanVariants.split(',');Array.prototype.forEach.call(searchArray,function(variant){container.innerHTML+='<div class="t985__searchvariant t-text t-text_xs">'+variant+'</div>'})}
function t985_showSearch(rec){rec.querySelector('.t985__overlay').style.display='block';rec.querySelector('.t985__search-widget-icon').style.display='none'}
function t985_hideSearch(rec){rec.querySelector('.t985__overlay').style.display='none';rec.querySelector('.t985__search-widget-icon').style.display='block'}
function t706_onSuccessCallback(){var products=document.querySelector('.t706__cartwin-products');var cartBottom=document.querySelector('.t706__cartwin-bottom');var cartForm=document.querySelector('.t706 .t-form__inputsbox');if(products)t706_slideUp(products,10);if(cartBottom)t706_slideUp(cartBottom,10);if(cartForm)t706_slideUp(cartForm,700);try{tcart__unlockScroll()}catch(error){}}
function t706_slideUp(target,duration){if(!target)return;if(!duration&&duration!==0)duration=500;target.style.transitionProperty='height, margin, padding';target.style.transitionDuration=duration+'ms';target.style.boxSizing='border-box';target.style.height=target.offsetHeight+'px';target.style.overflow='hidden';target.style.height='0';target.style.paddingTop='0';target.style.paddingBottom='0';target.style.marginTop='0';target.style.marginBottom='0';setTimeout(function(){target.style.display='none';target.style.height='';target.style.paddingTop='';target.style.paddingBottom='';target.style.marginTop='';target.style.marginBottom='';target.style.overflow='';target.style.transitionDuration='';target.style.transitionProperty=''},duration)}
function t804_init(recid){var rec=document.querySelector('#rec'+recid);if(!rec)return;var geodata=[];var geoDataBlock=rec.querySelector('.t_804_geo-datablock');var key=geoDataBlock.querySelector('.t_804_geo-key').innerHTML;var defValue=geoDataBlock.querySelector('.t_804_geo-default').innerHTML;var cards=geoDataBlock.querySelector('.t_804_geo-data').children;Array.prototype.forEach.call(cards,function(regionCard){var geoIpSet=regionCard.querySelectorAll('.t_804_geo-geoip');var geo=[];Array.prototype.forEach.call(geoIpSet,function(geoIPBlock){var geoIPInnerText=geoIPBlock.innerHTML;var geoIPArray=geoIPInnerText.split(';');Array.prototype.forEach.call(geoIPArray,function(geoIP){if(geoIP==='')return!0;var regex=/,/g;var geoIPValue=geoIP.replace(regex,'-');geo.push(geoIPValue)})});var value=regionCard.querySelector('.t_804_geo-value').innerHTML;geodata.push({value:value,geo:geo})});if(rec.closest('#t-header')||rec.closest('#t-footer')){var elements=document.querySelectorAll('.t-rec div, .t-rec span, .t-rec a, .t-rec p');Array.prototype.forEach.call(elements,function(elem){var html=elem.innerHTML;var replaced=html.replace(/(?!%%)[A-zА-яё0-9_-]*(?=%%)/gi,'<span data-replace-key="$&"></span>').replace(/%{2}/gim,'');if(replaced!==html){elem.innerHTML=replaced}});var event=document.createEvent('HTMLEvents');event.initEvent('replacingCompleted',!0,!1);document.dispatchEvent(event)}
var request=new XMLHttpRequest();request.open('GET','https://geo.tildacdn.com/geo/full/');request.timeout=15*1000;request.send();request.onprogress=function(){try{var data=JSON.parse(request.response);replaceGeo(data,key,geodata,defValue)}catch(e){}};request.onerror=function(){try{var data=JSON.parse(request.response);replaceGeo(data,key,geodata,defValue)}catch(e){}};request.ontimeout=function(){console.error('Timeout error: ',request.status)};function replaceGeo(data,key,geodata,defValue){var city=data.city.name_en;var region=data.region.name_en;var country=data.country.iso;var fullMatch=country+'-'+region+'-'+city;var partMatch=country+'-'+region;var val=defValue;Array.prototype.forEach.call(geodata,function(value){if(value.geo.indexOf(country)!==-1){val=value.value}
if(value.geo.indexOf(partMatch)!==-1){val=value.value}
if(value.geo.indexOf(fullMatch)!==-1){val=value.value}});var insertion=document.querySelectorAll('[data-replace-key="'+key+'"]');Array.prototype.forEach.call(insertion,function(span){span.innerHTML=val})}}
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 rec=this;while(rec&&rec.nodeType===1){if(Element.prototype.matches.call(rec,s)){return rec}
rec=rec.parentElement||rec.parentNode}
return null}}
function t975_init(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var tildaCopy=document.getElementById('tildacopy');var menu=rec.querySelector('.t975');t_onFuncLoad('t_menu__highlightActiveLinks',function(){t_menu__highlightActiveLinks('.t975__list-item a')});if(menu)menu.classList.remove('t975__beforeready');t975_checkAnchorLinks(recid,'.t975__list-item a');var isIphone=t975_detectIphone();var scrollHeight=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight);if(menu&&menu.getAttribute('data-hidemenuonscroll')||isIphone){t975_handleScroll(menu,tildaCopy)}
if(tildaCopy&&scrollHeight>document.documentElement.clientHeight){t975_addCopyrightMargin(menu,tildaCopy);t975_handleScroll(menu,tildaCopy)}
window.addEventListener('resize',function(){t975_changeCopyrightMargin(menu,tildaCopy)})}
function t975_addCopyrightMargin(menu,tildaCopy){if(!tildaCopy||!menu)return;var paddingElement=document.createElement('div');paddingElement.style.backgroundColor='#000';paddingElement.style.height=menu.offsetHeight+'px';paddingElement.classList.add('t-tildalabel-padding');document.body.appendChild(paddingElement)}
function t975_changeCopyrightMargin(menu,tildaCopy){var paddingElement=document.querySelector('.t-tildalabel-padding');if(!paddingElement||!tildaCopy||!menu)return;paddingElement.style.height=menu.offsetHeight+'px'}
function t975_detectIphone(){var isIphone=/iPhone/.test(navigator.userAgent)&&!window.MSStream;var aspect=window.screen.width/window.screen.height;var iphoneAspect='0.462';if(isIphone&&aspect.toFixed(3)===iphoneAspect){return!0}}
function t975_checkAnchorLinks(recid,selector){var rec=document.getElementById('rec'+recid);var anchorSelector=selector+'[href*="#"]:not(.tooltipstered)';var navLinks=rec?rec.querySelectorAll(anchorSelector):[];if(navLinks.length){t_onFuncLoad('t_menu__updateActiveLinks',function(){t_menu__updateActiveLinks(navLinks,selector)})}}
function t975_handleScroll(menu){var lastScrollTop=0;var delta=5;var timerID;var diff;window.addEventListener('scroll',function(){var scrollHeight=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight);var isClicked=menu?menu.getAttribute('data-clicked-link'):'';var currentScrollTop=window.pageYOffset;if(Math.abs(lastScrollTop-currentScrollTop)<=delta||window.pageYOffset<0||window.pageYOffset>scrollHeight-window.innerHeight){return}
if(menu&&menu.getAttribute('data-hidemenuonscroll')&&!isClicked){var menuHeight=menu.offsetHeight;var currentTransformValue=menu.style.transform;if(currentScrollTop>lastScrollTop&&window.pageYOffset<=scrollHeight-(window.innerHeight+menuHeight)){diff=0;if(currentTransformValue){diff=parseInt(currentTransformValue.replace('translateY(',''),10)}
clearInterval(timerID);timerID=setInterval(function(){menu.style.transform='translateY('+diff+'px)';diff+=menuHeight/50;if(diff>=menuHeight){menu.style.transform='translateY('+menuHeight+'px)';clearInterval(timerID)}})}else{diff=menuHeight;if(currentTransformValue){diff=parseInt(currentTransformValue.replace('translateY(',''),10)}
clearInterval(timerID);timerID=setInterval(function(){menu.style.transform='translateY('+diff+'px)';diff-=menuHeight/50;if(diff<=0){menu.style.transform='translateY(0px)';clearInterval(timerID)}})}}
lastScrollTop=currentScrollTop})}
function t971_init(recids){recids=recids.split(',');Array.prototype.forEach.call(recids,function(recid){t971_createSnowfall(recid)})}
function t971_createSnowfall(recid){var snowSettings={number:50,minDuration:10,maxDuration:20};var wrapperBlock;var snowfallHeight;var wrapperType;var rec=document.getElementById('rec'+recid);if(recid&&rec){var recordType=parseInt(rec.getAttribute('data-record-type'),10);switch(recordType){case 396:wrapperType='.t396__artboard';break;case 941:wrapperType='.t-container';break;default:wrapperType='.t-cover'}
wrapperBlock=rec.querySelector(wrapperType);if(!wrapperBlock)return;var snowfallWrapperStyles=window.getComputedStyle(wrapperBlock);if(wrapperBlock&&snowfallWrapperStyles.position!=='static'){snowfallHeight=snowfallWrapperStyles.height}else{wrapperBlock=document.querySelector('body');snowfallHeight=Math.round(window.innerHeight)+'px'}}else{wrapperBlock=document.querySelector('body');snowfallHeight=Math.round(window.innerHeight)+'px'}
var style='.t971__snowfall { '+'position: absolute; '+'top: 0; '+'width: 100%;'+'height: '+snowfallHeight+';'+'backface-visibility: hidden;'+'pointer-events: none;'+'z-index: 50000; '+'display: block; '+'overflow: hidden; '+'pointer-events: none; '+'} '+'.t971__snowflake { '+'position: absolute; '+'left: 0; '+'top: 0; '+'display: none;'+'} ';var snowfallLayer1=document.createElement('div');snowfallLayer1.classList.add('t971__snowfall');snowfallLayer1.id='t971__snowfall';wrapperBlock.appendChild(snowfallLayer1);var styleRule='';var snowfall='';var snowflake=['<svg width="31" height="31" viewBox="0 0 31 31" fill="none" xmlns="http://www.w3.org/2000/svg"><path opacity="0.5" d="M15.934 1V29.739M29.72 14.795H1M26.273 4.448L5.595 25.141M26.273 25.141L5.595 4.448M20.529 4.448H11.339M20.529 25.141H11.339M26.273 19.393V10.196M5.595 19.393V10.196" stroke="white" stroke-linecap="round" stroke-linejoin="round"/></svg>','<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path opacity="0.5" d="M7.319 1V13.6453M13.637 7.3226H1M11.797 2.8585L2.858 11.804M11.797 11.804L2.858 2.8585" stroke="white" stroke-linecap="round" stroke-linejoin="round"/></svg>','<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path opacity="0.5" d="M13.636 1V26.2906M26.273 13.6453H1M22.827 22.8419L4.446 4.4488M22.827 4.4488L4.446 22.8419L13.6365 13.6453L22.827 4.4488ZM6.744 6.7479H20.529V20.5428H6.744V6.7479Z" stroke="white" stroke-linecap="round" stroke-linejoin="round"/></svg>','<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path opacity="0.5" d="M13.637 1V26.291M26.273 13.645H1M22.664 4.61299L4.612 22.678M22.664 22.678L4.612 4.61299M17.245 2.806L13.625 6.41899L10.024 2.806H17.245ZM10.024 24.484L13.625 21.774L17.245 24.484H10.024ZM24.467 17.258L20.857 13.655L24.467 10.033V17.258ZM2.804 10.033L6.414 13.655L2.804 17.258V10.033Z" stroke="white" stroke-linecap="round" stroke-linejoin="round"/></svg>',];for(var i=1;i<=snowSettings.number;i++){var parentHeight=snowfallHeight;var leftStart=Math.round(window.innerWidth/(100/t971_getRandom(0,100)));var leftOffset=Math.round(window.innerWidth/(100/t971_getRandom(-10,10)));var leftEnd=leftStart+leftOffset;var duration=t971_getRandom(snowSettings.minDuration,snowSettings.maxDuration);var delay=t971_getRandom(1,30).toFixed(2)*-1;var opacity=Math.random().toFixed(2);var flakeStyle=t971_getRandom(0,3);styleRule='.t971__snowflake:nth-child('+i+') {'+'max-width: 40px;'+'max-height: 40px;'+'display: block;'+'opacity: '+opacity+';'+'-moz-animation: snow-'+i+' '+duration+'s '+delay+'s '+'linear infinite;'+'-webkit-animation: snow-'+i+' '+duration+'s '+delay+'s '+'linear infinite;'+'animation: snow-'+i+' '+duration+'s '+delay+'s '+'linear infinite;'+'}'+'@keyframes snow-'+i+' {'+'0% {'+'transform: translate('+leftStart+'px, -10px)'+'}'+'80% {'+'opacity: '+opacity+';'+'}'+'100% {'+'opacity: 0;'+'transform: translate('+leftEnd+'px, '+parentHeight+')'+'}'+'}';style+=styleRule;snowfall+='<div class="t971__snowflake">'+snowflake[flakeStyle]+'</div>'}
var snowfallLayer2=document.createElement('span');snowfallLayer2.innerHTML=snowfall;snowfallLayer1.appendChild(snowfallLayer2);var divStyle=document.createElement('style');divStyle.innerHTML=style;document.querySelector('head').appendChild(divStyle)}
function t971_getRandom(min,max){min=Math.ceil(min);max=Math.floor(max);return Math.floor(Math.random()*(max-min+1))+min}