/* DBSYSTEM — design system v0.3 (ciemny, pomarańcz dominujący)
   Układ i charakter wzorowane na limonfy.com: głęboki granatowo-śliwkowy fundament, etykiety w stylu terminala,
   szklane karty, siatka punktowa. Akcent zamieniony z limonki na pomarańcz, który dominuje (przyciski, nagłówki
   wyróżnione, sekcja Remote Object Control). Bez czystej bieli i czerni: tekst to ciepły krem, tła to odcienie śliwki.
   TODO: zatwierdzić dokładne kody HEX z brandbooka. Font: Space Grotesk (marka) — TODO self-hosting woff2. */

:root {
  --bg: #1d1c28;           /* tło strony (śliwkowy granat) */
  --bg-alt: #282737;       /* sekcje naprzemienne */
  --surface: #2e2c42;      /* karty, pola formularzy */
  --surface-2: #403d58;    /* podniesione powierzchnie, stopka */
  --line: #4a4766;
  --ink: #fbeedd;          /* nagłówki (ciepły krem) */
  --text: #eadfce;         /* tekst główny */
  --muted: #bdb6cf;        /* tekst drugorzędny */
  --brand: #ff9b45;        /* DOMINUJĄCY pomarańcz: przyciski, akcenty */
  --brand-hover: #ffb36b;
  --brand-deep: #f2762e;
  --peach: #ffd2a8;
  --salmon: #f58a5b;
  --lavender: #9a96c4;     /* drugi, spokojny akcent (jak "TECHNOLOGY" w limonfy) */
  --on-brand: #1d1c28;     /* tekst na pomarańczu */
  --radius: 16px;
  --wrap: 1180px;
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 1.0625rem; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; color: var(--ink); }
h1, h2 { text-transform: uppercase; letter-spacing: .01em; }
h1 { font-size: clamp(1.95rem, 5.2vw, 3.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.45rem, 3.2vw, 2.15rem); line-height: 1.12; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 780px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: var(--on-brand); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; top: .5rem; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.staging { background: var(--brand); color: var(--on-brand); font-family: var(--mono); text-align: center; font-size: .85rem; padding: .35rem 1rem; }

/* Header */
.site-header { position: sticky; top: .6rem; z-index: 50; padding-top: .6rem; color: var(--ink); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; background: rgba(40, 39, 55, .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 20px; padding: .2rem 1rem; box-shadow: 0 10px 30px rgba(20, 19, 29, .35); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: .12em; }
.brand-logo { height: 36px; width: auto; display: block; }
.brand-mark { width: 16px; height: 16px; border-radius: 5px; background: var(--brand); display: inline-block; box-shadow: 5px 5px 0 var(--lavender); }

/* Buttons */
.btn { display: inline-block; background: var(--brand); color: var(--on-brand); text-decoration: none; font-weight: 600; padding: .85rem 1.4rem; border-radius: 12px; border: 2px solid var(--brand); font-family: inherit; font-size: 1rem; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); transform: translateY(-1px); }
.btn-small { padding: .45rem 1rem; font-size: .92rem; border-radius: 10px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--lavender); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--brand); }
.link { font-weight: 600; color: var(--brand); text-decoration: underline; text-decoration-color: var(--brand-deep); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Hero */
.hero { background: radial-gradient(800px 420px at 90% -5%, rgba(255, 155, 69, .22), transparent 62%), radial-gradient(rgba(154, 150, 196, .22) 1px, transparent 1.5px) 0 0 / 28px 28px, var(--bg); padding: clamp(2.5rem, 7vw, 5.5rem) 0; }
.hero-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
.hero h1 { max-width: 16ch; }
.hero h1 em, .page-hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { color: var(--muted); max-width: 58ch; font-size: 1.15rem; }
.hero-art { width: 100%; max-width: 560px; margin-inline: auto; border-radius: var(--radius); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.eyebrow { color: var(--brand); font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; margin-bottom: .8rem; }

.page-hero { background: radial-gradient(700px 340px at 95% 0%, rgba(255, 155, 69, .2), transparent 62%), var(--surface-2); border-bottom: 1px solid var(--line); padding: clamp(2rem, 6vw, 4.5rem) 0; margin-top: -4.4rem; padding-top: calc(clamp(2rem, 6vw, 4.5rem) + 4.4rem); }
.page-hero-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
.page-hero h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); max-width: 24ch; }
.page-hero .lead { color: var(--muted); max-width: 62ch; font-size: 1.12rem; }
.page-art { width: 100%; max-width: 460px; margin-inline: auto; border-radius: var(--radius); }
.crumbs { font-family: var(--mono); font-size: .82rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { color: var(--brand); }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.alt { background: var(--bg-alt); }
.two-col { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.muted { color: var(--muted); }
.notice { border-left: 4px solid var(--brand); background: rgba(255, 155, 69, .12); color: var(--text); padding: .8rem 1rem; border-radius: 6px; }

.area-grid { display: grid; gap: 1.3rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
.area { background: linear-gradient(160deg, var(--surface), var(--bg-alt)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s ease, transform .2s ease; }
.area:hover { border-color: var(--brand); transform: translateY(-2px); }
.area-art { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.area-body { padding: 1.3rem 1.5rem 1.5rem; }
.area-num { font-family: var(--mono); font-size: .95rem; font-weight: 700; color: var(--brand); margin: 0 0 .2rem; }
.area h3 a { text-decoration: none; }
.area h3 a:hover { color: var(--brand); }

/* Remote Object Control: sekcja z DOMINUJĄCYM pomarańczem */
.roc { background: radial-gradient(700px 380px at 85% 10%, rgba(255, 210, 168, .55), transparent 62%), linear-gradient(135deg, var(--brand), var(--brand-deep)); color: var(--on-brand); padding: clamp(3.2rem, 8vw, 6.5rem) 0; }
.roc h2, .roc h3 { color: var(--on-brand); }
.roc-top { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
.roc-pill { display: inline-block; font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; background: var(--on-brand); color: var(--brand); padding: .35rem .9rem; border-radius: 999px; margin: 0 0 1rem; }
.roc-title { font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.02; margin-bottom: .3em; }
.roc-claim { font-size: clamp(1.4rem, 3.2vw, 2.1rem); font-weight: 700; color: var(--on-brand); margin: 0 0 1rem; text-decoration: underline; text-decoration-color: rgba(29, 28, 40, .35); text-decoration-thickness: 4px; text-underline-offset: 8px; }
.roc-lead { font-size: 1.12rem; max-width: 56ch; }
.roc-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.roc .btn { background: var(--on-brand); color: var(--peach); border-color: var(--on-brand); }
.roc .btn:hover { background: var(--surface); border-color: var(--surface); }
.roc .btn-ghost { background: transparent; color: var(--on-brand); border-color: var(--on-brand); }
.roc .btn-ghost:hover { background: rgba(29, 28, 40, .14); }
.roc-visual { position: relative; }
.roc-art { width: 100%; max-width: 560px; margin-inline: auto; border-radius: 22px; box-shadow: 0 28px 60px rgba(29, 28, 40, .45), 0 0 0 6px rgba(29, 28, 40, .16); }
.roc-flow { list-style: none; counter-reset: f; display: flex; flex-wrap: wrap; gap: .6rem .4rem; align-items: center; padding: 0; margin: 2.6rem 0 1.4rem; }
.roc-flow li { counter-increment: f; background: rgba(29, 28, 40, .9); color: var(--ink); border-radius: 999px; padding: .5rem 1.1rem; font-family: var(--mono); font-size: .85rem; font-weight: 600; }
.roc-flow li + li::before { content: "\2192"; color: var(--brand); margin-right: .7rem; }
.roc-tiles { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; grid-template-columns: 1fr; }
.roc-tiles li { background: rgba(29, 28, 40, .9); color: var(--text); border-radius: 16px; padding: 1.1rem 1.2rem; display: grid; gap: .25rem; align-content: start; border: 1px solid rgba(255, 155, 69, .35); }
.roc-tiles strong { color: var(--ink); font-size: 1.05rem; }
.roc-tiles span { font-size: .95rem; color: var(--muted); }
.roc-tiles .roc-n { font-family: var(--mono); font-weight: 700; color: var(--brand); font-size: 1.4rem; }

/* Usługi: kafle w stylu limonfy (ikona, etykieta mono, nagłówek, opis, link) */
.svc-grid { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 1.3rem; grid-template-columns: 1fr; }
.svc-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.7rem 1.7rem 1.5rem; display: flex; flex-direction: column; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.svc-card:hover, .svc-card:focus-within { border-color: var(--brand); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(255, 155, 69, .14); }
.svc-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; margin-bottom: 1.6rem; }
.svc-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc-label { font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--brand); margin: 0 0 .7rem; }
.svc-card h3 { font-size: 1.35rem; line-height: 1.28; margin-bottom: .8rem; }
.svc-text { color: var(--muted); font-size: .98rem; line-height: 1.7; }
.svc-link { margin-top: auto; padding-top: 1rem; color: var(--ink); font-weight: 700; text-decoration: none; }
.svc-link::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.svc-link:hover { color: var(--brand); }

.cards { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
.card { background: linear-gradient(160deg, var(--surface), var(--bg-alt)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--brand); }
.badge { display: inline-block; font-family: var(--mono); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; background: rgba(255, 155, 69, .16); color: var(--peach); border: 1px solid rgba(255, 155, 69, .45); border-radius: 999px; padding: .15rem .65rem; margin-bottom: .6rem; }

.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0 0; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1.1rem; background: var(--surface); font-weight: 600; color: var(--ink); }

.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 1.6rem; position: relative; margin-bottom: .6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .6em; width: .7rem; height: .7rem; border-radius: 3px; background: var(--brand); }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
.steps li { counter-increment: s; border-top: 3px solid var(--brand); padding-top: .8rem; display: grid; gap: .3rem; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); color: var(--brand); font-weight: 700; }
.steps strong { font-size: 1.15rem; color: var(--ink); }
.steps span { color: var(--muted); }


/* Forms */
.lead-form { display: grid; gap: 1rem; }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); padding: .75rem .9rem; border: 1px solid #6a668c; border-radius: 10px; background: var(--surface); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); }
.field.check { grid-template-columns: auto 1fr; align-items: start; gap: .7rem; }
.field.check input { width: 1.2rem; height: 1.2rem; margin-top: .25rem; accent-color: var(--brand); }
.field.check label { font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note, .form-service { font-size: .9rem; color: var(--muted); margin: 0; }
.errors { border: 1px solid var(--salmon); background: rgba(245, 138, 91, .14); color: var(--ink); border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1.5rem; }
.contact { background: var(--bg-alt); }

/* Footer */
.site-footer { background: var(--surface-2); color: var(--text); padding: 3rem 0 1.5rem; font-size: .95rem; border-top: 3px solid var(--brand); }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.footer-brand { font-weight: 700; letter-spacing: .08em; color: var(--ink); }
.footer-head { font-weight: 700; color: var(--brand); font-family: var(--mono); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1rem; font-size: .85rem; color: var(--muted); }
address { font-style: normal; }

/* Akcenty graficzne w tle (dekoracyjne SVG, bez wpływu na treść; pointer-events: none) */
.hero, .page-hero, .section, .roc, .site-footer { position: relative; overflow: hidden; isolation: isolate; }
.hero > .wrap, .page-hero > .wrap, .section > .wrap, .roc > .wrap, .site-footer > .wrap { position: relative; z-index: 1; }
.hero::before, .page-hero::before, .section::before, .section::after, .roc::before, .roc::after, .site-footer::before { content: ""; position: absolute; pointer-events: none; z-index: 0; background-repeat: no-repeat; }
/* hero: sieć węzłów + poświata */
.hero::before { right: -90px; top: -40px; width: 680px; height: 560px; background-image: url("/img/bg/bg-network.svg"); background-size: contain; opacity: .55; }
.hero::after { content: ""; position: absolute; pointer-events: none; z-index: 0; left: -160px; bottom: -220px; width: 560px; height: 560px; background: url("/img/bg/bg-glow.svg") no-repeat center / contain; }
.page-hero::before { right: -120px; top: -60px; width: 520px; height: 520px; background-image: url("/img/bg/bg-rings.svg"); background-size: contain; opacity: .5; }
/* sekcje: siatka plusów + pierścienie / poświata naprzemiennie */
.section::before { inset: 0; background-image: url("/img/bg/bg-plus.svg"); background-repeat: repeat; opacity: .6; -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000 100%); mask-image: linear-gradient(90deg, transparent 40%, #000 100%); }
.section.alt::before { -webkit-mask-image: linear-gradient(270deg, transparent 40%, #000 100%); mask-image: linear-gradient(270deg, transparent 40%, #000 100%); }
.section::after { right: -200px; bottom: -220px; width: 520px; height: 520px; background-image: url("/img/bg/bg-rings.svg"); background-size: contain; opacity: .28; }
.section.alt::after { right: auto; left: -220px; top: -200px; bottom: auto; background-image: url("/img/bg/bg-glow.svg"); opacity: 1; }
.contact::after { background-image: url("/img/bg/bg-network.svg"); opacity: .3; right: -120px; width: 640px; height: 520px; }
/* ROC: ciemne pierścienie na pomarańczu */
.roc::before { left: -180px; top: -200px; width: 560px; height: 560px; background: url("/img/bg/bg-rings.svg") no-repeat center / contain; opacity: .22; filter: brightness(.15); }
.roc::after { right: -120px; bottom: -160px; width: 480px; height: 480px; background: url("/img/bg/bg-rings.svg") no-repeat center / contain; opacity: .16; filter: brightness(.15); }
/* stopka: ścieżki obwodu */
.site-footer::before { right: 0; bottom: 0; width: 800px; max-width: 100%; height: 300px; background-image: url("/img/bg/bg-circuit.svg"); background-position: right bottom; background-size: contain; opacity: .45; }

/* Logotypy partnerów: jasne kafelki, by znaki firm (często na białym/niebieskim) były czytelne i nieprzekolorowane */
.partners { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.partner-groups { display: grid; gap: 2rem; margin-top: 1.6rem; grid-template-columns: 1fr; }
.partner-group { background: linear-gradient(160deg, var(--surface), var(--bg-alt)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.partner-group h3 { color: var(--brand); font-size: 1.1rem; margin-bottom: .3rem; }
.partner-group > .muted { margin-bottom: 0; font-size: .95rem; }
.partner { background: var(--ink); border-radius: 14px; min-height: 104px; display: flex; align-items: center; justify-content: center; padding: 1.1rem 1.3rem; border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.partner:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255, 155, 69, .18); }
.partner img { max-width: 100%; max-height: 68px; width: auto; height: auto; object-fit: contain; }
@media (min-width: 900px) { .partner-groups { grid-template-columns: 1fr 1fr; } }
.partner-dark { background: var(--bg); border-color: var(--lavender); }

/* Podstrony: panele, korzyści, scenariusze, FAQ, CTA (spójne ze stroną główną) */
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.page-art { border-radius: 0; box-shadow: none; max-width: 100%; }
.page-hero-roc { background: radial-gradient(700px 380px at 90% 0%, rgba(255, 210, 168, .55), transparent 62%), linear-gradient(135deg, var(--brand), var(--brand-deep)); color: var(--on-brand); border-bottom: 0; }
.page-hero-roc h1, .page-hero-roc .eyebrow, .page-hero-roc .lead, .page-hero-roc .crumbs, .page-hero-roc .crumbs a { color: var(--on-brand); }
.page-hero-roc .btn { background: var(--on-brand); color: var(--peach); border-color: var(--on-brand); }
.page-hero-roc .btn:hover { background: var(--surface); border-color: var(--surface); }
.page-hero-roc .btn-ghost { background: transparent; color: var(--on-brand); border-color: var(--on-brand); }
.page-hero-roc .btn-ghost:hover { background: rgba(29, 28, 40, .14); }
.page-hero-roc .pwin { box-shadow: 0 24px 54px rgba(29, 28, 40, .45), 0 0 0 6px rgba(29, 28, 40, .16); }

.duo { display: grid; gap: 1.3rem; grid-template-columns: 1fr; }
.panel { background: linear-gradient(160deg, var(--surface), var(--bg-alt)); border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem; }
.panel h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.panel-label { font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--brand); margin: 0 0 .6rem; }
.panel-problem { border-left: 4px solid var(--salmon); }
.panel-solution { border-left: 4px solid var(--brand); }
.panel-form { border-top: 4px solid var(--brand); }
.panel .notice { margin-top: 1rem; }

.benefits { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .8rem; }
.benefits li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem 1rem 3.2rem; }
.benefits li::before { content: "\2713"; position: absolute; left: 1rem; top: .95rem; width: 1.6rem; height: 1.6rem; border-radius: 8px; background: var(--surface-2); color: var(--brand); font-weight: 700; display: grid; place-items: center; font-size: .95rem; }

.scn-grid { list-style: none; counter-reset: scn; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
.scn { counter-increment: scn; background: linear-gradient(160deg, var(--surface), var(--bg-alt)); border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem 1.4rem; color: var(--text); }
.scn::before { content: counter(scn, decimal-leading-zero); display: block; font-family: var(--mono); font-weight: 700; font-size: 1.3rem; color: var(--brand); margin-bottom: .5rem; }

.steps-cards li { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 14px; padding: 1rem 1.1rem 1.2rem; }

.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .2rem 1.3rem; margin-bottom: .8rem; }
.faq[open] { border-color: var(--brand); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-family: var(--mono); font-size: 1.4rem; line-height: 1; }
.faq[open] summary::after { content: "\2212"; }
.faq p { margin: 0 0 1.1rem; color: var(--text); }

.cta-band { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: var(--on-brand); padding: clamp(2.2rem, 5vw, 3.6rem) 0; }
.cta-inner { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; justify-content: space-between; }
.cta-band h2 { color: var(--on-brand); margin-bottom: .3rem; }
.cta-band p { margin: 0; }
.cta-band .btn { background: var(--on-brand); color: var(--peach); border-color: var(--on-brand); }
.cta-band .btn:hover { background: var(--surface); border-color: var(--surface); }

/* Wzorzec: limonfy.com/rozwiazania/guard (pasek postępu, okno produktu, pasek tagów, tabela porównania, moduły) */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 80; background: transparent; pointer-events: none; }
.progress::after { content: ""; position: absolute; inset: 0; background: var(--brand); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); }

.pwin { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 24px 54px rgba(20, 19, 29, .5); width: 100%; max-width: 520px; margin-inline: auto; }
.pwin-bar { display: flex; justify-content: space-between; align-items: center; padding: .7rem 1.1rem; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.pwin-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(255, 155, 69, .25); }
.pwin-foot { margin: 0; padding: .6rem 1.1rem; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pwin .page-art { display: block; width: 100%; }

.tagbar { background: var(--brand); color: var(--on-brand); overflow: hidden; display: flex; white-space: nowrap; border-block: 1px solid var(--brand-deep); }
.tagbar-track { display: flex; flex: none; list-style: none; margin: 0; padding: .8rem 0; animation: tagscroll 38s linear infinite; font-family: var(--mono); font-size: .85rem; font-weight: 600; }
.tagbar-track li { padding: 0 1.4rem; }
.tagbar-track li::before { content: "\25CF"; margin-right: 1.4rem; font-size: .6rem; vertical-align: middle; }
.tagbar:hover .tagbar-track { animation-play-state: paused; }
@keyframes tagscroll { to { transform: translateX(-100%); } }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 2rem; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--bg-alt); }
.compare th { text-align: left; font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; padding: 1rem 1.3rem; }
.compare th:first-child { background: var(--surface-2); color: var(--muted); }
.compare th:last-child { background: var(--brand); color: var(--on-brand); }
.compare td { padding: 1rem 1.3rem; border-top: 1px solid var(--line); vertical-align: top; width: 50%; }
.compare td:first-child { color: var(--muted); }
.compare td:last-child { color: var(--ink); font-weight: 500; position: relative; padding-left: 2.6rem; }
.compare td:last-child::before { content: "\2713"; position: absolute; left: 1.2rem; color: var(--brand); font-weight: 700; }

.modules { list-style: none; counter-reset: mod; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
.module { counter-increment: mod; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 3.6rem 1.4rem 1.4rem; color: var(--text); line-height: 1.6; transition: border-color .2s ease, transform .2s ease; }
.module:hover { border-color: var(--brand); transform: translateY(-2px); }
.module::before { content: counter(mod, decimal-leading-zero); position: absolute; left: 1.4rem; top: 1.2rem; width: 2.4rem; height: 2.4rem; border-radius: 10px; background: var(--surface-2); color: var(--brand); font-family: var(--mono); font-weight: 700; display: grid; place-items: center; }

.section.band { background: radial-gradient(600px 300px at 10% 0%, rgba(255, 155, 69, .12), transparent 60%), var(--surface-2); }
.section.band .steps-cards li { background: var(--surface); }
.section.band .panel { background: var(--surface); }
.scn-list { list-style: none; counter-reset: scn; padding: 0; margin: 1rem 0 0; display: grid; gap: .8rem; }
.scn-list .scn { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.2rem; }
.scn-list .scn::before { margin: 0; flex: none; }

.cta-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
.next-steps { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; gap: .8rem; }
.next-steps li { display: flex; gap: 1rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1.1rem; font-weight: 600; color: var(--ink); }
.next-steps span { font-family: var(--mono); color: var(--brand); font-weight: 700; }
.contact-line { color: var(--muted); }
.contact-line a { color: var(--brand); font-weight: 600; }

/* Pojawianie się przy przewijaniu (klasy dodaje JS; bez JS treść jest widoczna) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .tagbar-track { animation: none; } .tagbar { overflow-x: auto; } }

/* Tablet */
@media (min-width: 768px) { .modules { grid-template-columns: repeat(2, 1fr); } .duo { grid-template-columns: 1fr 1fr; } .scn-grid { grid-template-columns: repeat(2, 1fr); } .svc-grid { grid-template-columns: repeat(2, 1fr); } .roc-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cta-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; } .roc-top { grid-template-columns: 1.05fr .95fr; gap: 3.5rem; } }
@media (min-width: 1100px) { .modules { grid-template-columns: repeat(3, 1fr); } .scn-grid { grid-template-columns: repeat(4, 1fr); } .svc-grid { grid-template-columns: repeat(3, 1fr); } .roc-tiles { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 768px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 3rem; }
  .page-hero-grid { grid-template-columns: 1.3fr .7fr; gap: 3rem; }
}
@media (min-width: 1024px) {
  .area-grid { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* Nawigacja z rozwijanymi podmenu */
.nav-list { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link, .nav-item > a:not(.btn) { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .8rem; border-radius: 10px; color: var(--text); text-decoration: none; font: inherit; font-size: .98rem; font-weight: 500; background: none; border: 0; cursor: pointer; }
.nav-link:hover, .nav-item > a:not(.btn):hover, .has-sub.open > .nav-link, .nav-link[aria-current], .nav-item > a[aria-current="page"] { color: var(--brand); background: rgba(255, 155, 69, .1); }
.nav-item-roc > a { color: var(--brand); font-weight: 700; }
.sub-toggle::after { content: ""; width: .42rem; height: .42rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s ease; }
.has-sub.open > .sub-toggle::after { transform: rotate(225deg) translateY(-2px); }
.nav a.btn, .nav a.btn:hover { color: var(--on-brand); }
.nav-toggle { display: none; background: transparent; color: var(--ink); border: 1px solid var(--brand); border-radius: 8px; padding: .45rem .8rem; font: inherit; }

.subnav { position: absolute; top: 100%; left: -.6rem; padding-top: .7rem; display: none; z-index: 60; }
.subnav-right { left: auto; right: -.6rem; }
.subnav-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: .6rem; box-shadow: 0 24px 56px rgba(20, 19, 29, .6); display: grid; gap: .15rem; width: 380px; }
.subnav-cols { grid-template-columns: 1fr 1fr; width: 700px; }
.subnav-company .subnav-panel { width: 300px; }
.sub-link { display: grid; grid-template-columns: auto 1fr; column-gap: .8rem; row-gap: .1rem; align-items: center; padding: .65rem .75rem; border-radius: 12px; text-decoration: none; color: var(--ink); }
.sub-link:hover, .sub-link:focus-visible { background: var(--surface-2); }
.sub-ico { grid-row: span 2; width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; }
.sub-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sub-num { font-family: var(--mono); font-weight: 700; font-size: .85rem; color: var(--brand); }
.sub-title { font-weight: 600; font-size: .98rem; line-height: 1.25; }
.sub-desc { color: var(--muted); font-size: .82rem; line-height: 1.35; grid-column: 2; }
.subnav-company .sub-link { grid-template-columns: 1fr; }
.subnav-company .sub-desc { grid-column: 1; }

@media (min-width: 901px) {
  html:not(.js) .has-sub:hover > .subnav, html:not(.js) .has-sub:focus-within > .subnav, .js .has-sub.open > .subnav { display: block; }
}
@media (max-width: 1100px) and (min-width: 901px) { .subnav-cols { width: 560px; } }

/* Menu mobilne (bez JS nawigacja i podmenu są zawsze rozwinięte) */
@media (max-width: 900px) {
  .header-row { flex-wrap: wrap; padding-block: .6rem; }
  .nav { width: 100%; }
  .nav-list { flex-direction: column; align-items: stretch; gap: .15rem; padding: .5rem 0 1rem; }
  .nav-link, .nav-item > a:not(.btn) { width: 100%; justify-content: space-between; padding: .7rem .6rem; }
  .nav-item > a.btn { display: block; text-align: center; margin-top: .4rem; }
  .js .nav-toggle { display: inline-block; }
  .js .nav { display: none; }
  .js .nav.open { display: block; }
  .subnav { position: static; display: block; padding: 0 0 .4rem .5rem; }
  .js .subnav { display: none; }
  .js .has-sub.open > .subnav { display: block; }
  .subnav-panel, .subnav-cols, .subnav-company .subnav-panel { width: auto; grid-template-columns: 1fr; box-shadow: none; border: 0; background: transparent; padding: 0; }
}

@media (max-width: 640px) { .compare td { display: block; width: auto; } .compare thead { display: none; } .compare td:first-child { border-top: 1px solid var(--line); padding-bottom: .2rem; } .compare td:last-child { border-top: 0; padding-top: .2rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Strony prawne */
.legal h2 { font-size: 1.25rem; margin-top: 2.2rem; text-transform: none; letter-spacing: 0; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .6rem; }

/* Audyt responsywności: większe cele dotykowe na urządzeniach dotykowych */
@media (pointer: coarse) {
  .crumbs a, .site-footer a { display: inline-block; padding: .55rem 0; }
}
