
:root {
  color-scheme: light dark;
  --bg: #f6f7f4;
  --ink: #17191c;
  --muted: #3c4638;
  --line: #d5dcd0;
  --accent: #0f7034;
  --btn: #0f7034;
  --btn-hover: #0c5c2b;
  --on-btn: #ffffff;
  --surface: #e7ebe2;
  --danger: #8f1d1d;
  --nav: 4.25rem;
}
@media (prefers-color-scheme: dark) {
  .door-rf {
    color-scheme: dark;
    --bg: #141613;
    --ink: #f3f4ef;
    --muted: #c9d2c4;
    --line: #2c382e;
    --accent: #8dcea4;
    --btn: #12803c;
    --btn-hover: #147a3c;
    --surface: #1c211c;
    --danger: #ffb4ab;
  }
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/unbounded-cyrillic-500.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/unbounded-latin-500.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: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/manrope-cyrillic-400.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/manrope-latin-400.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: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/manrope-cyrillic-600.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/manrope-latin-600.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;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--accent) var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", "PT Sans", "Noto Sans", sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--btn);
  color: var(--on-btn);
  padding: 0.5rem 0.8rem;
  border-radius: 0;
}
.skip:focus { top: 0.5rem; }
.nav {
  width: min(1120px, calc(100% - 2.5rem));
  height: var(--nav);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: transparent;
}
.nav a { text-decoration: none; }
.brand {
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.practice { color: var(--muted); margin-right: auto; }
.wrap { width: min(1120px, calc(100% - 2.5rem)); margin: 0 auto; }
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  min-height: calc(100dvh - var(--nav));
  padding: 1.25rem 0 2rem;
}
.stamp {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.02em;
  margin: 0.85rem 0 1rem;
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  font-size: clamp(0.95rem, 1.8vw, 1.35rem);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  --slot: 1.12em;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.stamp > [aria-hidden] {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.group { display: inline-flex; }
.reel {
  display: inline-block;
  height: var(--slot);
  width: 1ch;
  overflow: hidden;
  flex: none;
}
.reel.d0 { --n: 10; --d: 0ms; }
.reel.d1 { --n: 14; --d: 70ms; }
.reel.d2 { --n: 10; --d: 140ms; }
.reel.d3 { --n: 19; --d: 210ms; }
.reel.d4 { --n: 11; --d: 280ms; }
.reel.d5 { --n: 19; --d: 350ms; }
.reel.d6 { --n: 19; --d: 420ms; }
.reel.d7 { --n: 12; --d: 490ms; }
.strip {
  display: block;
  transform: translateY(calc(var(--n) * var(--slot) * -1));
}
.reel i {
  display: flex;
  height: var(--slot);
  align-items: center;
  justify-content: center;
  font-style: normal;
}
.dot {
  color: var(--accent);
  width: 0.28em;
  text-align: center;
}
.stamp::after {
  content: "";
  position: absolute;
  left: 0;
  right: 12%;
  bottom: -0.28em;
  height: 2px;
  background: var(--accent);
  transform: scaleX(1);
  transform-origin: left;
}
h1, h2, .mark, .row strong, .works strong {
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  letter-spacing: -0.03em;
}
h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.35rem);
  line-height: 1.08;
  margin: 0 0 0.75rem;
  max-width: 16ch;
  text-wrap: balance;
}
.sub, .why p, .fine, form, .sheet p {
  max-width: 65ch;
}
.sub { margin: 0 0 1.15rem; font-size: 1.12rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0 1.05rem;
  background: var(--btn);
  color: var(--on-btn);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: none;
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.button:hover { background: var(--btn-hover); box-shadow: none; }
.button.ghost:hover { background: var(--surface); border-color: var(--ink); }
.button:active { transform: scale(0.98); }
.button:disabled { cursor: wait; }
.hero-photo { margin: 0; }
.hero-photo img {
  width: 100%;
  height: min(52dvh, 560px);
  object-fit: cover;
  border-radius: 0;
}
.hero-photo figcaption {
  margin: 0.7rem 0 0;
  max-width: 36ch;
  color: var(--muted);
}
section { padding: 4.5rem 0; }
section + section { border-top: 1px solid var(--line); }
h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.12;
  margin: 0 0 1.1rem;
  max-width: 20ch;
  text-wrap: balance;
}
.rows { display: grid; }
.row {
  display: grid;
  grid-template-columns: minmax(11rem, 0.7fr) 1.5fr;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.row strong { font-size: 1.05rem; }
.row span, .row p { margin: 0; }
.why p { margin: 0 0 0.85rem; }
.works { display: grid; margin-top: 1.25rem; }
.works a {
  display: grid;
  grid-template-columns: minmax(12rem, 16rem) 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: color 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.works a:hover { color: var(--accent); }
.works a span { color: var(--muted); }
.risks { display: grid; }
#zayavka {
  background: var(--surface);
  border-top: 0;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
#zayavka .wrap { width: min(1120px, 100%); }
form { display: grid; gap: 0.9rem; }
label { display: grid; gap: 0.35rem; font-weight: 600; }
input, select, textarea {
  width: 100%;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.75rem 0.8rem;
  caret-color: var(--accent);
}
textarea { min-height: 8rem; resize: vertical; }
::placeholder { color: var(--muted); opacity: 1; }
.check {
  font-weight: 400;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 2.75rem;
}
.check input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: var(--accent);
}
.hp { position: absolute; left: -9999px; }
.form-error { min-height: 1.4rem; color: var(--danger); margin: 0; }
.sheet { padding: 2.5rem 0 3.5rem; }
.sheet h1 { margin-bottom: 1rem; }
.mark {
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.05;
  margin: 0;
  overflow-wrap: anywhere;
}
footer { padding: 2.25rem 0 3rem; border-top: 1px solid var(--line); }
.doors { display: flex; flex-wrap: wrap; gap: 0.55rem 1.3rem; margin: 1rem 0; }
.doors a { text-decoration: none; }
.doors a:hover { color: var(--accent); }
.fine { color: var(--muted); }
.fine a { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--btn); color: var(--on-btn); }
@media (prefers-reduced-motion: no-preference) {
  .strip {
    animation: roll 1.05s cubic-bezier(0.16, 1, 0.3, 1) var(--d) both;
  }
  .dot { animation: dotin 0.35s cubic-bezier(0.16, 1, 0.3, 1) 1.35s both; }
  .stamp::after { animation: rule 0.45s cubic-bezier(0.16, 1, 0.3, 1) 1.45s both; }
  .hero-photo img { animation: wipe 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both; }
}
@keyframes roll {
  from { transform: translateY(0); }
}
@keyframes dotin {
  from { opacity: 0; transform: translateY(0.25em); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rule {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes wipe {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0); }
}
@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 1.5rem;
    padding-top: 0.5rem;
  }
  .hero-photo { order: 2; }
  .hero-photo img { height: auto; max-height: 32dvh; }
  .row, .works a { grid-template-columns: 1fr; gap: 0.25rem; }
  .nav { height: auto; flex-wrap: wrap; padding: 0.75rem 0; }
  .practice { order: 3; flex-basis: 100%; }
  section { padding: 3rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .works a { transition: none; }
  .button:active { transform: none; }
  .dot { opacity: 1; }
}

/* Door worlds. rf keeps the paper tokens in :root. */
.door-ru {
  color-scheme: light;
  --bg: #f3f0e8;
  --ink: #1c1916;
  --muted: #5e463f;
  --line: #ddd4c6;
  --accent: #a7352b;
  --btn: #a7352b;
  --btn-hover: #a5120e;
  --on-btn: #ffffff;
  --surface: #e7e1d6;
  --danger: #8f1d1d;
}
.door-online {
  color-scheme: dark;
  --bg: #10140e;
  --ink: #f4f7f1;
  --muted: #d5e3c8;
  --line: #2c3a26;
  --accent: #d6f25a;
  --btn: #d6f25a;
  --btn-hover: #e7ff8a;
  --on-btn: #10140e;
  --surface: #182016;
  --danger: #ffb4ab;
}
.door-xyz {
  color-scheme: dark;
  --bg: #0c1422;
  --ink: #f4f7fb;
  --muted: #c9d7e6;
  --line: #2a3a4e;
  --accent: #a8b9c4;
  --btn: #c5ebf8;
  --btn-hover: #a8b9c4;
  --on-btn: #0c1422;
  --surface: #162033;
  --danger: #ffb4ab;
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-btn);
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.2rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  transform: scaleY(0);
  transform-origin: top;
  pointer-events: none;
}
.arrive .veil { animation: veil-out 0.42s cubic-bezier(0.16, 1, 0.3, 1) both; }
.leave .veil {
  transform: scaleY(1);
  transform-origin: bottom;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes veil-out {
  from { transform: scaleY(1); }
  to { transform: scaleY(0); }
}

.nav { height: auto; min-height: var(--nav); padding: 0.85rem 0; }
.brand { display: flex; align-items: baseline; gap: 0.45rem; letter-spacing: -0.03em; }
.wordmark { font-size: 1.35rem; text-transform: uppercase; }
.host { color: var(--muted); font-variant-numeric: tabular-nums; }
.links { display: flex; gap: 1rem; }
.links a { text-decoration: none; }
.links a:hover { color: var(--accent); }
.quiet { margin-left: auto; text-decoration: none; font-weight: 600; }
.quiet:hover { color: var(--accent); }
.nav-rule {
  width: min(1120px, calc(100% - 2.5rem));
  height: 1px;
  margin: 0 auto;
  background: var(--line);
  transform: scaleX(1);
  transform-origin: left;
}

.door-ru .nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1.25rem;
}
.door-ru .wordmark { font-size: clamp(1.45rem, 2.2vw, 1.85rem); line-height: 1; }
.door-ru .nav .quiet { display: none; }
.slash { white-space: nowrap; }
.door-ru .links { margin-left: auto; }
.door-xyz .links, .door-online .links, .door-rf .links { display: none; }

.door-ru h1, .door-online h1, .door-xyz h1 { max-width: none; }
.ln { display: block; }
h1 em { font-style: normal; color: var(--accent); }

.arrow {
  display: inline-block;
  width: 0.95rem;
  height: 1px;
  margin-left: 0.6rem;
  background: currentColor;
  position: relative;
  vertical-align: middle;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.arrow::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 0;
  width: 0.7rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.trail:hover .arrow, .trail:focus-visible .arrow { transform: translateX(6px); }
.trail:hover .arrow::before, .trail:focus-visible .arrow::before { transform: scaleX(1); }

.band { padding-top: 0; }
.band ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.band li { padding-top: 0.85rem; border-top: 1px solid var(--line); }
.band b, .band span {
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.band span { display: block; color: var(--accent); margin-bottom: 0.35rem; }
.band p { margin: 0.35rem 0 0; max-width: 36ch; }

.desk {
  position: relative;
  height: 460px;
  background: var(--surface);
  overflow: hidden;
}
.zones { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr 1fr; z-index: 6; pointer-events: none; }
.zones i { display: block; }
.paper {
  position: absolute;
  width: min(240px, 46%);
  margin: 0;
  padding: 0.85rem 0.9rem 1rem;
  background: #f7f4ee;
  color: #1c1916;
  box-shadow: 0 16px 28px rgba(28, 25, 22, 0.16);
}
.paper b {
  display: block;
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}
.paper p { margin: 0; color: #3f342f; }
.paper.p1 { left: 18px; top: 46px; width: 198px; transform: rotate(-2deg); z-index: 1; }
.paper.p2 { right: 16px; top: 46px; width: 190px; transform: rotate(2deg); z-index: 2; }
.paper.p3 { left: 64px; bottom: 28px; width: 240px; transform: none; z-index: 3; }
.ring { width: 78%; height: 2.4rem; margin-top: 0.35rem; overflow: visible; }
.ring ellipse {
  fill: none;
  stroke: #a7352b;
  stroke-width: 1.5;
  stroke-dasharray: 180;
  stroke-dashoffset: 0;
}
.marks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }
.inkpath {
  fill: none;
  stroke: #a7352b;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 160;
  stroke-dashoffset: 0;
}
.note {
  position: absolute;
  z-index: 5;
  margin: 0;
  color: #9d120e;
  font-family: "Unbounded", sans-serif;
  font-size: 0.78rem;
  letter-spacing: -0.02em;
}
.note.a { left: 18px; top: 12px; transform: none; }
.note.b { right: 16px; top: 214px; bottom: auto; transform: none; }
.pen {
  position: absolute;
  left: 14px;
  bottom: 56px;
  width: 11px;
  height: 72px;
  background: #1c1916;
  transform: rotate(-28deg);
  z-index: 5;
  box-shadow: 4px 10px 16px rgba(28, 25, 22, 0.2);
}
.pen::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 18px;
  background: #a7352b;
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

.rig { position: relative; min-height: 520px; }
.rig .zones { bottom: auto; height: 430px; }
.stack { display: grid; gap: 0.55rem; transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.lvl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.5rem minmax(6.5rem, 9rem);
  gap: 0.65rem;
  align-items: center;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.slab {
  height: 74px;
  background: linear-gradient(180deg, #d5dde8 0%, #8d98a6 48%, #66717f 100%);
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  position: relative;
}
.lvl-access .slab::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 46%;
  height: 2px;
  background: #243140;
  box-shadow: 0 8px 0 #243140, 0 -8px 0 #c5ebf8;
}
.slab-app {
  height: 96px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 0.7rem 1rem;
  background: #163044;
  border: 1px solid #a8b9c4;
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.28);
}
.cube {
  width: 28px;
  height: 28px;
  background: linear-gradient(#e8f7ff, #7ec4de);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.28);
}
.drives { display: flex; gap: 6px; align-items: center; height: 100%; padding: 0 0.7rem; }
.drive {
  width: 16px;
  height: 46px;
  background: #141b26;
  box-shadow: inset 0 0 0 1px #93a6bb;
  position: relative;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s linear;
}
.drive::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 4px;
  height: 4px;
  background: #a8b9c4;
}
.leader {
  height: 1px;
  background: var(--muted);
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s linear, background 0.3s linear;
}
.stack.is-waiting .leader { transform: scaleX(0); }
.name { font-size: 0.95rem; }
.stack.is-out .lvl-app { transform: translateY(-18px); }
.stack.is-out .lvl-access { transform: translateY(-6px); }
.stack.is-out .lvl-data { transform: translateY(8px); }
.stack.is-out .lvl-recover { transform: translateY(16px); }
.stack.is-out .drive { transform: translateX(18px); }
.stack.is-seated .lvl-app { transform: translateY(-12px); }
.stack.is-seated .lvl-access { transform: translateY(-4px); }
.stack.is-seated .lvl-data { transform: translateY(6px); }
.stack.is-seated .lvl-recover { transform: translateY(12px); }
.stack.is-seated .drive { transform: translateX(0); }
.stack.is-seated .drive.pulled { transform: translateX(36px); }
.stack.is-lines .leader { transform: scaleX(1); }
.stack.is-warn .drive.bad::after { background: var(--danger); }
.stack.is-offline .drive.bad { opacity: 0.35; }
.stack.is-offline .lvl-data .leader { opacity: 0.25; }
.stack.is-failover .lvl-recover .leader { background: var(--accent); height: 2px; }
.stack.is-failover .drive.pulled::after { background: var(--accent); }
.rig .status { margin-top: 1rem; max-width: 32ch; }
.rig-caption, .net-caption { margin: 0.8rem 0 0; max-width: 46ch; color: var(--muted); }

.net { display: grid; gap: 0.9rem; }
.modes { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.modes button {
  min-height: 2.75rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  border-radius: 0;
  cursor: pointer;
}
.modes button[aria-selected="true"] {
  background: var(--btn);
  color: var(--on-btn);
  border-color: var(--btn);
}
.board {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 2.2rem minmax(0, 0.9fr) 2.2rem minmax(0, 1.05fr);
  gap: 0.5rem 0.35rem;
  align-items: center;
  min-height: 0;
}
.hub { grid-column: 3; grid-row: 1 / span 3; align-self: stretch; }
.net[data-mode="shop"] .hub { grid-row: 1 / span 5; }
.node {
  min-height: 2.6rem;
  display: grid;
  place-items: center;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
  font-size: 0.92rem;
}
.node::before { content: attr(data-office); }
.net[data-mode="shop"] .node::before { content: attr(data-shop); }
.net[data-mode="points"] .node::before { content: attr(data-points); }
.extra, .wire.extra, .pad.extra { display: none; }
.net[data-mode="shop"] .node.extra { display: grid; }
.net[data-mode="shop"] .wire.extra,
.net[data-mode="shop"] .pad.extra { display: block; }
.wire {
  display: block;
  height: 2px;
  background: var(--muted);
  position: relative;
}
.wire.spare { opacity: 0.45; }
.wire.quiet { opacity: 0.75; }
.wire.onward { opacity: 0; }
.pad { display: block; min-height: 1px; }
.net.is-unstable .wire.main { background: var(--danger); opacity: 1; }
.net.is-break .wire.main { opacity: 0.25; background: var(--danger); }
.net.is-break .wire.to-core.main::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(var(--danger), var(--danger)) center / 12px 1px no-repeat,
    linear-gradient(var(--danger), var(--danger)) center / 1px 12px no-repeat;
  transform: translateX(-50%) rotate(45deg);
}
.net.is-failover .wire.spare { opacity: 1; background: var(--accent); }
.net.is-failover .wire.spare::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--accent);
}
.status { min-height: 1.5rem; margin: 0; font-weight: 600; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.checks li { display: flex; gap: 0.55rem; align-items: center; min-height: 1.6rem; }
.checks svg { width: 16px; height: 16px; flex: none; }
.checks path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
  transition: stroke-dashoffset 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.net.is-1 .checks li:nth-child(1) path,
.net.is-2 .checks li:nth-child(-n+2) path,
.net.is-3 .checks path { stroke-dashoffset: 0; }

.motion .row { position: relative; }
.motion .row::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.motion .row.in::before { transform: scaleX(1); }
.motion .band li { opacity: 1; }

input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: var(--danger); }
.button:disabled { opacity: 0.72; }

@media (pointer: fine) {
  a, button, .modes button { cursor: auto; }
  .works a { cursor: auto; }
  .desk, .rig, .net { cursor: auto; }
  input, select, textarea, .check, .check input { cursor: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .door-ru.arrive .wordmark { animation: maskx 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .door-ru.arrive .nav-rule { animation: rule 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.15s backwards; }
  .door-ru.arrive .ln, .door-xyz.arrive .ln, .door-online.arrive .ln {
    animation: maskx 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }
  .arrive .ln:nth-child(2) { animation-delay: 0.1s; }
  .arrive .ln:nth-child(3) { animation-delay: 0.18s; }
  .arrive .ln:nth-child(4) { animation-delay: 0.26s; }
  .door-ru.arrive h1 em, .door-xyz.arrive h1 em {
    animation: inkfill 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.55s backwards;
  }
  .door-ru.arrive .strip { animation-delay: calc(var(--d) + 0.75s); }
  .door-ru.arrive .paper { animation: settle 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
  .door-ru.arrive .paper.p2 { animation-delay: 0.12s; }
  .door-ru.arrive .paper.p3 { animation-delay: 0.22s; }
  .door-ru.arrive .pen { animation: settle 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.85s backwards; }
  .inkpath { --draw: 160; }
  .ring ellipse { --draw: 180; }
  .door-ru.arrive .inkpath { animation: draw 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.7s backwards; }
  .door-ru.arrive .ring ellipse { animation: draw 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.95s backwards; }
  .net.is-failover .wire.spare::before { animation: hop 1.1s linear infinite; }
  .net.is-paused .wire.spare::before { animation-play-state: paused; }
}
@keyframes maskx { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes inkfill { from { color: var(--ink); } to { color: var(--accent); } }
@keyframes settle {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes draw { from { stroke-dashoffset: var(--draw, 160); } to { stroke-dashoffset: 0; } }
@keyframes hop { from { transform: translateX(0); } to { transform: translateX(1.4rem); } }

@media (prefers-reduced-motion: no-preference) and (min-width: 801px) and (pointer: fine) {
  .zones { pointer-events: auto; }
  .desk:not(.is-scrolled):has(.zl:hover) .paper.p1 { translate: 3px 1px; }
  .desk:not(.is-scrolled):has(.zl:hover) .paper.p2 { translate: 6px 2px; }
  .desk:not(.is-scrolled):has(.zl:hover) .paper.p3 { translate: 11px 3px; }
  .desk:not(.is-scrolled):has(.zr:hover) .paper.p1 { translate: -3px -1px; }
  .desk:not(.is-scrolled):has(.zr:hover) .paper.p2 { translate: -6px -2px; }
  .desk:not(.is-scrolled):has(.zr:hover) .paper.p3 { translate: -11px -4px; }
  .rig:has(.zl:hover) .stack { transform: rotateX(1.5deg) rotateY(2deg); }
  .rig:has(.zr:hover) .stack { transform: rotateX(-1.5deg) rotateY(-2deg); }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 801px) {
  .desk.is-scrolled .paper.p1 { translate: 0 -10px; }
  .desk.is-scrolled .paper.p2 { translate: 0 -18px; }
  .desk.is-scrolled .paper.p3 { translate: 0 -28px; }
}

@media (max-width: 800px) {
  .band ol { grid-template-columns: 1fr; }
  .desk { height: auto; display: grid; gap: 0.65rem; padding: 0.85rem; }
  .desk .paper { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; transform: none; }
  .paper.p1, .note, .pen, .marks, .desk .zones { display: none; }
  .lvl { grid-template-columns: 1fr; }
  .leader { display: none; }
  .rig { min-height: 0; }
  .slab, .slab-app { height: 64px; }
  .board {
    grid-template-columns: minmax(0, 1.15fr) 0.7rem minmax(0, 0.85fr) 0.7rem minmax(0, 1.05fr);
    gap: 0.35rem 0.15rem;
  }
  .node { font-size: 0.68rem; min-height: 2.15rem; padding: 0.15rem 0.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .veil, .arrive .veil, .leave .veil { animation: none; transition: none; transform: scaleY(0); }
  .packet { animation: none; }
  .inkpath, .ring ellipse { stroke-dashoffset: 0; }
  .stack.is-lines .leader, .stack.is-seated .leader { transform: scaleX(1); }
}

@media (prefers-color-scheme: dark) {
  .door-rf .veil { color: #141613; }
}
