/* ============ TOKENS ============ */
:root {
  --bg: #0a0a0d;
  --bg-2: #121217;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f3f3f5;
  --muted: #9a9aa6;
  --lime: #d4ff3f;
  --violet: #7c5cff;
  --pink: #ff4fd8;
  --orange: #ff7a3d;

  --grad: linear-gradient(100deg, var(--violet) 0%, var(--pink) 100%);

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;

  --radius: 28px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============ BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  /* лёгкий шум для «дорогой» фактуры — прямо в фоне страницы: отдельный
     полноэкранный слой поверх всего видеокарта накладывала каждый кадр */
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.05; }
p { margin: 0; }
em { font-style: normal; color: var(--lime); }
::selection { background: var(--lime); color: var(--bg); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Полоса прокрутки в стиле сайта: тонкая, фиолетово-розовая, при наведении — лайм.
   Chrome, Edge, Safari, Яндекс Браузер — через ::-webkit-scrollbar (с градиентом),
   Firefox — через scrollbar-color (только сплошной цвет). */
@media (hover: hover) and (pointer: fine) {
  ::-webkit-scrollbar { width: 12px; height: 12px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb {
    border: 3px solid var(--bg); border-radius: 999px;
    background: linear-gradient(180deg, var(--violet), var(--pink));
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--lime); }
  ::-webkit-scrollbar-corner { background: var(--bg); }
  @supports (-moz-appearance: none) {
    html { scrollbar-width: thin; scrollbar-color: var(--violet) var(--bg); }
  }
}

/* ============ BUTTONS / CHIPS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 26px;
  border-radius: 999px;
  font-weight: 700; font-size: 15px;
  white-space: nowrap;
  transition: transform .4s var(--ease), background .3s, color .3s, box-shadow .4s;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translate(3px, -3px); }
.btn--lime { background: var(--lime); color: var(--bg); box-shadow: 0 10px 40px -10px rgba(212, 255, 63, .55); }
.btn--gradient { background: var(--grad); color: #fff; box-shadow: 0 10px 40px -12px rgba(255, 79, 216, .6); }
.btn--ghost { border: 1px solid var(--line); background: var(--surface); }
.btn--ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,.2); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(22, 20, 32, .82);
  font-size: 14px; font-weight: 600;
}

.ico {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 10px;
  font-style: normal; font-family: var(--font-display);
  font-size: 12px; font-weight: 900; line-height: 1;
  flex-shrink: 0;
}
.ico--tilda { background: #ff8562; color: #1a0e0a; font-size: 15px; }
.ico--code { background: var(--lime); color: var(--bg); font-size: 10px; }
.ico--ps { background: #0f1e36; color: #31a8ff; border: 1px solid #31a8ff55; }
.ico--ai { background: var(--violet); color: #fff; font-size: 14px; }
.ico--react { background: #10141f; color: #61dafb; border: 1px solid #61dafb44; }
.ico--react svg { width: 20px; height: 20px; }
.ico--js { background: #f7df1e; color: #111; font-size: 11px; align-items: end; justify-items: end; padding: 0 4px 3px 0; }
.ico--figma {
  background:
    radial-gradient(circle at 70% 50%, #1abcfe 0 5px, transparent 5.5px),
    conic-gradient(from 0deg at 50% 50%, #f24e1e 0 25%, #ff7262 0 50%, #a259ff 0 75%, #0acf83 0);
}

.label {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.h2 { font-size: clamp(34px, 5.4vw, 76px); letter-spacing: -.02em; margin-top: 14px; }
.hl { color: var(--lime); }
.hl--violet { color: #a996ff; }

.glass {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.015));
  border-radius: var(--radius);
}

/* ============ CURSOR ============ */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 200;
  width: 56px; height: 56px; margin: -28px 0 0 -28px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}
.cursor::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--lime);
  transform: scale(.25);
  transition: transform .35s var(--ease), opacity .35s;
}
.cursor.is-active { opacity: 1; }
.cursor.is-hover::after { transform: scale(1); opacity: .35; }
@media (hover: none) { .cursor { display: none; } }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 16px; left: 50%; z-index: 50;
  transform: translateX(-50%);
  width: min(var(--maxw), calc(100% - 2 * var(--gutter)));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .4s, border-color .4s;
}
/* без backdrop-filter: при прокрутке размытие пересчитывалось каждый кадр */
.nav.is-scrolled { background: rgba(16, 15, 22, .9); border-color: var(--line); }
.nav__logo { font-family: var(--font-display); font-weight: 900; font-size: 22px; letter-spacing: -.02em; }
.nav__logo span { color: var(--lime); }
.nav__links {
  display: flex; gap: 4px;
  padding: 5px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
}
.nav__links a {
  padding: 9px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--muted);
  transition: color .3s, background .3s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: var(--surface-2); }
.nav__cta { height: 46px; padding: 0 22px; }
.nav__burger { display: none; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 120px var(--gutter) 40px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  justify-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__glow {
  position: absolute; z-index: -2;
  left: 50%; top: 58%;
  width: 900px; height: 700px; max-width: 140vw;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(closest-side, rgba(124, 92, 255, .45), transparent 70%),
    radial-gradient(closest-side at 70% 70%, rgba(255, 79, 216, .25), transparent 70%);
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime);
  position: relative;
}
.dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--lime);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(3.4); opacity: 0; } }

.hero__title {
  position: relative; z-index: -1;
  margin-top: 22px;
  font-weight: 900;
  font-size: clamp(56px, 11.2vw, 196px);
  line-height: .88;
  letter-spacing: -.035em;
  text-transform: uppercase;
  text-align: center;
  display: flex; flex-wrap: wrap; justify-content: center; column-gap: .25em;
  color: var(--text);
}
.hero__line { display: inline-block; white-space: nowrap; }
.hero__line .ch {
  display: inline-block;
  transform: translateY(110%) rotate(6deg);
  opacity: 0;
  transition: transform 1.1s var(--ease), opacity 1.1s var(--ease);
  transition-delay: calc(var(--i) * 35ms + 150ms);
  color: transparent;
  background-image: linear-gradient(180deg, #fff 35%, rgba(255,255,255,.4) 100%);
  -webkit-background-clip: text; background-clip: text;
  /* background-clip: text красит только внутри блока буквы, а при line-height .88
     хвост запятой выходит за него — даём запас и компенсируем отрицательным отступом */
  padding: 0 .06em .2em;
  margin: 0 -.06em -.2em;
}
.is-loaded .hero__line .ch { transform: none; opacity: 1; }

.hero__stage {
  position: relative;
  align-self: start;
  width: min(820px, 100%);
  height: clamp(420px, 66svh, 720px);
  margin-top: clamp(-200px, -11vw, -60px);
}
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
}
.hero__avatar {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  perspective: 1200px;
}
/* фиолетовое свечение за персонажем */
.hero__avatar::before,
.hero__avatar::after {
  content: ""; position: absolute; left: 50%; z-index: -1;
  border-radius: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.hero__avatar::before {
  top: 8%; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(124, 92, 255, .6), rgba(124, 92, 255, .22) 50%, rgba(124, 92, 255, .06) 75%, transparent);
  animation: glowPulse 5s ease-in-out infinite;
}
.hero__avatar::after {
  top: 2%; width: 34%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(255, 79, 216, .38), rgba(255, 79, 216, .1) 60%, transparent);
  animation: glowPulse 5s ease-in-out -2.5s infinite;
}
@keyframes glowPulse {
  50% { opacity: .65; transform: translateX(-50%) scale(1.08); }
}
.hero__avatar picture { display: contents; }
.hero__avatar-img {
  position: relative;
  height: 100%; width: auto; max-width: 100%;
  object-fit: contain; object-position: bottom center;
  transform-origin: 50% 85%;
  /* фиолетовый контур, свечение и тень запечены в саму картинку:
     CSS drop-shadow на движущемся изображении пересчитывался каждый кадр */
  opacity: 0;
  animation: avatarIn 1.2s var(--ease) .35s forwards;
}
@keyframes avatarIn {
  from { opacity: 0; translate: 0 60px; scale: .92; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}

.orbit {
  position: absolute; left: 50%; top: 52%;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.orbit--1 { width: 78%; aspect-ratio: 1; }
.orbit--2 { width: 104%; aspect-ratio: 1; border-style: dashed; opacity: .6; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.chip--float { position: absolute; animation: float 6s ease-in-out infinite; }
.chip--a { left: 2%; top: 30%; }
.chip--b { right: 0; top: 18%; animation-delay: -2s; }
.chip--c { right: 12%; bottom: 16%; animation-delay: -4s; }
.chip--d { left: 0; bottom: 28%; animation-delay: -3s; }
.chip--e { right: 4%; top: 46%; animation-delay: -1s; }
@keyframes float { 50% { transform: translateY(-14px); } }

.hero__bottom {
  width: 100%; max-width: var(--maxw);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  margin-top: 8px;
}
.hero__lead { max-width: 420px; font-size: clamp(16px, 1.3vw, 19px); color: #c9c9d2; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 24px; height: 38px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.3);
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--text);
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ============ MARQUEE ============ */
.marquee {
  overflow: hidden;
  padding: 26px 0;
  border-block: 1px solid var(--line);
  background: var(--lime); color: var(--bg);
  transform: rotate(-1.5deg) scale(1.02);
  margin: 40px 0 0;
}
.marquee__track {
  display: flex; align-items: center; gap: 36px;
  width: max-content;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(22px, 3vw, 40px); text-transform: uppercase; letter-spacing: -.01em;
  animation: marquee 34s linear infinite;
}
.marquee__track b { font-size: .7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
.section {
  width: min(var(--maxw), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) 0 0;
}
.section__head { margin-bottom: clamp(36px, 5vw, 64px); }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* About */
.about__text {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(24px, 3.4vw, 46px); line-height: 1.22; letter-spacing: -.015em;
  max-width: 1100px;
}
.about__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; margin-top: clamp(40px, 6vw, 72px); }
/* цифры доверия */
.stats { list-style: none; margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat {
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  min-height: 150px; padding: 26px 28px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg-2);
}
.stat__num { font-family: var(--font-display); font-size: clamp(48px, 6vw, 84px); font-weight: 700; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat:nth-child(2) .stat__num { color: var(--lime); }
.stat__badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 10px; border-radius: 999px;
  background: linear-gradient(110deg, rgba(124, 92, 255, .35), rgba(255, 79, 216, .22));
  border: 1px solid rgba(169, 150, 255, .45);
  font-family: var(--font-display); font-size: clamp(16px, 1.6vw, 20px); font-weight: 700;
}
.stat__badge i {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--lime); color: var(--bg); font-style: normal; font-size: 17px;
}
.stat__text { color: var(--muted); font-size: 15px; }
.card-quote { position: relative; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.card-quote__mark { font-family: var(--font-display); font-size: 80px; line-height: .6; color: var(--lime); height: 34px; }
.card-quote p { font-size: 19px; line-height: 1.5; }
.card-quote__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.card-quote__author b { display: block; font-size: 15px; }
.card-quote__author small { display: block; color: var(--muted); font-size: 13px; }
.card-quote__ava {
  display: grid; place-items: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 14px;
}
.tools { padding: 36px; }
.tools__title { font-size: 20px; margin-bottom: 22px; }
.tools__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tools__list li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 8px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-weight: 600; font-size: 15px;
  transition: transform .4s var(--ease), border-color .3s;
}
.tools__list li:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.25); }

/* Services */
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service {
  position: relative;
  padding: 30px 26px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .4s;
}
.service::after {
  content: ""; position: absolute; inset: auto -30% -60% -30%; height: 80%;
  background: radial-gradient(closest-side, var(--glow, rgba(124,92,255,.35)), transparent);
  opacity: 0; transition: opacity .5s;
  pointer-events: none;
}
.service:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.2); }
.service:hover::after { opacity: 1; }
.service__num { position: absolute; top: 26px; right: 26px; font-family: var(--font-display); font-size: 13px; color: var(--muted); }
.service__icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 44px; }
.service__icon svg { width: 26px; height: 26px; }
.service__icon--lime { background: var(--lime); color: var(--bg); }
.service__icon--violet { background: var(--violet); color: #fff; }
.service__icon--orange { background: var(--orange); color: #1a0b03; }
.service__icon--pink { background: var(--pink); color: #1c0318; }
.service:nth-child(1) { --glow: rgba(212,255,63,.22); }
.service:nth-child(3) { --glow: rgba(255,122,61,.3); }
.service:nth-child(4) { --glow: rgba(255,79,216,.3); }
.service h3 { font-size: 20px; margin-bottom: 12px; }
.service p { color: var(--muted); font-size: 15px; }

/* Works */
.works__hint { color: var(--muted); font-size: 14px; font-weight: 600; max-width: 300px; text-align: right; }
.works__hint--touch { display: none; }
@media (hover: none) { .works__hint--hover { display: none; } .works__hint--touch { display: inline; } }
.works__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.work { grid-column: span 2; display: flex; flex-direction: column; gap: 18px; position: relative; }
.work--wide { grid-column: span 3; }

/* окно браузера со скриншотом */
.work__frame {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #15141c;
  overflow: hidden;
  transition: transform .6s var(--ease), border-color .4s;
}
/* свечение в фирменном цвете проекта: проявляется opacity, без анимации теней */
.work__frame::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 30px 80px -30px var(--accent), inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent);
  opacity: 0; transition: opacity .5s var(--ease);
}
.work__bar {
  display: flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #1b1a23;
}
.work__bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3946; }
.work__bar i:first-child { background: #ff5f57; }
.work__bar i:nth-child(2) { background: #febc2e; }
.work__bar i:nth-child(3) { background: #28c840; }
.work__bar span {
  margin: 0 auto; padding: 3px 14px; border-radius: 6px;
  background: rgba(255,255,255,.05); color: var(--muted);
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
  transform: translateX(-20px);
}
.work__screen {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 10.5;
  /* пока обложка грузится — тёмная заглушка, а не белый прямоугольник */
  background: #1b1a24;
}
.work__screen picture { display: block; }
.work__screen img {
  display: block; width: 100%; height: auto;
  /* возврат наверх — быстрый; прокрутка вниз — медленная, задаётся при наведении */
  transition: transform .9s var(--ease);
}
@media (hover: hover) {
  .work:hover .work__frame { transform: translateY(-6px); border-color: rgba(255,255,255,.18); }
  .work:hover .work__frame::after { opacity: 1; }
  .work:hover .work__screen img {
    transform: translateY(calc(var(--shift, 0) * -1px));
    transition: transform var(--dur, 6s) cubic-bezier(.45, .05, .55, .95);
  }
}

.work__info { display: flex; align-items: flex-start; gap: 16px; padding: 0 4px; }
.work__num { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--accent); padding-top: 6px; }
.work__text { flex: 1; min-width: 0; }
.work__title { font-size: clamp(20px, 1.8vw, 26px); }
.work__cat { color: var(--muted); font-size: 15px; margin-top: 6px; }
.work__desc { color: #c4c4cd; font-size: 15px; margin-top: 12px; max-width: 560px; }
.work__tags { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.work__tags li {
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 12px; font-weight: 700; color: #d6d6de;
}
/* кнопка растянута на всю карточку — кликается любая её часть */
.work__open {
  flex-shrink: 0;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-size: 20px; cursor: pointer;
  transition: background .3s, color .3s, transform .4s var(--ease);
}
.work__open::before { content: ""; position: absolute; inset: 0; border-radius: 22px; }
.work:hover .work__open { background: var(--accent); color: #0a0a0d; transform: rotate(45deg); border-color: transparent; }
.work__open:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* ===== Просмотр проекта целиком ===== */
.viewer {
  width: min(1100px, calc(100% - 24px)); max-width: none;
  height: calc(100% - 24px); max-height: none;
  margin: auto; padding: 0;
  border: 1px solid var(--line); border-radius: 24px;
  background: #121118; color: var(--text);
  overflow: hidden;
}
.viewer[open] { display: flex; flex-direction: column; animation: viewerIn .45s var(--ease); }
.viewer::backdrop { background: rgba(5, 5, 9, .86); }
@keyframes viewerIn { from { opacity: 0; transform: translateY(30px) scale(.98); } }
.viewer__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px 16px 24px; border-bottom: 1px solid var(--line);
}
.viewer__num { font-family: var(--font-display); font-size: 12px; font-weight: 700; color: var(--lime); }
.viewer__title { font-size: 20px; margin-top: 4px; }
.viewer__cat { color: var(--muted); font-size: 14px; margin-top: 4px; }
.viewer__nav { display: flex; gap: 8px; }
.viewer__btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-size: 18px; cursor: pointer; transition: background .3s, color .3s;
}
.viewer__btn:hover { background: var(--lime); color: var(--bg); }
.viewer__close:hover { background: #fff; }
.viewer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; background: #fff; }
.viewer__img { display: block; width: 100%; max-width: 1000px; margin: 0 auto; height: auto; }
/* полоска загрузки, пока качается полная версия (сверху показана уже загруженная превью) */
.viewer__body { position: relative; }
.viewer.is-loading .viewer__head { position: relative; }
.viewer.is-loading .viewer__head::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 40%;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  animation: viewerLoad 1s ease-in-out infinite;
}
@keyframes viewerLoad { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
html.is-locked { overflow: hidden; }

/* Process */
/* три формата работы — переключатели над шагами */
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
.format {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 22px;
  border: 1px solid var(--line); background: var(--bg-2);
  color: var(--text); font: inherit; text-align: left; cursor: pointer;
  transition: border-color .35s, background .35s, transform .4s var(--ease);
}
.format:hover { border-color: rgba(255, 255, 255, .2); transform: translateY(-2px); }
.format[aria-selected="true"] { border-color: rgba(212, 255, 63, .55); background: linear-gradient(160deg, rgba(212, 255, 63, .1), rgba(212, 255, 63, .02)), var(--bg-2); }
.format:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.format__ico {
  display: grid; place-items: center; flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--surface-2); color: var(--text);
  transition: background .35s, color .35s;
}
.format__ico svg { width: 22px; height: 22px; }
.format[aria-selected="true"] .format__ico { background: var(--lime); color: var(--bg); }
.format__text b { display: block; font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.format__text small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.process__list[hidden] { display: none; }
/* шаги выбранного формата проявляются по очереди */
.process__list.is-active .step { animation: stepIn .55s var(--ease) both; }
.process__list.is-active .step:nth-child(2) { animation-delay: .06s; }
.process__list.is-active .step:nth-child(3) { animation-delay: .12s; }
.process__list.is-active .step:nth-child(4) { animation-delay: .18s; }
@keyframes stepIn { from { opacity: 0; transform: translateY(16px); } }
.process__note {
  grid-column: 1 / -1; margin-top: 18px;
  padding: 12px 18px; border-radius: 16px;
  border: 1px dashed rgba(212, 255, 63, .35); color: #d6d6de; font-size: 14px;
}
.process__note::before { content: "✦ "; color: var(--lime); }
.process__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.format__price {
  display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--text);
  font-family: var(--font-display); font-size: 12px; font-weight: 600; white-space: nowrap;
  transition: background .35s, color .35s;
}
.format[aria-selected="true"] .format__price { background: rgba(212, 255, 63, .14); color: var(--lime); }
/* итог формата: цена, обещание и кнопка */
.process__deal {
  grid-column: 1 / -1; margin-top: 24px;
  display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap;
  padding: 18px 18px 18px 28px; border-radius: 24px;
  border: 1px solid rgba(212, 255, 63, .3);
  background: linear-gradient(110deg, rgba(212, 255, 63, .09), rgba(124, 92, 255, .07) 60%, rgba(255, 255, 255, .02));
}
.process__list.is-active .process__deal { animation: stepIn .55s var(--ease) .24s both; }
.process__price small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.process__price b { display: block; margin-top: 2px; font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.02em; color: var(--lime); white-space: nowrap; }
.process__promise { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 220px; font-size: 16px; font-weight: 600; }
.process__promise i {
  display: grid; place-items: center; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--violet); color: #fff; font-style: normal; font-size: 14px;
}
.process__cta { margin-left: auto; }
.step { padding: 30px 28px 10px 0; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step__num {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line);
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  margin-bottom: 36px;
  transition: background .4s, color .4s, border-color .4s;
}
.step:hover .step__num { background: var(--lime); color: var(--bg); border-color: var(--lime); }
.step h3 { font-size: 22px; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 15px; }

/* Reviews */
.reviews__source {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  color: #d6d6de; font-size: 14px; font-weight: 700;
  transition: border-color .3s, background .3s, color .3s;
}
.reviews__source::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.reviews__source-arrow {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--lime); color: var(--bg); font-size: 14px;
  transition: transform .4s var(--ease);
}
.reviews__source:hover { border-color: rgba(212, 255, 63, .5); background: rgba(212, 255, 63, .08); color: var(--text); }
.reviews__source:hover .reviews__source-arrow { transform: rotate(45deg); }
.reviews__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 16px;
}
.review {
  position: relative;
  display: flex; flex-direction: column; gap: 18px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .4s;
}
.review::after {
  content: ""; position: absolute; inset: auto -20% -70% -20%; height: 90%;
  background: radial-gradient(closest-side, rgba(124, 92, 255, .3), transparent);
  opacity: 0; transition: opacity .5s; pointer-events: none;
}
.review:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.2); }
.review:hover::after { opacity: 1; }
.review__mark { font-family: var(--font-display); font-size: 64px; line-height: .6; height: 26px; color: var(--violet); }
.review__text { font-size: 16px; line-height: 1.55; color: #dedee6; }
.review__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review__author b { display: block; font-size: 15px; }
.review__author small { display: block; color: var(--muted); font-size: 13px; }
.review__ava {
  display: grid; place-items: center; flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--h) 90% 65%), hsl(calc(var(--h) + 50) 90% 55%));
  color: #0a0a0d; font-family: var(--font-display); font-weight: 900; font-size: 16px;
}
.review--featured {
  grid-row: 1 / span 3;
  padding: 40px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(124, 92, 255, .28), transparent 60%),
    linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.01)),
    var(--bg-2);
}
.review--featured .review__mark { font-size: 110px; height: 44px; color: var(--lime); }
.review--featured .review__text { font-family: var(--font-display); font-weight: 500; font-size: clamp(18px, 1.6vw, 23px); line-height: 1.45; color: var(--text); }
.review--wide { grid-column: 2 / span 2; }
.review__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.review__tags li {
  padding: 7px 14px; border-radius: 999px;
  background: rgba(212, 255, 63, .1); border: 1px solid rgba(212, 255, 63, .3);
  color: var(--lime); font-size: 13px; font-weight: 700;
}

/* ============ CONTACT — вау-блок ============ */
.contact { padding-bottom: clamp(60px, 8vw, 110px); }
.contact__card {
  --mx: 50%; --my: 50%; --px: 0; --py: 0;
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(560px, 80svh, 820px);
  display: grid; place-items: center;
  padding: clamp(40px, 7vw, 96px) clamp(20px, 5vw, 64px) clamp(110px, 12vw, 150px);
  border-radius: calc(var(--radius) + 12px);
  border: 1px solid var(--line);
  background: #0d0b16;
  text-align: center;
  /* стартовое состояние: карточка опущена. Только сдвиг: прозрачность всей карточки
     заставила бы видеокарту собирать её целиком со всеми слоями в отдельную текстуру,
     а содержимое и так проявляется по частям. Без scale — он растрирует всё заново */
  transform: translateY(90px);
  transition: transform 1.3s var(--ease);
}
.contact__card.is-live { transform: none; }

/* фон: цветные пятна, сетка-пол, прожектор за курсором */
.contact__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.contact__aurora {
  position: absolute; inset: -12%;
  background:
    radial-gradient(38% 38% at 28% 26%, rgba(124, 92, 255, .75), rgba(124, 92, 255, .28) 45%, transparent 72%),
    radial-gradient(32% 32% at 78% 38%, rgba(255, 79, 216, .5), rgba(255, 79, 216, .16) 45%, transparent 72%),
    radial-gradient(26% 26% at 52% 88%, rgba(212, 255, 63, .18), transparent 72%);
  opacity: 0;
  transition: opacity 1.6s var(--ease) .3s;
  animation: aurora 16s ease-in-out infinite alternate;
}
.is-live .contact__aurora { opacity: 1; }
@keyframes aurora {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(7%, 5%, 0); }
  100% { transform: translate3d(-6%, 2%, 0); }
}

.contact__floor {
  position: absolute; left: -20%; right: -20%; bottom: -10%; height: 58%;
  overflow: hidden;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: 50% 0%;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 45%, #000 70%, transparent);
  opacity: 0; transition: opacity 1.5s .6s;
}
.contact__floor::before {
  content: ""; position: absolute; left: 0; right: 0; top: -64px; bottom: 0;
  background-image:
    linear-gradient(rgba(160, 140, 255, .35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 140, 255, .35) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: floor 3s linear infinite;
}
.is-live .contact__floor { opacity: .55; }
@keyframes floor { from { transform: translateY(0); } to { transform: translateY(64px); } }

.contact__spot {
  position: absolute; left: 0; top: 0;
  width: 840px; height: 840px; margin: -420px 0 0 -420px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(212, 255, 63, .12), transparent);
  transform: translate3d(50vw, 50%, 0);
  opacity: 0; transition: opacity .5s;
}
.contact__card:hover .contact__spot { opacity: 1; }
.contact__fx { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
/* конфетти: каждая частица — маленький элемент с CSS-анимацией transform/opacity.
   Её крутит видеокарта в отдельном потоке, поэтому она не мешает прокрутке */
.confetti {
  position: absolute; left: var(--x, 0); top: var(--y, 0);
  width: var(--s); height: calc(var(--s) * .5);
  margin: calc(var(--s) * -.25) 0 0 calc(var(--s) * -.5);
  background: var(--c); border-radius: 2px;
  opacity: 0;
}
.confetti.is-go { animation: confetti var(--t) linear var(--delay, 0s) forwards; }
.confetti--dot { height: var(--s); border-radius: 50%; }
.confetti--diamond { height: var(--s); border-radius: 2px; }
@keyframes confetti {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 1; animation-timing-function: cubic-bezier(.15, .7, .4, 1); }
  35% { transform: translate3d(calc(var(--dx) * .55), var(--up), 0) rotate(calc(var(--r) * .4)); opacity: 1; animation-timing-function: cubic-bezier(.5, 0, .9, .6); }
  100% { transform: translate3d(var(--dx), var(--down), 0) rotate(var(--r)); opacity: 0; }
}

/* плавающие фигуры: появляются «попом», парят и двигаются за курсором */
.contact__shapes { --px: 0; --py: 0; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.shape {
  position: absolute; left: var(--x); top: var(--y);
  translate: calc(var(--px) * var(--d) * 26px) calc(var(--py) * var(--d) * 26px);
  transition: translate .6s var(--ease), scale .9s cubic-bezier(.34, 1.8, .5, 1), opacity .5s;
  scale: 0; opacity: 0;
}
.is-live .shape { scale: 1; opacity: 1; }
.is-live .shape:nth-child(1) { transition-delay: 0s, .7s, .7s; }
.is-live .shape:nth-child(2) { transition-delay: 0s, .8s, .8s; }
.is-live .shape:nth-child(3) { transition-delay: 0s, .95s, .95s; }
.is-live .shape:nth-child(4) { transition-delay: 0s, 1.05s, 1.05s; }
.is-live .shape:nth-child(5) { transition-delay: 0s, 1.15s, 1.15s; }
.is-live .shape:nth-child(6) { transition-delay: 0s, 1.25s, 1.25s; }
.is-live .shape:nth-child(7) { transition-delay: 0s, 1.35s, 1.35s; }
.shape { animation: bob 5s ease-in-out infinite; animation-delay: calc(var(--d) * -2s); }
@keyframes bob { 50% { transform: translateY(-14px) rotate(var(--r, 0deg)); } 0%, 100% { transform: rotate(var(--r, 0deg)); } }
.shape--star { font-size: clamp(34px, 4vw, 58px); color: var(--lime); text-shadow: 0 0 30px rgba(212,255,63,.6); }
.shape--small { font-size: clamp(20px, 2vw, 30px); color: #fff; }
.shape--ring { width: clamp(44px, 5vw, 76px); aspect-ratio: 1; border-radius: 50%; border: 6px solid var(--violet); box-shadow: 0 0 30px rgba(124,92,255,.6); }
.shape--dot { width: 22px; aspect-ratio: 1; border-radius: 50%; background: var(--pink); box-shadow: 0 0 24px var(--pink); }
.shape--pill {
  padding: 10px 18px; border-radius: 999px;
  background: var(--lime); color: var(--bg);
  font-weight: 800; font-size: 15px; white-space: nowrap;
  box-shadow: 0 10px 40px -10px rgba(212,255,63,.7);
}
.shape--squiggle { color: var(--pink); width: clamp(60px, 7vw, 96px); }
.shape--squiggle svg { display: block; width: 100%; }
.shape--at { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 3.4vw, 50px); color: transparent; -webkit-text-stroke: 2px #a996ff; }

.contact__content { position: relative; z-index: 2; }
.contact__label { opacity: 0; translate: 0 20px; transition: opacity .8s var(--ease) .5s, translate .8s var(--ease) .5s; }
.is-live .contact__label { opacity: 1; translate: 0 0; }

.contact__title {
  margin: 20px 0 26px;
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(36px, 7vw, 108px); line-height: .98; letter-spacing: -.03em;
}
.contact__line { display: block; }
.contact__line--accent { position: relative; display: inline-block; color: var(--lime); margin-top: .06em; }
.contact__title .word { display: inline-block; white-space: nowrap; }
.contact__title .ch {
  display: inline-block;
  transform-origin: 50% 100%;
  /* 2D-«подскок» вместо 3D-переворота: тот же характер, но без 3D-слоёв */
  transform: translateY(.7em) rotate(10deg) scale(.6);
  opacity: 0;
  transition: transform .9s cubic-bezier(.34, 1.56, .64, 1), opacity .5s var(--ease);
  transition-delay: calc(var(--i) * 38ms + .45s);
}
.is-live .contact__title .ch { transform: none; opacity: 1; }
/* после появления акцентная строка «дышит» волной */
.is-live .contact__line--accent .ch { animation: wave 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * 90ms + 2s); }
@keyframes wave { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-.12em); } }
.contact__line--accent { text-shadow: 0 0 36px rgba(212, 255, 63, .35); }

.contact__underline {
  position: absolute; left: -2%; bottom: -.32em; width: 104%; height: .5em;
  overflow: hidden;
  transform: translateX(-101%);
  transition: transform 1.1s var(--ease) 1.4s;
}
.contact__underline-in {
  display: block; height: 100%;
  transform: translateX(101%);
  transition: transform 1.1s var(--ease) 1.4s;
}
.is-live .contact__underline, .is-live .contact__underline-in { transform: none; }
.contact__underline svg { display: block; width: 100%; height: 100%; }
.contact__underline path { fill: none; stroke: var(--violet); stroke-width: 6; stroke-linecap: round; }

.contact__text {
  color: #c9c9d2; font-size: 18px; max-width: 480px; margin: 0 auto 36px;
  opacity: 0; translate: 0 20px; transition: opacity .9s var(--ease) 1.3s, translate .9s var(--ease) 1.3s;
}
.is-live .contact__text { opacity: 1; translate: 0 0; }
.contact__links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.contact__links .btn { opacity: 0; scale: .6; transition: opacity .5s var(--ease), scale .8s cubic-bezier(.34, 1.8, .5, 1), transform .3s var(--ease), background .3s; }
.is-live .contact__links .btn { opacity: 1; scale: 1; }
.is-live .contact__links .btn:nth-child(1) { transition-delay: 1.5s, 1.5s, 0s, 0s; }
.is-live .contact__links .btn:nth-child(2) { transition-delay: 1.6s, 1.6s, 0s, 0s; }
.is-live .contact__links .btn:nth-child(3) { transition-delay: 1.7s, 1.7s, 0s, 0s; }
.contact__links .btn--lime { position: relative; isolation: isolate; }
.contact__links .btn--lime::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  box-shadow: 0 10px 60px -6px rgba(212, 255, 63, .9);
  opacity: 0;
  animation: glowBtn 2.4s ease-in-out infinite;
}
@keyframes glowBtn { 50% { opacity: 1; } }

.contact__ticker {
  position: absolute; left: 0; right: 0; bottom: clamp(22px, 3vw, 36px);
  overflow: hidden; z-index: 1;
  opacity: 0; transition: opacity 1s 1.8s;
}
.is-live .contact__ticker { opacity: 1; }
.contact__ticker-track {
  display: flex; gap: 32px; width: max-content;
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(28px, 4.6vw, 64px); letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .22);
  animation: marquee 22s linear infinite;
}
.contact__ticker-track b { color: var(--lime); -webkit-text-stroke: 0; font-size: .6em; align-self: center; }

/* Footer */
.footer {
  width: min(var(--maxw), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: 28px 0 36px;
  display: flex; justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}
.footer a { padding: 10px 0; margin: -10px 0; } /* зона нажатия побольше */
.footer a:hover { color: var(--text); }

/* облегчённый режим (слабое устройство или браузер без аппаратного ускорения):
   статичные декорации вместо бесконечных анимаций — блоки выглядят так же, но не грузят кадры */
.fx-lite .contact__floor::before,
.fx-lite .contact__aurora,
.fx-lite .contact__line--accent .ch,
.fx-lite .shape,
.fx-lite .contact__links .btn--lime::before,
.fx-lite .orbit--2,
.fx-lite .chip--float,
.fx-lite .hero__avatar::before,
.fx-lite .hero__avatar::after { animation: none !important; }

/* анимации блоков, которых нет на экране, стоят на паузе */
.is-offscreen, .is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }

/* ============ ФОРМА «ОБСУДИТЬ ПРОЕКТ» — стекло в духе iOS ============ */
/* Пока форма открыта, анимации страницы стоят: размытие фона под стеклом считается один раз */
.brief {
  width: min(560px, calc(100% - 24px)); max-width: none;
  max-height: min(860px, calc(100% - 32px));
  margin: auto; padding: 0;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: linear-gradient(160deg, rgba(48, 42, 78, .62), rgba(22, 20, 34, .72));
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 50px 120px -20px rgba(0, 0, 0, .7);
  color: var(--text);
  overflow: hidden auto;
  overscroll-behavior: contain;
}
.brief::backdrop { background: rgba(6, 5, 12, .5); }
.brief[open] { animation: briefIn .55s cubic-bezier(.2, .9, .25, 1.15); }
@keyframes briefIn { from { opacity: 0; transform: translateY(30px) scale(.94); } }
.brief.is-closing { animation: briefOut .25s var(--ease) forwards; }
@keyframes briefOut { to { opacity: 0; transform: translateY(20px) scale(.97); } }

.brief__form { padding: 22px; }
.brief__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 6px 6px 18px; }
.brief__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.brief__title { font-size: 26px; margin-top: 6px; }
.brief__close {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
  color: var(--text); font-size: 15px; cursor: pointer;
  transition: background .3s, transform .3s var(--ease);
}
.brief__close:hover { background: rgba(255, 255, 255, .2); transform: rotate(90deg); }

.brief__step { display: flex; flex-direction: column; gap: 10px; }
/* hidden должен побеждать display:flex у шагов и блоков формы */
.brief [hidden] { display: none !important; }

/* поле-«капсула» из стекла */
.glass-field {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
  transition: border-color .3s, background .3s;
  cursor: text;
}
.glass-field--choice { cursor: default; }
.glass-field:focus-within { border-color: rgba(212, 255, 63, .45); background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05)); }
.glass-field.is-invalid { border-color: rgba(255, 79, 216, .7); }
.brief[open] .brief__step:not([hidden]) > * { animation: fieldIn .5s var(--ease) both; }
.brief[open] .brief__step > :nth-child(2) { animation-delay: .04s; }
.brief[open] .brief__step > :nth-child(3) { animation-delay: .08s; }
.brief[open] .brief__step > :nth-child(4) { animation-delay: .12s; }
.brief[open] .brief__step > :nth-child(5) { animation-delay: .16s; }
.brief[open] .brief__step > :nth-child(n+6) { animation-delay: .2s; }
@keyframes fieldIn { from { opacity: 0; transform: translateY(14px); } }

/* «водяная» стеклянная иконка */
.glass-ico {
  position: relative; flex-shrink: 0;
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, .55), rgba(255, 255, 255, .08) 45%, transparent 60%),
    radial-gradient(circle at 70% 85%, rgba(212, 255, 63, .35), transparent 55%),
    rgba(124, 92, 255, .32);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .7), inset 0 -8px 14px rgba(124, 92, 255, .45), 0 6px 16px -6px rgba(124, 92, 255, .8);
}
.glass-ico svg { width: 20px; height: 20px; filter: drop-shadow(0 1px 1px rgba(40, 20, 120, .5)); }
.glass-field__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.glass-field__label { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.glass-field input, .glass-field textarea {
  width: 100%; padding: 0; border: 0; outline: 0; background: none;
  color: var(--text); font: 500 16px/1.45 var(--font-body);
  resize: none;
}
.glass-field input::placeholder, .glass-field textarea::placeholder { color: rgba(255, 255, 255, .32); }
.glass-field--slim { padding: 10px 16px; align-items: center; }
.glass-field--slim .glass-ico { width: 34px; height: 34px; }
.glass-field--slim .glass-ico svg { width: 17px; height: 17px; }
.glass-field__inline { margin-top: 8px; padding-top: 10px !important; border-top: 1px solid rgba(255, 255, 255, .1) !important; }

/* переключатель как в iOS: стеклянная «таблетка» переезжает к выбранному варианту */
.segmented {
  position: relative; display: grid; grid-template-columns: repeat(2, 1fr);
  margin-top: 2px; padding: 4px; border-radius: 14px;
  background: rgba(0, 0, 0, .28);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35);
}
.segmented--3 { grid-template-columns: repeat(3, 1fr); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  position: relative; z-index: 1;
  padding: 9px 6px; border-radius: 11px; text-align: center;
  font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .55);
  cursor: pointer; user-select: none; transition: color .3s;
}
.segmented input:checked + label { color: #fff; }
.segmented input:focus-visible + label { outline: 2px solid var(--lime); outline-offset: -2px; }
.segmented__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px;
  width: calc((100% - 8px) / 2);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .1));
  border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 4px 12px -4px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateX(0) scale(.9);
  transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), opacity .25s;
}
.segmented--3 .segmented__thumb { width: calc((100% - 8px) / 3); }
.segmented:has(input:checked) .segmented__thumb { opacity: 1; transform: translateX(0) scale(1); }
.segmented:has(input:nth-of-type(2):checked) .segmented__thumb { transform: translateX(100%); }
.segmented:has(input:nth-of-type(3):checked) .segmented__thumb { transform: translateX(200%); }
.glass-field.is-invalid .segmented { box-shadow: inset 0 0 0 1px rgba(255, 79, 216, .7); }

.brief__error { margin: 2px 6px; color: #ff8ae6; font-size: 14px; font-weight: 600; }
.brief__error a { color: var(--lime); text-decoration: underline; }

.brief__submit, .brief__ok {
  position: relative; margin-top: 6px;
  height: 58px; border: 0; border-radius: 999px;
  background: var(--lime); color: var(--bg);
  font: 800 16px var(--font-body); cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 14px 40px -12px rgba(212, 255, 63, .7);
  transition: transform .3s var(--ease);
}
.brief__submit:hover, .brief__ok:hover { transform: translateY(-2px); }

/* экран «заявка отправлена» */
.brief__done { align-items: center; text-align: center; padding: 10px 6px 4px; }
.brief__check { width: 92px; height: 92px; margin-bottom: 8px; }
.brief__check svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.brief__check circle { stroke: rgba(212, 255, 63, .35); stroke-width: 3; fill: rgba(212, 255, 63, .08); }
.brief__check path { stroke: var(--lime); stroke-width: 4; stroke-dasharray: 40; stroke-dashoffset: 40; }
.brief__done:not([hidden]) .brief__check path { animation: draw .6s var(--ease) .25s forwards; }
.brief__done:not([hidden]) .brief__check { animation: pop .6s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
.brief__done-title { font-size: 26px; }
.brief__done-text { color: #d0d0da; font-size: 17px; max-width: 360px; }
.brief__ok { align-self: stretch; margin-top: 14px; }
/* кнопка-ссылка «Открыть Telegram / Kwork» выглядит как основная кнопка */
.brief__go { display: flex; align-items: center; justify-content: center; gap: 8px; }
.brief__go .arrow { transition: transform .4s var(--ease); }
.brief__go:hover .arrow { transform: translate(3px, -3px); }
.brief__intro { margin: -6px 6px 6px; color: rgba(255, 255, 255, .7); font-size: 15px; line-height: 1.5; }
.brief__privacy {
  display: flex; gap: 8px; align-items: flex-start;
  margin: 4px 8px 0; color: rgba(255, 255, 255, .5); font-size: 12.5px; line-height: 1.45;
}
.brief__privacy i { font-style: normal; }
/* готовое сообщение — как пузырь в мессенджере */
.brief__preview {
  align-self: stretch; margin: 8px 0 0; padding: 14px 16px;
  max-height: 200px; overflow: auto;
  border-radius: 20px 20px 6px 20px;
  background: linear-gradient(160deg, rgba(124, 92, 255, .35), rgba(124, 92, 255, .18));
  border: 1px solid rgba(169, 150, 255, .35);
  color: #f3f1ff; font: 500 14px/1.5 var(--font-body); text-align: left;
  white-space: pre-wrap; word-break: break-word;
}
.brief__preview:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.brief__done-actions { display: flex; justify-content: center; gap: 6px 22px; flex-wrap: wrap; margin-top: 4px; }
.brief__link {
  padding: 10px 4px; border: 0; background: none; cursor: pointer;
  color: rgba(255, 255, 255, .75); font: 700 14px var(--font-body);
  text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 4px;
}
.brief__link:hover { color: #fff; }

@media (max-width: 560px) {
  /* на телефоне — «шторка» снизу, как в iOS */
  .brief { width: 100%; max-height: 92svh; margin: auto 0 0; border-radius: 30px 30px 0 0; border-bottom: 0; }
  .brief[open] { animation: sheetIn .5s cubic-bezier(.2, .9, .25, 1); }
  @keyframes sheetIn { from { transform: translateY(100%); } }
  .brief.is-closing { animation: sheetOut .3s var(--ease) forwards; }
  @keyframes sheetOut { to { transform: translateY(100%); } }
  .brief__form { padding: 16px 14px calc(18px + env(safe-area-inset-bottom)); }
  .brief__title { font-size: 22px; }
  .glass-field { padding: 12px 14px; gap: 12px; }
  .glass-ico { width: 36px; height: 36px; }
  .segmented label { font-size: 13px; padding: 9px 2px; }
}

/* ============ FAQ ============ */
.faq__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px; align-items: start; }
.faq__promise {
  position: relative; overflow: hidden; padding: 36px;
  border-color: rgba(212, 255, 63, .3);
  background: linear-gradient(150deg, rgba(212, 255, 63, .1), rgba(124, 92, 255, .08) 55%, rgba(255, 255, 255, .02));
}
.faq__promise-ico {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px;
  background: var(--lime); color: var(--bg);
  font-family: var(--font-display); font-size: 26px; font-weight: 700;
}
.faq__promise h3 { margin: 22px 0 14px; font-size: clamp(24px, 2.4vw, 32px); }
.faq__promise p { color: #d6d6de; font-size: 16px; line-height: 1.6; }
.faq__promise p + p { margin-top: 12px; }
.faq__list { display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: 24px; background: var(--bg-2); transition: border-color .35s, background .35s; }
.faq__item:hover { border-color: rgba(255, 255, 255, .2); }
.faq__item[open] { border-color: rgba(212, 255, 63, .4); background: linear-gradient(160deg, rgba(212, 255, 63, .06), rgba(255, 255, 255, .01)), var(--bg-2); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 26px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: clamp(18px, 1.8vw, 22px); font-weight: 600;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; border-radius: 24px; }
/* плюс превращается в крестик */
.faq__item summary i { position: relative; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); transition: background .35s, transform .45s var(--ease); }
.faq__item summary i::before, .faq__item summary i::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px;
  border-radius: 2px; background: currentColor;
}
.faq__item summary i::after { transform: rotate(90deg); }
.faq__item[open] summary i { background: var(--lime); color: var(--bg); transform: rotate(45deg); }
.faq__item p { padding: 0 26px 24px; color: #d6d6de; font-size: 16px; line-height: 1.6; max-width: 640px; }
.faq__item[open] p { animation: stepIn .45s var(--ease) both; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .work, .work--wide { grid-column: span 3; }
  .work:last-child:nth-child(odd) { grid-column: 2 / span 4; }
  .reviews__grid { grid-template-columns: 1fr 1fr; }
  .review--featured { grid-row: auto; grid-column: 1 / -1; }
  .review--wide { grid-column: 1 / -1; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .process__list { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .nav { padding: 8px 8px 8px 20px; background: rgba(16, 15, 22, .9); border-color: var(--line); }
  .nav__cta { display: none; }
  .nav__burger {
    display: grid; place-content: center; gap: 6px;
    width: 44px; height: 44px; border-radius: 50%;
    border: 0; background: var(--lime); cursor: pointer;
  }
  .nav__burger span { display: block; width: 18px; height: 2px; background: var(--bg); border-radius: 2px; transition: transform .3s var(--ease); }
  .nav.is-open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; padding: 10px; border-radius: 24px;
    background: rgba(16, 15, 22, .97);
    opacity: 0; pointer-events: none; transform: translateY(-8px);
    transition: opacity .3s, transform .3s var(--ease);
  }
  .nav__links a { padding: 14px 18px; font-size: 16px; }
  .nav.is-open .nav__links { opacity: 1; pointer-events: auto; transform: none; }

  .hero { padding-top: 104px; }
  .hero__title { flex-direction: column; align-items: center; }
  .hero__stage { margin-top: -16px; height: auto; aspect-ratio: 1 / 1.05; }
  .hero__bottom { flex-direction: column; align-items: stretch; text-align: center; }
  .hero__lead { max-width: none; }
  .hero__actions { justify-content: center; }
  .hero__scroll { display: none; }
  .chip--float { font-size: 12px; padding: 6px 12px 6px 6px; }
  .chip--float .ico { width: 24px; height: 24px; }
  .chip--a { left: 0; top: 20%; }
  .chip--b { right: 0; top: 10%; }
  .chip--e { right: 0; top: 30%; }
  .chip--d { left: 0; bottom: 18%; }
  .chip--c { right: 0; bottom: 8%; }

  .about__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat--badge { grid-column: 1 / -1; min-height: 0; }
  .faq__grid { grid-template-columns: 1fr; }
  .works__grid { grid-template-columns: 1fr; gap: 44px; }
  .formats { grid-template-columns: 1fr; }
  .work, .work--wide, .work:last-child:nth-child(odd) { grid-column: auto; }
  .works__hint { text-align: left; }
  .viewer { width: 100%; height: 100%; border-radius: 0; border: 0; }
  .viewer__head { padding: 12px 12px 12px 16px; }
  .viewer__btn { width: 40px; height: 40px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .services__grid, .process__list, .reviews__grid { grid-template-columns: 1fr; }
  .review--featured { padding: 28px; }
  .shape--pill, .shape--at, .shape--squiggle { display: none; }
  .step, .step + .step { padding: 26px 0 8px; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .hero__actions .btn { flex: 1; justify-content: center; }
  .contact__links .btn { width: 100%; justify-content: center; }
  .card-quote, .tools { padding: 26px; }
  /* цифры — по две в ряд, статус — на всю ширину */
  .stats { gap: 12px; }
  .stat { min-height: 0; padding: 20px; gap: 8px; border-radius: 22px; }
  .stat__num { font-size: 40px; }
  .stat__text { font-size: 14px; }
  /* шаги компактнее: номер слева, текст справа */
  .step { display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; align-items: start; }
  .step__num { grid-row: span 2; margin-bottom: 0; }
  .step h3 { margin: 10px 0 8px; }
  .review__tags li { padding: 6px 12px; font-size: 12px; }
  .process__deal { padding: 20px; }
  .process__cta { width: 100%; justify-content: center; margin-left: 0; }
  .faq__promise { padding: 26px; }
  .faq__item summary { padding: 20px; }
  .faq__item p { padding: 0 20px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero__line .ch, .hero__avatar-img { opacity: 1; transform: none; }
  .contact__card, .contact__card * { opacity: 1 !important; scale: 1 !important; translate: none !important; }
  .contact__card { transform: none !important; }
  .contact__title .ch { transform: none; }
  .contact__underline path { stroke-dashoffset: 0; }
}
