/* Home Buddy — лэндинг.
   Своя страница со своим стилем: знак и точечный шрифт e-ink стены,
   гарнитуры сайта (Unbounded, Inter, Roboto Mono) и палитра терминала
   ячейки. Сцена рендеров — тёплая бумага студии, тёмные разделы — ночь
   фильма. */

:root {
  --ink: #1c1d1f;
  --ink-2: #505356;
  --ink-3: #8b8e90;
  --paper: #ece8e1;
  --paper-hi: #f6f4ef;
  --stage: #a8a094;          /* фон студийных рендеров, снят с пикселя */
  --stage-floor: #e2ddd6;    /* пол у камеры, низ того же рендера */
  --night: #111112;
  --night-2: #1b1b1d;
  --accent: #d16e27;
  --stop: #b92f1e;
  --line: rgb(28 29 31 / 13%);
  --line-night: rgb(255 255 255 / 12%);
  --r: 22px;
  --pad: clamp(20px, 4vw, 64px);
  --max: 1440px;
  --display: "Unbounded", system-ui, sans-serif;
  --ui: "Inter", system-ui, sans-serif;
  --mono: "Roboto Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .15, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
/* Без этого атрибут height у картинки становится высотой в пикселях, и
   ширина 100% сплющивает её в полосу. */
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font: 500 12px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}
.tone-night .eyebrow { color: rgb(255 255 255 / 60%); }

.h2 {
  margin: 0;
  font: 600 clamp(34px, 4.6vw, 76px)/.98 var(--display);
  letter-spacing: -.035em;
}
.lead {
  margin: 0;
  max-width: 44ch;
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
}
.tone-night .lead { color: rgb(255 255 255 / 66%); }

.wrap { max-width: var(--max); margin: 0 auto; }
.section-pad { padding: clamp(88px, 11vw, 180px) var(--pad); }
.head2 {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 32px 64px;
  align-items: end;
}

/* ── Появление ─────────────────────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(42px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
.rv[data-delay="1"] { transition-delay: .08s; }
.rv[data-delay="2"] { transition-delay: .16s; }
.rv[data-delay="3"] { transition-delay: .24s; }

/* ── Шапка ─────────────────────────────────────────────────────────── */
.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px var(--pad);
  transition: background .35s, box-shadow .35s, color .35s;
}
.bar.is-solid {
  background: rgb(236 232 225 / 78%);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
  box-shadow: 0 1px 0 var(--line);
}
.bar.is-night { color: var(--paper-hi); }
.bar.is-night.is-solid { background: rgb(17 17 18 / 72%); box-shadow: 0 1px 0 var(--line-night); }
.bar__logo { display: block; line-height: 0; transition: opacity .35s, transform .45s var(--ease); }
.bar:not(.has-logo) .bar__logo { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.bar__logo img { height: 30px; width: auto; }
.bar__logo .on-night { display: none; }
.bar.is-night .bar__logo .on-paper { display: none; }
.bar.is-night .bar__logo .on-night { display: block; }
.bar__nav { display: flex; gap: 4px; margin: 0 auto; }
.bar__nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font: 500 13px/1 var(--ui);
  text-decoration: none;
  opacity: .72;
  transition: opacity .2s, background .2s, color .2s;
}
.bar__nav a:hover { opacity: 1; }
.bar__nav a.is-on { opacity: 1; background: var(--ink); color: var(--paper-hi); }
.bar.is-night .bar__nav a.is-on { background: var(--paper-hi); color: var(--ink); }
.bar__cta {
  padding: 9px 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font: 500 13px/1 var(--ui);
  text-decoration: none;
  white-space: nowrap;
}
.bar__cta:hover { background: var(--ink); color: var(--paper-hi); border-color: var(--ink); }
.bar.is-night .bar__cta:hover { background: var(--paper-hi); color: var(--ink); border-color: var(--paper-hi); }

/* ── Первый экран ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 104px 0 0;
  background: var(--stage);
  overflow: hidden;
}
.hero__dots { padding: 0 var(--pad); color: var(--ink); }
.hero__dots svg { width: 100%; height: auto; }
.hero__dots rect { opacity: 0; animation: dot-in .5s var(--ease) forwards; animation-delay: calc(var(--d) * 1ms); }
@keyframes dot-in { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
.hero__dots rect { transform-box: fill-box; transform-origin: center; }
.hero__row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px 64px;
  align-items: end;
  padding: clamp(24px, 3vw, 44px) var(--pad) 0;
}
.hero__title {
  margin: 0;
  font: 600 clamp(38px, 5vw, 84px)/.98 var(--display);
  letter-spacing: -.04em;
}
.hero__lead { margin: 0 0 8px; max-width: 40ch; font-size: clamp(16px, 1.25vw, 20px); color: rgb(28 29 31 / 78%); }
.hero__render {
  position: relative;
  margin: clamp(-80px, -4vw, -20px) auto 0;
  max-width: 2000px;
}
/* края кадра растворяются в фоне раздела: по бокам и сверху, где фон
   студии на рендере чуть светлее ровного цвета страницы */
.hero__render img {
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(transparent 0, #000 16%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(transparent 0, #000 16%);
  mask-composite: intersect;
}
/* Второй рендер с другим лицом лежит поверх и открыт только в рамке лица.
   Рамка раскрывается сверху вниз ступенями — так e-ink перерисовывает кадр
   строками, без вспышки. */
.hero__wink {
  position: absolute;
  inset: 0;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  clip-path: inset(var(--t) var(--r) var(--b0) var(--l));
  transition: clip-path .5s steps(9, end);
}
.hero__wink.is-on { clip-path: inset(var(--t) var(--r) var(--b) var(--l)); }
.sticker {
  position: absolute;
  z-index: 3;
  right: clamp(20px, 8vw, 160px);
  top: clamp(96px, 16vw, 250px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 17px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font: 600 13px/1 var(--display);
  letter-spacing: .01em;
  transform: rotate(5deg);
  box-shadow: 0 10px 30px rgb(209 110 39 / 35%), inset 0 -2px 0 rgb(0 0 0 / 12%);
  transition: transform .3s var(--ease);
}
.sticker:hover { transform: rotate(8deg) translateY(-3px) scale(1.04); }
.sticker i { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; transform: scale(.8); } }
.scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 22px;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 11px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.scroll-cue i { width: 18px; height: 28px; border: 1.5px solid currentColor; border-radius: 10px; position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: currentColor; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 50% { transform: translateY(8px); opacity: .3; } }

/* ── Фильм ─────────────────────────────────────────────────────────── */
.film { background: var(--night); color: var(--paper-hi); }
.film__frame {
  position: relative;
  margin-top: clamp(40px, 5vw, 72px);
  border-radius: var(--r);
  overflow: hidden;
  background: #000;
  box-shadow: 0 50px 140px rgb(0 0 0 / 55%);
}
.film__frame video { width: 100%; aspect-ratio: 16 / 9; }

/* ── Облёт ─────────────────────────────────────────────────────────── */
/* Ячейка поворачивается от прокрутки, а подписи держатся за её детали, как
   выноски на чертеже: точка на месте, тонкая линия, карточка голосом
   экрана — иконка, что это, и одна фраза первым лицом у той, что сейчас. */
.spin { position: relative; height: 640vh; background: linear-gradient(#9b9286, #a39a8e 55%, #e5e0da); }
.spin__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.spin__stage { position: absolute; inset: 0; }
.spin__stage canvas { width: 100%; height: 100%; }
.spin__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.spin__wires line { stroke: var(--ink); stroke-width: 1.2; opacity: .45; transition: opacity .35s; }
.spin__wires line.is-on { opacity: 1; }
.spin__wires circle { fill: var(--ink); stroke: var(--paper-hi); stroke-width: 2.5; transition: fill .35s; }
.spin__wires circle.is-on { fill: var(--accent); }
.spin__wires circle.ring { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0; }
.spin__wires circle.ring.is-on { animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .0; r: 7px; } 50% { opacity: .9; r: 15px; } }
.spin__head { position: absolute; z-index: 3; left: var(--pad); top: clamp(92px, 12vh, 132px); }
.spin__head .h2 { max-width: 10.5ch; font-size: clamp(28px, 2.7vw, 46px); }
.spin__tags { position: absolute; inset: 0; z-index: 2; list-style: none; margin: 0; padding: 0; pointer-events: none; }
.tag { position: absolute; left: 0; top: 0; will-change: transform; opacity: 0; transition: opacity .4s; }
.tag.is-placed { opacity: 1; }
.tag.is-hidden { opacity: 0 !important; }
.tag__card {
  display: block;
  width: max-content;
  max-width: 290px;
  padding: 11px 14px 11px 12px;
  border: 0;
  border-radius: 14px;
  background: rgb(246 244 239 / 94%);
  box-shadow: 0 0 0 1px var(--line), 0 14px 34px rgb(40 30 20 / 16%);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  pointer-events: auto;
  transition: background .35s, color .35s, box-shadow .35s;
}
.tag__head { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.tag__head svg { flex: none; width: 20px; height: 20px; }
.tag__head b { font: 600 15px/1.2 var(--ui); letter-spacing: -.01em; }
.tag__head i { margin-left: 10px; font: 500 11px/1 var(--mono); font-style: normal; color: var(--ink-3); }
/* фраза не расширяет свёрнутую карточку: ширину задаёт строка с иконкой */
.tag__line { display: block; width: 0; min-width: 100%; max-height: 0; overflow: hidden; opacity: 0; font: 400 14px/1.4 var(--ui); white-space: normal; transition: max-height .5s var(--ease), opacity .35s, margin .5s var(--ease); }
.tag.is-on .tag__card { width: 264px; background: var(--ink); color: var(--paper-hi); box-shadow: 0 18px 44px rgb(20 20 22 / 30%); }
.tag.is-on .tag__head i { color: rgb(255 255 255 / 50%); }
.tag.is-on .tag__line { max-height: 90px; opacity: .86; margin-top: 7px; }
.spin__foot { position: absolute; z-index: 3; left: var(--pad); right: var(--pad); bottom: 26px; display: flex; align-items: end; justify-content: space-between; }
.spin__num svg { height: 34px; width: auto; color: var(--ink); }
.spin__num rect.is-accent { fill: var(--accent); }
.spin__angle { font: 500 12px/1 var(--mono); color: var(--ink-2); letter-spacing: .08em; }
.spin__hint { display: none; }

/* ── Стена ─────────────────────────────────────────────────────────── */
.wall { background: var(--paper); }
.wall__panel {
  position: relative;
  margin-top: clamp(40px, 5vw, 72px);
  padding: clamp(14px, 2.4vw, 40px);
  border-radius: clamp(18px, 2.4vw, 36px);
  background: #f3f1ec;
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 90px rgb(60 50 40 / 12%);
}
.wall__panel canvas { width: 100%; aspect-ratio: 112 / 46; cursor: pointer; }
.wall__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.wall__tabs button {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font: 500 12px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.wall__tabs button:hover { border-color: var(--ink); }
.wall__tabs button.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper-hi); }
.wall__proof { display: grid; grid-template-columns: minmax(0, 40ch) 1fr; gap: 22px 48px; align-items: end; margin-top: clamp(56px, 7vw, 112px); }
.wall__proof img { grid-column: 1 / -1; width: 100%; border-radius: var(--r); box-shadow: 0 30px 80px rgb(60 50 40 / 16%); }
.wall__proof p { grid-column: 1; margin: 0; font: 500 clamp(18px, 1.6vw, 24px)/1.4 var(--ui); letter-spacing: -.01em; }

/* ── Терминал ──────────────────────────────────────────────────────── */
.screen { background: var(--paper-hi); }
.rewrite { margin-top: clamp(40px, 5vw, 80px); border-top: 1px solid var(--line); }
.rewrite__row {
  display: grid;
  grid-template-columns: minmax(120px, .42fr) 1.58fr;
  gap: 24px;
  align-items: baseline;
  padding: clamp(16px, 2vw, 28px) 0;
  border-bottom: 1px solid var(--line);
}
.rewrite__old {
  position: relative;
  justify-self: start;
  font: 500 clamp(18px, 2vw, 32px)/1 var(--mono);
  letter-spacing: .06em;
  color: var(--ink-3);
}
.rewrite__old::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  top: 52%;
  height: 3px;
  border-radius: 2px;
  background: var(--stop);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease) .25s;
}
.rewrite__new {
  font: 600 clamp(26px, 4.4vw, 74px)/1 var(--display);
  letter-spacing: -.04em;
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity .8s var(--ease) .55s, transform .9s var(--ease) .55s;
}
.rewrite__row.is-in .rewrite__old::after { transform: scaleX(1); }
.rewrite__row.is-in .rewrite__new { opacity: 1; transform: none; }

/* Разбор экрана: слева весь экран в рамке монитора стоит на месте, справа
   листаются крупные детали; рамка на экране переезжает к той, что сейчас
   посередине окна. */
.anat {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 110px);
  margin-top: clamp(40px, 6vw, 96px);
}
.anat__device {
  align-self: start;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  place-items: center;
  padding: 80px 0 24px;
}
.anat__bezel {
  width: min(100%, calc((100svh - 150px) * .625));
  padding: 3.4%;
  border-radius: clamp(18px, 2vw, 30px);
  background: #1c1b1a;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 10%), 0 40px 100px rgb(40 30 20 / 22%);
}
.anat__screen { position: relative; aspect-ratio: 1200 / 1920; border-radius: 10px; overflow: hidden; background: #f4f4f2; }
.anat__screen img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .45s; }
.anat__screen img.is-on { opacity: 1; }
.anat__focus {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  border-radius: 8px;
  box-shadow: 0 0 0 2px var(--accent), 0 0 0 100vmax rgb(20 20 22 / 30%);
  transition: left .75s var(--ease), top .75s var(--ease), width .75s var(--ease), height .75s var(--ease);
  pointer-events: none;
}
.anat__steps { list-style: none; margin: 0; padding: 0; }
.anat__step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 92vh;
  min-height: 92svh;
  padding: 40px 0;
  opacity: .28;
  transition: opacity .5s;
}
.anat__step.is-on { opacity: 1; }
.anat__n { margin: 0 0 16px; font: 500 13px/1 var(--mono); letter-spacing: .12em; color: var(--accent); }
.anat__n span { color: var(--ink-3); }
.anat__title { margin: 0; font: 600 clamp(26px, 2.7vw, 44px)/1.02 var(--display); letter-spacing: -.035em; }
.anat__text { margin: 14px 0 0; max-width: 46ch; font-size: clamp(16px, 1.2vw, 19px); color: var(--ink-2); }
.anat__zoom {
  margin: clamp(22px, 2.6vw, 38px) 0 0;
  padding: clamp(14px, 2vw, 30px);
  border-radius: var(--r);
  background: #f4f4f2;
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px rgb(60 50 40 / 13%);
}
.anat__zoom--dark { background: #1c1d1f; box-shadow: 0 30px 80px rgb(20 20 22 / 25%); }
.anat__zoom img { width: 100%; }

.motion { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 36px); margin-top: clamp(56px, 7vw, 112px); }
.mon { margin: 0; }
.mon__bezel {
  position: relative;
  padding: 3.2% 3.2% 3.2%;
  border-radius: clamp(14px, 1.4vw, 22px);
  background: #1c1b1a;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 10%), 0 30px 70px rgb(0 0 0 / 22%);
}
.mon__bezel video, .mon__bezel img { width: 100%; aspect-ratio: 5 / 8; object-fit: cover; border-radius: 7px; background: #f4f4f2; }
.mon figcaption { margin-top: 14px; font: 500 15px/1.4 var(--ui); }
.mon figcaption b { display: block; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }

/* ── Настройка: лента вбок ─────────────────────────────────────────── */
.setup { position: relative; background: var(--night); color: var(--paper-hi); }
.setup__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 3.4vh, 44px);
  padding-top: 56px;
  overflow: hidden;
}
.setup__head { display: flex; align-items: end; justify-content: space-between; gap: 32px; padding: 0 var(--pad); }
.setup .h2 { font-size: clamp(30px, 3.6vw, 60px); }
.setup .lead { max-width: 58ch; }
.setup__count { color: var(--paper-hi); }
.setup__count svg { height: clamp(52px, 7vh, 88px); width: auto; }
.setup__count svg rect.is-accent { fill: var(--accent); }
.setup__track { display: flex; gap: clamp(16px, 2vw, 32px); padding: 0 var(--pad); will-change: transform; }
.setup__card { flex: 0 0 clamp(210px, min(19vw, 31svh), 340px); margin: 0; transition: opacity .4s, transform .6s var(--ease); }
.setup__card .mon__bezel { background: #262523; }
.setup__card figcaption { margin-top: 12px; font: 500 14px/1.35 var(--ui); color: rgb(255 255 255 / 86%); }
.setup__card figcaption b { display: block; margin-bottom: 6px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.setup__card.is-dim { opacity: .38; }
.setup__rail { position: relative; height: 2px; margin: 0 var(--pad); background: var(--line-night); border-radius: 2px; }
.setup__rail i { position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--paper-hi); transform-origin: left; transform: scaleX(var(--p, 0)); border-radius: 2px; }

/* ── Внутри ────────────────────────────────────────────────────────── */
.hw { background: var(--night); color: var(--paper-hi); padding-top: 0; }
.hw__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 16vw, 250px);
  gap: clamp(10px, 1.2vw, 18px);
  margin-top: clamp(40px, 5vw, 72px);
}
.hw__tile { position: relative; margin: 0; border-radius: 18px; overflow: hidden; background: #000; }
.hw__tile img, .hw__tile video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.hw__tile:hover img, .hw__tile:hover video { transform: scale(1.04); }
.hw__tile::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent, rgb(0 0 0 / 55%)); pointer-events: none; }
.hw__tile figcaption { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; font: 500 14px/1.35 var(--ui); color: #fff; }
.hw__tile figcaption b { display: inline-block; margin-right: 8px; padding: 4px 7px; border-radius: 6px; background: rgb(255 255 255 / 16%); font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; vertical-align: 2px; }
.hw--a { grid-column: span 8; grid-row: span 2; }
.hw--b { grid-column: span 4; }
.hw--c { grid-column: span 4; }
.hw--d { grid-column: span 5; grid-row: span 2; }
.hw--e { grid-column: span 7; }
.hw--f { grid-column: span 7; }
.hw--g { grid-column: span 6; grid-row: span 2; }
.hw--h { grid-column: span 6; }
.hw--i { grid-column: span 6; }

/* ── Знак и стиль ──────────────────────────────────────────────────── */
.brand { background: var(--paper); }
.brand__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); margin-top: clamp(40px, 5vw, 72px); }
.card {
  position: relative;
  padding: clamp(20px, 2.4vw, 36px);
  border-radius: var(--r);
  background: var(--paper-hi);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.card--night { background: var(--night); color: var(--paper-hi); box-shadow: none; }
.card__label { margin: 0 0 18px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.card--night .card__label { color: rgb(255 255 255 / 45%); }
.card--mark { grid-column: span 5; grid-row: span 2; display: flex; flex-direction: column; }
.card--mark .mark { flex: none; width: min(62%, 300px); margin: auto; padding: 24px 0; transition: transform .6s var(--ease); }
.card--mark:hover .mark { transform: translateY(-4px) rotate(-2deg); }
.card--lockup { grid-column: span 7; display: grid; place-items: center; min-height: 220px; }
.card--lockup img { width: min(84%, 520px); height: auto; }
.card--palette { grid-column: span 12; }
.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.swatch { margin: 0; }
.swatch i { display: block; aspect-ratio: 16 / 10; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.swatch figcaption { margin-top: 10px; font: 500 13px/1.35 var(--ui); }
.swatch figcaption span { display: block; font: 500 12px/1.4 var(--mono); color: var(--ink-3); }
.card--type { grid-column: span 7; }
.spec-row { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); }
.spec-row:first-of-type { border-top: 0; padding-top: 0; }
.spec-row small { font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.spec-row .t-display { font: 600 clamp(22px, 2.4vw, 38px)/1.05 var(--display); letter-spacing: -.035em; }
.spec-row .t-ui { font: 400 clamp(17px, 1.5vw, 22px)/1.3 var(--ui); }
.spec-row .t-mono { font: 500 clamp(15px, 1.3vw, 19px)/1.3 var(--mono); }
.spec-row .t-dot svg { height: clamp(26px, 2.6vw, 38px); width: auto; }
.card--faces { grid-column: span 5; }
.faces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.face { margin: 0; }
.face canvas { width: 100%; aspect-ratio: 112 / 46; border-radius: 10px; background: #efede7; }
.face figcaption { margin-top: 6px; font: 500 12px/1.3 var(--ui); }
.face figcaption span { display: block; font: 400 11px/1.35 var(--ui); color: var(--ink-3); }

/* ── Цифры ─────────────────────────────────────────────────────────── */
.specs { background: var(--ink); color: var(--paper-hi); }
.specs__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: clamp(40px, 5vw, 72px); background: var(--line-night); border: 1px solid var(--line-night); border-radius: var(--r); overflow: hidden; }
.spec { padding: clamp(24px, 3vw, 44px); background: var(--ink); }
.spec__num svg { height: clamp(46px, 5vw, 84px); width: auto; }
.spec__num rect.is-accent { fill: var(--accent); }
.spec p { margin: 18px 0 0; max-width: 26ch; font: 500 15px/1.45 var(--ui); color: rgb(255 255 255 / 70%); }

/* ── Конец ─────────────────────────────────────────────────────────── */
.end { background: var(--stage); text-align: center; }
.end__mark { width: clamp(96px, 10vw, 150px); margin: 0 auto 32px; }
.end .h2 { max-width: 16ch; margin: 0 auto; }
.end .lead { margin: 22px auto 0; color: rgb(28 29 31 / 74%); }
.end__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font: 600 14px/1 var(--display);
  text-decoration: none;
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--ink); color: var(--paper-hi); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); }
.foot { display: flex; justify-content: space-between; gap: 16px; padding: 22px var(--pad); background: var(--stage); border-top: 1px solid var(--line); font: 500 12px/1.4 var(--mono); color: var(--ink-2); }
.foot a { text-decoration: none; }

/* ── Узкие экраны ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .bar__nav { display: none; }
  .bar__cta { margin-left: auto; }
}
@media (max-width: 900px) {
  .head2, .hero__row, .wall__proof { grid-template-columns: 1fr; }
  .wall__proof p { grid-column: auto; }
  .sticker { top: auto; bottom: 22px; right: 16px; }
  /* верх раздела — цвет фона над ячейкой, низ — цвет пола у камеры,
     чтобы кадр стоял между ними без полос */
  .spin { height: auto !important; background: #e2ddd6; }
  .spin__sticky { position: relative; height: auto; display: flex; flex-direction: column; padding: 0 0 56px; }
  .spin__head { position: static; order: -2; max-width: none; padding: 64px var(--pad) 18px; background: #9c9387; }
  .spin__stage { order: -1; position: relative; inset: auto; aspect-ratio: 4 / 3; touch-action: pan-y; }
  .spin__tags { position: static; display: grid; gap: 10px; padding: 18px var(--pad) 0; pointer-events: auto; }
  .tag { position: static; opacity: 1; transform: none !important; }
  .tag.is-hidden { opacity: 1 !important; }
  .tag__card, .tag.is-on .tag__card { max-width: none; width: 100%; }
  .tag .tag__line, .tag.is-on .tag__line { max-height: none; opacity: .86; margin-top: 7px; }
  .tag.is-on .tag__card { background: var(--ink); }
  .spin__wires line { display: none; }
  .spin__foot { display: none; }
  .spin__hint { display: block; position: absolute; left: 50%; bottom: 12px; translate: -50% 0; padding: 7px 12px; border-radius: 999px; background: rgb(255 255 255 / 55%); font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); pointer-events: none; transition: opacity .4s; }
  .spin__hint.is-gone { opacity: 0; }
  .anat { grid-template-columns: 1fr; }
  .anat__device { display: none; }
  .anat__step { min-height: 0; padding: 28px 0; opacity: 1; }
  .motion { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .setup { height: auto !important; }
  .setup__sticky { position: relative; height: auto; padding: 88px 0; }
  .setup__head { flex-direction: column; align-items: start; }
  .setup__track { overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; padding-bottom: 12px; scrollbar-width: none; }
  .setup__track::-webkit-scrollbar { display: none; }
  .setup__card { flex-basis: 68vw; scroll-snap-align: center; }
  .setup__card.is-dim { opacity: 1; }
  .setup__rail { display: none; }
  .hw__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42vw; }
  .hw--a, .hw--d, .hw--g { grid-column: span 2; grid-row: span 1; }
  .hw--b, .hw--c, .hw--e, .hw--f, .hw--h, .hw--i { grid-column: span 1; grid-row: span 1; }
  .brand__grid { grid-template-columns: 1fr; }
  .card--mark, .card--lockup, .card--palette, .card--type, .card--faces { grid-column: auto; grid-row: auto; }
  .specs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-row { grid-template-columns: 1fr; gap: 8px; }
  .foot { flex-direction: column; }
}
@media (max-width: 560px) {
  .specs__grid { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticker { font-size: 11px; padding: 9px 13px; }
  .scroll-cue { display: none; }
  /* ячейка на первом экране крупнее: кадр шире окна, края уходят за него */
  .hero__render { width: 172%; max-width: none; margin: 8px 0 0 -33%; }
  .hero__render img { -webkit-mask-image: linear-gradient(transparent 0, #000 12%); mask-image: linear-gradient(transparent 0, #000 12%); }
  .hw--b figcaption span, .hw--c figcaption span, .hw--e figcaption span,
  .hw--f figcaption span, .hw--h figcaption span, .hw--i figcaption span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .hero__dots rect { animation: none; opacity: 1; }
  .rewrite__new { opacity: 1; transform: none; transition: none; }
  .rewrite__old::after { transform: scaleX(1); transition: none; }
  .sticker i, .scroll-cue i::after { animation: none; }
}
