/* =========================================================================
   Formica LS – Pick-to-Light | itmapp
   Kolorystyka zgodna z itmapp.pl
   ========================================================================= */

:root {
  --accent: #ff4438;
  --accent-600: #e5372c;
  --accent-soft: #ffeeec;
  --ink: #1d1d1f;
  --ink-2: #2a2a2a;
  --text: #4a4a4a;
  --muted: #6d6d6d;
  --line: #e7e7e7;
  --bg: #ffffff;
  --bg-2: #f8f8f8;
  --dark: #161616;
  --dark-2: #1f1f1f;
  --dark-3: #2a2a2a;
  --led-red: #ff3b2f;
  --led-green: #2bd96b;
  --led-amber: #ffb020;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .07);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .18);
  --wrap: 1200px;
  --font: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; line-height: 1.12; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
.light { font-weight: 300; }
.accent { color: var(--accent); }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.section { padding: 110px 0; position: relative; }
.section--tight { padding: 70px 0; }
.section--gray { background: var(--bg-2); }
.section--dark { background: var(--dark); color: #bdbdbd; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
@media (max-width: 800px) { .section { padding: 72px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 68, 56, .18); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 680px; }
.section--dark .lead { color: #a3a3a3; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  font: 700 .98rem/1 var(--font); cursor: pointer; transition: .25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s; }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px rgba(255, 68, 56, .35); }
.btn--primary:hover { background: var(--accent-600); transform: translateY(-2px); }
.btn--ghost { border-color: var(--ink-2); color: var(--ink-2); }
.btn--ghost:hover { background: var(--ink-2); color: #fff; }
.section--dark .btn--ghost, .btn--ghost-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.section--dark .btn--ghost:hover, .btn--ghost-light:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 22px 0;
}
.header.scrolled { background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); padding: 12px 0; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 26px; width: auto; }
.brand span { white-space: nowrap; font-size: .78rem; font-weight: 700; color: var(--muted); border-left: 1px solid var(--line); padding-left: 14px; line-height: 1.2; }
.brand span b { display: block; color: var(--ink); font-size: .92rem; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { white-space: nowrap; font-weight: 600; font-size: .95rem; color: var(--ink-2); padding: 10px 14px; border-radius: 999px; transition: .2s; }
.nav a:hover { background: var(--accent-soft); color: var(--accent); }
.nav a.active { color: var(--accent); }
.nav .btn { padding: 12px 20px; margin-left: 8px; color: #fff; }
.nav .btn:hover { background: var(--accent-600); color: #fff; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.burger span, .burger::before, .burger::after { content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: .3s; }
.burger::before { top: 15px; } .burger span { top: 21px; } .burger::after { top: 27px; }
.nav-open .burger::before { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span { opacity: 0; }
.nav-open .burger::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .burger { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; background: #fff; flex-direction: column; justify-content: center;
    gap: 4px; opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav a { font-size: 1.4rem; padding: 12px 20px; }
  .nav .btn { margin: 16px 0 0; font-size: 1.05rem; }
  .nav-open .nav { opacity: 1; pointer-events: auto; }
  .nav-open { overflow: hidden; }
  .brand span { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 150px 0 90px; position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--bg-2) 100%); }
.hero::before {
  content: ""; position: absolute; width: 900px; height: 900px; right: -320px; top: -260px;
  background: radial-gradient(circle, rgba(255, 68, 56, .13) 0%, rgba(255, 68, 56, 0) 62%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .light { display: block; color: var(--ink-2); }
.hero .lead { margin-bottom: 34px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--ink-2); background: #fff; border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--led-green); box-shadow: 0 0 10px var(--led-green); }
@media (max-width: 1100px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 120px; } .hero-grid > :last-child { max-width: 620px; } }

/* Page hero (podstrony) */
.page-hero { padding: 160px 0 80px; background: var(--dark); color: #b8b8b8; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5.4vw, 4rem); }
.page-hero .lead { color: #a8a8a8; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 70%); pointer-events: none;
}
.page-hero::before {
  content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -300px;
  background: radial-gradient(circle, rgba(255, 68, 56, .28), transparent 65%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.crumbs { font-size: .85rem; margin-bottom: 22px; color: #8a8a8a; }
.crumbs a:hover { color: #fff; }
.crumbs span { margin: 0 8px; opacity: .5; }

/* ---------- Simulator (regał ze światłem) ---------- */
.sim {
  background: linear-gradient(160deg, #222 0%, #121212 100%);
  border-radius: 24px; padding: 22px; color: #ddd;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .06);
  position: relative; user-select: none;
}
.sim-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.sim-title { display: flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9a9a9a; }
.sim-title .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--led-green); box-shadow: 0 0 10px var(--led-green); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.sim-modes { display: inline-flex; background: #0c0c0c; border-radius: 999px; padding: 4px; border: 1px solid #2c2c2c; }
.sim-modes button { border: 0; background: transparent; color: #9a9a9a; font: 700 .8rem var(--font); padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: .2s; }
.sim-modes button.on { background: var(--accent); color: #fff; }

.sim-order {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #0b0b0b; border: 1px solid #2a2a2a; border-radius: 12px; padding: 10px 14px; margin-bottom: 18px;
}
.sim-order small { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #777; }
.seg {
  font-family: var(--mono); font-weight: 700; letter-spacing: .12em;
  color: var(--led-red); text-shadow: 0 0 6px rgba(255, 59, 47, .8), 0 0 18px rgba(255, 59, 47, .45);
}
.seg.off { color: #3a1512; text-shadow: none; }
.seg.green { color: var(--led-green); text-shadow: 0 0 6px rgba(43, 217, 107, .8), 0 0 18px rgba(43, 217, 107, .4); }
.sim-order .seg { font-size: 1.35rem; }

.rack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rack-shelf { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #3d3d3d, #555, #3d3d3d); margin: 2px 0 8px; }
.slot { display: flex; flex-direction: column; gap: 8px; }
.bin {
  position: relative; height: 64px; border-radius: 8px 8px 12px 12px;
  background: linear-gradient(180deg, #2c5ff0 0%, #1e44b8 100%);
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .25), inset 0 2px 0 rgba(255, 255, 255, .2);
  display: flex; align-items: flex-end; justify-content: center; gap: 4px; padding: 0 8px 14px; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.bin::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 10px; background: rgba(0, 0, 0, .25); }
.bin i { width: 14px; height: 14px; border-radius: 4px; background: var(--c, #ffcb2b); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2); }
.bin.box { background: linear-gradient(180deg, #c8955a 0%, #a8763f 100%); }
.bin.box::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 8px; transform: translateX(-50%); background: rgba(255, 255, 255, .15); }
.slot.lit .bin { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--led-red), 0 0 28px rgba(255, 59, 47, .55); }

.module {
  display: flex; align-items: center; gap: 6px; background: #0a0a0a; border: 1px solid #262626;
  border-radius: 8px; padding: 6px 7px; cursor: default; transition: border-color .2s, box-shadow .2s;
}
.module .led { width: 9px; height: 9px; border-radius: 50%; background: #3a1512; flex: none; transition: .2s; }
.module .seg { flex: 1; text-align: center; font-size: 1.05rem; min-width: 0; }
.module .ok {
  width: 26px; height: 22px; border-radius: 11px; flex: none;
  background: #134226; border: 0; cursor: pointer; transition: .2s; padding: 0;
}
.slot.lit .module { border-color: rgba(255, 59, 47, .6); box-shadow: 0 0 14px rgba(255, 59, 47, .25); cursor: pointer; }
.slot.lit .led { background: var(--led-red); box-shadow: 0 0 10px var(--led-red); animation: blink .8s infinite; }
.slot.lit .ok { background: var(--led-green); box-shadow: 0 0 12px rgba(43, 217, 107, .7); }
.slot.done .led { background: var(--led-green); box-shadow: 0 0 10px var(--led-green); animation: none; }
.slot.lit .ok:hover { transform: scale(1.08); }

.sim-base { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; margin-top: 18px; }
.tote {
  position: relative; height: 72px; border-radius: 10px 10px 16px 16px; display: flex; align-items: flex-end; flex-wrap: wrap;
  gap: 4px; padding: 0 14px 12px; align-content: flex-end; max-width: 300px;
  background: linear-gradient(180deg, #2f62f2 0%, #1c3fa9 100%);
  box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .25), inset 0 2px 0 rgba(255, 255, 255, .2);
  transition: box-shadow .3s;
}
.tote.flash { box-shadow: 0 0 0 2px var(--led-green), 0 0 30px rgba(43, 217, 107, .5), inset 0 -10px 0 rgba(0, 0, 0, .25); }
.tote::before { content: "|||| ||| |||"; position: absolute; left: 14px; top: 10px; font: 700 .7rem var(--mono); color: rgba(255, 255, 255, .7); letter-spacing: -1px; }
.tote i { width: 12px; height: 12px; border-radius: 3px; background: var(--c, #ffcb2b); animation: drop .35s ease-out; }
@keyframes drop { from { transform: translateY(-14px); opacity: 0; } }
.sim-stats { display: flex; gap: 18px; text-align: right; }
.sim-stats b { display: block; font-size: 1.5rem; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.sim-stats small { font-size: .7rem; color: #777; text-transform: uppercase; letter-spacing: .08em; }

.sim-steps { display: flex; gap: 6px; margin-top: 18px; }
.sim-steps span {
  flex: 1; text-align: center; font-size: .72rem; font-weight: 700; padding: 8px 4px; border-radius: 8px;
  background: #1c1c1c; color: #666; transition: .3s; border: 1px solid #262626;
}
.sim-steps span.on { background: rgba(255, 68, 56, .14); color: #ff7a70; border-color: rgba(255, 68, 56, .4); }
.sim-steps span.done { color: #4fbf7c; }
.sim-hint { font-size: .78rem; color: #7d7d7d; margin-top: 12px; text-align: center; }
.sim-hint b { color: var(--led-green); }
.flyer { position: fixed; width: 14px; height: 14px; border-radius: 4px; z-index: 50; pointer-events: none; background: var(--c, #ffcb2b); box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
@media (max-width: 520px) {
  .sim { padding: 14px; border-radius: 18px; }
  .rack { gap: 6px; }
  .bin { height: 50px; padding: 0 4px 10px; gap: 2px; }
  .bin i { width: 10px; height: 10px; }
  .module { padding: 4px; gap: 3px; flex-wrap: wrap; justify-content: center; }
  .module .seg { font-size: .85rem; flex-basis: 100%; order: -1; letter-spacing: .05em; }
  .module .ok { width: 22px; height: 16px; }
  .sim-steps span { font-size: .6rem; padding: 6px 2px; }
  .sim-order .seg { font-size: 1.05rem; }
  .sim-base { grid-template-columns: 1fr; }
  .sim-stats { justify-content: space-between; text-align: left; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.stat { background: #fff; padding: 34px 28px; }
.stat b { display: block; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -.03em; margin-bottom: 10px; }
.stat b em { font-style: normal; color: var(--accent); }
.stat span { font-size: .95rem; color: var(--muted); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px;
  transition: transform .3s, box-shadow .3s, border-color .3s; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card .num { font-size: .85rem; font-weight: 800; color: var(--accent); margin-bottom: 20px; display: block; }
.card p { color: var(--muted); font-size: .98rem; }
.card p:last-child { margin-bottom: 0; }
.card .ico {
  width: 54px; height: 54px; border-radius: 14px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 22px;
}
.card .ico svg { width: 26px; height: 26px; }
.card .more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); margin-top: 8px; font-size: .95rem; }
.card .more::after { content: "→"; transition: transform .25s; }
.card:hover .more::after { transform: translateX(5px); }
.section--dark .card { background: var(--dark-2); border-color: #2c2c2c; }
.section--dark .card p { color: #a0a0a0; }
.section--dark .card:hover { border-color: rgba(255, 68, 56, .45); box-shadow: 0 0 40px rgba(255, 68, 56, .12); }

/* Card z dużym zdjęciem */
.solution { padding: 0; display: flex; flex-direction: column; }
.solution .pic { aspect-ratio: 16 / 10; overflow: hidden; background: #ddd; }
.solution .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.solution:hover .pic img { transform: scale(1.06); }
.solution .body { padding: 28px 28px 30px; flex: 1; display: flex; flex-direction: column; }
.solution .body p { flex: 1; }
.tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 5px 10px; border-radius: 6px; margin-bottom: 14px; }

/* ---------- Split (tekst + obraz) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split.rev > :first-child { order: 2; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.split-media .float {
  position: absolute; left: -24px; bottom: -24px; background: #fff; border-radius: 14px; padding: 16px 20px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px;
}
.split-media .float b { font-size: 1.8rem; color: var(--accent); line-height: 1; }
.split-media .float span { font-size: .85rem; color: var(--muted); line-height: 1.3; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 44px; } .split.rev > :first-child { order: 0; } .split-media .float { left: 12px; bottom: -20px; } }

.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff4438' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.checks li b { color: var(--ink); }
.section--dark .checks li b { color: #fff; }
.section--dark .checks li::before { background-color: rgba(255, 68, 56, .15); }

/* ---------- Kroki procesu ---------- */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; counter-reset: st; }
.step { position: relative; padding: 26px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); counter-increment: st; }
.step::before { content: counter(st, decimal-leading-zero); display: block; font-size: .85rem; font-weight: 800; color: var(--accent); margin-bottom: 14px; }
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.5; }
.steps.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .steps, .steps.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .steps, .steps.four { grid-template-columns: 1fr; } }
.section--dark .step { background: var(--dark-2); border-color: #2c2c2c; }
.section--dark .step p { color: #9a9a9a; }

/* ---------- Porównanie (wykres) ---------- */
.compare { background: #fff; border-radius: var(--radius); padding: 40px; border: 1px solid var(--line); }
.bar-row { margin-bottom: 26px; }
.bar-row:last-of-type { margin-bottom: 0; }
.bar-label { display: flex; justify-content: space-between; font-weight: 700; color: var(--ink); margin-bottom: 10px; font-size: .98rem; }
.bar-label span { font-variant-numeric: tabular-nums; }
.bar { height: 46px; background: var(--bg-2); border-radius: 12px; overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; width: 0; transition: width 1.4s cubic-bezier(.2, .8, .2, 1); position: relative; }
.bar i.walk { background: #c9c9c9; }
.bar i.pick { background: #8e8e8e; }
.bar i.pick.hot { background: var(--accent); }
.in .bar i { width: var(--w); }
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; font-size: .85rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.saving { display: flex; align-items: baseline; gap: 14px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.saving b { font-size: 3rem; font-weight: 800; color: var(--accent); line-height: 1; }
@media (max-width: 600px) { .compare { padding: 24px 18px; } }

/* ---------- Kalkulator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.calc-in { background: #fff; padding: 40px; }
.calc-out { background: var(--dark); color: #bbb; padding: 40px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.calc-out::before { content: ""; position: absolute; width: 400px; height: 400px; right: -140px; top: -140px; background: radial-gradient(circle, rgba(255, 68, 56, .3), transparent 65%); }
.calc-out > * { position: relative; }
.field { margin-bottom: 26px; }
.field label { display: flex; justify-content: space-between; font-weight: 700; color: var(--ink); font-size: .95rem; margin-bottom: 12px; }
.field label output { color: var(--accent); font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--p, 50%), #e6e6e6 var(--p, 50%)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); cursor: pointer; }
.result { margin-bottom: 26px; }
.result small { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #8a8a8a; margin-bottom: 4px; }
.result b { font-size: clamp(2.2rem, 4vw, 3rem); color: #fff; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.result b.accent { color: var(--accent); }
.calc-note { font-size: .78rem; color: #777; margin: 0; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } .calc-in, .calc-out { padding: 28px 22px; } }

/* ---------- Architektura ---------- */
.arch { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; align-items: stretch; position: relative; }
.arch-node { background: var(--dark-2); border: 1px solid #2f2f2f; border-radius: var(--radius); padding: 26px 22px; position: relative; margin: 0 18px; }
.arch-node:first-child { margin-left: 0; } .arch-node:last-child { margin-right: 0; }
.arch-node:not(:last-child)::after {
  content: ""; position: absolute; right: -38px; top: 50%; width: 38px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px);
  background-size: 24px 2px; animation: flow 1s linear infinite;
}
@keyframes flow { to { background-position: 24px 0; } }
.arch-node small { display: block; font-size: .72rem; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; font-weight: 800; margin-bottom: 8px; }
.arch-node h3 { color: #fff; font-size: 1.1rem; }
.arch-node p { font-size: .88rem; color: #999; margin: 0; line-height: 1.5; }
.arch-node .mini { display: flex; gap: 4px; margin-top: 14px; flex-wrap: wrap; }
.arch-node .mini i { width: 22px; height: 8px; border-radius: 2px; background: #3a1512; }
.arch-node .mini i:nth-child(3n+1) { background: var(--led-red); box-shadow: 0 0 6px var(--led-red); }
@media (max-width: 1000px) {
  .arch { grid-template-columns: 1fr; gap: 30px; }
  .arch-node { margin: 0; }
  .arch-node:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -32px; width: 2px; height: 32px; background: repeating-linear-gradient(180deg, var(--accent) 0 6px, transparent 6px 12px); animation: none; }
}

/* ---------- Pakiety ---------- */
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 30px; position: relative; }
.plan.featured { border: 2px solid var(--accent); box-shadow: 0 20px 60px rgba(255, 68, 56, .15); }
.plan.featured::before { content: "Najczęściej wybierany"; position: absolute; top: -14px; left: 30px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .06em; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; }
.plan h3 { font-size: 1.6rem; margin-bottom: 4px; }
.plan .sub { color: var(--muted); font-size: .92rem; margin-bottom: 22px; display: block; }
.plan .checks li { font-size: .95rem; }

/* ---------- Galeria ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; grid-auto-rows: 180px; grid-auto-flow: dense; }
.gallery a { position: relative; border-radius: 14px; overflow: hidden; grid-column: span 4; grid-row: span 2; background: #222; }
.gallery a.wide { grid-column: span 8; }
.gallery a.tall { grid-row: span 4; }
.gallery a img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, opacity .3s; }
.gallery a:hover img { transform: scale(1.06); opacity: .85; }
.gallery a span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; color: #fff; font-weight: 700; font-size: .95rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75)); transform: translateY(10px); opacity: 0; transition: .3s;
}
.gallery a:hover span { transform: none; opacity: 1; }
@media (max-width: 900px) { .gallery { grid-auto-rows: 140px; } .gallery a, .gallery a.wide { grid-column: span 6; } }
@media (max-width: 560px) { .gallery a, .gallery a.wide { grid-column: span 12; grid-row: span 2; } .gallery a span { opacity: 1; transform: none; } }

.lightbox { position: fixed; inset: 0; background: rgba(10, 10, 10, .94); z-index: 200; display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 84vh; max-width: 100%; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox p { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #ddd; margin: 0; padding: 0 16px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); border: 0; color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; transition: .2s; }
.lightbox button:hover { background: var(--accent); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 60px; transform: none; } }

/* ---------- Pasek zastosowań (marquee) ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; padding: 22px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { font-weight: 700; color: var(--ink-2); font-size: 1.05rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 50px 24px 0; font-weight: 700; color: var(--ink); font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--accent); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ---------- CTA ---------- */
.cta {
  background: var(--accent); color: #fff; border-radius: 28px; padding: 64px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: center;
}
.cta::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .18) 1.5px, transparent 1.5px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 40%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000); }
.cta > * { position: relative; }
.cta h2 { color: #fff; margin-bottom: 12px; }
.cta p { color: rgba(255, 255, 255, .88); margin: 0; font-size: 1.1rem; }
.cta .btn { background: #fff; color: var(--accent); }
.cta .btn:hover { background: var(--ink); color: #fff; }
@media (max-width: 800px) { .cta { grid-template-columns: 1fr; padding: 40px 26px; } }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: start; }
.info-card { background: var(--dark); color: #bbb; border-radius: 24px; padding: 40px; position: relative; overflow: hidden; }
.info-card h3 { color: #fff; }
.info-card .row { display: flex; gap: 16px; margin-bottom: 24px; }
.info-card .row:last-child { margin-bottom: 0; }
.info-card .row svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 3px; }
.info-card .row small { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: #777; }
.info-card a { color: #fff; font-weight: 700; }
.info-card a:hover { color: var(--accent); }
.form { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 40px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form label { display: block; font-size: .82rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.form input, .form select, .form textarea {
  width: 100%; font: 500 1rem var(--font); color: var(--ink); background: var(--bg-2);
  border: 1.5px solid transparent; border-radius: 12px; padding: 14px 16px; transition: .2s; outline: none;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(255, 68, 56, .12); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 14px; border-radius: 999px; background: var(--bg-2); font-size: .88rem; font-weight: 600; color: var(--text); cursor: pointer; border: 1.5px solid transparent; transition: .2s; }
.chips input:checked + span { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.chips input:focus-visible + span { box-shadow: 0 0 0 3px rgba(255, 68, 56, .3); }
.consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; color: var(--muted) !important; font-size: .85rem !important; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.hp { position: absolute !important; left: -9999px !important; }
.form-msg { display: none; margin-top: 18px; padding: 14px 18px; border-radius: 12px; font-weight: 600; }
.form-msg.ok { display: block; background: #e8f8ee; color: #187a3f; }
.form-msg.err { display: block; background: var(--accent-soft); color: var(--accent-600); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form, .info-card { padding: 26px 18px; } .form-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #8f8f8f; padding: 80px 0 30px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid #2a2a2a; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer a:hover { color: var(--accent); }
.footer .brand img { height: 28px; }
.footer p { margin-top: 18px; max-width: 320px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; font-size: .85rem; color: #6a6a6a; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Animacje wejścia ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Drobne ---------- */
.note { font-size: .82rem; color: var(--muted); }
.mt-40 { margin-top: 40px; }
.center { text-align: center; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.pill-list span { padding: 8px 16px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-600); font-weight: 700; font-size: .88rem; }
.section--dark .pill-list span { background: rgba(255, 68, 56, .14); color: #ff8a80; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; font-size: .95rem; }
.kv dt { font-weight: 700; color: var(--ink); }
.kv dd { margin: 0; color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: 10px 16px; z-index: 300; }
.skip:focus { left: 10px; top: 10px; }

/* ---------- Nagłówek na ciemnym tle (podstrony) ---------- */
.logo-dark { display: none; }
.dark-top .header:not(.scrolled) .logo-light { display: none; }
.dark-top .header:not(.scrolled) .logo-dark { display: block; }
.dark-top .header:not(.scrolled) .nav a:not(.btn) { color: #e8e8e8; }
.dark-top .header:not(.scrolled) .nav a:not(.btn):hover { background: rgba(255, 255, 255, .08); color: #fff; }
.dark-top .header:not(.scrolled) .nav a.active { color: var(--accent); }
.dark-top .header:not(.scrolled) .brand span { color: #9a9a9a; border-color: #333; }
.dark-top .header:not(.scrolled) .brand span b { color: #fff; }
.dark-top .header:not(.scrolled) .burger span, .dark-top .header:not(.scrolled) .burger::before, .dark-top .header:not(.scrolled) .burger::after { background: #fff; }
@media (max-width: 1100px) {
  .dark-top.nav-open .header .nav a:not(.btn) { color: var(--ink-2); }
  .dark-top.nav-open .header .burger span, .dark-top.nav-open .header .burger::before, .dark-top.nav-open .header .burger::after { background: var(--ink); }
}
.form .chips input { width: 1px; height: 1px; padding: 0; border: 0; }

/* ---------- Telefon w menu ---------- */
.nav a.nav-tel { display: inline-flex; align-items: center; gap: 8px; font-family: "JetBrains Mono", monospace; letter-spacing: -.02em; }
.nav a.nav-tel svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.info-card .row svg + div a[href^="tel:"] { font-size: 1.15rem; font-weight: 700; }
.footer p a, .footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer p a:hover, .footer-bottom a:hover { color: var(--accent); }
@media (max-width: 1100px) { .nav a.nav-tel { margin-top: 8px; } .nav a.nav-tel svg { width: 20px; height: 20px; } }
