/* xaos v2 · стили сайта. Значения только из tokens.css. */

/* База */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: clip;
}
html.is-locked {
  overflow: hidden;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-body)/1.5 var(--font);
  font-stretch: var(--w-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
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,
p,
ul,
ol,
dl,
dd,
figure,
fieldset {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
fieldset {
  border: 0;
  min-width: 0;
}
::selection {
  background: var(--text);
  color: var(--bg);
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
[hidden] {
  display: none !important;
}
.skip {
  position: fixed;
  left: var(--space-16);
  top: var(--space-16);
  z-index: 200;
  padding: var(--space-12) var(--space-16);
  border-radius: var(--r-pill);
  background: var(--btn);
  color: var(--btn-ink);
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--margin);
}
[data-theme] {
  background: var(--bg);
  color: var(--text);
}

.ic {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

/* Типографика */
.h1,
.h2,
.h3,
.hero-title {
  font-stretch: var(--w-wide);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  text-wrap: balance;
}
.h1 {
  font-size: var(--fs-h1);
  line-height: 0.98;
}
.h2 {
  font-size: var(--fs-h2);
}
.h3 {
  font-size: var(--fs-h3);
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-weight: 580;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.42;
  color: var(--text-2);
  max-width: 44ch;
  text-wrap: pretty;
}
.label {
  font-size: var(--fs-small);
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: var(--space-12);
}
.label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transition: background var(--t-slow) var(--ease-soft);
}
.line {
  display: block;
  overflow: clip;
  overflow-clip-margin: 0.12em;
}
.line > span {
  display: block;
}

/* слова для появления по скроллу */
.w {
  display: inline-block;
  overflow: clip;
  overflow-clip-margin: 0.14em;
  vertical-align: top;
}
.w > i {
  display: inline-block;
  font-style: normal;
  will-change: transform;
}

/* Кнопки, чипы */
.btn {
  --h: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  height: var(--h);
  padding: 0 calc(var(--h) * 0.5);
  border-radius: var(--r-pill);
  font-size: 1rem;
  font-weight: 520;
  font-stretch: 112%;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition:
    background var(--t-base) var(--ease-soft),
    color var(--t-base) var(--ease-soft),
    border-color var(--t-base) var(--ease-soft),
    transform var(--t-base) var(--ease-out);
  position: relative;
  isolation: isolate;
  will-change: transform;
}
.btn .ic {
  transition: transform var(--t-base) var(--ease-out);
}
.btn:hover .ic {
  transform: translate(2px, -2px);
}
.btn:hover .ic:first-child {
  transform: translate(-1px, -2px) rotate(-8deg);
}
.btn:active {
  transform: scale(0.97);
}
.btn-sm {
  --h: 40px;
  font-size: var(--fs-small);
}
.btn-primary {
  background: var(--btn);
  color: var(--btn-ink);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent);
  z-index: -1;
  transform: scale(0.6);
  opacity: 0;
  transition:
    transform var(--t-slow) var(--ease-out),
    opacity var(--t-base) var(--ease-soft);
}
.btn-primary:hover::after {
  transform: scale(1.12);
  opacity: 0;
}
.btn-ghost {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.btn-ghost:hover {
  border-color: var(--line-2);
}
.btn-line {
  border: 1px solid var(--line-2);
  color: var(--text);
}
.btn-line:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.chip {
  height: 38px;
  padding: 0 var(--space-16);
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--text-2);
  white-space: nowrap;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition:
    background var(--t-base) var(--ease-soft),
    color var(--t-base) var(--ease-soft),
    border-color var(--t-base) var(--ease-soft);
}
.chip:hover {
  color: var(--text);
  border-color: var(--line-2);
}
.chip.is-on {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}
.tags li {
  height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--text-2);
}

/* Шапка */
.nav {
  position: fixed;
  z-index: var(--z-nav);
  top: var(--space-12);
  left: 0;
  right: 0;
  margin-inline: auto;
  width: min(calc(100% - 2 * var(--space-12)), 1180px);
  height: var(--nav-h);
  padding: 0 var(--space-8) 0 var(--space-16);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-16);
  background: rgb(14 14 16 / 0.86);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--r-pill);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  transition:
    transform var(--t-slow) var(--ease-out),
    opacity var(--t-base) var(--ease-soft);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  height: 40px;
  padding-right: var(--space-8);
}
.brand-mark {
  height: 26px;
  width: auto;
  transition: transform var(--t-slow) var(--ease-out);
}
.brand:hover .brand-mark {
  --s: 1;
}
/* Знак «Сдвиг»: половины разрезанной полосы стоят со сдвигом вдоль линии разреза.
   --s: 0 — знак как в логотипе, 1 — полоса снова целая. */
.mk-b,
.mk-c {
  transition: transform var(--t-slow) var(--ease-cut);
}
.mk-b {
  transform: translate(calc(var(--s, 0) * 9.15px), calc(var(--s, 0) * 9.15px));
}
.mk-c {
  transform: translate(calc(var(--s, 0) * -9.15px), calc(var(--s, 0) * -9.15px));
}
.brand-word {
  height: 14.5px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  position: relative;
}
.nav-links a {
  position: relative;
  z-index: 1;
  height: 40px;
  padding: 0 var(--space-16);
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  color: var(--text-2);
  transition: color var(--t-base) var(--ease-soft);
}
.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
}
.nav-links a span {
  display: inline-block;
}
.nav-pill {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
  height: 40px;
  width: 40px;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.09);
  opacity: 0;
  transition:
    transform var(--t-slow) var(--ease-out),
    width var(--t-slow) var(--ease-out),
    opacity var(--t-base) var(--ease-soft);
  pointer-events: none;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  justify-self: end;
}
.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 var(--space-12);
  font-size: var(--fs-micro);
  letter-spacing: 0.04em;
  color: var(--text-3);
  border-radius: var(--r-pill);
}
.lang b {
  color: var(--text);
  font-weight: 500;
}
.lang i {
  width: 1px;
  height: 10px;
  background: var(--line-2);
}
.lang:hover span {
  color: var(--text);
}
.menu-btn {
  display: none;
  height: 40px;
  padding: 0 var(--space-16);
  align-items: center;
  gap: var(--space-8);
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  font-size: var(--fs-small);
}
.menu-btn i {
  width: 14px;
  height: 8px;
  border-block: 1.5px solid currentColor;
  transition: height var(--t-base) var(--ease-out);
}
.menu-btn[aria-expanded='true'] i {
  height: 0;
  border-bottom: 0;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav) - 1);
  background: var(--ink-1000);
  padding: calc(var(--nav-h) + 48px) var(--margin) var(--space-32);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.menu nav {
  display: grid;
  gap: var(--space-4);
}
.menu nav a {
  font-size: clamp(2.25rem, 11vw, 4rem);
  font-stretch: var(--w-wide);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  overflow: clip;
}
.menu nav a span {
  display: block;
}
.menu-foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8) var(--space-24);
  align-items: center;
  color: var(--text-2);
  font-size: var(--fs-small);
}
.menu-foot .lang {
  margin-left: auto;
  padding: 0;
}

/* Сцена: планета работ */
.stage {
  position: relative;
  height: 560vh;
  background: var(--ink-1000);
}
.stage-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: clip;
}
.gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  outline: none;
}
.stage.is-gallery .gl {
  cursor: grab;
}
.stage.is-dragging .gl {
  cursor: grabbing;
}
.stage-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 70% at 50% 0%, rgb(5 5 6 / 0.82) 0%, rgb(5 5 6 / 0.5) 38%, transparent 70%);
  opacity: var(--hero-o, 1);
}
.stage-poster {
  display: none;
}

.hero {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + clamp(40px, 9vh, 104px)) var(--margin) 0;
  pointer-events: none;
}
.hero > * {
  pointer-events: auto;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(61 255 140 / 0.5);
  }
  70%,
  100% {
    box-shadow: 0 0 0 9px rgb(61 255 140 / 0);
  }
}
.hero-title {
  font-size: var(--fs-display);
  line-height: 0.97;
  font-weight: 620;
  letter-spacing: -0.04em;
  max-width: 14.5em;
}
.hero-sub {
  margin-top: clamp(18px, 3vh, 32px);
  font-size: var(--fs-lead);
  line-height: 1.42;
  color: var(--text-2);
  max-width: 50ch;
  text-wrap: pretty;
}
.hero-cta {
  margin-top: clamp(22px, 3.6vh, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  justify-content: center;
}
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 3.4vh, 32px);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-micro);
  color: var(--text-2);
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.hero-scroll i {
  width: 1.5px;
  height: 14px;
  background: currentColor;
  border-radius: 2px;
  transform-origin: top;
  animation: tick 1.8s var(--ease-cut) infinite;
}
@keyframes tick {
  0% {
    transform: scaleY(0);
  }
  45% {
    transform: scaleY(1);
    transform-origin: top;
  }
  55% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* интерфейс галереи поверх сферы */
.gui {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--t-slow) var(--ease-soft),
    visibility 0s linear var(--t-slow);
}
.stage.is-gallery .gui {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.gui > * {
  pointer-events: auto;
}
.gui::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 24vh;
  pointer-events: none;
  background: linear-gradient(to bottom, rgb(5 5 6 / 0.9) 0%, rgb(5 5 6 / 0.62) 45%, rgb(5 5 6 / 0) 100%);
}
.gui::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 13vh;
  pointer-events: none;
  background: linear-gradient(to top, rgb(5 5 6 / 0.7), rgb(5 5 6 / 0));
}
.gui-head {
  position: absolute;
  left: var(--margin);
  right: var(--margin);
  top: calc(var(--nav-h) + 36px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-24);
  pointer-events: none;
}
.gui-head > * {
  pointer-events: auto;
}
.gui-title {
  font-size: clamp(1.75rem, 1.2rem + 1.7vw, 3rem);
  font-stretch: var(--w-wide);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  display: flex;
  gap: 8px;
  text-shadow: 0 2px 24px rgb(0 0 0 / 0.6);
}
.gui-title sup {
  font-size: 0.32em;
  font-stretch: 100%;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-2);
  margin-top: 0.35em;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.gui-hint {
  position: absolute;
  left: var(--margin);
  bottom: clamp(16px, 3.4vh, 32px);
  display: flex;
  align-items: center;
  gap: var(--space-12);
  max-width: 34ch;
  font-size: var(--fs-small);
  line-height: 1.3;
  color: var(--text-2);
  text-shadow: 0 1px 16px rgb(0 0 0 / 0.8);
}
.gui-hint-ic {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: nudge 3.2s var(--ease-cut) infinite;
}
@keyframes nudge {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(6px, 0);
  }
  50% {
    transform: translate(0, 0);
  }
  75% {
    transform: translate(0, -6px);
  }
}
.for-touch {
  display: none;
}
.gui-skip {
  position: absolute;
  right: var(--margin);
  bottom: clamp(16px, 3.4vh, 32px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 var(--space-16);
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  color: var(--text-2);
  background: var(--glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.gui-skip:hover {
  color: var(--text);
  border-color: var(--line-2);
}

/* Секции: общее */
.sec-head {
  display: grid;
  gap: var(--space-16);
  margin-bottom: clamp(32px, 5vw, 72px);
}
.sec-head-split {
  grid-template-columns: 1fr minmax(0, 40ch);
  align-items: end;
  column-gap: var(--space-48);
}
.sec-note {
  color: var(--text-3);
  font-size: var(--fs-small);
}

/* Все проекты */
.index {
  position: relative;
  padding: var(--section) 0 clamp(64px, 8vw, 128px);
  background: var(--bg);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  margin-top: calc(-1 * var(--r-xl));
  z-index: 4;
}
.rows {
  border-bottom: 1px solid var(--line);
}
.row {
  --pad: clamp(18px, 2vw, 30px);
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1.4fr) minmax(0, 1fr) 5rem 3rem;
  align-items: center;
  column-gap: var(--gutter);
  padding: var(--pad) 0;
  border-top: 1px solid var(--line);
  transition:
    opacity var(--t-base) var(--ease-soft),
    padding var(--t-slow) var(--ease-out);
}
.row-n {
  font-size: var(--fs-small);
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.row-thumb {
  display: none;
}
.row-name {
  font-size: var(--fs-h3);
  font-stretch: var(--w-wide);
  font-weight: 580;
  letter-spacing: -0.03em;
  line-height: 1.05;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  transition: transform var(--t-slow) var(--ease-out);
}
.row-name::before {
  content: '';
  width: 0;
  height: 0.5em;
  border-radius: var(--r-pill);
  background: var(--c);
  transition: width var(--t-slow) var(--ease-out);
  flex: none;
}
.row-tags {
  color: var(--text-2);
  font-size: var(--fs-small);
}
.row-year {
  color: var(--text-3);
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.row-go {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  justify-self: end;
  transition:
    background var(--t-base) var(--ease-soft),
    color var(--t-base) var(--ease-soft),
    transform var(--t-slow) var(--ease-out),
    border-color var(--t-base);
}
@media (hover: hover) {
  .rows:hover .row {
    opacity: 0.38;
  }
  .rows .row:hover {
    opacity: 1;
  }
  .row:hover .row-name::before {
    width: 1.1em;
  }
  .row:hover .row-go {
    background: var(--c);
    color: var(--ink-950);
    border-color: var(--c);
    transform: rotate(45deg);
  }
}
.peek {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  width: clamp(240px, 24vw, 400px);
  aspect-ratio: 4 / 3;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.peek-in {
  position: absolute;
  inset: 0;
  border-radius: var(--r-md);
  overflow: clip;
  transform: scale(0.6);
  transition: transform var(--t-slow) var(--ease-out);
}
.peek.is-on .peek-in {
  transform: scale(1);
}
.peek img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease-soft);
}
.peek img.is-on {
  opacity: 1;
}

/* Студия */
.studio {
  padding: clamp(48px, 7vw, 120px) 0 var(--section);
  overflow: clip;
}
.statement {
  margin-top: 0;
  font-size: var(--fs-statement);
  font-stretch: 128%;
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 26em;
  text-wrap: pretty;
}
.statement .w > i {
  opacity: 0.16;
  transition: opacity var(--t-slow) var(--ease-soft);
}
.statement .w.is-on > i {
  opacity: 1;
}
.strip {
  margin-top: var(--space-16);
}
.wrap + .strip {
  margin-top: clamp(40px, 6vw, 96px);
}
.strip:first-of-type {
  margin-top: clamp(48px, 7vw, 112px);
}
.strip-in {
  display: flex;
  gap: var(--space-16);
  width: max-content;
  will-change: transform;
  padding-inline: var(--margin);
}
.shot,
.fact {
  height: clamp(150px, 20vw, 320px);
  border-radius: var(--r-lg);
  overflow: clip;
  flex: none;
}
.shot {
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fact {
  aspect-ratio: 7 / 4;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: clamp(14px, 1.8vw, 28px);
  display: flex;
  align-items: flex-end;
  gap: clamp(12px, 1.4vw, 24px);
}
.fact b {
  font-size: clamp(5.5rem, 14.5vw, 15rem);
  font-stretch: var(--w-poster);
  font-weight: 700;
  line-height: 0.74;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.fact span {
  font-size: var(--fs-small);
  line-height: 1.25;
  color: var(--text-2);
  padding-bottom: 0.2em;
  max-width: 12em;
}
.fact em {
  display: block;
  font-style: normal;
  font-size: var(--fs-h3);
  font-stretch: var(--w-wide);
  font-weight: 580;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 0.3em;
}

/* Услуги */
.services {
  position: relative;
  z-index: 5;
  padding: var(--section) 0 clamp(48px, 6vw, 96px);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.stack {
  display: grid;
  gap: var(--space-24);
}
.card {
  position: sticky;
  top: calc(var(--nav-h) + 28px + var(--i) * 14px);
  color-scheme: dark;
  --text: var(--ink-50);
  --text-2: var(--ink-300);
  --text-3: var(--ink-400);
  --line: rgb(255 255 255 / 0.12);
  --line-2: rgb(255 255 255 / 0.24);
  --surface-2: var(--ink-800);
  --btn: var(--white);
  --btn-ink: var(--ink-950);
  --focus: var(--white);
  --glass: rgb(17 17 19 / 0.72);
  color: var(--text);
  transform-origin: 50% 0;
  will-change: transform;
}
.card-in::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 6;
  border-radius: inherit;
  background: var(--ink-1000);
  opacity: var(--dim, 0);
  pointer-events: none;
}
.card-in {
  position: relative;
  background: var(--card-bg, var(--ink-950));
  border-radius: var(--r-xl);
  padding: clamp(20px, 2.6vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(20px, 3vw, 56px);
  min-height: min(64vh, 620px);
}
.card:nth-child(2) {
  --card-bg: var(--ink-900);
}
.card:nth-child(3) {
  --card-bg: var(--ink-850);
}
.card:nth-child(4) {
  --card-bg: var(--ink-800);
}
.card:nth-child(5) {
  --card-bg: var(--ink-700);
}
.card-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  padding: clamp(0px, 0.6vw, 8px) 0;
}
.card-text .h3 {
  font-size: clamp(1.75rem, 1rem + 2.4vw, 3.5rem);
  letter-spacing: -0.035em;
}
.card-text p {
  color: var(--text-2);
  font-size: var(--fs-lead);
  line-height: 1.42;
  max-width: 36ch;
  text-wrap: pretty;
}
.card-text .tags {
  margin-top: auto;
  padding-top: var(--space-24);
}
.card-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: clip;
  background: var(--ink-1000);
  min-height: clamp(220px, 30vw, 480px);
  isolation: isolate;
}
.card-media figcaption {
  position: absolute;
  left: var(--space-12);
  bottom: var(--space-12);
  z-index: 3;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  background: rgb(5 5 6 / 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: var(--fs-micro);
  color: var(--ink-200);
}
.svc-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.browser {
  position: absolute;
  inset: clamp(14px, 2vw, 28px) clamp(14px, 2vw, 28px) 0;
  border-radius: var(--r-md) var(--r-md) 0 0;
  overflow: clip;
  background: var(--ink-900);
  border: 1px solid var(--line);
  border-bottom: 0;
  display: flex;
  flex-direction: column;
}
.browser-bar {
  height: 38px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}
.browser-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-600);
}
.browser-bar span {
  margin-left: var(--space-12);
  padding: 4px 14px;
  border-radius: var(--r-pill);
  background: var(--ink-800);
  font-size: var(--fs-micro);
  color: var(--ink-300);
}
.browser-view {
  position: relative;
  flex: 1;
  overflow: clip;
}
.browser-view img {
  width: 100%;
  height: auto;
  will-change: transform;
}

/* шторка «макет / браузер» */
.cmp {
  position: absolute;
  inset: 0;
  --x: 50%;
  touch-action: pan-y;
}
.cmp-pane {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 48px);
}
.cmp-design {
  background-color: var(--ink-50);
  background-image:
    linear-gradient(rgb(10 10 11 / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(10 10 11 / 0.06) 1px, transparent 1px);
  background-size: 16px 16px;
  clip-path: inset(0 calc(100% - var(--x)) 0 0);
  z-index: 1;
}
.cmp-live {
  background: radial-gradient(90% 90% at 80% 10%, var(--ink-700), var(--ink-950));
}
.demo {
  position: relative;
  width: min(100%, 400px);
  padding: 32px;
  border-radius: var(--r-md);
  display: grid;
  gap: 16px;
  justify-items: start;
}
.cmp-live .demo {
  background: var(--ink-900);
  border: 1px solid rgb(255 255 255 / 0.12);
  color: var(--ink-50);
}
.cmp-design .demo {
  background: var(--white);
  color: var(--ink-950);
  outline: 1px solid #2f6bff;
}
.demo-tag {
  font-size: var(--fs-micro);
  padding: 5px 11px;
  border-radius: var(--r-pill);
  border: 1px solid currentColor;
  opacity: 0.8;
}
.demo-h {
  font-size: clamp(1.25rem, 0.8rem + 1.3vw, 1.875rem);
  font-stretch: var(--w-wide);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.demo-p {
  font-size: var(--fs-small);
  line-height: 1.4;
  opacity: 0.72;
}
.demo-btn {
  height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: 520;
  font-stretch: 112%;
}
.cmp-live .demo-btn {
  background: var(--white);
  color: var(--ink-950);
  transition:
    transform var(--t-base) var(--ease-out),
    background var(--t-base);
}
.cmp-live .demo-btn:hover {
  transform: scale(1.05);
  background: var(--p-arabotaet);
}
.cmp-design .demo-btn {
  background: var(--ink-950);
  color: var(--white);
  outline: 1px solid #2f6bff;
  outline-offset: 2px;
}
.spec {
  position: absolute;
  font: 500 10px/1 var(--font);
  font-style: normal;
  color: #2f6bff;
  white-space: nowrap;
}
.spec::before {
  content: '';
  position: absolute;
  background: #2f6bff;
}
.s-pad-t {
  left: 50%;
  top: 10px;
}
.s-pad-t::before {
  left: -10px;
  top: -10px;
  width: 1px;
  height: 32px;
}
.s-pad-l {
  left: 8px;
  top: 50%;
}
.s-pad-l::before {
  left: -8px;
  top: 14px;
  width: 32px;
  height: 1px;
}
.s-gap {
  right: 34px;
  top: 66px;
}
.s-gap::before {
  right: -10px;
  top: -3px;
  width: 1px;
  height: 16px;
}
.s-font {
  left: 32px;
  top: -18px;
}
.s-rad {
  right: -6px;
  top: -18px;
}
.s-btn {
  left: 176px;
  bottom: 50px;
}
.cmp-tag {
  position: absolute;
  top: var(--space-12);
  z-index: 3;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: var(--fs-micro);
  pointer-events: none;
}
.cmp-tag-l {
  left: var(--space-12);
  background: #2f6bff;
  color: var(--white);
}
.cmp-tag-r {
  right: var(--space-12);
  background: rgb(5 5 6 / 0.7);
  color: var(--ink-100);
  border: 1px solid rgb(255 255 255 / 0.14);
}
.cmp-range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.cmp-handle {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: var(--x);
  width: 2px;
  margin-left: -1px;
  background: var(--white);
  mix-blend-mode: difference;
  pointer-events: none;
}
.cmp-handle i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  margin: -22px;
  border-radius: 50%;
  background: var(--white);
  display: block;
}
.cmp-handle i::before,
.cmp-handle i::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border: solid var(--ink-950);
  border-width: 1.75px 1.75px 0 0;
}
.cmp-handle i::before {
  left: 11px;
  transform: translateY(-50%) rotate(-135deg);
}
.cmp-handle i::after {
  right: 11px;
  transform: translateY(-50%) rotate(45deg);
}
.cmp-range:focus-visible ~ .cmp-handle i {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

/* построение знака */
.logo-build {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink-50);
}
.logo-build svg {
  width: min(58%, 340px);
  height: auto;
  overflow: visible;
}
.lb-grid path {
  stroke: rgb(255 255 255 / 0.14);
  stroke-width: 0.6;
  stroke-dasharray: 2 3;
}
.lb-line {
  stroke: rgb(255 255 255 / 0.75);
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s var(--ease-cut);
}
.lb-ghost {
  stroke: rgb(255 255 255 / 0.32);
}
.lb-cut {
  stroke: var(--white);
  stroke-width: 1.4;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1s var(--ease-cut) 1.1s;
}
.lb-fill {
  opacity: 0;
  transition: opacity 0.7s var(--ease-soft) 1.9s;
}
.lb-dots circle {
  fill: var(--white);
  opacity: 0;
  transition: opacity 0.4s var(--ease-soft) 0.9s;
}
.is-in .lb-line,
.is-in .lb-ghost {
  stroke: rgb(255 255 255 / 0.32);
}
.lb-cut {
  stroke-dashoffset: 0;
}
.is-in .lb-fill {
  opacity: 1;
}
.is-in .lb-dots circle {
  opacity: 1;
}
.lb-meta {
  position: absolute;
  right: var(--space-16);
  top: var(--space-16);
  display: grid;
  gap: 6px;
  justify-items: end;
  font-size: var(--fs-micro);
  color: var(--ink-400);
  font-variant-numeric: tabular-nums;
}

/* Процесс */
.process {
  position: relative;
  z-index: 6;
  padding: var(--section) 0;
  background: var(--bg);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  margin-top: calc(-1 * var(--r-xl));
}
.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: clamp(32px, 6vw, 112px);
  align-items: start;
}
.process-side {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
  display: grid;
  gap: var(--space-16);
}
.process-side .lead {
  margin-bottom: var(--space-24);
}
.steps {
  display: grid;
  padding-top: 8vh;
}
.step {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-16);
  opacity: 0.28;
  transition: opacity var(--t-slow) var(--ease-soft);
}
.step.is-on {
  opacity: 1;
}
.step-n {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
  transition:
    background var(--t-base),
    color var(--t-base),
    border-color var(--t-base);
}
.step.is-on .step-n {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.step p {
  color: var(--text-2);
  font-size: var(--fs-lead);
  line-height: 1.42;
  max-width: 38ch;
  text-wrap: pretty;
}
.step .step-out {
  font-size: var(--fs-body);
  color: var(--text);
  padding-top: var(--space-16);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
}
.step-out span {
  color: var(--text-3);
  font-size: var(--fs-small);
}

.mock {
  --mk: var(--ink-600);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: clip;
  font-size: clamp(9px, 0.78vw, 13px);
}
.mock-bar {
  height: 3.4em;
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0 1.2em;
  border-bottom: 1px solid var(--line);
}
.mock-bar > i {
  width: 0.75em;
  height: 0.75em;
  border-radius: 50%;
  background: var(--ink-600);
}
.mock-url {
  margin-left: 1em;
  height: 2em;
  padding: 0 1em 0 0.8em;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  color: var(--text-2);
  overflow: clip;
  position: relative;
  min-width: 13em;
}
.mock-url .ic {
  width: 1em;
  height: 1em;
  opacity: 0.7;
}
.mock-url b {
  position: absolute;
  left: 2.4em;
  font-weight: 400;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(100%);
  transition:
    transform var(--t-slow) var(--ease-out),
    opacity var(--t-base);
}
.mock-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.35em 0.9em;
  border-radius: var(--r-pill);
  background: rgb(61 255 140 / 0.12);
  color: var(--ok);
  opacity: 0;
  transform: translateY(40%);
  transition:
    opacity var(--t-base),
    transform var(--t-slow) var(--ease-out);
}
.mock-live i {
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: currentColor;
}
.mock-body {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  grid-template-rows: auto 1fr auto auto 1fr;
  column-gap: 4%;
  row-gap: 3.2%;
  padding: 4% 5% 5%;
}
.m {
  position: relative;
  border: 1px dashed var(--mk);
  border-radius: 0.5em;
  transition:
    border-color var(--t-slow) var(--ease-soft),
    background var(--t-slow) var(--ease-soft),
    border-radius var(--t-slow) var(--ease-out),
    box-shadow var(--t-base);
}
.m::before {
  content: attr(data-l);
  position: absolute;
  left: 0.7em;
  top: 0.5em;
  font-size: 0.92em;
  color: var(--text-3);
  transition: opacity var(--t-base);
}
.m > span,
.m > img,
.m > svg,
.m-nav > i,
.m-nav > b {
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease-soft) 0.1s;
}
.m-nav {
  grid-column: 1 / -1;
  height: 3.2em;
  display: flex;
  align-items: center;
  gap: 1.6em;
  padding: 0 0.2em;
}
.m-nav svg {
  height: 1.7em;
  width: auto;
  margin-right: auto;
}
.m-nav i {
  width: 3.2em;
  height: 0.5em;
  border-radius: 1em;
  background: var(--ink-500);
}
.m-nav b {
  width: 6em;
  height: 2.2em;
  border-radius: 2em;
  border: 1px solid var(--ink-500);
}
.m-title {
  grid-column: 1;
  grid-row: 3;
  min-height: 4.4em;
  display: flex;
  align-items: center;
}
.m-title span {
  font-size: 3em;
  font-stretch: var(--w-wide);
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 0.98;
}
.m-text {
  grid-column: 1;
  grid-row: 4;
  min-height: 3.2em;
  display: flex;
  align-items: center;
}
.m-text span {
  color: var(--text-2);
  font-size: 1.15em;
  line-height: 1.35;
  max-width: 22em;
}
.m-btn {
  grid-column: 1;
  grid-row: 5;
  align-self: start;
  justify-self: start;
  height: 3.4em;
  min-width: 11.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.6em;
}
.m-btn span {
  font-size: 1.05em;
  font-weight: 520;
  font-stretch: 112%;
  color: var(--ink-950);
  white-space: nowrap;
}
.m-img {
  grid-column: 2;
  grid-row: 2 / 6;
  overflow: clip;
}
.m-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.m-size {
  position: absolute;
  left: 5%;
  bottom: 3.5%;
  padding: 0.25em 0.6em;
  border-radius: 0.4em;
  background: #2f6bff;
  color: #fff;
  font-size: 0.9em;
  opacity: 0;
  transition: opacity var(--t-base);
}
.m-cur {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 0.1em;
  opacity: 0;
  transition:
    opacity var(--t-base),
    transform 1.2s var(--ease-out);
  z-index: 3;
  pointer-events: none;
}
.m-cur .ic {
  width: 1.7em;
  height: 1.7em;
}
.m-cur em {
  font-style: normal;
  font-size: 0.95em;
  padding: 0.3em 0.7em;
  border-radius: 0.9em;
  margin-top: 1.2em;
  white-space: nowrap;
}
.m-cur-a {
  left: 34%;
  top: 38%;
  color: var(--p-dubly);
  transform: translate(8em, 5em);
}
.m-cur-a em {
  background: var(--p-dubly);
  color: var(--ink-950);
}
.m-cur-b {
  left: 22%;
  top: 79%;
  color: var(--p-arabotaet);
  transform: translate(10em, 4em);
}
.m-cur-b em {
  background: var(--p-arabotaet);
  color: var(--ink-950);
}
.m-code {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 49%;
  margin: 0;
  padding: 1.6em 1.8em;
  background: var(--ink-1000);
  border-left: 1px solid var(--line);
  font:
    400 1.02em/1.55 ui-monospace,
    'SF Mono',
    Menlo,
    Consolas,
    monospace;
  color: var(--ink-300);
  overflow: clip;
  transform: translateX(101%);
  transition: transform var(--t-scene) var(--ease-cut);
  z-index: 2;
}
.m-code .k {
  color: var(--p-dubly);
}
.m-code .p {
  color: var(--ink-200);
}
.m-code .v {
  color: var(--p-arabotaet);
}

.mock[data-step='1'] .mock-url b:nth-of-type(1),
.mock[data-step='2'] .mock-url b:nth-of-type(2),
.mock[data-step='3'] .mock-url b:nth-of-type(3),
.mock[data-step='4'] .mock-url b:nth-of-type(4) {
  opacity: 1;
  transform: none;
}
.mock:not([data-step='1']) .m {
  border-color: transparent;
}
.mock:not([data-step='1']) .m::before {
  opacity: 0;
}
.mock:not([data-step='1']) .m > span,
.mock:not([data-step='1']) .m > img,
.mock:not([data-step='1']) .m > svg,
.mock:not([data-step='1']) .m-nav > i,
.mock:not([data-step='1']) .m-nav > b {
  opacity: 1;
}
.mock:not([data-step='1']) .m-btn {
  background: var(--white);
  border-radius: 2em;
}
.mock:not([data-step='1']) .m-img {
  border-radius: 1.4em;
}
.mock[data-step='2'] .m-cur-a {
  opacity: 1;
  transform: none;
}
.mock[data-step='3'] .m-code {
  transform: none;
}
.mock[data-step='3'] .m-btn {
  box-shadow:
    0 0 0 1px var(--ink-900),
    0 0 0 2.5px #2f6bff;
}
.mock[data-step='3'] .m-size {
  opacity: 1;
}
.mock[data-step='3'] .m-cur-b {
  opacity: 1;
  transform: none;
}
.mock[data-step='4'] .mock-live {
  opacity: 1;
  transform: none;
}
.mock[data-step='4'] .mock-live i {
  animation: pulse 2s var(--ease-soft) infinite;
}
.mock[data-step='4'] .m-btn {
  background: var(--p-arabotaet);
  transform: scale(1.04);
  transition:
    transform var(--t-slow) var(--ease-out) 0.5s,
    background var(--t-slow) 0.5s;
}
.mock[data-step='4'] .m-cur-b {
  opacity: 1;
  transform: translate(0.6em, -0.6em);
}
.mock[data-step='4'] .m-cur-b em {
  opacity: 0;
}

/* Клиенты */
.clients {
  padding: 0 0 var(--section);
  overflow: clip;
}
.clients-h {
  color: var(--text-2);
}
.marq {
  margin-top: var(--space-32);
  --wd: 38;
}
.marq-in {
  display: flex;
  align-items: center;
  gap: 0.22em;
  width: max-content;
  will-change: transform;
  font-size: var(--fs-poster);
  font-weight: 700;
  line-height: 0.86;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  font-variation-settings: 'wdth' var(--wd);
  white-space: nowrap;
}
.marq-in svg {
  height: 0.62em;
  width: auto;
  flex: none;
  color: var(--text-3);
}
.marq-in span {
  padding-top: 0.06em;
}

/* Контакты */
.contact {
  position: relative;
  z-index: 7;
  padding: var(--section) 0;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}
.contact-main {
  display: grid;
  gap: var(--space-24);
}
.contact-main .lead {
  max-width: 38ch;
}
.direct {
  margin-top: var(--space-24);
  display: grid;
  border-bottom: 1px solid var(--line);
}
.direct > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  align-items: center;
  padding: var(--space-16) 0;
  border-top: 1px solid var(--line);
}
.direct dt {
  color: var(--text-3);
  font-size: var(--fs-small);
}
.direct dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  font-size: var(--fs-h3);
  font-stretch: 125%;
  font-weight: 560;
  letter-spacing: -0.025em;
}
.direct dd a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size var(--t-slow) var(--ease-out);
  overflow-wrap: anywhere;
}
.direct dd a:hover {
  background-size: 100% 1.5px;
}
.copy {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition:
    background var(--t-base),
    color var(--t-base),
    border-color var(--t-base);
}
.copy:hover {
  border-color: var(--line-2);
}
.copy .ic {
  grid-area: 1 / 1;
  transition:
    opacity var(--t-base),
    transform var(--t-base) var(--ease-out);
}
.copy .ic:last-child {
  opacity: 0;
  transform: scale(0.5);
}
.copy.is-done {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.copy.is-done .ic:first-child {
  opacity: 0;
  transform: scale(0.5);
}
.copy.is-done .ic:last-child {
  opacity: 1;
  transform: none;
}

.brief {
  color-scheme: dark;
  --text: var(--ink-50);
  --text-2: var(--ink-300);
  --text-3: var(--ink-400);
  --line: rgb(255 255 255 / 0.12);
  --line-2: rgb(255 255 255 / 0.26);
  --btn: var(--white);
  --btn-ink: var(--ink-950);
  --focus: var(--white);
  --bg: var(--ink-950);
  background: var(--ink-950);
  color: var(--text);
  border-radius: var(--r-xl);
  padding: clamp(20px, 2.6vw, 44px);
  display: grid;
  gap: var(--space-32);
}
.brief legend {
  font-size: var(--fs-small);
  color: var(--text-3);
  margin-bottom: var(--space-12);
  padding: 0;
}
.opts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}
.opt {
  position: relative;
  cursor: pointer;
}
.opt input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.opt span {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 var(--space-16);
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--text-2);
  transition:
    background var(--t-base),
    color var(--t-base),
    border-color var(--t-base),
    transform var(--t-base) var(--ease-out);
}
.opt:hover span {
  border-color: var(--line-2);
  color: var(--text);
}
.opt input:checked + span {
  background: var(--white);
  color: var(--ink-950);
  border-color: var(--white);
}
.opt input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.opt:active span {
  transform: scale(0.96);
}
.brief-msg {
  padding: var(--space-16) var(--space-24);
  border-radius: var(--r-md);
  background: var(--ink-900);
  border: 1px dashed var(--line-2);
  display: grid;
  gap: 6px;
  min-height: 6.2em;
  align-content: start;
}
.brief-msg span {
  font-size: var(--fs-micro);
  color: var(--text-3);
}
.brief-msg p {
  font-size: var(--fs-lead);
  line-height: 1.35;
}
.brief-msg p::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  background: currentColor;
  vertical-align: -0.12em;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.brief-go {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
}
.brief-go .btn {
  flex: 1 1 220px;
}

/* Подвал */
.foot {
  position: relative;
  z-index: 8;
  background: var(--ink-1000);
  padding: clamp(40px, 5vw, 72px) 0 var(--space-24);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  margin-top: calc(-1 * var(--r-xl));
  overflow: clip;
}
.foot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
  flex-wrap: wrap;
  font-size: var(--fs-small);
  color: var(--text-2);
}
.foot-top nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8) var(--space-24);
}
.foot-top a {
  transition: color var(--t-base);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.foot-top a:hover {
  color: var(--text);
}
.foot-logo {
  padding: clamp(28px, 5vw, 80px) var(--margin) clamp(12px, 2vw, 32px);
  max-width: var(--maxw);
  margin-inline: auto;
  --k: 0;
  --wy: 0;
}
.foot-logo svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  color: var(--text);
}
.foot-logo .fl-b {
  transform: translate(calc(var(--k) * 0.2px), calc(var(--k) * 0.2px));
}
.foot-logo .fl-c {
  transform: translate(calc(var(--k) * -0.2px), calc(var(--k) * -0.2px));
}
.foot-logo .fl-w {
  opacity: calc(1 - var(--wy));
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--space-16);
  flex-wrap: wrap;
  font-size: var(--fs-micro);
  color: var(--text-3);
  padding-top: var(--space-16);
  border-top: 1px solid var(--line);
  margin-top: var(--space-24);
}

/* Страница кейса */
.sheet {
  outline: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-sheet);
  --accent: var(--white);
  --accent-ink: var(--ink-950);
}
.sheet-wipe {
  position: absolute;
  inset: 0;
  background: var(--ink-950);
}
.sheet-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.sheet-close {
  position: fixed;
  z-index: 3;
  right: var(--space-12);
  top: var(--space-12);
  height: var(--nav-h);
  padding: 0 var(--space-16) 0 var(--space-24);
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--ink-950);
  font-size: var(--fs-small);
  font-weight: 520;
  font-stretch: 112%;
  transition: transform var(--t-base) var(--ease-out);
}
.sheet-close:hover .ic {
  transform: rotate(90deg);
}
.sheet-close .ic {
  transition: transform var(--t-slow) var(--ease-out);
}
.sheet-body {
  padding: calc(var(--nav-h) + clamp(40px, 7vw, 104px)) 0 0;
}
.cs-top {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  align-items: center;
  color: var(--text-2);
  font-size: var(--fs-small);
}
.cs-top span {
  height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
}
.cs-top span:first-child {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.cs-title {
  margin-top: var(--space-24);
  font-size: clamp(2.75rem, 1rem + 8.6vw, 10.5rem);
  font-stretch: var(--w-wide);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 0.92;
  text-wrap: balance;
}
.cs-intro {
  margin-top: clamp(28px, 4vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(28px, 6vw, 112px);
  align-items: start;
}
.cs-lead {
  font-size: clamp(1.375rem, 0.95rem + 1.5vw, 2.375rem);
  font-stretch: 125%;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.16;
  text-wrap: pretty;
}
.cs-note {
  margin-top: var(--space-24);
  color: var(--text-2);
  font-size: var(--fs-body);
  max-width: 46ch;
  padding-left: var(--space-16);
  border-left: 2px solid var(--accent);
}
.cs-did-h {
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--text-3);
  margin-bottom: var(--space-12);
}
.cs-did li {
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: var(--fs-body);
  display: flex;
  gap: var(--space-12);
  align-items: baseline;
}
.cs-did li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  transform: translateY(-2px);
}
.cs-did .btn {
  margin-top: var(--space-24);
  background: var(--accent);
  color: var(--accent-ink);
}
.cs-hero {
  margin-top: clamp(32px, 5vw, 80px);
  border-radius: var(--r-xl);
  overflow: clip;
  background: var(--surface);
  position: relative;
}
.cs-hero video,
.cs-hero img {
  width: 100%;
  height: auto;
}
.cs-hero.is-square {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: none;
  gap: var(--space-16);
  border-radius: 0;
}
.cs-hero.is-square > * {
  border-radius: var(--r-xl);
  overflow: clip;
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.cs-facts {
  margin-top: clamp(40px, 6vw, 96px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}
.cs-facts div {
  padding-top: var(--space-16);
  border-top: 1px solid var(--line-2);
  display: grid;
  gap: var(--space-8);
  align-content: start;
}
.cs-facts b {
  font-size: clamp(1.75rem, 1rem + 2.6vw, 3.75rem);
  font-stretch: var(--w-wide);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
}
.cs-facts span {
  color: var(--text-2);
  font-size: var(--fs-small);
  max-width: 26ch;
}
.cs-story {
  margin-top: clamp(40px, 6vw, 96px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-24) clamp(28px, 5vw, 96px);
}
.cs-story p {
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--text-2);
  max-width: 46ch;
  text-wrap: pretty;
}
.cs-gallery {
  margin-top: clamp(40px, 6vw, 96px);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--gutter);
}
.cs-item {
  border-radius: var(--r-lg);
  overflow: clip;
  background: var(--surface);
  grid-column: span 6;
  position: relative;
}
.cs-item img {
  width: 100%;
  height: auto;
}
.cs-item.k-slide {
  grid-column: span 3;
}
.cs-item.k-square {
  grid-column: span 2;
}
.cs-item.k-tall {
  grid-column: span 2;
}
.cs-item.k-slide.is-solo,
.cs-item.k-square.is-solo {
  grid-column: span 6;
}
.cs-item.k-long {
  border: 1px solid var(--line);
}
.cs-item.k-long .browser-bar {
  background: var(--surface);
}
.cs-item.k-long .cs-long {
  max-height: min(78vh, 900px);
  overflow-y: auto;
  overscroll-behavior: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-600) transparent;
}
.cs-next {
  margin-top: clamp(64px, 9vw, 160px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--space-24);
  padding: clamp(24px, 4vw, 64px) var(--margin);
  background: var(--accent-next, var(--surface));
  color: var(--accent-next-ink, var(--text));
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  position: relative;
  overflow: clip;
  min-height: 46vh;
}
.cs-next small {
  display: block;
  font-size: var(--fs-small);
  opacity: 0.7;
  margin-bottom: var(--space-12);
}
.cs-next b {
  display: block;
  font-size: clamp(2.5rem, 1rem + 7.4vw, 9rem);
  font-stretch: var(--w-wide);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 0.92;
}
.cs-next img {
  width: clamp(140px, 22vw, 360px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
  transition: transform var(--t-scene) var(--ease-out);
}
.cs-next:hover img {
  transform: scale(1.05) rotate(-2deg);
}
.cs-foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  margin-top: clamp(40px, 6vw, 96px);
}

/* Курсор, зерно, загрузчик */
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: var(--z-cursor);
  pointer-events: none;
  display: none;
  will-change: transform;
  opacity: 0;
  transition: opacity var(--t-base);
}
.cursor.is-live {
  opacity: 1;
}
.cursor i {
  position: absolute;
  left: -7px;
  top: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  mix-blend-mode: difference;
  transition:
    transform var(--t-base) var(--ease-out),
    opacity var(--t-base);
}
.cursor span {
  position: absolute;
  left: 14px;
  top: 14px;
  height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--fs-micro);
  font-weight: 520;
  font-stretch: 112%;
  white-space: nowrap;
  transform: scale(0);
  transform-origin: 0 0;
  transition:
    transform var(--t-base) var(--ease-out),
    background var(--t-base),
    color var(--t-base);
}
.cursor.has-label span {
  transform: scale(1);
}
.cursor.is-hover i {
  transform: scale(2.6);
}
.cursor.is-down i {
  transform: scale(0.7);
}
@media (hover: hover) and (pointer: fine) {
  .js .cursor {
    display: block;
  }
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 60;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.1s steps(6) infinite;
}
@keyframes grain {
  0% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-4%, 3%);
  }
  40% {
    transform: translate(3%, -5%);
  }
  60% {
    transform: translate(-2%, 4%);
  }
  80% {
    transform: translate(5%, 2%);
  }
  100% {
    transform: translate(0, 0);
  }
}

.loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  display: none;
  place-items: center;
  color: var(--ink-50);
}
.js .loader {
  display: grid;
}
.loader-half {
  position: absolute;
  inset: -2px;
  background: var(--ink-1000);
  will-change: transform;
}
/* Половины заходят друг на друга на пару пикселей, иначе по диагонали просвечивает стык */
.loader-a {
  clip-path: polygon(0 0, calc(100% + 4px) 0, 0 calc(100% + 4px));
}
.loader-b {
  clip-path: polygon(100% -4px, 100% 100%, -4px 100%);
}
.loader-in {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--space-16);
}
.loader-mark {
  width: 72px;
  height: auto;
}
.loader-note {
  font-size: var(--fs-small);
  color: var(--ink-400);
}
.loader-num {
  position: fixed;
  right: var(--margin);
  bottom: var(--space-16);
  font-size: clamp(5rem, 14vw, 13rem);
  font-stretch: var(--w-poster);
  font-weight: 700;
  line-height: 0.8;
  font-variant-numeric: tabular-nums;
}
.loader.is-done {
  pointer-events: none;
}

/* появления */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--t-slow) var(--ease-soft),
    transform var(--t-scene) var(--ease-out);
}

/* Без WebGL: мозаика вместо сферы */
.no-gl .gl {
  display: none;
}
.no-gl .stage {
  height: auto;
}
.no-gl .stage-pin {
  position: relative;
  height: auto;
  min-height: 100svh;
  padding-bottom: 0;
}
.no-gl .hero {
  position: relative;
  padding-bottom: clamp(280px, 44vh, 520px);
}
.no-gl .hero-scroll,
.no-gl .gui {
  display: none;
}
.no-gl .stage-poster {
  display: grid;
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -6%;
  height: 52%;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  transform: perspective(900px) rotateX(38deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(transparent, #000 45%);
  mask-image: linear-gradient(transparent, #000 45%);
}
.no-gl .stage-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-md);
}

/* Адаптив */
@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }
  .nav {
    grid-template-columns: 1fr auto;
  }
  .menu-btn {
    display: inline-flex;
  }
  .nav .lang {
    display: none;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .process-side {
    position: static;
  }
  .process-side .mock {
    font-size: clamp(7px, 1.9vw, 13px);
    margin-bottom: var(--space-24);
  }
  .steps {
    padding-top: var(--space-32);
    gap: var(--space-48);
  }
  .step {
    min-height: 0;
    opacity: 1;
  }
  .card-in {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .card-text .tags {
    margin-top: var(--space-8);
    padding-top: 0;
  }
  .card-media {
    min-height: clamp(240px, 56vw, 460px);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .cs-intro {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  :root {
    --nav-h: 52px;
  }
  .nav .btn {
    display: none;
  }
  .hero {
    padding-top: calc(var(--nav-h) + clamp(28px, 6vh, 56px));
  }
  .hero-title {
    letter-spacing: -0.045em;
    font-stretch: 140%;
  }
  .hero-sub {
    font-size: 1rem;
  }
  .hero-cta .btn {
    --h: 50px;
  }
  .sec-head-split {
    grid-template-columns: 1fr;
  }
  .gui-head {
    top: calc(var(--nav-h) + 24px);
    flex-direction: column;
    gap: var(--space-12);
  }
  .filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(-1 * var(--margin));
    padding-inline: var(--margin);
    width: 100vw;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar {
    display: none;
  }
  .gui-hint {
    max-width: none;
    font-size: var(--fs-micro);
    gap: var(--space-8);
    padding: 4px 14px 4px 4px;
    border-radius: var(--r-pill);
    background: var(--glass);
    border: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    white-space: nowrap;
  }
  .gui-hint-ic {
    width: 36px;
    height: 36px;
    background: none;
    border: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .gui-skip span {
    display: none;
  }
  .gui-skip {
    width: 44px;
    padding: 0;
    justify-content: center;
  }
  .for-fine {
    display: none;
  }
  .for-touch {
    display: inline;
  }
  .row {
    grid-template-columns: 72px minmax(0, 1fr) 44px;
    grid-template-areas: 't n g' 't s g';
    row-gap: 2px;
    column-gap: var(--space-16);
  }
  .row-n,
  .row-year {
    display: none;
  }
  .row-thumb {
    display: block;
    grid-area: t;
    border-radius: var(--r-sm);
    overflow: clip;
    aspect-ratio: 4 / 3;
  }
  .row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .row-name {
    grid-area: n;
    align-self: end;
    font-size: 1.25rem;
    font-stretch: 135%;
  }
  .row-name::before {
    display: none;
  }
  .row-tags {
    grid-area: s;
    align-self: start;
    font-size: var(--fs-micro);
  }
  .row-go {
    grid-area: g;
  }
  .peek {
    display: none;
  }
  .statement {
    font-stretch: 112%;
  }
  .card {
    position: relative;
    top: auto;
  }
  .stack {
    gap: var(--space-16);
  }
  .card-in {
    border-radius: var(--r-lg);
  }
  .direct > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .direct dd {
    font-size: 1.25rem;
  }
  .cs-facts,
  .cs-story {
    grid-template-columns: 1fr;
  }
  .cs-item.k-slide,
  .cs-item.k-square {
    grid-column: span 6;
  }
  .cs-item.k-tall {
    grid-column: span 3;
  }
  .cs-hero.is-square {
    grid-template-columns: 1fr;
  }
  .cs-next {
    grid-template-columns: 1fr;
  }
  .sheet-close span {
    display: none;
  }
  .sheet-close {
    padding: 0;
    width: var(--nav-h);
    justify-content: center;
  }
  .foot-top {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-8);
  }
  .fact {
    aspect-ratio: 8 / 5;
  }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .row {
    grid-template-columns: 3rem minmax(0, 1.3fr) minmax(0, 1fr) 3rem;
  }
  .row-year {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .grain {
    animation: none;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .statement .w > i {
    opacity: 1;
  }
  .card {
    position: relative;
    top: auto;
  }
  .step {
    opacity: 1;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 760px) {
  .card-media:has(.cmp) {
    min-height: 380px;
  }
  .demo {
    padding: 22px;
    gap: 12px;
  }
  .cmp .spec {
    display: none;
  }
  .cmp-pane {
    padding: 52px 16px 56px;
  }
}

/* Страницы без скриптов: кейс и 404 */
.sprite {
  position: absolute;
}
.page-case .foot {
  margin-top: 0;
  border-radius: 0;
}
.page-case .cs-next {
  border-radius: var(--r-xl);
  margin-inline: var(--space-12);
  margin-bottom: var(--space-12);
}
.page-case .foot-top .lang {
  padding: 0;
}
a.menu-btn {
  text-decoration: none;
}
.lost {
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: var(--space-24);
  padding: var(--space-48) var(--margin);
  max-width: 900px;
  margin-inline: auto;
}
.lost-mark {
  width: 72px;
  height: auto;
}
.lost .lead {
  color: var(--text-2);
  max-width: 46ch;
}
.lost-go {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  margin-top: var(--space-8);
}
