/* AIR_AD — digital-студия · светлая тема */
@font-face { font-family: "Inter"; src: url("../fonts/inter-cyrillic.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "Roboto Flex"; src: url("../fonts/robotoflex-cyrillic-standard-normal.woff2") format("woff2"); font-weight: 100 1000; font-stretch: 25% 151%; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto Flex"; src: url("../fonts/robotoflex-latin-standard-normal.woff2") format("woff2"); font-weight: 100 1000; font-stretch: 25% 151%; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --display: "Roboto Flex", "Inter", sans-serif;
  --bg: #fff;
  --soft: #f6f2f1;
  --card: #f6f2f1;
  --line: rgba(0, 0, 0, .1);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --accent: #8f1220;
  --accent-ink: #fff;
  --pop: var(--accent);
  --pop-ink: var(--accent-ink);
  --dark: #1b0609;
  --r: 28px;
  --pad: clamp(20px, 4vw, 56px);
  --max: 1360px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Inter", -apple-system, "SF Pro Display", "Segoe UI", sans-serif; font-size: 17px; line-height: 1.47; letter-spacing: -.011em; -webkit-font-smoothing: antialiased; overflow-x: hidden; font-feature-settings: "ss01", "cv11"; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; letter-spacing: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(80px, 11vw, 160px) 0; position: relative; }
.light { background: var(--soft); --card: #fff; }
.dark { background: var(--dark); color: #f5f5f7; --muted: #a1a1a6; --line: rgba(255, 255, 255, .14); }

/* ---------- type ---------- */
.display, .h1, .h2, .h3, .wide { font-family: var(--display); font-stretch: 151%; font-variation-settings: "wdth" 151; font-weight: 800; text-transform: uppercase; text-wrap: balance; overflow-wrap: break-word; }
.display { font-size: clamp(25px, 3.5vw, 56px); line-height: 1.04; letter-spacing: -.015em; }
.h1 { font-size: clamp(21px, 2.6vw, 42px); line-height: 1.06; letter-spacing: -.012em; }
.h2 { font-size: clamp(18px, 1.9vw, 30px); line-height: 1.1; letter-spacing: -.01em; }
.h3 { font-size: clamp(14px, 1.1vw, 17px); line-height: 1.2; letter-spacing: 0; }
.lead { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.38; letter-spacing: -.016em; color: var(--muted); max-width: 32em; text-wrap: pretty; font-weight: 400; }
.kicker { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.accent, .grad { color: var(--accent); }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 500; font-size: 17px; background: var(--accent); color: var(--accent-ink); transition: filter .3s, transform .5s var(--ease-out); will-change: transform; white-space: nowrap; }
.btn:hover { filter: brightness(1.1); }
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.ghost:hover { background: var(--text); color: var(--bg); box-shadow: none; filter: none; }
.dark .btn.ghost { color: #fff; } .dark .btn.ghost:hover { background: #fff; color: #000; }
.btn.sm { height: 36px; padding: 0 16px; font-size: 14px; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 500; font-size: 17px; }
.link svg { width: 16px; height: 16px; transition: transform .4s var(--ease-out); }
.link:hover svg { transform: translate(3px, -3px); }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 13px; border-radius: 999px; background: rgba(0, 0, 0, .06); font-size: 13px; color: var(--text); white-space: nowrap; }

/* ---------- logo (исходный знак AIR_AD) ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--text); flex: none; }
.logo svg { height: 20px; width: auto; flex: none; fill: currentColor; overflow: visible; transition: opacity .3s; }
.logo:hover svg { opacity: .6; }
.logo small { font-size: 11px; font-weight: 500; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line); line-height: 20px; white-space: nowrap; }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 50; inset: 0 0 auto; height: 52px; background: rgba(255, 255, 255, .8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .08); transition: transform .6s var(--ease-out); }
.nav.hide { transform: translateY(-100%); }
.nav-in { height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.nav-in > :last-child { justify-self: end; }
.nav-links { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.nav-links a { font-size: 13px; color: rgba(0, 0, 0, .8); position: relative; padding: 6px 0; transition: color .25s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav-links a:hover, .nav-links a.on { color: #000; }
.nav-links a:hover::after, .nav-links a.on::after { transform: scaleX(1); transform-origin: left; }
.nav .btn.sm { height: 32px; padding: 0 14px; font-size: 13px; }
.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 10px; right: 10px; height: 1.5px; background: #000; transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.burger::before { top: 16px; } .burger::after { top: 23px; }
.menu-open .burger::before { top: 19.5px; transform: rotate(45deg); }
.menu-open .burger::after { top: 19.5px; transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); display: flex; flex-direction: column; justify-content: center; padding: var(--pad); gap: 10px; opacity: 0; pointer-events: none; transition: opacity .4s; }
.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: var(--display); font-size: 28px; font-weight: 500; letter-spacing: -.03em; transform: translateY(30px); opacity: 0; transition: transform .7s var(--ease-out), opacity .5s; transition-delay: calc(var(--i) * 60ms); }
.menu-open .mobile-menu a { transform: none; opacity: 1; }

/* ---------- page transition ---------- */
.curtain { position: fixed; inset: 0; z-index: 100; background: var(--bg); pointer-events: none; display: grid; place-items: center; transition: clip-path .9s var(--ease-out); clip-path: inset(0 0 0 0); }
.curtain .logo:hover svg { opacity: 1; }
.curtain .logo { flex-direction: column; gap: clamp(14px, 2vw, 26px); }
.curtain .logo svg { height: auto; width: clamp(220px, 34vw, 520px); overflow: hidden; }
.curtain .logo small { border: 0; padding: 0; font-size: clamp(10px, 1vw, 13px); letter-spacing: .4em; margin-right: -.4em; text-transform: uppercase; opacity: 0; animation: fade .8s .5s forwards; }
.curtain .logo path { transform: translateY(84px); animation: rise .9s var(--ease-out) forwards; animation-delay: calc(var(--i) * 70ms); transition: none; }
@keyframes rise { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }
.ready .curtain { clip-path: inset(0 0 100% 0); }
.leaving .curtain { clip-path: inset(0 0 0 0); transition-duration: .5s; }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal="clip"] > img { transform: scale(1.14); transition: transform 1.6s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="clip"].in > img { transform: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .16em .04em .14em; margin: -.16em -.04em -.14em; }
.w > span { display: inline-block; transform: translateY(115%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 45ms + var(--d, 0) * 1ms); }
.in .w > span, .w.in > span { transform: none; }

/* ---------- hero: видео в буквах логотипа -> зум на весь экран ---------- */
.hero2 { height: 340vh; position: relative; }
.hero2-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; background: #e8dcff; }   /* цвет первого кадра ролика — никакой чёрной вспышки, пока видео грузится или перематывается */
.hero2-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(calc(1 - .62 * clamp(0, (var(--p, 0) - .5) * 5, 1))); }
.hero2-tint { position: absolute; inset: 0; background: var(--accent); mix-blend-mode: multiply; opacity: calc(1 - clamp(0, (var(--p, 0) - .1) * 4, 1)); }
.hero2-tint + .hero2-tint { mix-blend-mode: normal; opacity: calc(.35 * (1 - clamp(0, (var(--p, 0) - .1) * 4, 1))); }
.hero2-mask { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero2-mask .sheet { fill: var(--bg); }
#logo-zoom path { fill-opacity: 0; transform: translateY(46px); }
.ready #logo-zoom path { animation: hole 1.2s var(--ease-out) forwards; animation-delay: calc(.25s + var(--i) * 90ms); }
@keyframes hole { to { fill-opacity: 1; transform: none; } }
.hero2-text { position: absolute; left: 0; right: 0; bottom: clamp(28px, 7vh, 80px); padding: 0 var(--pad); display: grid; gap: clamp(14px, 2vh, 22px); justify-items: center; text-align: center; opacity: calc(1 - var(--p, 0) * 9); transform: translateY(calc(var(--p, 0) * -160px)); pointer-events: none; }
.hero2-text > * { pointer-events: auto; }
.hero2-text .h1 { font-size: clamp(18px, min(2.6vw, 5vh), 40px); max-width: 22em; }
@media (max-height: 560px) { .hero2-text .lead { display: none; } }
.hero2-text .lead { font-size: clamp(16px, 1.3vw, 20px); max-width: 30em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero2-hint { position: absolute; left: 50%; top: 76px; transform: translateX(-50%); opacity: calc(1 - var(--p, 0) * 9); }
.expand-words { position: absolute; inset: 0; z-index: 2; display: grid; align-content: center; text-align: center; pointer-events: none; color: #fff; }
.expand-words span { opacity: calc((var(--p, 0) - var(--a)) * 12); transform: translateY(calc((1 - clamp(0, (var(--p, 0) - var(--a)) * 12, 1)) * 40px)); }
.expand-words .accent { color: var(--accent); background: #fff; justify-self: center; padding: .24em .34em .12em; line-height: 1; border-radius: .2em; margin-top: .22em; }

.reels-sec { padding: clamp(60px, 8vw, 120px) 0 clamp(40px, 6vw, 90px); overflow: hidden; }
.reelwall { position: relative; margin-top: clamp(30px, 4vw, 56px); }
.reelwall-track { display: flex; gap: clamp(12px, 1.4vw, 20px); width: max-content; will-change: transform; }
@keyframes marquee { to { transform: translateX(-50%); } }
.reel { position: relative; flex: none; width: clamp(150px, 16vw, 250px); aspect-ratio: 9 / 16; border-radius: clamp(16px, 1.8vw, 26px); overflow: hidden; background: var(--soft); transform: translateY(calc(var(--o, 0) * 1px)); }
.reel:nth-child(odd) { --o: 32; }
.reel video, .reel img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; padding: 18px 0; border-block: 1px solid var(--line); }
.ticker-track { display: flex; width: max-content; will-change: transform; }
.ticker span { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 0 28px; white-space: nowrap; color: var(--muted); }

/* ---------- bento ---------- */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: clamp(32px, 4.5vw, 64px); }
.head > div { display: grid; gap: 12px; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.tile { grid-column: span 6; border-radius: var(--r); background: var(--card); overflow: hidden; display: flex; flex-direction: column; transition: transform .8s var(--ease-out); }
.tile.w7 { grid-column: span 7; } .tile.w5 { grid-column: span 5; }
.tile:hover { transform: scale(.988); }
.tile-text { padding: clamp(24px, 2.8vw, 40px) clamp(22px, 2.8vw, 40px) clamp(18px, 2vw, 26px); display: grid; gap: 10px; }
.tile-n { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.tile h3 { font-family: var(--display); text-transform: uppercase; font-size: clamp(20px, 2vw, 30px); letter-spacing: -.03em; line-height: 1.15; font-weight: 500; }
.tile p { color: var(--muted); max-width: 30em; }
.tile-media { margin: auto clamp(22px, 2.8vw, 40px) clamp(22px, 2.8vw, 40px); border-radius: 18px; overflow: hidden; position: relative; }
.tile-media.video { aspect-ratio: 16 / 9; background: #e8e8ed; }
.tile-media.video video { width: 100%; height: 100%; object-fit: cover; }
.tile-media.row { display: flex; gap: 12px; justify-content: center; overflow: visible; border-radius: 0; }
.tile-media.row > * { flex: 1 1 0; min-width: 0; max-width: 220px; height: auto; border-radius: 14px; background: #e8e8ed; box-shadow: 0 14px 40px -18px rgba(0, 0, 0, .35); transition: transform .9s var(--ease-out); }
.tile-media.row > :nth-child(2) { transform: translateY(-10px); }
.tile:hover .tile-media.row > :nth-child(1) { transform: translateY(-8px) rotate(-3deg); }
.tile:hover .tile-media.row > :nth-child(2) { transform: translateY(-18px); }
.tile:hover .tile-media.row > :nth-child(3) { transform: translateY(-8px) rotate(3deg); }
.tile-media.browser { min-height: 280px; }
.browser { background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); display: flex; flex-direction: column; }
.browser-bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid rgba(0, 0, 0, .07); flex: none; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d2d2d7; }
.browser-body { padding: 22px; display: grid; gap: 12px; align-content: start; }
.browser-body b { display: block; height: 22px; border-radius: 6px; background: #1d1d1f; width: 70%; transform-origin: left; animation: grow 5s var(--ease-out) infinite; }
.browser-body b + b { width: 46%; animation-delay: .25s; }
.browser-body u { display: block; height: 34px; width: 120px; border-radius: 999px; background: var(--accent); margin-top: 4px; transform-origin: left; animation: grow 5s var(--ease-out) .5s infinite; }
.browser-body div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.browser-body div i { height: 120px; border-radius: 12px; background: var(--soft); animation: pop 5s var(--ease-out) infinite; }
.browser-body div i:nth-child(1) { animation-delay: .7s; } .browser-body div i:nth-child(2) { animation-delay: .85s; } .browser-body div i:nth-child(3) { animation-delay: 1s; }
@keyframes grow { 0% { transform: scaleX(0); } 14%, 92% { transform: none; } 100% { transform: scaleX(0); } }
@keyframes pop { 0% { transform: translateY(30px); opacity: 0; } 14%, 92% { transform: none; opacity: 1; } 100% { opacity: 0; } }

/* ---------- stack ---------- */
.stack { display: grid; gap: 24px; }
.stack-card { position: sticky; top: calc(84px + var(--n) * 14px); border-radius: clamp(24px, 3vw, 40px); overflow: hidden; background: #fff; border: 1px solid var(--line); min-height: min(76vh, 720px); display: grid; grid-template-columns: 1fr 1fr; transform: scale(calc(1 - var(--p, 0) * .05)); filter: brightness(calc(1 - var(--p, 0) * .12)); transform-origin: center top; box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 -20px 50px -30px rgba(0, 0, 0, .25); }
.stack-text { padding: clamp(28px, 4vw, 60px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.stack-text .h2 { margin: 10px 0 14px; }
.stack-text .lead { font-size: clamp(17px, 1.3vw, 20px); }
.stack-media { position: relative; overflow: hidden; background: var(--accent); display: grid; place-items: center; }
.stack-media .phone { position: relative; height: 76%; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .5); transform: rotate(4deg) translateY(calc((var(--v, .5) - .5) * -80px)); }
.stack-media .phone + .phone { position: absolute; left: 10%; height: 58%; transform: rotate(-7deg) translateY(calc((var(--v, .5) - .5) * 90px)); }
.stack-media .phone.sq { aspect-ratio: 4 / 5; }
.phone img, .phone video { width: 100%; height: 100%; object-fit: cover; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- horizontal scroll ---------- */
.hscroll { position: relative; background: var(--soft); }
.hscroll-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: clamp(22px, 4vh, 44px); overflow: hidden; }
.hscroll-track { display: flex; gap: 18px; padding: 0 var(--pad); width: max-content; will-change: transform; }
.vcard { position: relative; flex: none; width: clamp(210px, 20vw, 310px); aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; background: #e8e8ed; cursor: pointer; color: #fff; }
.vcard img, .vcard video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), opacity .4s; }
.vcard video { opacity: 0; }
.vcard.playing video { opacity: 1; }
.vcard:hover img, .vcard:hover video { transform: scale(1.04); }
.vcard-info { position: absolute; inset: auto 0 0; padding: 60px 16px 16px; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); display: grid; gap: 3px; }
.vcard-info b { font-weight: 600; font-size: 15px; line-height: 1.22; }
.vcard-info small { color: rgba(255, 255, 255, .7); font-size: 12px; }
.play { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #000; display: grid; place-items: center; transition: transform .5s var(--ease-out), background .3s, color .3s; }
.play svg { width: 13px; height: 13px; margin-left: 2px; }
.vcard:hover .play, .film:hover .play { transform: scale(1.12); background: var(--accent); color: var(--accent-ink); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { padding: 24px 0; border-top: 1px solid var(--text); display: grid; gap: 4px; }
.stat b { font-family: var(--display); font-size: clamp(36px, 4.6vw, 76px); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { counter-increment: s; background: var(--card); border-radius: var(--r); padding: 28px; min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; transition: transform .6s var(--ease-out), background .4s, color .4s; }
.step::before { content: "0" counter(s); font-family: var(--display); font-size: clamp(30px, 3vw, 46px); font-weight: 500; letter-spacing: -.04em; line-height: 1; color: var(--accent); transition: color .4s; }
.step:hover { transform: translateY(-8px); background: var(--pop); color: var(--pop-ink); }
.step:hover p, .step:hover::before { color: inherit; }
.step p { color: var(--muted); margin-top: 8px; font-size: 16px; transition: color .4s; }

/* ---------- cta / footer ---------- */
.cta { text-align: center; }
.cta .wrap { display: grid; justify-items: center; gap: 24px; }
.cta .lead { margin: 0 auto; }
.footer { background: var(--soft); padding: 48px 0 28px; font-size: 14px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer nav { display: grid; gap: 8px; align-content: start; }
.footer nav b { font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.footer nav a { color: var(--muted); transition: color .25s; } .footer nav a:hover { color: var(--accent); }
.footer-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.runline { display: block; overflow: hidden; background: var(--accent); color: var(--accent-ink); padding: clamp(16px, 2vw, 26px) 0; }
.runline-track { display: flex; width: max-content; will-change: transform; }
.runline span { font-family: var(--display); font-weight: 500; font-size: clamp(18px, 2.2vw, 32px); letter-spacing: -.02em; padding: 0 clamp(16px, 2vw, 32px); white-space: nowrap; display: inline-flex; align-items: center; gap: clamp(32px, 4vw, 64px); }
.runline span::after { content: "→"; font-family: "Inter", sans-serif; }

/* ---------- page head ---------- */
.page-head { padding: clamp(120px, 17vh, 190px) 0 clamp(36px, 5vw, 70px); }
.page-head .wrap { display: grid; gap: 22px; }

/* ---------- projects grid ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { height: 40px; padding: 0 18px; border-radius: 999px; background: rgba(0, 0, 0, .05); color: var(--text); font-size: 15px; transition: background .3s, color .3s; }
.filters button:hover { background: rgba(0, 0, 0, .1); }
.filters button.on { background: var(--text); color: var(--bg); }
.filters sup { font-size: 10px; margin-left: 4px; opacity: .6; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 3.4vw, 52px) clamp(16px, 2vw, 24px); }
.pcard { grid-column: span 4; display: grid; gap: 14px; align-content: start; }
.pcard.big { grid-column: span 6; }
.pcard.off { display: none; }
.pcard-media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: color-mix(in srgb, var(--c) 16%, #f5f5f7); transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease-out); }
.pcard.big .pcard-media { aspect-ratio: 5 / 4; }
.pcard-media img, .pcard-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out), opacity .5s; }
.pcard-media video { opacity: 0; } .pcard.playing video { opacity: 1; }
.pcard:hover .pcard-media img, .pcard:hover .pcard-media video { transform: scale(1.05); }
.pcard-badge { position: absolute; left: 12px; top: 12px; z-index: 2; height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .88); color: #1d1d1f; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; }
.pcard-arrow { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; transform: scale(0) rotate(-45deg); transition: transform .6s var(--ease-out); }
.pcard-arrow svg { width: 18px; height: 18px; }
.pcard:hover .pcard-arrow { transform: none; }
.pcard-title { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.pcard-title b { font-family: var(--display); font-size: clamp(16px, 1.3vw, 20px); font-weight: 500; letter-spacing: -.025em; line-height: 1.2; }
.pcard-title span { color: var(--muted); font-size: 14px; white-space: nowrap; }
.pcard p { color: var(--muted); font-size: 15px; margin-top: -6px; }

/* ---------- case ---------- */
.case-hero { padding: clamp(120px, 16vh, 190px) 0 0; }
.case-hero .wrap { display: grid; gap: 20px; }
.case-hero .kicker { color: var(--c-ink, var(--accent)); }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; width: max-content; transition: color .25s; margin-bottom: 14px; }
.back:hover { color: var(--accent); } .back svg { width: 15px; height: 15px; transition: transform .4s var(--ease-out); } .back:hover svg { transform: translateX(-4px); }
.case-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(24px, 3.4vw, 52px); border-top: 1px solid var(--text); padding-top: 20px; }
.case-meta div { display: grid; gap: 4px; align-content: start; }
.case-meta small { color: var(--muted); font-size: 13px; }
.case-meta b { font-weight: 500; font-size: 16px; line-height: 1.32; }
.case-cover { margin-top: clamp(36px, 5vw, 80px); }
.case-cover .frame { border-radius: clamp(24px, 3vw, 40px); overflow: hidden; height: min(84vh, 860px); background: color-mix(in srgb, var(--c) 18%, #f5f5f7); display: flex; justify-content: center; gap: clamp(14px, 2vw, 28px); padding: clamp(24px, 4vw, 60px); transform: scale(calc(.92 + var(--pe, 0) * .08)); }
.case-cover .frame > * { height: 100%; width: auto; border-radius: clamp(14px, 1.6vw, 22px); box-shadow: 0 30px 80px -36px rgba(0, 0, 0, .5); flex: none; }
.case-cover .frame > :nth-child(odd) { transform: translateY(calc((var(--pe, 0) - .6) * -90px)); }
.case-cover .frame > :nth-child(even) { transform: translateY(calc((var(--pe, 0) - .6) * 90px)); }
.brief { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(24px, 4vw, 64px); }

.brief p { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.4; letter-spacing: -.014em; }
.brief ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.brief li { padding: 0 0 10px; border-bottom: 1px solid var(--line); line-height: 1.38; }

.strip { margin-top: clamp(36px, 5vw, 72px); overflow: hidden; }
.strip-track { display: flex; gap: clamp(12px, 1.4vw, 20px); width: max-content; will-change: transform; padding-right: clamp(12px, 1.4vw, 20px); }
.strip-track > * { height: clamp(260px, 50vh, 500px); width: auto; flex: none; border-radius: clamp(14px, 1.6vw, 22px); background: var(--soft); box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); object-fit: cover; }
.task .wrap { display: grid; gap: 20px; }
.task .manifest { max-width: 22em; }
.brief { grid-template-columns: 1fr 1.3fr; }
.brief > div { display: grid; gap: 16px; align-content: start; }
.done { list-style: none; margin: 0; padding: 0; display: grid; }
.done li { display: grid; grid-template-columns: clamp(56px, 6vw, 90px) 1fr; align-items: baseline; gap: 12px; padding: clamp(16px, 1.8vw, 24px) 0; border-top: 1px solid var(--line); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out), padding .5s var(--ease-out), color .3s; }
.done li:first-child { border-top-color: var(--text); }
.done li:hover { padding-left: 12px; color: var(--accent); }
.done span { font-family: var(--display); font-size: clamp(18px, 1.7vw, 26px); font-weight: 500; letter-spacing: -.04em; color: var(--accent); }
.done b { font-size: clamp(18px, 1.6vw, 23px); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.pindex { display: flex; flex-wrap: wrap; gap: 8px; max-width: 60em; }
.pindex a { height: 36px; padding: 0 16px; border-radius: 999px; background: var(--soft); display: inline-flex; align-items: center; font-size: 14px; transition: background .3s, color .3s; }
.pindex a:hover { background: var(--accent); color: var(--accent-ink); }

.block { padding: clamp(60px, 8vw, 120px) 0; }
.block.alt { background: var(--soft); }
.block-n i { font-style: normal; display: inline-block; margin-right: 12px; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 13px; }
.block-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(22px, 2.8vw, 40px); }
.block-head > div:first-child { display: grid; gap: 8px; }
.block-head p { color: var(--muted); max-width: 36em; }
.block-n { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.slider-nav { display: flex; align-items: center; gap: 8px; flex: none; }
.slider-nav span { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; min-width: 56px; text-align: center; }
.slider-nav button { flex: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(0, 0, 0, .06); display: grid; place-items: center; transition: background .3s, color .3s, transform .4s var(--ease-out); }
.slider-nav button:hover { background: var(--accent); color: var(--accent-ink); transform: scale(1.08); }
.slider-nav button:disabled { opacity: .3; pointer-events: none; }
.slider-nav svg { width: 16px; height: 16px; }
.slider { display: flex; gap: clamp(12px, 1.4vw, 20px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--pad); margin: 0 calc(var(--pad) * -1); cursor: grab; scroll-padding: 0 var(--pad); scroll-behavior: smooth; }
.slider::-webkit-scrollbar { display: none; }
.slider.drag { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.slide { flex: none; width: clamp(240px, 26vw, 400px); scroll-snap-align: start; border-radius: clamp(16px, 1.6vw, 22px); overflow: hidden; background: var(--soft); position: relative; cursor: zoom-in; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.slide.story { width: clamp(200px, 20vw, 300px); }
.slide.wide { width: clamp(300px, 44vw, 660px); }
.slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform 1.2s var(--ease-out); }
.slide:hover img { transform: scale(1.03); }
.slide-n { position: absolute; left: 10px; top: 10px; font-size: 12px; font-weight: 500; height: 24px; min-width: 24px; padding: 0 7px; border-radius: 999px; background: rgba(255, 255, 255, .88); color: #1d1d1f; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.reels { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 44%), 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.reels .vcard { width: auto; }
.films { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(2, 1fr); }
.film { position: relative; border-radius: var(--r); overflow: hidden; background: #e8e8ed; aspect-ratio: 16 / 9; cursor: pointer; color: #fff; }
.film:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.film img, .film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out), opacity .4s; }
.film video { opacity: 0; } .film.playing video { opacity: 1; }
.film:hover img { transform: scale(1.03); }
.film .play { width: 68px; height: 68px; top: 50%; left: 50%; right: auto; margin: -34px 0 0 -34px; }
.film .play svg { width: 20px; height: 20px; }
.film-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 20px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); display: flex; justify-content: space-between; gap: 16px; align-items: end; }
.film-info b { font-weight: 600; font-size: clamp(16px, 1.4vw, 20px); letter-spacing: -.02em; line-height: 1.2; }
.film-info small { color: rgba(255, 255, 255, .75); font-size: 13px; white-space: nowrap; }
.gallery { display: grid; gap: clamp(14px, 1.6vw, 24px); grid-template-columns: repeat(2, 1fr); }
.gallery figure { margin: 0; border-radius: clamp(16px, 2vw, 26px); overflow: hidden; background: var(--soft); cursor: zoom-in; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.gallery figure.full { grid-column: 1 / -1; }
.gallery img { width: 100%; height: auto; }
.note { color: var(--muted); font-size: 13px; max-width: 48em; }
.next { display: block; padding: clamp(70px, 9vw, 130px) 0; background: var(--soft); text-align: center; transition: background .5s, color .5s; }
.next:hover { background: var(--accent); color: var(--accent-ink); }
.next:hover .kicker { color: inherit; }
.next .h1 { margin-top: 10px; }

/* ---------- services ---------- */
.svc { display: grid; grid-template-columns: 90px 1fr 1.1fr; gap: clamp(20px, 4vw, 64px); padding: clamp(32px, 4.4vw, 64px) 0; border-top: 1px solid var(--text); align-items: start; }
.svc-n { font-family: var(--display); font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -.04em; color: var(--accent); line-height: 1.1; }
.svc ul { margin: 0; padding: 0; list-style: none; display: grid; }
.svc li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; transition: padding .5s var(--ease-out), color .3s; }
.svc li b { font-weight: 500; }
.svc li:hover { padding-left: 12px; color: var(--accent); }
.svc li span { color: var(--muted); font-size: 14px; text-align: right; }
.svc p { color: var(--muted); margin-top: 14px; max-width: 28em; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; }
.tools span { height: 46px; padding: 0 20px; border-radius: 999px; background: var(--card); display: inline-flex; align-items: center; font-size: 16px; transition: background .3s, color .3s, transform .5s var(--ease-out); }
.tools span:hover { background: var(--pop); color: var(--pop-ink); transform: translateY(-4px) rotate(-2deg); }

/* ---------- about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.prose { display: grid; gap: 18px; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.45; letter-spacing: -.014em; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { background: var(--card); border-radius: var(--r); padding: 30px; display: grid; gap: 10px; align-content: start; min-height: 260px; }
.value i { font-style: normal; font-family: var(--display); font-size: clamp(30px, 3vw, 46px); font-weight: 500; letter-spacing: -.04em; line-height: 1; color: var(--accent); margin-bottom: 28px; }
.value p { color: var(--muted); }
.manifest { font-size: clamp(22px, 2.7vw, 42px); line-height: 1.18; letter-spacing: -.03em; font-weight: 600; }
.manifest .w > span { color: color-mix(in srgb, currentColor calc(16% + 84% * var(--on, 0)), transparent); transform: none; transition: color .5s; }

/* ---------- contacts ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.clinks { display: grid; }
.clink { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); transition: padding .5s var(--ease-out), color .3s; }
.clink:first-child { border-top-color: var(--text); }
.clink:hover { padding: 24px 14px; color: var(--accent); }
.clink small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.clink b { font-family: var(--display); font-size: clamp(17px, 1.7vw, 26px); font-weight: 500; letter-spacing: -.03em; overflow-wrap: anywhere; }
.clink svg { width: 24px; height: 24px; flex: none; transition: transform .5s var(--ease-out); } .clink:hover svg { transform: translate(4px, -4px); }
.talk { font-weight: 500; font-size: clamp(19px, 2vw, 30px); line-height: 1.7; letter-spacing: -.02em; max-width: 34em; }
.talk input[type=text] { font: inherit; letter-spacing: inherit; color: var(--accent); background: none; border: 0; border-bottom: 2px solid var(--line); border-radius: 0; outline: none; padding: 0 .1em; width: 8.5em; max-width: 100%; transition: border-color .3s; }
.talk input.long { width: 13em; }
.talk input::placeholder { color: rgba(0, 0, 0, .22); }
.talk input:focus { border-color: var(--accent); }
.picks { display: flex; flex-wrap: wrap; gap: 8px; margin: .5em 0; }
.picks label { display: inline-flex; cursor: pointer; }
.picks input { position: absolute; opacity: 0; pointer-events: none; }
.picks span { font-family: "Inter", sans-serif; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--soft); display: inline-flex; align-items: center; font-size: 16px; font-weight: 500; letter-spacing: -.01em; color: var(--text); transition: background .3s, color .3s, transform .5s var(--ease-out); }
.picks label:hover span { transform: translateY(-3px); }
.picks input:checked + span { background: var(--accent); color: var(--accent-ink); }
.picks input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: clamp(24px, 3vw, 40px); align-items: center; }
.clinks-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(50px, 7vw, 100px); }
.clinks-row .clink { border: 0; background: var(--soft); border-radius: var(--r); padding: 26px; align-items: flex-end; min-height: 170px; transition: background .4s, color .4s, transform .6s var(--ease-out); }
.clinks-row .clink:hover { padding: 26px; background: var(--accent); color: var(--accent-ink); transform: translateY(-6px); }
.clinks-row .clink:hover small { color: inherit; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .88); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .4s; color: #fff; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-body { max-width: 94vw; max-height: 90vh; display: grid; place-items: center; transform: scale(.94); transition: transform .6s var(--ease-out); }
.modal.open .modal-body { transform: none; }
.modal-body video, .modal-body img { max-width: 94vw; max-height: 88vh; width: auto; height: auto; border-radius: 18px; background: #000; }
.modal-x, .modal-prev, .modal-next { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: grid; place-items: center; transition: background .3s, transform .4s var(--ease-out); z-index: 2; }
.modal-x:hover, .modal-prev:hover, .modal-next:hover { background: var(--accent); transform: scale(1.08); }
.modal-x { top: 18px; right: 18px; } .modal-prev { left: 18px; top: 50%; margin-top: -24px; } .modal-next { right: 18px; top: 50%; margin-top: -24px; }
.modal svg { width: 18px; height: 18px; }
.modal-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .6); font-size: 14px; font-variant-numeric: tabular-nums; }
.modal:not(.multi) .modal-prev, .modal:not(.multi) .modal-next, .modal:not(.multi) .modal-count { display: none; }

/* ---------- cursor ---------- */
.cursor { position: fixed; z-index: 95; left: 0; top: 0; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 12px; font-weight: 600; pointer-events: none; transform: translate(var(--x, -200px), var(--y, -200px)) scale(var(--s, 0)); transition: transform .35s var(--ease-out); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nav-links, .nav .btn { display: none; } .burger { display: block; } .nav-in { grid-template-columns: 1fr auto; }
  .tile, .tile.w7, .tile.w5 { grid-column: 1 / -1; }
  .stack-card { grid-template-columns: 1fr; position: relative; top: auto; transform: none; filter: none; box-shadow: none; }
  .stack-media { min-height: 420px; order: -1; }
  .stats, .steps { grid-template-columns: repeat(2, 1fr); }
  .pcard, .pcard.big { grid-column: span 6; } .pcard.big .pcard-media { aspect-ratio: 4 / 5; }
  .brief, .split, .contacts, .values, .clinks-row { grid-template-columns: 1fr; }
  .case-meta { grid-template-columns: repeat(2, 1fr); }
  .svc { grid-template-columns: 1fr; gap: 16px; }
  .films, .gallery { grid-template-columns: 1fr; }
  .case-cover .frame { height: 60vh; padding: 20px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .pcard, .pcard.big { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; } .step { min-height: 220px; }
  .slide { width: 72vw; } .slide.story { width: 58vw; } .slide.wide { width: 84vw; }
  .logo small { display: none; }
  .block-head { flex-wrap: wrap; }
  .tile-media { height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal], .w > span, .footer-word path, .curtain .logo path { opacity: 1; transform: none; }
  #logo-zoom path { fill-opacity: 1; transform: none; }
}

/* ---------- широкие цифры и подписи ---------- */
.stat b, .step::before, .value i, .svc-n, .pcard-title b, .done span, .clink b, .mobile-menu a, .runline span, .tile h3, .ring-card i, .svcx-item h3 { font-family: var(--display); font-stretch: 151%; font-variation-settings: "wdth" 151; font-weight: 800; text-transform: uppercase; }
.pcard-title b { font-size: clamp(13px, 1.05vw, 16px); letter-spacing: 0; }
.clink b { font-size: clamp(15px, 1.4vw, 22px); letter-spacing: 0; }
.runline span { font-size: clamp(15px, 1.7vw, 24px); letter-spacing: 0; }
.stat b { font-size: clamp(32px, 4vw, 64px); letter-spacing: -.02em; }
.done a { display: contents; color: inherit; }
.done li { cursor: pointer; }

/* ---------- услуги: список + сцена ---------- */
.svcx { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.svcx-item { display: block; width: 100%; text-align: left; padding: clamp(16px, 1.8vw, 24px) 0; border-top: 1px solid var(--line); position: relative; }
.svcx-item::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.svcx-item.on::before { animation: bar var(--dur, 4s) linear forwards; }
@keyframes bar { to { transform: scaleX(1); } }
.svcx-item h3 { font-size: clamp(16px, 1.9vw, 30px); line-height: 1.1; color: rgba(0, 0, 0, .26); transition: color .5s, transform .7s var(--ease-out); }
.svcx-item:hover h3 { color: rgba(0, 0, 0, .6); }
.svcx-item.on h3 { color: var(--text); transform: translateX(10px); }
.svcx-item p { color: var(--muted); display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .7s var(--ease-out), opacity .5s, margin .7s var(--ease-out); padding-left: 10px; max-width: 26em; }
.svcx-item p > span { overflow: hidden; }
.svcx-item.on p { grid-template-rows: 1fr; opacity: 1; margin-top: 10px; }
.svcx-stage, .svcrow-media { position: relative; aspect-ratio: 5 / 4; border-radius: clamp(22px, 2.6vw, 36px); background: var(--soft); overflow: hidden; }
.svcx-panel { position: absolute; inset: 0; padding: 8%; display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.9) translateY(30px); transition: opacity .6s, transform .9s var(--ease-out); pointer-events: none; }
.svcx-panel.on { opacity: 1; transform: none; }
.svcrow-media { padding: 8%; display: flex; align-items: center; justify-content: center; }
.v-video { width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .45); background: #000; }
.v-video video { width: 100%; height: 100%; object-fit: cover; }
.v-deck { position: relative; height: 100%; aspect-ratio: 4 / 5; }
.v-deck img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 16px; box-shadow: 0 24px 60px -26px rgba(0, 0, 0, .5); transition: transform 1s var(--ease-out); }
.v-deck img:nth-child(1) { transform: translateX(-34%) rotate(-9deg) scale(.86); }
.v-deck img:nth-child(2) { transform: translateX(34%) rotate(9deg) scale(.86); }
.v-deck img:nth-child(3) { animation: floaty 5s ease-in-out infinite alternate; }
.svcx-stage:hover .v-deck img:nth-child(1), .svcrow-media:hover .v-deck img:nth-child(1) { transform: translateX(-52%) rotate(-13deg) scale(.86); }
.svcx-stage:hover .v-deck img:nth-child(2), .svcrow-media:hover .v-deck img:nth-child(2) { transform: translateX(52%) rotate(13deg) scale(.86); }
@keyframes floaty { to { transform: translateY(-10px); } }
.v-row { display: flex; gap: 4%; height: 100%; justify-content: center; align-items: center; }
.v-row > * { height: 92%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; box-shadow: 0 24px 60px -26px rgba(0, 0, 0, .5); background: #ddd; }
.v-row > :nth-child(2) { height: 100%; }
.v-browser { width: 100%; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .35); }

/* страница услуг */
.svcrow { padding: clamp(50px, 7vw, 110px) 0; border-top: 1px solid var(--line); }
.svcrow .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 6vw, 100px); align-items: center; }
.svcrow.rev .svcrow-media { order: -1; }
.svcrow-text { display: grid; gap: 18px; align-content: center; }
.svcrow-text .lead { font-size: clamp(17px, 1.3vw, 20px); }
.svcrow-text .chip { height: 38px; padding: 0 16px; font-size: 14px; background: var(--soft); transition: background .3s, color .3s, transform .5s var(--ease-out); }
.svcrow-text .chip:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-3px); }

/* ---------- конвейер: 3D-призма ---------- */
.ring-sec { height: 420vh; position: relative; background: var(--soft); }
.ring-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; padding: clamp(84px, 12vh, 130px) 0 clamp(24px, 5vh, 50px); gap: 10px; }
.ring-stage { perspective: 1500px; display: grid; place-items: center; min-height: 0; }
.ring { --w: clamp(250px, 26vw, 380px); --R: calc(var(--w) * .72); position: relative; width: var(--w); height: min(calc(var(--w) * 1.18), 52vh); transform-style: preserve-3d; transform: translateZ(calc(var(--R) * -1)) rotateX(-9deg) rotateY(var(--ang, 0deg)); will-change: transform; }
.ring-card { position: absolute; inset: 0; border-radius: 26px; background: #fff; padding: clamp(20px, 2.2vw, 32px); display: flex; flex-direction: column; justify-content: space-between; transform: rotateY(calc(var(--i) * 90deg)) translateZ(var(--R)); backface-visibility: hidden; box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .5); transition: background .6s, color .6s; }
.ring-card i { font-style: normal; font-size: clamp(44px, 5.4vw, 84px); line-height: .9; color: var(--accent); transition: color .6s; }
.ring-card p { color: var(--muted); margin-top: 8px; font-size: 15px; transition: color .6s; }
.ring-card.on { background: var(--accent); color: var(--accent-ink); }
.ring-card.on i, .ring-card.on p { color: inherit; }
.ring-floor { position: absolute; left: 50%; bottom: 6%; width: 60%; height: 40px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(0, 0, 0, .22), transparent); filter: blur(10px); pointer-events: none; }
.ring-stage { position: relative; }
.ring-dots { display: flex; gap: 8px; justify-content: center; }
.ring-dots span { width: 34px; height: 3px; border-radius: 2px; background: rgba(0, 0, 0, .14); transition: background .4s; }
.ring-dots span.on { background: var(--accent); }

@media (max-width: 1000px) {
  .svcx, .svcrow .wrap { grid-template-columns: 1fr; }
  .svcrow.rev .svcrow-media { order: 0; }
}

/* ---------- v3: правки ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pills span { border: 1.5px solid currentColor; border-radius: 999px; padding: 5px 13px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.stack-text .h1 { margin: 0 0 14px; }
.stack-media .phone, .stack-media .phone + .phone { position: absolute; left: auto; opacity: 1; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); }
.stack-media .phone.front { position: relative; z-index: 1; height: auto; max-height: 76%; width: auto; max-width: 62%; transform: rotate(3deg) translateY(calc((var(--v, .5) - .5) * -70px)); }
.stack-media .phone.front > * { width: 100%; height: 100%; object-fit: cover; }
.stack-media .phone.back { left: 7%; top: 16%; height: 58%; z-index: 0; transform: rotate(-8deg) translateY(calc((var(--v, .5) - .5) * 80px)); }
.stack-media .phone.back img { width: 100%; height: 100%; object-fit: cover; }
.stack-media { min-height: 420px; }

/* услуги на главной: стеклянные карточки */
.gcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gcard { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--soft); isolation: isolate; }
.gcard-media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 6% 8% 25%; transition: transform 1.3s var(--ease-out); }
.gcard.full .gcard-media { padding: 0; }
.gcard.full .v-video { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.gcard:hover .gcard-media { transform: scale(1.05); }
.gcard:hover .v-deck img:nth-child(1) { transform: translateX(-52%) rotate(-13deg) scale(.86); }
.gcard:hover .v-deck img:nth-child(2) { transform: translateX(52%) rotate(13deg) scale(.86); }
.gcard-glass { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; padding: 16px 16px 16px 22px; border-radius: 22px; background: rgba(255, 255, 255, .58); backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%); border: 1px solid rgba(255, 255, 255, .75); box-shadow: 0 16px 40px -22px rgba(0, 0, 0, .45); display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: transform .7s var(--ease-out); }
.gcard:hover .gcard-glass { transform: translateY(-6px); }
.gcard-glass h3 { font-family: var(--display); font-stretch: 151%; font-variation-settings: "wdth" 151; font-weight: 800; text-transform: uppercase; font-size: clamp(14px, 1.4vw, 21px); line-height: 1.1; }
.gcard-glass p { color: #3a3a3c; font-size: 14px; margin-top: 4px; }
.gcard-arrow { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; transition: transform .6s var(--ease-out); }
.gcard-arrow svg { width: 18px; height: 18px; }
.gcard:hover .gcard-arrow { transform: rotate(45deg); }
.v-deck.tall { aspect-ratio: 5 / 7; }
.gcard .v-browser .browser-body { padding: 16px; gap: 8px; }
.gcard .v-browser .browser-body div i { height: clamp(40px, 5vw, 80px); }
.gcard .v-browser .browser-body b { height: 16px; }
.gcard .v-browser .browser-body u { height: 26px; width: 96px; }

/* лента рилсов: едет сама */
.reels-auto { padding: clamp(70px, 9vw, 130px) 0; overflow: hidden; background: var(--soft); }
.reels-auto-track { display: flex; gap: 18px; width: max-content; will-change: transform; }
.reels-auto .vcard { width: clamp(200px, 18vw, 280px); }

/* цифры */
.stats { gap: 16px; }
.stat { background: var(--soft); border: 0; border-radius: var(--r); padding: clamp(20px, 2.4vw, 34px); gap: 10px; align-content: space-between; min-height: clamp(170px, 17vw, 240px); }
.stat b { font-size: clamp(40px, 5.6vw, 92px); line-height: .95; color: var(--accent); }
.stat span { color: var(--text); font-weight: 500; }
.light .stat, .reels-auto .stat { background: #fff; }

/* карточки проектов: без обрезки */
.pcard, .pcard.big { grid-column: span 4; }
.pcard-media, .pcard.big .pcard-media { aspect-ratio: 4 / 5; background: var(--soft); }
.pcard-media img.bg { filter: blur(30px) saturate(1.25) brightness(.92); transform: scale(1.35); }
.pcard-media img.fg, .pcard-media video { object-fit: contain; }
.pcard:hover .pcard-media img.bg { transform: scale(1.45); }
.pcard:hover .pcard-media img.fg, .pcard:hover .pcard-media video { transform: scale(1.03); }
.pcard-plate { position: absolute; left: 12px; top: 12px; z-index: 2; max-width: calc(100% - 24px); padding: 8px 13px; border-radius: 12px; background: #fff; color: var(--text); font-size: 12px; font-weight: 600; line-height: 1.3; box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .3); }
.pcard-title b { font-size: clamp(14px, 1.2vw, 18px); }

/* кейс */
.block-head p { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.45; color: var(--text); max-width: 42em; margin-top: 6px; }
.gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(10px, 1.2vw, 18px); }
.gallery figure, .gallery figure.full { grid-column: auto; min-width: 0; border-radius: clamp(12px, 1.4vw, 20px); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.cyl-stage { perspective: 2200px; height: clamp(440px, 72vh, 720px); display: grid; place-items: center; overflow: hidden; margin: 0 calc(var(--pad) * -1); }
.cyl { --w: clamp(190px, 21vw, 310px); --R: calc(var(--w) * var(--n) / 5.6); position: relative; width: var(--w); aspect-ratio: 5 / 7; transform-style: preserve-3d; animation: cyl 60s linear infinite; }
.cyl-stage:hover .cyl { animation-play-state: paused; }
@keyframes cyl { from { transform: translateZ(calc(var(--R) * -1)) rotateX(-4deg) rotateY(0deg); } to { transform: translateZ(calc(var(--R) * -1)) rotateX(-4deg) rotateY(-360deg); } }
.cyl-card { position: absolute; inset: 0; margin: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; transform: rotateY(calc(var(--i) * 360deg / var(--n))) translateZ(var(--R)); backface-visibility: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.cyl-card img { width: 100%; height: 100%; object-fit: cover; }

/* призма: произвольное число граней */
.ring-card { transform: rotateY(calc(var(--i) * var(--step, 90deg))) translateZ(var(--R)); }

/* услуги: теги и 3D-иконки */
.svcrow-text .chip { background: none; box-shadow: inset 0 0 0 1.5px var(--text); color: var(--text); }
.svcrow-text .chip:hover { background: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent-ink); }
.svcrow-media, .svcx-stage { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.tools3d { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 48px 16px; perspective: 1000px; }
.tool3d { display: grid; justify-items: center; gap: 18px; font-size: 13px; font-weight: 500; text-align: center; }
.tool3d i { --side: color-mix(in srgb, var(--bg) 62%, #000); font-style: normal; width: 104px; height: 104px; border-radius: 26px; background: linear-gradient(145deg, color-mix(in srgb, var(--bg) 82%, #fff), var(--bg)); color: var(--fg); display: grid; place-items: center; font-weight: 800; font-size: 32px; letter-spacing: -.03em; transform: rotateX(24deg) rotateY(-26deg); box-shadow: 1px 1px 0 var(--side), 2px 2px 0 var(--side), 3px 3px 0 var(--side), 4px 4px 0 var(--side), 5px 5px 0 var(--side), 6px 6px 0 var(--side), 7px 7px 0 var(--side), 8px 8px 0 var(--side), 18px 26px 30px -8px rgba(0, 0, 0, .3); transition: transform .7s var(--ease-out), box-shadow .7s var(--ease-out); animation: bob 3.6s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -0.45s); }
.tool3d:hover i { transform: rotateX(0) rotateY(0) translateY(-10px) scale(1.06); box-shadow: 0 0 0 var(--side), 0 24px 30px -10px rgba(0, 0, 0, .35); }
@keyframes bob { to { translate: 0 -8px; } }

@media (max-width: 1000px) {
  .gcards { grid-template-columns: 1fr; }
  .pcard, .pcard.big { grid-column: span 6; }
  .stack-media .phone.front { max-height: 340px; }
}
@media (max-width: 600px) { .pcard, .pcard.big { grid-column: 1 / -1; } }

/* ---------- v4 ---------- */
.stack-media { background: #1d1d1f; }
.stack-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(46px) saturate(1.3) brightness(.82); transform: scale(1.4); }

.pcard-media img.fg, .pcard-media video { object-fit: contain; }
.pcard.fill .pcard-media img.fg { object-fit: cover; }
.pcard-title { margin-top: 2px; }
.pcard-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.pcard-tags span { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }

.block.alt { background: color-mix(in srgb, var(--c, #888) 8%, #fff); }
.block-n { display: inline-flex; align-items: flex-start; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.block-n em { font-style: normal; font-size: 11px; color: var(--muted); letter-spacing: 0; transform: translateY(-3px); }
.block.has-bleed { padding-bottom: 0; background: color-mix(in srgb, var(--c, #888) 14%, #fff); }
.bleed { margin: 0; width: 100%; max-height: 96vh; overflow: hidden; cursor: zoom-in; display: flex; justify-content: center; }
.bleed img { width: 100%; height: auto; max-height: 96vh; object-fit: cover; }
.gallery.big figure { flex: 1 1 100% !important; max-width: 100% !important; }
.slide.frame { background: linear-gradient(160deg, #fff, color-mix(in srgb, var(--c, #888) 22%, #fff)); box-shadow: none; }
.slide.frame img { object-fit: contain; padding: 8%; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .28)); }

.toolgroups { display: grid; gap: clamp(36px, 5vw, 64px); }
.toolgroup { display: grid; gap: 26px; }
.tools3d { grid-template-columns: repeat(auto-fill, minmax(150px, 170px)); }
.vrows { display: grid; }
.vrow { display: grid; grid-template-columns: clamp(80px, 12vw, 190px) 1fr 1.2fr; gap: clamp(16px, 3vw, 48px); align-items: start; padding: clamp(26px, 3.4vw, 48px) 0; border-top: 1px solid var(--line); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out), padding .6s var(--ease-out), background .4s; }
.vrow:first-child { border-top-color: var(--text); }
.vrow:hover { padding-left: 18px; padding-right: 18px; background: #fff; }
.vrow i { font-style: normal; font-family: var(--display); font-stretch: 151%; font-variation-settings: "wdth" 151; font-weight: 800; font-size: clamp(36px, 5vw, 80px); line-height: .9; color: var(--accent); }
.vrow p { color: var(--muted); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.45; }
@media (max-width: 1000px) { .vrow { grid-template-columns: 1fr; } }

/* ---------- v5 ---------- */
/* избранные: симметричная пара */
.duo { position: relative; z-index: 1; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 9% 6%; }
.duo > * { height: 74%; width: auto; max-width: 50%; flex: none; object-fit: cover; border-radius: 20px; box-shadow: 0 30px 70px -28px rgba(0, 0, 0, .7); transition: transform 1s var(--ease-out); }
.duo > .land { height: auto; width: 56%; max-width: 56%; }
.duo .a { transform: translateX(9%) rotate(-5deg) translateY(calc((var(--v, .5) - .5) * 60px)); }
.duo .b { transform: translateX(-9%) rotate(4deg) translateY(calc((var(--v, .5) - .5) * -60px)); z-index: 1; }
.stack-card:hover .duo .a { transform: translateX(2%) rotate(-7deg); }
.stack-card:hover .duo .b { transform: translateX(-2%) rotate(6deg); }
.stack-text .pills span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* «Работы»: обложка-коллаж */
.pcard-media { background: var(--soft); }
.pfan { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.pfan img { position: absolute; inset: auto; height: 68%; width: auto; max-width: 62%; object-fit: cover; border-radius: 14px; box-shadow: 0 22px 50px -24px rgba(0, 0, 0, .55); transition: transform .9s var(--ease-out); }
.pfan img:nth-child(1) { transform: translateX(-34%) rotate(-9deg) scale(.86); }
.pfan img:nth-child(2) { transform: translateX(34%) rotate(9deg) scale(.86); }
.pfan img:nth-child(3) { transform: none; }
.pcard:hover .pfan img:nth-child(1) { transform: translateX(-46%) rotate(-13deg) scale(.86); }
.pcard:hover .pfan img:nth-child(2) { transform: translateX(46%) rotate(13deg) scale(.86); }
.pcard:hover .pfan img:nth-child(3) { transform: translateY(-3%) scale(1.03); }
.pfan.land img { height: auto; width: 74%; max-width: 74%; }
.pfan.land img:nth-child(1) { transform: translateY(-46%) rotate(-4deg) scale(.9); }
.pfan.land img:nth-child(2) { transform: translateY(46%) rotate(4deg) scale(.9); }
.pcard:hover .pfan.land img:nth-child(1) { transform: translateY(-58%) rotate(-6deg) scale(.9); }
.pcard:hover .pfan.land img:nth-child(2) { transform: translateY(58%) rotate(6deg) scale(.9); }

/* кейс: паспорт проекта справа от заголовка */
@media (min-width: 1001px) {
  .case-hero .wrap { grid-template-columns: 1.35fr 1fr; column-gap: clamp(32px, 5vw, 90px); align-items: start; }
  .case-hero .wrap > * { grid-column: 1; }
  .case-hero .wrap > .case-meta { grid-column: 2; grid-row: 2 / span 3; align-self: end; }
}
.case-meta { display: block; margin: 0; padding: 6px 24px; border: 0; border-radius: 22px; background: var(--soft); }
.case-meta div { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); align-items: baseline; }
.case-meta div:first-child { border-top: 0; }
.case-meta small { font-size: 12px; }
.case-meta b { font-size: 15px; font-weight: 500; }

/* блоки без цветных заливок */
.block.alt, .block.has-bleed { background: var(--soft); }
.slide.frame { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.block-n { color: var(--accent); }
.bleed { max-height: none; }
.bleed img { max-height: none; height: auto; object-fit: contain; }
.daynight { position: relative; }
.daynight .night { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: night 7s ease-in-out infinite; }
@keyframes night { 0%, 35% { opacity: 0; } 50%, 85% { opacity: 1; } 100% { opacity: 0; } }
.pgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(8px, 1vw, 16px); }
.pgrid figure { margin: 0; border-radius: clamp(10px, 1.2vw, 18px); overflow: hidden; cursor: zoom-in; aspect-ratio: 1; }
.pgrid img { width: 100%; height: 100%; object-fit: cover; }

/* карусели: стрелки по бокам */
.slider-wrap { position: relative; }
.sl-arrow { position: absolute; top: 50%; z-index: 3; width: 54px; height: 54px; margin-top: -27px; border-radius: 50%; background: #fff; color: var(--text); display: grid; place-items: center; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .35); transition: background .3s, color .3s, transform .4s var(--ease-out), opacity .3s; }
.sl-arrow svg { width: 18px; height: 18px; }
.sl-arrow.sl-prev { left: -14px; } .sl-arrow.sl-next { right: -14px; }
.sl-arrow:hover { background: var(--accent); color: var(--accent-ink); transform: scale(1.08); }
.sl-arrow:disabled { opacity: 0; pointer-events: none; }
.cyl-stage:hover .cyl { animation-play-state: running; }

/* следующий кейс — отдельным тёмным блоком */
.next { background: #1d1d1f; color: #f5f5f7; }
.next .kicker { color: rgba(255, 255, 255, .55); }
.next:hover { background: var(--accent); }

/* инструменты: 3D-облако */
.tcloud { position: relative; height: clamp(420px, 60vh, 620px); perspective: 1200px; cursor: grab; user-select: none; }
.tc { position: absolute; left: 50%; top: 50%; display: grid; justify-items: center; gap: 10px; font-size: 13px; font-weight: 600; will-change: transform, opacity; pointer-events: none; }
.tc i { --side: color-mix(in srgb, var(--bg) 60%, #000); font-style: normal; width: 96px; height: 96px; border-radius: 24px; background: linear-gradient(145deg, color-mix(in srgb, var(--bg) 80%, #fff), var(--bg)); color: var(--fg); display: grid; place-items: center; font-weight: 800; font-size: 30px; letter-spacing: -.03em; box-shadow: 0 6px 0 var(--side), 0 26px 40px -14px rgba(0, 0, 0, .45); }
.tc span { white-space: nowrap; }

@media (max-width: 1000px) {
  .pgrid { grid-template-columns: repeat(3, 1fr); }
  .sl-arrow { display: none; }
}

/* ---------- v6 ---------- */
/* «Что мы делаем»: без плашек, крупные визуалы с 3D-наклоном */
.gcards { gap: clamp(28px, 4vw, 64px) clamp(20px, 3vw, 48px); }
.gcard { background: none; aspect-ratio: auto; overflow: visible; border-radius: 0; display: grid; gap: 18px; }
.gcard-media { position: relative; inset: auto; aspect-ratio: 4 / 3; padding: 0; perspective: 1100px; display: flex; align-items: center; justify-content: center; }
.gcard-media > * { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease-out); transform-style: preserve-3d; }
.gcard:hover .gcard-media { transform: none; }
.gcard .v-row { width: 100%; height: 100%; gap: 3%; }
.gcard .v-row > * { height: 92%; }
.gcard .v-row > :nth-child(2) { height: 100%; }
.gcard .v-deck { height: 96%; }
.gcard .v-browser { width: 92%; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, .4); }
.gcard-cap h3 { font-family: var(--display); font-stretch: 151%; font-variation-settings: "wdth" 151; font-weight: 800; text-transform: uppercase; font-size: clamp(16px, 1.6vw, 24px); line-height: 1.1; transition: color .3s; }
.gcard:hover .gcard-cap h3 { color: var(--accent); }
.gcard-cap p { color: var(--muted); margin-top: 6px; }

/* «Работы»: обложки без подложки */
.pcard-media { background: none; overflow: visible; border-radius: 0; }
.pfan img { height: 80%; max-width: 66%; }
.pfan.land img { width: 82%; max-width: 82%; height: auto; }

/* кейс: паспорт проекта внутри блока «О клиенте» */
.case-hero .wrap { display: grid; grid-template-columns: 1fr; }
.case-hero .wrap > * { grid-column: 1; }
.spec { margin: 18px 0 0; display: grid; }
.spec div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.spec dt { color: var(--muted); font-size: 14px; }
.spec dd { margin: 0; font-weight: 500; font-size: 16px; line-height: 1.35; }
.brief p { font-size: clamp(17px, 1.3vw, 20px); }

/* полноширинные картинки: ровные отступы сверху и снизу */
.block.has-bleed { background: #fff; padding-bottom: clamp(60px, 8vw, 120px); }
.block.has-bleed .block-head { margin-bottom: clamp(28px, 3.4vw, 48px); }

/* инструменты: бегущие строки */
.trows { display: grid; gap: clamp(6px, 1vw, 14px); overflow: hidden; padding: 6px 0; }
.trow { overflow: hidden; }
.trow-track { display: flex; width: max-content; will-change: transform; }
.trow span { font-family: var(--display); font-stretch: 151%; font-variation-settings: "wdth" 151; font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 5.4vw, 88px); line-height: 1.05; white-space: nowrap; padding: 0 clamp(14px, 1.8vw, 30px); display: inline-flex; align-items: center; gap: clamp(28px, 3.6vw, 60px); color: var(--text); }
.trow span::after { content: ""; width: .28em; height: .28em; border-radius: 50%; background: var(--accent); }
.trow:nth-child(2) span { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.trow:nth-child(3) span { color: var(--accent); }
@media (max-width: 1000px) { .spec div { grid-template-columns: 100px 1fr; } }

.svcrow-media, .svcx-stage { background: none; box-shadow: none; overflow: visible; padding: 0; border-radius: 0; aspect-ratio: 4 / 3; }
.svcrow-media .v-row { width: 100%; height: 100%; gap: 3%; }
.svcrow-media .v-browser { box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, .4); }


/* ---------- v7 ---------- */
/* «Что мы делаем»: аккуратные блоки, ничего не выходит за края */
.gcards { gap: 20px; }
.gcard { background: #fff; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; display: flex; flex-direction: column; gap: 0; transition: box-shadow .4s, transform .6s var(--ease-out); }
.gcard:hover { box-shadow: inset 0 0 0 1px var(--text); transform: translateY(-4px); }
.gcard-media { aspect-ratio: 16 / 10; padding: 7% 9% 4%; perspective: 1100px; overflow: hidden; }
.gcard .v-row { width: 100%; height: 100%; gap: 4%; }
.gcard .v-row > * { height: 86%; }
.gcard .v-row > :nth-child(2) { height: 96%; }
.gcard .v-deck { height: 88%; }
.gcard .v-deck img:nth-child(1) { transform: translateX(-30%) rotate(-8deg) scale(.86); }
.gcard .v-deck img:nth-child(2) { transform: translateX(30%) rotate(8deg) scale(.86); }
.gcard:hover .v-deck img:nth-child(1) { transform: translateX(-38%) rotate(-11deg) scale(.86); }
.gcard:hover .v-deck img:nth-child(2) { transform: translateX(38%) rotate(11deg) scale(.86); }
.gcard .v-browser { width: 88%; }
.gcard-cap { padding: 6px clamp(22px, 2.6vw, 36px) clamp(22px, 2.6vw, 34px); }

/* «Работы»: компактные обложки-карточки одного формата */
.pcard-media { overflow: hidden; }
.pfan .fc { position: absolute; height: 64%; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .5); transition: transform .9s var(--ease-out); }
.pfan .fc.crop, .pfan .fc.logo { aspect-ratio: 4 / 5 !important; }
.pfan .fc img { position: static; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: none !important; box-shadow: none; border-radius: 0; }
.pfan .fc.logo { box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -20px rgba(0, 0, 0, .35); display: grid; place-items: center; }
.pfan .fc.logo img { width: 72%; height: auto; max-height: 60%; object-fit: contain; }
.pfan .fc:nth-child(1) { transform: translateX(-36%) rotate(-8deg) scale(.84); }
.pfan .fc:nth-child(2) { transform: translateX(36%) rotate(8deg) scale(.84); }
.pcard:hover .pfan .fc:nth-child(1) { transform: translateX(-44%) rotate(-11deg) scale(.84); }
.pcard:hover .pfan .fc:nth-child(2) { transform: translateX(44%) rotate(11deg) scale(.84); }
.pcard:hover .pfan .fc:nth-child(3) { transform: translateY(-3%); }

/* одиночная картинка в кейсе — по центру блока, без отдельных полос */
.wrap .bleed { border-radius: clamp(16px, 2vw, 28px); overflow: hidden; width: 100%; }
.wrap .bleed img { width: 100%; height: auto; }

/* инструменты: 3D-кольцо плиток */
.tstage { height: clamp(360px, 52vh, 520px); margin: 0; perspective: 1700px; }
.tcyl { --w: clamp(150px, 15vw, 220px); --R: calc(var(--w) * var(--n) / 5.2); aspect-ratio: 1; animation-duration: 46s; }
.cyl-card.tool { cursor: default; border-radius: 28px; background: linear-gradient(150deg, color-mix(in srgb, var(--bg) 78%, #fff), var(--bg)); color: var(--fg); display: grid; place-items: center; align-content: center; gap: 10px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .25); }
.cyl-card.tool i { font-style: normal; font-weight: 800; font-size: clamp(40px, 4.4vw, 68px); letter-spacing: -.04em; line-height: 1; }
.cyl-card.tool span { font-size: 13px; font-weight: 600; opacity: .85; }

.pfan .fc { height: auto; width: 44%; }
.pfan .fc:nth-child(1) { transform: translateX(-42%) rotate(-7deg) scale(.84); }
.pfan .fc:nth-child(2) { transform: translateX(42%) rotate(7deg) scale(.84); }
.pcard:hover .pfan .fc:nth-child(1) { transform: translateX(-50%) rotate(-10deg) scale(.84); }
.pcard:hover .pfan .fc:nth-child(2) { transform: translateX(50%) rotate(10deg) scale(.84); }


/* ---------- v8 ---------- */
.gcard, .gcard:hover { box-shadow: 0 24px 60px -34px rgba(0, 0, 0, .28), 0 2px 10px -4px rgba(0, 0, 0, .06); background: #fff; }
.gcard:hover { transform: translateY(-6px); box-shadow: 0 34px 70px -34px rgba(0, 0, 0, .34), 0 2px 10px -4px rgba(0, 0, 0, .06); }

/* обложки проектов: логотип в центре, две работы одного размера по бокам */
.pfan .fc, .pfan .fc.crop { aspect-ratio: 4 / 5 !important; width: 42%; }
.pfan .fc.logo { width: 46%; z-index: 2; background: #fff; }
.pfan .fc.logo img { width: 58%; max-height: 46%; }
.pfan .fc.logo.name b { font-family: var(--display); font-stretch: 151%; font-variation-settings: "wdth" 151; font-weight: 800; text-transform: uppercase; font-size: clamp(11px, 1vw, 15px); line-height: 1.15; text-align: center; padding: 0 12%; overflow-wrap: anywhere; }
.pfan .fc.logo.name::after { content: ""; position: absolute; left: 50%; bottom: 16%; width: 22px; height: 3px; margin-left: -11px; background: var(--accent); border-radius: 2px; }
.pfan .fc:nth-child(1) { transform: translateX(-46%) rotate(-7deg) scale(.86); }
.pfan .fc:nth-child(2) { transform: translateX(46%) rotate(7deg) scale(.86); }
.pcard:hover .pfan .fc:nth-child(1) { transform: translateX(-54%) rotate(-10deg) scale(.86); }
.pcard:hover .pfan .fc:nth-child(2) { transform: translateX(54%) rotate(10deg) scale(.86); }

/* инструменты: крупнее, с описанием */
.tstage { height: clamp(420px, 60vh, 640px); }
.tcyl { --w: clamp(180px, 18vw, 270px); animation-duration: 54s; }
.tstage:hover .tcyl, .tstage.held .tcyl { animation-play-state: paused; }
.cyl-card.tool { cursor: pointer; transition: filter .3s; }
.cyl-card.tool:hover { filter: brightness(1.12); }
.cyl-card.tool i { font-size: clamp(48px, 5vw, 84px); }
.cyl-card.tool span { font-size: 14px; }
.tcap { display: flex; gap: 18px; align-items: baseline; justify-content: center; flex-wrap: wrap; text-align: center; min-height: 3.2em; margin-top: 8px; }
.tcap b { font-family: var(--display); font-stretch: 151%; font-variation-settings: "wdth" 151; font-weight: 800; text-transform: uppercase; font-size: clamp(16px, 1.6vw, 24px); color: var(--accent); }
.tcap span { color: var(--muted); font-size: clamp(16px, 1.25vw, 19px); }

.pcard-media, .pcard.big .pcard-media { aspect-ratio: 5 / 4; }
.pfan .fc, .pfan .fc.crop { width: 40%; }
.pfan .fc.logo { width: 44%; }
.pfan .fc:nth-child(1) { transform: translateX(-62%) rotate(-6deg) scale(.88); }
.pfan .fc:nth-child(2) { transform: translateX(62%) rotate(6deg) scale(.88); }
.pcard:hover .pfan .fc:nth-child(1) { transform: translateX(-70%) rotate(-9deg) scale(.88); }
.pcard:hover .pfan .fc:nth-child(2) { transform: translateX(70%) rotate(9deg) scale(.88); }
.pfan .fc.logo.name b { font-size: clamp(12px, 1.15vw, 17px); }


/* ---------- v9 ---------- */
.pfan .fc.logo.full img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.pfan .fc.logo img { width: 70%; max-height: 40%; }

/* инструменты: кольцо со стрелками, прокруткой зажатием и всплывающей карточкой */
.tstage { position: relative; cursor: grab; user-select: none; touch-action: pan-y; overflow: hidden; height: clamp(460px, 66vh, 700px); }
.tstage.drag { cursor: grabbing; }
.tcyl { animation: none !important; }
.tstage .t-prev { left: clamp(12px, 4vw, 60px); } .tstage .t-next { right: clamp(12px, 4vw, 60px); }
.tstage .sl-arrow { display: grid; }
.tpop { position: absolute; left: 50%; bottom: clamp(10px, 3vh, 28px); z-index: 4; width: min(520px, calc(100% - 32px)); display: flex; gap: 18px; align-items: center; padding: 18px 22px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1.5px var(--text), 0 30px 60px -30px rgba(0, 0, 0, .45); transform: translate(-50%, 24px) scale(.94); opacity: 0; pointer-events: none; transition: transform .55s var(--ease-out), opacity .3s; }
.tpop.on { transform: translate(-50%, 0); opacity: 1; }
.tpop i { flex: none; font-style: normal; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-weight: 800; font-size: 22px; letter-spacing: -.03em; background: var(--bg, #1d1d1f); color: var(--fg, #fff); }
.tpop b { display: block; font-family: var(--display); font-stretch: 151%; font-variation-settings: "wdth" 151; font-weight: 800; text-transform: uppercase; font-size: 16px; margin-bottom: 4px; }
.tpop p { color: var(--muted); font-size: 15px; line-height: 1.4; }

.pfan .fc.logo.name b { font-size: clamp(10px, .92vw, 14px); overflow-wrap: normal; word-break: normal; hyphens: auto; padding: 0 9%; }
.pfan .fc.logo img { width: 78%; max-height: 44%; }


/* ---------- v10 ---------- */
/* «Почему с нами удобно»: при наведении только подсветка, текст не двигается */
.vrows { margin: 0 -22px; }
.vrow, .vrow:hover { padding: clamp(26px, 3.4vw, 48px) 22px; }
.vrow { border-radius: 20px; border-top-color: transparent !important; box-shadow: 0 -1px 0 var(--line); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out), background .35s, box-shadow .35s; }
.vrow:hover { background: #fff; box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .3); }
.vrow:hover i { color: var(--text); }
.vrow i { transition: color .35s; }
.pfan .fc.logo img { width: 80%; max-height: 52%; }

/* ---------- v11 ---------- */
/* вертикальные ролики: слева название, справа время — как у горизонтальных */
.vcard-info { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 70px 16px 16px; }
.vcard-info b { letter-spacing: -.015em; text-wrap: balance; }
.vcard-info small, .film-info small { flex: none; white-space: nowrap; font-size: 12px; font-weight: 500; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .72); padding-bottom: 2px; }

/* ---------- v12 ---------- */
:root { --max: 1680px; }
.page-head .lead { max-width: 46em; }
.curtain .logo small { opacity: 1; animation: none; }
.done li, .done li b { cursor: default; }

/* окно просмотра: ровное затемнение на весь экран */
.modal { inset: -2px; background: rgba(8, 8, 9, .95); backdrop-filter: none; -webkit-backdrop-filter: none; }

/* «Что мы делаем» — карточки по дуге в 3D */
.arc { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.5vw, 28px); perspective: 2200px; perspective-origin: 50% 35%; padding: 34px 0 20px; }
.arc-item { transform-style: preserve-3d; transform: rotateY(calc((1.5 - var(--i)) * 15deg + var(--mx, 0deg))) translateZ(calc(var(--e) * 54px)); transition: transform .9s var(--ease-out); will-change: transform; }
.arc-item:hover { transform: rotateY(0deg) translateZ(96px); z-index: 2; }
.arc-card { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .38), 0 2px 12px -4px rgba(0, 0, 0, .08); }
.arc-media { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 11% 9% 5%; }
.arc-media .v-row { width: 100%; height: auto; gap: 4%; }
.arc-media .v-row > * { height: auto; width: 29%; }
.arc-media .v-row > :nth-child(2) { height: auto; width: 34%; }
.arc-media .v-deck { height: 74%; }
.arc-media .v-browser { width: 100%; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -34px rgba(0, 0, 0, .4); }
.arc-media .v-browser .browser-body { padding: 14px; gap: 8px; }
.arc-media .v-browser .browser-body div i { height: clamp(34px, 3.4vw, 60px); }
.arc-cap { padding: 4px clamp(18px, 1.8vw, 30px) clamp(22px, 2vw, 32px); display: grid; gap: 8px; }
.arc-cap i { font-style: normal; font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .06em; }
.arc-cap h3 { font-family: var(--display); font-stretch: 151%; font-variation-settings: "wdth" 151; font-weight: 800; text-transform: uppercase; font-size: clamp(14px, 1.15vw, 21px); line-height: 1.12; }
.arc-cap p { color: var(--muted); font-size: clamp(14px, 1vw, 16px); line-height: 1.4; }
@media (max-width: 1100px) {
  .arc { grid-template-columns: repeat(2, 1fr); perspective: none; padding: 0; gap: 16px; }
  .arc-item, .arc-item:hover { transform: none; }
}
@media (max-width: 560px) { .arc { grid-template-columns: 1fr; } .arc-media { aspect-ratio: 4 / 3; padding: 8% 12% 4%; } }

/* инструменты: стрелки рядом с центральной плиткой, подсветка при наведении на плитку */
.tstage { --w: clamp(180px, 18vw, 270px); }
.tstage .t-prev { left: calc(50% - var(--w) / 2 - 84px); right: auto; }
.tstage .t-next { right: calc(50% - var(--w) / 2 - 84px); left: auto; }
.tstage .sl-arrow { z-index: 5; transition: background .3s, color .3s, transform .4s var(--ease-out); }
.tstage:has(.tool:hover) .sl-arrow, .tstage .sl-arrow:hover { background: var(--accent); color: #fff; }
.tpop { box-shadow: 0 0 0 1.5px var(--text); }
.cyl-card.tool i svg, .tpop i svg { width: 1em; height: 1em; display: block; }
.tpop i svg { width: 34px; height: 34px; }
.tpop i { box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 700px) { .tstage .t-prev { left: 12px; } .tstage .t-next { right: 12px; } }
.arc-media { padding: 9% 6% 4%; }
.arc-media .v-row > * { width: 31%; }
.arc-media .v-row > :nth-child(2) { width: 36%; }
.arc-media .v-deck { height: 84%; }

/* ---------- v13 ---------- */
:root { --pad: clamp(20px, 5vw, 96px); }

/* первый экран: без filter и blend поверх видео — так оно не «гаснет» в браузере */
.hero2-video { filter: none; }
.hero2-tint { mix-blend-mode: normal; opacity: calc(.8 * (1 - clamp(0, (var(--p, 0) - .1) * 4, 1))); }
.hero2-tint + .hero2-tint { background: #000; opacity: calc(.55 * clamp(0, (var(--p, 0) - .5) * 5, 1)); }
.hero2-text .h1 { font-size: clamp(17px, min(2.1vw, 3.8vh), 34px); }

/* услуги: ролики помещаются в блок целиком */
.svcrow-media .v-row { height: auto; align-items: center; }
.svcrow-media .v-row > * { height: auto; width: 30%; min-width: 0; }
.svcrow-media .v-row > :nth-child(2) { height: auto; width: 34%; }
.svcrow-media .v-deck { height: 78%; }
.svcrow-media:hover .v-deck img:nth-child(1) { transform: translateX(-40%) rotate(-11deg) scale(.86); }
.svcrow-media:hover .v-deck img:nth-child(2) { transform: translateX(40%) rotate(11deg) scale(.86); }

/* инструменты */
.tnav { display: flex; gap: 10px; }
.tbtn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1.5px var(--text); color: var(--text); transition: background .3s, color .3s, box-shadow .3s, transform .4s var(--ease-out); }
.tbtn svg { width: 20px; height: 20px; }
.tbtn:hover { background: var(--accent); color: #fff; box-shadow: inset 0 0 0 1.5px var(--accent); transform: scale(1.06); }
.tstage { height: clamp(360px, 50vh, 540px); overflow-x: clip; overflow-y: visible; }
.cyl-card.tool { transition: filter .3s, box-shadow .4s; }
.cyl-card.tool.front { box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.tcap { max-width: 640px; margin: clamp(8px, 2vh, 26px) auto 0; min-height: 132px; text-align: center; display: grid; gap: 12px; align-content: start; justify-items: center; opacity: 0; transform: translateY(8px); transition: opacity .22s, transform .5s var(--ease-out); }
.tcap.on { opacity: 1; transform: none; }
.tcap b { font-family: var(--display); font-stretch: 151%; font-variation-settings: "wdth" 151; font-weight: 800; text-transform: uppercase; font-size: clamp(20px, 2vw, 32px); line-height: 1.1; }
.tcap b::after { content: ""; display: block; width: 36px; height: 2px; background: var(--text); margin: 14px auto 0; }
.tcap p { color: var(--muted); font-size: clamp(16px, 1.2vw, 19px); line-height: 1.45; text-wrap: balance; }

/* «Почему с нами удобно» */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.why-card { background: #fff; border-radius: var(--r); padding: clamp(24px, 2.6vw, 44px); display: grid; gap: 14px; align-content: start; box-shadow: 0 24px 60px -40px rgba(0, 0, 0, .25); }
.why-card span { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--muted); margin-bottom: clamp(20px, 4vw, 64px); }
.why-card h3 { font-size: clamp(20px, 1.7vw, 27px); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.why-card p { color: var(--muted); font-size: clamp(15px, 1.1vw, 17px); line-height: 1.5; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } .why-card span { margin-bottom: 8px; } }

/* кольцо карточек: тень не обрезается */
.cyl-stage { overflow-x: clip; overflow-y: visible; }

@media (max-width: 1000px) {
  .cyl-stage { height: clamp(330px, 48vh, 520px); }
  .tstage { height: clamp(300px, 40vh, 440px); }
  .stat { min-height: 0; }
  .stat b { font-size: clamp(52px, 10vw, 92px); }
  .stat span { font-size: 16px; }
  .clinks-row { gap: 10px; margin-top: 40px; }
  .clinks-row .clink, .clinks-row .clink:hover { min-height: 0; padding: 18px 22px; align-items: center; border-radius: 18px; }
  .task .manifest { font-size: clamp(27px, 4.6vw, 42px); }
  .brief { gap: 14px; }
  .brief > div { background: #fff; border-radius: var(--r); padding: clamp(22px, 4.4vw, 40px); }
  /* галереи: вертикальные макеты — по три в ряд, горизонтальные — на всю ширину */
  .gallery figure.pt { flex: 0 1 calc(33.333% - 12px) !important; max-width: none !important; }
  .gallery figure.ls { flex: 1 1 100% !important; max-width: 100% !important; }
  .gallery.pack figure.ls:not(:first-child) { flex: 1 1 calc(50% - 9px) !important; }
  .gallery.wide figure { flex: 1 1 100% !important; max-width: 100% !important; }
}
@media (max-width: 560px) { .gallery figure.pt { flex-basis: calc(50% - 6px) !important; } .gallery.pack figure.ls:not(:first-child) { flex-basis: 100% !important; } }
.tcap b { color: var(--text); }
.tnav { flex: none; }
.head .tnav { display: flex !important; flex-direction: row; align-items: center; gap: 10px; width: auto; }
.head .tnav .tbtn { flex: none; margin: 0; }

/* ---------- v14 ---------- */
/* «Почему с нами удобно» — объёмные карточки */
.why3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.8vw, 30px); perspective: 1800px; padding: 10px 0 30px; }
.why3 .w3[data-reveal] { opacity: 0; transform: rotateY(-42deg) translateZ(-220px) translateX(-60px); transform-origin: left center; transition: opacity .9s var(--ease-out), transform 1.3s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
.why3 .w3[data-reveal].in { opacity: 1; transform: none; }
.w3 { perspective: 1200px; animation: w3float 5.5s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -1.8s); }
@keyframes w3float { from { translate: 0 8px; } to { translate: 0 -8px; } }
.w3-in { position: relative; height: 100%; min-height: clamp(380px, 31vw, 520px); background: #fff; border-radius: clamp(24px, 2.4vw, 38px); padding: clamp(24px, 2.4vw, 42px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease-out), box-shadow .5s; box-shadow: 0 40px 70px -46px rgba(0, 0, 0, .4), 0 2px 10px -4px rgba(0, 0, 0, .06); }
.w3:hover { animation-play-state: paused; }
.w3:hover .w3-in { box-shadow: 0 70px 90px -50px rgba(0, 0, 0, .5), 0 2px 10px -4px rgba(0, 0, 0, .06); transition: transform .12s linear, box-shadow .5s; }
.w3-n { font-family: var(--display); font-stretch: 151%; font-variation-settings: "wdth" 151; font-weight: 800; font-size: clamp(84px, 9.5vw, 176px); line-height: .8; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--text); transform: translateZ(30px); transition: transform .6s var(--ease-out), color .5s; }
.w3:hover .w3-n { transform: translateZ(110px); color: var(--text); }
.w3-t { display: grid; gap: 12px; transform: translateZ(24px); transition: transform .6s var(--ease-out); }
.w3:hover .w3-t { transform: translateZ(64px); }
.w3-t h3 { font-size: clamp(20px, 1.7vw, 28px); font-weight: 600; letter-spacing: -.025em; line-height: 1.14; }
.w3-t p { color: var(--muted); font-size: clamp(15px, 1.08vw, 17px); line-height: 1.5; }
.w3-line { position: absolute; left: clamp(24px, 2.4vw, 42px); right: clamp(24px, 2.4vw, 42px); top: 50%; height: 1.5px; background: var(--text); transform: translateZ(10px) scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out); }
.w3:hover .w3-line { transform: translateZ(40px) scaleX(1); }
@media (max-width: 900px) {
  .why3 { grid-template-columns: 1fr; perspective: 1100px; }
  .why3 .w3[data-reveal] { transform: rotateX(38deg) translateZ(-120px) translateY(60px); transform-origin: center top; }
  .w3 { animation: none; }
  .w3-in { min-height: 0; gap: 22px; }
  .w3-n { font-size: clamp(72px, 20vw, 120px); }
  .w3-line { display: none; }
}
@media (prefers-reduced-motion: reduce) { .w3 { animation: none; } .why3 .w3[data-reveal] { opacity: 1; transform: none; } }

/* слайд-шоу */
.fader { position: relative; border-radius: clamp(16px, 2vw, 26px); overflow: hidden; background: var(--soft); cursor: pointer; }
.fader img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1.1s ease; }
.fader img.on { opacity: 1; }
.fader-dots { position: absolute; left: 0; right: 0; bottom: clamp(10px, 1.4vw, 18px); display: flex; gap: 6px; justify-content: center; }
.fader-dots span { width: 26px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .5); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .15); transition: background .4s; }
.fader-dots span.on { background: #fff; }

/* контакты */
.talk .tl { display: block; margin-bottom: .55em; }
.talk-select { display: none; font: inherit; letter-spacing: inherit; color: var(--accent); background: none; border: 0; border-bottom: 2px solid var(--line); border-radius: 0; padding: 0 .1em; max-width: 100%; outline: none; }

/* первый экран на вертикальных экранах */
.hero2-text .h1 { font-size: clamp(20px, min(4.2vw, 3.8vh), 34px); }
@media (max-aspect-ratio: 1/1) { .expand-words.display { font-size: clamp(40px, 10.5vw, 100px); } }

@media (max-width: 700px) {
  .hero2-hint { left: 0; right: 0; transform: none; text-align: center; white-space: nowrap; font-size: 10px; top: 86px; }
  .hero2-text { bottom: clamp(70px, 15vh, 140px); }
  .hero2-text .h1 { font-size: clamp(22px, 6.4vw, 32px); max-width: 13em; }
  .hero2-text .hero-cta { display: none; }
  /* избранные кейсы и горизонтальные ролики — листаются вбок */
  .stack, .films { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(var(--pad) * -1); padding: 4px var(--pad) 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .stack::-webkit-scrollbar, .films::-webkit-scrollbar { display: none; }
  .stack-card { flex: 0 0 86%; scroll-snap-align: center; min-height: 0; position: relative; top: auto; display: flex; flex-direction: column; }
  .stack-media { min-height: 0; height: 300px; order: -1; }
  .stack-text { padding: 22px; gap: 18px; flex: 1; }
  .stack-text .lead { font-size: 15px; }
  .film { flex: 0 0 88%; scroll-snap-align: center; }
  .cta .h1 { font-size: clamp(28px, 8.6vw, 46px); }
  .cta .lead { font-size: 15px; max-width: 21em; }
  .bleed.pan { overflow-x: auto; justify-content: flex-start; border-radius: 16px; scrollbar-width: none; }
  .bleed.pan img { width: auto; height: 56vh; max-width: none; }
  .picks { display: none; }
  .talk-select { display: inline-block; }
  .talk { line-height: 1.5; }
  .talk .tl { margin-bottom: 1.1em; }
  .talk input[type=text], .talk-select { display: block; width: 100% !important; margin-top: .35em; padding: .2em 0; }
}
@media (max-width: 480px) {
  .stats { gap: 10px; }
  .stat { padding: 16px; min-width: 0; }
  .stat b { font-size: clamp(34px, 11.5vw, 56px); }
  .stat span { font-size: 13px; overflow-wrap: anywhere; }
}
.talk .dot { font-style: normal; }
@media (max-width: 700px) { .talk .dot { display: none; } }

/* ---------- v15 ---------- */
/* инструменты: тонкие стрелки, кольцо видно и сзади */
.tbtn { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .22); }
.tbtn svg { stroke-width: 1.5; }
.tbtn:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.cyl-card.tool { backface-visibility: visible; transition: filter .3s, box-shadow .4s, opacity .5s; }
.cyl-card.tool.rear { opacity: .32; filter: saturate(.55) brightness(1.05); box-shadow: none; pointer-events: none; }
.cyl-card.tool.rear > * { transform: scaleX(-1); }

/* контакты */
.ct-sec { padding-top: clamp(50px, 6vw, 100px); }
.ct { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.ct-left { display: grid; gap: 22px; position: sticky; top: 110px; }
.chs { display: grid; }
.ch { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: clamp(20px, 2.2vw, 32px) 0; border-top: 1px solid var(--line); }
.ch:first-child { border-top-color: var(--text); }
.ch small { display: block; color: var(--muted); font-size: 13px; letter-spacing: .04em; margin-bottom: 6px; }
.ch b { font-family: var(--display); font-stretch: 151%; font-variation-settings: "wdth" 151; font-weight: 800; text-transform: uppercase; font-size: clamp(16px, 1.55vw, 26px); overflow-wrap: anywhere; transition: color .3s; }
.ch i { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .22); transition: background .35s, color .35s, box-shadow .35s, transform .6s var(--ease-out); }
.ch i svg { width: 20px; height: 20px; }
.ch:hover b { color: var(--accent); }
.ch:hover i { background: var(--accent); color: #fff; box-shadow: inset 0 0 0 1px var(--accent); transform: rotate(45deg) scale(1.06); }
.ct-stage { perspective: 1600px; }
.ct-stage[data-reveal] { opacity: 0; transform: translateY(60px); transition: opacity .9s var(--ease-out), transform 1.2s var(--ease-out); }
.ct-stage[data-reveal].in { opacity: 1; transform: none; }
.ct-stage[data-reveal] .ct-card { transform: rotateX(22deg) translateZ(-80px); }
.ct-stage[data-reveal].in .ct-card { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.ct-card { background: #fff; border-radius: clamp(26px, 2.6vw, 42px); padding: clamp(24px, 3.2vw, 56px); display: grid; gap: clamp(22px, 2.2vw, 34px); transform-origin: center top; transition: transform 1s var(--ease-out); box-shadow: 0 60px 100px -60px rgba(0, 0, 0, .45), 0 2px 12px -4px rgba(0, 0, 0, .07); }
.ct-stage:hover .ct-card { transition: transform .2s linear; }
.ct-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: clamp(16px, 1.6vw, 24px); border-bottom: 1px solid var(--text); }
.ct-head b { font-family: var(--display); font-stretch: 151%; font-variation-settings: "wdth" 151; font-weight: 800; text-transform: uppercase; font-size: clamp(20px, 2vw, 32px); }
.ct-head span { color: var(--muted); font-size: 14px; }
.fld { display: grid; gap: 12px; }
.fld > label { display: flex; gap: 14px; align-items: baseline; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fld > label i { font-style: normal; color: var(--accent); font-variant-numeric: tabular-nums; }
.fld input[type=text] { font: inherit; font-size: clamp(18px, 1.5vw, 24px); font-weight: 500; letter-spacing: -.02em; color: var(--text); background: none; border: 0; border-bottom: 1.5px solid var(--line); border-radius: 0; outline: none; padding: 6px 0 12px; width: 100%; transition: border-color .3s; }
.fld input[type=text]::placeholder { color: rgba(0, 0, 0, .24); }
.fld input[type=text]:focus { border-color: var(--text); }
.ct-card .picks { margin: 0; }
.ct-card .picks span { height: 42px; padding: 0 18px; font-size: 15px; background: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.ct-card .picks input:checked + span { background: var(--text); color: #fff; box-shadow: inset 0 0 0 1px var(--text); }
.ct-card .talk-select { font-size: 18px; font-weight: 500; color: var(--text); width: 100%; padding: 6px 0 12px; border-bottom-width: 1.5px; }
.ct-card .form-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
@media (max-width: 1000px) {
  .ct { grid-template-columns: 1fr; }
  .ct-left { position: static; order: 2; }
  .ch i { width: 44px; height: 44px; }
}
@media (max-width: 700px) {
  .ct-card .picks { display: none; }
  .ct-card .talk-select { display: block; }
  .ct-head span { font-size: 12px; }
  .ct-card .form-row .btn { width: 100%; justify-content: center; }
}
.cyl-card.tool.rear { opacity: .5; }
.tstage { perspective-origin: 50% 30%; }
/* первый экран: плашка «Нейросети» — белая, сильнее скруглена */
.expand-words .accent { background: #fff; border-radius: .46em; padding: .26em .5em .14em; }
.tcap { margin-top: clamp(34px, 5vh, 60px); }

/* ---------- v16 ---------- */
/* «Почему с нами удобно»: сцена на прокрутке — цифра-барабан и сменяющийся текст */
.whys { height: 330vh; background: var(--soft); --q: calc(clamp(0, (var(--p, 0) - .1) * 1.25, 1) * 2); }
.whys-sticky { position: sticky; top: 0; height: 100vh; display: grid; align-items: center; overflow: hidden; }
.whys-sticky .wrap { display: grid; gap: clamp(20px, 4vh, 56px); }
.whys-scene { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 120px); align-items: center; }
.whys-drum { --h: clamp(200px, 30vw, 520px); height: var(--h); perspective: 1400px; display: grid; place-items: center start; }
.whys-roll { position: relative; width: 100%; height: var(--h); transform-style: preserve-3d; transform: translateZ(calc(var(--h) * -.289)) rotateX(calc(var(--q) * 120deg)); }
.whys-roll b { position: absolute; inset: 0; display: flex; align-items: center; font-family: var(--display); font-stretch: 151%; font-variation-settings: "wdth" 151; font-weight: 800; font-size: calc(var(--h) * .82); line-height: 1; letter-spacing: -.05em; color: var(--text); backface-visibility: hidden; transform: rotateX(calc(var(--i) * -120deg)) translateZ(calc(var(--h) * .289)); }
.whys-items { position: relative; min-height: clamp(260px, 34vh, 360px); }
.whys-items article { --d: calc(var(--q) - var(--i)); --a: max(var(--d), calc(var(--d) * -1)); position: absolute; inset: 0; display: grid; gap: 18px; align-content: center; opacity: calc(1 - var(--a) * 2.4); transform: translateY(calc(var(--d) * -90px)); pointer-events: none; }
.whys-items span { display: none; }
.whys-items h3 { font-size: clamp(26px, 3vw, 52px); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; text-wrap: balance; }
.whys-items p { color: var(--muted); font-size: clamp(16px, 1.3vw, 21px); line-height: 1.5; max-width: 30em; }
.whys-bar { height: 2px; background: var(--line); }
.whys-bar i { display: block; height: 100%; background: var(--text); transform-origin: left; transform: scaleX(calc(.34 + var(--q) * .33)); }
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .whys { height: auto; padding: clamp(60px, 10vw, 110px) 0; }
  .whys-sticky { position: static; height: auto; overflow: visible; }
  .whys-scene { grid-template-columns: 1fr; }
  .whys-drum, .whys-bar { display: none; }
  .whys-items { min-height: 0; display: grid; }
  .whys-items article { position: static; opacity: 1; transform: none; padding: 26px 0; border-top: 1px solid var(--line); gap: 12px; }
  .whys-items article:first-child { border-top-color: var(--text); }
  .whys-items span { display: block; font-family: var(--display); font-stretch: 151%; font-variation-settings: "wdth" 151; font-weight: 800; font-size: clamp(44px, 13vw, 72px); line-height: .9; letter-spacing: -.04em; }
  .whys-items h3 { font-size: clamp(22px, 5.6vw, 30px); }
}

/* ---------- v17 ---------- */
.stack-bg { filter: none; transform: scale(1.15); }
.tcap { margin-top: clamp(64px, 10vh, 120px); }

/* контакты: тёмный акцентный блок */
.cx-sec { padding-bottom: clamp(80px, 10vw, 150px); }
.cx { background: #151516; color: #fff; border-radius: clamp(28px, 3vw, 48px); padding: clamp(26px, 4.4vw, 80px); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(34px, 6vw, 110px); align-items: start; }
.cx[data-reveal] { opacity: 0; transform: translateY(70px) scale(.96); transition: opacity .9s var(--ease-out), transform 1.3s var(--ease-out); }
.cx[data-reveal].in { opacity: 1; transform: none; }
.cx-info { display: grid; gap: 20px; align-content: start; }
.cx-info h2 { font-family: var(--display); font-stretch: 151%; font-variation-settings: "wdth" 151; font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 3vw, 50px); line-height: 1.04; }
.cx-info p { color: rgba(255, 255, 255, .62); font-size: clamp(16px, 1.25vw, 20px); line-height: 1.45; max-width: 24em; }
.cx-links { display: grid; margin-top: clamp(20px, 4vw, 64px); }
.cx-links > span { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-bottom: 12px; }
.cx-links a { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .14); transition: padding .5s var(--ease-out), color .3s; }
.cx-links a small { color: rgba(255, 255, 255, .5); font-size: 14px; }
.cx-links a b { font-weight: 600; font-size: clamp(15px, 1.2vw, 19px); overflow-wrap: anywhere; }
.cx-links a svg { width: 18px; height: 18px; opacity: .5; transition: transform .5s var(--ease-out), opacity .3s; }
.cx-links a:hover { padding-left: 10px; }
.cx-links a:hover svg { opacity: 1; transform: translate(3px, -3px); }
.cx-form { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 1.8vw, 26px); }
.cx-f { display: grid; gap: 10px; align-content: start; }
.cx-f.full, .cx-send.full { grid-column: 1 / -1; }
.cx-f > span { font-size: 15px; font-weight: 600; color: #fff; }
.cx-f input[type=text], .cx-f textarea, .cx .talk-select { font: inherit; font-size: 17px; color: #fff; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; padding: 17px 20px; width: 100%; outline: none; resize: vertical; transition: border-color .3s, background .3s; }
.cx-f textarea { min-height: 120px; line-height: 1.45; }
.cx-f input::placeholder, .cx-f textarea::placeholder { color: rgba(255, 255, 255, .36); }
.cx-f input[type=text]:focus, .cx-f textarea:focus, .cx .talk-select:focus { border-color: #fff; background: rgba(255, 255, 255, .11); }
.cx .picks { margin: 0; gap: 8px; }
.cx .picks span { height: 46px; padding: 0 20px; font-size: 15px; background: none; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.cx .picks label:hover span { box-shadow: inset 0 0 0 1px #fff; }
.cx .picks input:checked + span { background: #fff; color: #151516; box-shadow: inset 0 0 0 1px #fff; }
.cx .talk-select { display: none; }
.cx .talk-select option { color: #151516; }
.cx-send { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.cx-send .btn { height: 60px; padding: 0 30px; font-size: 16px; }
.cx-send .btn.ghost { background: none; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); border-color: transparent; }
.cx-send .btn.ghost:hover { background: #fff; color: #151516; }
@media (max-width: 1000px) { .cx { grid-template-columns: 1fr; } .cx-links { margin-top: 8px; } }
@media (max-width: 700px) {
  .cx-form { grid-template-columns: 1fr; }
  .cx .picks { display: none; }
  .cx .talk-select { display: block; }
  .cx-send .btn { width: 100%; justify-content: center; }
  .cx-links a { grid-template-columns: 84px 1fr auto; }
}

/* ---------- v18: производительность ---------- */
.nav { background: rgba(255, 255, 255, .97); backdrop-filter: none; -webkit-backdrop-filter: none; }
.mobile-menu { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
.stack-card { filter: none; }
.cyl-card.tool.rear { filter: none; opacity: .38; }
.cyl-card.tool:hover { filter: none; }
.v-row > img { object-fit: cover; }

/* ---------- v19: контакты — светлый блок вместо чёрного ---------- */
.cx { background: var(--soft); color: var(--text); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); }
.cx-info h2 { color: var(--text); }
.cx-info p { color: var(--muted); }
.cx-links > span { color: var(--muted); }
.cx-links a { border-top-color: var(--line); }
.cx-links a:first-of-type { border-top-color: var(--text); }
.cx-links a small { color: var(--muted); }
.cx-links a:hover b { color: var(--accent); }
.cx-links a svg { opacity: .55; }
.cx-f > span { color: var(--text); }
.cx-f input[type=text], .cx-f textarea, .cx .talk-select { color: var(--text); background: #fff; border: 1px solid rgba(0, 0, 0, .12); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.cx-f input::placeholder, .cx-f textarea::placeholder { color: rgba(0, 0, 0, .32); }
.cx-f input[type=text]:focus, .cx-f textarea:focus, .cx .talk-select:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(143, 18, 32, .1); }
.cx .picks span { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }
.cx .picks label:hover span { box-shadow: inset 0 0 0 1px var(--text); }
.cx .picks input:checked + span { background: var(--accent); color: #fff; box-shadow: inset 0 0 0 1px var(--accent); }
.cx-send .btn.ghost { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.cx-send .btn.ghost:hover { background: var(--text); color: #fff; }

/* ---------- v20: «О студии» — цифры компактной строкой, чтобы не спорили с 01–03 ниже ---------- */
.facts-sec { padding: 0 0 clamp(70px, 9vw, 140px); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--text); }
.facts > div { display: flex; align-items: baseline; gap: 14px; padding: clamp(18px, 2vw, 28px) clamp(14px, 1.6vw, 26px) 0 0; }
.facts > div + div { padding-left: clamp(14px, 1.6vw, 26px); border-left: 1px solid var(--line); }
.facts b { font-size: clamp(26px, 2.6vw, 44px); font-weight: 600; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.facts span { color: var(--muted); font-size: clamp(13px, 1vw, 16px); line-height: 1.3; }
@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div { flex-direction: column; gap: 6px; padding: 18px 12px 18px 0; border-bottom: 1px solid var(--line); }
  .facts > div + div { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
}

/* ---------- v21: инструменты на планшете и телефоне — лента с объёмом вместо кольца ---------- */
@media (max-width: 900px) {
  .tstage { --w: clamp(150px, 42vw, 230px); height: auto; perspective: none; overflow-x: auto; overflow-y: hidden; display: block; cursor: default; padding: 26px 0 46px; margin: 0; scrollbar-width: none; touch-action: pan-x pan-y; }
  .tstage::-webkit-scrollbar { display: none; }
  .tstage .tcyl { position: static; display: flex; gap: clamp(10px, 3vw, 18px); width: max-content; aspect-ratio: auto; justify-self: start; align-self: start; transform: none !important; transform-style: flat; animation: none; --R: 0px; padding: 0 calc(50vw - var(--w) / 2); }
  .tstage .cyl-card.tool { position: relative; inset: auto; flex: none; width: var(--w); aspect-ratio: 1; opacity: var(--op, 1); transform: perspective(900px) rotateY(var(--ry, 0deg)) scale(var(--sc, 1)); transition: none; backface-visibility: visible; pointer-events: auto; }
  .tstage .cyl-card.tool > * { transform: none; }
  .tstage .cyl-card.tool i { font-size: clamp(40px, 13vw, 76px); }
  .tcap { margin-top: 6px; min-height: 150px; padding: 0 var(--pad); }
}

/* ---------- v23: спокойные заголовки, воздух между блоками, цветные плитки работ ---------- */
.page-head .display, .case-hero .display { font-size: clamp(28px, 4.4vw, 78px); line-height: 1.02; letter-spacing: -.02em; }
.head > .h1, .head > h2.h1, .reels-auto .head .h1, .ring-sticky .head .h1, .whys-sticky h2.h1 { font-size: clamp(26px, 3.4vw, 60px); line-height: 1.04; letter-spacing: -.015em; }
.head { margin-bottom: clamp(30px, 4vw, 64px); }

/* главная: блоки отделены друг от друга линией и воздухом */
.sec-sep { padding-top: 0; }
.sec-sep > .wrap { padding-top: clamp(80px, 9vw, 150px); position: relative; }
.sec-sep > .wrap::before { content: ""; position: absolute; left: var(--pad); right: var(--pad); top: 0; height: 1px; background: var(--line); }
.arc { padding-bottom: clamp(60px, 7vw, 120px); }
.reels-auto { padding-top: clamp(70px, 8vw, 140px); }

/* работы: прежняя карточка, но плитка в цвете проекта */
.pcard-media { background: var(--tile, var(--soft)); border-radius: clamp(20px, 2vw, 34px); overflow: hidden; transition: border-radius .7s var(--ease-out); }
.pcard:hover .pcard-media { border-radius: clamp(34px, 3.6vw, 64px); }

/* заголовок кейса: больше воздуха между буквами и акцент в цвете проекта */
.page-head .display, .case-hero .display { letter-spacing: .012em; }
.case-hero .display { position: relative; padding-bottom: .42em; }
.case-hero .display::after { content: ""; position: absolute; left: 0; bottom: 0; width: clamp(70px, 9vw, 160px); height: clamp(8px, .9vw, 14px); border-radius: 99px; background: var(--tile, var(--accent)); transform-origin: left; animation: barIn 1s .45s var(--ease-out) both; }
@keyframes barIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- v24 ---------- */
/* работы: без цветной плашки — у карточек обводка в цвете проекта */
.pcard-media, .pcard:hover .pcard-media { background: none; border-radius: 0; overflow: visible; }
/* v25: вместо цветной обводки — мягкое свечение в цвете проекта за веером: «дышит» и разгорается при наведении.
   Только радиальный градиент + transform/opacity, без filter — правила производительности. */
.pfan::before { content: ""; position: absolute; left: 50%; top: 50%; width: 118%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tile, #8f1220) 46%, transparent) 0%, color-mix(in srgb, var(--tile, #8f1220) 20%, transparent) 46%, transparent 100%);
  transform: translate(-50%, -50%) scale(.82); opacity: .7; animation: fanGlow 5.5s ease-in-out infinite; transition: opacity .6s; }
.pcard:nth-child(2n) .pfan::before { animation-delay: -2.7s; }
@keyframes fanGlow { 0%, 100% { transform: translate(-50%, -50%) scale(.8); } 50% { transform: translate(-50%, -50%) scale(.96); } }
.pcard:hover .pfan::before { opacity: 1; animation-duration: 2.6s; }
.pfan .fc { box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 22px 44px -24px color-mix(in srgb, var(--tile, #000) 75%, #000); transition: transform .9s var(--ease-out), box-shadow .5s; }
.pfan .fc.logo { box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 0 34px -4px color-mix(in srgb, var(--tile, #8f1220) 45%, transparent), 0 22px 44px -24px rgba(0, 0, 0, .35); }
.pcard:hover .pfan .fc.logo { box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 0 60px 4px color-mix(in srgb, var(--tile, #8f1220) 55%, transparent), 0 28px 54px -24px rgba(0, 0, 0, .4); }
@media (prefers-reduced-motion: reduce) { .pfan::before { animation: none; } }

/* соцсети: круглые кнопки-иконки (подвал, контакты, финальный призыв) */
.soc { display: flex; gap: 10px; flex-wrap: wrap; }
.soc a { --s: 44px; position: relative; width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center; color: var(--text); background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: color .3s, background .3s, box-shadow .4s, transform .5s var(--ease-out); }
.soc a svg { width: 46%; height: 46%; transition: transform .5s var(--ease-out); }
.soc a::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--accent); opacity: 0; transform: scale(.9); transition: opacity .3s, transform .5s var(--ease-out); pointer-events: none; }
.soc a:hover { color: #fff; background: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), 0 10px 26px -10px color-mix(in srgb, var(--accent) 70%, transparent); transform: translateY(-3px); }
.soc a:hover svg { transform: scale(1.1) rotate(-6deg); }
.soc a:hover::after { opacity: .5; transform: scale(1.22); }
.soc-lg { margin-top: 28px; } .soc-lg a { --s: 54px; }
.soc-cta { justify-content: center; margin-top: 22px; }
/* языки: иероглифы — системными шрифтами, без сжатого трекинга; европейские — с переносами длинных слов */
:lang(zh) body, :lang(zh) .display, :lang(zh) .h1, :lang(zh) .h2, :lang(zh) .h3, :lang(zh) .wide { font-family: "Roboto Flex", "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif; }
:lang(ja) body, :lang(ja) .display, :lang(ja) .h1, :lang(ja) .h2, :lang(ja) .h3, :lang(ja) .wide { font-family: "Roboto Flex", "Inter", "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans JP", "Source Han Sans JP", sans-serif; }
:lang(zh) *, :lang(ja) * { letter-spacing: 0 !important; }
:lang(zh) .whys-roll b, :lang(ja) .whys-roll b { letter-spacing: -.05em !important; }   /* крупные латинские цифры — с прежним сжатием */
:lang(zh), :lang(ja) { line-break: strict; }
:lang(zh) .display, :lang(zh) .h1, :lang(zh) .h2, :lang(ja) .display, :lang(ja) .h1, :lang(ja) .h2 { line-height: 1.25; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) .display { word-break: auto-phrase; }
:lang(de) p, :lang(fr) p, :lang(es) p, :lang(de) .h1, :lang(de) .h2, :lang(de) .h3, :lang(de) .display, :lang(fr) .h1, :lang(fr) .h2, :lang(fr) .display, :lang(es) .h1, :lang(es) .h2, :lang(es) .display { hyphens: auto; -webkit-hyphens: auto; }
/* переключатель языка: глобус + код, список с флагами */
.nav-act { display: flex; align-items: center; gap: 10px; }
.lang { position: relative; }
.lang-btn { height: 32px; padding: 0 10px 0 8px; border-radius: 99px; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12px; font-weight: 600; color: var(--text); background: #fff; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .3s, color .3s; }
.lang-btn svg { width: 16px; height: 16px; transition: transform .6s var(--ease-out); }
.lang-btn:hover, .lang.open .lang-btn { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.lang.open .lang-btn svg, .lang-btn:hover svg { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 190px; padding: 6px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 24px 50px -20px rgba(0, 0, 0, .3); display: grid; opacity: 0; transform: translateY(-6px) scale(.97); transform-origin: top right; pointer-events: none; transition: opacity .25s, transform .35s var(--ease-out); z-index: 60; }
.lang.open .lang-menu { opacity: 1; transform: none; pointer-events: auto; }
.lang-menu a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; font-size: 14px; transition: background .2s, color .2s; }
.lang-menu a i { width: 24px; height: 16px; flex: none; display: block; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.lang-menu a i svg { width: 100%; height: 100%; display: block; }
.lang-menu a:hover { background: var(--soft); }
.lang-menu a[aria-current] { color: var(--accent); font-weight: 600; }
/* контакты без формы: Telegram крупно, быстрый старт, остальные каналы */
.ct-sec { padding: 0 0 clamp(70px, 9vw, 140px); }
.ct { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(16px, 2vw, 28px); align-items: start; }
.ct-main { display: grid; gap: clamp(16px, 2vw, 28px); }
.ct-tg { position: relative; overflow: hidden; display: grid; gap: 10px; padding: clamp(26px, 3vw, 44px); border-radius: clamp(22px, 2.4vw, 34px); background: var(--accent); color: #fff; isolation: isolate; transition: transform .6s var(--ease-out), box-shadow .5s; box-shadow: 0 30px 60px -36px color-mix(in srgb, var(--accent) 80%, #000); }
.ct-tg::before { content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; right: -18%; top: -40%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .22), transparent); transition: transform .9s var(--ease-out); }
.ct-tg:hover { transform: translateY(-4px); box-shadow: 0 40px 70px -34px color-mix(in srgb, var(--accent) 90%, #000); }
.ct-tg:hover::before { transform: translate(-12%, 18%) scale(1.15); }
.ct-tg-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.ct-tg small { font-size: 14px; opacity: .8; letter-spacing: .02em; }
.ct-tg b { font-family: var(--display); font-stretch: 151%; font-variation-settings: "wdth" 151; font-weight: 800; font-size: clamp(26px, 3.4vw, 52px); line-height: 1; letter-spacing: -.01em; overflow-wrap: anywhere; }
.ct-tg-note { font-size: 15px; opacity: .78; }
.ct-plane { width: clamp(38px, 4vw, 56px); height: auto; flex: none; transition: transform .7s var(--ease-out); }
.ct-tg:hover .ct-plane { transform: translate(10px, -10px) rotate(-8deg); }
.ct-quick { padding: clamp(24px, 2.8vw, 40px); border-radius: clamp(22px, 2.4vw, 34px); background: var(--soft); }
.ct-quick h2 { font-family: var(--display); font-stretch: 151%; font-variation-settings: "wdth" 151; font-weight: 800; text-transform: uppercase; font-size: clamp(20px, 1.9vw, 28px); margin: 0 0 6px; }
.ct-quick p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.ct-picks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.ct-picks button { font: inherit; font-size: 15px; padding: 10px 16px; border-radius: 99px; border: 0; cursor: pointer; background: #fff; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); transition: background .25s, color .25s, box-shadow .25s, transform .4s var(--ease-out); }
.ct-picks button:hover { box-shadow: inset 0 0 0 1px var(--accent); transform: translateY(-2px); }
.ct-picks button[aria-pressed="true"] { background: var(--text); color: #fff; box-shadow: none; }
.ct-go { width: 100%; justify-content: center; height: 58px; font-size: 16px; }
.ct-go.ready { animation: ctPulse 2.4s ease-in-out infinite; }
@keyframes ctPulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 35%, transparent); } 50% { box-shadow: 0 0 0 10px transparent; } }
.ct-side { display: grid; gap: 12px; }
.ct-side > .kicker { margin-bottom: 4px; }
.ct-card { display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .35s, transform .5s var(--ease-out); }
.ct-card:hover { box-shadow: inset 0 0 0 1px var(--accent), 0 18px 40px -28px rgba(0, 0, 0, .35); transform: translateX(4px); }
.ct-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--text); transition: background .3s, color .3s; }
.ct-ic svg { width: 24px; height: 24px; }
.ct-ic em { font-style: normal; font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.ct-card:hover .ct-ic { background: var(--accent); color: #fff; }
.ct-card small { display: block; font-size: 13px; color: var(--muted); }
.ct-card b { display: block; font-weight: 600; font-size: clamp(15px, 1.2vw, 18px); overflow-wrap: anywhere; }
.ct-card > svg { width: 18px; height: 18px; opacity: .45; transition: transform .5s var(--ease-out), opacity .3s; }
.ct-card:hover > svg { opacity: 1; transform: translate(3px, -3px); }
.ct-side .soc { margin-top: 10px; }
@media (max-width: 900px) { .ct { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ct-go.ready { animation: none; } }
/* согласие под формой и правовые страницы */
.cx-agree { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.cx-agree input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.cx-agree a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.legal-h { max-width: 18em; }
.legal .wrap { max-width: 860px; }
.legal h2 { font-size: clamp(18px, 1.5vw, 22px); margin: 34px 0 10px; }
.legal p { margin: 0 0 12px; line-height: 1.6; color: #333; }
.legal a, .footer-note a { text-decoration: underline; text-underline-offset: 3px; }
.cx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cx-status { min-height: 1.4em; margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.cx-status.ok { color: #1f7a3a; } .cx-status.err { color: var(--accent); }
.footer-note { margin-top: 10px; font-size: 11px; color: var(--muted); opacity: .8; }
/* «Почему с нами удобно»: цифры в фирменном бордовом */
.whys-roll b, .whys-items span { color: var(--accent); }
