/* Puzzling Flooring - system wizualny "czarna guma, czerwona inkrustacja".
   Paleta wzieta z produktu: czarna guma #121214 (sekcje ciemne, drobne ziarno SVG), papier #f4f2ee (tlo), czerwien inkrustacji #d8322a
   jako jedyny akcent. Fonty lokalne: Archivo (zmienny; naglowki rozszerzone 108%, waga 800) i IBM Plex Mono (etykiety techniczne).
   Motyw puzzla: zabkowana krawedz sekcji ciemnych (.edge-top), siatka plytek w hero podstron. Tylko zwykly "-" jako myslnik. */

:root {
  --rubber: #121214;
  --rubber-2: #1b1b1f;
  --rubber-3: #26262b;
  --paper: #f4f2ee;
  --paper-2: #ebe8e1;
  --white: #ffffff;
  --ink: #121214;
  --text: #2f2f34;
  --muted: #63636a;
  --red-text: #b8291f;
  --red-light: #f0524a;
  --line: #d9d6cf;
  --red: #d8322a;
  --red-dark: #b0261f;
  --red-soft: rgba(216, 50, 42, 0.14);
  --font: "Archivo", system-ui, "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radius: 4px;
  --nav-h: 76px;
  --max: 1280px;
  --pad: clamp(1rem, 4vw, 2.5rem);
  --measure: 64ch;
  --shadow: 0 18px 50px rgba(18, 18, 20, 0.16);
  --shadow-sm: 0 4px 14px rgba(18, 18, 20, 0.08);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--paper); color: var(--text); font-family: var(--font); font-size: 1.03rem; line-height: 1.65; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); line-height: 1.02; font-weight: 800; font-stretch: 108%; letter-spacing: -0.015em; text-wrap: balance; text-transform: uppercase; }
h1 { font-size: clamp(2.4rem, 6.2vw, 5.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.15rem; font-stretch: 100%; letter-spacing: 0.02em; }
p { margin: 0 0 1rem; }
strong, b { font-weight: 700; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--red); color: #fff; padding: 0.5rem 1rem; z-index: 200; font-weight: 700; }
.skip:focus { top: 1rem; }
.container { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }

/* etykiety techniczne, indeksy, tlo gumowe */
/* male czerwone etykiety: ciemniejsza czerwien na jasnym tle i jasniejsza na ciemnym (kontrast WCAG AA 4.5:1) */
.eyebrow { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-text); display: flex; align-items: center; gap: 0.7rem; margin: 0 0 1rem; }
.dark .eyebrow, .hero .eyebrow .idx { color: var(--red-light); }
.dark .office-label { color: var(--red-light); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--red); flex: 0 0 auto; }
.eyebrow .idx { color: var(--muted); }
.idx { font-family: var(--mono); font-weight: 500; letter-spacing: 0.06em; color: var(--muted); }
.dark { background-color: var(--rubber); background-image: var(--grain); color: #c9c9cf; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark .idx { color: #8f8f98; }
.edge-top { position: relative; }
.edge-top::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: repeating-linear-gradient(90deg, var(--paper) 0 26px, transparent 26px 52px); pointer-events: none; }
.cta-band + .site-footer::before { display: none; }

/* przyciski i linki */
.btn { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1.4rem; background: var(--red); color: #fff; font-family: var(--font); font-weight: 700; font-size: 0.88rem; letter-spacing: 0.08em; text-transform: uppercase; border: 2px solid var(--red); border-radius: var(--radius); cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.btn svg, .link-arrow svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease); flex: 0 0 auto; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn:hover svg, .link-arrow:hover svg { transform: translateX(4px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.buttons { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.buttons-center { justify-content: center; margin-top: 1.6rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; color: var(--ink); border-bottom: 2px solid var(--red); padding-bottom: 0.2rem; white-space: nowrap; }
.dark .link-arrow { color: #fff; }

/* ===== naglowek ===== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 90; color: #fff; background: linear-gradient(rgba(18, 18, 20, 0.7), rgba(18, 18, 20, 0)); transition: background 0.35s, box-shadow 0.35s; }
body:not(.kind-home) .site-header, body.scrolled .site-header, body.nav-open .site-header { background: rgba(18, 18, 20, 0.94); }
body.scrolled .site-header { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 30px rgba(0, 0, 0, 0.25); backdrop-filter: blur(10px); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); height: var(--nav-h); display: flex; align-items: center; gap: 2rem; }
.nav-logo { margin-right: auto; display: flex; align-items: center; }
.nav-logo img { height: 26px; width: auto; }
.nav-menu > ul { list-style: none; display: flex; align-items: center; gap: clamp(0.4rem, 2vw, 1.8rem); }
.nav-menu a { display: block; padding: 0.5rem 0.2rem; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; position: relative; color: #fff; opacity: 0.85; transition: opacity 0.2s; }
.nav-menu a::after { content: ""; position: absolute; left: 0.2rem; right: 0.2rem; bottom: 0.05rem; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.nav-menu a:hover, .nav-menu li[data-active] a { opacity: 1; }
.nav-menu a:hover::after, .nav-menu li[data-active] a::after { transform: scaleX(1); }
.nav-cta a { border: 2px solid rgba(255, 255, 255, 0.35); padding: 0.55rem 1rem; border-radius: var(--radius); opacity: 1; transition: background 0.2s, border-color 0.2s; }
.nav-cta a::after { display: none; }
.nav-cta a:hover, .nav-cta[data-active] a { background: var(--red); border-color: var(--red); }
/* przelacznik jezykow EN / PL (naglowek i stopka) */
.nav-langs ul, .foot-langs { list-style: none; display: flex; gap: 0.15rem; }
.nav-langs a, .foot-langs a { display: block; padding: 0.35rem 0.5rem; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; color: #fff; opacity: 0.65; border: 1px solid transparent; border-radius: var(--radius); transition: opacity 0.2s, border-color 0.2s; }
.nav-langs a:hover, .foot-langs a:hover { opacity: 1; }
.nav-langs a[aria-current], .foot-langs a[aria-current] { opacity: 1; border-color: rgba(255, 255, 255, 0.35); }
.foot-right { display: flex; align-items: center; gap: 1.2rem; }
.notfound-alt { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.notfound-alt h2 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.nav-burger { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.nav-burger span { width: 26px; height: 2px; background: #fff; transition: transform 0.3s var(--ease), opacity 0.2s; }
@media (max-width: 860px) {
  .nav-burger { display: flex; }
  .nav-langs { margin-left: auto; }
  .nav-logo { margin-right: 0; }
  .nav-menu { position: fixed; inset: var(--nav-h) 0 0 0; background-color: var(--rubber); background-image: var(--grain); transform: translateX(100%); transition: transform 0.35s var(--ease); overflow: auto; padding: 1rem var(--pad) 3rem; }
  body.nav-open .nav-menu { transform: none; }
  body.nav-open { overflow: hidden; }
  .nav-menu > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-menu a { font-size: 1.7rem; font-weight: 800; font-stretch: 108%; letter-spacing: 0.02em; padding: 1rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); opacity: 1; }
  .nav-menu a::after { display: none; }
  .nav-cta a { border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding: 1rem 0; border-radius: 0; color: var(--red); }
  .nav-cta a:hover { background: transparent; }
  body.nav-open .nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ===== hero strony glownej ===== */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; background: var(--rubber); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 112%; object-fit: cover; object-position: center 45%; will-change: transform; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 18, 20, 0.35) 0%, rgba(18, 18, 20, 0.1) 40%, rgba(18, 18, 20, 0.88) 100%), linear-gradient(90deg, rgba(18, 18, 20, 0.55), transparent 65%); }
.hero-inner { position: relative; padding-top: calc(var(--nav-h) + 4rem); padding-bottom: 2.5rem; max-width: var(--max); width: 100%; margin: 0 auto; }
.hero .eyebrow { color: #fff; }
.hero h1 { color: #fff; max-width: 16ch; font-size: clamp(2.6rem, 6.4vw, 6rem); }
.hero .lede { max-width: 52ch; font-size: clamp(1rem, 1.4vw, 1.2rem); color: #e6e6ea; margin: 1.4rem 0 1.8rem; }
.facts { position: relative; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.18); margin-top: 1rem; padding: 1.4rem 0 2rem; }
.facts li { display: flex; flex-direction: column; gap: 0.2rem; }
.facts b { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 800; font-stretch: 108%; line-height: 1; color: #fff; letter-spacing: -0.02em; white-space: nowrap; }
.facts .unit { font-size: 0.55em; margin-left: 0.25em; font-weight: 600; color: var(--red); letter-spacing: 0; }
.fact-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: #a9a9b2; }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr 1fr; } .hero-inner { padding-top: calc(var(--nav-h) + 3rem); } .hero-bg img { object-position: 40% 50%; } .hero h1 { font-size: clamp(2.2rem, 11vw, 2.8rem); } }

/* ===== hero podstron ===== */
.page-hero { padding: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(2.5rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0 0 0 55%; background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(90deg, transparent, #000 45%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lede { max-width: var(--measure); font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: #c9c9cf; margin: 1.2rem 0 0; }
.page-hero .facts { grid-template-columns: repeat(3, auto); justify-content: start; gap: 2.5rem; border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 2rem; padding: 1.4rem 0 0; }

/* ===== strona glowna: trzy drzwi ===== */
.doors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.door { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--rubber); color: #fff; border-radius: var(--radius); }
.door:nth-child(2) { transform: translateY(2.5rem); }
.door-media { position: absolute; inset: 0; }
.door-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; transition: transform 0.9s var(--ease); }
.door:hover .door-media img { transform: scale(1.05); }
.door::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 18, 20, 0.05) 35%, rgba(18, 18, 20, 0.9)); }
.door-text { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 1.5rem; z-index: 1; display: flex; flex-direction: column; gap: 0.3rem; }
.door-text .idx { color: #fff; opacity: 0.7; }
.door-label { font-size: clamp(1.5rem, 2.4vw, 2.3rem); font-weight: 800; text-transform: uppercase; font-stretch: 108%; line-height: 1; letter-spacing: -0.01em; }
.door-note { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; color: #c9c9cf; text-transform: uppercase; }
.door-arrow { position: absolute; right: 1.5rem; top: 1.5rem; z-index: 1; width: 46px; height: 46px; border: 2px solid rgba(255, 255, 255, 0.45); border-radius: 50%; display: grid; place-items: center; transition: background 0.25s, border-color 0.25s; }
.door-arrow svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.door:hover .door-arrow { background: var(--red); border-color: var(--red); }
@media (max-width: 760px) { .doors-grid { grid-template-columns: 1fr; } .door, .door:nth-child(2) { aspect-ratio: 16 / 10; transform: none; } }

/* naglowki sekcji z linkiem po prawej */
.band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.2rem; }
.section-text { max-width: 52ch; color: var(--muted); margin: 0.8rem 0 0; }
.dark .section-text { color: #b5b5bd; }
@media (max-width: 600px) { .band-head { flex-direction: column; align-items: flex-start; gap: 1rem; } }

/* ===== przesuwajacy sie pas wzorow ===== */
.band-patterns { background: var(--paper-2); overflow: hidden; }
.band-patterns .band-head { max-width: var(--max); }
.marquee { display: flex; gap: 1rem; overflow: hidden; padding: 0.6rem 0 1.2rem; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 1rem; flex: 0 0 auto; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.mq-tile { flex: 0 0 210px; background: #fff; border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 0.7rem; transition: transform 0.3s var(--ease); }
.mq-tile:hover { transform: translateY(-5px); }
.mq-tile img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.mq-tile span { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
@keyframes marquee { to { transform: translateX(calc(-100% - 1rem)); } }
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; mask-image: none; -webkit-mask-image: none; } .marquee-track { animation: none; } .marquee-track[aria-hidden] { display: none; } }

/* ===== strona glowna: wybrane realizacje, partnerzy, kontakt ===== */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.feat { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--rubber); }
.feat img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.feat:hover img { transform: scale(1.04); }
.feat-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.6rem 1.2rem 1rem; background: linear-gradient(transparent, rgba(18, 18, 20, 0.85)); color: #fff; display: flex; flex-direction: column; }
.feat-cap b { font-weight: 700; text-transform: uppercase; font-size: 0.95rem; letter-spacing: 0.04em; }
.feat-cap span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; color: #c9c9cf; }
@media (max-width: 760px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .feat-grid { grid-template-columns: 1fr; } }
.logo-row { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.logo-row li { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.logo-row a { display: grid; place-items: center; aspect-ratio: 2 / 1; padding: 1.2rem; }
.logo-row img { max-height: 56px; width: auto; max-width: 100%; filter: grayscale(1); opacity: 0.75; transition: filter 0.3s, opacity 0.3s; }
.logo-row a:hover img { filter: none; opacity: 1; }
.cta-band { padding: clamp(4rem, 9vw, 7rem) 0; }
.cta-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.cta-offices { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .cta-offices { grid-template-columns: 1fr; } }

/* karta biura */
.office { display: flex; flex-direction: column; }
.office-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--red-text); margin: 0 0 0.5rem; }
.office-company { font-weight: 700; color: var(--ink); margin: 0; }
.office-addr { margin: 0; color: var(--muted); }
.office-links { display: flex; flex-direction: column; gap: 0.35rem; margin: 0.7rem 0 0; }
.office-links a { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--ink); }
.office-links a:hover { color: var(--red); }
.office-links svg { width: 1.1em; height: 1.1em; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.office-phone-label { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.08em; }
.dark .office-company, .dark .office-links a { color: #fff; }
.dark .office-addr { color: #b5b5bd; }
.dark .office-links a:hover { color: var(--red); }
.office-sm { font-size: 0.95rem; }

/* ===== realizacje ===== */
.projects { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 7vw, 6rem); }
.project { padding: 2.2rem 0; border-top: 1px solid var(--line); }
.project:first-child { border-top: 0; }
.project-head { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 1.2rem; margin-bottom: 1.3rem; }
.project-head h2 { font-size: clamp(1.4rem, 2.6vw, 2.2rem); margin: 0; }
.p-sep { color: var(--red); }
.p-place { font-weight: 500; font-stretch: 100%; color: var(--muted); text-transform: none; letter-spacing: 0; }
.p-count { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.mosaic { display: grid; gap: 0.8rem; grid-template-columns: repeat(4, 1fr); }
.mosaic-item { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); border-radius: var(--radius); }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.mosaic-item:hover img { transform: scale(1.04); }
.mosaic.n1 .mosaic-item { grid-column: span 2; }
.mosaic.n2 .mosaic-item { grid-column: span 2; }
.mosaic.n3 .mosaic-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.mosaic.n3 .mosaic-item:not(:first-child) { grid-column: span 2; }
.mosaic.n4 .mosaic-item { grid-column: span 2; }
@media (max-width: 700px) {
  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic.n3 .mosaic-item:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
  .mosaic.n3 .mosaic-item:not(:first-child), .mosaic.n2 .mosaic-item, .mosaic.n4 .mosaic-item { grid-column: span 1; }
  .project-head { grid-template-columns: auto 1fr; }
  .p-count { grid-column: 2; }
}

/* ===== wzory ===== */
.subnav { position: sticky; top: var(--nav-h); z-index: 50; background: rgba(244, 242, 238, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; display: flex; gap: 0.2rem; overflow-x: auto; scrollbar-width: none; padding: 0.35rem 0; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav li { display: flex; align-items: center; gap: 0.4rem; flex: 0 0 auto; }
.subnav a { display: block; padding: 0.7rem 0.6rem 0.6rem; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
.subnav a[aria-current], .subnav a:hover { color: var(--ink); border-color: var(--red); }
.subnav-n { font-family: var(--mono); font-size: 0.66rem; color: var(--muted); background: var(--paper-2); padding: 0.15rem 0.4rem; border-radius: 3px; margin-right: 0.6rem; }
.pgroup { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.pgroup + .pgroup { border-top: 1px solid var(--line); }
.group-title { display: flex; align-items: baseline; gap: 1rem; margin: 0 0 1.6rem; }
.group-title .idx { font-size: 1rem; }
.group-n { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); font-weight: 400; letter-spacing: 0.06em; }
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; grid-auto-flow: dense; }
.pcard { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pcard-media { padding: 1.2rem 1.2rem 0; display: flex; flex-direction: column; gap: 0.8rem; }
.pmedia { display: block; aspect-ratio: 1; }
.pmedia img { width: 100%; height: 100%; object-fit: contain; }
.pmedia.tall { aspect-ratio: 1 / 1.9; }
.pmedia.wide { aspect-ratio: 2 / 1; }
.pcard-body { padding: 1rem 1.2rem 1.3rem; margin-top: auto; }
.pcard h3 { margin: 0; font-size: 1rem; }
.author { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; margin: 0.3rem 0 0; }
.pcard.is-tall { grid-row: span 2; }
.pcard.has-text { grid-column: span 2; flex-direction: row; }
.pcard.has-text .pcard-media { flex: 0 0 46%; padding: 1.2rem 0 1.2rem 1.2rem; justify-content: center; }
.pcard.has-text .pcard-body { flex: 1; margin: 0; padding: 1.4rem; }
.pcard-text { margin-top: 0.9rem; font-size: 0.92rem; color: var(--text); }
.pcard-text p { margin: 0 0 0.7rem; }
.more summary { cursor: pointer; font-weight: 700; color: var(--red); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; list-style: none; display: inline-flex; gap: 0.4rem; margin: 0.2rem 0 0.8rem; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+"; font-weight: 800; }
.more[open] summary::before { content: "-"; }
@media (max-width: 1000px) { .pgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .pgrid { grid-template-columns: 1fr 1fr; } .pcard.has-text { flex-direction: column; } .pcard.has-text .pcard-media { padding: 1.2rem 1.2rem 0; } }
@media (max-width: 460px) { .pgrid { grid-template-columns: 1fr; } .pcard.has-text { grid-column: auto; } .pcard.is-tall { grid-row: auto; } }

/* ===== katalog: kartkowana ksiazka ===== */
.content-catalog { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 6rem); }
.content-catalog .buttons-center { display: none; }
@media (max-width: 760px) { .content-catalog .buttons-center { display: flex; } }
.book { --page-w: min(100%, calc((100vh - 12rem) / var(--r) * 2)); margin: 0 auto; max-width: 1040px; outline: none; }
.book:focus-visible { outline: 2px solid var(--red); outline-offset: 6px; }
.book-stage { position: relative; width: var(--page-w); aspect-ratio: 2 / var(--r); margin: 0 auto; perspective: 2600px; transition: transform 0.9s cubic-bezier(0.4, 0.1, 0.2, 1); touch-action: pan-y; user-select: none; }
.book-leaf { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: left center; transform-style: preserve-3d; transition: transform 0.9s cubic-bezier(0.4, 0.1, 0.2, 1); z-index: calc(var(--n) - var(--i)); cursor: pointer; }
.book-leaf.flipped { transform: rotateY(-180deg); z-index: calc(var(--i) + 1); }
.book-leaf.turning { z-index: calc(var(--n) + 10); }
.book-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #fff; overflow: hidden; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18); }
.book-face img { display: block; width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; }
.book-back { transform: rotateY(180deg); }
.book-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.16), transparent 9%); pointer-events: none; }
.book-back::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(0, 0, 0, 0.16), transparent 9%); pointer-events: none; }
.book.at-start .book-stage { transform: translateX(-25%); }
.book.at-end .book-stage { transform: translateX(25%); }
.book-bar { display: flex; align-items: center; gap: 0.4rem; margin: 1.2rem auto 0; width: var(--page-w); }
.book-spacer { flex: 1; }
.book-btn { display: inline-flex; align-items: center; gap: 0.4rem; height: 2.6rem; min-width: 2.6rem; padding: 0 0.7rem; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 700 0.78rem/1 var(--font); text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer; border-radius: var(--radius); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.book-btn:hover, .book-btn:focus-visible { background: var(--ink); color: #fff; border-color: var(--ink); }
.book-btn svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.book-count { min-width: 5.5rem; text-align: center; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em; color: var(--muted); font-variant-numeric: tabular-nums; }
.book:fullscreen { background: var(--rubber); max-width: none; margin: 0; padding: 1.2rem; display: flex; flex-direction: column; justify-content: center; }
.book:fullscreen .book-stage { --page-w: min(100%, calc((100vh - 6.5rem) / var(--r) * 2)); }
.book:fullscreen .book-bar { --page-w: 100%; }
.book:fullscreen .book-count { color: #fff; }
@media (max-width: 760px) {
  .book, .book.at-start, .book.at-end { --page-w: 100%; }
  .book-stage, .book.at-start .book-stage, .book.at-end .book-stage { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 1 / var(--r); perspective: none; transform: none; touch-action: pan-x pan-y; }
  .book-stage::-webkit-scrollbar { display: none; }
  .book-leaf, .book-leaf.flipped { display: contents; }
  .book-face, .book-back { position: relative; inset: auto; flex: 0 0 100%; scroll-snap-align: start; transform: none; backface-visibility: visible; box-shadow: none; border: 1px solid var(--line); }
  .book-face::after { display: none; }
  .book-dl span { display: none; }
}
html:not(.js) .book-stage, html:not(.js) .book.at-start .book-stage { display: grid; gap: 0.6rem; aspect-ratio: auto; transform: none; width: min(100%, 620px); }
html:not(.js) .book-leaf { display: contents; }
html:not(.js) .book-face { position: relative; inset: auto; transform: none; backface-visibility: visible; }
html:not(.js) .book-prev, html:not(.js) .book-next, html:not(.js) .book-count, html:not(.js) .book-full { display: none; }
@media (prefers-reduced-motion: reduce) { .book-stage, .book-leaf { transition: none; } }

/* ===== partnerzy ===== */
/* uklad jak "Proprietary brands" na credoinvest.com (wzor wskazany przez wlasciciela 2026-09-04): biale tlo, logo bez ramki
   i adres www z lewej (przyklejone), z prawej tytul, opis i zdjecia w rownych parach 4:3 */
.kind-partners main { background: #fff; }
.brands { padding: clamp(1rem, 3vw, 2rem) 0 clamp(3rem, 7vw, 6rem); }
.brand { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: clamp(1.5rem, 5vw, 5rem); padding: clamp(2.2rem, 4vw, 3.5rem) 0; border-top: 1px solid var(--line); }
.brand:first-child { border-top: 0; }
.brand-side-in { position: sticky; top: calc(var(--nav-h) + 2rem); display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start; }
.brand-logo { width: 100%; max-width: 200px; display: flex; align-items: center; min-height: 48px; }
.brand-logo img { max-height: 72px; width: auto; max-width: 100%; }
.brand-link { font-weight: 700; font-size: 0.82rem; letter-spacing: 0.02em; color: var(--ink); border-bottom: 2px solid transparent; transition: border-color 0.2s, color 0.2s; }
.brand-link:hover { color: var(--red-text); border-color: var(--red); }
.brand-main h2 { margin: 0.2rem 0 1rem; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.brand-text { max-width: var(--measure); }
.brand-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 1.6rem; }
.brand-photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.brand-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.brand-photo:hover img { transform: scale(1.04); }
@media (max-width: 800px) { .brand { grid-template-columns: 1fr; } .brand-side-in { position: static; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 0.6rem 1.5rem; } .brand-logo { width: auto; max-width: 200px; } }
@media (max-width: 480px) { .brand-photos { grid-template-columns: 1fr; } }

/* ===== kontakt ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 6vw, 5rem); padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.contact-offices { display: flex; flex-direction: column; gap: 2.2rem; }
.contact-form h2 { font-size: 1.6rem; margin: 0 0 1.4rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-wide { grid-column: span 2; }
.field label { display: block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.req { color: var(--red); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); background: #fff; padding: 0.85rem 1rem; font: inherit; color: var(--ink); border-radius: var(--radius); transition: border-color 0.2s, box-shadow 0.2s; }
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.4rem; }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 0; flex: 1 1 260px; }
.form-note a { text-decoration: underline; text-underline-offset: 3px; }
.form-status { margin: 0; font-weight: 600; flex-basis: 100%; }
.form-status.ok { color: #1d7a3a; }
.form-status.err { color: var(--red); }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-off { position: relative; background: #fff; padding: 2rem 2rem 2rem 5.2rem; border-radius: var(--radius); border-left: 4px solid var(--red); box-shadow: var(--shadow-sm); }
.form-off-icon { position: absolute; left: 1.6rem; top: 2rem; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; background: var(--red-soft); border-radius: 50%; }
.form-off-icon svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.form-off-title { font-weight: 700; color: var(--ink); font-size: 1.12rem; margin: 0 0 0.4rem; line-height: 1.35; }
.form-off-text { color: var(--muted); margin: 0 0 1.2rem; }
.form-off .btn { text-transform: none; letter-spacing: 0; font-size: 0.95rem; }
.form-off .btn .office-phone-label { color: #fff; margin-right: 0.2rem; }
.form-off .btn-ghost { color: var(--ink); border-color: var(--line); }
.form-off .btn-ghost .office-phone-label { color: var(--muted); }
.form-off .btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.form-off .btn-ghost:hover .office-phone-label { color: rgba(255, 255, 255, 0.7); }
@media (max-width: 520px) { .form-off { padding: 1.5rem; } .form-off-icon { position: static; margin-bottom: 1rem; } }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } .field-wide { grid-column: auto; } }

/* ===== tekst (polityka), 404 ===== */
.prose { max-width: var(--measure); padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 6rem); }
.prose h2 { font-size: 1.35rem; margin: 2.2rem 0 0.6rem; }
.prose a { color: var(--red-dark); text-decoration: underline; text-underline-offset: 3px; }
.lead { font-size: 1.15rem; }
.content-error { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 6rem); }
.hub-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.hub-list a { display: block; padding: 0.6rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.1em; background: #fff; }
.hub-list a:hover { border-color: var(--red); color: var(--red); }

/* ===== stopka ===== */
.site-footer { padding: clamp(3rem, 6vw, 5rem) 0 0; background-color: var(--rubber-2); color: #b5b5bd; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 2.5rem; padding-bottom: 2.5rem; }
.foot-brand img { height: 24px; width: auto; }
.foot-tagline { margin: 1rem 0 0; max-width: 30ch; color: #8f8f98; font-size: 0.95rem; }
.foot-nav { display: flex; flex-direction: column; gap: 0.45rem; }
.foot-nav a { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: #fff; opacity: 0.8; transition: opacity 0.2s, color 0.2s; }
.foot-nav a:hover { opacity: 1; color: var(--red); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.2rem; padding-bottom: 1.2rem; border-top: 1px solid rgba(255, 255, 255, 0.08); font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; }
.foot-copy { margin: 0; }
.consent-open { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.consent-open:hover { color: #fff; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* zgoda na analityke */
.consent { position: fixed; left: auto; right: 1rem; bottom: 1rem; z-index: 120; max-width: 460px; margin: 0; background-color: var(--rubber); background-image: var(--grain); color: #d9d9df; border-left: 4px solid var(--red); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4); padding: 1.1rem 1.3rem; display: flex; flex-wrap: wrap; gap: 0.9rem 1.5rem; align-items: center; justify-content: space-between; font-size: 0.95rem; border-radius: var(--radius); }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 320px; line-height: 1.5; }
.consent p a { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 0.6rem; }
.consent .btn { padding: 0.6rem 1.1rem; font-size: 0.8rem; }
@media (max-width: 600px) { .consent { left: 0.6rem; right: 0.6rem; bottom: 0.6rem; } }

/* do gory */
.to-top { position: fixed; right: 1rem; bottom: 1rem; width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, 0.2); background: var(--rubber-2); color: #fff; box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 0.3s, transform 0.3s, background 0.2s; z-index: 80; border-radius: var(--radius); }
.to-top:hover { background: var(--red); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(12, 12, 14, 0.95); display: grid; place-items: center; padding: 3rem 1rem; }
.lightbox figure { max-width: 100%; max-height: 100%; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.lightbox img { max-width: min(96vw, 1400px); max-height: 84vh; width: auto; height: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.lb-cap { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.08em; color: #b5b5bd; text-transform: uppercase; white-space: pre; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, 0.08); color: #fff; width: 46px; height: 46px; cursor: pointer; display: grid; place-items: center; transition: background 0.2s; border-radius: var(--radius); }
.lightbox button:hover { background: var(--red); }
.lightbox button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox[hidden] { display: none; }

/* ===== ruch: tylko pod html.js, wylaczony przy prefers-reduced-motion ===== */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease) var(--rd, 0ms), transform 0.7s var(--ease) var(--rd, 0ms); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .mosaic-item.reveal, html.js .feat.reveal, html.js .door.reveal, html.js .brand-photo.reveal { transform: none; opacity: 1; clip-path: inset(0 100% 0 0); transition: clip-path 0.5s var(--ease) var(--rd, 0ms); }
html.js .mosaic-item.reveal.in, html.js .feat.reveal.in, html.js .brand-photo.reveal.in { clip-path: inset(0 0 0 0); }
html.js .door.reveal.in { clip-path: inset(0 0 0 0); }
html.js .door:nth-child(2).reveal.in { clip-path: inset(0 0 0 0); }
html.js .project-head, html.js .group-title, html.js main .band-head h2 { opacity: 0; transform: translateX(-14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
html.js .project-head.in, html.js .group-title.in, html.js main .band-head h2.in { opacity: 1; transform: none; }
html.js .hero-inner > * { animation: rise 0.9s var(--ease) both; }
html.js .hero-inner > :nth-child(2) { animation-delay: 0.1s; }
html.js .hero-inner > :nth-child(3) { animation-delay: 0.2s; }
html.js .hero-inner > :nth-child(4) { animation-delay: 0.3s; }
html.js .hero .facts { animation: rise 0.9s var(--ease) 0.45s both; }
html.js .hero-bg img { animation: hero-zoom 1.8s var(--ease) both; }
html.js .page-hero .container > * { animation: rise 0.8s var(--ease) both; }
html.js .page-hero .container > :nth-child(2) { animation-delay: 0.08s; }
html.js .page-hero .container > :nth-child(3) { animation-delay: 0.16s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes hero-zoom { from { scale: 1.07; } to { scale: 1; } }
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .mosaic-item.reveal, html.js .feat.reveal, html.js .door.reveal, html.js .brand-photo.reveal, html.js .project-head, html.js .group-title, html.js main .band-head h2 { opacity: 1; transform: none; clip-path: none; transition: none; }
  html.js .hero-inner > *, html.js .hero .facts, html.js .hero-bg img, html.js .page-hero .container > * { animation: none; }
  .door-media img, .feat img, .mosaic-item img, .brand-photo img, .mq-tile, .pcard, .btn svg, .link-arrow svg { transition: none; }
}
/* tryb statyczny (?static=1 w adresie): zrzuty ekranu i audyt bez ruchu */
html.static .reveal, html.static .mosaic-item.reveal, html.static .feat.reveal, html.static .door.reveal, html.static .brand-photo.reveal, html.static .project-head, html.static .group-title, html.static main .band-head h2 { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
html.static .hero-inner > *, html.static .hero .facts, html.static .hero-bg img, html.static .page-hero .container > * { animation: none !important; }
html.static .marquee-track { animation: none; }
html.static .consent { display: none; }
html.static .hero { min-height: 0; }
