/* Softineo: „Kontrola ruchu kołowego” (STCS). Tylko to, czego nie ma w softineo.css:
   arkusz z jedną wizytą (plan przypięty, ciężarówka jedzie z przewijaniem), legenda funkcji,
   szczegóły A–F (mini-sceny), łącza, reguły jako romb decyzji STCS, symulacja, mapa systemu,
   wdrożenie, pytania, wycena. Skrypt: js/kontrola-ruchu.js na silniku js/stcs-core.js.
   Uwaga: fill/stroke/opacity elementów sterowanych skryptem są w atrybutach SVG, nie w CSS
   (CSS nadpisałby atrybuty ustawiane przez animację). */

/* ---------- bieżąca strona w menu i stopce (bez linku) ---------- */
.site-footer .foot-here { font-weight: 700; }
/* strona ma własną wskazówkę przewijania na arkuszu */
.scroll-hint { display: none; }

/* ==========================================================================
   ARKUSZ: jedna wizyta. Plan (.st-sticky) i tabliczka (.st-tb) są przypięte obok siebie
   i razem tworzą jeden arkusz; kroki (.st-steps) pod spodem dają tylko długość przewijania.
   ========================================================================== */
.st { margin: 12px var(--g) 0; position: relative; }
.st-grid {
  --st-h: clamp(600px, calc(100svh - var(--head-h) - 24px), 1060px);
  --st-top: calc(var(--head-h) + 12px);
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(380px, 29vw, 540px);
}
.st-sticky, .st-tb {
  grid-row: 1; align-self: start; position: sticky; top: var(--st-top); height: var(--st-h); z-index: 2;
  border: 1.5px solid var(--ink); background: rgba(237, 241, 244, .55);
}
.st-sticky { grid-column: 1; border-right: 0; padding: 24px 0 24px 24px; display: flex; flex-direction: column; min-width: 0; }
.st-sticky::before { content: ""; position: absolute; inset: 23px 0 23px 23px; border: 1px solid var(--line); border-right: 0; pointer-events: none; }
.st-sticky .refs-top { left: 24px; right: 0; grid-template-columns: repeat(4, 1fr); }
.st-tb { grid-column: 2; border-left: 0; padding: 24px 24px 24px 0; }
.st-tb::before { content: ""; position: absolute; inset: 23px 23px 23px 0; border: 1px solid var(--line); border-left: 0; pointer-events: none; }
.st-tb .refs-top { left: 0; right: 24px; grid-template-columns: repeat(2, 1fr); }
.st-tb .refs-top span:first-child { border-left: 1px solid var(--line); }
.st-tb .tb { height: 100%; position: relative; z-index: 1; }
.st-tb .tb h1 { font-size: clamp(32px, 2.6vw, 48px); margin-bottom: .45em; }
.st-tb .tb-lead { max-width: 44ch; font-size: clamp(15px, 1vw, 18px); line-height: 1.5; }
.st-tb .stamp .st-caption { font-weight: 500; }

/* plan */
.st-scene { order: 1; position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; z-index: 1; }
.st-plan { flex: 1 1 auto; min-height: 0; width: 100%; height: 100%; display: block; overflow: hidden; }
/* droga biegnie do krawędzi ramki, także gdy rysunek jest węższy niż pole planu */
#st-svg { overflow: visible; }
.st-plan text { font-family: var(--tech); }
.st-lbl { font-size: 19px; fill: var(--ink); letter-spacing: .02em; }
.st-lbl-s { font-size: 16px; fill: var(--ink-2); letter-spacing: .02em; }
.st-soft { fill: var(--ink-2); }
#st-erp .st-lbl-s { fill: var(--ink); font-size: 16px; }
/* bieżący punkt wizyty: zakreślacz pod opisem (jak bieżąca adnotacja na planie głównym) */
.st-dev.is-hot .st-lbl { filter: url(#st-hl); }
.st-road { fill: none; stroke: var(--ink-2); stroke-width: 42; }
.st-road-in { fill: none; stroke: #d5dce3; stroke-width: 39.5; }
.st-route { fill: none; stroke: var(--y); stroke-width: 10; opacity: .95; }
.st-housing, .st-reader { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.4; }
.st-lamp { stroke: var(--ink); stroke-width: 1.2; }
.st-pole { stroke: var(--ink); stroke-width: 2; }
.st-lens { fill: var(--ink); }
.st-screen { fill: var(--ink-2); }
.st-tagbox { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.5; }
.st-plate { font-size: 16px; fill: var(--ink); letter-spacing: .04em; }
.st-plate-s { font-size: 13px; }
.st-dispbox { fill: var(--ink); stroke: var(--ink); }
.st-disp { font-size: 17px; fill: var(--y); letter-spacing: .04em; }
.st-ledtxt { font-size: 15px; fill: var(--y); letter-spacing: .06em; }
.st-cardr { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.3; }
.st-chip { fill: var(--y); stroke: var(--ink); stroke-width: .8; }
.st-loader .ld-b { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.5; }
.st-loader .ld-c { fill: var(--y); stroke: var(--ink); stroke-width: 1; }
.st-loader .ld-a { fill: var(--ink-2); }
.st-loader .ld-k { fill: url(#h-gravel); stroke: var(--ink); stroke-width: 1; }
.st-doc-p { fill: #f6f7f5; stroke: var(--ink); stroke-width: 1.5; filter: drop-shadow(0 8px 10px rgba(27, 33, 39, .25)); }
.st-doc-dia { fill: var(--y); stroke: var(--ink); stroke-width: 1.3; }
.st-doc-h { font-size: 19px; fill: var(--ink); }
.st-doc-r { font-size: 16px; fill: var(--ink-2); }
.st-doc-b { font-size: 19px; fill: var(--ink); }
.st-doc-l { stroke: var(--line); stroke-dasharray: 4 4; }
.st-doc-l2 { stroke: var(--ink); stroke-width: 1.2; }
.st-plan .sf-cargo { fill: #b98a62; }

.st-badge { position: absolute; top: 10px; left: 10px; padding: 5px 10px 4px; font: 14px/1 var(--tech); letter-spacing: .03em; color: var(--ink); background: var(--paper-hi); border: 1px solid var(--ink); }
/* postęp wizyty: podziałka na 8 kroków, żółty odcinek to przejechana trasa */
.st-progress { flex: none; position: relative; height: 8px; margin-right: 24px; background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 12.5%) 0 0 / 100% 100%, var(--paper-lo); border-bottom: 1px solid var(--ink); }
.st-progress span { display: block; height: 100%; width: 0; background: var(--y); box-shadow: inset 0 -1px 0 var(--y-deep); }

/* podpis bieżącego kroku (wstawia skrypt jako .st-mcap) */
.st-mcap {
  order: 2; flex: none; position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(20px, 2.6vw, 48px); align-items: start;
  padding: 16px 28px 26px 4px;
}
.st-mcap { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; }
.st-mcap > * { grid-column: 2; }
.st-mcap > .st-num { grid-column: 1; grid-row: 1 / span 2; margin: 2px 0 0; }
.st-mcap > :is(.st-card, .st-checks, .st-ledmock, .st-timeline) { grid-column: 3; grid-row: 1 / span 3; margin-top: 4px; margin-left: clamp(4px, 1.4vw, 32px); }
.st-mcap.is-new > :nth-child(n+4) { animation-delay: .06s; }

/* treść kroku (w podpisie i bez JS w liście kroków) */
.st-mcap h3, .st-step h3 { font-size: clamp(22px, 1.7vw, 30px); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 10px; }
.st-mcap p, .st-step p { color: var(--ink-2); font-size: clamp(15px, 1vw, 17px); line-height: 1.5; margin: 0; max-width: 58ch; }

/* wskazówka przewijania (wstawia skrypt): tabliczka na dolnej krawędzi arkusza */
.st-hint {
  position: absolute; left: 50%; bottom: 6px; z-index: 3; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 8px 14px 7px; font: 14px/1 var(--tech); color: var(--ink);
  background: var(--paper-hi); border: 1.5px solid var(--ink);
  transition: opacity .35s var(--ease-out), visibility 0s;
}
.st-hint i { display: none; }
.st-hint::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--y); border: 1px solid var(--ink); }
.st-hint::after { content: ""; width: 10px; height: 16px; background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M5 0v14M1 10l4 4 4-4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M5 0v14M1 10l4 4 4-4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.st-hint.is-hidden { opacity: 0; visibility: hidden; transition: opacity .35s var(--ease-out), visibility 0s .35s; }

/* kroki: bez JS zwykła lista pod arkuszem; ze skryptem niewidoczna długość przewijania pod arkuszem */
.st-steps { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 36px 28px; padding: 48px 0 0; }
.st-grid:has(.st-mcap) .st-steps { grid-row: 1; display: block; padding: 0; opacity: 0; pointer-events: none; user-select: none; }
.st-grid:has(.st-mcap) .st-step { height: 52vh; overflow: hidden; }
.st-step > * + * { margin-top: 12px; }

/* ==========================================================================
   CO ROBI SYSTEM: legenda funkcji
   ========================================================================== */
.sf-note { display: flex; align-items: center; gap: 12px; margin: 26px 0 0; font-size: clamp(16px, 1.1vw, 18px); color: var(--ink); font-weight: 500; }
.sf-note .rev-tri { flex: none; margin: 0; }
.sf-note .rev-tri path { fill: var(--y); }

/* ==========================================================================
   PRZYKŁADOWE UKŁADY: szczegóły A–F
   ========================================================================== */
.sf-configs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 32px); margin-top: clamp(28px, 3.5vw, 48px); }
.sf-config { display: flex; flex-direction: column; border: 1.5px solid var(--ink); background: var(--paper-hi); }
.dt-code { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px; font: 15px/1 var(--tech); letter-spacing: .03em; color: var(--ink-2); border-bottom: 1px solid var(--ink); }
.dt-mark { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); font-size: 16px; color: var(--ink); background: var(--paper); }
.sf-config-scene { border-bottom: 1px solid var(--ink); background: rgba(227, 232, 237, .6); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 16px 16px; }
.dt-art { display: block; width: 100%; height: auto; aspect-ratio: 320 / 170; overflow: hidden; }
.dt-art text { font-family: var(--tech); }
.dt-art .site { fill: rgba(237, 241, 244, .8); }
.dt-art .fence { stroke-width: 1.1; stroke-dasharray: 9 3 2 3; }
.dt-road { fill: none; stroke: var(--ink-2); stroke-width: 34; }
.dt-road-in { fill: none; stroke: #d5dce3; stroke-width: 31.5; }
.dt-road.dt-road-s { stroke-width: 26; }
.dt-road-in.dt-road-s { stroke-width: 23.5; }
.dt-route { fill: none; stroke: var(--y); stroke-width: 6; stroke-linecap: round; opacity: .95; }
.dt-boom { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.dt-art .post { stroke-width: 1.3; }
.dt-art .cam rect { stroke-width: 1.2; }
.dt-art .cable { stroke-width: 1; }
.dt-housing, .dt-kiosk, .dt-box, .dt-docp { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.3; }
.dt-lamp { stroke: var(--ink); stroke-width: 1; }
.dt-screen { fill: var(--ink-2); }
.dt-paper { fill: #fff; stroke: var(--ink); stroke-width: .8; }
.dt-disp-b { fill: var(--ink); }
.dt-disp { font-size: 14px; fill: var(--y); letter-spacing: .04em; }
.dt-disp-s { font-size: 11px; }
.dt-plate { font-size: 12px; fill: var(--ink); letter-spacing: .04em; }
.dt-l { font-size: 11.5px; fill: var(--ink-2); letter-spacing: .02em; }
.dt-l-b { fill: var(--ink); font-size: 12px; }
.dt-l-xs { font-size: 8.5px; }
.dt-warn { fill: var(--err); font-size: 9px; }
.dt-big { font-size: 17px; fill: var(--ink); }
.dt-mid { font-size: 13px; fill: var(--ink-2); }
.dt-dia { fill: var(--y); stroke: var(--ink); stroke-width: 1; }
.dt-silo path, .dt-silo rect { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.2; }
.dt-silo rect:first-of-type { fill: url(#h-concrete); }
.dt-leg { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.dt-mat { fill: var(--ink-2); }
.dt-walk { fill: var(--paper-hi); stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 3; }
.dt-turn { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.4; }
.dt-rot line { stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.dt-links line { stroke: var(--line); stroke-width: 1.4; stroke-dasharray: 4 4; }
#m5-layer circle { stroke: var(--paper-hi); stroke-width: 1.4; }
.dt-art .sf-cargo { fill: #b98a62; }
.sf-config-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.sf-config-body h3 { font-size: clamp(21px, 1.5vw, 26px); margin-bottom: 8px; }
.sf-config-body p { color: var(--ink-2); max-width: 52ch; }
.sf-for { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.sf-for b { display: block; font: 12px/1.2 var(--tech); letter-spacing: .05em; color: var(--ink); margin-bottom: 4px; font-weight: 400; }

/* ==========================================================================
   INTEGRACJE: łącza do aplikacji STCS
   ========================================================================== */
.int { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 80px); align-items: start; }
.int h2 { margin-bottom: 22px; }
.int-bus { display: grid; grid-template-columns: 72px minmax(0, 1fr); border-top: 1.5px solid var(--ink); }
.int-hub { position: relative; background: var(--ink); color: var(--y); display: flex; align-items: center; justify-content: center; }
.int-hub span { writing-mode: vertical-rl; transform: rotate(180deg); font: 16px/1 var(--tech); letter-spacing: .12em; }
.int-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.int-list .feature { position: relative; padding: 20px 20px 22px 44px; border-bottom: 1px solid var(--line-2); }
.int-list .feature:nth-child(even) { border-left: 1px solid var(--line-2); }
/* łącze: kreskowany kabel od szyny STCS do zacisku */
.int-list .feature::before { content: ""; position: absolute; left: 0; top: 30px; width: 24px; border-top: 1.4px dashed var(--line); }
.int-list .feature::after { content: ""; position: absolute; left: 22px; top: 25px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper-hi); border: 1.5px solid var(--ink); }
.int-list .feature:nth-child(even)::before { left: 0; }
.int-list h3 { font-size: clamp(19px, 1.35vw, 23px); margin-bottom: 6px; }
.int-list p { margin: 0; color: var(--ink-2); max-width: 44ch; }

/* ==========================================================================
   REGUŁY: zdarzenie → romb decyzji STCS → polecenie
   ========================================================================== */
.rf-sheet { margin-top: clamp(28px, 3.5vw, 48px); border: 1.5px solid var(--ink); background: rgba(237, 241, 244, .7); padding: clamp(18px, 2.4vw, 36px); }
.rf-key { display: flex; flex-wrap: wrap; gap: 8px 26px; font: 14px/1.3 var(--tech); color: var(--ink-2); margin-bottom: clamp(20px, 2.4vw, 32px); }
.rf-key > span { display: inline-flex; align-items: center; gap: 8px; }
.rf-key-c { display: inline-block; width: 30px; height: 2.4px; background: repeating-linear-gradient(90deg, var(--y-deep) 0 9px, transparent 9px 14px); }
.sf-rule-row { display: grid; grid-template-columns: minmax(0, 1fr) clamp(56px, 6vw, 96px) minmax(0, 1.2fr) clamp(56px, 6vw, 96px) minmax(0, 1fr); align-items: stretch; }
.sf-rule-card { position: relative; min-height: 168px; padding: 16px 18px 20px; background: var(--paper-hi); border: 1.5px dashed var(--line); transition: border-color .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.sf-rule-card.is-hot { border: 1.5px solid var(--ink); }
.sf-rule-card small { display: block; font: 13px/1 var(--tech); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; }
.sf-rule-text { font-size: clamp(16px, 1.15vw, 19px); line-height: 1.45; color: var(--ink); transition: opacity .35s var(--ease-out); }
.sf-rule-text b { font-weight: 700; background: linear-gradient(transparent 58%, rgba(255, 182, 0, .55) 58%, rgba(255, 182, 0, .55) 92%, transparent 92%); }
.sf-rule-text.is-fading { opacity: 0; }
/* warunek: romb decyzji STCS na wejściu, odpowiedź na wyjściu */
.rf-dec { padding-left: 76px; }
.rf-dia { position: absolute; left: -2px; top: 50%; width: 56px; height: 56px; margin-top: -28px; overflow: visible; }
.rf-dia path { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.5; transition: fill .4s var(--ease-out); }
.rf-dec.is-hot .rf-dia path { fill: var(--y); }
.sf-rule-answer { position: absolute; right: -1.5px; top: 50%; transform: translate(50%, -50%); z-index: 2; min-width: 46px; padding: 5px 8px 4px; text-align: center; font: 14px/1 var(--tech); letter-spacing: .08em; background: var(--paper-hi); border: 1.5px solid var(--ink); opacity: 0; transition: opacity .3s var(--ease-out); }
.sf-rule-answer.is-yes { opacity: 1; background: var(--y); color: var(--ink); }
.sf-rule-answer.is-no { opacity: 1; background: var(--paper-hi); color: var(--err); border-color: var(--err); }
.sf-rule-arrow { position: relative; }
.sf-rule-arrow::before { content: ""; position: absolute; left: 4px; right: 12px; top: 50%; }
.sf-rule-arrow::after { content: ""; position: absolute; right: 2px; top: 50%; width: 12px; height: 12px; margin-top: -6px; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.rf-a-read::before { height: 3px; margin-top: -1.5px; background: radial-gradient(circle, var(--ink) 1.2px, transparent 1.6px) 0 50% / 7px 3px repeat-x; }
.rf-a-read::after { background: var(--ink); }
.rf-a-cmd { }
.rf-a-cmd::before { height: 2.4px; margin-top: -1.2px; background: repeating-linear-gradient(90deg, var(--y-deep) 0 9px, transparent 9px 14px); left: 30px; }
.rf-a-cmd::after { background: var(--y-deep); }
.sf-pulse { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin-top: -6px; opacity: 0; }
.rf-a-read .sf-pulse { border-radius: 50%; background: var(--ink); border: 1.5px solid var(--paper-hi); }
.rf-a-cmd .sf-pulse { background: var(--y); border: 1.5px solid var(--ink); transform: rotate(45deg); }
.sf-pulse.is-go { animation: rf-run .7s cubic-bezier(.5, 0, .5, 1) forwards; }
@keyframes rf-run { 0% { left: 0; opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 14px); opacity: 0; } }
.rf-dots-row { display: flex; align-items: center; gap: 14px; margin-top: clamp(20px, 2.4vw, 30px); padding-top: 16px; border-top: 1px solid var(--line-2); }
.rf-dots-l { font: 14px/1 var(--tech); color: var(--ink-2); letter-spacing: .04em; }
.sf-rule-dots { display: flex; gap: 6px; counter-reset: rd; }
.sf-rule-dots button { counter-increment: rd; position: relative; width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; font: 14px/1 var(--tech); color: var(--ink); }
.sf-rule-dots button::before { content: ""; position: absolute; inset: 9px; border: 1.5px solid var(--ink); background: var(--paper-hi); transform: rotate(45deg); transition: background-color .25s var(--ease-out); }
.sf-rule-dots button::after { content: counter(rd); position: relative; }
.sf-rule-dots button:hover::before { background: #fff; }
.sf-rule-dots button.is-on::before { background: var(--y); }
.sf-perm { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(18px, 2.4vw, 40px); margin-top: clamp(28px, 3vw, 44px); }
.sf-perm div { padding-top: 14px; border-top: 1.5px solid var(--ink); color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.sf-perm b { display: block; color: var(--ink); font-size: clamp(18px, 1.25vw, 21px); line-height: 1.2; margin-bottom: 6px; }

/* ==========================================================================
   SYMULACJA: spis ośmiu scenariuszy (numery jak na szczególe symulacji na stronie głównej)
   ========================================================================== */
.sim { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 80px); align-items: start; }
.sim h2 { margin-bottom: 22px; }
.sim .sec-p { margin-bottom: 28px; }
.sf-simlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(18px, 2.4vw, 40px); counter-reset: sit; border-top: 1.5px solid var(--ink); }
.sf-simlist a { counter-increment: sit; display: flex; align-items: center; gap: 14px; min-height: 62px; padding: 10px 4px; border-bottom: 1px solid var(--line-2); text-decoration: none; font-weight: 600; font-size: 17px; line-height: 1.25; transition: background-color .2s var(--ease-out); }
.sf-simlist a::before { content: counter(sit); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--y); font: 14px/28px var(--tech); text-align: center; }
.sf-simlist a span { flex: 1; }
.sf-simlist a::after { content: ""; flex: none; width: 18px; height: 10px; background: currentColor; transition: transform .3s var(--ease-out);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.sf-simlist a:hover { background: rgba(255, 182, 0, .22); }
.sf-simlist a:hover::after { transform: translateX(3px); }

/* ==========================================================================
   JEDEN SYSTEM: mapa rozwiązań (bieżąca strona bez linku)
   ========================================================================== */
.system-map { list-style: none; margin: clamp(28px, 3.5vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1.5px solid var(--ink); background: var(--paper-hi); }
.system-map li + li { border-left: 1px solid var(--ink); }
.system-map a, .system-map .system-here { display: block; height: 100%; padding: 18px 20px 22px; text-decoration: none; position: relative; }
.system-map a { transition: background-color .2s var(--ease-out); }
.system-map a:hover { background: #fff; }
.system-map a::after { content: ""; position: absolute; right: 18px; top: 22px; width: 16px; height: 10px; background: var(--ink); transition: transform .3s var(--ease-out);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.system-map a:hover::after { transform: translateX(3px); }
.system-map b { display: block; font-size: clamp(18px, 1.3vw, 22px); line-height: 1.2; margin-bottom: 6px; padding-right: 26px; }
.system-map span { display: block; color: var(--ink-2); font-size: 15px; }
.system-map .system-here { box-shadow: inset 0 6px 0 var(--y); background: var(--paper); }
.system-map .system-here::after { content: "ta strona"; display: block; margin-top: 12px; font: 13px/1 var(--tech); letter-spacing: .05em; color: var(--ink); }

/* ==========================================================================
   WDROŻENIE: cztery kroki na jednej trasie
   ========================================================================== */
.sf-steps { list-style: none; margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: rs; }
.sf-step { counter-increment: rs; position: relative; padding: 56px clamp(16px, 2vw, 32px) 0 0; }
.sf-step::before { content: counter(rs); position: absolute; left: 0; top: 0; z-index: 1; width: 34px; height: 34px; border-radius: 50%; background: var(--paper-hi); border: 1.5px solid var(--ink); font: 16px/31px var(--tech); text-align: center; }
.sf-step::after { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 6px; background: var(--y); }
.sf-step:last-child::after { right: auto; width: 34px; }
.sf-step h3 { font-size: clamp(20px, 1.5vw, 26px); margin-bottom: 8px; }
.sf-step p { color: var(--ink-2); margin: 0; max-width: 40ch; }

/* ==========================================================================
   PYTANIA
   ========================================================================== */
.faq-sec { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 80px); align-items: start; }
.faq { border-top: 1.5px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 4px; font-weight: 700; font-size: clamp(18px, 1.3vw, 21px); line-height: 1.3; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: linear-gradient(transparent 70%, rgba(255, 182, 0, .35) 70%) no-repeat; }
.faq-item summary .chev { flex: none; width: 14px; height: 9px; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item p { margin: 0 4px 22px; color: var(--ink-2); max-width: 70ch; }

/* ==========================================================================
   WYCENA: zgłoszenie zmiany na planie
   ========================================================================== */
.cta { padding-bottom: clamp(72px, 8vw, 130px); }
.cta-box { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 72px); padding: clamp(28px, 4vw, 64px) clamp(20px, 3vw, 56px); border: 1.5px solid var(--ink); background: var(--paper-hi); }
.cta h2 { font-size: clamp(30px, 3.2vw, 56px); margin-bottom: 20px; }
.cta-text > p:last-child { color: var(--ink-2); font-size: clamp(17px, 1.2vw, 19px); max-width: 60ch; margin: 0; }
.cta-list { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1.5px solid var(--ink); }
.cta-list li { position: relative; padding: 11px 0 11px 32px; border-bottom: 1px solid var(--line-2); font-weight: 600; }
.cta-list li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 12px; height: 12px; background: var(--y); border: 1.5px solid var(--ink); transform: rotate(45deg); }
.sf-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* ==========================================================================
   SZEROKOŚCI
   ========================================================================== */
@media (max-width: 1180px) {
  .sf-configs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-perm { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px clamp(18px, 2.4vw, 40px); }
  .st-grid { grid-template-columns: minmax(0, 1fr) 360px; }
}
@media (max-width: 1000px) {
  .st-grid { grid-template-columns: minmax(0, 1fr); }
  .st-tb { grid-row: 1; grid-column: 1; position: relative; top: auto; height: auto; padding: 24px; border-left: 1.5px solid var(--ink); z-index: 1; }
  .st-tb::before { inset: 23px; border-left: 1px solid var(--line); }
  .st-tb .refs-top { left: 24px; }
  .st-tb .refs-top span:first-child { border-left: 0; }
  .st-tb .tb { display: grid; height: auto; border-left: 0; }
  .st-tb .tb-head { order: 0; box-shadow: none; border-bottom: 0; background: none; }
  .st-tb .stamp { margin-top: 0; }
  .st-tb .tb-lead { max-width: 60ch; }
  .st-sticky { grid-row: 2; grid-column: 1; top: calc(var(--head-h) + 6px); height: auto; margin-top: 10px; padding: 24px; border-right: 1.5px solid var(--ink); background: rgba(237, 241, 244, .96); }
  .st-sticky::before { inset: 23px; border-right: 1px solid var(--line); }
  .st-sticky .refs-top { right: 24px; }
  .st-scene { flex: none; }
  .st-plan { flex: none; height: auto; }
  .st-progress { margin-right: 0; }
  .st-steps { grid-row: 3; }
  .st-grid:has(.st-mcap) .st-steps { grid-row: 2; }
  .st-grid:has(.st-mcap) .st-step { height: 58vh; }
  .st-mcap { padding: 14px 4px 40px; }
  .int, .sim, .faq-sec, .cta-box { grid-template-columns: 1fr; }
  .sf-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .sf-step:nth-child(2)::after { right: auto; width: 34px; }
  .system-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-map li:nth-child(3) { border-left: 0; }
  .system-map li:nth-child(n+3) { border-top: 1px solid var(--ink); }
}
@media (max-width: 760px) {
  .st-mcap { grid-template-columns: auto minmax(0, 1fr); }
  .st-mcap > :is(.st-card, .st-checks, .st-ledmock, .st-timeline) { grid-column: 1 / -1; grid-row: auto; margin: 12px 0 0; }
  .st-badge { position: static; align-self: flex-start; margin-bottom: 8px; order: -1; }
  .sf-rule-row { grid-template-columns: minmax(0, 1fr); }
  .sf-rule-card { min-height: 0; }
  .sf-rule-arrow { height: 64px; }
  .sf-rule-arrow::before { left: 50%; right: auto; top: 4px; bottom: 12px; width: 3px; height: auto; margin: 0 0 0 -1.5px; }
  .rf-a-read::before { background: radial-gradient(circle, var(--ink) 1.2px, transparent 1.6px) 50% 0 / 3px 7px repeat-y; }
  .rf-a-cmd::before { top: 4px; width: 2.4px; margin-left: -1.2px; background: repeating-linear-gradient(180deg, var(--y-deep) 0 9px, transparent 9px 14px); }
  .sf-rule-arrow::after { left: 50%; right: auto; top: auto; bottom: 2px; margin: 0 0 0 -6px; clip-path: polygon(0 0, 100% 0, 50% 100%); }
  .sf-pulse { left: 50%; top: 0; margin: 0 0 0 -6px; }
  .sf-pulse.is-go { animation-name: rf-down; }
  @keyframes rf-down { 0% { top: 0; opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 14px); opacity: 0; } }
  .rf-dec { padding-left: 18px; padding-top: 40px; }
  .rf-dia { left: 50%; top: -28px; margin: 0 0 0 -28px; }
  .rf-dec small { text-align: center; }
  .sf-rule-answer { right: 50%; top: auto; bottom: -1.5px; transform: translate(50%, 50%); }
  .sf-configs { grid-template-columns: minmax(0, 1fr); }
  .sf-simlist { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .st { margin-top: 8px; }
  .st-tb, .st-sticky { padding: 14px; }
  .st-tb::before, .st-sticky::before { inset: 13px; }
  .st-tb .refs-top { display: none; }
  .st-sticky .refs-top { left: 14px; right: 14px; }
  .st-tb .tb-head { padding: 20px 16px 18px; }
  .st-badge { top: 6px; left: 6px; font-size: 12px; padding: 4px 7px 3px; }
  .st-hint { font-size: 13px; padding: 7px 10px 6px; bottom: 2px; }
  .st-mcap h3 { font-size: 20px; margin-bottom: 6px; }
  .st-mcap p { font-size: 15px; }
  .int-bus { grid-template-columns: 40px minmax(0, 1fr); }
  .int-hub span { font-size: 13px; }
  .int-list { grid-template-columns: minmax(0, 1fr); }
  .int-list .feature:nth-child(even) { border-left: 0; }
  .sf-perm { grid-template-columns: minmax(0, 1fr); }
  .sf-steps { grid-template-columns: minmax(0, 1fr); }
  .sf-step { padding: 0 0 0 56px; min-height: 34px; }
  .sf-step::after, .sf-step:nth-child(2)::after { left: 14px; right: auto; top: 0; bottom: -36px; width: 6px; height: auto; }
  .sf-step:last-child::after { display: none; }
  .system-map { grid-template-columns: minmax(0, 1fr); }
  .system-map li + li { border-left: 0; border-top: 1px solid var(--ink); }
  .cta-box { padding: 28px 16px; }
  .sf-cta-actions .btn { width: 100%; }
}
/* niski ekran telefonu: podpis kroku bez tabelki, żeby arkusz zmieścił się w oknie */
@media (max-width: 1000px) and (max-height: 760px) {
  .st-mcap > :is(.st-card, .st-checks, .st-ledmock, .st-timeline) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .st-mcap.is-new > * { animation: none; }
  .sf-pulse.is-go { animation: none; }
}

/* ==========================================================================
   CO ROBI SYSTEM: plan z odnośnikami 1–9 i zestawienie funkcji
   ========================================================================== */
.fn-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3vw, 56px); align-items: start; margin-top: clamp(28px, 3.5vw, 48px); }
.fn-plan { margin: 0; position: sticky; top: calc(var(--head-h) + 24px); border: 1.5px solid var(--ink); background: rgba(237, 241, 244, .7); padding: 8px; }
.fn-art { display: block; width: 100%; height: auto; }
.fn-art text { font-family: var(--tech); }
.fn-art .site { fill: rgba(237, 241, 244, .8); }
.fn-dia { fill: var(--y); stroke: var(--ink); stroke-width: 1.4; }
.fn-led { fill: var(--ink); }
.fn-led-t { stroke: var(--y); stroke-width: 3; }
.fn-post { stroke: var(--ink); stroke-width: 1.4; }
.fn-warn { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.fn-warn-m { stroke: var(--ink); stroke-width: 2; }
.fn-doc { fill: #f6f7f5; stroke: var(--ink); stroke-width: 1.3; }
.fn-doc-l { fill: none; stroke: var(--ink-2); stroke-width: 1; }
.fn-rot { stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.fn-t { font-size: 14px; fill: var(--ink); }
.fm-l { fill: none; stroke: var(--ink); stroke-width: 1.1; }
.fm circle { fill: var(--ink); stroke: var(--ink); stroke-width: 1.4; transition: fill .25s var(--ease-out); }
.fm text { font-family: var(--tech); font-size: 15px; fill: var(--y); text-anchor: middle; }
.fn-list { list-style: none; margin: 0; padding: 0; counter-reset: fn; border: 1.5px solid var(--ink); background: var(--paper-hi); display: block; }
.sf-func { counter-increment: fn; display: grid; grid-template-columns: 52px minmax(0, 2fr) minmax(0, 3fr); gap: 0; padding: 0; border: 0; border-top: 1px solid var(--ink); align-items: stretch; transition: background-color .2s var(--ease-out); }
.sf-func:first-child { border-top: 0; }
.sf-func::before { content: counter(fn); display: flex; align-items: flex-start; justify-content: center; padding-top: 14px; font: 15px/1 var(--tech); border-right: 1px solid var(--ink); }
.sf-func::before { background: none; }
.sf-func h3 { font-size: clamp(17px, 1.2vw, 20px); line-height: 1.25; margin: 0; padding: 13px 14px 14px; border-right: 1px solid var(--line-2); }
.sf-func p { margin: 0; padding: 13px 16px 14px; font-size: 15px; line-height: 1.45; color: var(--ink-2); max-width: none; }
.sf-func:hover { background: #fff; }
.sf-func:hover::before { background: var(--y); }
.fn:has(.sf-func:nth-child(1):hover) .fm-1 circle { fill: var(--y); } .fn:has(.sf-func:nth-child(1):hover) .fm-1 text { fill: var(--ink); }
.fn:has(.sf-func:nth-child(2):hover) .fm-2 circle { fill: var(--y); } .fn:has(.sf-func:nth-child(2):hover) .fm-2 text { fill: var(--ink); }
.fn:has(.sf-func:nth-child(3):hover) .fm-3 circle { fill: var(--y); } .fn:has(.sf-func:nth-child(3):hover) .fm-3 text { fill: var(--ink); }
.fn:has(.sf-func:nth-child(4):hover) .fm-4 circle { fill: var(--y); } .fn:has(.sf-func:nth-child(4):hover) .fm-4 text { fill: var(--ink); }
.fn:has(.sf-func:nth-child(5):hover) .fm-5 circle { fill: var(--y); } .fn:has(.sf-func:nth-child(5):hover) .fm-5 text { fill: var(--ink); }
.fn:has(.sf-func:nth-child(6):hover) .fm-6 circle { fill: var(--y); } .fn:has(.sf-func:nth-child(6):hover) .fm-6 text { fill: var(--ink); }
.fn:has(.sf-func:nth-child(7):hover) .fm-7 circle { fill: var(--y); } .fn:has(.sf-func:nth-child(7):hover) .fm-7 text { fill: var(--ink); }
.fn:has(.sf-func:nth-child(8):hover) .fm-8 circle { fill: var(--y); } .fn:has(.sf-func:nth-child(8):hover) .fm-8 text { fill: var(--ink); }
.fn:has(.sf-func:nth-child(9):hover) .fm-9 circle { fill: var(--y); } .fn:has(.sf-func:nth-child(9):hover) .fm-9 text { fill: var(--ink); }
@media (max-width: 1000px) {
  .fn-body { grid-template-columns: minmax(0, 1fr); }
  .fn-plan { position: static; }
}
@media (max-width: 680px) {
  .sf-func { grid-template-columns: 40px minmax(0, 1fr); }
  .sf-func::before { grid-row: 1 / span 2; }
  .sf-func h3 { border-right: 0; padding-bottom: 2px; }
  .sf-func p { grid-column: 2; padding-top: 4px; }
  /* cały plan w ramce: większe opisy, żeby były czytelne w małej skali */
  .st-lbl { font-size: 34px; }
  .st-lbl-s { font-size: 26px; }
  .st-lbl-s.st-soft { font-size: 22px; }
  .st-plan .scalebar text { font-size: 20px; }
  #st-erp .st-lbl-s { font-size: 20px; }
  .st-plate { font-size: 22px; }
  .st-disp { font-size: 24px; }
  .st-mcap { grid-template-columns: auto minmax(0, 1fr); }
  .st-mcap > :is(.st-card, .st-checks, .st-ledmock, .st-timeline) { grid-column: 1 / -1; margin-left: 0; }
  /* wskazówka przewijania pod podpisem, nigdy na treści */
  .st-hint { position: static; transform: none; align-self: center; order: 3; margin-top: 4px; }
  .st-mcap { padding-bottom: 12px; }
}

/* ten sam odbiór: bez systemu i z STCS (przeniesione ze strony głównej; tabela .cmp-t jest w softineo.css) */
.cmp h2 .h-soft { color: var(--ink-2); font-weight: 500; }
.cmp h2 .h-mark { background: linear-gradient(transparent 58%, var(--y) 58%, var(--y) 94%, transparent 94%); padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.cmp-key { display: flex; flex-wrap: wrap; gap: 8px 26px; font: 15px/1.3 var(--tech); color: var(--ink-2); margin-top: 14px; }
.cmp-key > span { display: inline-flex; align-items: center; gap: 8px; }
