/* МТЗ smart-railway demo. DIPNetLink brand: navy #0B2540, orange #F26B1D, sky #0EA5E9. Restrained type sizes. */
@font-face { font-family: "Montserrat"; font-weight: 100 900; font-display: swap;
  src: url("../../assets/fonts/montserrat-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Montserrat"; font-weight: 100 900; font-display: swap;
  src: url("../../assets/fonts/montserrat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; font-weight: 100 900; font-display: swap;
  src: url("../../assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }

:root {
  --navy: #0B2540; --navy-950: #061423; --navy-900: #081d33; --navy-800: #0d2c4b;
  --orange: #F26B1D; --sky: #0EA5E9; --ink: #16222E; --slate: #56677A; --line: #DBE3EC; --mist: #F4F7FA;
  --ok: #34D399; --warn: #FBBF24; --crit: #FB7A2E; --emg: #F05252;
  --head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { font: 400 15px/1.6 var(--body); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: -.012em; line-height: 1.25; color: var(--navy); }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1328px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 8px; background: var(--orange); color: #fff; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(6, 20, 35, .94); border-bottom: 1px solid rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; }
.top-row { display: flex; align-items: center; gap: 16px; height: 62px; }
.top-brand img { height: 24px; width: auto; --logo-ink: #fff; }
.top-sep { width: 1px; height: 26px; background: rgba(255, 255, 255, .16); }
.top-client { height: 36px; width: auto; opacity: .95; }
.top-nav { display: flex; gap: 4px; margin-left: auto; }
.top-nav a { padding: 8px 12px; border-radius: 8px; font: 500 13px/1 var(--head); color: rgba(255, 255, 255, .72); transition: color .2s, background-color .2s; }
.top-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.top-back { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .16); font: 600 12.5px/1 var(--head); color: #fff; transition: border-color .2s, background-color .2s; }
.top-back:hover { border-color: rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .05); }
.top-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ intro + simulation (dark) */
.intro, .sim { background: var(--navy-900); color: rgba(255, 255, 255, .72); }
.intro { padding: 24px 0 18px; background: radial-gradient(900px 380px at 78% 0%, rgba(14, 165, 233, .13), transparent 70%), var(--navy-900); }
.intro-grid { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.kicker { font: 600 11px/1.4 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.intro h1 { margin: 10px 0 8px; font-size: clamp(24px, .7vw + 20px, 30px); color: #fff; }
.lead { max-width: 40em; font-size: 15px; color: rgba(255, 255, 255, .68); text-wrap: pretty; }
.intro-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 0; }
.intro-stats li { padding: 4px 22px; border-left: 1px solid rgba(255, 255, 255, .1); }
.intro-stats li:first-child { border-left: 0; padding-left: 0; }
.intro-stats b { display: block; font: 650 19px/1.2 var(--head); color: #fff; }
.intro-stats span { display: block; margin-top: 3px; font-size: 12px; color: rgba(255, 255, 255, .52); white-space: nowrap; }

.sim { padding-bottom: 40px; }
.panel { overflow: hidden; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .09); background: linear-gradient(180deg, #0c2a48, #08213a);
  box-shadow: 0 40px 80px -48px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .05); }
.panel-head { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.panel-title { display: flex; align-items: center; gap: 10px; font: 650 14.5px/1.3 var(--head); color: #fff; }
.badge { padding: 3px 8px; border-radius: 6px; font: 600 10.5px/1.4 var(--head); color: #FFD7BC; background: rgba(242, 107, 29, .14); border: 1px solid rgba(242, 107, 29, .34); white-space: nowrap; }
.panel-sub { font-size: 12px; color: rgba(255, 255, 255, .48); }
.kpis { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.kpis li { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 8px; font-size: 12px; color: rgba(255, 255, 255, .62);
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .07); white-space: nowrap; }
.kpis b { font: 650 12.5px/1 var(--head); color: #fff; font-variant-numeric: tabular-nums; }
.kpis .clock { font: 600 12.5px/1 var(--head); color: #fff; font-variant-numeric: tabular-nums; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .28); flex-shrink: 0; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(52, 211, 153, .18); }
.dot.lv1 { background: var(--warn); box-shadow: 0 0 0 3px rgba(251, 191, 36, .2); }
.dot.lv2 { background: var(--crit); box-shadow: 0 0 0 3px rgba(251, 122, 46, .22); }
.dot.lv3 { background: var(--emg); box-shadow: 0 0 0 3px rgba(240, 82, 82, .24); }
.controls { display: flex; gap: 8px; }
.ctl { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 11px; border-radius: 8px; font: 600 12px/1 var(--head); color: #fff;
  border: 1px solid rgba(255, 255, 255, .12); transition: border-color .2s, background-color .2s; }
.ctl:hover { border-color: rgba(255, 255, 255, .3); }
.switch { position: relative; width: 24px; height: 14px; border-radius: 999px; background: rgba(255, 255, 255, .2); transition: background-color .2s; }
.switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
[data-auto][aria-pressed="true"] .switch { background: var(--orange); }
[data-auto][aria-pressed="true"] .switch::after { transform: translateX(10px); }
.ctl-icon { width: 30px; padding: 0; justify-content: center; }
.ctl-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ctl-icon .i-play { fill: currentColor; stroke: none; }
.ctl-icon .i-play, .ctl-icon[aria-pressed="true"] .i-pause { display: none; }
.ctl-icon[aria-pressed="true"] .i-play { display: block; }

.chips { display: flex; gap: 6px; padding: 12px 18px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.chips::-webkit-scrollbar { display: none; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; height: 32px; padding: 0 12px 0 8px; border-radius: 999px;
  font: 500 12.5px/1 var(--head); color: rgba(255, 255, 255, .74); border: 1px solid rgba(255, 255, 255, .1); overflow: hidden;
  transition: border-color .2s, background-color .2s, color .2s; }
.chip:hover { color: #fff; border-color: rgba(255, 255, 255, .26); }
.chip i { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; font: 700 10px/1 var(--head); font-style: normal; background: rgba(255, 255, 255, .09); }
.chip[aria-pressed="true"] { color: #fff; border-color: rgba(242, 107, 29, .65); background: rgba(242, 107, 29, .12); }
.chip[aria-pressed="true"] i { background: var(--orange); }
.chip .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--orange); }

.map-scroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
#map { width: 100%; height: auto; min-width: 920px; user-select: none; }

.stepper { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px 18px 16px; border-top: 1px solid rgba(255, 255, 255, .07); }
.stepper ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.stepper li { display: flex; flex-direction: column; gap: 7px; font: 600 11.5px/1.2 var(--head); color: rgba(255, 255, 255, .4); transition: color .3s; }
.stepper li i { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; position: relative; }
.stepper li i::after { content: ""; position: absolute; inset: 0; background: var(--orange); transform: scaleX(0); transform-origin: left; }
.stepper li.done { color: rgba(255, 255, 255, .7); }
.stepper li.done i::after { transform: scaleX(1); background: rgba(242, 107, 29, .55); }
.stepper li.on { color: #fff; }
.stepper li.on i::after { transform: scaleX(var(--p, 0)); }
.step-desc { min-height: 1.6em; font-size: 14px; color: #fff; }

/* ------------------------------------------------------------------ cards under the panel */
.cards { display: grid; grid-template-columns: 1.15fr 1.15fr .9fr; gap: 14px; margin-top: 14px; }
.card { display: flex; flex-direction: column; min-width: 0; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .09); background: #0a2440; }
.card header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card h3 { font-size: 12.5px; font-weight: 650; color: rgba(255, 255, 255, .86); }
.chart-value { font: 650 18px/1 var(--head); color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart-value small { margin-left: 3px; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .55); }
.chart { width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.chart .area { fill: url(#areaFill); }
.chart .line { fill: none; stroke: #38BDF8; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .th { stroke-width: 1.2; stroke-dasharray: 4 4; }
.chart .th1 { stroke: var(--warn); } .chart .th2 { stroke: var(--crit); }
.chart text { font: 10px var(--body); fill: rgba(255, 255, 255, .5); }
.chart .head-dot { fill: #fff; stroke: #38BDF8; stroke-width: 2; }
.card-note { margin-top: 8px; font-size: 12px; color: rgba(255, 255, 255, .45); }
.live { display: inline-flex; align-items: center; gap: 6px; font: 600 10.5px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--ok); }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.log { display: flex; flex-direction: column; gap: 6px; height: 170px; overflow: hidden; }
.log li { display: grid; grid-template-columns: 8px 54px minmax(0, 1fr); gap: 9px; align-items: start; font-size: 12.5px; line-height: 1.45; color: rgba(255, 255, 255, .78); }
.log li time { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .4); font-size: 11.5px; }
.log li .dot { margin-top: 6px; }
.log li.new { animation: slide-in .45s var(--ease); }
@keyframes slide-in { from { opacity: 0; transform: translateY(-6px); } }
.phone { position: relative; flex: 1; min-height: 170px; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 18px;
  background: linear-gradient(170deg, #173a5f, #0d2a49); border: 1px solid rgba(255, 255, 255, .1); overflow: hidden; }
.phone-empty { margin: auto; padding: 0 14px; text-align: center; font-size: 12px; color: rgba(255, 255, 255, .45); }
.note { padding: 9px 11px; border-radius: 12px; background: rgba(255, 255, 255, .95); color: var(--ink); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .6); animation: note-in .5s var(--ease); }
.note-head { display: flex; align-items: center; gap: 7px; font: 600 10.5px/1 var(--head); color: var(--slate); }
.note-head i { width: 8px; height: 8px; border-radius: 3px; background: var(--orange); }
.note.lv1 .note-head i { background: #E0A100; } .note.lv3 .note-head i { background: var(--emg); } .note.ok .note-head i { background: #0F9F6E; }
.note-from { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.note-when { margin-left: auto; font-weight: 500; color: #8796A8; }
.note b { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.35; }
.note p { margin-top: 2px; font-size: 12px; line-height: 1.4; color: var(--slate); }
@keyframes note-in { from { opacity: 0; transform: translateY(-14px) scale(.97); } }

/* ------------------------------------------------------------------ SVG scene */
#map text { font-family: var(--body); }
.sky-star { fill: rgba(255, 255, 255, .35); }
.hill-a { fill: rgba(255, 255, 255, .028); } .hill-b { fill: rgba(255, 255, 255, .045); }
.ground { fill: rgba(2, 12, 24, .28); }
.river { fill: url(#water); transition: opacity .6s; }
.river-edge { fill: none; stroke: rgba(56, 189, 248, .4); stroke-width: 1.2; }
.ripple { fill: none; stroke: rgba(186, 230, 253, .45); stroke-width: 1; stroke-dasharray: 6 10; animation: flow 2.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -32; } }
.bed { fill: none; stroke: #2B4766; stroke-width: 13; stroke-linecap: round; }
.ties { fill: none; stroke: #486682; stroke-width: 11; stroke-dasharray: 2.5 6; }
.rail { fill: none; stroke: #B9CADB; stroke-width: 1.4; }
.seg-alert { fill: none; stroke-width: 16; stroke-linecap: round; opacity: 0; transition: opacity .4s; }
.seg-alert.on { opacity: .55; animation: seg 1.4s ease-in-out infinite; }
@keyframes seg { 50% { opacity: .22; } }
.backbone { fill: none; stroke: rgba(125, 211, 252, .22); stroke-width: 1.2; stroke-dasharray: 3 5; }
.mast { stroke: #8FA9C4; stroke-width: 1.6; fill: none; }
.gw-box { fill: #E6F6FE; }
.gw-wave { fill: none; stroke: var(--sky); stroke-width: 1.5; stroke-linecap: round; opacity: .55; }
.gw.ping .gw-wave { animation: wave 1s ease-out; }
@keyframes wave { 0% { opacity: 1; stroke-width: 2.4; } 100% { opacity: .55; } }
.coverage { fill: url(#cover); opacity: 0; transition: opacity .6s; }
.coverage.on { opacity: 1; }
.bld { fill: #17395C; stroke: #5E7F9F; stroke-width: 1; }
.roof { fill: #2A5177; }
.win { fill: #9FC7E8; opacity: .7; }
.st-name { font-size: 12px; font-weight: 600; fill: #E7EEF6; }
.st-kind { font-size: 10px; fill: rgba(231, 238, 246, .5); }
.label { font-size: 10.5px; fill: rgba(214, 228, 242, .7); }
.label-strong { font-size: 11px; font-weight: 600; fill: #E7EEF6; }
.pier { fill: #3C5B7C; } .deck { stroke: #6F8CAA; stroke-width: 5; fill: none; }
.slope { fill: #1B3E62; } .slope-line { stroke: rgba(255, 255, 255, .12); fill: none; stroke-width: 1; }
.tilting { transition: transform 1.2s var(--ease); }
.server { fill: rgba(14, 165, 233, .1); stroke: rgba(56, 189, 248, .55); stroke-width: 1.2; }
.server-unit { fill: #0E3357; stroke: #4E7AA6; }
.server-led { fill: var(--ok); }
.server-ring { fill: none; stroke: var(--sky); stroke-width: 1.5; opacity: 0; }
.server-ring.go { animation: ring 1s ease-out; }
@keyframes ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.25); } }
.actor { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .16); }
.actor.on { fill: rgba(242, 107, 29, .2); stroke: var(--orange); }
.actor-ico { fill: none; stroke: #CFE3F6; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.link { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 1.2; }

.sensor { cursor: pointer; }
.sensor .halo { fill: rgba(14, 165, 233, .16); stroke: rgba(56, 189, 248, .5); stroke-width: 1; transition: fill .3s, stroke .3s; }
.sensor .core { fill: #0F3457; stroke: #7DD3FC; stroke-width: 1.4; transition: stroke .3s, fill .3s; }
.sensor .ico { fill: none; stroke: #E0F2FE; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sensor .pulse { fill: none; stroke-width: 1.6; opacity: 0; }
.sensor.lv1 .halo { fill: rgba(251, 191, 36, .2); stroke: var(--warn); } .sensor.lv1 .core { stroke: var(--warn); }
.sensor.lv2 .halo { fill: rgba(251, 122, 46, .24); stroke: var(--crit); } .sensor.lv2 .core { stroke: var(--crit); fill: #4A2410; }
.sensor.lv3 .halo { fill: rgba(240, 82, 82, .26); stroke: var(--emg); } .sensor.lv3 .core { stroke: var(--emg); fill: #4C1717; }
.sensor.lv1 .pulse { stroke: var(--warn); animation: sp 1.3s ease-out infinite; }
.sensor.lv2 .pulse { stroke: var(--crit); animation: sp 1.1s ease-out infinite; }
.sensor.lv3 .pulse { stroke: var(--emg); animation: sp .9s ease-out infinite; }
@keyframes sp { 0% { opacity: .95; r: 11px; } 100% { opacity: 0; r: 30px; } }
.sensor.focus .halo { stroke-width: 2.2; }

.tag rect { fill: #fff; } .tag text { font-size: 11.5px; font-weight: 600; fill: var(--navy); }
.tag path { fill: #fff; }
.tag { opacity: 0; transition: opacity .35s; pointer-events: none; }
.tag.on { opacity: 1; }
.tag.lv1 rect, .tag.lv1 path { fill: #FFF3CD; }
.tag.lv2 rect, .tag.lv2 path { fill: #FFE1CC; }
.tag.lv3 rect, .tag.lv3 path { fill: #FFD9D9; }

.loco { fill: var(--orange); } .loco-top { fill: #C9530E; } .car { fill: #C7D6E5; } .car-top { fill: #8FA7C0; } .car-win { fill: #0F3457; }
.wheel { fill: #0B1D31; stroke: #9DB4CC; stroke-width: .8; }
.parked .car { fill: #93AFCB; }
.parked .pin { opacity: 0; transition: opacity .4s; }
.parked.on .pin { opacity: 1; }
.pin path { fill: var(--sky); } .pin circle { fill: #fff; }
.parked.lv1 .pin path { fill: var(--warn); }
.train-badge rect { fill: rgba(6, 20, 35, .85); stroke: rgba(255, 255, 255, .25); }
.train-badge text { font-size: 10.5px; font-weight: 600; fill: #fff; }
.train-badge { opacity: 0; transition: opacity .3s; }
.train-badge.on { opacity: 1; }

.person circle, .person path { fill: #FDBA74; }
.person .helmet { fill: var(--orange); }
.person .sos-ring { fill: none; stroke: var(--emg); stroke-width: 2; opacity: 0; }
.person.sos .sos-ring { animation: sp 1s ease-out infinite; }
.beacon { fill: none; stroke: rgba(125, 211, 252, .6); stroke-width: 1.2; }

.packet { pointer-events: none; }
.rain line { stroke: rgba(147, 197, 253, .75); stroke-width: 1.2; stroke-linecap: round; animation: fall .7s linear infinite; }
@keyframes fall { from { transform: translate(6px, -16px); } to { transform: translate(-4px, 12px); opacity: .2; } }
.wind path { fill: none; stroke: rgba(253, 230, 200, .6); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 26 120; animation: gust 1.1s linear infinite; }
@keyframes gust { to { stroke-dashoffset: -146; } }
.cloud { fill: rgba(203, 218, 235, .2); }
.sun circle { fill: #FBBF24; } .sun line { stroke: #FBBF24; stroke-width: 2; stroke-linecap: round; }
.heatwave path { fill: none; stroke: rgba(251, 146, 60, .75); stroke-width: 1.6; stroke-linecap: round; animation: heat 1.4s ease-in-out infinite; }
@keyframes heat { 50% { transform: translateY(-5px); opacity: .35; } }
.snow circle { fill: rgba(255, 255, 255, .8); animation: snow 3s linear infinite; }
@keyframes snow { from { transform: translateY(-10px); } to { transform: translate(-8px, 34px); opacity: .1; } }
.smoke circle { fill: rgba(203, 213, 225, .35); animation: puff 2.4s ease-out infinite; }
@keyframes puff { from { transform: translateY(0) scale(.6); opacity: .9; } to { transform: translate(8px, -22px) scale(1.6); opacity: 0; } }
.anemo { transform-box: fill-box; transform-origin: center; animation: spin 2.6s linear infinite; }
.anemo.fast { animation-duration: .35s; }
.fan { transform-box: fill-box; transform-origin: center; }
.fan.go { animation: spin .5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fade { opacity: 0; transition: opacity .7s; }
.fade.on { opacity: 1; }
.level-fill { transition: height 1.2s var(--ease), y 1.2s var(--ease), fill .4s; }
.door { transform-box: fill-box; transform-origin: left; transition: transform .6s var(--ease); }
.door.open { transform: skewY(-12deg) scaleX(.45); }
.led { fill: var(--ok); transition: fill .3s; } .led.off { fill: var(--emg); }
.co2 circle { fill: rgba(250, 204, 21, .45); animation: puff 2.2s ease-out infinite; }
.paused #map *, .paused .live i { animation-play-state: paused !important; }

/* ------------------------------------------------------------------ light sections */
.sec { padding: 72px 0; }
.sec-head { max-width: 640px; margin-bottom: 30px; }
.eyebrow { font: 600 11px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.sec h2 { margin: 12px 0 8px; font-size: clamp(21px, .5vw + 17px, 25px); }
.sec-head p:last-child { color: var(--slate); text-wrap: pretty; }
.group { display: flex; align-items: center; gap: 14px; margin: 26px 0 14px; font: 600 11px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.group::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sol-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sol-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sol { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto 1fr auto; column-gap: 14px; text-align: left;
  padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: #fff; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.sol:hover { transform: translateY(-3px); border-color: #C6D6E6; box-shadow: 0 18px 36px -24px rgba(11, 37, 64, .45); }
.sol svg { grid-row: 1 / span 2; width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: var(--mist); fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sol-n { position: absolute; right: 14px; top: 12px; font: 600 10.5px/1 var(--head); letter-spacing: .08em; color: #B4C0CD; }
.sol-t { padding-right: 22px; font: 650 14px/1.35 var(--head); color: var(--navy); }
.sol-d { margin-top: 6px; font-size: 13px; line-height: 1.55; color: var(--slate); }
.sol-w { grid-column: 2; align-self: end; margin-top: 10px; font-size: 11.5px; color: var(--slate); display: flex; align-items: center; gap: 6px; }
.sol-w::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

.sec-dark { background: var(--navy); color: rgba(255, 255, 255, .68); }
.sec-dark h2, .sec-dark h3 { color: #fff; }
.sec-dark .sec-head p:last-child { color: rgba(255, 255, 255, .6); }
.arch { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.arch li { position: relative; display: flex; flex-direction: column; padding: 18px 16px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.arch li:not(:last-child)::after { content: ""; position: absolute; right: -22px; top: 37px; width: 22px; height: 2px; background: repeating-linear-gradient(90deg, rgba(56, 189, 248, .7) 0 5px, transparent 5px 9px); background-size: 18px 2px; animation: dash 1s linear infinite; }
@keyframes dash { to { background-position: 18px 0; } }
.arch svg { width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: rgba(14, 165, 233, .12); fill: none; stroke: #7DD3FC; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.arch h3 { margin: 14px 0 6px; font-size: 14.5px; }
.arch p { flex: 1; font-size: 13px; line-height: 1.55; }
.arch span { margin-top: 12px; font: 600 11px/1.3 var(--head); color: rgba(255, 255, 255, .45); }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 34px; border-top: 1px solid rgba(255, 255, 255, .1); }
.principles div { padding: 20px 22px 4px 0; }
.principles h3 { font-size: 14.5px; }
.principles h3::before { content: ""; display: block; width: 26px; height: 2px; margin: -21px 0 19px; background: var(--orange); }
.principles p { margin-top: 6px; font-size: 13.5px; line-height: 1.6; }
.levels { margin-top: 34px; }
.levels h3 { margin-bottom: 12px; font-size: 14.5px; }
.levels ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.levels li { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-top: 3px solid var(--ok); }
.levels .lv1 { border-top-color: var(--warn); } .levels .lv2 { border-top-color: var(--crit); } .levels .lv3 { border-top-color: var(--emg); }
.levels b { display: block; font: 650 13px/1.3 var(--head); color: #fff; }
.levels span { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.45; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 16px; right: calc(25% - 16px); top: 16px; height: 2px; background: var(--line); }
.steps li { position: relative; padding-right: 26px; }
.steps span { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--line); font: 650 13px/1 var(--head); color: var(--navy); }
.steps li:first-child span { background: var(--navy); color: #fff; border-color: var(--navy); }
.steps h3 { margin-top: 18px; font-size: 14.5px; }
.steps p { margin-top: 6px; font-size: 13.5px; line-height: 1.6; color: var(--slate); }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 44px; padding: 22px 24px; border-radius: 16px; background: var(--mist); }
.cta h3 { font-size: 15.5px; }
.cta p { margin-top: 4px; color: var(--slate); }
.cta p a:hover { color: var(--orange); }
.btn { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 10px; background: var(--orange); color: #fff; font: 600 13.5px/1 var(--head); transition: background-color .2s, transform .25s var(--ease); }
.btn:hover { background: #DE5B0E; transform: translateY(-1px); }
.foot { padding: 30px 0; background: var(--navy-950); color: rgba(255, 255, 255, .5); font-size: 12.5px; }
.foot .wrap { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.foot img { height: 20px; width: auto; }
.foot p { flex: 1; min-width: 260px; }
.foot a:hover { color: #fff; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:last-child { grid-column: 1 / -1; }
  .phone { min-height: 0; }
  .sol-grid, .sol-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arch { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .arch li::after { display: none; }
}
@media (max-width: 900px) {
  .top-nav { display: none; }
  .top-back { margin-left: auto; }
  .intro-stats { grid-template-columns: repeat(2, auto); row-gap: 12px; }
  .intro-stats li:nth-child(3) { border-left: 0; padding-left: 0; }
  .steps { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .steps::before { display: none; }
  .levels ul { grid-template-columns: 1fr 1fr; }
  .principles { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 14px; }
  .top-client { height: 30px; }
  .top-brand img { height: 20px; }
  .top-back span { display: none; }
  .top-back { width: 34px; padding: 0; justify-content: center; }
  .intro-stats { width: 100%; grid-template-columns: 1fr 1fr; }
  .intro-stats span { white-space: normal; }
  .panel { border-radius: 14px; }
  .panel-head { padding: 12px; }
  .kpis { margin-left: 0; order: 3; width: 100%; }
  .controls { margin-left: auto; }
  .chips { padding: 10px 12px; }
  .stepper { padding: 10px 12px 14px; }
  .stepper li span { display: none; }
  .cards { grid-template-columns: 1fr; }
  .sol-grid, .sol-grid-4, .arch, .steps, .levels ul { grid-template-columns: 1fr; }
  .sec { padding: 52px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
