/* ============ JefeCode — копировальня ============ */

:root {
  --ink: #000;
  --bone: #e8e3d8;
  --bone-dim: #b9b4aa;
  --ash: #87837b;
  --soot: #171716;
  --line: rgba(232, 227, 216, .16);
  --lamp: #e4fff0;

  --f-goth: "Grenze Gotisch", "Ruslan Display", serif;
  --f-cond: "Alumni Sans", "Arial Narrow", sans-serif;
  --f-body: "Golos Text", system-ui, sans-serif;

  --pad: clamp(16px, 2.2vw, 32px);
  --ease: cubic-bezier(.7, 0, .2, 1);

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 2.2 -1.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
html.is-loading, html.no-scroll { overflow: hidden; }

/* полосу прокрутки браузера прячем: вместо неё внизу свой счётчик и линейка.
   Прокрутка колесом, тачпадом и клавишами работает как обычно */
html, .case, .brief { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, .case::-webkit-scrollbar, .brief::-webkit-scrollbar { display: none; width: 0; height: 0; }

body {
  background: var(--ink);
  color: var(--bone);
  font: 400 17px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, canvas { display: block; max-width: 100%; }

::selection { background: var(--bone); color: var(--ink); }

:focus-visible { outline: 2px solid var(--bone); outline-offset: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.defs { position: absolute; width: 0; height: 0; }

.goth {
  font-family: var(--f-goth);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.01em;
}

/* ---------- плёнка зерна поверх всего ---------- */
.grain {
  position: fixed;
  inset: -120px;
  z-index: 95;
  pointer-events: none;
  background-image: var(--noise);
  opacity: .075;
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-60px, 40px); }
  40% { transform: translate(40px, -70px); }
  60% { transform: translate(-30px, -20px); }
  80% { transform: translate(70px, 60px); }
  100% { transform: translate(0, 0); }
}

/* ---------- курсор ---------- */
.cursor {
  position: fixed;
  left: 0; top: 0;
  z-index: 100;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity .3s;
}
.cursor.is-on { opacity: 1; }
.cursor::before {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  left: -5px; top: -5px;
  background: var(--bone);
  transition: transform .35s var(--ease);
}
.cursor.is-link::before { transform: scale(3.2); }
.cursor.has-label::before { transform: scale(0); }
.cursor-label {
  position: absolute;
  left: 0; top: 0;
  transform: translate(-50%, -50%) scale(0);
  padding: 10px 14px 9px;
  background: var(--bone);
  color: var(--ink);
  font: 700 18px/1 var(--f-cond);
  letter-spacing: .04em;
  white-space: nowrap;
  transition: transform .35s var(--ease);
}
.cursor.has-label .cursor-label { transform: translate(-50%, -50%) scale(1); }
@media (pointer: fine) {
  body, a, button, input, label { cursor: none; }
}
@media not (pointer: fine) {
  .cursor { display: none; }
}

/* ---------- лоадер ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: var(--ink);
  perspective: 1100px;
}
.loader-scene { transform-style: preserve-3d; }
.loader-sheet {
  position: relative;
  width: min(30vh, 52vw);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bone);
  color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(232, 227, 216, .25);
  transform-style: preserve-3d;
}
/* следы сгиба на листе */
.loader-sheet::before, .loader-sheet::after { content: ""; position: absolute; background: rgba(0, 0, 0, .08); }
.loader-sheet::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.loader-sheet::after { top: 50%; left: 0; right: 0; height: 1px; }
.loader-ink {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: min(26vh, 45vw);
  clip-path: inset(0 0 100% 0);
}
.loader-num {
  position: absolute;
  left: 8%; bottom: 5%;
  font: 800 min(5.5vh, 9vw)/1 var(--f-cond);
  font-variant-numeric: tabular-nums;
}
.loader-tag {
  position: absolute;
  right: 8%; bottom: 6%;
  font-size: min(2.6vh, 4.5vw);
}
.loader-glow {
  position: absolute;
  width: min(42vh, 70vw);
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 227, 216, .14), transparent);
  transform: translateY(min(22vh, 38vw));
}
.loader-scan, .manifest-scan, .case-scan, .brief-scan, .scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--lamp);
  box-shadow: 0 0 18px 4px rgba(228, 255, 240, .55), 0 0 80px 18px rgba(228, 255, 240, .18);
  pointer-events: none;
}
.loader-scan { top: 0; }

/* ---------- HUD ---------- */
.hud {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--pad);
  mix-blend-mode: difference;
  font: 600 21px/1 var(--f-cond);
  letter-spacing: .03em;
}
.hud-logo { font-family: var(--f-goth); font-size: 26px; font-weight: 800; letter-spacing: 0; }
.hud-nav { display: flex; gap: clamp(18px, 3vw, 44px); }
.hud a, .hud-sound { display: inline-block; padding: 4px 0; }
.hud-right { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 40px); }
/* языки: одна кнопка с текущим языком, остальные выпадают под ней */
.hud-lang { position: relative; }
.lang-current { display: inline-flex; align-items: center; gap: 7px; padding: 4px 0; }
.lang-current::after {
  content: "";
  width: 5px; height: 5px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .35s var(--ease), margin .35s var(--ease);
}
.hud-lang.is-open .lang-current::after { transform: rotate(-135deg); margin-top: 3px; }
.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding-top: 10px;
  visibility: hidden;
  transition: visibility 0s .3s;
}
.hud-lang.is-open .lang-menu { visibility: visible; transition: none; }
.lang-menu button {
  padding: 3px 0;
  color: var(--ash);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s, transform .35s var(--ease), color .25s;
}
.lang-menu button[aria-pressed="true"] { display: none; }
.lang-menu button:hover, .lang-menu button:focus-visible { color: var(--bone); }
.hud-lang.is-open .lang-menu button { opacity: 1; transform: none; }
.hud-lang.is-open .lang-menu button:nth-child(2) { transition-delay: 0s, .04s, 0s; }
.hud-lang.is-open .lang-menu button:nth-child(3) { transition-delay: .04s, .08s, 0s; }
.hud-lang.is-open .lang-menu button:nth-child(4) { transition-delay: .08s, .12s, 0s; }
.hud-sound-state { color: var(--ash); }
.hud-sound[aria-pressed="true"] .hud-sound-state { color: var(--bone); }

.progress {
  position: fixed;
  left: var(--pad); right: var(--pad); bottom: 14px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 18px;
  mix-blend-mode: difference;
  pointer-events: none;
}
.progress-num {
  font: 700 34px/1 var(--f-cond);
  font-variant-numeric: tabular-nums;
}
.ruler {
  /* линейка работает как полоса прокрутки: клик — переход, перетаскивание — прокрутка.
     Отступ 12px сверху и снизу — увеличенная зона попадания, засечки рисуются только в контенте */
  position: relative;
  flex: 1;
  height: 33px;
  padding: 12px 0;
  margin: -12px 0;
  background: repeating-linear-gradient(90deg, rgba(232,227,216,.4) 0 1px, transparent 1px 9px) content-box;
  pointer-events: auto;
  cursor: pointer;
  touch-action: none;
  outline-offset: 2px;
}
.ruler:hover, .ruler.is-drag, .ruler:focus-visible {
  background: repeating-linear-gradient(90deg, rgba(232,227,216,.75) 0 1px, transparent 1px 9px) content-box;
}
.ruler.is-drag { cursor: grabbing; }
.ruler i {
  position: absolute;
  left: 0; top: 7px;
  width: 2px; height: 19px;
  background: var(--bone);
}
/* метки разделов: засечки длиннее обычных */
.ruler-marks span {
  position: absolute;
  top: 8px;
  width: 1px; height: 17px;
  background: var(--bone);
  opacity: .7;
}
/* куда попадёшь: линия под курсором и подпись с разделом */
.ruler-ghost {
  position: absolute;
  top: 5px;
  width: 1px; height: 23px;
  background: var(--bone);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.ruler-ghost.is-on { opacity: 1; }
.ruler-ghost b {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  font: 700 18px/1 var(--f-cond);
  letter-spacing: .03em;
  white-space: nowrap;
  transform: translateX(-50%);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero-word {
  margin-top: -6vh;
  font-size: 18vw; /* точный размер подгоняется из JS */
  font-weight: 500;
  line-height: .8;
  letter-spacing: -.005em;
  white-space: nowrap;
  text-shadow: 0 0 40px rgba(232, 227, 216, .18);
  filter: url(#smear);
}
.hw {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: .12em .05em .18em;
  overflow: hidden;
}
.hw i { display: block; font-style: normal; will-change: transform; }
.hw-br { display: none; }
.hero-status {
  position: absolute;
  right: var(--pad);
  bottom: 76px;
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 21px/1 var(--f-cond);
  letter-spacing: .03em;
}
.hero-status i {
  width: 9px; height: 9px;
  background: var(--lamp);
  box-shadow: 0 0 10px 2px rgba(228, 255, 240, .7);
  animation: blink 1.6s steps(2) infinite;
}
@keyframes blink { 50% { opacity: .15; } }
.hero-hint {
  position: absolute;
  left: 50%;
  bottom: 76px;
  transform: translateX(-50%);
  font: 600 18px/1 var(--f-cond);
  letter-spacing: .06em;
  color: var(--ash);
}

/* ---------- МАНИФЕСТ ---------- */
.manifest {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 18vh var(--pad);
}
.manifest-box {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
}
.manifest-ghost, .manifest-ink {
  font: 700 clamp(38px, 6.2vw, 96px)/.98 var(--f-cond);
  letter-spacing: -.005em;
  text-wrap: balance;
}
.manifest-ghost {
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 227, 216, .22);
}
.manifest-ink {
  position: absolute;
  inset: 0;
  text-shadow: 0 0 22px rgba(232, 227, 216, .25);
}
.manifest-scan { top: 0; }

/* ---------- РАБОТЫ / стена ---------- */
.works {
  position: relative;
  background:
    radial-gradient(120% 80% at 30% 40%, #1b1b1a 0%, #0a0a0a 60%, #000 100%);
  overflow: hidden;
}
.works::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: .12;
  pointer-events: none;
}
.wall { position: relative; }
.wall-track {
  display: flex;
  align-items: center;
  gap: clamp(36px, 5vw, 96px);
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  padding: 0 12vw 0 var(--pad);
  width: max-content;
}
.works-head {
  flex: 0 0 auto;
  width: min(460px, 78vw);
  margin-right: 4vw;
}
.works-head h2, .services h2, .xerox h2 {
  position: relative;
  font-size: clamp(96px, 15vw, 230px);
  padding-bottom: .08em;
  text-shadow: 0 0 30px rgba(232, 227, 216, .25);
}
.works-head p { max-width: 30ch; margin-top: 18px; color: var(--bone-dim); }

.flyer {
  --fw: clamp(232px, 23vw, 330px);
  position: relative;
  flex: 0 0 auto;
  width: var(--fw);
  aspect-ratio: 5 / 7;
  display: block;
  text-align: left;
}
.paper {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 7% 8%;
  overflow: hidden;
  font-size: calc(var(--fw) / 18);
  background: var(--bone);
  color: var(--ink);
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .9), 0 2px 0 rgba(0, 0, 0, .4);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.paper > span { display: block; position: relative; }
.paper::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise), linear-gradient(90deg, transparent 49.6%, rgba(0,0,0,.12) 50%, transparent 50.4%), linear-gradient(transparent 49.7%, rgba(0,0,0,.1) 50%, transparent 50.3%);
  mix-blend-mode: difference;
  opacity: .5;
  pointer-events: none;
}
.flyer:hover .paper, .flyer:focus-visible .paper {
  transform: translateY(-14px) rotate(calc(var(--tilt, 0) * 1deg)) scale(1.04);
  box-shadow: 0 50px 70px -24px rgba(0, 0, 0, .95), 0 2px 0 rgba(0, 0, 0, .4);
}
.tape {
  position: absolute !important;
  top: -10px; left: 50%;
  width: 34%; height: 9%;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(232, 227, 216, .55);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
  z-index: 2;
}
.p-row { display: flex !important; flex-wrap: wrap; gap: .2em .6em; justify-content: space-between; font: 700 1em/1 var(--f-cond); letter-spacing: .04em; }
.p-foot { margin-top: auto; font: 500 .72em/1.25 var(--f-body); }
.p-big { font-size: 3.6em; }

/* реальные работы: скриншот, «прогнанный через ксерокс» */
.flyer-real { --fw: clamp(270px, 29vw, 420px); }
.p-shot .p-row span:last-child { font-weight: 500; letter-spacing: .02em; }
.shot {
  position: relative;
  margin: .9em -.2em .8em;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  outline: 1.5px solid currentColor;
  outline-offset: 0;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: grayscale(1) contrast(1.7) brightness(1.05);
  transition: filter .6s var(--ease), transform .8s var(--ease);
}
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,.45) .9px, transparent 1.2px);
  background-size: 4px 4px;
  mix-blend-mode: multiply;
  transition: opacity .6s var(--ease);
}
.flyer:hover .shot img, .flyer:focus-visible .shot img { filter: none; transform: scale(1.04); }
.flyer:hover .shot::after, .flyer:focus-visible .shot::after { opacity: 0; }
.p-shot .p-big { font-size: 3.4em; }
.p-fandfit { background: var(--ink); color: var(--bone); outline: 1.5px solid var(--bone); outline-offset: -10px; }
.p-fandfit .p-foot { color: var(--bone-dim); }
.p-yana .p-big { font-size: 2.5em; line-height: .95; }
.p-vlad .p-big { font-size: 2.15em; line-height: .95; }
/* свой продукт: штамп «дела» поверх скриншота, как на сайте анинсталлера */
.p-uninst .p-big { font-size: 2.35em; line-height: .95; }
.p-uninst .p-stamp {
  position: absolute !important;
  right: 9%;
  top: 44%;
  padding: .25em .55em .2em;
  border: 2px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 2px;
  background: rgba(232, 227, 216, .9);
  font: 800 1em/1 var(--f-cond);
  letter-spacing: .06em;
  transform: rotate(-9deg);
  z-index: 2;
}
/* 7. свободное место */
.p-yours {
  background: transparent;
  color: var(--bone);
  border: 2px dashed rgba(232, 227, 216, .5);
  box-shadow: none;
  justify-content: center;
}
.p-yours::after { display: none; }
.p-yours-text { font: 800 3.2em/.95 var(--f-cond); }
.p-yours .p-foot { margin-top: 1.2em; color: var(--ash); }
.flyer-yours:hover .p-yours { border-color: var(--bone); }

/* ---------- УСЛУГИ ---------- */
.services { padding: 22vh var(--pad) 18vh; }
.svc { margin-top: 6vh; border-top: 1px solid var(--line); }
.svc li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 24px;
  padding: 22px 12px 20px;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  transition: color .45s var(--ease);
}
.svc li::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bone);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .45s var(--ease);
}
.svc li:hover { color: var(--ink); }
.svc li:hover::before { transform: scaleY(1); }
.svc-name { font: 700 clamp(34px, 4.6vw, 68px)/1 var(--f-cond); letter-spacing: -.005em; }
.svc-desc { max-width: 40ch; color: var(--bone-dim); transition: color .45s var(--ease); }
.svc li:hover .svc-desc { color: #3b3935; }

.steps-wrap { margin-top: 16vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 40px; }
.steps-title { font: 700 34px/1 var(--f-cond); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--bone); padding-top: 14px; }
.steps li::before {
  content: counter(s);
  display: block;
  font: 800 64px/.9 var(--f-cond);
  margin-bottom: 14px;
}
.steps b { display: block; font: 700 24px/1.1 var(--f-cond); letter-spacing: .02em; margin-bottom: 6px; }
.steps span { font-size: 15px; color: var(--bone-dim); }

/* ---------- КСЕРОКС ---------- */
.xerox {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 110px);
  align-items: start;
  padding: 16vh var(--pad);
  border-top: 1px solid var(--line);
}
.xerox-copy { position: sticky; top: 14vh; }
.xerox-copy > p { max-width: 38ch; margin-top: 18px; color: var(--bone-dim); }
.xerox-label { display: block; margin-top: 44px; font: 600 20px/1 var(--f-cond); letter-spacing: .04em; color: var(--ash); }
.xerox-input {
  width: 100%;
  margin-top: 10px;
  padding: 6px 0 10px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--bone);
  color: var(--bone);
  font: 800 clamp(48px, 6vw, 88px)/1 var(--f-goth);
  outline: none;
  border-radius: 0;
}
.xerox-input:focus-visible { border-bottom-color: var(--lamp); box-shadow: 0 6px 18px -8px rgba(228,255,240,.6); }
.xerox-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn {
  display: inline-block;
  padding: 13px 20px 12px;
  border: 1.5px solid var(--bone);
  font: 700 21px/1 var(--f-cond);
  letter-spacing: .03em;
  transition: background .25s, color .25s, opacity .25s;
}
.btn:hover:not(:disabled) { background: var(--bone); color: var(--ink); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn-solid { background: var(--bone); color: var(--ink); }
.btn-solid:hover:not(:disabled) { background: var(--lamp); }
.xerox-gen { margin-top: 18px; font: 600 20px/1 var(--f-cond); letter-spacing: .03em; color: var(--ash); }
.xerox-gen b { color: var(--bone); font-variant-numeric: tabular-nums; }

.machine { position: relative; max-width: 560px; width: 100%; justify-self: center; }
.machine-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(#2a2a28, #1a1a19);
  border: 1px solid #3a3a37;
  border-radius: 6px 6px 2px 2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 20px 40px -10px rgba(0,0,0,.8);
}
.machine-glass {
  position: relative;
  flex: 1;
  height: 54px;
  background: linear-gradient(180deg, #050606, #101413);
  border: 1px solid #000;
  box-shadow: inset 0 0 18px rgba(0,0,0,.9);
  overflow: hidden;
}
.machine-lamp {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 3px;
  background: var(--lamp);
  box-shadow: 0 0 14px 6px rgba(228,255,240,.55);
  opacity: 0;
}
.machine-panel { display: flex; align-items: center; gap: 12px; }
.led {
  width: 8px; height: 8px; border-radius: 50%;
  background: #6dffb0;
  box-shadow: 0 0 8px 2px rgba(109,255,176,.6);
}
.machine.is-jam .led { background: #ff5a4a; box-shadow: 0 0 10px 3px rgba(255,90,74,.7); animation: blink .45s steps(2) infinite; }
.machine.is-jam .readout { color: #ff8a7a; text-shadow: 0 0 8px rgba(255,90,74,.6); }
#xpull[hidden], #xbrief[hidden] { display: none; }
/* кнопка с промокодом: во всю ширину, светится лампой копира и пульсирует */
#xbrief {
  flex-basis: 100%;
  padding: 17px 22px 16px;
  font-size: 26px;
  background: var(--lamp);
  border-color: var(--lamp);
  color: var(--ink);
  animation: callout 1.6s ease-out infinite;
}
#xbrief:hover { background: var(--bone); border-color: var(--bone); }
@keyframes callout {
  0% { box-shadow: 0 0 0 0 rgba(228, 255, 240, .6), 0 0 24px 2px rgba(228, 255, 240, .35); }
  100% { box-shadow: 0 0 0 16px rgba(228, 255, 240, 0), 0 0 24px 2px rgba(228, 255, 240, .35); }
}
.machine.is-busy .led { background: #ffb36d; box-shadow: 0 0 8px 2px rgba(255,179,109,.6); animation: blink .3s steps(2) infinite; }
.readout {
  min-width: 52px;
  padding: 6px 8px 5px;
  background: #0b120e;
  color: #8dffbf;
  text-align: center;
  font: 700 26px/1 var(--f-cond);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 8px rgba(141,255,191,.6);
  border: 1px solid #000;
}
.machine-state { font: 600 18px/1 var(--f-cond); letter-spacing: .04em; color: var(--bone-dim); min-width: 56px; }
.machine-slot {
  position: relative;
  z-index: 2;
  height: 14px;
  margin: 0 18px;
  background: #000;
  border-radius: 0 0 4px 4px;
  box-shadow: inset 0 4px 6px rgba(0,0,0,1), 0 1px 0 #2c2c2a;
}
.paper-wrap {
  position: relative;
  margin: -6px 30px 0;
  overflow: hidden;
  padding-bottom: 40px;
}
.sheet {
  position: relative;
  opacity: 0;
  box-shadow: 0 26px 40px -16px rgba(0,0,0,.95);
}
.sheet canvas { width: 100%; height: auto; aspect-ratio: 3 / 4; background: #050505; }

/* ---------- КОНТАКТ ---------- */
.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14vh var(--pad) 10vh;
  border-top: 1px solid var(--line);
}
/* видео за контактами: силуэт справа, текст слева на тёмном */
.contact-video {
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: inset(0 0 100% 0);
}
.contact-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  opacity: .9;
  transform: translateX(9%) scale(1.04);
}
@media (max-width: 720px) {
  /* на телефоне текст поверх силуэта — фон темнее */
  .contact-video video { transform: none; opacity: .6; }
}
.contact-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #000 0%, rgba(0,0,0,.75) 35%, rgba(0,0,0,.15) 70%, rgba(0,0,0,.25) 100%),
    linear-gradient(#000 0%, transparent 20%, transparent 80%, #000 100%);
}
.contact-lead { font: 600 clamp(24px, 2.6vw, 38px)/1.1 var(--f-cond); color: var(--bone-dim); }
.contact-bigs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 3vh 0 4vh;
}
.contact-big {
  display: inline-block;
  margin-left: -0.04em;
  font-size: clamp(76px, 15vw, 260px);
  text-shadow: 0 0 40px rgba(232, 227, 216, .25);
  filter: url(#smear);
  will-change: transform;
}
.contact-row { display: flex; flex-wrap: wrap; gap: 14px 48px; font: 600 clamp(24px, 2.4vw, 34px)/1 var(--f-cond); letter-spacing: .02em; }
.contact-row a { border-bottom: 1.5px solid var(--line); padding-bottom: 4px; transition: border-color .3s; }
.contact-row a:hover { border-color: var(--bone); }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px var(--pad) 70px;
  border-top: 1px solid var(--line);
  font: 600 19px/1.2 var(--f-cond);
  letter-spacing: .03em;
  color: var(--ash);
}
.foot a { color: var(--bone); }

/* ---------- КЕЙС ---------- */
.case {
  position: fixed;
  inset: 0;
  z-index: 85;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bone);
  color: var(--ink);
  clip-path: inset(0 0 100% 0);
}
.case[hidden] { display: none; }
.case :focus-visible { outline-color: var(--ink); }
.case-scan { top: 0; z-index: 3; }
.case-close {
  position: fixed;
  top: 14px; right: var(--pad);
  z-index: 4;
  padding: 10px 16px 9px;
  border: 1.5px solid var(--ink);
  font: 700 21px/1 var(--f-cond);
  letter-spacing: .03em;
  background: var(--bone);
}
.case-close:hover { background: var(--ink); color: var(--bone); }
.case-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  min-height: 100%;
  padding: 90px var(--pad) 60px;
}
.case-meta { font: 700 22px/1 var(--f-cond); letter-spacing: .04em; color: #5c5952; }
.case-title { font-size: clamp(64px, 8vw, 150px); margin: 16px 0 36px; }
.case-title.is-long { font-size: clamp(44px, 5.4vw, 100px); }
.case-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.case-cols > div { border-top: 1.5px solid var(--ink); padding-top: 12px; }
.case-cols dt { font: 700 22px/1 var(--f-cond); letter-spacing: .03em; margin-bottom: 8px; }
.case-cols dd { font-size: 15px; line-height: 1.5; }
.case-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.btn-ink { border-color: var(--ink); }
.btn-ink:hover { background: var(--ink) !important; color: var(--bone) !important; }
.btn-ink-solid { background: var(--ink); color: var(--bone); }
.btn-ink-solid:hover { background: #2b2a27 !important; }
.case-shot {
  margin: 0;
  background: var(--ink);
  border: 1.5px solid var(--ink);
  box-shadow: 0 40px 70px -30px rgba(0,0,0,.6);
  transform: rotate(1deg);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: var(--ink);
}
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--bone-dim); }
.browser-url { margin-left: 10px; font: 600 15px/1 var(--f-cond); letter-spacing: .04em; color: var(--bone-dim); }
.case-shot img { width: 100%; height: auto; }

/* ---------- БРИФ ---------- */
.contact-brief { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 5vh; }
.contact-brief p { max-width: 36ch; font-size: 15px; color: var(--bone-dim); }

.brief {
  position: fixed;
  inset: 0;
  z-index: 86;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: radial-gradient(120% 80% at 50% 0%, #1b1b1a 0%, #070707 60%, #000 100%);
  clip-path: inset(0 0 100% 0);
}
.brief[hidden] { display: none; }
.brief-scan { top: 0; z-index: 3; position: fixed; }
.brief-bar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px var(--pad);
  background: linear-gradient(#000 60%, transparent);
}
.brief-name { font-size: 34px; }
.brief-close {
  padding: 10px 16px 9px;
  border: 1.5px solid var(--bone);
  font: 700 21px/1 var(--f-cond);
  letter-spacing: .03em;
}
.brief-close:hover { background: var(--bone); color: var(--ink); }
.brief-machine { max-width: 820px; margin: 2vh auto 12vh; padding: 0 var(--pad); }
.brief .machine-state { min-width: 0; }
.brief-feed { position: relative; margin: -6px 22px 0; }
.brief-sheet {
  position: relative;
  padding: clamp(24px, 5vw, 56px);
  background: var(--bone);
  color: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .95);
}
.brief-sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  mix-blend-mode: difference;
  opacity: .28;
  pointer-events: none;
}
.brief-sheet :focus-visible { outline-color: var(--ink); }
.bs-head { margin-bottom: 30px; }
.bs-count { font: 700 20px/1 var(--f-cond); letter-spacing: .04em; color: #5c5952; }
.bs-title { margin-top: 8px; font: 800 clamp(40px, 6vw, 64px)/.95 var(--f-cond); }
.bs-intro { margin-top: 14px; max-width: 52ch; font-size: 16px; color: #3b3935; }

.bq { margin: 0 0 30px; padding: 0; border: 0; min-width: 0; }
.bq[hidden] { display: none; }
.bq-label { display: block; padding: 0; margin-bottom: 10px; font: 700 23px/1.15 var(--f-cond); letter-spacing: .01em; }
.bq-opt { font-weight: 500; font-size: 17px; color: #6d6a63; }
.bq-hint { font-size: 15px; color: #3b3935; max-width: 52ch; }
.bq-note { padding: 14px 16px; border: 1.5px dashed #6d6a63; }
.bq-note .bq-label { margin-bottom: 4px; }
.bq-input {
  width: 100%;
  padding: 8px 0 10px;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  font: 400 17px/1.4 var(--f-body);
  resize: vertical;
}
.bq-input::placeholder { color: #8a867d; }
.bq-input:focus { outline: none; border-bottom-width: 3px; padding-bottom: 8.5px; }
.bq-other { margin-top: 12px; }
.bq-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px 9px;
  border: 1.5px solid var(--ink);
  font: 600 19px/1.1 var(--f-cond);
  letter-spacing: .02em;
  transition: background .2s, color .2s;
}
.chip span::before {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  border: 1.5px solid currentColor;
}
.chip-radio span::before { border-radius: 50%; }
.chip:hover span { background: rgba(0, 0, 0, .07); }
.chip input:checked + span { background: var(--ink); color: var(--bone); }
.chip input:checked + span::before { background: currentColor; }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.bq-err { margin-top: 8px; font: 600 15px/1.3 var(--f-body); color: #9b1c12; }
.bq.has-err .bq-input { border-bottom-color: #9b1c12; }
.bq.has-err .chip span { border-color: #9b1c12; }

.bs-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1.5px solid var(--ink); }
.bs-summary {
  max-height: 42vh;
  overflow: auto;
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1.5px solid var(--ink);
  background: rgba(255, 255, 255, .35);
  font: 400 14px/1.55 var(--f-body);
  white-space: pre-wrap;
  word-break: break-word;
}
.bs-send { display: flex; flex-wrap: wrap; gap: 10px; }
.bs-thanks { margin-top: 18px; font: 700 24px/1.2 var(--f-cond); }
.bs-direct { margin-bottom: 12px; font: 700 21px/1.2 var(--f-cond); }
.bs-send-top { margin-bottom: 22px; }
.bs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.brief-machine.is-busy .led { background: #ffb36d; box-shadow: 0 0 8px 2px rgba(255,179,109,.6); animation: blink .3s steps(2) infinite; }
.btn:disabled { cursor: progress; }

/* ---------- адаптив ---------- */
@media (max-width: 900px) {
  .svc li { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .steps-wrap { grid-template-columns: 1fr; gap: 24px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xerox { grid-template-columns: 1fr; }
  .xerox-copy { position: static; }
  .case-inner { grid-template-columns: 1fr; }
  .case-cols { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hud-nav { display: none; }
  .hud { font-size: 18px; }
  .hero-word { margin-top: -14vh; }
  .hw-br { display: block; flex-basis: 100%; height: 0; }
    .hero-status { left: var(--pad); right: auto; bottom: 76px; }
  .hero-hint { display: none; }
  .progress-num { font-size: 26px; }
  .steps { grid-template-columns: 1fr; }
  .paper-wrap { margin: -6px 16px 0; }
  .foot { flex-direction: column; }
  .brief-feed { margin: -6px 8px 0; }
  .brief .machine-top { padding: 10px; gap: 10px; }
  .brief .machine-glass { height: 40px; }
}

