@font-face{font-family:'Verano Sans';src:url(fonts/VeranoSans-ExtraLight.ttf);font-weight:200}
@font-face{font-family:'Verano Sans';src:url(fonts/VeranoSans-ExtraLightItalic.ttf);font-weight:200;font-style:italic}
@font-face{font-family:'Verano Sans';src:url(fonts/VeranoSans-Regular.ttf);font-weight:400}
@font-face{font-family:'Verano Sans';src:url(fonts/VeranoSans-Medium.ttf);font-weight:500}
@font-face{font-family:'Verano Sans';src:url(fonts/VeranoSans-SemiBold.ttf);font-weight:600}
@font-face{font-family:'Verano Sans';src:url(fonts/VeranoSans-Bold.ttf);font-weight:700}
@font-face{font-family:'Verano Sans';src:url(fonts/VeranoSans-ExtraBoldItalic.ttf);font-weight:800;font-style:italic}
@font-face{font-family:'Verano Sans';src:url(fonts/VeranoSans-Black.ttf);font-weight:900}
@font-face{font-family:'Mustica Pro';src:url(fonts/MusticaPro-SemiBold.otf);font-weight:600}
@font-face{font-family:'Bounded';src:url(fonts/Bounded-ExtraLight.ttf);font-weight:200}

:root{--lav:#c1a6fd;--pur:#7934fd}
*{box-sizing:border-box}
html{scroll-behavior:smooth;overflow-x:hidden}
body{margin:0;background:var(--bg,#131015);color:#fff;font-family:'Verano Sans',sans-serif;overflow-x:clip} /* clip, not hidden: wide images cannot make the page scroll sideways */
p{margin:0}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;cursor:pointer}

/* Figma canvas, 1440 wide, scaled to the window by main.js.
   shortcut: desktop layout scaled down on phones, swap for real breakpoints once mobile layouts exist */
/* x visible: images wider than 1440 run to the window edges on wide screens (body clips the sides); y clipped at the page end.
   --m is the empty margin beside the layout on wide screens (0 when the layout is scaled down) */
.canvas{position:relative;width:1440px;margin:0 auto;zoom:var(--k,1);overflow:visible clip;z-index:1;--m:max(0px,(100vw - 1440px) / 2)}
/* section backgrounds run edge to edge: the colour spreads sideways, clip-path cuts it vertically */
.bleed{box-shadow:0 0 0 100vmax var(--bc);clip-path:inset(0 -100vmax)}
/* on screens wider than the layout, images cut at the 1440 edge fade out instead of ending in a hard line */
@media (min-width:1500px){
  .fade-r{-webkit-mask-image:linear-gradient(90deg,#000 82%,transparent);mask-image:linear-gradient(90deg,#000 82%,transparent)}}
.bleed[style*="#323130"]{--bc:#323130}
.bleed[style*="#fff"]{--bc:#fff}.bleed[style*="--lav"]{--bc:var(--lav)}.bleed[style*="#040303"]{--bc:#040303}
.a{position:absolute}
.rv{opacity:0!important} /* hidden until scroll reveal in main.js */
.c{translate:-50% 0}
.nw{white-space:nowrap}
.pw{white-space:pre-wrap}
.up{text-transform:uppercase}
.mu{font-family:'Mustica Pro',sans-serif;font-weight:600}
.xb{font-weight:800;font-style:italic}
.bk{font-weight:900}
.el{font-weight:200}
.sb{font-weight:600}
.s16{font-size:16px}.s18{font-size:18px}.s22{font-size:22px}.s24{font-size:24px}.s32{font-size:32px}
.s45{font-size:45px}.s56{font-size:56px}.s88{font-size:88px}.s100{font-size:100px}
.lav{color:var(--lav)}.pur{color:var(--pur)}.k{color:#000}.k2{color:#0c0c0e}
.op5{opacity:.5}.op8{opacity:.8}
.fill{position:absolute;inset:0;width:100%;height:100%;max-width:none}
.cover{object-fit:cover}
.bottom{object-position:bottom}
.in{position:absolute}
.in>img{display:block;width:100%;height:100%;max-width:none}
.flexc{display:flex;align-items:center;justify-content:center}

/* header */
/* fixed darkened liquid glass bar; inside the zoomed canvas, so its px scale with the page */
.header{position:fixed;left:0;right:0;top:0;height:77px;z-index:10;
  background:linear-gradient(180deg,rgba(28,22,34,.55),rgba(14,11,17,.45));
  backdrop-filter:blur(22px) saturate(160%);-webkit-backdrop-filter:blur(22px) saturate(160%);
  border-bottom:1px solid rgba(255,255,255,.08);box-shadow:inset 0 -1px 0 rgba(193,166,253,.12),0 10px 30px rgba(0,0,0,.25)}
.hin{position:absolute;left:50%;top:0;width:1462px;height:77px;translate:-50% 0}
.nav{left:50%;top:28px;translate:-50% 0;display:flex;gap:32px;font-size:18px;color:var(--lav)}
.nav a:hover,.foot a:hover{opacity:.7}

/* pill buttons */
.pill{position:absolute;height:44px;border:1px solid currentColor;border-radius:159px;
  font-size:18px;padding:0 0 0 15px;display:flex;align-items:center}
.pill>img{position:absolute;right:15px;top:50%;margin-top:-7px}

/* liquid glass for every rounded button */
.pill,.panel .send{background:linear-gradient(135deg,rgba(255,255,255,.16),rgba(255,255,255,.03) 55%,rgba(255,255,255,.08));
  backdrop-filter:blur(14px) saturate(170%);-webkit-backdrop-filter:blur(14px) saturate(170%);
  box-shadow:inset 0 1px 1px rgba(255,255,255,.5),inset 0 -1px 1px rgba(255,255,255,.12),inset 0 0 16px rgba(255,255,255,.08),0 8px 24px rgba(0,0,0,.16);
  transition:background .3s,box-shadow .3s}
.pill:hover,.panel .send:hover{background:linear-gradient(135deg,rgba(255,255,255,.26),rgba(255,255,255,.07) 55%,rgba(255,255,255,.14));
  box-shadow:inset 0 1px 1px rgba(255,255,255,.65),inset 0 -1px 1px rgba(255,255,255,.18),inset 0 0 22px rgba(255,255,255,.14),0 10px 30px rgba(0,0,0,.2)}

/* "Изучить кейс" outlined pill under each case */
.case-btn{width:179px;padding:0;justify-content:center}
a.pill:not([href]),.caselink:not([href]){cursor:default}

/* "Изучить кейс и решение" */
.caselink{position:absolute;width:245px;height:30px;font-size:18px;white-space:nowrap}
.caselink .line{position:absolute;left:1px;top:28px}
.caselink .arr{position:absolute;left:221px;top:8px;width:19px;height:15px}
.caselink .arr img{position:absolute;left:-3px;top:0;rotate:-38.29deg}
.caselink[href]:hover .line{width:250px;transition:width .3s}

/* case images: slight zoom on hover */
.shot{overflow:hidden;border-radius:20px}
.shot>.zoom{position:absolute;inset:0;transition:transform .8s cubic-bezier(.2,.7,.2,1)}
.shot:hover>.zoom{transform:scale(1.03)}

/* category chips */
.chip{width:300px;height:220px;overflow:clip;filter:drop-shadow(0 0 63.45px rgba(154,103,254,.26));z-index:3;transition:transform .35s cubic-bezier(.2,.7,.2,1)}
.chip:hover,.chip:focus-visible{transform:translateY(-8px) scale(1.03)}
.chip::before{content:"";position:absolute;inset:0;background:#000;border:.5px solid #b4b4b4;border-radius:20px;transition:border-color .3s}
.chip:hover::before,.chip:focus-visible::before{border-color:var(--lav)}
.chip .deco{opacity:.3;rotate:-90deg;scale:1 -1}
.chip span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:0 20px;
  font-family:'Unbounded','Bounded',sans-serif;font-weight:200;font-size:16px;text-transform:uppercase;line-height:normal}

/* liquid glass circles: the digit is copied into a lens and refracted by the #lens SVG filter from main.js */
.glass>img{position:relative;z-index:1}
.lens{position:absolute;left:27.13px;top:27.13px;width:131px;height:131px;border-radius:50%;overflow:hidden}
.lens>div{position:absolute;inset:0;filter:url(#lens)}
.glass-num{opacity:0}

/* process dots */
.dot{width:23px;height:23px;border-radius:50%;border:1px solid #000;background:var(--lav);padding:0;transition:background .25s}
.dot:hover,.dot[aria-pressed=true]{background:#fff}
.uni{font-family:'Unispace',ui-monospace,monospace;font-weight:700}

/* tool icons */
.tool{border-radius:22px;overflow:hidden}

/* cursor trail, lives outside the zoomed canvas so mouse coords stay 1:1 */
.cursor-trail{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:9;filter:blur(.6px)}
/* navigation jumps stop below the fixed header */
.canvas>span[id]{scroll-margin-top:90px}
@media (hover:none){.cursor-trail{display:none}}

/* background motion */
@keyframes drift{0%{transform:translate(0,0) scale(1)}50%{transform:translate(60px,-40px) scale(1.08)}100%{transform:translate(-40px,30px) scale(.96)}}
.drift{animation:drift 22s ease-in-out infinite alternate}
/* background light shapes: slow sway, as if turning in space */
@keyframes sway{0%{transform:translate(0,0) rotate(-4deg) scale(1)}50%{transform:translate(40px,-25px) rotate(3deg) scale(1.05)}100%{transform:translate(-30px,20px) rotate(6deg) scale(.97)}}
.sway{animation:sway 40s ease-in-out infinite alternate;pointer-events:none}

/* contact form: centered pop-up, darkened liquid glass with the same outline as the buttons */
.backdrop{position:fixed;inset:0;background:rgba(8,6,10,.55);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  opacity:0;visibility:hidden;transition:opacity .2s,visibility 0s .2s;z-index:20}
.panel{position:fixed;left:50%;top:50%;width:min(520px,calc(100% - 32px));max-height:calc(100% - 32px);overflow:auto;
  padding:44px 40px;color:#fff;z-index:21;border:1px solid var(--lav);border-radius:32px;
  background:linear-gradient(150deg,rgba(40,30,52,.62),rgba(14,11,17,.72));
  backdrop-filter:blur(28px) saturate(160%);-webkit-backdrop-filter:blur(28px) saturate(160%);
  box-shadow:inset 0 1px 1px rgba(255,255,255,.35),inset 0 0 40px rgba(193,166,253,.08),0 30px 80px rgba(0,0,0,.5);
  opacity:0;visibility:hidden;transform:translate(-50%,-47%) scale(.96);
  transition:opacity .22s ease,transform .22s cubic-bezier(.2,.8,.2,1),visibility 0s .22s}
.form-open .backdrop{opacity:1;visibility:visible;transition:opacity .2s}
.form-open .panel{opacity:1;visibility:visible;transform:translate(-50%,-50%);transition:opacity .22s ease,transform .22s cubic-bezier(.2,.8,.2,1)}
.panel h2{font:600 40px/1.1 'Mustica Pro',sans-serif;margin:0 0 12px;text-transform:uppercase}
.panel .thanks{text-align:center;padding:24px 0 8px}
.panel .thanks h2{margin-bottom:16px}
.panel .thanks p{font-size:20px;color:var(--lav)}
.panel .lead{font-size:16px;opacity:.7;margin-bottom:32px}
.panel label{display:block;font-size:14px;color:var(--lav);margin:0 0 8px}
.panel input,.panel textarea{width:100%;background:none;border:1px solid #4a3d57;border-radius:14px;color:#fff;font:400 18px 'Verano Sans',sans-serif;
  padding:13px 16px;margin-bottom:20px;outline:none;transition:border-color .2s}
.panel textarea{min-height:120px;resize:vertical}
.panel select{width:100%;margin-bottom:20px;padding:13px 44px 13px 16px;border:1px solid #4a3d57;border-radius:14px;color:#fff;font:400 18px 'Verano Sans',sans-serif;outline:none;cursor:pointer;-webkit-appearance:none;appearance:none;transition:border-color .2s;
  background:transparent url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2714%27 height=%278%27%3E%3Cpath d=%27M1 1l6 6 6-6%27 fill=%27none%27 stroke=%27%23c1a6fd%27 stroke-width=%272%27/%3E%3C/svg%3E") no-repeat right 18px center}
.panel select:focus{border-color:var(--lav)}
.panel select option{background:#1c1622;color:#fff}
.panel input:focus,.panel textarea:focus{border-color:var(--lav)}
.panel input[aria-invalid=true]{border-color:#ff6b8a}
.panel .err{color:#ff6b8a;font-size:14px;margin:-12px 0 16px;min-height:0}
.panel .send{position:relative;height:52px;width:100%;border:1px solid var(--lav);border-radius:159px;color:var(--lav);font-size:18px}
.panel .close{position:absolute;top:16px;right:20px;background:none;border:0;font-size:32px;line-height:1;color:var(--lav)}
.panel.is-pol{width:min(760px,calc(100% - 32px))}
.panel .pol h2{font-size:clamp(24px,4vw,34px);padding-right:24px}
.panel .pol h3{font-size:18px;font-weight:600;color:var(--lav);margin:28px 0 8px}
.panel .pol p{font-size:16px;line-height:1.5;opacity:.85;margin:0 0 10px}
.panel .pol .lead{margin-bottom:8px}
.panel .pol a,.panel .agree a{color:var(--lav);text-decoration:underline}
.panel .pol .back{margin-top:28px}
.panel .agree{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.4;color:#fff;margin:0 0 20px;cursor:pointer}
.panel .agree input{width:18px;height:18px;flex:none;margin:1px 0 0;padding:0;accent-color:var(--lav)}
.panel .agree input[aria-invalid=true]{outline:1px solid #ff6b8a;outline-offset:2px}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .drift,.sway{animation:none}
  .panel,.backdrop{transition:none!important}
  .cursor-trail{display:none}
}
