@charset "utf-8";
/* Макет: чистый монохром как у референса (#0A0A0A / #F2F2F2), 12 колонок, огромная переменная типографика; цветного акцента нет */
:root {
  --bg: #0A0A0A; --bg-2: #121212; --bg-3: #1C1C1C;
  --ink: #F2F2F2; --ink-2: #A0A0A0; --ink-3: #666666;
  --line: rgba(242,242,242,.10); --line-2: rgba(242,242,242,.24);
  --acc: #F2F2F2; --acc-rgb: 242,242,242; --acc-ink: #0A0A0A;
  --display: 'Jost', 'Futura', system-ui, sans-serif;
  --body: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Jost', system-ui, sans-serif;
  --gl: max(16px, env(safe-area-inset-left, 0px), 4vw);
  --gr: max(16px, env(safe-area-inset-right, 0px), 4vw);
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F2F2F2; --bg-2: #E9E9E9; --bg-3: #DEDEDE;
    --ink: #0A0A0A; --ink-2: #4D4D4D; --ink-3: #8C8C8C;
    --line: rgba(10,10,10,.10); --line-2: rgba(10,10,10,.24);
    --acc: #0A0A0A; --acc-rgb: 10,10,10; --acc-ink: #F2F2F2;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F2F2F2; --bg-2: #E9E9E9; --bg-3: #DEDEDE;
  --ink: #0A0A0A; --ink-2: #4D4D4D; --ink-3: #8C8C8C;
  --line: rgba(10,10,10,.10); --line-2: rgba(10,10,10,.24);
  --acc: #0A0A0A; --acc-rgb: 10,10,10; --acc-ink: #F2F2F2;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.loading, body.reeling, html.sm-lock body { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, canvas { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 300; line-height: 1.05; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); line-height: 1.5; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* ---------- глитч: RGB-раскол и дрожь ---------- */
@keyframes gx { 0%{transform:translateX(-5px)} 20%{transform:translateX(4px) skewX(-2deg)} 40%{transform:translateX(-3px)} 60%{transform:translateX(2px)} 80%{transform:translateX(-1px)} 100%{transform:none} }
@keyframes gs { 0%{text-shadow:3px 0 rgba(255,50,90,.85),-3px 0 rgba(0,210,255,.85)} 35%{text-shadow:-4px 0 rgba(255,50,90,.8),4px 0 rgba(0,210,255,.8)} 70%{text-shadow:2px 0 rgba(255,50,90,.5),-2px 0 rgba(0,210,255,.5)} 100%{text-shadow:none} }
@keyframes gf { 0%{filter:drop-shadow(3px 0 rgba(255,50,90,.85)) drop-shadow(-3px 0 rgba(0,210,255,.85))} 50%{filter:drop-shadow(-4px 0 rgba(255,50,90,.8)) drop-shadow(4px 0 rgba(0,210,255,.8))} 100%{filter:none} }
html.hglitch .hero-in, html.hglitch .nav { animation: gx .28s steps(1); }
html.hglitch .hero-in :is(h1, p, span, a), html.hglitch .nav * { animation: gs .28s steps(1); }

/* ---------- курсор ---------- */
.cur {
  position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none;
  width: 10px; height: 10px; border-radius: 50%; background: #fff; mix-blend-mode: difference;
  display: grid; place-items: center; text-align: center;
  font: 700 10px/1.15 var(--mono); letter-spacing: .08em; color: #000;
  transition: width .35s var(--ease), height .35s var(--ease);
}
.cur.big { width: 92px; height: 92px; mix-blend-mode: normal; background: var(--acc); color: var(--acc-ink); }
@media (hover: hover) and (pointer: fine) { body, a, button { cursor: none; } input, select, textarea { cursor: text; } }

/* ---------- прелоадер ---------- */
.pre {
  position: fixed; inset: 0; z-index: 110; background: var(--bg); color: var(--ink);
  display: grid; grid-template-rows: auto 1fr auto;
  padding: calc(24px + env(safe-area-inset-top, 0px)) var(--gr) calc(24px + env(safe-area-inset-bottom, 0px)) var(--gl);
  transition: clip-path .9s cubic-bezier(.76,0,.24,1);
  clip-path: inset(0 0 0 0);
}
.pre.off { clip-path: inset(0 0 100% 0); }
.pre-top { display: flex; justify-content: space-between; }
.pre-n { align-self: end; font: 300 clamp(96px, 26vw, 360px)/.8 var(--display); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.pre-bot { display: grid; gap: 12px; padding-top: 20px; }
.pre-l { display: block; height: 1px; background: var(--line-2); }
.pre-l b { display: block; height: 100%; width: 0; background: var(--acc); }
html.no-pre .pre { display: none; }

/* ---------- интро-ролик ---------- */

/* ---------- шапка ---------- */
.navfx { position: fixed; z-index: 49; inset: 0 0 auto; height: calc(96px + env(safe-area-inset-top, 0px)); pointer-events: none; }
.navfx i, .navfx::after { position: absolute; inset: 0; }
.navfx i:nth-child(1) { backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); mask-image: linear-gradient(#000 55%, transparent); -webkit-mask-image: linear-gradient(#000 55%, transparent); }
.navfx i:nth-child(2) { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); mask-image: linear-gradient(#000 30%, transparent 70%); -webkit-mask-image: linear-gradient(#000 30%, transparent 70%); }
.navfx i:nth-child(3) { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); mask-image: linear-gradient(#000 10%, transparent 45%); -webkit-mask-image: linear-gradient(#000 10%, transparent 45%); }
.navfx::after { content: ""; background: linear-gradient(var(--bg), color-mix(in srgb, var(--bg) 70%, transparent) 35%, transparent); }
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: calc(64px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) var(--gr) 0 var(--gl);
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo .mk { height: 24px; width: auto; fill: currentColor; flex: none; }
.logo .wm { font: 700 11px/1 var(--body); letter-spacing: .32em; text-transform: uppercase; }
.nav .logo .mk { height: 30px; }
.links { display: flex; gap: 28px; font-size: 14px; }
.links a { position: relative; color: var(--ink-2); transition: color .25s; }
.links a:hover { color: var(--ink); }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-r { display: flex; align-items: center; gap: 14px; }
.nav-cta { font-size: 14px; padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 999px; transition: background .25s, color .25s, border-color .25s; }
.nav-cta:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sw { width: 44px; height: 24px; border-radius: 999px; border: 1px solid var(--line-2); position: relative; }
.sw i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); transition: transform .4s var(--ease); }
:root[data-theme="light"] .sw i { transform: translateX(20px); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .sw i { transform: translateX(20px); } }
@media (max-width: 860px) { .links { display: none; } }
@media (max-width: 420px) { .nav-cta { display: none; } }

/* ---------- кнопка ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; align-self: start;
  padding: 16px 26px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font: 700 15px/1 var(--body); transition: transform .3s var(--ease), background .3s;
}
.btn:hover { background: var(--acc); color: var(--acc-ink); }
.btn:active { transform: scale(.97); }
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(4px); }

/* ---------- 1 · первый экран ---------- */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; overflow: hidden; }
.ink { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hgrid { position: absolute; inset: 0 var(--gr) 0 var(--gl); display: grid; grid-template-columns: repeat(12, 1fr); pointer-events: none;
  mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.hgrid i { border-left: 1px solid var(--line); opacity: .5; }
.hgrid i:last-child { border-right: 1px solid var(--line); }
.hero-in { position: relative; width: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: 28px;
  padding: calc(100px + env(safe-area-inset-top, 0px)) var(--gr) 40px var(--gl); }
.spec { display: flex; justify-content: space-between; gap: 16px; text-shadow: 0 0 6px var(--bg); }
.spec .r { text-align: right; }
.namebox { position: relative; align-self: center; padding: 0; width: fit-content; max-width: 100%; }
.hname { font-family: var(--display); font-weight: 300; line-height: .86; letter-spacing: -.045em; font-size: 160px; display: grid; }
.hl { display: block; white-space: nowrap; }
.ch { display: inline-block; font-variation-settings: "wght" var(--w, 100); font-weight: var(--w, 100); transition: font-variation-settings .45s var(--ease), font-weight .45s var(--ease); }
.ch.plus { color: var(--acc); }
/* знак вместо текста «А+»: в заголовке по высоте прописной, в тексте по высоте строчных с запасом */
.hmk { display: inline-block; }
.hmk svg { display: block; height: .74em; width: auto; fill: currentColor; margin: .1em 0 .04em; }
.imk { display: inline-block; height: .8em; width: auto; fill: currentColor; vertical-align: -.02em; }
.mono .imk { height: 1.15em; vertical-align: -.2em; }
.hero-bot { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 24px 40px; align-items: end; }
.tag { display: grid; gap: 14px; }
/* слоган: три строки, вес растёт к последней */
.slog { margin: 0; display: grid; font: 300 clamp(20px, 2.05vw, 30px)/1.12 var(--display); letter-spacing: -.035em; }
.slog span:nth-child(2) { font-weight: 700; }
.slog span:nth-child(3) { font-weight: 700; }
.tag .sub { margin: 0; font-size: clamp(14px, 1.1vw, 16px); line-height: 1.45; color: var(--ink-2); max-width: 42ch; text-wrap: pretty; }
.hmeta { display: grid; gap: 8px; text-shadow: 0 0 6px var(--bg); }
.hmeta i { display: inline-block; width: 18px; height: 1px; background: var(--line-2); vertical-align: middle; margin-right: 10px; }
@media (max-width: 860px) { .hero-bot { grid-template-columns: 1fr; } .spec .r { display: none; } }
/* появление героя (без прелоадера и ролика) */
.hero-in > * { transition: opacity .8s var(--ease), transform .8s var(--ease); }
body.loading .hero-in > :not(.aih) { opacity: 0; transform: translateY(16px); }
html.intro .hero-in > :not(.aih) { opacity: 0; transform: none; }
body.loading .aih { opacity: 0; }
html.intro .nav { opacity: 0; pointer-events: none; }
.nav { transition: opacity .6s var(--ease); }

/* ---------- 2 · бегущие строки ---------- */
.mqs { --mqbg: #000; background: var(--mqbg); border-block: 1px solid #1f1f1f; padding-block: 26px; overflow: hidden; display: grid; gap: 30px; }
.mq { overflow: hidden; }
.mq-t { display: flex; align-items: center; width: max-content; will-change: transform; font-size: clamp(26px, 3.2vw, 46px); line-height: 1; white-space: nowrap; }
/* хром «как у Трансформеров»: светлое небо, тёмный горизонт, яркая кромка под ним */
.lg { display: block; height: 1em; margin-right: 1.5em; flex: none; filter: drop-shadow(0 1px 0 rgba(255,255,255,.18)) drop-shadow(0 0 10px rgba(200,200,200,.12)); }
.lg svg { display: block; height: 100%; width: auto; overflow: visible; }
.lg-t { font: 700 .86em/1 var(--display); letter-spacing: -.02em; background: linear-gradient(180deg, #fff 0%, #e2e2e2 22%, #8f8f8f 46%, #2c2c2c 50%, #f5f5f5 53%, #bababa 72%, #616161 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-block: .06em; }

/* ---------- 3 · услуги ---------- */
.focus { position: relative; }
.f-stage { position: relative; height: 100svh; min-height: 560px; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 24px 48px;
  padding: calc(92px + env(safe-area-inset-top, 0px)) var(--gr) 40px var(--gl); }
.f-grid { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.f-head { position: relative; grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; }
.f-idx { display: flex; align-items: baseline; font: 300 clamp(36px, 4vw, 56px)/1 var(--display); color: var(--ink); letter-spacing: 0; }
.f-idx .d { display: inline-block; height: .85em; overflow: hidden; }
.f-idx .d i { display: flex; flex-direction: column; font-style: normal; transition: transform .6s var(--ease); }
.f-idx .d i span { height: .85em; line-height: .85em; font-variant-numeric: tabular-nums; }
.f-idx small { font: 300 12px var(--mono); color: var(--ink-3); margin-left: 8px; letter-spacing: .08em; }
.f-words { position: relative; align-self: center; height: 100%; min-height: 0; }
.kw { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); font-family: var(--display); line-height: .9; letter-spacing: -.04em; }
.kw .ln { display: block; white-space: nowrap; overflow: hidden; padding-bottom: .06em; }
.kw .ch { transform: translateY(135%); transition: transform .7s var(--ease), font-variation-settings .25s linear, font-weight .25s linear; transition-delay: calc(var(--i) * 22ms), 0s, 0s; }
.kw.on .ch { transform: translateY(0); }
.kw:not(.on) { visibility: hidden; transition: visibility 0s 1s; }
.kw.past .ch { transform: translateY(-135%); }
.f-card { position: relative; align-self: center; display: grid; gap: 18px; padding: 28px; background: color-mix(in srgb, var(--bg-2) 86%, transparent); border: 1px solid var(--line); border-radius: 6px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.f-card h3 { font-size: clamp(20px, 2vw, 28px); font-weight: 700; }
.f-card p { margin: 0; color: var(--ink-2); max-width: 46ch; }
.f-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.f-card dt { font: 300 11px/1.9 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.f-card dd { margin: 0; }
.f-card .price { font: 700 clamp(22px, 2.2vw, 30px)/1 var(--display); letter-spacing: -.03em; }
.f-card .price small { font: 300 13px var(--body); color: var(--ink-2); letter-spacing: 0; }
.f-card.swap > * { animation: cardIn .55s var(--ease) both; }
.f-card.swap > *:nth-child(2) { animation-delay: .05s; } .f-card.swap > *:nth-child(3) { animation-delay: .1s; } .f-card.swap > *:nth-child(4) { animation-delay: .15s; }
/* живое видео фермы в карточке */
.f-vid { margin: 0; position: relative; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.f-vid video { width: 100%; aspect-ratio: 16 / 10; max-width: 100%; object-fit: cover; display: block; filter: saturate(.85) contrast(1.05); }
.f-vid figcaption { position: absolute; left: 10px; bottom: 8px; display: flex; align-items: center; gap: 8px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.f-vid figcaption i { width: 7px; height: 7px; border-radius: 50%; background: #FF3B3B; box-shadow: 0 0 0 3px rgba(255,59,59,.25); animation: rec 1.4s ease-in-out infinite; }
@keyframes rec { 50% { opacity: .35; } }
@media (max-width: 860px) { .f-vid video { aspect-ratio: 21 / 9; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.f-bar { grid-column: 1 / -1; position: relative; display: block; height: 1px; background: var(--line); }
.f-bar::after { content: ""; position: absolute; left: 0; top: 0; height: 1px; width: var(--p, 0%); background: var(--acc); }
@media (max-width: 860px) {
  .f-stage { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 18px; }
  .f-card { padding: 20px; gap: 12px; }
  .f-card p { font-size: 15px; }
}

/* ---------- секции ---------- */
.sec { padding: clamp(80px, 12vw, 160px) var(--gr) 0 var(--gl); }
/* блок ИИ идёт сразу за закреплёнными услугами: без лишнего провала после ПФ */
#ai { padding-top: clamp(24px, 4vw, 56px); }
.ai-g { padding-top: 32px; }
.aih { position: absolute; left: 0; top: 0; width: 0; height: 0; touch-action: pan-y; z-index: 0; }
.namebox { z-index: 1; }
.aih canvas { width: 100%; height: 100%; display: block; }
.ai-t { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; align-items: start; }
.ai-lead { margin: 0; font: 300 clamp(22px, 2.5vw, 34px)/1.25 var(--display); letter-spacing: -.03em; }
.ai-l { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.ai-l li { display: grid; grid-template-columns: 48px 1fr; gap: 6px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ai-l b { font: 700 clamp(18px, 1.6vw, 22px)/1.15 var(--display); letter-spacing: -.02em; }
.ai-l p { grid-column: 2; margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 860px) { .ai-t { grid-template-columns: 1fr; } }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 8px; }
.sec-h h2 { font-size: clamp(36px, 6vw, 88px); font-weight: 700; letter-spacing: .01em; }

/* ---------- 4 · кейсы ---------- */
.row { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 8px 24px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); transition: padding .45s var(--ease); }
.row:last-child { border-bottom: 0; }
.row h3 { font-size: clamp(22px, 3vw, 42px); font-variation-settings: "wght" 300; font-weight: 300; letter-spacing: -.035em; transition: font-variation-settings .45s var(--ease), font-weight .45s var(--ease), letter-spacing .45s; }
.row .y { font: 300 12px var(--mono); color: var(--ink-3); text-align: right; }
.row .m { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; }
.row .m b { font: 700 15px var(--body); color: var(--acc); }
.row .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.row .tags span { font: 300 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); }
@media (hover: hover) { .row:hover { padding-left: 14px; } .row:hover h3 { font-variation-settings: "wght" 700; font-weight: 700; letter-spacing: -.025em; } }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } .row .y { text-align: left; grid-row: 1; } }

/* ---------- 5 · ленты работ ---------- */
.works .sec-h { margin-bottom: 28px; }
.arch { display: grid; gap: 16px; margin-inline: calc(var(--gl) * -1) calc(var(--gr) * -1); overflow: hidden; }
.arow { overflow: hidden; }
.atr { display: flex; gap: 16px; width: max-content; will-change: transform; }
.tile { width: clamp(250px, 28vw, 420px); flex: none; display: grid; gap: 10px; }
.shot { max-width: 100%; border-radius: 6px; overflow: hidden; background: var(--bg-3); border: 1px solid var(--line); display: grid; transition: transform .5s var(--ease); }
.tile:hover .shot { transform: translateY(-4px); }
.tile > .mono { font-size: 11px; color: var(--ink-2); }
.shot img { width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; display: block; filter: grayscale(1) brightness(.78); transition: filter .45s var(--ease); }
/* как у референса: скрины в ч/б, под мышкой или пальцем сразу в цвете */
.tile:hover .shot img, .tile.on .shot img { filter: none; }
.tile.tall { width: clamp(190px, 20vw, 300px); }
.tile.tall .shot img { aspect-ratio: 10 / 16; object-position: top; }
.shot .bar { display: flex; height: 18px; align-items: center; gap: 4px; padding: 0 8px; border-bottom: 1px solid var(--line); }
.shot .bar i { width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }
.shot .bar span { margin-left: 6px; font: 300 8px var(--mono); color: var(--ink-3); }
.shot .pg { position: relative; padding: 10% 8%; display: grid; align-content: start; gap: 6%; }
.shot .pg b { font: 700 clamp(12px, 1.25vw, 17px)/1.05 var(--display); letter-spacing: -.03em; max-width: 70%; }
.shot .pg u { display: block; height: 4px; width: 56%; background: var(--line-2); text-decoration: none; border-radius: 2px; }
.shot .pg u + u { width: 40%; }
.shot .pg s { display: block; width: 32%; height: 14px; border-radius: 999px; background: var(--acc); text-decoration: none; }
.shot .pg em { position: absolute; right: 8%; bottom: 12%; width: 34%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(var(--acc-rgb), .9), rgba(var(--acc-rgb), .15) 70%); }
.shot.v2 .pg em { border-radius: 8px; width: 40%; aspect-ratio: 4/3; background: linear-gradient(135deg, var(--ink-3), transparent); opacity: .5; }
.shot.v3 { background: var(--ink); color: var(--bg); }
.shot.v3 .pg u { background: color-mix(in srgb, var(--bg) 35%, transparent); }
.shot.v4 .pg { grid-template-columns: repeat(3, 1fr); }
.shot.v4 .pg b { grid-column: 1 / -1; }
.shot.v4 .pg u, .shot.v4 .pg u + u { width: 100%; height: 28px; border-radius: 4px; }
.shot.v4 .pg s { display: none; }
.tile figcaption { display: flex; justify-content: space-between; gap: 12px; font: 300 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- 6 · об агентстве ---------- */
.about-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; padding-top: 40px; align-items: start; }
.ht { position: relative; aspect-ratio: 1; max-width: 100%; }
.ht canvas { width: 100%; height: 100%; }
.about-t { display: grid; gap: 22px; }
.about-t p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.about-t .lead { font: 300 clamp(22px, 2.5vw, 34px)/1.25 var(--display); letter-spacing: -.03em; color: var(--ink); max-width: none; }
.lead .wd { opacity: .22; transition: opacity .35s; }
.lead .wd.on { opacity: 1; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--line); padding-top: 22px; }
.stat b { display: block; font: 300 clamp(40px, 5vw, 72px)/1 var(--display); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--ink-2); }
.note { color: var(--ink-3); }
.steps { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.steps li { padding: 22px 20px 0 0; display: grid; gap: 10px; align-content: start; border-right: 1px solid var(--line); padding-left: 16px; }
.steps li:first-child { padding-left: 0; }
.steps li:last-child { border-right: 0; }
.steps b { font: 700 18px/1.15 var(--display); letter-spacing: -.02em; }
.steps p { margin: 0; font-size: 15px; color: var(--ink-2); }
.rv { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.rv-wait { opacity: 0; transform: translateY(24px); }
@media (max-width: 860px) {
  .about-g { grid-template-columns: 1fr; }
  .ht { width: min(100%, 420px); }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li:first-child { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---------- 7 · контакты ---------- */
.contact { padding-bottom: 80px; }
.c-title { font-size: clamp(44px, 9vw, 150px); font-weight: 100; line-height: .95; letter-spacing: .06em; }
.c-title em { font-style: normal; color: var(--acc); font-weight: 700; letter-spacing: .01em; }
.c-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid var(--line); }
.cell { position: relative; display: grid; gap: 8px; align-content: start; padding: 24px 20px 24px 0; border-right: 1px solid var(--line); min-width: 0; }
.cell + .cell { padding-left: 20px; }
.cell:last-child { border-right: 0; }
.cell b { font: 300 clamp(17px, 1.8vw, 24px)/1.2 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
a.cell:hover b { color: var(--acc); }
.copy { justify-self: start; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; transition: background .25s, color .25s; }
.copy:hover { background: var(--ink); color: var(--bg); }
.copy.done { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.form { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 16px; align-items: end; }
.form label { display: grid; gap: 8px; min-width: 0; }
.form input, .form select { width: 100%; font: 300 17px var(--body); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line-2); padding: 10px 0; border-radius: 0; }
.form select option { background: var(--bg-2); color: var(--ink); }
.form input:focus, .form select:focus { outline: none; border-bottom-color: var(--acc); }
.form input.err { border-bottom-color: #E5484D; }
.form-msg { grid-column: 1 / -1; margin: 0; min-height: 1.5em; }
@media (max-width: 860px) { .c-grid, .form { grid-template-columns: 1fr; } .cell, .cell + .cell { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------- подвал, наверх, тост ---------- */
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line);
  padding: 28px var(--gr) calc(28px + env(safe-area-inset-bottom, 0px)) var(--gl); }
.totop { position: fixed; right: calc(var(--gr)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: var(--bg); font-size: 18px; opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: opacity .35s, transform .35s var(--ease); }
.totop.on { opacity: 1; transform: none; pointer-events: auto; }
.toast { position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); z-index: 130; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; transition: opacity .3s, transform .3s var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- «кейс скоро» ---------- */
.soon { position: fixed; inset: 0; z-index: 115; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade .25s both; }
.soon-card { width: min(460px, 100%); display: grid; gap: 14px; padding: 28px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px; animation: gx .3s steps(1), pop .4s var(--ease) both; }
.soon-card h3 { font-size: 28px; font-weight: 700; animation: gs .4s steps(1); }
.soon-card p { margin: 0; color: var(--ink-2); }
.soon-card { width: min(640px, 100%); max-height: calc(100svh - 32px); overflow: auto; }
.soon-card h3 { font-size: clamp(22px, 3vw, 28px); line-height: 1.15; }
.cs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; padding-block: 6px; border-block: 1px solid var(--line); }
.cs > div { display: grid; gap: 8px; align-content: start; padding-block: 12px; }
.cs ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; color: var(--ink-2); font-size: 15px; line-height: 1.35; }
.cs-res { color: var(--ink) !important; font: 700 18px/1.3 var(--display); letter-spacing: -.02em; }
.cs-note { font-size: 10px; color: var(--ink-3) !important; text-transform: none; letter-spacing: .02em; }
.price .pt { font: 300 15px/1.3 var(--body); color: var(--ink-2); }
.soon.off { animation: fade .25s reverse both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .grain { display: none; }
}

/* типографика как в референсе Александра (18.10): один шрифт Jost в двух видах —
   жирный 700 и тонкий 300, подписи заглавными с разрядкой */
body { font-weight: 300; }
.mono, .mono *, .spec, .spec *, .nav a { text-transform: uppercase; letter-spacing: .22em; font-weight: 300; }
h2, h3, h2 *, h3 *, b, strong, button, .btn, .btn *, .slog span:nth-child(n+2) { font-weight: 700; letter-spacing: .01em; }
h2 { text-transform: uppercase; }
.slog { text-transform: uppercase; letter-spacing: .02em; }
.slog span:first-child { letter-spacing: .18em; }
#hname .hl:last-child { text-transform: uppercase; letter-spacing: .12em; }
#hname .ch { font-weight: var(--w, 100); }
/* тонкий вид — как «COLLECTION»: вес 100, широкая разрядка; на крупном тексте */
.kw { letter-spacing: .02em; }
.slog span:first-child { font-weight: 200; letter-spacing: .24em; }
.stat b { font-weight: 200; letter-spacing: .02em; }
.lead { font-weight: 200; }

/* телефон: подписи столбиком, без строк «по всей России» и «5 услуг», «А+ Маркетинг» внизу — голове ИИ больше места */
@media (max-width: 860px) and (hover: none) {
  .spec .sl b, .spec .sl br { display: none; }
  .spec .sl > span { display: block; line-height: 1.75; }
  .hmeta { display: none; }
  .namebox { align-self: end; }
}

/* телефон: блок «Что делаем» — у большого слова постоянная высота, карточка компактнее, чтобы длинные услуги влезали целиком */
@media (max-width: 860px) and (hover: none) {
  .f-stage { min-height: 0; padding: calc(72px + env(safe-area-inset-top, 0px)) var(--gr) 20px var(--gl); grid-template-rows: auto clamp(56px, 13svh, 130px) minmax(0, 1fr) auto; gap: 12px; }
  .f-card { align-self: center; padding: 16px; gap: 10px; }
  .f-card h3 { font-size: 18px; line-height: 1.2; }
  .f-card p { font-size: 14px; line-height: 1.45; }
  .f-card dl { gap: 6px 14px; padding-top: 12px; }
  .f-card .price { font-size: 22px; }
}
@media (max-width: 860px) and (hover: none) and (max-height: 700px) {
  .f-card p { font-size: 13px; line-height: 1.4; }
  .f-card dd { font-size: 13px; }
}
@media (max-width: 860px) and (hover: none) and (max-height: 600px) {
  .f-stage { padding-top: calc(64px + env(safe-area-inset-top, 0px)); padding-bottom: 14px; grid-template-rows: auto 44px minmax(0, 1fr) auto; gap: 8px; }
  .f-card { padding: 12px 14px; gap: 8px; }
  .f-card h3 { font-size: 16px; }
  .f-card p { font-size: 12.5px; line-height: 1.38; }
}
/* телефон: размытие под шапкой одним слоем вместо трёх и карточка услуг без размытия фона — Safari меньше перерисовывает при прокрутке */
@media (max-width: 860px) and (hover: none) {
  .navfx i:nth-child(1), .navfx i:nth-child(3) { display: none; }
  .navfx i:nth-child(2) { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); mask-image: linear-gradient(#000 25%, transparent 70%); -webkit-mask-image: linear-gradient(#000 25%, transparent 70%); }
  .f-card { backdrop-filter: none; -webkit-backdrop-filter: none; background: color-mix(in srgb, var(--bg-2) 95%, transparent); }
  .f-card.swap > * { animation-name: cardInM; }
}
@keyframes cardInM { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
