/* Ян Китаев — итоговый сайт. Палитра снята с фона портрета: чернильный синий → сланец → лёд. */
:root {
  --bg: #040d18;
  --bg-2: #071526;
  --bg-3: #0d2036;
  --slate: #123050;
  --steel: #1a547a;
  --haze: #4e84b3;
  --ice: #93bfe6;
  --frost: #deebf7;
  --line: rgba(150, 195, 235, .13);
  --line-2: rgba(150, 195, 235, .26);
  --ink: #eef5fb;
  --ink-2: #b6c8da;
  --muted: #7f97ae;
  --c-events: #4cc9ff;
  --c-live: #c48cff;
  --c-brands: #ffbf5e;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-exit: cubic-bezier(.7, 0, .84, 0);
  --t-fast: 160ms;
  --t-mid: 320ms;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1360px;
  --r: 14px;
  --ruler-h: 64px;

  /* шрифтовая пара: Unbounded (заголовки) + Onest (текст) */
  --disp: "Unbounded", sans-serif;
  --disp-w: 700;
  --disp-case: uppercase;
  --body: "Onest", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #1a3350 var(--bg); scrollbar-width: thin; }
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); }
.aurora i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(90px); opacity: .5; will-change: transform; }
.aurora i:nth-child(1) { left: -20vmax; top: -25vmax; background: radial-gradient(closest-side, #0f3a63, transparent); animation: drift1 38s var(--ease-io) infinite alternate; }
.aurora i:nth-child(2) { right: -25vmax; top: 10vh; background: radial-gradient(closest-side, #1a547a, transparent); opacity: .38; animation: drift2 46s var(--ease-io) infinite alternate; }
.aurora i:nth-child(3) { left: 15vw; bottom: -35vmax; background: radial-gradient(closest-side, #23336e, transparent); opacity: .42; animation: drift3 52s var(--ease-io) infinite alternate; }
@keyframes drift1 { to { transform: translate(18vw, 22vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-22vw, 30vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(20vw, -26vh) scale(1.2); } }
body { background: transparent; color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; padding-bottom: var(--ruler-h); }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { overflow-wrap: break-word; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 1em; height: 1em; fill: currentColor; flex: none; }
.disp { font-family: var(--disp); font-weight: var(--disp-w); text-transform: var(--disp-case); line-height: .9; letter-spacing: -.005em; }
.disp { letter-spacing: -.035em; line-height: .95; }

::selection { background: var(--ice); color: #04101c; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 4px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1a3350; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--steel); }

.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-4%)} 60%{transform:translate(-4%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

.stub { position: absolute; z-index: 5; font: 600 11px/1.2 var(--body); letter-spacing: .05em; text-transform: uppercase; color: #fff;
  background: rgba(8,11,16,.66); border: 1px dashed rgba(220,230,240,.35); padding: 5px 8px; border-radius: 4px; pointer-events: none; }

/* ===== раскрытие и «вылет» при прокрутке (видно по умолчанию, прячем только при html.motion) ===== */
html.motion [data-reveal] { transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), filter .9s var(--ease-out); transition-delay: var(--d, 0ms); }
html.motion [data-reveal]:not(.in) { opacity: 0; }
html.motion [data-reveal="rise"]:not(.in) { transform: translateY(48px); }
html.motion [data-reveal="blur"]:not(.in) { filter: blur(14px); transform: scale(1.04); }
html.motion [data-reveal].out { opacity: 0; transform: translateY(-28px); transition-duration: .45s; transition-timing-function: var(--ease-exit); transition-delay: 0ms; }
.split-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-w > span { display: inline-block; }
html.motion [data-split] .split-w > span { transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 55ms + var(--d, 0ms)); }
html.motion [data-split]:not(.in) .split-w > span { transform: translateY(105%) rotate(4deg); }
html.motion [data-split].out .split-w > span { transform: translateY(-105%); transition-duration: .4s; transition-timing-function: var(--ease-exit); transition-delay: 0ms; }

/* ===== кнопки ===== */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 26px; border-radius: 99px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  transition: background var(--t-mid) var(--ease-io), color var(--t-mid) var(--ease-io), border-color var(--t-mid), box-shadow var(--t-mid); }
.btn .ico { width: 14px; height: 14px; }
.btn-main { background: var(--frost); color: #0a0f15; box-shadow: 0 14px 30px -14px rgba(0,0,0,.9); }
.btn-main:hover { background: #fff; }
.btn-line { border: 1px solid var(--line-2); color: var(--ink); background: rgba(8,11,16,.35); backdrop-filter: blur(6px); }
.btn-line:hover { border-color: var(--frost); }

/* ===== шапка ===== */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .4s var(--ease-io), transform .5s var(--ease-out); }
.hdr.solid { background: rgba(8,11,16,.8); backdrop-filter: blur(14px); }
.hdr.hide { transform: translateY(-100%); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { font: 800 22px/1 var(--disp); text-transform: uppercase; letter-spacing: .06em; display: flex; gap: 8px; align-items: baseline; }
.brand { font-size: 17px; letter-spacing: 0; }
.brand i { font-style: normal; color: var(--ice); }
.brand span { font: 500 11px/1 var(--body); letter-spacing: .16em; color: var(--muted); }
.nav { display: flex; gap: 30px; font-size: 14px; color: var(--ink-2); }
.nav a { position: relative; padding: 6px 0; transition: color var(--t-fast); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ice); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.hdr .btn { height: 42px; padding: 0 20px; font-size: 12px; }

/* ===== 1. первый экран: постер ===== */
.hero { position: relative; min-height: max(calc(100svh - var(--ruler-h)), 740px); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 110px 0 28px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(26% 46% at 72% 72%, rgba(104,146,186,.8) 0%, rgba(78,132,179,.5) 32%, rgba(26,84,122,.24) 62%, rgba(4,13,24,0) 88%),
  radial-gradient(40% 62% at 72% 60%, rgba(17,88,132,.5) 0%, rgba(4,20,36,0) 72%),
  linear-gradient(160deg, rgba(1,3,10,.92) 0%, rgba(3,18,34,.7) 50%, rgba(4,13,24,0) 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 22%; z-index: 2; background: linear-gradient(0deg, var(--bg), rgba(4,13,24,0)); pointer-events: none; }
.giant-wrap { position: absolute; inset: 96px 0 auto; display: flex; justify-content: center; pointer-events: none; z-index: 1; }
.giant-clip { overflow: hidden; padding-top: .04em; }
.giant { font-family: var(--disp); font-weight: 400; font-synthesis: none; text-transform: uppercase; line-height: .8; letter-spacing: -.01em; white-space: nowrap; display: flex;
  font-family: "Dela Gothic One", var(--disp); letter-spacing: -.02em; line-height: .9; color: #1b4a78; font-size: var(--giant-size, 21vw);
  -webkit-mask-image: linear-gradient(180deg, #000 25%, rgba(0,0,0,.5) 68%, rgba(0,0,0,.05) 100%); mask-image: linear-gradient(180deg, #000 25%, rgba(0,0,0,.5) 68%, rgba(0,0,0,.05) 100%); }
.giant span { display: inline-block; }
html.motion .giant span { transform: translateY(110%); transition: transform 1.4s var(--ease-out); transition-delay: calc(var(--i) * 60ms + 150ms); }
html.motion .giant.go span { transform: none; }

.portrait { position: absolute; right: 14vw; bottom: 0; z-index: 2; width: min(28vw, 440px); pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 66%, transparent 97%), linear-gradient(90deg, transparent 0, #000 9%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 66%, transparent 97%), linear-gradient(90deg, transparent 0, #000 9%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.portrait img { width: 100%; height: auto; }
html.motion .portrait picture { display: block; opacity: 0; transform: translateY(50px); transition: opacity 1.4s var(--ease-out) .55s, transform 1.6s var(--ease-out) .55s; }
html.motion .hero.go .portrait picture { opacity: 1; transform: none; }

.hero-grid { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 520px) 1fr; align-items: end; gap: 32px; }
.hello { font: 400 clamp(30px, 3.2vw, 48px)/1 "Marck Script", cursive; color: var(--ice); margin-bottom: 6px; }
.name { font-size: clamp(72px, 9vw, 150px); color: #fff; filter: drop-shadow(0 10px 30px rgba(0,0,0,.55)); }
.name { font-size: clamp(54px, 6.4vw, 108px); }
.role { margin: 14px 0 18px; font: 700 clamp(17px, 1.6vw, 24px)/1.1 var(--disp); letter-spacing: .14em; color: var(--ice); text-transform: uppercase; }
.role { font-size: 15px; letter-spacing: .06em; }
.lead { max-width: 34ch; color: var(--ink-2); font-size: 18px; line-height: 1.5; margin-bottom: 28px; }
.lead b { color: var(--ink); font-weight: 500; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.side { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 36px; width: 100%; max-width: 290px; }
.badge { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border: 1px solid var(--line-2); border-radius: 99px; background: rgba(8,11,16,.5); backdrop-filter: blur(8px); font-size: 12px; line-height: 1.3; color: var(--ink-2); }
.badge .ico { width: 34px; height: 34px; padding: 9px; border-radius: 50%; border: 1px solid rgba(169,192,214,.45); color: var(--ice); }
.facts { width: 100%; list-style: none; }
.facts li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts li:last-child { border-bottom: 0; }
.facts b { font: 800 44px/1 var(--disp); color: var(--ice); text-transform: uppercase; }
.facts b { font-size: 28px; }
.facts span { font-size: 11px; line-height: 1.35; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.geo { position: relative; z-index: 3; margin-top: 48px; display: flex; align-items: center; gap: 24px; }
.geo span { font: 900 clamp(22px, 2.4vw, 34px)/1 var(--body); text-transform: uppercase; letter-spacing: .02em; color: #fff; white-space: nowrap; }
.geo i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), rgba(150,195,235,0)); transform-origin: left; }
html.motion .geo i { transform: scaleX(0); transition: transform 1.6s var(--ease-out) 1.6s; }
html.motion .hero.go .geo i { transform: none; }
.hero-bar { position: relative; z-index: 3; margin-top: 44px; display: flex; align-items: center; gap: 24px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.hero-bar strong { font: 800 clamp(22px, 2.4vw, 34px)/1 var(--disp); letter-spacing: .02em; color: var(--ink); }
.hero-bar strong { font-size: 18px; }
.hero-bar hr { flex: 1; border: 0; height: 1px; background: var(--line-2); transform-origin: left; }
html.motion .hero-bar hr { transform: scaleX(0); transition: transform 1.6s var(--ease-out) 1.1s; }
html.motion .hero.go .hero-bar hr { transform: none; }
.hero-bar a { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.hero-bar a .ico { width: 22px; height: 22px; transition: transform .5s var(--ease-out); }
.hero-bar a:hover .ico { transform: translateX(6px); }

/* ===== 2. логотипы ===== */
.clients { border-block: 1px solid var(--line); background: rgba(7,21,38,.55); padding: 34px 0; overflow: hidden; --logo-h: 48px; }
.logo-track { display: flex; align-items: center; width: max-content; will-change: transform; }
.logo-item { flex: none; display: flex; align-items: center; justify-content: center; padding: 0 clamp(28px, 4vw, 64px); }
.logo-item img { height: var(--logo-h); width: auto; opacity: .78; transition: opacity var(--t-mid) var(--ease-io), transform var(--t-mid) var(--ease-out); }
.logo-item:hover img { opacity: 1; transform: scale(1.06); }
.logo-item img.tall { height: calc(var(--logo-h) * 1.45); }

/* ===== секции ===== */
.sec { padding: clamp(72px, 8vw, 120px) 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(56px, 8vw, 128px); }
.sec-head h2 { font-size: clamp(38px, 5.6vw, 90px); }
.sec-head p { max-width: 38ch; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button { height: 40px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); transition: background var(--t-mid) var(--ease-io), color var(--t-mid), border-color var(--t-mid); }
.filters button:hover { border-color: var(--line-2); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--frost); border-color: var(--frost); color: #04101c; }
.filters [data-filter="events"][aria-pressed="true"] { background: var(--c-events); border-color: var(--c-events); }
.filters [data-filter="live"][aria-pressed="true"] { background: var(--c-live); border-color: var(--c-live); }
.filters [data-filter="brands"][aria-pressed="true"] { background: var(--c-brands); border-color: var(--c-brands); }

/* ===== 3. работы: сетка «Постера» + подписи «Монтажки» ===== */
.poster { position: relative; overflow: hidden; background: linear-gradient(135deg, #1a2330, #10161e 60%, #18212c); isolation: isolate; border-radius: var(--r); }
.poster img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); filter: saturate(.85) brightness(.88); transition: transform 1.2s var(--ease-out), filter .6s var(--ease-io); }
.poster.drop-over { outline: 2px dashed var(--ice); outline-offset: -8px; }
.poster .drop-hint { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(43,55,69,.75); color: #fff; font-weight: 600; opacity: 0; transition: opacity var(--t-fast); z-index: 6; pointer-events: none; }
.poster.drop-over .drop-hint { opacity: 1; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: 40px 22px; }
.work { grid-column: span 4; display: flex; flex-direction: column; cursor: pointer; }
.work.big { grid-column: span 8; grid-row: span 2; }
.work .poster { aspect-ratio: 16 / 10; }
.work.big .poster { aspect-ratio: auto; flex: 1; min-height: 320px; }
.work:hover .poster img { transform: scale(1.07); filter: saturate(1.05) brightness(1); }
.play { position: absolute; right: 16px; bottom: 16px; z-index: 3; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(8,11,16,.45); backdrop-filter: blur(8px); color: #fff;
  transition: background var(--t-mid), color var(--t-mid), transform .6s var(--ease-out), opacity var(--t-mid); }
.play .ico { width: 16px; height: 16px; margin-left: 2px; }
.work:hover .play, .reel:hover .play { background: var(--frost); color: #0a0f15; transform: scale(1.1); }
.work .poster .stub { left: 14px; top: 14px; }
.meta { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font: 500 12px/1 "JetBrains Mono", monospace; letter-spacing: .04em; color: var(--muted); font-variant-numeric: tabular-nums; }
.meta .c { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; border-radius: 99px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 38%, transparent); }
.meta .c::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.work h3 { font: 800 clamp(24px, 2vw, 32px)/1.05 var(--body); letter-spacing: -.025em; margin-top: 10px; transition: color var(--t-mid); }
.work.big h3 { font-size: clamp(30px, 3vw, 46px); }
.work:hover h3 { color: var(--ice); }
.work p { color: var(--ink-2); font-size: 15px; margin-top: 6px; max-width: 52ch; }

/* ===== 4. Reels: тихая подсказка прокрутки — тени по краям, тонкий ползунок, стрелки ===== */
.reels-head-r { display: flex; align-items: center; gap: 18px; }
.arrows { display: flex; gap: 8px; }
.arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink); transition: background var(--t-mid), color var(--t-mid), opacity var(--t-mid), border-color var(--t-mid); }
.arrows button .ico { width: 16px; height: 16px; }
.arrows button:hover:not(:disabled) { background: var(--frost); color: #0a0f15; border-color: var(--frost); }
.arrows button:disabled { opacity: .3; cursor: default; }
.arrows .prev .ico { transform: rotate(180deg); }
.reels-viewport { position: relative; margin: 0 calc(var(--gutter) * -1); }
.reels { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 6px; scroll-padding: 0 var(--gutter); scrollbar-width: none; cursor: grab;
  --fl: 0px; --fr: 64px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%); transition: --fl .3s, --fr .3s; }
.reels::-webkit-scrollbar { display: none; }
.reels.dragging { cursor: grabbing; scroll-snap-type: none; }
.reel { flex: 0 0 clamp(210px, 21vw, 280px); scroll-snap-align: start; position: relative; cursor: pointer; }
.reel .poster { aspect-ratio: 9 / 16; border-radius: 18px; }
.reel .poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,11,16,.85), rgba(8,11,16,0) 50%); pointer-events: none; }
.reel:hover .poster img { transform: scale(1.06); }
.reel .cap { position: absolute; inset: auto 16px 16px; z-index: 3; pointer-events: none; }
.reel h3 { font: 800 22px/1.05 var(--body); letter-spacing: -.02em; }
.reel p { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.reel .play { top: 14px; right: 14px; bottom: auto; width: 42px; height: 42px; }
.rail { position: relative; height: 2px; margin-top: 26px; background: var(--line); border-radius: 2px; cursor: pointer; }
.rail::before { content: ""; position: absolute; inset: -10px 0; } /* увеличенная зона нажатия */
.thumb { position: absolute; top: 0; left: 0; height: 100%; width: var(--tw, 30%); background: var(--ice); border-radius: 2px; transform: translateX(var(--tx, 0px)) scaleY(var(--ty, 1)); transition: transform .2s var(--ease-out); }
.rail:hover .thumb, .rail.drag .thumb { --ty: 2; }

/* ===== 5. форматы и стоимость: карточки «Монтажки» ===== */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.svc { position: relative; display: flex; flex-direction: column; padding: 30px 28px 24px; border-radius: 22px;
  background: var(--bg-2); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -34px rgba(0,0,0,.9);
  transition: transform .7s var(--ease-out), border-color var(--t-mid), box-shadow .7s var(--ease-out); }
.svc:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 34px 60px -30px rgba(0,0,0,.9); }
.svc h3 { font: 800 clamp(24px, 2vw, 30px)/1.05 var(--body); letter-spacing: -.03em; margin-bottom: 14px; text-transform: uppercase; }
.svc small { display: block; margin-bottom: 22px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.price { font: 900 clamp(36px, 3.2vw, 50px)/1 var(--body); letter-spacing: -.04em; margin-bottom: 22px; display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.price span { font: 400 14px/1 var(--body); letter-spacing: 0; color: var(--muted); }
.more { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 48px; padding: 0 6px 0 18px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; transition: background var(--t-mid), color var(--t-mid), border-color var(--t-mid); }
.more i { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--bg-3); transition: transform .6s var(--ease-out), background var(--t-mid); }
.more i::before, .more i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; transition: transform .6s var(--ease-out); }
.more i::after { transform: rotate(90deg); }
.more:hover { border-color: var(--frost); }
.svc.open .more { background: var(--frost); color: #04101c; border-color: var(--frost); }
.svc.open .more i { background: #04101c; color: var(--frost); transform: rotate(180deg); }
.svc.open .more i::after { transform: rotate(0deg); }
.svc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease-out); }
.svc.open .svc-body { grid-template-rows: 1fr; }
.svc-in { overflow: hidden; min-height: 0; }
.svc ul { list-style: none; display: grid; gap: 12px; margin: 24px 0 24px; color: var(--ink-2); font-size: 15px; }
html.motion .svc li { opacity: 0; transform: translateY(14px); filter: blur(4px); transition: opacity .5s var(--ease-out), transform .7s var(--ease-out), filter .5s var(--ease-out); transition-delay: 0ms; }
html.motion .svc.open li { opacity: 1; transform: none; filter: none; transition-delay: calc(120ms + var(--k) * 70ms); }
html.motion .svc-in .btn { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
html.motion .svc.open .svc-in .btn { opacity: 1; transform: none; transition-delay: 420ms; }
.svc li { display: flex; gap: 12px; align-items: flex-start; }
.svc li .ico { width: 18px; height: 18px; color: var(--ice); margin-top: 2px; }
.svc .btn { justify-content: center; width: 100%; }
.svc.feat { background: var(--bg-3); border-color: rgba(150,195,235,.42); }
.svc.feat:hover { border-color: var(--ice); }
.svc.feat small { color: var(--ice); }
.svc .tag { position: absolute; top: -13px; right: 22px; z-index: 2; background: var(--frost); color: #04101c; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: 99px; }

/* ===== 6. связь: блок «Постера» ===== */
.contact { position: relative; background: rgba(7,21,38,.5); border-top: 1px solid var(--line); overflow: hidden; text-align: center; }
.contact::before { content: ""; position: absolute; left: 50%; bottom: -40%; width: 120vw; height: 80%; translate: -50% 0; background: radial-gradient(closest-side, rgba(75,94,115,.35), transparent); pointer-events: none; }
.contact h2 { font-size: clamp(64px, 12vw, 200px); line-height: .85; margin-bottom: 26px; }
.contact h2 { font-size: clamp(44px, 8vw, 140px); }
.contact h2 em { font-style: normal; color: var(--ice); }
.contact .intro { max-width: 52ch; margin: 0 auto 44px; color: var(--ink-2); font-size: 18px; }
.cts { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; text-align: left; }
.ct { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; gap: 16px; padding: 22px 20px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); transition: border-color var(--t-mid); }
.ct::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--frost); clip-path: inset(100% 0 0 0); transition: clip-path .6s var(--ease-out); }
.ct:hover { border-color: var(--frost); }
.ct:hover::before { clip-path: inset(0 0 0 0); }
.ct-ico { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-3); color: var(--ink); transition: background var(--t-mid), color var(--t-mid), transform .6s var(--ease-out); }
.ct-ico .ico { width: 22px; height: 22px; }
.ct:hover .ct-ico { background: #0a0f15; color: var(--frost); transform: rotate(-8deg) scale(1.06); }
.ct-txt { display: grid; min-width: 0; }
.ct-txt b { font: 800 28px/1.05 var(--disp); text-transform: uppercase; transition: color var(--t-mid); }
.ct-txt b { font-size: 18px; }
.ct-txt em { font-style: normal; font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color var(--t-mid); }
.ct-txt small { margin-top: 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: color var(--t-mid); }
.ct:hover .ct-txt b, .ct:hover .ct-txt em, .ct:hover .ct-txt small, .ct:hover .ct-go { color: #0a0f15; }
.ct-go { margin-left: auto; align-self: flex-start; transition: transform .5s var(--ease-out), color var(--t-mid); }
.ct-go .ico { width: 18px; height: 18px; }
.ct:hover .ct-go { transform: translate(3px, -3px); }
.ct[data-stub] em::after { content: " · заглушка"; color: var(--ice); }
.contact { padding-bottom: 28px; }
.foot { position: relative; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted); }

/* ===== монтажная линейка-навигация (из «Монтажки») ===== */
.ruler { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: var(--ruler-h); background: rgba(8,11,16,.9); backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: grid; grid-template-columns: 150px 1fr; align-items: center; }
.ruler .tc { padding-left: var(--gutter); font: 500 15px/1 "JetBrains Mono", monospace; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--ink); }
.ruler .cur { display: none; }
.scale { position: relative; height: 100%; margin-right: var(--gutter); background: repeating-linear-gradient(90deg, rgba(220,230,240,.16) 0 1px, transparent 1px 10px) left bottom / 100% 10px no-repeat; }
.mk { position: absolute; top: 12px; transform: translateX(-1px); font-size: 13px; color: var(--ink-2); padding-left: 8px; border-left: 2px solid var(--c); line-height: 1.1; transition: color var(--t-fast); white-space: nowrap; }
.mk:hover, .mk.on { color: #fff; }
.ph { position: absolute; top: 0; bottom: 0; width: 2px; left: 0; background: var(--frost); box-shadow: 0 0 0 1px rgba(8,11,16,.6); }
.ph::before { content: ""; position: absolute; top: 0; left: -5px; border: 6px solid transparent; border-top-color: var(--frost); }

/* ===== видео-окно и примерка превью ===== */
.vmodal { position: fixed; inset: 0; z-index: 100; display: none; }
.vmodal.open { display: block; }
.vmodal-bg { position: absolute; inset: 0; background: rgba(5,8,12,.92); backdrop-filter: blur(10px); opacity: 0; transition: opacity .5s var(--ease-out); }
.vmodal.show .vmodal-bg { opacity: 1; }
.vmodal-frame { position: absolute; background: #000; overflow: hidden; border-radius: 12px; }
.vmodal-frame iframe { width: 100%; height: 100%; border: 0; }
.vmodal-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--ink-2); background: center/cover no-repeat; }
.vmodal-empty::before { content: ""; position: absolute; inset: 0; background: rgba(5,8,12,.72); }
.vmodal-empty div { position: relative; }
.vmodal-empty b { display: block; color: #fff; font-size: clamp(20px, 3vw, 34px); margin-bottom: 8px; line-height: 1.1; }
.vmodal-close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; background: var(--frost); color: #0a0f15; display: grid; place-items: center; z-index: 2; opacity: 0; transform: scale(.6) rotate(-90deg); transition: opacity .3s, transform .5s var(--ease-out); }
.vmodal.show .vmodal-close { opacity: 1; transform: none; }
.vmodal-close .ico { width: 18px; height: 18px; }
.toast { position: fixed; right: 16px; bottom: calc(var(--ruler-h) + 16px); z-index: 96; max-width: 320px; background: var(--bg-3); border: 1px solid var(--line-2); color: var(--ink); padding: 12px 14px; border-radius: 10px; font-size: 13px; transform: translateY(20px); opacity: 0; transition: transform .5s var(--ease-out), opacity .3s; pointer-events: none; }
.toast.on { transform: none; opacity: 1; }

/* ===== адаптив ===== */
@media (max-width: 1100px) {
  .nav { display: none; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid > .spacer { display: none; }
  .svc-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .cts { grid-template-columns: 1fr 1fr; }
  .work, .work.big { grid-column: span 6; grid-row: auto; }
  .work.big .poster { aspect-ratio: 16 / 10; flex: none; min-height: 0; }
}
@media (max-width: 720px) {
  :root { --ruler-h: 52px; }
  .hdr .wrap { height: 64px; }
  .brand span { display: none; }
  .hero { padding-top: 76px; min-height: auto; }
  .giant-wrap { position: relative; inset: auto; }
  .portrait { position: relative; right: auto; width: 88%; margin: -8vw auto 0; }
  .geo span { white-space: normal; font-size: 22px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; margin-top: -30vw; }
  .hero-grid > div:first-child { background: rgba(8,11,16,.72); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px; }
  .name { font-size: clamp(40px, 13vw, 60px); }
  .side { max-width: none; align-items: stretch; }
  .badge { display: none; }
  .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .facts li, .facts li:last-child { grid-template-columns: 1fr; gap: 6px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
  .facts b { font-size: 30px; }
  .facts span { font-size: 10px; letter-spacing: .06em; }
  .hero-bar { font-size: 11px; gap: 14px; }
  .grid { grid-template-columns: 1fr; }
  .work, .work.big { grid-column: auto; }
  .cts { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; }
  .arrows { display: none; }
  .ruler { grid-template-columns: auto auto 1fr; gap: 12px; }
  .mk { display: none; }
  .ruler .cur { display: block; font-size: 13px; color: #fff; }
  .scale { margin-left: 4px; }
  .hdr .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
