/* King Kong Lab — «Deep blue space»
   Фірмовий темно-синій, горила з частинок, гіперпростір на скролі, у кожного розділу своя хореографія. */
:root {
  --ink: #0B1450;
  --ink-2: #0D1A62;
  --deep: #12206E;
  --panel: #182A86;
  --line: rgb(var(--lc) / .16);
  --line-2: rgb(var(--lc) / .32);
  --text: #F4F6FF;
  --muted: #A9B4E8;
  --brand: #2700EE;
  --signal: #3D5CFF;
  --signal-2: #8EA2FF;
  --gold: #FFC870;
  --magenta: #B44BFF;
  --halo: #DCE3FF;
  --ok: #8BE6C2;
  --s1: 18 32 110;
  --s2: 11 20 80;
  --s3: 20 36 140;
  --lc: 176 192 255;
  --sh: 0 0 0;
  --bg1: #0D1860;
  --bg2: #0B1450;
  --bg3: #0A1247;
  --glow1: rgba(61, 92, 255, .32);
  --glow2: rgba(39, 0, 238, .2);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --display: "Syne", system-ui, sans-serif;
  --cond: "Oswald", "Syne", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --wrap: 1240px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--ink); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.55; color: var(--text);
  background: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
/* фірмовий синій: глибокий градієнт з м'якими «туманностями» */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 720px at 85% -8%, var(--glow1), transparent 62%),
    radial-gradient(900px 700px at -12% 55%, var(--glow2), transparent 60%),
    linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 45%, var(--bg3) 100%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: calc(min(var(--wrap), 100% - 32px) / 4) 100%;
  background-position: center top;
  mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
  opacity: .14;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
.logo { flex: none; object-fit: contain; aspect-ratio: 1; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; letter-spacing: -.02em; line-height: 1.04; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--signal); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
main, .foot, .legal { position: relative; z-index: 1; }
.space { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.wrap { width: min(var(--wrap), calc(100% - 32px)); margin-inline: auto; }

/* ───── кнопки ───── */
.btn {
  --h: 48px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px; border-radius: 999px; overflow: hidden; isolation: isolate;
  font-family: var(--display); font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .35s var(--ease), background .25s, box-shadow .35s, color .25s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(120px 60px at var(--bx, 50%) var(--by, 50%), rgba(255, 255, 255, .35), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.btn:hover::before { opacity: 1; }
.btn--lg { --h: 58px; padding: 0 30px; }
.btn--full { width: 100%; }
.btn--blue { background: linear-gradient(135deg, var(--signal), var(--brand)); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset, 0 12px 40px -10px rgba(61, 92, 255, .95); }
.btn--blue:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.24) inset, 0 16px 56px -8px rgba(110, 135, 255, 1); }
.btn--ghost { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); background: rgb(var(--s1) / .35); backdrop-filter: blur(8px); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--halo); }

/* ───── заголовки секцій ───── */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--signal-2); }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); box-shadow: 0 0 8px var(--gold); transform-origin: 0 50%; transform: scaleX(var(--ln, 1)); }
h2 { font-family: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: -.01em; line-height: .96; font-size: clamp(42px, 6.6vw, 98px); }
h2 em { font-style: normal; color: var(--gold); }
.head { max-width: 900px; margin-bottom: 48px; }
.head--row { display: flex; justify-content: space-between; gap: 24px; align-items: end; max-width: none; }
.section, .closer { position: relative; scroll-margin-top: 96px; }
.section { padding: 120px 0; }
.section--tight { padding-top: 100px; }

/* ───── завантаження ───── */
.loader {
  position: fixed; inset: 0; z-index: 10000; background: radial-gradient(circle at 50% 45%, var(--bg1), var(--ink) 70%);
  display: grid; place-items: center; align-content: center; gap: 18px;
  transition: opacity .7s var(--ease), visibility .7s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader .logo { width: 96px; height: 96px; filter: drop-shadow(0 0 18px rgba(142, 162, 255, .7)); animation: float 2.4s ease-in-out infinite; }
.loader__bar { width: 160px; height: 1px; background: var(--line-2); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), #fff); box-shadow: 0 0 10px var(--gold); }
html:not(.js) .loader { display: none; }

/* ───── курсор, прогрес, зерно ───── */
.cursor { display: none; position: fixed; inset: 0; pointer-events: none; z-index: 9990; }
.has-cursor .cursor { display: block; }
.cursor i, .cursor em { position: fixed; top: 0; left: 0; border-radius: 50%; transform: translate3d(-80px, -80px, 0); }
.cursor i { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.cursor em {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(220, 227, 255, .55);
  display: grid; place-items: center; font-style: normal; font-family: var(--display); font-size: 12px; font-weight: 700; color: var(--ink);
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s, border-color .3s;
}
.cursor.is-hover em { width: 58px; height: 58px; margin: -29px 0 0 -29px; border-color: var(--gold); }
.cursor.is-label em { width: 78px; height: 78px; margin: -39px; background: var(--gold); border-color: transparent; }
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 80; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--text), var(--signal-2)); transform: scaleX(0); transform-origin: 0 50%; box-shadow: 0 0 10px rgba(255, 200, 112, .7); }
.grain {
  position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ───── навігація (як на референсі: лого зліва, коротке меню справа + ☰) ───── */
.nav {
  position: fixed; top: max(16px, var(--safe-t)); left: 0; right: 0; z-index: 60;
  width: min(1320px, calc(100% - 32px)); margin-inline: auto;
  display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 6px 0 10px;
  border-radius: 999px; border: 1px solid transparent;
  transition: background .4s, border-color .4s, backdrop-filter .4s, transform .5s var(--ease);
}
.nav.is-solid { background: rgb(var(--s2) / .62); border-color: var(--line); backdrop-filter: blur(18px) saturate(1.3); }
.nav.is-away { transform: translateY(calc(-100% - 24px)); }
.nav__logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 15px; }
.nav__logo .logo { width: 34px; height: 34px; filter: drop-shadow(0 0 8px rgba(142, 162, 255, .6)); transition: transform .6s var(--ease); }
.nav__logo:hover .logo { transform: rotate(-12deg) scale(1.08); }
.nav__logo strong { color: var(--gold); }
.nav__quick { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__quick a { position: relative; padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .25s; }
.nav__quick a:hover, .nav__quick a.is-on { color: var(--text); }
.nav__quick a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s var(--ease); }
.nav__quick a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav__talk { display: inline-flex; align-items: center; gap: 8px; color: var(--text) !important; }
.nav__talk i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(255, 200, 112, .16), 0 0 12px var(--gold); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 200, 112, 0), 0 0 18px var(--gold); } }
.nav__lang { display: grid; place-items: center; width: 40px; height: 40px; margin-left: 4px; border-radius: 50%; font-size: 12px; font-weight: 700; letter-spacing: .04em; box-shadow: inset 0 0 0 1px var(--line-2); }
.burger { position: relative; display: grid; width: 48px; height: 48px; place-items: center; align-content: center; gap: 5px; border-radius: 50%; background: var(--text); }
.burger i { display: block; width: 18px; height: 1.6px; background: var(--ink); transition: transform .45s var(--ease), opacity .3s, width .45s var(--ease); }
.burger i:nth-child(2) { width: 12px; margin-left: 6px; }
.burger:hover i:nth-child(2) { width: 18px; margin-left: 0; }
.burger.is-on { background: var(--gold); }
.burger.is-on i:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.burger.is-on i:nth-child(2) { opacity: 0; }
.burger.is-on i:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 55; overflow-x: hidden; overflow-y: auto;
  background: linear-gradient(160deg, rgb(var(--s3) / .98), rgb(var(--s2) / .99));
  backdrop-filter: blur(16px);
  padding: calc(110px + var(--safe-t)) max(24px, calc((100% - 1240px) / 2)) calc(28px + var(--safe-b));
  display: flex; flex-direction: column; justify-content: space-between;
  visibility: hidden; pointer-events: none;
  transform: translate3d(104%, 0, 0);
  transition: transform .62s var(--ease), visibility 0s .62s, opacity .5s ease;
  opacity: 0;
  will-change: transform, opacity;
}
.drawer.is-on {
  visibility: visible; pointer-events: auto;
  transform: translate3d(0, 0, 0); opacity: 1;
  transition: transform .72s var(--ease), visibility 0s, opacity .55s ease;
}
body.menu-open::before {
  content: "";
  position: fixed; inset: 0; z-index: 54;
  background: rgb(11 20 80 / .52);
  opacity: 1;
  pointer-events: none;
  animation: menu-fade-in .45s var(--ease) both;
}
@keyframes menu-fade-in { from { opacity: 0; } to { opacity: 1; } }
.drawer__glow { position: absolute; right: -10%; top: 10%; width: 60vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(120, 150, 255, .32), transparent); pointer-events: none; animation: halo 7s ease-in-out infinite; }
.drawer nav { position: relative; display: grid; gap: 0; }
.drawer nav a { display: flex; align-items: baseline; gap: 18px; padding: 4px 0; overflow: visible; font-family: var(--cond); text-transform: uppercase; font-weight: 600; font-size: clamp(44px, 9vw, 112px); line-height: 1; }
.drawer nav a span {
  display: inline-block;
  transform: translate3d(0, 28px, 0); opacity: 0;
  transition: transform .55s var(--ease), opacity .45s ease, color .3s;
}
.drawer nav a:hover span { color: transparent; -webkit-text-stroke: 1.4px var(--text); }
.drawer.is-on nav a span { transform: none; opacity: 1; }
.drawer.is-on nav a:nth-child(1) span { transition-delay: .08s; }
.drawer.is-on nav a:nth-child(2) span { transition-delay: .14s; }
.drawer.is-on nav a:nth-child(3) span { transition-delay: .2s; }
.drawer.is-on nav a:nth-child(4) span { transition-delay: .26s; }
.drawer.is-on nav a:nth-child(5) span { transition-delay: .32s; }
.drawer small { font-size: 13px; color: var(--gold); font-family: var(--body); font-weight: 600; }
.drawer__foot {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  color: var(--muted); overflow-wrap: anywhere; font-size: 15px;
  opacity: 0; transform: translateY(12px);
  transition: opacity .5s ease .28s, transform .55s var(--ease) .28s;
}
.drawer.is-on .drawer__foot { opacity: 1; transform: none; }
.drawer__foot .btn { margin-left: auto; }

/* маленька кругла кнопка зліва знизу (як на референсі) */
.fab {
  position: fixed; left: max(20px, calc((100% - 1320px) / 2)); bottom: calc(22px + var(--safe-b)); z-index: 58;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--signal), var(--brand)); color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset, 0 10px 34px -6px rgba(61, 92, 255, .95);
}
.fab::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(142, 162, 255, .5); animation: ripple 2.6s var(--ease) infinite; }
@keyframes ripple { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.menu-open .fab { opacity: 0; pointer-events: none; }
.fab { transition: opacity .3s; }
.fab svg { width: 22px; height: 22px; fill: currentColor; transform: translateX(-1px); }

/* ───── HERO ───── */
.banner { position: relative; z-index: 1; overflow: hidden; min-height: 100vh; min-height: 100svh; padding: calc(96px + var(--safe-t)) 0 0; display: flex; flex-direction: column; }
.banner__particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.banner__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.frame { position: absolute; inset: 22px; }
.frame i { position: absolute; width: 18px; height: 18px; border: 1px solid var(--line-2); }
.frame i:nth-child(1) { top: 70px; left: 0; border-right: 0; border-bottom: 0; }
.frame i:nth-child(2) { top: 70px; right: 0; border-left: 0; border-bottom: 0; }
.frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.banner__meta { position: absolute; top: 50%; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; transform: translateY(-50%); opacity: .7; }
.banner__meta--l { left: 30px; transform: translateY(-50%) rotate(180deg); }
.banner__meta--r { right: 30px; }

.banner__layout {
  position: relative; z-index: 2; flex: 1;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 24px; align-items: center;
  padding: 10px 0 72px;
}
.banner__copy { position: relative; z-index: 3; }
.promo__tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 999px;
  font-size: 13px; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); background: rgb(var(--s1) / .5); backdrop-filter: blur(6px);
}
.promo__tag b { color: var(--gold); }
.promo__tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(139, 230, 194, .15), 0 0 12px var(--ok); }
.banner__title {
  font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: -.012em;
  font-size: clamp(56px, 6.7vw, 118px); line-height: .96; margin: 22px 0 0;
}
.banner__title .line { display: block; overflow: hidden; padding: .06em .4em .24em 0; margin-bottom: -.06em; }
.banner__title .line > span { display: block; position: relative; width: max-content; line-height: 1.02; }
.banner__title .line--island { padding-bottom: .32em; }
.line--outline > span { color: transparent; -webkit-text-stroke: 1.6px var(--text); }
.glowdot {
  position: absolute; right: -.32em; top: .14em; width: .16em; height: .16em; border-radius: 50%;
  background: var(--gold); -webkit-text-stroke: 0;
  box-shadow: 0 0 10px var(--gold), 0 0 30px rgba(255, 200, 112, .8), 0 0 70px rgba(255, 200, 112, .5);
  animation: dot 3s ease-in-out infinite;
}
@keyframes dot { 50% { transform: scale(1.35); box-shadow: 0 0 14px var(--gold), 0 0 44px rgba(255, 200, 112, .9), 0 0 100px rgba(255, 200, 112, .6); } }
.line--island > span {
  background: linear-gradient(90deg, var(--text) 0%, var(--halo) 30%, var(--gold) 60%, var(--text) 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-bottom: .06em;
  line-height: 1.06;
  animation: sheen 6s linear infinite;
}
@keyframes sheen { to { background-position: -200% 0; } }
.banner__lead { margin: 26px 0 30px; color: var(--muted); max-width: 400px; font-size: 18px; line-height: 1.5; }
.banner__lead b { color: var(--text); font-weight: 600; }
.banner__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.banner__stats { display: flex; margin-top: 42px; border-top: 1px solid var(--line); max-width: 460px; }
.banner__stats li { flex: 1; display: grid; gap: 2px; padding: 14px 16px 0 0; }
.banner__stats li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.banner__stats b { font-family: var(--cond); font-weight: 600; font-size: 34px; line-height: 1; letter-spacing: 0; }
.banner__stats small { color: var(--muted); font-size: 13px; }

/* місце для горили з частинок (саму горилу малює canvas) */
.kong { position: relative; width: min(640px, 46vw); aspect-ratio: 1; justify-self: center; }
.kong__halo { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(90, 120, 255, .42), rgba(61, 92, 255, .2) 45%, transparent 70%); filter: blur(30px); animation: halo 7s ease-in-out infinite; }
@keyframes halo { 50% { transform: scale(1.08); opacity: .75; } }
.kong__fallback { position: absolute; inset: 18%; width: 64%; opacity: 0; transition: opacity .6s; }
.no-canvas .kong__fallback { opacity: 1; }

.banner__scroll { position: absolute; z-index: 3; right: max(24px, calc((100% - 1240px) / 2)); bottom: 30px; display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.banner__scroll i { position: relative; width: 1px; height: 46px; background: var(--line-2); overflow: hidden; }
.banner__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ───── велика стрічка між розділами ───── */
.mega { position: relative; z-index: 1; overflow: hidden; padding: 18px 0; border-block: 1px solid var(--line); background: rgb(var(--s2) / .35); }
.mega__track { display: flex; align-items: center; gap: 36px; width: max-content; will-change: transform; }
.mega span { font-family: var(--cond); font-weight: 600; font-size: clamp(36px, 5vw, 72px); line-height: 1; text-transform: uppercase; white-space: nowrap; }
.mega span.o { color: var(--gold); }
.mega i { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 18px var(--gold); }

/* ───── тікери ───── */
.ticker { overflow: hidden; }
.ticker__track { display: flex; align-items: center; gap: 24px; width: max-content; animation: slide 46s linear infinite; }
@keyframes slide { to { transform: translateX(-50%); } }
.ticker--cards { margin-top: 8px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker--cards .ticker__track { gap: 16px; padding: 20px 0 30px; }
.ticker--cards:hover .ticker__track { animation-play-state: paused; }

/* ───── рішення ───── */
.halo-ring { position: absolute; left: 50%; top: 40px; width: 140px; height: 140px; margin-left: -70px; border-radius: 50%; pointer-events: none; z-index: 0;
  box-shadow: 0 0 0 1.5px rgba(255, 236, 200, .9), 0 0 18px 2px rgba(255, 200, 112, .7), inset 0 0 18px 2px rgba(255, 200, 112, .55), 0 0 90px 20px rgba(61, 92, 255, .45); }
.halo-ring i { position: absolute; inset: -22px; border-radius: 50%; border: 1px dashed var(--line-2); animation: spin 30s linear infinite; }
#solutions .wrap { position: relative; z-index: 1; }
#solutions .head { margin-top: 70px; }
.lab { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.lab__list { position: relative; z-index: 2; display: grid; align-content: start; border-top: 1px solid var(--line); }
.sol {
  position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 6px; text-align: left; width: 100%;
  padding: 24px 8px 24px 0; border-bottom: 1px solid var(--line); overflow: hidden;
  color: inherit; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
a.sol:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sol::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(61, 92, 255, .28), transparent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.sol.is-on::before { transform: scaleX(1); }
.sol__num { font-family: var(--cond); font-weight: 500; font-size: 15px; color: var(--muted); padding: 6px 0 0 10px; transition: color .3s; }
.sol__body { display: grid; gap: 4px; }
.sol__body strong { font-family: var(--cond); font-weight: 600; text-transform: uppercase; font-size: clamp(26px, 2.9vw, 42px); letter-spacing: 0; line-height: 1.05; color: var(--muted); transition: color .3s, transform .5s var(--ease); }
.sol__body > span:not(.sol__price) { color: var(--muted); font-size: 15px; max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.sol__price { font-size: 13px; color: var(--muted); }
.sol__price b { color: var(--gold); font-weight: 600; }
.sol.is-on .sol__body strong, .sol:hover .sol__body strong { color: var(--text); transform: translateX(8px); }
.sol.is-on .sol__num { color: var(--gold); }
.sol.is-on .sol__body > span:not(.sol__price) { max-height: 80px; }
.lab__stage { margin: 0; border-radius: 24px; overflow: hidden; background: var(--deep); min-height: 500px; box-shadow: 0 0 0 1px var(--line-2), 0 40px 80px -40px rgb(var(--sh) / .6); position: relative; }
.lab__stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(39, 0, 238, .1), transparent 40%, rgb(var(--s2) / .65)); }
.lab__stage img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s, transform .9s var(--ease), filter .5s; }
.lab__stage.is-swap img { opacity: .2; transform: scale(1.06); filter: blur(6px); }

/* ───── про нас ───── */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: end; }
.statement { font-size: clamp(24px, 2.8vw, 38px); line-height: 1.28; letter-spacing: -.01em; font-weight: 500; }
.statement .w { opacity: .22; transition: opacity .4s, color .4s; }
.statement .w.is-on { opacity: 1; }
.facts { margin-top: 64px; overflow: hidden; border-block: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); background: rgb(var(--s2) / .3); }
.facts__track { display: flex; width: max-content; animation: factsMove 34s linear infinite; }
.facts:hover .facts__track { animation-play-state: paused; }
@keyframes factsMove { to { transform: translateX(-50%); } }
.fact { flex: none; display: grid; gap: 2px; padding: 26px 44px; border-right: 1px solid var(--line); }
.fact b { font-family: var(--cond); font-weight: 600; font-size: clamp(34px, 3.6vw, 54px); line-height: 1; white-space: nowrap; }
.fact span { color: var(--muted); font-size: 14px; white-space: nowrap; }

/* ───── процес ───── */
.approach__lead { color: var(--muted); font-size: 18px; margin-top: 20px; max-width: 640px; }
.steps { --p: 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); counter-reset: s; }
.steps::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: linear-gradient(90deg, var(--gold), var(--text), var(--signal-2)); box-shadow: 0 0 12px rgba(255, 200, 112, .8); transform: scaleX(var(--p)); transform-origin: 0 50%; }
.steps li { position: relative; padding: 30px 22px 34px 0; min-height: 230px; }
.steps li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.steps li::before { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background .4s, box-shadow .4s; }
.steps li + li::before { left: -5px; }
.steps li.is-lit::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(255, 200, 112, .18), 0 0 14px var(--gold); }
.steps em { display: block; font-family: var(--cond); font-style: normal; font-weight: 600; font-size: 56px; line-height: 1; color: rgb(var(--lc) / .28); margin-bottom: 22px; transition: color .5s; }
.steps li.is-lit em { color: var(--gold); }
.steps h3 { font-size: 22px; margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 15px; }
.trick {
  position: relative; margin-top: 36px; padding: 32px 34px; border-radius: 24px; max-width: 860px; overflow: hidden; isolation: isolate;
  background: radial-gradient(600px 220px at 0% 0%, rgba(61, 92, 255, .45), transparent 70%), rgb(var(--s1) / .7);
}
.trick::before { content: ""; position: absolute; inset: -60%; z-index: -2; background: conic-gradient(from 0deg, transparent 0 70%, var(--gold) 80%, var(--text) 84%, var(--signal-2) 90%, transparent 100%); animation: spin 6s linear infinite; }
.trick::after { content: ""; position: absolute; inset: 1.5px; z-index: -1; border-radius: 22.5px; background: radial-gradient(600px 220px at 0% 0%, rgba(61, 92, 255, .5), transparent 70%), var(--deep); }
.trick small { display: block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.trick p { font-family: var(--display); font-size: clamp(20px, 2.2vw, 28px); line-height: 1.25; letter-spacing: -.01em; }

/* ───── портфоліо ───── */
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { height: 40px; padding: 0 18px; border-radius: 99px; font-size: 14px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); transition: .3s var(--ease); }
.filter:hover { color: var(--text); }
.filter.is-on { background: var(--text); color: var(--ink); box-shadow: none; }
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; perspective: 1400px; }
.case-card {
  --rx: 0deg; --ry: 0deg;
  position: relative; display: grid; border-radius: 22px; overflow: hidden; background: var(--deep); min-height: 380px;
  box-shadow: 0 0 0 1px var(--line-2), 0 30px 60px -30px rgb(var(--sh) / .55); isolation: isolate;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease), box-shadow .4s;
}
.case-card:hover { box-shadow: 0 0 0 1px var(--gold), 0 40px 80px -30px rgba(61, 92, 255, .8); }
.case-card::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(400px 260px at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .16), transparent 60%); opacity: 0; transition: opacity .4s; }
.case-card:hover::after { opacity: 1; }
.case-card.is-hidden { display: none; }
.work .case-card.case-card--feature { grid-column: span 2; grid-row: span 2; }
.case-card__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.case-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: saturate(.9); transition: transform 1.1s var(--ease), filter .5s; }
.case-card:hover .case-card__media img { transform: scale(1.06); filter: saturate(1.1); }
.case-card--feature .case-card__media img { object-position: 0 0; }
.case-card__media--tg { display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, rgba(255, 200, 112, .32), transparent 55%), radial-gradient(circle at 50% 60%, rgba(61, 92, 255, .7), transparent 70%), var(--deep); }
.tgstat { display: grid; justify-items: center; text-align: center; transform: translateY(-30px); }
.tgstat b { font-family: var(--cond); font-weight: 700; font-size: clamp(52px, 5.6vw, 80px); line-height: 1; text-transform: uppercase; }
.tgstat small { color: var(--halo); font-size: 14px; }
.case-card__meta { align-self: end; padding: 70px 24px 24px; background: linear-gradient(transparent, rgb(var(--s2) / .82) 28%, rgb(var(--s2) / .98)); transform: translateZ(30px); }
.case-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.case-card__tag {
  display: inline-block; padding: 4px 11px; border-radius: 99px; font-size: 11px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2); background: rgb(var(--s2) / .55); backdrop-filter: blur(6px);
}
.case-card__tag--web { box-shadow: inset 0 0 0 1px rgba(142, 162, 255, .45); }
.case-card__tag--bot { box-shadow: inset 0 0 0 1px rgba(139, 230, 194, .45); }
.case-card__tag--app { box-shadow: inset 0 0 0 1px rgba(255, 200, 112, .5); }
.case-card__tag--geo { text-transform: none; font-weight: 500; letter-spacing: 0; color: var(--muted); font-size: 12px; }
.case-card__meta h3 { font-family: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: 0; font-size: 32px; margin-bottom: 8px; line-height: 1.02; }
.case-card--feature .case-card__meta h3 { font-size: clamp(44px, 5vw, 80px); }
.case-card__done { color: var(--muted); font-size: 14px; line-height: 1.45; max-width: 520px; margin: 0 0 6px; }
.case-card__done b { color: var(--text); font-weight: 600; }
.case-card__out { color: var(--gold); font-size: 13px; font-weight: 600; line-height: 1.35; max-width: 520px; margin: 0 0 12px; }
.case-card__cta { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--halo); transition: color .25s, transform .25s var(--ease); }
.case-card:hover .case-card__cta { color: var(--gold); transform: translateX(3px); }
.work__lead { color: var(--muted); font-size: 17px; line-height: 1.5; max-width: 520px; margin-top: 14px; }
.head--row .work__lead { margin-top: 10px; }
.stores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.stores li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: var(--text); color: var(--ink); font-size: 13px; font-weight: 600; }
.stores svg { width: 16px; height: 16px; fill: currentColor; }

/* ───── відгуки ───── */
.reviews { overflow: hidden; padding-bottom: 90px; }
.quote { width: min(380px, 80vw); margin: 0; padding: 24px; border-radius: 20px; background: rgb(var(--s1) / .65); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(8px); transition: transform .5s var(--ease), box-shadow .4s; }
.quote:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: inset 0 0 0 1px var(--gold); }
.quote blockquote { font-size: 17px; margin: 0 0 18px; line-height: 1.45; }
.quote blockquote::before { content: "“"; display: block; font-family: var(--cond); font-size: 54px; line-height: .6; color: var(--gold); margin-bottom: 8px; }
.quote figcaption { display: flex; align-items: center; gap: 10px; }
.quote i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 13px; color: #fff; background: linear-gradient(140deg, var(--signal), var(--brand)); }
.quote b { font-size: 14px; }
.quote small { display: block; color: var(--muted); font-size: 12px; }

/* ───── історії: великі контурні номери, як «імена команди» на референсі ───── */
.atlas__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); counter-reset: st; }
.atlas__grid article { position: relative; padding: 30px 28px 36px 0; counter-increment: st; }
.atlas__grid article + article { padding-left: 28px; border-left: 1px solid var(--line); }
.atlas__grid article::before { content: "0" counter(st); display: block; font-family: var(--cond); font-weight: 700; font-size: clamp(90px, 10vw, 150px); line-height: .85; color: transparent; -webkit-text-stroke: 1.2px var(--line-2); margin-bottom: 18px; transition: -webkit-text-stroke-color .5s, color .5s; }
.atlas__grid article:hover::before { color: var(--gold); -webkit-text-stroke-color: var(--gold); text-shadow: 0 0 40px rgba(255, 200, 112, .5); }
.atlas__grid small { display: block; font-size: 13px; color: var(--gold); margin-bottom: 14px; }
.atlas__grid h3 { font-family: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: 0; font-size: 30px; margin-bottom: 12px; line-height: 1.04; }
.atlas__grid p { color: var(--muted); font-size: 15px; }

/* ───── новини ───── */
.feed { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px max(16px, calc((100% - var(--wrap)) / 2)) 16px; }
.post { flex: none; width: min(360px, 84vw); scroll-snap-align: start; border-radius: 20px; overflow: hidden; background: rgb(var(--s1) / .6); min-height: 300px; box-shadow: inset 0 0 0 1px var(--line-2); }
.post.is-wait { background: linear-gradient(100deg, rgb(var(--s1) / .6) 30%, rgba(61, 92, 255, .35) 50%, rgb(var(--s1) / .6) 70%); background-size: 300% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
.post iframe { display: block; width: 100% !important; min-width: 0 !important; }
.feed__more { display: flex; justify-content: center; margin-top: 18px; }

/* ───── FAQ ───── */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); transition: background .4s; }
.acc details[open] { background: linear-gradient(90deg, rgba(61, 92, 255, .18), transparent); }
.acc summary { list-style: none; cursor: pointer; padding: 24px 6px 24px 14px; font-family: var(--display); font-weight: 700; font-size: 21px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--gold); font-size: 22px; line-height: 1; transition: transform .45s var(--ease), background .3s, color .3s; }
.acc details[open] summary::after { transform: rotate(135deg); background: var(--gold); color: var(--ink); }
.acc p { padding: 0 14px 24px; color: var(--muted); max-width: 620px; }
.acc details[open] p { animation: accIn .5s var(--ease); }
@keyframes accIn { from { opacity: 0; transform: translateY(-8px); } }

/* ───── контакти ───── */
.closer { padding: 120px 0 calc(80px + var(--safe-b)); overflow: hidden; }
.closer::before { content: ""; position: absolute; left: 50%; top: 10%; width: min(1000px, 130vw); aspect-ratio: 1.6; transform: translate(-50%, -30%) scale(var(--gs, 1)); background: radial-gradient(closest-side, rgba(61, 92, 255, .55), rgba(39, 0, 238, .2) 55%, transparent); pointer-events: none; }
.closer__grid { position: relative; display: grid; grid-template-columns: 1fr .9fr; gap: 48px; align-items: center; }
.closer h2 { font-size: clamp(46px, 6.4vw, 100px); }
.closer p { color: var(--muted); max-width: 420px; margin: 18px 0 26px; font-size: 17px; }
.direct { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px; }
.direct a { display: grid; padding: 14px 18px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line-2); background: rgb(var(--s1) / .45); transition: box-shadow .3s, transform .4s var(--ease); }
.direct a:hover { box-shadow: inset 0 0 0 1px var(--gold); transform: translateY(-3px); }
.direct small { color: var(--muted); font-size: 12px; }
.form { display: grid; gap: 10px; padding: 24px; border-radius: 24px; background: rgb(var(--s1) / .72); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -40px rgb(var(--sh) / .6); backdrop-filter: blur(12px); }
.field { position: relative; }
.field input, .field textarea { width: 100%; border: 0; border-radius: 14px; background: rgb(var(--s2) / .75); color: var(--text); padding: 22px 14px 8px; outline: none; box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; transition: box-shadow .25s; }
.field textarea { resize: vertical; min-height: 84px; }
.field label { position: absolute; left: 14px; top: 15px; color: var(--muted); font-size: 15px; transition: .2s; pointer-events: none; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 6px; font-size: 11px; color: var(--gold); }
.field input:focus, .field textarea:focus { box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 4px rgba(255, 200, 112, .12); }
.field.is-error input { box-shadow: inset 0 0 0 1px #FF7A9A; }
.hp { position: absolute; left: -9999px; }
.form__note { color: var(--muted); font-size: 12px; }
.form__note a { text-decoration: underline; color: var(--text); }
.form__status { min-height: 1.2em; color: var(--ok); font-size: 14px; }

/* ───── футер ───── */
.foot { padding: 44px 0 calc(24px + var(--safe-b)); border-top: 1px solid var(--line); background: rgb(var(--s2) / .55); }
.foot__brand p { max-width: 280px; color: var(--muted); margin-top: 12px; font-size: 14px; }
.foot__top { display: flex; justify-content: space-between; gap: 24px 40px; align-items: start; flex-wrap: wrap; }
.foot__cols { display: flex; flex-wrap: wrap; gap: 20px 56px; }
.foot__cols h4 { font-size: 13px; font-family: var(--body); font-weight: 500; color: var(--muted); margin: 0 0 12px; }
.foot__cols a { display: block; margin-bottom: 8px; font-size: 14px; transition: color .25s, transform .3s var(--ease); }
.foot__cols a:hover { color: var(--gold); transform: translateX(4px); }
.foot__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

.toast { position: fixed; left: 50%; bottom: calc(20px + var(--safe-b)); transform: translate(-50%, 16px); background: var(--text); color: var(--ink); padding: 12px 18px; border-radius: 99px; opacity: 0; pointer-events: none; transition: .3s var(--ease); z-index: 90; font-size: 14px; font-weight: 500; max-width: calc(100% - 24px); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ───── політика ───── */
.legal { padding: calc(130px + var(--safe-t)) 0 60px; }
.legal h1 { font-family: var(--cond); text-transform: uppercase; font-weight: 600; letter-spacing: 0; font-size: clamp(40px, 6vw, 76px); margin-bottom: 18px; }
.legal h1 em { font-style: normal; color: transparent; -webkit-text-stroke: 1.2px var(--halo); }
.legal__body { max-width: 640px; display: grid; gap: 10px; margin: 0 0 26px; color: var(--muted); }
.legal a { color: var(--text); }
.legal .btn--blue { color: #fff; }

.no-anim [data-rise], .no-anim [data-split] { opacity: 1 !important; transform: none !important; }

/* ───── адаптив ───── */
@media (hover: none) { .btn:hover { transform: none; } }

@media (max-width: 1100px) {
  .lab, .about, .faq, .closer__grid { grid-template-columns: 1fr; gap: 28px; }
  .head--row { flex-direction: column; align-items: start; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .work { grid-template-columns: 1fr 1fr; }
  .work .case-card.case-card--feature { grid-row: auto; }
  .lab__stage { min-height: 340px; }
  .nav__hide-sm { display: none; }
}

@media (max-width: 860px) {
  .nav { height: 52px; top: max(10px, var(--safe-t)); width: calc(100% - 20px); }
  .nav__logo span { display: none; }
  .nav__lang { display: none; }
  .burger { width: 44px; height: 44px; }
  .section { padding: 80px 0; }
  .banner { min-height: auto; padding-top: calc(76px + var(--safe-t)); overflow-x: clip; overflow-y: visible; }
  .banner__layout {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    padding-bottom: 48px;
  }
  .banner__copy { order: 1; }
  .kong { order: 2; width: min(78vw, 340px); margin: 20px auto 0; flex-shrink: 0; }
  .banner__meta, .banner__scroll { display: none; }
  .banner__title {
    font-size: clamp(40px, 12.4vw, 68px); margin-top: 16px;
    line-height: 0.98; overflow-wrap: anywhere;
  }
  .banner__title .line {
    overflow: visible;
    padding: 0.08em 0.28em 0.28em 0.04em;
    margin-bottom: 0.02em;
  }
  .banner__title .line--island { padding-bottom: 0.36em; }
  .banner__title .line > span { width: auto; max-width: 100%; }
  .line--outline > span { -webkit-text-stroke-width: 1.35px; padding-right: 0.15em; }
  .glowdot { right: -0.05em; }
  .banner__lead { font-size: 16px; margin: 18px 0 22px; }
  .banner__actions { flex-direction: column; }
  .banner__actions .btn { width: 100%; }
  .banner__stats { margin-top: 28px; max-width: none; }
  .banner__stats b { font-size: 28px; }
  .frame { inset: 10px; }
  .frame i:nth-child(1), .frame i:nth-child(2) { top: 64px; }
  .steps, .atlas__grid { grid-template-columns: 1fr; }
  .steps li, .steps li + li, .atlas__grid article, .atlas__grid article + article { padding: 24px 0; border-left: 0; min-height: 0; }
  .steps li + li, .atlas__grid article + article { border-top: 1px solid var(--line); }
  .steps li + li::before { left: 0; }
  .steps em { font-size: 48px; margin-bottom: 12px; }
  .atlas__grid article::before { font-size: 84px; }
  .work { grid-template-columns: 1fr; }
  .work .case-card.case-card--feature { grid-column: auto; min-height: 440px; }
  .case-card { min-height: 300px; }
  .direct { grid-template-columns: 1fr; }
  .closer { padding-top: 80px; }
  .fact { padding: 18px 26px; }
  .halo-ring { width: 96px; height: 96px; margin-left: -48px; top: 26px; }
  #solutions .head { margin-top: 64px; }
  .fab { width: 52px; height: 52px; left: 14px; bottom: calc(14px + var(--safe-b)); }
  .mega { padding: 12px 0; }
  .drawer { padding-top: calc(92px + var(--safe-t)); }
  .drawer nav a { font-size: clamp(36px, 11vw, 64px); gap: 12px; padding: 6px 0; }
  .drawer__foot { display: grid; }
  .drawer__foot .btn { margin-left: 0; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 24px); }
  h2 { font-size: clamp(40px, 12vw, 56px); }
  .head { margin-bottom: 30px; }
  .sol { grid-template-columns: 44px 1fr; padding: 18px 0; }
  .sol__num { padding-left: 4px; }
  .acc summary { font-size: 17px; padding-left: 4px; }
  .acc p { padding-left: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .drawer nav a span { transform: none; opacity: 1; }
  .drawer, .drawer.is-on { transform: none; opacity: 1; }
  .drawer__foot { opacity: 1; transform: none; }
  body.menu-open::before { animation: none; }
}

/* ═════ сцени з частинками (як на референсі: один обʼєкт, що змінює форму) ═════ */
.pfield { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.scene { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }

/* Рішення: обʼєкт зліва, текст справа */
.lab { grid-template-columns: 1.05fr .95fr; align-items: center; }
.lab__stage { order: -1; background: none; box-shadow: none; overflow: visible; min-height: 0; height: min(470px, 54vh); border-radius: 0; }
.lab__shape { inset: 2% 12% 2% 4% !important; }
#solutions .head { margin-top: 40px !important; margin-bottom: 18px; }
#solutions h2 { font-size: clamp(40px, 5.2vw, 76px); }
#solutions .sol { padding-block: 16px; }
#solutions .halo-ring { top: 24px; width: 110px; height: 110px; margin-left: -55px; }
.lab__stage::after { display: none; }
.lab__shape { position: absolute; inset: 4%; }
.lab__thumb { position: absolute !important; right: 0; bottom: 4%; width: 36% !important; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; box-shadow: 0 0 0 1px var(--line-2), 0 24px 50px -20px rgb(var(--sh) / .7); }
.lab__stage.is-swap .lab__thumb { opacity: 0; transform: translateY(10px) scale(.96); filter: none; }

/* Про нас: велика планета з частинок справа */
#about { overflow: hidden; }
#about .about { position: relative; z-index: 1; grid-template-columns: 1fr; max-width: 620px; margin-left: max(16px, calc((100% - var(--wrap)) / 2)); gap: 28px; }
.about__globe { position: absolute; right: -4vw; top: 50%; width: min(50vw, 720px); aspect-ratio: 1; transform: translateY(-50%); pointer-events: none; }
#about .facts { position: relative; z-index: 1; }

/* окремі «листи» для розділів, щоб блоки читались чітко */
.section--panel { padding: 40px 0; }
.section--panel > .wrap { padding: 72px clamp(20px, 4vw, 64px); border-radius: 36px; background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(6px); }

/* Контакти: горила збирається знову між текстом і формою */
.closer__grid { grid-template-columns: 1fr .8fr 1fr; gap: 32px; }
.closer__kong { position: relative; aspect-ratio: 1; width: 100%; }
.closer__kong span { position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(90, 120, 255, .35), transparent 70%); filter: blur(24px); }

@media (max-width: 1100px) {
  .lab { grid-template-columns: 1fr; }
  .lab__stage { width: min(560px, 100%); height: auto; aspect-ratio: 1.1; justify-self: center; }
  .about__globe { right: -30vw; width: 110vw; opacity: .9; }
  .closer__grid { grid-template-columns: 1fr; }
  .closer__kong { width: min(320px, 70vw); justify-self: center; order: -1; margin-bottom: -20px; }
}
@media (max-width: 860px) {
  .scene { min-height: 0; }
  #about { padding-top: 100px; }
  #about .about { margin-inline: auto; width: calc(100% - 24px); }
  .about__globe { position: relative; top: auto; right: auto; transform: none; display: block; width: min(92vw, 420px); margin: 0 auto -10px; }
  .section--panel { padding: 16px 0; }
  .section--panel > .wrap { width: calc(100% - 16px); padding: 48px 16px; border-radius: 26px; }
  .lab__thumb { width: 42% !important; }
}

/* ═════ світла тема (основна) ═════ */
html[data-theme="light"] {
  --ink: #F4F6FD;
  --ink-2: #EDF0FB;
  --deep: #FFFFFF;
  --panel: #FFFFFF;
  --line: rgba(20, 32, 120, .11);
  --line-2: rgba(20, 32, 120, .2);
  --text: #0B1450;
  --muted: #56608F;
  --signal: #2F4BFF;
  --signal-2: #2F4BFF;
  --gold: #D8961F;
  --halo: #2700EE;
  --s1: 255 255 255;
  --s2: 240 243 253;
  --s3: 248 249 255;
  --lc: 11 20 80;
  --sh: 30 40 120;
  --bg1: #F8F9FE;
  --bg2: #F2F4FC;
  --bg3: #ECEFFA;
  --glow1: rgba(61, 92, 255, .14);
  --glow2: rgba(216, 150, 31, .1);
  color-scheme: light;
}
html[data-theme="light"] .grain { opacity: .025; }
html[data-theme="light"] body::after { opacity: .5; }
html[data-theme="light"] .nav.is-solid { background: rgba(255, 255, 255, .78); }
html[data-theme="light"] .nav__logo .logo, html[data-theme="light"] .loader .logo { filter: none; }
html[data-theme="light"] .lab__thumb, html[data-theme="light"] .form, html[data-theme="light"] .case-card { box-shadow: 0 0 0 1px var(--line), 0 24px 50px -28px rgba(30, 40, 120, .35); }
html[data-theme="light"] .section--panel > .wrap { background: rgba(255, 255, 255, .72); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgba(30, 40, 120, .3); }
html[data-theme="light"] .closer::before { background: radial-gradient(closest-side, rgba(61, 92, 255, .16), transparent); }
html[data-theme="light"] .kong__halo, html[data-theme="light"] .closer__kong span { opacity: .25; }
html[data-theme="light"] .line--island > span { background-image: linear-gradient(90deg, var(--text) 0%, #2F4BFF 30%, var(--gold) 60%, var(--text) 90%); background-size: 200% 100%; }
html[data-theme="light"] .case-card__media--tg { background: radial-gradient(circle at 50% 35%, rgba(216, 150, 31, .25), transparent 55%), radial-gradient(circle at 50% 60%, rgba(61, 92, 255, .25), transparent 70%), #fff; }
html[data-theme="light"] .case-card__meta { background: linear-gradient(transparent, rgba(255, 255, 255, .86) 35%, rgba(255, 255, 255, .97)); }
html[data-theme="light"] .tgstat small { color: var(--muted); }
html[data-theme="light"] .halo-ring { box-shadow: 0 0 0 1.5px rgba(216, 150, 31, .9), 0 0 18px 2px rgba(216, 150, 31, .45), inset 0 0 18px 2px rgba(216, 150, 31, .35), 0 0 70px 14px rgba(61, 92, 255, .14); }
html[data-theme="light"] .field input, html[data-theme="light"] .field textarea { background: #F4F6FD; }
html[data-theme="light"] .cursor em { border-color: rgba(11, 20, 80, .45); }
html[data-theme="light"] .mega { background: rgba(255, 255, 255, .5); }

/* перемикач теми */
.theme-toggle { position: relative; display: grid; place-items: center; width: 40px; height: 40px; margin-left: 4px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); overflow: hidden; transition: box-shadow .3s, transform .5s var(--ease); }
.theme-toggle:hover { box-shadow: inset 0 0 0 1px var(--gold); transform: rotate(-20deg); }
.theme-toggle svg { position: absolute; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease), opacity .4s; }
.theme-toggle .i-sun { color: var(--gold); }
html[data-theme="light"] .theme-toggle .i-sun { transform: translateY(140%) rotate(90deg); opacity: 0; }
html:not([data-theme="light"]) .theme-toggle .i-moon { transform: translateY(-140%) rotate(-90deg); opacity: 0; }
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color .6s var(--ease), color .6s var(--ease), border-color .6s, box-shadow .6s, fill .6s !important; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
@media (max-width: 860px) { .theme-toggle { display: grid; width: 40px; height: 40px; } }

/* ═════ офер на головній: 4 послуги з цінами ═════ */
.offer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 520px; margin: 0 0 26px; }
.offer a {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 12px;
  padding: 14px 16px; border-radius: 16px; overflow: hidden; isolation: isolate;
  background: rgb(var(--s1) / .55); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(8px);
  transition: box-shadow .35s, transform .45s var(--ease);
}
.offer a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(216, 150, 31, .16), transparent 70%); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.offer a:hover { box-shadow: inset 0 0 0 1px var(--gold); transform: translateY(-2px); }
.offer a:hover::before { transform: scaleX(1); }
.offer i { grid-row: span 2; font-style: normal; font-family: var(--cond); font-weight: 600; font-size: 13px; color: var(--gold); }
.offer b { font-family: var(--display); font-size: 15px; line-height: 1.15; }
.offer small { grid-column: 2; color: var(--muted); font-size: 13px; }
.offer a::after { content: "→"; grid-row: 1 / span 2; grid-column: 3; color: var(--gold); transition: transform .4s var(--ease); }
.offer a:hover::after { transform: translateX(4px); }
.banner__lead { margin-bottom: 20px; max-width: 460px; }
.lab__more { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--gold); justify-self: start; }
.lab__more i { font-style: normal; transition: transform .4s var(--ease); }
.lab__more:hover i { transform: translateX(6px); }
@media (max-width: 560px) {
  .offer a { grid-template-columns: 1fr; padding: 12px; gap: 2px; }
  .offer i { grid-row: auto; }
  .offer small { grid-column: 1; }
  .offer a::after { display: none; }
  .offer b { font-size: 14px; }
}

/* ═════ портфоліо: живі скріншоти + «показати ще» ═════ */
.case-card__media--shot { background: radial-gradient(circle at 30% 20%, rgba(216, 150, 31, .28), transparent 55%), radial-gradient(circle at 70% 70%, rgba(61, 92, 255, .45), transparent 65%), var(--deep); }
.shot-ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 24px 24px 120px; text-align: center; }
.shot-ph b { font-family: var(--cond); font-weight: 700; text-transform: uppercase; font-size: clamp(30px, 3.2vw, 46px); line-height: 1; }
.shot-ph small { color: var(--muted); font-size: 13px; }
.case-card__media--shot img { position: relative; opacity: 0; transition: opacity .6s var(--ease), transform 1.1s var(--ease), filter .5s; }
.case-card__media--shot img.is-ready { opacity: 1; }
.work .case-card.is-more { display: none; }
.work.is-open .case-card.is-more:not(.is-hidden) { display: grid; }
.work__more { display: flex; justify-content: center; margin-top: 22px; }
.work__more[hidden] { display: none; }
.shot-ph b { font-size: clamp(22px, 2.2vw, 32px); opacity: .55; text-transform: none; letter-spacing: .01em; }
.work.is-open .case-card--wide:not(.is-hidden) { grid-column: span 2; }
@media (max-width: 860px) { .work.is-open .case-card--wide:not(.is-hidden) { grid-column: auto; } }
.case-card__media--shot img { object-position: 0 0 !important; }

/* ═════ портфоліо на телефоні: карусель замість довгої стрічки ═════ */
.work__nav { display: none; }
@media (max-width: 860px) {
  .work {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: -12px; padding: 4px 12px 14px; scroll-padding-inline: 12px; scrollbar-width: none; perspective: none;
  }
  .work::-webkit-scrollbar { display: none; }
  .work .case-card, .work .case-card.case-card--feature { flex: 0 0 84%; min-height: 0; height: 430px; scroll-snap-align: start; grid-column: auto; grid-row: auto; }
  .work .case-card.is-more { display: grid; }
  .work .case-card.is-hidden { display: none !important; }
  .case-card__meta { padding: 56px 18px 18px; }
  .case-card__meta h3 { font-size: 26px; }
  .case-card--feature .case-card__meta h3 { font-size: 34px; }
  .case-card__done { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .case-card__out { font-size: 12px; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .work__lead { font-size: 15px; max-width: none; }
  .case-card__media--shot img, .case-card__media img { height: 62%; }
  .work__more { display: none !important; }
  .work__nav { display: flex; align-items: center; gap: 14px; margin-top: 10px; font-size: 13px; color: var(--muted); }
  .work__count b { color: var(--text); font-weight: 700; }
  .work__count i { font-style: normal; }
  .work__bar { position: relative; flex: 1; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
  .work__bar i { position: absolute; inset: 0; background: var(--gold); transform-origin: 0 50%; transform: scaleX(.06); transition: transform .2s; }
  .work__hint { color: var(--gold); font-weight: 600; }
  #work .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
}
html, main { overflow-x: clip; }


/* ═════ відгуки: картки повністю, без обрізання ═════ */
.ticker--cards { overflow-x: clip; overflow-y: visible; }
.ticker--cards .ticker__track { align-items: stretch; padding: 14px 0 34px; }
.quote { display: flex; flex-direction: column; justify-content: space-between; min-height: 210px; }
.quote:hover { transform: translateY(-4px); }
.reviews { overflow: visible; }

/* ═════ «Чому вигідніше» поруч із фішкою ═════ */
.tricks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.tricks .trick { margin-top: 0; max-width: none; }
.trick--save::before { background: conic-gradient(from 180deg, transparent 0 70%, var(--signal-2) 80%, var(--text) 84%, var(--gold) 90%, transparent 100%); }
@media (max-width: 860px) { .tricks { grid-template-columns: 1fr; } }

/* ═════ форма: швидкий Telegram ═════ */
.tg-quick {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 16px; color: #fff;
  background: linear-gradient(135deg, #2AABEE, #1E88D9); box-shadow: 0 14px 34px -14px rgba(34, 158, 217, .9);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.tg-quick:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(34, 158, 217, 1); }
.tg-quick i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.tg-quick svg { width: 20px; height: 20px; fill: #fff; transform: translateX(-1px); }
.tg-quick b { display: block; font-family: var(--display); font-size: 16px; }
.tg-quick small { display: block; font-size: 12px; opacity: .85; }
.tg-quick em { font-style: normal; font-size: 18px; transition: transform .4s var(--ease); }
.tg-quick:hover em { transform: translateX(4px); }
.form__or { display: flex; align-items: center; gap: 12px; margin: 4px 0; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.form__or::before, .form__or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
@media (max-width: 860px) { .direct { grid-template-columns: minmax(0, 1fr) !important; } .closer__grid > * { min-width: 0; } }
.direct--tg { color: #229ED9; box-shadow: inset 0 0 0 1px rgba(34, 158, 217, .5) !important; }
.form { scroll-margin-top: 90px; }
.form.is-flash { animation: formFlash 1.4s var(--ease); }
@keyframes formFlash { 0% { box-shadow: inset 0 0 0 1px var(--line-2), 0 0 0 0 rgba(216, 150, 31, .0); } 30% { box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 10px rgba(216, 150, 31, .18); } 100% { box-shadow: inset 0 0 0 1px var(--line-2), 0 0 0 0 rgba(216, 150, 31, 0); } }
.faq__lead { color: var(--muted); margin: 18px 0 18px; max-width: 360px; }

/* ═════ новини: компактні картки, що розгортаються ═════ */
.post { position: relative; width: min(320px, 80vw); min-height: 0; max-height: 360px; transition: max-height .6s var(--ease); }
.post.is-open { max-height: 2400px; }
.post__toggle {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; justify-content: center; align-items: end;
  height: 96px; padding-bottom: 14px; border: 0; cursor: pointer;
  background: linear-gradient(transparent, rgb(var(--s2) / .96) 60%); color: var(--gold); font: 600 13px var(--body);
}
html[data-theme="light"] .post__toggle { background: linear-gradient(rgba(255, 255, 255, 0), #fff 62%); }
.post.is-open .post__toggle { position: static; height: auto; padding: 12px 0 14px; background: none; }
.post.is-wait .post__toggle { display: none; }

/* ═════ телефон: легші ефекти для плавності ═════ */
@media (max-width: 860px), (hover: none) {
  .grain, body::after { display: none; }
  .nav.is-solid, .btn--ghost, .promo__tag, .offer a, .quote, .form, .section--panel > .wrap, .case-card__meta span, .drawer { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .nav.is-solid { background: rgb(var(--s2) / .94); }
  html[data-theme="light"] .nav.is-solid { background: rgba(255, 255, 255, .96); }
  .kong__halo, .closer__kong span, .drawer__glow, .svc-shape::before { animation: none !important; filter: none !important; opacity: .5; }
  .line--island > span { animation: none !important; }
  .trick::before { animation-duration: 12s; }
  .case-card { transition: none; }
}
@media (max-width: 860px) { #contact .direct, .svc-closer .direct { display: none; } #contact .closer__grid { gap: 18px; } }
.post { display: flex; flex-direction: column; } .post__toggle { order: 9; } .post.is-open .post__toggle { border-top: 1px solid var(--line); }
/* без GSAP стрічка теж гортається */
.no-anim .mega__track { animation: slide 28s linear infinite; }
.no-anim .mega--rev .mega__track { animation-direction: reverse; }
/* контакти: горила рівно по центру між текстом і формою */
@media (min-width: 1101px) {
  #contact .closer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .75fr) minmax(0, 1fr); }
  #contact h2 { font-size: clamp(44px, 4.6vw, 84px); }
  #contact .closer__kong { justify-self: center; width: min(100%, 360px); }
}
@media (max-width: 860px) {
  .work__nav { gap: 12px; padding-left: 62px; margin-top: 14px; }
  .work__arrow { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 18px; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); background: rgb(var(--s1) / .7); transition: background .25s, color .25s, opacity .25s; }
  .work__arrow--next { background: var(--gold); color: #0B1450; box-shadow: none; }
  .work__arrow:disabled { opacity: .35; }
  .work__count { white-space: nowrap; }
}
.lab__thumb { width: 46% !important; }
