@font-face { font-family: 'JB Mono'; font-weight: 400; font-display: swap; src: url('../fonts/jbmono-400.woff2') format('woff2'); }
@font-face { font-family: 'JB Mono'; font-weight: 800; font-display: swap; src: url('../fonts/jbmono-800.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('../fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('../fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('../fonts/inter-700.woff2') format('woff2'); }

:root {
  --red: #e3262f;
  --red-hi: #ff4a53;
  --red-soft: rgba(227, 38, 47, .35);
  --cyan: #5ee7ff;
  --text: #e6e6e6;
  --body: #c9c9c9;
  --soft: #9a9a9a;
  --dim: #777;
  --line: #222;
  --page: #050505;
  --win: #0a0a0a;
  --bar: #0f0f0f;
  --band: #0d0d0d;
  --mono: 'JB Mono', ui-monospace, Menlo, Consolas, 'DejaVu Sans Mono', monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse 80% 520px at 50% -120px, rgba(227, 38, 47, .09), rgba(227, 38, 47, 0) 70%), var(--page);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
strong { font-weight: 600; color: var(--text); }
::selection { background: var(--red); color: #fff; }

.r { color: var(--red); }
.tx { color: var(--text); }
.dim { color: var(--dim); }
.mob { display: none; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--red);
  color: #fff;
  font-family: var(--mono);
  font-size: 14px;
}

.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* шапка */

.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 5, .82);
  border-bottom: 1px solid #161616;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hdr .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 56px;
  font-family: var(--mono);
  font-size: 13.5px;
}

.logo {
  flex: none;
  color: var(--soft);
  white-space: pre;
}

.logo .cur {
  display: inline-block;
  vertical-align: middle;
  width: .55ch;
  height: 1.1em;
  margin: -.15em 0 0 .2ch;
  background: var(--red);
  animation: blink 1.06s step-end infinite;
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav a {
  position: relative;
  color: var(--soft);
  transition: color .15s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s;
}

.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }

.lang {
  flex: none;
  color: var(--dim);
  white-space: pre;
}

.lang a, .lang span[aria-current] { padding: 0 .3ch; }
.lang a { color: var(--dim); transition: color .15s; }
.lang a:hover { color: var(--text); }
.lang [aria-current] { color: var(--red); font-weight: 800; }

.hdr-tg {
  display: none;
  flex: none;
  padding: 6px 12px;
  border: 1px solid var(--red);
  border-radius: 6px;
  color: var(--red);
}

/* окно терминала */

.win {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--win);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.9;
}

.win::before,
.win::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.win::before { background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .3) 0 1px, rgba(0, 0, 0, 0) 1px 3px); }
.win::after { background: radial-gradient(ellipse 75% 75% at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .6)); }

.rf {
  position: absolute;
  top: -160px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, .045), rgba(255, 255, 255, 0)) top / 100% 160px no-repeat;
  animation: refresh 7s linear infinite;
}

.bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 20px 0 18px;
  background: var(--bar);
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.bar::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.bar-r { margin-left: auto; }

.body {
  display: block;
  position: relative;
  padding: 20px clamp(16px, 3.6vw, 40px) 24px;
}

.ln { display: block; white-space: pre; }

.ty {
  display: inline-block;
  vertical-align: top;
  overflow: hidden;
  white-space: pre;
  width: calc(var(--n) * .6em);
  animation: type calc(var(--n) * var(--s, .045s)) steps(var(--n), start) var(--d, .4s) both;
}

.s { animation: show .4s step-end calc(var(--d, 0s) - .2s) both; }

.cur {
  display: inline-block;
  vertical-align: middle;
  width: .55em;
  height: 1.1em;
  margin-top: -.15em;
  background: var(--soft);
  animation: blink 1.06s step-end infinite;
}

.cur-r { margin-left: .6em; background: var(--red); }

.dot {
  display: inline-block;
  vertical-align: middle;
  width: .45em;
  height: .45em;
  margin: -.15em .6em 0 0;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s ease-in-out infinite;
}

/* hero */

.hero { margin-top: 32px; }

.hero-body { padding: 28px clamp(16px, 4.4vw, 52px) 30px; }

.hero-cmd { font-size: clamp(13px, 1.6vw, 18px); }

.pc {
  display: inline-block;
  vertical-align: middle;
  width: .55em;
  height: 1.1em;
  margin-top: -.15em;
  background: var(--soft);
  opacity: 0;
  animation: hide .5s step-end 1.2s both;
}

.big {
  position: relative;
  margin: .3em 0 .34em;
  color: var(--text);
  font-size: clamp(32px, 10vw, 112px);
  font-weight: 800;
  line-height: 1;
}

.big-in {
  position: relative;
  display: inline-block;
  margin-left: -.04em;
  white-space: pre;
}

.t1, .t2 { display: inline-block; vertical-align: top; overflow: hidden; }
.t1 { width: 6.6em; animation: t1 1.105s steps(13, start) 1.55s both, back .3s step-end 3.705s forwards; }
.t2 { width: 1.2em; animation: t2 .51s step-end 4.085s both; }

.bc {
  display: inline-block;
  vertical-align: top;
  width: .3em;
  height: .9em;
  margin: .06em 0 0 .03em;
  animation: on .5s step-end 1.2s both;
}

.bc > span {
  display: block;
  height: 100%;
  background: var(--red);
  animation: blink 1.06s step-end 4.555s infinite;
}

.gl {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  animation: glitch 7s step-end 4.705s infinite;
}

.gl > span { position: absolute; top: 0; left: 0; white-space: pre; }
.gl-r { color: var(--red); opacity: .85; transform: translateX(-.054em); }
.gl-c { color: var(--cyan); opacity: .45; transform: translate(.045em, .018em); }

.gl .gl-b {
  left: -.5em;
  right: -.5em;
  height: 1em;
  padding-left: .5em;
  background: var(--win);
}

.gl-b > span { display: block; }
.gl-b0 { clip-path: inset(6% 0 57% 0); }
.gl-b1 { clip-path: inset(38% 0 44% 0); }
.gl-b2 { clip-path: inset(66% 0 25.6% 0); }
.gl-b0 > span { animation: sh0 7s step-end 4.705s infinite; }
.gl-b1 > span { animation: sh1 7s step-end 4.705s infinite; }
.gl-b2 > span { animation: sh2 7s step-end 4.705s infinite; }

.sub { font-size: clamp(12.5px, 1.6vw, 18px); line-height: 1.75; }

.link:hover { color: #fff; text-decoration: underline; }

.tick {
  display: flex;
  align-items: center;
  height: 56px;
  overflow: hidden;
  background: var(--band);
  border-top: 1px solid var(--line);
  font-size: 15px;
  letter-spacing: 3px;
}

.tick-in {
  display: flex;
  flex: none;
  gap: 2.4ch;
  padding-left: 2.4ch;
  white-space: pre;
  animation: tick 48s linear infinite;
}

.term { margin-top: 22px; }
.term-out:not(:empty) { margin-bottom: 6px; }

.term-ln { white-space: pre-wrap; word-break: break-word; }
.term-a { color: var(--text); border-bottom: 1px solid rgba(227, 38, 47, .45); }
.term-a:hover { color: #fff; border-color: var(--red); }

.term-in { display: flex; align-items: center; }
.term-in .r { transition: color .15s, text-shadow .15s; }
.term-in:focus-within .r { color: var(--red-hi); text-shadow: 0 0 14px rgba(227, 38, 47, .45); }

.term-input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font: inherit;
  caret-color: var(--red);
}

.term-input::placeholder { color: #444; }
.term-input:focus-visible { outline: 0; }
.term-hint { margin-top: 10px; font-size: .85em; line-height: 1.5; }

.term-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.term-chip {
  position: relative;
  z-index: 3;
  padding: 3px 12px;
  background: #0c0c0c;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--soft);
  font: inherit;
  font-size: 13px;
  line-height: 1.6;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.term-chip:hover { border-color: var(--red); color: var(--text); }
.term-glitch .gl { animation: zap .45s step-end both; }
.term-glitch .big-in { animation: jitter .45s steps(1) both; }

/* кнопки и текст */

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  background: #0c0c0c;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1;
  white-space: pre;
  transition: background .15s, border-color .15s, box-shadow .15s, color .15s;
}

.btn-p { color: var(--red); }
.btn:hover { border-color: var(--red); box-shadow: 0 0 22px -6px var(--red-soft); }
.btn-main { background: var(--red); border-color: var(--red); color: #fff; }
.btn-main .btn-p { color: #fff; }
.btn-main:hover { background: #f23540; border-color: #f23540; box-shadow: 0 0 28px -4px rgba(227, 38, 47, .55); }

.lead {
  max-width: 820px;
  color: var(--body);
  font-size: 17px;
  line-height: 1.65;
}

.note { margin: 18px 0 12px; color: var(--soft); }

.a {
  border-bottom: 1px solid rgba(227, 38, 47, .45);
  transition: border-color .15s, color .15s;
}

.a:hover { color: #fff; border-color: var(--red); }

.sec { margin-top: 80px; }

.h {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
}

.h a:hover { color: #fff; }
.h-p { white-space: pre; color: var(--red); }

.h-n {
  color: #7a7a7a;
  font-size: 13px;
  font-weight: 400;
}

.list li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 22px;
  color: var(--soft);
  font-size: 15.5px;
}

.list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .6em;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid var(--red);
}

/* карточки */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  position: relative;
  display: block;
  padding: 20px 22px 22px;
  background: var(--win);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.card:hover {
  border-color: rgba(227, 38, 47, .6);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -14px var(--red-soft);
}

.card-tag {
  color: var(--red);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.4;
}

.card-tag::after { content: "_"; opacity: 0; }
.card:hover .card-tag::after { animation: blink 1.06s step-end infinite; }

.card-t {
  margin: 10px 0 8px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.card-d { color: #a3a3a3; font-size: 14.5px; line-height: 1.6; }

.card-more {
  display: inline-block;
  margin-top: 14px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 13px;
}

.card-more::after { content: " →"; transition: margin .2s; }
.card:hover .card-more::after { margin-left: 4px; }

/* терминальные таблицы */

.log { margin-top: 6px; }
.log-r { display: grid; grid-template-columns: 7ch 25ch minmax(0, 1fr); white-space: pre-wrap; }
.log-r:hover .tx { color: #fff; }

.ps { margin-top: 12px; }

.ps-h, .ps-r {
  display: grid;
  grid-template-columns: 6ch 21ch 7ch 9ch 10ch minmax(0, 1fr);
  margin: 0 -10px;
  padding: 0 10px;
  white-space: pre;
}

.ps-h { background: var(--red); color: var(--win); font-weight: 800; }
.ps-r { border-radius: 4px; transition: background .15s; }
.ps-r:hover { background: rgba(227, 38, 47, .1); }
.ps-r:hover .ps-n { color: #fff; text-decoration: underline; }
.num { text-align: right; }
.ps-st { padding-left: 3ch; }

.ps-sum {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 24px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.ls {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(21ch, 1fr));
  margin-top: 6px;
}

.ls a { color: var(--text); transition: color .15s; }
.ls a:hover { color: var(--red); }
.ls a::after { content: "*"; color: var(--red); }

.nm-i { margin-top: 8px; }
.nm { margin-top: 12px; }
.nm-h, .nm-r { display: grid; grid-template-columns: 10ch 7ch 10ch minmax(0, 1fr); white-space: pre-wrap; }
.nm-h { font-weight: 800; }
.nm-sv { color: var(--text); }
.nm-done { margin-top: 12px; }

/* как работаем */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.step {
  position: relative;
  padding: 20px 20px 22px;
  overflow: hidden;
  background: var(--win);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
  transform-origin: left;
  animation: fill 6s ease-in-out infinite;
  animation-delay: calc(var(--k, 0) * .6s);
}

.step-n { color: var(--red); font-family: var(--mono); font-size: 13px; }
.step-t { margin: 8px 0 6px; color: var(--text); font-family: var(--mono); font-size: 16px; font-weight: 800; }
.step-d { color: #a3a3a3; font-size: 14.5px; line-height: 1.55; }

.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 13px;
}

.chips-k { margin-right: 4px; color: var(--soft); }

.chip {
  padding: 4px 10px;
  background: #0c0c0c;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
}

.chip-r { border-color: rgba(227, 38, 47, .6); color: #fff; }

/* связь */

.cn { margin-top: 4px; transition: border-color .2s, box-shadow .2s; }
.cn:hover { border-color: rgba(227, 38, 47, .6); box-shadow: 0 0 34px -12px var(--red-soft); }
.cn-body { padding-top: 28px; padding-bottom: 28px; font-size: clamp(13px, 1.6vw, 18px); }

.cn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.cn-cmd { flex: none; }
.enter { display: inline-block; line-height: 1; }

.enter > span {
  display: inline-block;
  padding: .55em 1.1ch;
  border: 1px solid var(--red);
  border-radius: 4px;
  color: var(--red);
  white-space: pre;
  animation: border 1.6s ease-in-out 2.55s infinite;
  transition: background .15s, color .15s;
}

.cn:hover .enter > span { background: var(--red); color: var(--win); animation-play-state: paused; }
.cn-note { display: block; margin-top: 8px; font-size: .8em; }

.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 16px;
  background: rgba(10, 10, 10, .96);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--soft);
  font-size: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .6);
}

.cookie[hidden] { display: none; }

.cookie-btns { display: flex; gap: 8px; }

.cookie-yes, .cookie-no {
  padding: 4px 12px;
  background: transparent;
  border: 1px solid var(--red);
  border-radius: 6px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 13px;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.cookie-yes:hover { background: var(--red); color: #fff; }
.cookie-no { border-color: var(--line); color: var(--soft); }
.cookie-no:hover { background: transparent; border-color: var(--soft); color: var(--text); }

/* подвал */

.ftr {
  margin-top: 96px;
  padding: 28px 0 40px;
  border-top: 1px solid #161616;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 13px;
}

.ftr .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.ftr-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ftr a { color: var(--soft); transition: color .15s; }
.ftr a:hover { color: var(--text); }

/* страницы: кейс, плагины, 404 */

.page { margin-top: 40px; }

.crumbs {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 13px;
}

.crumbs a { color: var(--soft); }
.crumbs a:hover { color: var(--text); }

.page-h {
  margin: 14px 0 12px;
  color: var(--text);
  font-family: var(--mono);
  font-size: clamp(28px, 4.4vw, 46px);
  font-weight: 800;
  line-height: 1.15;
}

.page-h::after {
  content: "";
  display: inline-block;
  width: .3em;
  height: .82em;
  margin-left: .12em;
  vertical-align: -.06em;
  background: var(--red);
  animation: blink 1.06s step-end infinite;
}

.page-lead { max-width: 760px; color: var(--body); font-size: 18px; }

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.tbl th, .tbl td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.tbl th {
  color: var(--soft);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 400;
  text-transform: lowercase;
}

.tbl td:first-child { color: var(--text); font-family: var(--mono); white-space: nowrap; }
.tbl tr:hover td { background: rgba(255, 255, 255, .015); }
.tbl .on { color: var(--red); font-family: var(--mono); }
.tbl-wrap { margin-top: 28px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--win); }

.badge {
  display: inline-block;
  margin: 2px 0 14px;
  padding: 2px 10px;
  border: 1px solid rgba(227, 38, 47, .6);
  border-radius: 999px;
  color: var(--red-hi);
  font-family: var(--mono);
  font-size: 12.5px;
}

.nums {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 32px 0 8px;
}

.num-t {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: var(--win);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.num-v { color: var(--text); font-family: var(--mono); font-size: 26px; font-weight: 800; line-height: 1.1; }
.num-l { color: var(--soft); font-size: 13.5px; line-height: 1.4; }

.prose {
  max-width: 780px;
  margin-top: 36px;
  color: var(--body);
  font-size: 16.5px;
  line-height: 1.7;
}

.prose > * + * { margin-top: 1em; }

.prose h2, .prose h3 {
  margin-top: 2em;
  color: var(--text);
  font-family: var(--mono);
  font-weight: 800;
  line-height: 1.3;
  scroll-margin-top: 80px;
}

.prose h2 { font-size: 22px; }
.prose h3 { font-size: 18px; }
.prose h2::before { content: "## "; color: var(--red); }
.prose h3::before { content: "### "; color: var(--red); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: none; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li > ul, .prose li > ol { margin-top: .4em; }
.prose ul > li { position: relative; }

.prose ul > li::before {
  content: "";
  position: absolute;
  left: -1.1em;
  top: .62em;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid var(--red);
}

.prose ol > li::marker { color: var(--red); font-family: var(--mono); }
.prose li > ul { margin-top: .5em; }
.prose li > ul > li { color: var(--soft); font-size: .96em; }

.prose li > ul > li::before {
  top: .78em;
  width: 7px;
  height: 1px;
  border: 0;
  background: var(--dim);
}
.prose a { color: var(--text); border-bottom: 1px solid rgba(227, 38, 47, .45); transition: border-color .15s, color .15s; }
.prose a:hover { color: #fff; border-color: var(--red); }

.prose code {
  padding: .1em .35em;
  background: #141414;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--mono);
  font-size: .88em;
}

.prose img {
  display: block;
  max-height: 720px;
  width: auto;
  height: auto;
  margin: 1.4em 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose { overflow-wrap: anywhere; }

.prose pre {
  overflow-x: auto;
  padding: 14px 16px;
  background: var(--win);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.prose pre code { padding: 0; background: none; border: 0; }

.prose blockquote {
  padding: 2px 0 2px 16px;
  border-left: 2px solid var(--red);
  color: var(--soft);
}

.prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; }

.lost {
  padding: 22px 18px;
  border: 1px dashed #3a3a3a;
  border-radius: 10px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 13px;
  text-align: center;
}

.video {
  position: relative;
  display: block;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
  border: 1px solid var(--line) !important;
  border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}

.video img { width: 100%; height: 100%; max-height: none; margin: 0; object-fit: cover; border: 0; border-radius: 0; opacity: .75; transition: opacity .2s; }
.video:hover { border-color: var(--red) !important; box-shadow: 0 0 30px -10px var(--red-soft); }
.video:hover img { opacity: .95; }

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(227, 38, 47, .25);
}

.video-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 18px solid #fff;
}

.video-t {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 2px 8px;
  background: rgba(0, 0, 0, .7);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12.5px;
}

.doc .page-h { font-size: clamp(26px, 3.4vw, 38px); }
.doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-family: var(--mono); font-size: 13px; }
.doc-meta .badge { margin: 0; }

.toc {
  max-width: 780px;
  margin-top: 28px;
  padding: 16px 20px;
  background: var(--win);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 14px;
}

.toc-h { color: var(--red); margin-bottom: 6px; }
.toc ol { counter-reset: toc; }
.toc li { position: relative; padding-left: 4ch; counter-increment: toc; }
.toc li::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 0; color: var(--dim); }
.toc a { color: var(--soft); transition: color .15s; }
.toc-plain li { padding-left: 0; }
.toc-plain li::before { content: none; }
.toc a:hover { color: var(--text); }

.nf { margin-top: 5vh; }

.nf-body {
  display: grid;
  grid-template-areas: "log poster" "text poster" "end poster";
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr auto;
  gap: 0 clamp(24px, 4vw, 56px);
}

.nf-log { grid-area: log; min-width: 0; }
.nf-log .ln { overflow: hidden; text-overflow: ellipsis; }
.nf-text { grid-area: text; align-self: center; padding: 28px 0 20px; }
.nf-end { grid-area: end; }

.nf-h {
  margin: 0 0 10px;
  color: var(--text);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  white-space: normal;
}

.nf-sub { margin: 0; color: var(--soft); font-family: var(--sans); font-size: 16px; line-height: 1.6; white-space: normal; }
.nf-text .cta { margin-top: 24px; }

.poster {
  grid-area: poster;
  align-self: start;
  justify-self: center;
  margin: 6px 0;
  padding: 12px 12px 0;
  background: #000;
  border: 2px solid var(--text);
  line-height: 1;
}

.mask {
  position: relative;
  margin: 0;
  color: var(--text);
  font-family: var(--mono);
  font-size: clamp(5px, calc((100vw - 104px) / 33), 9.5px);
  line-height: 1.15;
  white-space: pre;
}

.mask-in { display: block; animation: scan 1.3s steps(42, end) 2.9s both, jolt 6s steps(1) 6s infinite; }
.mask-g { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.mask-r { color: var(--red); animation: gr 6s steps(1) 6s infinite; }
.mask-c { color: var(--cyan); animation: gc 6s steps(1) 6s infinite; }

.poster-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 12px -12px 0;
  padding: 6px 14px 8px;
  background: var(--red);
  color: #fff;
  font-family: var(--mono);
  animation: show .3s step-end 4.2s both;
}

.poster-bar b { font-size: clamp(26px, 4vw, 38px); font-weight: 800; line-height: 1; }
.poster-bar span { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

@media (max-width: 760px) {
  .nf-body {
    grid-template-areas: "log" "poster" "text" "end";
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }

  .nf-text { padding: 18px 0 14px; }
}

/* переходы между страницами (fx.js) */

html.fx-out::before,
html.fx-in::before,
html.fx-out::after,
html.fx-in::after {
  content: "";
  position: fixed;
  z-index: 9999;
  pointer-events: none;
}

html.fx-out::before,
html.fx-in::before { inset: 0; }

/* glitch: полосы, сдвиг, чёрный кадр */

html[data-fx="glitch"].fx-out body { animation: fx-jit .24s steps(1) both; }
html[data-fx="glitch"].fx-in body { animation: fx-jit .3s steps(1) reverse both; }

html[data-fx="glitch"].fx-out::before,
html[data-fx="glitch"].fx-in::before {
  -webkit-backdrop-filter: hue-rotate(150deg) saturate(2.5);
  backdrop-filter: hue-rotate(150deg) saturate(2.5);
  -webkit-mask-image: linear-gradient(transparent 0 14%, #000 14% 19%, transparent 19% 47%, #000 47% 49%, transparent 49% 71%, #000 71% 80%, transparent 80%);
  mask-image: linear-gradient(transparent 0 14%, #000 14% 19%, transparent 19% 47%, #000 47% 49%, transparent 49% 71%, #000 71% 80%, transparent 80%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

html[data-fx="glitch"].fx-out::before { animation: fx-bands .24s steps(1) both; }
html[data-fx="glitch"].fx-in::before { animation: fx-bands .3s steps(1) reverse both; }

@keyframes fx-jit {
  0% { transform: none; }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(9px) skewX(-3deg); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px) scaleY(1.02); }
  100% { transform: none; }
}

@keyframes fx-bands {
  0% { -webkit-mask-position: 0 0; mask-position: 0 0; background: transparent; }
  25% { -webkit-mask-position: 0 -22vh; mask-position: 0 -22vh; }
  50% { -webkit-mask-position: 0 31vh; mask-position: 0 31vh; background: rgba(227, 38, 47, .12); }
  75% { -webkit-mask-position: 0 -9vh; mask-position: 0 -9vh; -webkit-mask-image: none; mask-image: none; background: var(--page); }
  100% { -webkit-mask-image: none; mask-image: none; background: var(--page); }
}

/* term: экран гаснет, печатается cd куда идём */

html[data-fx="term"].fx-out::before { background: var(--page); animation: show .12s step-end both; }
html[data-fx="term"].fx-in::before { background: var(--page); animation: fx-wipe-up .3s steps(14, end) .18s both; }

html[data-fx="term"].fx-out::after,
html[data-fx="term"].fx-in::after {
  content: "fried@fdev:~$ " attr(data-fx-cmd);
  top: 96px;
  left: max(16px, calc(50vw - 560px));
  overflow: hidden;
  border-right: .55em solid var(--red);
  color: var(--soft);
  font: 15px/1.4 var(--mono);
  white-space: pre;
}

html[data-fx="term"].fx-out::after { animation: fx-type .3s steps(18, end) .06s both; }
html[data-fx="term"].fx-in::after { animation: hide .1s step-end .18s both; }

@keyframes fx-type { from { max-width: 14ch; } to { max-width: 60ch; } }
@keyframes fx-wipe-up { from { clip-path: inset(0); } to { clip-path: inset(0 0 100% 0); } }

/* crt: картинка схлопывается в линию и обратно */

html[data-fx="crt"].fx-out body { transform-origin: 50% calc(var(--fx-y, 0px) + 50vh); animation: fx-crt-off .26s cubic-bezier(.7, 0, 1, .4) both; }
html[data-fx="crt"].fx-in body { transform-origin: 50% 50vh; animation: fx-crt-on .34s cubic-bezier(0, .6, .3, 1) both; }

html[data-fx="crt"].fx-out::after,
html[data-fx="crt"].fx-in::after {
  top: calc(50vh - 1px);
  left: 0;
  right: 0;
  height: 2px;
  background: #fff;
  box-shadow: 0 0 18px 4px rgba(255, 255, 255, .55), 0 0 60px 10px rgba(227, 38, 47, .35);
}

html[data-fx="crt"].fx-out::after { animation: fx-line-off .26s linear both; }
html[data-fx="crt"].fx-in::after { animation: fx-line-off .2s linear reverse both; }

@keyframes fx-crt-off {
  0% { transform: none; filter: none; }
  60% { transform: scale(1, .006); filter: brightness(2.5); }
  100% { transform: scale(0, .006); filter: brightness(3); }
}

@keyframes fx-crt-on {
  0% { transform: scale(1, .006); filter: brightness(3); }
  55% { transform: scale(1, 1.02); filter: brightness(1.3); }
  100% { transform: none; filter: none; }
}

@keyframes fx-line-off {
  0%, 50% { opacity: 0; transform: none; }
  60% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(0); }
}

/* scan: красная строка развёртки закрывает и открывает экран */

html[data-fx="scan"].fx-out::before { background: var(--page); animation: fx-cover .3s steps(16, end) both; }
html[data-fx="scan"].fx-in::before { background: var(--page); animation: fx-uncover .42s steps(20, end) both; }

html[data-fx="scan"].fx-out::after,
html[data-fx="scan"].fx-in::after {
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--red);
  box-shadow: 0 0 14px 3px rgba(227, 38, 47, .7);
}

html[data-fx="scan"].fx-out::after { animation: fx-line-down .3s steps(16, end) both; }
html[data-fx="scan"].fx-in::after { animation: fx-line-down .42s steps(20, end) both; }

@keyframes fx-cover { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes fx-uncover { from { clip-path: inset(0); } to { clip-path: inset(100% 0 0 0); } }
@keyframes fx-line-down { from { transform: translateY(0); } to { transform: translateY(100vh); } }

/* адаптив */

@media (max-width: 960px) {
  .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { gap: 16px; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .hdr-tg { display: inline-block; margin-left: auto; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 14px; }
  .dsk { display: none; }
  .mob { display: inline; }
  .hdr .wrap { gap: 14px; font-size: 13px; }
  .hero { margin-top: 18px; }
  .win { font-size: 12px; }
  .term-in { font-size: 16px; }
  .tick { height: 46px; font-size: 13px; letter-spacing: 2px; }
  .sub-b { display: block; margin-left: 2ch; }
  .sec { margin-top: 56px; }
  .h { font-size: 17px; }
  .lead { font-size: 16px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .log-r { grid-template-columns: 7ch minmax(0, 1fr); }
  .log-d { grid-column: 1 / -1; padding-left: 3ch; color: var(--soft); }
  .ps-h, .ps-r { grid-template-columns: minmax(0, 1fr) 6ch 6ch 3ch; }
  .ps-pid, .ps-v { display: none; }
  .ps-st { padding-left: 1ch; text-align: right; }
  .ps-st .dot { margin-right: 0; }
  .ps-h .ps-st { visibility: hidden; }
  .nm-h, .nm-r { grid-template-columns: 10ch minmax(0, 1fr); }
  .nm-st { display: none; }
  .nm-v { grid-column: 2; }
  .nm-h .nm-v { display: none; }
  .nm-r .nm-sv { color: var(--red); }
  .ftr { margin-top: 64px; }
}

@media (max-width: 460px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 360px) {
  .win, .sub, .cn-body { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  .rf, .gl { display: none; }
}

/* анимации */

@keyframes type { from { width: 0; } }
@keyframes scan { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes jolt { 0%, 100% { transform: none; } 90% { transform: translateX(3px); } 92% { transform: translateX(-2px); } 94% { transform: none; } }

@keyframes gr {
  0%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
  90% { opacity: .85; transform: translateX(-5px); clip-path: inset(17% 0 64% 0); }
  92% { opacity: .85; transform: translateX(6px); clip-path: inset(52% 0 31% 0); }
  94% { opacity: .85; transform: translateX(-3px); clip-path: inset(74% 0 9% 0); }
  96% { opacity: 0; }
}

@keyframes gc {
  0%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
  90% { opacity: .7; transform: translateX(4px); clip-path: inset(30% 0 52% 0); }
  92% { opacity: .7; transform: translateX(-6px); clip-path: inset(8% 0 80% 0); }
  94% { opacity: .7; transform: translateX(3px); clip-path: inset(61% 0 22% 0); }
  96% { opacity: 0; }
}
@keyframes show { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 1; } }
@keyframes on { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 1; } }
@keyframes hide { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 0; } }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes border { 0%, 100% { border-color: var(--red); } 50% { border-color: rgba(227, 38, 47, .25); } }
@keyframes refresh { from { transform: translateY(0); } to { transform: translateY(100%); } }
@keyframes tick { to { transform: translateX(-50%); } }
@keyframes t1 { from { width: 0; } to { width: 7.8em; } }
@keyframes back { 0% { width: 7.2em; } 50% { width: 6.6em; } 100% { width: 6.6em; } }
@keyframes t2 { 0% { width: 0; } 33.33% { width: .6em; } 66.67% { width: 1.2em; } 100% { width: 1.2em; } }
@keyframes glitch { 0% { opacity: 1; } 5% { opacity: 0; } 100% { opacity: 0; } }
@keyframes zap { 0% { opacity: 1; } 70% { opacity: 0; } 100% { opacity: 0; } }

@keyframes jitter {
  0% { transform: translateX(-.03em); }
  25% { transform: translateX(.04em); }
  50% { transform: translateX(-.02em); }
  75%, 100% { transform: translateX(0); }
}

@keyframes sh0 {
  0% { transform: translateX(-.143em); }
  1.6% { transform: translateX(.086em); }
  3.2% { transform: translateX(-.057em); }
  4.8%, 100% { transform: translateX(0); }
}

@keyframes sh1 {
  0% { transform: translateX(.098em); }
  1.6% { transform: translateX(-.059em); }
  3.2% { transform: translateX(.039em); }
  4.8%, 100% { transform: translateX(0); }
}

@keyframes sh2 {
  0% { transform: translateX(-.0625em); }
  1.6% { transform: translateX(.0375em); }
  3.2% { transform: translateX(-.025em); }
  4.8%, 100% { transform: translateX(0); }
}

@keyframes fill {
  0% { transform: scaleX(0); opacity: 1; }
  15%, 75% { transform: scaleX(1); opacity: 1; }
  90% { transform: scaleX(1); opacity: 0; }
  100% { transform: scaleX(0); opacity: 0; }
}
