/* BIZU — презентация под горизонтальный экран.
   Тёмная графитовая сцена, светящиеся точки, Inter тонким начертанием заглавными.
   Каждая сцена — слайд 1920×1080, масштабируется под экран (--s задаёт main.js).
   Все размеры ниже — в пикселях этого слайда. */
:root {
  color-scheme: dark;
  --s: 1;
  --scene-h: 100vh;
  --fg: #FFFFFF;
  --dim: rgba(255, 255, 255, .55);
  --faint: rgba(255, 255, 255, .32);
  --line: rgba(255, 255, 255, .12);
  --panel: rgba(255, 255, 255, .04);
  --lilac: #E7B8FF;
  --cobalt: #7D95FF;
  --crimson: #FF6B86;
  --sans: Inter, system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: #15171E; scroll-behavior: smooth; scroll-snap-type: y mandatory; -webkit-text-size-adjust: 100%; }
html:has(body.portrait) { scroll-snap-type: none; }
body {
  font: 300 24px/1.55 var(--sans); color: var(--fg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background: radial-gradient(ellipse 75% 70% at 50% 46%, #4E5662 0%, #2E3641 46%, #15171E 100%) fixed #15171E;
}
img, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #15171E; padding: 8px 14px; z-index: 100; font-size: 14px; }
.skip:focus { left: 8px; }
.noscript { padding: 40px; position: relative; z-index: 5; }

/* ---------- фон: лучи, частицы, зерно ---------- */
.rays { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ray { position: absolute; top: -30vh; width: 16vw; min-width: 120px; height: 150vh; transform: rotate(25deg); transform-origin: top center; filter: blur(18px);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04) 55%, rgba(255,255,255,0)); animation: breathe 7s ease-in-out infinite; }
.ray:nth-child(1) { right: 4vw; }
.ray:nth-child(2) { right: 20vw; width: 7vw; min-width: 60px; animation-delay: -2.3s; animation-duration: 9s; }
.ray:nth-child(3) { right: 31vw; width: 11vw; min-width: 80px; animation-delay: -4.6s; animation-duration: 8s; }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
#gl { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
#grain { position: fixed; inset: 0; z-index: 50; width: 100%; height: 100%; pointer-events: none; opacity: .06; }

/* ---------- панель ---------- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 40; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; pointer-events: none; }
.bar > * { pointer-events: auto; }
.bar__logo { font: 400 14px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; text-decoration: none; }
.bar__right { display: flex; align-items: center; gap: 12px; font: 400 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.bar__count b { color: var(--fg); font-weight: 400; }
.bar__btn { all: unset; cursor: pointer; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--fg); font-size: 13px; transition: border-color .3s, background .3s; }
.bar__btn:hover { border-color: var(--dim); background: rgba(255,255,255,.06); }
.bar__btn:focus-visible { outline: 2px solid var(--lilac); outline-offset: 2px; }
:fullscreen .bar { opacity: 0; transition: opacity .4s; }
:fullscreen .bar:hover { opacity: 1; }
.progress { position: fixed; left: 0; right: 0; bottom: 0; height: 2px; z-index: 40; }
.progress i { display: block; height: 100%; width: 0; background: var(--lilac); transition: width .6s var(--ease); }

.rotate { display: none; }
body.portrait .rotate { display: flex; position: sticky; top: 0; z-index: 45; gap: 12px; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: #fff; color: #15171E; font: 400 13px/1.4 var(--sans); }
.rotate button { all: unset; cursor: pointer; font-size: 20px; line-height: 1; padding: 2px 6px; }
body.portrait .bar { display: none; }

/* ---------- сцена и слайд ---------- */
main { position: relative; z-index: 2; }
.scene { position: relative; height: var(--scene-h); overflow: hidden; scroll-snap-align: start; }
.slide {
  position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px;
  transform: translate(-50%, -50%) scale(var(--s));
  padding: 140px 160px 110px; display: grid; align-items: center; column-gap: 120px;
}

/* типографика */
.big { font-weight: 300; text-transform: uppercase; letter-spacing: .04em; line-height: 1.02; }
.small { font: 400 15px/1.6 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--dim); }
.idx { display: flex; gap: 18px; align-items: center; }
.idx::before { content: ""; width: 48px; height: 1px; background: var(--dim); flex: none; }
.text { font-size: 26px; line-height: 1.6; color: rgba(255,255,255,.82); max-width: 760px; }
.sub { font: 300 34px/1.25 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--lilac); }
.stack { display: flex; flex-direction: column; gap: 34px; }
h1.big { font-size: 150px; }
h2.big { font-size: 104px; }

.chips { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: 12px 26px; font: 400 16px/1 var(--sans); text-transform: uppercase; letter-spacing: .1em; }
.ticks { list-style: none; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 18px; align-items: center; font: 400 18px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .1em; }
.ticks li::before { content: ""; width: 10px; height: 10px; flex: none; background:
  linear-gradient(var(--lilac), var(--lilac)) center / 100% 2px no-repeat, linear-gradient(var(--lilac), var(--lilac)) center / 2px 100% no-repeat; }

/* шаги показа */
[data-step] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
[data-step].on { opacity: 1; transform: none; }

/* рамка фото и видео: светлая «витрина» на тёмной сцене */
.frame { position: relative; overflow: hidden; background: #D9D9D7; border: 1px solid var(--line); }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; }
.frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.corner::before, .corner::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--dim); z-index: 2; pointer-events: none; }
.corner::before { left: -9px; top: -9px; border-right: 0; border-bottom: 0; }
.corner::after { right: -9px; bottom: -9px; border-left: 0; border-top: 0; }

/* ---------- 1. обложка ---------- */
.scene--cover .slide { align-content: center; justify-items: start; row-gap: 40px; }
.scene--cover .lead { font-size: 34px; color: var(--dim); }
.cover-foot { position: absolute; left: 160px; right: 160px; bottom: 80px; display: flex; justify-content: space-between; }

/* ---------- 2. проблема ---------- */
.scene--statement .slide { grid-template-columns: 1fr; align-content: center; row-gap: 64px; }
.scene--statement h2.big { font-size: 100px; }
.scene--statement .stack + .stack { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 80px; padding-top: 40px; border-top: 1px solid var(--line); }
.scene--statement .chips { max-width: 640px; justify-content: flex-end; }

/* ---------- 3. идея ---------- */
.scene--manifest .slide { justify-items: center; text-align: center; }
.scene--manifest .stack { align-items: center; gap: 44px; }
.scene--manifest .idx::after { content: ""; width: 48px; height: 1px; background: var(--dim); }
.quote { font: 300 112px/1.08 var(--sans); text-transform: uppercase; letter-spacing: .03em; }
.quote em { font-style: normal; color: var(--lilac); }
.scene--manifest .text { max-width: 900px; }

/* ---------- 4–7. тренды ---------- */
.scene--trend .slide { grid-template-columns: 300px 1fr; column-gap: 80px; }
.trend-num { font: 300 260px/.8 var(--sans); color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.35); align-self: start; margin-top: 70px; }
.scene--trend h2.big { font-size: 88px; }
.next-hint { position: absolute; right: 160px; bottom: 80px; }

/* ---------- 8. BIZU ---------- */
.scene--reveal .slide { grid-template-columns: 680px 1fr; }
.scene--reveal h2.big { font-size: 230px; letter-spacing: .08em; line-height: .9; }
.scene--reveal .text { font-size: 24px; }

/* ---------- 9. роспись ---------- */
.scene--painting .slide { grid-template-columns: 640px 1fr; }
.painting-photo { width: 640px; height: 820px; }
.painting-photo img { object-position: 50% 70%; }
.details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.detail .frame { aspect-ratio: 1; }
.detail figcaption { margin-top: 18px; display: grid; gap: 6px; }
.detail b { font: 300 32px/1.1 var(--sans); text-transform: uppercase; letter-spacing: .04em; }
.detail span { display: flex; gap: 12px; align-items: center; }
.detail span::before { content: "→"; color: var(--lilac); }

/* ---------- 10. форма и фактура ---------- */
.scene--texture .slide { grid-template-columns: 1fr 520px; }
.stage { width: 520px; height: 860px; }
.stage video { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.stage video.on { opacity: 1; }
.seg { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3; display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(21,23,30,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); }
.seg button { all: unset; cursor: pointer; padding: 12px 22px; border-radius: 999px; font: 400 14px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); transition: background .3s, color .3s; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: #fff; color: #15171E; }
.seg button:focus-visible { outline: 2px solid var(--lilac); outline-offset: 2px; }

/* ---------- 11. коллекция ---------- */
.scene--collection .slide { grid-template-columns: 1fr 700px; }
.collection-photo { width: 700px; height: 820px; }
.collection-photo img { object-position: 50% 72%; }

/* ---------- 12. линейка, 13. сценарии ---------- */
.scene--tiers .slide, .scene--scenarios .slide { align-content: center; row-gap: 64px; }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tier { position: relative; background: var(--panel); border: 1px solid var(--line); padding: 40px 36px; display: flex; flex-direction: column; gap: 22px; height: 540px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: border-color .5s, background .5s; }
.tier:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.07); }
.tier__n { font: 400 15px/1 var(--sans); letter-spacing: .12em; color: var(--faint); }
.tier h3 { font: 300 38px/1.08 var(--sans); text-transform: uppercase; letter-spacing: .03em; }
.tier ul { list-style: none; display: grid; gap: 10px; color: rgba(255,255,255,.75); font-size: 21px; }
.tier ul li::before { content: "— "; color: var(--faint); }
.tier__foot { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.tier__price { font: 300 34px/1.1 var(--sans); }
.tier__run { font: 400 14px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.tier:nth-child(4) { background: rgba(231,184,255,.08); border-color: rgba(231,184,255,.35); }
.tier:nth-child(4) .tier__n { color: var(--lilac); }

.scenarios { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.4); }
.scenario { padding: 44px 36px 0 0; display: flex; flex-direction: column; gap: 20px; min-height: 360px; }
.scenario + .scenario { padding-left: 36px; border-left: 1px solid var(--line); }
.scenario i { font: 300 72px/1 var(--sans); font-style: normal; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.4); }
.scenario b { font: 300 40px/1.08 var(--sans); text-transform: uppercase; letter-spacing: .03em; }
.scenario p { color: rgba(255,255,255,.75); }

/* ---------- 14. брендирование ---------- */
.scene--brand .slide { grid-template-columns: 1fr 880px; }
.brand-stage { position: relative; width: 880px; height: 800px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 42%, #3A424E, #1B1E26 75%); }
.brand-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.brand-stage figcaption { position: absolute; left: 28px; bottom: 24px; z-index: 2; }
.swatches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 640px; }
.swatch { all: unset; cursor: pointer; display: flex; align-items: center; gap: 18px; padding: 18px 20px; border: 1px solid var(--line); font: 400 16px/1 var(--sans); text-transform: uppercase; letter-spacing: .1em; transition: border-color .3s, background .3s; }
.swatch:hover { background: rgba(255,255,255,.05); }
.swatch[aria-pressed="true"] { border-color: #fff; background: rgba(255,255,255,.07); }
.swatch:focus-visible { outline: 2px solid var(--lilac); outline-offset: 2px; }
.swatch__dots { display: flex; }
.swatch__dots i { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); }
.swatch__dots i + i { margin-left: -10px; }

/* ---------- 15. заказ ---------- */
.scene--order .slide { grid-template-columns: 1fr 800px; align-items: start; padding-top: 130px; }
.scene--order h2.big { font-size: 80px; }
.scene--order .stack { gap: 28px; }
.steps { list-style: none; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 4px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font: 400 15px/2 var(--sans); color: var(--faint); letter-spacing: .1em; }
.steps b { font: 300 26px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .04em; }
.steps span { color: var(--dim); font-size: 20px; }
.qr { display: flex; gap: 26px; align-items: center; }
.qr__code { background: #fff; padding: 10px; width: 150px; height: 150px; flex: none; }
.qr__code img, .qr__code canvas { width: 100% !important; height: 100% !important; }
.qr p { word-break: break-all; }
.form { background: var(--panel); border: 1px solid var(--line); padding: 44px 48px; display: grid; gap: 24px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.form h3 { font: 300 34px/1.1 var(--sans); text-transform: uppercase; letter-spacing: .04em; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { display: grid; gap: 8px; }
.field label { font: 400 13px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.field input, .field select, .field textarea { width: 100%; border: 0; border-bottom: 1px solid rgba(255,255,255,.3); background: transparent; padding: 10px 0; font-size: 22px; border-radius: 0; appearance: none; -webkit-appearance: none; color: #fff; }
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M0 0l6 7 6-7' fill='%23ffffff' fill-opacity='.55'/%3E%3C/svg%3E") no-repeat right 4px center; padding-right: 26px; }
.field select option { color: #15171E; }
.field textarea { resize: none; height: 92px; }
.field input::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--lilac); box-shadow: 0 1px 0 var(--lilac); }
.submit { justify-self: start; cursor: pointer; border: 1px solid #fff; background: #fff; color: #15171E; padding: 20px 40px; font: 400 14px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; transition: background .3s, color .3s; }
.submit:hover { background: transparent; color: #fff; }
.form__msg { font-size: 19px; color: var(--lilac); min-height: 1.4em; }
.order-foot { position: absolute; left: 160px; right: 160px; bottom: 60px; display: flex; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ray { animation: none; }
  [data-step] { transition: none; }
}

/* заголовки слайдов с фото — компактнее, чтобы всё помещалось в кадр */
.scene--painting h2.big, .scene--texture h2.big, .scene--collection h2.big, .scene--brand h2.big { font-size: 84px; }
.scene--painting .stack { gap: 28px; }

/* брендирование и заказ: плотнее */
.scene--brand .slide { grid-template-columns: 1fr 820px; }
.brand-stage { width: 820px; height: 760px; }
.scene--brand h2.big { font-size: 72px; }
.scene--order .slide { padding-top: 150px; padding-bottom: 150px; align-items: center; }
.scene--order h2.big { font-size: 60px; }
.scene--order .steps { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 0; }
.scene--order .steps li { border-top: 1px solid var(--line); border-bottom: 0; }
.scene--order .steps span { font-size: 18px; }
.qr__code { width: 130px; height: 130px; }
.order-foot { bottom: 56px; }
