@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --bg: #06050b;
  --panel: rgba(16, 12, 28, .62);
  --line: rgba(200, 180, 255, .14);
  --text: #f4f0ff;
  --muted: #aaa3c2;
  --lilac: #cdbdff;
  --iri: linear-gradient(90deg, #8b6cff, #d35bff, #ff5fa2, #ffb36b, #ffe27a, #5ee0ff, #8b6cff);
  --btn: linear-gradient(100deg, #8b6cff, #d35bff 40%, #ff6fa8 70%, #ffb36b);
  --radius: 26px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: #d35bff; color: #fff; }

/* ---------- Переливы ---------- */
.iri {
  background: var(--iri); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: iri 8s linear infinite;
}
@keyframes iri { to { background-position: 300% 0; } }

/* ---------- Фон: северное сияние ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute; width: 56vmax; height: 56vmax; border-radius: 50%;
  filter: blur(80px); opacity: .55; mix-blend-mode: screen;
  transition: transform 1.8s var(--ease), opacity 1.8s;
}
.b1 { background: radial-gradient(circle, #8b3dff 0%, transparent 62%); top: -20vmax; right: -12vmax; animation: drift1 18s ease-in-out infinite alternate; }
.b2 { background: radial-gradient(circle, #ff3d9a 0%, transparent 62%); top: 30vh; left: -26vmax; animation: drift2 22s ease-in-out infinite alternate; opacity: .38; }
.b3 { background: radial-gradient(circle, #19c6ff 0%, transparent 62%); bottom: -34vmax; right: -10vmax; animation: drift3 26s ease-in-out infinite alternate; opacity: .3; }
.b4 { background: radial-gradient(circle, #ff9b3d 0%, transparent 60%); width: 34vmax; height: 34vmax; top: 10vh; left: 40vw; opacity: .14; animation: drift2 30s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { translate: -14vw 12vh; scale: 1.15; } }
@keyframes drift2 { to { translate: 18vw -10vh; scale: .9; } }
@keyframes drift3 { to { translate: -20vw -14vh; scale: 1.2; } }
body[data-active="works"] .b1 { transform: translate(-40vw, 30vh); }
body[data-active="works"] .b3 { opacity: .45; }
body[data-active="services"] .b1 { transform: translate(-60vw, 10vh) scale(.8); }
body[data-active="services"] .b2 { transform: translate(60vw, -10vh); opacity: .5; }
body[data-active="services"] .b4 { opacity: .28; }
body[data-active="contact"] .b1 { transform: translate(-30vw, 50vh) scale(1.2); opacity: .7; }
body[data-active="contact"] .b3 { transform: translate(-30vw, -40vh); opacity: .5; }
.grid {
  position: absolute; inset: 0; opacity: .07;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 75%);
}
.noise {
  position: absolute; inset: -50%; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed; z-index: 0; width: 520px; height: 520px; left: -260px; top: -260px; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 91, 255, .16), transparent 60%);
  transform: translate(var(--mx, -999px), var(--my, -999px)); transition: transform .25s ease-out;
}
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 60; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--iri); background-size: 200% 100%; animation: iri 4s linear infinite; }

/* ---------- Переход между разделами ---------- */
.wipe {
  position: fixed; inset: 0; z-index: 80; pointer-events: none; display: grid; place-items: center;
  background: linear-gradient(120deg, #2a0f5c, #6d1d8f 30%, #b3246f 60%, #e0723a 85%, #f2b44c);
  background-size: 200% 200%;
  clip-path: inset(100% 0 0 0);
}
.wipe.in { clip-path: inset(0 0 0 0); transition: clip-path .5s cubic-bezier(.7, 0, .3, 1); animation: wipeShift 1s linear; }
.wipe.out { clip-path: inset(0 0 100% 0); transition: clip-path .55s cubic-bezier(.7, 0, .3, 1); }
.wipe-logo { font: 900 clamp(28px, 6vw, 72px) var(--display); letter-spacing: -.02em; color: #fff; opacity: 0; transform: translateY(20px) scale(.96); transition: opacity .3s, transform .5s var(--ease); }
.wipe.in .wipe-logo { opacity: 1; transform: none; transition-delay: .15s; }
@keyframes wipeShift { to { background-position: 100% 100%; } }

/* ---------- Шапка ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; gap: 24px; padding: 14px clamp(16px, 4vw, 48px);
  transition: background .4s, border-color .4s; border-bottom: 1px solid transparent;
}
body.scrolled .topbar { background: rgba(8, 6, 16, .6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); }
.logo { display: flex; align-items: center; gap: 12px; font: 800 18px var(--display); letter-spacing: -.01em; }
.logo-mark { position: relative; width: 30px; height: 30px; border-radius: 9px; background: conic-gradient(from var(--a), #8b6cff, #d35bff, #ff5fa2, #ffb36b, #5ee0ff, #8b6cff); animation: spin 6s linear infinite; }
.logo-mark i { position: absolute; inset: 4px; border-radius: 6px; background: #0b0912; }
.logo-mark i::before, .logo-mark i::after { content: ""; position: absolute; top: 7px; width: 4px; height: 8px; border-radius: 3px; background: #fff; }
.logo-mark i::before { left: 6px; } .logo-mark i::after { right: 6px; }
@keyframes spin { to { --a: 360deg; } }
.topnav { display: flex; gap: 30px; margin-left: auto; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.topnav a { position: relative; transition: color .3s; }
.topnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--iri); background-size: 300% 100%; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); animation: iri 6s linear infinite; }
.topnav a:hover { color: var(--text); }
.topnav a:hover::after { transform: scaleX(1); }

.sidenav { position: fixed; left: clamp(10px, 2vw, 28px); top: 50%; transform: translateY(-50%); z-index: 20; display: flex; flex-direction: column; gap: 26px; }
.sidenav a {
  writing-mode: vertical-rl; transform: rotate(180deg); display: flex; gap: 10px; align-items: center;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #6c6585;
  padding-left: 10px; border-left: 2px solid transparent; transition: color .4s, border-color .4s;
}
.sidenav a b { font-weight: 800; color: #8a82a8; }
.sidenav a.active, .sidenav a:hover { color: var(--text); border-left-color: #ff5fa2; }
.sidenav a.active b { color: #ff8fc4; }

/* ---------- Типографика ---------- */
.eyebrow { margin: 0 0 16px; font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--lilac); }
.h-display { margin: 0; font: 900 clamp(32px, 4.8vw, 70px)/1.04 var(--display); text-transform: uppercase; letter-spacing: -.015em; }
.h-section { margin: 0; font: 900 clamp(32px, 5.6vw, 72px)/1.02 var(--display); text-transform: uppercase; letter-spacing: -.015em; }
.lead { color: var(--muted); font-size: 18px; max-width: 560px; margin: 18px auto 0; }

/* ---------- Кнопки ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; isolation: isolate;
  min-height: 54px; padding: 0 28px; border-radius: 999px; border: 0; cursor: pointer; overflow: hidden;
  font-weight: 800; font-size: 15px; white-space: nowrap;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn-primary { background: var(--btn); background-size: 220% 100%; color: #1a0b26; box-shadow: 0 10px 34px -12px #d35bff, inset 0 1px 0 rgba(255, 255, 255, .5); animation: iri 6s linear infinite alternate; }
.btn-primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 46px -10px #ff5fa2; }
.btn-ghost { background: rgba(255, 255, 255, .05); color: var(--text); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(205, 189, 255, .3); }
.btn-ghost::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--a), #8b6cff, #d35bff, #ff5fa2, #ffb36b, #5ee0ff, #8b6cff); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; animation: spin 3s linear infinite; }
.btn-ghost:hover::before { opacity: 1; }
.btn-ghost:hover { transform: translateY(-3px); background: rgba(205, 189, 255, .1); }
.arr { display: inline-block; transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #ff8fc4; outline-offset: 3px; }

/* ---------- Разделы и карточки ---------- */
.section { position: relative; padding: clamp(90px, 13vh, 150px) clamp(18px, 7vw, 120px); max-width: 1320px; margin: 0 auto; }
.sec-head { margin-bottom: 46px; }
.card {
  position: relative; background: var(--panel); border-radius: var(--radius);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px -50px #000;
}
/* переливающаяся рамка карточки */
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 4;
  background: conic-gradient(from var(--a), transparent 0deg, #8b6cff 60deg, #ff5fa2 120deg, #ffb36b 170deg, transparent 220deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .6s; animation: spin 4s linear infinite;
}
.card:hover::before { opacity: 1; }
/* световое пятно за курсором */
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: radial-gradient(420px circle at var(--cx, 50%) var(--cy, 0%), rgba(211, 91, 255, .16), transparent 60%);
  opacity: 0; transition: opacity .5s;
}
.card:hover::after { opacity: 1; }

/* Появление при прокрутке */
.reveal { opacity: 0; transform: translateY(46px) scale(.98); filter: blur(10px); transition: opacity 1.1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s), filter 1.1s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.h-section.reveal, .h-display.reveal { clip-path: inset(0 0 100% 0); transform: translateY(30px); transition: clip-path 1.2s var(--ease) var(--d, 0s), opacity 1s var(--ease) var(--d, 0s), transform 1.2s var(--ease) var(--d, 0s), filter 1s var(--ease) var(--d, 0s); }
.h-section.reveal.in, .h-display.reveal.in { clip-path: inset(-10% -5% -10% -5%); }

/* ---------- Первый экран ---------- */
.hero { min-height: 100svh; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 30px; padding-top: 110px; padding-bottom: 60px; }
.price-pill {
  display: inline-flex; align-items: center; gap: 14px; margin: 30px 0 32px; padding: 8px 8px 8px 20px;
  border-radius: 999px; background: rgba(139, 108, 255, .12); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; color: var(--muted);
}
.price-pill b { color: #1a0b26; background: var(--btn); background-size: 220% 100%; animation: iri 6s linear infinite alternate; padding: 7px 16px; border-radius: 999px; font-weight: 900; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-actions.center { justify-content: center; margin-top: 34px; }

/* Персонаж «я» */
.me { position: relative; justify-self: center; width: min(430px, 82vw); aspect-ratio: 599 / 900; }
.me-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 2;
  transform-origin: 50% 100%; animation: meIdle 4.5s ease-in-out infinite;
  -webkit-mask-image: linear-gradient(#000 82%, transparent 100%); mask-image: linear-gradient(#000 82%, transparent 100%);
  filter: drop-shadow(0 20px 40px rgba(139, 61, 255, .45));
}
@keyframes meIdle {
  0%, 100% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(-10px) rotate(-1.5deg); }
  50% { transform: translateY(-16px) rotate(0); }
  75% { transform: translateY(-8px) rotate(1.5deg); }
}
.me-ring { position: absolute; border-radius: 50%; left: 50%; top: 44%; translate: -50% -50%; z-index: 0; }
.me-ring.r1 { width: 92%; aspect-ratio: 1; background: conic-gradient(from var(--a), #8b6cff, #d35bff, #ff5fa2, #ffb36b, #5ee0ff, #8b6cff); animation: spin 10s linear infinite; filter: blur(46px); opacity: .55; }
.me-ring.r2 { width: 78%; aspect-ratio: 1; border: 1.5px dashed rgba(255, 255, 255, .25); animation: rot 40s linear infinite; }
@keyframes rot { to { rotate: 360deg; } }
.me-floor { position: absolute; left: 12%; right: 12%; bottom: 4%; height: 26px; border-radius: 50%; z-index: 1; background: radial-gradient(closest-side, rgba(211, 91, 255, .7), transparent); animation: floor 4.5s ease-in-out infinite; }
@keyframes floor { 50% { transform: scaleX(.8); opacity: .55; } }
.spark { position: absolute; z-index: 3; width: 14px; height: 14px; background: #fff; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: twinkle 2.6s ease-in-out infinite; }
.s1 { left: 6%; top: 18%; } .s2 { right: 4%; top: 46%; animation-delay: .7s; width: 10px; height: 10px; background: #ffb36b; }
.s3 { left: 14%; top: 64%; animation-delay: 1.3s; background: #5ee0ff; } .s4 { right: 16%; top: 6%; animation-delay: 1.9s; width: 18px; height: 18px; background: #ff8fc4; }
@keyframes twinkle { 0%, 100% { transform: scale(.3) rotate(0); opacity: 0; } 50% { transform: scale(1) rotate(90deg); opacity: 1; } }
.me-bubble {
  position: absolute; z-index: 4; left: -8%; top: 8%; padding: 12px 18px; border-radius: 20px 20px 20px 4px;
  background: #fff; color: #1b1030; font-weight: 800; font-size: 15px; box-shadow: 0 16px 40px -14px #d35bff;
  animation: pop 6s var(--ease) infinite;
}
@keyframes pop { 0%, 6% { opacity: 0; transform: scale(.6) translateY(10px); } 12%, 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: scale(.9); } }

/* ---------- Бегущая строка ---------- */
.marquee { overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line); background: rgba(255, 255, 255, .02); transform: rotate(-1.5deg); margin: 10px -2vw; }
.marquee-track { display: flex; gap: 34px; width: max-content; animation: marquee 30s linear infinite; font: 800 clamp(22px, 3vw, 38px) var(--display); text-transform: uppercase; }
.marquee-track span { background: var(--iri); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: iri 8s linear infinite; }
.marquee-track i { font-style: normal; color: #ff8fc4; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Портфолио ---------- */
.works { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; align-items: start; }
.work { overflow: hidden; transition: transform .6s var(--ease), box-shadow .6s; }
.work:hover { transform: translateY(-8px); box-shadow: inset 0 0 0 1px rgba(205, 189, 255, .3), 0 40px 90px -40px #d35bff; }
.work-media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: #120f1c; }
.work-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.1s var(--ease), filter .6s; }
.work-media:hover img { transform: scale(1.07); filter: saturate(1.2); }
.media-shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%); transform: translateX(-120%); transition: transform 1s var(--ease); pointer-events: none; }
.work-media:hover .media-shine { transform: translateX(120%); }
.duo-media { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2px; background: var(--line); }
.duo-media .work-media { aspect-ratio: auto; height: 100%; min-height: 250px; }
.duo-app img { object-position: center; }
.media-label { position: absolute; left: 12px; bottom: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(6, 5, 11, .7); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; backdrop-filter: blur(6px); }
.work-body { position: relative; z-index: 3; padding: 24px 26px 28px; }
.work-body h3 { margin: 12px 0 8px; font: 800 22px/1.25 var(--display); }
.work-body p { margin: 0 0 22px; color: var(--muted); }
.tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; color: #ffd0e6; background: linear-gradient(90deg, rgba(139, 108, 255, .25), rgba(255, 95, 162, .25)); }
.work-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Услуги ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service { padding: 32px 28px 34px; overflow: hidden; transition: transform .6s var(--ease); }
.service > * { position: relative; z-index: 2; }
.service:hover { transform: translateY(-8px) rotate(-.4deg); }
.s-icon {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; font-size: 24px; color: #fff;
  background: linear-gradient(135deg, hsl(var(--hue) 90% 62%), hsl(calc(var(--hue) + 50) 95% 62%));
  box-shadow: 0 14px 30px -10px hsl(var(--hue) 90% 60%), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .6s var(--ease);
}
.service:hover .s-icon { transform: rotate(-8deg) scale(1.08); }
.service .num { position: absolute; right: 24px; top: 22px; font: 900 44px var(--display); color: transparent; -webkit-text-stroke: 1px rgba(205, 189, 255, .35); }
.service h3 { margin: 22px 0 10px; font: 800 20px/1.3 var(--display); }
.service p { margin: 0; color: var(--muted); }
.service .service-price { display: inline-block; margin-top: 20px; font: 900 20px var(--display); background: var(--iri); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: iri 8s linear infinite; }

/* ---------- Роутер ---------- */
body[data-active="router"] .b3 { transform: translate(-20vw, -50vh) scale(1.2); opacity: .55; }
body[data-active="router"] .b1 { transform: translate(-10vw, 40vh); }
.lead.left { margin-left: 0; margin-top: 28px; }
.perks { list-style: none; padding: 0; margin: 0 0 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.perks li { display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 999px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 14px; }
.perks b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 11px; color: #1a0b26; background: var(--btn); }
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.product { overflow: hidden; transition: transform .6s var(--ease), box-shadow .6s; }
.product:hover { transform: translateY(-8px); box-shadow: inset 0 0 0 1px rgba(205, 189, 255, .3), 0 40px 90px -40px #19c6ff; }
.product-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.icon-stage {
  display: grid; place-items: center; z-index: 2;
  background: radial-gradient(70% 90% at 50% 45%, rgba(139, 108, 255, .28), transparent 70%), linear-gradient(160deg, rgba(25, 198, 255, .08), rgba(255, 95, 162, .08));
  border-bottom: 1px solid var(--line);
}
.ico { width: 100%; height: 100%; }
.hero-ico {
  position: relative; display: grid; place-items: center; width: 128px; height: 128px; padding: 26px; border-radius: 36px; color: #fff;
  background: linear-gradient(135deg, #8b6cff, #d35bff 50%, #ff6fa8);
  box-shadow: 0 24px 60px -18px #d35bff, inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .6s var(--ease);
}
.product:hover .hero-ico { transform: translateY(-6px) rotate(-4deg) scale(1.04); }
.wifi { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 128px; height: 128px; pointer-events: none; }
.wifi span { position: absolute; inset: 0; border-radius: 36px; border: 2px solid #d35bff; opacity: 0; animation: ping 3s var(--ease) infinite; }
.wifi span:nth-child(2) { animation-delay: 1s; border-color: #5ee0ff; }
.wifi span:nth-child(3) { animation-delay: 2s; border-color: #ffb36b; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.1); opacity: 0; } }
.chips { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 0 12px; }
.chips span { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; background: rgba(6, 5, 11, .6); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(6px); }
.kit-stage { grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 24px 20px; align-content: center; }
.kit-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; animation: kitFloat 4s ease-in-out calc(var(--i) * .3s) infinite; }
.kit-ico {
  display: grid; place-items: center; width: 100%; max-width: 76px; aspect-ratio: 1; padding: 18%; border-radius: 22px; color: #fff;
  background: linear-gradient(135deg, hsl(calc(190 + var(--i) * 32) 90% 62%), hsl(calc(240 + var(--i) * 32) 90% 64%));
  box-shadow: 0 16px 34px -14px hsl(calc(210 + var(--i) * 32) 90% 60%), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .5s var(--ease);
}
.kit-tile:hover .kit-ico { transform: translateY(-6px) rotate(-6deg) scale(1.06); }
.kit-tile small { font-size: 12px; font-weight: 800; color: var(--muted); }
@keyframes kitFloat { 50% { transform: translateY(-6px); } }
.product-body { position: relative; z-index: 3; padding: 24px 26px 28px; }
.product-body h3 { margin: 0 0 8px; font: 800 22px/1.25 var(--display); }
.product-body p { margin: 0 0 22px; color: var(--muted); }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.product-price { font: 900 30px var(--display); background: var(--iri); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: iri 8s linear infinite; }
.sub-banner { display: flex; align-items: center; gap: 18px; margin-top: 28px; padding: 20px 26px; overflow: hidden; }
.sub-banner > * { position: relative; z-index: 3; }
.sub-icon { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 16px; font-size: 26px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #19c6ff, #8b6cff); box-shadow: 0 14px 30px -10px #19c6ff; animation: rot 6s linear infinite; }
.sub-banner b { display: block; font: 800 20px var(--display); }
.sub-banner b span { background: var(--iri); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: iri 8s linear infinite; }
.sub-banner small { color: var(--muted); font-size: 15px; }
@media (max-width: 980px) { .products { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .product-foot .btn { width: 100%; }
  .hero-ico, .wifi { width: 104px; height: 104px; }
  .kit-stage { aspect-ratio: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 10px; padding: 26px 18px; }
  .kit-tile { width: calc((100% - 20px) / 3); }
  .sub-banner { padding: 18px; }
  .sub-banner b { font-size: 17px; }
}

/* ---------- Связь ---------- */
.contact { text-align: center; }
.contact-inner { padding: clamp(46px, 8vw, 90px) 24px; overflow: hidden; }
.contact-inner > * { position: relative; z-index: 3; }
.footer { text-align: center; color: #6a6386; font-size: 13px; padding: 30px 20px 40px; }
.footer .iri { font-weight: 800; }
.tg-handle { color: var(--lilac); }

/* ---------- Планшет и телефон ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 96px; gap: 10px; }
  .me { width: min(300px, 70vw); order: -1; }
  .works, .services { grid-template-columns: 1fr; }
  .sidenav, .cursor-glow { display: none; }
}
@media (max-width: 640px) {
  .topnav { display: none; }
  .topbar .btn { margin-left: auto; }
  .logo { font-size: 16px; }
  .section { padding-left: 18px; padding-right: 18px; }
  .hero-actions .btn { width: 100%; }
  .price-pill { flex-wrap: wrap; }
  .me-bubble { left: -16%; top: -3%; font-size: 13px; padding: 9px 14px; }
  .duo-media { grid-template-columns: 1fr; }
  .duo-media .work-media { min-height: 0; aspect-ratio: 16 / 10; }
  .duo-media .duo-app { aspect-ratio: 2 / 1; }
  .work-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal, .h-section.reveal, .h-display.reveal { opacity: 1; transform: none; filter: none; clip-path: none; }
}
