@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url(/fonts/jetbrains-mono-cyrillic-wght-normal.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: 100 800; font-display: swap; src: url(/fonts/jetbrains-mono-latin-wght-normal.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+2190-2199, U+2212, U+2215, U+2500-259F, U+FEFF, U+FFFD; }
@font-face { font-family: Onest; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/onest-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/onest-latin-wght-normal.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; }

/* Onlibiz · айдентика «Курсор». Токены проверены на контраст WCAG AA. */
:root {
  --bg: #0A0A0B; --surface: #111113; --line: #26262A; --line2: #34343A;
  --text: #EDEDE8; --muted: #A3A39E; --dim: #8A8A90;
  --signal: #FF5A1F; --signal-text: #FF5A1F; --on-signal: #0A0A0B;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: Onest, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
  --hh: 64px;
}
.light {
  --bg: #F2F1EC; --surface: #FAF9F6; --line: #D6D4CC; --line2: #C4C2B9;
  --text: #0A0A0B; --muted: #45454C; --dim: #5C5C63; --signal-text: #B4380A;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: #0A0A0B; color: #EDEDE8; font-family: var(--sans); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; overflow: hidden; transition: background-color .3s var(--ease); }

html[lang="zh"] h1 { letter-spacing: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

/* курсор */
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.cur { display: inline-block; width: .5em; height: 1em; margin-left: .12em; vertical-align: -.14em; background: var(--signal); animation: blink 1.05s steps(1) infinite; }
.cur.sm { width: 8px; height: 15px; background: var(--text); vertical-align: -3px; }
.logo { font-family: var(--mono); font-weight: 800; font-size: 20px; letter-spacing: -.03em; text-decoration: none; color: var(--text); white-space: nowrap; }
.sig { font-family: var(--mono); color: var(--signal-text); }
.mono { font-family: var(--mono); }

/* шапка */
.top { position: fixed; z-index: 20; inset: 0 0 auto 0; height: var(--hh); padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 24px; background: var(--bg); color: var(--text); border-bottom: 1px solid var(--line); transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.tabs { display: flex; gap: 2px; font-family: var(--mono); font-size: 13px; }
.tabs button { border: 0; background: none; padding: 8px 12px; color: var(--dim); border-radius: 2px; transition: color .2s, background-color .2s; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); background: var(--surface); box-shadow: inset 0 -2px 0 var(--signal); }
.right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.langs { display: flex; font-family: var(--mono); font-size: 12px; border: 1px solid var(--line); border-radius: 2px; }
.langs button { border: 0; background: none; padding: 6px 9px; color: var(--dim); }
.langs button.on { color: var(--text); background: var(--surface); }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid var(--signal); border-radius: 2px; background: var(--signal); color: var(--on-signal); font-family: var(--mono); font-weight: 700; font-size: 14px; text-decoration: none; transition: transform .12s var(--ease), background-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; border-color: var(--line2); color: var(--text); }
.btn.ghost:hover { border-color: var(--text); }
.btn.dark { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 13px; }

/* слайды */
.deck { position: fixed; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none; }
.deck::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; width: 100%; height: 100vh; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding: calc(var(--hh) + 48px) 0 120px; display: flex; background: var(--bg); color: var(--text); }
.slide.dark { background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px); background-size: 16px 16px; }
.wrap { position: relative; width: 100%; max-width: 1200px; margin: auto; padding: 0 32px; }
.wrap.two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; align-items: start; }
.cmd { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; font-size: 13px; }
.cmd small { font-family: var(--sans); font-size: 13px; color: var(--dim); }
h1 { margin: 0; font-family: var(--mono); font-weight: 800; font-size: clamp(38px, 5vw, 66px); line-height: 1.02; letter-spacing: -.045em; max-width: 16ch; }
.lead { margin: 24px 0 0; font-size: clamp(16px, 1.45vw, 19px); line-height: 1.55; color: var(--muted); max-width: 44ch; }

/* слайд 1 */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 32px; background: var(--line); border: 1px solid var(--line); }
.cell { background: var(--bg); padding: 16px; display: flex; flex-direction: column; gap: 6px; min-height: 120px; transition: background-color .2s; }
.cell:hover { background: var(--surface); }
.cell i { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.cell b { font-family: var(--mono); font-size: 14px; font-weight: 700; }
.cell span { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.cell.nda b { color: var(--dim); }
.status { display: flex; align-items: center; gap: 10px; margin-top: 32px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(255,90,31,.18); flex: none; }

/* слайд 2 */
.flow { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); }
.flow li { padding: 14px 14px 14px 18px; display: flex; flex-direction: column; gap: 4px; position: relative; }
.flow li + li { border-left: 1px solid var(--line); }
.flow li:not(.last)::after { content: "→"; position: absolute; right: -8px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 13px; color: var(--dim); background: var(--bg); line-height: 1; padding: 2px 0; z-index: 1; }
.flow b { font-family: var(--mono); font-size: 13px; }
.flow span { font-size: 13px; color: var(--muted); }
.flow li.last { background: var(--text); color: var(--bg); }
.flow li.last span { color: var(--line); }
.grant { border: 1px solid var(--text); padding: 28px; display: flex; flex-direction: column; gap: 14px; background: var(--surface); }
.grant .sig { font-size: 12px; }
.grant h2 { margin: 0; font-size: 28px; line-height: 1.12; letter-spacing: -.02em; }
.grant p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 15px; }
.grant .btn { align-self: flex-start; }
.grant small { font-size: 12.5px; color: var(--dim); }

/* слайд 3 */
.stats { display: grid; gap: 10px; margin-top: 32px; font-family: var(--mono); font-size: 13px; max-width: 360px; }
.stats div { display: flex; align-items: baseline; gap: 8px; }
.stats span { color: var(--dim); }
.stats i { flex: 1; border-bottom: 1px dotted var(--line2); transform: translateY(-4px); }
.stats b { font-size: 15px; }
.stats small { font-family: var(--sans); color: var(--dim); min-width: 110px; }
.git { list-style: none; margin: 8px 0 0; padding: 0; font-family: var(--mono); font-size: 14px; }
.git li { position: relative; display: grid; grid-template-columns: 44px auto minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline; padding: 0 0 13px 32px; }
.git li::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: -2px; width: 2px; background: var(--line); }
.git li:last-child::before { display: none; }
.git li::after { content: ""; position: absolute; left: 0; top: 3px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--dim); background: var(--bg); box-sizing: border-box; }
.git li.ok::after { background: var(--text); border-color: var(--text); }
.git li.ok::before { background: var(--text); }
.git li.head::after { background: var(--signal); border-color: var(--signal); animation: ping 1.4s ease-out 3; }
.git li.pub::after { border-color: var(--signal); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,90,31,.5); } 100% { box-shadow: 0 0 0 12px rgba(255,90,31,0); } }
.git em { font-style: normal; color: var(--dim); }
.git b { font-weight: 700; }
.git span { font-family: var(--sans); font-size: 13.5px; color: var(--muted); min-width: 0; }
.git u { text-decoration: none; color: var(--dim); font-size: 12px; }
.git li.head u { background: var(--signal); color: var(--on-signal); padding: 1px 8px; font-weight: 800; }
.git li.head em { color: var(--signal); }
.git li.pub u { color: var(--signal-text); }

/* анимации переходов: «джук», скан, печать */
@keyframes jolt { 0% { transform: translateX(-12px); opacity: 0; filter: blur(2px); } 40% { transform: translateX(5px); opacity: 1; filter: none; } 60% { transform: translateX(-2px); } 100% { transform: none; } }
@keyframes reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sweep { from { transform: translateY(-120px); opacity: 1; } to { transform: translateY(100vh); opacity: 0; } }
.scan { position: fixed; left: 0; right: 0; top: 0; height: 120px; pointer-events: none; opacity: 0; background: linear-gradient(180deg, transparent, rgba(255,90,31,.10), transparent); }
.slide.in .type { animation: reveal 1.2s steps(28) .1s both; }
.slide.in .rise { animation: rise .5s var(--ease) both; }
.slide.in .d1 { animation-delay: .1s; } .slide.in .d2 { animation-delay: .2s; } .slide.in .d3 { animation-delay: .3s; } .slide.in .d4 { animation-delay: .4s; } .slide.in .d5 { animation-delay: .5s; } .slide.in .d6 { animation-delay: .6s; } .slide.in .d7 { animation-delay: .7s; }

/* листалка */
.pager { position: fixed; z-index: 20; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 4px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 2px; font-family: var(--mono); transition: background-color .3s, border-color .3s; }
.arr { width: 40px; height: 40px; border: 0; background: none; color: var(--muted); font-size: 16px; }
.arr:hover { color: var(--text); background: var(--surface); }
.arr[disabled] { opacity: .3; pointer-events: none; }
.count { font-size: 12px; color: var(--dim); min-width: 56px; text-align: center; }
.bars { display: flex; gap: 4px; }
.bars button { border: 0; background: none; padding: 10px 0; }
.bars i { display: block; width: 36px; height: 2px; background: var(--line2); position: relative; overflow: hidden; }
.bars i::after { content: ""; position: absolute; inset: 0; background: var(--signal); transform: scaleX(0); transform-origin: left; }
.bars button.on i::after { transform: scaleX(1); transition: transform .3s var(--ease); }
.bars button.on.auto i::after { transition: transform 10s linear; }

/* контакты */
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(5,5,6,.78); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.box { width: 100%; max-width: 560px; background: #111113; color: #EDEDE8; border: 1px solid #26262A; border-radius: 2px; padding: 24px; display: flex; flex-direction: column; gap: 12px; font-family: var(--mono); }
.mhead { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.x { width: 40px; height: 40px; border: 1px solid #26262A; background: transparent; color: #A3A39E; font-size: 18px; }
.cline { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid #26262A; padding: 14px 16px; }
.cline div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cline small { font-size: 12px; color: #8A8A90; font-family: var(--sans); }
.cline b { font-size: 16px; -webkit-user-select: all; user-select: all; overflow-wrap: anywhere; }
.box .btn.ghost { color: #EDEDE8; border-color: #34343A; }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ways a { border: 1px solid #26262A; padding: 12px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; font-size: 13px; }
.ways a:hover { border-color: #EDEDE8; }
.ways span { font-family: var(--sans); color: #A3A39E; font-size: 12.5px; }
.ways .soon { border-style: dashed; border-color: var(--signal); }
.ways .soon b { color: var(--signal); }
.org { border-top: 1px solid #26262A; padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.org small { font-size: 12px; color: #8A8A90; }
.org p { margin: 0; font-family: var(--sans); font-size: 14px; line-height: 1.55; color: #A3A39E; }

/* вспышка при смене темы */
.flash { position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: 0; }
.flash.go-light { background: #F2F1EC; animation: flash .45s ease-out 1; }
.flash.go-dark { background: #0A0A0B; animation: flash .45s ease-out 1; }
@keyframes flash { 0% { opacity: 0; } 30% { opacity: .9; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cur { opacity: 1; }
}

@media (min-width: 961px) and (max-height: 820px) {
  .slide { padding-top: calc(var(--hh) + 32px); }
  h1 { font-size: clamp(36px, 4.8vw, 60px); }
  .grid4, .flow { margin-top: 28px; }
}
@media (max-width: 960px) {
  .tabs { display: none; }
  .wrap.two { grid-template-columns: 1fr; gap: 40px; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li:nth-child(3) { border-left: 0; }
  .flow li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .flow li::after { display: none; }
}
@media (max-width: 600px) {
  :root { --hh: 56px; }
  .top { gap: 8px; padding: 0 12px; }
  .logo { font-size: 17px; }
  .right { gap: 6px; }
  .langs button { padding: 6px 6px; }
  .right .btn.ghost { display: none; }
  .slide { padding: calc(var(--hh) + 28px) 0 96px; }
  .wrap { padding: 0 16px; }
  h1 { font-size: clamp(32px, 10vw, 44px); }
  .cell { min-height: 0; padding: 12px; }
  .ways { grid-template-columns: 1fr; }
  .git li { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .bars i { width: 28px; }
}
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }

/* медиа-лаборатория */
.lab { border: 1px solid var(--line2); background: var(--surface); padding: 24px; display: flex; flex-direction: column; gap: 0; }
.lab .sig { font-size: 12px; }
.lab h2 { margin: 8px 0 12px; font-size: 24px; letter-spacing: -.02em; }
.metric { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.metric b { font-family: var(--mono); font-size: 14px; }
.metric span { font-size: 13.5px; color: var(--muted); }
/* гранты */
.give { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 32px; background: var(--line); border: 1px solid var(--line); }
.give div { background: var(--bg); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.give .sig { font-size: 12px; }
.give b { font-size: 17px; }
.give span:last-child { font-size: 14px; line-height: 1.5; color: var(--muted); }
.sum { display: flex; flex-direction: column; gap: 4px; padding: 6px 0 4px; }
.sum b { font-family: var(--mono); font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -.04em; }
.sum span { font-size: 13px; color: var(--dim); }
@media (max-width: 960px) { .git li { grid-template-columns: 40px minmax(0, 1fr) auto; } .git span { grid-column: 2; grid-row: 2; } .git u { grid-column: 3; grid-row: 1; } }
@media (max-width: 600px) { .give { grid-template-columns: 1fr; } }

/* спокойные переходы: без вспышек и тряски; на компьютере текст слайда не прокручивается, колесо листает вбок */
.flash { display: none !important; }
.scan { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 961px) {
  .slide { overflow-y: hidden; }
}
@media (hover: hover) and (pointer: fine) and (min-width: 961px) and (max-height: 720px) {
  .slide { padding-top: calc(var(--hh) + 20px); padding-bottom: 84px; }
  h1 { font-size: clamp(32px, 4.2vw, 52px); }
  .lead { margin-top: 16px; }
}

/* полностью статичный контент слайда: никаких подъёмов, сдвигов и проявлений при листании */
.slide.in .rise, .slide.in .type, .slide.in .wrap, .slide.in .scan { animation: none !important; }
.rise, .type { opacity: 1 !important; transform: none !important; clip-path: none !important; }
body { transition: none !important; }

/* ничего не мигает: курсор в логотипе и точка статуса — статичные */
.cur.sm { display: none !important; }
.logo .cur { animation: blink 1.05s steps(1) infinite; } /* мигает только курсор в логотипе */
.git li.head::after { animation: none !important; }

/* шапка и листалка всегда тёмные: при переходе на светлый слайд ничего не перекрашивается разом */
.top, .pager { transition: none !important; }
