/* ============================================================
   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;
}

/* 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;
  }
}

.hero-tab__short { display: none; }

/* Telefon. Cel: na pierwszym ekranie naglowek, przyciski I wiekszosc grafiki
   — wczesniej pierwszy ekran byl sam tekst, a CTA lądowały pod paskiem
   „Napisz". Stad:
   - mniejszy odstep pod nawigacja,
   - bez nadtytulu (trzy uslugi powtarza akapit tuz pod nim, a nadtytul
     lamal sie z wiszaca kropka na koncu linii),
   - .hero__content rozpuszczony (display: contents), zeby linki „Zobacz,
     jak to robie" zjechaly POD grafike — sa drugorzedne, a dublują je
     przyciski „Zobacz proces" w kartach uslug,
   - taby z krotkimi etykietami w jednym rzedzie zamiast 2x2. */
@media (max-width: 600px) {
  .hero__inner {
    padding-block-start: calc(var(--nav-h) + 20px);
    padding-block-end: 48px;
    gap: 0;
  }
  .hero__content { display: contents; }
  .hero__tag { display: none; }
  .hero__headline { margin-bottom: 16px; }
  .hero__sub { margin-bottom: 24px; line-height: 1.65; }

  /* Dwa przyciski rownej szerokosci obok siebie */
  .hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .hero__actions .btn {
    justify-content: center;
    text-align: center;
    padding-inline: 10px;
  }

  .hero__visual { order: 1; margin-top: 28px; }
  .hero__process-links { order: 2; margin-top: 20px; }

  .hero-tabs { gap: 6px; margin-bottom: 10px; }
  .hero-tab { padding: 8px 8px; }
  .hero-tab__full { display: none; }
  .hero-tab__short { display: inline; }
}

.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;
  text-decoration: none;
  transition: color 0.2s;
}
/* Link do #uslugi — scroll-behavior: smooth na html robi resztę */
.hero__scroll:hover { color: var(--accent); }

.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);
}

/* Cała karta jest linkiem do przefiltrowanego portfolio, a miniatura
   przykładowej realizacji zastąpiła ikonę ◈ — sama nazwa usługi („Reklamy",
   „Banery") nic klientowi nie mówiła, dopóki nie zobaczył przykładu. */
a.service-extra {
  color: inherit;
  text-decoration: none;
}
/* Szerokość stała, wysokość z proporcji pliku — baner i wizytówka
   nie są przycinane do kwadratu (Ludwik 2026-12-02). */
.service-extra__thumb {
  width: 104px;
  height: auto;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background: var(--light-surface);
}
.service-extra__more {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  border-bottom: 1px solid rgba(212, 168, 83, 0.5);
  transition: border-color 0.2s;
}
.service-extra:hover .service-extra__more { border-bottom-color: var(--accent); }

/* Przykład realizacji w karcie usługi — miniatura + link do portfolio
   przefiltrowanego na tę usługę. */
/* Bezpośrednie dziecko .service-card (nie __body) z margin-top: auto —
   ramki stoją wtedy na tej samej wysokości we wszystkich trzech kartach,
   niezależnie od długości listy. */
.service-example {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text-light);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.service-example + .service-card__actions { margin-top: 0; padding-top: 8px; }
.service-example:hover {
  border-color: var(--accent);
  background: rgba(212, 168, 83, 0.08);
}
.service-example__img {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 4px;
}
.service-example__label {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}
.service-example__label > span {
  display: inline-block;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.service-example:hover .service-example__label > span { transform: translateX(4px); }

.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; }
}

/* Wizytówka — przód i tył leżą jak kartoniki na ciemnym tle (ten sam motyw
   co kafelek „Inne projekty” w cenniku, .price-tile__media--cards). Obie
   strony widać od razu, bez hovera — działa też na dotyku. Dawny obrót 3D
   (thumb--flip) wyleciał 2026-12-03. */
.portfolio-item__thumb--cards {
  background: radial-gradient(circle at 50% 40%, #262626, #121212 75%);
}
.portfolio-item:hover .portfolio-item__thumb--cards { transform: none; }
.portfolio-item__thumb--cards picture { display: contents; }
.portfolio-item__thumb--cards img {
  position: absolute;
  width: 68%;
  height: auto;
  aspect-ratio: 1004 / 650;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  transition: transform 0.5s ease;
}
.portfolio-item__thumb--cards picture:first-child img { top: 16%; left: 8%;  transform: rotate(-7deg); }
.portfolio-item__thumb--cards picture:last-child img  { bottom: 16%; right: 8%; transform: rotate(4deg); }
.portfolio-item:hover .portfolio-item__thumb--cards picture:first-child img { transform: rotate(-9deg) translate(-6px, -6px); }
.portfolio-item:hover .portfolio-item__thumb--cards picture:last-child img  { transform: rotate(2deg) translate(6px, 6px); }

/* 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;
}

/* ---------- IKONY LINIOWE (inline SVG, kolor z currentColor) ---------- */
.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon .icon__fill { fill: currentColor; stroke: none; }

/* Kontakt na index.html — ikona przed każdym linkiem */
.contact__links .contact__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}
.contact__links .contact__link .icon { color: var(--accent); }

/* Stopka — WhatsApp, Facebook, mail na każdej podstronie */
.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.footer__social-link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-dark);
  border-radius: 50%;
  color: var(--muted-dark);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.footer__social-link:hover {
  color: var(--dark-bg);
  background: var(--accent);
  border-color: var(--accent);
}

/* retusz-zdjec.html — WhatsApp pod przyciskami hero */
.rp-hero__wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 0.9rem;
  color: rgba(250, 250, 250, 0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.rp-hero__wa .icon { width: 22px; height: 22px; color: var(--accent); }
.rp-hero__wa strong { color: var(--text-dark); font-weight: 500; border-bottom: 1px solid rgba(var(--accent-rgb), 0.6); }
.rp-hero__wa:hover { color: var(--text-dark); }
.coop-step p a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* ---------- ZAŁĄCZNIKI W FORMULARZACH ([data-files], main.js) ---------- */
.form-files { display: flex; flex-direction: column; gap: 8px; }
.form-files__label {
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--muted-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.form-files__opt { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: 0.85; }
.form-files__drop {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1.5px dashed rgba(0, 0, 0, 0.18);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.form-files__drop:hover,
.form-files__drop.is-over,
.form-files__drop:focus-within {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.06);
}
/* Input niewidoczny, ale dostępny z klawiatury (focus-within na ramce) */
.form-files__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.form-files__icon {
  grid-row: span 2;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.form-files__text { font-size: 0.92rem; color: var(--text-light); }
.form-files__text strong { font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.form-files__hint { font-size: 0.76rem; line-height: 1.5; color: var(--muted-light); margin-top: 2px; }
.form-files__list[hidden] { display: none; }
.form-files__list { list-style: none; display: grid; gap: 6px; }
.form-files__item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 14px;
  background: var(--light-surface);
  border-radius: var(--radius);
  font-size: 0.85rem;
}
.form-files__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-files__size { font-size: 0.76rem; color: var(--muted-light); }
.form-files__remove {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--muted-light);
  cursor: pointer;
}
.form-files__remove:hover { background: #fff; color: var(--text-light); }
@media (max-width: 560px) {
  .form-files__hint { grid-column: 1 / -1; margin-top: 8px; }
}

/* 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; }
  /* nowrap z desktopu: „Jak pracujemy — krok po kroku" wychodziło poza
     ekran na telefonach węższych niż ~400 px. Tu link może się złamać. */
  .footer__nav a { white-space: normal; line-height: 1.4; }
}

.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; }

  /* Pionowy retusz przed/po (2:3) na pelnej szerokosci telefonu zajmowal
     prawie caly ekran i nie bylo widac podpisu. 4:5 tnie po rowno gore i dol;
     obie warstwy maja object-fit: cover w tym samym pudelku, wiec kadr
     zostaje zgodny i suwak nie przeskakuje. */
  .portfolio-item--ba.portfolio-item--r23 { aspect-ratio: 4 / 5; }

  /* Kwadratowe miniatury Allegro i retusz po DWA w wierszu (klasę przypina
     build-portfolio.js, tylko w portfolio.html). 69 prac w jednej kolumnie
     dawało ~24 000 px przewijania; miniatura ma własne napisy i na pół
     ekranu dalej się czyta. */
  .portfolio-item--pair { grid-column-end: span 1; }
  /* Na pół ekranu podpis w dwóch wierszach (kategoria + tytuł) wjeżdżał pod
     uchwyt suwaka — kategoria i tak jest w aktywnym filtrze, zostaje tytuł. */
  .portfolio-item--pair .portfolio-item__overlay { padding: 10px; }
  .portfolio-item--pair .portfolio-item__cat,
  .portfolio-item--pair .ba-caption .portfolio-item__cat { display: none; }
  .portfolio-item--pair .ba-caption { padding: 10px; }
  .portfolio-item--pair .portfolio-item__title { font-size: 0.82rem; line-height: 1.2; }
  .portfolio-item--pair .portfolio-item__badge { top: 8px; left: 8px; }
  .portfolio-item--pair .ba-tag { top: 10px; padding: 3px 6px; }
  .portfolio-item--pair .ba-tag--b { left: 8px; }
  .portfolio-item--pair .ba-tag--a { right: 8px; }
  .portfolio-item--pair .ba-slider:has(.ba-expand) .ba-tag--a { right: 46px; top: 10px; }
  .portfolio-item--pair .ba-expand { top: 6px; right: 6px; }

  .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;
  /* pan-y, NIE none: przy none kafelek przed/po blokowal przewijanie strony
     palcem. Pionowy gest oddajemy przegladarce; drag za uchwyt i stukniecie
     (przelaczenie przed/po) obsluguje initBASliders() w main.js. */
  touch-action: pan-y;
}

.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 — komplet do aukcji (3 pakiety), sama miniatura,
   blok retuszu, gwarancja, współpraca w 3 krokach, opinie.
   Kolejność kart w DOM: Pro → Aukcja → Start. Najdroższy idzie
   pierwszy (kotwica ceny) — na telefonie od góry, na desktopie
   od lewej; polecana Aukcja zawsze w środku.
   ============================================================ */
.pricing-section { background: var(--light-bg); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  align-items: stretch;
}

.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);
}

/* Polecany pakiet: złoty pasek na stałe, mocniejsza ramka i cień.
   Bez powiększania karty — przy trzech w rzędzie rozpychało wiersz. */
.pricing-card--featured {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 18px 48px rgba(212, 168, 83, 0.16);
}
.pricing-card--featured::before { transform: scaleX(1); height: 3px; }

.pricing-card__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0D0D0D;
  background: var(--accent);
  padding: 5px 10px;
  border-radius: 3px;
}

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

.pricing-card__title {
  font-family: var(--font-hero);
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 10px;
}

.pricing-card__lead {
  font-size: 0.84rem;
  color: var(--muted-light);
  line-height: 1.6;
  margin-bottom: 22px;
}

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

.pricing-card__price {
  display: block;
  font-family: var(--font-hero);
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  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;
}

/* Zakres pakietu — lista w złote kropki jak w kartach usług na głównej */
.pricing-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 22px;
}
.pricing-card__list li {
  font-size: 0.86rem;
  color: var(--text-light);
  padding-left: 18px;
  position: relative;
  line-height: 1.55;
}
.pricing-card__list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.pricing-card__list strong { font-weight: 600; }

/* Podpowiedź przy polecanym pakiecie („+60 zł względem Start") */
.pricing-card__note {
  font-size: 0.78rem;
  color: var(--text-light);
  background: rgba(212, 168, 83, 0.1);
  border-radius: 3px;
  padding: 8px 12px;
  margin-bottom: 22px;
  line-height: 1.5;
}

/* Wspólne warunki pakietu: termin, poprawki, pliki */
.pricing-rows {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
  border-top: 1px solid var(--border-light);
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  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.8rem;
  color: var(--muted-light);
}

.pricing-row__price {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  text-align: right;
}

/* CTA kart: ten sam złoty pill co w kartach usług na index.html */
.pricing-card .service-card__actions { padding-top: 0; }
.pricing-card .service-card__actions .service-card__link { width: 100%; justify-content: center; padding-block: 13px; font-size: 0.84rem; }

/* Rabat ilościowy — jedna linijka pod pakietami */
.pricing-discount {
  margin-top: 28px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted-light);
}
.pricing-discount strong { color: var(--text-light); font-weight: 600; }

/* Sama miniatura — osobna pozycja POD trójką pakietów, nie czwarta karta */
.pricing-single {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.pricing-single__title {
  font-family: var(--font-hero);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 400;
  margin-bottom: 8px;
}
.pricing-single__desc {
  font-size: 0.86rem;
  color: var(--muted-light);
  line-height: 1.65;
  margin-bottom: 16px;
  max-width: 560px;
}
.pricing-single .pricing-card__list {
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: 24px;
  margin-bottom: 0;
}
.pricing-single__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 200px;
}
.pricing-single__aside .service-card__actions { padding-top: 0; width: 100%; }
.pricing-single__aside .service-card__link { width: 100%; justify-content: center; padding-block: 12px; }

/* „W każdym pakiecie" — wspólny zakres trzech pakietów */
.package-includes {
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid var(--border-light);
}
.package-includes__title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 28px;
}
.package-includes__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.package-includes__item h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.package-includes__item h4::before {
  content: '◈';
  color: var(--accent);
  margin-right: 8px;
  font-size: 0.85rem;
}
.package-includes__item p {
  font-size: 0.84rem;
  color: var(--muted-light);
  line-height: 1.65;
}

/* ---------- RETUSZ — osobny blok, inne tło niż pakiety ---------- */
.retouch-pricing { background: var(--light-surface); }
.retouch-pricing .section-header { margin-bottom: 40px; }
.retouch-pricing__intro {
  font-size: 0.95rem;
  color: var(--muted-light);
  line-height: 1.7;
  max-width: 640px;
  margin-top: -28px;
}

.retouch-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.retouch-tier {
  background: var(--light-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: clamp(22px, 2.5vw, 32px);
}
.retouch-tier__name {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 14px;
}
.retouch-tier__price {
  font-family: var(--font-hero);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-style: italic;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.retouch-tier__od {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.8rem;
  color: var(--muted-light);
  margin-right: 4px;
}
.retouch-tier__unit {
  font-size: 0.78rem;
  color: var(--muted-light);
  margin-bottom: 16px;
}
.retouch-tier__desc {
  font-size: 0.86rem;
  color: var(--text-light);
  line-height: 1.65;
}

.retouch-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  margin-top: 40px;
}
.retouch-info h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.retouch-info .pricing-card__list { margin-bottom: 0; }

/* Ręcznie vs samo AI — wyróżniony akapit */
.retouch-ai {
  margin-top: 40px;
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: var(--light-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-light);
}
.retouch-ai strong { font-weight: 600; }

/* Dwie ścieżki: sklep / klient prywatny → osobne podstrony */
.retouch-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  margin-top: 28px;
}
.retouch-link {
  display: block;
  padding: 22px 24px;
  background: var(--dark-bg);
  border-radius: var(--radius);
  color: var(--text-dark);
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
}
.retouch-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}
.retouch-link__for {
  display: block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.retouch-link__title {
  display: block;
  font-family: var(--font-hero);
  font-size: 1.3rem;
  line-height: 1.25;
  margin-bottom: 6px;
}
.retouch-link__desc {
  display: block;
  font-size: 0.82rem;
  color: var(--muted-dark);
  line-height: 1.55;
}
.retouch-link__more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- CENNIK — kafelki wyboru sekcji (zakładki) ----------
   Klik w kafelek pokazuje jeden panel (.price-panel), resztę chowa JS
   (main.js → pricePicker). Bez JS wszystkie panele są widoczne.
   Kadr zdjęcia jest KWADRATOWY i dostaje wyłącznie kwadratowe grafiki —
   miniatury, packshoty i kreacje mają napisy dociągnięte do krawędzi,
   więc każdy inny format je ucina. Grafika nie-kwadratowa (wizytówka)
   idzie przez --cards, bez przycinania. */
.page-header--pricing { padding-bottom: clamp(48px, 6vw, 80px); }
.price-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-top: clamp(28px, 4vw, 44px);
}
.price-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--dark-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  color: var(--text-dark);
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
/* złoty pasek u góry — ten sam gest co .service-card */
.price-tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
  z-index: 2;
}
.price-tile:hover::before,
.price-tile.is-active::before { transform: scaleX(1); }
.price-tile:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}
.price-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.price-tile.is-active { border-color: var(--accent); }

.price-tile__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}
.price-tile__media picture { display: contents; }
.price-tile__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.price-tile:hover .price-tile__media img { transform: scale(1.04); }

/* Wizytówka: przód i tył jak kartoniki rzucone na stół */
.price-tile__media--cards {
  background: radial-gradient(circle at 50% 40%, #262626, #121212 75%);
}
.price-tile__media--cards img {
  inset: auto;
  width: 68%;
  height: auto;
  aspect-ratio: 800 / 518;
  border-radius: 3px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}
.price-tile__media--cards img:first-child { top: 16%; left: 8%;  transform: rotate(-7deg); }
.price-tile__media--cards img:last-child  { bottom: 16%; right: 8%; transform: rotate(4deg); }
.price-tile:hover .price-tile__media--cards img:first-child { transform: rotate(-9deg) translate(-4px, -4px); }
.price-tile:hover .price-tile__media--cards img:last-child  { transform: rotate(2deg) translate(4px, 4px); }

.price-tile__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 22px 22px 20px;
}
.price-tile__eyebrow {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.price-tile__title {
  font-family: var(--font-hero);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.price-tile__title em { color: var(--accent); font-style: italic; }
.price-tile__desc {
  flex-grow: 1;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted-dark);
}
.price-tile__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.price-tile__price {
  font-family: var(--font-hero);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--accent);
  white-space: nowrap;
}
.price-tile__price small {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--muted-dark);
  margin-right: 2px;
}
.price-tile__price--quote {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
}
/* CTA = okrągły przycisk ze strzałką (pusty span) — tekst „Zobacz ceny” obok
   „wycena w 24h” nie mieścił się w kafelku. Tekstu w środku NIE dokładaj —
   jako element siatki spycha strzałkę z środka kółka. */
.price-tile__cta {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  border-radius: 50%;
  font-size: 0;
  color: var(--accent);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
/* Strzałka rysowana maską SVG — znak → z fontu siedział pod środkiem kółka */
.price-tile__cta::after {
  content: '';
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s;
}
.price-tile:hover .price-tile__cta,
.price-tile.is-active .price-tile__cta {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--dark-bg);
}
.price-tile:hover .price-tile__cta::after { transform: translateX(2px); }
.price-tile.is-active .price-tile__cta::after { transform: rotate(90deg); }

@media (max-width: 1000px) {
  /* Tablet i telefon: kompaktowy kafelek — kwadrat nad tekstem, bez opisu.
     4 w rzędzie, poniżej 760 px 2 × 2. Kwadratu nie zmieniamy w pasek,
     bo wtedy grafiki znowu się przycinają. */
  .price-picker { gap: 12px; margin-top: 28px; }
  .price-tile:hover { transform: none; }
  .price-tile__body { padding: 14px 14px 16px; }
  .price-tile__eyebrow { font-size: 0.6rem; letter-spacing: 0.1em; margin-bottom: 6px; }
  .price-tile__title { font-size: 1.15rem; margin-bottom: 0; }
  .price-tile__desc { display: none; }
  .price-tile__foot { flex-grow: 1; align-items: flex-end; margin-top: 12px; padding-top: 12px; }
  .price-tile__price { font-size: 1.35rem; }
  .price-tile__price--quote { font-size: 0.78rem; }
  .price-tile__cta { width: 30px; height: 30px; }
  .price-tile__cta::after { width: 12px; height: 12px; }
}
@media (max-width: 760px) {
  .price-picker { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 400px) {
  .price-tile__body { padding: 12px 12px 14px; }
  .price-tile__title { font-size: 1.05rem; }
  .price-tile__price { font-size: 1.2rem; }
  .price-tile__price--quote { font-size: 0.72rem; }
  .price-tile__cta { display: none; }
}

/* ---------- CENNIK — przykłady prac w panelach bez cen ----------
   (reklamy, inne projekty). Ciemne „biurko” 4:3, grafika w środku bez
   przycinania — formaty są różne (kwadrat, 16:9, baner 3:1, plakat A4).
   --stack: trzy formaty jednej reklamy wachlarzem, --cards: wizytówka jak
   w kafelku wyboru, --fill: scena produktowa na cały kadr. */
.work-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.work-cards--3 { grid-template-columns: repeat(3, 1fr); }
.work-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  color: var(--text-light);
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.1);
}
.work-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.work-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #262626, #121212 75%);
}
.work-card__media picture { display: contents; }
.work-card__media img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 76%;
  max-height: 80%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  border-radius: 3px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  transition: transform 0.5s;
}
.work-card:hover .work-card__media img { transform: translate(-50%, -50%) scale(1.04); }
.work-card__media--wide img { max-width: 88%; }

.work-card__media--fill img {
  inset: 0;
  top: 0; left: 0;
  max-width: none; max-height: none;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: none;
  border-radius: 0;
  box-shadow: none;
}
.work-card:hover .work-card__media--fill img { transform: scale(1.04); }

/* Trzy formaty jednej reklamy: pion z lewej, kwadrat w środku, poziom z przodu */
.work-card__media--stack img { max-width: none; max-height: none; }
.work-card__media--stack picture:nth-child(1) img { height: 62%; top: 44%; left: 26%; transform: translate(-50%, -50%) rotate(-6deg); }
.work-card__media--stack picture:nth-child(2) img { height: 56%; top: 40%; left: 68%; transform: translate(-50%, -50%) rotate(5deg); }
.work-card__media--stack picture:nth-child(3) img { width: 58%; top: 70%; left: 50%; transform: translate(-50%, -50%); }
.work-card:hover .work-card__media--stack picture:nth-child(1) img { transform: translate(-54%, -50%) rotate(-8deg); }
.work-card:hover .work-card__media--stack picture:nth-child(2) img { transform: translate(-46%, -50%) rotate(7deg); }
.work-card:hover .work-card__media--stack picture:nth-child(3) img { transform: translate(-50%, -46%); }

/* Wizytówka: tył i przód jak kartoniki (jak .price-tile__media--cards) */
.work-card__media--cards img { max-width: none; max-height: none; width: 60%; transform: none; }
.work-card__media--cards picture:first-child img { top: 12%; left: 10%; transform: rotate(-7deg); }
.work-card__media--cards picture:last-child img  { top: auto; left: auto; bottom: 12%; right: 10%; transform: rotate(4deg); }
.work-card:hover .work-card__media--cards picture:first-child img { transform: rotate(-9deg) translate(-4px, -4px); }
.work-card:hover .work-card__media--cards picture:last-child img  { transform: rotate(2deg) translate(4px, 4px); }

.work-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 20px 22px 22px;
}
.work-card__title {
  font-family: var(--font-hero);
  font-size: 1.3rem;
  line-height: 1.2;
  margin-bottom: 8px;
}
.work-card__desc {
  flex-grow: 1;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted-light);
}
.work-card__more {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-light);
}
.work-card__more::after {
  content: ' →';
  color: var(--accent);
  display: inline-block;
  transition: transform 0.2s;
}
.work-card:hover .work-card__more::after { transform: translateX(4px); }

@media (max-width: 1000px) {
  .work-cards, .work-cards--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .work-cards, .work-cards--3 { grid-template-columns: 1fr; gap: 14px; }
  .work-card:hover { transform: none; }
  .work-card__body { padding: 16px 18px 18px; }
}

/* Panele bez cen (banery, inne projekty) — wycena indywidualna */
.price-quote { background: var(--light-bg); }
.price-quote .section-header { margin-bottom: 40px; }
.price-quote__intro {
  font-size: 0.95rem;
  color: var(--muted-light);
  line-height: 1.7;
  max-width: 640px;
  margin-top: -28px;
}
.price-quote__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 48px;
}
.price-quote__more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.5);
}
.price-quote__more:hover { color: var(--accent); }

/* VAT — stopka cennika */
.pricing-footnotes {
  background: var(--light-bg);
  padding-block: 48px;
}

.pricing-note {
  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.85rem;
  color: var(--muted-light);
  line-height: 1.75;
}
.pricing-note strong { color: var(--text-light); }

/* ---------- GWARANCJA ---------- */
.guarantee {
  background: var(--dark-bg);
  color: var(--text-dark);
  padding-block: clamp(64px, 8vw, 112px);
  text-align: center;
}
.guarantee__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.4rem;
  margin-bottom: 22px;
}
.guarantee__title {
  font-family: var(--font-hero);
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  font-weight: 400;
  line-height: 1.12;
  margin-bottom: 18px;
}
.guarantee__title em { color: var(--accent); font-style: italic; }
.guarantee__text {
  font-size: 0.95rem;
  color: var(--muted-dark);
  line-height: 1.7;
  max-width: 560px;
  margin-inline: auto;
}

/* ---------- WSPÓŁPRACA W 3 KROKACH ---------- */
.coop { background: var(--light-bg); }
.coop .section-header { margin-bottom: 40px; }
.coop-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  counter-reset: coop;
}
.coop-step {
  counter-increment: coop;
  padding-top: 22px;
  border-top: 2px solid var(--accent);
}
.coop-step::before {
  content: '0' counter(coop);
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 10px;
}
.coop-step h3 {
  font-family: var(--font-hero);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 10px;
}
.coop-step p {
  font-size: 0.86rem;
  color: var(--muted-light);
  line-height: 1.7;
}
.coop__more {
  display: inline-block;
  margin-top: 32px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.coop__more:hover { color: var(--accent-hover); }

/* ---------- OPINIE (sekcja ukryta do czasu, aż będą opinie) ---------- */
.testimonials { background: var(--light-surface); }
.testimonials[hidden] { display: none; }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
}
.testimonial {
  background: var(--light-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: clamp(22px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial__quote {
  font-family: var(--font-hero);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--text-light);
}
.testimonial__author {
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--muted-light);
}
.testimonial__author strong { display: block; font-family: var(--font-display); color: var(--text-light); }
.testimonial__case {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .package-includes__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .pricing-grid,
  .retouch-tiers,
  .coop-steps { grid-template-columns: 1fr; }
  .pricing-single { grid-template-columns: 1fr; }
  .pricing-single__aside { min-width: 0; }
}

@media (max-width: 600px) {
  .package-includes__grid,
  .retouch-info,
  .retouch-links { grid-template-columns: 1fr; }
  .pricing-single .pricing-card__list { flex-direction: column; }
}

/* ============================================================
   PODSTRONY RETUSZU — przykłady przed/po w równych rzędach.
   Kafelek to zwykły .portfolio-item--ba (ten sam suwak, autoplay
   i przycisk pełnego ekranu co w portfolio), tylko poza siatką
   portfolio: rząd flex, w którym flex-grow = proporcja grafiki,
   więc kafelki w rzędzie mają tę samą wysokość bez kadrowania.
   ============================================================ */
/* Odstęp większy niż --gap siatki portfolio: tu każdy suwak ogląda się
   osobno, a przy 14–28 px pies i ciągnik zlewały się w jeden blok. */
.retouch-examples {
  --ex-gap: clamp(20px, 3vw, 40px);
  background: var(--dark-bg);
  padding-block: clamp(40px, 5vw, 72px);
}
/* Jeden przykład przed/po: tekst po lewej, suwak po prawej. Celowo jeden
   suwak na podstronę — reszta przykładów siedzi w portfolio. */
.retouch-feature {
  display: grid;
  gap: var(--ex-gap);
  align-items: center;
}
@media (min-width: 760px) {
  .retouch-feature { grid-template-columns: 1fr minmax(0, 480px); }
}
.retouch-feature__text { color: var(--text-dark); max-width: 46ch; }
.retouch-feature__text > p { margin: 14px 0 10px; color: var(--muted-dark); }
/* .pricing-card__list ma kolory pod jasne tło — tu tło jest ciemne */
.retouch-feature__text .pricing-card__list li { color: rgba(250, 250, 250, 0.82); }
.retouch-feature__title {
  font-family: var(--font-hero);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.15;
  margin-top: 10px;
}
.retouch-feature__title em { color: var(--accent); }
.retouch-feature__more {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.retouch-feature__more:hover { text-decoration: underline; }
.retouch-feature__media { width: 100%; }
.retouch-feature .portfolio-item { width: 100%; }
/* Portret 2:3 węższy, żeby nie był wyższy niż ekran */
.retouch-feature__ba--r23 { max-width: 380px; margin-inline: auto; }
.retouch-examples__hint {
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--muted-dark);
  text-align: center;
}

/* ============================================================
   RETUSZ PRYWATNY (retusz-zdjec.html) — landing jak druga strona
   główna (przebudowa 2026-12-03). Sekcje na przemian ciemne i jasne:
   hero (dark) → co robię (light) → przykłady (dark) → sesja AI
   (light surface) → cennik (dark) → AI vs ręcznie (light) → kroki
   (light surface) → FAQ (light) → CTA. Prefiks rp- = retusz prywatny.
   ============================================================ */
.rp-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.rp-head .section-title { margin-bottom: 0; }
.rp-head__intro {
  margin-top: 18px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted-light);
}

/* --- HERO --- */
.rp-hero {
  background: var(--dark-bg);
  color: var(--text-dark);
  padding: calc(var(--nav-h) + clamp(28px, 4vw, 48px)) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.rp-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.rp-hero__title {
  font-family: var(--font-hero);
  font-weight: 400;
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  line-height: 1;
  margin: 6px 0 24px;
}
.rp-hero__title em { color: var(--accent); font-style: italic; }
.rp-hero__lead {
  max-width: 54ch;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.75;
  color: rgba(250, 250, 250, 0.72);
}
.rp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.rp-hero__trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-dark);
  font-size: 0.88rem;
  color: var(--muted-dark);
}
.rp-hero__trust li::before {
  content: '✓';
  margin-right: 8px;
  color: var(--accent);
}
.rp-hero__trust strong { color: var(--text-dark); font-weight: 500; }
.rp-hero__media { margin: 0; }
.rp-hero__media .portfolio-item { width: 100%; }
.rp-hero__caption {
  margin-top: 16px;
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--muted-dark);
}
.rp-hero__caption strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-hero);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-dark);
}

/* --- CO ROBIĘ --- */
.rp-services { background: var(--light-bg); }
.rp-services__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  counter-reset: rp-service;
}
.rp-service {
  position: relative;
  counter-increment: rp-service;
  padding: 26px 26px 28px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.rp-service::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.rp-service:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.07); }
.rp-service:hover::after { transform: scaleX(1); }
.rp-service::before {
  content: counter(rp-service, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.rp-service h3 {
  font-family: var(--font-hero);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 10px;
}
.rp-service p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted-light);
}
.rp-service a { color: var(--text-light); text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* --- PRZYKŁADY --- */
.rp-examples { background: var(--dark-bg); color: var(--text-dark); }
.rp-examples .rp-head__intro { color: var(--muted-dark); }
.rp-examples__row {
  display: flex;
  gap: var(--gap);
}
.rp-example {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #111;
  color: var(--text-dark);
  text-decoration: none;
}
/* flex-grow = proporcja grafiki → równa wysokość w rzędzie, bez przycinania */
.rp-example--r11 { flex: 1 1 0;     aspect-ratio: 1 / 1; }
.rp-example--r23 { flex: 0.667 1 0; aspect-ratio: 2 / 3; }
.rp-example--r21 { flex: 2 1 0;     aspect-ratio: 2 / 1; }
.rp-example__po {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.rp-example:hover .rp-example__po { transform: scale(1.03); }
.rp-example::after {
  content: '';
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  pointer-events: none;
}
.rp-example__przed {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  width: clamp(64px, 28%, 120px);
  border: 2px solid #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}
.rp-example--r21 .rp-example__przed { width: clamp(80px, 22%, 150px); }
.rp-example__przed img { display: block; width: 100%; height: auto; }
.rp-example__przed span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 3px 0;
  background: rgba(10, 10, 10, 0.75);
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
}
.rp-example__cap {
  position: absolute;
  left: 16px; right: 16px; bottom: 14px;
  z-index: 1;
  font-size: 0.85rem;
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.rp-more {
  display: inline-block;
  margin-top: 28px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.rp-more:hover { color: var(--accent-hover); }

/* --- SESJA AI --- */
.rp-session { background: var(--light-surface); }
.rp-session__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.rp-session__text .section-title { margin-bottom: 20px; }
.rp-session__text > p { font-size: 1rem; line-height: 1.75; color: #555; }
.rp-session__text .rp-session__price {
  margin-top: 28px;
  font-family: var(--font-hero);
  font-style: italic;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent);
}
.rp-session__price span {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  color: var(--muted-light);
}
.rp-session__price small {
  display: block;
  margin-top: 10px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted-light);
}
.rp-session__points {
  list-style: none;
  display: grid;
  gap: 14px;
  counter-reset: rp-point;
}
.rp-session__points li {
  counter-increment: rp-point;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 16px;
  padding: 22px 24px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.rp-session__points li::before {
  content: counter(rp-point);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dark-bg);
  font-family: var(--font-hero);
  font-size: 1.2rem;
  color: var(--accent);
}
.rp-session__points h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin: 2px 0 6px;
}
.rp-session__points p { font-size: 0.9rem; line-height: 1.6; color: var(--muted-light); }

/* --- CENNIK --- */
.rp-pricing { background: var(--dark-bg); color: var(--text-dark); }
.rp-pricing .rp-head__intro { color: var(--muted-dark); }
.rp-pricing__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.rp-pricing .price-list {
  margin: 0;
  background: var(--dark-surface);
  border: 1px solid var(--border-dark);
}
.rp-pricing .price-list__row:first-child { border-top: 0; padding-top: 0; }
.rp-pricing__side { display: grid; gap: 28px; justify-items: start; }
.rp-pricing__box h3 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.rp-pricing__box ul { list-style: none; display: grid; gap: 10px; }
.rp-pricing__box li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(250, 250, 250, 0.72);
}
.rp-pricing__box li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.rp-pricing__box strong { color: var(--text-dark); font-weight: 500; }

/* --- AI vs RĘCZNIE --- */
.rp-ai { background: var(--light-bg); }
.rp-ai__compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.rp-ai__col {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
}
.rp-ai__col--yes { background: var(--dark-bg); border-color: var(--dark-bg); color: var(--text-dark); }
.rp-ai__col h3 {
  font-family: var(--font-hero);
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 12px;
}
.rp-ai__col h3 em { font-style: italic; color: var(--accent); }
.rp-ai__col > p { font-size: 0.92rem; line-height: 1.65; color: var(--muted-light); margin-bottom: 16px; }
.rp-ai__col--yes > p { color: var(--muted-dark); }
.rp-ai__col ul { list-style: none; display: grid; gap: 12px; }
.rp-ai__col li {
  position: relative;
  padding-left: 30px;
  font-size: 0.92rem;
  line-height: 1.6;
}
.rp-ai__col li::before {
  position: absolute;
  left: 0; top: 0.1em;
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
}
.rp-ai__col--no li::before  { content: '✕'; background: #f3e3e1; color: #b4483c; }
.rp-ai__col--yes li::before { content: '✓'; background: rgba(var(--accent-rgb), 0.18); color: var(--accent); }
.rp-ai__col--yes li { color: rgba(250, 250, 250, 0.85); }
.rp-ai__quote {
  margin: clamp(40px, 5vw, 64px) auto 0;
  max-width: 760px;
  text-align: center;
  font-family: var(--font-hero);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.3;
}
.rp-ai__quote em { font-style: italic; color: var(--accent); }

/* --- KROKI (reużywa .coop-steps z cennika, tylko 4 kolumny) --- */
.rp-steps { background: var(--light-surface); }
.rp-steps .coop-steps { grid-template-columns: repeat(4, 1fr); }

/* --- FAQ --- */
.rp-faq { background: var(--light-bg); }
.rp-faq .rp-head { margin-inline: auto; text-align: center; }
.rp-faq .faq-item__a a { color: var(--text-light); text-decoration-color: var(--accent); text-underline-offset: 3px; }

@media (max-width: 1000px) {
  .rp-services__grid { grid-template-columns: repeat(2, 1fr); }
  .rp-steps .coop-steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .rp-session__inner, .rp-pricing__inner { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .rp-hero__inner { grid-template-columns: 1fr; }
  .rp-hero__media { max-width: 400px; width: 100%; margin-inline: auto; }
  .rp-examples__row { flex-wrap: wrap; }
  /* telefon: pies i portret obok siebie, ciągnik pod spodem na całą szerokość */
  .rp-example--r11 { flex: 1 1 calc(60% - var(--gap)); }
  .rp-example--r23 { flex: 1 1 calc(40% - var(--gap)); aspect-ratio: auto; }
  .rp-example--r21 { flex: 1 1 100%; }
  .rp-ai__compare { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .rp-services__grid, .rp-steps .coop-steps { grid-template-columns: 1fr; }
  .rp-service { padding: 22px; }
  .rp-hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .rp-example--r11, .rp-example--r23 { flex: 1 1 100%; aspect-ratio: 1 / 1; }
}

/* Lista cen retuszu prywatnego (retusz-zdjec.html) — według grafiki Ludwika:
   ciemna karta, nazwa usługi po lewej, złota cena DM Serif po prawej. */
.price-list {
  margin: 8px 0 24px;
  padding: clamp(24px, 4vw, 40px);
  background: linear-gradient(160deg, #1a1712 0%, var(--dark-bg) 60%);
  border-radius: var(--radius);
  color: var(--text-dark);
}
.price-list__eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}
.price-lists .price-list__title,
.article .price-list__title {
  font-family: var(--font-hero);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 18px;
  color: var(--text-dark);
}
.price-list__title em { color: var(--accent); }
.price-list__rows { margin: 0; }
.price-list__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border-dark);
}
.price-list__row dt {
  font-size: 1rem;
  color: var(--text-dark);
}
.price-list__row dt small {
  display: block;
  margin-top: 3px;
  font-size: 0.78rem;
  color: var(--muted-dark);
}
.price-list__row dd {
  margin: 0;
  flex-shrink: 0;
  font-family: var(--font-hero);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  color: var(--accent);
  white-space: nowrap;
}
.price-list__row dd span {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.8rem;
  color: var(--muted-dark);
}

/* cennik.html#retusz — dwie karty obok siebie: prywatne / sklepy */
.price-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
  margin-bottom: 40px;
}
.price-lists .price-list { margin: 0; }
.price-list__more {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.4);
}
.price-list__more:hover { border-bottom-color: var(--accent); }
@media (max-width: 900px) {
  .price-lists { grid-template-columns: 1fr; }
}

/* Cennik w treści poradnika — te same poziomy co na cennik.html */
.article .retouch-tiers { margin: 8px 0 18px; }
.article .retouch-tier { padding: 20px; }
.article .retouch-tier__desc { font-size: 0.84rem; }
.article .retouch-info { margin-top: 24px; }
.article .retouch-info ul { padding-left: 0; }

@media (max-width: 900px) {
  .article .retouch-tiers { 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;
}

/* Na dotyku przeciaga sie tylko za uchwyt — musi byc pod palec (44 px). */
@media (pointer: coarse) {
  .ba-knob { width: 44px; height: 44px; font-size: 0.85rem; }
}

.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;
}

/* Przycisk, nie link tekstowy — podgląd ma max 3 prace w filtrze, więc
   przejście do pełnego portfolio jest głównym następnym krokiem. */
.portfolio__more-link {
  position: absolute;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-dark);
  text-decoration: none;
  text-align: center;
  border: 1px solid rgba(212, 168, 83, 0.55);
  border-radius: 3px;
  padding: 13px 28px;
  opacity: 0;
  transform: translateY(7px);
  pointer-events: none;
  transition: opacity 0.32s ease, transform 0.32s ease, color 0.2s, border-color 0.2s, background 0.2s;
}
.portfolio__more-link.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}
.portfolio__more-link:hover {
  color: var(--dark-bg);
  background: var(--accent);
  border-color: var(--accent);
}
@media (max-width: 480px) {
  .portfolio__more-link.is-visible { width: 100%; }
}

/* ============================================================
   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);
}

/* Galeria z samym placeholderem nie pokazuje się klientom — ramka „Miejsce na
   grafiki” na żywej stronie wygląda jak niedokończona robota. Wstawisz <figure>
   zamiast placeholdera → galeria wraca sama. */
.case-gallery:has(> .case-gallery__placeholder:only-child) { display: none; }

/* 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--cards) .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--cards):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;
  --dlg-pad: clamp(24px, 4vw, 44px);
  padding: var(--dlg-pad);
  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);
}

/* sticky, nie absolute: okno kolekcji samo się przewija, więc przy 18
   grafikach × uciekał z ekranu i na telefonie nie było czym zamknąć.
   Ujemne marginesy: siedzi w rogu okna jak dawniej, a margin-bottom
   oddaje jego wysokość, żeby nie spychał treści w dół. Tło, bo teraz
   leży też na grafikach. */
.collection-modal__close {
  position: sticky;
  top: calc(10px - var(--dlg-pad));   /* sticky liczy od paddingu okna, nie od krawędzi */
  margin: calc(10px - var(--dlg-pad)) calc(10px - var(--dlg-pad)) -38px auto;
  width: 38px;
  height: 38px;
  background: rgba(21, 21, 21, 0.82);
  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: #262626;
  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" w prawym górnym rogu, etykieta „Po" stoi obok niego
   w tym samym rzędzie. Wcześniej przycisk siedział pod etykietą (top: 44px)
   i na telefonie na nią nachodził. */
.ba-slider:has(.ba-expand) .ba-tag--a {
  right: 54px;
  top: 20px;
}
.ba-expand {
  position: absolute;
  top: 12px;
  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; }
/* Jeden suwak w modalu (kafelek retuszu z portfolio). Szerokość liczona
   od wysokości ekranu, żeby portret 2:3 nie wychodził poza okno. */
.collection-ba-single { margin: 0 auto 24px; max-width: min(100%, 78vh); }
.collection-ba-single .collection-ba.portfolio-item--r23 { aspect-ratio: 2 / 3; max-width: min(100%, 52vh); margin-inline: auto; }
.collection-ba-single .collection-ba.portfolio-item--r21 { aspect-ratio: 2 / 1; }
.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;
  }
  /* flex: 1 1 240px z desktopu w kolumnie robi się WYSOKOŚCIĄ — przyciski
     miały po 240 px i wyglądały jak puste bloki. */
  .brief-submit__actions .btn {
    flex: 0 0 auto;
    max-width: 100%;
    justify-content: center;
  }
}

/* Pole załączników w briefie — reguła .brief-form label (kapitaliki Syne, display:block)
   łamało ramkę w jedną linię wersalików. Przywracamy układ z formularza kontaktu. */
.brief-form .form-files__drop {
  display: grid;
  margin-bottom: 0;
  font-family: var(--font-body);
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.brief-form .form-files { margin-bottom: 18px; }

/* Zgody to zdania do przeczytania, nie etykiety pól — `.brief-form label`
   (kapitaliki Syne, rozstrzelone) jest mocniejszy od samego .form-consent,
   więc trzeba go przebić tu. */
.brief-form .form-consent {
  display: flex;
  margin-bottom: 0;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  color: var(--muted-light);
}
.brief-form .form-consent input[type="checkbox"] { width: 22px; height: 22px; margin-top: 1px; }

/* Ostatnie pole w .form-row ma margin-bottom: 0, więc następne pole
   (np. „Branża" pod „+ Dodaj kolejny link") kleiło się do niego. */
.brief-form .form-row:not(:last-child) { margin-bottom: 18px; }

.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; }

.filter-btn__short { display: none; }

/* Telefon: siedem filtrów w pełnych rozmiarach zawijało się w cztery rzędy
   i spychało pierwszą pracę pod drugi ekran. Rząd przewijany w bok też
   odpadł — nie było widać, że dalej są kolejne filtry. Teraz kompaktowe
   przyciski w DWÓCH rzędach, rozciągnięte na całą szerokość (flex-grow),
   więc rzędy kończą się równo i wszystko widać od razu. */
@media (max-width: 768px) {
  .portfolio__filters {
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
  }
  .portfolio__filters .filter-btn {
    flex: 1 1 auto;
    white-space: nowrap;
    min-height: 40px;
    padding: 8px clamp(6px, 2vw, 10px);
    font-size: clamp(0.72rem, 3.2vw, 0.78rem);
    letter-spacing: 0;
    text-align: center;
  }
  .portfolio__filters .filter-btn__count { margin-left: 2px; }
  /* Krótkie nazwy (Produktowa, Allegro, Reklamy, YouTube) — z pełnymi
     siedem przycisków nie mieściło się w dwóch rzędach */
  .filter-btn__long { display: none; }
  .filter-btn__short { display: inline; }
  /* Pełny placeholder zamiast „…albo kategor" */
  .portfolio__search-input { font-size: 16px; padding-right: 40px; }
  .portfolio__search-input::placeholder { font-size: 0.88rem; }
}

/* ============================================================
   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;
}
/* display: flex bije [hidden] z przeglądarki — × wisiał przy pustym polu */
.portfolio__search-clear[hidden] { display: none; }
.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;
}
/* Telefon: prefiks w osobnej linii, oba linki razem pod nim. Wczesniej
   separator byl blokiem o wysokosci 4 px, a kropka wylewala sie na
   poczatek drugiej linii. */
@media (max-width: 600px) {
  .hero__process-links {
    font-size: 0.78rem;
    line-height: 1.9;
  }
  .hero__process-prefix {
    display: block;
    margin-right: 0;
  }
}

/* ============================================================
   HERO — odnośnik dla klientów prywatnych (retusz-zdjec.html)
   Hero mówi do sklepów; to jedyne wejście dla osoby prywatnej
   nad zgięciem. Na telefonie (order 0) stoi zaraz pod przyciskami.
   ============================================================ */
.hero__private {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  margin-top: clamp(18px, 2.5vw, 24px);
  padding: 10px 16px 10px 14px;
  border-left: 2px solid var(--accent);
  background: rgba(var(--accent-rgb), 0.07);
  border-radius: 0 var(--radius) var(--radius) 0;
  text-decoration: none;
  transition: background .2s;
}
.hero__private:hover { background: rgba(var(--accent-rgb), 0.14); }
.hero__private-q {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero__private-a {
  font-size: 0.92rem;
  color: var(--text-dark);
}
@media (max-width: 600px) {
  .hero__private { display: flex; }
  .hero__private-a { font-size: 0.86rem; }
}

/* ============================================================
   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);
}
/* Chowany nad formularzem kontaktu i przy otwartej klawiaturze — tam
   dublował przycisk „Wyślij" i zabierał kawałek ekranu (main.js). */
body.cookies-done .sticky-cta.sticky-cta--away {
  transform: translateY(110%);
  pointer-events: none;
}
@media (max-width: 768px) {
  .sticky-cta { display: flex; }
  /* Miejsce na pasek robi STOPKA, nie body — padding na body pokazywał
     pod ciemną stopką ~60 px jasnego tła strony. */
  body.cookies-done .footer {
    padding-bottom: calc(52px + 60px + env(safe-area-inset-bottom));
  }
}

/* Drukowanie — chowamy floating elementy */
@media print {
  .sticky-cta { 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;
}
/* DM Serif jak page-header na reszcie strony — Syne odstawał wizualnie
   od cennika, „Jak pracujemy" itd. (audyt mobile M16) */
.article-header__title {
  font-family: var(--font-hero);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--text-dark);
  margin-bottom: 18px;
}
.article-header__title em {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}
.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-hero);
  font-weight: 400;
  font-size: clamp(1.55rem, 2.4vw, 1.95rem);
  line-height: 1.25;
  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; }
}

/* ============================================================
   iOS: POLA FORMULARZY MIN. 16 PX
   Safari na iPhonie przybliża stronę przy stuknięciu w pole, którego tekst
   ma mniej niż 16 px — i nie oddala jej po wyjściu z pola. Dotyczyło
   kontaktu na głównej (14 px), briefu i wyszukiwarki portfolio (15,2 px).
   Na końcu pliku i z :not() w selektorze, żeby wygrać z regułami
   .form-group input / .brief-form input.
   ============================================================ */
@media (max-width: 768px), (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  select:not([multiple]),
  textarea:not([hidden]) {
    font-size: 16px;
  }
}

/* ============================================================
   CELE DOTYKU — min. ~44 px na telefonie
   Hamburger miał 32×23, „← Strona główna" 20 px wysokości, linki stopki
   i spisu treści ~20 px — trafienie kciukiem było loterią. Powiększamy
   obszar kliknięcia paddingiem, a ujemnym marginesem oddajemy miejsce,
   więc układ i wygląd zostają bez zmian.
   ============================================================ */
@media (max-width: 768px), (pointer: coarse) {
  .nav__toggle { padding: 14px 10px; margin: -10px -6px; }
  .hero-tab { min-height: 40px; }
  .back-link { padding-block: 12px; margin-block: -12px; margin-bottom: 12px; }
  .footer__nav-col { gap: 0; }
  .footer__nav a { padding-block: 7px; }
  .footer__legal a { display: inline-block; padding-block: 10px; }
  .contact__link { padding-block: 10px; }   /* inline — padding nie rusza wiersza */
  .coop__more { padding-block: 10px; margin-top: 22px; margin-bottom: -10px; }
  .hub-case__link { padding-block: 10px; margin-bottom: -10px; }   /* margin-top: auto zostaje */
  .brief-multi__add { min-height: 44px; }
  .article-toc__list a { display: inline-block; padding-block: 9px; margin-block: -9px; border-bottom: 0; }

  /* Przycisk pełnego ekranu na suwaku: 34 → 40 px */
  .ba-expand { width: 40px; height: 40px; }
  .portfolio-item--pair .ba-slider:has(.ba-expand) .ba-tag--a { right: 52px; }
}

/* ============================================================
   KARTY USŁUG — skrót na telefonie (przycisk dokłada main.js)
   ============================================================ */
.service-card__lead,
.service-card__more { display: none; }

@media (max-width: 768px) {
  .service-card--collapsible .service-card__lead {
    display: block;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--muted-light);
    margin-bottom: 4px;
  }
  .service-card--collapsible:not(.is-expanded) .service-card__desc,
  .service-card--collapsible:not(.is-expanded) .service-card__list { display: none; }
  .service-card--collapsible.is-expanded .service-card__lead { display: none; }
  .service-card--collapsible.is-expanded .service-card__list { margin-top: 4px; }

  .service-card--collapsible .service-card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: center;
    min-height: 44px;
    margin: 2px auto 14px;
    padding: 0 14px;
    background: none;
    border: 0;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--accent);
    cursor: pointer;
  }
  .service-card__more-icon { transition: transform 0.25s; }
  .service-card.is-expanded .service-card__more-icon { transform: rotate(180deg); }
}

/* ============================================================
   NAJMNIEJSZE NAPISY NA TELEFONIE (audyt M14)
   Etykiety Przed/Po miały 9,6 px, badge „Kolekcja →" 9,9 px, liczniki
   przy filtrach 10,4 px — na jasnym zdjęciu nieczytelne.
   ============================================================ */
@media (max-width: 768px) {
  .ba-tag { font-size: 0.7rem; letter-spacing: 0.12em; }
  .portfolio-item__badge { font-size: 0.68rem; letter-spacing: 0.1em; }
  .filter-btn__count { font-size: 0.86em; opacity: 0.7; }
  .portfolio-item__cat { font-size: 0.72rem; letter-spacing: 0.14em; }
  .section-label { font-size: 0.74rem; }
}

/* ============================================================
   PORTFOLIO NA TELEFONIE (≤768 px) — retusz jako zdjęcie + mieszana kolejność
   Logika w main.js: isStaticBA(), openLightboxBA() (tryb --slider), mixMobileGrid().
   ============================================================ */
@media (max-width: 768px) {
  /* Kafelek przed/po pokazuje sam efekt. Warstwa „po” to dolny .ba-pane,
     więc wystarczy schować górną („przed”) razem z uchwytem i etykietami.
     Suwak wraca w lightboxie, na pełnej szerokości ekranu. */
  .portfolio__grid .ba-slider .ba-after-wrap,
  .portfolio__grid .ba-slider .ba-divider,
  .portfolio__grid .ba-slider .ba-tag,
  .portfolio__grid .ba-slider .ba-expand { display: none; }
  .portfolio__grid .portfolio-item--ba { cursor: zoom-in; }
  .portfolio__grid .ba-slider { touch-action: auto; }

  /* Plakietka: tu jest porównanie, stuknij */
  .portfolio__grid .ba-slider::before {
    content: 'Przed / po ⇔';
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;
    padding: 4px 8px;
    border-radius: 2px;
    background: var(--accent);
    color: #0D0D0D;
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    pointer-events: none;
  }

  /* Mieszana kolejność: --rowstart z generatora wymuszał nowy wiersz pod
     układ sekcjami i robił dziury między przemieszanymi kafelkami.
     --wide/--full zostają — tam start: 1 jest częścią rozpiętości. */
  .portfolio__grid--mix > .portfolio-item--rowstart:not(.portfolio-item--wide):not(.portfolio-item--full) {
    grid-column-start: auto;
  }
}

/* Suwak przed/po w lightboxie (telefon) — klon slidera z kafelka.
   W kafelku .ba-slider wypełnia rodzica (absolute, inset 0); tu sam
   wyznacza pudełko: pełna szerokość, proporcje grafiki z --r. */
.lightbox--slider .lightbox__img { display: none; }
.lightbox__ba {
  position: relative;
  inset: auto;
  width: min(94vw, calc(72vh * (var(--r))));
  aspect-ratio: var(--r);
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
  touch-action: pan-y;
}
.lightbox__ba .ba-tag { top: 12px; }

@media (max-width: 768px) {
  /* Kafelek retuszu pokazuje na telefonie samo „po”, więc może mieć format
     sąsiada z pary — pionowy portret (2:3, 4:5) obok kwadratu dawał wiersz
     z nierównym dnem. object-fit: cover tnie po równo górę i dół. */
  .portfolio__grid .portfolio-item--ba.portfolio-item--pair { aspect-ratio: 1 / 1; }
}

@media (max-width: 768px) {
  /* portfolio.html: sekcja siatki stoi tuż pod nagłówkiem strony, który ma
     własny dolny margines — pełne --section-pad (72 px) dawało ~105 px
     czarnej pustki między podtytułem a wyszukiwarką. Ten sam kolor tła,
     więc wystarczy krótki oddech. Na index.html sekcja ma nad sobą CTA
     i tego selektora nie łapie. */
  .page-header + .portfolio { padding-top: 20px; }
}
