/* =========================================================================
   Kurs INF.02 – strona główna. Motyw „serwerownia”: grafit, diody LED,
   kable, terminal. Kolory: zielony = działa, błękit = światłowód/sieć,
   bursztyn = uwaga. Nagłówki czcionką techniczną (JetBrains Mono).
   ========================================================================= */
:root {
  --bg: #080d10;
  --bg2: #0b1317;
  --panel: #0e181d;
  --panel2: #122128;
  --line: rgba(148, 214, 196, .12);
  --line2: rgba(148, 214, 196, .22);
  --text: #e2eeea;
  --muted: #8aa19c;
  --g: #39e58c;
  --g2: #1fbf6c;
  --c: #38c8f0;
  --a: #ffb627;
  --r: #ff5d5d;
  --mono: 'JetBrains Mono', Consolas, monospace;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body.home {
  margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--sans);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
a { color: var(--g); }
code { font-family: var(--mono); font-size: .88em; color: #bff5d6; background: rgba(57, 229, 140, .1); padding: 1px 6px; border-radius: 4px; }
::selection { background: var(--g); color: #04150c; }
.h-wrap { width: min(1180px, 100% - 36px); margin: 0 auto; }
.h-narrow { width: min(820px, 100% - 36px); }

/* ---------- tło: siatka jak płytka PCB + poświata ---------- */
.h-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.h-bg-grid {
  position: absolute; inset: -2px;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(148, 214, 196, .16) 1px, transparent 1.4px),
    linear-gradient(rgba(148, 214, 196, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 214, 196, .04) 1px, transparent 1px);
  background-size: 24px 24px, 96px 96px, 96px 96px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.3) 100%);
}
.h-bg-glow {
  position: absolute; width: 900px; height: 900px; left: 50%; top: -420px; transform: translateX(-30%);
  background: radial-gradient(circle, rgba(57, 229, 140, .16), rgba(56, 200, 240, .07) 40%, transparent 68%);
  animation: glow 14s ease-in-out infinite alternate;
}
@keyframes glow { to { transform: translateX(-60%) translateY(60px) scale(1.1); } }

/* ---------- diody ---------- */
.led { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--g); box-shadow: 0 0 8px var(--g), 0 0 2px #fff inset; flex-shrink: 0; }
.led-a { background: var(--a); box-shadow: 0 0 8px var(--a); }
.led-c { background: var(--c); box-shadow: 0 0 8px var(--c); }
.t-p { color: var(--g); }
.t-ok { color: var(--g); }
.h-cur { display: inline-block; width: .55em; height: 1.05em; background: var(--g); vertical-align: -.15em; margin-left: 3px; animation: cur 1s steps(1) infinite; }
@keyframes cur { 50% { opacity: 0; } }

/* ---------- przyciski ---------- */
.h-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer; border: 0;
  font: 700 16px/1.2 var(--mono); letter-spacing: -.01em; border-radius: 8px; padding: 13px 22px; white-space: nowrap;
  transition: transform .18s, box-shadow .25s, background .25s, color .25s, border-color .25s;
}
.h-btn span { transition: transform .2s; }
.h-btn:hover span { transform: translateX(4px); }
.h-btn-go { background: var(--g); color: #04150c; box-shadow: 0 0 0 1px rgba(57,229,140,.6), 0 10px 30px rgba(57, 229, 140, .25); }
.h-btn-go:hover { background: #5cf3a3; transform: translateY(-2px); box-shadow: 0 0 0 1px #5cf3a3, 0 14px 40px rgba(57, 229, 140, .38); }
.h-btn-line { background: transparent; color: var(--text); border: 1px solid var(--line2); }
.h-btn-line:hover { border-color: var(--c); color: var(--c); transform: translateY(-2px); }
.h-btn-sm { padding: 9px 15px; font-size: 14px; }
.h-btn-lg { padding: 16px 26px; font-size: 17px; }
.h-btn-block { width: 100%; white-space: normal; }
.h-pulse { animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(57,229,140,.55), 0 10px 30px rgba(57,229,140,.25); } 70%, 100% { box-shadow: 0 0 0 14px rgba(57,229,140,0), 0 10px 30px rgba(57,229,140,.25); } }

/* ---------- nawigacja ---------- */
.h-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.h-nav.scrolled { background: rgba(8, 13, 16, .86); backdrop-filter: blur(14px); border-color: var(--line); }
.h-nav-in { display: flex; align-items: center; gap: 22px; height: 70px; }
.h-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.h-logo-port { position: relative; width: 34px; height: 30px; border: 2px solid var(--g); border-radius: 4px 4px 7px 7px; display: flex; gap: 2px; justify-content: center; align-items: flex-start; padding-top: 5px; box-shadow: 0 0 14px rgba(57,229,140,.35); }
.h-logo-port::after { content: ''; position: absolute; bottom: -2px; left: 50%; width: 12px; height: 7px; transform: translateX(-50%); background: var(--bg); border: 2px solid var(--g); border-bottom: 0; border-radius: 3px 3px 0 0; }
.h-logo-port i { width: 3px; height: 9px; background: var(--a); border-radius: 1px; }
.h-logo-txt { font: 800 21px/1 var(--mono); letter-spacing: -.03em; display: flex; flex-direction: column; }
.h-logo-txt b { color: var(--g); }
.h-logo-txt small { font: 600 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.h-logo-txt b + small { margin-top: 3px; }
.h-logo-sm .h-logo-txt { flex-direction: row; font-size: 18px; }
.h-links { display: flex; gap: 22px; margin-left: auto; }
.h-links a { color: var(--muted); text-decoration: none; font: 600 14.5px var(--sans); position: relative; transition: color .2s; }
.h-links a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--g); transition: right .25s; }
.h-links a:hover { color: var(--text); }
.h-links a:hover::after { right: 0; }
.h-links .h-free { color: var(--a); }
.h-login { color: var(--text); text-decoration: none; font: 600 14.5px var(--sans); }
.h-login:hover { color: var(--g); }
/* przycisk przejścia do drugiego kursu (INF.03 w katalogu głównym) */
.h-course { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border: 1px solid var(--line2); border-radius: 6px; background: rgba(57,229,140,.06); color: var(--text); text-decoration: none; font: 700 13px var(--mono); white-space: nowrap; transition: border-color .2s, color .2s; }
.h-course:hover { border-color: var(--g); color: var(--g); }
.h-links a { white-space: nowrap; }
@media (max-width: 1200px) { .h-course .hc-txt { display: none; } }
@media (max-width: 360px) { .h-nav .h-more { display: none; } }

/* ---------- hero ---------- */
.h-hero { padding: 128px 0 40px; }
.h-hero-in { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 52px; align-items: center; }
.h-prompt { font: 500 14.5px var(--mono); color: var(--muted); margin: 0 0 18px; background: rgba(14, 24, 29, .7); border: 1px solid var(--line); border-radius: 6px; padding: 7px 12px; display: inline-flex; flex-wrap: wrap; max-width: 100%; }
.p-user { color: var(--g); }
.p-sep { color: var(--c); margin-right: 6px; }
.h-hero h1 { font: 800 clamp(38px, 5.4vw, 66px)/1.04 var(--mono); letter-spacing: -.045em; margin: 0 0 22px; }
.h-mark { color: var(--g); text-shadow: 0 0 30px rgba(57, 229, 140, .35); }
.h-lead { font-size: 18.5px; color: #b9cbc7; max-width: 590px; margin: 0 0 28px; }
.h-lead b { color: var(--text); }
.h-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.h-trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font: 500 13.5px var(--mono); color: var(--muted); }
.h-trust li { display: flex; align-items: center; gap: 8px; }

/* topologia sieci */
.h-hero-vis { position: relative; }
.topo { position: relative; background: linear-gradient(180deg, rgba(18, 33, 40, .92), rgba(11, 19, 23, .92)); border: 1px solid var(--line2); border-radius: 14px; box-shadow: 0 40px 90px rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.4); overflow: hidden; }
.topo-head { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font: 600 12px var(--mono); color: var(--muted); }
.topo-head span:first-child { display: flex; align-items: center; gap: 8px; }
.topo-vlan { color: var(--c); }
.topo-svg { display: block; width: 100%; height: auto; padding: 8px 6px 4px; }
.topo-svg .w { fill: none; stroke: rgba(148, 214, 196, .28); stroke-width: 2.4; stroke-linejoin: round; }
.topo-svg .w-wan { stroke: rgba(56, 200, 240, .45); stroke-dasharray: 6 5; animation: dash 1.2s linear infinite; }
.topo-svg .w-wifi { stroke-dasharray: 2 6; stroke-linecap: round; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.dev rect { fill: #0f1d23; stroke: rgba(148, 214, 196, .35); stroke-width: 1.4; transition: stroke .25s, fill .25s; }
.dev:hover rect { stroke: var(--g); fill: #12262d; }
.dev text { font-family: var(--mono); fill: var(--text); }
.dev .dn { font-size: 12.5px; font-weight: 700; }
.dev .ip { font-size: 10.5px; fill: var(--muted); }
.dev-cloud path { fill: rgba(56, 200, 240, .08); stroke: rgba(56, 200, 240, .55); stroke-width: 1.4; }
.dev-cloud text { font-size: 12px; font-weight: 700; fill: var(--c); text-anchor: middle; }
.dev-sw .ports rect { fill: #071014; stroke: rgba(148, 214, 196, .3); stroke-width: 1; }
.dev-win rect { stroke: rgba(56, 200, 240, .55); }
.dev-lnx rect { stroke: rgba(255, 182, 39, .55); }
.led-s { fill: var(--g); filter: drop-shadow(0 0 3px var(--g)); }
.blink { animation: blink 1.3s steps(2) infinite; }
.blink.d2 { animation-duration: .9s; } .blink.d3 { animation-duration: 1.7s; } .blink.d4 { animation-duration: .7s; }
@keyframes blink { 50% { opacity: .25; } }
.pk { filter: drop-shadow(0 0 6px currentColor); }
.pk-g { fill: var(--g); color: var(--g); } .pk-c { fill: var(--c); color: var(--c); } .pk-a { fill: var(--a); color: var(--a); }
.topo-tags { pointer-events: none; }
.topo-tags .tg { position: absolute; z-index: 0; pointer-events: none;font: 700 11px var(--mono); padding: 4px 8px; border-radius: 5px; background: rgba(8, 13, 16, .9); border: 1px solid; animation: tag 6s ease-in-out infinite; }
.tg-1 { left: 3%; top: 54%; color: var(--g); border-color: rgba(57,229,140,.5); }
.tg-2 { right: 4%; top: 30%; color: var(--c); border-color: rgba(56,200,240,.5); animation-delay: -2s; }
.tg-3 { left: 5%; top: 30%; color: var(--a); border-color: rgba(255,182,39,.5); animation-delay: -4s; }
@keyframes tag { 0%, 100% { transform: translateY(0); opacity: .95; } 50% { transform: translateY(-8px); opacity: .75; } }

.term { position: relative; margin: -16px 18px 0 auto; width: min(400px, 92%); background: #050a0c; border: 1px solid var(--line2); border-radius: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.6); z-index: 2; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-bottom: 1px solid var(--line); font: 600 11px var(--mono); color: var(--muted); }
.term-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2b3a3f; }
.term-bar i:first-child { background: var(--r); } .term-bar i:nth-child(2) { background: var(--a); } .term-bar i:nth-child(3) { background: var(--g); }
.term-bar span { margin-left: 6px; }
.term-body { margin: 0; padding: 12px 14px 14px; font: 500 13px/1.6 var(--mono); color: #cfe2dd; white-space: pre-wrap; min-height: 72px; }
.term-body code { background: none; padding: 0; color: inherit; font-size: inherit; }

/* ---------- monitoring ---------- */
.mon { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 46px; }
.mon-tile { position: relative; overflow: hidden; background: rgba(14, 24, 29, .8); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px 14px; display: flex; flex-direction: column; }
.mon-k { display: flex; align-items: center; gap: 8px; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.mon-tile b { font: 800 42px/1.1 var(--mono); letter-spacing: -.04em; margin: 6px 0 2px; }
.mon-d { font-size: 13.5px; color: var(--muted); }
.spark { position: absolute; right: 14px; top: 16px; display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.spark i { width: 4px; background: rgba(57, 229, 140, .45); border-radius: 1px; animation: spark 2.2s ease-in-out infinite alternate; }
.spark i:nth-child(1) { height: 30%; } .spark i:nth-child(2) { height: 55%; animation-delay: -.3s; } .spark i:nth-child(3) { height: 40%; animation-delay: -.7s; }
.spark i:nth-child(4) { height: 75%; animation-delay: -1s; } .spark i:nth-child(5) { height: 60%; animation-delay: -1.3s; } .spark i:nth-child(6) { height: 90%; animation-delay: -1.6s; } .spark i:nth-child(7) { height: 70%; animation-delay: -1.9s; }
@keyframes spark { to { transform: scaleY(.45); transform-origin: bottom; } }

/* ---------- sekcje ---------- */
.h-sec { padding: 104px 0; position: relative; }
.h-sec-alt { background: linear-gradient(180deg, rgba(11, 19, 23, 0), rgba(11, 19, 23, .85) 12%, rgba(11, 19, 23, .85) 88%, rgba(11, 19, 23, 0)); }
.h-head { text-align: center; max-width: 780px; margin: 0 auto 52px; }
.h-head.left { text-align: left; margin: 0; }
.h-tag { display: inline-block; font: 600 13px var(--mono); color: var(--c); margin-bottom: 14px; }
.h-head h2 { font: 800 clamp(29px, 3.6vw, 44px)/1.12 var(--mono); letter-spacing: -.04em; margin: 0 0 16px; }
.h-head p { color: #a9bcb8; font-size: 17.5px; margin: 0; }
.h-head p b { color: var(--text); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: #c9d9d5; }
.ticks li::before { content: '[OK]'; font: 700 12px/1.9 var(--mono); color: var(--g); flex-shrink: 0; }

/* egzamin – potok etapów */
.pipe { position: relative; }
.pipe-line { position: absolute; left: 4%; right: 4%; top: 30px; height: 2px; background: repeating-linear-gradient(90deg, var(--line2) 0 10px, transparent 10px 16px); }
.pipe-pkt { position: absolute; top: -5px; left: 0; width: 12px; height: 12px; border-radius: 3px; background: var(--g); box-shadow: 0 0 14px var(--g); animation: travel 7s linear infinite; }
@keyframes travel { 0% { left: 0; background: var(--c); box-shadow: 0 0 14px var(--c); } 60% { background: var(--a); box-shadow: 0 0 14px var(--a); } 100% { left: calc(100% - 12px); background: var(--g); box-shadow: 0 0 14px var(--g); } }
.pipe-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; position: relative; }
.pipe-steps li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px 18px; text-align: left; transition: transform .25s, border-color .25s; }
.pipe-steps li:hover { transform: translateY(-6px); border-color: rgba(57,229,140,.5); }
.ps-min { display: inline-block; font: 700 12px var(--mono); color: #04150c; background: var(--g); padding: 3px 9px; border-radius: 4px; margin-top: 20px; }
.ps-ico { display: block; font-size: 30px; margin: 12px 0 6px; }
.pipe-steps h3 { font: 700 17px var(--mono); margin: 0 0 6px; letter-spacing: -.02em; }
.pipe-steps p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.pipe-note { text-align: center; color: var(--muted); font-size: 14.5px; margin: 26px auto 0; max-width: 720px; }
.pipe-note b { color: var(--a); }

/* log błędów (diff) */
.log { background: #050a0c; border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.45); font-family: var(--mono); }
.log-bar { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.log-diff { color: var(--c); }
.log-body { padding: 12px 0 6px; font-size: 13.5px; line-height: 1.5; }
.log-body p { margin: 0; padding: 4px 16px; display: flex; gap: 12px; justify-content: space-between; }
.log-body code { background: none; padding: 0; color: inherit; font-size: inherit; }
.log-body em { font-style: normal; font-weight: 700; flex-shrink: 0; }
.l-del { color: #ff9a9a; background: rgba(255, 93, 93, .07); }
.l-del em { color: var(--r); }
.l-add { color: #9ff3c4; background: rgba(57, 229, 140, .07); }
.l-sep { color: var(--c); padding-top: 10px !important; }
.l-res { margin-top: 10px !important; padding: 12px 16px !important; border-top: 1px dashed var(--line2); color: var(--text); font-size: 15px; justify-content: flex-start !important; }
.l-res b { color: var(--g); font-size: 20px; }
.l-res span { margin-left: auto; color: #04150c; background: var(--g); padding: 1px 10px; border-radius: 4px; font-weight: 800; }
.js .log .log-body p { opacity: 0; transform: translateX(-10px); transition: opacity .35s, transform .35s; }
.js .log.in .log-body p { opacity: 1; transform: none; }

/* program – traceroute */
.trace { background: #050a0c; border: 1px solid var(--line2); border-radius: 12px; padding: 18px 0 14px; font-family: var(--mono); box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.trace-cmd { padding: 0 20px 12px; font-size: 14.5px; color: var(--text); border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.trace-sub { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.hop { border-bottom: 1px dashed rgba(148, 214, 196, .09); }
.hop summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 34px 230px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px 20px; transition: background .2s; }
.hop summary::-webkit-details-marker { display: none; }
.hop summary:hover { background: rgba(57, 229, 140, .05); }
.hop[open] summary { background: rgba(57, 229, 140, .07); }
.hop-n { color: var(--g); font-weight: 800; white-space: pre; }
.hop-ms { display: flex; gap: 10px; color: var(--muted); font-size: 12.5px; }
.hop-ms i { font-style: normal; width: 64px; }
.hop-name { font: 700 15.5px var(--sans); color: var(--text); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.hop-name small { font: 600 11px var(--mono); color: var(--c); text-transform: uppercase; letter-spacing: .06em; }
.hop-ico { font-size: 17px; }
.hop-cnt { color: var(--muted); font-size: 12.5px; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.hop-cnt::after { content: '▸'; color: var(--g); transition: transform .2s; }
.hop[open] .hop-cnt::after { transform: rotate(90deg); }
.free-dot { font: 700 10.5px var(--mono); color: #1a1200; background: var(--a); padding: 1px 6px; border-radius: 3px; text-transform: uppercase; }
.hop ul { list-style: none; margin: 0; padding: 4px 20px 14px 68px; display: grid; gap: 2px; }
.hop li { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 7px 12px; border-left: 2px solid var(--line2); font: 500 14.5px var(--sans); color: #c5d6d2; }
.hop li:hover { border-left-color: var(--g); background: rgba(57,229,140,.04); }
.hop-free { font: 700 12.5px var(--mono); color: var(--a); text-decoration: none; white-space: nowrap; }
.hop-free:hover { text-decoration: underline; }
.trace-end { padding: 14px 20px 2px; font-size: 14px; color: var(--muted); }
.trace-end b { color: var(--text); }

/* sprawdź się – quiz */
.qz { background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; padding: 22px 22px 20px; box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.qz-top { display: flex; justify-content: space-between; font: 600 12.5px var(--mono); color: var(--muted); }
.qz-score { color: var(--g); }
.qz-bar { height: 4px; background: rgba(148,214,196,.1); border-radius: 4px; margin: 10px 0 18px; overflow: hidden; }
.qz-bar i { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, var(--c), var(--g)); transition: width .4s; }
.qz-q { font: 700 20px/1.35 var(--mono); letter-spacing: -.02em; margin: 0 0 16px; }
.qz-a { display: grid; gap: 9px; }
.qz-a button {
  text-align: left; font: 500 15.5px var(--sans); color: var(--text); background: rgba(8, 13, 16, .6); border: 1px solid var(--line2);
  border-radius: 8px; padding: 12px 14px; cursor: pointer; display: flex; gap: 12px; align-items: center; transition: border-color .2s, background .2s, transform .15s;
}
.qz-a button b { font: 700 13px var(--mono); color: var(--c); width: 22px; flex-shrink: 0; }
.qz-a button:hover:not(:disabled) { border-color: var(--c); transform: translateX(3px); }
.qz-a button:disabled { cursor: default; }
.qz-a button.ok { border-color: var(--g); background: rgba(57, 229, 140, .12); }
.qz-a button.ok b { color: var(--g); }
.qz-a button.bad { border-color: var(--r); background: rgba(255, 93, 93, .1); }
.qz-a button.bad b { color: var(--r); }
.qz-why { min-height: 0; margin: 14px 0 0; font-size: 14.5px; color: #b9cbc7; line-height: 1.55; }
.qz-why:empty { display: none; }
.qz-why strong { color: var(--g); }
.qz-why strong.no { color: var(--r); }
.qz-foot { margin-top: 16px; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; align-items: center; }
.qz-foot a { font: 600 14px var(--mono); }

/* wtyk RJ-45 */
.rj { margin-top: 30px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 18px; align-items: center; }
.rj-head { grid-column: 1 / -1; font: 700 12.5px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.rj-wires { display: flex; gap: 4px; height: 70px; align-items: stretch; }
.rj-wires i { flex: 1; border-radius: 3px 3px 0 0; transform-origin: bottom; }
.js .rj-wires i { transform: scaleY(0); transition: transform .5s cubic-bezier(.2,.8,.2,1.2); }
.js .rj.in .rj-wires i { transform: none; }
.rj-wires i:nth-child(2) { transition-delay: .06s; } .rj-wires i:nth-child(3) { transition-delay: .12s; } .rj-wires i:nth-child(4) { transition-delay: .18s; }
.rj-wires i:nth-child(5) { transition-delay: .24s; } .rj-wires i:nth-child(6) { transition-delay: .3s; } .rj-wires i:nth-child(7) { transition-delay: .36s; } .rj-wires i:nth-child(8) { transition-delay: .42s; }
.rj-wires .w1 { background: repeating-linear-gradient(0deg, #f4f4f4 0 7px, #ff8a1f 7px 14px); }
.rj-wires .w2 { background: #ff8a1f; }
.rj-wires .w3 { background: repeating-linear-gradient(0deg, #f4f4f4 0 7px, #2fbf5b 7px 14px); }
.rj-wires .w4 { background: #2f74ff; }
.rj-wires .w5 { background: repeating-linear-gradient(0deg, #f4f4f4 0 7px, #2f74ff 7px 14px); }
.rj-wires .w6 { background: #2fbf5b; }
.rj-wires .w7 { background: repeating-linear-gradient(0deg, #f4f4f4 0 7px, #8a5a2b 7px 14px); }
.rj-wires .w8 { background: #8a5a2b; }
.rj-plug { width: 88px; height: 70px; border: 2px solid rgba(200, 230, 240, .45); border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, rgba(200, 230, 240, .14), rgba(200, 230, 240, .04)); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; font: 700 12px var(--mono); color: var(--muted); position: relative; }
.rj-plug::before { content: ''; position: absolute; top: 8px; left: 10px; right: 10px; height: 14px; background: repeating-linear-gradient(90deg, #d8b25a 0 4px, transparent 4px 8px); opacity: .8; }
.rj-cap { grid-column: 1 / -1; margin: 6px 0 0; font-size: 13px; color: var(--muted); }

/* szafa rack */
.rack { position: relative; max-width: 980px; margin: 0 auto; padding: 18px 46px; background: linear-gradient(90deg, #0a1216, #0e181d 6%, #0e181d 94%, #0a1216); border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 40px 90px rgba(0,0,0,.45); }
.rack::before, .rack::after { content: ''; position: absolute; top: 14px; bottom: 14px; width: 16px; background: radial-gradient(circle, #233238 2.5px, transparent 3px) center / 16px 22px repeat-y; }
.rack::before { left: 14px; } .rack::after { right: 14px; }
.ru { display: grid; grid-template-columns: 14px 34px minmax(0, 1fr) 90px; gap: 16px; align-items: center; padding: 16px 18px; margin: 8px 0; background: linear-gradient(180deg, #13232a, #0f1c22); border: 1px solid rgba(148, 214, 196, .14); border-radius: 6px; transition: border-color .25s, transform .25s, box-shadow .25s; }
.ru:hover { border-color: rgba(57, 229, 140, .55); transform: translateX(6px); box-shadow: -6px 0 0 var(--g); }
.ru-led { width: 10px; height: 10px; border-radius: 2px; background: var(--g); box-shadow: 0 0 10px var(--g); animation: blink 1.6s steps(2) infinite; }
.ru-led.a { background: var(--a); box-shadow: 0 0 10px var(--a); animation-duration: 2.3s; }
.ru-led.c { background: var(--c); box-shadow: 0 0 10px var(--c); animation-duration: 1.1s; }
.ru-no { font: 700 12px var(--mono); color: var(--muted); }
.ru-txt h3 { font: 700 17px var(--mono); margin: 0 0 3px; letter-spacing: -.02em; }
.ru-txt p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.ru-vent { height: 34px; border-radius: 3px; background: repeating-linear-gradient(90deg, #071014 0 4px, transparent 4px 8px); opacity: .9; }

/* handshake */
.hs { display: grid; grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr) 70px minmax(0, 1fr); align-items: center; }
.hs-step { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; height: 100%; }
.hs-flag { display: inline-block; font: 800 13px var(--mono); color: var(--c); border: 1px solid rgba(56,200,240,.5); padding: 3px 10px; border-radius: 4px; }
.hs-flag.ok { color: var(--g); border-color: rgba(57,229,140,.6); }
.hs-step h3 { font: 700 18px var(--mono); margin: 14px 0 6px; letter-spacing: -.02em; }
.hs-step p { margin: 0; color: var(--muted); font-size: 15px; }
.hs-arrow { height: 2px; margin: 0 8px; background: repeating-linear-gradient(90deg, var(--line2) 0 6px, transparent 6px 10px); position: relative; overflow: visible; }
.hs-arrow::after { content: ''; position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 2px; background: var(--c); box-shadow: 0 0 10px var(--c); animation: hop 2s linear infinite; }
@keyframes hop { from { left: 0; } to { left: calc(100% - 10px); } }

/* cena – tabliczka znamionowa */
.price-in { display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 48px; align-items: start; justify-content: center; }
.plate { position: relative; background: linear-gradient(160deg, #15272f, #0d181d 60%); border: 1px solid rgba(57, 229, 140, .45); border-radius: 14px; padding: 26px 26px 18px; box-shadow: 0 0 0 4px rgba(57,229,140,.06), 0 40px 100px rgba(0,0,0,.55), 0 0 60px rgba(57,229,140,.12); }
.plate::before { content: ''; position: absolute; inset: 8px; border: 1px dashed rgba(148, 214, 196, .16); border-radius: 9px; pointer-events: none; }
.plate-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.plate-model { font: 700 12.5px var(--mono); letter-spacing: .1em; color: var(--muted); }
.plate-badge { font: 700 12px var(--mono); color: #1a1200; background: var(--a); padding: 3px 10px; border-radius: 4px; }
.plate-old { margin-top: 16px; font: 600 14px var(--mono); color: var(--muted); }
.plate-cut { color: var(--r); margin-left: 6px; }
.plate-price { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 0; }
.plate-price b { font: 800 clamp(64px, 9vw, 88px)/1 var(--mono); letter-spacing: -.06em; color: var(--g); text-shadow: 0 0 40px rgba(57,229,140,.35); }
.plate-price span { font: 700 26px var(--mono); color: var(--muted); }
.plate-sub { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.plate-omni { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.plate-spec { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0; margin: 22px 0; font: 500 14px var(--mono); border-top: 1px solid var(--line); }
.plate-spec dt, .plate-spec dd { padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0; }
.plate-spec dt { color: var(--muted); padding-right: 18px; }
.plate-spec dd { color: var(--text); text-align: right; }
.plate-note { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.plate-paused { color: var(--a); }
.plate-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font: 600 11px var(--mono); color: var(--muted); gap: 12px; }
.barcode { height: 26px; flex: 0 1 150px; background: repeating-linear-gradient(90deg, #9fb4af 0 2px, transparent 2px 4px, #9fb4af 4px 5px, transparent 5px 8px, #9fb4af 8px 11px, transparent 11px 12px); opacity: .55; }
.price-side h3 { font: 700 20px var(--mono); margin: 4px 0 14px; letter-spacing: -.02em; }
.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cmp th, .cmp td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp thead th { font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: rgba(8,13,16,.5); }
.cmp tbody th { color: var(--muted); font-weight: 600; }
.cmp td:last-child { color: var(--g); font-weight: 600; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.free-box { margin-top: 18px; padding: 16px 18px; border: 1px dashed rgba(255, 182, 39, .45); border-radius: 10px; display: grid; gap: 6px; }
.free-box b { font: 700 14px var(--mono); color: var(--a); }
.free-box a { color: var(--text); text-decoration: none; font-size: 15px; }
.free-box a::before { content: '→ '; color: var(--a); }
.free-box a:hover { color: var(--a); }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); margin-bottom: 10px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(57, 229, 140, .4); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 18px; font: 700 16px var(--mono); letter-spacing: -.02em; display: flex; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '?'; color: #04150c; background: var(--c); width: 22px; height: 22px; border-radius: 4px; display: inline-grid; place-items: center; font-size: 13px; flex-shrink: 0; margin-top: 1px; }
.faq details[open] summary::before { content: '!'; background: var(--g); }
.faq p { margin: 0; padding: 0 18px 18px 52px; color: #b9cbc7; font-size: 15.5px; }

/* CTA i stopka */
.final { padding: 110px 0 120px; text-align: center; }
.final-cmd { font: 600 15px var(--mono); color: var(--muted); margin: 0 0 18px; }
.final-c { color: var(--a); }
.final h2 { font: 800 clamp(30px, 4.4vw, 52px)/1.1 var(--mono); letter-spacing: -.045em; margin: 0 0 30px; }
.h-foot { border-top: 1px solid var(--line); padding: 30px 0 90px; font-size: 14px; color: var(--muted); }
.h-foot-in { display: flex; align-items: center; gap: 20px 28px; flex-wrap: wrap; }
.h-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.h-foot nav a { color: var(--muted); text-decoration: none; }
.h-foot nav a:hover { color: var(--g); }
.h-copy { margin-left: auto; font-family: var(--mono); font-size: 13px; }
.h-disc { font-size: 12.5px; opacity: .75; margin-top: 16px; }

.h-sticky { position: fixed; left: 50%; bottom: 18px; z-index: 40; transform: translate(-50%, 140%); transition: transform .35s; display: flex; align-items: center; gap: 10px; white-space: nowrap;
  background: rgba(8, 13, 16, .94); border: 1px solid rgba(57, 229, 140, .55); color: var(--text); text-decoration: none; font: 600 15px var(--mono); padding: 12px 20px; border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.5); backdrop-filter: blur(8px); }
.h-sticky b { color: var(--g); }
.h-sticky.show { transform: translate(-50%, 0); }

/* ---------- animacje wejścia (tylko gdy działa JS) ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pkts { display: none; }
  .js .rv { opacity: 1; transform: none; }
}

/* ---------- responsywność ---------- */
@media (max-width: 1060px) {
  .h-links a:not(.h-free) { display: none; }
  .h-links a[href="#program"] { display: inline; }
  .h-hero-in, .split, .price-in { grid-template-columns: minmax(0, 1fr); }
  .h-hero-vis { max-width: 620px; margin: 0 auto; width: 100%; }
  .split-rev .h-head { order: -1; }
  .pipe-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipe-steps li:last-child { grid-column: 1 / -1; }
  .pipe-line { display: none; }
  .mon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hop summary { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .hop-ms { display: none; }
  .price-in { max-width: 640px; }
}
@media (max-width: 760px) {
  .hs { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hs-arrow { width: 2px; height: 34px; margin: 0 auto; background: repeating-linear-gradient(180deg, var(--line2) 0 6px, transparent 6px 10px); }
  .hs-arrow::after { left: -4px !important; animation-name: hopv; }
  @keyframes hopv { from { top: 0; } to { top: calc(100% - 10px); } }
  .ru { grid-template-columns: 12px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .ru-no, .ru-vent { display: none; }
  .rack { padding: 12px 30px; }
  .rack::before { left: 8px; } .rack::after { right: 8px; }
  .log-body p { flex-direction: column; gap: 0; }
  .l-res { flex-direction: row !important; flex-wrap: wrap; gap: 8px !important; }
  .h-sec { padding: 78px 0; }
}
@media (max-width: 620px) {
  body.home { font-size: 16px; }
  .h-nav-in { gap: 12px; height: 62px; }
  .h-links { display: none; }
  .h-login { margin-left: auto; font-size: 14px; }
  .h-logo-txt small { display: none; }
  .h-hero { padding-top: 96px; }
  .h-prompt { font-size: 12.5px; }
  .h-lead { font-size: 16.5px; }
  .h-cta .h-btn { width: 100%; }
  .pipe-steps { grid-template-columns: minmax(0, 1fr); }
  .mon-tile b { font-size: 34px; }
  .topo-tags { display: none; }
  .term { margin: 12px 0 0; width: 100%; }
  .hop ul { padding-left: 20px; }
  .hop li { flex-direction: column; align-items: flex-start; gap: 2px; }
  .hop summary { gap: 10px; padding: 11px 14px; }
  .hop-cnt { font-size: 0; gap: 6px; }
  .hop-cnt .free-dot { font-size: 10px; }
  .hop-cnt::after { font-size: 14px; }
  .trace-cmd { padding: 0 14px 12px; font-size: 13px; }
  .rj { grid-template-columns: minmax(0, 1fr); }
  .rj-plug { display: none; }
  .plate { padding: 22px 18px 16px; }
  .faq p { padding-left: 18px; }
  .cmp { font-size: 13px; }
  .cmp th, .cmp td { padding: 9px 8px; }
  .h-copy { margin-left: 0; }
}
@media (max-width: 380px) {
  .h-nav-in { gap: 8px; }
  .h-logo-port { width: 28px; height: 25px; }
  .h-logo-txt { font-size: 18px; }
  .h-nav .h-btn-sm { padding: 7px 8px; font-size: 11.5px; }
  .h-course { padding: 4px 7px; font-size: 11.5px; gap: 3px; }
  .cmp { font-size: 12px; table-layout: fixed; overflow-wrap: anywhere; }
  .h-login { font-size: 13px; }
  .h-hero h1 { font-size: 34px; }
  .mon { grid-template-columns: minmax(0, 1fr); }
}
