:root {
  --bg-0: #020d06;
  --bg-1: #04210f;
  --glow: #0f5a24;
  --neon: #5cff5c;
  --mint: #3ef0b0;
  --txt: #f2fff4;
  --txt-2: rgba(220, 255, 225, .64);
  --txt-3: #8fbf98;
  --line: rgba(120, 255, 170, .14);
  --card: rgba(10, 40, 24, .55);
  --ok: #5cff5c;
  --warn: #ffc94d;
  --bad: #ff5c5c;
  --f: "Onest", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --f-display: "Science Gothic", "Onest", system-ui, sans-serif;
}
::selection { background: #5cff5c; color: #021a08; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f);
  color: var(--txt);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
html { overflow-x: hidden; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg { display: block; }

/* ---------- шапка ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 24px clamp(16px, 4vw, 64px);
  transition: padding .35s, background .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.top.is-solid {
  padding-top: 12px; padding-bottom: 12px;
  background: rgba(2, 13, 6, .78); border-bottom-color: var(--line);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 500; letter-spacing: .18em; font-size: 15px; }
.nav { display: flex; gap: 4px; margin-left: 28px; padding-left: 24px; border-left: 1px solid var(--line); }
.nav a { position: relative; padding: 8px 12px; font-size: 14px; color: var(--txt-2); transition: color .2s; }
.nav a::after { /* подчёркивание-скан */
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1px;
  background: var(--txt); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav a:hover { color: var(--txt); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--txt); }
.sys { margin-left: auto; display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12px; color: var(--txt-3); transition: color .2s; }
.sys i { width: 7px; height: 7px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 0 3px rgba(92, 255, 92, .15); }
.sys:hover { color: var(--txt); }
.link-login {
  font-size: 14px; color: var(--txt); padding: 9px 16px; border: 1px solid rgba(220, 255, 225, .2);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
  transition: background .2s, border-color .2s;
}
.link-login:hover { background: rgba(220, 255, 225, .06); border-color: rgba(220, 255, 225, .4); }
.burger { display: none; width: 44px; height: 44px; margin-left: 4px; background: none; border: 1px solid var(--line); position: relative; }
.burger i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--txt); transition: transform .35s, top .35s; }
.burger i:first-child { top: 17px; } .burger i:last-child { top: 25px; right: 18px; }
.burger[aria-expanded="true"] i:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { top: 21px; right: 12px; transform: rotate(-45deg); }

/* мобильное меню: строки проявляются сканом сверху вниз */
.mnav {
  position: fixed; inset: 0; z-index: 45; padding: 96px 16px 32px;
  background: radial-gradient(90% 60% at 50% 0%, #0b3d18, var(--bg-0) 70%);
  clip-path: inset(0 0 100% 0); transition: clip-path .5s cubic-bezier(.7, 0, .2, 1);
}
.mnav.open { clip-path: inset(0 0 0 0); }
.mnav nav { display: grid; }
.mnav a {
  display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-size: 30px; letter-spacing: -.02em;
  opacity: 0; transform: translateX(-12px); transition: opacity .4s, transform .4s;
}
.mnav a small { width: 52px; flex: none; font-family: var(--mono); font-size: 11px; color: var(--txt-3); letter-spacing: .06em; }
.mnav.open a { opacity: 1; transform: none; }
.mnav.open a:nth-child(2) { transition-delay: .05s; } .mnav.open a:nth-child(3) { transition-delay: .1s; }
.mnav.open a:nth-child(4) { transition-delay: .15s; } .mnav.open a:nth-child(5) { transition-delay: .2s; } .mnav.open a:nth-child(6) { transition-delay: .25s; }

/* главная кнопка: светлая плашка со срезанным углом, как вырез на корпусе */
.btn-cut {
  --cut: 14px;
  position: relative; display: inline-flex; align-items: center; min-height: 56px; padding: 0 30px;
  font-family: var(--f); font-size: 16px; font-weight: 600; letter-spacing: -.005em;
  color: #031a08; background: #f2fff4; border: 0;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: background .25s, --cut .25s;
}
.btn-cut::after { /* индикатор в срезанном углу */
  content: ""; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; background: #0a8a2a; transition: background .25s;
}
.btn-cut:hover { background: var(--neon); }
.btn-cut:hover::after { background: #031a08; }
.btn-cut:active { transform: translateY(1px); }
.btn-cut:focus-visible { outline: 2px solid var(--neon); outline-offset: 4px; }

/* вторичное действие: команда терминала */
.cmd {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 6px;
  background: none; border: 0; font-family: var(--mono); font-size: 15px; color: var(--txt-2);
  transition: color .2s;
}
.cmd-p { color: var(--txt-3); }
.cmd-c { width: 9px; height: 18px; background: var(--txt-2); animation: blink 1.1s steps(1) infinite; transition: background .2s; }
.cmd:hover { color: #ff8a8a; }
.cmd:hover .cmd-c { background: var(--bad); }
.cmd:focus-visible { outline: 1px dashed var(--txt-3); outline-offset: 2px; }
.blink { animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.cta-note { margin: 14px 0 0; max-width: 400px; font-size: 13.5px; line-height: 1.5; color: var(--txt-3); }

/* ---------- первый экран ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; gap: 2vw;
  padding: 130px 0 80px clamp(16px, 4vw, 64px);
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 42% -8%, rgba(70, 200, 90, .55), transparent 70%),
    radial-gradient(45% 40% at 85% 60%, rgba(30, 140, 70, .28), transparent 75%),
    radial-gradient(120% 90% at 50% 0%, var(--glow) 0%, var(--bg-1) 45%, var(--bg-0) 100%);
}
.hero::before { /* статичные лучи света сверху */
  content: ""; position: absolute; inset: -10% 20% 40% 10%; pointer-events: none;
  background: repeating-linear-gradient(100deg, transparent 0 60px, rgba(140, 255, 150, .045) 60px 120px);
  mask-image: radial-gradient(60% 70% at 50% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 70% at 50% 0%, #000, transparent 75%);
}
.hero::after { /* зерно */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-text { position: relative; z-index: 3; max-width: 640px; }
.hero h1 {
  margin: 0; font-family: var(--f-display); font-weight: 600; letter-spacing: -.035em; line-height: .95;
  font-size: clamp(46px, 5.4vw, 92px);
}
.h1-split span { display: block; }
.h1-split .l2 { padding-left: 1.55em; }
.h1-split .l3 { /* хвост фразы уходит вправо и ложится на край планшета */
  position: relative; margin-top: .14em; padding-left: .9em; width: max-content;
  font-size: .62em; font-weight: 500; letter-spacing: -.02em; color: #d9ffe0;
}
.h1-split .l3::before { content: ""; position: absolute; left: 0; top: 50%; width: .55em; height: 2px; background: var(--neon); }
.lead { margin: 30px 0 0; max-width: 470px; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.55; color: var(--txt-2); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-top: 36px; }
.scroll-hint { position: absolute; left: clamp(16px, 4vw, 64px); bottom: 24px; margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--txt-3); }

/* ---------- планшет ---------- */
.hero-device { position: relative; z-index: 1; perspective: 2200px; margin-right: -4vw; }
.tablet {
  position: relative; padding: 14px; border-radius: 34px;
  background: linear-gradient(150deg, #0c2a19, #061409 60%);
  box-shadow:
    inset 0 0 0 1px rgba(160, 255, 200, .16),
    -3px -3px 0 0 rgba(92, 255, 160, .55),
    0 0 60px rgba(62, 240, 176, .18),
    0 60px 120px rgba(0, 0, 0, .6);
  transform: rotateY(-16deg) rotateX(7deg) rotateZ(1.5deg);
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
}
.tablet::before { /* светящийся край, как в NexProp */
  content: ""; position: absolute; inset: -1px; border-radius: 35px; pointer-events: none;
  background: linear-gradient(135deg, rgba(120, 255, 200, .9), rgba(62, 240, 176, 0) 30%, rgba(62, 240, 176, 0) 80%, rgba(62, 240, 176, .4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  padding: 2px;
}
.tablet-fit { position: relative; overflow: hidden; border-radius: 22px; }

/* ---------- дашборд (внутренний размер 1240×860, масштабируется скриптом) ---------- */
.dash {
  --d-bg: #06140e;
  position: absolute; top: 0; left: 0; width: 1240px; height: 860px; transform-origin: 0 0;
  display: grid; grid-template-columns: 236px 1fr;
  background:
    radial-gradient(70% 50% at 60% 0%, rgba(62, 240, 176, .1), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(62, 240, 176, .06), transparent 70%),
    var(--d-bg);
  font-size: 14px; color: #e6fff2; overflow: hidden;
}
.dash svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dash button { background: none; border: 0; }

.d-side { padding: 24px 18px; border-right: 1px solid rgba(120, 255, 200, .08); background: rgba(3, 12, 8, .5); display: flex; flex-direction: column; }
.d-logo { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 500; letter-spacing: .16em; font-size: 16px; padding: 0 6px; }
.d-action {
  position: relative; margin: 26px 0 22px; padding: 20px 14px 14px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, rgba(62, 240, 176, .16), rgba(62, 240, 176, .03));
  border: 1px solid rgba(120, 255, 200, .16);
  text-align: center;
}
.d-action-grid {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(120, 255, 200, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 255, 200, .08) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(circle at 50% 30%, #000, transparent 70%); -webkit-mask-image: radial-gradient(circle at 50% 30%, #000, transparent 70%);
}
.d-action-ico {
  position: relative; width: 46px; height: 46px; margin: 0 auto 16px; border-radius: 12px;
  display: grid; place-items: center; color: #b8ffd9;
  background: linear-gradient(160deg, #1d6b4b, #0b3322); box-shadow: 0 0 26px rgba(62, 240, 176, .45), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.d-action-ico svg { width: 24px; height: 24px; }
.d-action-btn {
  position: relative; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 10px; border-radius: 12px !important; font-weight: 500;
  background: rgba(3, 14, 9, .7) !important; border: 1px solid rgba(120, 255, 200, .2) !important;
  transition: background .2s, border-color .2s;
}
.d-action-btn:hover { border-color: var(--bad) !important; background: rgba(255, 92, 92, .12) !important; }
.d-action-btn svg { width: 16px; height: 16px; color: var(--bad); }
.d-menu-label { margin: 0 0 10px 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #6f9a85; }
.d-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.d-menu li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: #a9cbbb; font-size: 14.5px; }
.d-menu li svg { width: 18px; height: 18px; flex: none; }
.d-menu li.on { color: #fff; background: linear-gradient(90deg, rgba(62, 240, 176, .2), rgba(62, 240, 176, .02)); box-shadow: inset 2px 0 0 var(--mint); }
.d-count { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--bad); color: #fff; }
.d-plan { margin-top: auto; padding: 14px; border-radius: 14px; background: rgba(62, 240, 176, .05); border: 1px solid rgba(120, 255, 200, .1); font-size: 12.5px; }
.d-plan p { margin: 0 0 10px; font-weight: 500; }
.d-plan-bar { height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-bottom: 8px; }
.d-plan-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), var(--neon)); }
.d-plan span { color: #7fa893; }

.d-main { position: relative; padding: 20px 26px 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.d-top { display: flex; align-items: center; justify-content: space-between; }
.d-crumbs { display: flex; align-items: center; gap: 8px; color: #8fb3a1; font-size: 14px; }
.d-crumbs svg { width: 18px; height: 18px; }
.d-crumbs b { color: #fff; font-weight: 500; }
.d-top-right { display: flex; align-items: center; gap: 12px; }
.d-env { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(120, 255, 200, .15); color: #a9cbbb; }
.d-env i, .d-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 8px var(--neon); animation: blink 1.6s infinite; }
.d-btn-new {
  padding: 11px 18px; border-radius: 12px !important; font-weight: 600; color: #03281a;
  background: linear-gradient(180deg, #7dffc9, #33e3a4) !important; box-shadow: 0 0 24px rgba(62, 240, 176, .45), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.d-bell { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px !important; background: rgba(255, 255, 255, .04) !important; border: 1px solid rgba(120, 255, 200, .14) !important; }
.d-bell svg { width: 19px; height: 19px; }
.d-bell em { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; font-style: normal; font-family: var(--mono); font-size: 10.5px; line-height: 18px; background: var(--mint); color: #03281a; }
.d-bell.ring svg { animation: ring .9s ease; }
@keyframes ring { 15%, 45%, 75% { transform: rotate(14deg); } 30%, 60% { transform: rotate(-14deg); } }
.d-user { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(120, 255, 200, .1); }
.d-ava { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; color: #03281a; background: linear-gradient(140deg, #ffd27a, #ff9d5c); }
.d-user-t { display: grid; line-height: 1.2; }
.d-user-t b { font-weight: 500; font-size: 13.5px; }
.d-user-t small { font-size: 11.5px; color: #7fa893; }

/* баннер */
.d-banner {
  position: relative; height: 218px; border-radius: 22px; overflow: hidden; flex: none;
  background: linear-gradient(120deg, rgba(62, 240, 176, .1), rgba(10, 30, 22, .7) 45%, rgba(62, 240, 176, .07));
  border: 1px solid rgba(120, 255, 200, .14);
}
.d-banner-grid {
  position: absolute; left: 0; right: 0; bottom: -40px; height: 140px;
  background-image: linear-gradient(rgba(120, 255, 200, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 255, 200, .1) 1px, transparent 1px);
  background-size: 44px 22px;
  transform: perspective(300px) rotateX(55deg); transform-origin: bottom;
  mask-image: linear-gradient(transparent, #000); -webkit-mask-image: linear-gradient(transparent, #000);
}
.d-slides { position: absolute; inset: 0; }
.d-slide { position: absolute; inset: 0; padding: 26px 34px; max-width: 600px; opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .6s; pointer-events: none; }
.d-slide.on { opacity: 1; transform: none; pointer-events: auto; }
.d-chip { display: inline-block; padding: 5px 11px; border-radius: 8px; font-size: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #cfe8db; }
.d-slide h3 { margin: 14px 0 8px; font-size: 32px; font-weight: 600; letter-spacing: -.025em; }
.d-slide p { margin: 0 0 18px; color: #a9cbbb; font-size: 14.5px; line-height: 1.45; max-width: 500px; }
.d-btn-glow {
  padding: 11px 20px; border-radius: 12px !important; font-weight: 600; color: #03281a;
  background: linear-gradient(180deg, #7dffc9, #33e3a4) !important; box-shadow: 0 0 26px rgba(62, 240, 176, .5), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.d-dots { position: absolute; left: 50%; bottom: 14px; display: flex; gap: 8px; transform: translateX(-50%); }
.d-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .3); transition: background .3s, box-shadow .3s; }
.d-dots i.on { background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.d-emblem { position: absolute; right: 0; top: 0; bottom: 0; width: 360px; }
.d-circuit { position: absolute; inset: 0; width: 100%; height: 100%; }
.d-circuit path { stroke: rgba(120, 255, 200, .22) !important; stroke-width: 1.2 !important; }
.d-circuit circle { fill: var(--mint); stroke: none !important; filter: drop-shadow(0 0 4px var(--mint)); }
.d-tile {
  position: absolute; right: 64px; top: 50%; width: 150px; height: 150px; margin-top: -75px;
  border-radius: 34px; padding: 12px;
  background: linear-gradient(150deg, #2ee6a4, #0d5a3e 55%, #0a3a2a);
  box-shadow: 0 0 50px rgba(62, 240, 176, .55), inset 0 1px 0 rgba(255, 255, 255, .4);
  transform: rotate(-6deg); animation: tile 6s ease-in-out infinite;
}
.d-tile-in { width: 100%; height: 100%; border-radius: 24px; display: grid; place-items: center; background: radial-gradient(circle at 40% 30%, #11372a, #061811); box-shadow: inset 0 0 20px rgba(0, 0, 0, .6); }
.d-tile-in img { filter: drop-shadow(0 0 14px rgba(92, 255, 92, .8)); }
@keyframes tile { 50% { transform: rotate(-3deg) translateY(-6px); } }

/* карточки */
.d-cards { display: grid; grid-template-columns: 1.1fr 1fr .95fr; gap: 14px; flex: none; height: 252px; }
.d-card {
  position: relative; padding: 16px 18px; border-radius: 20px; min-width: 0;
  background: linear-gradient(160deg, rgba(62, 240, 176, .07), rgba(8, 24, 17, .7));
  border: 1px solid rgba(120, 255, 200, .12);
}
.d-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.d-card h4 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.d-live { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--neon); padding: 3px 9px; border-radius: 999px; background: rgba(92, 255, 92, .08); border: 1px solid rgba(92, 255, 92, .25); }
.d-big { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; }
.d-big b { font-family: var(--mono); font-weight: 500; font-size: 36px; letter-spacing: -.03em; transition: color .3s; }
.d-big small { color: #7fa893; font-size: 14px; }
.d-big em { margin-left: 6px; font-style: normal; font-family: var(--mono); font-size: 12px; padding: 2px 7px; border-radius: 6px; }
.d-big em.up { color: var(--neon); background: rgba(92, 255, 92, .1); }
.d-big em.down { color: var(--bad); background: rgba(255, 92, 92, .12); }
.d-big.sm b { font-size: 28px; }
.d-chart { width: 100%; height: 108px; margin-top: 6px; overflow: visible; }
.d-thr { stroke: rgba(255, 92, 92, .5) !important; stroke-dasharray: 4 5; stroke-width: 1 !important; }
.d-line { stroke: var(--mint) !important; stroke-width: 2.2 !important; filter: drop-shadow(0 0 6px rgba(62, 240, 176, .7)); transition: stroke .3s; }
#dHead { fill: #fff; stroke: var(--mint) !important; stroke-width: 3 !important; }
.d-foot { margin: 6px 0 0; font-size: 12px; color: #6f9a85; }
.dash.is-bad .d-line { stroke: var(--bad) !important; filter: drop-shadow(0 0 6px rgba(255, 92, 92, .7)); }
.dash.is-bad #dHead { stroke: var(--bad) !important; }
.dash.is-bad #dLat { color: var(--bad); }

.d-sub { margin: 6px 0 0; font-size: 13px; color: #8fb3a1; }
.d-net { position: absolute; left: 0; right: 0; top: 52px; width: 100%; height: 146px; }
.d-net path { stroke: rgba(120, 255, 200, .25) !important; stroke-width: 1.2 !important; stroke-dasharray: 3 4; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -14; } }
.d-hub { fill: #0b3a2a; stroke: var(--mint) !important; stroke-width: 2 !important; filter: drop-shadow(0 0 12px rgba(62, 240, 176, .7)); }
.d-hub-ico { stroke: #b8ffd9 !important; }
.d-ring { fill: none; stroke: var(--mint) !important; stroke-width: 1.2 !important; opacity: 0; transform-origin: 150px 105px; animation: ping 2.6s ease-out infinite; }
.d-ring.r2 { animation-delay: 1.3s; }
@keyframes ping { 0% { opacity: .7; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.7); } }
.dash.is-bad .d-ring, .dash.is-bad .d-hub { stroke: var(--bad) !important; }
.dash.is-bad .d-ring { animation-duration: 1.1s; }
.d-node circle { fill: #33e3a4; stroke: rgba(62, 240, 176, .25) !important; stroke-width: 6 !important; filter: drop-shadow(0 0 8px rgba(62, 240, 176, .6)); }
.d-node text { fill: #03281a; stroke: none !important; font: 600 11px var(--f); text-anchor: middle; }
.d-node.off circle { fill: #1a3b2e; stroke: rgba(255, 255, 255, .05) !important; filter: none; }
.d-node.off text { fill: #a9cbbb; }
.d-node.called circle { animation: called 1s ease-in-out infinite; }
@keyframes called { 50% { fill: #ffc94d; stroke: rgba(255, 201, 77, .35) !important; } }
.d-btn-out {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 11px !important; font-size: 13px; font-weight: 500;
  background: rgba(255, 255, 255, .04) !important; border: 1px solid rgba(120, 255, 200, .16) !important; white-space: nowrap;
  transition: background .2s;
}
.d-btn-out:hover { background: rgba(62, 240, 176, .12) !important; }
.d-oncall .d-btn-out { position: absolute; left: 18px; bottom: 14px; }
.d-btn-out.wide { width: 100%; justify-content: center; margin-top: 10px; }
.d-col { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; min-width: 0; }
.d-mini { padding: 13px 16px; }
.d-mini h4 { font-size: 14px; }
.d-bars { display: flex; gap: 2px; height: 22px; margin-top: 8px; align-items: flex-end; }
.d-bars i { flex: 1; height: 100%; border-radius: 2px; background: var(--neon); opacity: .8; }
.d-bars i.w { background: var(--warn); }
.d-bars i.b { background: var(--bad); }
.d-ico-sq { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.d-ico-sq svg { width: 16px; height: 16px; }
.d-mini .d-card-h { justify-content: flex-start; }

/* полоса события */
.d-strip {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; flex: none;
  background: linear-gradient(90deg, rgba(62, 240, 176, .1), rgba(62, 240, 176, .02));
  border: 1px solid rgba(120, 255, 200, .14); transition: background .4s, border-color .4s;
}
.d-strip > div { flex: 1; display: grid; gap: 2px; min-width: 0; }
.d-strip b { font-weight: 600; font-size: 15px; }
.d-strip small { color: #8fb3a1; font-size: 12.5px; }
.d-strip-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--neon); background: rgba(92, 255, 92, .1); border: 1px solid rgba(92, 255, 92, .3); box-shadow: 0 0 14px rgba(92, 255, 92, .25); }
.d-strip-ico svg { width: 20px; height: 20px; }
.d-strip.bad { background: linear-gradient(90deg, rgba(255, 92, 92, .14), rgba(255, 92, 92, .02)); border-color: rgba(255, 92, 92, .3); }
.d-strip.bad .d-strip-ico { color: var(--bad); background: rgba(255, 92, 92, .1); border-color: rgba(255, 92, 92, .4); box-shadow: 0 0 14px rgba(255, 92, 92, .35); }
.d-strip.warn { background: linear-gradient(90deg, rgba(255, 201, 77, .12), rgba(255, 201, 77, .02)); border-color: rgba(255, 201, 77, .3); }
.d-strip.warn .d-strip-ico { color: var(--warn); background: rgba(255, 201, 77, .1); border-color: rgba(255, 201, 77, .4); }

/* инциденты */
.d-inc h4 { margin: 0 0 10px; font-size: 18px; font-weight: 600; }
.d-inc h4 span { color: #8fb3a1; font-weight: 500; }
.d-inc-list { display: grid; gap: 8px; }
.d-inc-empty { padding: 14px 16px; border-radius: 14px; border: 1px dashed rgba(120, 255, 200, .18); color: #8fb3a1; font-size: 13.5px; }
.d-inc-row {
  display: grid; grid-template-columns: 110px 70px 1fr 120px 150px; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 92, 92, .25);
  animation: rowIn .45s ease;
}
@keyframes rowIn { from { opacity: 0; transform: translateY(-8px); } }
.d-inc-row .id { font-family: var(--mono); font-size: 13px; }
.d-inc-row .svc { font-weight: 500; }
.d-inc-row .svc small { display: block; font-weight: 400; color: #8fb3a1; font-size: 12px; }
.d-badge { justify-self: start; font-family: var(--mono); font-size: 11px; padding: 3px 9px; border-radius: 999px; }
.d-badge.live { color: var(--bad); background: rgba(255, 92, 92, .12); border: 1px solid rgba(255, 92, 92, .35); }
.d-badge.work { color: var(--warn); background: rgba(255, 201, 77, .12); border: 1px solid rgba(255, 201, 77, .35); }
.d-inc-row .who { font-size: 12.5px; color: #a9cbbb; }
.d-inc-row .when { font-family: var(--mono); font-size: 12px; color: #8fb3a1; text-align: right; }

/* всплывашка */
.d-toast {
  position: absolute; top: 78px; right: 110px; z-index: 5; display: flex; align-items: center; gap: 12px;
  padding: 13px 18px 13px 14px; border-radius: 14px; min-width: 290px;
  background: rgba(24, 10, 10, .92); border: 1px solid rgba(255, 92, 92, .45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5), 0 0 30px rgba(255, 92, 92, .2);
  transform: translateX(120%); opacity: 0; transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .5s;
}
.d-toast.show { transform: none; opacity: 1; }
.d-toast > i { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 10px var(--bad); animation: blink 1s infinite; flex: none; }
.d-toast.ok { background: rgba(6, 26, 14, .94); border-color: rgba(92, 255, 92, .45); box-shadow: 0 16px 40px rgba(0, 0, 0, .5), 0 0 30px rgba(92, 255, 92, .18); }
.d-toast.ok > i { background: var(--neon); box-shadow: 0 0 10px var(--neon); animation: none; }
.d-toast div { display: grid; gap: 2px; }
.d-toast b { font-weight: 600; font-size: 14px; }
.d-toast small { color: #c9b5b5; font-size: 12.5px; }
.d-toast.ok small { color: #a9cbbb; }

/* ---------- адаптив ---------- */
@media (max-width: 1180px) {
  .nav { margin-left: 8px; padding-left: 12px; }
  .nav a { padding: 8px 9px; }
  .hero { grid-template-columns: 1fr; padding-right: clamp(16px, 4vw, 64px); gap: 56px; }
  .hero-text { max-width: 720px; }
  .hero-device { margin-right: 0; }
  .tablet { transform: rotateX(8deg) rotateZ(0); }
}
@media (max-width: 900px) {
  .nav, .sys { display: none; }
  .burger { display: block; margin-left: 0; }
  .link-login { margin-left: auto; }
}
@media (max-width: 600px) {
  .top { padding-top: 18px; }
  .hero { padding-top: 104px; padding-bottom: 70px; gap: 40px; }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .nobr { white-space: normal; }
  .h1-split .l2 { padding-left: .9em; }
  .h1-split .l3 { font-size: .64em; }
  .tablet { padding: 7px; border-radius: 18px; transform: none; }
  .tablet::before { border-radius: 19px; }
  .tablet-fit { border-radius: 12px; }
  .scroll-hint { display: none; }
  .hero { min-height: 0; }
  .hero-device { margin-right: calc(-1 * clamp(16px, 4vw, 64px)); }
  .tablet { border-radius: 18px 0 0 18px; padding-right: 0; }
  .tablet::before { border-radius: 19px 0 0 19px; }
  .tablet-fit { border-radius: 12px 0 0 12px; }
  .dash.is-narrow .d-toast { right: auto; left: 262px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
