/* Foros – style motywu (kierunek „Monochrom”).
   Czerń, biel i szarości (także logo). Kolor wnoszą tylko zdjęcia realizacji.
   Sekcje stron to bloki „Grupa” z klasami z tego pliku (wzorce „Foros – sekcje”). */

@font-face {
  font-family: "Albert Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/albert-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Albert Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/albert-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #070707;
  --bg-2: #0e0e0e;
  --bg-3: #151515;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.2);
  --text: #f2f2f0;
  --text-2: #c9c9c6;
  --muted: #9a9a97;
  --dim: #5c5c5a;
  --error: #ff8f8a;
  --font: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --pad: clamp(20px, 4vw, 56px);
  --max: 1360px;
  --header-top: 0px;
  interpolate-size: allow-keywords;
}
.admin-bar { --header-top: 32px; }
@media (max-width: 782px) { .admin-bar { --header-top: 46px; } }

/* Podstawy */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, fieldset, blockquote { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
::selection { background: var(--text); color: var(--bg); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; border-radius: 4px; }
.visually-hidden, .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  left: 16px;
  top: calc(var(--header-top) + 12px);
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease);
}
.skip:focus { transform: none; }

/* Typografia */
.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.h2 {
  font-weight: 200;
  font-size: clamp(42px, 6.2vw, 92px);
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

/* Przyciski: własne (.btn) i bloki „Przyciski” WordPressa (wypełniony = jasny, kontur = obrys) */
.wp-block-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn, .wp-block-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 26px;
  border: 1px solid var(--text);
  border-radius: 999px;
  background: var(--text);
  color: #0a0a0a;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.btn--light:hover, .wp-block-button .wp-block-button__link:hover { background: #fff; border-color: #fff; color: #0a0a0a; transform: translateY(-2px); }
.btn--ghost, .wp-block-button.is-style-outline .wp-block-button__link {
  border-color: var(--line-2);
  background: transparent;
  color: var(--text);
}
.btn--ghost:hover, .wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
  color: var(--text);
  transform: translateY(-2px);
}
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.link-arrow, .is-link-arrow a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-2);
  font-size: 15px;
  transition: border-color 0.3s, gap 0.4s var(--ease);
}
.link-arrow::after, .is-link-arrow a::after { content: "→"; }
.link-arrow:hover, .is-link-arrow a:hover { border-color: var(--text); gap: 16px; }

/* Nagłówek: na starcie szeroki pasek, po przewinięciu pływająca pigułka */
.site-header {
  position: fixed;
  inset: var(--header-top) 0 auto;
  z-index: 50;
  padding: 16px var(--pad);
  pointer-events: none;
}
.bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 0;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: max-width 0.7s var(--ease), padding 0.7s var(--ease), background-color 0.7s var(--ease), border-color 0.7s var(--ease);
}
.site-header.is-scrolled .bar {
  max-width: 820px;
  padding: 6px 6px 6px 22px;
  background: rgba(18, 18, 18, 0.74);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}
.brand img { height: 22px; width: auto; }
.nav__list { display: flex; gap: 30px; list-style: none; }
.nav a, .lang {
  position: relative;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color 0.3s;
}
.nav a:hover, .lang:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
}
.bar__actions { display: flex; align-items: center; gap: 18px; }
.menu-btn {
  display: none;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

/* Menu mobilne */
.menu {
  position: fixed;
  inset: var(--header-top) 0 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 110px var(--pad) 40px;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease); }
.menu__list { display: flex; flex-direction: column; list-style: none; }
.menu__list a {
  position: relative;
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(34px, 9vw, 56px);
  font-weight: 200;
  letter-spacing: -0.04em;
}
.menu__list a[aria-current="page"] { padding-left: 18px; }
.menu__list a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.menu__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Kontenery */
.wrap { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.wrap--text { max-width: calc(760px + 2 * var(--pad)); padding-bottom: clamp(100px, 12vw, 180px); }
.section {
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
  padding: 0 var(--pad) clamp(110px, 14vw, 210px);
}
.section-head { display: grid; gap: 22px; margin-bottom: clamp(44px, 6vw, 84px); }
.section-head--split { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head--split > div { display: grid; gap: 22px; }

/* Hero strony głównej (canvas z siatką kropek dokłada skrypt hero.js) */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 140px var(--pad) 150px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 46% 36% at 50% 50%, rgba(7, 7, 7, 0.78), rgba(7, 7, 7, 0) 72%),
    linear-gradient(to bottom, rgba(7, 7, 7, 0.5), rgba(7, 7, 7, 0) 22%, rgba(7, 7, 7, 0) 72%, var(--bg));
}
.hero__inner {
  max-width: 1280px;
  opacity: calc(1 - var(--h, 0) * 1.1);
  transform: translateY(calc(var(--h, 0) * -60px));
}
.eyebrow {
  margin-bottom: 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__title {
  font-weight: 200;
  font-size: clamp(44px, 7.2vw, 118px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}
.hero__lead {
  max-width: 560px;
  margin: 32px auto 0;
  color: #b4b4b1;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
}
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.hero__meta {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 28px;
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__scroll { color: var(--text); display: inline-flex; align-items: center; gap: 10px; }
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 14px;
  background: currentColor;
  animation: scrollcue 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollcue {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
/* Wejście hero: linijki tytułu (dzieli je PHP: foros_hero_title_lines) wysuwają się spod maski,
   potem dochodzą opis, przyciski i dolny pasek. Sam CSS, więc rusza od razu i zawsze się kończy. */
.hero__line { display: block; overflow: hidden; padding: 0.08em 0 0.18em; margin: -0.08em 0 -0.18em; }
.hero__line > span { display: block; animation: hero-line 1.2s var(--ease) 0.1s both; }
.hero__line + .hero__line > span { animation-delay: 0.22s; }
.hero .eyebrow { animation: hero-fade 1s var(--ease) both; }
.hero__lead { animation: hero-up 1.1s var(--ease) 0.5s both; }
.hero__cta { animation: hero-up 1.1s var(--ease) 0.64s both; }
.hero__meta { animation: hero-fade 1.4s var(--ease) 0.85s both; }
@keyframes hero-line { from { transform: translateY(125%); } }
@keyframes hero-up { from { opacity: 0; transform: translateY(18px); } }
@keyframes hero-fade { from { opacity: 0; } }
.hero--404 .hero__title { font-size: clamp(120px, 24vw, 340px); line-height: 0.85; letter-spacing: -0.06em; }
.hero--404 .hero__lead { margin-top: 24px; }

/* Nagłówek podstron */
.page-hero {
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
  padding: clamp(150px, 17vw, 230px) var(--pad) clamp(64px, 8vw, 112px);
}
.page-hero--text { max-width: calc(760px + 2 * var(--pad)); padding-bottom: clamp(40px, 5vw, 72px); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; font-size: 13px; color: var(--muted); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs [aria-hidden] { opacity: 0.5; }
.page-hero .label { margin-bottom: 28px; }
.page-hero__title {
  font-weight: 200;
  font-size: clamp(48px, 8.4vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.page-hero__title--sm { font-size: clamp(40px, 5.6vw, 88px); }
.page-hero__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  flex-wrap: wrap;
  margin-top: clamp(32px, 4vw, 56px);
}
.page-hero__lead { max-width: 640px; color: #b4b4b1; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; }
.anchor-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.anchor-list a {
  display: inline-flex;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-2);
  transition: border-color 0.3s, color 0.3s;
}
.anchor-list a:hover { border-color: var(--text); color: var(--text); }

/* Manifest – słowa rozjaśniają się przy przewijaniu */
.manifest {
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
  padding: clamp(120px, 17vw, 240px) var(--pad) clamp(100px, 13vw, 190px);
}
.manifest > .label { margin-bottom: 36px; }
.manifest__text {
  max-width: 1180px;
  font-weight: 300;
  font-size: clamp(30px, 4.3vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}
/* Tekst pozostaje czytelny także przed podświetleniem przy przewijaniu. */
.js .is-reveal-words .w { opacity: calc(0.5 + 0.5 * var(--o, 0)); transition: opacity 0.25s linear; }
.manifest__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 820px;
  margin: clamp(56px, 7vw, 100px) 0 0 auto;
  color: var(--muted);
}

/* Usługi – lista z numerami */
.svc-list { border-top: 1px solid var(--line); }
.svc {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px;
  padding: clamp(32px, 3.6vw, 48px) 0;
  border-bottom: 1px solid var(--line);
}
.svc::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease);
}
.svc:hover::after { transform: scaleX(1); }
.svc__num {
  padding-top: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.svc__title {
  font-weight: 200;
  font-size: clamp(32px, 3.9vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  transition: transform 0.7s var(--ease);
}
.svc__title a::after { content: ""; position: absolute; inset: 0; }
.svc:hover .svc__title { transform: translateX(14px); }
.svc__body p { max-width: 46ch; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; list-style: none; }
.tags li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #b9b9b6;
}

/* Realizacje – dwie kolumny przesunięte względem siebie */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(20px, 3.2vw, 48px);
  row-gap: clamp(64px, 8vw, 120px);
}
.work-grid .case.is-offset { margin-top: clamp(80px, 12vw, 200px); }
.case[hidden] { display: none; }
.case__link { display: block; }
.case__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-2);
}
.case__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.4s var(--ease), filter 1s var(--ease);
}
.case__media::after {
  content: attr(data-cta);
  position: absolute;
  left: 50%;
  top: 50%;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(7, 7, 7, 0.72);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -40%);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.case__link:hover .case__media img, .case__link:focus-visible .case__media img { transform: scale(1.07); }
.case__link:hover .case__media::after, .case__link:focus-visible .case__media::after { opacity: 1; transform: translate(-50%, -50%); }
@media (hover: hover) {
  .case__media img { filter: grayscale(1) contrast(1.06) brightness(0.92); }
  .case__link:hover .case__media img, .case__link:focus-visible .case__media img { filter: none; }
}
.case__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 24px; }
.case__title { font-weight: 300; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -0.035em; }
.case__cat { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-align: right; }
.case__desc { max-width: 44ch; margin-top: 8px; color: var(--muted); }
.work-empty { color: var(--muted); }
/* Jedna realizacja: szeroka karta zamiast dwóch kolumn */
.work-grid--single { grid-template-columns: 1fr; max-width: 1040px; margin-inline: auto; }
.work-grid--single .case__media {
  aspect-ratio: auto;
  padding: clamp(12px, 2.2vw, 28px);
  background: #eeece7;
  border-radius: 10px;
}
.work-grid--single .case__media img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 460px;
  margin-inline: auto;
  object-fit: contain;
  border-radius: 5px;
  transform: none;
  filter: none;
}
.work-grid--single .case__link:hover .case__media img,
.work-grid--single .case__link:focus-visible .case__media img { transform: none; }
.work-grid--single .case__title { font-size: clamp(32px, 4vw, 60px); }
.work-grid--single .case__desc { max-width: 60ch; font-size: 18px; }

/* Case study: duży zrzut ekranu i opis obok, naprzemiennie */
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
  padding: clamp(48px, 7vw, 112px) 0;
  border-top: 1px solid var(--line);
}
.showcase.is-reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.showcase.is-reverse .showcase__media { order: 2; }
.showcase__media, .showcase-wide { margin: 0; }
.showcase__media img, .showcase-wide img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.75);
}
.showcase__body .label { margin-bottom: 18px; }
.showcase__title { font-weight: 300; font-size: clamp(28px, 3vw, 44px); line-height: 1.08; letter-spacing: -0.035em; }
.showcase__body p { max-width: 46ch; margin-top: 18px; color: var(--muted); }
.showcase__list { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.showcase__list li { position: relative; padding-left: 24px; font-size: 16px; }
.showcase__list li::before { content: "•"; position: absolute; left: 0; color: var(--muted); }
.showcase-wide { padding: clamp(24px, 4vw, 56px) 0 clamp(48px, 7vw, 96px); }
.showcase-wide figcaption { margin-top: 14px; color: var(--muted); font-size: 14px; text-align: center; }
/* Portal klienta: komputer i telefon w jednym kadrze (telefon nachodzi na prawy dolny róg) */
.showcase__devices { position: relative; padding: 0 7% 10% 0; }
.showcase__devices figure { margin: 0; }
.showcase__devices .devices__phone { position: absolute; right: 0; bottom: 0; width: 27%; }
.showcase__devices .devices__phone img { border: 5px solid #1c1c1b; border-radius: 26px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.85); }
.problem-tools, .prose .problem-tools { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.problem-tools > li, .prose .problem-tools > li { padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); font-size: 14px; line-height: 1.3; }
.prose .problem-tools > li::before { content: none; }
@media (max-width: 960px) {
  .showcase, .showcase.is-reverse { grid-template-columns: 1fr; }
  .showcase.is-reverse .showcase__media { order: 0; }
}

/* Filtry realizacji */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: clamp(44px, 6vw, 80px); }
.filter {
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-2);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.filter:hover { border-color: var(--text); color: var(--text); }
.filter[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #0a0a0a; }
.filters__status { margin-left: auto; font-size: 13px; color: var(--muted); }

/* Proces – linia wypełnia się przy przewijaniu */
.process__line { position: relative; height: 1px; margin-bottom: 44px; background: var(--line); }
.process__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--text);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.step { opacity: calc(0.85 + 0.15 * var(--a, 1)); transition: opacity 0.4s linear; }
.step__num { font-size: 13px; font-weight: 500; letter-spacing: 0.1em; color: var(--muted); }
.step__title { margin: 18px 0 12px; font-weight: 300; font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.025em; }
.step p:not(.step__num) { color: var(--muted); font-size: 15px; }

/* Zespół */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: start; }
.team-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.team-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.person__photo {
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 70%),
    var(--bg-2);
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; filter: grayscale(1); }
.person__photo span { font-weight: 200; font-size: clamp(54px, 6vw, 88px); letter-spacing: -0.04em; color: #3e3e3c; }
.person figcaption { margin-top: 22px; }
.person__name { display: block; font-weight: 400; font-size: 22px; letter-spacing: -0.02em; }
.person__role { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.person p { margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 42ch; }
.person .link-arrow { margin-top: 18px; font-size: 14px; }
.team__note { align-self: end; padding-bottom: 8px; color: var(--muted); }
.team__quote { margin-bottom: 16px; font-weight: 200; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.08; letter-spacing: -0.035em; color: var(--text); }
.team__note .link-arrow { margin-top: 24px; color: var(--text); }
/* Przy 4 i więcej osobach nota idzie do osobnego rzędu pod kartami: cytat po lewej, opis po prawej. */
.team-grid--four .team__note {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 40px);
  align-self: auto;
  margin-top: clamp(8px, 1.5vw, 20px);
  padding: clamp(28px, 3vw, 40px) 0 0;
  border-top: 1px solid var(--line);
}
.team-grid--four .team__quote { grid-row: span 2; margin-bottom: 0; }
.team-grid--four .team__note .link-arrow { justify-self: start; }

/* Sekcja z tytułem po lewej (przyklejonym) i treścią po prawej */
.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(28px, 5vw, 96px);
  padding: clamp(64px, 8vw, 120px) 0;
  border-top: 1px solid var(--line);
}
.split--flush { padding-top: 0; border-top: 0; }
.split__aside { position: sticky; top: calc(var(--header-top) + 112px); align-self: start; display: grid; gap: 16px; }
.split__title { font-weight: 300; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.04; letter-spacing: -0.035em; }
.prose { max-width: 760px; }
.prose > * + * { margin-top: 1.15em; }
.prose p, .prose li { color: var(--text-2); font-size: clamp(17px, 1.3vw, 19px); line-height: 1.7; }
.prose strong { color: var(--text); font-weight: 500; }
.prose .lead-xl { font-weight: 300; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.3; letter-spacing: -0.02em; color: var(--text); }
.prose a { border-bottom: 1px solid var(--line-2); }
.prose a:hover { border-color: var(--text); }
.prose ul, .prose ol { display: grid; gap: 12px; list-style: none; }
.prose ul > li { position: relative; padding-left: 28px; }
.prose ul > li::before { content: "•"; position: absolute; left: 0; color: var(--muted); }
.prose ol { counter-reset: prose; }
.prose ol > li { position: relative; padding-left: 36px; counter-increment: prose; }
.prose ol > li::before { content: counter(prose, decimal-leading-zero); position: absolute; left: 0; top: 0.35em; font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.prose h2 { margin-top: 1.8em; font-weight: 300; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.03em; }
.prose h3 { margin-top: 1.5em; font-weight: 400; font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -0.015em; }
.prose > .stages { margin-top: 28px; }

/* Case study */
.case-cover {
  width: calc(100% - 2 * var(--pad));
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(12px, 2.2vw, 28px);
  border-radius: 10px;
  background: #eeece7;
}
.case-cover img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 460px;
  margin-inline: auto;
  object-fit: contain;
  border-radius: 5px;
}
.case-body { padding-bottom: clamp(40px, 6vw, 80px); }
.facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.facts > * { padding: 28px 24px 28px 0; }
.facts__label { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.facts__value { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--text); }
.facts__value a { border-bottom: 1px solid var(--line-2); }
.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 40px 32px;
  padding: clamp(56px, 7vw, 100px) 0;
}
.stat__num {
  display: block;
  font-weight: 200;
  font-size: clamp(40px, 3.6vw, 64px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat__label { display: block; max-width: 22ch; margin-top: 14px; color: var(--muted); font-size: 15px; }
.stages, .prose .stages { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; counter-reset: stage; }
.prose .stages > li, .stages > li {
  counter-increment: stage;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 15px;
  line-height: 1.2;
  color: var(--text);
}
.prose .stages > li::before, .stages > li::before {
  position: static;
  content: counter(stage, decimal-leading-zero);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
.feature h3 { margin-bottom: 10px; font-weight: 400; font-size: 20px; letter-spacing: -0.015em; }
.feature p { color: var(--muted); font-size: 16px; }
.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 24px);
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) var(--pad);
}
.gallery .wp-block-image, .gallery figure { margin: 0; overflow: hidden; border-radius: 4px; background: var(--bg-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .gallery__wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery .gallery__a { grid-column: span 7; height: clamp(260px, 32vw, 520px); }
.gallery .gallery__b { grid-column: span 5; height: clamp(260px, 32vw, 520px); }
.gallery figcaption { display: none; }
.decisions { border-top: 1px solid var(--line); counter-reset: decision; }
.decision {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 16px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.decision::before {
  grid-row: 1 / span 2;
  padding-top: 6px;
  counter-increment: decision;
  content: counter(decision, decimal-leading-zero);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.decision > * { grid-column: 2; }
.decision__title { margin-bottom: 6px; font-weight: 400; font-size: clamp(19px, 1.6vw, 22px); letter-spacing: -0.015em; }
.decision p { color: var(--muted); }
.next {
  display: block;
  padding: clamp(80px, 11vw, 160px) var(--pad);
  border-top: 1px solid var(--line);
  text-align: center;
}
.next .label { display: block; margin-bottom: 24px; }
.next__title {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25em;
  font-weight: 200;
  font-size: clamp(56px, 11vw, 180px);
  line-height: 1;
  letter-spacing: -0.055em;
}
.next__title::after { content: "→"; font-size: 0.5em; transition: transform 0.6s var(--ease); }
.next:hover .next__title::after { transform: translateX(0.3em); }

/* Usługi – szczegóły */
.service {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 96px);
  padding: clamp(64px, 8vw, 120px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.service__aside { position: sticky; top: calc(var(--header-top) + 112px); align-self: start; }
.service__num { font-size: 13px; font-weight: 500; letter-spacing: 0.1em; color: var(--muted); }
.service__title { margin-top: 18px; font-weight: 200; font-size: clamp(38px, 4.6vw, 72px); line-height: 1; letter-spacing: -0.045em; }
.service__lead { font-weight: 300; font-size: clamp(22px, 2vw, 30px); line-height: 1.35; letter-spacing: -0.02em; }
.checklist { margin-top: 40px; list-style: none; border-top: 1px solid var(--line); }
.checklist li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.checklist li::before { content: "•"; color: var(--muted); }
.service__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.service__facts .facts__value { font-size: 16px; }
.service__actions { margin-top: 44px; }

/* FAQ (blok „Szczegóły”) */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  list-style: none;
  cursor: pointer;
  font-weight: 300;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-weight: 200; font-size: 34px; line-height: 1; transition: transform 0.45s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.5s var(--ease), content-visibility 0.5s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq details > :not(summary) { max-width: 70ch; padding-bottom: 30px; color: var(--muted); }

/* O nas – zasady */
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.value { padding: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 56px) clamp(32px, 4vw, 56px) 0; border-bottom: 1px solid var(--line); }
.value:nth-child(even) { padding-left: clamp(24px, 4vw, 56px); border-left: 1px solid var(--line); }
.value__num { font-size: 13px; font-weight: 500; letter-spacing: 0.1em; color: var(--muted); }
.value h3 { margin: 18px 0 12px; font-weight: 300; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; letter-spacing: -0.035em; }
.value p:not(.value__num) { max-width: 44ch; color: var(--muted); }

/* Kontakt – formularz */
#formularz { scroll-margin-top: calc(var(--header-top) + 100px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(48px, 7vw, 140px); align-items: start; }
.form { display: grid; gap: 34px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.field { display: grid; gap: 10px; }
.field__label, .field legend { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field legend { margin-bottom: 14px; padding: 0; }
.field__label b, .field legend b { color: var(--text); font-weight: 600; }
.field__label span { font-weight: 400; letter-spacing: 0.02em; text-transform: none; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  background: transparent;
  font-size: clamp(19px, 1.6vw, 22px);
  font-weight: 300;
  color: var(--text);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 1px 0 0 var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-2);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.chip:hover span { border-color: var(--text); color: var(--text); }
.chip input:checked + span { background: var(--text); border-color: var(--text); color: #0a0a0a; }
.chip input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 3px; }
.consent { display: flex; align-items: flex-start; gap: 14px; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input {
  flex: none;
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.consent input::after { content: ""; width: 10px; height: 6px; border: solid #0a0a0a; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.consent input:checked { background: var(--text); border-color: var(--text); }
.consent input:checked::after { opacity: 1; }
.consent a { color: var(--text); border-bottom: 1px solid var(--line-2); }
.field__error { font-size: 13px; color: var(--error); }
.field__error:empty { display: none; }
.field.is-invalid input[type="text"], .field.is-invalid input[type="email"], .field.is-invalid textarea { border-color: var(--error); box-shadow: 0 1px 0 0 var(--error); }
.field.is-invalid .consent input { border-color: var(--error); }
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form__hint { font-size: 13px; color: var(--muted); }
.form-alert { padding: 16px 20px; border: 1px solid var(--error); border-radius: 4px; color: var(--error); }
.form-success { padding: 40px 0; border-top: 1px solid var(--line); outline: none; }
.form-success h2 { font-weight: 200; font-size: clamp(36px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -0.045em; }
.form-success p { margin-top: 18px; max-width: 46ch; color: var(--muted); }
.contact-aside { position: sticky; top: calc(var(--header-top) + 112px); display: grid; gap: 40px; }
.contact-aside__block { display: grid; gap: 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact-aside__block p { color: var(--muted); }
.contact-aside__mail { font-weight: 200; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -0.03em; }
.contact-aside__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.contact-aside__links { display: flex; gap: 20px; font-size: 15px; }
.contact-aside__links a { border-bottom: 1px solid var(--line-2); }
.contact-aside__links a:hover { border-color: var(--text); }

/* Kontakt na stronie głównej i pasek „porozmawiajmy” na podstronach */
.contact, .cta-band { padding: clamp(120px, 15vw, 220px) var(--pad); border-top: 1px solid var(--line); text-align: center; }
.contact .label, .cta-band .label { margin-bottom: 32px; }
.contact__title, .cta-band__title { font-weight: 200; font-size: clamp(46px, 8.2vw, 128px); line-height: 0.98; letter-spacing: -0.05em; text-wrap: balance; }
.contact__lead, .cta-band__lead { max-width: 520px; margin: 32px auto 0; color: var(--muted); }
.cta-band__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.contact__mail-row { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin: 52px 0 44px; }
.contact__mail { padding-bottom: 6px; border-bottom: 1px solid var(--line-2); font-weight: 200; font-size: clamp(28px, 4.6vw, 68px); letter-spacing: -0.035em; transition: border-color 0.3s; }
.contact__mail:hover { border-color: var(--text); }
.copy {
  padding: 9px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: border-color 0.3s, color 0.3s;
}
.copy:hover { border-color: var(--text); color: var(--text); }

/* Lista wpisów (blog – wersja robocza) */
.post-list { list-style: none; border-top: 1px solid var(--line); }
.post-list a { display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.post-list__title { font-weight: 300; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.02em; }
.post-list__date { color: var(--muted); font-size: 14px; white-space: nowrap; }

/* Stopka z logo na całą szerokość */
.site-footer { padding-top: clamp(40px, 6vw, 80px); }
.footer__logo { padding: 0 var(--pad); }
.footer__logo img { width: 100%; height: auto; }
.footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  margin-top: clamp(32px, 4vw, 56px);
  padding: 24px var(--pad) 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.footer__bar a:hover { color: var(--text); }
.footer__links { display: flex; gap: 24px; }

/* Komunikat „skopiowano” */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 101;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--text);
  color: #0a0a0a;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Pojawianie się elementów przy przewijaniu: „is-fade” (z edytora albo z bloku) i „reveal”
   (bloki dobierane automatycznie w main.js). Ukrycie jest natychmiastowe, a odsłonięcie płynne.
   --d to opóźnienie: elementy wchodzące razem pojawiają się po kolei. */
.js .is-fade, .js [data-fade], .reveal {
  opacity: 0;
  transform: translateY(28px);
}
.js .is-fade-d1 { --d: 110ms; }
.js .is-fade-d2 { --d: 220ms; }
.js .is-fade.is-in, .js [data-fade].is-in, .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--ease) var(--d, 0ms), transform 1.1s var(--ease) var(--d, 0ms);
}
/* Zdjęcia zespołu przy wejściu lekko się „układają” (z lekkiego przybliżenia) */
.js .person.is-fade .person__photo img { transform: scale(1.08); }
.js .person.is-fade.is-in .person__photo img { transform: none; transition: transform 1.8s var(--ease) var(--d, 0ms); }

/* Wejście nagłówka podstron (sam CSS, od pierwszego wyświetlenia): linijki tytułu jak w hero, potem reszta */
.page-hero .breadcrumbs, .page-hero .label { animation: hero-fade 1s var(--ease) both; }
.page-hero__row { animation: hero-up 1.1s var(--ease) 0.45s both; }

/* Tablet i telefon */
@media (max-width: 960px) {
  .nav, .bar__actions .btn, .bar__actions .lang { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .site-header.is-scrolled .bar { padding: 6px 6px 6px 18px; }
  .svc { grid-template-columns: 1fr; gap: 14px; }
  .svc__num { padding-top: 0; }
  .manifest__cols { grid-template-columns: 1fr; gap: 24px; margin-left: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team__note { grid-column: 1 / -1; }
  .hero__meta > :first-child, .hero__meta > :last-child { display: none; }
  .split, .service, .contact-grid { grid-template-columns: 1fr; }
  .split__aside, .service__aside, .contact-aside { position: static; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > :last-child { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values { grid-template-columns: 1fr; }
  .value, .value:nth-child(even) { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-bottom: 120px; }
  .hero__cta, .hero__cta .wp-block-button, .hero__cta .wp-block-button__link, .cta-band__actions .btn { width: 100%; }
  .hero__meta { justify-content: center; }
  .hero__meta > :not(.hero__scroll) { display: none; }
  .work-grid { grid-template-columns: 1fr; }
  .work-grid .case.is-offset { margin-top: 0; }
  .steps, .team-grid, .team-grid--two, .team-grid--four, .feature-list, .form__row { grid-template-columns: 1fr; }
  .team-grid--four .team__note { grid-template-columns: 1fr; }
  .team-grid--four .team__quote { grid-row: auto; margin-bottom: 16px; }
  .gallery .gallery__a, .gallery .gallery__b { grid-column: 1 / -1; }
  .service__facts { grid-template-columns: 1fr 1fr; }
  .filters__status { width: 100%; margin-left: 0; }
  .footer__bar { flex-direction: column; align-items: flex-start; }
}

/* Ogranicz ruch */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .hero__inner { opacity: 1; transform: none; }
}
