/* Липкое окно с живыми демо-экранами: повторяет интерфейс приложения VDS-40 */
.feature-layout { display: grid; grid-template-columns: 4fr 7fr; gap: 48px; align-items: start; }
.feature-steps { margin: 0; padding: 0; list-style: none; }
.feature-steps li#services { scroll-margin-top: 84px; }
.feature-steps li {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0 24px 24px;
  border-left: 2px solid var(--border);
  opacity: 0.35;
  transition: opacity 0.5s var(--ease), border-color 0.5s var(--ease);
}
.feature-steps li.active { opacity: 1; border-color: var(--accent); }
.feature-steps h3 { margin: 10px 0 12px; font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.feature-steps p { margin: 0; color: var(--muted); }
.feature-stage { position: sticky; top: calc(50vh - 245px); perspective: 1400px; }

/* Окно приложения */
.app {
  --app-bg: #1e1f22;
  --app-panel: #26272b;
  --app-line: rgba(255, 255, 255, 0.07);
  --app-blue: #2f6fe4;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: var(--app-bg);
  overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.85), 0 0 90px -25px rgba(255, 204, 0, 0.2);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.4s var(--ease);
  font: 12px/1.45 var(--sans);
}
.app-bar { position: relative; display: flex; align-items: center; gap: 7px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--app-line); }
.app-bar > i { width: 11px; height: 11px; border-radius: 50%; }
.app-bar > i:nth-child(1) { background: #ff5f57; }
.app-bar > i:nth-child(2) { background: #febc2e; }
.app-bar > i:nth-child(3) { background: #28c840; }
.seg { position: absolute; left: 50%; transform: translateX(-50%); display: flex; padding: 3px; border: 1px solid var(--app-line); border-radius: 999px; transition: opacity 0.3s; }
.seg span { padding: 3px 12px; border-radius: 999px; color: #c9ccd2; transition: background 0.3s; }
.seg span.on { background: #3a3b40; color: #fff; }
.seg.hidden { opacity: 0; }
.app-title { position: absolute; left: 50%; transform: translateX(-50%); font-weight: 700; color: #d7d9de; opacity: 0; transition: opacity 0.3s; }
.app-title.show { opacity: 1; }
.app-body { display: grid; grid-template-columns: 168px minmax(0, 1fr); height: 430px; }
.app-side { padding: 10px 8px; border-right: 1px solid var(--app-line); background: #1b1c1f; overflow: hidden; }
.side-tag { margin: 8px 6px 4px; font-size: 10.5px; font-weight: 700; color: #7b7f88; }
.side-srv { display: grid; grid-template-columns: 8px 16px minmax(0, 1fr) 12px; align-items: center; gap: 6px; padding: 6px 6px; border-radius: 8px; transition: background 0.3s; }
.side-srv.on { background: var(--app-blue); }
.side-srv b { display: block; font-size: 11.5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-srv small { display: block; font: 9.5px var(--mono); color: #9aa0aa; letter-spacing: -0.04em; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.side-srv.on small { color: #d6e2ff; }
.side-srv svg, .side-item svg { width: 12px; height: 12px; fill: none; stroke: #3fd07a; stroke-width: 1.5; }
.side-srv .locked svg { stroke: #8b8f98; }
.side-item { display: flex; align-items: center; gap: 8px; margin-top: 2px; padding: 6px; border-radius: 8px; color: #d7d9de; transition: background 0.3s; }
.side-item svg { stroke: #c9ccd2; }
.side-item.on { background: var(--app-blue); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #6b6f78; }
.dot.on { background: #3fd07a; }

.stage-body { position: relative; overflow: hidden; color: #e4e6ea; }
.panel { position: absolute; inset: 0; padding: 14px 16px; opacity: 0; transform: translateY(12px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); pointer-events: none; overflow: hidden; }
.panel.active { opacity: 1; transform: none; }

/* Флаги без эмодзи */
.flag { display: inline-block; width: 16px; height: 11px; border-radius: 2px; vertical-align: -1px; }
.flag-ru { background: linear-gradient(#fff 33%, #1c57a7 33% 66%, #d52b1e 66%); }
.flag-nl { background: linear-gradient(#ae1c28 33%, #fff 33% 66%, #21468b 66%); }
.flag-de { background: linear-gradient(#000 33%, #dd0000 33% 66%, #ffce00 66%); }
.flag-fi { background: linear-gradient(90deg, transparent 30%, #1a4fa0 30% 45%, transparent 45%), linear-gradient(transparent 38%, #1a4fa0 38% 62%, transparent 62%), #fff; }
.flag-us { background: linear-gradient(90deg, #3c3b6e 42%, transparent 42%) 0 0 / 100% 55% no-repeat, repeating-linear-gradient(#b22234 0 1.6px, #fff 1.6px 3.2px); }

/* Общие элементы */
.muted { color: #8b8f98; }
.ok-text { color: #3fd07a; }
.warn-text { color: var(--warn); }
.bad-text { color: var(--bad); }
.st { display: inline-block; flex: none; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #6b6f78; }
.st.ok { background: #3fd07a; }
.st.warn { background: var(--warn); animation: beat 1s infinite; }
.spin { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border: 2px solid rgba(255, 255, 255, 0.15); border-top-color: #c9ccd2; border-radius: 50%; vertical-align: -2px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sub-h { margin: 12px 0 6px; font-weight: 700; font-size: 12.5px; }
.pane-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.pane-h b { font-size: 15px; }
.act { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 7px; background: #33343a; color: #e4e6ea; white-space: nowrap; }
.act.primary { background: var(--app-blue); color: #fff; }
.dim-btn { opacity: 0.75; }

/* Дашборд */
.srv-card { padding: 10px 12px; border-radius: 10px; background: var(--app-panel); }
.srv-ip { display: flex; align-items: center; gap: 8px; font: 500 19px var(--mono); }
.srv-meta { display: flex; gap: 12px; margin-top: 4px; color: #9aa0aa; }
.chip-tag { padding: 0 8px; border-radius: 999px; background: #233150; color: #c9d6f5; }
.actions { display: flex; gap: 6px; margin: 10px 0; }
.info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.info-cell { padding: 7px 9px; border-radius: 8px; background: var(--app-panel); }
.info-cell span { display: block; color: #8b8f98; font-size: 10.5px; }
.info-cell b { display: block; min-height: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skeleton { border-radius: 4px; background: linear-gradient(90deg, #303137 25%, #3c3d44 50%, #303137 75%) 0 0 / 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.pop { animation: pop 0.4s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.disk { display: grid; grid-template-columns: 96px 1fr 80px; align-items: center; gap: 10px; margin-top: 6px; font: 11px var(--mono); }
.disk-bar { height: 6px; border-radius: 3px; background: #33343a; overflow: hidden; }
.disk-bar i { display: block; height: 100%; width: var(--v, 0%); border-radius: 3px; background: #3fd07a; transition: width 1.1s var(--ease); }
.disk span:last-child { text-align: right; }

/* Сервисы */
.checking { color: #8b8f98; }
.svc-box { border-radius: 10px; background: var(--app-panel); padding: 0 10px; }
.svc { display: flex; align-items: center; height: 32px; border-bottom: 1px solid var(--app-line); }
.svc:last-child { border-bottom: none; }
.svc-name { font-weight: 600; }
.svc-right { margin-left: auto; display: flex; align-items: center; }
.btn-install { padding: 2px 10px; border-radius: 6px; background: var(--app-blue); color: #fff; font-weight: 600; animation: pop 0.3s var(--ease); }
.btn-install.pressed { filter: brightness(1.3); transform: scale(0.95); }
.install-bar { display: block; width: 90px; height: 6px; border-radius: 3px; background: #33343a; overflow: hidden; }
.install-bar i { display: block; height: 100%; width: 0; background: var(--app-blue); }
.qr-pop {
  position: absolute; left: 16px; right: 16px; bottom: 14px;
  display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center;
  padding: 12px; border-radius: 12px; background: #2c2d33; border: 1px solid var(--app-line);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
  transform: translateY(150%); transition: transform 0.6s var(--ease);
}
.qr-pop.show { transform: none; }
.qr-pop p { margin: 2px 0 6px; }
.qr { width: 96px; height: 96px; padding: 6px; border-radius: 8px; background: #fff; }
.qr canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.vpn-uri { padding: 6px 8px; border-radius: 6px; background: #17181b; color: var(--accent); font: 10.5px var(--mono); word-break: break-all; min-height: 26px; }

/* Docker */
.ctr { display: grid; grid-template-columns: 14px 86px 1fr auto; align-items: center; gap: 4px; height: 25px; font: 11px var(--mono); opacity: 0; animation: rise 0.4s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 90ms); }
.ctr b { font-weight: 600; }
.ctr-ports { color: #9aa0aa; }
.ports { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.port { padding: 2px 8px; border-radius: 999px; background: #303137; font: 10.5px var(--mono); opacity: 0; animation: rise 0.4s var(--ease) forwards; animation-delay: calc(0.6s + var(--i, 0) * 80ms); }
.port-ok { background: rgba(63, 208, 122, 0.18); color: #3fd07a; }
.logs { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: #17181b; font: 10.5px/1.6 var(--mono); height: 92px; overflow: hidden; }
.logs p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: pop 0.3s var(--ease); }
.lv-info { color: #8fb4ff; }
.lv-warn { color: var(--warn); }

/* Мониторинг */
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 6px 0; }
.mini-stats div { padding: 7px 9px; border-radius: 8px; background: var(--app-panel); }
.mini-stats span { display: block; color: #8b8f98; font-size: 10.5px; }
.mini-stats b { font-size: 17px; }
.chart { width: 100%; height: 200px; display: block; }
.tg {
  position: absolute; right: 16px; bottom: 14px; width: 280px;
  padding: 10px 12px; border-radius: 12px; background: #2b5278; color: #fff; font-size: 12px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
  transform: translateY(160%); transition: transform 0.6s var(--ease);
}
.tg.show { transform: none; }
.tg b { display: block; margin-bottom: 3px; color: #9fd0ff; }

/* Terminal Hub */
.term-tabs { display: flex; align-items: center; gap: 6px; margin: -6px -8px 8px; }
.tab { display: flex; align-items: center; padding: 4px 10px; border-radius: 7px; color: #9aa0aa; }
.tab.active { background: #233150; color: #fff; box-shadow: inset 0 2px 0 #3fd07a; }
.tab-add { margin-left: auto; color: #9aa0aa; font-size: 16px; }
.term { height: 318px; overflow: hidden; font: 11.5px/1.55 var(--mono); }
.term p { margin: 0; white-space: pre; }
.term .prompt { color: #3fd07a; }
.term-out { color: #c9ccd2; }
.term-status { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 14px; border-top: 1px solid var(--app-line); color: #9aa0aa; font: 10.5px var(--mono); }
.caret { display: inline-block; width: 7px; height: 13px; margin-left: 2px; background: #e4e6ea; vertical-align: -2px; animation: beat 1s steps(2) infinite; }

/* Сканер сети */
.scan-state { display: flex; align-items: center; gap: 8px; color: #8b8f98; }
.mac { margin: 0; font: 10.5px var(--mono); }
.dev-wrap { animation: pop 0.45s var(--ease); }
.dev { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--app-line); }
.dev-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.dev b { font-size: 13px; }
.badge-type { padding: 1px 7px; border-radius: 999px; background: #33343a; font-size: 10.5px; }
.dev .ports { margin-top: 3px; }
.dev .port { animation-delay: 0.1s; }

/* AI */
.chat { display: flex; flex-direction: column; gap: 9px; }
.bubble { max-width: 86%; padding: 9px 13px; border-radius: 14px; font-size: 13px; animation: pop 0.4s var(--ease); }
.bubble.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); }
.bubble.bot { align-self: flex-start; background: var(--app-panel); }
.tool { align-self: flex-start; padding: 5px 9px; border-radius: 7px; background: rgba(47, 111, 228, 0.2); color: #9fb6ff; font: 11px var(--mono); animation: pop 0.4s var(--ease); }

@media (max-width: 900px) {
  .feature-layout { grid-template-columns: 1fr; gap: 0; }
  .feature-stage { position: sticky; top: 60px; z-index: 3; order: -1; }
  .app-body { grid-template-columns: 1fr; height: 330px; }
  .app-side { display: none; }
  .seg span { padding: 3px 8px; }
  .feature-steps li { min-height: 75vh; justify-content: flex-end; padding-bottom: 6vh; }
  .info { grid-template-columns: repeat(2, 1fr); }
  .info-cell:nth-child(n+5), .disk:nth-of-type(n+3) { display: none; }
  .ctr { grid-template-columns: 14px 76px 1fr; }
  .ctr-ports { display: none; }
  .chart { height: 140px; }
  .term { height: 228px; }
  .tg { left: 16px; width: auto; }
}
