$(function(){var ua=window.navigator.userAgent,isIE=/MSIE|Trident/.test(ua);function isSafari(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function isIphone(){return/iPhone/i.test(navigator.userAgent)}function not_menu(){$(window).width()<=960&&$(".section311").each(function(t,e){0!=$(this).find(".menu1 li").length&&0!=$(this).find(".menu1").length||$(this).addClass("not_menu")})}function parseYouTubeLinkNG(t){let e=null;var i,o;return t.includes("youtube.com/watch")||t.includes("youtu.be")?(i=new URL(t),o=new URLSearchParams(i.search),t.includes("youtube.com/watch")?e=o.get("v"):t.includes("youtu.be")&&(e=i.pathname.substring(1))):(t.includes("youtube.com/shorts")||t.includes("youtube.com/embed"))&&(o=new URL(t),e=o.pathname.split("/").pop()),e}isIE?$("body").addClass("ie"):$("body").addClass("not_ie"),(isSafari()||isIphone())&&$(".section.fixed").removeClass("fixed"),$("body").on("click",".video_holder",function(){if(tobiz.editor)return!1;$(this).replaceWith(''),$("iframe.placeholder-tile").on("load",function(){$(this).removeClass("placeholder-tile")})}),$("body").on("click",".close_video_btn",function(){$("#wrapper").children(".popup_video").remove(),$("body").removeClass("modal")}),$("body").on("click",".play_btn",function(){if(tobiz.editor)return!1;$("body").addClass("modal");var t=$(this).closest(".section"),e=$(this).parent().siblings().find(".video_holder").data("video");t.parent().append(`
`)}),$("body").on("touchstart",".video_holder",function(){if(tobiz.editor)return!1;var t=$(this).data("video");"youtube"==$(this).data("hosting")?$(this).replaceWith('VIDEO '):"rutube"!=$(this).data("hosting")&&"vimeo"!=$(this).data("hosting")||$(this).replaceWith('')}),$(".section318 .accordion .line.caption, .section319 .accordion .line.caption").click(function(){$(this).parent().parent().find(".line.option, .line.btn").hide(),$(this).parent().find(".line.option, .line.btn").show()}),$("body").on("click",".extra_info_block .close",function(){var t,e;$("body").removeClass("noscroll"),$(this).parent().parent().siblings().find(".btn1").hasClass("open_card_was")&&($(this).parent().parent().siblings().children(".btn1").addClass("open_card"),$(this).parents(".arr1 ").find(".btns_wrapp").children(".btn1"))&&$(this).parents(".arr1 ").find(".btns_wrapp").children(".btn1").addClass("open_card"),1==tobiz.editor&&(e=(t=$(this).closest(".section")).data("id"),t.hasClass("section1130"))&&delete window.tobiz.slider1130array[e]}),$("body").on("click",".popup_thanks_close, .popup_form_close",function(){$(this).parent().parent().siblings(".btn1").hasClass("open_card_was")&&$(this).parent().parent().siblings(".btn1").addClass("open_card"),$(".popup_thanks").hide(),$(this).parent().parent().parent().hasClass("section3010")?($("body").find(".temp_form").removeClass("showed"),setTimeout(function(){$("body").find(".temp_form").remove()},400)):$(".popup_form").hide().animate({opacity:"0"},300),$("body").removeClass("modal"),$("body").removeClass("no_clip")}),$("body").on("click",".basket_thanks_close",function(){$("#basket_bg_thanks").hide()}),$("body").on("click",".section1010 .widget_form_close",function(){$(".section1010 .arr1").hide()}),$("body").on("click",".choose_btns label",function(){$(".choose_btns label").removeClass("current_btn"),$(this).addClass("current_btn")}),$("body").on("click",".section1009 .widget_form_close",function(){$(".section1009 .form_wrapper").hide()}),$("body").on("click",".all_form_close",function(){$(".section1009 .all_forms").hide()}),$("body").on("click",".section1009 .ico1",function(t){$(this).children("a").is(":visible")||(0<$(this).closest(".section").find("#four").length||($(".section1009 .field_input_textarea").parent().addClass("field_textarea"),$(".section1009 .pop_form").toggle(),$(".section1009 .social_icons").toggle(),$(".section1009 .form_wrapper").show()),$(".section1009 .all_forms").show())}),$("body").on("click",".section1009 .image2",function(){0<$(this).closest(".section").find("#four").length||($(".section1009 .field_input_textarea").parent().addClass("field_textarea"),$(".section1009 .pop_form").toggle(),$(".section1009 .social_icons").toggle(),$(".section1009 .form_wrapper").show()),$(".section1009 .all_forms").show()}),$("body").on("click",".section1009 .choose_btns > .dots",function(){var t=$(this).attr("for");switch($(".section1009 .forms_content > div").hide(),t){case"i2":$(".section1009 .forms_content #two").show();break;case"i3":$(".section1009 .forms_content #three").show();break;case"i4":$(".section1009 .forms_content #four").show()}}),$("body").on("click",".popup_form",function(t){0===$(t.target).closest(".popup_form_inner").length&&($(this).siblings(".btn1").hasClass("open_card_was")&&$(this).siblings(".btn1").addClass("open_card"),$(this).parent().hasClass("section3010")?($("body").find(".temp_form").removeClass("showed"),setTimeout(function(){$("body").find(".temp_form").remove()},400)):$(".popup_form").hide(),$("body").removeClass("modal"),$("body").removeClass("no_clip"))}),$("body").on("mouseup","#wrapper",function(t){var e=$(".section1009 .section_inner > .form_wrapper"),i=$(".section1009 .all_forms"),o=$(".section1009 .section_inner > .social_icons");0===e.has(t.target).length&&e.hide(),0===i.has(t.target).length&&i.hide(),0===o.has(t.target).length&&o.hide()}),$("body").on("click",".popup_thanks",function(t){0===$(t.target).closest(".popup_thanks_inner").length&&$(".popup_thanks").hide()}),$(".section119").length&&$(".section119 .policy").click(function(){$("#policy").remove(),$("body").append('\n
X
\n
Политика конфиденциальности \n
Данный сайт уважает Ваше право и соблюдает конфиденциальность при заполнении, передаче и хранении Ваших конфиденциальных сведений.\nРазмещение заявки на данном сайте означает Ваше согласие на обработку данных и дальнейшей передачи ваших контактных данных нашей компании.\nПод персональными данными подразумевается информация, относящаяся к субъекту персональных данных, в частности имя, контактные реквизиты (адрес электронной почты) и иные данные, относимые Федеральным законом от 27 июля 2006 года № 152-ФЗ «О персональных данных» к категории персональных данных.\nЦелью обработки персональных данных является информирование об оказываемых услугах нашей компании.\nЕсть вопросы? Пишите нам на '+window.tobiz.owner_email+'.
\n
Закрыть
'),$("#policy .close_x, #policy .close_btn").click(function(){$("#policy").remove()})}),$("body").on("click",".section119 .policy2",function(){$(this).parent().parent().children(".policy2_popup").toggle()}),$("body").on("click",".product_card",function(){$(this).parent().parent().children(".extra_info_block_wrapper").eq($(this).data("id")).is(":visible")?$(this).parent().parent().children(".extra_info_block_wrapper").hide():($(this).parent().parent().children(".extra_info_block_wrapper").hide(),$(this).parent().parent().children(".extra_info_block_wrapper").eq($(this).data("id")).show(),$("body").addClass("modal"));var t=$(this).closest(".section");t.hasClass("section1130")&&1==tobiz.editor&&(t=t.data("id"),window.tobiz.slider1130array[t]=$(this).closest(".arr1").data("varBoxId"))}),$("body").on("click",".extra_info_block .close",function(){$(this).parent().parent().hide(),$("body").removeClass("modal")}),$("body").on("click","#basket_form_close",function(){$("body").removeClass("modal")}),$("body.editor_false").on("click",".btn_text2",function(){$(this).parent().parent().hide(),$("body").removeClass("modal")}),$("body").on("change",".section .field_input_file input",function(t){$(this).parent().parent().children(".field_input_file_name").remove(),$(this).parent().parent().append(''+$(this).prop("files")[0].name+"
")}),$("body").on("click",".extra_info_block_wrapper",function(t){0===$(t.target).closest(".extra_info_block").length&&void 0===window.tobiz.editor&&($(this).siblings().children(".btn1").hasClass("open_card_was")&&$(this).siblings().children(".btn1").addClass("open_card"),$(".extra_info_block_wrapper").hide(),$("body").removeClass("modal"))});var $overlayImageBoxes=$(".section143 .overlay_image_box, .section334 .overlay_image_box, .section144 .overlay_image_box, .section145 .overlay_image_box, .section1144 .overlay_image_box, .section148 .overlay_image_box, .section147 .overlay_image_box, .section313 .overlay_image_box, .section315 .overlay_image_box, .section128 .overlay_image_box, .section1152 .overlay_image_box, .section1153 .overlay_image_box, .section146 .overlay_image_box, .section1145 .overlay_image_box, .section1155 .overlay_image_box, .section2156 .overlay_image_box, .section2157 .overlay_image_box, .section2158 .overlay_image_box, .section2159 .overlay_image_box"),$all_photo,clicked_img_number,$preload,start,$gallery_img_hide,$gallery_img,portfolio_img_src;function navigateToItem(t){if(t&&t.length){var e=t.data("id"),i=t.attr("style"),o=t.attr("style2"),n=t.hasClass("surround")?1:0,t=t.attr("href");try{var a=JSON.parse(localStorage.getItem("itempage")||"{}");a[e]={style:i,style2:o,surround:n,url:window.location.href,timestamp:Date.now()},localStorage.setItem("itempage",JSON.stringify(a))}catch(t){}window.location.href=t}}function playAnimationFront(t,e,i=""){var o=window.getComputedStyle(document.querySelector(`#b_${t} .flexblock_wrapper[data-index="${e}"]`)),n=o.getPropertyValue("--animate-type").trim()||"off",a=o.getPropertyValue("--animate-event").trim()||"blockVisible",s=o.getPropertyValue("--animate-delay").trim()||0,r=o.getPropertyValue("--animate-duration").trim()||300,c=o.getPropertyValue("--animate-distance").trim()||100,l=o.getPropertyValue("--animate-zoom").trim()||1,d=o.getPropertyValue("--animate-easing").trim()||"linear",o=o.getPropertyValue("--animate-rotate").trim()||0;i==a&&"off"!=n&&("fadeIn"==n&&anime({targets:"#b_"+t+' .flexblock_wrapper[data-index="'+e+'"]',keyframes:[{opacity:0,rotate:o,scale:l,duration:0},{opacity:1,rotate:0,scale:1,duration:r,delay:s}],easing:d}),"fadeInLeft"==n&&anime({targets:"#b_"+t+' .flexblock_wrapper[data-index="'+e+'"]',keyframes:[{opacity:0,rotate:o,scale:l,translateX:"-"+c,duration:0},{opacity:1,rotate:0,scale:1,translateX:0,duration:r,delay:s}],easing:d}),"fadeInRight"==n&&anime({targets:"#b_"+t+' .flexblock_wrapper[data-index="'+e+'"]',keyframes:[{opacity:0,rotate:o,scale:l,translateX:c,duration:0},{opacity:1,rotate:0,scale:1,translateX:0,duration:r,delay:s}],easing:"linear"}),"fadeInTop"==n&&anime({targets:"#b_"+t+' .flexblock_wrapper[data-index="'+e+'"]',keyframes:[{opacity:0,rotate:o,scale:l,translateY:"-"+c,duration:0},{opacity:1,rotate:0,scale:1,translateY:0,duration:r,delay:s}],easing:d}),"fadeInBottom"==n&&anime({targets:"#b_"+t+' .flexblock_wrapper[data-index="'+e+'"]',keyframes:[{opacity:0,rotate:o,scale:l,translateY:c,duration:0},{opacity:1,rotate:0,scale:1,translateY:0,duration:r,delay:s}],easing:d}),"zoomIn"==n)&&anime({targets:"#b_"+t+' .flexblock_wrapper[data-index="'+e+'"]',keyframes:[{opacity:0,rotate:o,scale:l,duration:0},{opacity:1,rotate:0,scale:1,duration:r,delay:s}],easing:d})}if($overlayImageBoxes.length&&$overlayImageBoxes.click(function(){var t=$(this),e=t.attr("data-link"),i=t.attr("data-link-target");if(e&&"undefined"!==e)return 1===parseInt(i)||"_blank"===t.attr("data-target")?window.open(e,"_blank"):window.open(e,"_self"),!1}),$("body").on("click",".link_on.image1, .link_on.image2, .link_on.image3, .link_on.image4, .link_on.image5, .link_on.s_image, .link_on.arr1",function(){var t,e,i,o;return void 0===window.tobiz.editor&&(e=(t=$(this)).attr("data-link"),i=t.attr("data-link-target"),e&&"undefined"!==e?(t.parents(".section").hasClass("get_item_from_category")?(o=t.closest(".arr1").find(".gotoitempage")).length&&navigateToItem(o):1===parseInt(i)||"_blank"===t.attr("data-target")?window.open(e,"_blank"):window.open(e,"_self"),!1):void 0)}),$("body").on("click",".section2000 .item .image, .section2100 .item .image",function(t){t.preventDefault(),navigateToItem($(this).parents(".item").find(".gotoitempage"))}),$("body").on("click",".section2000 .item-content .tit, .section2100 .item-content .tit",function(t){t.preventDefault(),navigateToItem($(this).parents(".item").find(".gotoitempage"))}),$("body").on("submit",".section1117 form.search",function(t){if(t.preventDefault(),window.tobiz.editor)return!1;var e,o=$(this).closest(".section"),n=$(this).children('input[type="search"]').val();$(this).parents(".section").hasClass("search_in_page")?(n=(n=n.replace(/ {1,}/g," ")).toLowerCase(),(t=$(".arr1 .title1")).map(function(){return $.trim($(this).text())}).get(),o.find(".find_popup").hide(),$.each(t,function(t,e){$(this).parents(".arr1").removeClass("finded_in_page");var i=$.trim($(this).text()).toLowerCase();i=(i=(i=i.replace(" "," ")).replace(" "," ")).replace(/ {1,}/g," "),search_arr=n.split(" "),search_arr_length=search_arr.length,includes_counter=0,$.each(search_arr,function(t,e){-1!==i.indexOf(e.toString())&&includes_counter++}),includes_counter>.8*search_arr_length&&$(this).parents(".arr1").addClass("finded_in_page")}),0==$(".arr1.finded_in_page").length&&o.find(".find_popup").show().text("Ничего не найдено"),0!=$(".arr1.finded_in_page").length&&$("html,body").stop().animate({scrollTop:$(".finded_in_page").offset().top},1e3)):$.ajax({url:"/search.php",dataType:"json",method:"POST",data:{search:n},cache:!1,success:function(t){e=t,o.find(".find_popup").empty();var i="";$.each(e,function(t,e){i+='"}),o.find(".find_popup").append(i),""==i&&o.find(".find_popup").append("Ничего не найдено."),o.find(".find_popup").fadeIn(),o.find(".find_popup").prepend('Результаты вашего поиска
')}})}),$("body").on("submit",".section120 form.search",function(t){if(t.preventDefault(),window.tobiz.editor)return!1;var e,o=$(this).closest(".section"),n=$(this).children('input[type="search"]').val();$(this).parents(".section").hasClass("search_in_page")?(t=$(".arr1 .title1"),o.find(".find_popup").hide(),t.map(function(){return $.trim($(this).text())}).get(),$.each(t,function(t,e){$(this).parents(".arr1").removeClass("finded_in_page");var i=$.trim($(this).text()).toLowerCase();i=(i=(i=i.replace(" "," ")).replace(" "," ")).replace(/ {1,}/g," "),search_arr=n.split(" "),search_arr_length=search_arr.length,includes_counter=0,$.each(search_arr,function(t,e){-1!==i.indexOf(e.toString())&&includes_counter++}),includes_counter>.8*search_arr_length&&$(this).parents(".arr1").addClass("finded_in_page")}),0==$(".arr1.finded_in_page").length&&o.find(".find_popup").show().text("Ничего не найдено"),0!=$(".arr1.finded_in_page").length&&$("html,body").stop().animate({scrollTop:$(".finded_in_page").offset().top},1e3)):$.ajax({url:"/search.php",dataType:"json",method:"POST",data:{search:n},cache:!1,success:function(t){e=t,o.find(".find_popup").empty();var i="";$.each(e,function(t,e){i+='"}),o.find(".find_popup").append(i),""==i&&o.find(".find_popup").append("Ничего не найдено."),o.find(".find_popup").fadeIn(),o.find(".find_popup").prepend('Результаты вашего поиска
')}})}),$("body").on("submit",".section1120 form.search, .section2120 form.search",function(t){if(t.preventDefault(),window.tobiz.editor)return!1;var e,o=$(this).closest(".section"),n=$(this).children('input[type="search"]').val();$(this).parents(".section").hasClass("search_in_page")?(n=(n=n.replace(/ {1,}/g," ")).toLowerCase(),t=$(".arr1 .title1"),o.find(".find_popup").hide(),t.map(function(){return $.trim($(this).text())}).get(),$.each(t,function(t,e){$(this).parents(".arr1").removeClass("finded_in_page");var i=$.trim($(this).text()).toLowerCase();i=(i=(i=i.replace(" "," ")).replace(" "," ")).replace(/ {1,}/g," "),search_arr=n.split(" "),search_arr_length=search_arr.length,includes_counter=0,$.each(search_arr,function(t,e){-1!==i.indexOf(e.toString())&&includes_counter++}),includes_counter>.8*search_arr_length&&$(this).parents(".arr1").addClass("finded_in_page")}),0==$(".arr1.finded_in_page").length&&o.find(".find_popup").show().text("Ничего не найдено"),0!=$(".arr1.finded_in_page").length&&$("html,body").stop().animate({scrollTop:$(".finded_in_page").offset().top},1e3)):$.ajax({url:"/search.php",dataType:"json",method:"POST",data:{search:n},cache:!1,success:function(t){e=t,o.find(".find_popup").empty();var i="";$.each(e,function(t,e){i+='"}),o.find(".find_popup").append(i),""==i&&o.find(".find_popup").append("Ничего не найдено."),o.find(".find_popup").fadeIn(),o.find(".find_popup").prepend('Результаты вашего поиска
')}})}),$("body").on("submit",".section119 form.search",function(t){if(t.preventDefault(),window.tobiz.editor)return!1;var e,o=$(this).closest(".section"),n=$(this).children('input[type="search"]').val();$(this).parents(".section").hasClass("search_in_page")?(n=(n=n.replace(/ {1,}/g," ")).toLowerCase(),t=$(".arr1 .title1"),o.find(".find_popup").hide(),t.map(function(){return $.trim($(this).text())}).get(),$.each(t,function(t,e){$(this).parents(".arr1").removeClass("finded_in_page");var i=$.trim($(this).text()).toLowerCase();-1!==(i=(i=(i=i.replace(" "," ")).replace(" "," ")).replace(/ {1,}/g," ")).indexOf(n)&&$(this).parents(".arr1").addClass("finded_in_page")}),0==$(".arr1.finded_in_page").length&&o.find(".find_popup").show().text("Ничего не найдено"),0!=$(".arr1.finded_in_page").length&&$("html,body").stop().animate({scrollTop:$(".finded_in_page").offset().top},1e3)):$.ajax({url:"/search.php",dataType:"json",cache:!1,data:{search:n},success:function(t){e=t,o.find(".find_popup").empty();var i="";$.each(e,function(t,e){i+='"}),o.find(".find_popup").append(i),""==i&&o.find(".find_popup").append("Ничего не найдено."),o.find(".find_popup").fadeIn(),o.find(".find_popup").prepend('Результаты вашего поиска
')}})}),$("body").on("click",".find_popup .close",function(){$(this).parent().fadeOut()}),1!=tobiz.editor){let isInViewport=function(t){t=t.getBoundingClientRect();return 0<=t.top&&0<=t.left&&t.bottom-20<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},isInViewport2=function(t){t=t.getBoundingClientRect();return 0<=t.top&&t.top+350<=(window.innerHeight||document.documentElement.clientHeight)},flexblocks=[].slice.call(document.querySelectorAll(".section1600 .flexblock_wrapper")),flexactive=!1,flexblockAnime=function(){!1===flexactive&&(flexactive=!0,setTimeout(function(){flexblocks.forEach(function(e){isInViewport(e)&&"none"!==getComputedStyle(e).display&&(playAnimationFront($(e).data("blockId"),$(e).data("index"),"elementVisible"),flexblocks=flexblocks.filter(function(t){return t!==e}),0===e.length)&&(document.removeEventListener("scroll",flexblockAnime),window.removeEventListener("resize",flexblockAnime),window.removeEventListener("orientationchange",flexblockAnime))}),flexactive=!1},200))},blocks=(document.addEventListener("scroll",flexblockAnime),window.addEventListener("resize",flexblockAnime),window.addEventListener("orientationchange",flexblockAnime),flexblockAnime(),[].slice.call(document.querySelectorAll(".section"))),sections_active=!1,sectionsAnime=function(){!1===sections_active&&(sections_active=!0,setTimeout(function(){blocks.forEach(function(e){var t;isInViewport2(e)&&"none"!==getComputedStyle(e).display&&(t=$(e).data("id"),$('.section1600[data-id="'+t+'"] .flexblock_wrapper').each(function(){playAnimationFront($(this).data("blockId"),$(this).data("index"),"blockVisible")}),blocks=blocks.filter(function(t){return t!==e}),0===e.length)&&(document.removeEventListener("scroll",sectionsAnime),window.removeEventListener("resize",sectionsAnime),window.removeEventListener("orientationchange",sectionsAnime))}),sections_active=!1},200))};document.addEventListener("scroll",sectionsAnime),window.addEventListener("resize",sectionsAnime),window.addEventListener("orientationchange",sectionsAnime),sectionsAnime()}function GotoRight(){++clicked_img_number+1>portfolio_img_src.length&&(clicked_img_number=0),start=!1,load_img()}function GotoLeft(){--clicked_img_number<0&&(clicked_img_number=portfolio_img_src.length-1),start=!1,load_img()}function CloseGallery(){$("#popup_img").fadeOut(100,function(){$("#popup_img").remove()})}function load_img(){var t=setTimeout(function(){$preload.show()},400);start?($gallery_img.attr("src",portfolio_img_src[clicked_img_number]).on("load",function(){clearTimeout(t),$preload.hide()}),$gallery_img.attr("src",portfolio_img_src[clicked_img_number])):$gallery_img_hide.attr("src",portfolio_img_src[clicked_img_number]).on("load",function(){$preload.hide(),$gallery_img.fadeOut(100,function(){clearTimeout(t),$gallery_img.attr("src",portfolio_img_src[clicked_img_number]).fadeIn(400)})})}function getImageSizeAndClass(t){let e="1600x1200",i="";return t.hasClass("img_album")?(e="0x1200",i="img_album"):t.hasClass("img_portrait")?(e="800x1120",i="portret"):t.hasClass("img_square")?(e="1200x1200",i="square"):t.hasClass("big_img")?(e="0x1000",i=""):t.hasClass("wide")?(e="1254x600",i="bg-mode"):t.hasClass("fill_img")?(e="1000x702",i="bg-mode"):t.hasClass("section138")&&(e="800x563",i="bg-mode"),{size:e,cssClass:i}}function showZoomedImage(t,e,i,o=!1){t=`/img/${e}/`+t.split("/")[3];$("#img_zoomer_bg").remove(),o?([o,e]=e.split("x").map(Number),o=`background-image:url(${t}); background-repeat: no-repeat; width: ${o}px; height: ${e}px; max-width: 94%;`,$("body").append(``)):$("body").append(`
`)}($(".overlay_image_box").parent().hasClass("img_zoom")||$(".image_box").hasClass("img_zoom"))&&($(window).resize(function(){$("#popup_img_wrap img").css("max-height",.98*$(window).height())}),$all_photo=$(".section .img_zoom"),portfolio_img_src=[],$all_photo.click(function(t){t.stopPropagation(),""==$(this).children(".overlay_image_box").data("link")&&(portfolio_img_src.length=0,($(this).parent().hasClass("item")?$(this).parent().parent().find(".img_zoom"):$(this).parent().children(".img_zoom")).each(function(){var t=$(this).children("img").data("src")||$(this).children("img").attr("src")||$(this).children(".img").data("src"),e=(t.split("/"),$(this).closest(".section")),t=t.split("/"),i="0x1800",e=(e.hasClass("img_album")&&(i="0x1800"),e.hasClass("img_portrait")&&(i="1200x1800",0),(e.hasClass("img_square")||e.hasClass("square"))&&(i="1800x1800",0),"/img/"+i+"/"+t[3]);portfolio_img_src.push(e)}),-1===(clicked_img_number=($(this).parent().hasClass("item")?$(this).parent():$(this)).index())&&(clicked_img_number=0),start=!0,$("body").append(''),$("#popup_img_wrap img").css("max-height",.98*$(window).height()),$("#popup_img").fadeIn(200),$preload=$("#preload"),$gallery_img=$("#popup_img_wrap img"),$gallery_img_hide=$("#popup_img_hide"),load_img())}),$("body").on("click","#popup_img_wrap",function(t){t.stopPropagation(),GotoRight()}),$("body").on("click","#popup_img_next",function(t){t.stopPropagation(),GotoRight()}),$("body").on("click","#popup_img_prev",function(t){t.stopPropagation(),GotoLeft()}),$("body").on("click","#close_popup_img",function(t){t.stopPropagation(),CloseGallery()}),$("body").on("click","#popup_img",function(t){t.stopPropagation(),CloseGallery()}),$(document).keydown(function(t){37===t.which&&GotoLeft(),39===t.which&&GotoRight()}),$(document).keydown(function(t){27===t.which&&($(".popup_wrap").fadeOut(400),$("#popup_img").fadeOut(100,function(){$("#popup_img").remove()}))})),$("body").on("click",`.section141 .overlay_image_box,.section147 .overlay_image_box,.section142 .overlay_image_box,.section1157 .overlay_image_box,.section146 .overlay_image_box,.section315 .overlay_image_box,.section315 img,.section130 .image1,.section1158 .image1,.section1158 .image2,.section1302 .image1,.section1130 .image1,.section138 .image,.section128 .image1, .section128 .image2, .section128 .image3,.section125 .image1, .section125 .image2,.section124 .image1, .section124 .image2, .section124 .image3,.section149 .image1, .section149 .image2, .section149 .image3,.section150 .image1, .section150 .image2,.section200 .image1, .section200 .image2, .section200 .image3, .section200 .image4,.section201 .image1, .section201 .image2, .section201 .image3, .section201 .image4, .section201 .image5,.section250 .image1, .section250 .image2,.section151 .image1, .section151 .image2, .section151 .image3, .section151 .image4`,function(t){var o=$(this),n=o.closest(".section");if(!tobiz.editor)if(o.hasClass("show_extra_info")){$(".show_extra_info").removeClass("currnet"),o.addClass("currnet");var e=o.closest(".arr1");let i=0;e.find(".show_extra_info").each((t,e)=>{$(e).hasClass("currnet")&&(i=t)});e=o.parent().parent().children(".extra_info_block_wrapper");void(0
`;$("body").append(t)}),$(".section1302.collapse_menu").each(function(){$(this).find(".level1").hide(),$(this).find(".level0").each(function(t,e){$(e).next().hasClass("level1")&&$(e).addClass("children_toggle")})}),$("body").on("click",".section1302.collapse_menu .children_toggle a",function(t){t.preventDefault()}),$("body").on("click",".section1302.collapse_menu .children_toggle",function(){var t=$(this).closest(".section"),i=(t.find(".level1").hide(),t.find(".children_toggle").removeClass("active"),$(this).addClass("active"),!1);$(this).nextAll().each(function(t,e){i||($(e).hasClass("level1")?$(e).show():i=!0)})}),window.basket={status:0,getBasketModified:function(){var t=JSON.parse(localStorage.getItem("basket_modified"));return null==t?(new Date).getTime():t},setBasketModified:function(){try{return localStorage.setItem("basket_modified",JSON.stringify((new Date).getTime())),!0}catch(t){t==QUOTA_EXCEEDED_ERR&&alert("Ошибка добавления товара в корзину")}},getData:function(){var t=JSON.parse(localStorage.getItem("basket"));return null==t?[]:t},saveData:function(t){try{localStorage.setItem("basket",JSON.stringify(t))}catch(t){t==QUOTA_EXCEEDED_ERR&&alert("Ошибка добавления товара в корзину")}},addItem:function(i){var t=this.getData(),o=!1;$.each(t,function(t,e){e.title==i.title&&+e.price==+i.price&&(o=!0,void 0===e.quantity?e.quantity=1:(e.quantity=parseInt(e.quantity),e.quantity++),e.price=+e.price)}),o||t.push(i),this.setBasketModified(),this.saveData(t),this.renderForm(),this.renderBtn(),this.showBtn()},removeItem:function(i){var o=this.getData(),n=!1;null!=i.price&&"NaN"!=i.price&&"null"!=i.price||(i.price=0),o&&$.each(o,function(t,e){if(n)return!0;null!=e.price&&"NaN"!=e.price&&"null"!=e.price||(e.price=0),e.title==i.title&&e.price==i.price&&(o.splice(t,1),n=!0)}),this.saveData(o)},updateItem:function(i){var t=this.getData(),o=!1;t&&$.each(t,function(t,e){if(o)return!0;e.title==i.title&&+e.price==+i.price&&(e.quantity=i.quantity,o=!0),e.price=+e.price}),this.saveData(t)},clean:function(){this.saveData([])},countItems:function(){return this.getData().length},countSum:function(){var i=0;return $.each(this.getData(),function(t,e){i+=parseInt(e.quantity)*parseFloat(e.price)}),i=+i.toFixed(2)},btnEventListener:function(){var t=this;$("body").on("click","#basket_btn",function(){t.showForm(),$("body").addClass("modal")})},renderBtn:function(){$("#basket_btn").remove(),0${this.countItems()} `),$("#basket_btn").addClass("animate"),this.init()},hideBtn:function(){$("#basket_btn").hide()},showBtn:function(){$("#basket_btn").show()},updateForm:function(){var i,t,o,n,a,e;null!==window.tobiz.basket_conf&&void 0!==window.tobiz.basket_conf&&void 0!==window.tobiz.basket_conf.basket_extra&&(i=window.tobiz.basket_conf,o=1,n="",void(t=0)!==i.basket_free_delivery&&i.basket_free_delivery&&(e=i.basket_free_delivery_from,e=+(e=parseFloat(e)).toFixed(2),this.countSum()>e?($("#basket_delivery").html("Доставка бесплатная"),$('#basket_make_order input[name="delivery"]').val("Бесплатная доставка")):($("#basket_delivery").html(`Стоимость доставки: ${i.basket_delivery_price+this.getCurrency()}Бесплатная доставка при заказе от ${i.basket_free_delivery_from+this.getCurrency()}
`),t=+i.basket_delivery_price,$('#basket_make_order input[name="pickup"]').prop("checked")&&(t=0,$("#basket_delivery").html("")),$('#basket_make_order input[name="delivery"]').val("Стоимость доставки "+(t+this.getCurrency())))),void 0!==i.basket_promo&&0!==i.basket_promo&&($('#basket_make_order input[name="promo_code"]').val(""),a=(a=(a=$("#promo_code").val()).trim()).toUpperCase())&&""!==a&&["","2","3","4","5"].forEach(t=>{var e="basket_promo_code"+t,t="basket_promo_discount"+t;(("function"==typeof i?.[e]?i[e]():i?.[e])??"").trim().toUpperCase()===a&&(e=("function"==typeof i?.[t]?i[t]():i?.[t])??0,0<(t=parseFloat(e)/100))&&t<1&&(o=1-t,e=this.countSum()*t,t=Number(e.toFixed(2)),n=`Код принят! Скидка составляет: ${t}${this.getCurrency()} `,$('#basket_make_order input[name="promo_code"]').val(a))}),e=+(e=this.countSum()*o+t).toFixed(2),$("#basket_form_itogo").html(n+" Итого: "+e+this.getCurrency()+" "),$('#basket_make_order input[name="amount"]').val(e))},formEventListener:function(){var n=this;$("body").on("click","#basket_form_close",function(){n.hideForm()}),$("body").on("click","#basket_left .remove",function(){var t=$(this).parent().find(".item-title-in-title").text(),e=$(this).parent().find(".item-price-in-title span").text();n.removeItem({title:t,price:e}),n.renderForm(),n.showForm(),n.updateForm()}),$("body").on("change",'#basket_make_order input[name="pickup"]',function(){$(this).prop("checked")?$('#basket_make_order textarea[name="address"]').prop("required",!1):$('#basket_make_order textarea[name="address"]').prop("required",!0),n.updateForm()}),$("body").on("keyup","#basket_left .quantity input",function(t){this.value=this.value.replace(/\D/gi,"").replace(/^0+/,""),""==this.value&&(this.value=0);var e=$(this).parent().parent().find(".item-title-in-title").text(),i=$(this).parent().parent().find(".item-price-in-title span").text(),o=$(this).val(),e={title:e,price:i,quantity:o},i=+(i=i*parseInt(o)).toFixed(2);$(this).parent().parent().children(".itogo").text(i+n.getCurrency()),n.updateItem(e),$('#basket_make_order textarea[name="order"]').text(JSON.stringify(n.getData())),$("#basket_form_itogo").html("Итого: "+n.countSum()+n.getCurrency()+" "),$('#basket_make_order input[name="amount"]').val(n.countSum()),n.updateForm()}),$("body").on("keyup","#promo_code",function(t){n.updateForm()}),$("body").on("click","#basket_continue",function(t){n.hideForm()}),$("body").on("click","#basket_next_step",function(){"items"==$(this).data("mode")?($(this).data("mode","form"),$(this).text("Вернуться к списку"),$(this).closest("#basket_form_inner").addClass("basket_form_active"),$("#basket_left .item").hide(),$("#basket_right").addClass("active")):($(this).data("mode","items"),$(this).text("Перейти к оформлению"),$(this).closest("#basket_form_inner").removeClass("basket_form_active"),$("#basket_left .item").show(),$("#basket_right").removeClass("active"))})},renderThanks:function(){var t=window.tobiz?.basket_conf;let e=("function"==typeof t?.basket_thanks_title?t.basket_thanks_title():t?.basket_thanks_title)??"Спасибо за покупку!",i=("function"==typeof t?.basket_thanks_text?t.basket_thanks_text():t?.basket_thanks_text)??"Заявка отправлена. Свяжемся с Вами в ближайшее время.";""==e&&(e="Спасибо за покупку!"),""==i&&(i="Заявка отправлена. Свяжемся с Вами в ближайшее время."),$("#basket_bg_thanks").remove(),$("body").append(``)},renderForm:function(){var t,e,i,n=this,o=($("#basket_form_bg").remove(),$("body").append(``),this.getData());$("#basket_left").append(`Фото
Название
Количество
Цена
`),$.each(o,function(t,e){var i="";""!=e.image&&(i=' ');var o=+(o=e.price*e.quantity).toFixed(2);$("#basket_left").append(`${i}
${e.title}
${e.price} ${n.getCurrency()}
(цена за шт.)
${o+n.getCurrency()}
`)}),$("#basket_left").append('
'),null!==window.tobiz.basket_conf&&void 0!==window.tobiz.basket_conf&&void 0!==window.tobiz.basket_conf.basket_extra?(void 0!==(t=window.tobiz.basket_conf).basket_promo&&0!==t.basket_promo&&$("#basket_left .tools").append('Промокод
'),$("#basket_left .tools").append('Итого: '+this.countSum()+n.getCurrency()+"
"),void 0!==t.basket_free_delivery&&0!==t.basket_free_delivery&&(free_delivery_from=+parseFloat(t.basket_free_delivery_from).toFixed(2),this.countSum()>free_delivery_from?$("#basket_left .tools").append(' Доставка бесплатная
'):(o=+(o=parseFloat(t.basket_delivery_price)).toFixed(2),$("#basket_left .tools").append('Стоимость доставки: '+o+this.getCurrency()+"
Бесплатная доставка при заказе от "+t.basket_free_delivery_from+n.getCurrency()+"
"))),void 0!==t.basket_continue_shopping&&t.basket_continue_shopping&&$("#basket_left .btn-group").append('Продолжить покупки
'),$("#basket_left .btn-group").append('Перейти к оформлению
'),$("#basket_right").append(''+t.basket_title+"
"),$("#basket_right").append(``),void 0!==window.tobiz.basket_conf.basket_name&&window.tobiz.basket_conf.basket_name&&$("#basket_right form").append('
'),void 0!==window.tobiz.basket_conf.basket_redirect&&window.tobiz.basket_conf.basket_redirect&&$("#basket_right form").append(' '),o="",void 0!==window.tobiz.basket_conf.basket_mask&&void 0!==window.tobiz.basket_conf.basket_mask_format&&window.tobiz.basket_conf.basket_mask&&(o=window.tobiz.basket_conf.basket_mask_format),$("#basket_right form").append('
'),void 0!==window.tobiz.basket_conf.hide_email&&window.tobiz.basket_conf.hide_email||$("#basket_right form").append('
'),void 0!==window.tobiz.basket_conf.basket_fio&&window.tobiz.basket_conf.basket_fio&&$("#basket_right form").append('
'),void 0!==window.tobiz.basket_conf.basket_pasport&&window.tobiz.basket_conf.basket_pasport&&$("#basket_right form").append('
'),void 0!==window.tobiz.basket_conf.basket_address&&window.tobiz.basket_conf.basket_address&&$("#basket_right form").append('
'),void 0!==window.tobiz.basket_conf.basket_pickup&&window.tobiz.basket_conf.basket_pickup&&$("#basket_right form").append(' Самовывоз (бесплатно)
'),window.tobiz&&window.tobiz.basket_conf,1==(e=window.tobiz&&window.tobiz.basket_conf?window.tobiz.basket_conf:{}).payment_methods_selector&&((o=[{id:"payment_method_cash",val:"cash",label:"Наличные"},{id:"payment_method_bank",val:"bank",label:"Оплата по счету"},{id:"payment_method_rk",val:"rk",label:"Робокасса"},{id:"payment_method_sb",val:"sb",label:"Сбербанк"},{id:"payment_method_yookassa",val:"yookassa",label:"Yookassa"},{id:"payment_method_ik",val:"ik",label:"InterKassa"},{id:"payment_method_payeer",val:"payeer",label:"Payeer"},{id:"payment_method_tinkoff",val:"tinkoff",label:"Tinkoff"}].filter(t=>"1"==e[t.id])).length,""!==(o=o.map(t=>`${t.label} `).join("")))&&0!==(i=$("#basket_right form")).length&&i.append(`Способ оплаты ${o}
`),i=t?.basket_btn_text?.trim()||"Оформить заказ",void 0!==window.tobiz.basket_conf.basket_comment&&window.tobiz.basket_conf.basket_comment&&$("#basket_right form").append('
'),void 0!==window.tobiz.basket_conf.basket_captcha&&window.tobiz.basket_conf.basket_captcha&&$("#basket_right form").append(''),$("#basket_right form").append(`
`),void 0!==window.tobiz.hcaptcha_field&&window.tobiz.hcaptcha_field&&$("#basket_right form").append(`${window.tobiz.hcaptcha_field}
`),$("#basket_right").append(''+t.basket_descr+"
"),void 0!==window.tobiz.is_pdp_checkbox_mandatory&&window.tobiz.is_pdp_checkbox_mandatory&&$("#basket_right").find('form [type="submit"]').parent().prepend(``),void 0!==window.tobiz.check_mailment_agreement&&window.tobiz.check_mailment_agreement&&$("#basket_right").append(``),o=null!=window.tobiz.form_policy_text?window.tobiz.form_policy_text:'Нажимая на кнопку, Вы принимаете Положение и Согласие на обработку персональных данных ',"1"==("function"==typeof t?.default_agreement?t.default_agreement():t?.default_agreement??"")&&$("#basket_right").append(`${o}
`)):(i=t?.basket_btn_text?.trim()||"Оформить заказ",$("#basket_left .tools").append('Итого: '+this.countSum()+n.getCurrency()+"
"),$("#basket_right").append(`${i}
`),$("#basket_right").append(``),$("#basket_left .btn-group").append('Перейти к оформлению
')),this.init(),this.updateForm()},hideForm:function(){$("#basket_form_bg").hide(),$("body").removeClass("modal"),this.renderBtn(),this.showBtn()},showForm:function(){$("#basket_form_bg").show(),this.hideBtn()},sendForm:function(){},getCurrency:function(){var t=" руб.";return t=null!==window.tobiz.basket_conf&&void 0!==window.tobiz.basket_conf&&void 0!==window.tobiz.basket_conf.basket_extra&&void 0!==window.tobiz.basket_conf.products_currency&&null!=window.tobiz.basket_conf.products_currency?" "+window.tobiz.basket_conf.products_currency:t},init:function(){this.status||(this.status=1,this.formEventListener(),this.btnEventListener())}},0{return(new DOMParser).parseFromString(t,"text/html").documentElement.textContent};const i=JSON.parse(e(t.attr("data-map-obj"))),o=JSON.parse(e(t.attr("data-map-center"))),n=parseInt(t.attr("data-scroll_off")),a=(t.removeAttr("data-map-obj data-map-center data-scroll_off"),t.children(".map_inner")[0]);ymaps.ready(function(){const e=new ymaps.Map(a,o);o.controls=["zoomControl"],n&&e.behaviors.disable(["scrollZoom","drag"]),Array.isArray(i)&&i.forEach(t=>{Array.isArray(t.coordinates)&&(t=new ymaps.Placemark(t.coordinates,{},{preset:"islands#icon",iconColor:t.color}),e.geoObjects.add(t))})})})},200),setInterval(function(){var t,e;$(".fixed_top").length&&($(".fixed_top").length,e=t=0,$(".fixed_top:visible").each(function(){t+=$(this).outerHeight(),$(this).css({position:"fixed"}),$(this).css({top:e+"px"}),e+=$(this).outerHeight(),0}),$("#wrapper").css({paddingTop:t+"px"}))},200),$(window).scroll(function(){$(".fixed_top").css({left:"-"+$(window).scrollLeft()+"px"})}),"?rk_pay=success"==window.location.search&&(alert("Оплата успешно завершена!"),window.location.search=""),"?rk_pay=fail"==window.location.search&&(alert("Оплата не завершена!"),window.location.search=""),$(".section302 .left.style2 ul li a, .section302 .left.style4 ul li a").hover(function(){$(this).parent().addClass("hover")},function(){$(this).parent().removeClass("hover")}),$("body").on("click",".section304 .spoiler_toggle, .section305 .spoiler_toggle",function(){$(this).parent().hasClass("close")&&$(this).text("-"),$(this).parent().hasClass("open")&&$(this).text("+"),$(this).parent().toggleClass("open"),$(this).parent().toggleClass("close")}),$("body").on("click",".section304 .spoiler_title, .section305 .spoiler_title",function(){void 0===window.tobiz.editor&&($(this).parent().toggleClass("open"),$(this).parent().toggleClass("close"))}),$(".section304 .spoiler").length&&void 0===window.tobiz.editor&&$(".section304 .spoiler").each(function(){$(this).removeClass("open"),$(this).addClass("close")}),$(".section305 .spoiler").length&&void 0===window.tobiz.editor&&$(".section305 .spoiler").each(function(){$(this).removeClass("open"),$(this).addClass("close")}),window.tobiz.editor||$(".extra_image").click(function(){var t=$(this),e=t.closest(".extra_info_block"),i=t.closest(".extra_images_big").length,t=t.children("img").attr("src").split("/").pop(),o="320x320";i?e.hasClass("s300")?o="400x560":e.hasClass("s150")?o="800x600":e.hasClass("s200")&&(o="600x600"):e.hasClass("s300")?o="320x464":e.hasClass("s150")&&(o="320x220"),e.parent().find("img").eq(0).attr("src","/img/"+o+"/"+t).attr("srcset","")}),$("body").on("click","li.level1 a",function(t){$(this).closest(".section311")||$(this).closest(".menu1").hide()}),$("body").on("mouseenter mouseleave",".section1116 li.level0",function(t){if(window.tobiz.editor)return!0;var i;"mouseenter"==t.type&&($(this).parent().find("li.level1.visible").hide().removeClass("visible"),i=!1,(t=$(this).position()).left,$(this).outerHeight(),t.top,$(this).nextAll("li").each(function(t,e){i||($(e).hasClass("level1")?($(e).outerHeight(),$(e).show().addClass("visible").css({background:"rgba(0,0,0,0)",width:170,textAlign:"left",paddingLeft:"15px"})):i=!0)}))}),$("body").on("mouseenter mouseleave",".section1117 li.level0",function(t){if(window.tobiz.editor)return!0;var i;"mouseenter"==t.type&&($(this).parent().find("li.level1.visible").addClass("visible"),i=!1,(t=$(this).position()).left,$(this).outerHeight(),t.top,$(this).nextAll("li").each(function(t,e){i||($(e).hasClass("level1")?($(e).outerHeight(),$(e).show().addClass("visible").css({background:"rgba(0,0,0,0)",width:170,textAlign:"left",paddingLeft:"20px"})):i=!0)}))}),$("body").on("mouseenter mouseleave",".section1116 .menu1",function(t){if(window.tobiz.editor)return!0;"mouseleave"==t.type&&$(this).find("li.level1.visible").hide().removeClass("visible")}),$("body").on("click",".section126 .img_1, .section126 .img_2 , .section126 .img_3 , .section126 .img_4 ",function(){$(this).parent().parent().find(".image1").addClass("blur"),$(this).parent().find(".current").removeClass("current"),$(this).addClass("current");var t=$(this).children("img").data("image"),e=$(this).parent().parent().find(".image1").children("img");setTimeout(function(){e.attr("src",t),e.attr("srcset",t)},200),setTimeout(function(){$(".blur").removeClass("blur")},200)}),$("body").on("click",".section129 .img_1, .section129 .img_2 , .section129 .img_3 , .section129 .img_4 ",function(){var t=$(this).children("img").data("image");$(this).parent().parent().find(".image1").children("img").attr("src",t)}),$(".section310 .image_box:first-child").addClass("current"),$("body").on("click",".section310 .image_box",function(){var t=$(this).children("img").data("image");$(this).parent().parent().find(".image_box").removeClass("current"),$(this).addClass("current"),$(this).parent().parent().parent().parent().find(".viewport").css({backgroundImage:"url("+t+")"})}),$(".section105").length&&($menu1=$(".section105").find(".menu1"),$menu1.find("li").length||$(".section105 .menu_mobile_btn").remove()),$("body").on("click",".section102 .menu_mobile_btn, .section105 .menu_mobile_btn, .section107 .menu_mobile_btn",function(){const i=$(this),o=i.siblings(".menu1");o.find(".social_icons, .flag_icons").remove();var t=(t,e=!1)=>{t=i.closest(".section_inner").find(t).clone();t.length&&!t.hasClass("hidden")&&(e?o.prepend(t):o.append(t))};t(".social_icons"),t(".flag_icons")});const $section116=$(".section116");function clearFilters(t){var t=$(t).closest(".section"),e=t.find(".arr1"),i=t.find(".items_filter .filter_wrap");e.show(),t.find(".filters_nothing_to_show").remove(),i.each(function(t,e){var i=$(e).data("filterType");$(e).data("filterName");"tag"==i&&$(e).find(".filter_option_toogl").removeClass("active"),"multiselect"==i&&$(e).find(".filter_options input").each(function(t,e){$(this).prop("checked",!1)}),"range"==i&&$(e).find(".filter_options input").each(function(t,e){$(e).data("ionRangeSlider").update({from:$(e).data("min"),to:$(e).data("max")})})})}function filterApply(t){var t=$(t).closest(".section"),s=t.find(".arr1"),e=t.find(".items_filter .filter_wrap"),i=(s.show(),t.find(".filters_nothing_to_show").remove(),e.each(function(t,e){var n,i=$(e).data("filterType"),a=$(e).data("filterName"),o=$(e).data("filterExtra");"tag"==i&&$(e).find(".filter_option_toogl").hasClass("active")&&s.each(function(t,e){1!=$(e).data(a)&&$(e).hide()}),"multiselect"==i&&(n=[],$(e).find(".filter_options input").each(function(t,e){$(this).prop("checked")&&n.push($(this).val())}),0$(o).data("to"))&&$(e).hide()})}))}),0);s.each(function(t,e){$(e).is(":visible")&&i++}),i||t.find(".items_filter").after('Ничего не найдено. Сбросить фильтры
')}if($("body").on("click",".section116 .menu-toogler",function(){$(this).parent().children(".menu1").toggleClass("active"),$(this).toggleClass("active"),$("body").toggleClass("modal")}),$("body").on("click",".section1156 .menu-toogler",function(){$(this).parent().children(".menu1").toggleClass("active"),$(this).toggleClass("active"),$("body").toggleClass("modal")}),$("body").on("click",".section120 .menu-toogler",function(){$(this).parent().children(".menu1").toggleClass("active"),$(this).toggleClass("active"),$("body").toggleClass("modal"),$(this).closest(".section").toggleClass("menu_open")}),$("body").on("click",".section2116 .menu-toogler",function(){var t=$(this).siblings(".logo").clone(),t=("undefined"!=t&&($(this).siblings(".menu1").find(".logo").remove(),$(this).siblings(".menu1").prepend(t)),$(this).closest(".section").find(".menu2 ul"));$(this).siblings(".menu1").find("ul").after(t),$(this).parent().children(".menu_block").toggleClass("active"),$(this).closest(".section").toggleClass("menu_open"),$(this).toggleClass("active"),$(this).siblings(".menu_block").toggle(),$("body").toggleClass("modal")}),$("body").on("click",".section2120 .menu-toogler",function(){$(this).parent().siblings(".menu_content").toggle(),$(this).toggleClass("active"),$(this).closest(".section").toggleClass("menu_open"),$(this).closest(".section").toggleClass("menu_open_new"),$("body").toggleClass("modal")}),$("body").on("click",".section2120 .menu-toogler_fixed",function(){$(this).siblings(".menu_content").toggle(),$(this).siblings(".head").toggleClass("active"),$(this).toggleClass("active"),$(this).closest(".section").toggleClass("menu_open_new"),$("body").toggleClass("modal")}),$("body").on("click",".section311 .menu1 a",function(t){t.stopPropagation(),$(window).width()<=970&&$(this).closest(".menu-and-phone-and-btn").removeClass("active")}),$("body").on("click",".section311 .menu-and-phone-and-btn .clear",function(t){$(window).width()<=970&&(t.preventDefault(),$("body").toggleClass("modal"),$(this).toggleClass("active"),$(this).parent().toggleClass("active"),$(this).siblings(".menu1").toggleClass("active"))}),void 0===window.tobiz.editor&&($("body").on("click",".dorp_filters",function(){clearFilters(this)}),$("body").on("change",".filter_options input",function(){filterApply(this)}),$("body").on("click",'[data-filter-type="tag"] .filter_option_toogl',function(){$(".filter_options").hide(),$(this).toggleClass("active"),filterApply(this)}),$("body").on("click",".filter_option_toogl.has_options",function(){var t=$(this).parent().children(".filter_options"),t=($(".filter_options").not(t).hide(),$(this).parent().children(".filter_options").toggle(),$(this).parent().children(".filter_options").outerWidth()+$(this).parent().children(".filter_options").offset().left),t=$("body").outerWidth()-t;t<0&&(t-=20,$(this).parent().children(".filter_options").css({left:t+"px"}))}),$("body").on("click",".filter_wrap",function(t){t.stopPropagation()}),$(document).click(function(){$(".filter_options").hide()})),$(".section.animate").length&&void 0===window.tobiz.editor&&1e3<$(window).width()&&3<=parseInt(window.tobiz.t)&&$(".section.animate").each(function(){var t,e,i,o,n,a,s,r,c,l,d,p,h,f,m,_,u,g,b,w,v;if(($(this).hasClass("section118")||$(this).hasClass("section128")||$(this).hasClass("section149")||$(this).hasClass("section124"))&&(_=".col_3",u=$(this).find(_),g=".arr1",b=$(this).find(g),u.css({opacity:0,position:"relative"}),w=$(this),(v=w.find(".title, .sub_title")).css({opacity:0,top:"0",position:"relative"}),$.each(b,function(t,e){$(e).find(_).eq(0).css({left:"-200px"}),$(e).find(_).eq(2).css({left:"200px"})}),$(window).scroll(function(){$.each(u,function(t,e){($(window).scrollTop()+$(window).height()/2>$(e).closest(".arr1").offset().top||$(window).scrollTop()+$(window).height()>$(e).closest(".arr1").offset().top+$(e).closest(".arr1").height())&&($(e).animate({opacity:1,left:0},1500),v.animate({opacity:1,top:0},1500))})})),($(this).hasClass("section125")||$(this).hasClass("section250"))&&(_=".col_2",u=$(this).find(_),g=".arr1",b=$(this).find(g),v=(w=$(this)).find(".title, .sub_title"),u.css({opacity:0,position:"relative"}),v.css({opacity:0,top:"0",position:"relative"}),$.each(b,function(t,e){$(e).find(_).eq(0).css({left:"-200px"}),$(e).find(_).eq(1).css({left:"200px"})}),$(window).scroll(function(){$.each(u,function(t,e){($(window).scrollTop()+$(window).height()/2>$(e).closest(".arr1").offset().top||$(window).scrollTop()+$(window).height()>$(e).closest(".arr1").offset().top+$(e).closest(".arr1").height())&&($(e).animate({opacity:1,left:0},1200),v.animate({opacity:1,top:0},1200))})})),$(this).hasClass("section1144")&&(e=$(".image_box"),u=$(this).find(e),w=$(this),$.each(u,function(t,e){$(e).css({"margin-top":200*t+"px","margin-left":20*t+"px",opacity:"0"})}),$(window).scroll(function(){$.each(u,function(t,e){$(window).scrollTop()+$(window).height()/2>$(e).parent(".images").offset().top&&$(e).animate({"margin-top":"0px","margin-left":0*t+"px",opacity:"1"},100*t+1e3)})})),$(this).hasClass("section1149")&&(e=$(".arr1 "),u=$(this).find(e),w=$(this),$.each(u,function(t,e){$(e).css({"margin-top":200*t+"px","margin-left":20*t+"px",opacity:"0"})}),$(window).scroll(function(){$.each(u,function(t,e){$(window).scrollTop()+$(window).height()/2>$(e).parent(".items").offset().top&&$(e).animate({"margin-top":"0px","margin-left":0*t+"px",opacity:"1"},200*t+1e3)})})),$(this).hasClass("section1419")&&(e=$(".arr1"),u=$(this).find(e),w=$(this),$.each(u,function(t,e){$(e).css({"margin-top":200*t+"px","margin-left":20*t+"px",opacity:"0"})}),$(window).scroll(function(){$.each(u,function(t,e){$(window).scrollTop()+$(window).height()/2>$(e).parent(".section_inner").offset().top&&$(e).animate({"margin-top":"0px","margin-left":0*t+"px",opacity:"1"},200*t+1e3)})})),$(this).hasClass("section1250")&&(e=$(".section1250 .btn1"),t=$(".section1250 .btn2"),e.css({"margin-top":"100px","margin-right":"200px",opacity:"0"}),t.css({"margin-top":"100px","margin-left":"200px",opacity:"0"}),$(window).scroll(function(){$(window).scrollTop()+$(window).height()/2+100>e.parent(".arr1").offset().top&&e.animate({"margin-top":"0px","margin-right":"20px",opacity:"1"},1200),$(window).scrollTop()+$(window).height()/2+100>t.parent(".arr1").offset().top&&t.animate({"margin-top":"0px","margin-left":"0px",opacity:"1"},1200)})),$(this).hasClass("section1145")&&(e=$(".item"),u=$(this).find(e),w=$(this),$.each(u,function(t,e){$(e).css({"margin-top":200*t/2+"px",opacity:"0"})}),$(window).scroll(function(){$.each(u,function(t,e){$(window).scrollTop()+$(window).height()/2>$(e).parent(".images").offset().top&&$(e).animate({"margin-top":"0px",opacity:"1"},100*t+1500)})})),$(this).hasClass("section1146")&&(e=$(".item"),u=$(this).find(e),w=$(this),$.each(u,function(t,e){$(e).css({"margin-top":200*t/2+"px",opacity:"0"})}),$(window).scroll(function(){$.each(u,function(t,e){$(window).scrollTop()+$(window).height()/2>$(e).parent(".images").offset().top&&$(e).animate({"margin-top":"0px",opacity:"1"},100*t+1500)})})),$(this).hasClass("section2158")&&(e=$(".anim"),u=$(this).find(e),w=$(this),$.each(u,function(t,e){$(e).css({"margin-top":200*t/2+"px",opacity:"0"})}),$(window).scroll(function(){$.each(u,function(t,e){$(window).scrollTop()+$(window).height()/2>$(e).closest(".arr1").offset().top&&$(e).animate({"margin-top":"0px",opacity:"1"},100*t+1500)})})),$(this).hasClass("section1130")&&(e=$(".arr1"),u=$(this).find(e),w=$(this),$.each(u,function(t,e){$(e).css({"margin-top":200*t/2+"px",opacity:"0"})}),$(window).scroll(function(){$.each(u,function(t,e){$(window).scrollTop()+$(window).height()/2>$(e).parent(".catalog_items ").offset().top&&$(e).animate({"margin-top":"0px",opacity:"1"},500*t+500)})})),$(this).hasClass("section307")&&(_=".col",u=$(this).find(_),g=".section_inner",b=$(this).find(g),v=(w=$(this)).find(".title, .sub_title"),u.css({opacity:0,position:"relative"}),v.css({opacity:0,top:"0",position:"relative"}),$.each(b,function(t,e){$(e).find(_).eq(0).css({left:"-600px"}),$(e).find(_).eq(1).css({left:"-400px"}),$(e).find(_).eq(2).css({left:"-200px"})}),$(window).scroll(function(){$.each(u,function(t,e){($(window).scrollTop()+$(window).height()/2>$(e).closest(".section_inner").offset().top||$(window).scrollTop()+$(window).height()>$(e).closest(".section_inner").offset().top+$(e).closest(".section_inner").height())&&($(e).animate({opacity:1,left:0},1500),v.animate({opacity:1,top:0},1500))})})),$(this).hasClass("section314")&&(_=".col_3",u=$(this).find(_),g=".section_inner",b=$(this).find(g),v=(w=$(this)).find(".title, .sub_title"),u.css({opacity:0,position:"relative"}),v.css({opacity:0,top:"0",position:"relative"}),$.each(b,function(t,e){$(e).find(_).eq(0).css({left:"-600px"}),$(e).find(_).eq(1).css({left:"-400px"}),$(e).find(_).eq(2).css({left:"-200px"})}),$(window).scroll(function(){$.each(u,function(t,e){($(window).scrollTop()+$(window).height()/2>$(e).closest(".section_inner").offset().top||$(window).scrollTop()+$(window).height()>$(e).closest(".section_inner").offset().top+$(e).closest(".section_inner").height())&&($(e).animate({opacity:1,left:0},1500),v.animate({opacity:1,top:0},1500))})})),$(this).hasClass("section309")&&(_=".col",u=$(this).find(_),g=".section_inner",b=$(this).find(g),v=(w=$(this)).find(".title, .sub_title"),u.css({opacity:0,position:"relative"}),v.css({opacity:0,top:"0",position:"relative"}),$.each(b,function(t,e){$(e).find(_).eq(0).css({left:"-1000px"}),$(e).find(_).eq(1).css({left:"-800px"}),$(e).find(_).eq(2).css({left:"-600px"}),$(e).find(_).eq(3).css({left:"-400px"}),$(e).find(_).eq(4).css({left:"-200px"})}),$(window).scroll(function(){$.each(u,function(t,e){($(window).scrollTop()+$(window).height()/2>$(e).closest(".section_inner").offset().top||$(window).scrollTop()+$(window).height()>$(e).closest(".section_inner").offset().top+$(e).closest(".section_inner").height())&&($(e).animate({opacity:1,left:0},1500),v.animate({opacity:1,top:0},1500))})})),($(this).hasClass("section153")||$(this).hasClass("section154")||$(this).hasClass("section157")||$(this).hasClass("section159")||$(this).hasClass("section258")||$(this).hasClass("section1154")||$(this).hasClass("section311")||$(this).hasClass("section155")||$(this).hasClass("section1258"))&&(_=".section_inner",u=$(this).find(_),w=$(this),i=u.find(".title"),o=u.find(".sub_title"),n=u.find(".arr_block"),a=u.find(".arr1"),s=u.find(".btn1"),r=u.find(".btn2"),c=u.find(".btn_descr"),l=u.find(".form_wrapper"),d=u.find(".timer"),p=u.find(".header"),h=u.find(".play"),i.css({left:"-1000px",opacity:0,position:"relative"}),o.css({right:"-1000px",opacity:0,position:"relative"}),s.css({bottom:"-200px",opacity:0,position:"relative"}),r.css({bottom:"-200px",opacity:0,position:"relative"}),c.css({bottom:"-200px",opacity:0,position:"relative"}),l.css({bottom:"-300px",opacity:0,position:"relative"}),d.css({bottom:"-300px",opacity:0,position:"relative"}),p.css({top:"-300px",opacity:0,position:"relative"}),n.css({opacity:0,position:"relative"}),a.css({bottom:"-300px",opacity:0,position:"relative"}),h.css({bottom:"-500px",opacity:0}),$(window).scroll(function(){$.each(u,function(t,e){($(window).scrollTop()+$(window).height()/4>$(e).closest(".section_inner").offset().top||$(window).scrollTop()+$(window).height()>$(e).closest(".section_inner").offset().top+$(e).closest(".section_inner").height())&&(i.animate({left:"0",opacity:1},1e3),o.animate({right:"0",opacity:1,position:"static"},1500),s.animate({bottom:"0",opacity:1},1200),r.animate({bottom:"0",opacity:1},1200),c.animate({bottom:"0",opacity:1,position:"static"},1200),d.animate({bottom:"0",opacity:1,position:"static"},1200),l.animate({bottom:"0",opacity:1,position:"static"},1500),n.animate({opacity:1,position:"relative"},1500),p.animate({top:"0",opacity:1,position:"relative"},1e3),a.css({bottom:"0",opacity:1,position:"relative"},1e3),h.animate({bottom:"165px",opacity:1},1e3))})})),$(this).hasClass("section308")&&(_=".col",u=$(this).find(_),g=".section_inner",b=$(this).find(g),v=(w=$(this)).find(".title, .sub_title"),u.css({opacity:0,position:"relative"}),v.css({opacity:0,top:"0",position:"relative"}),$.each(b,function(t,e){$(e).find(_).eq(0).css({left:"-800px"}),$(e).find(_).eq(1).css({left:"-600px"}),$(e).find(_).eq(2).css({left:"-400px"}),$(e).find(_).eq(3).css({left:"-200px"})}),$(window).scroll(function(){$.each(u,function(t,e){($(window).scrollTop()+$(window).height()/2>$(e).closest(".section_inner").offset().top||$(window).scrollTop()+$(window).height()>$(e).closest(".section_inner").offset().top+$(e).closest(".section_inner").height())&&($(e).animate({opacity:1,left:0},1500),v.animate({opacity:1,top:0},1500))})})),$(this).hasClass("section226")&&(_=".arr1",u=$(this).find(_),g=".section_inner",b=$(this).find(g),v=(w=$(this)).find(".title, .sub_title"),u.css({opacity:0,position:"relative"}),v.css({opacity:0,top:"0",position:"relative"}),$.each(u,function(t,e){$(e).css({left:"-"+400*(t+1)+"px"})}),$(window).scroll(function(){$.each(u,function(t,e){($(window).scrollTop()+$(window).height()/2>$(e).closest(".section_inner").offset().top||$(window).scrollTop()+$(window).height()>$(e).closest(".section_inner").offset().top+$(e).closest(".section_inner").height())&&($(e).animate({opacity:1,left:0},1500),v.animate({opacity:1,top:0},1500))})})),$(this).hasClass("section132")){let t=$(this).find(".pcenter");$(this).find(".section_inner");let e=$(this).find(".title, .sub_title");t.css({opacity:0,position:"relative"}),t.eq(0).css({left:"-400px"}),e.css({opacity:0,top:"0",position:"relative"}),$(window).scroll(function(){e.animate({opacity:1,top:0},1500),$.each(t,function(t,e){($(window).scrollTop()+$(window).height()/2>$(e).closest(".section_inner").offset().top||$(window).scrollTop()+$(window).height()>$(e).closest(".section_inner").offset().top+$(e).closest(".section_inner").height())&&$(e).animate({opacity:1,left:0},1500)})})}if($(this).hasClass("section164")){let t=$(this).find(".pcenter");$(this).find(".section_inner");let e=$(this).find(".title, .sub_title");t.css({opacity:0,position:"relative"}),t.eq(0).css({left:"-400px"}),e.css({opacity:0,top:"0",position:"relative"}),$(window).scroll(function(){e.animate({opacity:1,top:0},1500),$.each(t,function(t,e){($(window).scrollTop()+$(window).height()/2>$(e).closest(".section_inner").offset().top||$(window).scrollTop()+$(window).height()>$(e).closest(".section_inner").offset().top+$(e).closest(".section_inner").height())&&$(e).animate({opacity:1,left:0},1500)})})}($(this).hasClass("section310")||$(this).hasClass("section148")||$(this).hasClass("section147")||$(this).hasClass("section143")||$(this).hasClass("section306"))&&(_=".viewport, .iamges, .image_box1, .image_box2, .image_box3, .image_box4, .image_box5, .image_box, .form_wrapper",u=$(this).find(_),g=".section_inner",b=$(this).find(g),v=(w=$(this)).find(".title, .sub_title"),u.css({opacity:0}),v.css({opacity:0}),$(window).scroll(function(){$.each(u,function(t,e){($(window).scrollTop()+$(window).height()/2>$(e).closest(".section_inner").offset().top||$(window).scrollTop()+$(window).height()>$(e).closest(".section_inner").offset().top+$(e).closest(".section_inner").height())&&($(e).animate({opacity:1},1500),v.animate({opacity:1},1500))})})),$(this).hasClass("section126")&&(_=".image1, .video1, .right",f=".extra_images",u=$(this).find(_),m=$(this).find(f),g=".arr1",b=$(this).find(g),u.css({opacity:0,position:"relative"}),m.css({opacity:0}),$.each(b,function(t,e){$(e).find(_).eq(0).css({left:"-200px"}),$(e).find(_).eq(1).css({left:"200px"})}),w=$(this),(v=w.find(".title, .sub_title")).css({opacity:0,top:"0",position:"relative"}),$(window).scroll(function(){$.each(u,function(t,e){($(window).scrollTop()+$(window).height()/2>$(e).closest(".arr1").offset().top||$(window).scrollTop()+$(window).height()>$(e).closest(".arr1").offset().top+$(e).closest(".arr1").height())&&($(e).animate({opacity:1,left:0},1500),v.animate({opacity:1,top:0},1500))}),$.each(m,function(t,e){($(window).scrollTop()+$(window).height()/2>$(e).closest(".arr1").offset().top||$(window).scrollTop()+$(window).height()>$(e).closest(".arr1").offset().top+$(e).closest(".arr1").height())&&$(e).animate({opacity:1},2e3)})})),$(this).hasClass("section129")&&(_=".image1, .video1, .right",f=".extra_images",u=$(this).find(_),m=$(this).find(f),g=".arr1",b=$(this).find(g),u.css({opacity:0,position:"relative"}),m.css({opacity:0}),$.each(b,function(t,e){$(e).find(_).eq(0).css({left:"-200px"}),$(e).find(_).eq(1).css({left:"200px"})}),w=$(this),(v=w.find(".title, .sub_title")).css({opacity:0,top:"0",position:"relative"}),$(window).scroll(function(){$.each(u,function(t,e){($(window).scrollTop()+$(window).height()/2>$(e).closest(".arr1").offset().top||$(window).scrollTop()+$(window).height()>$(e).closest(".arr1").offset().top+$(e).closest(".arr1").height())&&($(e).animate({opacity:1,left:0},1500),v.animate({opacity:1,top:0},1500))}),$.each(m,function(t,e){($(window).scrollTop()+$(window).height()/2>$(e).closest(".arr1").offset().top||$(window).scrollTop()+$(window).height()>$(e).closest(".arr1").offset().top+$(e).closest(".arr1").height())&&$(e).animate({opacity:1},2e3)})})),$(this).hasClass("section301")&&(_=".arr1",g=".section_inner",b=$(this).find(g),w=$(this),u=$(this).find(_),v=w.find(".title, .sub_title"),u.css({opacity:0,left:"-400px",position:"relative"}),v.css({opacity:0,top:"0",position:"relative"}),$(window).scroll(function(){$.each(u,function(t,e){($(window).scrollTop()+$(window).height()/2>$(e).closest(".arr1").offset().top||$(window).scrollTop()+$(window).height()>$(e).closest(".arr1").offset().top+$(e).closest(".arr1").height())&&($(e).animate({opacity:1,left:0},1500),v.animate({opacity:1,top:0},1500))})})),$(this).hasClass("section117")&&(_=".col_2",u=$(this).find(_),g=".arr1",b=$(this).find(g),v=(w=$(this)).find(".title, .sub_title"),u.css({opacity:0,position:"relative"}),v.css({opacity:0,top:"0",position:"relative"}),$.each(b,function(t,e){(t+1)%2?($(e).find(_).eq(0).css({left:"-200px"}),$(e).find(_).eq(1).css({left:"200px"})):($(e).find(_).eq(0).css({left:"200px"}),$(e).find(_).eq(1).css({left:"-200px"}))}),$(window).scroll(function(){$.each(u,function(t,e){($(window).scrollTop()+$(window).height()/2>$(e).closest(".arr1").offset().top||$(window).scrollTop()+$(window).height()>$(e).closest(".arr1").offset().top+$(e).closest(".arr1").height())&&($(e).animate({opacity:1,left:0},1200),v.animate({opacity:1,top:0},1200))})})),($(this).hasClass("section152")||$(this).hasClass("section201"))&&(_=".image_box1, .image_box2, .image_box3, .image_box4, .image_box5, .col_5 ",u=$(this).find(_),g=".arr1",b=$(this).find(g),v=(w=$(this)).find(".title, .sub_title"),u.css({opacity:0,position:"relative"}),v.css({opacity:0,top:"0",position:"relative"}),$.each(b,function(t,e){$(e).find(_).eq(0).css({left:"-200px"}),$(e).find(_).eq(1).css({left:"-100px"}),$(e).find(_).eq(3).css({left:"100px"}),$(e).find(_).eq(4).css({left:"200px"})}),$(window).scroll(function(){$.each(u,function(t,e){($(window).scrollTop()+$(window).height()/2>$(e).closest(".arr1").offset().top||$(window).scrollTop()+$(window).height()>$(e).closest(".arr1").offset().top+$(e).closest(".arr1").height())&&($(e).animate({opacity:1,left:0,top:0},1500),v.animate({opacity:1,top:0},1500))})})),($(this).hasClass("section121")||$(this).hasClass("section151")||$(this).hasClass("section200"))&&(_=".col_4",u=$(this).find(_),g=".arr1",b=$(this).find(g),v=(w=$(this)).find(".title, .sub_title"),u.css({opacity:0,position:"relative"}),v.css({opacity:0,top:"0",position:"relative"}),$.each(b,function(t,e){$(e).find(_).eq(0).css({left:"-200px"}),$(e).find(_).eq(1).css({left:"-100px"}),$(e).find(_).eq(2).css({left:"100px"}),$(e).find(_).eq(3).css({left:"200px"})}),$(window).scroll(function(){$.each(u,function(t,e){($(window).scrollTop()+$(window).height()/2>$(e).closest(".arr1").offset().top||$(window).scrollTop()+$(window).height()>$(e).closest(".arr1").offset().top+$(e).closest(".arr1").height())&&($(e).animate({opacity:1,left:0,top:0},1500),v.animate({opacity:1,top:0},1500))})}))}),$(".section.widget").length&&void 0===window.tobiz.editor&&1==parseInt(window.tobiz.w)){if(!$('.section[data-mode="popup"]').length){const sections=[1e3,1004,1005,1006,1007];if(sections.forEach(i=>{if($(".section"+i).length){let e=!0;$("html").mouseleave(t=>{e&&(e=!1,$(".section"+i).find(".extra_info_block_wrapper").show())})}}),$(".section1003").length){$(".section1003").show();const widgetHeight=$(".section1003").outerHeight();widgetHeight&&$("#wrapper").css("padding-bottom",widgetHeight+"px")}}$('.section[data-mode="popup"]').each(function(){var t=new Date,e=parseInt($(this).data("lag")),i=parseInt($(this).data("start")),o=parseInt($(this).data("stop"));if(!(i<0||23=i&&t.getHours()<=o){const n=$(this).find(".extra_info_block_wrapper");setTimeout(()=>{n.show()},1e3*e)}}),$(".section1001").length&&(today=new Date,$(".section1001").each(function(){var t,e=parseInt($(this).data("lag")),i=parseInt($(this).data("start")),o=parseInt($(this).data("stop"));return!(i<0&&23=i&&today.getHours()<=o&&(t=$(this).find(".extra_info_block_wrapper"),setTimeout(function(){t.show()},1e3*e)))}));const sections=[{id:1008,className:"this_show"},{id:1010,className:"this_shows"}];sections.forEach(n=>{if($(".section"+n.id).length){const a=new Date;$(".section"+n.id).each(function(){var t=parseInt($(this).data("lag")),e=parseInt($(this).data("start")),i=parseInt($(this).data("stop"));if(e<0||23=e&&a.getHours()<=i){const o=$(this).find(".extra_info_block"+(n.id?"":"_wrapper"));setTimeout(()=>{o.show(),o.addClass(n.className)},1e3*t)}})}})}window.tobiz.section1307Init=function(id){var block_calc_id="#b_"+id,results=$(block_calc_id).find(".calc_result"),r=[];function formatNumber(t){return isNaN(t)?t:t.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1 ")}$.each(results,function(i,el){var formula=$(el).data("formula"),data=JSON.parse(decodeURIComponent($(el).data("params"))),formula=formula.toLowerCase(),result=($.each(data,function(t,e){var i,o;"select"!=e.type&&"checkbox"!=e.type&&"radio"!=e.type&&"number"!=e.type&&"range"!=e.type||(i=String.fromCharCode(97+t),"number"==e.type&&(o=(o=parseFloat($(block_calc_id).find(".field").eq(t).find("input").val()))||0,o+=""),"checkbox"==e.type&&(o=0,$(block_calc_id).find(".field").eq(t).find("input:checked").each(function(){var t=$(this).val();t&&(o+=parseFloat(t))}),o+=""),"radio"==e.type&&(o=(o=parseFloat($(block_calc_id).find(".field").eq(t).find("input:checked").val()))||0,o+=""),"range"==e.type&&(o=(o=parseFloat($(block_calc_id).find(".field").eq(t).find("input").val()))||0,o+=""),"select"==e.type&&(o=(o=parseFloat($(block_calc_id).find(".field").eq(t).find("option:selected").val()))||0,o+=""),e=new RegExp(i,"gi"),formula=formula.replace(e,o))}),$.each(r,function(t,e){var i=new RegExp("r"+(t+1),"gi");formula=formula.replace(i,r[t])}),"Укажите параметры");try{result=Math.round(100*parseFloat(eval(formula)))/100}catch(e){}r[i]=Math.round(100*parseFloat(result))/100,!isNaN(result)&&"Infinity"!==result||(result=0),$(el).text(formatNumber(result))});var results_input=$(block_calc_id).find('.total_block input[type="hidden"]'),r_i=[];$.each(results_input,function(i,el){var formula=$(el).data("formula"),formula=formula.toLowerCase(),data=JSON.parse(decodeURIComponent($(el).data("params"))),results_input=($.each(data,function(t,e){var i,o;"select"!=e.type&&"checkbox"!=e.type&&"radio"!=e.type&&"number"!=e.type&&"range"!=e.type||(i=String.fromCharCode(97+t),"number"==e.type&&(o=(o=parseFloat($(block_calc_id).find(".field").eq(t).find("input").val()))||0,o+=""),"checkbox"==e.type&&(o=0,$(block_calc_id).find(".field").eq(t).find("input:checked").each(function(){var t=$(this).val();t&&(o+=parseFloat(t))}),o+=""),"radio"==e.type&&(o=(o=parseFloat($(block_calc_id).find(".field").eq(t).find("input:checked").val()))||0,o+=""),"range"==e.type&&(o=(o=parseFloat($(block_calc_id).find(".field").eq(t).find("input").val()))||0,o+=""),"select"==e.type&&(o=(o=parseFloat($(block_calc_id).find(".field").eq(t).find("option:selected").val()))||0,o+=""),e=new RegExp(i,"gi"),formula=formula.replace(e,o))}),$.each(r_i,function(t,e){var i=new RegExp("r"+(t+1),"gi");formula=formula.replace(i,r_i[t])}),"");try{results_input=Math.round(100*parseFloat(eval(formula)))/100}catch(e){}r_i[i]=Math.round(100*parseFloat(results_input))/100,$(el).val(results_input),$(el).hasClass("default_result")&&$(el).parent().parent().find("[data-amount]").eq(0).attr("data-amount",results_input)}),window.tobiz.section1307Descr(id)},window.tobiz.section1307Descr=function(t){t=$("#b_"+t).find("form");t.find("input.select_descr___").remove(),$.each(t.find("select"),function(t,e){var t=$(e).closest(".field").find(".field_title").text()||"Выбрана опция "+t,i=$(e).find("option:selected").eq(0).text();$(e).after(' ')}),t.find("input.radio_descr___").remove(),$.each(t.find('input[type="radio"]'),function(t,e){var i;$(e).prop("checked")&&(t=$(e).closest(".field").find(".field_title").text()||"Выбрана опция "+t,i=$(e).parent().find(".data_title").eq(0).text(),$(e).siblings("label").after(' '))})},$(".section1307").each(function(){window.tobiz.section1307Init($(this).data("id"))}),$(".section1226").length&&$(".section1226").each(function(){var t=$(this);t.find(".section_inner").css({minHeight:t.find(".arr_wrapp").outerHeight()+"px"})});var sections=[".section139",".section1810",".section1820",".section1800"],ctx,this_location;function refreshTableWrappers(){var i;$(window).width()<=840&&(i=$(".section_inner").width(),$(".table").each(function(t,e){$(e).width()>i&&($(this).parent().hasClass("table_wrap")||($(e).wrap('
'),$(".table_wrap_"+t).prepend('
')))}))}function refreshTwentyTwentyBlocks(){[".section139",".section1800",".section1810",".section1820"].forEach(function(t){$(t).each(function(){$(this).find(".twentytwenty-container").twentytwenty({default_offset_pct:.7,orientation:"horizontal",before_label:"",after_label:"",no_overlay:!0,move_slider_on_hover:!1,move_with_handle_only:!1,click_to_move:!1})})})}function parsePriceText(t){t=parseInt(t.replace(/\D+/g,""),10);return isNaN(t)?0:t}function sort_to_max(t,e){return parsePriceText($(t).find(".price1").text())-parsePriceText($(e).find(".price1").text())}function sort_to_min(t,e){t=parsePriceText($(t).find(".price1").text());return parsePriceText($(e).find(".price1").text())-t}function fixSection130Count2Tile(){$(".section130 .catalog_items.count2").each(function(){$(this).find(".arr1").each(function(){var t,e,i=$(this).find(".col_4").first();0===i.length||0'),e.appendTo(t),(e=i.children(".image1").first()).length?e.after(t):i.append(t))})})}function foo(){$(".section321").each(function(){$(this).find(".arr1:nth-of-type(1)").find(".tab_btn").click()})}function txtArea(){$(".calculator textarea").click()}function delMobClass(){$(window).width()<=1200?$(".section_inner.width1170").each(function(){$(this).addClass("was_width1170"),$(this).removeClass("width1170")}):1200<$(window).width()&&$(".section_inner.was_width1170").each(function(){$(this).removeClass("was_width1170"),$(this).addClass("width1170")})}function ToTopBtn(){var t=$(".section1163");300<$(window).scrollTop()?t.show():t.hide()}sections.forEach(function(t){$(t).length&&setTimeout(function(){$(t).each(function(){$(this).find(".twentytwenty-container").twentytwenty({default_offset_pct:.7,orientation:"horizontal",before_label:"",after_label:"",no_overlay:!0,move_slider_on_hover:!1,move_with_handle_only:!1,click_to_move:!1})})},".section1800"===t?300:0)}),$(window).resize(function(){this.resizeTO&&clearTimeout(this.resizeTO),this.resizeTO=setTimeout(function(){$(this).trigger("resizeComplete")},500)}),$(window).bind("resizeComplete",function(){if(delMobClass(),not_menu(),refreshTableWrappers(),$(".section320").each(function(){window.tobiz.slider320Init($(this).data("id"))}),$(".section312").each(function(){window.tobiz.slider312Init($(this).data("id"))}),$(".section334").each(function(){window.tobiz.slider334Init($(this).data("id"))}),$(".section156").each(function(){window.tobiz.slider156Init($(this).data("id"))}),$(".section1156").each(function(){window.tobiz.slider1156Init($(this).data("id"))}),$(".section166").each(function(){window.tobiz.slider166Init($(this).data("id"))}),$(".section160").each(function(){window.tobiz.slider160Init($(this).data("id"))}),$(".section1011").each(function(){window.tobiz.slider1011Init($(this).data("id"))}),$(".section129").each(function(){window.tobiz.slider129Init($(this).data("id"))}),$(".section151").each(function(){window.tobiz.slider151Init($(this).data("id"))}),$(".section149").each(function(){window.tobiz.slider149Init($(this).data("id"))}),$(".section118").each(function(){window.tobiz.slider118Init($(this).data("id"))}),refreshTwentyTwentyBlocks(),$(".section1226").length&&$(".section1226").each(function(){var t=$(this);t.find(".section_inner").css({minHeight:t.find(".arr_wrapp").outerHeight()+"px"})}),640<$(window).width()?$section116.find(".menu1").show():$section116.find(".menu1").hide(),$section116.length){const i=$("#wrapper .section:not(.section116)").eq(0).find(".section_inner");var t=()=>{var t,e;$(window).width()<=800?(e=2*(e=$section116.find(".menu-toogler")).offset().left+e.width(),e=(t=($(window).outerWidth()-i.outerWidth())/2)'+e+"")}),$(".section333").each(function(t,e){var i=$(this).find(".level0"),o=$(this),i=(i.each(function(t,e){$(this).children("a").html(t+1)}),$(this).find(".level0")),n=i.length;10",$("body").find("h1, h2, h3, h4, h5, h6").each(function(t,e){var i=1;"H1"==$(this).prop("tagName")&&(i=1),"H2"==$(this).prop("tagName")&&(i=2),"H3"==$(this).prop("tagName")&&(i=3),"H4"==$(this).prop("tagName")&&(i=4),"H5"==$(this).prop("tagName")&&(i=5),"H6"==$(this).prop("tagName")&&(i=6),$(this).prepend(' '),n+=''+$(this).text()+" "}),n+="",$(this).find(".shema").html(n)}),$(".section1700").length&&$(".section1700").each(function(){var o,n,t=$(".article_content").find("h2, h3, h4, h5, h6");t.length?(o=$(this).closest(".section").attr("id"),n="Содержание:
",n+="",$.each(t,function(t,e){$(this).prepend(' ');var i;e=e,i=1,"H2"==$(e).prop("tagName")&&(i=1),"H3"==$(e).prop("tagName")&&(i=2),"H4"==$(e).prop("tagName")&&(i=3),"H5"==$(e).prop("tagName")&&(i=4),i="H6"==$(e).prop("tagName")?5:i;n+=''+$(this).text()+" "}),n+=" ",$(this).find(".shema").html(n)):$(".shema").remove()}),$(".section1400").length&&$(".section1400").each(function(){var t=$(this).attr("id"),e=$(this).data("legend-position"),i=($(this).find(".chart").each(function(){ctx=this.getContext("2d")}),$("#"+t+" .arr_color")),o=$("#"+t+" .arr_title"),n=$("#"+t+" .arr_value"),t=$("#"+t+" .graph").data("type");function a(t){for(var e=new Array,i=0;i${window.tobiz.form_policy_text}`),t=$(this).parent().children(".flexblock_popup_form").html(),e=$(this).parent().children(".flexblock_popup_form").find("form > .flexblock_popup_title").html(),window.modal.getModal(e,t,"flexblock_popup"))});var url={getParam:function(t,e){e=e||window.location.href,t=t.replace(/[\[\]]/g,"\\$&");t=new RegExp("[?&]"+t+"(=([^]*)|&|#|$)").exec(e);return t?t[2]?decodeURIComponent(t[2].replace(/\+/g," ")):"":null}},cookie={set:function(t,e,i){var o,n="";i&&((o=new Date).setTime(o.getTime()+24*i*60*60*1e3),n="; expires="+o.toUTCString()),document.cookie=t+"="+(e||"")+n+"; path=/"},get:function(t){for(var e=t+"=",i=document.cookie.split(";"),o=0;o a").css({position:"absolute",display:"inline-block",top:-1*$(".section.fixed_top").height()}),setTimeout(function(){var t,e;$(".editor_false .section5001").length&&(e={flakeCount:(t=$(".section5001").data()).flakeCount,flakeColor:t.flakeColor,minSize:t.minSize,maxSize:t.maxSize,minSpeed:t.minSpeed,maxSpeed:t.maxSpeed,round:t.round,shadow:t.shadow,image:"/img/snowfall/"+t.image,collection:t.collection},t.image&&void 0!==t.image&&"undefined"!=t.image?delete e.collection:delete e.image,t.collection&&void 0!==t.collection&&"undefined"!=t.collection||delete e.collection,$("#wrapper").snowfall(e))},2e3),setTimeout(function(){$(".section1126").length&&1300<$(window).width()?$("#wrapper").addClass("padding_wrapper_right"):$("#wrapper").removeClass("padding_wrapper_right")},300),$("body").on("click",".hide_long_catalog .hide_long_catalog_spoiler",function(){$(this).closest(".hide_long_catalog").removeClass("hide_long_catalog"),$(this).remove()}),$(window).on("scroll",function(){$(".parallax_section").each(function(){var t=$(this).data("id"),e=$("#b_"+t).offset().top,i=$(window).scrollTop(),o=i-e;e<=i&&$("#b_"+t).find(".section_inner").children().css({transform:"translateY("+o/2+"px)"})})}),$(document).on("click",'[data-action="show-module-description"]',function(){var t=$(this).data("module-id");$(this).find(".fa").toggleClass("rotate-90"),$(`.content_wrapper[data-module-id="${t}"]`).toggleClass("hidden")}),$(document).on("click",'[data-action="get_course_to_user"]',function(){var e=$(this),t=e.data();$.ajax({url:"/auth.php",type:"POST",dataType:"json",data:t,async:!1,cache:!1,success:function(t){"Success"==t.status?(t.payment_url&&(window.location.href=t.payment_url),t.btn_text&&e.html(t.btn_text)):alert(t.description)},error:function(t){}})});const urlParams=new URLSearchParams(window.location.search);"true"===urlParams.get("cheese")&&$(".section").addClass("cheese")});