"use strict";(()=>{var F=()=>{let g=document.querySelector(".tunnel");if(!g)return;let a=g.querySelectorAll(".work-face-section-trigger");if(a.length){let s=m=>{document.querySelectorAll("[tunnel-index-div]").forEach(o=>{let d=o.getAttribute("tunnel-index-div");o.classList.toggle("hide",d!==m.toString())})};a.forEach((m,o)=>{gsap.to({},{scrollTrigger:{trigger:m,start:"top top",end:"bottom top",onUpdate:d=>{d.isActive&&s(o+1)}}})}),s(1)}};var V=()=>{let g=["https://cdn.prod.website-files.com/66d705e00cbf9913ba1c539b/6788356d2480c4c990e30d02_1.png","https://cdn.prod.website-files.com/66d705e00cbf9913ba1c539b/678835807fc92b0b8ee0c0c0_2.png","https://cdn.prod.website-files.com/66d705e00cbf9913ba1c539b/67883580c0e6b74286e48dce_3.png","https://cdn.prod.website-files.com/66d705e00cbf9913ba1c539b/67883580605d94a89c8a421f_4.png","https://cdn.prod.website-files.com/66d705e00cbf9913ba1c539b/67883580758eac19b94e925c_5.png","https://cdn.prod.website-files.com/66d705e00cbf9913ba1c539b/678835805259a4d654fc3572_6.png","https://cdn.prod.website-files.com/66d705e00cbf9913ba1c539b/67883580aede649838e66424_7.png"];function a(m){let o=document.querySelector("link[rel~='icon']");o||(o=document.createElement("link"),o.rel="icon",document.head.appendChild(o)),o.href=m}function s(){let m=window.scrollY,o=document.documentElement.scrollHeight-window.innerHeight,d=m/o*100,h=Math.min(Math.floor(d/100*g.length),g.length-1);a(g[h])}window.addEventListener("scroll",s),s()};var M=g=>{let a=window.getComputedStyle(g);return a.display!=="none"&&a.visibility!=="hidden"},D=()=>{let g=document.querySelectorAll("[face-work-lottie-portfolio-pc]"),a=document.querySelectorAll("[face-work-lottie-portfolio-mobile]");if(!g.length&&!a.length)return;let s=new Map,m=new Map,o=async n=>{if(!M(n))return null;n.style.opacity="0",n.style.transition="opacity 0.5s ease-out";let l=n.getAttribute("face-work-lottie-portfolio-pc")||n.getAttribute("face-work-lottie-portfolio-mobile"),u=n.closest("[portfolio-item]");if(!u)return null;let y=u.querySelector(".fs-rangeslider_form");y&&(y.style.opacity="0",y.style.transition="opacity 0.5s ease-out");let c=u.querySelector(".portfolio-progress-bar"),v=u.querySelector("[project-item-toggle]");v&&(v.setAttribute("data-loading","true"),v.style.pointerEvents="none",v.style.opacity="0.5"),u.setAttribute("data-interaction-locked","true"),n.innerHTML="",c&&(c.style.width="0%",c.style.opacity="1",c.style.transition="width 0.3s ease-out");let E=()=>{if(!(!c||!u)){if(c.style.transition="none",c.style.animation="none",c.offsetWidth,c.style.animation="progress-pulse 1.2s ease-in-out infinite",!document.querySelector("#progress-pulse-keyframes")){let i=document.createElement("style");i.id="progress-pulse-keyframes",i.textContent=` @keyframes progress-pulse { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } } `,document.head.appendChild(i)}u.setAttribute("title","Almost ready... Please wait while content is loading")}},C=()=>{if(!c||!u)return;c.style.animation="none",c.style.transition="opacity 0.3s ease-out",c.style.opacity="0",u.removeAttribute("title"),n.style.opacity="1";let i=u.querySelector(".fs-rangeslider_form");i&&(i.style.opacity="1"),setTimeout(()=>{v&&(v.removeAttribute("data-loading"),v.style.pointerEvents="auto",v.style.opacity="1"),u.removeAttribute("data-interaction-locked")},1e3)},x=i=>{if(c&&(c.style.width=`${i}%`,i>=100)){E();let r=()=>{let t=u.querySelector("[portfolio-item-toggle-content]");t&&(parseInt(t.style.height)>0&&M(n)&&n.querySelector("svg")?C():setTimeout(r,100))};r()}};if(m.has(l)){let i=m.get(l);return c&&(c.style.transition="width 0.2s ease-out",x(100)),lottie.loadAnimation({container:n,renderer:"svg",loop:!1,autoplay:!1,animationData:i})}return new Promise((i,r)=>{let t=new XMLHttpRequest;t.open("GET",l,!0),t.responseType="json";let e=0,f=0,w=0,L=Date.now();t.onprogress=b=>{let p=Date.now();if(b.lengthComputable){let q=Math.round(b.loaded/b.total*100);q!==w&&(x(q),w=q);return}if(b.loaded>f&&(f=b.loaded),p-L>200){if(b.loaded-e>0){let T=0;b.loaded<1024*1024?T=25:b.loaded<3*1024*1024?T=50:b.loaded<5*1024*1024?T=75:T=90,T>w&&(x(T),w=T)}e=b.loaded,L=p}},t.onload=function(){if(t.status===200)try{let b=t.response;x(100),m.set(l,b);let p=lottie.loadAnimation({container:n,renderer:"svg",loop:!1,autoplay:!1,animationData:b});i(p)}catch(b){console.error("\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u0438 \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u0438 \u0430\u043D\u0438\u043C\u0430\u0446\u0438\u0438 Lottie:",b),r(b)}else console.error("\u041E\u0448\u0438\u0431\u043A\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0438 Lottie:",t.statusText),r(new Error(`\u041E\u0448\u0438\u0431\u043A\u0430 HTTP: ${t.status}`))},t.onerror=function(){console.error("\u041E\u0448\u0438\u0431\u043A\u0430 \u0441\u0435\u0442\u0438 \u043F\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0435 Lottie"),r(new Error("\u041E\u0448\u0438\u0431\u043A\u0430 \u0441\u0435\u0442\u0438"))},t.send()})},d=(n,l)=>{if(!n.size)return;let y=(parseInt(l.getAttribute("aria-valuenow"))||0)/3e3;n.forEach(c=>{let v=c.totalFrames*(.01+y*.98);c.goToAndStop(v,!0)})},h=(n,l)=>{let u=n.closest("[portfolio-item]");if(!u||!l)return;let y=new MutationObserver(c=>{c.forEach(v=>{if(v.attributeName==="portfolio-item"){let E=u.getAttribute("portfolio-item")==="visible";if(E&&!s.has(n)){let C=s.get(n);C&&(C.destroy(),s.delete(n),n.innerHTML=""),o(n).then(x=>{x&&(s.set(n,x),d(new Map([[n,x]]),l))})}else if(!E&&s.has(n)){let C=s.get(n);C&&(C.destroy(),n.innerHTML=""),s.delete(n)}}})});return y.observe(u,{attributes:!0,attributeFilter:["portfolio-item"]}),y};(()=>{document.querySelectorAll("[portfolio-item]").forEach(l=>{let u=l.querySelector("[face-work-lottie-portfolio-pc]"),y=l.querySelector("[face-work-lottie-portfolio-mobile]"),c=l.querySelector(".fs-rangeslider_handle");if(!c)return;u&&h(u,c),y&&h(y,c),new MutationObserver(E=>{E.forEach(C=>{if(C.attributeName==="aria-valuenow"){let x=new Map;u&&s.has(u)&&x.set(u,s.get(u)),y&&s.has(y)&&x.set(y,s.get(y)),d(x,c)}})}).observe(c,{attributes:!0,attributeFilter:["aria-valuenow"]})})})(),(()=>{let n=document.querySelectorAll("[portfolio-item]");n.forEach((l,u)=>{let y=l.querySelector("[portfolio-item-toggle-content]"),c=l.querySelector("[project-item-toggle]"),v=c?c.querySelector("[project-item-toggle-arrow]"):null;if(!y)return;u===0?(l.setAttribute("portfolio-item","visible"),y.style.transition="height 0.3s ease",P(y),v&&(v.style.transform="rotate(180deg)")):(l.setAttribute("portfolio-item","hidden"),y.style.height="0px",y.style.transition="height 0.3s ease",v&&(v.style.transform="rotate(0deg)")),new MutationObserver(C=>{C.forEach(x=>{if(x.attributeName==="portfolio-item"){let i=l.getAttribute("portfolio-item")==="visible",r=l.querySelector("[portfolio-item-toggle-content]"),t=l.querySelector("[project-item-toggle]"),e=t?t.querySelector("[project-item-toggle-arrow]"):null;r&&(i?(P(r),e&&(e.style.transform="rotate(180deg)")):(r.style.height="0px",e&&(e.style.transform="rotate(0deg)")))}})}).observe(l,{attributes:!0,attributeFilter:["portfolio-item"]})}),n.forEach(l=>{let u=l.querySelectorAll("[portfolio-item-toggle-ignore]"),y=l.querySelectorAll("[portfolio-item-toggle-auto]");l.addEventListener("click",c=>{let v=!1,E=c.target;if(l.hasAttribute("data-interaction-locked"))return;for(;E&&E!==l;){if(E.hasAttribute("portfolio-item-toggle-ignore")){v=!0;break}E=E.parentElement}if(v){let r=!1;for(E=c.target;E&&E!==l;){if(E.hasAttribute("portfolio-item-toggle-auto")){r=!0;break}E=E.parentElement}if(!r)return}let x=l.getAttribute("portfolio-item")==="hidden"?"visible":"hidden";l.setAttribute("portfolio-item",x);let i=l.querySelector("[work-toggl-trigger]");i&&i.dispatchEvent(new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0}))})})})()},P=async g=>{await new Promise(o=>requestAnimationFrame(o)),g.style.height="auto";let a=g.closest("[portfolio-item]"),s=g.querySelectorAll("[face-work-lottie-portfolio-pc], [face-work-lottie-portfolio-mobile]");if(a){let o=a.querySelector(".fs-rangeslider_form");o&&(o.style.opacity="0",o.style.transition="opacity 0.5s ease-out")}s.forEach(o=>{o.style.opacity="0",o.style.transition="opacity 0.5s ease-out";let d=o.querySelector("svg");d&&(d.style.transform="none",d.style.height="auto")});let m=Array.from(s).filter(o=>M(o)).map(o=>new Promise(d=>{let h=()=>{let S=o.querySelector("svg");S&&S.getBoundingClientRect().height>0?d():setTimeout(h,50)};h()}));if(await Promise.all(m),await new Promise(o=>setTimeout(o,100)),g){g.style.height="auto";let o=g.scrollHeight;g.setAttribute("data-original-height",o.toString());let d=h=>{let S=parseFloat(getComputedStyle(document.documentElement).fontSize);return`${h/S}rem`};g.style.height=d(o),setTimeout(()=>{if(s.forEach(h=>{M(h)&&(h.style.opacity="1")}),a){let h=a.querySelector(".fs-rangeslider_form");h&&(h.style.opacity="1")}},200)}};var N=()=>{let g=document.getElementById("current-year");g&&(g.innerText=new Date().getFullYear())};var I=()=>{document.querySelectorAll("form.main-hero-form").forEach(a=>{let s=a.closest("[hero-form]"),m=a.querySelectorAll("[form-step-input]"),o=a.querySelector('[form-step-input="1"]'),d=a.querySelector('[form-step-input="2"]'),h=a.querySelector('[form-step-input="3"]'),S=a.querySelector('[fs-mirrorclick-element="trigger"]'),A=new Set;m.forEach(t=>{t.addEventListener("input",l),t.addEventListener("focus",n)});function n(t){let e=parseInt(t.target.getAttribute("form-step-input"),10);C(e)}function l(t){let e=t.target,f=parseInt(e.getAttribute("form-step-input"),10),w=e.value.trim();e.errorTimeout&&(clearTimeout(e.errorTimeout),e.errorTimeout=null);let L=c(f,w);v(e,f,w),L?e.classList.remove("input-error"):f===1?e.classList.add("input-error"):e.errorTimeout=setTimeout(()=>{let b=e.value.trim();c(f,b)||e.classList.add("input-error"),e.errorTimeout=null},3e3)}function u(t){try{let f=new URL(t).hostname.toLowerCase();return f.includes("figma.com")||f.includes("drive.google.com")||f.includes("dropbox.com")}catch{return!1}}function y(t){return/^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/.test(t)}function c(t,e){return t===1?e===""||u(e):t===2?y(e):t===3?e.length>=2:!1}function v(t,e,f){A.delete(e);let w=c(e,f);e===1?f!==""&&u(f)&&A.add(e):w&&A.add(e),w?(e===1&&(t.placeholder="link to figma, google drive or dropbox"),e===2&&(t.placeholder="email"),e===3&&(t.placeholder="detail about the project (scope, deadlines)")):(e===1&&(t.placeholder="Please enter a valid Figma, Google Drive or Dropbox link"),e===2&&(t.placeholder="Please enter a valid email address"),e===3&&(t.placeholder="Please enter at least 2 characters"),E(e)),x(),i()}function E(t){for(let e=t;e<=3;e++){let f=s?s.querySelector(`[form-step-ill="${e}"]`):null;f&&f.classList.remove("is-active");let w=s?s.querySelector(`[form-step-progress-item="${e}"]`):null;if(w){let b=w.querySelector(".steps-grid_item-line-filler"),p=w.querySelector(".rg-12.is-step-name");b&&b.classList.remove("is-active"),p&&p.classList.remove("is-active")}let L=s?s.querySelector(`.figma-zone-steps-icons_item[form-step-ill="${e}"]`):null;L&&L.classList.remove("is-active")}}function C(t){if(!s)return;s.querySelectorAll("[form-step-ill-arrow]").forEach(f=>{parseInt(f.getAttribute("form-step-ill-arrow"),10)===t?f.classList.add("is-active"):f.classList.remove("is-active")})}function x(){if(s){for(let t=1;t<=3;t++){let e=s.querySelector(`[form-step-ill="${t}"]`);A.has(t)?e&&e.classList.add("is-active"):e&&e.classList.remove("is-active")}for(let t=1;t<=3;t++){let e=s.querySelector(`[form-step-progress-item="${t}"]`);if(e){let f=e.querySelector(".steps-grid_item-line-filler"),w=e.querySelector(".rg-12.is-step-name");A.has(t)?(f&&f.classList.add("is-active"),w&&w.classList.add("is-active")):(f&&f.classList.remove("is-active"),w&&w.classList.remove("is-active"))}}for(let t=1;t<=3;t++){let e=s.querySelector(`.figma-zone-steps-icons_item[form-step-ill="${t}"]`);A.has(t)?e&&e.classList.add("is-active"):e&&e.classList.remove("is-active")}}}function i(){S&&(r()?S.disabled=!1:S.disabled=!0)}function r(){return c(1,o.value.trim())&&c(2,d.value.trim())&&c(3,h.value.trim())}a.addEventListener("submit",function(t){if(!r())return t.preventDefault(),t.stopPropagation(),c(1,o.value.trim())||(o.classList.add("input-blink"),setTimeout(()=>{o.classList.remove("input-blink")},1500)),!1}),i()})};I();var O=()=>{let s={},m=()=>window.location.pathname==="/"||window.location.pathname==="/index.html",o=(i,...r)=>{let t=Date.now();(!s[i]||t-s[i]>=2e3)&&(s[i]=t,console.log(`[MindConnections] ${i}:`,...r))},d=i=>{let r=i.querySelector("#connection-svg");if(!r){o("createSvg","\u0421\u043E\u0437\u0434\u0430\u0435\u043C SVG-\u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440 \u0432 \u0440\u043E\u0434\u0438\u0442\u0435\u043B\u0435:",i.tagName),r=document.createElementNS("http://www.w3.org/2000/svg","svg"),r.setAttribute("id","connection-svg");let t=i===document.body?"-1":"0";Object.assign(r.style,{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",pointerEvents:"none",overflow:"visible",zIndex:t}),i.insertBefore(r,i.firstChild)}return r},h=i=>{if(i.getAttribute("dot-beh")==="fixed-on-scroll"){let e=i.closest('[svg-container="true"]');if(e)return e}return i.closest(".w-tab-pane")||document.body},S=i=>{let r=window.getComputedStyle(i).display!=="none";return o("isVisible",`\u042D\u043B\u0435\u043C\u0435\u043D\u0442 ${i.tagName} \u0432\u0438\u0434\u0435\u043D:`,r),r},A=()=>{let i=window.innerWidth;return o("deviceType",`\u0428\u0438\u0440\u0438\u043D\u0430 \u043E\u043A\u043D\u0430: ${i}`),i<768?"mobile":i<992?"tablet":"pc"},n=i=>{if(i){let r=i.closest("[dot-lines]");if(r){let t=r.getAttribute("dot-lines");o("lineColor","\u041D\u0430\u0439\u0434\u0435\u043D \u0430\u0442\u0440\u0438\u0431\u0443\u0442 [dot-lines] \u0432 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0435:",t);let e=t?.match(/#[0-9A-Fa-f]{6}/);if(e)return o("lineColor","\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u043C \u0446\u0432\u0435\u0442 \u043B\u0438\u043D\u0438\u0439:",e[0]),e[0]}}return o("lineColor","\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u043C \u0434\u0435\u0444\u043E\u043B\u0442\u043D\u044B\u0439 \u0446\u0432\u0435\u0442 \u043B\u0438\u043D\u0438\u0439: #666666"),"#666666"},l=()=>{let i=[],r=A();return o("getConnections",`\u041E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043D\u044B\u0439 \u0442\u0438\u043F \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430: ${r}`),document.querySelectorAll(`[dot-${r}]`).forEach(e=>{if(!S(e))return;let f=e.getAttribute(`dot-${r}`);if(!f)return;f.split(",").map(L=>L.trim()).forEach(L=>{document.querySelectorAll(`[dot-${r}="${L}"]`).forEach(p=>{if(e===p||!S(p))return;let q;if(e.getAttribute("dot-beh")==="fixed-on-scroll"||p.getAttribute("dot-beh")==="fixed-on-scroll")q=h(e.getAttribute("dot-beh")==="fixed-on-scroll"?e:p);else{let T=e.closest(".w-tab-pane"),_=p.closest(".w-tab-pane");T&&_&&T===_?q=T:q=document.body}o("connection",`\u0421\u043E\u0437\u0434\u0430\u043D\u043E \u0441\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u0435: ${e.tagName} -> ${p.tagName}, \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440: ${q.tagName}`),i.push({from:e,to:p,container:q})})})}),i},u="fluid",y=(i,r,t,e)=>{let f=t-i,w=e-r,L=Math.abs(f),b=Math.abs(w),p=Math.min(20,L/2,b/2);if(p<=0)return`M ${i} ${r} L ${t} ${e}`;let q=f>=0?t-p:t+p,T=w>=0?1:-1,_=r+p*T,k=f>=0&&w>=0||f<0&&w<0?1:0;return`M ${i} ${r} L ${q} ${r} A ${p} ${p} 0 0 ${k} ${t} ${_} L ${t} ${e}`},c=(i,r)=>{o("drawLines",`\u041E\u0442\u0440\u0438\u0441\u043E\u0432\u043A\u0430 \u043B\u0438\u043D\u0438\u0439, \u0447\u0438\u0441\u043B\u043E \u0441\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u0439: ${r.length}`),i.innerHTML="";let t=i.parentElement?i.parentElement.getBoundingClientRect():{left:0,top:0},e=n(i.parentElement);r.forEach(({from:f,to:w})=>{let L=f.getBoundingClientRect(),b=w.getBoundingClientRect(),p=L.left-t.left+L.width/2,q=L.top-t.top+L.height/2,T=b.left-t.left+b.width/2,_=b.top-t.top+b.height/2,k;if(Math.abs(T-p)<1)k=`M ${p} ${q} L ${T} ${_}`;else{let $=u;window.innerWidth<992&&($="grid"),$==="grid"?k=`M ${p} ${q} H ${T} V ${_}`:$==="straight"?k=`M ${p} ${q} L ${T} ${_}`:$==="fluid"?k=y(p,q,T,_):k=`M ${p} ${q} H ${T} V ${_}`}o("drawLine","\u041E\u0442\u0440\u0438\u0441\u043E\u0432\u044B\u0432\u0430\u0435\u043C \u043B\u0438\u043D\u0438\u044E \u0441 \u043A\u043E\u043E\u0440\u0434\u0438\u043D\u0430\u0442\u0430\u043C\u0438:",k);let H=document.createElementNS("http://www.w3.org/2000/svg","path");H.classList.add("connection-line"),H.style.setProperty("stroke",e,"important"),H.setAttribute("stroke-width","1"),H.setAttribute("fill","none"),H.setAttribute("d",k),i.appendChild(H)})},v=()=>{let i=l(),r=new Map;i.forEach(t=>{r.has(t.container)||r.set(t.container,[]),r.get(t.container).push({from:t.from,to:t.to})}),r.forEach((t,e)=>{let f=d(e);o("updateContainer",`\u041E\u0442\u0440\u0438\u0441\u043E\u0432\u043A\u0430 \u043B\u0438\u043D\u0438\u0439 \u0432 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0435: ${e===document.body?"document.body":"w-tab-pane"}, \u0441\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u0439: ${t.length}`),c(f,t)}),requestAnimationFrame(v)},E=()=>{document.querySelectorAll("[hover-lines-changer]").forEach(r=>{r.addEventListener("mouseenter",C)})},C=i=>{if(window.innerWidth<992)return;let t=i.currentTarget.getAttribute("hover-lines-changer");t&&(t=t.trim().toLowerCase(),["fluid","straight","grid"].includes(t)&&(u=t))};(()=>{if(o("init","\u0418\u043D\u0438\u0446\u0438\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F \u0441\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u0439"),!m()){o("init","\u041D\u0435 \u0433\u043B\u0430\u0432\u043D\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430, \u0441\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u044F \u043D\u0435 \u0438\u043D\u0438\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u044E\u0442\u0441\u044F");return}setTimeout(()=>{let i=l();if(o("init","\u041D\u0430\u0447\u0430\u043B\u044C\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E \u0441\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u0439:",i.length),i.length>0){o("init","\u0417\u0430\u043F\u0443\u0441\u043A \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u044F \u043B\u0438\u043D\u0438\u0439"),requestAnimationFrame(v),E();let r=new MutationObserver(()=>{o("observer","\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0432 DOM, \u043E\u0431\u043D\u043E\u0432\u043B\u044F\u0435\u043C \u043B\u0438\u043D\u0438\u0438")});return r.observe(document.body,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),()=>{r.disconnect()}}o("init","\u0421\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u044F \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u044B")},2100)})()};var R=()=>{let g=document.querySelector("[fixed-menu]"),a=document.querySelector("[static-menu]"),s=document.querySelector("[footer-menu-trigger]");if(!g)return;let m=null,o=500,d=()=>{g.classList.remove("is-hidden")},h=()=>{g.classList.add("is-hidden")};if(!a){d(),s&&A();return}new IntersectionObserver(n=>{n.forEach(l=>{l.isIntersecting?(m&&(clearTimeout(m),m=null),h()):m||(m=window.setTimeout(()=>{d()},o))})},{threshold:0}).observe(a);function A(){if(!s)return;new IntersectionObserver(l=>{l.forEach(u=>{if(u.isIntersecting)h();else if(a){let y=document.querySelector("[static-menu]");if(y){let c=y.getBoundingClientRect();c.top>=0&&c.left>=0&&c.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&c.right<=(window.innerWidth||document.documentElement.clientWidth)||d()}else d()}else d()})},{threshold:0}).observe(s)}s&&A()};var B=()=>{document.querySelectorAll(".card.is-hero-orange-section").length&&fetch("https://dev.kopytok.xyz/site-stats").then(a=>{if(!a.ok)throw new Error("\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u0438 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445");return a.json()}).then(a=>{let s=a["total-stats"],m=parseFloat(String(s["site-count"]).replace("k",""));if(!isNaN(m)&&m>0&&m<78){let o=78/m;for(let d in s){let h=String(s[d]),S=h.includes("k"),A=parseFloat(h.replace("k",""));if(!isNaN(A)){let n=A*o;s[d]=S?`${Math.round(n)}k`:Math.round(n)}}}for(let o in s){let d=document.getElementById(o);d&&(d.textContent=s[o])}}).catch(a=>{console.error("\u041E\u0448\u0438\u0431\u043A\u0430:",a)})};function G(){let g=document.querySelectorAll("[sync-click-section]");g.length&&g.forEach(a=>{a.querySelectorAll("[sync-click-section_click-trigger]").forEach(m=>{m.addEventListener("click",o=>{o.preventDefault(),a.querySelectorAll("[sync-click-section_toggle-class]").forEach(S=>{let A=S.getAttribute("sync-click-section_toggle-class");A&&S.classList.toggle(A)}),a.querySelectorAll("[sync-click-section_toggle-text]").forEach(S=>{let A=S.getAttribute("sync-click-section_toggle-text");if(A){let[n,l]=A.split("/");S.textContent===n?S.textContent=l:S.textContent=n}})})})})}var W=()=>{if(!document.querySelectorAll(".section_testimonials").length)return;let a=document.querySelectorAll("[client-slug]"),s={};a.forEach(n=>{let l=n.getAttribute("client-slug");s[l]||(s[l]=0),s[l]++}),document.querySelectorAll("[client-slug-counter]").forEach(n=>{let l=n.getAttribute("client-slug-counter");n.textContent=s[l]?s[l]:0});let o=document.querySelectorAll("[testimonial-to-append]"),d=document.querySelectorAll(".testimonial-cards-waiter");o.forEach((n,l)=>{d[l%d.length].appendChild(n)});let h=()=>{d.forEach(u=>{u.classList.toggle("is-active")});let n=document.querySelector(".testimonials-grid.is-main");n&&n.classList.toggle("is-active"),document.querySelectorAll(".testimonial-open-trigger").forEach(u=>{n&&n.classList.contains("is-active")?u.classList.add("hide"):u.classList.remove("hide")})},S=document.querySelector('[section-toggle="testimonials"]');S&&S.addEventListener("click",h),document.querySelectorAll(".testimonial-open-trigger").forEach(n=>{n.addEventListener("click",h)})};var z=()=>{let g=document.querySelectorAll("[year-counter]");if(g.length){let s=new Date().getFullYear()-2016;g.forEach(m=>{m.textContent=s})}};window.Webflow||(window.Webflow=[]);window.Webflow.push(()=>{N(),F(),D(),I(),B(),z(),O(),W(),V(),G(),R()});})();