/* Раздел «Данные и инфраструктура». Сцена всегда тёмная: на ней светятся потоки данных. */
.nf-stage { --h: rgba(13, 19, 33, .78); --hl: rgba(140, 165, 230, .2); --t: #EEF2FA; --t2: #AEB9CE; --t3: #7785A0;
  position: relative; height: calc(100vh - var(--top)); min-height: 560px; overflow: hidden; border-top-left-radius: 22px; color: var(--t);
  background: radial-gradient(90% 70% at 50% 8%, #1a2748 0%, #0b1222 55%, #060a14 100%); }
.nf-scene, .nf-labels { position: absolute; inset: 0; }
.nf-scene canvas { display: block; width: 100%; height: 100%; cursor: grab; } .nf-scene canvas:active { cursor: grabbing; }
.nf-labels { pointer-events: none; overflow: hidden; z-index: 3; }
.nf-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; background: radial-gradient(120% 95% at 50% 45%, transparent 58%, rgba(3, 6, 12, .55) 100%); }

.nf-l { position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform; }
.nf-l.zone { text-align: center; } .nf-l.zone b { display: block; font: 800 13px/1.2 var(--head); letter-spacing: .14em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.nf-l.zone i { font: 600 11px/1.3 var(--body); font-style: normal; color: var(--t2); text-shadow: 0 1px 6px rgba(0, 0, 0, .9); }
.nf-l.node { pointer-events: auto; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 4px 9px 4px 7px; margin-top: -4px; border-radius: 20px; font: 700 11px/1.2 var(--body); color: var(--t);
  background: rgba(9, 13, 23, .72); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(6px); transition: background .15s, border-color .15s, box-shadow .15s; }
.nf-l.node u { width: 7px; height: 7px; border-radius: 50%; background: var(--tc, #6D93F0); box-shadow: 0 0 8px var(--tc, #6D93F0); }
.nf-l.node:hover { background: rgba(9, 13, 23, .95); border-color: #fff; }
.nf-l.node.seen { color: var(--t2); } .nf-l.node.seen u { box-shadow: none; opacity: .75; }
.nf-l.node.on, .nf-l.node.hot { background: #fff; color: #0b1222; border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .16), 0 6px 22px rgba(0, 0, 0, .5); z-index: 2; }
.nf-l.part { padding: 5px 10px; border-radius: 9px; font: 600 11.5px/1.25 var(--body); color: #0b1222; background: rgba(255, 255, 255, .94); box-shadow: 0 6px 20px rgba(0, 0, 0, .45); margin-top: -10px; animation: nfin .35s both; }
.tz { --tc: #45CF9F; } .our { --tc: #6D93F0; } .sup { --tc: #F2B33D; } .idea { --tc: #A08BF0; }

.nf-hud { position: absolute; z-index: 5; background: var(--h); border: 1px solid var(--hl); border-radius: 14px; backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 10px 34px rgba(0, 0, 0, .35); animation: nfin .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes nfin { from { opacity: 0; transform: translateY(8px); } }
.nf-title { left: 18px; top: 16px; width: 316px; padding: 14px 16px; }
.nf-title .eyebrow { color: #F2B33D; margin-bottom: 6px; } .nf-title h1 { font: 700 20px/1.15 var(--head); letter-spacing: -.01em; } .nf-title .sub { font-size: 12px; color: var(--t2); margin-top: 6px; }
.nf-run { width: 100%; justify-content: center; margin-top: 12px; height: 40px; box-shadow: 0 6px 22px rgba(79, 123, 230, .5); } .nf-run svg.i { width: 14px; height: 14px; } .nf-run small { font: 600 10.5px/1 var(--mono); opacity: .75; margin-left: 6px; }
.nf-prog { margin-top: 12px; font-size: 11.5px; color: var(--t2); } .nf-prog b { color: #fff; font-family: var(--mono); }
.nf-prog i { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); margin-top: 6px; overflow: hidden; } .nf-prog u { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #6D93F0, #45CF9F); transition: width .5s; }
.nf-prog.done span { color: #45CF9F; font-weight: 700; }

.nf-views { left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 2px; padding: 5px; animation: none; white-space: nowrap; }
.nf-views button, .nf-devs button { display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 12px 0 9px; border: 0; border-radius: 9px; background: transparent; color: var(--t2); font-weight: 700; font-size: 12.5px; text-align: left; transition: background .15s, color .15s; }
.nf-views button:hover, .nf-devs button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nf-views button.on, .nf-devs button.on { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(79, 123, 230, .5); }
.nf-views button.hg { margin-left: 6px; color: #F2B33D; background: rgba(242, 179, 61, .1); } .nf-views button.hg.on { background: #F2B33D; color: #1b1405; box-shadow: 0 4px 14px rgba(242, 179, 61, .4); }

.nf-flows { right: 18px; top: 16px; width: 236px; padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; animation-delay: .16s; }
.nf-flows > b, .nf-devs > b, .nf-hops > b { font: 700 10px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--t3); margin-bottom: 3px; display: block; }
.nf-flows label { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; color: var(--t2); cursor: pointer; user-select: none; } .nf-flows input { display: none; }
.nf-flows label i { width: 22px; height: 10px; border-radius: 6px; border: 2px solid var(--c); opacity: .5; transition: all .2s; flex-shrink: 0; }
.nf-flows input:checked + i { background: var(--c); opacity: 1; box-shadow: 0 0 10px var(--c); }
.nf-flows .hr { height: 1px; background: var(--hl); margin: 3px 0; }
.nf-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.nf-tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 20px; font: 700 10.5px/1 var(--body); letter-spacing: .03em; color: var(--tc); background: color-mix(in srgb, var(--tc) 16%, transparent); border: 1px solid color-mix(in srgb, var(--tc) 40%, transparent); white-space: nowrap; }
.nf-tag::before, .nf-dot { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tc); flex-shrink: 0; }

.nf-card { position: absolute; z-index: 8; right: 18px; top: 16px; bottom: 16px; width: 336px; max-width: calc(100% - 36px); overflow: auto; padding: 18px; background: rgba(11, 16, 29, .92); border: 1px solid var(--hl); border-radius: 16px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); transform: translateX(calc(100% + 30px)); opacity: 0; transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .25s; }
.nf-card.on { transform: none; opacity: 1; }
.nf-card .cls { position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; border-radius: 9px; border: 0; background: transparent; color: var(--t3); display: grid; place-items: center; } .nf-card .cls:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nf-card h3 { font: 700 18px/1.25 var(--head); margin: 10px 0 8px; padding-right: 20px; } .nf-card p { font-size: 13px; line-height: 1.55; color: var(--t2); }
.nf-dl { margin: 14px 0 4px; display: flex; flex-direction: column; } .nf-dl > div { display: grid; grid-template-columns: 86px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--hl); }
.nf-dl dt { font: 700 10.5px/1.5 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--t3); } .nf-dl dd { font-size: 12.5px; line-height: 1.45; color: var(--t); }
.nf-hops { margin-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.nf-hops button { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--hl); background: rgba(255, 255, 255, .03); color: var(--t); text-align: left; font-weight: 700; font-size: 12.5px; transition: background .15s; }
.nf-hops button:hover { background: rgba(255, 255, 255, .1); } .nf-hops button i { width: 4px; align-self: stretch; border-radius: 3px; flex-shrink: 0; } .nf-hops small { display: block; font-weight: 500; font-size: 11.5px; color: var(--t2); margin-top: 1px; }
.nf-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.nf-stage .btn:not(.p) { background: rgba(255, 255, 255, .06); border-color: var(--hl); color: var(--t); } .nf-stage .btn:not(.p):hover { background: rgba(255, 255, 255, .14); border-color: var(--t3); }
.nf-wide { width: 100%; justify-content: center; margin-top: 8px; }
.nf-spec { width: 100%; border-collapse: collapse; margin-top: 12px; } .nf-spec td { padding: 8px 0; border-top: 1px solid var(--hl); font-size: 12.5px; vertical-align: top; line-height: 1.4; }
.nf-spec td:first-child { color: var(--t3); width: 44%; padding-right: 10px; } .nf-spec td:last-child { font-weight: 700; color: var(--t); }
.nf-note { margin-top: 10px; padding: 9px 11px; border-radius: 10px; border: 1px dashed var(--hl); font-size: 12px !important; }

.nf-devs { display: none; left: 18px; top: 236px; width: 226px; padding: 10px 6px 6px; flex-direction: column; gap: 2px; } .nf-devs > b { padding: 0 8px 4px; }
.nf-devs button.on { background: #F2B33D; color: #1b1405; box-shadow: 0 4px 14px rgba(242, 179, 61, .4); } .nf-devs .nf-dot { display: block; }
.hangar .nf-devs { display: flex; top: 16px; left: 18px; } .hangar .nf-title, .hangar .nf-flows { display: none; }
.hangar .nf-views button:not(.hg):not([data-v="all"]) { display: none; }

.nf-sim { display: none; left: 50%; bottom: 16px; width: min(900px, calc(100% - 36px)); transform: translateX(-50%); padding: 12px 16px 14px; animation: none; }
.sim .nf-sim { display: block; } .sim .nf-title, .sim .nf-views, .sim .nf-flows { display: none; }
.nf-st { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; } .nf-st span { display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 20px; font: 700 11.5px/1 var(--body); color: var(--t3); }
.nf-st em { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font: 700 10px/1 var(--mono); font-style: normal; background: rgba(255, 255, 255, .1); }
.nf-st span.ok { color: #45CF9F; } .nf-st span.ok em { background: #45CF9F; color: #06281d; } .nf-st span.on { background: #fff; color: #0b1222; } .nf-st span.on em { background: var(--accent); color: #fff; }
.nf-st button { margin-left: auto; }
.nf-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); margin: 10px 0 12px; overflow: hidden; } .nf-bar i { display: block; height: 100%; background: linear-gradient(90deg, #38D9F5, #6D93F0, #45CF9F); }
.nf-row { display: flex; gap: 18px; align-items: center; } .nf-row p { flex: 1; font-size: 13px; line-height: 1.5; color: var(--t2); min-width: 0; } .nf-row p b { color: #fff; }
.nf-cnt { display: grid; grid-template-columns: repeat(6, auto); gap: 4px 16px; } .nf-cnt span { display: block; font: 700 9.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--t3); margin-bottom: 5px; }
.nf-cnt b { font: 700 17px/1 var(--mono); color: #fff; white-space: nowrap; } .nf-cnt small { font-size: 10.5px; color: var(--t3); font-weight: 600; } .nf-cnt b.r { color: #F07070; }

@media (max-width: 1180px) { .nf-flows { display: none; } .nf-cnt { grid-template-columns: repeat(3, auto); } }
@media (max-width: 900px) {
  .nf-title { width: 232px; padding: 10px 12px; } .nf-title .sub, .nf-title .eyebrow { display: none; } .nf-title h1 { font-size: 15px; } .nf-run { height: 34px; font-size: 12px; margin-top: 8px; } .nf-run small { display: none; }
  .nf-views button span { display: none; } .nf-views button { padding: 0 9px; }
  .nf-card { top: auto; bottom: 10px; right: 10px; left: 10px; width: auto; max-height: 52%; padding: 14px; } .nf-row { flex-direction: column; align-items: stretch; gap: 10px; } .nf-l.node { font-size: 10px; padding: 3px 7px 3px 5px; }
  .hangar .nf-devs { flex-direction: row; flex-wrap: wrap; width: auto; right: 10px; left: 10px; top: 10px; } .hangar .nf-devs > b { display: none; } .hangar .nf-devs button { height: 28px; font-size: 11px; padding: 0 8px 0 6px; }
}

@media (max-width: 1180px) { .nf-views button:not(.on):not(.hg) span { display: none; } }

/* ---------- Фотоосмотр ---------- */
.ph-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.ph-side { display: flex; flex-direction: column; gap: 14px; }
.ph-view { overflow: hidden; }
.ph-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ph-tools .sp { flex: 1; } .ph-tools .seg button { display: inline-flex; align-items: center; gap: 6px; } .ph-tools .seg svg.i { width: 14px; height: 14px; }
.ph-tools select.inp { height: 36px; width: auto; padding: 0 10px; }
.ph-mt button i { width: 9px; height: 9px; border-radius: 50%; }
.ph-cv { position: relative; height: clamp(380px, calc(100vh - 330px), 760px); background: #0b0f18; }
.ph-cv canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; } .ph-cv canvas:active { cursor: grabbing; }
.ph-cv[data-tool="mark"] canvas, .ph-cv[data-tool="ruler"] canvas { cursor: crosshair; }
.ph-zoom { position: absolute; right: 12px; top: 44px; display: flex; flex-direction: column; gap: 4px; }
.ph-zoom button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(8, 12, 20, .72); color: #fff; font: 700 14px/1 var(--mono); display: grid; place-items: center; backdrop-filter: blur(6px); }
.ph-zoom button:hover { background: rgba(8, 12, 20, .95); border-color: #fff; } .ph-zoom svg.i { width: 15px; height: 15px; }
.ph-read { position: absolute; right: 12px; bottom: 10px; padding: 6px 10px; border-radius: 8px; background: rgba(8, 12, 20, .68); color: #c9d2e3; font-size: 11.5px; backdrop-filter: blur(6px); pointer-events: none; } .ph-read b { color: #fff; font-family: var(--mono); }
.ph-jump { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 12px; border-top: 1px solid var(--line); }
.ph-jump b { font: 700 10px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); margin-right: 4px; }
.ph-jump button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink2); font-weight: 700; font-size: 12px; } .ph-jump button:hover { color: var(--ink); border-color: var(--ink3); } .ph-jump svg.i { width: 13px; height: 13px; }
.ph-kv { display: grid; grid-template-columns: 112px 1fr; gap: 7px 12px; font-size: 12.5px; } .ph-kv span { color: var(--ink3); font-weight: 600; } .ph-kv b { font-weight: 700; }
.ph-verd { display: flex; gap: 6px; flex-wrap: wrap; }
.ph-notes { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow: auto; }
.ph-notes > div { display: flex; align-items: center; gap: 9px; } .ph-notes i { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; } .ph-notes span { flex: 1; min-width: 0; font-size: 12.5px; } .ph-notes small { display: block; color: var(--ink3); font-size: 11px; }
@media (max-width: 1100px) { .ph-grid { grid-template-columns: 1fr; } .ph-cv { height: 440px; } }
