/* ============ МЕРЧ ============ */
[hidden] { display: none !important; }
/* Шрифты со своего сервера (SIL Open Font License 1.1): Inter Tight, IBM Plex Mono — кириллица и латиница */
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-400-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-500-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/inter-tight-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/inter-tight-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/inter-tight-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-tight-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-tight-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-tight-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-tight-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-tight-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-tight-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-tight-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-tight-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-tight-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-tight-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-tight-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-tight-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #000; --fg: #fff;
  --dim: rgba(255,255,255,.52);
  --line: rgba(255,255,255,.14);
  --lab: #f1ebf3;
  --plum: #1d1424;
  --holo: linear-gradient(100deg, #ffd3e6 0%, #e6d6ff 28%, #cfe6ff 52%, #d8fbea 74%, #fff0c9 100%);
  --holo-soft: linear-gradient(100deg, rgba(255,190,220,.55), rgba(205,185,255,.55) 35%, rgba(180,220,255,.5) 65%, rgba(255,235,190,.5));
  --sans: "Inter Tight", Arial, "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", Menlo, Consolas, "Liberation Mono", ui-monospace, monospace;
  --pad: clamp(16px, 2.8vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; background: #000; scrollbar-gutter: stable; } /* без сдвига при блокировке прокрутки */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html.is-locked { overflow: hidden; } /* меню или лайтбокс открыт */
body { margin: 0; background: #000; color: var(--fg); font: 400 15px/1.6 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
body.is-loading { 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; }
::selection { background: #f6c6dd; color: var(--plum); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .05em; line-height: 1.6; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main, .ftr { position: relative; z-index: 2; }

/* Фокус и переход к содержанию */
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
.lab :focus-visible { outline-color: var(--plum); }
[tabindex="-1"]:focus { outline: none; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 400; background: #fff; color: #000; padding: 10px 14px; border-radius: 8px; font: 500 14px/1 var(--sans); transition: top .2s; }
.skip:focus { top: 16px; }

/* Фон: WebGL + сетка */
/* лёгкий фон (bg2d.js) виден сразу; WebGL проявляется поверх, когда готов */
#bg2d { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; object-fit: cover; transform: scale(1.12); transition: opacity .6s var(--ease); }
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; opacity: 0; transition: opacity .8s var(--ease); }
html.gl-on #gl { opacity: 1; }
.grid-bg {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: difference;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cpath d='M120 112v16M112 120h16' stroke='%23fff' stroke-opacity='.55' stroke-width='1'/%3E%3C/svg%3E"),
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 240px 240px, 40px 40px, 40px 40px;
  background-position: -120px -120px, 0 0, 0 0;
}

/* Загрузка */
.loader { position: fixed; inset: 0; z-index: 300; background: #000; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--pad); gap: 14px; transition: opacity .6s var(--ease), visibility .6s; animation: loader-out .5s 4s forwards; } /* страховка: не дольше 4 с */
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__row { display: flex; justify-content: space-between; font: 400 11px/1 var(--mono); letter-spacing: .08em; color: var(--dim); text-transform: uppercase; }
.loader__num { font: 400 13px/1 var(--mono); letter-spacing: .12em; }
.loader__bar { height: 1px; background: var(--line); }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--holo); box-shadow: 0 0 12px rgba(230,200,255,.6); }

/* Шапка (difference — читается и на чёрном, и на светлом) */
.hdr { position: fixed; inset: 0 0 auto; z-index: 60; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 22px var(--pad); mix-blend-mode: difference; color: #fff; transition: transform .7s var(--ease); }
.hdr.is-hidden { transform: translateY(-120%); }
.hdr:focus-within { transform: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.logo__mark { width: 30px; height: 23px; }
.logo__word { font: 700 20px/1 var(--sans); letter-spacing: .04em; }
.hdr__nav { display: flex; gap: 40px; font: 400 13px/1 var(--mono); letter-spacing: .04em; }
.hdr__nav a { position: relative; padding: 6px 0; }
.hdr__nav a::before { content: ""; position: absolute; left: -12px; top: 50%; width: 4px; height: 4px; margin-top: -2px; background: #fff; transform: scale(0); transition: transform .4s var(--ease); }
.hdr__nav a:hover::before, .hdr__nav a.on::before { transform: scale(1); }
.pill { justify-self: end; display: inline-flex; align-items: center; gap: 12px; height: 40px; padding: 0 22px; border: 1px solid currentColor; border-radius: 999px; font: 400 12px/1 var(--mono); letter-spacing: .05em; transition: background .3s, color .3s; white-space: nowrap; }
.pill:hover { background: #fff; color: #000; border-color: transparent; }
.bform .pill:hover, .circ-link:hover .circ { background: var(--holo); color: var(--plum); border-color: transparent; }
.pill--lg { height: 56px; padding: 0 10px 0 28px; font-size: 14px; }
.pill--solid { background: #fff; color: #000; border-color: transparent; }
.pill--solid:hover { background: var(--holo); color: var(--plum); }
.circ { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; transition: transform .4s var(--ease); }
.pill--lg .circ { width: 38px; height: 38px; }
.pill:hover .circ, .circ-link:hover .circ { transform: rotate(45deg); }
.hdr__burger { display: none; width: 40px; height: 40px; position: relative; justify-self: end; }
.hdr__burger i { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform .5s var(--ease); }
.hdr__burger i:first-child { top: 16px; } .hdr__burger i:last-child { top: 24px; }
.hdr__burger[aria-expanded="true"] i:first-child { transform: translateY(4px) rotate(30deg); }
.hdr__burger[aria-expanded="true"] i:last-child { transform: translateY(-4px) rotate(-30deg); }

.mnav { position: fixed; inset: 0; z-index: 55; overflow-y: auto; overscroll-behavior: contain; background: #000; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 100px var(--pad) var(--pad); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
.mnav.is-open { opacity: 1; visibility: visible; }
.mnav:not(.is-open) { pointer-events: none; } /* закрывающееся меню не ловит касания */
.mnav > a { font: 500 44px/1.15 var(--sans); letter-spacing: -.03em; display: flex; align-items: baseline; gap: 14px; border-bottom: 1px solid var(--line); padding: 8px 0; }
.mnav > a small { font: 400 11px var(--mono); color: var(--dim); }
.mnav__foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; font: 400 12px var(--mono); color: var(--dim); }

/* Шкала разделов */
.rail { position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 50; mix-blend-mode: difference; color: #fff; display: flex; flex-direction: column; gap: 9px; }
.rail > * { display: flex; align-items: center; gap: 10px; height: 1px; }
.rail i { display: block; width: 8px; height: 1px; background: currentColor; opacity: .45; transition: width .5s var(--ease), opacity .3s; }
.rail a.major i { width: 14px; opacity: .8; }
.rail a span { font: 400 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; opacity: 0; transform: translateX(-6px); transition: opacity .4s, transform .5s var(--ease); white-space: nowrap; }
.rail a.on i { width: 30px; opacity: 1; }
.rail a.on span { opacity: 1; transform: none; }

/* Общие шапки секций */
.shead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; padding: 0 var(--pad) 28px; margin: 0 var(--pad) 40px; border-bottom: 1px solid var(--line); gap: 20px; }
.shead p { margin: 0; color: var(--dim); text-transform: uppercase; }
.shead h2 { margin: 0; font: 300 clamp(38px, 4.8vw, 72px)/1 var(--sans); letter-spacing: -.04em; }
.shead__n { text-align: right; }

/* KV */
.kv { position: relative; height: 100vh; height: 100svh; min-height: 600px; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px var(--pad) 48px calc(var(--pad) + 40px); }
.kv::after { content: ""; position: absolute; inset: auto 0 0; height: 75%; background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,.6) 45%, transparent); pointer-events: none; }
.kv__offer { position: relative; z-index: 1; max-width: 780px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.kv__offer::before { content: ""; position: absolute; z-index: -1; inset: -12% -18% -8% -14%; background: radial-gradient(closest-side, rgba(0,0,0,.62), rgba(0,0,0,.38) 60%, transparent); pointer-events: none; }
.kv__eyebrow { margin: 0; color: rgba(255,255,255,.86); text-transform: uppercase; }
.kv__offer > * { text-shadow: 0 1px 14px rgba(0,0,0,.55), 0 0 2px rgba(0,0,0,.35); }
.kv__offer .pill { text-shadow: none; }
.kv__h1 { margin: 0; font: 500 clamp(40px, 5.6vw, 84px)/1 var(--sans); letter-spacing: -.045em; text-wrap: balance; }
.kv__lead { margin: 0; max-width: 54ch; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.5; color: rgba(255,255,255,.88); }
.kv__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 6px; }
.kv__facts { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; color: rgba(255,255,255,.62); text-transform: uppercase; }
.season { position: absolute; z-index: 2; top: 88px; left: calc(var(--pad) + 40px); max-width: calc(100% - var(--pad) * 2); display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 7px 14px 7px 7px; border-radius: 999px; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.18); font: 400 12px/1.35 var(--mono); }
.season b { font-weight: 500; background: var(--holo); color: var(--plum); padding: 4px 9px; border-radius: 999px; }
.season__cta { text-decoration: underline; text-underline-offset: 3px; }
.season:hover .season__cta { color: #fff; }
.kv__date { margin: 0 0 10px; color: var(--dim); }
.kv__label { display: inline-block; margin: 0 0 10px; padding: 4px 9px; font: 400 11px/1.3 var(--mono); color: var(--plum); background: var(--holo); border-radius: 2px; }
.kv__title { margin: 0 0 8px; font: 400 clamp(28px, 3vw, 46px)/1.08 var(--sans); letter-spacing: -.035em; }
.kv__en { margin: 0 0 14px; color: var(--dim); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font: 400 11px/1 var(--mono); letter-spacing: .04em; padding: 6px 10px; border: 1px solid rgba(255,255,255,.26); border-radius: 999px; color: #ddd; }
.more { font: 400 13px/1 var(--mono); letter-spacing: .05em; display: inline-flex; gap: 8px; padding: 10px 0; }
.more span { transition: transform .4s var(--ease); }
.more:hover span { transform: translateY(3px); }

/* РАБОТЫ — изогнутая карусель */
#works { padding-top: 120px; }
.work { position: relative; }
.work__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.work__glow { position: absolute; inset: 0; pointer-events: none; opacity: .5; }
.work__stage { position: absolute; inset: 0; perspective: 1600px; perspective-origin: 50% 36%; }
.work__ring { position: absolute; left: 50%; top: 36%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.wcard { position: absolute; left: 0; top: 0; width: var(--cw); aspect-ratio: 16/10; margin: calc(var(--cw) * -.3125) 0 0 calc(var(--cw) * -.5); backface-visibility: hidden; cursor: pointer; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; background: #111; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(200,170,255,.35); }
.wcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 1.1s var(--ease), transform 3.2s linear; }
.wcard img.on { opacity: 1; transform: scale(1); z-index: 1; }
.wcard img:not(.on) { transition: opacity 0s 1.1s, transform 3.2s linear; }
.wcard::after { z-index: 1; }
.wcard__st, .wcard__n { position: absolute; z-index: 2; top: 12px; padding: 5px 9px; border-radius: 999px; font-size: 11px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.wcard__st { left: 12px; background: var(--holo); color: var(--plum); }
.wcard__n { right: 12px; background: rgba(0,0,0,.65); color: #fff; }
.wcard.is-active { border-color: rgba(255,255,255,.5); }
.work__info { transition: opacity .35s var(--ease), transform .5s var(--ease); }
.work__info.swap { opacity: 0; transform: translateY(10px); }
.work__text { margin: 0 0 14px; max-width: 60ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.55; }
.wcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.14), transparent 38%, transparent 70%, rgba(255,255,255,.06)); pointer-events: none; }
.work__info { position: absolute; left: calc(var(--pad) + 40px); bottom: 40px; max-width: 680px; z-index: 3; }
.work__info .kv__title { font-size: clamp(30px, 3.4vw, 52px); }
.work__cur { position: absolute; top: 96px; left: calc(var(--pad) + 40px); color: var(--dim); z-index: 3; }
.work__cur b { color: #fff; font-weight: 400; }
.work__open { position: absolute; right: var(--pad); bottom: 40px; z-index: 3; }
.work__bar { position: absolute; left: calc(var(--pad) + 40px); right: var(--pad); bottom: 22px; height: 1px; background: var(--line); z-index: 3; }
.work__bar i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.work__nav { position: absolute; top: 88px; right: var(--pad); z-index: 4; display: flex; align-items: center; gap: 4px; }
.work__idx { display: flex; gap: 2px; }
.work__idx button { width: 30px; height: 30px; border-radius: 6px; font: 400 11px/1 var(--mono); color: var(--dim); transition: color .2s, background .2s; }
.work__idx button:hover { color: #fff; background: rgba(255,255,255,.08); }
.work__idx button[aria-current="true"] { color: var(--plum); background: var(--holo); }
.work__arrow { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); font-size: 14px; transition: background .2s, color .2s; }
.work__arrow:hover { background: #fff; color: #000; }
.cta-strip { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin: 48px var(--pad) 0; padding: 28px clamp(20px, 3vw, 40px); border: 1px solid var(--line); border-radius: 16px; background: rgba(0,0,0,.7); }
.cta-strip p { margin: 0; max-width: 42ch; font: 400 clamp(18px, 1.8vw, 26px)/1.3 var(--sans); letter-spacing: -.01em; }

/* ПОДХОД — светлая лаборатория */
.lab { position: relative; color: var(--plum); min-height: 170vh; background: var(--lab); }
html.gl-on .lab { background: transparent; }
.lab__inner { position: sticky; top: 0; height: 100vh; padding: 110px calc(var(--pad) + 40px) 40px; }
.lab__outline { position: absolute; left: calc(var(--pad) + 40px); top: 96px; margin: 0; font: 600 clamp(64px, 10vw, 168px)/.9 var(--sans); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px var(--plum); }
.lab__statement { position: absolute; left: calc(var(--pad) + 40px); top: 46%; transition: opacity .7s var(--ease), transform .9s var(--ease); }
.lab__statement--r { left: auto; right: calc(var(--pad) + 40px); text-align: right; }
.lab__statement h2 { margin: 0 0 18px; font: 500 clamp(24px, 2.6vw, 40px)/1.5 var(--sans); letter-spacing: -.01em; }
.lab__statement h2 span { background: var(--plum); color: #fff; padding: 2px 12px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lab__statement p { margin: 0; color: rgba(0,0,0,.6); font-size: 12px; }
.lab__statement.hide { opacity: 0; transform: translateY(24px); pointer-events: none; }
.lab__list { position: absolute; left: calc(var(--pad) + 40px); right: calc(var(--pad) + 40px); bottom: 40px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid rgba(29,20,36,.22); }
.lab__list li { padding-top: 14px; display: grid; gap: 6px; font-size: 14px; color: rgba(0,0,0,.66); }
.lab__list b { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--plum); }

/* КАТАЛОГ */
.catalog, .service, .contact { background: #000; }
.catalog { padding: 140px 0 120px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; padding: 0 calc(var(--pad) * 2); margin-bottom: 32px; }
.filters button { font: 400 13px/1 var(--mono); letter-spacing: .03em; color: var(--dim); padding: 8px 0; position: relative; transition: color .3s; }
.filters button sup { font-size: 10px; margin-left: 3px; }
.filters button:disabled { opacity: .3; cursor: default; }
.filters button:hover, .filters button[aria-pressed="true"] { color: #fff; }
.filters button[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: #fff; }
.filters .f-real { margin-left: auto; padding: 9px 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: #ddd; }
.filters .f-real::after { display: none; }
.filters .f-real[aria-pressed="true"] { background: var(--holo); color: var(--plum); border-color: transparent; }
.cgrid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 var(--pad); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.citem { position: relative; display: block; text-align: left; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px; transition: background .4s; }
.citem:hover { background: rgba(255,255,255,.04); }
.citem__meta { display: flex; justify-content: space-between; gap: 8px; color: var(--dim); margin-bottom: 12px; text-transform: uppercase; }
.citem__st.is-concept { color: #f3c98b; }
.citem__ph { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #e9e9e9; border-radius: 8px; }
.citem__ph::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 35%, rgba(255,200,230,.45) 45%, rgba(200,190,255,.45) 50%, rgba(190,235,255,.4) 55%, transparent 65%); mix-blend-mode: soft-light; transform: translateX(-60%); transition: transform 1.1s var(--ease); pointer-events: none; }
.citem:hover .citem__ph::after { transform: translateX(60%); }
.citem__ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3) brightness(.96); transition: filter .6s var(--ease), transform 1s var(--ease); }
.citem:hover .citem__ph img { filter: none; transform: scale(1.04); }
.citem__t { margin: 12px 0 2px; font: 500 15px/1.3 var(--sans); }
.citem__d { margin: 0; color: var(--dim); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.citem__ph, .citem__t, .citem__d { display: block; }
.citem.out, .citem.more-hidden { display: none; }
.cmore { display: flex; justify-content: center; margin-top: 36px; }
.cmore[hidden] { display: none; }
.citem { opacity: 0; transition: opacity .8s var(--ease), background .4s; }
.citem.in { opacity: 1; }

/* ПРОЦЕСС */
.service { padding: 120px 0; }
.steps { list-style: none; margin: 0 var(--pad); padding: 0; }
.steps li { display: grid; grid-template-columns: 120px 1fr 1.2fr; align-items: center; gap: 24px; padding: 28px var(--pad); border-bottom: 1px solid var(--line); }
.steps .mono { color: var(--dim); }
.steps h3 { margin: 0; font: 300 clamp(28px, 3.2vw, 48px)/1 var(--sans); letter-spacing: -.035em; }
.steps h3 small { display: block; margin-top: 8px; font: 400 11px/1 var(--mono); letter-spacing: .06em; color: var(--dim); }
.steps p { margin: 0; color: rgba(255,255,255,.7); max-width: 44ch; }

/* БРИФ */
.contact { padding: 120px 0 140px; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); align-items: start; }
.bform { min-width: 0; }
.contact__alt { position: sticky; top: 110px; display: grid; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; }
.contact__lbl { margin: 0 0 4px; color: var(--dim); text-transform: uppercase; }
.contact__big { font: 500 20px/1.3 var(--sans); padding: 4px 0; word-break: break-word; }
.contact__mid { font-size: 16px; padding: 4px 0; word-break: break-word; }
.contact__big:hover, .contact__mid:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact__meta { margin: 6px 0 0; color: var(--dim); display: grid; gap: 2px; }
.bform fieldset { border: 0; margin: 0 0 30px; padding: 0; }
.bform legend { color: rgba(255,255,255,.7); text-transform: uppercase; margin-bottom: 12px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { font: 400 13px/1 var(--mono); letter-spacing: .02em; padding: 11px 13px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: #ddd; transition: background .25s, color .25s, border-color .25s; }
.chips button:hover { border-color: #fff; color: #fff; }
.chips button[aria-pressed="true"] { background: var(--holo); color: var(--plum); border-color: transparent; }
.bform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: block; margin-bottom: 26px; }
.field label { display: block; color: rgba(255,255,255,.7); font: 400 13px/1.4 var(--mono); letter-spacing: .03em; margin-bottom: 6px; }
.field__opt { color: rgba(255,255,255,.58); margin-left: 6px; }
.field__err { display: block; margin-top: 8px; color: #ff8a8a; font: 400 14px/1.4 var(--sans); }
.field input, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.3); color: #fff; font: 400 20px/1.4 var(--sans); padding: 6px 0 10px; outline: none; resize: vertical; border-radius: 0; transition: border-color .3s; }
.field input:focus, .field textarea:focus { border-color: #fff; box-shadow: 0 1px 0 #fff; }
.field.err label { color: #ff8a8a; }
.field.err input { border-color: #ff6b6b; }
.bform__foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 10px; }
.field--check { margin-bottom: 18px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: rgba(255,255,255,.8); font: 400 14px/1.5 var(--sans); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: #e6d6ff; cursor: pointer; }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.field--check.err .check { color: #ff8a8a; }
.bform [type="submit"]:disabled { opacity: .45; cursor: not-allowed; }
.field__note { margin: 0; padding-left: 34px; color: var(--dim); font: 400 12px/1.5 var(--mono); letter-spacing: .02em; }
.field__note a { color: rgba(255,255,255,.8); text-decoration: underline; text-underline-offset: 3px; }
.bform__note { margin: 0; color: var(--dim); max-width: 34ch; }
.bform__ok { margin: 22px 0 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; color: #fff; font-size: 15px; line-height: 1.5; }
.bform__ok.is-warn { border-color: #f3c98b; }
.bform__ok a { text-decoration: underline; text-underline-offset: 3px; }

/* ФУТЕР */
.ftr { min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--pad) 20px; overflow: hidden; background: radial-gradient(34% 40% at 34% 48%, rgba(255,140,200,.2), transparent 70%), radial-gradient(36% 42% at 66% 46%, rgba(150,120,255,.22), transparent 70%), radial-gradient(40% 30% at 50% 62%, rgba(120,200,255,.14), transparent 70%), #000; }
.ftr__logo { flex: 1; display: flex; align-items: center; justify-content: center; gap: 2.4vw; font: 700 clamp(64px, 15vw, 260px)/1 var(--sans); letter-spacing: .01em; }
.ftr__logo > span { background: linear-gradient(100deg, #fff 10%, #ffd9ea 35%, #e2d4ff 55%, #d3ecff 75%, #fff 95%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: pearl 9s linear infinite; }
.ftr__mark { color: #f1e6ff; filter: drop-shadow(0 0 24px rgba(220,190,255,.45)); }
@keyframes pearl { to { background-position: -200% 0; } }
.ftr__mark { width: 1.2em; height: .92em; }
.ftr__bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 26px; }
.ftr__links { display: flex; gap: 42px; }
.ftr__links div { display: flex; flex-direction: column; gap: 8px; }
.ftr__links a:hover { color: #fff; text-decoration: underline; }
.ftr__dim { color: var(--dim); }
.ftr__right { display: flex; gap: 22px; align-items: center; color: var(--dim); }
.circ-link { display: inline-flex; align-items: center; gap: 10px; }
.circ-link:hover { color: #fff; }
.ftr__legal { display: grid; gap: 4px; padding: 16px 0 18px; border-top: 1px solid var(--line); color: var(--dim); }
.ftr__legal p { margin: 0; }
.ftr__legal a { text-decoration: underline; text-underline-offset: 3px; }
.ftr__legal a:hover { color: #fff; }
.ftr__copy { margin: 0; text-align: right; font: 600 clamp(16px, 1.6vw, 24px)/1 var(--sans); }

/* Лайтбокс */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.94); display: grid; grid-template-rows: auto 1fr auto; padding: 22px var(--pad); opacity: 0; transition: opacity .4s var(--ease); }
.lb.is-open { opacity: 1; }
.lb:not(.is-open) { pointer-events: none; }
.lb[hidden] { display: none; }
.lb__top { display: flex; justify-content: space-between; color: var(--dim); }
.lb__top, .lb__bot { position: relative; z-index: 1; } /* кнопки всегда над картинкой */
.lb__top button { font: inherit; letter-spacing: inherit; color: #fff; padding: 6px 0; }
.lb__tools { display: flex; gap: 20px; }
/* определённый размер трека → max-height:100% у картинки реально работает для любых пропорций */
.lb__fig { margin: 0; display: grid; place-items: center; grid-template: minmax(0, 1fr) / minmax(0, 1fr); min-height: 0; min-width: 0; padding: 20px 0; overflow: hidden; container-type: size; }
.lb__fig img { border-radius: 10px; width: auto; height: auto; min-width: 0; min-height: 0; max-height: 100%; max-width: 100%; object-fit: contain; opacity: 0; transform: scale(.98); transition: opacity .4s, transform .7s var(--ease), filter .35s; }
/* превью и полное изображение получают одинаковый бокс — без «прыжка» при подмене (где нет container queries — остаётся auto) */
.lb__fig img { width: min(100cqw, calc(100cqh * var(--ar, 1.5))); aspect-ratio: var(--ar); }
.lb__fig img.lo { filter: blur(6px); } /* превью, пока грузится полный размер */
.lb__fig img.on { opacity: 1; transform: none; }
.lb__bot { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.lb__t { margin: 0 0 4px; font: 500 22px/1.2 var(--sans); letter-spacing: -.02em; }
.lb__d { margin: 0; color: var(--dim); max-width: 70ch; }
.lb__nav { display: flex; gap: 8px; }
.lb__nav button { width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; transition: background .3s, color .3s; }
.lb__nav button:hover { background: #fff; color: #000; }

/* Быстрая связь на телефоне */
.mbar { display: none; }

/* Появление */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* Адаптив */
@media (max-width: 1100px) { .cgrid { grid-template-columns: repeat(3, 1fr); } .hdr__nav { gap: 26px; } }
@media (max-width: 860px) {
  .hdr { grid-template-columns: 1fr auto; padding: 16px var(--pad); }
  .hdr__nav, .hdr .pill { display: none; }
  .hdr__burger { display: block; }
  .rail { display: none; }
  .work__info, .work__cur, .work__bar { left: var(--pad); }
  .kv { height: auto; min-height: 100svh; padding: 100px var(--pad) 96px; }
  .kv__h1 { font-size: clamp(34px, 9.4vw, 56px); }
  .season { position: static; align-self: flex-start; max-width: 100%; margin: 0 0 16px; border-radius: 16px; padding: 8px 12px 9px 8px; }
  .work__info { right: var(--pad); bottom: 96px; }
  .work__text { -webkit-line-clamp: 3; font-size: 13px; }
  .work__nav { top: auto; bottom: 34px; right: var(--pad); }
  .work__idx { display: none; }
  .contact__grid { grid-template-columns: 1fr; gap: 32px; }
  .contact__alt { position: static; }
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 58; display: flex; gap: 8px; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(0,0,0,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .5s var(--ease); }
  .mbar.show { transform: none; }
  html.is-locked .mbar { transform: translateY(110%); }
  .mbar__main { flex: 1; display: grid; place-items: center; height: 46px; border-radius: 999px; background: var(--holo); color: var(--plum); font: 500 15px/1 var(--sans); }
  .mbar__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); font: 500 14px/1 var(--mono); }
  .ftr { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  .work__open { left: var(--pad); right: auto; bottom: 44px; }
  .work__cur { top: 80px; }
  .shead { grid-template-columns: 1fr auto; margin: 0 var(--pad) 28px; padding: 0 0 20px; }
  .shead > p:first-child { display: none; }
  .lab { min-height: auto; }
  .lab__inner { position: relative; height: auto; padding: 100px var(--pad) 60px; display: flex; flex-direction: column; gap: 48px; }
  .lab__outline { position: static; font-size: 17vw; }
  .lab__statement, .lab__statement--r { position: static; text-align: left; }
  .lab__statement.hide { opacity: 1; transform: none; }
  .lab__list { position: static; grid-template-columns: 1fr; }
  .cgrid { grid-template-columns: repeat(2, 1fr); }
  .filters { padding: 0 var(--pad); }
  .steps li { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .bform__row { grid-template-columns: 1fr; gap: 0; }
  .ftr__bar { flex-direction: column; align-items: flex-start; }
  .ftr__links { gap: 26px; flex-wrap: wrap; }
  .ftr__copy { text-align: left; }
}
@media (max-width: 520px) {
  .cgrid { grid-template-columns: repeat(2, 1fr); }
  .citem { padding: 10px; }
  .citem__meta { margin-bottom: 8px; font-size: 10.5px; }
  .citem__t { font-size: 14px; margin-top: 8px; }
  .citem__d { display: none; }
  .citem__ph img { filter: none; }
  .filters .f-real { margin-left: 0; }
}
@media (max-height: 560px) {
  .mnav { justify-content: flex-start; padding-top: 76px; gap: 0; }
  .mnav > a { font-size: 26px; padding: 5px 0; }
  .mnav__foot { flex-direction: row; gap: 16px; margin-top: 12px; }
  .lb { padding: 8px var(--pad); }
  .lb__fig { padding: 6px 0; }
  .lb__bot { padding-top: 6px; }
  .lb__bot > div:first-child { min-width: 0; }
  .lb__t { font-size: 15px; }
  .lb__d { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lb__nav button { width: 38px; height: 38px; }
}
@media (forced-colors: active) {
  #gl, #bg2d, .grid-bg, .kv::after { display: none; }
  .lab { background: Canvas; }
  .lab__outline { -webkit-text-stroke: 1px CanvasText; }
  .chips button[aria-pressed="true"], .filters button[aria-pressed="true"], .work__idx button[aria-current="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; border: 2px solid Highlight; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .rv, .citem { opacity: 1 !important; transform: none !important; }
}
@media (max-width: 400px) {
  .pill--lg { white-space: normal; height: auto; min-height: 56px; padding-block: 8px; line-height: 1.25; text-align: left; max-width: 100%; }
}
