/* Цвета и шрифты меняются здесь. Фирменный цвет — синий градиент из логотипа. */
@font-face {
  font-family: "Inter Tight"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("fonts/inter-tight-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter Tight"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #060912;
  --bg-2: #0d1322;
  --bg-3: #131b2e;
  --fg: #f3f6fc;
  --muted: #8b95ab;
  --line: rgba(243, 246, 252, 0.1);
  --blue-1: #63c0fb;
  --blue-2: #2350d6;
  --blue: #3c8cf0;
  --grad: linear-gradient(135deg, var(--blue-1), var(--blue-2));
  --paper: #f3f6fc;
  --ink: #0b1020;
  --font: "Inter Tight", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 28px;
  --ease: cubic-bezier(.7, 0, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 17px/1.5 var(--font); overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-1); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 300; padding: 10px 16px; background: var(--fg); color: var(--ink); border-radius: 10px; }
.skip:focus { top: 16px; }

.wrap { padding-inline: var(--gutter); max-width: 1600px; margin-inline: auto; }
.h2 { font-weight: 800; font-size: clamp(36px, 5.6vw, 92px); line-height: .98; letter-spacing: -.045em; }
.muted { color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 60px; flex-wrap: wrap; margin-bottom: 56px; }
.sec-head .muted { max-width: 380px; }

/* ---------- Логотип ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo b { font-weight: 700; font-size: 22px; letter-spacing: -.03em; }
.logo-mark { width: 34px; height: 34px; flex-shrink: 0; }

/* ---------- Кнопки ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate; cursor: pointer;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 26px; border-radius: 999px; border: 0;
  background: var(--grad); color: #fff;
  font-weight: 600; font-size: 16px; line-height: 1;
  box-shadow: 0 10px 30px -10px rgba(60, 140, 240, .6);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg);
  clip-path: circle(0 at 50% 120%); transition: clip-path .55s var(--ease);
}
.btn:hover::before { clip-path: circle(150% at 50% 120%); }
.btn:hover { color: var(--ink); }
.btn__arrow { font-style: normal; display: inline-block; transition: transform .4s var(--ease); }
.btn:hover .btn__arrow { transform: rotate(45deg); }
.btn--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost::before { background: var(--grad); }
.btn--ghost:hover { color: #fff; }
.btn--small { padding: 13px 20px; font-size: 14px; }
.btn--small .btn__arrow { display: none; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }

/* ---------- Курсор (кольцо под системным указателем) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 250; pointer-events: none; opacity: 0; transition: opacity .2s; }
.cursor.is-on { opacity: 1; }
.cursor i, .cursor span { position: absolute; left: 0; top: 0; translate: -50% -50%; border-radius: 50%; }
.cursor i { width: 34px; height: 34px; border: 1.5px solid rgba(99, 192, 251, .7); transition: scale .35s var(--ease), background .3s, border-color .3s; }
.cursor.is-hover i { scale: 1.7; background: rgba(60, 140, 240, .14); border-color: transparent; }
.cursor span { display: grid; place-items: center; width: 96px; height: 96px; background: var(--grad); color: #fff; font-weight: 600; font-size: 14px; scale: 0; transition: scale .4s var(--ease); }
.cursor.is-label span { scale: 1; }
.cursor.is-label i { scale: 0; }

/* ---------- Переход между страницами ---------- */
.pt { position: fixed; inset: 0; z-index: 200; pointer-events: none; visibility: hidden; }
.pt svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pt__logo { position: absolute; left: 50%; top: 50%; translate: -50% -50%; opacity: 0; }
.pt__logo .logo-mark { width: 84px; height: 84px; }
.pt__logo rect { fill: rgba(255, 255, 255, .15); }
html.is-entering .pt { visibility: visible; background: var(--grad); }
html.is-entering .pt__logo { opacity: 1; }

/* ---------- Прелоадер ---------- */
.preloader { position: fixed; inset: 0; z-index: 150; background: var(--bg); display: grid; place-items: center; }
.preloader__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.preloader .logo-mark { width: 96px; height: 96px; }
.preloader__count { font-weight: 700; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.preloader__fill { position: absolute; inset: 0; background: var(--grad); clip-path: inset(100% 0 0 0); }

/* ---------- Шапка ---------- */
.nav {
  position: fixed; top: 14px; left: var(--gutter); right: var(--gutter); z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 16px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .5s var(--ease), background .4s, border-color .4s;
}
.nav.is-scrolled { background: rgba(10, 15, 28, .72); border-color: var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.is-hidden { transform: translateY(-150%); }
.nav__links { display: flex; gap: 4px; }
.nav__links a { padding: 10px 16px; border-radius: 999px; font-size: 15px; color: var(--muted); transition: color .3s, background .3s; }
.nav__links a:hover { color: var(--fg); background: var(--line); }
.nav__right { display: flex; gap: 8px; align-items: center; }
.nav__burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--fg); cursor: pointer; position: relative; }
.nav__burger i { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--ink); transition: transform .4s var(--ease); }
.nav__burger i:first-child { top: 19px; } .nav__burger i:last-child { top: 25px; }
.menu-open .nav__burger i:first-child { transform: translateY(3px) rotate(45deg); }
.menu-open .nav__burger i:last-child { transform: translateY(-3px) rotate(-45deg); }
.menu-open .nav { transform: none; }
.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--grad); color: #fff;
  clip-path: circle(0 at calc(100% - 46px) 38px); transition: clip-path .8s var(--ease), visibility .8s;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 32px; padding: 120px var(--gutter) var(--gutter);
  visibility: hidden;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 46px) 38px); visibility: visible; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font-weight: 800; font-size: clamp(40px, 11vw, 88px); line-height: 1.04; letter-spacing: -.045em; display: flex; align-items: flex-start; gap: 12px; }
.menu nav small { font-size: 13px; font-weight: 600; letter-spacing: 0; opacity: .7; margin-top: .8em; }
.menu__bot { font-weight: 600; font-size: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 130px 0 64px; isolation: isolate; }
.hero__glow { position: absolute; inset: -20% -10% auto; height: 120%; z-index: -2; background: radial-gradient(40% 50% at 70% 35%, rgba(35, 80, 214, .45), transparent 70%), radial-gradient(30% 40% at 20% 70%, rgba(99, 192, 251, .18), transparent 70%); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__inner { position: relative; padding: 0 var(--gutter); max-width: 1600px; width: 100%; margin: 0 auto; }
.hero__handle { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; margin-bottom: 30px; background: rgba(13, 19, 34, .6); transition: border-color .3s; }
.hero__handle:hover { border-color: var(--blue); }
.hero__handle .logo-mark { width: 26px; height: 26px; }
.hero__handle em { font-style: normal; color: var(--blue-1); }
.hero__title { font-weight: 800; font-size: clamp(48px, 9vw, 168px); line-height: .92; letter-spacing: -.055em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .07em; margin-bottom: -.07em; }
.hero__title .line > span { display: inline-block; }
.hero__title .line > .rot { display: inline-grid; vertical-align: top; }
.rot > span { grid-area: 1/1; white-space: nowrap; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 44px; flex-wrap: wrap; }
.hero__text { max-width: 540px; color: var(--muted); font-size: 19px; }
.hero__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--grad); color: #fff; padding: 24px 0; transform: rotate(-2deg) scale(1.05); margin: 70px 0; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__track span { font-weight: 800; font-size: clamp(28px, 4vw, 58px); line-height: 1; letter-spacing: -.035em; padding-right: 36px; display: inline-flex; align-items: center; gap: 36px; white-space: nowrap; }
.marquee__track span::after { content: ""; width: .9em; height: .45em; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 18'><path d='M3 12c5-6 10-9 15-3s10 8 19-1' fill='none' stroke='white' stroke-width='4' stroke-linecap='round'/></svg>") center/contain no-repeat; }

/* ---------- Stats ---------- */
.stats { padding-block: 120px 60px; }
.stats .h2 { margin-bottom: 56px; max-width: 900px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 32px 24px 0 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-weight: 800; font-size: clamp(52px, 7vw, 120px); line-height: 1; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); }

/* ---------- Manifesto ---------- */
.manifesto { padding-block: 100px 160px; }
.manifesto p { font-weight: 700; font-size: clamp(30px, 4.6vw, 74px); line-height: 1.08; letter-spacing: -.04em; max-width: 1400px; }
.manifesto .w { opacity: .15; }

/* ---------- Paths ---------- */
.paths { padding-bottom: 160px; }
.paths__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; perspective: 1400px; }
.path {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: clamp(28px, 4vw, 56px);
  background: var(--bg-2); border: 1px solid var(--line); min-height: 580px;
  display: flex; flex-direction: column; transform-style: preserve-3d;
}
.path::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(99, 192, 251, .16), transparent 60%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.path:hover::before { opacity: 1; }
.path:nth-child(2) { background: var(--paper); color: var(--ink); border-color: transparent; }
.path:nth-child(2) .muted, .path:nth-child(2) li { color: #4d566b; }
.path:nth-child(2)::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(35, 80, 214, .14), transparent 60%); }
.path__num { font-weight: 700; font-size: 14px; opacity: .5; }
.path h3 { font-weight: 800; font-size: clamp(34px, 3.6vw, 60px); line-height: 1; letter-spacing: -.045em; margin: 90px 0 20px; }
.path ul { list-style: none; padding: 0; margin: 32px 0 40px; }
.path li { padding: 14px 0; border-top: 1px solid rgba(128, 140, 170, .25); color: var(--muted); }
.path .btn { margin-top: auto; align-self: flex-start; }
.path__wave { position: absolute; right: -30px; top: 34px; width: 240px; opacity: .55; }
.path__wave path { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; }

/* ---------- Sources (горизонтальный скролл) ---------- */
.sources__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 48px; overflow: hidden; padding-block: 100px; }
.sources__head { width: 100%; }
.sources__head .sec-head { margin-bottom: 0; }
.sources__track { display: flex; gap: 20px; padding-inline: var(--gutter); width: max-content; }
.source {
  width: min(80vw, 500px); height: min(62vh, 520px); min-height: 380px; flex-shrink: 0;
  border-radius: var(--radius); padding: 36px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line);
}
.source:nth-child(4n+1) { background: var(--grad); border-color: transparent; }
.source:nth-child(4n+1) .muted { color: rgba(255, 255, 255, .8); }
.source:nth-child(4n+3) { background: var(--paper); color: var(--ink); border-color: transparent; }
.source:nth-child(4n+3) .muted { color: #4d566b; }
.source__n { font-weight: 700; font-size: 14px; opacity: .6; }
.source h4 { font-weight: 800; font-size: clamp(30px, 3vw, 46px); line-height: 1; letter-spacing: -.04em; margin: auto 0 14px; }
.source__m { display: flex; gap: 28px; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(128, 140, 170, .35); flex-wrap: wrap; }
.source__m b { display: block; font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: -.03em; }
.source__m small { font-size: 14px; opacity: .7; }
.source__waves { position: absolute; top: 28px; right: 28px; width: 120px; opacity: .5; }
.source__waves path { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 8 10; animation: dash 3s linear infinite; }
.source__waves path + path { animation-duration: 4.5s; opacity: .6; }
@keyframes dash { to { stroke-dashoffset: -36; } }

/* ---------- Process (стопка) ---------- */
.process { padding-block: 160px; }
.process .h2 { margin-bottom: 56px; }
.step {
  position: sticky; top: 110px; min-height: 360px; margin-bottom: 24px;
  border-radius: var(--radius); padding: clamp(28px, 4vw, 56px);
  background: var(--bg-2); border: 1px solid var(--line);
  display: grid; grid-template-columns: auto 1fr; gap: 0 clamp(24px, 5vw, 80px); align-items: end;
  transform-origin: center top;
}
.step:nth-child(2) { top: 130px; background: #111a2d; }
.step:nth-child(3) { top: 150px; background: #172239; }
.step:nth-child(4) { top: 170px; background: var(--grad); border-color: transparent; }
.step:nth-child(4) .muted { color: rgba(255, 255, 255, .85); }
.step__n { font-weight: 900; font-size: clamp(96px, 17vw, 250px); line-height: .8; letter-spacing: -.07em; }
.step h3 { font-weight: 800; font-size: clamp(30px, 3.6vw, 58px); line-height: 1; letter-spacing: -.04em; margin-bottom: 12px; }
.process__guar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 80px; }
.guar { padding-top: 24px; border-top: 1px solid var(--line); }
.guar h4 { font-weight: 700; font-size: 22px; line-height: 1.2; margin-bottom: 10px; }

/* ---------- Company ---------- */
.company { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding-block: 120px; align-items: start; perspective: 1400px; }
.company .muted { margin-top: 24px; max-width: 460px; font-size: 19px; }
.company__card { border-radius: var(--radius); padding: clamp(24px, 3vw, 44px); background: linear-gradient(160deg, #141d33, #0a0f1c); border: 1px solid var(--line); transform-style: preserve-3d; position: relative; overflow: hidden; }
.company__card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(99, 192, 251, .14), transparent 50%); pointer-events: none; }
.company__name { font-weight: 800; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -.03em; margin-bottom: 28px; }
.company__row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.company__row span:first-child { color: var(--muted); }
.company__btns { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- Team ---------- */
.team { padding-block: 120px; }
.person { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.person b { font-weight: 700; font-size: clamp(26px, 3.4vw, 54px); line-height: 1; letter-spacing: -.04em; transition: transform .5s var(--ease), color .3s; }
.person span { color: var(--muted); text-align: right; }
.person:hover b { transform: translateX(24px); color: var(--blue-1); }
.team__more { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.team__more b { font-weight: 800; font-size: clamp(30px, 4vw, 64px); line-height: 1; letter-spacing: -.045em; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.team__more span { color: var(--muted); text-align: right; }
.avatars { display: inline-flex; }
.avatars i { width: clamp(38px, 3.6vw, 56px); height: clamp(38px, 3.6vw, 56px); border-radius: 50%; border: 3px solid var(--bg); margin-left: -14px; background: var(--grad); }
.avatars i:first-child { margin-left: 0; }
.avatars i:nth-child(2) { background: #1d2a48; } .avatars i:nth-child(3) { background: var(--paper); } .avatars i:nth-child(4) { background: var(--blue); }
.team__float { position: fixed; left: 0; top: 0; z-index: 40; width: 220px; height: 280px; border-radius: 22px; overflow: hidden; pointer-events: none; opacity: 0; scale: .6; display: grid; place-items: center; font-weight: 900; font-size: 84px; letter-spacing: -.05em; transition: opacity .3s, scale .4s cubic-bezier(.2, 1.4, .4, 1); }
.team__float.is-on { opacity: 1; scale: 1; }
.team__float img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Кейсы: карточки ---------- */
.cases { padding-block: 120px 160px; }
.cases__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card { position: relative; border-radius: var(--radius); padding: 30px; background: var(--bg-2); border: 1px solid var(--line); min-height: 440px; display: flex; flex-direction: column; overflow: hidden; transition: transform .6s cubic-bezier(.2, 1, .3, 1), border-color .4s; isolation: isolate; }
.case-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad); clip-path: circle(0 at 100% 100%); transition: clip-path .7s var(--ease); }
.case-card:hover { transform: translateY(-10px); border-color: transparent; }
.case-card:hover::after { clip-path: circle(150% at 100% 100%); }
.case-card:hover .case-card__res { color: #fff; }
.case-card:hover .muted { color: rgba(255, 255, 255, .85); }
.case-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tag { display: inline-flex; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.case-card:hover .tag { border-color: rgba(255, 255, 255, .4); }
.case-card__go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: transform .5s var(--ease), background .3s, color .3s; }
.case-card:hover .case-card__go { transform: rotate(45deg); background: #fff; color: var(--ink); }
.case-card__res { font-weight: 800; font-size: clamp(40px, 4vw, 64px); line-height: 1; letter-spacing: -.05em; margin: auto 0 4px; color: var(--blue-1); transition: color .4s; }
.case-card__label { font-size: 15px; margin-bottom: 22px; }
.case-card h3 { font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; margin-bottom: 8px; }
.cases__all { display: flex; justify-content: center; margin-top: 72px; }
.case-card.is-hidden { display: none; }

/* ---------- CTA ---------- */
.cta { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; text-align: center; }
.cta__circle { position: absolute; left: 50%; top: 50%; width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax; border-radius: 50%; background: var(--grad); transform: scale(0); }
.cta__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.cta__title { font-weight: 900; font-size: clamp(40px, 7vw, 128px); line-height: .96; letter-spacing: -.06em; max-width: 1300px; }
.cta__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .05em; }
.cta__title .w > span { display: inline-block; }
.cta p { font-size: 20px; opacity: .9; }
.cta .btn { background: #fff; color: var(--ink); font-size: 18px; padding: 24px 36px; box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .4); }
.cta .btn::before { background: var(--ink); }
.cta .btn:hover { color: #fff; }

/* ---------- Подвал ---------- */
.footer { padding-top: 100px; overflow: hidden; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.footer__brand p { color: var(--muted); max-width: 380px; font-size: 15px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer__col h4 { font-size: 15px; font-weight: 600; color: var(--fg); margin-bottom: 4px; }
.footer__col a { color: var(--muted); transition: color .3s, background-size .4s var(--ease); }
.footer__col a:hover { color: var(--fg); }
.footer__col a { width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.footer__col a:hover { background-size: 100% 1px; }
.footer__giant { position: relative; margin-top: 80px; text-align: center; }
.footer__word { display: block; font-weight: 900; font-size: 30vw; line-height: .78; letter-spacing: -.075em; white-space: nowrap; overflow: hidden; padding-bottom: .02em; }
.footer__word span { display: inline-block; background: var(--grad); background-size: 500% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer__word span:nth-child(2) { background-position: 25% 0; } .footer__word span:nth-child(3) { background-position: 50% 0; } .footer__word span:nth-child(4) { background-position: 75% 0; } .footer__word span:nth-child(5) { background-position: 100% 0; }
.footer__waves { position: absolute; left: 0; right: 0; top: 32%; width: 100%; height: 28%; z-index: 1; pointer-events: none; opacity: .35; }
.footer__waves path { fill: none; stroke: var(--bg); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 40 30; animation: dash 6s linear infinite; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px; color: var(--muted); font-size: 14px; }
.footer__bottom a:hover, .footer__bottom button:hover { color: var(--fg); }

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; left: var(--gutter); bottom: 20px; z-index: 120; max-width: 440px;
  padding: 22px; border-radius: 22px; background: rgba(16, 23, 40, .94); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
  font-size: 14px; transform: translateY(160%); transition: transform .7s var(--ease);
}
.cookie.is-on { transform: none; }
.cookie p a { color: var(--blue-1); text-decoration: underline; text-underline-offset: 3px; }
.cookie__btns { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

/* ---------- Внутренние страницы ---------- */
.page-hero { position: relative; padding: 170px 0 80px; overflow: hidden; isolation: isolate; }
.crumbs { display: flex; gap: 10px; color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.crumbs a:hover { color: var(--fg); }
.page-title { font-weight: 800; font-size: clamp(52px, 10vw, 180px); line-height: .9; letter-spacing: -.06em; }
.page-title--sm { font-size: clamp(44px, 7vw, 120px); }
.page-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.page-title .line > span { display: inline-block; }
.page-lead { max-width: 620px; color: var(--muted); font-size: 20px; margin-top: 28px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.chip { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: none; cursor: pointer; font-size: 14px; font-weight: 500; transition: background .3s, color .3s, border-color .3s; }
.chip:hover { border-color: var(--blue); }
.chip.is-active { background: var(--grad); border-color: transparent; color: #fff; }
.cases-page { padding-bottom: 140px; }

/* Страница кейса */
.case-hero__res { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-top: 48px; }
.case-hero__res b { font-weight: 900; font-size: clamp(72px, 15vw, 260px); line-height: .8; letter-spacing: -.07em; }
.case-hero__res span { font-size: 20px; color: var(--muted); padding-bottom: 14px; max-width: 280px; }
.case-meta { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-meta div { padding: 26px 24px 26px 0; }
.case-meta div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.case-meta small { display: block; color: var(--muted); font-size: 15px; margin-bottom: 6px; }
.case-meta b { font-weight: 700; font-size: 20px; }
.case-block { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding-top: 110px; }
.case-block h2 { font-weight: 800; font-size: clamp(28px, 3vw, 44px); letter-spacing: -.04em; line-height: 1; }
.case-block__lead { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.3; letter-spacing: -.02em; }
.case-sources { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.case-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.case-steps li { counter-increment: s; display: grid; grid-template-columns: 70px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); font-size: clamp(19px, 1.8vw, 24px); }
.case-steps li::before { content: counter(s, decimal-leading-zero); font-weight: 800; color: var(--blue-1); }
.case-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 110px; perspective: 1400px; }
.case-metric { border-radius: var(--radius); padding: 32px; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; background: var(--bg-2); border: 1px solid var(--line); }
.case-metric:first-child { background: var(--grad); border-color: transparent; }
.case-metric:nth-child(2) { background: var(--paper); color: var(--ink); border-color: transparent; }
.case-metric b { font-weight: 900; font-size: clamp(44px, 5vw, 84px); line-height: 1; letter-spacing: -.06em; }
.case-metric span { font-size: 17px; opacity: .8; }
.case-quote { padding-block: 140px 0; }
.case-quote blockquote { margin: 0; font-weight: 700; font-size: clamp(30px, 4.4vw, 70px); line-height: 1.08; letter-spacing: -.045em; max-width: 1300px; }
.case-quote blockquote::before { content: "“"; display: block; font-size: 2em; line-height: .6; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case-quote cite { display: block; margin-top: 28px; font-style: normal; color: var(--muted); }
.next-case { display: block; margin-top: 120px; padding: 70px 0 90px; border-top: 1px solid var(--line); overflow: hidden; }
.next-case small { color: var(--muted); font-size: 18px; }
.next-case b { display: flex; align-items: center; gap: .3em; font-weight: 900; font-size: clamp(44px, 9vw, 160px); line-height: .95; letter-spacing: -.065em; margin-top: 16px; transition: transform .7s var(--ease); }
.next-case b i { font-style: normal; display: inline-block; transition: transform .7s var(--ease); }
.next-case:hover b { transform: translateX(2vw); }
.next-case:hover b i { transform: translateX(2vw) rotate(-45deg); }
.next-case:hover b span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Юридические страницы */
.legal { display: grid; grid-template-columns: 280px 1fr; gap: 60px; padding-bottom: 140px; }
.legal__toc { position: sticky; top: 110px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.legal__toc a { padding: 10px 14px; border-radius: 12px; color: var(--muted); font-size: 15px; transition: background .3s, color .3s; }
.legal__toc a:hover { background: var(--line); color: var(--fg); }
.legal__toc a.is-active { background: var(--grad); color: #fff; }
.legal__body { max-width: 780px; }
.legal__body section { padding: 36px 0; border-top: 1px solid var(--line); }
.legal__body h2 { font-weight: 700; font-size: 26px; letter-spacing: -.025em; margin-bottom: 16px; }
.legal__body p, .legal__body li { color: #c4cad8; }
.legal__body p + p, .legal__body ul + p, .legal__body .table + p { margin-top: 14px; }
.legal__body ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.legal__date { margin-top: 20px; color: var(--muted); font-size: 15px; }
.table { overflow-x: auto; margin-bottom: 16px; }
.table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 500; }

/* 404 */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; isolation: isolate; padding: 120px var(--gutter); }
.nf b { display: block; font-weight: 900; font-size: clamp(140px, 32vw, 520px); line-height: .8; letter-spacing: -.08em; }
.nf p { color: var(--muted); font-size: 20px; margin: 24px 0 32px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__right .btn { display: none; }
  .nav__burger { display: block; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat { padding-bottom: 32px; }
  .paths__grid, .company, .process__guar, .cases__grid, .case-metrics, .case-block, .legal { grid-template-columns: 1fr; }
  .path { min-height: 0; }
  .cases__grid { row-gap: 64px; }
  .case-meta { grid-template-columns: 1fr 1fr; }
  .case-meta div:nth-child(3) { padding-left: 0; border-left: 0; }
  .case-meta div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .legal__toc { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .step { grid-template-columns: 1fr; min-height: 300px; align-content: space-between; }
  .company__row { grid-template-columns: 1fr; gap: 4px; }
  .person, .team__more { grid-template-columns: 1fr; gap: 8px; }
  .person span, .team__more span { text-align: left; }
  .hero__btns .btn { flex: 1; justify-content: center; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .case-block { padding-top: 70px; }
  .case-meta { grid-template-columns: 1fr; }
  .case-meta div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  .source__waves path, .footer__waves path { animation: none; }
  .manifesto .w { opacity: 1; }
  .cta__circle { transform: scale(1); }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Legal statement replaces only the removed document card. */
.company__statement { padding-block: 40px; border-block: 1px solid var(--line); }
.company__statement p { max-width: 680px; margin-top: 24px; }
.team__float { background-repeat: no-repeat; }
.paths__grid > *, .cases__grid > * { min-width: 0; }
@media (max-width: 600px) {
  .hero__title { font-size: clamp(34px, 10.5vw, 52px); }
  .page-title--sm { font-size: clamp(30px, 9vw, 40px); overflow-wrap: anywhere; }
}
