(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,79664,e=>{"use strict";let t=(0,e.i(75254).default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);e.s(["default",0,t])},94909,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={default:function(){return c},getImageProps:function(){return d}};for(var o in a)Object.defineProperty(r,o,{enumerable:!0,get:a[o]});let s=e.r(55682),n=e.r(8927),l=e.r(5500),i=s._(e.r(1948));function d(e){let{props:t}=(0,n.getImgProps)(e,{defaultLoader:i.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let c=l.Image},57688,(e,t,r)=>{t.exports=e.r(94909)},46154,e=>{"use strict";var t=e.i(43476),r=e.i(71645);let a=null,o=null,s=!1,n=new Map;function l(e){a&&a.postMessage({...e,version:1},"*")}function i(e){n.delete(e)}function d(e){if(!e.source||e.source===window)return;let t=e.data;if("object"!=typeof t||null===t||"number"!=typeof t.version||1!==t.version||"string"!=typeof t.type)return;if(!s&&"ping"===t.type){let r=t.payload;"string"==typeof r?.secret&&(a=e.source,o=r.secret,s=!0)}if(s&&"ping"===t.type){let e=t.payload;e?.secret===o&&l({type:"ping",payload:{secret:o}})}let r=n.get(t.type);r&&r(t)}let c=["data-testid","data-test-id","data-qa","data-cy","data-slot"];function m(e){return"u"e.trim()&&!e.startsWith("hover-"));t.length&&(e+=`.${t.join(".")}`);let o=a.parentElement?Array.from(a.parentElement.children).filter(e=>e.tagName===a.tagName):[];if(o.length>1){let t=o.indexOf(a)+1;e+=`:nth-of-type(${t})`}r.unshift(e),a=a.parentElement}return r.join(" > ")}let h={outlineColor:"#3b82f6",overlayColor:"rgba(59, 130, 246, 0.3)",labelBackgroundColor:"#000000",labelTextColor:"#ffffff"},x={active:!1,hoveredElement:null,appearance:h},f=new Set,p=null;function g(){return x}function y(e){x={...x,...e},f.forEach(e=>e(x))}function v(e,t){return"string"==typeof e&&CSS.supports("color",e)?e:t}function b(){let e=p;p=null,e?.()}function w(){return{href:window.location.href,pathname:window.location.pathname,search:window.location.search,hash:window.location.hash}}function j(){l({type:"url",payload:w()})}function N(){l({type:"route-change",payload:w()})}function k(){let[e,a]=(0,r.useState)(g);if((0,r.useEffect)(()=>{let e=(f.add(a),a(x),()=>f.delete(a));return()=>{e()}},[]),!e.active||!e.hoveredElement?.isConnected)return null;let o=e.hoveredElement,s=o.getBoundingClientRect(),{appearance:n}=e;return(0,t.jsxs)("div",{"aria-hidden":"true",style:{position:"fixed",left:s.left,top:s.top,width:s.width,height:s.height,pointerEvents:"none",zIndex:999999},children:[(0,t.jsx)("div",{style:{position:"absolute",left:0,bottom:"calc(100% + 2px)",padding:"2px 8px",borderRadius:5,backgroundColor:n.labelBackgroundColor,color:n.labelTextColor,fontFamily:"Arial, sans-serif",fontSize:13,fontWeight:400,lineHeight:"18px",whiteSpace:"nowrap"},children:o.tagName.toLowerCase()}),(0,t.jsx)("div",{style:{position:"absolute",inset:0,boxSizing:"border-box",border:`2px solid ${n.outlineColor}`}})]})}e.s(["BridgeProvider",0,function(){return(0,r.useEffect)(()=>{var e,t,r;let f,g,w,k,C,E,S,L,z,M,T=[(window.addEventListener("message",d),()=>{window.removeEventListener("message",d),a=null,o=null,s=!1,n.clear()}),()=>{},(f=e=>{l({type:"error",payload:{kind:"runtime",message:e.message,stack:e.error?.stack,source:`${e.filename}:${e.lineno}:${e.colno}`}})},g=e=>{l({type:"error",payload:{kind:"promise",message:String(e.reason),stack:e.reason instanceof Error?e.reason.stack:void 0}})},w={log:console.log,warn:console.warn,error:console.error,info:console.info},k=e=>(...t)=>{w[e].apply(console,t),l({type:"console",payload:{level:e,args:t.map(e=>"object"==typeof e?String(e):e)}})},console.log=k("log"),console.warn=k("warn"),console.error=k("error"),console.info=k("info"),C=new MutationObserver(e=>{for(let t of e)if("childList"===t.type){for(let e of t.addedNodes)if(e instanceof HTMLElement&&(e.matches?.("[data-nextjs-dialog]")||e.matches?.("[data-nextjs-toast]")||e.querySelector?.("[data-nextjs-dialog]")||e.querySelector?.("[data-nextjs-toast]"))){let t=e.textContent||"";(t.includes("error")||t.includes("Error"))&&l({type:"error",payload:{kind:"overlay",message:t.slice(0,5e3)}})}}}),window.addEventListener("error",f),window.addEventListener("unhandledrejection",g),C.observe(document.body,{childList:!0,subtree:!0}),()=>{window.removeEventListener("error",f),window.removeEventListener("unhandledrejection",g),C.disconnect(),console.log=w.log,console.warn=w.warn,console.error=w.error,console.info=w.info}),(E=e=>{if(!x.active)return;let t=document.elementFromPoint(e.clientX,e.clientY);t&&t!==x.hoveredElement&&(y({hoveredElement:t}),l({type:"inspector-hovered",payload:{selector:u(t),tagName:t.tagName.toLowerCase()}}))},S=e=>{if(!x.active)return;e.preventDefault(),e.stopPropagation();let t=document.elementFromPoint(e.clientX,e.clientY);if(!t)return;let r=t.getBoundingClientRect(),a=u(t);l({type:"element-selected",payload:{selector:a,displaySelector:function(e,t){let r=e.tagName.toLowerCase();if(e.id)return`${r}#${m(e.id)}`;for(let t of c)if(e.hasAttribute(t)){let a=e.getAttribute(t);return a?`${r}[${t}="${m(a)}"]`:`${r}[${t}]`}let a=t.lastIndexOf(" > ");return -1===a?t:t.slice(a+3).trim()}(t,a),xpath:function(e){let t=[],r=e;for(;r;){let e=1,a=r.previousElementSibling;for(;a;)a.tagName===r.tagName&&e++,a=a.previousElementSibling;t.unshift(`${r.tagName.toLowerCase()}[${e}]`),r=r.parentElement}return"/"+t.join("/")}(t),tagName:t.tagName.toLowerCase(),text:t.textContent?.slice(0,200)||void 0,rect:{x:r.x,y:r.y,width:r.width,height:r.height}}}),function(e,t){if(b(),!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return;let r={outline:e.style.outline,outlineOffset:e.style.outlineOffset,backgroundColor:e.style.backgroundColor};e.style.outline=`1px solid ${t.outlineColor}`,e.style.outlineOffset="-1px",e.style.backgroundColor=t.overlayColor,p=()=>{e.style.outline=r.outline,e.style.outlineOffset=r.outlineOffset,e.style.backgroundColor=r.backgroundColor}}(t,x.appearance),y({active:!1,hoveredElement:null})},L=e=>{"Escape"===e.key&&x.active&&y({active:!1,hoveredElement:null})},e=e=>{let t=e.payload,r=t?.enabled??!0,a={outlineColor:v(t?.appearance?.outlineColor,h.outlineColor),overlayColor:v(t?.appearance?.overlayColor,h.overlayColor),labelBackgroundColor:v(t?.appearance?.labelBackgroundColor,h.labelBackgroundColor),labelTextColor:v(t?.appearance?.labelTextColor,h.labelTextColor)};b(),y({active:r,hoveredElement:null,appearance:a})},n.set("toggle-inspector",e),window.addEventListener("mousemove",E),window.addEventListener("click",S,!0),window.addEventListener("keydown",L),()=>{b(),window.removeEventListener("mousemove",E),window.removeEventListener("click",S,!0),window.removeEventListener("keydown",L),i("toggle-inspector")}),(z=history.pushState,M=history.replaceState,history.pushState=function(...e){z.apply(this,e),N()},history.replaceState=function(...e){M.apply(this,e),N()},window.addEventListener("popstate",N),t=()=>{j()},n.set("get-url",t),r=e=>{let t=e.payload;t?.url&&(window.location.href=t.url)},n.set("navigate",r),j(),()=>{history.pushState=z,history.replaceState=M,window.removeEventListener("popstate",N),i("get-url"),i("navigate")})];return()=>T.forEach(e=>e())},[]),(0,t.jsx)(k,{})}],46154)},18566,(e,t,r)=>{t.exports=e.r(76562)},37727,e=>{"use strict";let t=(0,e.i(75254).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["X",0,t],37727)},48303,e=>{"use strict";var t=e.i(43476),r=e.i(71645),a=e.i(22016),o=e.i(57688),s=e.i(18566);let n=(0,e.i(75254).default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);var l=e.i(14764),i=e.i(37727),d=e.i(2321),c=e.i(47163),m=e.i(58402);let u=[{label:"Реклама",target:"advertising"},{label:"Создание сайтов",target:"websites"},{label:"Кейсы",target:"cases"},{label:"Гарантия заказов",target:"guarantee"},{label:"О нас",target:"about"},{label:"Контакты",target:"contacts"}];function h(){(0,m.openJivoChat)()}function x(e){let t=document.getElementById(e);if(!t)return;let r=t.getBoundingClientRect().top+window.scrollY-64;window.scrollTo({top:r,behavior:"smooth"})}e.s(["SiteHeader",0,function(){let[e,m]=(0,r.useState)(!1),f=(0,s.usePathname)(),p=(0,s.useRouter)(),g="/"===f,y=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=y.current;if(!e||"/"!==f)return;y.current=null;let t=Date.now()+3e3,r=0,a=()=>{document.getElementById(e)?x(e):Date.now()window.cancelAnimationFrame(r)},[f]);let v=e=>{(m(!1),g)?x(e):(y.current=e,p.push("/",{scroll:!1}))};return(0,t.jsxs)("header",{className:"sticky top-0 z-50 w-full border-b bg-background/80 backdrop-blur-md",children:[(0,t.jsxs)("div",{className:"container mx-auto px-4 h-14 flex items-center gap-4",children:[(0,t.jsxs)(a.default,{href:"/",className:"flex shrink-0 items-center gap-2 text-lg font-semibold tracking-tight",children:[(0,t.jsx)(o.default,{src:"/assets/magnum-logo.jpg",alt:"Магнум.Маркетинг",width:32,height:32,className:"h-8 w-8 shrink-0 rounded-md border border-border bg-white object-contain"}),"Магнум.Маркетинг"]}),(0,t.jsx)("nav",{className:"mx-auto hidden items-center gap-6 lg:flex",children:u.map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>v(e.target),className:"text-sm font-medium text-muted-foreground transition-colors hover:text-foreground",children:e.label},e.target))}),(0,t.jsx)("div",{className:"ml-auto hidden items-center gap-3 lg:flex",children:(0,t.jsxs)(d.Button,{size:"sm",onClick:h,children:[(0,t.jsx)(l.Send,{className:"h-4 w-4"}),"Обсудить проект"]})}),(0,t.jsx)("button",{type:"button","aria-label":e?"Закрыть меню":"Открыть меню","aria-expanded":e,onClick:()=>m(e=>!e),className:"ml-auto inline-flex h-12 w-12 items-center justify-center rounded-lg text-foreground transition-colors hover:bg-accent lg:hidden",children:e?(0,t.jsx)(i.X,{className:"h-5 w-5"}):(0,t.jsx)(n,{className:"h-5 w-5"})})]}),(0,t.jsx)("div",{className:(0,c.cn)("overflow-hidden border-t bg-background/95 backdrop-blur-md transition-[max-height] duration-300 ease-in-out lg:hidden",e?"max-h-[calc(100vh-3.5rem)]":"max-h-0 border-t-0"),children:(0,t.jsxs)("div",{className:"container mx-auto px-4 py-4 space-y-1",children:[u.map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>v(e.target),className:"block min-h-12 w-full rounded-lg px-3 py-3 text-left text-base font-medium text-foreground transition-colors hover:bg-accent",children:e.label},e.target)),(0,t.jsx)("div",{className:"flex flex-col gap-3 pt-2",children:(0,t.jsxs)(d.Button,{onClick:h,className:"w-full",children:[(0,t.jsx)(l.Send,{className:"h-4 w-4"}),"Обсудить проект"]})})]})})]})}],48303)},16200,e=>{"use strict";var t=e.i(43476),r=e.i(22016),a=e.i(57688),o=e.i(14764),s=e.i(2321),n=e.i(58402);let l=[{label:"Реклама — настройка и ведение",href:"/reklama"},{label:"Создание сайтов",href:"/sozdanie-saitov"},{label:"Кейсы",href:"/cases"},{label:"Гарантия заказов",href:"/garantiya"}],i=[{label:"Магазины на маркетплейсах",href:"/marketplace"},{label:"Ozon — запуск и ведение",href:"/ozon"},{label:"Wildberries — запуск и ведение",href:"/wildberries"},{label:"Яндекс Маркет — запуск и ведение",href:"/yandex-market"}];function d(){(0,n.openJivoChat)()}e.s(["SiteFooter",0,function(){return(0,t.jsx)("footer",{className:"border-t border-border bg-background",children:(0,t.jsxs)("div",{className:"container mx-auto px-4 py-12 sm:py-16",children:[(0,t.jsxs)("div",{className:"grid gap-10 sm:grid-cols-2 lg:grid-cols-5",children:[(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(a.default,{src:"/assets/magnum-logo.jpg",alt:"Магнум.Маркетинг",width:32,height:32,className:"h-8 w-8 rounded-md border border-border bg-white object-contain"}),(0,t.jsx)("span",{className:"text-lg font-semibold tracking-tight text-foreground",children:"Магнум.Маркетинг"})]}),(0,t.jsx)("p",{className:"text-sm leading-relaxed text-muted-foreground",children:"Настраиваем рекламу и создаём сайты для бизнеса. Маркетплейсы — дополнительное направление."}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Работаем удалённо по всей России"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium text-foreground",children:"Основные услуги"}),(0,t.jsx)("ul",{className:"mt-4 space-y-2.5",children:l.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:e.href,className:"text-sm text-muted-foreground transition-colors hover:text-foreground",children:e.label})},e.label))})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium text-foreground",children:"Дополнительно — маркетплейсы"}),(0,t.jsx)("ul",{className:"mt-4 space-y-2.5",children:i.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:e.href,className:"text-sm text-muted-foreground transition-colors hover:text-foreground",children:e.label})},e.label))})]}),(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium text-foreground",children:"Блог"}),(0,t.jsxs)("ul",{className:"mt-4 space-y-2.5",children:[(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:"/blog",className:"text-sm text-muted-foreground transition-colors hover:text-foreground",children:"Все статьи"})}),(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:"/blog/vyhod-na-ozon-s-nulya",className:"text-sm text-muted-foreground transition-colors hover:text-foreground",children:"Выход на Ozon с нуля"})})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium text-foreground",children:"Документы"}),(0,t.jsxs)("ul",{className:"mt-4 space-y-2.5",children:[(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:"/offer",className:"text-sm text-muted-foreground transition-colors hover:text-foreground",children:"Публичная оферта"})}),(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:"/privacy-policy",className:"text-sm text-muted-foreground transition-colors hover:text-foreground",children:"Политика обработки персональных данных"})})]})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-medium text-foreground",children:"Связаться"}),(0,t.jsx)("div",{className:"mt-4 flex flex-col items-start gap-3",children:(0,t.jsxs)(s.Button,{size:"sm",onClick:d,children:[(0,t.jsx)(o.Send,{className:"h-4 w-4"}),"Написать нам"]})})]})]}),(0,t.jsxs)("div",{className:"mt-12 grid grid-cols-1 gap-x-10 gap-y-3 border-t border-border pt-8 text-xs text-muted-foreground sm:grid-cols-2 lg:grid-cols-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{className:"font-medium text-foreground",children:"Исполнитель"}),(0,t.jsx)("dd",{className:"mt-0.5",children:"МАЗУР СВЕТЛАНА АНАТОЛЬЕВНА"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{className:"font-medium text-foreground",children:"Статус"}),(0,t.jsx)("dd",{className:"mt-0.5",children:"Самозанятый / плательщик НПД"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{className:"font-medium text-foreground",children:"ИНН"}),(0,t.jsx)("dd",{className:"mt-0.5",children:"931003409809"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{className:"font-medium text-foreground",children:"Email"}),(0,t.jsx)("dd",{className:"mt-0.5",children:(0,t.jsx)("a",{href:"mailto:magnymmarketing@gmail.com",className:"transition-colors hover:text-foreground",children:"magnymmarketing@gmail.com"})})]})]}),(0,t.jsx)("div",{className:"mt-8 border-t border-border pt-6 text-center text-xs text-muted-foreground",children:(0,t.jsxs)("p",{children:["© ",new Date().getFullYear()," Магнум.Маркетинг"]})})]})})}])},81888,e=>{"use strict";var t=e.i(43476),r=e.i(71645),a=e.i(22016);let o=(0,e.i(75254).default)("cookie",[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]]);var s=e.i(2321);let n="magnum-cookie-consent";e.s(["CookieConsent",0,function(){let[e,l]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{let e=window.setTimeout(()=>{try{if("accepted"===localStorage.getItem(n))return}catch{return}l(!0)},0);return()=>window.clearTimeout(e)},[]),e)?(0,t.jsx)("div",{role:"dialog","aria-label":"Уведомление об использовании файлов cookie",className:"fixed inset-x-0 bottom-0 z-[60] flex justify-center px-4 pb-24 pt-4 sm:px-6 sm:pb-24",children:(0,t.jsxs)("div",{className:"flex w-full max-w-6xl flex-col gap-4 rounded-xl border border-primary/20 bg-card p-5 text-muted-foreground shadow-2xl backdrop-blur-md animate-in fade-in slide-in-from-bottom-4 duration-500 motion-reduce:animate-none sm:flex-row sm:items-center sm:justify-between sm:gap-8 sm:p-6",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3 sm:items-center",children:[(0,t.jsx)("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-primary/15 text-primary",children:(0,t.jsx)(o,{className:"h-4 w-4"})}),(0,t.jsxs)("p",{className:"text-sm leading-relaxed",children:["Мы используем файлы cookie и сторонние сервисы (например, чат JivoSite) для работы сайта, аналитики и связи с вами. Продолжая пользоваться сайтом, вы соглашаетесь с обработкой данных. Подробнее —"," ",(0,t.jsx)(a.default,{href:"/privacy-policy",className:"text-primary underline underline-offset-4 transition-colors hover:text-primary/80",children:"политика обработки персональных данных"}),"."]})]}),(0,t.jsx)(s.Button,{onClick:()=>{try{localStorage.setItem(n,"accepted")}catch{}l(!1)},className:"h-auto min-h-[48px] w-full shrink-0 sm:w-auto sm:px-8",children:"Принять"})]})}):null}],81888)},99588,e=>{"use strict";var t=e.i(43476),r=e.i(71645),a=e.i(22016),o=e.i(95468);let s=(0,e.i(75254).default)("gift",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8",key:"1sqzm4"}],["path",{d:"M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5",key:"kc0143"}],["rect",{x:"3",y:"7",width:"18",height:"4",rx:"1",key:"1hberx"}]]);var n=e.i(31278),l=e.i(14764),i=e.i(37727),d=e.i(46696),c=e.i(2321),m=e.i(23750),u=e.i(51926),h=e.i(34498),x=e.i(71404);let f="magnum-gift-status",p="border-border bg-card text-foreground placeholder:text-muted-foreground focus-visible:ring-primary/60 focus-visible:border-primary/60";e.s(["GiftPromo",0,function(){let[e,g]=(0,r.useState)(!1),[y,v]=(0,r.useState)(!1),[b,w]=(0,r.useState)(!1),[j,N]=(0,r.useState)(!1),[k,C]=(0,r.useState)(!1),[E,S]=(0,r.useState)(!1),[L,z]=(0,r.useState)(!1),[M,T]=(0,r.useState)({link:"",email:"",consent:!1});(0,r.useEffect)(()=>{let e=window.setTimeout(()=>{let e=null;try{e=window.localStorage.getItem(f)}catch{}"dismissed"!==e&&"submitted"!==e&&v(!0),g(!0)},0);return()=>window.clearTimeout(e)},[]),(0,r.useEffect)(()=>{let e=window.matchMedia("(min-width: 640px)"),t=()=>w(e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]),(0,r.useEffect)(()=>{let e=()=>{N(window.scrollY>.9*window.innerHeight)};return e(),window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]);let $=()=>{try{window.localStorage.setItem(f,"dismissed")}catch{}v(!1),C(!1)};(0,r.useEffect)(()=>{if(!k)return;let e=e=>{"Escape"===e.key&&$()};return window.addEventListener("keydown",e),document.body.style.overflow="hidden",()=>{window.removeEventListener("keydown",e),document.body.style.overflow=""}},[k]);let A=async e=>{e.preventDefault();let t=M.link.trim(),r=M.email.trim();if(!t)return void d.toast.error("Укажите ссылку на сайт или рекламную кампанию");if(!r)return void d.toast.error("Укажите ваш email или другой контакт");if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(r))return void d.toast.error("Укажите корректный email");if(!M.consent)return void d.toast.error("Подтвердите согласие на обработку персональных данных");z(!0);let a={name:"Посетитель сайта (Подарок)",surname:"",patronymic:"",email:r,phone:"",link:t,message:"",marketplace:"Подарок: разбор сайта или рекламы"},o=await (0,h.sendToTelegram)(a);if(!o.ok){z(!1),d.toast.error(`${(0,h.telegramErrorText)(o.reason,o.detail)} Проверьте связь и попробуйте ещё раз.`);return}(0,u.saveRequest)(a),(0,x.reachLeadGoal)();try{window.localStorage.setItem(f,"submitted")}catch{}v(!1),S(!0),z(!1)},B=(e,t)=>T(r=>({...r,[e]:t}));return e?(0,t.jsxs)(t.Fragment,{children:[y&&(b||j)&&(0,t.jsx)("div",{className:"fixed inset-x-3 top-[68px] z-40 animate-in slide-in-from-top-4 fade-in duration-500 motion-reduce:animate-none sm:inset-x-auto sm:right-4 sm:w-72",children:(0,t.jsxs)("button",{onClick:()=>C(!0),className:"group relative flex w-full flex-col gap-3 overflow-hidden rounded-2xl border border-border bg-card p-4 text-left shadow-lg transition-colors hover:border-primary/40",children:[(0,t.jsx)("div",{"aria-hidden":!0,className:"absolute -top-12 right-0 h-28 w-28 rounded-full blur-3xl",style:{background:"var(--primary)",opacity:.12}}),(0,t.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 pattern-grid opacity-[0.05]"}),(0,t.jsxs)("span",{className:"relative flex items-start justify-between gap-3",children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-2 rounded-full border border-primary/30 bg-primary/10 px-3 py-1 text-xs font-bold uppercase tracking-wider text-primary",children:[(0,t.jsx)(s,{className:"h-3.5 w-3.5"}),"Подарок"]}),(0,t.jsx)("span",{role:"button",tabIndex:0,onClick:e=>{e.stopPropagation(),$()},onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.stopPropagation(),$())},className:"-mr-1 rounded-lg p-1 text-muted-foreground transition-colors hover:text-foreground","aria-label":"Закрыть подарок",children:(0,t.jsx)(i.X,{className:"h-4 w-4"})})]}),(0,t.jsx)("span",{className:"relative text-sm font-medium leading-snug text-foreground",children:"Разберём ваш сайт или рекламу и предложим точки роста"}),(0,t.jsx)("span",{className:"relative text-xs font-medium text-primary",children:"Бесплатно"})]})}),k&&(0,t.jsxs)("div",{className:"fixed inset-0 z-[70] flex items-end justify-center p-4 sm:items-center",role:"presentation",children:[(0,t.jsx)("div",{"aria-hidden":!0,onClick:$,className:"absolute inset-0 bg-black/60 backdrop-blur-sm"}),(0,t.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":"Подарок: разбор сайта или рекламы",className:"relative max-h-[calc(100dvh-2rem)] w-full max-w-md animate-in fade-in zoom-in-95 duration-300 motion-reduce:animate-none overflow-y-auto rounded-3xl border border-border bg-card p-6 shadow-2xl sm:p-7",children:[(0,t.jsx)("button",{onClick:$,className:"absolute right-4 top-4 rounded-lg p-1.5 text-muted-foreground transition-colors hover:text-foreground","aria-label":"Закрыть",children:(0,t.jsx)(i.X,{className:"h-5 w-5"})}),E?(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4 py-8 text-center",children:[(0,t.jsx)("span",{className:"inline-flex h-16 w-16 items-center justify-center rounded-full bg-primary/15 text-primary",children:(0,t.jsx)(o.CheckCircle2,{className:"h-8 w-8"})}),(0,t.jsx)("p",{className:"text-xl font-semibold text-foreground sm:text-2xl",children:"Спасибо!"}),(0,t.jsx)("p",{className:"max-w-xs text-sm leading-relaxed text-muted-foreground",children:"Мы пришлём разбор с точками роста на вашу почту в рабочее время."}),(0,t.jsx)(c.Button,{variant:"outline",className:"mt-2 h-auto min-h-[48px]",onClick:$,children:"Закрыть"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-2 rounded-full border border-primary/30 bg-primary/10 px-3 py-1 text-xs font-bold uppercase tracking-wider text-primary",children:[(0,t.jsx)(s,{className:"h-3.5 w-3.5"}),"Подарок"]}),(0,t.jsx)("h2",{className:"mt-3 text-xl font-extrabold tracking-tight text-foreground sm:text-2xl",children:"Разберём ваш сайт или рекламу и предложим точки роста"}),(0,t.jsx)("p",{className:"mt-1.5 text-sm leading-relaxed text-muted-foreground",children:"Бесплатно. Пришлём разбор на почту в рабочее время."}),(0,t.jsxs)("form",{onSubmit:A,className:"mt-5 space-y-4",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsxs)("label",{htmlFor:"gift-link",className:"text-sm font-medium text-foreground",children:["Ссылка на сайт или рекламу",(0,t.jsx)("span",{className:"text-destructive",children:" *"})]}),(0,t.jsx)(m.Input,{id:"gift-link",value:M.link,onChange:e=>B("link",e.target.value),placeholder:"https://...",className:p,autoComplete:"url"})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsxs)("label",{htmlFor:"gift-email",className:"text-sm font-medium text-foreground",children:["Ваш email",(0,t.jsx)("span",{className:"text-destructive",children:" *"})]}),(0,t.jsx)(m.Input,{id:"gift-email",type:"email",value:M.email,onChange:e=>B("email",e.target.value),placeholder:"you@example.com",className:p,autoComplete:"email"})]}),(0,t.jsxs)("label",{className:"flex cursor-pointer items-start gap-3",children:[(0,t.jsx)("input",{type:"checkbox",checked:M.consent,onChange:e=>B("consent",e.target.checked),className:"mt-0.5 h-5 w-5 shrink-0 cursor-pointer rounded border-border bg-card accent-primary"}),(0,t.jsxs)("span",{className:"text-xs leading-relaxed text-muted-foreground",children:["Согласен(на) на обработку персональных данных. Подробнее —"," ",(0,t.jsx)(a.default,{href:"/privacy-policy",className:"text-primary underline underline-offset-4 transition-colors hover:text-primary/80",children:"политика обработки персональных данных"}),"."]})]}),(0,t.jsxs)(c.Button,{type:"submit",disabled:L,size:"lg",className:"h-auto min-h-[48px] w-full gap-2",children:[L?(0,t.jsx)(n.Loader2,{className:"h-5 w-5 animate-spin"}):(0,t.jsx)(l.Send,{className:"h-5 w-5"}),L?"Отправляем...":"Получить бесплатный разбор"]}),(0,t.jsx)("p",{className:"text-center text-xs text-muted-foreground",children:"Не получилось отправить? Проверьте поля и попробуйте ещё раз."})]})]})]})]})]}):null}],99588)},3484,e=>{"use strict";var t=e.i(43476),r=e.i(71645),a=(e,t,r,a,o,s,n,l)=>{let i=document.documentElement,d=["light","dark"];function c(t){var r;(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,a=r&&s?o.map(e=>s[e]||e):o;r?(i.classList.remove(...a),i.classList.add(s&&s[t]?s[t]:t)):i.setAttribute(e,t)}),r=t,l&&d.includes(r)&&(i.style.colorScheme=r)}if(a)c(a);else try{let e=localStorage.getItem(t)||r,a=n&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;c(a)}catch(e){}},o=r.createContext(void 0),s={setTheme:e=>{},themes:[]};r.memo(({forcedTheme:e,storageKey:t,attribute:o,enableSystem:s,enableColorScheme:n,defaultTheme:l,value:i,themes:d,nonce:c,scriptProps:m})=>{let u=JSON.stringify([o,t,l,e,d,i,s,n]).slice(1,-1);return r.createElement("script",{...m,suppressHydrationWarning:!0,nonce:"u"{var a;let{theme:d="system"}=null!=(a=r.useContext(o))?a:s;return(0,t.jsx)(n.Toaster,{theme:d,className:"toaster group",icons:{success:(0,t.jsx)(l.default,{className:"size-4"}),info:(0,t.jsx)(i.default,{className:"size-4"}),warning:(0,t.jsx)(c,{className:"size-4"}),error:(0,t.jsx)(m,{className:"size-4"}),loading:(0,t.jsx)(u.default,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},toastOptions:{classNames:{toast:"cn-toast"}},...e})}],3484)}]);