/* Portfolio — białe tło, szerokie grube nazwisko, kadry/pętle z opisem obok. */

:root {
  --tlo: #ffffff;
  --ink: #0d0d0d;
  --ink-2: #6a6a6a;
  --linia: #e3e3e3;
  --sans: "Archivo", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --m: clamp(16px, 1.8vw, 28px);
  --gap: clamp(10px, 1.2vw, 16px);
  --r: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--tlo); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.etykieta { font-size: 12px; font-weight: 800; font-stretch: 125%; letter-spacing: 0.02em; text-transform: uppercase; }

/* ── Góra ── */
.gora {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 0 var(--m); height: 64px;
  mix-blend-mode: difference; color: #fff;
  transition: background-color 0.25s;
}
.gora.przewiniete { mix-blend-mode: normal; color: var(--ink); background: var(--tlo); }
.gora__podpis { font-family: var(--serif); font-size: 21px; min-height: 44px; display: inline-flex; align-items: center; }
.gora__nav { display: flex; gap: clamp(18px, 3vw, 44px); }
.gora__nav a { font-size: 15px; font-weight: 800; font-stretch: 125%; min-height: 44px; display: inline-flex; align-items: center; }
.gora__nav a:hover, .gora__nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

.social { display: flex; gap: 24px; }
.social a { min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; font-weight: 800; font-stretch: 125%; }
.social a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ── Hero ── */
.hero { position: relative; min-height: calc(100svh - 64px); display: grid; align-items: center; padding: 0 var(--m) 64px; }
.hero__srodek { text-align: center; }
.hero__imie { font-size: 6.3vw; font-weight: 900; font-stretch: 125%; line-height: 0.9; letter-spacing: -0.01em; text-transform: uppercase; white-space: nowrap; }
.hero__role { margin-top: clamp(14px, 2vw, 28px); font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.2vw, 34px); }
.hero__role span { color: var(--ink-2); }
.hero__social { position: absolute; right: var(--m); bottom: 14px; }

/* ── Showreel + nagłówki sekcji ── */
.sekcja__h { margin-bottom: clamp(16px, 2vw, 28px); font-size: 12px; font-weight: 900; font-stretch: 125%; letter-spacing: 0.06em; text-transform: uppercase; }
.showreel { padding: 0 var(--m) clamp(56px, 8vw, 120px); }
.showreel__ramka { aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; }
.showreel__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.wkrotce { padding-top: clamp(8px, 2vw, 32px); }

/* ── Filmy: obraz | opis ── */
.filmy { padding: 0 var(--m); display: grid; gap: clamp(56px, 8vw, 120px); }
.film { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 3.5vw, 56px); align-items: start; }
.film__ramka { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #eee; color: #fff; }
.film__media { width: 100%; height: 100%; object-fit: cover; }
.film__ramka::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.5), transparent 42%); pointer-events: none; }
.film__media--pusto { display: grid; place-items: center; background: #f1f1f1; color: #cfcfcf; font-family: var(--serif); font-style: italic; font-size: clamp(48px, 8vw, 120px); }
.film__ramka:has(.film__media--pusto)::after, .film__ramka:has(.film__media--pusto) .film__podpis { display: none; }
.film__podpis { position: absolute; left: clamp(16px, 2.4vw, 36px); bottom: clamp(14px, 2.2vw, 32px); z-index: 1; display: grid; gap: 2px; }
.film__tytul { font-family: var(--serif); font-style: italic; font-size: clamp(30px, 3.4vw, 52px); line-height: 1.02; }
.film__znacznik { position: absolute; top: clamp(12px, 1.6vw, 22px); left: clamp(12px, 1.6vw, 22px); z-index: 1; padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 900; font-stretch: 125%; letter-spacing: 0.06em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.film__znacznik::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e0301e; }
.film__wyroznienie { display: inline-block; margin-bottom: 14px; padding: 7px 12px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; font-stretch: 125%; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.35; }
.film__male { margin-top: var(--gap); display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.film__male:has(> :nth-child(3)) { grid-template-columns: repeat(4, 1fr); }
.film__male:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
.film__male img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: calc(var(--r) * 0.7); }

.zapowiedzi { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.zapowiedz__ramka::after { display: none; }
.zapowiedz__podpis { margin-top: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.zapowiedz__uwaga { font-size: 12px; color: var(--ink-2); }
.film__tekst { position: sticky; top: 88px; padding-top: 4px; }
.film__h { font-size: clamp(26px, 2.4vw, 38px); font-weight: 900; font-stretch: 125%; line-height: 0.95; text-transform: uppercase; letter-spacing: -0.01em; }
.film__opis { margin-top: 18px; font-family: var(--serif); font-size: clamp(20px, 1.6vw, 25px); line-height: 1.28; }
.info { margin-top: 22px; }
.info div { display: grid; grid-template-columns: 104px 1fr; gap: 14px; padding: 9px 0; border-top: 1px solid var(--linia); font-size: 15px; }
.info div:last-child { border-bottom: 1px solid var(--linia); }
.info dt { padding-top: 3px; }
.info dd { min-width: 0; overflow-wrap: anywhere; }
.info a { text-decoration: underline; text-underline-offset: 4px; }
.film__dopisek { margin-top: 14px; color: var(--ink-2); font-size: 14px; }
.przycisk {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 22px;
  border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 800; font-stretch: 125%;
  transition: opacity 0.2s;
}
.przycisk:hover { opacity: 0.8; }
.link { display: inline-flex; min-height: 46px; align-items: center; margin: 22px 0 0 16px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }

/* ── O mnie ── */
.omnie { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 100px); align-items: start; padding: clamp(40px, 7vw, 110px) var(--m) 0; max-width: 1440px; margin: 0 auto; }
.omnie__zdjecia { position: relative; padding-bottom: 22%; }
.omnie__zdjecia img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); filter: grayscale(1); }
.omnie__zdjecia img:nth-child(2) {
  position: absolute; right: -4%; bottom: 0; width: 32%; aspect-ratio: 182 / 290; filter: none;
  border: 6px solid var(--tlo); border-radius: calc(var(--r) + 4px); box-shadow: 0 18px 40px rgba(0,0,0,0.18); transform: rotate(2deg);
}
.omnie__tekst > p { max-width: 58ch; margin-top: 18px; }
.omnie__zdjecia img:nth-child(3) {
  position: absolute; left: 6%; bottom: -6%; width: 30%; aspect-ratio: 4 / 5; filter: none;
  border: 6px solid var(--tlo); border-radius: calc(var(--r) + 4px); box-shadow: 0 18px 40px rgba(0,0,0,0.18); transform: rotate(-3deg);
}
.omnie__h { font-size: clamp(34px, 4.4vw, 68px); font-weight: 900; font-stretch: 125%; line-height: 0.92; text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 10px; }
.omnie__tekst > p:first-of-type { font-family: var(--serif); font-size: clamp(22px, 1.9vw, 30px); line-height: 1.25; }
.omnie__tekst .omnie__lead { font-family: var(--serif); font-size: clamp(30px, 3.2vw, 50px); line-height: 1.1; margin-top: 18px; max-width: 22ch; }
.omnie__fakty { margin-top: 36px; }
.omnie__fakty div { grid-template-columns: 150px 1fr; }

/* ── Formularz ── */
.kontakt-blok { max-width: 1440px; margin: clamp(72px, 10vw, 140px) auto 0; padding: 32px var(--m) 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 100px); border-top: 1px solid var(--ink); }
.kontakt-blok__h, .kontakt__h { font-size: clamp(34px, 4.4vw, 68px); font-weight: 900; font-stretch: 125%; line-height: 0.92; text-transform: uppercase; letter-spacing: -0.01em; }
.form { display: grid; gap: 18px; }
.form__rzad { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-size: 12px; font-weight: 800; font-stretch: 125%; text-transform: uppercase; letter-spacing: 0.02em; }
.form input, .form textarea {
  font: inherit; font-size: 16px; font-weight: 400; font-stretch: 100%; text-transform: none; letter-spacing: 0;
  color: var(--ink); background: #f5f5f5; border: 1px solid transparent; border-radius: 8px; padding: 13px 14px; min-height: 48px; resize: vertical;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.form .przycisk { justify-self: start; margin-top: 4px; }
.form__pulapka { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { font-size: 14px; color: var(--ink-2); min-height: 1.4em; }

/* ── Kontakt ── */
.kontakt { max-width: 1440px; margin: 0 auto; padding: clamp(40px, 7vw, 110px) var(--m) 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 100px); align-items: start; }
.kontakt__dane { margin-top: 32px; }

/* ── Stopka ── */
.stopka { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: clamp(64px, 9vw, 120px) var(--m) 22px; }
.stopka__mail { min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; }
.stopka__mail:hover { text-decoration: underline; text-underline-offset: 5px; }


/* ── Telefon / tablet ── */
@media (max-width: 900px) {
  .film, .omnie, .kontakt, .kontakt-blok { grid-template-columns: 1fr; }
  .film__tekst { position: static; }
  .zapowiedzi { grid-template-columns: 1fr; }
  .film__male:has(> :nth-child(3)) { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .gora__podpis { font-size: 18px; }
  .gora__nav { gap: 16px; }
  .gora__nav a { font-size: 13px; }
  .hero { min-height: 72svh; }
  .hero__srodek { text-align: left; }
  .hero__imie { white-space: normal; font-size: 10vw; }
  .form__rzad { grid-template-columns: 1fr; }
  .omnie__zdjecia { max-width: 460px; padding-bottom: 22%; }
  .omnie__zdjecia img:nth-child(2) { right: 0; width: 36%; }
  .info div, .omnie__fakty div { grid-template-columns: 110px 1fr; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
