/* =========================================================
   SOUND LIGHT 92 — дизайн-система по мотивам «Cassette»
   Один акцентный цвет (красный из логотипа) на тёплом чёрном.
   Чтобы сменить акцент (например, на жёлтый #f0e226) —
   поменяйте --accent ниже.
   ========================================================= */
:root {
  --accent: #ff2a2a;
  --accent-ink: #0a0a0a;
  --ink: #141314;
  --ink-2: #1b1a1b;
  --black: #000;
  --bone: #f5f4f0;
  --charcoal: #2a2829;
  --sand: #d9d7ce;
  --muted: #8f8c85;

  --f-display: 'Unbounded', 'Inter', system-ui, sans-serif;
  --f-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;

  --t-cap: 13px;
  --t-body: 16px;
  --t-h2: clamp(30px, 3.6vw, 52px);
  --t-h1: clamp(28px, 3vw, 44px);

  --pill: 900px;
  --gutter: clamp(16px, 3vw, 40px);
  --section: clamp(80px, 11vw, 160px);
  --max: 1440px;
  --ease: cubic-bezier(.2, .7, 0, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 var(--t-body)/1.45 var(--f-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* зерно / риза — поверх всего */
body::after {
  content: ''; position: fixed; inset: -50%; z-index: 999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .07;
  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%); } 100% { transform: translate(0, 0); }
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); font-size: var(--t-cap); letter-spacing: .02em; text-transform: uppercase; }
.muted { color: var(--muted); }
.hide-sm { }

/* ---------- базовые компоненты ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font: 400 var(--t-cap)/1 var(--f-mono); text-transform: uppercase; letter-spacing: .02em;
  color: var(--accent); border: 1px solid var(--accent); border-radius: var(--pill);
  padding: 8px 14px; white-space: nowrap;
  transition: background .25s, color .25s;
}
.pill:hover, .pill.is-active { background: var(--accent); color: var(--accent-ink); }
.pill--fill { background: var(--accent); color: var(--accent-ink); }
.pill--fill:hover { background: var(--bone); border-color: var(--bone); }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font: 400 14px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .03em;
  padding: 18px 28px; border-radius: var(--pill);
  border: 1px solid var(--accent); color: var(--accent);
  overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover { color: var(--accent-ink); }
.btn:hover::before { transform: translateY(0); }
.btn--fill { background: var(--accent); color: var(--accent-ink); }
.btn--fill::before { background: var(--bone); }
.btn--fill:hover { border-color: var(--bone); }

.badge {
  display: inline-flex; flex-direction: column; gap: 4px;
  font: 400 var(--t-cap)/1 var(--f-mono); color: var(--accent);
  border: 1px solid var(--accent); border-radius: var(--pill);
  padding: 9px 20px; margin-bottom: 28px;
}
.badge span + span { color: var(--sand); }

.h2 { font: 400 var(--t-h2)/1.08 var(--f-display); letter-spacing: -.01em; text-wrap: balance; }
mark {
  background: none; color: inherit;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat; background-position: 0 92%; background-size: 0% .12em;
  transition: background-size 1.1s var(--ease) .35s;
}
.is-in mark, .is-in > mark, mark.is-in { background-size: 100% .12em; }
.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.35; }

.section { padding: var(--section) 0 0; }
.section__head { margin-bottom: clamp(40px, 5vw, 72px); max-width: 980px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.section__head--row > p { max-width: 360px; font-size: 15px; }

/* ---------- прелоадер ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 1000; background: var(--black);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  transition: transform .9s var(--ease), visibility 0s .9s;
}
.loader.is-done { transform: translateY(-100%); visibility: hidden; }
.loader__eq { display: flex; align-items: flex-end; gap: 6px; height: 56px; }
.loader__eq i { width: 10px; background: var(--accent); animation: eqbar .6s ease-in-out infinite alternate; }
.loader__eq i:nth-child(2n) { animation-duration: .45s; }
.loader__eq i:nth-child(3n) { animation-duration: .7s; background: var(--bone); }
.loader__eq i:nth-child(4) { animation-delay: -.3s; }
@keyframes eqbar { from { height: 8px; } to { height: 56px; } }
.loader__text { display: flex; gap: 24px; font: 400 13px/1 var(--f-mono); color: var(--sand); letter-spacing: .12em; }
.loader__num { color: var(--accent); min-width: 3ch; }
.loader__line { width: 200px; height: 1px; background: var(--charcoal); }
.loader__line i { display: block; height: 100%; width: 0; background: var(--accent); }

.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--accent); z-index: 60; transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- шапка ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--gutter);
  transition: background .35s, border-color .35s, transform .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(20, 19, 20, .92); border-bottom-color: var(--charcoal); backdrop-filter: saturate(1.2); }
.header.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mark { width: 38px; height: 38px; overflow: visible; }
.mark__ring { fill: none; stroke: var(--bone); stroke-width: 5; }
.mark__disc { fill: var(--accent); transform-origin: 50% 50%; animation: thump .48s ease-out infinite; }
.mark__core { fill: var(--black); }
.mark__wave { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; animation: wave .96s ease-out infinite; transform-origin: 50% 50%; }
@keyframes thump { 0% { transform: scale(1.08); } 40% { transform: scale(.94); } 100% { transform: scale(1); } }
@keyframes wave { 0% { opacity: 1; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.25); } }
.brand__name { font: 300 17px/1 var(--f-display); letter-spacing: .02em; }
.brand__name b { font-weight: 300; color: var(--accent); }

.nav { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.nav .pill { padding: 7px 12px; }
.header__cta { display: flex; align-items: center; gap: 16px; }
.header__phone { font: 400 14px/1 var(--f-mono); white-space: nowrap; transition: color .2s; }
.header__phone:hover { color: var(--accent); }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--accent); border-radius: 50%; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1px; background: var(--accent); transition: transform .35s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--black);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  clip-path: circle(0% at calc(100% - 44px) 36px); visibility: hidden;
  transition: clip-path .7s var(--ease), visibility 0s .7s;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 44px) 36px); visibility: visible; transition: clip-path .7s var(--ease); }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a { font: 300 clamp(30px, 8vw, 56px)/1.15 var(--f-display); display: flex; align-items: baseline; gap: 14px; border-bottom: 1px solid var(--charcoal); padding: 10px 0; }
.menu__nav a span { font: 400 12px var(--f-mono); color: var(--accent); }
.menu__phone { font: 300 26px var(--f-display); color: var(--accent); display: block; margin-bottom: 16px; }
.menu__links { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: calc(var(--header-h) + clamp(24px, 4vw, 56px));
  overflow: hidden; isolation: isolate;
}
.hero__beams { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.beam {
  position: absolute; top: -8%; width: 34vw; height: 125%;
  background: var(--accent); opacity: .07; mix-blend-mode: screen;
  clip-path: polygon(48.5% 0, 51.5% 0, 100% 100%, 0 100%);
  transform-origin: 50% 0;
  animation: sweep 9s ease-in-out infinite alternate;
}
.beam.b1 { left: 2%;  animation-duration: 8s; }
.beam.b2 { left: 22%; background: var(--bone); opacity: .045; animation-duration: 11s; animation-delay: -3s; }
.beam.b3 { left: 42%; animation-duration: 7s; animation-delay: -5s; }
.beam.b4 { left: 60%; background: var(--bone); opacity: .045; animation-duration: 10s; animation-delay: -2s; }
.beam.b5 { left: 76%; animation-duration: 9s; animation-delay: -6s; }
@keyframes sweep { 0% { transform: rotate(-22deg); } 100% { transform: rotate(22deg); } }
.hero__beams.is-strobe .beam { animation-play-state: paused; }

.hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.hero__lead { max-width: 620px; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 22px; }
.hero__title { font: 400 var(--t-h1)/1.1 var(--f-display); letter-spacing: -.01em; text-wrap: balance; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__sub { color: var(--sand); max-width: 460px; font-size: 16px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

.hero__bottom { position: relative; }
.wordmark {
  width: 100%; padding: 0 calc(var(--gutter) * .5);
  font: 300 13vw/.86 var(--f-display); letter-spacing: -.02em; white-space: nowrap;
  color: var(--bone); user-select: none; overflow: hidden;
}
.wordmark__inner { display: inline-block; }
.wm-word { display: inline-block; }
.wm-light { color: var(--accent); }
.ch { display: inline-block; will-change: transform; }
.js .ch { transform: translateY(105%); }
.js .is-ready .ch { transform: none; transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.ch--o { width: .86em; height: .86em; vertical-align: -.07em; margin: 0 .02em; }
.ch--o svg { width: 100%; height: 100%; overflow: visible; }
.o-ring { fill: none; stroke: var(--bone); stroke-width: 5.2; }
.o-disc { fill: var(--accent); transform-origin: 50% 50%; animation: thump .48s ease-out infinite; }
.o-core { fill: var(--ink); }
.o-wave { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; transform-origin: 50% 50%; animation: wave .96s ease-out infinite; }

/* «свет включается» — мерцание LIGHT */
.is-ready .wm-light { animation: flicker 1.6s steps(1) .6s both; }
@keyframes flicker {
  0% { opacity: .15; } 8% { opacity: 1; } 12% { opacity: .2; } 20% { opacity: 1; } 24% { opacity: .35; } 30%, 100% { opacity: 1; }
}

.cities {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 14px;
  font: 400 var(--t-cap)/1 var(--f-mono); color: var(--bone); letter-spacing: .04em;
}
.eq { display: block; width: 100%; height: clamp(80px, 12vw, 160px); margin-top: 18px; }

/* ---------- бегущая строка ---------- */
.marquee { border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent); overflow: hidden; background: var(--accent); color: var(--accent-ink); }
.marquee__track { display: flex; width: max-content; animation: marq 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span, .marquee i { font: 300 clamp(22px, 2.6vw, 36px)/1 var(--f-display); padding: 18px 0; white-space: nowrap; font-style: normal; }
.marquee span { padding-right: 24px; }
.marquee i { padding-right: 24px; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- about / split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.split__text > p { color: var(--sand); max-width: 560px; }
.split__text > p + p { margin-top: 16px; }
.split__text .h2 { margin-bottom: 28px; }
.split__text .lead { color: var(--bone); margin-bottom: 18px; }

.collage { position: relative; aspect-ratio: 1 / 1.05; }
.collage .ph { position: absolute; }
.collage .c1 { left: 0; top: 6%; width: 64%; aspect-ratio: 4/5; z-index: 1; }
.collage .c2 { right: 0; top: 0; width: 44%; aspect-ratio: 1; z-index: 2; }
.collage .c3 { right: 8%; bottom: 0; width: 52%; aspect-ratio: 4/3; z-index: 3; }
.collage__stamp { position: absolute; left: 44%; bottom: 14%; z-index: 4; width: clamp(110px, 12vw, 160px); aspect-ratio: 1; display: grid; place-items: center; }
.collage__stamp svg { position: absolute; inset: 0; animation: spin 18s linear infinite; }
.collage__stamp text { font: 400 13.5px var(--f-mono); fill: var(--accent); letter-spacing: 2px; }
.collage__stamp span { font: 300 32px var(--f-display); width: 56%; aspect-ratio: 1; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); border-radius: 50%; }
@keyframes spin { to { transform: rotate(360deg); } }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--charcoal); margin-top: 40px; }
.facts li { padding: 22px 16px 0 0; }
.facts li + li { padding-left: 16px; border-left: 1px solid var(--charcoal); }
.facts b { display: block; font: 300 clamp(34px, 3.4vw, 50px)/1 var(--f-display); color: var(--accent); margin-bottom: 10px; }
.facts span { font: 400 12px/1.35 var(--f-mono); color: var(--sand); text-transform: uppercase; }

/* ---------- плейсхолдеры для фото ---------- */
.ph {
  position: relative; overflow: hidden; background-color: var(--ink-2);
  background-image: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(255,255,255,.025) 14px 15px);
  border: 1px solid var(--black);
}
.ph::before {
  content: attr(data-ph); position: absolute; left: 12px; bottom: 12px; right: 12px;
  font: 400 11px/1.3 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em;
}
.ph::after {
  content: '✺'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 34px; color: var(--accent); opacity: .5;
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform 1.2s var(--ease); }
.ph:hover img { transform: scale(1.04); }

/* ---------- сетка-решётка ---------- */
.lattice { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--charcoal); border-left: 1px solid var(--charcoal); }
.lattice--3 { grid-template-columns: repeat(3, 1fr); }
.cell {
  position: relative; min-height: 230px; padding: 24px; display: flex; flex-direction: column;
  border-right: 1px solid var(--charcoal); border-bottom: 1px solid var(--charcoal);
  overflow: hidden; isolation: isolate; transition: color .4s var(--ease);
}
.cell::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  clip-path: circle(0% at var(--mx, 50%) var(--my, 50%)); transition: clip-path .6s var(--ease);
}
.cell:hover { color: var(--accent-ink); }
.cell:hover::before { clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); }
.cell__n { font: 400 12px var(--f-mono); color: var(--accent); transition: color .4s; }
.cell__tag { position: absolute; top: 24px; right: 24px; font: 400 11px var(--f-mono); color: var(--muted); letter-spacing: .06em; transition: color .4s; }
.cell h3 { font: 400 clamp(19px, 1.6vw, 23px)/1.15 var(--f-display); margin-top: auto; padding-top: 40px; }
.cell p { font-size: 14px; color: var(--sand); margin-top: 10px; transition: color .4s; }
.cell:hover .cell__n, .cell:hover .cell__tag, .cell:hover p { color: var(--accent-ink); }
.cell__arr { position: absolute; top: 20px; right: 24px; font: 300 28px var(--f-display); color: var(--accent); transition: transform .4s var(--ease), color .4s; }
.cell--link .cell__tag { right: auto; left: 24px; }

/* плашки с фото: ч/б по умолчанию, цвет при наведении */
.cell--img { padding: 0 0 24px; }
.cell__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 22px; background: var(--ink-2); border-bottom: 1px solid var(--charcoal); }
.cell__img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(.72);
  transition: filter .7s var(--ease), transform 1.2s var(--ease);
}
.cell--img:hover .cell__img img { filter: none; transform: scale(1.07); }
.cell--img .cell__n, .cell--img .cell__tag {
  position: absolute; top: 14px; z-index: 2; background: var(--black); border-radius: var(--pill);
  padding: 6px 10px; line-height: 1;
}
.cell--img .cell__n { left: 14px; }
.cell--img .cell__tag { right: 14px; color: var(--sand); }
.cell--img:hover .cell__n { color: var(--accent); }
.cell--img:hover .cell__tag { color: var(--bone); }
.cell--img h3 { margin-top: 0; padding: 0 24px; }
.cell--img p { padding: 0 24px; }
.cell--link:hover .cell__arr { transform: translate(4px, -4px); color: var(--accent-ink); }

/* ---------- оборудование ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tabs .pill { padding: 11px 20px; font-size: 14px; }
.eqlist { display: none; border-top: 1px solid var(--charcoal); }
.eqlist.is-active { display: block; animation: panelIn .6s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.row {
  display: grid; grid-template-columns: 44px 136px 1fr auto 56px; align-items: center; gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--charcoal); position: relative;
  transition: padding .4s var(--ease);
}
.row::before { content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--accent); transition: width .6s var(--ease); }
.row:hover::before { width: 100%; }
.row:hover { padding-left: 12px; }
.row__n { font: 400 12px var(--f-mono); color: var(--accent); }
.row__img { width: 100%; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink-2); border: 1px solid var(--black); }
.row__img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(.75); transition: filter .6s var(--ease), transform 1s var(--ease);
}
.row:hover .row__img img, .row.is-picked .row__img img { filter: none; transform: scale(1.08); }
.row.is-picked .row__img { border-color: var(--accent); }
.row__t h3 { font: 400 clamp(20px, 2vw, 28px)/1.15 var(--f-display); }
.row__t p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.row__tags { font: 400 11px var(--f-mono); color: var(--sand); letter-spacing: .06em; }
.add {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent);
  font: 300 24px/1 var(--f-display); display: grid; place-items: center;
  transition: background .3s, color .3s, transform .45s var(--ease);
}
.add:hover { background: var(--accent); color: var(--accent-ink); }
.row.is-picked .add { background: var(--accent); color: var(--accent-ink); transform: rotate(45deg); }
.row.is-picked h3 { color: var(--accent); }

/* ---------- события ---------- */
.evlist { border-top: 1px solid var(--charcoal); }
.evlist a {
  display: grid; grid-template-columns: 60px 1.2fr 1fr 40px; align-items: center; gap: 24px;
  padding: clamp(20px, 2.4vw, 34px) 0; border-bottom: 1px solid var(--charcoal);
  position: relative; transition: color .35s;
}
.ev__n { font: 400 12px var(--f-mono); color: var(--accent); }
.ev__t { font: 300 clamp(28px, 4.6vw, 72px)/1 var(--f-display); letter-spacing: -.02em; transition: transform .6s var(--ease), color .35s; }
.ev__d { color: var(--muted); font-size: 15px; max-width: 360px; transition: color .35s; }
.ev__arr { font: 300 32px var(--f-display); color: var(--accent); transition: transform .5s var(--ease); justify-self: end; }
.evlist a:hover .ev__t { transform: translateX(18px); color: var(--accent); }
.evlist a:hover .ev__d { color: var(--bone); }
.evlist a:hover .ev__arr { transform: translateX(8px) rotate(-45deg); }
.evpreview {
  position: fixed; left: 0; top: 0; z-index: 30; width: 300px; aspect-ratio: 4/5; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.6) rotate(-6deg); border: 1px solid var(--accent);
  transition: opacity .35s, transform .5s var(--ease);
}
.evpreview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
.evpreview img { opacity: 0; }
.evpreview img.is-loaded { opacity: 1; }

/* ---------- процесс ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; position: relative; }
.steps::before { content: ''; position: absolute; top: 27px; left: 0; right: 0; height: 1px; background: var(--charcoal); }
.steps li { position: relative; padding-right: 28px; }
.steps__n {
  position: relative; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--accent); background: var(--ink); color: var(--accent);
  font: 400 13px var(--f-mono); margin-bottom: 28px; transition: background .4s, color .4s;
}
.steps li:hover .steps__n { background: var(--accent); color: var(--accent-ink); }
.steps h3 { font: 400 22px/1.15 var(--f-display); margin-bottom: 12px; }
.steps p { color: var(--sand); font-size: 15px; }

/* ---------- цитата ---------- */
.quote { padding: var(--section) 0 0; }
.quote__text { font: 300 clamp(36px, 7vw, 116px)/1 var(--f-display); letter-spacing: -.03em; text-wrap: balance; }
.quote__text em { font-style: normal; color: var(--accent); }
.quote__text .w { display: inline-block; opacity: .12; transition: opacity .5s; }
.quote__text .w.is-lit { opacity: 1; }
.no-js .quote__text .w { opacity: 1; }
.quote__foot { margin-top: 28px; color: var(--sand); }

/* ---------- галерея ---------- */
.grid-gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(90px, 9vw, 130px); gap: 12px; }
.g1 { grid-column: 1 / 8; grid-row: span 4; }
.g2 { grid-column: 8 / 13; grid-row: span 2; }
.g3 { grid-column: 8 / 13; grid-row: span 2; }
.g4 { grid-column: 1 / 5; grid-row: span 4; }
.g5 { grid-column: 5 / 9; grid-row: span 2; }
.g6 { grid-column: 9 / 13; grid-row: span 2; }
.g7 { grid-column: 5 / 13; grid-row: span 2; }

/* ---------- заявка ---------- */
.split--form { align-items: start; grid-template-columns: .85fr 1.15fr; }
.request__intro { position: sticky; top: calc(var(--header-h) + 24px); }
.request__direct { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.big-phone { font: 300 clamp(26px, 2.8vw, 40px)/1 var(--f-display); color: var(--accent); transition: color .2s; }
.big-phone:hover { color: var(--bone); }
.request__links { display: flex; flex-wrap: wrap; gap: 8px; }

.formbox { border: 1px solid var(--charcoal); background: var(--ink-2); }
.formtabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--charcoal); }
.formtab {
  padding: 22px 24px; text-align: left; font: 400 clamp(15px, 1.3vw, 19px)/1.1 var(--f-display);
  color: var(--muted); position: relative; transition: color .3s, background .3s;
}
.formtab + .formtab { border-left: 1px solid var(--charcoal); }
.formtab span { display: block; font: 400 11px var(--f-mono); margin-bottom: 8px; color: var(--muted); }
.formtab::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.formtab.is-active { color: var(--bone); }
.formtab.is-active span { color: var(--accent); }
.formtab.is-active::after { transform: scaleX(1); }
.formtab:hover { color: var(--bone); }

.form { display: none; padding: clamp(20px, 3vw, 36px); }
.form.is-active { display: block; animation: panelIn .5s var(--ease); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field > span { font: 400 11px var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--sand); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.3 var(--f-sans); color: var(--bone);
  background: transparent; border: 0; border-bottom: 1px solid var(--charcoal); border-radius: 0;
  padding: 10px 0 12px; outline: none; transition: border-color .3s;
  color-scheme: dark;
}
.field textarea { resize: vertical; min-height: 84px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ff2a2a' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; padding-right: 24px; }
.field select option { background: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #5d5a55; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.field.is-invalid input { border-bottom-color: var(--accent); }
.field.is-invalid > span { color: var(--accent); }

.picked { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.picked__list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font: 400 12px var(--f-mono); text-transform: uppercase; background: var(--accent); color: var(--accent-ink); border-radius: var(--pill); padding: 6px 8px 6px 12px; }
.chip button { width: 18px; height: 18px; border-radius: 50%; background: var(--accent-ink); color: var(--accent); font-size: 12px; line-height: 1; }

.check { display: flex; align-items: flex-start; gap: 12px; margin: 26px 0; font-size: 13px; color: var(--sand); cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check i { flex: 0 0 20px; height: 20px; border: 1px solid var(--accent); border-radius: 50%; position: relative; margin-top: -1px; }
.check i::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .3s var(--ease); }
.check input:checked + i::after { transform: scale(1); }
.check input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 3px; }
.check a { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; }
.check.is-invalid i { background: rgba(255, 42, 42, .25); }

.btn--submit { width: 100%; padding: 22px; font-size: 15px; }
.btn__eq { display: none; align-items: flex-end; gap: 3px; height: 16px; }
.btn__eq i { width: 3px; background: currentColor; animation: eqbar2 .5s ease-in-out infinite alternate; }
.btn__eq i:nth-child(2) { animation-delay: -.2s; } .btn__eq i:nth-child(3) { animation-delay: -.35s; } .btn__eq i:nth-child(4) { animation-delay: -.1s; }
@keyframes eqbar2 { from { height: 3px; } to { height: 16px; } }
.btn--submit.is-loading { pointer-events: none; }
.btn--submit.is-loading .btn__eq { display: inline-flex; }

.drop {
  margin-top: 28px; border: 1px dashed var(--accent); padding: 32px 20px; text-align: center; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 10px; transition: background .3s, border-style .3s;
}
.drop:hover, .drop.is-over { background: rgba(255, 42, 42, .06); border-style: solid; }
.drop__icon { display: flex; align-items: flex-end; gap: 4px; height: 34px; margin-bottom: 6px; }
.drop__icon i { width: 6px; background: var(--accent); height: 30%; transition: height .4s var(--ease); }
.drop__icon i:nth-child(2) { height: 60%; } .drop__icon i:nth-child(3) { height: 100%; } .drop__icon i:nth-child(4) { height: 55%; } .drop__icon i:nth-child(5) { height: 25%; }
.drop.is-over .drop__icon i, .drop:hover .drop__icon i { animation: eqbar3 .45s ease-in-out infinite alternate; }
.drop.is-over .drop__icon i:nth-child(2n), .drop:hover .drop__icon i:nth-child(2n) { animation-delay: -.25s; }
@keyframes eqbar3 { from { height: 15%; } to { height: 100%; } }
.drop__title { font: 400 18px/1.2 var(--f-display); }
.drop__hint { color: var(--muted); font-size: 11px; }
.drop .pill { margin-top: 6px; }

.files { margin-top: 12px; display: flex; flex-direction: column; }
.files li { display: grid; grid-template-columns: 1fr auto 28px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--charcoal); font: 400 13px var(--f-mono); animation: panelIn .4s var(--ease); }
.files li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files li .fsize { color: var(--muted); }
.files li button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--charcoal); color: var(--muted); transition: border-color .2s, color .2s; }
.files li button:hover { border-color: var(--accent); color: var(--accent); }
.files li.is-bad { color: var(--accent); }

/* ---------- контакты ---------- */
.contacts__phone {
  display: block; font: 300 clamp(40px, 10.5vw, 170px)/1 var(--f-display); letter-spacing: -.035em; white-space: nowrap;
  color: var(--accent); margin: 8px 0 clamp(36px, 5vw, 64px); transition: color .3s;
}
.contacts__phone:hover { color: var(--bone); }
.contacts__grid .cell { min-height: 200px; }
.contacts__note { margin-top: 32px; color: var(--sand); max-width: 620px; }

/* ---------- подвал ---------- */
.footer { margin-top: var(--section); border-top: 1px solid var(--charcoal); padding-bottom: 28px; position: relative; overflow: hidden; }
.eq--footer { margin-top: 0; height: clamp(60px, 8vw, 110px); transform: scaleY(-1); opacity: .9; }
.footer__logo { max-width: 640px; margin: 0 auto; padding: 0 var(--gutter); }
.footer__logo img { width: 100%; mix-blend-mode: screen; aspect-ratio: 1080 / 500; object-fit: cover; object-position: 50% 40%; margin: 8px 0 32px; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font: 400 12px var(--f-mono); color: var(--muted); letter-spacing: .04em; border-top: 1px solid var(--charcoal); padding-top: 20px; }
.footer__row a:hover { color: var(--accent); }

/* ---------- плавающие элементы ---------- */
.cartfab {
  position: fixed; right: var(--gutter); bottom: 24px; z-index: 40;
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px;
  background: var(--accent); color: var(--accent-ink); border-radius: var(--pill);
  font: 400 13px var(--f-mono); text-transform: uppercase;
  animation: fabIn .5s var(--ease);
}
.cartfab__n { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-ink); color: var(--accent); display: grid; place-items: center; }
.cartfab.bump { animation: bump .4s var(--ease); }
@keyframes fabIn { from { transform: translateY(120%); } }
@keyframes bump { 50% { transform: scale(1.12); } }

.mbar { display: none; }

.modal { position: fixed; inset: 0; z-index: 900; background: rgba(0, 0, 0, .82); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__box { position: relative; background: var(--ink); border: 1px solid var(--accent); padding: clamp(28px, 4vw, 48px); max-width: 520px; width: 100%; animation: panelIn .5s var(--ease); }
.modal__eq { display: flex; align-items: flex-end; gap: 5px; height: 40px; margin-bottom: 24px; }
.modal__eq i { width: 8px; background: var(--accent); animation: eqbar .5s ease-in-out infinite alternate; }
.modal__eq i:nth-child(2n) { animation-delay: -.2s; } .modal__eq i:nth-child(3n) { animation-delay: -.4s; background: var(--bone); }
.modal__title { font: 400 28px/1.1 var(--f-display); margin-bottom: 12px; }
.modal__text { color: var(--sand); }
.modal__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.modal__actions:empty { display: none; }
.modal__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--charcoal); font-size: 22px; line-height: 1; transition: border-color .2s, color .2s; }
.modal__close:hover { border-color: var(--accent); color: var(--accent); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 950; transform: translate(-50%, calc(100% + 120px));
  background: var(--bone); color: var(--black); padding: 12px 20px; border-radius: var(--pill);
  font: 400 13px var(--f-mono); text-transform: uppercase; transition: transform .45s var(--ease); pointer-events: none;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.is-on { transform: translate(-50%, 0); }

/* ---------- появление при скролле ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-stagger] > * { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform 1s var(--ease), color .4s var(--ease); transition-delay: calc(var(--d, 0) * 60ms), calc(var(--d, 0) * 60ms), 0s; }
.js [data-stagger] > .is-in { opacity: 1; transform: none; }

/* =================== адаптив =================== */
@media (max-width: 1240px) {
  .nav { display: none; }
  .burger { display: block; }
}
@media (max-width: 1100px) {
  .lattice { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 48px 0; }
  .steps::before { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .header__phone { display: none; }
  .hero__top { flex-direction: column; gap: 28px; }
  .hero__lead { text-align: left; align-items: flex-start; }
  .hero__actions { justify-content: flex-start; }
  .split, .split--form { grid-template-columns: 1fr; }
  .request__intro { position: static; }
  .collage { max-width: 560px; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .lattice, .lattice--3 { grid-template-columns: repeat(2, 1fr); }
  .evlist a { grid-template-columns: 40px 1fr 32px; }
  .ev__d { grid-column: 2 / 3; grid-row: 2; font-size: 14px; }
  .ev__arr { grid-row: 1 / 3; grid-column: 3; }
  .evpreview { display: none; }
  .grid-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; gap: 8px; }
  .grid-gallery .ph { grid-column: auto; grid-row: span 1; }
  .g1, .g7 { grid-column: 1 / -1 !important; }
  .g4 { grid-row: span 2 !important; }
}
@media (max-width: 640px) {
  :root { --t-body: 15px; }
  .header .pill--fill { display: none; }
  .brand__name { font-size: 15px; }
  .hide-sm { display: none; }
  .cities { font-size: 10px; gap: 6px; }
  .hero__title { font-size: 27px; }
  .btn { padding: 16px 22px; font-size: 13px; }
  .lattice, .lattice--3 { grid-template-columns: 1fr; }
  .cell { min-height: 170px; }
  .facts { grid-template-columns: 1fr; }
  .facts li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--charcoal); margin-top: 20px; }
  .row { grid-template-columns: 84px 1fr 44px; gap: 8px 14px; }
  .row__n { display: none; }
  .row__img { grid-row: 1 / 3; grid-column: 1; align-self: start; }
  .row__t { grid-column: 2; min-width: 0; }
  .row__t h3 { font-size: 18px; overflow-wrap: anywhere; hyphens: auto; }
  .row__t p { display: none; }
  .row__tags { grid-row: 2; grid-column: 2; }
  .add { grid-row: 1 / 3; grid-column: 3; width: 44px; height: 44px; }
  .row:hover { padding-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr; }
  .formtab { padding: 16px; }
  .footer { padding-bottom: 90px; }
  .cartfab { display: none !important; }
  .mbar__main[data-n]:not([data-n=""])::after {
    content: attr(data-n); position: absolute; top: -6px; right: 6px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--bone); color: var(--black); display: grid; place-items: center; font-size: 11px;
  }
  .mbar a { position: relative; }
  .toast { bottom: 80px; }
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr 1.2fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 44;
    background: var(--black); border-top: 1px solid var(--charcoal); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
  }
  .mbar a { display: grid; place-items: center; height: 46px; font: 400 12px var(--f-mono); text-transform: uppercase; border: 1px solid var(--charcoal); border-radius: var(--pill); }
  .mbar .mbar__main { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-stagger] > *, .js .ch { opacity: 1; transform: none; }
}
