/* roilab.asia: тёплая бумага, чернила и один синий акцент, редакционная сетка, работы в центре внимания */

@font-face { font-family: 'Geologica'; font-style: oblique 0deg 12deg; font-weight: 300 900; font-display: swap; src: url(/fonts/geologica-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Geologica'; font-style: oblique 0deg 12deg; font-weight: 300 900; font-display: swap; src: url(/fonts/geologica-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Geologica'; font-style: oblique 0deg 12deg; font-weight: 300 900; font-display: swap; src: url(/fonts/geologica-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geologica'; font-style: oblique 0deg 12deg; font-weight: 300 900; font-display: swap; src: url(/fonts/geologica-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/fonts/oswald-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/fonts/oswald-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* токены: меняются здесь, всё остальное берёт их */
:root {
  --paper: #F2F1ED;
  --paper-2: #E7E5DF;
  --card: #FBFAF7;
  --ink: #0D1018;
  --ink-2: #171C27;
  --accent: #2453F2;
  --accent-2: #1A3FD0;
  --accent-soft: #DCE4FF;
  --accent-light: #8EA6FF;
  --bg: var(--paper);
  --text: var(--ink);
  --muted: #61656F;
  --line: rgba(13, 16, 24, .12);
  --line-2: rgba(13, 16, 24, .22);
  --f: 'Geologica', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --d: 'Oswald', 'Arial Narrow', sans-serif;
  --gut: clamp(16px, 3.4vw, 48px);
  --max: 1360px;
  --r: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
[data-theme="ink"] { --bg: var(--ink); --text: #F2F1ED; --muted: #9A9EA8; --line: rgba(255, 255, 255, .13); --line-2: rgba(255, 255, 255, .26); --card: var(--ink-2); color-scheme: dark; }
[data-theme="paper2"] { --bg: var(--paper-2); --card: #F6F5F1; }
[data-theme="accent"] { --bg: var(--accent); --text: #FFFFFF; --muted: rgba(255, 255, 255, .78); --line: rgba(255, 255, 255, .24); --line-2: rgba(255, 255, 255, .4); }
[data-theme] { background: var(--bg); color: var(--text); }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
html:not(.motion) { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--f); letter-spacing: -.005em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; flex: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: calc(820px + var(--gut) * 2); }

/* типографика */
.label { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.label span { color: var(--accent); font-variant-numeric: tabular-nums; }
[data-theme="ink"] .label span, [data-theme="accent"] .label span { color: var(--accent-light); }
.h2 { font-size: clamp(34px, 5.2vw, 78px); line-height: 1; letter-spacing: -.047em; font-weight: 620; max-width: 15ch; text-wrap: balance; }
.h3 { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.15; letter-spacing: -.025em; font-weight: 600; }
.sec { padding-block: clamp(80px, 11vw, 168px); position: relative; }
.sec-tight { padding-block: clamp(40px, 6vw, 88px); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 72px); }
.sec-lead { color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); max-width: 44ch; }
@media (min-width: 960px) {
  .sec-head { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: end; column-gap: 48px; }
  .sec-head .label { grid-column: 1 / -1; }
  .sec-lead { justify-self: end; }
}
.note { font-size: 14px; color: var(--muted); max-width: 52ch; margin-top: 28px; }
.prose { display: grid; gap: 16px; color: var(--muted); font-size: 17px; max-width: 60ch; }
.prose-l { color: var(--text); font-size: 18px; line-height: 1.65; gap: 20px; }
.prose-l h2 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.03em; line-height: 1.15; margin-top: 24px; }
.prose-l ul { display: grid; gap: 10px; padding-left: 0; }
.prose-l li { position: relative; padding-left: 22px; }
.prose-l li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: 0; vertical-align: middle; background: var(--paper-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.badge-own { background: var(--accent-soft); color: var(--accent-2); box-shadow: none; }

/* кнопки */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 54px; padding: 7px 7px 7px 24px;
  border: 0; border-radius: 999px; font-size: 15px; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:not(:has(i)) { padding: 0 24px; justify-content: center; }
.btn i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-style: normal; font-size: 18px; transition: transform .45s var(--ease), background-color .3s; }
.btn:hover i { transform: translateX(3px) rotate(-8deg); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink i { background: var(--accent); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent i { background: #fff; color: var(--accent); }
.btn-accent:hover { background: var(--accent-2); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light i { background: var(--accent); color: #fff; }
.btn-line { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-line i { background: var(--text); color: var(--bg); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--text); }
.btn-line-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.btn-line-light:hover { box-shadow: inset 0 0 0 1px #fff; }
.btn-sm { min-height: 44px; font-size: 14px; padding-left: 18px; }
.btn-sm i { width: 32px; height: 32px; font-size: 16px; }
.more-link { margin-top: clamp(32px, 4vw, 52px); }

/* шапка и меню */
.hd { position: sticky; top: 0; z-index: 60; transition: background-color .3s, box-shadow .3s; }
.hd.is-stuck { background: rgba(242, 241, 237, .86); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.hd-in { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo { display: grid; line-height: 1.15; text-decoration: none; margin-right: auto; }
.logo b { font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.logo span { font-size: 12px; color: var(--muted); }
.hd-nav { display: none; gap: 28px; }
.hd-nav a { font-size: 15px; text-decoration: none; color: var(--muted); transition: color .2s; position: relative; }
.hd-nav a:hover, .hd-nav a[aria-current] { color: var(--ink); }
.hd-nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); border-radius: 2px; }
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.langs a { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; text-decoration: none; color: var(--muted); }
.langs a[aria-current] { background: var(--ink); color: var(--paper); }
.hd-cta { display: none; }
.burger { display: grid; gap: 6px; width: 44px; height: 44px; place-content: center; border: 0; border-radius: 50%; background: var(--ink); cursor: pointer; }
.burger i { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--paper); transition: transform .4s var(--ease); }
.burger[aria-expanded="true"] i:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu { position: fixed; inset: 76px 0 0; z-index: 59; background: var(--paper); overflow-y: auto; }
.menu-in { display: grid; gap: 4px; padding-block: 24px 120px; }
.menu-in a { font-size: clamp(34px, 9vw, 56px); font-weight: 600; letter-spacing: -.04em; text-decoration: none; padding-block: 6px; border-bottom: 1px solid var(--line); }
.progress { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); }
@media (min-width: 640px) { .hd-cta { display: inline-flex; } }
@media (min-width: 1040px) { .hd-nav { display: flex; } .burger { display: none; } .logo { margin-right: 0; } .hd-nav { margin-left: auto; margin-right: 12px; } }

/* первый экран */
.hero { padding-top: clamp(20px, 4vw, 56px); overflow-x: clip; }
.hero-in { display: grid; gap: 44px; align-items: center; }
@media (min-width: 1040px) { .hero-in { grid-template-columns: minmax(0, 6.3fr) minmax(0, 5.7fr); gap: 56px; min-height: min(780px, calc(100svh - 150px)); } }
.hero-h { font-size: clamp(44px, 7.1vw, 118px); line-height: .94; letter-spacing: -.058em; font-weight: 640; }
.hero-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; font-size: 14px; font-weight: 500; letter-spacing: -.01em; color: var(--muted); line-height: 1.3; }
.hero-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.hero-a, .hero-b { display: block; }
.hero-b { color: var(--accent); font-style: oblique 9deg; }
.hero-lead { margin-top: 30px; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; color: var(--muted); max-width: 44ch; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 16px clamp(24px, 3.4vw, 48px); margin-top: clamp(32px, 4vw, 52px); padding-top: 22px; border-top: 1px solid var(--line); }
.hero-facts li { display: grid; gap: 4px; }
.hero-facts b { font-family: var(--d); font-size: clamp(34px, 3vw, 44px); line-height: 1; font-weight: 600; letter-spacing: -.01em; }
.hero-facts span { font-size: 13px; color: var(--muted); }
.hero-shots { position: relative; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); }
.hero-shots::-webkit-scrollbar { display: none; }
.shot { flex: none; height: 300px; border-radius: 14px; overflow: hidden; scroll-snap-align: start; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); }
.shot img { height: 100%; width: auto; max-width: none; object-fit: cover; }
.hero-tags { display: none; }
@media (min-width: 1040px) {
  .hero-shots { display: block; height: clamp(520px, 44vw, 680px); overflow: visible; margin: 0; padding: 0; }
  .shot { position: absolute; height: auto; box-shadow: 0 30px 60px -36px rgba(13, 16, 24, .45), 0 0 0 1px var(--line); will-change: transform; transition: box-shadow .4s; }
  .shot img { width: 100%; height: auto; }
  .shot:hover { box-shadow: 0 40px 70px -34px rgba(13, 16, 24, .55), 0 0 0 1px var(--line); z-index: 6; }
  .shot-0 { left: 0; top: 4%; width: 74%; z-index: 2; }
  .shot-1 { right: 0; top: 0; width: 29%; z-index: 3; }
  .shot-2 { left: 20%; bottom: 2%; width: 52%; z-index: 4; }
  .shot-3 { right: 2%; bottom: 14%; width: 38%; z-index: 3; }
  .shot-4 { left: -3%; bottom: 10%; width: 21%; z-index: 5; }
  .hero-tags { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 7; }
  .hero-tags span { position: absolute; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--card); box-shadow: 0 10px 24px -14px rgba(13, 16, 24, .4), 0 0 0 1px var(--line); }
  .hero-tags span:nth-child(1) { left: 62%; top: -3%; }
  .hero-tags span:nth-child(2) { right: -2%; top: 42%; background: var(--accent); color: #fff; box-shadow: none; }
  .hero-tags span:nth-child(3) { left: 50%; bottom: 0; }
  .hero-tags span:nth-child(4) { left: 6%; top: 52%; }
  .hero-tags span:nth-child(5) { left: 26%; top: -2%; background: var(--ink); color: #fff; box-shadow: none; }
  .hero-tags span:nth-child(6) { right: 30%; top: 30%; }
}

/* бренды */
.brands { display: grid; gap: 14px; margin-top: clamp(56px, 7vw, 100px); padding-block: 26px; border-block: 1px solid var(--line); }
.brands-l { text-align: center; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.brands-run { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.brands-in { display: inline-flex; align-items: center; gap: clamp(26px, 4vw, 60px); padding-right: clamp(26px, 4vw, 60px); white-space: nowrap; animation: run 30s linear infinite; }
.brands-in span { font-size: clamp(22px, 2.6vw, 36px); font-weight: 600; letter-spacing: -.035em; color: var(--ink); opacity: .82; }
.brands-in i { color: var(--accent); font-style: normal; font-size: 16px; }
@keyframes run { to { transform: translateX(-50%); } }

/* галерея работ: строки одной высоты, ширина по пропорциям картинки */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters button { height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font-size: 14px; color: var(--muted); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .25s, color .25s, box-shadow .25s; }
.filters button:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.gallery { --rowh: 210px; display: flex; flex-wrap: wrap; gap: 12px; }
.gallery::after { content: ""; flex-grow: 9999; }
.g-item { flex-grow: var(--r); flex-basis: calc(var(--r) * var(--rowh)); display: block; text-decoration: none; color: inherit; min-width: 0; }
.g-item figure { position: relative; overflow: hidden; border-radius: 14px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); }
.g-item img { width: 100%; height: auto; aspect-ratio: var(--r); object-fit: cover; transition: transform 1s var(--ease); }
.g-item figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 14px; border-radius: 10px; font-size: 13px; color: #fff; background: rgba(13, 16, 24, .74); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transform: translateY(calc(100% + 14px)); transition: transform .55s var(--ease); }
.g-item figcaption span { color: rgba(255, 255, 255, .7); text-align: right; }
.g-item:hover img { transform: scale(1.045); }
.g-item:hover figcaption, .g-item:focus-visible figcaption { transform: none; }
.g-item.is-hidden { display: none; }
@media (min-width: 760px) { .gallery { --rowh: 280px; gap: 14px; } }
@media (min-width: 1200px) { .gallery { --rowh: 330px; } }
@media (hover: none) {
  .g-item figcaption { position: static; transform: none; background: none; color: var(--text); padding: 10px 2px 2px; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .g-item figcaption span { color: var(--muted); }
  .g-item figure { overflow: visible; background: none; box-shadow: none; }
  .g-item img { border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
}

/* проблема: пять разных стилей собираются в одну систему */
.problem { padding-block: 0; }
.problem-pin { padding-block: clamp(80px, 10vw, 140px); min-height: 100svh; display: flex; align-items: center; }
.problem-in { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1040px) { .problem-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.problem-h { margin-top: 22px; font-size: clamp(40px, 5.4vw, 86px); line-height: .98; letter-spacing: -.05em; font-weight: 620; }
.problem-h span { display: block; }
.problem-h span:nth-child(2) { color: var(--muted); }
.problem-h span:nth-child(3) { color: var(--accent-light); }
.problem-lead { margin-top: 26px; color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); max-width: 42ch; }
.problem-after { margin-top: 18px; font-size: clamp(16px, 1.3vw, 19px); max-width: 42ch; padding-left: 16px; border-left: 2px solid var(--accent-light); }
.problem-cards { --p: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pc { margin: 0; display: grid; gap: 8px; transform: translate(calc(var(--sx) * (1 - var(--p))), calc(var(--sy) * (1 - var(--p)))) rotate(calc(var(--sr) * (1 - var(--p)))); }
.pc:last-child { grid-column: 1 / -1; }
.pc figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12px; }
.pc figcaption b { font-weight: 600; font-size: 13px; }
.pc-who, .pc-sys { color: var(--muted); }
.pc-sys { display: none; color: var(--accent-light); }
.pc-0 { --sx: -10px; --sy: 14px; --sr: -6deg; }
.pc-1 { --sx: 14px; --sy: -8px; --sr: 5deg; }
.pc-2 { --sx: -6px; --sy: 22px; --sr: 4deg; }
.pc-3 { --sx: 12px; --sy: 6px; --sr: -7deg; }
.pc-4 { --sx: -14px; --sy: -10px; --sr: 3deg; }
@media (min-width: 760px) {
  .problem-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
  .pc { grid-column: span 2; }
  .pc-0, .pc-1 { grid-column: span 3; }
  .pc:last-child { grid-column: span 2; }
  .pc-0 { --sx: -40px; --sy: 30px; --sr: -8deg; }
  .pc-1 { --sx: 30px; --sy: -24px; --sr: 7deg; }
  .pc-2 { --sx: -24px; --sy: 40px; --sr: 6deg; }
  .pc-3 { --sx: 36px; --sy: 18px; --sr: -9deg; }
  .pc-4 { --sx: -30px; --sy: -30px; --sr: 5deg; }
}
.pc > div { position: relative; display: grid; align-content: space-between; gap: 10px; min-height: 150px; padding: 16px; overflow: hidden; transition: background-color .6s var(--ease), color .6s var(--ease), border-radius .6s var(--ease), font-family 0s; }
.pc > div b { font-size: 20px; line-height: 1.05; }
.pc > div span { font-size: 13px; }
.pc > div em { justify-self: start; font-style: normal; font-size: 12px; padding: 6px 12px; transition: background-color .6s, color .6s, border-radius .6s; }
.pc > div i { position: absolute; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .5; }
.pc > div i:nth-child(1) { left: 14px; } .pc > div i:nth-child(2) { left: 26px; } .pc > div i:nth-child(3) { left: 38px; }
.pm-site { background: #FFF6E5; color: #6A2F0E; font-family: Georgia, serif; border-radius: 3px; padding-top: 34px !important; }
.pm-site em { background: #6A2F0E; color: #FFF6E5; border-radius: 0; }
.pm-ig { background: #FF5FA2; color: #fff; font-family: 'Courier New', monospace; border-radius: 28px; }
.pm-ig em { background: #fff; color: #FF5FA2; border-radius: 20px; }
.pm-ad { background: #161616; color: #FFD400; font-family: var(--d); text-transform: uppercase; border-radius: 0; }
.pm-ad b { font-size: 30px !important; }
.pm-ad em { background: #FFD400; color: #161616; }
.pm-car { background: #7CF2C4; color: #0B3D2E; font-family: 'Trebuchet MS', sans-serif; border-radius: 10px; }
.pm-car b { font-size: 34px !important; }
.pm-car em { background: #0B3D2E; color: #7CF2C4; border-radius: 50%; }
.pm-deck { background: #6B4CFF; color: #fff; font-family: 'Times New Roman', serif; font-style: italic; border-radius: 6px; }
.pm-deck em { background: rgba(255, 255, 255, .2); color: #fff; }
.problem-cards.is-unified .pc > div { background: var(--paper); color: var(--ink); font-family: var(--f); font-style: normal; text-transform: none; border-radius: 14px; }
.problem-cards.is-unified .pc > div b { font-size: 20px !important; letter-spacing: -.03em; }
.problem-cards.is-unified .pc > div em { background: var(--accent); color: #fff; border-radius: 999px; }
.problem-cards.is-unified .pc-who { display: none; }
.problem-cards.is-unified .pc-sys { display: inline; }
html.motion .problem-after { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
html.motion .problem-cards.is-unified ~ .problem-after, html.motion .problem.is-unified .problem-after { opacity: 1; transform: none; }

/* решение */
.sol-list { display: grid; border-top: 1px solid var(--line); }
.sol-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 18px; padding: 24px 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease); }
.sol-n { grid-row: span 2; font-family: var(--d); font-size: 20px; color: var(--accent); padding-top: 4px; }
.sol-list h3 { font-size: clamp(22px, 2.3vw, 34px); letter-spacing: -.035em; line-height: 1.1; font-weight: 600; }
.sol-list p { color: var(--muted); max-width: 52ch; }
@media (min-width: 960px) {
  .sol-list li { grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; padding: 30px 0; }
  .sol-n { grid-row: auto; }
  .sol-list li:hover { padding-left: 14px; }
  .sol-list li:hover h3 { color: var(--accent); }
}

/* услуги: строки с картинкой, всплывающей у курсора */
.svc-list { border-top: 1px solid var(--line-2); }
.svc-row { position: relative; border-bottom: 1px solid var(--line-2); }
.svc-row > a { display: grid; grid-template-columns: 44px minmax(0, 1fr) 40px; gap: 6px 16px; align-items: center; padding: 26px 0; text-decoration: none; }
.svc-n { font-family: var(--d); font-size: 16px; color: var(--accent); }
.svc-row h3 { font-size: clamp(26px, 3.6vw, 52px); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; transition: transform .5s var(--ease), color .3s; }
.svc-row p { grid-column: 2; color: var(--muted); font-size: 15px; max-width: 46ch; }
.svc-arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 18px; font-style: normal; transition: background-color .3s, color .3s, transform .45s var(--ease); }
.svc-row > a .svc-arrow { grid-row: 1; grid-column: 3; }
.svc-row:hover h3 { transform: translateX(12px); color: var(--accent); }
.svc-row:hover .svc-arrow { background: var(--accent); color: #fff; box-shadow: none; transform: rotate(-45deg); }
.svc-sub { display: inline-block; margin: -14px 0 22px 60px; font-size: 14px; color: var(--accent); text-underline-offset: 3px; }
@media (min-width: 960px) {
  .svc-row > a { grid-template-columns: 80px minmax(0, 1.2fr) minmax(0, 1fr) 48px; padding: 34px 0; }
  .svc-row p { grid-column: 3; }
  .svc-row > a .svc-arrow { grid-column: 4; }
  .svc-sub { margin-left: 96px; }
}
.svc-float { position: fixed; left: 0; top: 0; z-index: 50; width: 300px; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; pointer-events: none; opacity: 0; transform: scale(.85); transition: opacity .35s, transform .45s var(--ease); box-shadow: 0 30px 60px -30px rgba(13, 16, 24, .6); }
.svc-float.is-on { opacity: 1; transform: scale(1); }
.svc-float img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .svc-float { display: none; } }

/* процесс */
.steps-line { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; margin-bottom: 26px; }
.steps-line i { display: block; height: 100%; background: var(--accent-light); transform-origin: left; transform: scaleX(0); }
html:not(.motion) .steps-line i { transform: none; }
.steps { display: grid; gap: 12px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .steps { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.steps li { position: relative; display: grid; align-content: start; gap: 10px; padding: 22px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); min-height: 210px; }
.step-n { font-family: var(--d); font-size: 44px; line-height: .9; font-weight: 600; color: transparent; -webkit-text-stroke: 1.2px var(--accent-light); }
.steps h3 { font-size: 20px; letter-spacing: -.02em; }
.steps p { font-size: 14px; color: var(--muted); }
.steps .step-last { background: var(--accent); box-shadow: none; }
.steps .step-last p { color: rgba(255, 255, 255, .85); }
.steps .step-last .step-n { -webkit-text-stroke-color: #fff; }
.steps .step-last svg { position: absolute; right: 18px; top: 18px; width: 28px; height: 28px; color: #fff; animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* тарифы */
.plans { display: grid; gap: 14px; }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; } }
.plan { display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 20px; padding: clamp(24px, 2.4vw, 34px); border-radius: 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.plan header { display: grid; gap: 6px; }
.plan h3 { font-family: var(--d); font-size: 26px; letter-spacing: .04em; font-weight: 600; }
.plan header p { color: var(--muted); font-size: 14px; }
.plan-price { font-family: var(--d); font-size: clamp(44px, 4.4vw, 62px); line-height: 1; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.plan ul, .sub ul { display: grid; gap: 10px; align-content: start; }
.plan li, .sub li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.4; }
.plan li svg, .sub li svg { margin-top: 2px; font-size: 18px; color: var(--accent); }
.plan-term { font-size: 14px; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); }
.plan .btn, .sub .btn { width: 100%; }
.plan-featured { background: var(--ink); color: var(--paper); box-shadow: none; --muted: #A2A6AF; --line: rgba(255, 255, 255, .14); }
.plan-featured li svg { color: var(--accent-light); }
/* сдвиг через top, а не transform: transform занят анимацией появления */
@media (min-width: 960px) { .plan-featured { position: relative; top: -14px; } }
.single-wrap { display: grid; gap: 28px; margin-top: clamp(48px, 6vw, 88px); }
@media (min-width: 960px) { .single-wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; } }
.singles { border-top: 1px solid var(--line-2); }
.singles li { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.singles b { font-family: var(--d); font-size: 22px; font-weight: 600; white-space: nowrap; }

/* сопровождение */
.subs { display: grid; gap: 14px; }
@media (min-width: 960px) { .subs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sub { display: grid; grid-template-rows: auto auto 1fr auto; gap: 20px; padding: clamp(24px, 2.4vw, 34px); border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line-2); }
.sub h3 { font-family: var(--d); font-size: 26px; letter-spacing: .04em; font-weight: 600; }
.sub-price { font-family: var(--d); font-size: clamp(44px, 4.4vw, 60px); line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.sub-price small { font-size: 18px; color: var(--muted); font-family: var(--f); font-weight: 500; }
.sub li svg { color: var(--accent-light); }
.sub-featured { background: var(--accent); box-shadow: none; --muted: rgba(255, 255, 255, .78); }
.sub-featured li svg { color: #fff; }
.sub-notes { display: grid; gap: 28px; margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }
@media (min-width: 960px) { .sub-notes { grid-template-columns: 1fr 1fr; gap: 56px; } }
.sub-terms, .sub-not { display: grid; gap: 12px; }
.sub-terms li, .sub-not li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.sub-terms svg { color: var(--accent-light); font-size: 20px; }
.sub-not svg { color: var(--muted); font-size: 20px; }
.sub-not li span { color: var(--muted); }
.sub-not-h { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

/* подход */
.why-in { display: grid; gap: 44px; align-items: start; }
@media (min-width: 960px) { .why-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; } }
.why-photo { position: relative; border-radius: 24px; overflow: hidden; background: var(--paper-2); }
.why-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.why-photo p { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; padding: 14px 16px; border-radius: 14px; color: #fff; background: rgba(13, 16, 24, .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 13px; }
.why-photo b { font-size: 16px; }
@media (min-width: 960px) { .why-photo { position: sticky; top: 100px; } }
.why-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.why-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 6px 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.why-list span { grid-row: span 2; font-family: var(--d); font-size: 20px; color: var(--accent); }
.why-list h3 { font-size: clamp(20px, 1.9vw, 28px); letter-spacing: -.03em; line-height: 1.15; }
.why-list p { color: var(--muted); }

/* вопросы */
.faq-in { display: grid; gap: 10px; }
@media (min-width: 960px) { .faq-in { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; } .faq-in .sec-head { grid-template-columns: 1fr; position: sticky; top: 100px; } }
.faq { border-top: 1px solid var(--line-2); }
.faq-i { border-bottom: 1px solid var(--line-2); interpolate-size: allow-keywords; }
.faq-i summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 0; cursor: pointer; list-style: none; font-size: clamp(17px, 1.5vw, 21px); font-weight: 500; letter-spacing: -.015em; }
.faq-i summary::-webkit-details-marker { display: none; }
.faq-i summary i { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .3s, transform .45s var(--ease); }
.faq-i summary i::before, .faq-i summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; background: currentColor; transform: translate(-50%, -50%); }
.faq-i summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-i[open] summary i { background: var(--accent); color: #fff; box-shadow: none; transform: rotate(45deg); }
.faq-i p { padding: 0 52px 24px 0; color: var(--muted); max-width: 62ch; }
.faq-i::details-content { height: 0; overflow: clip; transition: height .45s var(--ease), content-visibility .45s allow-discrete; }
.faq-i[open]::details-content { height: auto; }

/* финальный призыв и форма */
.final { padding-block: clamp(72px, 9vw, 140px); }
.final-in { display: grid; gap: 40px; }
@media (min-width: 1040px) { .final-in { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center; } }
.final-h { font-size: clamp(36px, 5vw, 76px); line-height: 1; letter-spacing: -.05em; font-weight: 620; max-width: 15ch; text-wrap: balance; }
.final-lead { margin-top: 22px; font-size: clamp(16px, 1.4vw, 20px); color: var(--muted); max-width: 42ch; }
.final-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.final-reply { margin-top: 16px; font-size: 13px; color: var(--muted); }
.final-form { padding: clamp(20px, 2.4vw, 32px); border-radius: 24px; background: var(--paper); color: var(--ink); --muted: #61656F; --line: rgba(13, 16, 24, .12); --line-2: rgba(13, 16, 24, .22); }
.final-or { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.lead { display: grid; gap: 12px; }
@media (min-width: 560px) { .lead { grid-template-columns: 1fr 1fr; } .lead-wide, .lead .btn, .lead-consent, .lead-status { grid-column: 1 / -1; } }
.lead label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.lead input, .lead textarea { width: 100%; min-height: 52px; padding: 14px 16px; border: 0; border-radius: 14px; background: #fff; font-size: 16px; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .2s; resize: vertical; }
.lead input:focus, .lead textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.lead [aria-invalid="true"] { box-shadow: inset 0 0 0 2px #E5484D; }
.lead .btn { justify-self: start; }
.lead-consent { font-size: 12px; color: var(--muted); }
.lead-status { font-size: 14px; min-height: 1.2em; }
.lead-status.is-ok { color: #12805C; }
.lead-status.is-err { color: #C42B32; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* подвал */
.ft { padding-block: clamp(56px, 7vw, 96px) 28px; }
.ft-in { display: grid; gap: 36px; }
@media (min-width: 760px) { .ft-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ft-in { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } }
.ft-name { font-size: 22px; font-weight: 650; letter-spacing: -.03em; margin-bottom: 8px; }
.ft-brand p { color: var(--muted); font-size: 14px; }
.ft-reply { margin-top: 14px; max-width: 30ch; }
.ft-h { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.ft ul { display: grid; gap: 8px; }
.ft a { text-decoration: none; font-size: 15px; transition: color .2s; }
.ft a:hover { color: var(--accent-light); }
.ft-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 52px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* кнопка связи на телефоне, курсор, уведомление, cookie */
.dock { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 55; transform: translateY(160%); transition: transform .5s var(--ease); }
.dock.is-on { transform: none; }
.dock .btn { width: 100%; box-shadow: 0 18px 40px -16px rgba(13, 16, 24, .55); }
@media (min-width: 900px) { .dock { display: none; } }
.cursor { position: fixed; left: 0; top: 0; z-index: 120; display: grid; place-items: center; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--accent); pointer-events: none; opacity: 0; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .3s, background-color .3s; }
.cursor.is-on { opacity: 1; }
.cursor.is-link { width: 40px; height: 40px; margin: -20px 0 0 -20px; background: rgba(36, 83, 242, .14); box-shadow: inset 0 0 0 1.5px var(--accent); }
.cursor.is-label { width: 112px; height: 112px; margin: -56px 0 0 -56px; background: var(--accent); }
.cursor span { font-size: 13px; font-weight: 500; color: #fff; text-align: center; line-height: 1.2; padding: 0 10px; opacity: 0; transition: opacity .2s; }
.cursor.is-label span { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
.toast { position: fixed; left: 50%; bottom: 90px; z-index: 130; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 140; display: grid; gap: 12px; max-width: 460px; padding: 18px; border-radius: 18px; background: var(--card); box-shadow: 0 20px 50px -20px rgba(13, 16, 24, .5), 0 0 0 1px var(--line); font-size: 14px; }
.cookie div { display: flex; gap: 8px; flex-wrap: wrap; }

/* внутренние страницы */
.page-hero { padding-block: clamp(32px, 5vw, 72px) clamp(40px, 5vw, 72px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: clamp(24px, 3vw, 40px); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs i { font-style: normal; opacity: .5; }
.page-h { font-size: clamp(44px, 7.4vw, 120px); line-height: .94; letter-spacing: -.058em; font-weight: 640; max-width: 14ch; text-wrap: balance; }
.page-h-s { font-size: clamp(36px, 5vw, 72px); max-width: 20ch; }
.page-lead { margin-top: 24px; font-size: clamp(17px, 1.5vw, 22px); color: var(--muted); max-width: 48ch; }
.page-hero .hero-btns { margin-top: 30px; }
.inc { display: grid; gap: 12px; }
@media (min-width: 760px) { .inc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .inc { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.inc li { display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: transform .5s var(--ease), box-shadow .3s; }
.inc li:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-2); }
.inc span { font-family: var(--d); font-size: 18px; color: var(--accent); }
.inc h3 { font-size: 21px; letter-spacing: -.02em; }
.inc p { color: var(--muted); font-size: 15px; }
.two-col { display: grid; gap: 32px; }
@media (min-width: 960px) { .two-col { grid-template-columns: 1fr 1fr; gap: 64px; } }
.fors { display: grid; gap: 12px; margin-top: 20px; }
.fors li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.fors svg { color: var(--accent); font-size: 20px; margin-top: 2px; }
.others { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.others a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; text-decoration: none; font-size: 14px; box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .25s, color .25s; }
.others a:hover { background: var(--ink); color: var(--paper); }
.svc-cards { display: grid; gap: 14px; }
@media (min-width: 760px) { .svc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .svc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.svc-card { position: relative; display: grid; gap: 10px; align-content: start; padding: 14px 14px 24px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: transform .5s var(--ease); }
.svc-card:hover { transform: translateY(-6px); }
.svc-card .svc-n { position: absolute; left: 26px; top: 24px; z-index: 2; color: #fff; }
.svc-card-img { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--paper-2); margin-bottom: 8px; }
.svc-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.svc-card:hover .svc-card-img img { transform: scale(1.05); }
.svc-card h2 { font-size: 23px; letter-spacing: -.03em; line-height: 1.15; padding-inline: 8px; padding-right: 56px; }
.svc-card p { color: var(--muted); font-size: 15px; padding-inline: 8px; }
.svc-card .svc-arrow { position: absolute; right: 22px; bottom: 22px; }
.svc-card:hover .svc-arrow { background: var(--accent); color: #fff; box-shadow: none; transform: rotate(-45deg); }

/* портфолио и кейсы */
.case-list { display: grid; gap: clamp(28px, 4vw, 56px) 20px; }
@media (min-width: 900px) {
  .case-list { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .case-card:nth-child(4n+1), .case-card:nth-child(4n+4) { grid-column: span 7; }
  .case-card:nth-child(4n+2), .case-card:nth-child(4n+3) { grid-column: span 5; }
  .case-card:nth-child(4n+2) { margin-top: 80px; }
}
.case-card { display: grid; gap: 16px; text-decoration: none; }
.case-card-img { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); }
.case-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.case-card:hover .case-card-img img { transform: scale(1.05); }
.case-card-t { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; }
.case-card-t .svc-n { grid-row: span 3; padding-top: 6px; }
.case-card h2 { font-size: clamp(24px, 2.4vw, 36px); letter-spacing: -.04em; line-height: 1.05; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.case-card p { color: var(--muted); max-width: 50ch; }
.case-client { font-size: 13px; color: var(--muted); display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.case-hero .case-client { margin-bottom: 18px; }
.case-cover { margin-top: clamp(32px, 4vw, 56px); border-radius: 24px; overflow: hidden; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); max-height: 78vh; }
.case-cover img { width: 100%; height: 100%; max-height: 78vh; object-fit: cover; object-position: 50% 0; }
.cs-blocks { display: grid; gap: 14px; }
@media (min-width: 900px) { .cs-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cs-block { display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.cs-block span { font-family: var(--d); color: var(--accent); }
.cs-block h2 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.cs-block p { font-size: clamp(18px, 1.6vw, 23px); line-height: 1.4; letter-spacing: -.02em; }
.cs-empty { box-shadow: inset 0 0 0 1.5px var(--accent); border: 0; background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(36, 83, 242, .05) 10px 20px); }
.cs-empty p { color: var(--accent); font-size: 15px; }
html.dev .cs-empty { display: grid !important; }
.cs-gallery { display: flex; flex-wrap: wrap; gap: 14px; --rowh: 260px; }
.cs-gallery::after { content: ""; flex-grow: 9999; }
@media (min-width: 900px) { .cs-gallery { --rowh: 440px; } }
.cs-shot { flex-grow: var(--r); flex-basis: calc(var(--r) * var(--rowh)); min-width: 0; }
.cs-shot img { width: 100%; aspect-ratio: var(--r); object-fit: cover; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.cs-shot figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.related { display: grid; gap: 14px; }
@media (min-width: 900px) { .related { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.related-svc, .next-case { position: relative; display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: 22px; text-decoration: none; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.related-svc b, .next-case b { font-size: clamp(26px, 2.8vw, 42px); letter-spacing: -.045em; line-height: 1.05; font-weight: 600; }
.related-svc p { color: var(--muted); padding-right: 56px; }
.related-svc .svc-arrow { position: absolute; right: 22px; bottom: 22px; }
.related-svc:hover .svc-arrow { background: var(--accent); color: #fff; box-shadow: none; transform: rotate(-45deg); }
.next-case { background: var(--ink); color: var(--paper); box-shadow: none; overflow: hidden; }
.next-case .label { color: #9A9EA8; }
.next-img { margin-top: 12px; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 8; }
.next-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.next-case:hover .next-img img { transform: scale(1.06); }

/* блог, политика, 404 */
.posts { display: grid; gap: 14px; }
.post-card { position: relative; display: grid; gap: 10px; padding: clamp(22px, 3vw, 36px); border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; }
.post-card span { font-size: 13px; color: var(--muted); }
.post-card h2 { font-size: clamp(24px, 2.8vw, 40px); letter-spacing: -.04em; line-height: 1.08; max-width: 24ch; }
.post-card p { color: var(--muted); max-width: 60ch; padding-right: 56px; }
.post-card .svc-arrow { position: absolute; right: 24px; bottom: 24px; }
.post-card:hover .svc-arrow { background: var(--accent); color: #fff; box-shadow: none; transform: rotate(-45deg); }
.legal { display: grid; gap: clamp(32px, 4vw, 48px); }
.legal-s { display: grid; gap: 8px 28px; }
@media (min-width: 640px) { .legal-s { grid-template-columns: 56px minmax(0, 1fr); } }
.legal-s > span { font-family: var(--d); color: var(--accent); font-size: 18px; }
.legal-s h2 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.03em; margin-bottom: 10px; }
.legal-s p { color: var(--muted); }
.legal-s p + p { margin-top: 8px; }
.nf-code { font-family: var(--d); font-size: clamp(120px, 24vw, 340px); line-height: .8; font-weight: 700; color: transparent; -webkit-text-stroke: 2px var(--accent); }

/* первый экран анимируется чистым CSS: текст и работы видны с первой отрисовки и не ждут скриптов */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
/* translate и scale отдельными свойствами: transform остаётся свободным для движения за мышью */
@keyframes shot-in { from { clip-path: inset(100% 0 0 0 round 14px); translate: 0 30px; } to { clip-path: inset(0 0 0 0 round 14px); translate: 0 0; } }
@keyframes pop { from { opacity: 0; scale: .5; } to { opacity: 1; scale: 1; } }
html.motion .hero-kicker, html.motion .hero-a, html.motion .hero-b, html.motion [data-hero],
html.motion .page-hero .crumbs, html.motion .page-h, html.motion .page-hero .page-lead, html.motion .page-hero .hero-btns, html.motion .page-hero .case-client { animation: rise .95s var(--ease) both; }
@keyframes slide { from { transform: translateY(22px); } to { transform: none; } }
html.motion .hero-kicker, html.motion .hero-a, html.motion .hero-b, html.motion .hero-lead, html.motion .page-h, html.motion .page-hero .page-lead { animation-name: slide; }
html.motion .hero-a, html.motion .page-h { animation-delay: .05s; }
html.motion .hero-b, html.motion .page-hero .page-lead { animation-delay: .15s; }
html.motion .hero-lead, html.motion .page-hero .hero-btns { animation-delay: .28s; }
html.motion .hero-btns { animation-delay: .38s; }
html.motion .hero-note { animation-delay: .46s; }
html.motion .hero-facts { animation-delay: .54s; }
html.motion .shot { animation: shot-in 1.2s var(--ease) both; }
html.motion .shot-1 { animation-delay: .1s; } html.motion .shot-2 { animation-delay: .2s; } html.motion .shot-3 { animation-delay: .3s; } html.motion .shot-4 { animation-delay: .4s; }
html.motion .hero-tags span { animation: pop .8s cubic-bezier(.3, 1.5, .5, 1) both; }
html.motion .hero-tags span:nth-child(n) { animation-delay: calc(.8s + var(--i, 0) * .08s); }
.hero-tags span:nth-child(2) { --i: 1; } .hero-tags span:nth-child(3) { --i: 2; } .hero-tags span:nth-child(4) { --i: 3; } .hero-tags span:nth-child(5) { --i: 4; } .hero-tags span:nth-child(6) { --i: 5; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .brands-in { animation: none; }
}
.why .sec-head { grid-template-columns: 1fr; }
.svc-sub { white-space: nowrap; }
