/* Шрифты лежат локально: так сайт не ходит в Google и быстрее открывается */
@font-face { font-family: 'Wix Madefor Display'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/wix-madefor-display-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Wix Madefor Display'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/wix-madefor-display-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: 'Wix Madefor Text'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/wix-madefor-text-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Wix Madefor Text'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/wix-madefor-text-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: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/jetbrains-mono-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/jetbrains-mono-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: #FAF9F5; --paper-2: #F0EEE6; --ink: #141413; --sub: #5E5D59; --mute: #87867F;
  --line: #E8E6DC; --line-2: #D1CFC5;
  /* цвета задач: мягкие, как акварель */
  --human: #D9D5C7;  /* остаётся человеку */
  --aug: #AFC873;    /* AI помогает */
  --auto: #72A9E8;   /* AI делает сам */
  --new: #F3C35F;    /* новая задача */
  --empty: #ECEAE2;  /* задача ещё не разобрана */
  --disp: "Wix Madefor Display", "Helvetica Neue", Arial, sans-serif; /* заголовки */
  --serif: "Wix Madefor Text", "Helvetica Neue", Arial, sans-serif;  /* основной текст */
  --sans: "Wix Madefor Text", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
  --head: 56px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--head); }
body { background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
::selection { background: rgba(175, 200, 115, .35); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* «карандашная» фактура для всех цветных пятен */
.wc, .sq, .stack i, .stat .bar, .chips span::before, .legend i { filter: url(#wc); }

/* общие элементы */
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.pill { font-family: var(--sans); font-size: 13px; line-height: 1.3; background: var(--paper-2); border: 1px solid var(--line); color: var(--ink); padding: 6px 12px; border-radius: 8px; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; white-space: nowrap; }
.pill:hover { border-color: var(--line-2); }
.pill.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill.dark:hover { background: #30302E; }
.todo { background: rgba(243, 195, 95, .35); color: inherit; padding: 0 2px; border-radius: 2px; }
.todo::after { content: " · уточнить"; font-family: var(--sans); font-size: .72em; color: #9A5F12; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--sans); font-size: 13px; color: var(--sub); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 14px; height: 14px; border-radius: 2px; display: inline-block; }
.legend b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }

/* миллиметровка: тонкие неровные линии, как на бумаге */
.graph { background-color: var(--paper);
  background-image:
    linear-gradient(rgba(170, 166, 150, .38) 1px, transparent 1px), linear-gradient(90deg, rgba(170, 166, 150, .38) 1px, transparent 1px),
    linear-gradient(rgba(190, 186, 170, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(190, 186, 170, .18) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; background-position: -1px -1px; }
.on-paper { background: var(--paper); box-shadow: 0 0 0 8px var(--paper); }

/* шапка */
.top { position: sticky; top: 0; z-index: 30; height: var(--head); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 24px; background: rgba(250, 249, 245, .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-family: var(--sans); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-bottom-color: var(--line); }
.top nav { display: flex; gap: 6px; }
.top .logo { font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.top .right { justify-self: end; display: flex; gap: 6px; }

/* цифры */
.proof { max-width: 1200px; margin: 0 auto; padding: 72px 24px 24px; }
.proof .grid4 { margin-top: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--paper); border: 1px solid var(--line-2); border-radius: 10px; padding: 20px; }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; letter-spacing: -0.02em; }
.stat span { display: block; margin-top: 12px; font-family: var(--sans); font-size: 13.5px; line-height: 1.4; }
.stat em { display: block; margin-top: 6px; font-style: normal; font-family: var(--sans); font-size: 12.5px; color: var(--mute); }
.stat .bar { height: 8px; margin-top: 16px; border-radius: 2px; }

/* контекст: где это работает */
.context { max-width: 1200px; margin: 0 auto; padding: 72px 24px 96px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; }
.context .lead p { font-size: 19px; }
.context .lead p + p { margin-top: 16px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-2); align-self: start; }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-right: 16px; }
.facts dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.facts dd { margin-top: 4px; font-size: 16px; }
.context .note { grid-column: 1 / -1; font-family: var(--sans); font-size: 13px; color: var(--mute); }

/* кейсы списком */
.cases { padding: 96px 24px 112px; max-width: 1200px; margin: 0 auto; }
.sec-h { font-weight: 400; font-size: 34px; line-height: 1.15; max-width: 680px; letter-spacing: -0.01em; }
.sec-p { margin-top: 12px; color: var(--sub); max-width: 640px; }
.clist { margin-top: 40px; border-top: 1px solid var(--ink); }
.crow { display: grid; grid-template-columns: 56px minmax(0, 1.25fr) minmax(0, 1fr) 120px; gap: 28px; padding: 30px 12px 30px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; align-items: start; transition: background .2s; }
.crow:hover { background: var(--paper-2); }
.crow .n { font-family: var(--mono); font-size: 12px; color: var(--mute); padding: 8px 0 0 8px; }
.crow h3 { font-weight: 400; font-size: 25px; line-height: 1.2; }
.crow .task { margin-top: 10px; color: var(--sub); font-size: 15.5px; }
.strip { margin-top: 16px; display: flex; gap: 4px; align-items: center; }
.strip .sq { width: 16px; height: 16px; border-radius: 2px; }
.strip small { margin-left: 8px; font-family: var(--sans); font-size: 12px; color: var(--mute); }
.crow ul { list-style: none; font-family: var(--sans); font-size: 14px; }
.crow li { padding: 7px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: baseline; }
.crow li:last-child { border-bottom: 0; }
.crow li b { font-family: var(--serif); font-weight: 500; font-size: 18px; white-space: nowrap; }
.crow .go { justify-self: end; align-self: center; }
.also { margin-top: 28px; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 28px; font-size: 15.5px; color: var(--sub); }
.also b { color: var(--ink); font-weight: 500; }

/* где решает человек */
.limits { border-top: 1px solid var(--line-2); padding: 96px 24px; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.limits ul { list-style: none; }
.limits li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 150px 1fr; gap: 16px; }
.limits li:first-child { border-top: 1px solid var(--line); }
.limits li .mono { padding-top: 5px; }
.limits s { text-decoration-color: #C9704F; text-decoration-thickness: 1.5px; color: var(--sub); }

/* метод */
.method { border-top: 1px solid var(--line-2); display: grid; grid-template-columns: 1fr 1fr; }
.method > .graph { padding: 64px 48px; border-right: 1px solid var(--line-2); }
.method h2 { font-weight: 400; font-size: 34px; line-height: 1.15; display: inline; }
.method ol { list-style: none; padding: 64px; counter-reset: s; }
.method li { counter-increment: s; padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; }
.method li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--mute); padding-top: 5px; }
.method li b { font-weight: 500; }

/* обо мне */
.about { border-top: 1px solid var(--line-2); max-width: 1200px; margin: 0 auto; padding: 96px 24px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; }
.about .path { list-style: none; border-top: 1px solid var(--line-2); }
.about .path li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.about .path .mono { padding-top: 4px; }

/* связь и подвал */
.contact { position: relative; overflow: hidden; padding: 120px 24px; text-align: center; border-top: 1px solid var(--line-2); }
.contact h2 { position: relative; z-index: 2; font-weight: 400; font-size: 34px; max-width: 640px; margin: 0 auto; line-height: 1.2; }
.contact .acts { position: relative; z-index: 2; justify-content: center; }
.foot { border-top: 1px solid var(--line-2); padding: 18px 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--sans); font-size: 12px; color: var(--mute); }
.foot a { color: var(--sub); text-decoration: none; margin-left: 16px; }
.foot a:hover { color: var(--ink); }

/* полоски задач */
.stack { display: flex; height: 22px; gap: 2px; }
.stack i { display: block; height: 100%; }

/* страница кейса */
.case-hero { display: grid; grid-template-columns: 1fr 1.15fr; border-bottom: 1px solid var(--line-2); }
.case-hero .txt { padding: 56px 64px 64px; }
.back { font-family: var(--sans); font-size: 13px; color: var(--sub); text-decoration: none; }
.back:hover { color: var(--ink); }
.case-hero .txt > .mono { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.case-hero h1 { margin-top: 14px; font-weight: 400; font-size: 38px; line-height: 1.12; max-width: 580px; letter-spacing: -0.01em; }
.case-hero .intro { margin-top: 18px; max-width: 520px; }
.passport { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-2); max-width: 560px; }
.passport div { padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--sans); font-size: 13.5px; }
.passport div:nth-child(odd) { padding-right: 16px; }
.passport dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.case-hero > .graph { border-left: 1px solid var(--line-2); padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.ba { background: var(--paper); border: 1px solid var(--line-2); border-radius: 10px; padding: 18px; }
.ba .mono { display: flex; justify-content: space-between; }
.ba .chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.ba .chips span { position: relative; isolation: isolate; font-family: var(--sans); font-size: 12.5px; padding: 5px 10px; color: var(--ink); }
.ba .chips span::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 3px; background: var(--human); }
.ba .chips .g::before { background: var(--aug); } .ba .chips .a::before { background: var(--auto); } .ba .chips .n::before { background: var(--new); }
.ba.before .chips span::before { background: var(--empty); }
.nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line-2); }
.nums > div { padding: 40px 32px; border-right: 1px solid var(--line); }
.nums > div:last-child { border-right: 0; }
.num { font-size: 52px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.nums p { margin-top: 12px; font-family: var(--sans); font-size: 13px; color: var(--sub); max-width: 300px; }
.body { max-width: 1200px; margin: 0 auto; padding: 72px 24px 96px; }
.body section { display: grid; grid-template-columns: 260px minmax(0, 640px); gap: 48px; padding: 32px 0; border-top: 1px solid var(--line); }
.body section:first-child { border-top: 0; }
.body h2 { font-weight: 400; font-size: 23px; line-height: 1.25; }
.body h3 { font-weight: 500; font-size: 17px; margin-top: 22px; }
.body p + p, .body p + ol, .body p + ul { margin-top: 14px; }
.body ol, .body ul { padding-left: 20px; }
.body li + li { margin-top: 8px; }
.body ul.res { list-style: none; padding-left: 0; }
.body ul.res li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.body ul.res li b { font-weight: 500; }
.body .note { font-family: var(--sans); font-size: 13.5px; color: var(--sub); border-left: 2px solid var(--line-2); padding-left: 12px; margin-top: 16px; }
.shots { max-width: 1200px; margin: 0 auto; padding: 0 24px 64px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.shots figure { background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px; }
.shots figure.wide { grid-column: 1 / -1; max-width: 820px; width: 100%; justify-self: center; }
.shots img { width: 100%; height: auto; display: block; border-radius: 6px; }
.shots figcaption { margin-top: 10px; font-family: var(--sans); font-size: 13px; color: var(--sub); }
.shots-h { max-width: 1200px; margin: 0 auto; padding: 16px 24px 20px; }
.next { border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; padding: 40px 24px; max-width: 1200px; margin: 0 auto; gap: 24px; flex-wrap: wrap; }
.next a.big { font-size: 26px; text-decoration: none; }
.next a.big:hover { color: #4E83C9; }

/* 404 */
.lost { min-height: calc(100vh - var(--head) - 60px); display: grid; place-items: center; text-align: center; padding: 48px 24px; }
.lost h1 { font-weight: 400; font-size: 34px; }
.lost p { margin-top: 12px; color: var(--sub); }

@media (max-width: 1100px) {
  .tasks { width: 58%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .top { grid-template-columns: 1fr auto; padding: 0 16px; }
  .top nav { display: none; }
  .hero { min-height: 88vh; }
  .hero .center { padding: 32px 16px; }
  .hero .who { font-size: 15.5px; }
  .proof { padding: 48px 16px 8px; }
  .proof .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 14px; } .stat b { font-size: 32px; }
  .context, .about { grid-template-columns: 1fr; gap: 28px; padding: 56px 16px; }
  .cases { padding: 64px 16px; }
  .sec-h, .contact h2, .method h2 { font-size: 27px; }
  .crow { grid-template-columns: 1fr; gap: 12px; padding: 22px 12px; }
  .crow .n { padding: 0; } .crow .go { justify-self: start; }
  .also { grid-template-columns: 1fr; gap: 4px; }
  .stage { padding: 12px 16px 10px; }
  .tabs { overflow-x: auto; scrollbar-width: none; } .tabs::-webkit-scrollbar { display: none; }
  .tabs button { font-size: 13px; padding: 7px 10px; flex: none; }
  .stage .hint { display: none; }
  .stage h2 { margin-top: 10px; font-size: 15px; }
  .tasks { width: 100%; align-self: center; margin-right: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 6px; max-height: 52vh; }
  .tk { gap: 4px; } .tk .sq { width: 30px; height: 30px; } .tk span { font-size: 11px; }
  .tk.gap { display: none; }
  .stage .legend { font-size: 11px; gap: 4px 10px; } .legend i { width: 11px; height: 11px; }
  .s { align-items: flex-end; padding: 0 12px 20px; min-height: 100vh; }
  .s .card { max-width: none; padding: 16px 18px; }
  .s h3 { font-size: 16px; } .s p { font-size: 15px; margin-top: 8px; } .s .ex { font-size: 12.5px; }
  .limits { grid-template-columns: 1fr; gap: 24px; padding: 64px 16px; }
  .limits li { grid-template-columns: 1fr; gap: 4px; }
  .method { grid-template-columns: 1fr; } .method > .graph { padding: 48px 16px; border-right: 0; } .method ol { padding: 16px; }
  .about .path li { grid-template-columns: 1fr; gap: 2px; }
  .contact { padding: 80px 16px; }
  .case-hero { grid-template-columns: 1fr; }
  .case-hero .txt { padding: 28px 16px 40px; }
  .case-hero h1 { font-size: 28px; }
  .case-hero > .graph { border-left: 0; border-top: 1px solid var(--line-2); padding: 32px 16px; }
  .nums { grid-template-columns: 1fr; }
  .nums > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 16px; }
  .num { font-size: 42px; }
  .body { padding: 40px 16px 64px; }
  .body section { grid-template-columns: 1fr; gap: 12px; }
  .shots { grid-template-columns: 1fr; padding: 0 16px 48px; }
  .shots-h { padding: 8px 16px 16px; }
  .next { padding: 32px 16px; } .next a.big { font-size: 21px; }
  .foot a { margin: 0 16px 0 0; }
}
@media (max-width: 520px) { .tabs .l { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  /* без анимации сортировка сразу показывает итог: квадраты разложены по колонкам */
  .sorter.run .sq { opacity: var(--o); transform: translate(var(--x1), var(--y2)); background: var(--c); box-shadow: inset 0 0 0 1.5px var(--bc, transparent); }
}

/* ===== v4: Wix Madefor, экраны кейсов, маркер ===== */
h1, h2, h3, .sec-h, .num, .stat b, .crow h3, .crow li b, .next a.big, .method h2, .contact h2, .body h2 { font-family: var(--disp); letter-spacing: -0.02em; }
.sec-h, .method h2, .contact h2 { font-weight: 600; }
.crow h3, .body h2, .case-hero h1 { font-weight: 600; }
.num, .stat b { font-weight: 500; }
.crow li b { font-weight: 600; }
.lede, .context .lead p { font-size: 18px; }

/* маркер: карандашная полоса под словом */
.mk { position: relative; z-index: 0; white-space: nowrap; }
.mk::before { content: ""; position: absolute; left: -.08em; right: -.1em; top: 55%; bottom: -.02em; background: var(--new); z-index: -1; filter: url(#wc); border-radius: 2px; transform: skewX(-6deg); }

/* первый экран */

/* экран кейса на главной */
.feature { border-top: 1px solid var(--line-2); display: grid; grid-template-columns: .82fr 1.18fr; min-height: 640px; }
.feature .ftxt { padding: 64px 48px 64px 24px; max-width: 520px; justify-self: end; width: 100%; }
.feature .kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); display: flex; gap: 14px; }
.feature h2 { margin-top: 14px; font-weight: 600; font-size: 38px; line-height: 1.08; letter-spacing: -0.025em; }
.feature p.t { margin-top: 16px; color: var(--sub); font-size: 16.5px; }
.feature ul.fm { margin-top: 22px; list-style: none; border-top: 1px solid var(--line-2); }
.feature ul.fm li { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 128px 1fr; gap: 12px; align-items: baseline; font-size: 14.5px; }
.feature ul.fm b { font-family: var(--disp); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; white-space: nowrap; }
.feature .acts { margin-top: 24px; }
.feature .fviz { position: relative; overflow: hidden; border-left: 1px solid var(--line-2); min-height: 560px; }
.fviz .note { position: absolute; right: 16px; bottom: 12px; font-family: var(--mono); font-size: 10.5px; color: var(--mute); letter-spacing: .04em; }

/* кейс 1: сортировка обращений */
.sorter .gate { position: absolute; left: 34%; top: 80px; bottom: 64px; border-left: 2px dashed #3A3A36; }
.sorter .gate span { position: absolute; top: -30px; left: -70px; width: 140px; text-align: center; font: 11px var(--mono); background: var(--paper); padding: 2px 0; }
.sorter .col { position: absolute; bottom: 28px; width: 120px; margin-left: -60px; text-align: center; font: 10.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--sub); }
.sorter .sq { position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 2px; background: var(--human); opacity: 0; transform: translate(var(--x0), var(--y0)) rotate(var(--r)); }
.sorter.run .sq { animation: sortit 6.5s cubic-bezier(.6, .05, .3, 1) var(--dl) forwards; }
@keyframes sortit {
  0% { opacity: 0; transform: translate(var(--x0), var(--y0)) rotate(var(--r)); background: var(--human); }
  10% { opacity: .9; }
  48% { transform: translate(var(--gx), var(--y1)) rotate(0); background: var(--human); }
  58% { background: var(--c); }
  100% { transform: translate(var(--x1), var(--y2)) rotate(0); background: var(--c); opacity: var(--o); }
}

/* кейс 2: смета с маркером */
.estimate { display: grid; place-items: center; padding: 48px; }
.sheet { width: min(560px, 100%); background: #FFFEFB; box-shadow: 0 2px 0 rgba(0,0,0,.04), 0 18px 40px rgba(0,0,0,.10); transform: rotate(1.2deg); padding: 26px 28px 20px; font: 12.5px var(--mono); color: #2B2B28; }
.sheet .st { font: 600 16px var(--disp); letter-spacing: -0.01em; }
.sheet .sm { color: var(--mute); margin-top: 3px; }
.sheet .row { position: relative; display: grid; grid-template-columns: 22px 1fr 110px; gap: 4px; padding: 7px 4px; border-bottom: 1px dotted #CFCCC0; z-index: 0; }
.sheet .row:first-of-type { margin-top: 14px; border-top: 1px solid #2B2B28; }
.sheet .row .hl { position: absolute; left: -6px; top: 4px; bottom: 4px; width: 0; z-index: -1; opacity: .85; filter: url(#wc); border-radius: 2px; transition: width .7s ease-out; transition-delay: var(--dl, 0s); }
.run .sheet .row .hl, .sheet.run .row .hl { width: calc(100% + 12px); }
.sheet .row .who { text-align: right; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--sub); }
.sheet .foot2 { margin-top: 16px; display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.stamp-ok { font: 700 12.5px var(--disp); border: 2px solid #3A6FB0; color: #3A6FB0; padding: 4px 10px; transform: rotate(-5deg); border-radius: 4px; letter-spacing: .04em; text-transform: uppercase; opacity: 0; transition: opacity .4s 2.4s; }
.run .stamp-ok { opacity: 1; }

/* кейс 3: 636 зависших КП */
.deals { padding: 56px 48px 48px; display: flex; flex-direction: column; justify-content: center; }
.deals .count { display: flex; align-items: baseline; gap: 14px; }
.deals .count b { font: 600 64px var(--disp); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.deals .count span { font-family: var(--sans); font-size: 14px; color: var(--sub); max-width: 260px; }
.dgrid { margin-top: 20px; display: grid; grid-template-columns: repeat(36, minmax(0, 1fr)); gap: 3px; max-width: 640px; }
.dgrid i { aspect-ratio: 1; border-radius: 1.5px; background: #C9C5B6; transition: background .5s, opacity .5s; }
.dgrid i.step { background: var(--auto); }
.dgrid i.closed { background: var(--human); opacity: .35; }
.deals .legend { margin-top: 18px; }

/* остальные кейсы */
.more { max-width: 1200px; margin: 0 auto; padding: 88px 24px 104px; border-top: 1px solid var(--line-2); }
.more .clist { margin-top: 28px; }

/* как меняется работа: список задач, который размечается маркером */
.work { border-top: 1px solid var(--line-2); }
.work .whead { max-width: 1200px; margin: 0 auto; padding: 88px 24px 0; }
.work .tabs { margin-top: 22px; display: inline-flex; gap: 4px; padding: 4px; background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 10px; max-width: 100%; }
.work .tabs button { font-family: var(--sans); font-size: 14px; border: 0; background: transparent; color: var(--sub); padding: 8px 14px; border-radius: 7px; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.work .tabs button:hover { color: var(--ink); background: rgba(255, 255, 255, .7); }
.work .tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.work .tabs button:focus-visible { outline: 2px solid var(--auto); outline-offset: 2px; }
.wgrid { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; }
.wstage { position: sticky; top: var(--head); height: calc(100vh - var(--head)); display: flex; align-items: center; }
.wstage .sheet { transform: rotate(-.8deg); width: 100%; max-width: 600px; }
.wstage .row { transition: opacity .4s; }
.wstage .row.new { display: none; }
/* задачи закрываются сверху вниз: AI сам → AI помогает → человек → новые */
.wstage[data-step="1"] .row:not([data-c="auto"]), .wstage[data-step="2"] .row[data-c="human"] { opacity: .4; }
.wstage[data-step="4"] .row.new, .wstage[data-step="5"] .row.new { display: grid; }
.wstage:not([data-step="0"]) .row[data-c="auto"] .hl,
.wstage[data-step="2"] .row[data-c="aug"] .hl, .wstage[data-step="3"] .row[data-c="aug"] .hl, .wstage[data-step="4"] .row[data-c="aug"] .hl, .wstage[data-step="5"] .row[data-c="aug"] .hl,
.wstage[data-step="3"] .row[data-c="human"] .hl, .wstage[data-step="4"] .row[data-c="human"] .hl, .wstage[data-step="5"] .row[data-c="human"] .hl,
.wstage[data-step="4"] .row.new .hl, .wstage[data-step="5"] .row.new .hl { width: calc(100% + 12px); }
.wsteps .s { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .4s; }
.wsteps .s.on { opacity: 1; }
.wsteps .s:first-child { min-height: 60vh; } .wsteps .s:last-child { min-height: 85vh; }
.wsteps h3 { font-weight: 600; font-size: 22px; line-height: 1.25; }
.wsteps p { margin-top: 10px; }
.wsteps .ex { margin-top: 12px; font-size: 14px; color: var(--sub); border-left: 3px solid var(--line-2); padding-left: 12px; }
.wsteps .s[data-step="1"] .ex { border-color: var(--auto); } .wsteps .s[data-step="2"] .ex { border-color: var(--aug); }
.wsteps .s[data-step="3"] .ex { border-color: var(--human); } .wsteps .s[data-step="4"] .ex { border-color: var(--new); }

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; min-height: 0; }
  .feature .ftxt { padding: 48px 16px 28px; max-width: none; justify-self: stretch; }
  .feature h2 { font-size: 28px; }
  .feature ul.fm li { grid-template-columns: 104px 1fr; }
  .feature .fviz { border-left: 0; border-top: 1px solid var(--line-2); min-height: 420px; }
  .sorter .gate { left: 30%; }
  .estimate { padding: 32px 14px; } .sheet { padding: 18px 16px 14px; font-size: 11.5px; }
  .sheet .row { grid-template-columns: 18px 1fr 84px; }
  .deals { padding: 32px 16px; } .deals .count b { font-size: 48px; }
  .dgrid { grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; }
  .more { padding: 56px 16px 72px; }
  .work .whead { padding: 56px 16px 0; }
  .work .tabs { overflow-x: auto; scrollbar-width: none; } .work .tabs::-webkit-scrollbar { display: none; }
  .work .tabs button { font-size: 13px; padding: 7px 10px; flex: none; }
  .wgrid { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 12px; }
  .wstage { height: auto; max-height: 62vh; padding: 12px 0; background: var(--paper); z-index: 4; align-items: flex-start; }
  .wstage .sheet { font-size: 10.5px; padding: 12px 12px 10px; }
  .wstage .sheet .row { padding: 4px 2px; }
  .wsteps .s { min-height: 70vh; justify-content: flex-end; padding-bottom: 32px; }
}
.sheet .rows { margin-top: 14px; border-top: 1px solid #2B2B28; }
.sheet .rows .row:first-of-type { margin-top: 0; border-top: 0; }
.acts { margin-top: 28px; display: flex; gap: 8px; flex-wrap: wrap; }
.sorter .gate span { width: 190px; left: -95px; white-space: nowrap; }
@media (max-width: 900px) {
  .wsteps .s { align-items: stretch; padding: 0 4px 32px; }
  .sorter .col { width: 80px; margin-left: -40px; font-size: 9.5px; white-space: normal; line-height: 1.3; }
}

/* закрытое: пустой квадрат с крестиком (решено 05.11) */
:root { --xline: #8F8B7E; --xbg: linear-gradient(45deg, transparent 43%, var(--xline) 43% 57%, transparent 57%), linear-gradient(-45deg, transparent 43%, var(--xline) 43% 57%, transparent 57%); }
.dgrid i.closed { background: var(--xbg); box-shadow: inset 0 0 0 1px var(--xline); opacity: 1; }
.legend i.x { background: var(--xbg); box-shadow: inset 0 0 0 1px var(--xline); filter: none; }
/* сортировка идёт по кругу, не останавливаясь */
.sorter .sq { box-shadow: inset 0 0 0 1.5px transparent; }
.sorter.run .sq { animation: sortloop 7s linear var(--dl) infinite; }
@keyframes sortloop {
  0% { opacity: 0; transform: translate(var(--x0), var(--y0)) rotate(var(--r)); background: var(--human); box-shadow: inset 0 0 0 1.5px transparent; }
  8% { opacity: .9; }
  45% { transform: translate(var(--gx), var(--y1)) rotate(0); background: var(--human); box-shadow: inset 0 0 0 1.5px transparent; }
  52% { background: var(--c); box-shadow: inset 0 0 0 1.5px var(--bc, transparent); }
  86% { transform: translate(var(--x1), var(--y2)) rotate(0); background: var(--c); box-shadow: inset 0 0 0 1.5px var(--bc, transparent); opacity: var(--o); }
  100% { transform: translate(var(--x1), var(--y2)); background: var(--c); box-shadow: inset 0 0 0 1.5px var(--bc, transparent); opacity: 0; }
}

/* ===== первый экран v5: чистый, конкретный ===== */
.hero3 { max-width: 1040px; margin: 0 auto; min-height: calc(86vh - var(--head)); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 56px 24px 48px; }
.hero3 .kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); }
.hero3 h1 { margin-top: 18px; font-weight: 600; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.1; letter-spacing: -0.025em; max-width: 900px; }
.hero3 .lead { margin-top: 18px; max-width: 640px; font-size: 17px; color: var(--sub); }
.hrow { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 14px; font-size: 14.5px; }
.hero3 .lead + .hrow { margin-top: 28px; }
.hrow .hl { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.hrow s { color: var(--sub); text-decoration-color: #C9704F; text-decoration-thickness: 1.5px; }
.hrow .tool { padding: 3px 10px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--paper); font-size: 13.5px; }
.prods { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.prod { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--paper-2); text-decoration: none; font-size: 15px; font-weight: 500; transition: border-color .2s, background .2s; }
.prod:hover { border-color: var(--ink); background: var(--paper); }
.prod i { width: 12px; height: 12px; border-radius: 2px; filter: url(#wc); }
.prod span { color: var(--mute); }
.where { border-top: 1px solid var(--line-2); }
.where p { max-width: 1200px; margin: 0 auto; padding: 18px 24px; font-size: 14.5px; color: var(--sub); display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; }
/* как я работаю */
.how { border-top: 1px solid var(--line-2); max-width: 1200px; margin: 0 auto; padding: 88px 24px; }
.how3 { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how3 > div { background: var(--paper-2); border-radius: 12px; padding: 24px; }
.how3 h3 { font-weight: 600; font-size: 21px; }
.how3 p, .how3 li { margin-top: 10px; font-size: 15.5px; }
.how3 ol { padding-left: 20px; }
.how3 b { font-weight: 600; }
@media (max-width: 900px) {
  .hero3 { min-height: 0; padding: 40px 16px 40px; }
  .hero3 .lead { font-size: 15.5px; }
  .hrow { font-size: 13.5px; gap: 4px 10px; }
  .hrow .hl { flex-basis: 100%; }
  .prod { font-size: 14px; padding: 8px 12px; }
  .where p { padding: 14px 16px; font-size: 13.5px; }
  .how { padding: 56px 16px; } .how3 { grid-template-columns: 1fr; }
}
.hero3 h1 { font-size: clamp(36px, 5.2vw, 66px); line-height: 1.05; letter-spacing: -0.03em; max-width: 1000px; }
/* вкладки ролей внутри закреплённой части: роль меняется в любой момент прокрутки */
.wstage { flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; }
.wstage .tabs { margin-top: 0; position: relative; z-index: 2; }
.wstage .sheet .row { padding-top: 6px; padding-bottom: 6px; }
@media (max-height: 760px) and (min-width: 901px) { .wstage .sheet { padding: 16px 22px 12px; font-size: 11.5px; } .wstage .sheet .row { padding-top: 4px; padding-bottom: 4px; } }
@media (max-width: 900px) {
  .wstage { gap: 8px; max-height: 68vh; padding-top: 8px; }
  .wstage .tabs { max-width: 100%; }
}
/* как я работаю: две карточки и четыре шага */
.how2 { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.how2 > div { background: var(--paper-2); border-radius: 12px; padding: 24px; }
.how2 h3, .steps4 h3 { font-weight: 600; font-size: 20px; line-height: 1.25; }
.how2 p { margin-top: 10px; font-size: 15.5px; }
.steps4 { list-style: none; margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps4 li { border-top: 2px solid var(--ink); padding-top: 14px; }
.steps4 h3 { margin-top: 8px; }
.steps4 p { margin-top: 8px; font-size: 15px; color: var(--sub); }
.how-note { margin-top: 22px; font-size: 15.5px; }
@media (max-width: 900px) { .how2, .steps4 { grid-template-columns: 1fr; } }

/* ===== страница кейса: схема, скриншот под пунктами, призыв ===== */
.flow-sec { border-bottom: 1px solid var(--line-2); }
.flow-sec .head { max-width: 1200px; margin: 0 auto; padding: 48px 24px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.flow-sec h2 { font-weight: 600; font-size: 28px; }
.flow-sec .head p { color: var(--sub); }
.flow-sec .fviz { position: relative; height: 480px; margin-top: 24px; border-top: 1px solid var(--line-2); overflow: hidden; }
.flow-sec .fviz.deals { height: auto; min-height: 420px; }
.body ul.lead-b li b { font-weight: 600; }
.inline-shot { margin-top: 20px; background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px; }
.inline-shot img { width: 100%; height: auto; border-radius: 6px; display: block; }
.inline-shot figcaption { margin-top: 8px; font-family: var(--sans); font-size: 13px; color: var(--sub); }
.cta-case { max-width: 1200px; margin: 0 auto; padding: 16px 24px 40px; }
.cta-case > div { background: var(--ink); color: var(--paper); border-radius: 14px; padding: 28px 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-case h3 { font-weight: 600; font-size: 24px; }
.cta-case p { color: #CFCCC2; margin-top: 6px; font-size: 15px; max-width: 640px; }
.cta-case .pill { background: var(--new); color: var(--ink); border-color: var(--new); font-size: 15px; padding: 10px 18px; }
@media (max-width: 900px) {
  .flow-sec .head { grid-template-columns: 1fr; gap: 10px; padding: 40px 16px 0; }
  .flow-sec .fviz { height: 400px; }
  .cta-case { padding: 8px 16px 32px; } .cta-case > div { padding: 22px; }
}

/* узкий телефон: все четыре вкладки ролей помещаются без прокрутки */
@media (max-width: 420px) {
  .work .tabs { gap: 2px; padding: 3px; }
  .work .tabs button { font-size: 12px; padding: 6px 6px; }
}

/* аватарка перед именем в «Обо мне»: мелко в строке, при наведении раскрывается крупнее */
.ava { position: relative; display: inline-block; width: 1.5em; height: 1.5em; margin: -.3em .3em -.3em 0; vertical-align: middle; outline: none; cursor: zoom-in; }
.ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--line-2); }
.ava .big { position: absolute; left: -4px; bottom: calc(100% + 10px); width: 140px; height: 140px; border-radius: 18px; box-shadow: 0 0 0 4px #fff, 0 18px 40px rgba(0, 0, 0, .18);
  transform: translateY(8px) scale(.3) rotate(-6deg); transform-origin: 10% 100%; opacity: 0; pointer-events: none; transition: transform .35s cubic-bezier(.2, .9, .3, 1.3), opacity .2s; z-index: 5; }
.ava:hover .big, .ava:focus-visible .big, .ava:focus .big { transform: translateY(0) scale(1) rotate(-3deg); opacity: 1; }

/* лайки кейсов: ♡ на главной и блок «Кейс был полезен?» в конце кейса; без сервера скрыты */
.lk-mini[hidden], .case-like[hidden] { display: none; }
.lk-mini { font-family: var(--sans); font-size: 13px; background: transparent; border: 1px solid var(--line-2); color: var(--sub); padding: 4px 10px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; transition: color .2s, border-color .2s; }
.lk-mini:hover { color: var(--ink); border-color: var(--ink); }
.lk-mini[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.lk-mini[aria-pressed="true"] .h, .lk-btn[aria-pressed="true"] .h { color: var(--aug); }
.lk-mini.pop .h { display: inline-block; animation: lkpop .45s cubic-bezier(.2, .9, .3, 1.4); }
.acts .lk-mini { align-self: center; }
.crow-wrap { position: relative; }
.crow-wrap > .lk-mini { position: absolute; right: 12px; top: calc(50% + 22px); }
.lk { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lk-stack { display: flex; padding-left: 7px; }
.lk-stack i { position: relative; width: 32px; height: 32px; border-radius: 9px; margin-left: -7px; background: #E6E3DA; box-shadow: 0 0 0 3px var(--paper), inset 0 0 0 1px #D3CFC3; display: block; }
.lk-stack i:nth-child(even) { background: #DCD8CD; }
.lk-stack i.me { background: var(--aug); box-shadow: 0 0 0 3px var(--paper); }
.lk-stack i.more { z-index: 1; background: var(--ink); color: var(--paper); font: 11px var(--mono); display: grid; place-items: center; width: auto; min-width: 32px; padding: 0 8px; white-space: nowrap; }
.lk-stack i.pop { animation: lkpop .5s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes lkpop { from { transform: translateY(-14px) scale(.2) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
.lk-txt { font-family: var(--sans); font-size: 15px; color: var(--sub); }
.lk-txt b { color: var(--ink); font: 600 18px var(--disp); font-variant-numeric: tabular-nums; }
.lk-btn { font-family: var(--sans); font-size: 14px; background: var(--paper-2); border: 1px solid var(--line); color: var(--ink); padding: 8px 14px; border-radius: 8px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; transition: background .2s, transform .1s; }
.lk-btn:hover { background: #fff; }
.lk-btn:active { transform: scale(.95); }
.lk-btn .h { font-size: 16px; line-height: 1; }
.lk-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.case-like { max-width: 1200px; margin: 0 auto; padding: 16px 24px 0; }
.case-end { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px 28px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--paper); }
.case-end h3 { font: 600 20px var(--disp); letter-spacing: -.01em; }
@media (max-width: 900px) {
  .crow-wrap > .lk-mini { top: auto; bottom: 22px; }
  .case-like { padding: 8px 16px 0; } .case-end { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .lk-stack i.pop, .lk-mini.pop .h { animation: none; } }

/* «Как меняется работа» на телефоне: карточка не залипает, маркер проигрывается сам, текст шагов идёт ниже */
.replay { display: none; }
@media (max-width: 900px) {
  .wstage { position: static; height: auto; max-height: none; padding: 12px 0 4px; }
  .replay { display: inline-flex; margin-top: 6px; }
  .wsteps { padding: 28px 4px 16px; }
  .wsteps .s, .wsteps .s:first-child, .wsteps .s:last-child { min-height: 0; opacity: 1; justify-content: flex-start; padding: 0 0 24px; }
  .wsteps .s + .s { border-top: 1px solid var(--line); padding-top: 20px; }
  .wsteps h3 { font-size: 19px; }
}

/* плашка согласия на аналитику */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 720px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .14); padding: 16px 18px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-family: var(--sans); font-size: 14px; }
.consent p { flex: 1 1 320px; color: var(--sub); }
.consent a { color: var(--ink); }
.consent > div { display: flex; gap: 8px; }
.foot-btn { font: inherit; color: var(--sub); background: none; border: 0; padding: 0; margin-left: 16px; cursor: pointer; }
.foot-btn:hover { color: var(--ink); }
.foot-btn[hidden] { display: none; }
@media (max-width: 900px) { .foot-btn { margin: 0 16px 0 0; } }
/* страница «Конфиденциальность» */
.legal { max-width: 720px; margin: 0 auto; padding: 64px 24px 80px; }
.legal h1 { font: 600 40px/1.1 var(--disp); letter-spacing: -.02em; }
.legal h2 { font: 600 22px var(--disp); margin-top: 36px; }
.legal p { margin-top: 12px; color: var(--sub); }
.legal a { color: var(--ink); }
.legal code { font: 13px var(--mono); background: var(--paper-2); padding: 1px 5px; border-radius: 4px; }
