/* ==========================================================================
   ADAM STUDIO — визуальная система v2
   Ночная мастерская. Один тёплый источник света — ядро Адама.
   Принцип: меньше эффектов, больше точности. Огонь — не больше 3% экрана.
   ========================================================================== */

:root {
  --ink: #09090b;
  --ink-2: #0e0e11;
  --ink-3: #141418;
  --line: rgba(237, 232, 223, .09);
  --line-2: rgba(237, 232, 223, .16);
  --bone: #ece7de;
  --bone-2: #a8a39a;
  --bone-3: #858077;           /* было #6b6760 — не проходило контраст AA */
  --ember: #ff6b2c;
  --ember-2: #ffb48a;

  --f-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Cormorant Garamond", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --fs-hero: clamp(2.9rem, 7.4vw, 8.4rem);
  --fs-h2: clamp(2.2rem, 4.6vw, 4.6rem);
  --fs-h3: clamp(1.3rem, 1.8vw, 1.7rem);
  --fs-lead: clamp(1.02rem, 1.2vw, 1.18rem);

  /* Ритм: 8-pt сетка, единые отступы секций */
  --gutter: clamp(20px, 4.5vw, 72px);
  --section: clamp(120px, 17vh, 200px);
  --max: 1440px;
  --radius: 18px;

  --ease: cubic-bezier(.19, 1, .22, 1);     /* «выдох» — один характер движения */
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--bone);
  font-family: var(--f-sans); font-size: 16px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; text-rendering: optimizeLegibility;
}
body.is-loading { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--ember); color: var(--ink); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: 1.5px solid var(--ember-2); outline-offset: 4px; border-radius: 6px; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--bone); color: var(--ink); padding: 10px 16px; border-radius: 8px; transition: top .3s; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.label { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bone-3); font-weight: 400; }
.label i { font-style: normal; color: var(--bone-2); margin-right: 14px; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 300; letter-spacing: -.01em; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Плёночное зерно — статичное, без мерцания */
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.progress { position: fixed; top: 0; left: 0; height: 1px; width: 100%; z-index: 95; transform-origin: 0 50%; transform: scaleX(0); background: var(--bone-2); pointer-events: none; opacity: .5; }

/* ---------- Прелоадер: тонкая линия заряда ---------- */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--ink); display: grid; place-items: center; transition: opacity .9s var(--ease), visibility .9s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { width: min(360px, 70vw); }
.loader__line { height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.loader__line i { position: absolute; inset: 0; background: var(--bone); transform-origin: 0 50%; transform: scaleX(0); }
.loader__row { display: flex; justify-content: space-between; margin-top: 16px; }

/* ---------- Курсор: системный; круг с подписью — только над кейсами ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 99; pointer-events: none; }
.cursor__in { width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--bone); color: var(--ink); display: grid; place-items: center;
  transform: scale(0); transition: transform .5s var(--ease); }
.cursor.is-label .cursor__in { transform: scale(1); }
.cursor span { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Навигация ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 80; transition: transform .8s var(--ease), background .5s, border-color .5s; border-bottom: 1px solid transparent; }
.nav.is-hidden { transform: translateY(-101%); }
.nav.is-solid { background: rgba(9, 9, 11, .72); backdrop-filter: blur(20px) saturate(1.1); -webkit-backdrop-filter: blur(20px) saturate(1.1); border-color: var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .98rem; letter-spacing: -.01em; line-height: 1.2; }
.logo__mark { width: 30px; height: 30px; flex: 0 0 auto; }
.logo small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bone-3); margin-top: 2px; }
.nav__links { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-size: .88rem; color: var(--bone-2); transition: color .3s; position: relative; }
.nav__links a:hover, .nav__links a.is-active { color: var(--bone); }
.nav__links a.is-active::before { content: ""; position: absolute; left: -12px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--ember); }
.nav__right { display: flex; align-items: center; gap: 14px; }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger i { position: absolute; left: 11px; right: 11px; height: 1px; background: var(--bone); transition: transform .6s var(--ease), top .6s var(--ease); }
.burger i:first-child { top: 18px; } .burger i:last-child { top: 25px; }
.menu-open .burger i:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-open .burger i:last-child { top: 21.5px; transform: rotate(-45deg); }
.mmenu { position: fixed; inset: 0; z-index: 79; background: var(--ink); display: flex; flex-direction: column; justify-content: center; padding: 96px var(--gutter) 32px;
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
.menu-open .mmenu { opacity: 1; visibility: visible; }
.mmenu a.big { font-size: clamp(2.4rem, 11vw, 3.6rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.2; display: flex; align-items: baseline; gap: 16px;
  opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.menu-open .mmenu a.big { opacity: 1; transform: none; }
.menu-open .mmenu a.big:nth-child(2) { transition-delay: .05s; } .menu-open .mmenu a.big:nth-child(3) { transition-delay: .1s; }
.menu-open .mmenu a.big:nth-child(4) { transition-delay: .15s; } .menu-open .mmenu a.big:nth-child(5) { transition-delay: .2s; }
.mmenu__foot { margin-top: auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- Кнопки: текст «перекатывается», без кружков и заливок ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--bone); color: var(--ink); font-weight: 500; font-size: .92rem; letter-spacing: -.005em; white-space: nowrap; overflow: hidden;
  transition: background .4s, box-shadow .4s, transform .6s var(--ease); }
.btn:hover { background: #fff; }
.btn__t { display: block; position: relative; overflow: hidden; height: 1.3em; line-height: 1.3em; }
.btn__t span { display: block; transition: transform .6s var(--ease); }
.btn__t span + span { position: absolute; left: 0; top: 100%; }
.btn:hover .btn__t span { transform: translateY(-100%); }
.btn--line { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--line:hover { background: rgba(237, 232, 223, .05); box-shadow: inset 0 0 0 1px var(--bone-2); }
.btn--sm { height: 40px; padding: 0 18px; font-size: .85rem; }
.btn--ember { background: var(--ember); color: #160803; }
.btn--ember:hover { background: #ff7d45; }

/* ---------- Появления ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.line-mask { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line-mask > span { display: inline-block; transform: translateY(105%); transition: transform 1.5s var(--ease); }
.line-mask.is-in > span { transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.no-js .line-mask > span { transform: none; }

/* ---------- Адам (SVG) ---------- */
.adam { width: 100%; height: 100%; overflow: visible; }
.adam__float { animation: hover 5.5s var(--ease-io) infinite; }
.adam__shadow { animation: shadow 5.5s var(--ease-io) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes shadow { 0%, 100% { transform: scale(1); opacity: .55; } 50% { transform: scale(.86); opacity: .35; } }
.adam__eye { transition: transform .12s, opacity .3s; transform-box: fill-box; transform-origin: center; }
.adam.is-blink .adam__eye { transform: scaleY(.1); }
.adam__happy { opacity: 0; transition: opacity .3s; }
.adam.is-happy .adam__happy { opacity: 1; }
.adam.is-happy .adam__eye { opacity: 0; }
.adam__armR { transform-box: fill-box; transform-origin: 50% 8%; }
.adam.is-wave .adam__armR { animation: wave 1.4s var(--ease-io); }
@keyframes wave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-40deg); } 50% { transform: rotate(-24deg); } 75% { transform: rotate(-40deg); } }

/* ---------- Первый экран ---------- */
.hero { position: relative; height: 190vh; }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(110% 85% at 60% 45%, transparent 35%, rgba(9, 9, 11, .9) 100%); }
.hero__adam { position: absolute; right: 9vw; top: 50%; height: min(66vh, 600px); aspect-ratio: 360 / 470; margin-top: calc(min(66vh, 600px) * -.52); z-index: 2; will-change: transform;
  transform: translateY(var(--hy, 0px)) scale(var(--hs, 1)); opacity: var(--ho, 1); }
.hero__adam > button { position: absolute; inset: 8% 14% 14%; border-radius: 40%; cursor: pointer; }
.bubble { position: absolute; right: calc(9vw + min(66vh, 600px) * .66); top: calc(50% - min(66vh, 600px) * .46); z-index: 3; width: 300px; padding: 18px 20px 16px;
  background: rgba(20, 20, 24, .8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 18px 18px 4px 18px;
  opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .8s var(--ease); pointer-events: none; }
.bubble.is-on { opacity: 1; transform: none; pointer-events: auto; }
.bubble p { margin: 6px 0 14px; font-size: .95rem; line-height: 1.45; }
.bubble__acts { display: flex; flex-wrap: wrap; gap: 6px; }
.bubble__acts a, .bubble__acts button { font-size: .8rem; padding: 7px 12px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--bone); transition: background .3s, color .3s; }
.bubble__acts a:hover, .bubble__acts button:hover { background: var(--bone); color: var(--ink); }
.bubble__close { position: absolute; top: 8px; right: 10px; width: 28px; height: 28px; color: var(--bone-3); }
.hero__content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(48px, 10vh, 110px); pointer-events: none; z-index: 2; }
.hero__content a, .hero__content button { pointer-events: auto; }
.hero__eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #7ee2a8; box-shadow: 0 0 10px rgba(126, 226, 168, .6); }
.hero h1 { font-size: var(--fs-hero); line-height: .96; letter-spacing: -.045em; font-weight: 500; margin: 0; max-width: 10ch; }
.hero h1 .serif { color: var(--ember-2); letter-spacing: -.02em; padding-right: .04em; }
.hero__bottom { display: flex; align-items: flex-end; gap: 48px; margin-top: 40px; flex-wrap: wrap; }
.hero__lead { max-width: 400px; color: var(--bone-2); font-size: var(--fs-lead); margin: 0; }
.hero__lead b { color: var(--bone); font-weight: 500; }
.hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hero__meta { position: absolute; top: 104px; left: 0; right: 0; display: flex; justify-content: space-between; pointer-events: none; z-index: 2; }
.hero__meta .label { line-height: 1.9; }
.hero__meta .r { text-align: right; }

/* ---------- Секции: общее ---------- */
.section { padding: var(--section) 0; position: relative; }
.s-head { display: grid; grid-template-columns: 1fr minmax(260px, 380px); align-items: end; gap: 48px; margin-bottom: clamp(48px, 8vh, 96px); }
.s-head h2 { font-size: var(--fs-h2); line-height: 1; letter-spacing: -.04em; font-weight: 500; margin: 20px 0 0; }
.s-head h2 .muted { color: var(--bone-3); }
.s-head p { color: var(--bone-2); margin: 0; }

/* ---------- Манифест ---------- */
.manifesto__rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent); margin-bottom: 72px; transform-origin: center; }
.manifesto__grid { display: grid; grid-template-columns: 240px 1fr; gap: 40px; }
.manifesto__text { font-size: clamp(1.6rem, 3.1vw, 3rem); line-height: 1.16; letter-spacing: -.03em; font-weight: 400; margin: 0; max-width: 24ch; }
.manifesto__text .w { color: rgba(236, 231, 222, .16); transition: color .8s var(--ease); }
.manifesto__text .w.on { color: var(--bone); }
.manifesto__sig { margin-top: 72px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 900px; }
.manifesto__sig div { color: var(--bone-2); font-size: .94rem; border-top: 1px solid var(--line); padding-top: 18px; }
.manifesto__sig b { display: block; color: var(--bone); font-weight: 500; margin-bottom: 6px; }

/* ---------- Работы ---------- */
.work { position: relative; }
.work__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.work__head { padding-top: 72px; }
.work__head .s-head { margin-bottom: 36px; }
.work__head h2 { font-size: clamp(2rem, min(4.2vw, 6.4svh), 4.4rem); }
.work__track { display: flex; gap: clamp(20px, 2.2vw, 32px); padding: 0 var(--gutter); will-change: transform; }
.work__counter { display: flex; align-items: center; gap: 18px; margin-top: 32px; }
.work__bar { flex: 0 1 280px; height: 1px; background: var(--line-2); position: relative; }
.work__bar i { position: absolute; inset: 0; background: var(--bone); transform-origin: 0 50%; transform: scaleX(0); }

.case { flex: 0 0 auto; width: clamp(240px, min(30vw, calc((100svh - 320px) * .8)), 480px); position: relative; text-align: left; display: block; }
.case__media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--ink-3); isolation: isolate; }
.case__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.case__bg { position: absolute; inset: 0; transition: transform 1.6s var(--ease); }
.case:hover .case__bg { transform: scale(1.04); }
.case__plinth { position: absolute; left: 22%; right: 22%; bottom: 22%; height: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .6), transparent); }
.case__icon { position: absolute; left: 50%; top: 46%; width: 42%; transform: translate(-50%, -50%); transition: transform 1.4s var(--ease); }
.case__icon img { width: 100%; height: auto; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .45)); }
.glyph { aspect-ratio: 1; border-radius: 23%; display: grid; place-items: center; font: 500 clamp(2.6rem, 5vw, 4.6rem)/1 var(--f-sans); letter-spacing: -.05em;
  box-shadow: 0 24px 40px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .25); }
.case:hover .case__icon { transform: translate(-50%, -53%); }
.case__tag { position: absolute; top: 18px; left: 20px; right: 20px; display: flex; justify-content: space-between; }
.case__tag .label { color: rgba(236, 231, 222, .72); }
.case__info { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 20px; }
.case__info h3 { font-size: 1.35rem; letter-spacing: -.03em; font-weight: 500; margin: 0; }
.case__info .label { white-space: nowrap; }
.case__info p { margin: 4px 0 0; color: var(--bone-2); font-size: .9rem; }
.case__end { flex: 0 0 auto; width: clamp(240px, min(24vw, calc((100svh - 320px) * .8)), 380px); aspect-ratio: 4 / 5; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column; justify-content: space-between; padding: 32px; }
.case__end h3 { font-size: clamp(1.6rem, 2.2vw, 2.2rem); letter-spacing: -.035em; line-height: 1.05; margin: 0; font-weight: 500; }

/* Кейс */
.sheet { position: fixed; inset: 0; z-index: 85; pointer-events: none; visibility: hidden; transition: visibility 0s 1s; }
.sheet.is-open { pointer-events: auto; visibility: visible; transition: none; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(5, 5, 7, .72); opacity: 0; transition: opacity .7s var(--ease); }
.sheet__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(720px, 100%); background: var(--ink-2); box-shadow: -1px 0 0 var(--line);
  transform: translateX(100%); transition: transform 1s var(--ease); overflow-y: auto; overscroll-behavior: contain; }
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet.is-open .sheet__panel { transform: none; }
.sheet__close { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 18px 32px; background: rgba(14, 14, 17, .86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 2; border-bottom: 1px solid var(--line); }
.sheet__close button { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .6s var(--ease); }
.sheet__close button:hover { transform: rotate(90deg); }
.sheet__body { padding: 32px; }
.sheet__hero { aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; position: relative; margin-bottom: 40px; display: grid; place-items: center; }
.sheet__hero img, .sheet__hero .glyph { width: 26%; height: auto; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .45)); }
.sheet h3 { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -.04em; line-height: 1; margin: 0 0 16px; font-weight: 500; }
.sheet__lead { font-size: 1.1rem; color: var(--bone-2); margin: 0 0 36px; }
.sheet__facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sheet__facts div { padding: 20px 16px 20px 0; }
.sheet__facts div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.sheet__facts b { display: block; font-size: 1.5rem; letter-spacing: -.03em; font-weight: 500; margin-bottom: 4px; }
.sheet__block { border-bottom: 1px solid var(--line); padding: 24px 0; display: grid; grid-template-columns: 140px 1fr; gap: 20px; }
.sheet__block p { margin: 0; color: var(--bone-2); }
.sheet__block ul { margin: 0; padding-left: 18px; color: var(--bone-2); }
.sheet__block li + li { margin-top: 6px; }

/* ---------- Услуги: тихий список ---------- */
.svc { border-top: 1px solid var(--line); }
.svc__row { display: grid; grid-template-columns: 72px 1.1fr 1fr 32px; gap: 24px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line); position: relative; cursor: pointer; }
.svc__row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--bone-2); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.svc__row:hover::after, .svc__row.is-open::after { transform: scaleX(1); }
.svc__row .label { transition: color .4s; }
.svc__row:hover .label, .svc__row.is-open .label { color: var(--ember-2); }
.svc__row h3 { font-size: var(--fs-h3); letter-spacing: -.03em; margin: 0; font-weight: 500; transition: transform .8s var(--ease); }
.svc__row:hover h3 { transform: translateX(8px); }
.svc__desc { color: var(--bone-2); font-size: .95rem; margin: 0; }
.svc__plus { justify-self: end; width: 14px; height: 14px; position: relative; align-self: center; }
.svc__plus::before, .svc__plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--bone-2); transition: transform .6s var(--ease); }
.svc__plus::after { transform: rotate(90deg); }
.svc__row.is-open .svc__plus::after { transform: rotate(0); }
.svc__more { grid-column: 3 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s var(--ease); }
.svc__row.is-open .svc__more { grid-template-rows: 1fr; }
.svc__more > p { overflow: hidden; margin: 0; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em; color: var(--bone-3); }

/* ---------- Процесс ---------- */
.process { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps__line { position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--line-2); }
.steps__line i { position: absolute; inset: 0; background: var(--bone-2); transform-origin: 0 50%; transform: scaleX(0); }
.step { position: relative; padding-top: 44px; }
.step__dot { position: absolute; top: 0; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--bone-3); transition: background .6s, box-shadow .6s; }
.step.is-lit .step__dot { background: var(--bone); box-shadow: inset 0 0 0 1px var(--bone); }
.step h3 { font-size: 1.4rem; letter-spacing: -.025em; margin: 14px 0 10px; font-weight: 500; }
.step p { color: var(--bone-2); margin: 0 0 16px; font-size: .94rem; }
.step__out { font-size: .86rem; color: var(--bone); display: flex; gap: 10px; align-items: center; }
.step__out::before { content: ""; width: 14px; height: 1px; background: var(--ember); }

/* ---------- Доказательства ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 36px 24px 36px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(2.8rem, 5.2vw, 4.8rem); line-height: 1; letter-spacing: -.05em; font-weight: 400; font-variant-numeric: tabular-nums; }
.stat b small { font-size: .32em; letter-spacing: 0; color: var(--bone-3); margin-left: 6px; font-weight: 400; }
.stat p { color: var(--bone-2); margin: 16px 0 0; font-size: .9rem; max-width: 220px; }
.guarantees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 96px; background: var(--line); box-shadow: 0 0 0 1px var(--line); border-radius: var(--radius); overflow: hidden; }
.g-card { background: var(--ink); padding: 36px 32px 40px; }
.g-card h3 { font-size: 1.2rem; letter-spacing: -.02em; margin: 56px 0 10px; font-weight: 500; }
.g-card p { color: var(--bone-2); margin: 0; font-size: .94rem; }

/* ---------- Адам: глава студии ---------- */
.chief { display: grid; grid-template-columns: minmax(260px, .8fr) 1.2fr; gap: clamp(40px, 6vw, 110px); align-items: center; margin-bottom: clamp(72px, 12vh, 140px); }
.chief__figure { position: relative; aspect-ratio: 360 / 470; justify-self: center; width: 100%; max-width: 400px; }
.chief__figure::before { content: ""; position: absolute; left: 0; right: 0; top: 14%; bottom: 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 107, 44, .13), transparent); }
.chief h2 { font-size: var(--fs-h2); line-height: 1; letter-spacing: -.04em; font-weight: 500; margin: 20px 0 24px; }
.chief__lead { color: var(--bone-2); font-size: var(--fs-lead); max-width: 520px; margin: 0 0 40px; }
.duties { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.duties div { border-top: 1px solid var(--line); padding-top: 18px; }
.duties b { display: block; font-weight: 500; margin-bottom: 6px; }
.duties p { margin: 0; color: var(--bone-2); font-size: .9rem; }

/* ---------- Игра ---------- */
.game { position: relative; border-radius: 22px; overflow: hidden; background: #060608; aspect-ratio: 16 / 7; box-shadow: inset 0 0 0 1px var(--line-2);
  touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.game canvas { width: 100%; height: 100%; display: block; cursor: pointer; }
.game__hud { position: absolute; top: 20px; left: 24px; right: 24px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; gap: 16px; }
.game__score b { font-size: 1.5rem; font-weight: 400; display: block; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.game__energy { width: min(220px, 40%); text-align: right; }
.game__ebar { height: 2px; background: rgba(255, 255, 255, .1); margin-top: 10px; overflow: hidden; border-radius: 2px; }
.game__ebar i { display: block; height: 100%; background: var(--bone); transform-origin: 0 50%; transition: background .4s; }
.game__ebar.is-low i { background: var(--ember); }
.game__overlay { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: rgba(6, 6, 8, .74); transition: opacity .6s var(--ease); padding: 24px; }
.game__overlay.is-hidden { opacity: 0; pointer-events: none; }
.game__overlay h3 { font-size: clamp(1.6rem, 3.4vw, 2.8rem); letter-spacing: -.04em; margin: 12px 0 10px; font-weight: 500; line-height: 1.05; }
.game__overlay p { color: var(--bone-2); margin: 0 auto 24px; max-width: 400px; font-size: .94rem; }
.game__acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.game__hint { margin-top: 18px; }
.game__legend { display: flex; gap: 32px; margin-top: 20px; flex-wrap: wrap; }
.legend { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--bone-2); }
.legend svg { width: 16px; height: 16px; flex: 0 0 auto; }
.legend b { color: var(--bone); font-weight: 500; }
.game__promo { display: none; margin: 0 auto 20px; padding: 10px 14px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255, 180, 138, .4); color: var(--ember-2); font-family: var(--f-mono); font-size: .74rem; }
.game__promo.is-on { display: inline-block; }

/* ---------- Контакт ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(48px, 7vw, 120px); }
.contact h2 { font-size: var(--fs-h2); line-height: 1; letter-spacing: -.04em; font-weight: 500; margin: 20px 0 28px; }
.contact h2 .serif { color: var(--ember-2); }
.contact__lead { color: var(--bone-2); font-size: var(--fs-lead); max-width: 420px; margin: 0; }
.contact__alt { margin-top: 48px; border-top: 1px solid var(--line); }
.contact__alt a { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; letter-spacing: -.015em; transition: color .4s; }
.contact__alt a:hover { color: var(--ember-2); }
.form { position: relative; }
.form fieldset { border: 0; padding: 0; margin: 0 0 32px; min-width: 0; }
.form legend { margin-bottom: 14px; padding: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span { display: inline-block; padding: 10px 16px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: .88rem; color: var(--bone-2); transition: all .4s var(--ease); }
.pill:hover span { color: var(--bone); box-shadow: inset 0 0 0 1px var(--bone-3); }
.pill input:checked + span { background: var(--bone); color: var(--ink); box-shadow: none; }
.pill input:focus-visible + span { outline: 1.5px solid var(--ember-2); outline-offset: 3px; }
.field { position: relative; margin-bottom: 24px; }
.field input, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); color: var(--bone); font: inherit; font-size: 1.05rem;
  padding: 26px 0 12px; outline: none; transition: border-color .5s; resize: none; border-radius: 0; }
.field textarea { min-height: 92px; }
.field label { position: absolute; left: 0; top: 26px; color: var(--bone-3); pointer-events: none; transition: transform .6s var(--ease), color .4s; transform-origin: 0 0; }
.field input:focus, .field textarea:focus { border-color: var(--bone-2); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-22px) scale(.74); color: var(--bone-2); }
.field__err { position: absolute; right: 0; top: 30px; font-size: .76rem; color: var(--ember-2); opacity: 0; transition: opacity .3s; }
.field.is-err .field__err { opacity: 1; }
.field.is-err input { border-color: var(--ember); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.form__foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 16px; }
.form__foot small { color: var(--bone-3); max-width: 280px; font-size: .76rem; line-height: 1.5; }
.form__foot small a { text-decoration: underline; text-underline-offset: 2px; }
.form__done { position: absolute; inset: -8px; background: var(--ink); display: grid; place-items: center; text-align: center; padding: 30px; opacity: 0; pointer-events: none; transition: opacity .8s var(--ease); }
.form.is-sent .form__done { opacity: 1; pointer-events: auto; }
.form__done .mini { width: 110px; height: 144px; margin: 0 auto; }
.form__done h3 { font-size: 2rem; letter-spacing: -.035em; margin: 20px 0 10px; font-weight: 500; }
.form__done p { color: var(--bone-2); margin: 0; }

/* ---------- Футер ---------- */
.footer { border-top: 1px solid var(--line); padding: 80px 0 32px; position: relative; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer__top h4 { margin: 0 0 18px; }
.footer__top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__top a { color: var(--bone-2); transition: color .3s; }
.footer__top a:hover { color: var(--bone); }
.footer__about { color: var(--bone-2); max-width: 320px; margin-top: 20px; }
.footer__wordwrap { position: relative; margin: 96px 0 36px; }
.footer__word { font-size: clamp(4.4rem, 21vw, 21rem); line-height: .78; letter-spacing: -.065em; font-weight: 600; margin: 0; white-space: nowrap; color: var(--ink-3); }
.footer__word span { display: inline-block; transform: translateY(40%); opacity: 0; transition: transform 1.6s var(--ease), opacity 1.6s var(--ease); }
.footer__word.is-in span { transform: none; opacity: 1; }
.footer__adam { position: absolute; width: clamp(64px, 8vw, 128px); aspect-ratio: 360 / 470; right: 2%; bottom: 0; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* Мобильная липкая кнопка */
.dock { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 70; display: none; transform: translateY(160%); transition: transform .8s var(--ease); }
.dock.is-on { transform: none; }
.dock .btn { width: 100%; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .nav__right .btn { display: none; }
  .s-head { grid-template-columns: 1fr; gap: 20px; }
  .manifesto__grid { grid-template-columns: 1fr; gap: 24px; }
  .svc__row { grid-template-columns: 48px 1fr 24px; }
  .svc__desc { grid-column: 2 / 3; grid-row: 2; }
  .svc__plus { grid-column: 3; grid-row: 1; }
  .svc__more { grid-column: 2 / 3; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 56px; }
  .steps__line { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .guarantees { grid-template-columns: 1fr; }
  .chief { grid-template-columns: 1fr; }
  .chief__figure { max-width: 280px; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .game { aspect-ratio: 16 / 10; }
  .hero__adam { right: 5vw; height: min(50vh, 460px); margin-top: calc(min(50vh, 460px) * -.62); }
  .bubble { right: calc(5vw + min(50vh, 460px) * .5); top: max(150px, calc(50% - min(50vh, 460px) * .62 - 120px)); }
}
@media (max-width: 760px) {
  :root { --section: 104px; }
  .hero__meta { top: 84px; }
  .hero__meta .hide-m { display: none; }
  .hero__adam { left: 50%; right: auto; top: 12vh; margin: 0; height: 34vh; transform: translateX(-50%) translateY(var(--hy, 0px)) scale(var(--hs, 1)); }
  .bubble { left: 16px; right: 16px; width: auto; top: calc(12vh + 30vh); border-radius: 18px; }
  .hero__content { padding-bottom: 32px; }
  .hero__bottom { margin-top: 24px; gap: 24px; }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { flex: 1 1 auto; padding: 0 20px; }
  .work { height: auto !important; }
  .work__pin { position: relative; height: auto; display: block; padding: 24px 0 0; }
  .work__track { flex-direction: column; transform: none !important; gap: 48px; }
  .case, .case__end { width: 100%; }
  .case__end { aspect-ratio: auto; min-height: 240px; }
  .work__counter { display: none; }
  .manifesto__sig { grid-template-columns: 1fr; gap: 24px; }
  .steps { grid-template-columns: 1fr; row-gap: 40px; }
  .step { padding-top: 0; padding-left: 32px; }
  .step__dot { top: 8px; }
  .stat, .stat + .stat { padding: 28px 12px 28px 0; }
  .stat:nth-child(even) { padding-left: 16px; }
  .duties { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .game { aspect-ratio: 4 / 5; border-radius: 16px; }
  .game__legend { gap: 20px; }
  .sheet__facts { grid-template-columns: 1fr; }
  .sheet__facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .sheet__block { grid-template-columns: 1fr; gap: 8px; }
  .sheet__body, .sheet__close { padding-left: 20px; padding-right: 20px; }
  .footer__top > div:first-child { grid-column: 1 / -1; }
  .dock { display: block; }
  .footer { padding-bottom: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; }
  .reveal { opacity: 1; transform: none; }
  .line-mask > span { transform: none; }
}
