/* Портфолио Ekimov Gregory — «Monochrome».
   Строго чёрное и белое (+ серые), цвет — только в самих работах. Один гротеск (Inter Tight),
   IBM Plex Mono для мелких меток, Archivo Black — только для словесного знака «EKIMOV’».
   Ритм: чёрные и белые секции чередуются (.band--dark / .band--light); сайт всегда открывается чёрным. */

:root {
  /* поле, совпадающее с .wrap на любой ширине (для fixed-элементов: % = ширина окна) */
  --gut-x: max(var(--gut), calc((100% - var(--max)) / 2 + var(--gut)));
  --sans: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --display: 'Archivo Black', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;

  --gut: clamp(16px, 2.4vw, 36px);
  --max: 1600px;
  --hdr: 64px;
  --tab-gap: 12px;
  --ease: cubic-bezier(.2, .75, .1, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);

  /* тон по умолчанию — чёрный */
  --bg: #000; --fg: #fff; --mut: #9e9e9e; --rule: rgba(255, 255, 255, .14); --rule-2: rgba(255, 255, 255, .3);
  --card: #0e0e0e; --card-2: #161616;
  --tg-body: #111; --tg-bubble: #3a3a3a; --tg-me: #fff;
  color-scheme: dark;
}
.band--dark { --bg: #000; --fg: #fff; --mut: #9e9e9e; --rule: rgba(255, 255, 255, .14); --rule-2: rgba(255, 255, 255, .3); --card: #0e0e0e; --card-2: #161616; background: var(--bg); color: var(--fg); }
.band--light { --bg: #fff; --fg: #000; --mut: #5c5c5c; --rule: rgba(0, 0, 0, .12); --rule-2: rgba(0, 0, 0, .3); --card: #f1f1f1; --card-2: #e6e6e6; background: var(--bg); color: var(--fg); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--hdr); background: #000; }
/* Секции-полосы встают к самому верху: шапка ложится на их верхнее поле, а не на край соседней секции другого тона */
section.band[id] { scroll-margin-top: calc(-1 * var(--hdr)); }
@media (prefers-reduced-motion: no-preference) { html.is-smooth { scroll-behavior: smooth; } }
body {
  margin: 0; background: #000; color: #fff;
  font: 400 16px/1.5 var(--sans); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, iframe { 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, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
b { font-weight: 600; }
em { font-style: normal; }
::selection { background: #fff; color: #000; }
.band--light ::selection { background: #000; color: #fff; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; background: #fff; color: #000; border-radius: 999px; font-size: 14px; transition: top .2s; }
.skip:focus { top: 12px; }

/* Мелкая моно-метка в скобках: «( Подход )» */
.label { display: inline-flex; align-items: baseline; gap: .7em; font: 500 12px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--fg); }
.label::before { content: '('; margin-right: -.35em; }
.label::after { content: ')'; margin-left: -.35em; }
.label__no { color: var(--mut); }

/* Крупная фраза-заголовок: простым предложением, без украшений */
.big { max-width: 15em; font-size: clamp(34px, 4.5vw, 80px); font-weight: 500; line-height: 1; letter-spacing: -.035em; text-wrap: balance; }

/* ── Кнопка-«таблетка» ─────────────────────────────── */
.pill {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 40px; padding: 0 18px; border-radius: 999px; overflow: hidden; isolation: isolate;
  background: var(--fg); color: var(--bg); border: 1px solid var(--fg);
  font: 600 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  transition: color .45s var(--ease), transform .3s var(--ease);
}
/* Заливка «снизу вверх» при наведении — только transform */
.pill::before { content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: var(--bg); transform: translateY(101%); transition: transform .5s var(--ease); }
.pill .arr { display: inline-block; transition: transform .45s var(--ease); }
.pill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pill--lg { height: 52px; padding: 0 24px; font-size: 13px; }
.pill--line { background: transparent; color: var(--fg); border-color: var(--rule-2); }
.pill--line::before { background: var(--fg); }
.pill:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .pill:hover { color: var(--fg); }
  .pill--line:hover { color: var(--bg); border-color: var(--fg); }
  .pill:hover::before { transform: none; }
  .pill:hover .arr { transform: translateX(4px); }
}
.pill--line.is-done { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ── Заставка ──────────────────────────────────────── */
.intro { display: none; }
.intro-on .intro {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: #000; color: #fff;
  /* если скрипт не загрузится — заставка уйдёт сама */
  animation: introAuto .01s linear 4.2s forwards;
}
@keyframes introAuto { to { visibility: hidden; opacity: 0; } }
.intro__word { display: flex; align-items: center; font: 400 clamp(72px, 15vw, 220px)/1 var(--display); letter-spacing: -.03em; }
.intro__word > span:not(.intro__o) { opacity: 0; }
.intro.is-go .intro__word > span:not(.intro__o) { animation: introIn .9s var(--ease) .1s forwards; }
.intro.is-go .intro__word > span:last-child { animation-delay: .18s; }
/* Круг крупнее букв — как предмет в «O» референса (≈1,15 высоты прописной) */
.intro__o { position: relative; width: .84em; height: .84em; margin: 0 .04em 0 .05em; border-radius: 50%; overflow: hidden; background: #161616; transform: scale(0); }
.intro.is-go .intro__o { animation: introO .9s var(--ease) .05s forwards; }
.intro__count { opacity: 0; transition: opacity .4s; }
.intro.is-go .intro__count { opacity: 1; }
.intro.is-done .intro__count { opacity: 0; transition-duration: .15s; }
/* Кнопка «Написать» не появляется поверх заставки */
.intro-on .fab { opacity: 0; pointer-events: none; }
/* В круге — кольцо из фольги (canvas, assets/orb.js); фон-диск только пока кольца нет */
.intro__o.has-orb { overflow: visible; background: none; border-radius: 0; }
/* Перелёт кольца в «O» большого знака: один элемент, только transform */
.intro__o.is-fly { transform-origin: 0 0; transition: transform .75s cubic-bezier(.22, .9, .25, 1); will-change: transform; }
.intro__count { position: absolute; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); font: 500 12px/1 var(--mono); letter-spacing: .08em; }
@keyframes introIn { from { opacity: 0; transform: translateY(30%); } to { opacity: 1; transform: none; } }
@keyframes introO { to { transform: none; } }
.intro.is-out { transform: translateY(-100%); transition: transform .7s var(--ease-io); }

/* ── Шапка: знак и «Меню ::», цвет по тону секции под ней ── */
.hdr {
  position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: var(--hdr);
  display: flex; align-items: center; justify-content: space-between; padding-inline: var(--gut-x);
  color: #fff; pointer-events: none; transition: color .35s var(--ease), transform .45s var(--ease), background-color .35s;
}
/* Прокрутка вниз — шапка уезжает, вверх — возвращается */
.hdr.is-hidden { transform: translateY(-100%); }
.hdr > * { pointer-events: auto; }
.hdr[data-tone="light"], .hdr.is-menu { color: #000; }
/* Мышь и широкий экран: шапка инвертирует то, что под ней (как в референсе) — читается и поверх картинок */
@media (hover: hover) and (pointer: fine) and (min-width: 861px) {
  .hdr, .hdr[data-tone="light"], .hdr.is-menu { color: #fff; mix-blend-mode: difference; }
}
.brand { display: flex; align-items: center; height: 44px; font: 400 22px/1 var(--display); letter-spacing: -.02em; transition: opacity .4s var(--ease), visibility .4s; }
/* На самом верху место знака занимает заявление первого экрана (как в референсе) */
.hdr:not(.is-scrolled):not(.is-menu) .brand { opacity: 0; visibility: hidden; }
/* Знак шапки: «EG’»; при путешествии кольца — «E◯’», в «O» садится то же хром-кольцо (assets/sig.js) */
.brand__mk { display: none; }
.orb-travel .brand__eg { display: none; }
.orb-travel .brand__mk { display: inline-flex; align-items: center; }
.brand__o { position: relative; top: .05em; display: inline-block; width: 1.12em; height: 1.12em; margin: 0 .07em 0 .1em; }
.brand__e, .brand__q { display: inline-block; transition: opacity .5s var(--ease), translate .7s var(--ease); }
.orb-travel .hdr.is-docked .brand { opacity: 1; visibility: visible; }
.orb-travel .hdr:not(.is-docked) .brand { opacity: 1; visibility: hidden; transition: visibility 0s .5s; }
.orb-travel .hdr:not(.is-docked) .brand__e { opacity: 0; translate: .4em 0; }
.orb-travel .hdr:not(.is-docked) .brand__q { opacity: 0; translate: -.4em 0; }
/* Меню открыто, а кольцо ещё не в шапке (оно прячется под меню) — знак «EG’» текстом: ссылка «домой» на месте */
.orb-travel .hdr.is-menu:not(.is-docked) .brand { visibility: visible; transition: none; }
.orb-travel .hdr.is-menu:not(.is-docked) .brand__eg { display: inline; }
.orb-travel .hdr.is-menu:not(.is-docked) .brand__mk { display: none; }
/* Слой кольца-путешественника: absolute в документе, в конце перелёта — fixed над шапкой */
.orbfly { position: absolute; left: 0; top: 0; z-index: 54; width: 0; height: 0; pointer-events: none; transition: translate .45s var(--ease), opacity .3s var(--ease); }
.orbfly.is-fixed { position: fixed; z-index: 61; }
.orbfly.is-up { translate: 0 calc(-1 * var(--hdr) - 24px); }
.menu-open .orbfly:not(.is-dock) { opacity: 0; }
.orbfly__in { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.orbfly .orb { opacity: 0; scale: .55; transition: opacity .8s var(--ease) .2s, scale 1.1s var(--ease) .2s; }
.orbfly.is-in .orb { opacity: 1; scale: 1; }
.orbfly.no-tr .orb { transition: none; }
.menu-btn { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding-left: 12px; font: 600 12px/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; }
.menu-btn i { width: 10px; height: 10px; background: radial-gradient(circle, currentColor 1.5px, transparent 1.9px) 0 0 / 5px 5px; transition: transform .5s var(--ease); }
.menu-btn:hover i, .menu-btn[aria-expanded="true"] i { transform: rotate(45deg); }

/* Полноэкранное меню — белое, крупные пункты */
.mnav { position: fixed; inset: 0; z-index: 55; background: #fff; color: #000; overflow-y: auto; overscroll-behavior: contain; --fg: #000; --bg: #fff; --mut: #5c5c5c; --rule: rgba(0, 0, 0, .12); --rule-2: rgba(0, 0, 0, .3); }
.mnav[hidden] { display: none; }
.mnav__in { min-height: 100%; display: flex; flex-direction: column; padding: calc(var(--hdr) + 4vh) var(--gut-x) max(28px, env(safe-area-inset-bottom)); }
.mnav__list { margin-top: 18px; border-top: 1px solid var(--rule); }
.mnav__list li { border-bottom: 1px solid var(--rule); overflow: hidden; }
.mnav__list a { display: flex; align-items: baseline; gap: 18px; padding: 10px 0 12px; font-size: clamp(38px, 7.2vw, 104px); font-weight: 500; line-height: 1; letter-spacing: -.035em; transition: opacity .35s var(--ease), transform .5s var(--ease); }
.mnav__no { font: 500 12px/1 var(--mono); letter-spacing: .04em; color: var(--mut); transform: translateY(-1.2em); flex: none; }
@media (hover: hover) and (pointer: fine) {
  .mnav__list:hover a { opacity: .3; }
  .mnav__list a:hover { opacity: 1; transform: translateX(10px); }
}
.mnav__list a.is-active .mnav__no::after { content: ' ●'; color: #000; }
.mnav__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 32px; }
.mnav.is-open { animation: menuIn .7s var(--ease-io) both; }
.mnav.is-open .mnav__list a { animation: menuItem .8s var(--ease) both; }
.mnav.is-open li:nth-child(2) a { animation-delay: .05s; }
.mnav.is-open li:nth-child(3) a { animation-delay: .1s; }
.mnav.is-open li:nth-child(4) a { animation-delay: .15s; }
.mnav.is-open li:nth-child(5) a { animation-delay: .2s; }
.mnav.is-closing { animation: menuOut .5s var(--ease-io) both; }
@keyframes menuIn { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes menuOut { to { transform: translateY(-100%); } }
@keyframes menuItem { from { transform: translateY(100%); } }
html.menu-open { overflow: hidden; }

/* Переключатель языка: две плашки, выбранная залита */
.lang { display: inline-flex; gap: 4px; }
.lang button { min-width: 30px; height: 24px; padding: 0 6px; border: 1px solid var(--rule-2); border-radius: 3px; font: 500 11px/1 var(--mono); letter-spacing: .04em; color: var(--fg); transition: background-color .25s, color .25s, border-color .25s; }
.lang button[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.lang button:not([aria-pressed="true"]):hover { border-color: var(--fg); }
.mnav .lang button { min-width: 44px; height: 36px; font-size: 12.5px; }

/* ── Первый экран ──────────────────────────────────── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.hero__top { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 21px; }
.hero__title { max-width: 26em; font-size: clamp(16px, 1.3vw, 20px); font-weight: 500; line-height: 1.18; letter-spacing: -.02em; }
.hero__mark { flex: 1 1 auto; display: flex; align-items: center; padding-block: 28px; container-type: inline-size; }
.mark {
  display: block; flex: none; overflow: hidden;
  font: 400 calc(100cqw * var(--k, .1855))/.86 var(--display); letter-spacing: -.035em; white-space: nowrap;
  padding: .14em 0 .03em 0;
  /* --ink — левый отступ глифа «E» (em), считает скрипт; ширина растёт на столько же, чтобы не обрезать апостроф */
  margin-left: calc(var(--ink, .035) * -1em); width: calc(100% + var(--ink, .035) * 1em + .04em);
}
@supports not (font-size: 1cqw) { .mark { font-size: calc((100vw - 2 * var(--gut)) * var(--k, .1855)); } }
.mark .ml { display: inline-block; }
/* Живые буквы (assets/sig.js): внешний span поднимается при появлении, внутренний — откликается и расходится */
.mark .ml__i { display: inline-block; transform-origin: 50% 100%; }
/* Буквы расходятся в стороны за поля: режем только по вертикали (подъём), по горизонтали — нет */
@supports (overflow: clip) { .orb-travel .mark { overflow-x: visible; overflow-y: clip; } .orb-travel .hero { overflow-x: clip; } }
.mark .ml--o { position: relative; }
/* «O» — круг: тот же предмет, что в заставке; чуть крупнее прописных и стоит на базовой линии */
/* top: кольцо наклонено и выше всего торчит сверху — опускаем, чтобы выход за прописные был ровным сверху и снизу */
.disc { position: relative; top: .018em; display: inline-block; width: .78em; height: .78em; margin: 0 .025em 0 .035em; vertical-align: -.035em; border-radius: 50%; background: #fff center / cover no-repeat; }
/* «O» — кольцо из фольги: canvas во весь круг; без WebGL — CSS-кольцо, без скрипта — белый диск */
.disc.has-orb { position: relative; background: none; border-radius: 0; }
.orb { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.orb--css {
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 22%),
    conic-gradient(from 210deg, #2a2a2a, #f4f4f4 9%, #6d6d6d 20%, #e6e6e6 33%, #3a3a3a 47%, #cfcfcf 61%, #555 74%, #fafafa 87%, #2a2a2a);
  -webkit-mask: radial-gradient(circle closest-side, transparent 0 32%, #000 34% 90%, transparent 92%);
  mask: radial-gradient(circle closest-side, transparent 0 32%, #000 34% 90%, transparent 92%);
}
.hero.is-flip .disc { visibility: hidden; }
.js .hero.is-flip .ml--o { transform: none; transition: none; }
/* После перелёта кольца буквы стартуют чуть позже: к их подъёму кольцо уже сидит в «O» */
.js .hero.is-ready.is-flown .ml { transition-delay: calc(var(--i, 0) * 45ms + .34s); }
/* «O» с кольцом откликается на клик/касание */
.disc.is-poke { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hero__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 16px; padding-bottom: 22px; font-size: 13px; line-height: 1.35; }
.hero__role { display: flex; flex-direction: column; }
.hero__role span:last-child { color: var(--mut); }
.hero__now { display: grid; justify-items: center; gap: 9px; }
.hero__status { display: inline-flex; align-items: center; gap: 9px; font: 500 11.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
/* Часы: Москва и статус ответа (assets/sig.js) — моноширинные цифры, приглушённо */
.clock { margin: 0; font: 500 11px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--mut); font-variant-numeric: tabular-nums; white-space: nowrap; }
.clock time { color: var(--fg); }
.clock[hidden] { display: none; }
.mnav__clock { flex: 1 1 100%; }
.hero__status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hero__links { justify-self: end; display: flex; align-items: center; gap: 8px; font: 600 11.5px/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; }
.hero__links > a { position: relative; padding: 6px 0; }
.hero__links > span { color: var(--mut); }
.hero__links .lang { margin-left: 10px; }

/* Появление знака по буквам (после заставки или загрузки шрифта) */
.js .hero .ml { transform: translateY(108%); }
.js .hero.is-ready .ml { transform: none; transition: transform .95s var(--ease) calc(var(--i, 0) * 45ms); }
.js .hero:not(.is-ready) .mark { opacity: 0; animation: heroAuto .01s linear 4.4s forwards; }
.js .hero.is-ready .mark { opacity: 1; }
.js .hero .hero__top > *, .js .hero .hero__foot > * { opacity: 0; transform: translateY(14px); }
.js .hero.is-ready .hero__top > *, .js .hero.is-ready .hero__foot > * { opacity: 1; transform: none; transition: opacity .9s var(--ease) .45s, transform .9s var(--ease) .45s; }
.js .hero.is-ready .hero__foot > * { transition-delay: .6s; }
.js .hero:not(.is-ready) .hero__top > *, .js .hero:not(.is-ready) .hero__foot > * { animation: heroAuto .01s linear 4.4s forwards; }
@keyframes heroAuto { to { opacity: 1; transform: none; } }

/* Подчёркивание ссылок «вытиранием» */
.ul, .hero__links > a, .ftr__in a, .work__all > span:first-child { background: linear-gradient(currentColor, currentColor) 100% 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.ul:hover, .hero__links > a:hover, .ftr__in a:hover, .work__all:hover > span:first-child { background-size: 100% 1px; background-position: 0 100%; }

/* ── Секция «Заявление» (белая) ───────────────────── */
.about { padding-block: calc(var(--hdr) + clamp(40px, 14vh, 150px)) clamp(72px, 8vw, 128px); }
.about__title { max-width: 16em; }
.reel { position: relative; margin-top: clamp(40px, 5vw, 76px); aspect-ratio: 16 / 7; background: #000; border-radius: 2px; overflow: hidden; }
.reel__row { position: absolute; inset: 0; }
/* Три кадра крупно, внахлёст, уходят за нижний край карточки */
.reel__item { position: absolute; display: block; width: 44%; color: #fff; }
.reel__item:nth-child(1) { left: 3%; top: 11%; }
.reel__item:nth-child(2) { left: 29%; top: 43%; width: 46%; z-index: 2; }
.reel__item:nth-child(3) { left: 54%; top: 21%; width: 43%; }
.reel__fig { position: relative; overflow: hidden; border-radius: 3px; aspect-ratio: 16 / 10; background: #161616; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 70px -20px rgba(0, 0, 0, .8); transform: translate3d(0, var(--py, 0px), 0); }
.reel__fig img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.1s var(--ease); }
.reel__tag { position: absolute; left: 10px; top: 10px; padding: 5px 8px; border-radius: 2px; background: #000; color: #fff; font: 500 10.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
@media (hover: hover) and (pointer: fine) { .reel__item:hover img { transform: scale(1.045); } }
.reel__item:focus-visible { outline-color: #fff; outline-offset: 6px; }

/* «Шаг в сторону»: метка · короткий абзац · одна картинка справа */
.aside { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; margin-top: clamp(56px, 7vw, 120px); align-items: center; }
.aside > .label { grid-column: 1 / span 3; align-self: center; }
.aside__text { grid-column: 4 / span 4; display: grid; gap: 14px; max-width: 30em; font-size: 15.5px; line-height: 1.45; }
.aside__for { color: var(--mut); }
.aside__for b { color: var(--fg); font-weight: 500; }
.aside__img { grid-column: 9 / -1; display: block; }
.aside__fig { display: block; overflow: hidden; border-radius: 2px; aspect-ratio: 16 / 10; background: #111; }
.aside__fig img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 1.1s var(--ease); }
.aside__cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font: 500 11px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.aside__cap span:last-child { color: var(--mut); }
@media (hover: hover) and (pointer: fine) { .aside__img:hover img { transform: scale(1.04); } }

/* ── Заголовок секции: метка слева, крупная фраза справа ── */
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.sec-head > .label { grid-column: 1 / span 4; padding-top: 1.2em; }
.sec-head > .big { grid-column: 7 / -1; }
.sec-lead { grid-column: 7 / span 5; margin-top: 22px; max-width: 34em; color: var(--mut); font-size: 15.5px; line-height: 1.5; text-wrap: pretty; }

/* Гигантское слово-разделитель (WORKS / SERVICES / PROCESS / LET’S TALK): шрифт знака, во всю ширину контейнера.
   Размер = ширина × --gk (считает fitWords по «чернилам» букв); сжатие/растяжение от прокрутки — assets/sig.js */
.gw { position: relative; container-type: inline-size; margin: 0 0 clamp(36px, 4.4vw, 76px); padding-bottom: clamp(12px, 1.3vw, 20px); }
.gw__w { display: inline-block; white-space: nowrap; font: 400 calc(100cqw * var(--gk, .2))/.8 var(--display); letter-spacing: -.035em; margin-left: calc(var(--gi, 0) * -1em); padding-top: .07em; transform-origin: 0 100%; }
@supports not (font-size: 1cqw) { .gw__w { font-size: calc((min(100vw, var(--max)) - 2 * var(--gut)) * var(--gk, .2)); } }
.gw::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rule-2); transform-origin: 0 50%; pointer-events: none; }

/* ── Работы (чёрная) ───────────────────────────────── */
.work { padding-block: calc(var(--hdr) + 24px) clamp(64px, 7vw, 112px); }
/* Заголовок витрины — одна строка: метка слева, фраза и одна строка описания справа; витрина видна сразу */
.work .sec-head { margin-bottom: clamp(36px, 4vw, 64px); }
.sec-head--work > .big { max-width: none; font-size: clamp(34px, 4.2vw, 72px); }
.sec-head--work > .sec-lead { margin-top: 14px; }
.anchors { position: relative; height: 1px; margin-top: -1px; }
.anchors span { position: absolute; top: 0; scroll-margin-top: var(--tab-gap); }
.tabs-wrap { position: relative; }
.tabs { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--rule-2); }
.tab {
  position: relative; display: grid; align-content: start; gap: 8px; min-width: 0; text-align: left;
  padding: 16px 18px 20px 0; color: var(--mut); transition: color .35s var(--ease);
}
.tab + .tab { padding-left: 18px; border-left: 1px solid var(--rule); }
/* Как подпись к работе в референсе: моно-имя сверху, одно простое предложение под ним */
.tab__name { font: 500 12px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab__sub { font-size: clamp(14.5px, 1.05vw, 17px); font-weight: 500; line-height: 1.25; letter-spacing: -.02em; text-wrap: balance; }
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { color: var(--fg); }
.tab:focus-visible { outline-offset: -3px; }
.tabs__bar { position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--fg); pointer-events: none; transition: transform .7s var(--ease), width .7s var(--ease); }
.tabs__keys { position: absolute; right: 0; top: -26px; font: 500 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--mut); }

.panels { overflow-anchor: none; }
.panel { display: grid; grid-template-columns: minmax(300px, 4fr) minmax(0, 8fr); gap: clamp(28px, 3.4vw, 60px); padding-top: clamp(20px, 2vw, 30px); align-items: start; }
.panel[hidden] { display: none; }
.panel:focus-visible { outline: 2px solid var(--fg); outline-offset: 6px; }
.panel.is-entering .info > * { animation: fadeUp .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.panel.is-entering .stage { animation: stageIn .9s var(--ease) both; }
.panel.is-entering .caps { animation: fadeUp .9s var(--ease) .2s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }
@keyframes stageIn { from { opacity: 0; transform: translateY(24px); } }

/* Информация о проекте */
.info { min-width: 0; }
.info__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; font: 500 11.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.badge::before { content: '( '; }
.badge::after { content: ' )'; }
.badge i { display: none; }
.info__count { color: var(--mut); }
.info__tag { font: 500 11.5px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--mut); }
.info__name { margin-top: 10px; font-size: clamp(34px, 3.3vw, 56px); font-weight: 500; line-height: .98; letter-spacing: -.05em; }
.info__desc { margin-top: 18px; font-size: 16px; line-height: 1.5; }
.info__label { margin: 26px 0 8px; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
.feats { border-top: 1px solid var(--rule-2); counter-reset: f; }
.feats li { display: grid; grid-template-columns: 34px minmax(0, 1fr); padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; line-height: 1.4; }
.feats li::before { counter-increment: f; content: counter(f, decimal-leading-zero); font: 500 11px/1.9 var(--mono); color: var(--mut); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { padding: 6px 10px; border: 1px solid var(--rule-2); border-radius: 999px; font: 500 11px/1 var(--mono); letter-spacing: .02em; }
.info__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.info__note { margin-top: 12px; font: 500 11px/1.5 var(--mono); color: var(--mut); letter-spacing: .03em; }

/* Сцена с устройством */
.stage { min-width: 0; }
.stage__bar { display: flex; align-items: center; gap: 12px; min-height: 40px; margin-bottom: 10px; }
.stage__live { display: flex; align-items: center; gap: 9px; min-width: 0; font: 500 11px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.stage__live > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage__live i { position: relative; width: 7px; height: 7px; margin-left: 2px; border-radius: 50%; background: currentColor; flex: none; }
.stage__live i::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid currentColor; opacity: 0; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 70%, 100% { transform: scale(1.4); opacity: 0; } }
.stage__live svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; flex: none; }
.stage__live b { font-weight: 500; }
.stage__narrow { display: none; }
.seg { display: flex; margin-left: auto; padding: 3px; border-radius: 999px; border: 1px solid var(--rule-2); flex: none; }
.seg button { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 14px; border-radius: 999px; font: 600 11.5px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--mut); transition: background-color .3s, color .3s; }
.seg button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.seg button:not([aria-pressed="true"]):hover { color: var(--fg); }
.stage__open { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--rule-2); flex: none; transition: background-color .3s, color .3s, border-color .3s; }
.stage__open:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.stage__open svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

.floor { position: relative; display: flex; align-items: center; justify-content: center; padding: clamp(12px, 1.6vw, 26px); border-radius: 2px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); }
.floor .crop, .floor .ring { display: none; }
.stage__hint { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; font: 500 11px/1.4 var(--mono); letter-spacing: .03em; color: var(--mut); }

.device {
  --w: 1440; --h: 900; --s: .5; --sb: 0;
  position: relative; background: #141414; border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 60px -30px rgba(0, 0, 0, .9);
  transition: padding .6s var(--ease), border-radius .6s var(--ease), background-color .6s var(--ease);
}
.device__chrome { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #1a1a1a; border-bottom: 1px solid rgba(255, 255, 255, .07); border-radius: 8px 8px 0 0; }
.device__chrome i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a3a; flex: none; }
.device__url { flex: 1; min-width: 0; margin-right: 36px; text-align: center; font: 400 11px/1 var(--mono); color: #9a9a9a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device__url b { font-weight: 400; color: #fff; }
.device__screen {
  position: relative; overflow: hidden; isolation: isolate;
  width: calc(var(--w) * var(--s) * 1px); height: calc((var(--h) + var(--sb)) * var(--s) * 1px);
  background: #1a1a1a; border-radius: 0 0 8px 8px;
  -webkit-mask-image: linear-gradient(#000, #000); mask-image: linear-gradient(#000, #000);
  transition: width .6s var(--ease), height .6s var(--ease), border-radius .6s var(--ease);
}
.device__poster { position: absolute; left: 0; right: 0; bottom: 0; top: calc(var(--sb) * var(--s) * 1px); width: 100%; height: calc(var(--h) * var(--s) * 1px); object-fit: cover; object-position: top center; transition: opacity .6s var(--ease); }
.device iframe {
  position: absolute; left: 0; top: calc(var(--sb) * var(--s) * 1px); border: 0; background: #fff;
  width: calc(var(--w) * 1px); height: calc(var(--h) * 1px); max-width: none;
  transform: scale(var(--s)); transform-origin: 0 0;
  opacity: 0; transition: opacity .6s var(--ease);
}
.stage.is-loaded .device iframe { opacity: 1; }
.stage.is-loaded .device__poster { opacity: 0; }
.device__load { position: absolute; left: 0; top: 0; z-index: 3; height: 2px; width: 34%; background: #fff; opacity: 0; transition: opacity .3s; }
.stage.is-loading:not(.is-loaded) .device__load { opacity: 1; animation: loadbar 1.3s var(--ease-io) infinite; }
@keyframes loadbar { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.device__pill {
  position: absolute; left: 50%; bottom: 14px; z-index: 6; display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 13px 0 11px; border-radius: 999px; transform: translate(-50%, 6px);
  background: rgba(0, 0, 0, .86); color: #fff; font: 500 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.device__pill i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .3); border-top-color: #fff; }
/* спиннер крутится только пока демо грузится */
.stage.is-loading:not(.is-loaded) .device__pill i { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stage.is-loading:not(.is-loaded) .device__pill { opacity: 1; transform: translate(-50%, 0); }
.device__veil { position: absolute; inset: 0; z-index: 7; background: var(--card); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease); }
.stage.is-switching .device__veil { opacity: 1; }

/* Статус-бар телефона */
.device__sbar {
  position: absolute; left: 0; right: 0; top: 0; z-index: 4; display: none; align-items: center; justify-content: space-between;
  height: calc(var(--sb) * var(--s) * 1px); padding: 0 calc(var(--s) * 26px) 0 calc(var(--s) * 36px);
  background: var(--sbg, #fff); color: var(--sfg, #111); font: 600 calc(var(--s) * 15px)/1 var(--sans); letter-spacing: -.01em;
}
.device__sbar svg { height: calc(var(--s) * 12px); width: auto; fill: currentColor; }
.device__sbar span:last-child { display: flex; align-items: center; gap: calc(var(--s) * 5px); }
.device__sbar::after { content: ''; position: absolute; left: 50%; top: calc(var(--s) * 9px); width: calc(var(--s) * 104px); height: calc(var(--s) * 28px); border-radius: 999px; background: #000; transform: translateX(-50%); }
.stage[data-mode="mobile"] .device__sbar { display: flex; }
.stage[data-mode="mobile"] .device { background: #000; padding: 9px; border-radius: 46px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 30px 60px -28px rgba(0, 0, 0, .9); }
.stage[data-mode="mobile"] .device__chrome { display: none; }
.stage[data-mode="mobile"] .device__screen { border-radius: 37px; }
.device::before, .device::after { content: ''; position: absolute; width: 3px; border-radius: 2px; background: #333; opacity: 0; transition: opacity .4s; }
.device::before { left: -3px; top: 22%; height: 9%; }
.device::after { right: -3px; top: 28%; height: 13%; }
.stage[data-mode="mobile"] .device::before, .stage[data-mode="mobile"] .device::after { opacity: 1; }

/* «Нажмите, чтобы управлять»: iframe не перехватывает прокрутку страницы */
.device__shield { position: absolute; inset: 0; z-index: 5; display: block; width: 100%; cursor: pointer; }
.device__hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); translate: 0 6px;
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 15px; border-radius: 999px;
  background: #fff; color: #000; font: 600 11.5px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
  opacity: 0; transition: opacity .3s var(--ease), translate .4s var(--ease);
}
.device__hint svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.device:hover .device__hint, .device__shield:focus-visible .device__hint { opacity: 1; translate: 0 0; }
.device__shield:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.stage.is-loading:not(.is-loaded) .device__hint { opacity: 0; }
.stage.is-interactive .device__shield { display: none; }
@media (hover: none) and (pointer: coarse) {
  .device__shield { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .28)); }
  .device__hint { top: 54%; bottom: auto; opacity: 1; translate: 0 0; height: 40px; padding: 0 16px; font-size: 12px; }
}

/* «Детали»: переключатель в строке сцены и чертёжные выноски над демо */
.bd-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; margin-left: auto; padding: 0 14px 0 11px; border-radius: 999px; border: 1px solid var(--rule-2); font: 600 11.5px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; flex: none; transition: background-color .3s, color .3s, border-color .3s; }
.bd-btn i { position: relative; width: 11px; height: 11px; transition: transform .45s var(--ease); }
.bd-btn i::before, .bd-btn i::after { content: ''; position: absolute; left: 0; top: 5px; width: 11px; height: 1px; background: currentColor; }
.bd-btn i::after { transform: rotate(90deg); }
.bd-btn[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.bd-btn[aria-pressed="true"] i { transform: rotate(45deg); }
.bd-btn:not([aria-pressed="true"]):hover { border-color: var(--fg); }
.bd-btn__s { display: none; }
.stage__bar .bd-btn + .seg { margin-left: 0; }
.bd { position: absolute; inset: 0; z-index: 6; pointer-events: none; display: none; }
.bd.is-on { display: block; }
.bd__veil { position: absolute; inset: 0; background: rgba(0, 0, 0, .3); opacity: 0; transition: opacity .5s var(--ease); }
.bd__it > * { position: absolute; }
.bd__v, .bd__h { display: block; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .45); transition: transform .5s var(--ease); }
.bd__v { width: 1px; margin-left: -.5px; transform: scaleY(0); transition-delay: calc(var(--k) * 110ms + 140ms); }
.bd__h { height: 1px; margin-top: -.5px; transform: scaleX(0); transition-delay: calc(var(--k) * 110ms + 380ms); }
.bd__dot { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(0, 0, 0, .55), 0 0 0 5px rgba(255, 255, 255, .28); transform: scale(0); transition: transform .45s var(--ease) calc(var(--k) * 110ms); }
.bd__chip { display: block; max-width: min(64%, 340px); padding: 5px 8px 5px 7px; border-radius: 2px; background: #0a0a0a; color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 6px 16px rgba(0, 0, 0, .35);
  font: 500 10.5px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; white-space: normal; text-wrap: balance;
  opacity: 0; translate: 0 4px; transition: opacity .45s var(--ease), translate .5s var(--ease); transition-delay: calc(var(--k) * 110ms + 560ms); }
.bd__chip em { margin-right: 7px; color: #8f8f8f; }
.bd.is-small .bd__chip { padding: 4px 6px; font-size: 9.5px; letter-spacing: .03em; max-width: 72%; }
.bd.is-small .bd__chip em { margin-right: 5px; }
/* подпись-штамп в углу подиума: адаптив и языки */
.bd-tag { position: absolute; right: 10px; top: 8px; z-index: 8; padding: 4px 7px; border-radius: 2px; background: var(--fg); color: var(--bg); font: 500 10px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; opacity: 0; translate: 0 -4px; pointer-events: none; transition: opacity .4s var(--ease), translate .5s var(--ease); }
.stage.is-bd .bd-tag { opacity: 1; translate: 0 0; transition-delay: .3s; }
/* телефон: штамп — в строке подсказки под рамкой, а не поверх адресной строки устройства */
.stage__hint span.bd-tag--hint { display: inline-block; position: static; flex: none; align-self: center; translate: none; }
.stage:not(.is-bd) .stage__hint span.bd-tag--hint { display: none; }
/* «Телефон» на широкой сцене: подписи — на полях по бокам */
.bd.is-gut .bd__chip { max-width: var(--gw, 260px); }
.bd.is-in .bd__veil, .bd.is-in .bd__chip { opacity: 1; }
.bd.is-in .bd__chip { translate: 0 0; }
.bd.is-in .bd__v, .bd.is-in .bd__h, .bd.is-in .bd__dot { transform: none; }
.bd.no-anim * { transition: none !important; }
/* подсказка «Нажмите, чтобы управлять» не спорит с выносками */
.stage:has(.bd.is-in) .device__hint { opacity: 0 !important; }
.comp .bd { inset: 0 0 0 0; }

/* CRM: скриншоты ноутбук + телефон */
.comp { position: relative; width: 100%; padding: 0 12% 6% 0; }
.comp .device { width: 100%; }
.comp .device img { width: 100%; height: auto; border-radius: 0 0 8px 8px; }
.comp__phone { position: absolute; right: 0; bottom: 0; width: 24%; padding: 6px; border-radius: 28px; background: #000; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .2); }
.comp__phone img { width: 100%; height: auto; border-radius: 22px; }

/* Боты и парсеры: чат + терминал — тоже монохром */
.bots { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; width: 100%; align-items: stretch;
  --tg-body: #0b0b0b; --tg-bubble: #222; --tg-me: #fff; }
.tg { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #151515; color: #ececec; box-shadow: 0 0 0 1px rgba(255, 255, 255, .09); }
.tg__head { display: flex; align-items: center; gap: 11px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); flex: none; }
.tg__ava { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #000; font: 600 16px/1 var(--sans); flex: none; }
.tg__head b { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.tg__head small { display: block; font: 500 11px/1.4 var(--mono); color: #9a9a9a; text-transform: uppercase; letter-spacing: .05em; }
.tg__body { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; padding: 14px 12px; overflow: hidden; background: var(--tg-body); }
.msg { max-width: 84%; padding: 8px 12px 6px; border-radius: 16px; font-size: 14px; line-height: 1.4; animation: msgIn .45s var(--ease) both; flex: none; }
.msg small { display: block; margin-top: 1px; text-align: right; font-size: 10.5px; opacity: .55; }
.msg--bot { align-self: flex-start; background: var(--tg-bubble); border-bottom-left-radius: 4px; }
.msg--me { align-self: flex-end; background: var(--tg-me); color: #000; border-bottom-right-radius: 4px; }
.msg__kb { display: flex; flex-wrap: wrap; gap: 5px; align-self: stretch; max-width: 92%; animation: msgIn .45s var(--ease) both; flex: none; }
.msg__kb span { flex: 1 1 auto; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .16); text-align: center; font-size: 13px; font-weight: 500; color: #e6e6e6; transition: background-color .3s, color .3s, border-color .3s; white-space: nowrap; }
.msg__kb span.is-picked { background: #fff; border-color: #fff; color: #000; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; border-radius: 16px; background: var(--tg-bubble); animation: msgIn .3s var(--ease) both; flex: none; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #999; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes blink { 50% { opacity: .25; } }
.bots__right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.term { flex: 1 1 auto; display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; background: #080808; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.term__bar { position: relative; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #151515; flex: none; }
.term__bar i { width: 9px; height: 9px; border-radius: 50%; background: #383838; }
.term__bar span { position: absolute; left: 50%; transform: translateX(-50%); font: 400 11px/1 var(--mono); color: #9a9a9a; white-space: nowrap; }
.term__body { flex: 1 1 auto; margin: 0; padding: 16px 20px; overflow: hidden; font: 400 12.5px/1.72 var(--mono); color: #cfcfcf; white-space: pre-wrap; overflow-wrap: anywhere; }
.term__body .nw { white-space: nowrap; }
.term__body .p { color: #fff; font-weight: 500; }
.term__body .ok { color: #fff; }
.term__body .dim { color: #8a8a8a; }
.term__body .hl { color: #fff; font-weight: 500; }
.term__body .ga, .term__body .gb { display: inline-block; min-width: 1.5em; text-align: center; font-weight: 500; }
.term__body .ga { background: #fff; color: #000; }
.term__body .gb { box-shadow: inset 0 0 0 1px #fff; color: #fff; }
.term__body .cursor { display: inline-block; width: 8px; height: 1.1em; vertical-align: -.2em; background: #fff; animation: blink 1s steps(1) infinite; }
.term__body.is-done .cursor { animation: none; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 10px; overflow: hidden; background: #111; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); flex: none; }
.stats div { padding: 14px 16px 13px; opacity: .32; transition: opacity .6s var(--ease); }
.stats div + div { border-left: 1px solid rgba(255, 255, 255, .1); }
.stats div.is-on { opacity: 1; }
.stats b { display: block; font-size: clamp(24px, 2vw, 34px); font-weight: 500; line-height: 1; letter-spacing: -.04em; }
.stats span { display: block; margin-top: 7px; font: 500 10.5px/1.35 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: #9e9e9e; }
.measure { position: absolute !important; left: 0; top: 0; visibility: hidden !important; pointer-events: none; height: auto !important; min-height: 0 !important; flex: none !important; }
.measure * { animation: none !important; }

.caps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(28px, 3vw, 44px); }
.cap { padding-top: 18px; border-top: 1px solid var(--fg); }
.cap__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; font: 500 11px/1 var(--mono); color: var(--mut); letter-spacing: .05em; }
.cap__top span::before { content: '('; }
.cap__top span::after { content: ')'; }
.cap__top svg { width: 22px; height: 22px; fill: none; stroke: var(--fg); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.cap h3 { font-size: clamp(22px, 1.9vw, 28px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.cap p { margin: 10px 0 16px; color: var(--mut); font-size: 15px; }

.work__end { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: baseline; gap: 16px; margin-top: clamp(64px, 8vw, 128px); }
.work__all { display: inline-flex; align-items: baseline; gap: 12px; justify-self: start; font-size: clamp(28px, 2.9vw, 46px); font-weight: 500; line-height: 1.1; letter-spacing: -.04em; }
.work__all > span:first-child { background-size: 0 2px; }
.work__all:hover > span:first-child { background-size: 100% 2px; }
.work__arr { font-size: .5em; transition: transform .5s var(--ease); }
.work__all:hover .work__arr { transform: translate(4px, 3px); }
.work__count { font: 500 14px/1 var(--mono); }
.work__meta { justify-self: end; text-align: right; font: 500 11px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--mut); }

/* ── Услуги (белая) ────────────────────────────────── */
.services { padding-block: calc(var(--hdr) + clamp(40px, 12vh, 130px)) clamp(84px, 9vw, 150px); }
.svc { margin-top: clamp(48px, 6vw, 96px); border-bottom: 1px solid var(--rule-2); }
.svc > li {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 64px minmax(0, 5fr) minmax(0, 5fr) 120px; column-gap: 24px; row-gap: 12px;
  align-items: start; padding: 26px 96px 28px 0; border-top: 1px solid var(--rule-2); transition: color .45s var(--ease);
}
.svc > li::before { content: ''; position: absolute; inset: -1px calc(-1 * min(var(--gut), 18px)); z-index: -1; background: #000; transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.svc__no { padding-top: .55em; font: 500 12px/1 var(--mono); color: var(--mut); }
.svc__no::before { content: '('; }
.svc__no::after { content: ')'; }
.svc__name { grid-column: 2; font-size: clamp(24px, 2.4vw, 38px); font-weight: 500; line-height: 1.05; letter-spacing: -.04em; transition: transform .6s var(--ease); }
.svc__desc { grid-column: 3; max-width: 34em; font-size: 15.5px; line-height: 1.5; color: var(--mut); padding-top: .35em; }
.svc__list { grid-column: 3; display: flex; flex-wrap: wrap; gap: 4px 0; font: 500 11px/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.svc__list li:not(:last-child)::after { content: '/'; margin: 0 .7em; color: var(--mut); }
.svc__ill { grid-column: 4; grid-row: 1 / span 2; justify-self: end; width: 100%; max-width: 120px; opacity: .9; }
.svc__ill svg { width: 100%; height: auto; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.svc__ill .soft { opacity: .4; }
.svc__ill .af { fill: currentColor; stroke: none; }
.svc__ill .a { stroke-width: 2; }
@media (hover: hover) and (pointer: fine) {
  .svc > li:hover { color: #fff; --mut: #b0b0b0; --rule-2: rgba(255, 255, 255, .3); }
  .svc > li:hover::before { transform: none; }
  .svc > li:hover .svc__name { transform: translateX(8px); }
}

/* ── Процесс (чёрная) ──────────────────────────────── */
.process { padding-block: calc(var(--hdr) + clamp(40px, 12vh, 130px)) clamp(84px, 9vw, 150px); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(48px, 6vw, 96px); }
.step { padding-top: 18px; border-top: 1px solid var(--rule-2); }
.step__no { display: block; font: 400 clamp(48px, 5vw, 84px)/.9 var(--mono); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.step h3 { margin-top: clamp(28px, 3vw, 48px); font-size: clamp(20px, 1.7vw, 26px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.step p { margin-top: 10px; max-width: 24em; color: var(--mut); font-size: 15px; line-height: 1.5; }
.prin { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; margin-top: clamp(64px, 7vw, 112px); }
.prin > .label { grid-column: 1 / span 3; padding-top: 18px; }
.prin__list { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.prin__list li { display: grid; align-content: start; gap: 6px; padding-top: 18px; border-top: 1px solid var(--rule); }
.prin__list b { font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.prin__list span { color: var(--mut); font-size: 14px; line-height: 1.4; }

/* ── Контакт (белая) ───────────────────────────────── */
.contact { padding-block: calc(var(--hdr) + clamp(40px, 12vh, 130px)) clamp(84px, 9vw, 140px); }
.contact__title { margin-top: 22px; font-size: clamp(42px, 7vw, 120px); font-weight: 500; line-height: .97; letter-spacing: -.035em; text-wrap: balance; }
.contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; margin-top: clamp(48px, 6vw, 96px); align-items: end; }
.mail { grid-column: 1 / span 7; min-width: 0; }
.mail__link { display: inline-block; max-width: 100%; font-size: clamp(22px, 3.3vw, 52px); font-weight: 500; letter-spacing: -.04em; line-height: 1.15; overflow-wrap: anywhere; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; padding-bottom: 4px; transition: background-size .6s var(--ease); }
.mail__link:hover { background-size: 0 2px; background-position: 100% 100%; }
.mail__link span { color: var(--mut); }
.mail__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.contact__side { grid-column: 9 / -1; }
.contact__lead { font-size: 17px; line-height: 1.45; letter-spacing: -.01em; }
.facts { margin-top: 20px; border-top: 1px solid var(--rule-2); }
.facts li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; }
.facts svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── Подвал: бегущая фраза ─────────────────────────── */
.ftr { padding-top: clamp(56px, 7vw, 112px); }
.marquee { overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee__track span { padding-right: .32em; font-size: clamp(64px, 12.5vw, 220px); font-weight: 500; line-height: 1.02; letter-spacing: -.035em; white-space: nowrap; }
.marquee__track span::after { content: '—'; margin-left: .32em; font-weight: 400; }
.marquee__static { display: none; width: max-content; padding-inline: var(--gut); font-size: calc(100cqw * var(--mk, .1)); font-weight: 500; line-height: 1.05; letter-spacing: -.035em; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ftr__in { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-top: clamp(32px, 4vw, 64px); position: relative; padding-block: 22px max(24px, env(safe-area-inset-bottom)); font: 500 11px/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--mut); }
/* Линия над подвалом — по краям текста, а не по полям .wrap */
.ftr__in::before { content: ''; position: absolute; top: 0; left: var(--gut); right: var(--gut); height: 1px; background: var(--rule); }
.ftr__in > span:first-child, .ftr__in a { color: var(--fg); white-space: nowrap; }
.ftr__note { flex: 0 1 46em; text-align: center; }

/* ── Круглая кнопка «Написать» ─────────────────────── */
.fab {
  position: fixed; right: var(--gut-x); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 50;
  display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%;
  background: #fff; color: #000; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1);
  font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .5s var(--ease), opacity .4s var(--ease);
}
.fab[data-tone="light"] { background: #000; color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); }
.fab.is-hidden { transform: scale(.4); opacity: 0; pointer-events: none; }
.fab:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .fab:hover { transform: scale(1.08); } }
.fab.is-mag { transition: background-color .35s, color .35s, opacity .4s; }

/* ── Волна между полосами (assets/sig.js): нижний край полосы провисает дугой и выпрямляется при входе в кадр ── */
.has-curves .band { position: relative; }
.curve { position: absolute; left: 0; right: 0; top: calc(100% - 1px); z-index: 2; height: clamp(34px, 6.5vw, 112px); color: var(--bg); transform-origin: 50% 0; pointer-events: none; }
.curve svg { display: block; width: 100%; height: 100%; fill: currentColor; }
/* Касание / узкий экран: одна анимация при подходе к экрану, дальше — прямая граница */
@media (pointer: coarse), (max-width: 860px) {
  .curve { height: clamp(26px, 8vw, 56px); transition: transform 1.25s var(--ease-io); }
  .curve.is-flat { transform: scaleY(0); }
}

/* ── Появление при скролле ─────────────────────────── */
.js [data-rv] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-rv].is-in { opacity: 1; transform: none; }

/* ── Адаптив ───────────────────────────────────────── */
@media (max-width: 1280px) {
  .tab { padding-right: 12px; gap: 8px; }
  .tab + .tab { padding-left: 12px; }
  .tab__sub { font-size: 14px; }
}
/* 7 вкладок: на средних экранах — указатель в две строки (4 + 3), у каждой строки своя линейка */
@media (min-width: 861px) and (max-width: 1180px) {
  .tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 0; }
  .tab { border-top: 1px solid var(--rule-2); padding-right: 16px; }
  .tab + .tab { padding-left: 16px; }
  .tab:nth-child(4n + 1) { padding-left: 0; border-left: 0; }
  .tab__sub { font-size: 15px; }
  .tabs__bar { top: 0; }
}
@media (max-width: 1180px) {
  .panel { grid-template-columns: minmax(0, 1fr); }
  .stage__wide { display: none; }
  .stage__narrow { display: inline; }
  .info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; align-items: start; }
  .info > .info__head { grid-column: 1; grid-row: 1 / span 3; }
  .info > .info__body { grid-column: 2; }
  .tabs__keys { display: none; }
  .aside > .label { grid-column: 1 / -1; }
  .aside__text { grid-column: 1 / span 6; }
  .aside__img { grid-column: 8 / -1; }
  .sec-head > .big, .sec-lead { grid-column: 5 / -1; }
  .prin > .label { grid-column: 1 / -1; padding-top: 0; margin-bottom: 4px; }
  .prin__list { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  .svc > li { grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1.2fr) 96px; }
  .contact__grid .mail { grid-column: 1 / -1; }
  .contact__side { grid-column: 1 / span 8; }
}
@media (max-width: 960px) {
  .aside__text { grid-column: 1 / span 7; }
  .aside__img { grid-column: 8 / -1; }
  .sec-head > .label { grid-column: 1 / -1; padding-top: 0; margin-bottom: 20px; }
  .sec-head > .big, .sec-lead { grid-column: 1 / span 10; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .prin__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .caps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); column-gap: 24px; padding: 20px 0 24px; border-top-color: var(--rule-2); }
  .cap:first-child { border-top-color: var(--fg); }
  .cap__top { grid-column: 1 / -1; margin-bottom: 14px; }
  .cap p { grid-column: 2; grid-row: 2 / span 3; margin: 0; }
  .cap .chips { grid-column: 1; margin-top: 12px; }
  .contact__side { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  /* Вкладки → лента «чипов», прилипает под шапкой; шапка получает фон своего тона */
  :root { --tab-gap: 0px; }
  .hdr.is-scrolled { background: #000; }
  .hdr.is-scrolled[data-tone="light"] { background: #fff; }
  .hdr.is-menu { background: transparent !important; }
  .tabs-wrap { position: sticky; top: calc(var(--hdr) - 1px); z-index: 20; margin-inline: calc(-1 * var(--gut)); background: var(--bg); border-bottom: 1px solid var(--rule); }
  .tabs { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 10px var(--gut); border: 0; scroll-padding-inline: var(--gut);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 30px), transparent); mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 30px), transparent); }
  .tabs::-webkit-scrollbar { display: none; }
  .tab, .tab + .tab { flex: none; display: flex; align-items: center; gap: 8px; padding: 11px 16px; border: 1px solid var(--rule-2); border-radius: 999px; background: var(--bg); color: var(--fg); }
  .tab__sub { display: none; }
  .tab__name { font-size: 12px; }
  .tab[aria-selected="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
  /* шапка уехала — лента вкладок прилипает к самому верху (меняется только при переключении, не на каждом кадре) */
  html.hdr-up .tabs-wrap { top: -1px; }
  .svc > li { padding-right: 64px; }
  .info__actions { padding-right: 64px; }
  .tab:focus-visible { outline-offset: 2px; border-radius: 999px; }
  .tabs__bar { display: none; }
  .panel { padding-top: 18px; }
  .info { display: block; }
  .bots { grid-template-columns: minmax(0, 1fr); }
  .term__body { font-size: 12px; padding: 14px 16px; }
  .panel a, .panel button, .panel [tabindex] { scroll-margin-top: 130px; }
  .reel { aspect-ratio: 4 / 5; }
  .reel__row { display: block; padding: 0; }
  .reel__item, .reel__item:nth-child(2), .reel__item:nth-child(3) { position: absolute; width: 74%; }
  .reel__item:nth-child(1) { left: 6%; top: 6%; }
  .reel__item:nth-child(2) { left: auto; right: 6%; top: 37%; z-index: 2; }
  .reel__item:nth-child(3) { left: 10%; top: 68%; }
  .aside > .label { grid-column: 1 / -1; }
  .aside__text, .aside__img { grid-column: 1 / -1; }
  .aside__img { max-width: 520px; }
  .work__end { grid-template-columns: minmax(0, 1fr) auto; }
  .work__meta { grid-column: 1 / -1; justify-self: start; text-align: left; }
}
@media (min-width: 861px) and (max-width: 1180px) {
  .term__body { font-size: 12px; line-height: 1.6; padding: 12px 16px; }
  .tg__head { padding: 10px 14px; }
  .tg__body { gap: 5px; padding: 10px 12px; }
  .msg { padding: 6px 11px 5px; }
  .msg__kb span { padding: 7px 10px; }
}
@media (max-width: 700px) {
  :root { --hdr: 58px; }
  body { font-size: 15.5px; }
  .hero { min-height: 88vh; min-height: 88svh; }
  .hero__top { padding-top: 18px; }
  .hero__foot { grid-template-columns: minmax(0, 1fr) auto; row-gap: 18px; }
  .hero__now { grid-column: 1 / -1; grid-row: 1; justify-items: start; gap: 8px; }
  .hero__links .lang { margin-left: 6px; }
  .sec-head > .big, .sec-lead { grid-column: 1 / -1; }
  .stage__bar { flex-wrap: wrap; row-gap: 10px; }
  .stage__live { flex: 1 1 100%; order: -1; }
  .seg { margin-left: 0; }
  .stage__open { margin-left: auto; }
  .stage__bar .bd-btn { margin-left: 0; }
  .stage__hint span + span { display: none; }
  .comp { padding: 0 10% 10% 0; }
  .comp__phone { width: 30%; border-radius: 18px; padding: 4px; }
  .comp__phone img { border-radius: 14px; }
  .svc > li { grid-template-columns: minmax(0, 1fr) 72px; column-gap: 16px; row-gap: 10px; padding: 22px 72px 24px 0; }
  .svc__no { grid-column: 1; grid-row: 1; padding-top: 0; }
  .svc__name { grid-column: 1; grid-row: 2; }
  .svc__ill { grid-column: 2; grid-row: 1 / span 2; align-self: end; max-width: 72px; }
  .svc__desc, .svc__list { grid-column: 1 / -1; padding-top: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 34px; }
  .step { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 14px; }
  .step__no { grid-row: 1 / span 2; font-size: 56px; }
  .step h3 { margin-top: 2px; }
  .prin__list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 22px; }
  .cap { display: block; }
  .cap p { margin: 10px 0 14px; }
  .mail__actions .pill { flex: 1 1 auto; }
  .ftr__in { flex-direction: column; gap: 10px; }
  .ftr__note { flex: none; text-align: left; }
  .fab { width: 56px; height: 56px; font-size: 9.5px; letter-spacing: .04em; }
  .contact__title { line-height: 1.03; }
  /* текст шагов не уходит под круглую кнопку */
  .step p { padding-right: 64px; }
}
@media (max-width: 520px) {
  .bd-btn { padding: 0 12px 0 10px; }
  .bd-btn__l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bd-btn__s { display: inline; }
}
/* телефон: «Детали» — круглая кнопка со знаком «+» (подпись — в aria-label), ряд не переносится */
@media (max-width: 430px) {
  .bd-btn { width: 38px; padding: 0; justify-content: center; }
  .bd-btn__s { display: none; }
}
@media (max-width: 380px) { .stage__bar .seg button { padding: 0 9px; gap: 6px; } .stage__bar { column-gap: 8px; } }
@media (max-width: 420px) {
  .term__body { font-size: 11px; padding: 12px 14px; }
  .seg button { padding: 0 11px; }
  .hero__links { gap: 6px; }
}
@media (max-width: 374px) {
  .hero__links > a, .hero__links > span { display: none; }
  .hero__links .lang { margin-left: 0; }
}

/* ── Производительность ────────────────────────────── */
/* Пауза бесконечных анимаций вне экрана (класс ставит скрипт) */
.is-off .marquee__track, .stage:has(> .floor.is-off) .stage__live i::after, .is-off.marquee .marquee__track { animation-play-state: paused; }
/* Телефоны и планшеты: без больших бесконечных анимаций — бегущая строка неподвижна */
@media (pointer: coarse), (max-width: 860px) {
  .marquee__track { animation: none; display: none; }
  .marquee { container-type: inline-size; }
  .marquee__static { display: block; }
  .stage__live i::after { animation: none; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-rv] { opacity: 1; transform: none; }
  .marquee__track { animation: none !important; }
  .js .hero .ml, .js .hero .hero__top > *, .js .hero .hero__foot > * { transform: none; opacity: 1; }
  .js .hero .mark { opacity: 1; }
  .pill, .fab { translate: none !important; }
}
@media (forced-colors: active) {
  .pill, .lang button, .seg button, .fab { border: 1px solid ButtonText; }
}

/* ══ Слой движения (assets/motion.js ставит html.mo; при «уменьшении движения» не включается) ══
   Только transform/opacity. Появления — одноразовые, по IntersectionObserver. */

/* Заголовки: слова в масках поднимаются строка за строкой (--d считает скрипт) */
.mo .sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.mo .sw__i { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease) var(--d, 0ms); }
.mo .is-in .sw__i, .mo .is-in.is-split .sw__i, .mo .hero.is-ready .sw__i { transform: none; }
/* Шапка секции целиком не «всплывает» — по очереди появляются её части */
.mo .sec-head[data-rv] { opacity: 1; transform: none; }
.mo .sec-head[data-rv] > :not(.big) { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease) .1s, transform .9s var(--ease) .1s; }
.mo .sec-head[data-rv] > .sec-lead { transition-delay: .35s; }
.mo .sec-head[data-rv].is-in > :not(.big) { opacity: 1; transform: none; }
.mo .about__title[data-rv], .mo .contact__title[data-rv] { opacity: 1; transform: none; }

/* Слово-разделитель: линия под ним прочерчивается слева направо; на телефоне само слово — одноразово (класс .gw-io от sig.js) */
.mo .gw::after { transform: scaleX(0); transition: transform 1.4s var(--ease-io) .25s; }
.mo .gw.is-in::after { transform: none; }
.mo.gw-io .gw__w { transform: translate3d(0, 24%, 0) scale(.56, 1.14); transition: transform 1.3s var(--ease); }
.mo.gw-io .gw.is-in .gw__w { transform: none; }

/* Чёрная карточка с работами: белая шторка уходит вверх, превью выплывают следом */
.mo .reel[data-rv] { opacity: 1; transform: none; }
.mo .reel::after { content: ''; position: absolute; inset: -1px; z-index: 3; background: var(--bg); transform-origin: 50% 0; transition: transform 1.2s var(--ease-io); pointer-events: none; }
.mo .reel.is-in::after { transform: scaleY(0); }
.mo .reel__item { opacity: 0; transform: translate3d(0, 48px, 0) scale(.96); transition: opacity 1s var(--ease), transform 1.3s var(--ease); }
.mo .reel.is-in .reel__item { opacity: 1; transform: none; transition-delay: .5s; }
.mo .reel.is-in .reel__item:nth-child(2) { transition-delay: .62s; }
.mo .reel.is-in .reel__item:nth-child(3) { transition-delay: .74s; }

/* Список фактов в контактах — построчно */
.mo .contact__side[data-rv] .facts li { opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.mo .contact__side.is-in .facts li { opacity: 1; transform: none; transition-delay: .15s; }
.mo .contact__side.is-in .facts li:nth-child(2) { transition-delay: .25s; }
.mo .contact__side.is-in .facts li:nth-child(3) { transition-delay: .35s; }
.mo .contact__side.is-in .facts li:nth-child(4) { transition-delay: .45s; }
.mo .contact__side.is-in .facts li:nth-child(5) { transition-delay: .55s; }

/* Картинки: шторка цвета подложки уходит вверх, кадр слегка «отъезжает» */
.mo .wipe { position: relative; }
.mo .wipe::after { content: ''; position: absolute; inset: -1px; z-index: 3; background: var(--wipe, var(--bg)); transform-origin: 50% 0; transition: transform 1.1s var(--ease-io) var(--d, 0ms); pointer-events: none; }
.mo .is-in .wipe::after, .mo .is-in.wipe::after, .mo [data-rv].is-in > .wipe::after, .mo .is-in > .aside__fig::after { transform: scaleY(0); }
/* Кадр «Реальный продукт»: шторка уходит вбок, подпись проявляется следом */
.mo .aside__fig.wipe::after { transform-origin: 100% 50%; }
.mo .aside__img.is-in > .aside__fig.wipe::after { transform: scaleX(0); }
.mo .aside__img[data-rv] .aside__cap { opacity: 0; transition: opacity .8s var(--ease) .7s; }
.mo .aside__img.is-in .aside__cap { opacity: 1; }
.mo .wipe img { scale: 1.2; transition: transform 1.1s var(--ease), scale 1.6s var(--ease) var(--d, 0ms); }
.mo .is-in .wipe img { scale: 1; }

/* Линии строк услуг, шагов и принципов прорисовываются слева направо (не на касании: десятки псевдоэлементов дорого пересчитывать при прокрутке телефона) */
@media not (pointer: coarse) {
  .mo .svc > li, .mo .step, .mo .prin__list li { border-top-color: transparent; }
  .mo .svc > li::after, .mo .step::after, .mo .prin__list li::after { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--rule-2); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.3s var(--ease) .1s; pointer-events: none; }
  .mo .prin__list li::after { background: var(--rule); }
  .mo .step, .mo .prin__list li { position: relative; }
  .mo .svc > li.is-in::after, .mo .step.is-in::after, .mo .prin.is-in .prin__list li::after { transform: none; }
  .mo .prin.is-in .prin__list li:nth-child(2)::after { transition-delay: .18s; }
  .mo .prin.is-in .prin__list li:nth-child(3)::after { transition-delay: .26s; }
  .mo .prin.is-in .prin__list li:nth-child(4)::after { transition-delay: .34s; }
  .mo .prin.is-in .prin__list li:nth-child(5)::after { transition-delay: .42s; }
}

/* Статус «свободен»: мягкий пульс точки */
.hero__status i { position: relative; }
/* только мышь: на телефоне без бесконечных анимаций */
@media (hover: hover) and (pointer: fine) { .mo .hero__status i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: pulse 2.4s var(--ease) infinite; } }
@keyframes pulse { from { transform: scale(1); opacity: .6; } 70%, to { transform: scale(3.2); opacity: 0; } }

/* Мышь: микровзаимодействия */
@media (hover: hover) and (pointer: fine) {
  /* Надпись на «таблетке» прокручивается: снизу въезжает её копия (тень текста) */
  .mo .pill > span:first-child { display: inline-block; text-shadow: 0 2.4em currentColor; transition: transform .55s var(--ease); }
  .mo .pill:hover > span:first-child { transform: translateY(-2.4em); }
  .mo .tab__sub { transition: transform .5s var(--ease); }
  .mo .tab:not([aria-selected="true"]):hover .tab__sub { transform: translateX(6px); }
  .mo .step__no { transition: transform .6s var(--ease); }
  .mo .step:hover .step__no { transform: translateX(10px); }
  .mo .prin__list li b { display: inline-block; transition: transform .5s var(--ease); }
  .mo .prin__list li:hover b { transform: translateX(6px); }
  .mo .facts li svg { transition: transform .5s var(--ease); }
  .mo .facts li:hover svg { transform: scale(1.25) rotate(-8deg); }
}
/* Широкий экран + мышь: параллакс (кадр «Подхода» с запасом по краям, знак первого экрана) */
@media (hover: hover) and (pointer: fine) and (min-width: 861px) {
  .mo .aside__fig img { will-change: translate; }
  .mo .is-in .aside__fig.wipe img { scale: 1.1; }
  /* Бегущую строку двигает скрипт (скорость растёт от прокрутки) */
  .mq-js .marquee__track { animation: none; will-change: transform; }
  /* Точка-курсор: инвертирует то, что под ней, и растёт над ссылками */
  .cur { position: fixed; left: 0; top: 0; z-index: 400; width: 0; height: 0; pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: opacity .3s; }
  .cur::before { content: ''; position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; transition: transform .45s var(--ease); }
  .cur.is-on { opacity: 1; }
  .cur.is-big::before { transform: scale(4.6); }
  .cur.is-press::before { transform: scale(.6); }
  .cur.is-big.is-press::before { transform: scale(3.8); }
}
.cur { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 861px) { .mo .cur { display: block; } }

/* ── Бриф проекта (контакт) ── */
.mail__actions .pill svg { width: 17px; height: 17px; }
.brief { margin-top: clamp(64px, 8vw, 128px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--fg); }
.brief__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 24px; }
.brief__hint { max-width: 46ch; color: var(--mut); font-size: 15px; line-height: 1.45; }
.brief__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 24px; margin-top: clamp(28px, 3vw, 44px); }
.fld { position: relative; display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.fld--wide { grid-column: 1 / -1; }
.fld label, .fld legend { padding: 0; font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.fld legend { margin-bottom: 12px; }
.fld__opt { color: var(--mut); text-transform: none; letter-spacing: .02em; }
.fld input[type="text"], .fld textarea {
  width: 100%; padding: 6px 0 12px; border: 0; border-bottom: 1px solid var(--rule-2); border-radius: 0; background: transparent; color: var(--fg);
  font: 500 clamp(18px, 1.6vw, 24px)/1.35 var(--sans, inherit); letter-spacing: -.02em; transition: border-color .3s var(--ease);
}
.fld textarea { resize: vertical; min-height: 120px; }
.fld input::placeholder, .fld textarea::placeholder { color: var(--mut); opacity: .75; }
.fld input:focus, .fld textarea:focus { outline: none; border-bottom-color: var(--fg); box-shadow: 0 1px 0 0 var(--fg); }
.fld input:focus-visible, .fld textarea:focus-visible { outline: none; }
.fld [aria-invalid="true"] { border-bottom-color: #c4321f; box-shadow: 0 1px 0 0 #c4321f; }
.fld__err { min-height: 1em; margin-top: -2px; color: #b02a17; font: 500 12px/1.3 var(--mono); letter-spacing: .02em; }
.fld__err:empty { display: none; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid var(--rule-2); border-radius: 999px; font-size: 14px; letter-spacing: -.01em; transition: background-color .25s, color .25s, border-color .25s; user-select: none; }
.opt input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.opt input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 2px; }
@media (hover: hover) { .opt:hover span { border-color: var(--fg); } }
.brief__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.brief__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 36px; }
.brief__foot .pill[disabled] { opacity: .6; pointer-events: none; }
.brief__note { color: var(--mut); font-size: 14px; }
.brief__note a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.brief__status { margin-top: 18px; font-size: 16px; line-height: 1.45; }
.brief__status:empty { display: none; }
.brief.is-sent .brief__status { padding: 14px 18px; background: var(--fg); color: var(--bg); border-radius: 2px; }
.brief.is-error .brief__status { color: #b02a17; }
@media (max-width: 700px) {
  .brief__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .brief__foot .pill { width: 100%; justify-content: center; }
  .opt span { height: 38px; padding: 0 14px; font-size: 13.5px; }
}

/* ══ Этап 2: счётчики-одометры, открытие кейса, видео-превью, курсор с подписью, звук, пасхалка ══ */

/* Счётчики «01 / 07»: цифры прокручиваются в окне высотой в одну цифру (motion.js). Только transform */
.fl__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fl { display: inline-flex; align-items: baseline; font-variant-numeric: tabular-nums; }
.fd { --fh: 1.12em; display: inline-block; height: var(--fh); overflow: hidden; vertical-align: top; }
.fd__s { display: block; will-change: transform; }
.fd__s i { display: block; height: var(--fh); line-height: var(--fh); font-style: normal; }
.fc { white-space: pre; }
.step__no .fl, .info__count .fl, .work__count .fl, .svc__no .fl { line-height: 1.12; }

/* Открытие кейса: подиум раскрывается из тонкой горизонтальной щели */
.panel.is-entering .floor { animation: slit 1.05s var(--ease-io) both; }
@keyframes slit {
  0% { clip-path: inset(50% 50% 50% 50%); }
  32% { clip-path: inset(calc(50% - 1px) 0 calc(50% - 1px) 0); }
  100% { clip-path: inset(0 0 0 0); }
}
.panel { position: relative; }
/* Имя проекта огромными буквами поперёк панели, затем садится в заголовок (site.js, FLIP) */
.cine {
  position: absolute; left: 0; top: 0; z-index: 30; display: flex; white-space: nowrap; pointer-events: none;
  font-size: clamp(34px, 3.3vw, 56px); font-weight: 500; line-height: .98; letter-spacing: -.05em;
  color: #fff; mix-blend-mode: difference; transform-origin: 0 0; will-change: transform;
}
.cine__c { display: inline-block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.cine__c > span { display: inline-block; transform: translate3d(0, 105%, 0); }
.cine.is-in .cine__c > span { transform: none; transition: transform .62s cubic-bezier(.2, .8, .1, 1) calc(var(--i) * 26ms); }

/* Видео-превью в рамке (пока живой сайт грузится) и в чёрной карточке работ */
.device__vid { position: absolute; left: 0; right: 0; bottom: 0; top: calc(var(--sb) * var(--s) * 1px); width: 100%; height: calc(var(--h) * var(--s) * 1px); object-fit: cover; object-position: top center; opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.stage.has-vid .device__vid { opacity: 1; }
.stage.is-loaded .device__vid { opacity: 0; }
.reel__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transition: opacity .7s var(--ease), transform 1.1s var(--ease); pointer-events: none; }
.reel__vid.is-playing { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .reel__item:hover .reel__vid { transform: scale(1.045); } }

/* Курсор: над работами, демо, почтой и кольцом точка вырастает в круг с моно-подписью */
.cur__c { position: absolute; left: -46px; top: -46px; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #000; opacity: 0; transform: scale(.1); transition: transform .5s var(--ease), opacity .2s var(--ease); }
.cur[data-tone="light"] .cur__c { background: #000; color: #fff; }
.cur__l { max-width: 70px; font: 500 9.5px/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; text-align: center; }
.cur.is-label { mix-blend-mode: normal; }
.cur.is-label::before { transform: scale(0); }
.cur.is-label .cur__c { opacity: 1; transform: none; }
.cur.is-label.is-press .cur__c { transform: scale(.9); }
/* «Открыть» и «Копировать» — круг справа-снизу от указателя, чтобы текст под ним читался */
.cur[data-kind="open"] .cur__c, .cur[data-kind="copy"] .cur__c { left: 14px; top: 14px; width: 78px; height: 78px; transform-origin: 0 0; }
.cur[data-kind="open"] .cur__l, .cur[data-kind="copy"] .cur__l { max-width: 62px; font-size: 9px; }
/* «Играть» над кольцом — маленькая моно-плашка сбоку, кольцо остаётся видно целиком */
.cur[data-kind="play"] .cur__c { left: 20px; top: 20px; width: auto; height: 24px; padding: 0 10px; border-radius: 12px; transform-origin: 0 0; }
.cur[data-kind="play"] .cur__l { max-width: none; white-space: nowrap; }
.cur[data-kind="play"].is-label::before, .cur[data-kind="open"].is-label::before, .cur[data-kind="copy"].is-label::before { transform: scale(.6); }
.cur[data-tone="light"].is-label::before { background: #000; }
/* подсказку «Нажмите, чтобы управлять» показывает курсор; с клавиатуры (фокус) — сама плашка */
.mo.cur-on .device:hover .device__shield:not(:focus-visible) .device__hint { opacity: 0; }
.brand__o.is-poke { cursor: pointer; }

/* Переключатель звука в шапке: моно-подпись и четыре полоски */
.snd { display: inline-flex; align-items: center; gap: 8px; height: 44px; margin-left: auto; margin-right: clamp(10px, 1.6vw, 26px); font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.snd[hidden] { display: none; }
.snd__eq { display: inline-flex; align-items: center; gap: 2px; height: 11px; }
.snd__eq b { display: block; width: 2px; height: 11px; background: currentColor; transform: scaleY(.18); transition: transform .45s var(--ease); }
.snd.is-on .snd__eq b:nth-child(1) { transform: scaleY(.55); }
.snd.is-on .snd__eq b:nth-child(2) { transform: scaleY(1); }
.snd.is-on .snd__eq b:nth-child(3) { transform: scaleY(.7); }
.snd.is-on .snd__eq b:nth-child(4) { transform: scaleY(.38); }
.snd:not(.is-on) .snd__l { opacity: .72; }
@media (max-width: 420px) { .snd { gap: 6px; font-size: 10px; letter-spacing: .04em; } }

/* Пасхалка: плашка внизу экрана; буквы знака в шапке подпрыгивают; CSS-кольцо (без WebGL) — подскок */
.toast { position: fixed; left: 50%; bottom: calc(max(24px, env(safe-area-inset-bottom)) + 72px); z-index: 90; padding: 10px 16px; border-radius: 999px; background: #fff; color: #000; box-shadow: 0 0 0 1px rgba(0, 0, 0, .14), 0 14px 40px rgba(0, 0, 0, .28); font: 500 12px/1 var(--mono); letter-spacing: .04em; white-space: nowrap; pointer-events: none; opacity: 0; transform: translate3d(-50%, 14px, 0); transition: opacity .35s var(--ease), transform .5s var(--ease); }
.toast.is-on { opacity: 1; transform: translate3d(-50%, 0, 0); }
.hdr.is-egg .brand__e { animation: hop .7s var(--ease) both; }
.hdr.is-egg .brand__q { animation: hop .7s var(--ease) .14s both; }
@keyframes hop { 0% { transform: none; } 35% { transform: translateY(-38%); } 62% { transform: translateY(6%); } 80% { transform: translateY(-8%); } 100% { transform: none; } }
.disc.is-egg { animation: discEgg 1.6s var(--ease) both; }
@keyframes discEgg { 0% { transform: none; } 20% { transform: translateY(-30%) rotate(260deg); } 40% { transform: translateY(4%) rotate(520deg) scale(1.06, .94); } 60% { transform: translateY(-12%) rotate(640deg); } 100% { transform: rotate(720deg); } }

@media (prefers-reduced-motion: reduce) {
  .panel.is-entering .floor { animation: none; }
  .cine { display: none; }
}
