@import url('/vendor/fonts/fonts-78060179.css');

:root {
  --paper: #EFEDE7;
  --ink: #111111;
  --red: #E30613;
  --concrete: #7A7A7A;
  --line: rgba(17, 17, 17, .14);
  --grid: rgba(17, 17, 17, .05);
  --display: 'Unbounded', sans-serif;
  --body: 'Onest', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --pad: clamp(16px, 3vw, 40px);
  --head: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
/* блокировка прокрутки (меню, оверлеи) при нативном скролле на тач-устройствах */
html.scroll-lock, html.scroll-lock body { overflow: hidden; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--body);
  overflow-x: hidden;
}
/* системный курсор прячем только когда включён курсор-прицел (main.js ставит .has-cursor) */
html.has-cursor body, html.has-cursor a, html.has-cursor button { cursor: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.header :focus-visible { outline-color: currentColor; }
::selection { background: var(--red); color: #fff; }

/* чертёжная сетка на фоне */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
}
/* зерно */
body::after {
  content: ''; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} }
/* телефон: зерно статичное и размером с экран (анимированный слой 2×2 экрана — лишняя работа композитора на каждом кадре) */
@media (hover: none), (max-width: 900px) {
  body::after { inset: 0; animation: none; }
}

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.red { color: var(--red); }
.display { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .9; letter-spacing: -.02em; }
.wrap { padding-inline: var(--pad); }
.todo { outline: 1px dashed var(--red); outline-offset: 4px; }

/* ===== Шапка ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--head);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--pad);
  color: var(--ink);
  transition: transform .35s cubic-bezier(.2,.7,.1,1), color .3s;
}
/* фон шапки появляется после ~20px прокрутки (main.js → .is-scrolled); отдельный слой с opacity — без перерисовки текста */
.header::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(239, 237, 231, .97); border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .25s;
}
.header.is-scrolled::before { opacity: 1; }
@media (hover: hover) and (min-width: 901px) {
  .header::before { background: rgba(239, 237, 231, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
.brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: .02em; }
.brand img { width: 30px; height: 30px; filter: brightness(0); }
.nav { display: flex; gap: 28px; }
.nav a { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; position: relative; white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1240px) {
  .header { gap: 16px; }
  .nav { gap: 16px; }
  .nav a { font-size: 11px; letter-spacing: .02em; }
  .header-tools { gap: 12px; }
  .header-tools .hide-m { display: none; }
}
.nav a > i { display: none; font-style: normal; }
.nav .nav-foot { display: none; }
.nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: currentColor; transition: right .35s; }
.nav a:hover::after, .nav a.active::after { right: 0; }
.header-tools { display: flex; gap: 18px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; white-space: nowrap; }
.burger { display: none; }
/* прогресс скролла: тонкая красная линия по верхнему краю шапки (только десктоп) */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
@media (max-width: 900px) {
  .scroll-progress { display: none; }
  /* шапка прячется при прокрутке вниз и появляется при прокрутке вверх (только transform — без перерисовки layout) */
  .header.is-hidden { transform: translateY(-100%); }
  /* полноэкранное меню: шапка поверх тёмного меню — светлая, без своего фона */
  body.menu-open .header { color: var(--paper); transform: none; }
  body.menu-open .header::before { opacity: 0; }
  body.menu-open .brand img { filter: brightness(0) invert(1); }
  .nav { position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; align-items: stretch; padding: calc(var(--head) + 20px) var(--pad) var(--pad); gap: 0;
    background: var(--ink); color: var(--paper); clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .7s cubic-bezier(.7,0,.2,1), visibility 0s .7s; overflow-y: auto; overscroll-behavior: contain; }
  body.menu-open .nav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s cubic-bezier(.7,0,.2,1), visibility 0s; }
  .nav a { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(239,237,231,.18);
    font-family: var(--display); font-size: clamp(24px, 7.4vw, 52px); font-weight: 800; letter-spacing: -.02em; line-height: 1.04; white-space: normal;
    opacity: 0; transform: translateY(24px); transition: opacity .4s, transform .6s cubic-bezier(.2,.7,.1,1); }
  .nav a > i { display: inline; flex-shrink: 0; font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--red); letter-spacing: .04em; }
  .nav a > span { min-width: 0; overflow-wrap: break-word; }
  .nav a::after { display: none; }
  .nav a.active span { color: var(--red); }
  body.menu-open .nav a { opacity: 1; transform: none; }
  body.menu-open .nav a:nth-child(2) { transition-delay: .05s; } body.menu-open .nav a:nth-child(3) { transition-delay: .1s; }
  body.menu-open .nav a:nth-child(4) { transition-delay: .15s; } body.menu-open .nav a:nth-child(5) { transition-delay: .2s; }
  body.menu-open .nav a:nth-child(6) { transition-delay: .25s; }
  .nav .nav-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 28px; font-size: 10px; opacity: .55; }
  .nav a:first-child { margin-top: auto; }
  .burger { display: block; position: relative; z-index: 2; }
  .header-tools { position: relative; z-index: 2; }
  .header-tools .hide-m { display: none; }
}

/* ===== Курсор-прицел ===== */
.cursor { position: fixed; z-index: 200; left: 0; top: 0; pointer-events: none; mix-blend-mode: difference; color: #fff; }
.cursor .h, .cursor .v { position: absolute; background: currentColor; }
.cursor .h { width: 28px; height: 1px; left: -14px; top: 0; }
.cursor .v { width: 1px; height: 28px; left: 0; top: -14px; }
.cursor .ring { position: absolute; width: 44px; height: 44px; left: -22px; top: -22px; border: 1px solid currentColor; border-radius: 50%; transform: scale(0); transition: transform .3s; }
.cursor.hover .ring { transform: scale(1); }
.cursor .xy { position: absolute; left: 14px; top: 10px; font: 10px var(--mono); white-space: nowrap; opacity: .8; }
.cursor .label { position: absolute; left: 26px; top: -22px; font: 11px var(--mono); text-transform: uppercase; white-space: nowrap; }
.cursor.out { opacity: 0; }
@media (hover: none) { .cursor { display: none; } }

/* ===== Прелоадер ===== */
.preloader { position: fixed; inset: 0; z-index: 300; background: var(--paper); display: grid; place-items: center; animation: pl-safety .4s 10s forwards; }
@keyframes pl-safety { to { opacity: 0; visibility: hidden; } } /* страховка: если home.js не загрузился, прелоадер не закрывает сайт навсегда */
.preloader svg { width: min(38vw, 260px); height: auto; }
.preloader svg path { stroke-width: 70; }
.preloader .count { position: absolute; bottom: var(--pad); right: var(--pad); font-family: var(--display); font-weight: 900; font-size: clamp(64px, 14vw, 200px); line-height: .8; }
.preloader .meta { position: absolute; bottom: var(--pad); left: var(--pad); }

/* ===== Переход страниц ===== */
.wipe { position: fixed; inset: 0; z-index: 250; pointer-events: none; display: grid; grid-template-columns: repeat(5, 1fr); }
.wipe span { background: var(--red); transform: scaleY(0); transform-origin: bottom; }
.wipe::before { content: ''; position: absolute; inset: 0; background: var(--paper); opacity: 0; transition: opacity .2s ease-out; }
.wipe.leaving::before { opacity: .9; }

/* ===== Герой ===== */
/* Десктоп: слева — мета, знак, заголовок; справа — фото на всю высоту.
   Знак живёт в своей зоне над заголовком и лишь краем (≈20%) заходит на фото — на бетонную стену, не на лицо. */
[data-page="home"] .hero {
  --hp-w: min(38vw, calc((100svh - var(--head) - 20px - 2 * var(--pad)) * .7));
  position: relative; height: max(100svh, 700px);
  display: grid; grid-template-columns: minmax(0, 1fr) var(--hp-w);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "meta photo" "logo photo" "text photo";
  column-gap: var(--pad);
  padding: calc(var(--head) + 20px) var(--pad) var(--pad);
  overflow: hidden;
}
.hero-meta { grid-area: meta; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--ink); padding-top: 10px; position: relative; z-index: 3; }
.hero-text { grid-area: text; position: relative; z-index: 2; }
.hero-title { font-size: clamp(40px, calc((100vw - 3 * var(--pad) - var(--hp-w) - 20px) / 10.1), 150px); line-height: .88; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .02em; }
.hero-title .line > span { display: inline-block; }
.hero-sub { margin-top: clamp(20px, 3vh, 32px); display: grid; grid-template-columns: minmax(0, 420px) auto; align-items: end; gap: 14px 32px; }
.hero-sub > p.mono { grid-column: 1 / -1; justify-self: start; }
.hero-photo { grid-area: photo; position: relative; overflow: hidden; background: #2b2b2b; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-photo .tag { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; color: #fff; z-index: 1; }
.hero-photo::after { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.28); pointer-events: none; }

/* зона знака */
.hero-logo { grid-area: logo; position: relative; z-index: 4; justify-self: end; align-self: center;
  height: min(100%, 380px); aspect-ratio: 1; min-height: 0;
  transform: translateX(calc(var(--pad) + 30%)); pointer-events: none; }
.hero-logo-in { position: absolute; inset: 0; }
#logo3d { position: absolute; inset: 0; pointer-events: none; }
#logo3d canvas { display: block; width: 100%; height: 100%; }
#logo3d .logo-fallback { width: 78%; height: 78%; margin: 11%; object-fit: contain; }
#logo3d canvas, #logo3d .logo-fallback { pointer-events: auto; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-tap-highlight-color: transparent; }
#logo3d .logo-fallback { will-change: transform; }
.hero-logo .tick { position: absolute; width: 14px; height: 14px; border: 0 solid var(--ink); opacity: .7; }
.hero-logo .tick.tl { left: 0; top: 0; border-width: 1px 0 0 1px; }
.hero-logo .tick.tr { right: 0; top: 0; border-width: 1px 1px 0 0; border-color: #fff; }
.hero-logo .tick.bl { left: 0; bottom: 0; border-width: 0 0 1px 1px; }
.hero-logo .tick.br { right: 0; bottom: 0; border-width: 0 1px 1px 0; border-color: #fff; }
.hero-logo .cap { position: absolute; left: 0; top: calc(100% + 8px); display: flex; gap: 14px; font-size: 10px; white-space: nowrap; color: var(--concrete); }
.hero-logo .cap b { font-weight: 500; color: var(--ink); }
@media (max-width: 1200px) { .hero-logo .cap { left: auto; right: 0; } } /* на 1024 подпись знака не касается «НЕРЕАЛИ-» */

@media (max-width: 900px) {
  [data-page="home"] .hero { height: auto; min-height: calc(var(--vh0, 1svh) * 100); grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto;
    grid-template-areas: "meta" "photo" "text"; row-gap: 14px; padding-top: calc(var(--head) + 4px); }
  .hero-photo { height: calc(var(--vh0, 1svh) * 58); min-height: 340px; }
  /* знак — в правом верхнем углу фото, на стене, частично выходит за край */
  .hero-logo { grid-area: photo; align-self: start; justify-self: end; height: auto; width: 30vw; max-width: 180px;
    transform: translate(6%, -16%); }
  .hero-logo .tick.tl, .hero-logo .tick.bl { border-color: #fff; }
  .hero-logo .cap { display: none; }
  .hero-title { font-size: min(calc((100vw - 2 * var(--pad)) / 10), 96px); }
  .hero-sub { grid-template-columns: 1fr; margin-top: 16px; }
}

/* ===== Бегущая строка ===== */
.marquee { border-block: 1px solid var(--ink); overflow: hidden; white-space: nowrap; padding: 14px 0; background: var(--ink); color: var(--paper); }
.marquee .track { display: inline-flex; gap: 48px; animation: marquee 30s linear infinite; font-family: var(--display); font-weight: 800; font-size: clamp(18px, 2.4vw, 32px); text-transform: uppercase; }
.marquee .track span::after { content: '◯'; color: var(--red); margin-left: 48px; font-size: .7em; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee.paused .track { animation-play-state: paused; }

/* ===== Секции ===== */
section { position: relative; }
.sec { padding: clamp(80px, 12vw, 180px) var(--pad); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 5vw, 64px); border-top: 1px solid var(--ink); padding-top: 14px; }
.sec-head h2 { font-size: clamp(34px, 6vw, 96px); }
.idx { font-family: var(--mono); font-size: 12px; }

/* манифест */
.manifest p { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 3.6vw, 56px); line-height: 1.12; text-transform: uppercase; max-width: 1400px; overflow-wrap: break-word; hyphens: auto; }
.manifest p .w { opacity: .12; transition: none; }
.manifest p em { font-style: normal; color: var(--red); }
.manifest .sign { margin-top: 40px; display: flex; gap: 40px; flex-wrap: wrap; }

/* Источник → Изделие */
.transform { height: calc(var(--vh0, 1vh) * 300); }
.transform .stage { position: sticky; top: 0; height: calc(var(--vh0, 1svh) * 100); display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: var(--pad); padding: var(--head) var(--pad) var(--pad); }
.transform .frame { position: relative; height: calc(var(--vh0, 1svh) * 100 - var(--head) - 60px); background: #fff; border: 1px solid var(--ink); overflow: hidden; }
.transform .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.transform .frame img.photo { object-fit: cover; clip-path: inset(100% 0 0 0); }
/* сканер: слой высотой с кадр, линия — его верхний край; движется transform (yPercent 100 → 0), без пересчёта layout */
.transform .scanline { position: absolute; inset: 0; pointer-events: none; transform: translateY(100%); }
.transform .scanline::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--red); box-shadow: 0 0 20px var(--red); }
.transform .labels h3 { font-size: clamp(30px, 5vw, 80px); }
.transform .labels .row { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 12px 0; }
.dims { position: absolute; inset: 14px; pointer-events: none; }
.dims::before, .dims::after { content: ''; position: absolute; background: var(--red); }
.dims::before { left: 0; right: 0; top: 0; height: 1px; }
.dims::after { top: 0; bottom: 0; right: 0; width: 1px; }
.transform .labels .row span:last-child { color: var(--ink); }
.transform .labels .row span:first-child { color: var(--concrete); }
#t-prog { color: var(--red) !important; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .transform { height: calc(var(--vh0, 1vh) * 260); }
  .transform .stage { grid-template-columns: 1fr; align-content: center; gap: 16px; padding: calc(var(--head) + 4px) var(--pad) var(--pad); }
  .transform .frame { height: calc(var(--vh0, 1svh) * 44); }
  .transform .labels h3 { font-size: clamp(28px, 8.4vw, 44px); margin: 8px 0 12px !important; }
  .transform .labels .row { padding: 7px 0; }
  .transform .labels p { display: none; }
}

/* Лента изделий */
.hscroll { overflow: hidden; }
.hscroll .rail { display: flex; gap: var(--pad); padding-inline: var(--pad); width: max-content; }
.card { width: clamp(260px, 28vw, 420px); flex-shrink: 0; display: block; }
.card .ph { position: relative; aspect-ratio: 2/3; overflow: hidden; background: #ddd; }
.card .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s, transform 1.2s cubic-bezier(.2,.7,.1,1); }
.card .ph img.alt { opacity: 0; }
.card:hover .ph img.alt { opacity: 1; }
.card:hover .ph img { transform: scale(1.04); }
.card .ph .no { position: absolute; top: 10px; left: 10px; color: #fff; mix-blend-mode: difference; z-index: 2; }
.card .meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-bottom: 1px solid var(--ink); padding-bottom: 10px; }
.card h3 { font-family: var(--display); font-weight: 800; font-size: clamp(15px, 1.7vw, 20px); text-transform: uppercase; } /* «Аксессуары» не наезжает на «Скоро» в узких карточках */
.card .src { margin-top: 6px; color: var(--concrete); }
.card.soon .ph { display: grid; place-items: center; background: var(--ink); color: var(--paper); }
.card.soon .ph { container-type: inline-size; }
/* размер от ширины карточки (cqi), чтобы «КОМПЛЕК-ТУЮЩИЕ» не обрезалось в узких карточках на телефоне */
.card.soon .ph .display { font-size: clamp(16px, 12.5cqi, 44px); text-align: center; }
/* артикул «ПК 1» + короткое описание + цена */
.card .src:not(.mono) { font-size: 13px; line-height: 1.35; }
.card .meta .price { white-space: nowrap; flex-shrink: 0; }
/* мокап футболки (квадрат на светлом фоне) — вписываем целиком */
img.is-mock { object-fit: contain !important; background: #F2F2F2; }
/* лента на главной */
.products { padding-inline: 0; }
.products .sec-head { margin-inline: var(--pad); }
.rail-foot { display: flex; align-items: center; gap: 20px; margin: 22px var(--pad) 0; }
.rail-foot .rail-bar { flex: 1; height: 1px; background: var(--line); position: relative; }
.rail-foot .rail-bar i { position: absolute; inset: -0.5px 0; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; }
#rail-count { font-variant-numeric: tabular-nums; }
@media (min-width: 901px) {
  .products .sec-head { margin-bottom: 28px; }
  .products .hscroll .card { width: clamp(240px, calc((100svh - var(--head) - 300px) / 1.5), 28vw); }
}
/* лента на главной: на мобайле — нативный горизонтальный свайп со snap */
@media (max-width: 900px) {
  .hscroll { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain; }
  .hscroll::-webkit-scrollbar { display: none; }
  .hscroll .card { width: min(76vw, 340px); scroll-snap-align: start; }
}

/* Плитки источников */
.sources-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.src-tile { background: var(--paper); padding: 16px; display: flex; flex-direction: column; gap: 14px; min-height: 420px; transition: background .4s, color .4s; }
.src-tile .img { flex: 1; background: #fff; display: grid; place-items: center; overflow: hidden; }
.src-tile .img img { max-height: 280px; object-fit: contain; filter: grayscale(1); transition: filter .5s, transform .8s; }
.src-tile:hover { background: var(--ink); color: var(--paper); }
.src-tile:hover .img img { filter: none; transform: scale(1.05); }
.src-tile h3 { font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; }
.src-tile { min-width: 0; }
.src-tile .img img { width: 100%; }
@media (max-width: 900px) { .sources-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .src-tile { min-height: 300px; padding: 12px; } .src-tile h3 { font-size: clamp(15px, 4.4vw, 22px); } }
@media (max-width: 600px) { .sec-head { flex-wrap: wrap; align-items: end; } .sec-head h2 { font-size: clamp(30px, 10vw, 48px); } .sec-head .btn { padding: 12px 16px; } }

/* КБ */
.kb { background: var(--ink); color: var(--paper); }
.kb .sec-head { border-color: var(--paper); }
.kb-form { display: flex; gap: 0; max-width: 640px; border: 1px solid var(--paper); }
.kb-form input { flex: 1; background: none; border: 0; color: inherit; padding: 18px; font: 16px var(--body); outline: none; min-width: 0; }
.kb-form button { background: var(--red); color: #fff; padding: 0 26px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.kb ul { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--pad); margin-bottom: 48px; }
.kb li { border-top: 1px solid rgba(239,237,231,.3); padding-top: 14px; display: grid; gap: 18px; align-content: start; }
.kb li .num { font-size: clamp(40px, 5vw, 72px); line-height: .8; }
.kb li p:not(.num) { font-size: clamp(16px, 1.3vw, 19px); max-width: 30ch; }
.kb-form input::placeholder { color: rgba(239,237,231,.5); }
.kb-form button { transition: background .3s; }
.kb-form button:hover { background: #fff; color: var(--ink); }
@media (max-width: 700px) { .kb ul { grid-template-columns: 1fr; } }

/* Футер */
.footer { padding: 60px var(--pad) 24px; border-top: 1px solid var(--ink); }
.footer .big { font-size: min(calc((100vw - 2 * var(--pad) - 24px) / 2.56), 1000px); color: var(--red); line-height: .74; margin-top: clamp(40px, 6vw, 96px); letter-spacing: -.04em; white-space: nowrap; overflow: hidden; padding-top: .04em; }
.footer .cols p.mono { color: var(--concrete); margin-bottom: 10px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--ink); }
.footer-bottom .to-top:hover { color: var(--red); }
.footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer .cols a { display: block; padding: 3px 0; }
.footer .cols a:hover { color: var(--red); }
@media (max-width: 700px) { .footer .cols { grid-template-columns: 1fr 1fr; } }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 26px; border: 1px solid var(--ink); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; position: relative; overflow: hidden; transition: color .4s; }
.btn::before { content: ''; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .4s cubic-bezier(.7,0,.2,1); z-index: -1; }
.btn:hover { color: var(--paper); }
.btn:hover::before { transform: scaleY(1); }
.btn.solid { background: var(--red); border-color: var(--red); color: #fff; z-index: 0; }
.btn.solid::before { background: var(--ink); }

/* ===== Внутренние страницы ===== */
.page-head { padding: calc(var(--head) + 60px) var(--pad) 40px; display: grid; gap: 20px; }
.page-head h1 { font-size: clamp(48px, 11vw, 190px); }
/* длинные однострочные заголовки разделов: «ФОТОСЕССИЯ» ≈ 9.2em, «И ПЛАКАТЫ.» ≈ 8.1em — размер от ширины, чтобы влезали от 320px */
.page-head h1.lb-title { font-size: min(clamp(30px, 11vw, 190px), calc((100vw - 2 * var(--pad)) / 9.4)); }
.page-head h1.pp-title { font-size: min(clamp(30px, 11vw, 190px), calc((100vw - 2 * var(--pad)) / 8.5)); }
.page-head .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 1px solid var(--ink); padding-top: 12px; }
/* верхняя мета-строка шапки страницы — одинаковая на всех страницах (заголовок h1 начинается на одной высоте) */
.page-head > .mono:first-child { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 0; padding-top: 0; }

/* каталог */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 0 var(--pad) 28px; max-width: 100%; min-width: 0; }
.toolbar > * { min-width: 0; max-width: 100%; }
.seg { display: inline-flex; max-width: 100%; border: 1px solid var(--ink); }
.seg button { padding: 10px 16px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.seg button.on { background: var(--ink); color: var(--paper); }
.catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--pad); padding: 0 var(--pad) 120px; }
.catalog .card { width: auto; min-width: 0; }
.card .meta > div { min-width: 0; }
@media (max-width: 900px) { .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; } .card h3 { font-size: 15px; } }
/* режим «чертёж» (обработка фото — SVG-фильтр #bp-edge в css/pages/catalog.css) */
.mode-blueprint .card .ph { background: #fff; }
.mode-blueprint .card .ph img.alt { opacity: 0; clip-path: circle(0% at 50% 50%); transition: clip-path .8s cubic-bezier(.7,0,.2,1), opacity 0s; }
.mode-blueprint .card:hover .ph img.alt { opacity: 1; clip-path: circle(75% at 50% 50%); }
.mode-blueprint .card .ph::after { content: ''; position: absolute; inset: 10px; border: 1px solid var(--red); pointer-events: none; }
/* режим «образы» */
.looks { padding: 0 var(--pad) 120px; display: grid; gap: 80px; }
.look { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--pad); align-items: start; }
.look .strip { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
.look .strip img { width: 100%; height: 100%; object-fit: cover; }
.look .strip .side { display: grid; gap: 8px; }
.look .info { container-type: inline-size; }
.look h2 { font-size: min(clamp(36px, 5vw, 80px), 9.4cqi); } /* «Трансформер» ≈ 10.3em — без разрыва слова */
@media (max-width: 900px) { .look { grid-template-columns: 1fr; } }

/* карточка изделия */
.product { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--pad); padding: calc(var(--head) + 20px) var(--pad) 80px; }
.gallery { display: grid; gap: 8px; }
.gallery figure { position: relative; overflow: hidden; background: #ddd; }
.gallery figure img { width: 100%; }
.hotspot { position: absolute; transform: translate(-50%, -50%); width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font: 11px var(--mono); }
.hotspot::before { content: ''; position: absolute; inset: -6px; border: 1px solid var(--red); border-radius: 50%; animation: ping 2s infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.hotspot.hs-off::before { animation: none; opacity: 0; } /* метка вне экрана — без анимации (main.js) */
.hotspot .tip { position: absolute; left: 30px; top: 50%; transform: translateY(-50%); background: var(--paper); color: var(--ink); padding: 6px 10px; white-space: nowrap; font-size: 11px; text-transform: uppercase; border-left: 2px solid var(--red); opacity: 0; transition: opacity .3s; pointer-events: none; }
.hotspot .tip::before { content: ''; position: absolute; right: 100%; top: 50%; width: 10px; height: 1px; background: var(--red); }
.hotspot:hover .tip, .hotspot.show .tip { opacity: 1; }
.pinfo { position: sticky; top: calc(var(--head) + 20px); align-self: start; display: grid; gap: 22px; }
.pinfo h1 { font-size: clamp(40px, 5.6vw, 92px); }
.sizes { display: flex; gap: 6px; }
.sizes button { width: 52px; height: 44px; border: 1px solid var(--ink); font-family: var(--mono); }
.sizes button.on { background: var(--ink); color: var(--paper); }
.spec { border-top: 1px solid var(--ink); }
.spec details { border-bottom: 1px solid var(--line); }
.spec summary { list-style: none; display: flex; justify-content: space-between; padding: 14px 0; font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.spec summary::after { content: '+'; }
.spec details[open] summary::after { content: '−'; }
.spec .body { padding: 0 0 16px; color: #333; }
.rethink { display: grid; gap: 8px; }
.rethink div { display: grid; grid-template-columns: 1fr 24px 1fr; gap: 8px; font-size: 14px; align-items: center; }
.rethink div span:nth-child(2) { color: var(--red); text-align: center; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } .pinfo { position: static; } }

/* сравнение «источник ↔ изделие» */
.compare { position: relative; aspect-ratio: 16/10; overflow: hidden; border: 1px solid var(--ink); background: #fff; user-select: none; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.compare .top { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); background: #111; }
.compare .top img { object-fit: cover; }
.compare .handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--red); }
.compare .handle::after { content: '⇆'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; }
.compare .lbl { position: absolute; bottom: 10px; padding: 4px 8px; background: var(--paper); }

/* постеры */
.posters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px var(--pad); padding: 0 var(--pad) 120px; }
@media (max-width: 900px) { .posters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* источники (страница) — стили в css/pages/sources.css */

/* лукбук — раскладка кадров в css/pages/lookbook.css (.fr/.shot/.lb-cap) */
.lookbook { padding: 0 var(--pad) 120px; }

/* о нас */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); padding: 0 var(--pad) 80px; }
.author-ph { aspect-ratio: 4/5; background: repeating-linear-gradient(45deg, #ddd 0 10px, #e6e4de 10px 20px); display: grid; place-items: center; text-align: center; padding: 20px; border: 1px dashed var(--red); }
.quote { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.8vw, 42px); line-height: 1.15; text-transform: uppercase; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.timeline div { padding: 18px 18px 40px 0; border-right: 1px solid var(--line); }
.timeline b { font-family: var(--display); font-weight: 800; font-size: 40px; display: block; margin-bottom: 8px; }
.team { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); }
.team article { border-top: 1px solid var(--ink); padding-top: 14px; }
.team h3 { font-family: var(--display); font-size: 32px; text-transform: uppercase; }
@media (max-width: 900px) { .about-hero, .team { grid-template-columns: minmax(0, 1fr); } .timeline { grid-template-columns: 1fr 1fr; } }

/* reveal */
.rv { opacity: 0; transform: translateY(40px); }
.img-rv { clip-path: inset(100% 0 0 0); }

/* ===== prefers-reduced-motion: без зерна, бегущей строки, курсора и тяжёлых анимаций ===== */
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; display: none; }
  .marquee .track { animation: none; }
  .cursor { display: none !important; }
  .hotspot::before { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
  .img-rv { clip-path: none; }
  .manifest p .w { opacity: 1; }
}
