/* =====================================================================
   STYL STRONY
   Kolory i czcionki zmienisz w jednym miejscu: zmienne w :root poniżej.
   Układ: ciemny grafit, mosiężny akcent (jak szczotkowane ramki
   przycisków KNX), turkusowa „dioda” jako znak stanu urządzeń.
   ===================================================================== */
:root {
  --bg:        #0d1014;   /* tło strony */
  --bg-alt:    #11151a;   /* tło co drugiej sekcji */
  --surface:   #161b22;   /* karty */
  --surface-2: #1d242d;   /* elementy na kartach */
  --line:      #262e38;   /* linie i obramowania */
  --fg:        #ebe7df;   /* tekst główny */
  --muted:     #939ca8;   /* tekst pomocniczy */
  --accent:    #c9a26b;   /* akcent: mosiądz */
  --accent-2:  #e2c08f;   /* jaśniejszy mosiądz (hover) */
  --on-accent: #17130d;   /* tekst na przyciskach */
  --led:       #63d2c6;   /* dioda stanu */

  --f-display: "Syne", "Segoe UI", system-ui, sans-serif;
  --f-body:    "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --r: 14px;
  --maxw: 1200px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --header-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font: 500 .78rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.1rem;
}
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--led); box-shadow: 0 0 0 3px color-mix(in srgb, var(--led) 18%, transparent), 0 0 12px var(--led); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.5em; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--on-accent);
  font: 600 .98rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background .25s, color .25s, transform .25s, box-shadow .25s;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); transform: translateY(-2px); box-shadow: 0 10px 30px -12px var(--accent); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface); color: var(--fg); border-color: var(--accent); }
.btn--sm { padding: .7em 1.15em; font-size: .9rem; }
.btn--full { width: 100%; }

/* ---------- Nagłówek ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
.topbar {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.topbar.is-scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.topbar__in { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .7rem; color: var(--fg); text-decoration: none; min-width: 0; }
.logo img { height: 34px; width: auto; flex: none; }
.logo__txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.logo__txt strong { font: 600 1.05rem var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo__txt small { font: 400 .72rem var(--f-mono); color: var(--muted); letter-spacing: .06em; }
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; position: relative; transition: color .2s; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--accent); transform: scaleX(0); transition: transform .3s; transform-origin: left; }
.nav a:not(.btn):hover, .nav a.is-active { color: var(--fg); }
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; position: relative; flex-shrink: 0; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .3s, top .3s; }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 7rem)); padding-bottom: clamp(3rem, 7vw, 6rem); overflow: hidden; isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 85% 30%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%), linear-gradient(to bottom, transparent 60%, var(--bg)); pointer-events: none; }
.hero__bus { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: .9; }
.hero__in { position: relative; }
.hero h1 { font-size: clamp(2.5rem, 1.3rem + 5.4vw, 5.4rem); font-weight: 600; max-width: 14ch; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { margin-top: 1.6rem; max-width: 62ch; font-size: clamp(1.02rem, .98rem + .25vw, 1.15rem); color: var(--muted); }
.lead--more { margin-top: 1rem; }
.lead strong { color: var(--fg); font-weight: 600; }
.lead__link { color: var(--accent-2); font-weight: 600; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.lead__link:hover { border-color: var(--accent-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: clamp(3rem, 6vw, 5rem) 0 0; max-width: 760px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stats > div { background: color-mix(in srgb, var(--bg) 88%, transparent); padding: 1.2rem 1.4rem; backdrop-filter: blur(6px); }
.stats dt { font: 600 clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem)/1 var(--f-display); color: var(--fg); font-variant-numeric: tabular-nums; }
.stats dd { margin: .5rem 0 0; color: var(--muted); font-size: .88rem; line-height: 1.4; }

/* ---------- Pasek marek ---------- */
.brands { border-block: 1px solid var(--line); padding-block: 1.6rem; display: grid; gap: 1.2rem; }
.brands__row { display: grid; grid-template-columns: 13rem minmax(0, 1fr); align-items: center; gap: 1.5rem; max-width: var(--maxw); margin-inline: auto; width: 100%; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.brands__label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.brands__viewport { overflow: hidden; min-width: 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brands__track { display: flex; align-items: center; width: max-content; animation: marquee var(--dur, 40s) linear infinite; }
.brands__track--rev { animation-direction: reverse; }
@media (hover: hover) and (pointer: fine) { .brands__viewport:hover .brands__track { animation-play-state: paused; } }
.brand { display: inline-flex; align-items: center; height: 40px; padding-inline: 1.8rem; font: 600 1.15rem var(--f-display); letter-spacing: .02em; color: var(--muted); white-space: nowrap; transition: color .2s; }
.brand img { height: 28px; width: auto; max-width: 140px; object-fit: contain; filter: brightness(0) invert(.72); transition: filter .2s; }
.brand:hover { color: var(--fg); }
.brand:hover img { filter: brightness(0) invert(.95); }
@keyframes marquee { to { transform: translateX(-50%); } }
/* ---------- Baner zgody na cookies ---------- */
.cookies { position: fixed; z-index: 90; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(760px, calc(100% - 2rem)); display: flex; align-items: center; gap: 1rem 1.5rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: var(--r); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.cookies[hidden] { display: none; }
.cookies p { margin: 0; font-size: .9rem; color: var(--muted); }
.cookies a { color: var(--accent); }
.cookies__btns { display: flex; gap: .5rem; flex: none; }
.cookies .btn { padding: .6em 1.1em; font-size: .88rem; }
@media (max-width: 640px) { .cookies { flex-direction: column; align-items: stretch; } .cookies__btns > * { flex: 1; } }


/* ---------- Sekcje ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section__head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section__lead { margin-top: 1rem; color: var(--muted); max-width: 60ch; }

/* ---------- O nas ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4rem); }
.about__text { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.about__text h2 { margin-bottom: 1.4rem; }
.about__body { padding-top: 2rem; }
.about__text p { color: var(--muted); max-width: 62ch; }
.about__text p + p { margin-top: 1rem; }
.about__text strong { color: var(--fg); font-weight: 600; }
.about__points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.about__points li { background: var(--bg); padding: 1.4rem; }
.about__points h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.about__points h3::before { content: ""; display: block; width: 22px; height: 2px; background: var(--accent); margin-bottom: .9rem; }
.about__points p { color: var(--muted); font-size: .93rem; }
.about__points.why { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.places { list-style: none; padding: 0; margin: clamp(3rem, 6vw, 4.5rem) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.places li { display: grid; gap: .35rem; }
.places .mono { font-size: .72rem; color: var(--accent); }
.places strong { font: 600 1.05rem var(--f-display); }
.places li > span:last-child { color: var(--muted); font-size: .92rem; }

/* ---------- Usługi ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { padding: .6em 1.1em; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 500 .9rem var(--f-body); cursor: pointer; transition: all .2s; }
.chip:hover { color: var(--fg); border-color: var(--muted); }
.chip[aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.services { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.1rem; }
.svc {
  position: relative; display: flex; flex-direction: column; gap: .9rem; text-align: left;
  padding: 1.7rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface);
  color: var(--fg); font: inherit; cursor: pointer; overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s, opacity .3s;
}
.svc::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.svc:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.svc:hover::before { opacity: 1; }
.svc { grid-column: span 2; }
.svc--big, .svc--half { grid-column: span 3; }
.svc--full { grid-column: 1 / -1; }
.svc__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--accent); }
.svc__icon svg { width: 24px; height: 24px; }
.svc__cat { font: 500 .72rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.svc p { color: var(--muted); font-size: .98rem; }
.svc__more { margin-top: auto; padding-top: .4rem; font: 500 .9rem var(--f-body); color: var(--accent); display: inline-flex; align-items: center; gap: .4em; }
.svc__more::after { content: "→"; transition: transform .25s; }
.svc:hover .svc__more::after { transform: translateX(4px); }
.svc.is-hidden { display: none; }

/* ---------- Modal ---------- */
.modal { width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); overflow: auto; }
.modal::backdrop { background: rgba(5, 7, 10, .72); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .3s cubic-bezier(.2,.7,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.modal h3 { font-size: 1.7rem; margin: .8rem 0 1rem; padding-right: 2.5rem; }
.modal p { color: var(--muted); }
.modal ul { margin: 1.4rem 0 1.8rem; padding: 0; list-style: none; display: grid; gap: .55rem; }
.modal li { display: flex; gap: .75rem; align-items: baseline; }
.modal li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }

/* ---------- Demo panelu ---------- */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.demo__text p { color: var(--muted); margin-top: 1rem; max-width: 52ch; }
.demo__text h2 { margin-bottom: .4rem; }
.ticks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .6rem; }
.ticks li { display: flex; gap: .7rem; align-items: center; }
.ticks li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 1px solid var(--accent); background: radial-gradient(circle, var(--accent) 3px, transparent 4px); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 1.3rem; box-shadow: 0 40px 80px -40px #000; display: grid; gap: 1rem; min-width: 0; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.panel__title { font: 600 1.15rem var(--f-display); }
.panel__status { display: inline-flex; align-items: center; gap: .5rem; font: .75rem var(--f-mono); color: var(--muted); }
.scenes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.scene { padding: .7rem .4rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font: 600 .85rem var(--f-body); cursor: pointer; transition: all .2s; }
.scene:hover { color: var(--fg); border-color: var(--muted); }
.scene.is-on { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }

.room { position: relative; height: 150px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, #1a1f26 0%, #12161b 100%); }
.room::before { content: ""; position: absolute; left: 8%; top: 14%; width: 34%; height: 62%; border-radius: 4px; background: linear-gradient(160deg, #3e5a78, #a7c3d9 60%, #f0d9a8); }
.room::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: #0f1216; border-top: 1px solid var(--line); }
.room__blind { position: absolute; left: 8%; top: 14%; width: 34%; height: 0; background: repeating-linear-gradient(180deg, #2a313a 0 6px, #232930 6px 8px); border-radius: 4px 4px 0 0; transition: height .8s ease; z-index: 1; }
.room__tv { position: absolute; right: 9%; top: 26%; width: 30%; aspect-ratio: 16/9; max-width: 100%; border-radius: 3px; background: #07090b; border: 2px solid #2a313a; transition: background .5s, box-shadow .5s; z-index: 1; }
.room__tv.is-on { background: linear-gradient(135deg, #1e3a5f, #6a3f6e 50%, #c9a26b); box-shadow: 0 0 40px -6px #6a8fc9; }
.room__glow { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(60% 90% at 55% 0%, rgba(255, 214, 150, .55), transparent 70%); mix-blend-mode: screen; transition: opacity .6s; }
.room__glow::before { content: ""; position: absolute; left: 52%; top: 0; width: 16%; height: 6px; border-radius: 0 0 6px 6px; background: #f6dfb4; box-shadow: 0 0 30px 6px rgba(255, 214, 150, .7); }

.ctrls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.ctrl { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem; display: grid; gap: .55rem; min-width: 0; }
.ctrl label, .ctrl__label { font-size: .8rem; color: var(--muted); }
.ctrl__row { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.ctrl__row output { font-size: .8rem; color: var(--fg); min-width: 3.2ch; text-align: right; }
.ctrl--temp .ctrl__row { justify-content: space-between; }
.temp { font-size: 1.15rem !important; }
input[type="range"] { flex: 1; min-width: 0; accent-color: var(--accent); height: 24px; cursor: pointer; }
.switch { flex: none; width: 44px; height: 26px; border-radius: 999px; border: 1px solid var(--line); background: #0d1014; position: relative; cursor: pointer; transition: background .25s, border-color .25s; padding: 0; }
.switch span { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .25s, background .25s; }
.switch[aria-checked="true"] { background: color-mix(in srgb, var(--accent) 30%, transparent); border-color: var(--accent); }
.switch[aria-checked="true"] span { transform: translateX(18px); background: var(--accent); }
.step { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font-size: 1.1rem; cursor: pointer; }
.step:hover { border-color: var(--accent); }
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 20px; }
.eq i { width: 4px; height: 4px; background: var(--muted); border-radius: 2px; transition: background .2s; }
.eq.is-on i { background: var(--led); animation: eq 0.9s ease-in-out infinite alternate; }
.eq.is-on i:nth-child(2) { animation-delay: -.3s; } .eq.is-on i:nth-child(3) { animation-delay: -.6s; } .eq.is-on i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { from { height: 4px; } to { height: 20px; } }

.busmon { border-radius: 12px; background: #090b0e; border: 1px solid var(--line); overflow: hidden; }
.busmon__head { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: .55rem .9rem; border-bottom: 1px solid var(--line); }
.busmon__log { list-style: none; margin: 0; padding: .5rem .9rem; height: 112px; overflow: hidden; display: flex; flex-direction: column; gap: .25rem; font-size: .74rem; }
.busmon__log li { display: grid; grid-template-columns: 8ch 6ch minmax(0, 1fr); gap: 2.5ch; color: var(--muted); white-space: nowrap; animation: logIn .35s ease; }
.busmon__log li span:last-child { overflow: hidden; text-overflow: ellipsis; }
.busmon__log .ga { color: var(--led); }
.busmon__log li:first-child { color: var(--fg); }
@keyframes logIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Proces ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--accent), var(--line) 80%); }
.step-card { position: relative; padding-top: 3.4rem; }
.step-card__n { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); border: 1px solid var(--accent); color: var(--accent); font-size: .85rem; }
.step-card h3 { margin-bottom: .5rem; font-size: 1.15rem; }
.step-card p { color: var(--muted); font-size: .95rem; }

/* ---------- Możliwości i integracje ---------- */
.hub { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hub-sub { margin-top: clamp(4.5rem, 9vw, 7rem); }
.hub--rev .hub__map { order: 2; }
.hub__map { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; margin-inline: auto; }
.hub__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub__lines path { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke .3s; }
.hub__lines path.is-on { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 5 5; animation: dash .9s linear infinite; }
.hub__orbit { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 6; opacity: .7; vector-effect: non-scaling-stroke; }
.hub__orbit--far { opacity: .4; stroke-dasharray: 1 9; }
@keyframes dash { to { stroke-dashoffset: -10; } }
.hub__core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 26%; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; gap: .15rem;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, var(--surface)) 0%, var(--surface) 70%); border: 1px solid var(--accent); box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 6%, transparent), 0 0 60px -10px var(--accent); }
.hub__core .mono { font-size: clamp(1.1rem, .8rem + 1vw, 1.6rem); font-weight: 500; color: var(--accent); letter-spacing: .08em; }
.hub__core small { font-size: .7rem; color: var(--muted); }
.hub__map { container-type: inline-size; }
@media (min-width: 641px) { @supports (width: 1cqi) { .hub__map .hub__node { width: min(7.4rem, 21cqi); font-size: clamp(.68rem, 2.3cqi, .8rem); } .hub__map .hub__ico { width: min(50px, 9cqi); height: min(50px, 9cqi); } } }
.hub__core--long { width: 30%; }
.hub__core--long .mono { font-size: clamp(.62rem, 2.5cqi, .95rem); letter-spacing: .06em; text-transform: uppercase; line-height: 1.25; padding-inline: .4rem; }
.hub__node { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: 7.4rem; padding: 0; display: flex; flex-direction: column; align-items: center; gap: .45rem;
  background: none; border: 0; color: var(--muted); font: 500 .8rem/1.25 var(--f-body); text-align: center; cursor: pointer; transition: color .2s; }
.hub__ico { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--accent); transition: background .25s, color .25s, border-color .25s, transform .25s; }
.hub__ico svg { width: 22px; height: 22px; }
.hub__node:hover { color: var(--fg); }
.hub__node:hover .hub__ico { border-color: var(--accent); transform: scale(1.06); }
.hub__node[aria-selected="true"] { color: var(--fg); }
.hub__node[aria-selected="true"] .hub__ico { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: 0 0 24px -4px var(--accent); }
.hub__panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.4rem, 3vw, 2.2rem); min-width: 0; }
.hub__panel.is-anim { animation: pop .35s cubic-bezier(.2,.7,.2,1); }
.hub__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.hub__head h3 { font-size: 1.5rem; }
.hub__panel > p { color: var(--muted); }
.hub__list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1.4rem; }
.hub__list li { display: flex; gap: .7rem; align-items: baseline; font-size: .95rem; }
.hub__list li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.hub__techlbl { margin-top: 1.6rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hub__tech { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.tag { padding: .35em .8em; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-size: .8rem; color: var(--fg); }

/* ---------- Galeria ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 270px; grid-auto-flow: dense; gap: 1rem; }
.gal { position: relative; overflow: hidden; padding: 0; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; text-align: left; cursor: zoom-in; transition: border-color .3s; }
.gal:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.gal--tall { grid-row: span 2; }
.gal.is-hidden { display: none; }
.gal > img, .gal > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .4s; }
.gal > img { filter: saturate(.9) brightness(.9); }
.gal:hover > img, .gal:hover > .ph { transform: scale(1.05); filter: none; }
.gal__cap { position: absolute; inset: auto 0 0 0; padding: 2.2rem 1.1rem 1rem; display: grid; gap: .2rem; background: linear-gradient(to top, rgba(8, 10, 13, .97), rgba(8, 10, 13, .88) 50%, rgba(8, 10, 13, .5) 78%, transparent); }
.gal__cap .mono { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.gal__cap strong { font: 600 1.02rem/1.25 var(--f-display); }
.gal__cap span:last-child { font-size: .82rem; color: var(--muted); line-height: 1.4; }

.ph { display: grid; place-items: center; background:
  repeating-linear-gradient(90deg, transparent 0 31px, color-mix(in srgb, var(--line) 60%, transparent) 31px 32px),
  repeating-linear-gradient(0deg, transparent 0 31px, color-mix(in srgb, var(--line) 60%, transparent) 31px 32px),
  radial-gradient(60% 60% at 50% 40%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
  var(--surface); }
.ph__ico { width: 58px; height: 58px; color: var(--accent); opacity: .55; transform: translateY(-18px); }
.ph__ico svg { width: 100%; height: 100%; }
.ph__tag { position: absolute; top: .9rem; left: .9rem; font: .64rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--muted); padding: .3em .6em; border-radius: 6px; background: rgba(8, 10, 13, .5); }
/* Placeholder projektu: mapa luksów w fałszywych kolorach, jak w DIALux */
.ph--projekty { background:
  radial-gradient(circle at 30% 38%, #ff4a3d 0 5%, #ffae00 11%, #e8ef2a 18%, #3fd16a 27%, #22b5d8 38%, transparent 52%),
  radial-gradient(circle at 72% 46%, #ffae00 0 5%, #e8ef2a 12%, #3fd16a 21%, #22b5d8 32%, transparent 46%),
  radial-gradient(circle at 48% 80%, #e8ef2a 0 4%, #3fd16a 12%, #22b5d8 22%, transparent 36%),
  linear-gradient(#24399c, #151f63); filter: saturate(.8) brightness(.78); }
.ph--projekty .ph__ico { display: none; }
.ph__scale { position: absolute; top: 2.9rem; left: .9rem; display: grid; gap: .3rem; font-size: .58rem; color: #e9eef5; }
.ph__scale i { display: block; width: 150px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #151f63, #22b5d8, #3fd16a, #e8ef2a, #ffae00, #ff4a3d); }
.ph--wizualizacje { background:
  linear-gradient(var(--surface-2), var(--surface-2)) 12% 18% / 36% 22% no-repeat,
  linear-gradient(var(--surface-2), var(--surface-2)) 88% 18% / 36% 22% no-repeat,
  linear-gradient(color-mix(in srgb, var(--accent) 35%, var(--surface-2)), color-mix(in srgb, var(--accent) 35%, var(--surface-2))) 12% 50% / 36% 22% no-repeat,
  linear-gradient(var(--surface-2), var(--surface-2)) 88% 50% / 36% 22% no-repeat,
  #0f1318; }
.ph--wizualizacje .ph__ico { display: none; }

/* ---------- Powiększenie zdjęcia ---------- */
.lightbox { width: min(1100px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); overflow: hidden; }
.lightbox::backdrop { background: rgba(5, 7, 10, .85); backdrop-filter: blur(4px); }
.lightbox[open] { animation: pop .3s cubic-bezier(.2,.7,.2,1); }
.lightbox .modal__close { z-index: 3; }
.lightbox__fig { margin: 0; }
.lightbox__media { position: relative; aspect-ratio: 16 / 10; max-height: calc(100dvh - 140px); width: 100%; max-width: 100%; background: #07090b; }
.lightbox__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lightbox__media .ph { position: absolute; inset: 0; }
.lightbox figcaption { padding: 1rem 1.4rem 1.2rem; color: var(--muted); font-size: .95rem; }
.lightbox figcaption strong { color: var(--fg); font-family: var(--f-display); margin-right: .4rem; }
.lightbox__nav { position: absolute; top: 40%; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(13, 16, 20, .75); color: var(--fg); font-size: 1.6rem; line-height: 1; cursor: pointer; z-index: 2; }
.lightbox__nav:hover { border-color: var(--accent); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.faq-wrap .section__head { margin-bottom: 1rem; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0; position: relative; font: 600 1.08rem var(--f-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 1.6rem var(--f-body); color: var(--accent); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 2.5rem 1.4rem 0; max-width: 65ch; }

/* ---------- Kontakt ---------- */
.section--contact { background: radial-gradient(50% 60% at 0% 100%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%), var(--bg-alt); border-top: 1px solid var(--line); }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); }
.contact__info > p { color: var(--muted); margin-top: 1rem; max-width: 46ch; }
.contact__list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .9rem; }
.contact__list li { display: grid; grid-template-columns: 9ch minmax(0, 1fr); gap: 1rem; align-items: baseline; overflow-wrap: anywhere; }
.contact__list .mono { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact__multi { display: grid; gap: .3rem; justify-items: start; }
.contact__list a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact__list a:hover { border-color: var(--accent); }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.3rem, 3vw, 2rem); display: grid; gap: 1rem; min-width: 0; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label { font-size: .85rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--fg); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.field.is-error input, .field.is-error textarea { border-color: #d9776b; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .85rem; color: var(--muted); cursor: pointer; }
.consent input { margin-top: .25rem; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.consent.is-error { color: #e8998f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__msg { font-size: .92rem; min-height: 1.4em; }
.form__msg.ok { color: var(--led); }
.form__msg.err { color: #e8998f; }

/* ---------- Stopka ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 3rem calc(3rem + env(safe-area-inset-bottom, 0px)); }
.footer__in { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2rem; align-items: start; }
.footer__in > p { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.footer strong { font: 600 1.1rem var(--f-display); }
.footer .muted { margin-top: .5rem; font-size: .9rem; }
.footer a { color: var(--muted); }
.footer__social { display: flex; gap: .6rem; flex-wrap: wrap; }
.footer__social a { padding: .5em 1em; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .85rem; color: var(--fg); }
.footer__social a:hover { border-color: var(--accent); }

/* ---------- Animacje przy przewijaniu ---------- */
.reveal { transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-pending { opacity: 0; transform: translateY(24px); }

/* =====================================================================
   RESPONSYWNOŚĆ: laptop → tablet → telefon
   ===================================================================== */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc, .svc--half { grid-column: span 1; }
  .svc--big, .svc--full { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.5rem; }
  .steps::before { display: none; }
}

@media (max-width: 920px) {
  :root { --header-h: 64px; }
  .burger { display: block; }
  .nav {
    position: fixed; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem var(--gutter-r) 1.5rem var(--gutter);
    background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .3s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: .95rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 1rem; }
  .topbar.menu-open { background: var(--bg); border-color: var(--line); }
  .demo, .faq-wrap, .contact, .hub, .about { grid-template-columns: minmax(0, 1fr); }
  .hub--rev .hub__map { order: 0; }
  .places, .about__points, .about__points.why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__text { grid-template-columns: minmax(0, 1fr); }
  .about__body { padding-top: 0; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .svc, .svc--big, .svc--full { grid-column: auto; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 190px; gap: .6rem; }
  .gal__cap { padding: 1.6rem .7rem .7rem; }
  .gal__cap strong { font-size: .86rem; }
  .gal__cap > span:last-child { display: none; }
  .gal__cap .mono { font-size: .56rem; }
  .gal--tall { grid-row: span 1; }
  .hub__map { aspect-ratio: auto; max-width: none; display: flex; flex-direction: column; gap: .5rem; }
  .hub__map > .hub__panel { margin: 0 0 .5rem; padding: 1.2rem; border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
  .hub__map > .hub__panel .hub__head { display: none; }
  .hub__node .hub__lbl { flex: 1; }
  .hub__node::after { content: "+"; flex: none; margin-left: auto; padding-right: .3rem; font: 400 1.4rem/1 var(--f-body); color: var(--accent); transition: transform .25s; }
  .hub__node[aria-selected="true"]::after { transform: rotate(45deg); }
  .hub__lines, .hub__core { display: none; }
  .hub__node { position: static; transform: none; width: auto; flex-direction: row; gap: .6rem; padding: .5rem .7rem .5rem .5rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; }
  .hub__node[aria-selected="true"] { border-color: var(--accent); }
  .hub__ico { width: 36px; height: 36px; flex: none; }
  .hub__ico svg { width: 18px; height: 18px; }
  .hub__list { grid-template-columns: minmax(0, 1fr); }
  .about__points, .about__points.why, .places { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 1.8rem; }
  .step-card { padding: 0 0 0 4.2rem; min-height: 44px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stats > div { display: flex; align-items: baseline; gap: 1rem; padding: 1rem 1.2rem; }
  .stats dd { margin: 0; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .scenes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ctrls { grid-template-columns: minmax(0, 1fr); }
  .footer__in { grid-template-columns: minmax(0, 1fr); }
  .logo__txt small { display: none; }
  .brands__row { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .busmon__log li { grid-template-columns: 6ch minmax(0, 1fr); gap: 2ch; }
  .busmon__log li span:first-child { display: none; }
}

/* ---------- Koszty ---------- */
.costs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 1.25rem; align-items: start; }
.costs__col { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); padding: clamp(1.25rem, 2.5vw, 2rem); }
.costs__col--less { border-color: color-mix(in srgb, var(--led) 35%, var(--line)); }
.costs__title { display: flex; align-items: center; gap: .75rem; font-size: 1.2rem; margin-bottom: 1.25rem; }
.costs__sign { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font-size: 1.1rem; }
.costs__col--less .costs__sign { border-color: var(--led); color: var(--led); }
.costs__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.costs__col--less .costs__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.5rem; }
.costs__list li { padding-top: 1.1rem; border-top: 1px solid var(--line); }
.costs__list h4 { font-size: 1rem; margin: 0 0 .4rem; }
.costs__list p { color: var(--muted); font-size: .93rem; margin: 0; }
.costs__note { margin-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.25rem clamp(1.25rem, 2.5vw, 2rem); border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: var(--r); background: var(--surface); }
.costs__note p { margin: 0; color: var(--fg); max-width: 70ch; }
@media (max-width: 1080px) { .costs { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .costs__col--less .costs__list { grid-template-columns: minmax(0, 1fr); }
  .costs__note { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal.is-pending { opacity: 1; transform: none; }
  .brands__viewport { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .brands__track { animation: none !important; }
}

/* Etykiety sekcji zawsze w kolorze akcentu (nadpisuje kolor akapitów w sekcjach) */
.about__text .eyebrow, .demo__text .eyebrow, .contact__info > .eyebrow { color: var(--accent); margin-top: 0; }
