/* fluxolab.pl – styl jak w programie Fluxo Lab (ekran ładowania i ekran powitalny) */
:root {
  --bg: #0b1120; --bg2: #111827; --card: #162033; --card-hi: #1d2a42; --border: #24324a;
  --text: #f1f5f9; --dim: #94a3b8; --faint: #64748b; --sky: #7dd3fc;
  --c1: #22d3ee; --c2: #3b82f6; --c3: #7c3aed;
  --grad: linear-gradient(120deg, var(--c1), var(--c2) 55%, var(--c3));
  --radius: 16px; --wrap: 1180px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, ui-monospace, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 400 17px/1.6 var(--font); color: var(--text);
  background: radial-gradient(1200px 700px at 8% -10%, rgba(34, 211, 238, .13), transparent 60%),
              radial-gradient(1000px 800px at 105% 110%, rgba(124, 58, 237, .14), transparent 60%),
              linear-gradient(160deg, var(--bg), var(--bg2));
  background-attachment: fixed; min-height: 100vh; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }
kbd { font: 600 .82em var(--mono); color: #e0f2fe; background: linear-gradient(#1e2b44, #162033); border: 1px solid #334155;
  border-bottom-width: 2px; border-radius: 6px; padding: .05em .42em; white-space: nowrap; }
main:focus { outline: none; }
code { font: .88em var(--mono); background: rgba(56, 189, 248, .1); color: #bae6fd; padding: .1em .38em; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; overflow-wrap: break-word; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.small { font-size: .85rem; color: var(--faint); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); color: var(--text); border: 1px solid var(--border); font: inherit; padding: 8px 14px; border-radius: 8px; z-index: 100; cursor: pointer; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--c1); outline-offset: 3px; border-radius: 8px; }

/* tło – linie przepływu jak na ekranie ładowania */
.bg { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.flow { width: 100%; height: 100%; opacity: .55; }

/* ------------------------------------------------------------------ nagłówek */
.top { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 17, 32, .72); border-bottom: 1px solid rgba(36, 50, 74, .6); }
.top__row { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.brand:hover { text-decoration: none; }
.wordmark { font-size: 1.28rem; font-weight: 750; letter-spacing: -.01em; }
.wordmark b { font-weight: 300; color: var(--sky); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav button { font: inherit; color: var(--dim); background: none; border: 0; cursor: pointer; padding: 8px 12px; border-radius: 10px; font-size: .95rem; font-weight: 500; white-space: nowrap; transition: color .2s, background .2s; }
.nav button:hover { color: var(--text); background: rgba(29, 42, 66, .7); }
.nav button.is-on { color: var(--text); background: rgba(14, 116, 144, .35); }
.burger { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--card); cursor: pointer; padding: 11px 10px; }
.burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; margin: 4px 0; transition: .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------------------------ przyciski */
.btn { display: inline-flex; align-items: center; gap: 12px; border-radius: 14px; font-weight: 650;
  color: var(--text); border: 1px solid var(--border); padding: 12px 20px; transition: transform .15s, box-shadow .2s, border-color .2s;
  cursor: pointer; line-height: 1.2; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn small { display: block; font-size: .78rem; font-weight: 500; opacity: .85; margin-top: 3px; }
.btn--primary { background: var(--grad); border: 0; color: #fff; box-shadow: 0 10px 34px -10px rgba(59, 130, 246, .75), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--primary:hover { box-shadow: 0 14px 40px -10px rgba(34, 211, 238, .8), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn--ghost { background: rgba(22, 32, 51, .7); }
.btn--ghost:hover { border-color: var(--c1); }
.btn--lg { padding: 16px 26px; font-size: 1.08rem; border-radius: 16px; }
.btn--sm { padding: 9px 16px; font-size: .92rem; border-radius: 12px; }
.btn--sm svg { width: 18px; height: 18px; }
.chip { display: inline-block; font-size: .8rem; font-weight: 650; color: var(--sky); border: 1px solid rgba(56, 189, 248, .7);
  background: rgba(56, 189, 248, .1); padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }

/* ------------------------------------------------------------------ hero */
.hero { padding: clamp(40px, 8vw, 96px) 0 40px; }
.hero__grid > *, .split > * { min-width: 0; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--dim); max-width: 40em; }
.lead b { color: var(--text); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 14px; }
.hero__note { font-size: .9rem; color: var(--faint); }
.window { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #0f1626;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02), 0 0 90px -20px rgba(34, 211, 238, .35); }
.window__bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #121a2b; border-bottom: 1px solid var(--border); }
.window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #334155; }
.window__bar i:nth-child(1) { background: #f87171; } .window__bar i:nth-child(2) { background: #fbbf24; } .window__bar i:nth-child(3) { background: #34d399; }
.window__bar span { margin-left: 10px; font-size: .8rem; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__shot { margin: 0; transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transition: transform .6s; }
.hero__shot:hover { transform: none; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(40px, 6vw, 70px); }
.stats div { background: rgba(22, 32, 51, .72); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.stats b { display: block; font-size: 1.8rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--dim); font-size: .92rem; }

/* ------------------------------------------------------------------ sekcje */
.section { padding: clamp(60px, 9vw, 110px) 0; scroll-margin-top: -40px; }
.section--alt { background: linear-gradient(180deg, rgba(15, 22, 38, 0), rgba(15, 22, 38, .75) 18%, rgba(15, 22, 38, .75) 82%, rgba(15, 22, 38, 0)); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto clamp(30px, 5vw, 54px); }
.section__head p { color: var(--dim); font-size: 1.08rem; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; color: var(--c1); margin-bottom: 12px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 18px; }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: rgba(22, 32, 51, .78); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  transition: border-color .2s, transform .2s, background .2s; }
.card:hover { border-color: rgba(56, 189, 248, .7); background: rgba(29, 42, 66, .85); transform: translateY(-2px); }
.card p { color: var(--dim); font-size: .97rem; margin: 0; }
.card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(34, 211, 238, .22), rgba(124, 58, 237, .22)); }
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: #e0f2fe; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--rev .split__text { order: 2; }
.split__shot { margin: 0; }
.split__shot figcaption { color: var(--faint); font-size: .88rem; margin-top: 10px; text-align: center; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; color: var(--dim); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .25em; width: 22px; height: 22px; border-radius: 7px;
  background: var(--grad) ; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/18px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/18px no-repeat; }
.shot { display: block; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #0f1626;
  cursor: zoom-in; box-shadow: 0 26px 60px -30px rgba(0, 0, 0, .9); transition: border-color .2s, transform .2s; }
.shot:hover { border-color: rgba(56, 189, 248, .8); transform: translateY(-2px); }

/* udogodnienia – animowane scenki */
.demos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.demo { background: rgba(22, 32, 51, .78); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 14px 22px; transition: border-color .2s, transform .2s; }
.demo:hover { border-color: rgba(56, 189, 248, .7); transform: translateY(-2px); }
.demo h3 { margin: 16px 8px 8px; }
.demo p { color: var(--dim); font-size: .96rem; margin: 0 8px; }
.demo__art { border-radius: 12px; overflow: hidden; background: #0f1626; border: 1px solid #1e293b; }
.demo__art svg { display: block; width: 100%; height: auto; }
.demo__art text { font: 600 15px var(--font); fill: #e2e8f0; text-anchor: middle; }
.demo__art .box, .art-snap rect:not([fill]) { fill: #1d2a42; stroke: #64748b; stroke-width: 2; }
.demo__art .port { fill: #0f1626; stroke: #7dd3fc; stroke-width: 2; }
.art-snap .moving { animation: snap 4.2s cubic-bezier(.5, 0, .3, 1) infinite; }
.art-snap .ring { fill: none; stroke: #34d399; stroke-width: 3; opacity: 0; animation: ring 4.2s infinite; transform-origin: 190px 75px; }
@keyframes snap { 0%, 8% { transform: translateX(0); } 45% { transform: translateX(64px); } 55%, 85% { transform: translateX(80px); } 100% { transform: translateX(0); } }
@keyframes ring { 0%, 40% { opacity: 0; transform: scale(1.6); } 50% { opacity: 1; transform: scale(1); } 85% { opacity: 1; } 95%, 100% { opacity: 0; } }
.art-wire .wire { fill: none; stroke: #f87171; stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: wire 3.6s ease-in-out infinite; }
@keyframes wire { 0%, 10% { stroke-dashoffset: 260; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.art-name .sel { stroke: #22d3ee; stroke-dasharray: 5 4; }
.art-name .sym { stroke: #cbd5e1; stroke-width: 2.5; fill: none; stroke-linecap: round; }
.art-name .field { fill: #0b1120; stroke: #3b82f6; stroke-width: 1.5; }
.art-name .typed { font: 600 16px var(--mono); text-anchor: start; fill: #f1f5f9; }
.art-name .c1, .art-name .c3 { opacity: 0; }
.art-name .c1 { animation: t1 4s steps(1) infinite; } .art-name .c3 { animation: t3 4s steps(1) infinite; }
.art-name .caret { fill: #22d3ee; animation: caret 4s infinite; }
@keyframes t1 { 0%, 20% { opacity: 0; } 21%, 92% { opacity: 1; } 93%, 100% { opacity: 0; } }
@keyframes t3 { 0%, 40% { opacity: 0; } 41%, 92% { opacity: 1; } 93%, 100% { opacity: 0; } }
@keyframes caret { 0%, 20% { transform: translateX(-31px); } 21%, 40% { transform: translateX(-21px); } 41%, 92% { transform: translateX(-11px); } 93%, 100% { transform: translateX(-31px); } }
.art-pdf .sheet { fill: #f8fafc; }
.art-pdf .frame, .art-pdf .tb { fill: none; stroke: #0f172a; stroke-width: 1.2; }
.art-pdf .zones path, .art-pdf .tb-lines { stroke: #0f172a; stroke-width: 1; fill: none; }
.art-pdf .drawing path { stroke: #0f172a; stroke-width: 1.6; fill: none; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 4s ease-in-out infinite; }
.art-pdf .tb, .art-pdf .tb-lines { animation: fadein 4s infinite; }
.art-pdf .pdf-badge { font: 700 11px var(--font); fill: #7dd3fc; letter-spacing: .08em; }
@keyframes draw { 0%, 5% { stroke-dashoffset: 400; } 55%, 100% { stroke-dashoffset: 0; } }
@keyframes fadein { 0%, 50% { opacity: 0; } 65%, 100% { opacity: 1; } }

/* katalog funkcji */
.catalog { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
.catalog__side { position: sticky; top: 88px; display: grid; gap: 14px; max-height: calc(100vh - 104px); overflow-y: auto; scrollbar-width: thin; }
.search { display: flex; align-items: center; gap: 10px; background: rgba(11, 17, 32, .8); border: 1px solid var(--border); border-radius: 12px; padding: 0 12px; transition: border-color .2s; }
.search:focus-within { border-color: var(--c1); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { flex: 1; min-width: 0; font: inherit; font-size: .95rem; color: var(--text); background: none; border: 0; outline: 0; padding: 11px 0; }
.search input::placeholder { color: var(--faint); }
.catalog__nav { display: grid; gap: 2px; }
.catalog__link { display: flex; align-items: center; gap: 10px; font: inherit; font-size: .93rem; color: var(--dim); background: none; border: 0;
  border-radius: 10px; padding: 8px 10px; cursor: pointer; text-align: left; transition: background .2s, color .2s; }
.catalog__link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.catalog__link span { margin-left: auto; font-size: .78rem; color: var(--faint); background: rgba(36, 50, 74, .6); border-radius: 999px; padding: 1px 8px; }
.catalog__link:hover { color: var(--text); background: rgba(29, 42, 66, .7); }
.catalog__link.is-on { color: #ecfeff; background: linear-gradient(90deg, rgba(14, 116, 144, .55), rgba(59, 130, 246, .2)); }
.catalog__link.is-on span { color: #a5f3fc; }
.catalog__link[hidden] { display: none; }
.catalog__body { display: grid; gap: 18px; min-width: 0; }
.catalog__count { margin: 0; color: var(--faint); font-size: .9rem; min-height: 1.3em; }
.catalog__empty { color: var(--dim); text-align: center; padding: 40px 0; }
.fgroup { background: rgba(22, 32, 51, .78); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; scroll-margin-top: 90px; }
.fgroup[hidden] { display: none; }
.fgroup__head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.fgroup__head .card__icon { margin: 0; flex: none; }
.fgroup__head h3 { font-size: 1.25rem; margin-bottom: 4px; }
.fgroup__head p { color: var(--dim); font-size: .95rem; margin: 0; }
.flist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 22px; }
.feat { position: relative; padding: 10px 0 10px 22px; border-top: 1px solid rgba(36, 50, 74, .55); font-size: .93rem; line-height: 1.5; }
.feat::before { content: ""; position: absolute; left: 2px; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px rgba(34, 211, 238, .5); }
.feat b { display: block; color: var(--text); font-weight: 650; margin-bottom: 2px; }
.feat span { color: var(--dim); }
.feat[hidden] { display: none; }
.feat mark { background: rgba(34, 211, 238, .28); color: #ecfeff; border-radius: 3px; padding: 0 1px; }

/* przycisk „na górę” */
.totop { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border);
  background: rgba(22, 32, 51, .92); color: var(--text); cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transition: border-color .2s, transform .2s; }
.totop:hover { border-color: var(--c1); transform: translateY(-2px); }
.totop[hidden] { display: none; }
.totop svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* galeria */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.gallery__item { margin: 0; }
.gallery__item figcaption { color: var(--dim); font-size: .9rem; margin-top: 10px; }
.gallery__item figcaption b { color: var(--text); }

/* przykłady */
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.chip-btn { font: inherit; font-size: .9rem; color: #cbd5e1; background: var(--card); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: .2s; }
.chip-btn span { color: var(--faint); font-size: .8rem; margin-left: 4px; }
.chip-btn:hover { border-color: var(--c1); }
.chip-btn.is-on { background: #0e7490; border-color: var(--c1); color: #ecfeff; }
.chip-btn.is-on span { color: #a5f3fc; }
.examples { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.ex { display: flex; gap: 16px; background: rgba(22, 32, 51, .7); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.ex[hidden] { display: none; }
.ex__no { font: 700 .95rem var(--mono); color: var(--c1); padding-top: 2px; }
.ex h3 { font-size: 1rem; margin-bottom: 2px; }
.ex__cat { color: var(--sky); font-size: .8rem; margin-bottom: 8px; }
.ex p:last-child { color: var(--dim); font-size: .9rem; margin: 0; }

/* pobieranie */
.download { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: start;
  background: linear-gradient(135deg, rgba(34, 211, 238, .12), rgba(124, 58, 237, .14)), rgba(22, 32, 51, .85);
  border: 1px solid rgba(56, 189, 248, .45); border-radius: 24px; padding: clamp(26px, 5vw, 56px);
  box-shadow: 0 30px 80px -40px rgba(34, 211, 238, .55); }
.download__logo { filter: drop-shadow(0 12px 30px rgba(34, 211, 238, .45)); }
.download p { color: var(--dim); max-width: 46em; }
.req { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.req li { background: rgba(11, 17, 32, .55); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; color: var(--text); font-size: .95rem; }
.req b { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin-bottom: 2px; }
.download .small { margin-top: 18px; }

/* FAQ */
.faq { background: rgba(22, 32, 51, .75); border: 1px solid var(--border); border-radius: 14px; padding: 0 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.5rem; color: var(--c1); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--dim); padding-bottom: 6px; }

/* stopka */
.foot { border-top: 1px solid rgba(36, 50, 74, .7); padding: 30px 0 40px; background: rgba(11, 17, 32, .6); }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 30px; }
.foot p { margin: 0; color: var(--dim); font-size: .95rem; }
.foot .sep { color: #475569; margin: 0 6px; }

/* podgląd zrzutów */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(5, 9, 18, .9); backdrop-filter: blur(6px); }
.lightbox figure { margin: 0; height: 100%; display: grid; place-items: center; align-content: center; gap: 12px; padding: 60px 70px; }
.lightbox img { max-height: calc(100vh - 140px); width: auto; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 30px 90px rgba(0, 0, 0, .7); }
.lightbox figcaption { color: var(--dim); text-align: center; }
.lightbox__close, .lightbox__nav { position: fixed; background: rgba(22, 32, 51, .9); color: var(--text); border: 1px solid var(--border);
  border-radius: 50%; width: 46px; height: 46px; font-size: 1.4rem; cursor: pointer; z-index: 2; }
.lightbox__close { top: 18px; right: 18px; font-size: 1rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 2rem; line-height: 1; }
.lightbox__nav--prev { left: 14px; } .lightbox__nav--next { right: 14px; }
.lightbox__close:hover, .lightbox__nav:hover { border-color: var(--c1); }

/* animacja pojawiania */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ responsywność */
@media (max-width: 1020px) {
  .hero__grid, .split { grid-template-columns: 1fr; }
  .split--rev .split__text { order: 0; }
  .hero__shot { transform: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1020px) {
  .catalog { grid-template-columns: 1fr; gap: 16px; }
  .catalog__side { max-height: none; overflow: visible; position: sticky; top: 68px; z-index: 5; margin: 0 -20px; padding: 10px 20px; background: rgba(13, 20, 36, .95);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(36, 50, 74, .6); gap: 10px; }
  .catalog__nav { display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; padding-bottom: 2px; }
  .catalog__nav::-webkit-scrollbar { display: none; }
  .catalog__link { flex: none; white-space: nowrap; border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; }
  .catalog__link svg { display: none; }
  .fgroup { scroll-margin-top: 190px; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .top__cta { margin-left: auto; }
  .burger { margin-left: 10px; }
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 2px; padding: 12px 20px 20px;
    background: #0b1120; border-bottom: 1px solid var(--border); box-shadow: 0 24px 40px rgba(0, 0, 0, .55); z-index: 60; transform: translateY(-12px);
    opacity: 0; pointer-events: none; transition: .22s; }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav button { padding: 12px 14px; font-size: 1.05rem; text-align: left; }
  .download { grid-template-columns: 1fr; }
  .download__logo { width: 72px; height: 72px; }
}
@media (max-width: 700px) {
  .flist { grid-template-columns: 1fr; }
  .fgroup { padding: 18px 16px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stats div { padding: 14px; }
  .stats b { font-size: 1.4rem; }
  .examples { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .btn--lg { width: 100%; justify-content: center; }
  .top__cta { display: none; }
  .burger { margin-left: auto; }
  .lightbox figure { padding: 60px 8px; }
  .lightbox__nav { top: auto; bottom: 18px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__shot { transform: none; }
}
