/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --dark-bg:        #0D0D0D;
  --dark-surface:   #161616;
  --light-bg:       #FAFAF8;
  --light-surface:  #F2F1ED;

  --text-dark:      #FAFAFA;
  --text-light:     #1A1A1A;
  --muted-dark:     rgba(250, 250, 250, 0.5);
  --muted-light:    #888888;

  --accent:         #D4A853;
  --accent-hover:   #E8BB60;
  --accent-rgb:     212, 168, 83;

  --border-dark:    rgba(255, 255, 255, 0.08);
  --border-light:   #E5E4DF;

  --font-hero:      'DM Serif Display', serif;
  --font-display:   'Syne', sans-serif;
  --font-body:      'Inter', sans-serif;

  --nav-h:          72px;
  --container:      1200px;
  --gap:            clamp(14px, 2.5vw, 28px);
  --section-pad:    clamp(72px, 9vw, 128px);
  --radius:         6px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--light-bg);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 64px);
}

.section { padding-block: var(--section-pad); }

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-hero);
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 48px;
}

.section-title strong {
  color: var(--accent);
  font-style: italic;
}

.section-header { margin-bottom: 64px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn--primary {
  background: var(--accent);
  color: #0D0D0D;
}
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* btn--ghost na jasnym tle — odwracamy kolory żeby był czytelny */
.section.work .btn--ghost,
.section--brief .btn--ghost,
.brief-actions .btn--ghost,
.section--legal .btn--ghost,
.section--faq .btn--ghost {
  color: var(--text-light);
  border-color: rgba(0, 0, 0, 0.18);
}
.section.work .btn--ghost:hover,
.section--brief .btn--ghost:hover,
.brief-actions .btn--ghost:hover,
.section--legal .btn--ghost:hover,
.section--faq .btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--outline {
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid var(--text-light);
}
.btn--outline:hover {
  background: var(--text-light);
  color: var(--light-bg);
}

.btn--full { width: 100%; justify-content: center; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
/* Krotszy dystans i czas niz na starcie (28px / 0.65s) — przy dlugiej siatce
   portfolio dluga animacja czytala sie jako "puste pole, potem wyskok". */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(13, 13, 13, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border-dark);
}

.nav__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.nav__logo-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.02em;
}

.nav__logo-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__link {
  text-decoration: none;
  color: var(--muted-dark);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav__link:hover,
.nav__link.active { color: var(--text-dark); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: var(--accent);
  color: #0D0D0D;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.2s;
}
.nav__cta:hover { background: var(--accent-hover); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 210;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-dark);
  transition: transform 0.3s, opacity 0.3s;
}
.nav__toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  background: var(--dark-bg);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 55% at 85% 50%, rgba(212, 168, 83, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 55% 75% at 15% 85%, rgba(212, 168, 83, 0.04) 0%, transparent 55%);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 28px 28px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  /* Szersze niz standardowy --container (1200px) — przy odstepie 200px
     kontener 1200 zostawilby na slider tylko ~406px, czyli mniej niz mial
     wczesniej. Skutek uboczny: powyzej 1340px hero zaczyna sie odrobine
     na lewo od logo w nawigacji, ktora trzyma sie 1200px. */
  max-width: 1340px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 64px);
  padding-block-start: calc(var(--nav-h) + 56px);
  padding-block-end: 96px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 15vw, 200px);
  align-items: center;
}

.hero__tag {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 28px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.hero__tag-sep { color: var(--accent); }

.hero__headline {
  font-family: var(--font-hero);
  font-size: clamp(2.4rem, 3.6vw, 3.6rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.hero__headline em {
  font-style: italic;
  color: var(--accent);
}

.hero__sub {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-weight: 400;
  color: rgba(250, 250, 250, 0.68);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 44px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* --- Hero: taby + scena po prawej ---------------------------------------
   Panel "packshot" reuzywa komponentu .ba-slider (patrz sekcja
   BEFORE / AFTER SLIDER) — logika drag/touch/klawiatura/nudge siedzi
   w initBASliders(), przelaczanie tabow w initHeroTabs() w main.js. */

/* min-width:0 — bez tego dlugie slowo w naglowku rozpycha kolumne gridu */
.hero__content { min-width: 0; }

.hero__visual {
  width: 100%;
  max-width: 620px;
  justify-self: end;
}

/* --- Taby: Packshot / Miniatura / Reklama / Grafika produktowa -------- */
/* Wzorowane na .filter-btn, ale to OSOBNA klasa — main.js lapie
   .filter-btn globalnie i podpialby taby pod filtry portfolio. */

/* Grid 4x1fr zamiast flexa: pasek tabow ma byc dokladnie tak szeroki jak scena
   pod nim, a rowne kolumny trzymaja te linie niezaleznie od dlugosci etykiet. */
/* Pasek ma konczyc sie rowno z krawedziami sceny pod nim. Rowne kolumny (grid 1fr)
   odpadaja: "Grafika produktowa" nie miesci sie w 1/4 szerokosci bez zjechania
   fontem do ~10px. Flex z `flex: 1 1 auto` daje to samo wyrownanie do krawedzi,
   ale kazda kapsulka startuje od szerokosci swojego tekstu — wolne miejsce
   rozdziela sie po rowno, wiec nic sie nie przycina. */
.hero-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.hero-tab {
  flex: 1 1 auto;
  font-family: var(--font-display);
  font-size: 0.72rem;
  /* 600 na stale (nie tylko w .is-active): inaczej aktywacja pogrubia tekst
     i szerokosci kapsulek przeskakuja przy kazdym kliknieciu. */
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 12px;
  min-width: 0;
  white-space: nowrap;
  text-align: center;
  border-radius: 999px;
  border: 1px solid rgba(250, 250, 250, 0.25);
  background: transparent;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.hero-tab:hover:not(.is-active) {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--dark-bg);
}

.hero-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Scena: stack paneli z crossfade --------------------------------- */
/* grid-area 1/1 zamiast display:none — display:none zabija przejscie.
   visibility z opoznieniem rownym czasowi fade wypina nieaktywny panel
   z kolejnosci Tab, zeby nie dalo sie zfokusowac niewidocznego slidera
   (sam pointer-events:none tego NIE robi). */

.hero-stage {
  display: grid;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(250, 250, 250, 0.12);
}

.hero-stage__panel {
  grid-area: 1 / 1;
  position: relative;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.hero-stage__panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.2s ease, visibility 0s;
}

.hero-stage__panel[data-panel="packshot"] { cursor: ew-resize; }

.hero-stage:has(.ba-slider:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Bazowy .ba-slider ma touch-action:none — na kafelku w portfolio to OK,
   ale w hero zajmuje pol ekranu telefonu i blokowalby przewijanie strony
   palcem. pan-y oddaje przegladarce scroll w pionie, poziomy drag zostaje. */
.hero-stage .ba-slider { touch-action: pan-y; }

/* Zloty divider + knob zamiast domyslnego bialego (spojnosc z paleta hero) */
.hero-stage .ba-divider { background: var(--accent); }

.hero-stage .ba-knob {
  background: var(--accent);
  color: var(--dark-bg);
}

.hero-stage .ba-tag--a {
  background: rgba(212, 168, 83, 0.92);
  color: var(--dark-bg);
}

/* "Zdjecie od klienta" — siedzi WEWNATRZ .ba-after-wrap, wiec jest przycinane
   razem z surowym zdjeciem i znika, gdy zjedziesz suwakiem w lewo. */
/* Zagniezdzone pod .hero-stage CELOWO: bazowe .ba-tag (z top:14px) jest
   nizej w pliku, wiec sam .ba-tag--client mialby ta sama specyficznosc
   i przegralby kolejnoscia — badge wroci do gornej krawedzi. */
.hero-stage .ba-tag--client {
  top: auto;
  bottom: 14px;
  left: 14px;
}

/* Nudge: transition wlaczany tylko na czas animacji, zeby drag zostal natychmiastowy */
.ba-slider.is-nudging .ba-after-wrap,
.ba-slider.is-nudging .ba-divider {
  transition: clip-path 0.55s ease, left 0.55s ease;
}

.hero-stage__caption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted-dark);
}

/* Obraz paneli miniatura / reklama / produktowa
   (panel packshot ma wlasny slider — patrz .ba-pane--hero-*) */
.hero-stage__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-stage__panel,
  .hero-stage__panel.is-active { transition: none; }
  .ba-slider.is-nudging .ba-after-wrap,
  .ba-slider.is-nudging .ba-divider { transition: none; }
}

/* Realne zdjecia: "przed" = kadr z telefonu klienta, "po" = packshot.
   Tlo pod obrazem zostaje, zeby przez ulamek sekundy przed dekodowaniem
   nie przeswitywal czarny dark-bg sceny. */
.ba-pane--hero-b { background: #35322b; }
.ba-pane--hero-a { background: var(--light-surface); }

.ba-pane--hero-b picture,
.ba-pane--hero-a picture { display: block; height: 100%; }

/* object-fit:cover + identyczne kadrowanie obu warstw — inaczej suwak "przeskakuje".
   pointer-events:none oddaje drag sliderowi (obraz lapalby zdarzenia myszy jako pierwszy). */
.ba-pane--hero-b img,
.ba-pane--hero-a img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Dwie kolumny robia sie ciasne ponizej ~900px — suwak laduje pod trescia,
   czyli PO przyciskach CTA (kolejnosc w DOM), zeby nie zepchnac ich pod zgiecie. */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
  }
  .hero__visual {
    max-width: none;
    justify-self: stretch;
  }
}

/* Telefon: 4 kapsulki w jednym rzedzie sa za ciasne, wiec 2x2.
   flex-basis 50% (minus polowa gapa) wymusza lamanie po dwoch. */
@media (max-width: 600px) {
  .hero-tab {
    flex: 1 1 calc(50% - 4px);
    font-size: 0.75rem;
    padding: 9px 10px;
  }
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: clamp(20px, 5vw, 64px);
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted-dark);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 56px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  inset-block: 0;
  left: -100%;
  width: 100%;
  background: var(--accent);
  animation: scrollAnim 2.2s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%   { left: -100%; }
  50%  { left: 0; }
  100% { left: 100%; }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--light-bg); }

.services__main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: 40px;
}

.service-card {
  background: var(--light-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 44px) clamp(24px, 2.5vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.service-card::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.07);
  border-color: rgba(212, 168, 83, 0.3);
}

.service-card__num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--accent);
}

.service-card__title {
  font-family: var(--font-hero);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.2;
}

.service-card__desc {
  font-size: 0.88rem;
  color: var(--muted-light);
  line-height: 1.75;
  margin-bottom: 18px;
}

.service-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.service-card__list li {
  font-size: 0.84rem;
  color: var(--text-light);
  padding-left: 18px;
  position: relative;
  line-height: 1.55;
}
.service-card__list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: auto;
  padding-top: 4px;
  transition: color 0.2s;
}
.service-card__link > span[aria-hidden="true"] {
  display: inline-block;
  transition: transform 0.2s ease;
}
.service-card__link:hover > span[aria-hidden="true"] { transform: translateX(4px); }

.service-card__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  margin-top: auto;
  padding-top: 28px;
}

/* Pill buttons — zawsze side-by-side, tightly packed */
.service-card__actions .service-card__link {
  margin-top: 0;
  padding: 10px 12px;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  background: var(--accent);
  color: #0D0D0D;
  border: 1.5px solid var(--accent);
  border-radius: 3px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
}
.service-card__actions .service-card__link:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #0D0D0D;
}

.service-card__actions .service-card__link--ghost {
  background: transparent;
  color: var(--text-light);
  border-color: var(--accent);
}
.service-card__actions .service-card__link--ghost:hover {
  background: var(--accent);
  color: #0D0D0D;
  border-color: var(--accent);
}

/* Ghost variant poza actions (np. w pricing card jeśli kiedyś użyje) */
.service-card__link--ghost { color: var(--muted-light); }
.service-card__link--ghost:hover { color: var(--accent); }

/* Extra services */
.services__extra {
  border-top: 1px solid var(--border-light);
  padding-top: 32px;
}

.services__extra-title {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 28px;
}

.services__extra-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.service-extra {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}
.service-extra {
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.service-extra:hover {
  border-color: var(--accent);
  background: rgba(212, 168, 83, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(212, 168, 83, 0.12);
}

.service-extra__icon {
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.service-extra h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.service-extra p {
  font-size: 0.84rem;
  color: var(--muted-light);
  line-height: 1.6;
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio { background: var(--dark-bg); }

.portfolio .section-label { color: var(--accent); }
.portfolio .section-title { color: var(--text-dark); }
.portfolio .section-title strong { color: var(--accent); font-style: italic; }

.portfolio__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 9px 20px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.83rem;
  font-family: var(--font-body);
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.filter-btn:hover,
.filter-btn--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0D0D0D;
  font-weight: 600;
}

.portfolio__grid {
  display: grid;
  /* SZEŚĆ kolumn, nie trzy — zwykły kafelek zajmuje dwie i wychodzi dokładnie
     to samo co przy repeat(3, 1fr). Szóstka daje jednak dodatkowy podział:
     kafelek na TRZY kolumny to pół szerokości siatki, czyli dwa prostokąty
     5:3 w wierszu zamiast trzech pasków. */
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  /* Bez sztywnej wysokosci wiersza — kafelek sam narzuca proporcje przez
     aspect-ratio. align-items:start pilnuje, zeby grid go nie rozciagnal
     do wysokosci sasiada (wtedy aspect-ratio przestaje dzialac). */
  align-items: start;
}

.portfolio-item {
  position: relative;
  /* Rozpiętość ZAWSZE przez `grid-column-end`, nigdy przez skrót
     `grid-column: span N`. Skrót ustawia grid-column-START na "span N",
     więc `--rowstart` (grid-column-start: 1) kasował rozpiętość i kafelek
     robił się o połowę węższy od sąsiadów w tym samym wierszu. */
  grid-column-end: span 2;      /* 1/3 szerokości siatki — domyślny kafelek */
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  /* Kafelek ma FORMAT GRAFIKI, nie odwrotnie. Domyslnie 1:1 — packshoty,
     miniatury Allegro i grafika produktowa sa kwadratowe, wiec obraz
     wypelnia kafelek bez bialych pasow i bez kadrowania.
     Inny format grafiki = dolóż modyfikator ponizej. */
  aspect-ratio: 1 / 1;
}
.portfolio-item--r53       { aspect-ratio: 5 / 3; }      /* 2500x1500 — grafika produktowa */
.portfolio-item--r169      { aspect-ratio: 16 / 9; }     /* miniatury YouTube, zdjęcia poziome */
.portfolio-item--r43       { aspect-ratio: 4 / 3; }
.portfolio-item--r45       { aspect-ratio: 4 / 5; }
.portfolio-item--r23       { aspect-ratio: 2 / 3; }      /* zdjęcie pionowe */
/* 2:1 + --wide: dwie kolumny + gap dają dokładnie wysokość sąsiedniego
   kwadratu, więc panorama nie rozpycha wiersza. */
.portfolio-item--r21       { aspect-ratio: 2 / 1; }
.portfolio-item--ra4       { aspect-ratio: 1 / 1.414; }  /* plakat A4 */
.portfolio-item--rcard     { aspect-ratio: 1004 / 650; } /* wizytówka 85x55 mm */
.portfolio-item--rbaner    { aspect-ratio: 3089 / 1356; }
.portfolio-item--rbaner-xl { aspect-ratio: 1980 / 720; }

/* Rozpiętości liczone w kolumnach sześciokolumnowej siatki:
   2 = 1/3 (domyślnie), 3 = 1/2, 4 = 2/3, 6 = cała szerokość. */
.portfolio-item--half  { grid-column-end: span 3; }   /* grafika produktowa 5:3 — dwie w wierszu */
.portfolio-item--wide  { grid-column-end: span 4; }
/* Baner na pełną szerokość — start/end jawnie, żeby działało przy każdej
   liczbie kolumn (desktop 6, tablet 4, telefon 2). */
.portfolio-item--full  { grid-column-start: 1; grid-column-end: -1; }
/* Wymusza start nowego wiersza. Bez tego kafelek o innej wysokości doklejał się
   do końcówki poprzedniego wiersza (prostokąt 5:3 obok dwóch kwadratów zostawiał
   dziurę na pół ekranu). Generator wstawia tę klasę tam, gdzie zmienia się
   wysokość kafelka. */
.portfolio-item--rowstart { grid-column-start: 1; }
.portfolio-item--tall  { grid-row-end: span 2; }   /* -end, nie skrót — patrz uwaga wyżej */
.portfolio-item.hidden { display: none; }

.portfolio-item__thumb {
  position: absolute;
  inset: 0;
  transition: transform 0.55s ease;
}
.portfolio-item:hover .portfolio-item__thumb { transform: scale(1.06); }

/* Prawdziwa grafika w kafelku — <picture> wypelnia caly thumb */
.portfolio-item__thumb picture {
  display: block;
  width: 100%;
  height: 100%;
}
.portfolio-item__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Na dotyku nie ma hovera — podpis (kategoria + produkt) musi byc widoczny od razu */
@media (hover: none) {
  .portfolio-item__overlay { opacity: 1; }
}

/* Wizytowka — hover pokazuje rewers. Obrot 3D, bo splaszczony crossfade
   nie czyta sie jako "druga strona kartonika". Na dotyku hovera nie ma,
   wiec obie strony sa i tak w modalu (kafelek jest typu Kolekcja). */
.portfolio-item:has(.portfolio-item__thumb--flip) { perspective: 900px; }
.portfolio-item__thumb--flip {
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.portfolio-item:hover .portfolio-item__thumb--flip {
  transform: rotateY(180deg);   /* nadpisuje globalne scale(1.06) — celowo */
}
.portfolio-item__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
}
.portfolio-item__face--back { transform: rotateY(180deg); }
.portfolio-item__face picture,
.portfolio-item__face img { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  .portfolio-item__thumb--flip { transition: none; }
}

/* Podpis ZAWSZE przy dolnej krawędzi — miniatury Allegro i reklamy mają własne
   napisy w kadrze, więc podpis w pionowym środku mieszał się z grafiką albo ją
   zasłaniał. Gradient musi realnie przykryć pasek z tekstem: kategoria siedzi
   NAD tytułem, czyli tam, gdzie stary gradient (0.88 → transparent na 55%) był
   już prawie przezroczysty i złota „REKLAMY" ginęła na jasnym tle. */
.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(13, 13, 13, 0.94) 0%,
    rgba(13, 13, 13, 0.88) 22%,
    rgba(13, 13, 13, 0.45) 44%,
    transparent 72%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Podpis wysrodkowany w poziomie — przy szerokim kafelku tekst dociagniety
     do lewej zostawial pusta polowe paska. Pion zostaje przy dole. */
  align-items: center;
  text-align: center;
  padding: 14px 16px;
  opacity: 0;
  transition: opacity 0.3s;
}
.portfolio-item:hover .portfolio-item__overlay { opacity: 1; }

/* Szeroki kafelek udźwignie większy podpis — przy 1160 px 0.97rem gubi się. */
.portfolio-item--full .portfolio-item__title,
.portfolio-item--wide .portfolio-item__title { font-size: 1.12rem; }
.portfolio-item--full .portfolio-item__overlay,
.portfolio-item--wide .portfolio-item__overlay { padding: 18px 20px; }

/* Cień pod tekstem, bo sam gradient nie wystarcza na miniaturach Allegro —
   te mają własne, jaskrawe napisy dokładnie w tym pasku. */
.portfolio-item__cat {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 4px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.portfolio-item__title {
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-dark);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--light-bg); }

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}

.about__text p {
  font-size: 0.93rem;
  color: var(--muted-light);
  line-height: 1.85;
  margin-bottom: 18px;
}
.about__text .btn { margin-top: 8px; }

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-self: center;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 26px 22px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.stat:hover { border-color: rgba(212, 168, 83, 0.35); }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  font-weight: 800;
  color: var(--text-light);
  line-height: 1;
}
.stat__label { font-size: 0.78rem; color: var(--muted-light); line-height: 1.4; }


/* ---------- About: tekst (lewo) | statystyki 2x2 (prawo) ---------- */
.about__text-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Heading row: mała okrągła fota + nagłówek obok */
.about__heading {
  display: flex;
  align-items: center;
  gap: 18px;
}

.about__heading .section-title {
  margin-bottom: 0;
}

/* Fota — małe kółko przy nagłówku */
.about__photo {
  flex-shrink: 0;
  width: clamp(80px, 9vw, 110px);
  height: clamp(80px, 9vw, 110px);
  border-radius: 50%;
  overflow: hidden;
  background: var(--light-surface);
  border: 2px solid var(--accent);
}

.about__photo-img,
.about__photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about__photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    var(--light-surface),
    var(--light-surface) 10px,
    rgba(212, 168, 83, 0.06) 10px,
    rgba(212, 168, 83, 0.06) 20px
  );
  color: var(--muted-light);
  font-size: 1.5rem;
  opacity: 0.8;
}

/* Mobile: flex column z display: contents trickiem */
@media (max-width: 768px) {
  .about__inner {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  .about__text-wrap { display: contents; }
  .about__inner .section-label { order: 1; }
  .about__inner .about__heading { order: 2; }
  .about__inner .about__text { order: 3; }
  .about__inner .about__stats { order: 4; }
  .about__inner .about__cta { order: 5; align-self: flex-start; }

  .about__heading { gap: 14px; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--light-surface); }

@media (max-width: 768px) {
  .section.contact { padding-top: 36px; }
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}

/* Grid items domyślnie mają min-width:auto — to potrafi rozsadzić kolumnę
   szerzej niż viewport (zwłaszcza przez <select>/<input>). Reset: */
.contact__info,
.contact__form {
  min-width: 0;
}

.contact__info p {
  font-size: 0.93rem;
  color: var(--muted-light);
  line-height: 1.8;
  margin-bottom: 28px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-style: normal;
}

.contact__note {
  font-size: 0.78rem;
  color: var(--muted-light);
  font-style: italic;
  margin-top: 12px;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  padding-right: 4px; /* italic slant — ostatni glyph nie wystaje za box */
}

.contact__link {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact__link {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}
.contact__link:hover { color: var(--accent); }

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--muted-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 15px;
  border: 1.5px solid var(--border-light);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-light);
  background: var(--light-bg);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-note {
  font-size: 0.78rem;
  color: var(--muted-light);
  text-align: center;
  margin-top: -6px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark-bg);
  padding-block: 52px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer__name {
  display: block;
  font-family: var(--font-hero);
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.footer__brand p {
  font-size: 0.83rem;
  color: var(--muted-dark);
  line-height: 1.7;
}

.footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.footer__nav-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}
.footer__nav a {
  font-size: 0.83rem;
  color: var(--muted-dark);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.footer__nav a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .footer__nav { gap: 14px; }
  .footer__nav-col { gap: 8px; }
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--muted-dark);
  text-align: right;
  line-height: 1.7;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services__main { grid-template-columns: 1fr 1fr; }
  .services__main .service-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }

  .nav__menu {
    position: fixed;
    top: 0;
    bottom: 0;
    left: auto;
    right: -100%;
    width: 100%;
    max-width: 100vw;
    background: var(--dark-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: right 0.3s ease;
    list-style: none;
  }
  .nav__menu.open { right: 0; }
  .nav__link { font-size: 1.15rem; }

  /* Gdy menu otwarte, wyłącz backdrop-filter na .nav — inaczej tworzy
     containing block i menu (position:fixed) zostaje uwięzione w 72px paska. */
  .nav:has(.nav__menu.open),
  .nav.scrolled:has(.nav__menu.open) {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--dark-bg);
  }

  .services__main { grid-template-columns: 1fr; gap: 20px; }
  .services__main .service-card:last-child { grid-column: auto; }
  .services__extra-grid { grid-template-columns: 1fr; }

  /* Mobile: wycentrowany numer + tytuł, większe, więcej oddechu */
  .service-card {
    padding: 26px 26px 32px;
    gap: 10px;
  }
  .service-card__num {
    display: block;
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 0;
  }
  .service-card__title {
    text-align: center;
    font-size: 1.85rem;
    margin-bottom: 20px;
  }
  .service-card__desc { font-size: 0.9rem; line-height: 1.8; }
  .service-card__list li { font-size: 0.9rem; }
  .service-card__actions { justify-content: center; }

  /* 4 kolumny × domyślne `span 2` = dwa kafelki w wierszu. Pół szerokości
     (`--half`) na telefonie nie ma sensu — to już jest połowa wiersza. */
  .portfolio__grid { grid-template-columns: repeat(4, 1fr); }
  .portfolio-item--half { grid-column-end: span 2; }
  /* Kafelek 2x2 rozklada sie na pelna szerokosc i jeden wiersz — proporcje
     nadal pilnuje aspect-ratio, wiec zostaje kwadratem. */
  .portfolio-item--wide { grid-column-start: 1; grid-column-end: -1; }
  .portfolio-item--tall { grid-row-end: auto; }
  /* Na waskim kafelku srodek nic nie daje — podpis wraca do lewej krawedzi */
  .portfolio-item__overlay { align-items: flex-start; text-align: left; }

  /* .about__inner — mobile rules defined earlier (display:contents + order) */
  .contact__inner { grid-template-columns: 1fr; gap: 24px; }
  .form-row { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__copy { text-align: left; }

  .hero__scroll { display: none; }
}

@media (max-width: 480px) {
  /* 2 kolumny × domyślne `span 2` = jeden kafelek na wiersz. */
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-item--half,
  .portfolio-item--wide { grid-column-end: span 2; }

  .about__stats { grid-template-columns: 1fr 1fr; }

  .hero__headline { font-size: clamp(2.8rem, 13vw, 4rem); }
}

/* ============================================================
   BEFORE / AFTER SLIDER
   ============================================================ */
.portfolio-item--ba { cursor: ew-resize; }

.ba-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

.ba-pane {
  position: absolute;
  inset: 0;
}

/* Prawdziwe grafiki w sliderze przed/po. Oba panele musza miec identyczne
   kadrowanie (ten sam object-fit + to samo zrodlowe 1:1), inaczej suwak
   przeskakuje przy przeciaganiu. Kafelek jest kwadratowy jak grafiki,
   wiec cover nic nie ucina. */
.ba-pane picture { display: block; height: 100%; }
.ba-pane--img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Page header (portfolio.html) */
.page-header {
  background: var(--dark-bg);
  padding-top: calc(var(--nav-h) + 28px);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-dark);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted-dark);
  text-decoration: none;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }

.page-header__title {
  font-family: var(--font-hero);
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 10px;
}

.page-header__title em { font-style: italic; color: var(--accent); }

.page-header__sub {
  font-size: 0.85rem;
  color: var(--muted-dark);
  max-width: 560px;
  line-height: 1.65;
}

/* Portfolio page bottom CTA */
.portfolio-cta {
  background: var(--dark-surface);
  padding: 52px 0;
  border-top: 1px solid var(--border-dark);
}

.portfolio-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.portfolio-cta__text {
  font-family: var(--font-hero);
  font-size: clamp(1.2rem, 2.8vw, 2rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.2;
}

.portfolio-cta__text em { font-style: italic; color: var(--accent); }

@media (max-width: 600px) {
  .portfolio-cta__inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   CENNIK — pricing cards
   ============================================================ */
.pricing-section { background: var(--light-bg); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: 80px;
}

.pricing-card {
  background: var(--light-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 44px) clamp(24px, 2.5vw, 36px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.pricing-card::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.pricing-card:hover::before  { transform: scaleX(1); }
.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.07);
  border-color: rgba(212, 168, 83, 0.3);
}

.pricing-card__num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 12px;
}

.pricing-card__title {
  font-family: var(--font-hero);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 24px;
}

.pricing-card__price-block {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.pricing-card__od {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 4px;
}

.pricing-card__price {
  display: block;
  font-family: var(--font-hero);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  line-height: 1;
}

.pricing-card__unit {
  display: block;
  font-size: 0.8rem;
  color: var(--muted-light);
  margin-top: 6px;
}

.pricing-rows {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-light);
  gap: 12px;
}
.pricing-row:last-child { border-bottom: none; }

.pricing-row__desc {
  font-size: 0.84rem;
  color: var(--text-light);
}

.pricing-row__price {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
}

.pricing-row--custom .pricing-row__price {
  color: var(--muted-light);
  font-weight: 400;
  font-family: var(--font-body);
  font-style: italic;
}

/* Extra services pricing */
.pricing-extra {
  border-top: 1px solid var(--border-light);
  padding-top: 60px;
}

.pricing-extra-title {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 24px;
}

.extra-pricing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.extra-pricing__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  gap: 16px;
  transition: border-color 0.2s, background 0.2s;
}
.extra-pricing__item:hover {
  border-color: rgba(212, 168, 83, 0.4);
  background: rgba(212, 168, 83, 0.02);
}

.extra-pricing__service {
  display: flex;
  align-items: center;
  gap: 12px;
}

.extra-pricing__icon {
  color: var(--accent);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.extra-pricing__name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.extra-pricing__sub {
  font-size: 0.76rem;
  color: var(--muted-light);
  line-height: 1.4;
}

.extra-pricing__price {
  font-family: var(--font-hero);
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Disclaimer note */
.pricing-note {
  margin-top: 40px;
  padding: 18px 22px;
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(212, 168, 83, 0.03);
}

.pricing-note p {
  font-size: 0.83rem;
  color: var(--muted-light);
  line-height: 1.75;
}

.pricing-note strong { color: var(--text-light); }

/* Responsive */
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .extra-pricing { grid-template-columns: 1fr; }
}

.ba-after-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
}

.ba-tag {
  position: absolute;
  top: 14px;
  z-index: 4;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 3px 9px;
  border-radius: 2px;
  pointer-events: none;
}
.ba-tag--b { left: 14px; }
.ba-tag--a { right: 14px; }

.ba-divider {
  position: absolute;
  inset-block: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.88);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
}

.ba-knob {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.ba-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(13, 13, 13, 0.82) 0%, transparent 100%);
  z-index: 6;
  pointer-events: none;
}
.ba-caption .portfolio-item__cat { display: block; margin-bottom: 4px; }

/* ============================================================
   PORTFOLIO MORE LINK
   ============================================================ */
.portfolio__more {
  margin-top: 36px;
  min-height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.portfolio__more-link {
  position: absolute;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(250, 250, 250, 0.62);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  opacity: 0;
  transform: translateY(7px);
  pointer-events: none;
  transition: opacity 0.32s ease, transform 0.32s ease, color 0.2s, border-color 0.2s;
}
.portfolio__more-link.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}
.portfolio__more-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ============================================================
   PROCES GRAFIKI PRODUKTOWEJ (grafika-produktowa-proces.html)
   ============================================================ */
.process { background: var(--light-bg); }

.process { padding-block: clamp(48px, 6vw, 80px); }

.process__intro {
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted-light);
  text-align: center;
}
.process__intro strong { color: var(--text-light); font-weight: 500; }

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 860px) {
  .process-steps {
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
    row-gap: 40px;
  }

  /* Ostatni krok sam w wierszu — wyśrodkuj */
  .process-steps > .process-step:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 24px);
    margin-inline: auto;
  }
}

.process-step {
  display: grid;
  grid-template-columns: minmax(50px, 72px) minmax(0, 1fr);
  gap: 16px;
  padding: 0;
  align-items: stretch;
}

.process-step > * { min-width: 0; }

.process-step > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.process-step > div > .case-gallery {
  margin-top: auto;
}

.process-step__title,
.process-step__desc {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.process-step__num {
  font-family: var(--font-hero);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  line-height: 0.9;
  letter-spacing: -0.01em;
}

.process-step__title {
  font-family: var(--font-hero);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.2;
  margin-bottom: 10px;
}

.process-step__desc {
  font-size: 0.88rem;
  color: var(--muted-light);
  line-height: 1.65;
  margin-bottom: 18px;
}

/* ============================================================
   CASE STUDY GALLERY — adaptacyjna siatka 1 / 2 / 3 / 4+
   ============================================================ */
.case-gallery {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  width: 100%;
  grid-template-columns: 1fr;
}
/* 2 i więcej grafik → ZAWSZE dwie kolumny.
   Trzy w wierszu dawały w modalu (max 920 px) po ~290 px na grafikę —
   za mało, żeby cokolwiek na niej zobaczyć. Przy dwóch wychodzi ~445 px. */
.case-gallery:has(> :nth-child(2)) {
  grid-template-columns: repeat(2, 1fr);
}

.case-gallery figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--light-surface);
}

.case-gallery figure img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Galeria kolekcji — grafiki maja rozne proporcje (packshot 1:1, grafika
   produktowa 5:3, miniatura 1:1). Zamiast przycinac wszystko do 16/9,
   kazda zachowuje swoj format. align-items:start, zeby nizsza grafika
   nie rozciagala sie do wysokosci sasiadki. */
.case-gallery--auto { align-items: start; }
.case-gallery--auto figure img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

.case-gallery figcaption {
  padding: 8px 12px;
  font-size: 0.74rem;
  color: var(--muted-light);
  font-style: italic;
  background: var(--light-surface);
  border-top: 1px solid var(--border-light);
}

/* Placeholder gdy brak grafik */
.case-gallery__placeholder {
  width: 100%;
  max-width: 100%;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  background: repeating-linear-gradient(
    45deg,
    var(--light-surface),
    var(--light-surface) 10px,
    rgba(212, 168, 83, 0.04) 10px,
    rgba(212, 168, 83, 0.04) 20px
  );
  border: 1.5px dashed var(--border-light);
  border-radius: var(--radius);
  color: var(--muted-light);
  font-size: 0.78rem;
  text-align: center;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.case-gallery__placeholder > * { max-width: 100%; }
.case-gallery__placeholder-icon { font-size: 1.05rem; opacity: 0.7; }
.case-gallery__placeholder-hint { font-size: 0.68rem; opacity: 0.65; }

@media (min-width: 860px) {
  .case-gallery__placeholder {
    min-height: 100px;
    max-height: 130px;
  }
}

/* ============================================================
   TYMCZASOWE UKRYCIE PUSTYCH GALERII — do usunięcia po wgraniu grafik
   ------------------------------------------------------------
   Ukrywa całą .case-gallery, która zawiera tylko placeholder.
   Działa automatycznie: gdy w danej galerii usuniesz
   <div class="case-gallery__placeholder"> i wstawisz <figure>,
   galeria sama się pokaże — bez ruszania tego pliku.

   Żeby na czas pracy zobaczyć wszystkie placeholdery z powrotem,
   zakomentuj regułę poniżej.
   ============================================================ */
.case-gallery:has(> .case-gallery__placeholder) {
  display: none;
}

/* ============================================================
   CASE STUDY — kafelek z badge i pełna klikalność
   ============================================================ */
.portfolio-item--case { cursor: pointer; }

.portfolio-item__full-link {
  position: absolute;
  inset: 0;
  z-index: 5;
  text-indent: -9999px;
  overflow: hidden;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: transparent;
  font: inherit;
}

.portfolio-item__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  padding: 5px 10px 5px 11px;
  background: var(--accent);
  color: #0D0D0D;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-item--case:hover .portfolio-item__badge {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}

/* Reklamy i banery mają kompozycję dociągniętą do rogów (logo, cena, hasło),
   więc pełny złoty badge zasłaniał kawałek pracy. Przygaszamy go do 65%
   i wracamy do pełnej czytelności dopiero pod kursorem. Wizytówka to samo —
   kartonik jest mały i badge przykrywał spory kawałek projektu. */
.portfolio-item[data-category="reklamy"] .portfolio-item__badge,
.portfolio-item:has(.portfolio-item__thumb--flip) .portfolio-item__badge {
  opacity: 0.65;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.portfolio-item[data-category="reklamy"]:hover .portfolio-item__badge,
.portfolio-item:has(.portfolio-item__thumb--flip):hover .portfolio-item__badge { opacity: 1; }

.portfolio-item--case,
.portfolio-item--collection {
  transition: box-shadow 0.3s ease;
}
.portfolio-item--case:hover,
.portfolio-item--collection:hover {
  box-shadow: 0 0 0 2px var(--accent), 0 14px 36px rgba(212, 168, 83, 0.18);
}
.portfolio-item--collection { cursor: pointer; }

/* Kolekcja = ten sam styl co Realizacja (złote tło, czarny tekst) — kontrast identyczny.
   Różnica tylko w tekście ("Realizacja →" vs "Kolekcja →"). */

/* ============================================================
   COLLECTION MODAL (lightbox)
   ============================================================ */
.collection-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 40px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.collection-modal[hidden] { display: none; }
.collection-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.collection-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.collection-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  overflow-y: auto;
  background: #151515;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 44px);
  transform: scale(0.94);
  transition: transform 0.25s ease;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.collection-modal.is-open .collection-modal__dialog {
  transform: scale(1);
}

.collection-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 0;
  color: var(--muted-dark);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}
.collection-modal__close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dark);
}

.collection-modal__title {
  font-family: var(--font-hero);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 8px;
  padding-right: 42px;
}
.collection-modal__title em { font-style: italic; color: var(--accent); }

.collection-modal__desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted-dark);
  margin-bottom: 24px;
  max-width: 640px;
}

.collection-modal__content .case-gallery {
  margin-top: 0;
  margin-bottom: 24px;
}

/* Dark placeholder for gallery inside modal */
.collection-modal .case-gallery__placeholder {
  background: repeating-linear-gradient(
    45deg,
    #1a1a1a,
    #1a1a1a 10px,
    rgba(212, 168, 83, 0.06) 10px,
    rgba(212, 168, 83, 0.06) 20px
  );
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(250, 250, 250, 0.55);
}

/* Dark figure caption inside modal */
.collection-modal .case-gallery figure {
  background: #1a1a1a;
}
.collection-modal .case-gallery figcaption {
  background: #1a1a1a;
  border-top-color: var(--border-dark);
  color: var(--muted-dark);
}

/* ============================================================
   LIGHTBOX — powiekszenie pojedynczej grafiki
   Klik w kafelek bez kolekcji albo w grafike w galerii kolekcji.
   Musi lezec NAD modalem kolekcji, bo otwiera sie takze z jego wnetrza.
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;              /* nad .collection-modal (1000) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 8, 8, 0.93);
  backdrop-filter: blur(8px);
  opacity: 0;
  /* BEZ tego przezroczysta warstwa na cały ekran łapie każde kliknięcie
     na stronie. Dwa zabezpieczenia, bo jedno bywa za mało:
     - [hidden] musi być zadeklarowane jawnie: nasze `display:flex` jest
       stylem autora i bije regułę [hidden]{display:none} z przeglądarki
     - pointer-events wyłączone, dopóki lightbox nie jest otwarty */
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }

.lightbox__img {
  max-width: 80vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
  /* Klik w samo zdjecie nie zamyka — zamyka klik w tlo */
  cursor: default;
}

.lightbox__caption {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  max-width: 80vw;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted-dark);
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-dark);
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.8);
  color: var(--text-dark);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.lightbox__close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0D0D0D;
}

/* Co da sie powiekszyc — kursor mowi to wprost */
.portfolio-item--zoom,
.collection-modal .case-gallery figure img,
.collection-modal .case-study figure img { cursor: zoom-in; }

/* Tryb przed/po: zdjęcie + przełącznik pod nim, w kolumnie — przełącznik
   nie może leżeć na grafice, bo zasłaniałby właśnie to, co porównujemy. */
.lightbox--ba { flex-direction: column; gap: 18px; }
.lightbox--ba .lightbox__img { max-height: 74vh; }

.lightbox__toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.85);
}
.lightbox__toggle[hidden] { display: none; }
.lightbox__toggle button {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dark);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 9px 22px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lightbox__toggle button:hover { color: var(--text-dark); }
.lightbox__toggle button.is-active {
  background: var(--accent);
  color: #0D0D0D;
}

/* Przycisk „pełny ekran" na sliderze — pod etykietą „Po", żeby jej nie zasłaniać */
.ba-expand {
  position: absolute;
  top: 44px;
  right: 12px;
  z-index: 7;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(13, 13, 13, 0.6);
  color: #fff;
  cursor: zoom-in;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.ba-expand:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0D0D0D;
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .lightbox { padding: 12px; }
  .lightbox__img { max-width: 94vw; max-height: 82vh; }
  .lightbox--ba .lightbox__img { max-height: 70vh; }
}

/* ============================================================
   CASE STUDY w modalu — etapy pracy: grafika + opis
   ============================================================ */
.case-study__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 11px;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #0D0D0D;
  background: var(--accent);
  border-radius: 2px;
}

.case-study__meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 14px 0;
  margin-bottom: 32px;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  font-size: 0.88rem;
  color: var(--text-dark);
}
.case-study__meta span {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.case-study__steps {
  list-style: none;
  display: grid;
  gap: 36px;
  margin-bottom: 32px;
}

.case-study__step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: center;
}
/* Co drugi etap odwrócony — rytm zamiast listy */
.case-study__step:nth-child(even) .case-study__img { order: 2; }

.case-study__img {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1a1a1a;
}
.case-study__img img {
  display: block;
  width: 100%;
  height: auto;
}

.case-study__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(212, 168, 83, 0.35);
  margin-bottom: 10px;
}
.case-study__tag {
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.case-study__step-title {
  font-family: var(--font-hero);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 10px;
}
.case-study__text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted-dark);
}

.case-study__list {
  list-style: none;
  margin-top: 10px;
  display: grid;
  gap: 7px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(250, 250, 250, 0.78);
}
.case-study__list li {
  position: relative;
  padding-left: 24px;
}
.case-study__list li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}
.case-study__list--bad li::before { content: '✕'; color: #d9695f; }
.case-study__list--good li::before { content: '✓'; color: var(--accent); }

.case-study__summary {
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(212, 168, 83, 0.35);
  border-radius: var(--radius);
  background: rgba(212, 168, 83, 0.06);
  margin-bottom: 14px;
}
.case-study__summary p {
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.8vw, 1.12rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-dark);
}
.case-study__split {
  display: flex;
  height: 30px;
  margin-bottom: 16px;
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.case-study__split span {
  display: flex;
  align-items: center;
  padding: 0 14px;
  white-space: nowrap;
}
.case-study__split-ai {
  flex: 70;
  background: rgba(250, 250, 250, 0.1);
  color: var(--muted-dark);
}
.case-study__split-hand {
  flex: 30;
  justify-content: flex-end;
  background: var(--accent);
  color: #0D0D0D;
}

.case-study__note {
  font-size: 0.78rem;
  color: var(--muted-dark);
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .case-study__step { grid-template-columns: 1fr; }
  .case-study__step:nth-child(even) .case-study__img { order: 0; }
  .case-study__split span { padding: 0 10px; font-size: 0.58rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox { transition: none; }
}

/* Slidery przed/po wewnatrz modala kolekcji (np. Blender — dwie pary).
   .ba-slider jest position:absolute, wiec potrzebuje pudelka z proporcjami. */
.collection-ba-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}
@media (min-width: 700px) {
  .collection-ba-grid { grid-template-columns: 1fr 1fr; }
}
.collection-ba {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1a1a1a;
  aspect-ratio: 1 / 1;
  cursor: ew-resize;
}
.collection-ba .ba-slider { position: absolute; inset: 0; }
.collection-ba__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 12px 8px;
  font-size: 0.72rem;
  color: var(--text-dark);
  background: linear-gradient(to top, rgba(13, 13, 13, 0.85), transparent);
  pointer-events: none;
}

.collection-modal__back {
  margin-top: 4px;
  background: transparent;
  border: 0;
  padding: 4px 0;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted-dark);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.collection-modal__back:hover { color: var(--accent); }

/* ============================================================
   CASE STUDY PAGE — layout
   ============================================================ */
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 20px;
  list-style: none;
  padding: 0;
}
.case-meta li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.case-meta__label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.case-meta__value {
  font-size: 0.85rem;
  color: var(--text-dark);
  font-weight: 500;
}

.case-section { background: var(--light-bg); }

.case-block {
  margin-bottom: 56px;
  max-width: 820px;
}
.case-block:last-child { margin-bottom: 0; }

.case-block__title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.case-block__desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-light);
}
.case-block__desc p + p { margin-top: 14px; }

.case-block__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.case-block__list li {
  padding-left: 20px;
  position: relative;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-light);
}
.case-block__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 600;
}

.case-block .case-gallery { max-width: 100%; }

@media (max-width: 640px) {
  .process-steps { gap: 20px; }

  .process-step {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 0;
    align-items: start;
  }

  .process-step__num {
    font-size: 1.6rem;
    min-width: 34px;
    line-height: 1.1;
  }

  .process-step__title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    padding-top: 2px;
  }

  .process-step__desc {
    font-size: 0.86rem;
    line-height: 1.6;
    margin-bottom: 12px;
  }

  .process-step > div { display: block; }
  .process-step > div > .case-gallery { margin-top: 0; }

  /* Na telefonie jedna kolumna — dwie dałyby po ~150 px na grafikę. */
  .case-gallery,
  .case-gallery:has(> :nth-child(2)) {
    grid-template-columns: 1fr;
  }

  .case-gallery { margin-top: 0; }

  .page-header__title { font-size: 1.5rem; line-height: 1.15; }
  .page-header__sub { font-size: 0.82rem; }

  .process__intro { font-size: 0.88rem; margin-bottom: 28px; }
}

/* ============================================================
   LEGAL PAGES (polityka prywatności, regulamin)
   ============================================================ */
.section--legal {
  padding-top: clamp(40px, 6vw, 70px);
  padding-bottom: clamp(60px, 8vw, 100px);
  background: var(--light-bg);
}

.legal-content {
  max-width: 780px;
  margin: 0 auto;
}

.legal-content__meta {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 2.5em;
  padding-bottom: 1.4em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.legal-content h2 {
  font-family: var(--font-hero);
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  font-weight: 400;
  line-height: 1.2;
  margin-top: 2.4em;
  margin-bottom: 0.7em;
  color: var(--text-light);
}

.legal-content h2:first-of-type { margin-top: 0.5em; }

.legal-content h3 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  color: var(--text-light);
}

.legal-content p,
.legal-content li {
  font-family: var(--font-body);
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--text-light);
  opacity: 0.85;
}

.legal-content p { margin-bottom: 1em; }

.legal-content ul,
.legal-content ol {
  margin: 0.6em 0 1.4em 1.6em;
}

.legal-content li {
  margin-bottom: 0.5em;
}

.legal-content li > ul,
.legal-content li > ol {
  margin-top: 0.4em;
  margin-bottom: 0.4em;
}

.legal-content strong {
  color: var(--text-light);
  opacity: 1;
  font-weight: 600;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 0.2s;
}

.legal-content a:hover {
  color: var(--accent-hover);
}

@media (max-width: 600px) {
  .legal-content h2 { margin-top: 1.8em; }
  .legal-content p,
  .legal-content li { font-size: 0.92rem; line-height: 1.7; }
}

/* ============================================================
   FOOTER LEGAL LINKS
   ============================================================ */
.footer__legal {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-wrap: wrap;
}

.footer__legal a {
  color: rgba(250, 250, 250, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__legal a:hover {
  color: var(--accent);
}

.footer__legal span {
  color: rgba(250, 250, 250, 0.25);
}

/* ============================================================
   404 PAGE
   ============================================================ */
.page-header--404 {
  text-align: center;
  padding-top: clamp(80px, 14vw, 160px);
  padding-bottom: clamp(60px, 10vw, 120px);
}

.page-header--404 .back-link { display: none; }

.page-404__num {
  display: block;
  font-family: var(--font-hero);
  font-size: clamp(5rem, 16vw, 11rem);
  line-height: 1;
  color: var(--accent);
  font-style: italic;
  letter-spacing: -0.02em;
  margin-bottom: 0.1em;
  opacity: 0.85;
}

.page-header--404 .page-header__title {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  margin-bottom: 0.4em;
}

.page-header--404 .page-header__sub {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.4em;
}

.page-404__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .page-404__actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 280px;
    margin: 0 auto;
  }
}

/* ============================================================
   BRIEF FORM
   ============================================================ */
.section--brief {
  padding-top: clamp(30px, 5vw, 50px);
  padding-bottom: clamp(60px, 8vw, 100px);
  background: var(--light-bg);
}

.brief-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-bottom: 32px;
}

.brief-actions .btn {
  font-size: 0.82rem;
  padding: 10px 18px;
}

.brief-actions--top {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.brief-form {
  max-width: 820px;
  margin: 0 auto;
}

.brief-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 clamp(36px, 5vw, 56px) 0;
  background: #fff;
  border-radius: 8px;
  padding: clamp(22px, 3vw, 36px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.03);
}

.brief-fieldset__legend {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  width: 100%;
}

.brief-fieldset__num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.brief-fieldset__title {
  font-family: var(--font-hero);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 400;
  color: var(--text-light);
}

.brief-grid {
  display: grid;
  gap: 18px;
}

.brief-grid--2 {
  grid-template-columns: 1fr 1fr;
}

.brief-form .form-group { margin-bottom: 18px; }
.brief-form .form-group:last-child { margin-bottom: 0; }

.brief-form label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-light);
  display: block;
  margin-bottom: 8px;
}

.brief-form .req { color: var(--accent); margin-left: 2px; }

.brief-label-block {
  margin-bottom: 12px !important;
}

.brief-hint {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted-light);
  margin-left: 6px;
}

.brief-form input[type="text"],
.brief-form input[type="email"],
.brief-form input[type="tel"],
.brief-form select,
.brief-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fafaf8;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  color: var(--text-light);
  transition: border-color 0.2s, background 0.2s;
}

.brief-form textarea {
  resize: vertical;
  min-height: 70px;
  font-family: var(--font-body);
}

.brief-form input:focus,
.brief-form select:focus,
.brief-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

.brief-checks,
.brief-radios {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.brief-check {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fafaf8;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-body) !important;
  font-size: 0.92rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--text-light) !important;
  margin-bottom: 0 !important;
  transition: border-color 0.2s, background 0.2s;
}

.brief-check:hover {
  background: #fff;
  border-color: rgba(212, 168, 83, 0.4);
}

/* Custom checkbox/radio — jednolity kwadrat, gold z wyraznym ✓ jako SVG bg */
.brief-check input[type="checkbox"],
.brief-check input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(0, 0, 0, 0.28);
  border-radius: 3px;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 72%;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
  display: inline-block;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.brief-check input[type="checkbox"]:checked,
.brief-check input[type="radio"]:checked {
  background-color: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230D0D0D' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5 L7 12 L12.5 4.5'/%3E%3C/svg%3E");
  background-size: 58%;
}

.brief-check:has(input:checked) {
  background: rgba(212, 168, 83, 0.18);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

/* === ZGODY PRAWNE W FORMULARZACH ======================================== */
/* Uzywane w index.html (#contactForm) i brief.html (#briefForm).
   Wylacznie potwierdzenia zapoznania sie z dokumentami — oba formularze
   to zapytania, nie zamowienia (§4 pkt 4 regulaminu). */

.form-consents {
  display: grid;
  gap: 10px;
  margin: 26px 0 22px;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: #fafaf8;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted-light);
  transition: border-color 0.2s, background 0.2s;
}

.form-consent:hover {
  background: #fff;
  border-color: rgba(212, 168, 83, 0.4);
}

.form-consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  border: 1.5px solid rgba(0, 0, 0, 0.28);
  border-radius: 3px;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.form-consent input[type="checkbox"]:checked {
  background-color: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230D0D0D' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5 L7 12 L12.5 4.5'/%3E%3C/svg%3E");
  background-size: 58%;
}

.form-consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-consent:has(input:checked) {
  border-color: rgba(212, 168, 83, 0.5);
}

.form-consent a {
  color: var(--text-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-consent a:hover { color: var(--accent); }

@media (max-width: 480px) {
  .form-consent { font-size: 0.76rem; }
}

.brief-header-cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.brief-header-cta__or {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

@media (max-width: 600px) {
  .brief-header-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .brief-header-cta .btn {
    width: 100%;
    text-align: center;
  }
}

/* ============================================================
   PAGE: Jak pracujemy
   ============================================================ */
.section.work {
  background: var(--light-bg);
  padding-top: clamp(50px, 7vw, 90px);
}

.work-block {
  max-width: 820px;
  margin: 0 auto clamp(70px, 9vw, 110px) auto;
}

.work-block:last-child {
  margin-bottom: 0;
}

.work-block__title {
  font-family: var(--font-hero);
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 0.7em;
  color: var(--text-light);
}

.work-block__title em {
  color: var(--accent);
  font-style: italic;
}

.work-block__subtitle {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 1.8em 0 0.8em 0;
}

.work-block p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 1em;
}

.work-block p:last-child {
  margin-bottom: 0;
}

.work-block a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 0.2s;
}

.work-block a:hover {
  color: var(--accent-hover);
}

/* Buttony w work-block — nie dziedzicz koloru z .work-block a */
.work-block a.btn {
  text-decoration: none;
}
.work-block a.btn--primary {
  color: #0D0D0D;
}
.work-block a.btn--primary:hover {
  color: #0D0D0D;
}
.work-block a.btn--ghost {
  color: var(--text-light);
}
.work-block a.btn--ghost:hover {
  color: var(--accent);
}

/* Karty kontaktowe na końcu strony jak-pracujemy */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 1.8em;
}

.work-block a.contact-card {
  display: flex !important;
  flex-direction: column;
  gap: 6px;
  padding: 28px 26px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.work-block a.contact-card:hover {
  border-color: var(--accent);
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(212, 168, 83, 0.14);
}

.contact-card__icon {
  font-size: 1.7rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.contact-card__label {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-card__value {
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.3;
  margin-top: 2px;
  word-break: break-word;
}

.contact-card__hint {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted-light);
  margin-top: 8px;
}

.contact-cards__note {
  text-align: center;
  margin-top: 1.6em !important;
  font-family: var(--font-body);
  font-size: 0.92rem !important;
  color: var(--muted-light) !important;
  font-style: italic;
}

@media (max-width: 600px) {
  .contact-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .work-block a.contact-card {
    padding: 22px 20px;
  }
}

.work-block__list {
  list-style: none;
  margin: 0.4em 0 1.4em 0;
  padding: 0;
}

.work-block__list li {
  position: relative;
  padding-left: 26px;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-light);
  margin-bottom: 12px;
}

.work-block__list li::before {
  content: "·";
  position: absolute;
  left: 6px;
  top: -6px;
  color: var(--accent);
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
}

.work-block__list li strong {
  font-weight: 500;
  color: var(--text-light);
}

.work-block__list-desc {
  font-size: 0.88rem;
  color: var(--muted-light);
  line-height: 1.65;
}

.work-block__quote {
  margin-top: 2em;
  padding: 22px 26px;
  background: var(--light-surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
}

.work-block__quote em {
  color: var(--accent);
  font-style: italic;
  font-family: var(--font-hero);
  font-size: 1.1em;
}

.work-block__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.6em;
}

.work-block__note {
  margin-top: 1.5em;
  padding: 14px 20px;
  background: var(--light-surface);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--muted-light);
  font-style: italic;
}

.work-block__note strong {
  color: var(--text-light);
  font-weight: 600;
  font-style: normal;
}

.work-block .process-steps {
  margin-top: 1.5em;
  margin-bottom: 0;
}

/* W work-block process-step__desc ma identyczny look co w proces pages */
.work-block .process-step__desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--muted-light);
  line-height: 1.65;
  margin-bottom: 14px;
}

.work-block .process-step__desc:last-child {
  margin-bottom: 0;
}

.work-block .process-step__desc em {
  font-style: italic;
  color: var(--text-light);
  opacity: 0.85;
}

.work-block .process-step__note {
  font-size: 0.78rem;
  opacity: 0.7;
  margin-top: -6px;
}

.work-block .process-step__note em {
  opacity: 0.75;
}

@media (max-width: 600px) {
  .work-block__list li {
    font-size: 0.95rem;
    padding-left: 22px;
  }
  .work-block__cta .btn {
    width: 100%;
    text-align: center;
  }
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.brief-note {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--muted-light);
  margin: -4px 0 14px 0;
  padding: 10px 14px;
  background: rgba(212, 168, 83, 0.06);
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
}

.brief-check-extra {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-left: auto;
  padding-left: 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

.word-rotate {
  display: inline-block;
  transition: opacity 0.3s ease, transform 0.3s ease;
  will-change: opacity, transform;
}

.word-rotate--out {
  opacity: 0;
  transform: translateY(-4px);
}

.brief-multi {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brief-multi__field {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.brief-multi__field input {
  flex: 1;
}

.brief-multi__remove {
  flex-shrink: 0;
  width: 38px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  color: var(--muted-light);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.brief-multi__remove:hover {
  border-color: #c44a52;
  color: #c44a52;
  background: rgba(196, 74, 82, 0.06);
}

.brief-multi__add {
  align-self: flex-start;
  background: transparent;
  border: 1px dashed rgba(212, 168, 83, 0.5);
  color: var(--accent);
  padding: 9px 16px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.brief-multi__add:hover {
  border-color: var(--accent);
  background: rgba(212, 168, 83, 0.08);
  color: var(--accent-hover);
}

.brief-submit {
  margin-top: 32px;
  text-align: center;
}

.brief-submit__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.brief-submit__actions .btn {
  flex: 1 1 240px;
  max-width: 360px;
  text-align: center;
}

.brief-submit .form-note {
  margin-top: 12px;
  text-align: center;
}
.form-note--tiny {
  font-size: 0.72rem !important;
  opacity: 0.7;
  margin-top: 4px !important;
}

@media (max-width: 560px) {
  .brief-submit__actions {
    flex-direction: column;
  }
  .brief-submit__actions .btn {
    max-width: 100%;
  }
}

.print-only { display: none; }

/* Łamanie nagłówka tylko na mobile — na desktopie jedna linia */
.br-mobile { display: none; }
@media (max-width: 768px) {
  .br-mobile { display: inline; }
}

.contact__brief {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--text-light);
}

/* Wariant mobile — siostra .contact__info i .contact__form w gridzie .contact__inner.
   Desktop: ukryty (pokazujemy oryginał wewnątrz .contact__info).
   Mobile: pokazany pod formem, oryginał wewnątrz info ukryty. */
.contact__brief--mobile { display: none; }

@media (max-width: 768px) {
  .contact__info > .contact__brief { display: none; }
  .contact__brief--mobile {
    display: block;
    margin-top: 0;
    font-size: 0.88rem;
    color: var(--muted-light);
    text-align: center;
  }
}

.contact__brief strong {
  color: var(--text-light);
  font-weight: 600;
}

.contact__brief a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.contact__brief a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background: var(--dark-bg);
  color: var(--text-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.22);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner--visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  gap: 22px;
}

.cookie-banner__text {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
  color: rgba(250, 250, 250, 0.85);
}

.cookie-banner__text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__text a:hover {
  color: var(--accent-hover);
}

.cookie-banner__btn {
  flex-shrink: 0;
  padding: 11px 22px;
  background: var(--accent);
  color: var(--text-light);
  border: none;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.cookie-banner__btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.cookie-banner__btn:active {
  transform: translateY(0);
}

@media (max-width: 700px) {
  .cookie-banner__inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 16px 20px;
  }
  .cookie-banner__btn { width: 100%; }
}

@media print {
  .cookie-banner { display: none !important; }
}

/* ============================================================
   THANK YOU PAGE
   ============================================================ */
.page-header--thanks {
  text-align: center;
  padding-top: clamp(80px, 14vw, 160px);
  padding-bottom: clamp(60px, 10vw, 120px);
}

.page-header--thanks .back-link { display: none; }

.thanks-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(72px, 10vw, 96px);
  height: clamp(72px, 10vw, 96px);
  border-radius: 50%;
  background: var(--accent);
  color: var(--dark-bg);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 1em;
  box-shadow: 0 0 0 8px rgba(212, 168, 83, 0.12);
}

.page-header--thanks .page-header__title {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  margin-bottom: 0.4em;
}

.page-header--thanks .page-header__sub {
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.thanks-meta {
  margin-top: 2.8em;
  margin-bottom: 2em;
}

.thanks-meta p {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 16px;
}

.thanks-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.thanks-contact {
  margin-top: 2em;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--muted-dark);
}

.thanks-contact a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}

.thanks-contact a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.thanks-contact__note {
  display: block;
  margin-top: 6px;
  font-size: 0.84rem;
  opacity: 0.75;
}

@media (max-width: 480px) {
  .thanks-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 280px;
    margin: 0 auto;
  }
}

/* ============================================================
   FAQ PAGE
   ============================================================ */
.section--faq {
  padding-top: clamp(30px, 5vw, 50px);
  padding-bottom: clamp(60px, 8vw, 100px);
  background: var(--light-bg);
}

.faq-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.faq-group {
  margin-bottom: clamp(40px, 5vw, 56px);
}

.faq-group:last-child { margin-bottom: 0; }

.faq-group__title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-hero);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-group__num {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-item {
  background: #fff;
  border-radius: 6px;
  margin-bottom: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item[open] {
  border-color: rgba(212, 168, 83, 0.4);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.faq-item__q {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-light);
  padding: 18px 52px 18px 22px;
  cursor: pointer;
  position: relative;
  list-style: none;
  user-select: none;
  line-height: 1.4;
}

.faq-item__q::-webkit-details-marker { display: none; }

.faq-item__q::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-hero);
  font-size: 1.6rem;
  color: var(--accent);
  font-weight: 400;
  line-height: 1;
  transition: transform 0.25s;
}

.faq-item[open] .faq-item__q::after {
  content: '−';
  transform: translateY(-50%);
}

.faq-item__q:hover {
  color: var(--accent);
}

.faq-item__a {
  padding: 0 22px 22px 22px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-light);
  opacity: 0.85;
}

.faq-item__a p { margin-bottom: 0.9em; }
.faq-item__a p:last-child { margin-bottom: 0; }

.faq-item__a ul {
  margin: 0.4em 0 0.9em 1.4em;
}

.faq-item__a li {
  margin-bottom: 0.4em;
}

.faq-item__a strong {
  opacity: 1;
  font-weight: 600;
}

.faq-item__a a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 700px) {
  .brief-grid--2 { grid-template-columns: 1fr; }
  .brief-checks,
  .brief-radios { grid-template-columns: 1fr; }
  .brief-actions { justify-content: stretch; }
  .brief-actions .btn { flex: 1; text-align: center; }
}

/* ============================================================
   PRINT STYLES (głównie dla brief.html)
   ============================================================ */
@media print {
  @page {
    size: A4;
    margin: 1.5cm 1.8cm;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 10pt;
  }

  .nav,
  .no-print,
  .page-header__sub,
  .back-link,
  footer,
  .portfolio-cta {
    display: none !important;
  }

  .page-header {
    background: #fff !important;
    padding: 0 0 18pt 0 !important;
    border-bottom: 2px solid #000;
    margin-bottom: 18pt;
  }

  .page-header__title {
    color: #000 !important;
    font-size: 22pt !important;
    margin: 0 !important;
  }

  .page-header__title em {
    color: #000 !important;
    font-style: italic;
  }

  main { padding: 0 !important; }
  .container { padding: 0 !important; max-width: 100% !important; }

  .section--brief {
    padding: 0 !important;
    background: #fff !important;
  }

  .brief-fieldset {
    box-shadow: none !important;
    border: 1px solid #000 !important;
    border-radius: 0 !important;
    padding: 10pt !important;
    margin-bottom: 14pt !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .brief-fieldset__legend {
    border-bottom: 1px solid #000 !important;
    padding-bottom: 6pt !important;
    margin-bottom: 10pt !important;
  }

  .brief-fieldset__num,
  .brief-fieldset__title {
    color: #000 !important;
  }

  .brief-form label {
    color: #000 !important;
    font-size: 8pt !important;
  }

  .brief-form input,
  .brief-form select,
  .brief-form textarea {
    background: #fff !important;
    border: 1px solid #999 !important;
    border-radius: 0 !important;
    color: #000 !important;
    padding: 6pt !important;
    min-height: 22pt;
  }

  .brief-form textarea {
    min-height: 50pt !important;
  }

  .brief-check {
    background: #fff !important;
    border: 1px solid #999 !important;
    border-radius: 0 !important;
    padding: 4pt 8pt !important;
    font-size: 9pt !important;
  }

  .brief-check input {
    accent-color: #000;
  }

  .req { color: #000 !important; }

  .print-only { display: block !important; }
  .brief-print-only {
    margin-top: 14pt;
    padding: 10pt;
    border: 1px solid #000;
    text-align: center;
    font-size: 9pt;
  }
}

/* ============================================================
   FILTER BUTTON COUNT — "Wszystko (27)"
   ============================================================ */
.filter-btn__count {
  margin-left: 4px;
  font-size: 0.78em;
  opacity: 0.55;
  font-weight: 500;
  font-feature-settings: 'tnum';
}
.filter-btn--active .filter-btn__count { opacity: 0.75; }

/* ============================================================
   PORTFOLIO SEARCH — input nad filtrami
   ============================================================ */
.portfolio__search {
  max-width: 560px;
  margin: 0 auto clamp(20px, 3vw, 32px);
}
.portfolio__search-label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.portfolio__search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  transition: border-color .2s, background .2s;
}
.portfolio__search-wrap:focus-within {
  border-color: var(--accent);
  background: rgba(212,168,83,0.08);
}
.portfolio__search-icon {
  position: absolute;
  left: 18px;
  color: var(--accent);
  font-size: 1.05rem;
  pointer-events: none;
}
.portfolio__search-input {
  flex: 1;
  padding: 14px 44px 14px 44px;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 0.95rem;
  -webkit-appearance: none;
  appearance: none;
}
.portfolio__search-input::placeholder {
  color: var(--muted-dark);
}
.portfolio__search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.portfolio__search-clear {
  position: absolute;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--text-dark);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.portfolio__search-clear:hover {
  background: var(--accent);
  color: var(--text-light);
}
.portfolio__search-empty {
  margin: 14px 0 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--muted-dark);
}

/* ============================================================
   HERO — secondary CTA "Zobacz proces"
   ============================================================ */
.hero__process-links {
  margin: clamp(16px, 2.5vw, 22px) 0 0;
  font-family: var(--font-display);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  color: var(--muted-dark);
}
.hero__process-prefix {
  margin-right: 8px;
}
.hero__process-link {
  color: var(--text-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(212,168,83,0.4);
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.hero__process-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.hero__process-sep {
  margin: 0 8px;
  opacity: 0.4;
}
@media (max-width: 600px) {
  .hero__process-links {
    font-size: 0.78rem;
  }
  .hero__process-sep {
    display: block;
    height: 4px;
    margin: 4px 0;
  }
}

/* ============================================================
   STICKY CTA MOBILE — pasek "Napisz" zawsze widoczny
   ============================================================ */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  background: var(--accent);
  color: var(--text-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.25);
  transform: translateY(110%);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), background .2s;
}
.sticky-cta:hover {
  background: var(--accent-hover);
}
.sticky-cta__icon {
  font-size: 1.1rem;
}
/* Pojawia się dopiero po decyzji o cookies — na mobile */
body.cookies-done .sticky-cta {
  transform: translateY(0);
}
@media (max-width: 768px) {
  .sticky-cta { display: flex; }
  body.cookies-done { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}

/* ============================================================
   WHATSAPP FLOATING BUBBLE — stylowana pod paletę
   ============================================================ */
.wa-bubble {
  position: fixed;
  right: clamp(14px, 2.5vw, 24px);
  bottom: clamp(14px, 2.5vw, 24px);
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  text-decoration: none;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.92);
  transition: opacity .3s ease, transform .3s ease;
}
.wa-bubble__icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--dark-bg);
  color: var(--accent);
  border: 1.5px solid rgba(212,168,83,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transition: background .2s, border-color .2s, transform .2s;
}
.wa-bubble:hover .wa-bubble__icon {
  background: var(--accent);
  color: var(--dark-bg);
  border-color: var(--accent);
  transform: scale(1.06);
}
.wa-bubble__tip {
  display: none;
  background: var(--dark-bg);
  color: var(--text-dark);
  border: 1px solid rgba(212,168,83,0.25);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
@media (hover: hover) and (min-width: 769px) {
  .wa-bubble:hover .wa-bubble__tip { display: inline-block; }
}

/* Mobile: zawsze widoczny po cookies-done */
@media (max-width: 768px) {
  body.cookies-done .wa-bubble {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  /* Unika kolizji ze sticky-cta na dole */
  .wa-bubble {
    bottom: calc(72px + env(safe-area-inset-bottom));
  }
  .wa-bubble__icon {
    width: 48px;
    height: 48px;
  }
}

/* Desktop: pojawia się dopiero po wyjściu hero z viewportu */
@media (min-width: 769px) {
  body.cookies-done .wa-bubble.wa-bubble--past-hero {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
}

/* Drukowanie — chowamy floating elementy */
@media print {
  .sticky-cta, .wa-bubble { display: none !important; }
}

/* ============================================================
   BLOG — index i karty artykułów
   ============================================================ */
.section--blog {
  background: var(--dark-bg);
  color: var(--text-dark);
  padding-block: clamp(48px, 7vw, 96px);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
}

.blog-card {
  background: var(--dark-surface);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.blog-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-card__thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  position: relative;
  overflow: hidden;
}

.blog-card__body {
  padding: clamp(20px, 2.5vw, 28px);
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.blog-card__cat {
  color: var(--accent);
  font-weight: 700;
}
.blog-card__date {
  color: var(--muted-dark);
}

/* Badge "Szkic" — placeholder zamiast daty publikacji.
   Usunąć razem z placeholderami przy publikacji bloga. */
.blog-card__badge {
  padding: 2px 8px;
  border: 1px solid rgba(250, 250, 250, 0.25);
  border-radius: 999px;
  color: var(--muted-dark);
  font-weight: 600;
  font-size: 0.68rem;
}
.blog-card__meta::before {
  content: '';
  display: none;
}

.blog-card__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  line-height: 1.35;
  color: var(--text-dark);
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}

.blog-card__lead {
  font-family: var(--font-body);
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--muted-dark);
  margin-bottom: 16px;
}

.blog-card__read {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  transition: transform .2s;
}
.blog-card:hover .blog-card__read {
  transform: translateX(4px);
}

/* Baner "szkic" — blog nie jest opublikowany, treść placeholderowa.
   Cały blok (razem z .article__placeholder) do usunięcia przy publikacji. */
.draft-banner {
  margin-top: clamp(20px, 2.5vw, 28px);
  padding: 14px 18px;
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  background: rgba(212, 168, 83, 0.08);
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-dark);
}
.draft-banner strong {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.article__placeholder {
  color: var(--muted-light);
  font-style: italic;
}

.blog-empty-note {
  margin-top: clamp(40px, 5vw, 60px);
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--muted-dark);
}
.blog-empty-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-empty-note a:hover {
  color: var(--accent-hover);
}

/* ============================================================
   BLOG ARTICLE — layout treści (TOC + content + related)
   ============================================================ */
.page-header--article .article-header {
  margin-top: clamp(20px, 3vw, 32px);
}
.article-header__cat {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.article-header__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text-dark);
  margin-bottom: 18px;
}
.article-header__title em {
  color: var(--accent);
  font-style: italic;
  font-weight: 600;
}
.article-header__lead {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.55;
  color: var(--muted-dark);
  max-width: 720px;
  margin-bottom: 22px;
}
.article-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted-dark);
}
.article-header__meta span[aria-hidden="true"] {
  opacity: 0.65;
}

/* BREADCRUMBS */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted-dark);
  margin-bottom: clamp(20px, 3vw, 28px);
}
.breadcrumbs a {
  color: var(--muted-dark);
  text-decoration: none;
  transition: color .2s;
}
.breadcrumbs a:hover {
  color: var(--accent);
}
.breadcrumbs span[aria-hidden="true"] {
  opacity: 0.65;
}
.breadcrumbs__current {
  color: var(--text-dark);
}

/* SECTION ARTICLE */
.section--article {
  background: var(--light-bg);
  color: var(--text-light);
  padding-block: clamp(48px, 7vw, 96px);
}

.article-container {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

@media (max-width: 900px) {
  .article-container {
    grid-template-columns: 1fr;
  }
}

/* TOC */
.article-toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: 20px;
  background: var(--light-surface);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.86rem;
}
.article-toc__title {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 14px;
}
.article-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}
.article-toc__list li {
  counter-increment: toc;
  margin-bottom: 10px;
  line-height: 1.4;
}
.article-toc__list a {
  color: var(--text-light);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.article-toc__list a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

@media (max-width: 900px) {
  .article-toc {
    position: static;
    margin-bottom: 24px;
  }
}

/* ARTICLE CONTENT */
.article {
  max-width: 720px;
  font-family: var(--font-body);
  color: var(--text-light);
  line-height: 1.7;
  font-size: 1.05rem;
}
.article__intro {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 32px;
}
/* Intro NIE ma już akcentowanego bold — cały paragraf jest "leadem",
   dodatkowy strong robił z niego ścianę tekstu. */
.article__intro strong {
  font-weight: 400;
}
.article h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  line-height: 1.3;
  color: var(--text-light);
  margin: 48px 0 18px;
  scroll-margin-top: calc(var(--nav-h) + 20px);
  letter-spacing: -0.01em;
}
.article h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 32px 0 14px;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.article p {
  margin-bottom: 18px;
}
.article ul, .article ol {
  padding-left: 22px;
  margin: 0 0 22px;
}
.article li {
  margin-bottom: 8px;
}
.article ul li::marker {
  color: var(--accent);
}
.article a {
  color: var(--text-light);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.article a:hover {
  color: var(--accent);
}
.article strong {
  font-weight: 500;
  color: var(--text-light);
}

.article__quote {
  margin: 36px 0;
  padding: 24px 28px;
  border-left: 3px solid var(--accent);
  background: var(--light-surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article__quote p {
  margin: 0;
  font-family: var(--font-hero);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--text-light);
}

.article__cta {
  margin: 48px 0 0;
  padding: 28px;
  background: var(--dark-bg);
  color: var(--text-dark);
  border-radius: var(--radius);
  text-align: center;
}
.article__cta-text {
  font-family: var(--font-hero);
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 18px;
}

/* RELATED */
.section--related {
  background: var(--dark-bg);
  color: var(--text-dark);
  padding-block: clamp(48px, 6vw, 80px);
}
.related__title {
  font-family: var(--font-hero);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  color: var(--text-dark);
  margin-bottom: clamp(24px, 3vw, 36px);
  text-align: center;
}
.related__title em {
  color: var(--accent);
  font-style: italic;
}
.blog-grid--related {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  max-width: 880px;
  margin: 0 auto;
}

/* ============================================================
   PAGE: /proces — case studies (link z CV)
   Rytm: header dark → zasady light → case studies dark → proces light → CTA dark
   ============================================================ */
.hub-principles {
  background: var(--light-bg);
  color: var(--text-light);
  padding-block: clamp(48px, 6vw, 80px);
}
.hub-principles .section-title { margin-bottom: 32px; }

.hub-principles__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.hub-principle {
  background: var(--light-surface);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.hub-principle__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
}

.hub-principle__title {
  font-family: var(--font-hero);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hub-principle p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #444;
}

.hub-cases { background: var(--dark-bg); color: var(--text-dark); }

.hub-cases__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.hub-case {
  display: flex;
  flex-direction: column;
  background: var(--dark-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.hub-case:hover { border-color: rgba(var(--accent-rgb), 0.45); }

.hub-case__media {
  display: block;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background: #1f1f1f;
}
.hub-case__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.hub-case:hover .hub-case__media img { transform: scale(1.03); }

.hub-case__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 26px 28px;
}

.hub-case__cat {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.hub-case__title {
  font-family: var(--font-hero);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.2;
  margin-bottom: 20px;
}
.hub-case__title em { font-style: italic; color: var(--accent); }

.hub-case__steps {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}
.hub-case__steps > div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
}
.hub-case__steps dt {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dark);
  padding-top: 3px;
}
.hub-case__steps dd {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(250, 250, 250, 0.82);
}

.hub-case__note {
  font-size: 0.78rem;
  color: var(--muted-dark);
  margin: -8px 0 18px;
}

.hub-case__link {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.4);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.hub-case__link:hover { color: var(--accent-hover); border-color: var(--accent-hover); }

/* Wyróżnione case study — zdjęcie obok treści, na całą szerokość */
.hub-case--featured {
  display: grid;
  grid-template-columns: 5fr 6fr;
  margin-bottom: var(--gap);
}
.hub-case--featured .hub-case__media { aspect-ratio: auto; min-height: 100%; }
.hub-case--featured .hub-case__body { padding: clamp(26px, 3.5vw, 44px); }

.hub-process { background: var(--light-bg); color: var(--text-light); }

.hub-process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.hub-link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 56px 28px 24px;
  background: var(--light-surface);
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--text-light);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.hub-link:hover { border-color: var(--accent); transform: translateY(-3px); }

.hub-link__title {
  font-family: var(--font-hero);
  font-size: 1.2rem;
  line-height: 1.2;
}
.hub-link__desc {
  font-size: 0.86rem;
  line-height: 1.6;
  color: #555;
}
.hub-link__arrow {
  position: absolute;
  top: 26px;
  right: 22px;
  color: var(--accent);
  font-size: 1.2rem;
}

@media (max-width: 1024px) {
  .hub-principles__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hub-cases__grid,
  .hub-process__grid { grid-template-columns: 1fr; }
  .hub-case--featured { grid-template-columns: 1fr; }
  .hub-case--featured .hub-case__media { aspect-ratio: 1 / 1; min-height: 0; }
}

@media (max-width: 480px) {
  .hub-principles__grid { grid-template-columns: 1fr; }
  .hub-case__steps > div { grid-template-columns: 1fr; gap: 4px; }
  .hub-case__body { padding: 22px 20px 24px; }
}

/* Przełącznik etapów (wyróżnione case study na /proces/) — miniatury w lewym
   dolnym rogu zdjęcia, aktywna w złotej ramce, obok podpis aktywnego etapu. */
.hub-case__media--stages { position: relative; }

.hub-stages {
  position: absolute;
  left: 14px;
  bottom: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.hub-stages__thumb {
  pointer-events: auto;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s, transform 0.2s;
}
.hub-stages__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hub-stages__thumb:hover { transform: translateY(-2px); border-color: rgba(var(--accent-rgb), 0.7); }
.hub-stages__thumb.is-active { border-color: var(--accent); }
.hub-stages__thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.hub-stages__label {
  margin-left: 6px;
  padding: 7px 12px;
  border-radius: 3px;
  background: rgba(13, 13, 13, 0.82);
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* Karty z kolekcją: zdjęcie też otwiera okno */
.hub-case__media[data-collection-target] { cursor: zoom-in; }

@media (max-width: 480px) {
  .hub-stages { left: 10px; bottom: 10px; gap: 6px; }
  .hub-stages__thumb { width: 46px; height: 46px; }
  .hub-stages__label { font-size: 0.66rem; padding: 6px 9px; white-space: normal; }
}
