/* Geist и Geist Mono (SIL Open Font License), локальные копии */
@font-face{font-family:'Geist';font-style:normal;font-weight:300 700;font-display:swap;src:url(../fonts/geist-cyrillic-ext.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'Geist';font-style:normal;font-weight:300 700;font-display:swap;src:url(../fonts/geist-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Geist';font-style:normal;font-weight:300 700;font-display:swap;src:url(../fonts/geist-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Geist';font-style:normal;font-weight:300 700;font-display:swap;src:url(../fonts/geist-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:400 500;font-display:swap;src:url(../fonts/geist-mono-cyrillic-ext.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:400 500;font-display:swap;src:url(../fonts/geist-mono-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:400 500;font-display:swap;src:url(../fonts/geist-mono-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:400 500;font-display:swap;src:url(../fonts/geist-mono-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/* ---------- Tokens ---------- */
:root {
  --bg: #050506;
  --bg-1: #0c0c0f;
  --bg-2: #131317;
  --bg-3: #1a1a20;
  --fg: #f4f4f5;
  --fg-2: #a1a1aa;
  --fg-3: #80808a;
  --fg-dim: #5f5f69; /* только для крупного текста */
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --line-3: rgba(255, 255, 255, .22);
  --accent: #6d83ff;
  --violet: #a78bfa;
  --teal: #5eead4;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --pad: clamp(14px, 3vw, 44px);
  --cpad: clamp(20px, 3vw, 44px);
  --max: 1360px;
  --nav-h: 86px;
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
  transition: opacity .6s var(--ease);
}
.js:not(.ready):not(.intro) body { opacity: 0; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ol, ul, figure, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .03em; text-transform: uppercase; }

.skip {
  position: fixed; left: 16px; top: 12px; z-index: 400;
  padding: 10px 18px; border-radius: 999px; background: var(--fg); color: var(--bg);
  transform: translateY(-200%); transition: transform .4s var(--spring);
}
.skip:focus { transform: none; }

/* ---------- Global layers ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 120; pointer-events: none; }
.progress span {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--accent), var(--violet), var(--teal));
}
.grain {
  position: fixed; inset: -50%; z-index: 150; pointer-events: none; opacity: .045;
  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 type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
main, .footer { position: relative; z-index: 1; }

/* ---------- Loader (первый заход за сессию) ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300; display: none; place-items: center; background: var(--bg);
  border-radius: 0; transition: transform 1s var(--ease-io), border-radius 1s var(--ease-io);
}
.intro .loader { display: grid; }
.intro.loaded .loader { transform: translateY(-100%); border-radius: 0 0 50% 50% / 0 0 22% 22%; pointer-events: none; }
.intro-done .loader { display: none; }
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; transition: opacity .35s ease, transform .6s var(--ease); }
.loaded .loader__inner { opacity: 0; transform: translateY(-24px) scale(.96); }
.loader__mark { width: 64px; height: 64px; color: var(--fg); animation: mark-in 1s var(--spring) both; }
.loader__mark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s .25s var(--ease) forwards; }
.loader__count { color: var(--fg-2); font-size: 13px; min-width: 3ch; text-align: center; }
@keyframes mark-in { from { transform: scale(.3) rotate(-120deg); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Surfaces ---------- */
.panel {
  position: relative; border-radius: var(--r-xl); background: var(--bg-1); border: 1px solid var(--line);
  overflow: hidden; isolation: isolate;
}
.card {
  --rx: 0deg; --ry: 0deg; --ly: 0px;
  position: relative; border-radius: var(--r-lg); background: var(--bg-1); border: 1px solid var(--line);
  padding: var(--cpad); overflow: hidden; isolation: isolate;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--ly));
  transition: transform .6s var(--ease), border-color .4s ease, background-color .4s ease, box-shadow .6s var(--ease);
}
.card:hover { --ly: -4px; border-color: var(--line-2); background: #0f0f13; box-shadow: 0 30px 60px -32px rgba(0, 0, 0, .9); }
.card.is-tilting { transition: transform .15s linear, border-color .4s ease, background-color .4s ease, box-shadow .6s var(--ease); }

/* подсветка и светящаяся рамка под курсором */
[data-spot] { --mx: 50%; --my: 50%; }
[data-spot]::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(460px circle at var(--mx) var(--my), rgba(109, 131, 255, .10), transparent 60%);
}
[data-spot]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(150, 168, 255, .75), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity .4s;
}
[data-spot]:hover::before, [data-spot]:hover::after { opacity: 1; }

/* ---------- Pills & chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); font-size: 14px; color: var(--fg-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.pill--ghost { background: transparent; }
.status i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 12px rgba(52, 211, 153, .8); }
.status i::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #34d399;
  animation: ping 2.2s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3.2); opacity: 0; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--bg-2); font-size: 13px; color: var(--fg-2); white-space: nowrap;
  transition: transform .45s var(--spring), border-color .3s, background-color .3s, color .3s;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--teal)); }
.chip:hover { transform: translateY(-3px) scale(1.05); border-color: var(--line-3); background: var(--bg-3); color: var(--fg); }
.chips--sm .chip { height: 30px; padding: 0 12px; font-size: 12px; }

/* ---------- Nav (плавающая «таблетка») ---------- */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 100; display: flex; justify-content: center; padding: 0 12px;
  pointer-events: none; transform: translateY(-160%); transition: transform .8s var(--ease);
}
.ready .nav { transform: none; }
.ready .nav.is-hidden { transform: translateY(-160%); }
.ready .nav.is-hidden:has(:focus-visible) { transform: none; }
.nav__bar {
  pointer-events: auto; width: min(100%, 1120px); height: 60px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 0 8px 0 18px; border-radius: 999px;
  background: rgba(18, 18, 22, .55); border: 1px solid var(--line-2);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: background-color .4s ease, box-shadow .4s ease;
}
.nav.is-scrolled .nav__bar { background: rgba(18, 18, 22, .8); }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.02em; font-size: 15px; }
.logo__mark { width: 26px; height: 26px; color: var(--fg); transition: transform .7s var(--spring); }
.logo:hover .logo__mark { transform: rotate(-90deg) scale(1.08); }

.nav__links { position: relative; display: flex; gap: 2px; }
.nav__links a { position: relative; z-index: 1; padding: 10px 16px; border-radius: 999px; font-size: 14px; color: var(--fg-2); transition: color .3s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--fg); }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}
.nav__hover {
  position: absolute; top: 0; left: 0; height: 100%; width: var(--hw, 0px); border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--line); opacity: 0; pointer-events: none;
  transform: translateX(var(--hx, 0px)) scale(.9);
  transition: transform .55s var(--spring), width .55s var(--spring), opacity .3s ease;
}
.nav__links.is-hovering .nav__hover { opacity: 1; transform: translateX(var(--hx, 0px)) scale(1); }

.nav__right { display: flex; align-items: center; gap: 8px; }
.lang {
  position: relative; display: flex; padding: 3px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
}
.lang button {
  position: relative; z-index: 1; width: 40px; height: 32px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--fg-2);
  transition: color .4s var(--ease), transform .4s var(--spring);
}
.lang button:hover { color: var(--fg); }
.lang button:active { transform: scale(.9); }
.lang button[aria-pressed="true"] { color: var(--bg); }
.lang__pill {
  position: absolute; top: 3px; left: 0; height: 32px; width: 40px; border-radius: 999px; background: var(--fg);
  box-shadow: 0 4px 14px -4px rgba(255, 255, 255, .4);
  transform: translateX(var(--x, 3px)); transition: transform .6s var(--spring), width .6s var(--spring);
}

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--fg); position: relative; transition: transform .4s var(--spring); }
.burger:active { transform: scale(.9); }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.6px; border-radius: 2px; background: var(--bg); transition: transform .55s var(--spring); }
.burger span:first-child { transform: translateY(-3.5px); }
.burger span:last-child { transform: translateY(3.5px); }
.burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 8px; z-index: 90; border-radius: var(--r-xl); background: var(--bg-1); border: 1px solid var(--line-2);
  display: flex; align-items: flex-end; padding: var(--nav-h) 14px 10vh; overflow-y: auto;
  clip-path: inset(0 0 100% 0 round var(--r-xl)); transition: clip-path .75s var(--ease-io);
}
.menu.is-open { clip-path: inset(0 0 0 0 round var(--r-xl)); }
.menu__links { display: flex; flex-direction: column; gap: 6px; width: 100%; margin-top: auto; }
.menu__links a {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line);
  font-size: clamp(28px, min(9vw, 8vh), 52px); font-weight: 500; letter-spacing: -.04em; line-height: 1;
  opacity: 0; transform: translateY(30px) scale(.96); transition: opacity .6s var(--ease), transform .8s var(--spring), background-color .3s;
}
.menu__links a:active { background: var(--bg-3); }
.menu__num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--fg-2); flex: none; }
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(1) { transition-delay: .15s; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .21s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .27s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: .33s; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 54px; padding: 0 26px; border-radius: 999px; font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), scale .3s var(--spring), color .45s var(--ease), border-color .45s var(--ease), box-shadow .5s var(--ease), background-color .4s;
}
.btn:active { scale: .95; }
.btn:has(.btn__icon) { padding-right: 9px; }
.btn--primary { background: var(--fg); color: var(--bg); box-shadow: 0 10px 34px -12px rgba(255, 255, 255, .45); }
.btn--primary:hover { box-shadow: 0 14px 44px -10px rgba(140, 160, 255, .6); }
/* блик, пробегающий по кнопке */
.btn--primary::after {
  content: ""; position: absolute; top: 0; left: -70%; width: 50%; height: 100%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(109, 131, 255, .28), transparent);
  transform: skewX(-20deg); transition: left .9s var(--ease);
}
.btn--primary:hover::after { left: 130%; }
.btn__icon {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--bg); color: var(--fg);
  transition: transform .6s var(--spring);
}
.btn__icon svg { width: 15px; height: 15px; }
.btn:hover .btn__icon { transform: translateY(3px) scale(1.08); }
.btn--ghost { border: 1px solid var(--line-3); color: var(--fg); background: rgba(255, 255, 255, .03); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--ghost::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg); border-radius: inherit;
  transform: translateY(101%) scale(.9); transition: transform .6s var(--ease);
}
.btn--ghost:hover { color: var(--bg); border-color: var(--fg); }
.btn--ghost:hover::before { transform: none; }
.btn--sm { height: 46px; padding: 0 20px; font-size: 14px; }
.btn--xs { height: 40px; padding: 0 18px; font-size: 13px; }
.btn .ext { width: 12px; height: 12px; transition: transform .5s var(--spring); }
.btn:hover .ext { transform: translate(2px, -2px) rotate(8deg); }

/* текст, который прокручивается вверх при наведении */
.roll { position: relative; display: inline-block; overflow: hidden; line-height: 1.3; vertical-align: top; }
.roll > span { display: block; transition: transform .6s var(--ease); }
.roll__dup { position: absolute; left: 0; top: 100%; width: 100%; }
a:hover .roll > span, button:hover .roll > span { transform: translateY(-100%); }

.icon-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; background: var(--bg-2);
  transition: background-color .3s, color .3s, border-color .3s, opacity .3s, transform .45s var(--spring);
}
.icon-btn svg { width: 14px; height: 14px; }
.icon-btn:hover:not([aria-disabled="true"]) { background: var(--fg); color: var(--bg); border-color: var(--fg); transform: scale(1.08); }
.icon-btn:active:not([aria-disabled="true"]) { transform: scale(.92); }
.icon-btn[aria-disabled="true"] { opacity: .3; cursor: default; }

/* ---------- Hero ---------- */
.hero {
  margin: 10px; min-height: calc(100svh - 20px); display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 32px) var(--cpad) clamp(40px, 7vh, 72px);
  background: radial-gradient(120% 90% at 50% 0%, #11131d, var(--bg-1) 62%);
}
.hero__blobs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__blobs i { position: absolute; border-radius: 50%; animation: blob 20s ease-in-out infinite alternate; }
.hero__blobs i:nth-child(1) { width: 60vmax; height: 60vmax; top: -30vmax; right: -16vmax; background: radial-gradient(closest-side, rgba(70, 98, 255, .38), transparent); }
.hero__blobs i:nth-child(2) { width: 54vmax; height: 54vmax; bottom: -32vmax; left: -16vmax; background: radial-gradient(closest-side, rgba(139, 92, 246, .3), transparent); animation-duration: 24s; animation-delay: -8s; }
.hero__blobs i:nth-child(3) { width: 34vmax; height: 34vmax; top: 18%; left: 42%; background: radial-gradient(closest-side, rgba(45, 212, 191, .14), transparent); animation-duration: 28s; animation-delay: -4s; }
@keyframes blob {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-6vmax, 4vmax) scale(1.12); }
  100% { transform: translate(5vmax, -3vmax) scale(.92); }
}
.hero__canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero__glow {
  position: absolute; left: 0; top: 0; z-index: -1; width: 60vmax; height: 60vmax; pointer-events: none;
  background: radial-gradient(closest-side, rgba(109, 131, 255, .14), transparent);
  transform: translate3d(calc(var(--gx, 60vw) - 50%), calc(var(--gy, 30vh) - 50%), 0);
}
.hero__inner { position: relative; width: 100%; max-width: var(--max); margin-inline: auto; }
.hero__meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: clamp(24px, 4.5vh, 48px);
  opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease) .15s, transform 1s var(--spring) .15s;
}
.ready .hero__meta { opacity: 1; transform: none; }

.hero__title {
  font-size: clamp(42px, 8.2vw, 146px); line-height: .96; letter-spacing: -.055em; font-weight: 500; margin-left: -.04em;
}
.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line > span {
  display: block; transform: translateY(110%) rotate(3deg); transform-origin: 0 100%; filter: blur(8px);
  transition: transform 1.2s var(--ease), filter 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 100ms + 120ms);
}
.ready .hero__title .line > span { transform: none; filter: none; }
/* третья строка — с бегущим бликом */
.hero__title .line:last-child > span {
  background: linear-gradient(90deg, var(--fg-dim) 0%, var(--fg-dim) 35%, #c9cfee 50%, var(--fg-dim) 65%, var(--fg-dim) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s ease-in-out infinite;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 60%, 100% { background-position: -150% 0; } }

.hero__bottom {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 28px 48px; flex-wrap: wrap;
  margin-top: clamp(28px, 5vh, 56px);
  opacity: 0; transform: translateY(18px); transition: opacity 1.2s var(--ease) .5s, transform 1.2s var(--ease) .5s;
}
.ready .hero__bottom { opacity: 1; transform: none; }
.hero__lead { max-width: 34em; font-size: clamp(16px, 1.3vw, 19px); color: var(--fg-2); line-height: 1.55; }
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; }

.hero__badge {
  position: absolute; top: calc(var(--nav-h) + 28px); right: var(--cpad); z-index: 2; width: 128px; height: 128px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: scale(.6) rotate(-40deg); transition: opacity .8s ease .7s, transform 1.2s var(--spring) .7s;
}
.ready .hero__badge { opacity: 1; transform: none; }
.hero__badge-text { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); animation: spin 16s linear infinite; }
.hero__badge-text text { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; fill: var(--fg-2); }
.hero__badge:hover .hero__badge-text { animation-duration: 5s; }
.hero__badge-core {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: var(--bg);
  transition: transform .6s var(--spring);
}
.hero__badge-core svg { width: 18px; height: 18px; }
.hero__badge:hover .hero__badge-core { transform: rotate(45deg) scale(1.1); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 18px; z-index: 1; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--fg-3); pointer-events: none;
}
.hero__mouse { position: relative; width: 22px; height: 34px; border-radius: 12px; border: 1.5px solid var(--line-3); }
.hero__mouse i {
  position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--fg);
  animation: wheel 1.8s var(--ease-io) infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(-2px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(11px); } }
@media (max-height: 760px), (max-width: 860px) { .hero__scroll { display: none; } }
@media (min-width: 861px) and (min-height: 761px) { .hero { padding-bottom: 108px; } }
@media (max-width: 1100px), (max-height: 700px) { .hero__badge { display: none; } }

/* ---------- Marquee (две ленты чипов) ---------- */
.marquee {
  position: relative; z-index: 1; display: grid; gap: 10px; padding: 18px 0 8px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__row { overflow: hidden; }
.marquee__track { display: flex; gap: 10px; width: max-content; animation: marquee 52s linear infinite; }
.marquee__row--rev .marquee__track { animation-direction: reverse; animation-duration: 60s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee .chip { height: 42px; padding: 0 18px; font-size: 14px; background: var(--bg-1); }
@keyframes marquee { to { transform: translateX(calc(-50% - 5px)); } }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(80px, 10vw, 150px) 0; }
.head { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; margin-bottom: clamp(32px, 4.5vw, 64px); }
.label {
  display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 16px 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--fg-2);
}
.label__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--teal)); }
.label__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: ping 2.6s var(--ease) infinite; }
.label__num { color: var(--fg-3); }
.head__title { font-size: clamp(36px, 5.4vw, 84px); line-height: 1; letter-spacing: -.05em; font-weight: 500; max-width: 16ch; }

/* разбивка заголовка на слова */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; padding-right: .1em; margin-right: -.1em; }
.w > span {
  display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: 0 100%; filter: blur(6px);
  transition: transform 1.1s var(--ease), filter 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 55ms);
}
[data-split].in .w > span { transform: none; filter: none; }

/* появление при прокрутке */
.js [data-reveal] {
  opacity: 0; transform: translateY(30px) scale(.97); filter: blur(6px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s);
}
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }
/* карточки с наклоном: после появления transform отдаётся наклону и наведению */
.js .card[data-reveal].in { transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--ly)); }
/* .settled ставит JS, когда появление закончилось: задержка появления больше не тормозит наведение */
.js .settled { transition-delay: 0s; }
.js .card.settled { transition: transform .6s var(--ease), border-color .4s ease, background-color .4s ease, box-shadow .6s var(--ease); }
.js .card.settled.is-tilting { transition: transform .15s linear, border-color .4s ease, background-color .4s ease, box-shadow .6s var(--ease); }
[data-reveal-lines] .line > span { transform: translateY(110%) rotate(3deg); filter: blur(8px); }
[data-reveal-lines].in .line > span { transform: none; filter: none; }

/* иконки рисуются при появлении и при наведении */
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico path, .ico circle, .ico rect { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease) .2s; }
.in .ico path, .in .ico circle, .in .ico rect, .in.ico path { stroke-dashoffset: 0; }

/* ---------- Work / case ---------- */
.projects { display: flex; flex-direction: column; gap: 10px; }
.case { padding: var(--cpad); }
.case::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 50% at 80% 0%, rgba(109, 131, 255, .12), transparent 70%);
}
.case__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.case__index { margin-bottom: 18px; }
.case__title { font-size: clamp(56px, 10.5vw, 176px); line-height: .84; letter-spacing: -.065em; font-weight: 500; margin-left: -.05em; }
.case__kicker { font-size: clamp(16px, 1.4vw, 20px); color: var(--fg-2); margin-top: 16px; }
.case__links { display: flex; gap: 10px; flex-wrap: wrap; }

.case__stage { perspective: 1800px; }
.frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden; background: #0b0b0e; border: 1px solid var(--line-2);
  box-shadow: 0 60px 140px -50px rgba(91, 124, 255, .5), 0 30px 60px -30px rgba(0, 0, 0, .8);
  transform-origin: 50% 0; transform: rotateX(var(--rx, 0deg)) scale(var(--sc, 1)); will-change: transform;
}
.frame__bar { height: 44px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--line); background: #111115; }
.frame__dots { display: flex; gap: 7px; }
.frame__dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a2a31; transition: background-color .3s; }
.frame:hover .frame__dots i:nth-child(1) { background: #ff5f57; }
.frame:hover .frame__dots i:nth-child(2) { background: #febc2e; transition-delay: .05s; }
.frame:hover .frame__dots i:nth-child(3) { background: #28c840; transition-delay: .1s; }
.frame__url {
  display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 16px; border-radius: 999px; background: #1a1a20;
  font-family: var(--mono); font-size: 12px; color: var(--fg-2);
}
.frame__url svg { width: 11px; height: 11px; opacity: .6; }
.frame__media { position: relative; aspect-ratio: 16 / 10; background: #0b1030; }
.frame__media video, .frame__media img { width: 100%; height: 100%; object-fit: cover; }
.frame__link { position: absolute; inset: 0; z-index: 1; }
.frame__link:focus-visible { outline-offset: -4px; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.frame__toggle {
  position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: var(--fg); background: rgba(9, 9, 11, .62);
  border: 1px solid var(--line-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: .8; transition: opacity .3s, background-color .3s, color .3s, transform .45s var(--spring);
}
.frame__toggle:hover, .frame__toggle:focus-visible { opacity: 1; background: var(--fg); color: var(--bg); transform: scale(1.1); }
.frame__toggle:active { transform: scale(.9); }
.frame__toggle svg { width: 12px; height: 12px; }
.frame__toggle[data-state="playing"] .i-play, .frame__toggle[data-state="paused"] .i-pause { display: none; }

.case__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 10px; margin-top: 10px; }
.case__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.meta {
  position: relative; display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: var(--r-md);
  background: var(--bg-2); border: 1px solid var(--line); overflow: hidden;
  transition: transform .5s var(--spring), border-color .3s, background-color .3s;
}
.meta:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--bg-3); }
.meta--wide { grid-column: 1 / -1; }
.meta dt { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--fg-3); }
.meta dt .ico { width: 16px; height: 16px; color: var(--fg-2); }
.meta dd { font-size: 14px; line-height: 1.45; color: var(--fg); }
.case__text { display: flex; flex-direction: column; gap: 10px; }
.case__summary {
  padding: clamp(20px, 2.4vw, 32px); border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line);
  font-size: clamp(18px, 1.7vw, 24px); line-height: 1.4; letter-spacing: -.015em;
}
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.feature { display: grid; gap: 12px; align-content: start; padding: 22px; border-radius: var(--r-md); background: var(--bg-2); }
.feature:hover { background: var(--bg-3); }
.feature__icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; color: #c9d1ff;
  background: linear-gradient(135deg, rgba(109, 131, 255, .28), rgba(167, 139, 250, .12)); border: 1px solid rgba(150, 168, 255, .25);
  transition: transform .6s var(--spring);
}
.feature:hover .feature__icon { transform: rotate(-8deg) scale(1.1); }
.feature h4 { font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.feature p { color: var(--fg-2); font-size: 15px; line-height: 1.5; }

/* лента экранов */
.rail { margin: clamp(28px, 4vw, 48px) calc(var(--cpad) * -1) 0; }
.rail__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-inline: var(--cpad); margin-bottom: 16px; }
.rail__title { color: var(--fg-2); }
.rail__controls { display: flex; align-items: center; gap: 10px; }
.rail__bar { width: 120px; height: 4px; border-radius: 4px; background: var(--line-2); position: relative; overflow: hidden; }
.rail__bar span {
  position: absolute; inset: 0; border-radius: inherit; transform-origin: 0 50%; transform: scaleX(var(--rp, .2)); transition: transform .25s var(--ease);
  background: linear-gradient(90deg, var(--accent), var(--violet));
}
.rail__track {
  --rh: clamp(240px, 32vw, 460px);
  display: flex; align-items: flex-start; gap: 12px; overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab;
  padding: 6px var(--cpad) 4px; scroll-padding-inline: var(--cpad);
}
.has-cursor .rail__track { cursor: none; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail__track.is-dragging .tile { pointer-events: none; }
.rail__item { flex: none; scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; }
.tile {
  position: relative; display: block; width: min(calc(var(--rh) * var(--ar)), calc(100vw - 2 * var(--pad) - 2 * var(--cpad)));
  aspect-ratio: var(--ar); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-2);
  transition: transform .6s var(--spring), box-shadow .6s var(--ease), border-color .3s;
}
.tile:hover { transform: translateY(-6px); border-color: var(--line-3); box-shadow: 0 30px 50px -30px rgba(91, 124, 255, .55); }
.tile:active { transform: scale(.98); }
.tile:focus-visible { outline-offset: -3px; }
.tile img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.1s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile--phone {
  aspect-ratio: auto; width: calc(var(--rh) * .62); height: var(--rh); display: grid; grid-template-rows: minmax(0, 1fr); place-items: center; padding: 22px;
  background: radial-gradient(circle at 50% 30%, #1b2452, var(--bg-2) 70%);
}
.tile--phone img { width: auto; height: 100%; aspect-ratio: var(--ar); border-radius: 22px; border: 1px solid var(--line-2); object-fit: cover; }
.tile--phone:hover img { transform: translateY(-6px) rotate(-2deg); }
.rail__item figcaption { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--fg-2); }
.rail__item figcaption .mono {
  flex: none; display: grid; place-items: center; min-width: 32px; height: 24px; padding: 0 8px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--fg-3); font-size: 11px;
}

.work__more { margin-top: 18px; }
.work__plus { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--fg); color: var(--bg); font-size: 14px; line-height: 1; }

/* ---------- Services (бенто) ---------- */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.service { display: flex; flex-direction: column; gap: 18px; min-height: 300px; }
.service__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.service__icon {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 20px; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 12px 30px -12px var(--c1);
  transition: transform .7s var(--spring), box-shadow .5s;
}
.service__icon .ico { width: 28px; height: 28px; }
.service:hover .service__icon { transform: rotate(-10deg) scale(1.1); box-shadow: 0 18px 40px -12px var(--c1); }
.service__arrow {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--fg-2);
  transition: transform .7s var(--spring), background-color .3s, color .3s, border-color .3s;
}
.service__arrow svg { width: 16px; height: 16px; }
.service:hover .service__arrow { transform: rotate(45deg); background: var(--fg); color: var(--bg); border-color: var(--fg); }
.service__num { color: var(--fg-3); margin-top: auto; }
.service h3 { font-size: clamp(22px, 2.3vw, 34px); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; margin-top: -8px; }
.service p { color: var(--fg-2); font-size: 16px; max-width: 34em; }
.service:nth-child(1) { --c1: #4f6bff; --c2: #8b5cf6; }
.service:nth-child(2) { --c1: #8b5cf6; --c2: #ec4899; }
.service:nth-child(3) { --c1: #14b8a6; --c2: #3b82f6; }
.service:nth-child(4) { --c1: #f59e0b; --c2: #ef4444; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 10px; }
.about__main { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 420px; }
.about__statement { font-size: clamp(30px, 3.9vw, 60px); line-height: 1.06; letter-spacing: -.045em; font-weight: 500; }
.about__statement .hw { color: var(--fg-dim); transition: color .5s ease; }
.about__statement .hw.on { color: var(--fg); }
.about__text { font-size: 17px; color: var(--fg-2); line-height: 1.6; max-width: 38em; }
.about__principles { display: grid; gap: 10px; }
.principle { display: grid; grid-template-columns: 44px 1fr; gap: 6px 16px; align-content: start; padding: 22px; }
.principle__num {
  grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: var(--bg-3); border: 1px solid var(--line-2); color: var(--fg-2); transition: transform .6s var(--spring), background-color .3s, color .3s;
}
.principle:hover .principle__num { transform: rotate(-8deg) scale(1.08); background: var(--fg); color: var(--bg); }
.principle h3 { font-size: 18px; font-weight: 500; letter-spacing: -.015em; }
.principle p { color: var(--fg-2); font-size: 15px; }
.about__stack { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.about__stack-title { color: var(--fg-3); }

/* ---------- Contact ---------- */
.contact { padding-bottom: 10px; }
.contact__card {
  padding: clamp(28px, 5vw, 72px);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(109, 131, 255, .22), transparent 55%),
    radial-gradient(70% 100% at 0% 100%, rgba(167, 139, 250, .16), transparent 60%),
    var(--bg-1);
}
.contact__glow {
  position: absolute; inset: -50%; z-index: -1; pointer-events: none; opacity: .6;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(109, 131, 255, .22) 60deg, transparent 120deg, rgba(94, 234, 212, .12) 220deg, transparent 300deg);
  animation: spin 22s linear infinite;
}
.contact__title { font-size: clamp(50px, 10vw, 176px); line-height: .92; letter-spacing: -.065em; font-weight: 500; margin: clamp(24px, 3vw, 40px) 0 0 -.05em; }
.contact__title .line:last-child > span { color: var(--fg-dim); }
.contact__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px 48px; flex-wrap: wrap; margin-top: clamp(32px, 5vw, 64px); }
.contact__text { max-width: 30em; font-size: 18px; color: var(--fg-2); }
.contact__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { padding: 10px; }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 26px var(--cpad); color: var(--fg-3); }
.footer__top { color: var(--fg-2); transition: color .3s; }
.footer__top:hover { color: var(--fg); }
.wordmark {
  display: flex; justify-content: center; font-size: clamp(76px, 20.5vw, 330px); font-weight: 600; letter-spacing: -.07em;
  line-height: .78; padding-top: 1vw; user-select: none; overflow: hidden;
}
.wordmark span {
  display: inline-block; background: linear-gradient(to bottom, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(100%); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 55ms);
}
.wordmark.in span { transform: none; }
.wordmark.in span:hover { transform: translateY(-10%); transition: transform .5s var(--spring); }

/* ---------- Back to top ---------- */
.totop {
  position: fixed; right: 18px; bottom: 18px; z-index: 95; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(18, 18, 22, .75); border: 1px solid var(--line-2); color: var(--fg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(20px) scale(.6); pointer-events: none;
  transition: opacity .4s ease, transform .6s var(--spring), background-color .3s, color .3s;
}
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--fg); color: var(--bg); }
.totop:active { transform: scale(.9); }
.totop__ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); }
.totop__ring circle { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: var(--off, 1); }
.totop__arrow { width: 16px; height: 16px; transition: transform .5s var(--spring); }
.totop:hover .totop__arrow { transform: translateY(-3px); }

/* ---------- Cursor (точка + кольцо) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 250; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor__dot {
  position: fixed; left: 0; top: 0; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--fg);
  transform: translate3d(var(--dx, -100px), var(--dy, -100px), 0); transition: opacity .2s, width .3s, height .3s, margin .3s;
}
.cursor__ring {
  position: fixed; left: 0; top: 0; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35); display: grid; place-items: center;
  transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0) scale(var(--cs, 1));
  transition: width .45s var(--spring), height .45s var(--spring), margin .45s var(--spring), background-color .3s, border-color .3s, opacity .3s;
}
.cursor.is-link .cursor__ring { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .55); }
.cursor.is-label .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--fg); border-color: var(--fg); }
.cursor.is-label .cursor__dot, .cursor.is-hidden .cursor__dot, .cursor.is-hidden .cursor__ring { opacity: 0; }
.cursor.is-down { --cs: .82; }
.cursor__label {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--bg); white-space: nowrap;
  opacity: 0; transform: scale(.5); transition: opacity .25s, transform .45s var(--spring);
}
.cursor.is-label .cursor__label { opacity: 1; transform: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 160; padding: 12px 20px; border-radius: 999px;
  background: var(--fg); color: var(--bg); font-size: 14px; font-weight: 500; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .6);
  opacity: 0; visibility: hidden; transform: translate(-50%, calc(100% + 40px)) scale(.9);
  transition: transform .6s var(--spring), opacity .3s, visibility 0s .6s; pointer-events: none;
}
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: transform .6s var(--spring), opacity .3s, visibility 0s; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 170; display: grid; place-items: center; padding: 72px 92px 56px;
  background: rgba(5, 5, 6, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; transition: opacity .35s ease; touch-action: pan-y pinch-zoom;
}
.lightbox.is-open { opacity: 1; }
.lightbox__figure { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 100%; max-height: 100%; }
.lightbox__figure img {
  max-width: min(100%, 1600px); max-height: calc(100vh - 180px); max-height: calc(100dvh - 180px); width: auto; height: auto;
  border-radius: var(--r-md); border: 1px solid var(--line-2); object-fit: contain;
  transform: scale(.92) translateY(16px); transition: transform .6s var(--spring), opacity .25s;
}
.lightbox.is-open .lightbox__figure img { transform: none; }
.lightbox__figure figcaption { display: flex; gap: 12px; align-items: center; color: var(--fg-2); font-size: 14px; }
.lightbox__count { display: grid; place-items: center; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg-3); }
.lightbox__close, .lightbox__nav {
  position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg-2);
  display: grid; place-items: center; transition: background-color .3s, color .3s, transform .45s var(--spring);
}
.lightbox__close { top: 20px; right: 20px; }
.lightbox__close svg, .lightbox__nav svg { width: 14px; height: 14px; }
.lightbox__nav { top: 50%; margin-top: -25px; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--fg); color: var(--bg); transform: scale(1.08); }
.lightbox__close:hover { transform: rotate(90deg) scale(1.08); }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .about__grid, .case__body { grid-template-columns: 1fr; }
  .case__meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  :root { --nav-h: 78px; }
  .nav { top: 10px; }
  .nav__bar { height: 56px; padding-left: 14px; }
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
  .hero { margin: 8px; min-height: calc(100svh - 16px); border-radius: var(--r-lg); }
  .bento { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .case__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lightbox { padding: 64px 12px 100px; }
  .lightbox__nav { top: auto; bottom: 24px; margin: 0; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
}
@media (max-width: 600px) {
  :root { --r-xl: 28px; --r-lg: 22px; --r-md: 18px; }
  .hero { padding-inline: 18px; }
  .hero__title { font-size: clamp(30px, 9.2vw, 56px); }
  .features { grid-template-columns: 1fr; }
  .hero__cta { width: 100%; flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .rail__bar { display: none; }
  .frame__bar { grid-template-columns: auto 1fr; gap: 12px; }
  .frame__bar > span:last-child { display: none; }
  .totop { right: 12px; bottom: 12px; width: 48px; height: 48px; }
  .footer { padding: 8px; }
  .contact__actions, .contact__actions .btn { width: 100%; }
}
@media (max-width: 400px) {
  .logo__text { display: none; }
  .lang button, .lang__pill { width: 36px; }
}

/* ---------- Reduced motion (html.reduce) ----------
   Убираем только сильное движение: наклоны, параллакс и «магнит». Микроанимации остаются. */
.reduce { scroll-behavior: auto; }
.reduce .frame { transform: none; }
.reduce .grain { display: none; }
.reduce .hero__blobs i { animation-duration: 60s; }

/* ---------- Touch: эффекты наведения не залипают после нажатия ---------- */
@media (hover: none) {
  a:hover .roll > span, button:hover .roll > span { transform: none; }
  .btn--ghost:hover { color: var(--fg); border-color: var(--line-3); }
  .btn--ghost:hover::before { transform: translateY(101%) scale(.9); }
  .btn:hover .btn__icon, .btn:hover .ext, .logo:hover .logo__mark { transform: none; }
  .card:hover { --ly: 0px; border-color: var(--line); background: var(--bg-1); box-shadow: none; }
  .tile:hover, .tile:hover img, .tile--phone:hover img, .meta:hover, .chip:hover { transform: none; }
  .service:hover .service__icon, .service:hover .service__arrow, .feature:hover .feature__icon, .principle:hover .principle__num { transform: none; }
  .service:hover .service__arrow { background: none; color: var(--fg-2); border-color: var(--line-2); }
  .principle:hover .principle__num { background: var(--bg-3); color: var(--fg-2); }
  .icon-btn:hover:not([aria-disabled="true"]), .lightbox__close:hover, .lightbox__nav:hover { background: var(--bg-2); color: var(--fg); border-color: var(--line-2); transform: none; }
  .frame__toggle:hover { opacity: .8; background: rgba(9, 9, 11, .62); color: var(--fg); transform: none; }
  .totop:hover { background: rgba(18, 18, 22, .75); color: var(--fg); }
  .marquee:hover .marquee__track { animation-play-state: running; }
  [data-spot]:hover::before, [data-spot]:hover::after { opacity: 0; }
}
