/* ŹRÓDŁO PRAWDY: DESIGN.md i BRAND.md. Zmieniasz token tutaj → zmień go też tam.
   Layout: jasna strona zbudowana z kafli, ciemne tylko kafle wyróżnione i zamknięcie (kontakt, stopka). W hero stos kafli w 3D. */
:root {
  /* marka: granat, błękit królewski i cyjan z logo QMALA.PL (BRAND.md) */
  --brand-navy: #0B1626;
  --brand-blue: #2350C4;
  --brand-cyan: #2FE3F2;
  --brand-ice: #93CFE2;
  --bg: #F2F5F9;
  --surface: #FFFFFF;
  --ink: #0B1626;
  --ink-2: #55637A;
  --line: #D9E0EA;
  --link: #1F4BC2;
  /* akcja: błękit marki na jasnym tle, cyjan na ciemnym. Tylko CTA. */
  --action: var(--brand-blue);
  --action-hover: #2E61DD;
  --action-ink: #FFFFFF;
  /* noc: kafle wyróżnione, kontakt, stopka. Granat z tła logo. */
  --night: #060F1D;
  --night-2: #0F1B2C;
  --night-line: #223250;
  --night-ink: #F1F5FA;
  --night-ink-2: #9DB0C6;
  --lamp: #37D067;
  --shadow: rgba(11, 22, 38, .16);
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-0: .875rem; --fs-1: 1.0625rem; --fs-2: 1.25rem; --fs-3: 1.5rem;
  --fs-4: clamp(2rem, 4.4vw, 3.25rem); --fs-5: clamp(2.6rem, 7.2vw, 5.25rem);
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 48px; --s-6: 72px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(64px, 10vw, 128px);
  --r-tile: 24px; --r-field: 14px; --r-pill: 999px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08111E; --surface: #0F1B2C; --ink: #F1F5FA; --ink-2: #9DB0C6; --line: #223250; --link: #8FB4FF;
    --action: var(--brand-cyan); --action-hover: #7BEEF7; --action-ink: #06101D;
    --night: #040B16; --shadow: rgba(0, 0, 0, .5); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08111E; --surface: #0F1B2C; --ink: #F1F5FA; --ink-2: #9DB0C6; --line: #223250; --link: #8FB4FF;
  --action: var(--brand-cyan); --action-hover: #7BEEF7; --action-ink: #06101D;
  --night: #040B16; --shadow: rgba(0, 0, 0, .5); color-scheme: dark;
}
/* na ciemnych powierzchniach akcja jest cyjanowa (jak „.PL” w logo) */
.night, .tile-night, .quote, .foot, .dock, .lb { --action: var(--brand-cyan); --action-hover: #7BEEF7; --action-ink: #06101D; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-1)/1.55 var(--font-body); font-variant-numeric: tabular-nums; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: var(--fs-5); line-height: .98; }
h2 { font-size: var(--fs-4); line-height: 1.04; }
h3 { font-size: var(--fs-3); line-height: 1.15; font-weight: 600; letter-spacing: -.015em; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }
.night :focus-visible { outline-color: var(--action); }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--sec); }
.sec[id] { scroll-margin-top: 80px; }
.night { background: var(--night); color: var(--night-ink); }
.sec-head { display: grid; gap: var(--s-2); margin-bottom: var(--s-5); max-width: 46rem; }
.sec-head p { color: var(--ink-2); font-size: var(--fs-2); line-height: 1.45; }
.night .sec-head p { color: var(--night-ink-2); }

/* przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  font: 600 var(--fs-1)/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--action); color: var(--action-ink); box-shadow: 0 10px 30px -12px var(--action); }
.btn-primary:hover { background: var(--action-hover); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.night .btn-ghost { border-color: var(--night-line); color: var(--night-ink); }
.night .btn-ghost:hover { border-color: var(--night-ink); }
.btn-dark { background: var(--night); color: var(--night-ink); }
.btn-dark:hover { transform: translateY(-2px); }

/* NAVBAR — jasna belka, position: fixed, STAŁA wysokość 68 px. Przy przewijaniu pojawia się tylko linia. */
.nav {
  position: fixed; z-index: 60; left: 0; right: 0; top: 0; padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-in { position: relative; display: flex; align-items: center; gap: var(--s-2); height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand picture { display: block; }
.brand img { display: block; height: 50px; width: auto; }
.brand-q { display: none !important; }
.nav-links { display: flex; gap: 2px; padding: 4px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); }
.nav-links a {
  padding: 8px 16px; border-radius: var(--r-pill); text-decoration: none; font-weight: 500; font-size: 1rem; white-space: nowrap;
  color: var(--ink-2); transition: color .15s, background-color .15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="true"], .nav-links a[aria-current="page"] { color: var(--ink); background: var(--bg); }
.nav-call { min-height: 44px; padding: 0 18px; box-shadow: none; margin-left: var(--s-1); }
.nav-toggle { display: none; }
@media (max-width: 1180px) { .nav-call .num { display: none; } }
@media (max-width: 1180px) { .brand img { height: 44px; } .nav-in { gap: 8px; } .nav-links a { padding-inline: 11px; } .nav-call { margin-left: 0; } }
/* menu zwija się poniżej 1020 px (ta sama wartość w site.js), żeby zmieściło 6 pozycji z „Zatrudniamy” */
@media (max-width: 1020px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px;
    border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
    font: 600 1rem/1 var(--font-body); cursor: pointer;
  }
  .nav-in { gap: 8px; }
  .nav-links {
    position: absolute; left: var(--gutter); right: var(--gutter); top: 72px; flex-direction: column; gap: 0; padding: 8px;
    border-radius: 22px; box-shadow: 0 24px 50px -24px var(--shadow);
  }
  .nav-links[hidden] { display: none; }
  .nav-links a { padding: 15px 16px; font-size: var(--fs-2); color: var(--ink); border-radius: 14px; }
}
@media (max-width: 460px) { .brand img { height: 38px; } .nav-call { padding: 0 14px; } .nav-call svg { display: none; } .nav-toggle { padding: 0 13px; } }
@media (max-width: 380px) { .brand-full { display: none !important; } .brand-q { display: block !important; } }
@media (min-width: 1021px) { .nav-links[hidden] { display: flex !important; } }

/* HERO — ten sam język co reszta: jasne tło, kafle. Stos kafli w 3D po prawej. */
.hero { position: relative; overflow-x: clip; padding: calc(68px + env(safe-area-inset-top, 0px) + clamp(36px, 7vw, 96px)) 0 clamp(56px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: var(--s-6); align-items: center; }
.hero-copy { display: grid; gap: var(--s-3); min-width: 0; }
.hero-copy .lede { font-size: clamp(1.15rem, 1.9vw, 1.35rem); line-height: 1.45; color: var(--ink-2); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s-1); }
.hero-note { color: var(--ink-2); font-size: 1rem; }
.hero-note a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; }
.stack-scene { perspective: 1500px; min-width: 0; }
.stack { --rx: 7deg; --ry: -16deg; position: relative; height: 510px; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.stack .tile { position: absolute; transition: none; box-shadow: 0 40px 70px -40px var(--shadow); }
.stack .tile::before { display: none; }
.s-a { left: 10%; top: 0; width: 84%; min-height: 360px; transform: translateZ(0); align-content: start; gap: var(--s-3); }
.s-b { left: 0; bottom: 0; width: 50%; transform: translateZ(90px); gap: 6px; }
.s-c { right: -2%; bottom: 38px; width: 48%; transform: translateZ(160px); gap: 6px; }
.trust { display: grid; gap: 14px; font-size: var(--fs-2); font-weight: 500; line-height: 1.3; }
.trust li { display: flex; gap: 12px; align-items: flex-start; }
.trust svg { width: 22px; height: 22px; color: var(--action); flex: none; margin-top: 2px; }
.big { font: 700 clamp(3rem, 5vw, 4.25rem)/1 var(--font-display); letter-spacing: -.04em; }
.lamp-row { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.lamp-row i { width: 9px; height: 9px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lamp) 25%, transparent); flex: none; }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .stack { height: auto; transform: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stack .tile { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; min-height: 0; transform: none; box-shadow: none; }
  .s-a { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .hero-actions .btn { flex: 1 1 100%; } .trust { font-size: var(--fs-1); } }

/* KAFLE — wspólna baza dla oferty i realizacji */
.tile {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 0%;
  position: relative; display: grid; align-content: start; gap: var(--s-2); min-width: 0;
  padding: clamp(22px, 2.6vw, 34px); border-radius: var(--r-tile);
  background: var(--surface); border: 1px solid var(--line);
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s, border-color .25s;
}
.tile::before { /* światło za kursorem */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(380px circle at var(--mx) var(--my), color-mix(in srgb, var(--action) 22%, transparent), transparent 65%);
}
.tile.is-live { box-shadow: 0 30px 60px -34px var(--shadow); border-color: color-mix(in srgb, var(--ink) 22%, var(--line)); transition: transform .06s linear, box-shadow .25s, border-color .25s; }
.tile.is-live::before { opacity: 1; }
.tile > * { transform: translateZ(0); position: relative; }
.tile .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--bg); color: var(--ink); transform: translateZ(34px); }
.tile .ico svg { width: 26px; height: 26px; }
.tile h3 { transform: translateZ(22px); }
.tile p { color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-1); }
.chips li { padding: 7px 13px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: var(--fs-0); line-height: 1.3; font-weight: 500; }
.tile-night { background: var(--night-2); border-color: var(--night-line); color: var(--night-ink); }
.tile-night p { color: var(--night-ink-2); }
.tile-night .ico { background: var(--action); color: var(--action-ink); }
.tile-night .chips li { border-color: var(--night-line); }
.tile-cta { background: var(--action); border-color: var(--action); color: var(--action-ink); align-content: space-between; }
.tile-cta p { color: var(--action-ink); opacity: .8; }
.tile-cta::before { display: none; }
.tile-cta .btn-dark { background: var(--action-ink); color: var(--action); }

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-2); }
.c-7 { grid-column: span 7; } .c-5 { grid-column: span 5; } .c-4 { grid-column: span 4; } .c-8 { grid-column: span 8; }
@media (max-width: 960px) { .c-7, .c-5, .c-8 { grid-column: span 12; } .c-4 { grid-column: span 6; } .bento .c-4:nth-of-type(5) { grid-column: span 12; } }
@media (max-width: 620px) { .bento > * { grid-column: span 12 !important; } }

/* REALIZACJE */
.feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.feat .tile { min-height: 250px; align-content: space-between; }
.feat .yr { font: 600 var(--fs-0)/1 var(--font-body); color: var(--action); }
.feat h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); font-weight: 700; }
@media (max-width: 900px) { .feat { grid-template-columns: minmax(0, 1fr); } .feat .tile { min-height: 0; gap: var(--s-4); } }
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-5); margin-top: var(--s-5); }
.works li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: var(--s-2); padding-block: 14px; border-top: 1px solid var(--line); }
.works b { color: var(--ink-2); font-weight: 500; overflow-wrap: anywhere; }
.works span { display: block; color: var(--ink-2); font-size: var(--fs-0); }
.works strong { font-weight: 600; }
@media (max-width: 760px) { .works { grid-template-columns: minmax(0, 1fr); } }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-5); padding: clamp(22px, 3vw, 36px); border-radius: var(--r-tile); background: var(--surface); border: 1px solid var(--line); }
.cta-row p { font: 600 var(--fs-3)/1.2 var(--font-display); letter-spacing: -.015em; max-width: 24em; overflow-wrap: anywhere; }
.cta-row p small { display: block; margin-top: 8px; font: 400 var(--fs-0)/1.5 var(--font-body); letter-spacing: 0; color: var(--ink-2); }
.cta-row div { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* FIRMA */
.firm { background: var(--surface); }
.firm-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s-6); align-items: start; }
.firm-copy { display: grid; gap: var(--s-3); }
.firm-copy p { max-width: 36em; color: var(--ink-2); }
.firm-copy p.lede { font-size: var(--fs-2); line-height: 1.45; color: var(--ink); }
.firm-copy a:not(.btn) { color: var(--link); text-underline-offset: 4px; }
.firm-copy .more { margin-top: 0; }
.timeline { border-left: 2px solid var(--line); margin-left: 7px; }
.timeline li { position: relative; padding: 0 0 var(--s-4) var(--s-4); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: .5em; width: 14px; height: 14px; border-radius: 50%; background: var(--action); box-shadow: 0 0 0 5px var(--surface); }
.timeline b { display: block; font: 700 var(--fs-4)/1.05 var(--font-display); letter-spacing: -.03em; }
.timeline span { color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.facts.flat { margin-top: 0; padding-top: 0; border-top: 0; }
.facts dt { font-weight: 600; margin-bottom: 4px; }
.facts dd { color: var(--ink-2); }
@media (max-width: 900px) { .firm-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); } .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* KONTAKT */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.bigtel { display: inline-block; font: 700 var(--fs-5)/1 var(--font-display); letter-spacing: -.03em; text-decoration: none; color: var(--action); margin-top: var(--s-1); }
.bigtel:hover { color: var(--action-hover); }
.lines { display: grid; margin-top: var(--s-4); }
.line { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: var(--s-2); align-items: center; padding-block: 14px; border-top: 1px solid var(--night-line); }
.line:last-child { border-bottom: 1px solid var(--night-line); }
.line dt { color: var(--night-ink-2); }
.line dd { min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.line dd small { display: block; font-weight: 400; color: var(--night-ink-2); font-size: var(--fs-0); }
.line a { text-decoration-color: var(--night-line); text-underline-offset: 4px; }
.line a:hover { text-decoration-color: currentColor; }
.copy { min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--night-line); background: transparent; color: var(--night-ink); font: 500 var(--fs-0)/1 var(--font-body); cursor: pointer; white-space: nowrap; }
.copy:hover { border-color: var(--night-ink); }
.copy.is-done { border-color: var(--lamp); color: var(--lamp); }
/* kopiowanie na jasnym tle (podstrony) */
.panel .copy, .copy-day { border-color: var(--line); color: var(--ink); }
.panel .copy:hover, .copy-day:hover { border-color: var(--ink); }
.panel .copy.is-done, .copy-day.is-done { border-color: var(--lamp); color: var(--ink); }
.social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s-4); }
.social .btn { min-height: 46px; padding: 0 20px; }
.form { display: grid; gap: var(--s-2); padding: clamp(22px, 3vw, 36px); border-radius: var(--r-tile); background: var(--night-2); border: 1px solid var(--night-line); scroll-margin-top: 84px; }
.form h3 { font-weight: 700; }
.form > p { color: var(--night-ink-2); margin-top: -8px; }
.field { display: grid; gap: 7px; }
.field label { font-size: var(--fs-0); font-weight: 500; color: var(--night-ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: var(--r-field); border: 1.5px solid var(--night-line);
  background: var(--night); color: var(--night-ink); font: 400 var(--fs-1)/1.4 var(--font-body); color-scheme: dark;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--action); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-2); }
.form .btn { width: 100%; margin-top: 4px; }
.form .note { font-size: var(--fs-0); color: var(--night-ink-2); margin: 0; }
.form .err { color: #FF9D8A; font-size: var(--fs-0); margin: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); } }
@media (max-width: 480px) { .two { grid-template-columns: minmax(0, 1fr); } .line { grid-template-columns: minmax(0, 1fr) auto; } .line dt { grid-column: 1 / -1; margin-bottom: -10px; font-size: var(--fs-0); } }

/* STOPKA */
.foot { background: var(--night); color: var(--night-ink-2); font-size: var(--fs-0); padding-block: var(--s-4) calc(var(--s-4) + env(safe-area-inset-bottom, 0px)); }
.foot .wrap { border-top: 1px solid var(--night-line); padding-top: var(--s-4); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3) var(--s-4); }
.foot .foot-logo { grid-column: 1 / -1; }
.foot .foot-logo img { display: block; width: min(300px, 78%); height: auto; }
.foot b { display: block; color: var(--night-ink); font-weight: 600; margin-bottom: 4px; }
.foot a { text-underline-offset: 4px; }
.foot .links { display: grid; gap: 4px; justify-items: start; align-content: start; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } }

/* pasek akcji na telefonie */
.dock { display: none; }
@media (max-width: 760px) {
  .dock {
    display: flex; gap: 8px; position: fixed; z-index: 55; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    padding: 8px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--night-2) 88%, transparent);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--night-line);
    transform: translateY(140%); transition: transform .3s cubic-bezier(.2, .7, .2, 1);
  }
  .dock.is-up { transform: none; }
  .dock .btn { flex: 1; min-height: 48px; padding: 0 12px; box-shadow: none; }
  .dock .btn-ghost { color: var(--night-ink); border-color: var(--night-line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* PODSTRONY — ten sam język: jasne tło, panele jak kafle, pigułki */
.page-head { padding: calc(68px + env(safe-area-inset-top, 0px) + clamp(36px, 6vw, 80px)) 0 clamp(28px, 4vw, 48px); }
.page-head .wrap { display: grid; gap: var(--s-2); }
.page-head h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); max-width: 16em; }
.page-head p { color: var(--ink-2); font-size: var(--fs-2); line-height: 1.45; max-width: 34em; }
.page-body { padding-bottom: var(--sec); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-1); }
.jump a { padding: 9px 16px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.panel .jump a { background: var(--bg); }
.jump a:hover { border-color: var(--ink); }
.panel { display: grid; gap: var(--s-3); padding: clamp(20px, 2.6vw, 34px); border-radius: var(--r-tile); background: var(--surface); border: 1px solid var(--line); min-width: 0; scroll-margin-top: 84px; }
.panels { display: grid; gap: var(--s-2); }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px var(--s-2); }
.panel-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.12; }
.panel-head p { color: var(--ink-2); flex-basis: 100%; }
.tag { display: inline-block; padding: 5px 11px; border-radius: var(--r-pill); background: var(--bg); border: 1px solid var(--line); font-size: var(--fs-0); font-weight: 600; white-space: nowrap; justify-self: start; }
/* galeria */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.shot { display: block; padding: 0; border: 0; background: var(--line); border-radius: 16px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.shot:hover img { transform: scale(1.06); }
@media (max-width: 520px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* oferta */
.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
.offer-grid .panel { align-content: start; }
.offer-grid .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--bg); }
.offer-grid .ico svg { width: 26px; height: 26px; }
.checks { display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--lamp); }
.panel.wide { grid-column: 1 / -1; }
/* panele oferty reagują na kursor tak jak kafle na stronie głównej */
.panel.tile { gap: var(--s-3); }
.panel.tile h2 { transform: translateZ(22px); }
@media (max-width: 760px) { .offer-grid { grid-template-columns: minmax(0, 1fr); } }
/* referencje */
.refs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.ref { align-content: start; gap: var(--s-2); }
.ref .shot { aspect-ratio: 4 / 5; background: #fff; border: 1px solid var(--line); }
.ref .shot img { object-position: top; }
.ref h2 { font-size: var(--fs-2); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.ref p { color: var(--ink-2); font-size: 1rem; }
.ref blockquote { margin: 0; padding-left: 14px; border-left: 3px solid var(--action); font-weight: 500; }
@media (max-width: 900px) { .refs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .refs { grid-template-columns: minmax(0, 1fr); } }
.more { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s-4); }
.panel .more { margin-top: 0; }

/* O FIRMIE i ZATRUDNIAMY — te same panele, bez nowych motywów */
.about-head { display: grid; gap: var(--s-1); margin: var(--s-6) 0 var(--s-3); max-width: 46rem; scroll-margin-top: 92px; }
.about-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.about-head p { color: var(--ink-2); font-size: var(--fs-2); line-height: 1.45; }
.about-who { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s-5) var(--s-6); align-items: start; }
.about-who h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
@media (max-width: 900px) { .about-who { grid-template-columns: minmax(0, 1fr); } }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
.trio .panel, .steps .panel { align-content: start; gap: var(--s-2); }
.trio p, .steps p, .prose p { color: var(--ink-2); }
.prose { display: grid; gap: var(--s-2); max-width: 44em; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .trio { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.quote { margin-top: var(--s-6); background: var(--night-2); border-color: var(--night-line); color: var(--night-ink); }
.quote blockquote { margin: 0; padding-left: var(--s-3); border-left: 4px solid var(--action); font: 600 clamp(1.35rem, 2.6vw, 2rem)/1.25 var(--font-display); letter-spacing: -.015em; max-width: 28em; text-wrap: balance; }
.quote p { color: var(--night-ink-2); max-width: 40em; }
.quote .btn-ghost { border-color: var(--night-line); color: var(--night-ink); }
.quote .btn-ghost:hover { border-color: var(--night-ink); }
.data { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3) var(--s-4); }
.data dt { color: var(--ink-2); font-size: var(--fs-0); margin-bottom: 2px; }
.data dd { font-weight: 500; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.data a { color: var(--link); text-underline-offset: 4px; }
@media (max-width: 760px) { .data { grid-template-columns: minmax(0, 1fr); } }
.job-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.job-cols h3 { font-size: var(--fs-2); margin-bottom: var(--s-2); }
@media (max-width: 760px) { .job-cols { grid-template-columns: minmax(0, 1fr); } }
p.lede { font-size: var(--fs-2); line-height: 1.45; }

/* podgląd zdjęcia */
.lb { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: color-mix(in srgb, var(--night) 94%, transparent); color: var(--night-ink); padding: calc(12px + env(safe-area-inset-top, 0px)) 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
.lb-top, .lb-bot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lb-top p { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 12px 0; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 12px; min-width: min(100%, 320px); object-fit: contain; }
.lb button { min-height: 46px; padding: 0 20px; border-radius: var(--r-pill); border: 1.5px solid var(--night-line); background: var(--night-2); color: var(--night-ink); font: 600 1rem/1 var(--font-body); cursor: pointer; }
.lb button:hover { border-color: var(--night-ink); }
.lb-bot { justify-content: center; }
.lb-bot span { min-width: 5em; text-align: center; color: var(--night-ink-2); }

.lb[hidden] { display: none; }
