/* ==========================================================================
   Architects of Light — baza strony
   ========================================================================== */

/* Fonty z własnego serwera (licencja SIL OFL 1.1 — assets/fonts/OFL-*.txt).
   Fonty zmienne: jeden plik obsługuje wszystkie grubości. Przeglądarka pobiera tylko
   potrzebne zakresy znaków (latin + latin-ext dla polskich liter). Bez połączeń z Google. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('../assets/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('../assets/fonts/cormorant-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('../assets/fonts/cormorant-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url('../assets/fonts/cormorant-italic-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url('../assets/fonts/cormorant-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f4f4f2;
  --bg-dark: #0c0c0c;
  --ink: #111111;
  --ink-soft: #6b6b6b;
  --ink-inv: #f4f4f2;
  --line: rgba(0, 0, 0, .1);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --nav-h: 64px;
  --nav-top: max(12px, env(safe-area-inset-top));
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: auto; /* płynne przewijanie robimy w JS, żeby działało wszędzie tak samo */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--ink); color: var(--bg); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1.02;
  letter-spacing: -.015em;
}

.lead {
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.45;
  font-weight: 300;
}

.section { position: relative; padding-block: clamp(96px, 16vw, 200px); }

/* ==========================================================================
   Nawigacja — liquid glass
   ========================================================================== */

.nav {
  position: fixed;
  z-index: 100;
  top: var(--nav-top);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding-inline: 12px;
  pointer-events: none;
  transition: transform .6s var(--ease-out);
}
.nav.is-hidden { transform: translateY(calc(-100% - 24px)); }

.nav__glass {
  pointer-events: auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(760px, 100%);
  height: var(--nav-h);
  padding: 0 10px;
  border-radius: 999px;
  isolation: isolate;
  color: var(--ink);

  /* szkło */
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .75),
    inset 0 -1px 0 rgba(255, 255, 255, .18),
    inset 0 0 0 1px rgba(255, 255, 255, .28),
    0 10px 40px -10px rgba(0, 0, 0, .25),
    0 2px 6px rgba(0, 0, 0, .06);
  transition: background .5s var(--ease-out), color .5s var(--ease-out), box-shadow .5s var(--ease-out);
}

/* połysk na krawędzi — efekt "liquid" */
.nav__glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0) 65%, rgba(255, 255, 255, .55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
  z-index: -1;
}
/* miękki refleks światła podążający za kursorem */
.nav__glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .45), transparent 60%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
  z-index: -1;
}
.nav__glass:hover::after { opacity: 1; }

/* Fallback, gdy przeglądarka nie obsługuje backdrop-filter */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav__glass { background: rgba(245, 245, 243, .92); }
  .nav--dark .nav__glass { background: rgba(20, 20, 20, .9); }
}

.nav--dark .nav__glass {
  color: var(--ink-inv);
  background: linear-gradient(180deg, rgba(40, 40, 40, .2), rgba(20, 20, 20, .05));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 10px 40px -10px rgba(0, 0, 0, .6);
}
.nav--dark .nav__glass::before { opacity: .35; }
.nav--dark .nav__glass::after { background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .12), transparent 60%); }
.nav--dark .nav__logo img { filter: invert(1); }

.nav__side { display: flex; gap: 4px; }
.nav__side--left { justify-content: flex-start; }
.nav__side--right { justify-content: flex-end; }

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  transition: background .3s var(--ease-out), opacity .3s;
}
.nav__link:hover { background: rgba(255, 255, 255, .35); }
.nav--dark .nav__link:hover { background: rgba(255, 255, 255, .1); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: currentColor;
}

.nav__logo {
  display: block;
  width: 56px;
  margin-inline: 20px;
  transition: transform .5s var(--ease-out);
}
.nav__logo:hover { transform: scale(1.06) rotate(-4deg); }
.nav__logo img { width: 100%; height: auto; transition: filter .5s; }

.nav__burger { display: none; }

/* ----- Mobile nav ----- */
@media (max-width: 760px) {
  :root { --nav-h: 56px; }
  .nav__glass { grid-template-columns: 44px 1fr 44px; width: min(420px, 100%); padding: 0 6px; }
  .nav__side { display: none; }
  .nav__logo { grid-column: 2; justify-self: center; width: 46px; margin: 0; }
  .nav__burger {
    grid-column: 3;
    display: grid;
    place-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
  }
  .nav__burger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .5s var(--ease-out);
  }
  .menu-open .nav__burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-open .nav__burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(244, 244, 242, .55);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  backdrop-filter: blur(30px) saturate(160%);
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease-out), visibility 0s .5s;
}
.mobile-menu li { overflow: hidden; }
.mobile-menu a {
  display: block;
  /* wielkość zależy też od wysokości ekranu — na niskim telefonie (np. iPhone SE) 7 linków mieści się nad numerem telefonu */
  padding: min(8px, 1vh) 0;
  font-family: var(--font-serif);
  font-size: clamp(26px, min(12vw, 5vh), 64px);
  line-height: 1.1;
  text-align: center;
  transform: translateY(110%);
  transition: transform .7s var(--ease-out);
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity .5s var(--ease-out); }
.menu-open .mobile-menu a { transform: none; }
.menu-open .mobile-menu li:nth-child(2) a { transition-delay: .05s; }
.menu-open .mobile-menu li:nth-child(3) a { transition-delay: .1s; }
.menu-open .mobile-menu li:nth-child(4) a { transition-delay: .15s; }
.menu-open .mobile-menu li:nth-child(5) a { transition-delay: .2s; }
.menu-open .mobile-menu li:nth-child(6) a { transition-delay: .25s; }
/* telefon: menu na cały ekran blokuje przewijanie; na komputerze strona pod panelem się przewija, a panel łagodnie znika */
@media (max-width: 760px) { .menu-open { overflow: hidden; } }

/* ==========================================================================
   HERO — wideo przewijane scrollem
   ========================================================================== */

.hero {
  position: relative;
  /* wysokość ustawia JS (część "przypięta"); to wartość domyślna bez JS */
  height: 312vh; /* 100vh + 250vh × 0,85 (całość o 15% szybciej) */
  background: #e9e9e7;
}

.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  contain: layout paint;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #e9e9e7 url("../assets/img/poster.webp") 40% center / cover no-repeat; /* ten sam kadr co film (js/hero.js) */
}
@media (max-aspect-ratio: 3/4) {
  .hero__canvas { background-image: url("../assets/frames/m4/001.webp"); background-position: center; }
}
@media (max-aspect-ratio: 3/4) and (max-width: 599px) {
  .hero__canvas { background-image: url("../assets/frames/m3/001.webp"); } /* telefon: kadr bliżej lewej, jak film */
}

.hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(90% 70% at 50% 50%, rgba(0, 0, 0, .28), rgba(0, 0, 0, .05) 70%),
    linear-gradient(180deg, rgba(244, 244, 242, .35) 0%, transparent 22%, transparent 78%, rgba(0, 0, 0, .25) 100%);
}

.hero__intro,
.hero__line {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding-inline: var(--gutter);
  pointer-events: none;
  will-change: opacity, transform;
}

.hero__intro .eyebrow {
  margin-bottom: 14px;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .55), 0 0 36px rgba(0, 0, 0, .35);
}
.hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(56px, 12vw, 180px);
  line-height: .9;
  letter-spacing: -.02em;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, .45), 0 0 70px rgba(0, 0, 0, .3);
}
.hero__title em { font-style: italic; }

.hero__line { opacity: 0; }
.hero__line p {
  font-family: var(--font-serif);
  font-size: clamp(36px, 6.5vw, 96px);
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .6), 0 0 60px rgba(0, 0, 0, .35);
  max-width: 14ch;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: max(28px, calc(env(safe-area-inset-bottom) + 16px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
}
.hero__scroll i {
  position: relative;
  width: 1px;
  height: 44px;
  overflow: hidden;
  background: rgba(255, 255, 255, .3);
}
.hero__scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  animation: scrollHint 2s var(--ease-io) infinite;
}
@keyframes scrollHint {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

.hero__loader {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(0, 0, 0, .06);
  transition: opacity .6s .3s;
}
.hero__loader i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .3s linear;
}
.hero__loader.is-done { opacity: 0; }

/* ==========================================================================
   O nas
   ========================================================================== */

.about .display { max-width: 16ch; }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  margin-top: clamp(56px, 8vw, 112px);
}

.about__img {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 28px;
  background: #ddd;
}
.about__img img {
  width: 100%;
  height: 118%;
  object-fit: cover;
  will-change: transform;
}

.about__text { display: grid; gap: 28px; }
.about__text > p:not(.lead) { color: var(--ink-soft); max-width: 46ch; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.stats strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: lining-nums;
}
.stats span { font-size: 13px; color: var(--ink-soft); }

@media (max-width: 760px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Cytat — słowa podświetlane scrollem
   ========================================================================== */

.statement { background: var(--bg-dark); color: var(--ink-inv); }
.statement__text {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5.6vw, 80px);
  line-height: 1.12;
  letter-spacing: -.01em;
  max-width: 20ch;
}
.statement__text .w { opacity: .14; transition: opacity .25s linear; }
.statement__text .w.on { opacity: 1; }

/* ==========================================================================
   Realizacje — poziome przewijanie
   ========================================================================== */

.work { background: var(--bg-dark); color: var(--ink-inv); padding-bottom: 0; padding-top: clamp(40px, 6vw, 80px); }
.work .eyebrow { color: rgba(244, 244, 242, .55); }
.work__head { margin-bottom: clamp(40px, 6vw, 72px); }

.work__track-wrap { position: relative; }
.work__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100vh;
  height: 100lvh; /* iPhone: wypełnia też obszar pod dolnym paskiem Safari */
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.work__track {
  display: flex;
  gap: clamp(16px, 2.5vw, 32px);
  padding-inline: var(--gutter);
  width: max-content;
  will-change: transform;
}

.card { width: max(150px, min(clamp(260px, 38vw, 560px), calc((100vh - var(--work-reserve)) * .8))); width: max(150px, min(clamp(260px, 38vw, 560px), calc((100svh - var(--work-reserve)) * .8))); flex: none; }
.card__img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 24px;
  background: #1c1c1c;
}
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.2s var(--ease-out);
}
.card:hover .card__img img { transform: scale(1.02); }
.card__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; margin-top: 18px; }
/* wąski kafelek (niskie okno): opis spada pod tytuł zamiast nachodzić na sąsiedni kafelek, a tytuł łamie się po słowach */
.card__meta h3 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(22px, 2.2vw, 30px); max-width: 100%; text-wrap: balance; line-height: 1.15; }
.card__meta span { font-size: 13px; color: rgba(244, 244, 242, .55); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

.work__progress {
  margin: clamp(28px, 4vw, 48px) var(--gutter) 0;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .16);
}
.work__progress i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--ink-inv);
  transform-origin: left;
  transform: scaleX(0);
}

@media (max-aspect-ratio: 1/1) {
  .card { width: max(150px, min(78vw, 420px, calc((100vh - var(--work-reserve)) * .8))); width: max(150px, min(78vw, 420px, calc((100svh - var(--work-reserve)) * .8))); }
  .card__meta { flex-direction: column; align-items: flex-start; gap: 2px; }
  .card__meta span { white-space: normal; }
}

/* ==========================================================================
   Kontakt
   ========================================================================== */

.contact__inner { max-width: 880px; text-align: center; }
.contact .display { margin-inline: auto; max-width: 14ch; }
.contact .lead { margin: 28px auto 0; color: var(--ink-soft); max-width: 40ch; }

.form { display: grid; gap: 18px; margin-top: clamp(48px, 6vw, 72px); text-align: left; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }

.field { position: relative; display: block; }
.field input,
.field textarea {
  width: 100%;
  padding: 26px 20px 12px;
  font: inherit;
  font-size: 16px; /* 16px = brak auto-zoomu na iOS */
  color: var(--ink);
  background: rgba(255, 255, 255, .6);
  border: 1px solid var(--line);
  border-radius: 18px;
  outline: none;
  resize: vertical;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.field textarea { min-height: 140px; max-height: 420px; } /* można rozciągnąć uchwytem i rośnie przy pisaniu, ale do limitu */
.field span {
  position: absolute;
  left: 21px;
  top: 19px;
  font-size: 16px;
  color: var(--ink-soft);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .35s var(--ease-out), color .3s;
}
.field input:focus,
.field textarea:focus { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(0, 0, 0, .05); }
.field input:focus + span,
.field input:not(:placeholder-shown) + span,
.field textarea:focus + span,
.field textarea:not(:placeholder-shown) + span { transform: translateY(-10px) scale(.75); }
.field.is-invalid input,
.field.is-invalid textarea { border-color: #b3261e; }

/* „Skąd nas znasz?” — lista w stylu pól; przy „Inne” obok (na telefonie pod spodem) pole do wpisania */
.form__source:not(.has-other) { grid-template-columns: 1fr; }
.field[hidden] { display: none; } /* .field ma display:block, który nadpisywał atrybut hidden */
.field select {
  width: 100%;
  padding: 26px 48px 12px 20px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 18px center / 18px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.field select:focus { border-color: var(--ink); background-color: #fff; box-shadow: 0 0 0 4px rgba(0, 0, 0, .05); }
.field--select.is-filled span,
.field select:focus + span { transform: translateY(-10px) scale(.75); }

.btn {
  justify-self: center;
  margin-top: 10px;
  padding: 18px 36px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 15px;
  font-weight: 500;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45); }
.btn:active { transform: scale(.97); }

.form__note { text-align: center; min-height: 1.5em; font-size: 14px; color: var(--ink-soft); }

.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 36px;
  margin-top: clamp(56px, 8vw, 96px);
  font-size: 15px;
}
.contact__links a { position: relative; }
.contact__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.contact__links a:hover::after { transform: scaleX(1); transform-origin: left; }
/* Instagram z ikonką po lewej (podkreślenie tylko pod napisem) */
.contact__ig { display: inline-flex; align-items: center; gap: 8px; }
.contact__ig svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
.contact__ig svg .dot { fill: currentColor; stroke: none; }
.contact__links .contact__ig::after { left: 24px; }

/* ==========================================================================
   Stopka
   ========================================================================== */

.footer { padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--ink-soft); }
.footer img { width: 52px; opacity: .85; }

/* ==========================================================================
   Animacje pojawiania się
   ========================================================================== */

.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

.js .reveal-words .wl { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js .reveal-words .wi {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i) * 45ms);
}
.js .reveal-words.in .wi { transform: none; }

.js .reveal-clip {
  clip-path: inset(18% 8% 18% 8% round 28px);
  transition: clip-path 1.4s var(--ease-out);
}
.js .reveal-clip.in { clip-path: inset(0 0 0 0 round 28px); }

/* ==========================================================================
   Ograniczony ruch
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal, .js .reveal-words .wi { opacity: 1; transform: none; }
  .js .reveal-clip { clip-path: none; }
}

/* ==========================================================================
   Strony podrzędne
   ========================================================================== */

[data-theme="dark"] { background: var(--bg-dark); color: var(--ink-inv); }
[data-theme="dark"] .eyebrow { color: rgba(244, 244, 242, .55); }

.page-head {
  padding-top: clamp(150px, 20vw, 230px);
  padding-bottom: clamp(40px, 6vw, 80px);
}
.page-head .display { max-width: 18ch; margin-top: 4px; }
.page-head__sub { margin-top: 24px; max-width: 40ch; color: rgba(244, 244, 242, .7); }
.page-head:not([data-theme="dark"]) .page-head__sub { color: var(--ink-soft); }

.cta { padding-block: clamp(96px, 14vw, 180px); text-align: center; }
.cta__inner { display: grid; justify-items: center; gap: 36px; }
.cta .display { max-width: 16ch; }
.cta .btn { margin-top: 0; }


/* ==========================================================================
   Strzałka „wstecz”
   ========================================================================== */

.back {
  position: fixed;
  z-index: 110;
  top: var(--nav-top);
  left: max(12px, env(safe-area-inset-left));
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .75),
    inset 0 0 0 1px rgba(255, 255, 255, .28),
    0 10px 30px -10px rgba(0, 0, 0, .25);
  transition: transform .5s var(--ease-out), color .5s, box-shadow .5s;
}
.back svg { width: 22px; height: 22px; }
.back:hover { transform: translateX(-3px); }
.back--dark { color: var(--ink-inv); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 10px 30px -10px rgba(0, 0, 0, .6); }

/* Miejsce na strzałkę: pasek nawigacji zostaje wycentrowany między strzałką a prawą krawędzią */
.has-back .nav { padding-inline: 72px; }

/* ==========================================================================
   Karty realizacji, wideo, „Pokaż więcej”
   ========================================================================== */

.card { display: block; }
.card__img { position: relative; }
.card--video .card__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .35));
  pointer-events: none;
}
.play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4);
  transition: transform .6s var(--ease-out), background .4s;
}
.play::after {
  content: "";
  position: absolute;
  left: 31px;
  top: 25px;
  border-left: 15px solid #fff;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
}
.card:hover .play { transform: scale(1.08); background: rgba(255, 255, 255, .32); }

.btn--light { background: var(--ink-inv); color: var(--ink); }

/* ==========================================================================
   Okno wideo (Vimeo)
   ========================================================================== */

.vmodal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, .75);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease-out), visibility 0s .45s;
}
.vmodal.open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease-out); }
.vmodal__frame {
  position: relative;
  width: min(1100px, 100%);
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  transform: translate3d(0, 24px, 0) scale(.97);
  transition: transform .6s var(--ease-out);
}
.vmodal.open .vmodal__frame { transform: none; }
.vmodal iframe { width: 100%; height: 100%; border: 0; display: block; }
.vmodal__msg { display: grid; place-items: center; height: 100%; padding: 24px; text-align: center; color: #ddd; }
.vmodal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.vmodal__close svg { width: 20px; height: 20px; }
.modal-open { overflow: hidden; }

/* ==========================================================================
   Galeria realizacji
   ========================================================================== */

.project__hero { padding-inline: 0; } /* okładka na całą szerokość, od lewej do prawej krawędzi okna */
.project__hero img { width: 100%; max-height: 80vh; object-fit: cover; border-radius: 0; }
.project__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.5vw, 32px); }
.project__gallery figure { margin: 0; }
.project__gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; }
.project__empty { padding-top: 200px; padding-bottom: 120px; display: grid; gap: 28px; justify-items: start; }
@media (max-width: 600px) { .project__gallery { grid-template-columns: 1fr; } }

/* ==========================================================================
   Pasek realizacji na stronie głównej
   ========================================================================== */

/* nagłówek jest przypięty razem z paskiem — przesuwa się tylko pasek */
:root { --work-reserve: 440px; }
@media (max-width: 700px) { :root { --work-reserve: 390px; } }
/* komputer z niskim oknem (np. MacBook 1280×800 w przeglądarce ~650 px): kafelki są wysokością ograniczone,
   więc przy 440 px rezerwy wychodziły wąskie i wysokie — mniejsza rezerwa daje szersze zdjęcia */
@media (min-width: 701px) and (max-height: 860px) { :root { --work-reserve: 330px; } }
.work--home { padding-top: 0; }
.work--home .work__sticky {
  justify-content: flex-start;
  padding-top: calc(var(--nav-top) + var(--nav-h) + clamp(18px, 3vh, 36px));
  padding-bottom: clamp(16px, 3vh, 28px);
}
.work--home .work__head { margin: 0 0 clamp(14px, 2.6vh, 30px); width: 100%; }
.work--home .work__head .eyebrow { margin-bottom: 6px; }
.work--home .work__head .display { font-size: clamp(34px, 5.4vw, 76px); line-height: 1; }
.work--home .work__progress { margin-top: clamp(14px, 2.5vh, 28px); }
.work--home .work__more { margin-top: clamp(14px, 2.5vh, 28px); }
@media (max-width: 700px) { .work--home .work__sticky { padding-bottom: 96px; } } /* miejsce nad dolnym paskiem Safari */

/* ==========================================================================
   Strona Realizacje — siatka redakcyjna z filtrami
   ========================================================================== */

.works-head { padding-bottom: clamp(32px, 5vw, 64px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(28px, 4vw, 44px); }
.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 44px;
  background: rgba(255, 255, 255, .5);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background .4s var(--ease-out), color .4s var(--ease-out), box-shadow .4s;
}
.chip sup { font-size: 10px; opacity: .55; top: -.2em; }
.chip:hover { background: #fff; }
.chip.is-active { background: var(--ink); color: var(--bg); box-shadow: none; }

.works { padding-bottom: clamp(40px, 6vw, 80px); }
.works-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 72px) clamp(16px, 2.2vw, 32px);
  transition: opacity .28s var(--ease-out);
}
.works-grid.is-switching { opacity: 0; }

.tile {
  grid-column: span 5;
  display: block;
  animation: tileIn 1s var(--ease-out) both;
  animation-delay: calc(min(var(--i), 6) * 70ms);
}
.tile--wide { grid-column: span 7; }
.tile__img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 26px;
  background: #e4e4e1;
}
.tile--wide .tile__img { aspect-ratio: 28 / 25; }
.tile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.tile:hover .tile__img img { transform: scale(1.04); }
.tile--video .tile__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .3));
  pointer-events: none;
}
.tile:hover .play { transform: scale(1.08); background: rgba(255, 255, 255, .32); }
.tile__meta { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.tile__meta h3 { flex: 1; font-family: var(--font-serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; }
.tile__sub { margin-top: 4px; font-size: 14px; color: var(--ink-soft); }
.tag {
  flex: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  box-shadow: inset 0 0 0 1px var(--line);
}
@keyframes tileIn {
  from { opacity: 0; transform: translate3d(0, 40px, 0); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 760px) {
  .works-grid { grid-template-columns: 1fr; }
  .tile, .tile--wide { grid-column: auto; }
  .tile--wide .tile__img { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   Wspólne „liquid glass” — te same parametry co pasek nawigacji
   ========================================================================== */

.glass-btn,
.faq__item {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .75),
    inset 0 -1px 0 rgba(255, 255, 255, .18),
    inset 0 0 0 1px rgba(255, 255, 255, .28),
    0 10px 40px -10px rgba(0, 0, 0, .25),
    0 2px 6px rgba(0, 0, 0, .06);
}
/* połysk na krawędzi, jak w pasku */
.glass-btn::before,
.faq__item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0) 65%, rgba(255, 255, 255, .55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
  z-index: -1;
}

/* ==========================================================================
   „Pokaż więcej” pod paskiem realizacji
   ========================================================================== */

.work__more {
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 4vw, 44px);
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}

/* ==========================================================================
   Scena BLOG
   ========================================================================== */

.blog-stage { position: relative; height: 235vh; } /* scena BLOG: szybsza od reszty strony */
.blog-stage__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--bg-dark);
  contain: layout paint;
}
.blog-stage__photo {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity, transform;
}
.blog-stage__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* przyciemnione i z obniżonym kontrastem, żeby przycisk był czytelny */
  filter: grayscale(1) brightness(.55) contrast(.82);
}
.blog-stage__word {
  position: relative;
  z-index: 1;
  display: flex;
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(96px, 24vw, 420px);
  line-height: .8;
  letter-spacing: -.05em;
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  user-select: none;
}
.blog-stage__word span { display: block; }
.blog-stage__cta {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.blog-stage__cta .eyebrow { margin: 0; color: rgba(255, 255, 255, .75); }

.glass-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .01em;
  color: #fff;
  white-space: nowrap;
  transition: background .4s var(--ease-out), transform .5s var(--ease-out);
}
.glass-btn i { font-style: normal; transition: transform .5s var(--ease-out); }
.glass-btn:hover { background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .1)); }
.glass-btn:hover i { transform: translateX(5px); }
.glass-btn:active { transform: scale(.97); }

/* ==========================================================================
   FAQ — pytania w szklanych „pastylkach” jak pasek nawigacji
   ========================================================================== */

.faq { overflow: hidden; }
.faq__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.faq__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
  filter: grayscale(1) contrast(.75) brightness(1.12);
}
/* miękkie wtopienie zdjęcia w tło strony */
.faq__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(244, 244, 242, .35) 30%, rgba(244, 244, 242, .35) 70%, var(--bg) 100%);
}

.faq__inner { position: relative; z-index: 1; max-width: calc(760px + var(--gutter) * 2); text-align: center; }
.faq__inner .display { font-size: clamp(40px, 6vw, 84px); }
.faq__list { display: grid; gap: 12px; margin-top: clamp(40px, 5vw, 60px); text-align: left; }

.faq__item {
  border-radius: 32px;
  transition: background .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.faq__item:hover,
.faq__item.is-open { background: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .14)); }
.js .faq__item.reveal {
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out), background .5s var(--ease-out);
  transition-delay: var(--d, 0s), var(--d, 0s), 0s;
}
.faq__list .faq__item:nth-child(2) { --d: .06s; }
.faq__list .faq__item:nth-child(3) { --d: .12s; }
.faq__list .faq__item:nth-child(4) { --d: .18s; }
.faq__list .faq__item:nth-child(5) { --d: .24s; }

.faq__q {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 64px;
  padding: 10px 10px 10px 28px;
  border-radius: 32px;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.35;
}
.faq__q:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.faq__icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6);
  transition: transform .6s var(--ease-out), background .4s var(--ease-out), color .4s;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  margin: -.75px 0 0 -7px;
  border-radius: 2px;
  background: currentColor;
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon { transform: rotate(135deg); background: var(--ink); color: #fff; box-shadow: none; }

/* płynna wysokość: grid 0fr → 1fr */
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a-inner { overflow: hidden; min-height: 0; }
.faq__a p {
  padding: 0 72px 24px 28px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(17, 17, 17, .72);
  opacity: 0;
  transform: translate3d(0, -8px, 0);
  transition: opacity .35s, transform .6s var(--ease-out);
}
.faq__item.is-open .faq__a p { opacity: 1; transform: none; transition-delay: .12s; }

.faq__lead { margin-top: 36px; color: var(--ink-soft); }
.link-arrow { color: var(--ink); font-weight: 500; white-space: nowrap; }
.link-arrow span { display: inline-block; transition: transform .5s var(--ease-out); }
.link-arrow:hover span { transform: translateX(4px); }

@media (max-width: 520px) {
  .faq__q { min-height: 58px; padding: 8px 8px 8px 22px; font-size: 14.5px; }
  .faq__icon { width: 40px; height: 40px; }
  .faq__a p { padding: 0 22px 20px; }
}

/* ==========================================================================
   Blog — lista wpisów
   ========================================================================== */

.post-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 64px) clamp(16px, 2.2vw, 32px);
  transition: opacity .28s var(--ease-out);
}
.post-list.is-switching { opacity: 0; }
.post-card {
  display: grid;
  align-content: start;
  gap: 20px;
  animation: tileIn 1s var(--ease-out) both;
  animation-delay: calc(min(var(--i), 6) * 70ms);
}
.post-card__img { overflow: hidden; aspect-ratio: 3 / 2; border-radius: 24px; background: #e4e4e1; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--ink-soft); }
.post-card h3 { margin-top: 12px; font-family: var(--font-serif); font-weight: 400; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.12; }
.post-card__lead { margin-top: 10px; font-size: 15px; color: var(--ink-soft); }
.post-card__more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 500; }
.post-card__more i { display: inline-block; font-style: normal; transition: transform .5s var(--ease-out); }
.post-card:hover .post-card__more i { transform: translateX(5px); }

/* pierwszy wpis — wyróżniony, na całą szerokość */
.post-card--feature { grid-column: 1 / -1; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.post-card--feature .post-card__img { aspect-ratio: 16 / 10; border-radius: 28px; }
.post-card--feature h3 { font-size: clamp(32px, 3.6vw, 52px); }

@media (max-width: 900px) {
  .post-list { grid-template-columns: 1fr 1fr; }
  .post-card--feature { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .post-list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Blog — pojedynczy wpis
   ========================================================================== */

.post__head { padding-top: clamp(150px, 18vw, 220px); max-width: calc(860px + var(--gutter) * 2); }
.post__title {
  margin-top: 22px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -.015em;
}
.post__lead { margin-top: 24px; color: var(--ink-soft); }
.post__hero { margin: clamp(48px, 6vw, 80px) var(--gutter) 0; overflow: hidden; border-radius: 28px; }
.post__hero img { width: 100%; max-height: 82vh; object-fit: cover; }
.post__body { max-width: calc(700px + var(--gutter) * 2); padding-block: clamp(56px, 7vw, 96px); display: grid; gap: 1.4em; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.75; }
.post__next {
  max-width: calc(860px + var(--gutter) * 2);
  padding-bottom: clamp(80px, 10vw, 140px);
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.post__next a { display: block; margin-top: 4px; font-family: var(--font-serif); font-size: clamp(26px, 3vw, 40px); line-height: 1.15; }
.post__next i { font-style: normal; display: inline-block; transition: transform .5s var(--ease-out); }
.post__next a:hover i { transform: translateX(6px); }

/* ==========================================================================
   O nas — ekipa
   ========================================================================== */

.team-hero { padding-top: clamp(140px, 16vw, 200px); padding-bottom: clamp(56px, 8vw, 120px); }
.team-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.team-hero__text {
  position: sticky;
  top: calc(var(--nav-top) + var(--nav-h) + 48px);
  display: grid;
  gap: 28px;
}
.team-hero__text .eyebrow { margin: 0; }
.team-hero__text .display { font-size: clamp(44px, 6vw, 92px); }
.team-hero__text .lead { max-width: 30ch; color: var(--ink-soft); }
.team-hero__text .stats { margin-top: 8px; }
/* jedna liczba (O nas): ten sam układ co zwykle, tylko większa */
.stats--one strong { font-size: clamp(72px, 9vw, 128px); }
.stats--one span { font-size: 14px; }

/* zdjęcie ma biało-szare tło — „multiply” wtapia je w kolor strony bez widocznej ramki */
.team-hero__img { margin: 0; overflow: hidden; border-radius: 28px; background: var(--bg); }
.team-hero__img img { width: 100%; height: auto; mix-blend-mode: multiply; }

.people__title { max-width: 14ch; }
.people__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 96px);
  margin-top: clamp(48px, 7vw, 96px);
}
.person { display: grid; align-content: start; justify-items: start; }
.person__img {
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  background: #e4e4e1;
  margin-bottom: 28px;
}
.person__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.person__img:hover img { transform: scale(1.04); }
.person__role {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  box-shadow: inset 0 0 0 1px var(--line);
}
.person__name { margin-top: 16px; font-family: var(--font-serif); font-weight: 400; font-size: clamp(44px, 5vw, 72px); line-height: 1; letter-spacing: -.015em; }
.person__bio { margin: 16px 0 22px; max-width: 42ch; color: var(--ink-soft); }

@media (max-width: 860px) {
  .team-hero__grid { grid-template-columns: 1fr; }
  .team-hero__text { position: static; }
  .team-hero__text .lead { max-width: none; }
  .people__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Pływające kółko „Skontaktuj się z nami” — liquid glass jak pasek u góry
   ========================================================================== */

.fab {
  position: fixed;
  z-index: 85;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  isolation: isolate;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.3;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .75),
    inset 0 -1px 0 rgba(255, 255, 255, .18),
    inset 0 0 0 1px rgba(255, 255, 255, .28),
    0 10px 40px -10px rgba(0, 0, 0, .3),
    0 2px 6px rgba(0, 0, 0, .06);
  opacity: 0;
  transform: translate3d(0, 14px, 0) scale(.6);
  pointer-events: none;
  transition: opacity .6s var(--ease-out), transform .9s var(--ease-out), color .5s var(--ease-out), box-shadow .5s;
}
/* połysk na krawędzi, jak w pasku */
.fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0) 65%, rgba(255, 255, 255, .55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
  z-index: -1;
}
.fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.fab.is-visible:hover { transform: scale(1.07); }
.fab.is-visible:active { transform: scale(.96); }
.fab:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.fab--dark {
  color: #fff;
  background: linear-gradient(180deg, rgba(40, 40, 40, .2), rgba(20, 20, 20, .05));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 10px 40px -10px rgba(0, 0, 0, .6);
}
.fab--dark::before { opacity: .35; }
@media (max-width: 600px) {
  .fab { width: 84px; height: 84px; font-size: 10px; right: max(14px, env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .fab { transition-duration: .01ms; } }

/* ---- dymek przy kółku kontaktu ---- */
.fab-pop {
  position: fixed;
  z-index: 85;
  right: calc(max(18px, env(safe-area-inset-right)) + 96px + 12px);
  bottom: calc(env(safe-area-inset-bottom) + 38px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 11px 11px 20px;
  border-radius: 999px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .1));
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .75),
    inset 0 0 0 1px rgba(255, 255, 255, .3),
    0 14px 40px -12px rgba(0, 0, 0, .35);
  opacity: 0;
  transform: translate3d(28px, 0, 0) scale(.82);
  transform-origin: right center;
  pointer-events: none;
  transition: opacity .5s var(--ease-out), transform .8s cubic-bezier(.34, 1.4, .64, 1), color .4s;
}
.fab-pop.is-open { opacity: 1; transform: none; pointer-events: auto; }
.fab-pop a { display: grid; gap: 1px; font-size: 13px; line-height: 1.25; }
.fab-pop strong { font-weight: 600; letter-spacing: .01em; }
.fab-pop span { font-size: 11.5px; opacity: .7; }
.fab-pop button {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  background: rgba(0, 0, 0, .07);
  transition: background .3s;
}
.fab-pop button:hover { background: rgba(0, 0, 0, .14); }
.fab-pop--dark { color: #fff; background: linear-gradient(180deg, rgba(60, 60, 60, .4), rgba(25, 25, 25, .25)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .1), 0 14px 40px -12px rgba(0, 0, 0, .7); }
.fab-pop--dark button { background: rgba(255, 255, 255, .12); }
.fab-pop--dark button:hover { background: rgba(255, 255, 255, .22); }

/* delikatna fala wokół kółka — dwa razy, razem z dymkiem */
.fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 1px currentColor;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}
.fab--ping::after { animation: fabPing 1.9s var(--ease-out) 2; }
@keyframes fabPing {
  0% { transform: scale(1); opacity: .45; }
  100% { transform: scale(1.7); opacity: 0; }
}
@media (max-width: 600px) {
  .fab-pop {
    right: calc(max(14px, env(safe-area-inset-right)) + 84px + 10px);
    bottom: calc(env(safe-area-inset-bottom) + 30px);
    max-width: calc(100vw - 14px - 84px - 10px - 14px);
    padding: 10px 10px 10px 16px;
  }
  .fab-pop a { font-size: 12px; }
  .fab-pop span { font-size: 10.5px; }
}
@media (prefers-reduced-motion: reduce) { .fab--ping::after { animation: none; } }

/* ==========================================================================
   Język — okrągły przycisk po lewej od paska (liquid glass), rozwijany
   ========================================================================== */

html.i18n-wait body { visibility: hidden; }

/* animacja odstępu paska dopiero po załadowaniu (bez „przesuwania” przy wejściu na stronę) */
.nav-anim .nav { transition: transform .6s var(--ease-out), padding .6s var(--ease-out); }

.lang {
  position: fixed;
  z-index: 105;
  left: max(12px, env(safe-area-inset-left));
  top: var(--nav-top);
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 24px;
  isolation: isolate;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .75),
    inset 0 -1px 0 rgba(255, 255, 255, .18),
    inset 0 0 0 1px rgba(255, 255, 255, .28),
    0 10px 40px -10px rgba(0, 0, 0, .25),
    0 2px 6px rgba(0, 0, 0, .06);
  transition:
    width .6s var(--ease-out), height .6s var(--ease-out), border-radius .6s var(--ease-out),
    opacity .5s var(--ease-out), transform .6s var(--ease-out), color .4s;
}
.has-back .lang { left: calc(max(12px, env(safe-area-inset-left)) + 56px); }
.lang.is-open { width: 156px; height: 136px; border-radius: 26px; }
.lang.is-hidden { opacity: 0; transform: translate3d(-12px, 0, 0) scale(.9); pointer-events: none; }

.lang__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  padding-left: 13px;
  white-space: nowrap;
}
.lang__btn svg { flex: none; width: 22px; height: 22px; }
.lang__code { font-size: 12px; font-weight: 600; letter-spacing: .1em; opacity: 0; transition: opacity .3s; }
.lang.is-open .lang__code { opacity: .7; transition-delay: .15s; }

.lang__menu {
  display: grid;
  gap: 2px;
  padding: 0 8px 8px;
  opacity: 0;
  transform: translate3d(0, -6px, 0);
  pointer-events: none;
  transition: opacity .3s, transform .5s var(--ease-out);
}
.lang.is-open .lang__menu { opacity: 1; transform: none; pointer-events: auto; transition-delay: .1s; }
.lang__menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 38px;
  padding: 0 14px;
  border-radius: 19px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  transition: background .3s var(--ease-out);
}
.lang__menu button:hover { background: rgba(255, 255, 255, .3); }
.lang__menu button[aria-pressed="true"] { background: rgba(255, 255, 255, .4); }
.lang__menu svg { width: 16px; height: 16px; }
.lang--dark { color: #fff; background: linear-gradient(180deg, rgba(40, 40, 40, .2), rgba(20, 20, 20, .05)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 10px 40px -10px rgba(0, 0, 0, .6); }
.lang--dark .lang__menu button:hover { background: rgba(255, 255, 255, .12); }
.lang--dark .lang__menu button[aria-pressed="true"] { background: rgba(255, 255, 255, .18); }

/* na wąskich ekranach pasek robi miejsce dla przycisku, dopóki ten jest widoczny */
@media (max-width: 900px) {
  .lang-visible .nav { padding-left: 68px; padding-right: 68px; }
  .has-back.lang-visible .nav { padding-left: 124px; padding-right: 68px; }
}

/* wybór języka w menu mobilnym */
.mobile-lang {
  position: absolute;
  left: 50%;
  bottom: calc(40px + env(safe-area-inset-bottom));
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, .35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
}
.mobile-lang button {
  min-width: 58px;
  height: 40px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
}
.mobile-lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* niskie ekrany (telefon poziomo): bez nagłówka nad paskiem, mniejsze odstępy */
@media (max-height: 560px) {
  :root { --work-reserve: 230px; }
  .work--home .work__head { display: none; }
  .work--home .work__sticky { padding-top: calc(var(--nav-top) + var(--nav-h) + 10px); padding-bottom: 10px; }
  .work--home .work__progress { margin-top: 10px; }
  .work--home .work__more { margin-top: 10px; }
  .work--home .work__more .btn { padding: 11px 24px; font-size: 14px; }
  .card { width: max(120px, min(clamp(260px, 38vw, 560px), calc((100vh - var(--work-reserve)) * .8))); width: max(120px, min(clamp(260px, 38vw, 560px), calc((100svh - var(--work-reserve)) * .8))); }
  .card__meta { margin-top: 8px; flex-direction: column; align-items: flex-start; gap: 2px; }
  .card__meta h3 { font-size: 17px; white-space: nowrap; }
  .card__meta span { font-size: 11px; }
}

/* ==========================================================================
   Opinie klientów — dwa rzędy kart płynnie przesuwających się w przeciwnych kierunkach
   ========================================================================== */

.reviews { overflow: hidden; padding-bottom: clamp(56px, 8vw, 110px); }
.reviews__head { margin-bottom: clamp(36px, 5vw, 64px); }
.reviews__head .display { max-width: 14ch; }
.reviews__rows {
  display: grid;
  gap: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee { overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__set { display: flex; gap: 18px; padding-right: 18px; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

.review {
  display: grid;
  align-content: space-between;
  gap: 22px;
  width: clamp(280px, 30vw, 400px);
  margin: 0;
  padding: 28px 28px 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, .62);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05), 0 22px 50px -32px rgba(0, 0, 0, .3);
  transition: background .4s var(--ease-out), transform .6s var(--ease-out);
}
.review:hover { background: #fff; transform: translateY(-4px); }
.review__stars { font-size: 13px; letter-spacing: .22em; color: var(--ink); }
.review blockquote { margin: 0; font-family: var(--font-serif); font-size: clamp(20px, 1.7vw, 25px); line-height: 1.32; }
.review figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.review figcaption strong { font-size: 14px; font-weight: 600; }
.review figcaption span { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee__track { animation: none; }
}

/* ==========================================================================
   Scena BLOG — wyróżniony wpis (szklana karta na przyciemnionym, rozmytym zdjęciu)
   ========================================================================== */

.blog-stage__photo img { filter: grayscale(1) brightness(.42) contrast(.85) blur(10px); transform: scale(1.08); }
.blog-stage__cta { width: min(900px, calc(100vw - 32px)); gap: 18px; }

.blog-feature {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  width: 100%;
  padding: 14px clamp(14px, 2.4vw, 32px) 14px 14px;
  border-radius: 32px;
  text-align: left;
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    inset 0 0 0 1px rgba(255, 255, 255, .14),
    0 30px 80px -30px rgba(0, 0, 0, .7);
}
.blog-feature__img { display: block; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 22px; background: rgba(255, 255, 255, .08); }
.blog-feature__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.blog-feature:hover .blog-feature__img img { transform: scale(1.05); }
.blog-feature__meta { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.blog-feature h3 {
  margin: 12px 0 12px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(26px, 2.9vw, 42px);
  line-height: 1.06;
  letter-spacing: -.01em;
}
.blog-feature h3 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease-out); }
.blog-feature h3 a:hover { background-size: 100% 1px; }
.blog-feature__lead { max-width: 44ch; margin-bottom: 22px; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .75); }
.glass-btn--sm { height: 48px; padding: 0 22px; font-size: 14px; }

.blog-stage__all { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .75); transition: color .3s; }
.blog-stage__all span { display: inline-block; transition: transform .5s var(--ease-out); }
.blog-stage__all:hover { color: #fff; }
.blog-stage__all:hover span { transform: translateX(4px); }

@media (max-width: 700px) {
  .blog-feature { grid-template-columns: 1fr; gap: 16px; padding: 12px 12px 20px; border-radius: 26px; }
  .blog-feature__img { aspect-ratio: 16 / 10; border-radius: 18px; }
  .blog-feature__body { padding: 0 8px; }
  .blog-feature__lead { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-height: 560px) {
  .blog-feature { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); }
  .blog-feature__lead { display: none; }
}

/* Scena BLOG nachodzi na ostatni ekran paska realizacji:
   napis pojawia się od razu, a pasek płynnie znika pod bielejącym tłem. */
.blog-stage { margin-top: -88vh; margin-top: -88lvh; z-index: 2; pointer-events: none; } /* start po krótkim odjechaniu paska */
.blog-stage__sticky { background: transparent; }

/* odtwarzacz Vimeo wypełnia całe okno (wcześniej kontener nie miał wysokości) */
.vmodal__body { position: absolute; inset: 0; }
.vmodal__frame { width: min(1400px, 100%, calc((100vh - 64px) * 2.39)); max-height: calc(100vh - 64px); }

/* tło sceny BLOG jest już rozmyte w pliku — bez kosztownego filtra na każdej klatce */
.blog-stage__photo img { filter: none; transform: none; }
/* tło sceny: ostre zdjęcie, przyciemnione półprzezroczystą warstwą (tania w rysowaniu — bez filtrów) */
.blog-stage__photo::after { content: ""; position: absolute; inset: 0; background: rgba(10, 10, 10, .5); pointer-events: none; }
.blog-stage__word { will-change: opacity; text-rendering: optimizeSpeed; }


/* ==========================================================================
   Scena BLOG — wydajność na iPhonie (Safari)
   ========================================================================== */

/* białe tło jako osobna warstwa — animujemy tylko jej przezroczystość */
.blog-stage__bg { position: absolute; inset: 0; background: var(--bg); opacity: 0; will-change: opacity; pointer-events: none; }
/* napis jako bitmapa (canvas) — powiększa go karta graficzna */
.blog-stage__word { will-change: transform, opacity; }
.blog-stage__word.is-canvas span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.blog-stage__canvas { display: block; }
.blog-stage__cta { will-change: transform, opacity; }
/* tło jest już rozmyte w pliku, więc karta nie potrzebuje kosztownego backdrop-filter */
.blog-feature {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: linear-gradient(180deg, rgba(60, 60, 60, .55), rgba(30, 30, 30, .5));
}
.blog-feature .glass-btn {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(255, 255, 255, .12);
}
.blog-feature .glass-btn:hover { background: rgba(255, 255, 255, .22); }

/* napisy na filmie jako osobne warstwy — przesuwanie/wygaszanie bez przerysowywania tekstu z cieniem */
.hero__intro, .hero__line, .hero__scroll { will-change: transform, opacity; backface-visibility: hidden; }

/* brak jasnego pasa między paskiem realizacji a sceną BLOG:
   część sceny nachodząca na pasek jest przezroczysta, dalej ciemna jak pasek */
.blog-stage {
  /* ciemne tło zaczyna się 2 px przed końcem paska realizacji (ten sam kolor) — bez jasnego
     szwu, gdy granica wypada w ułamku piksela */
  background: linear-gradient(180deg, transparent 0, transparent calc(88vh - 2px), var(--bg-dark) calc(88vh - 2px));
  background: linear-gradient(180deg, transparent 0, transparent calc(88lvh - 2px), var(--bg-dark) calc(88lvh - 2px));
}
.blog-stage__word { position: relative; }
.blog-stage__canvas--light { position: absolute; left: 0; top: 0; }

/* opinie poza ekranem nie animują się */
.reviews__rows.is-paused .marquee__track { animation-play-state: paused; }

/* napis BLOG rysowany na płótnie wielkości sceny (między zdjęciem a kartą wpisu) */
.blog-stage__screen { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.blog-stage__word.is-canvas { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); will-change: auto; }

/* telefon: pasek z logo o 30% krótszy (wyśrodkowany) */
@media (max-width: 760px) {
  .nav__glass { width: calc(min(420px, 100%) * .7); min-width: 160px; }
}

/* ==========================================================================
   Telefon, góra strony: [globus]  [podłużna pastylka z logo]  [kółko menu]
   Ten sam rytm co globus: przy przewijaniu kółko menu znika, a pasek
   wraca do normalnej postaci (logo + kreski w jednej pastylce).
   ========================================================================== */

.nav-solo {
  position: fixed;
  z-index: 105;
  right: max(12px, env(safe-area-inset-right));
  top: var(--nav-top);
  display: grid;
  place-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .75),
    inset 0 -1px 0 rgba(255, 255, 255, .18),
    inset 0 0 0 1px rgba(255, 255, 255, .28),
    0 10px 40px -10px rgba(0, 0, 0, .25),
    0 2px 6px rgba(0, 0, 0, .06);
  opacity: 0;
  transform: translate3d(12px, 0, 0) scale(.9);
  pointer-events: none;
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out), color .4s;
}
.nav-solo span { display: block; width: 18px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .5s var(--ease-out); }
.lang-visible .nav-solo { opacity: 1; transform: none; pointer-events: auto; }
/* podstrony na komputerze: kółko menu też (globus jest tylko na stronie głównej) */
@media (min-width: 761px) { .chrome-up .nav-solo { opacity: 1; transform: none; pointer-events: auto; } }
.menu-open .nav-solo span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-open .nav-solo span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.nav-solo--dark { color: #fff; background: linear-gradient(180deg, rgba(40, 40, 40, .2), rgba(20, 20, 20, .05)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 10px 40px -10px rgba(0, 0, 0, .6); }

@media (max-width: 760px) {
  .nav-anim .nav__burger { transition: opacity .4s var(--ease-out); }

  /* stan „u góry” */
  .lang-visible .nav,
  .has-back.lang-visible .nav { padding-left: 12px; padding-right: 12px; }
  .lang-visible .nav__glass { width: 168px; min-width: 0; }
  .lang-visible .nav__burger { opacity: 0; pointer-events: none; }

}
@media (max-width: 760px) {
  /* animacja szerokości tylko po załadowaniu (bez „przesuwania” przy wejściu na stronę) */
  .nav__glass { transition: background .5s var(--ease-out), color .5s var(--ease-out), box-shadow .5s var(--ease-out); }
  .nav-anim .nav__glass { transition: width .6s var(--ease-out), grid-template-columns .6s var(--ease-out), background .5s var(--ease-out), color .5s var(--ease-out), box-shadow .5s var(--ease-out); }
  .lang-visible .nav__glass { grid-template-columns: 0px 1fr 0px; }
  /* podstrony: po lewej strzałka + globus, więc pastylka z logo trochę węższa */
  .has-back.lang-visible .nav__glass { width: min(168px, calc(100vw - 248px)); }
}

.form__note[data-kind="ok"] { color: var(--ink); }
.form__note[data-kind="error"] { color: #b3261e; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; box-shadow: none; }

/* ==========================================================================
   Scena mapy: Wrocław → Polska → świat
   ========================================================================== */

.map-stage { position: relative; height: 270vh; background: linear-gradient(180deg, var(--bg-dark) 60%, var(--bg) 100%); }
.map-stage__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  contain: layout paint;
}
.map-stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map-stage__text {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  padding-inline: var(--gutter);
  text-align: center;
  color: #f4f4f2;
  pointer-events: none;
  will-change: transform, opacity;
}
.map-stage__text .eyebrow { margin-bottom: 12px; color: inherit; opacity: .6; }
.map-stage__text .display { font-size: clamp(38px, 6.4vw, 96px); line-height: 1; }
.map-stage__text--a { top: 20%; }
.map-stage__text--b,
.map-stage__text--c { bottom: 11%; opacity: 0; }
@media (max-aspect-ratio: 9/10) {
  .map-stage__text--a { top: 17%; }
  /* wyżej niż kółko „Skontaktuj się z nami” w prawym dolnym rogu */
  .map-stage__text--b, .map-stage__text--c { bottom: calc(19% + env(safe-area-inset-bottom)); }
}

/* pinezka Wrocławia: kropka + pulsujący pierścień (animacja po stronie karty graficznej) */
.map-pin { position: absolute; left: 0; top: 0; z-index: 1; width: 0; height: 0; opacity: 0; color: #f4f4f2; will-change: transform; }
.map-pin i {
  position: absolute;
  left: -6px;
  top: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .15);
}
.map-pin i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  animation: mapPulse 2.2s var(--ease-out) infinite;
}
.map-pin span {
  position: absolute;
  left: 14px;
  top: -9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}
@keyframes mapPulse {
  0% { transform: scale(1); opacity: .9; }
  100% { transform: scale(3.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .map-pin i::after { animation: none; } }

/* koniec sceny BLOG: ciemny gradient od dołu (płynne przejście do mapy) */
.blog-stage__fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, var(--bg-dark) 0%, var(--bg-dark) 22%, rgba(12, 12, 12, .55) 55%, rgba(12, 12, 12, 0) 85%);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

/* ==========================================================================
   Realizacje na stronie głównej: zwykły scroll strony w dół, prace przesuwa się w bok
   (palec, gładzik, przeciąganie myszą) albo szklanym uchwytem na końcu linii postępu
   ========================================================================== */
.work--home .work__sticky { position: relative; height: auto; min-height: 100vh; min-height: 100lvh; overflow: visible; }
.work--home .work__track {
  flex-shrink: 0; /* kontener przewijania w kolumnie flex nie może się zgniatać (ucinało podpisy) */
  width: auto;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain; /* gładzik na końcu paska nie cofa strony w historii */
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  will-change: auto;
  cursor: grab;
}
.work--home .work__track::-webkit-scrollbar { display: none; }
.work--home .work__track .card { scroll-snap-align: start; }
.work--home .work__track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.work--home .work__track.is-dragging .card { pointer-events: none; }

.work--home .work__progress {
  position: relative;
  margin-top: clamp(26px, 3.6vh, 40px);
  cursor: pointer;
  touch-action: none;
}
.work--home .work__progress::before { content: ''; position: absolute; left: 0; right: 0; top: -20px; bottom: -20px; } /* większy obszar kliknięcia */
.work--home .work__more { margin-top: clamp(30px, 4.4vh, 48px); pointer-events: auto; } /* widoczność: .reveal */

/* uchwyt: pełna, jasna pigułka z ciemnymi strzałkami — czytelny na czerni, bez blur/backdrop (lekki dla starszych komputerów).
   Hover/aktywny zmieniają tylko kolor i cień, nie geometrię. */
.work__thumb {
  position: absolute;
  left: 0;
  top: 50%;
  width: 68px;
  height: 36px;
  margin-top: -18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px;
  border-radius: 999px;
  color: #141414;
  background: rgba(244, 244, 242, .94);
  box-shadow: 0 0 0 5px rgba(10, 10, 10, .9), 0 6px 16px rgba(0, 0, 0, .45); /* czarny „wycinek” oddziela uchwyt od linii */
  will-change: transform;
  transition: background-color .2s, box-shadow .2s, opacity .4s;
  cursor: grab;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.work__thumb::before { content: ''; position: absolute; inset: -14px -10px; border-radius: inherit; } /* łatwiej trafić palcem */
.work__thumb svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.work__thumb:hover { background-color: #fff; }
.work__thumb.is-active { background-color: #fff; box-shadow: 0 0 0 5px rgba(10, 10, 10, .9), 0 3px 10px rgba(0, 0, 0, .5); }
.work__thumb.is-active { cursor: grabbing; }
.work__thumb:focus-visible { box-shadow: 0 0 0 5px rgba(10, 10, 10, .9), 0 0 0 7px rgba(255, 255, 255, .85); }
.work__progress.is-idle { cursor: default; }
.work__progress.is-idle .work__thumb { opacity: 0; pointer-events: none; }
@media (max-height: 560px) { .work--home .work__progress { margin-top: 18px; } .work--home .work__more { margin-top: 20px; } }
@media (prefers-reduced-motion: reduce) { .work__thumb { transition: none; } }

/* Vimeo: przed załadowaniem odtwarzacza — lokalny kadr, informacja i przycisk */
.vmodal__gate { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; background: #0c0c0c; }
.vmodal__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; filter: blur(2px); transform: scale(1.03); }
.vmodal__gate-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 520px; padding: 24px; text-align: center; }
.vmodal__play {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border: 0; border-radius: 999px; cursor: pointer;
  font: 500 15px/1 var(--font-sans, Inter, sans-serif); color: #111;
  background: rgba(244, 244, 242, .92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transition: background-color .25s;
}
.vmodal__play:hover { background: #fff; }
.vmodal__play:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.vmodal__play svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 600px) { .vmodal__gate-inner { gap: 12px; padding: 16px; } }

/* ==========================================================================
   Informacje prawne: stopka, informacja przy formularzu, strony PL/EN
   ========================================================================== */
.footer__inner { flex-wrap: wrap; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__legal a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .25s, color .25s; }
.footer__legal a:hover { color: var(--ink); border-bottom-color: currentColor; }
@media (max-width: 600px) { .footer__inner { flex-direction: column; text-align: center; } .footer__legal { justify-content: center; } }

.form__info { margin-top: 14px; font-size: 12.5px; line-height: 1.6; opacity: .7; max-width: 62ch; }
.form__info a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* treść tylko dla jednego języka (strony prawne) */
html[lang="en"] [data-lang-only="pl"],
html:not([lang="en"]) [data-lang-only="en"] { display: none !important; }

/* pola do uzupełnienia przed publikacją — celowo rzucają się w oczy */
mark.todo { background: #ffe58a; color: #3a2e00; padding: 0 .3em; border-radius: 4px; font-style: normal; }

.legal { padding: clamp(140px, 16vw, 200px) 0 clamp(64px, 8vw, 120px); }
.legal__wrap { max-width: calc(760px + var(--gutter) * 2); }
.legal__draft { margin: 0 0 40px; padding: 14px 18px; border-radius: 14px; background: #fff6d6; color: #4a3b00; font-size: 14px; line-height: 1.55; }
.legal .eyebrow { margin-bottom: 10px; }
.legal h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; }
.legal__meta { margin: 14px 0 0; font-size: 14px; color: var(--ink-soft); }
.legal h2 { margin: 48px 0 12px; font-family: var(--font-serif); font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; scroll-margin-top: 110px; }
.legal p, .legal li { font-size: 16px; line-height: 1.75; color: var(--ink); }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 8px; }
.legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.legal code { font-size: .9em; padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .06); }


/* telefon w menu — mały wiersz nad wyborem języka (nadpisuje duże linki menu) */
.mobile-menu a.mobile-menu__tel,
.menu-open .mobile-menu a.mobile-menu__tel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(40px + 56px + env(safe-area-inset-bottom));
  padding: 8px 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: .08em;
  white-space: nowrap;
  text-align: center;
  color: var(--ink-soft);
  transform: none;
  opacity: 0;
  transition: opacity .6s var(--ease-out) .25s, color .3s;
}
.mobile-menu a.mobile-menu__tel span { margin-right: 6px; opacity: .7; }
.mobile-menu a.mobile-menu__tel:hover { color: var(--ink); }
.menu-open .mobile-menu a.mobile-menu__tel { opacity: 1; }
@media (max-height: 600px) { .mobile-menu a.mobile-menu__tel { display: none; } } /* bardzo niski ekran: numer jest i tak w Kontakcie i w stopce */


/* ==========================================================================
   Menu na komputerze: panel z prawej strony z przezroczystego szkła (liquid glass),
   strona pod spodem zostaje widoczna. Na telefonie menu dalej zajmuje cały ekran.
   ========================================================================== */
@media (min-width: 761px) {
  /* Panel na całą wysokość przy prawej krawędzi: jedno płynne przejście przezroczystości od lewej
     (strona prawie nietknięta) do prawej (pod napisami ciemniej/jaśniej i rozmyte). Bez ramki i zaokrągleń,
     więc kółko menu (X) nic nie przecina. Animujemy tylko przezroczystość panelu — przesuwanie elementu
     z backdrop-filter tnie się w Safari; ruch mają same napisy. */
  .mobile-menu {
    --mm-tint: 244, 244, 242;
    inset: 0 0 0 auto;
    width: min(620px, 72vw);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 0 clamp(56px, 6vw, 96px) 0 0;
    color: var(--ink);
    /* bez koloru — samo mocne rozmycie, które narasta od lewej do prawej (maska) */
    background: none;
    -webkit-backdrop-filter: blur(34px);
    backdrop-filter: blur(34px);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 22%, #000 48%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 22%, #000 48%);
    transition: opacity .6s var(--ease-out), visibility 0s .6s;
  }
  .menu-open .mobile-menu { transition: opacity .6s var(--ease-out); }
  .mobile-menu ul { padding-bottom: 36px; }
  .mobile-menu a {
    /* niski ekran (np. telefon poziomo) — napisy mniejsze, żeby wszystkie linki zmieściły się w wysokości */
    font-size: clamp(26px, min(max(38px, 3.3vw), 6.4vh), 50px);
    text-align: right;
    opacity: 0;
    transform: translate3d(28px, 0, 0);
    /* zamykanie: szybko i równo, bez czekania na kolejne linki */
    transition: transform .45s var(--ease-out), opacity .3s var(--ease-out);
    transition-delay: 0s !important;
  }
  .menu-open .mobile-menu a { opacity: 1; transform: none; transition: transform .8s var(--ease-out), opacity .6s var(--ease-out); }
  .menu-open .mobile-menu li:nth-child(1) a { transition-delay: .06s !important; }
  .menu-open .mobile-menu li:nth-child(2) a { transition-delay: .1s !important; }
  .menu-open .mobile-menu li:nth-child(3) a { transition-delay: .14s !important; }
  .menu-open .mobile-menu li:nth-child(4) a { transition-delay: .18s !important; }
  .menu-open .mobile-menu li:nth-child(5) a { transition-delay: .22s !important; }
  .menu-open .mobile-menu li:nth-child(6) a { transition-delay: .26s !important; }
  .menu-open .mobile-menu li:nth-child(7) a { transition-delay: .3s !important; }
  /* bardzo niski ekran (telefon poziomo): ciaśniejsze linki i miejsce na przełącznik języka na dole panelu */
  @media (max-height: 520px) {
    .mobile-menu ul { padding-bottom: 96px; }
    .mobile-menu a { font-size: clamp(22px, 5.4vh, 30px); padding: 4px 0; }
  }
  .mobile-menu a.mobile-menu__tel,
  .menu-open .mobile-menu a.mobile-menu__tel { left: auto; right: clamp(56px, 6vw, 96px); text-align: right; transform: none; }
  .mobile-menu .mobile-lang { left: auto; right: clamp(56px, 6vw, 96px); transform: none; }

  /* ciemna wersja, gdy menu otwarte nad ciemną sekcją */
  .menu-dark .mobile-menu { --mm-tint: 14, 14, 14; color: #fff; }
  .menu-dark .mobile-menu a { color: #fff; text-shadow: 0 1px 18px rgba(0, 0, 0, .35); }
  .menu-dark .mobile-menu a.mobile-menu__tel { color: rgba(255, 255, 255, .72); }
  .menu-dark .mobile-menu a.mobile-menu__tel:hover { color: #fff; }
  .menu-dark .mobile-lang { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
  .menu-dark .mobile-lang button { color: #fff; }
  .menu-dark .mobile-lang button[aria-pressed="true"] { background: #fff; color: #111; }
}


/* ==========================================================================
   TRYB LEKKI (js/perf.js) — starsze / słabsze urządzenia.
   Włącza się sam, gdy strona wykryje wolne klatki przy przewijaniu (html.perf-1 / html.perf-2).
   Największy koszt to rozmycie tła za „szkłem” (backdrop-filter): przeliczane w każdej klatce przewijania.
   Zamiast niego — półprzezroczyste, mleczne (lub ciemne) tło o podobnym wyglądzie, lżejsze cienie.
   Zdjęcia, film i układ zostają bez zmian.
   ========================================================================== */
html[class*="perf-"] * ,
html[class*="perf-"] *::before,
html[class*="perf-"] *::after {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* jasne szkło → mleczny panel */
html[class*="perf-"] .nav__glass,
html[class*="perf-"] .back,
html[class*="perf-"] .fab,
html[class*="perf-"] .lang,
html[class*="perf-"] .nav-solo,
html[class*="perf-"] .glass-btn,
html[class*="perf-"] .faq__item {
  background: rgba(247, 247, 245, .86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 6px 18px -8px rgba(0, 0, 0, .28);
}
html[class*="perf-"] .fab-pop {
  background: rgba(247, 247, 245, .94);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 8px 20px -10px rgba(0, 0, 0, .35);
}

/* ciemne szkło → ciemny panel */
html[class*="perf-"] .nav--dark .nav__glass,
html[class*="perf-"] .nav-solo--dark,
html[class*="perf-"] .lang--dark,
html[class*="perf-"] .fab--dark,
html[class*="perf-"] .back--dark {
  background: rgba(30, 30, 30, .84);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 6px 18px -8px rgba(0, 0, 0, .6);
}
html[class*="perf-"] .fab-pop--dark {
  background: rgba(34, 34, 34, .94);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 8px 20px -10px rgba(0, 0, 0, .7);
}

/* przyciski „play” na kartach, kartka bloga, okno wideo, menu */
html[class*="perf-"] .play { background: rgba(255, 255, 255, .3); }
html[class*="perf-"] .blog-feature { background: rgba(32, 32, 32, .6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
html[class*="perf-"] .vmodal { background: rgba(8, 8, 8, .92); }
html[class*="perf-"] .vmodal__close { background: rgba(255, 255, 255, .2); }
html[class*="perf-"] .mobile-menu { background: rgba(244, 244, 242, .94); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .35); }
html[class*="perf-"].menu-dark .mobile-menu { background: rgba(24, 24, 24, .94); }
@media (min-width: 761px) {
  html[class*="perf-"] .mobile-menu { box-shadow: none; -webkit-mask-image: none; mask-image: none;
    background: linear-gradient(90deg, rgba(var(--mm-tint), 0) 0%, rgba(var(--mm-tint), .5) 30%, rgba(var(--mm-tint), .9) 70%, rgba(var(--mm-tint), .95) 100%); }
  html[class*="perf-"].menu-dark .mobile-menu { background: linear-gradient(90deg, rgba(var(--mm-tint), 0) 0%, rgba(var(--mm-tint), .5) 30%, rgba(var(--mm-tint), .9) 70%, rgba(var(--mm-tint), .95) 100%); }
}
html[class*="perf-"] .glb__btn { background: rgba(255, 255, 255, .14); }
html[class*="perf-"] .vmodal__poster { filter: none; }

/* połysk śledzący kursor na pasku — zbędny w trybie lekkim */
html[class*="perf-"] .nav__glass::after { display: none; }

/* poziom 2: bez paralaksy i ciężkich przejść */
html.perf-2 [data-parallax] { transform: none !important; }
html.perf-2 .card__img img { transition: none; }

/* kotwice w polityce (np. #web3forms z formularza) — nie chowają się pod paskiem nawigacji */
.legal [id] { scroll-margin-top: 110px; }

/* 404 — krótka, wyśrodkowana strona błędu (używa układu stron prawnych) */
.legal--404 { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; text-align: center; }
.legal--404 .display { margin-inline: auto; }
.legal--404 p { margin-inline: auto; max-width: 44ch; color: var(--ink-soft); }
.legal__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px !important; }
.legal__actions .btn { margin-top: 0; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.legal .btn { color: var(--bg); text-decoration: none; }
.legal .btn--ghost { color: var(--ink); }

/* ładowanie całego filmu: napis i pasek postępu na dole filmu, „Przewiń” chowa się, aż film będzie gotowy */
.hero__loader::after {
  content: attr(data-label); position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); white-space: nowrap;
  font-size: 11px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .4s;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .55); pointer-events: none;
}
html.hero-wait .hero__loader { height: 3px; background: rgba(255, 255, 255, .28); }
html.hero-wait .hero__loader i { background: #fff; }
html.hero-wait .hero__loader::after { opacity: .9; }
html.hero-wait .hero__scroll { opacity: 0 !important; }

/* Safari iOS 26: kolor pod paskami przeglądarki = tło strony — dopasowane do sekcji/filmu przy dolnej krawędzi ekranu */
html.edge-dark { background-color: var(--bg-dark, #0c0c0c); }
html.hero-edge { background-color: var(--hero-edge) !important; }

/* telefon: postęp wczytywania jako małe kółko w miejscu „Przewiń” (zamiast paska i napisu na dole) */
.hero__ring {
  position: absolute; left: 50%; bottom: max(64px, calc(env(safe-area-inset-bottom) + 52px)); z-index: 2;
  width: 26px; height: 26px; transform: translateX(-50%); opacity: 0; pointer-events: none; transition: opacity .5s;
}
.hero__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.hero__ring circle { fill: none; stroke-width: 1.6; }
.hero__ring-bg { stroke: rgba(255, 255, 255, .28); }
.hero__ring-fg { stroke: #fff; stroke-linecap: round; stroke-dasharray: 94.25; stroke-dashoffset: calc(94.25 * (1 - var(--p, 0))); transition: stroke-dashoffset .25s linear; }
@media (pointer: coarse) {
  html.hero-wait .hero__ring { opacity: .8; }
  html.hero-wait .hero__loader { background: transparent; }
  html.hero-wait .hero__loader i { background: transparent; }
  /* napis „Wczytywanie strony NN%” zostaje — mały, tuż nad kółkiem */
  html.hero-wait .hero__loader::after { opacity: .85; bottom: max(104px, calc(env(safe-area-inset-bottom) + 92px)); font-size: 10px; letter-spacing: .24em; }
}

/* „Przewiń” wraca 0,3 s po wczytaniu strony i wpływa miękko */
html.hero-hint-hold .hero__scroll { opacity: 0 !important; }
html.hero-hint-fade .hero__scroll { transition: opacity .6s ease; }

/* wczytywanie: na ekranach dotykowych (paski przewijania są nakładkowe, więc nic się nie przesuwa) strona jest całkiem zablokowana */
@media (pointer: coarse) { html.hero-wait, html.hero-wait body { overflow: hidden; overscroll-behavior: none; touch-action: none; } }

/* osobna strona realizacji / wpisu: treść zapisana w pliku (dla wyszukiwarek) — skrypt zaraz podmienia ją na pełny układ,
   więc do tego czasu jej nie pokazujemy (bez JavaScriptu jest widoczna normalnie) */
html.js .ssr { visibility: hidden; }

/* tylko dla czytników ekranu (niewidoczne na ekranie) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* formularz: krótki napis przy błędnym polu (nie tylko czerwona ramka) */
.field__err { position: absolute; top: 9px; right: 18px; font-size: 12px; font-style: normal; line-height: 1.2; color: #b3261e; pointer-events: none; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #b3261e; }

/* okno filmu: informacja, że odtwarzacz to Vimeo (zewnętrzny serwis) */
.vmodal__src { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .72); text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }

/* ==========================================================================
   „Zapytaj o ofertę” — ciemny pas ze zdjęciem (przyciemnione, lekko rozmyte), szklana karta z pytaniami krok po kroku
   ========================================================================== */
.offer { --of-fade: clamp(70px, 9vw, 150px); position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(96px, 14vw, 180px); background: var(--bg-dark); color: var(--ink-inv); }
/* bardzo łagodne przejście: jasne tło strony wygasa w ciemny pas u góry, a u dołu wraca do jasnego (FAQ) */
.offer::before, .offer::after { content: ""; position: absolute; left: 0; right: 0; height: var(--of-fade); z-index: 0; pointer-events: none; }
.offer::before { top: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(244, 244, 242, .8) 16%, rgba(244, 244, 242, .5) 38%, rgba(244, 244, 242, .22) 62%, rgba(244, 244, 242, .06) 84%, rgba(244, 244, 242, 0) 100%); }
.offer::after { bottom: 0; background: linear-gradient(0deg, var(--bg) 0%, rgba(244, 244, 242, .8) 16%, rgba(244, 244, 242, .5) 38%, rgba(244, 244, 242, .22) 62%, rgba(244, 244, 242, .06) 84%, rgba(244, 244, 242, 0) 100%); }
.offer__zone { position: absolute; left: 0; right: 0; top: calc(var(--of-fade) * .7); bottom: calc(var(--of-fade) * .7); background: transparent !important; visibility: hidden; pointer-events: none; }
.offer__inner { position: relative; z-index: 1; }
.offer__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.offer__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 28% 62%; }
.offer__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 12, 12, .9) 0%, rgba(12, 12, 12, .52) 30%, rgba(12, 12, 12, .58) 70%, rgba(12, 12, 12, .92) 100%),
    radial-gradient(70% 60% at 50% 50%, rgba(12, 12, 12, .35), transparent 70%);
}
.offer__inner { max-width: calc(820px + var(--gutter) * 2); text-align: center; }
.offer .eyebrow { color: rgba(244, 244, 242, .6); }
.offer .display { margin-inline: auto; max-width: 14ch; }
.offer__lead { margin: 24px auto 0; max-width: 40ch; color: rgba(244, 244, 242, .78); }
.offer__start { margin-top: clamp(32px, 4vw, 44px); }
.offer__start[hidden] { display: none; }
html:not(.js) .offer__start { display: none; } /* bez JavaScriptu formularz jest widoczny od razu */
.offer__done:focus { outline: none; }

/* karta (szkło) — tryb lekki bez rozmycia tła */
.offer__card {
  position: relative; display: grid; gap: 10px; margin-top: clamp(36px, 5vw, 56px); padding: clamp(18px, 3.4vw, 40px);
  text-align: left; border-radius: 32px;
  background: linear-gradient(180deg, rgba(30, 30, 30, .62), rgba(16, 16, 16, .5));
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px -30px rgba(0, 0, 0, .7);
}
.perf-1 .offer__card, .perf-2 .offer__card { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(18, 18, 18, .9); }
.js .offer__card:not(.is-open) { display: none; }
.js .offer__card .ostep:not(.is-shown) { display: none; }
.offer__card .ostep.is-new { animation: ostepIn .55s var(--ease-out) both; }
@keyframes ostepIn { from { opacity: 0; } to { opacity: 1; } } /* tylko przezroczystość — bez ruchu wewnątrz szkła (Safari) */

.ostep { margin: 0; padding: 18px 0 20px; border: 0; border-top: 1px solid rgba(255, 255, 255, .09); min-width: 0; }
.ostep:first-of-type { border-top: 0; padding-top: 4px; }
.ostep legend { display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 16px; font-family: var(--font-serif); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; }
.ostep__n {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font: 500 12px/1 var(--font-sans); color: rgba(244, 244, 242, .75); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}

/* wybory (prawdziwe pola radio/checkbox, wyglądają jak pigułki) */
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt { position: relative; display: inline-flex; cursor: pointer; }
.opt[hidden] { display: none; }
.opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opt span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 11px 20px; border-radius: 999px;
  font-size: 15px; line-height: 1.25; color: var(--ink-inv);
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  transition: background .3s, color .3s, box-shadow .3s; /* tylko kolor — bez animowanego ruchu */
}
.opt:hover span { background: rgba(255, 255, 255, .14); }
.opt input:checked + span { background: var(--ink-inv); color: var(--ink); box-shadow: none; }
.opt input:focus-visible + span { outline: 2px solid var(--ink-inv); outline-offset: 3px; }
.opt input[type="checkbox"] + span::before { content: "+"; margin-right: 8px; opacity: .6; font-weight: 500; }
.opt input[type="checkbox"]:checked + span::before { content: "✓"; opacity: 1; }

.offer__next {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; height: 44px; padding: 0 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink-inv); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
  transition: background .3s;
}
.offer__next:hover { background: rgba(255, 255, 255, .1); }
.offer__next:focus-visible { outline: 2px solid var(--ink-inv); outline-offset: 3px; }
.ostep__extra { margin-top: 14px; }

/* pola na ciemnym szkle */
.offer .field input, .offer .field textarea {
  color: var(--ink-inv); background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color-scheme: dark;
}
.offer .field span { color: rgba(244, 244, 242, .58); }
.offer .field input:focus, .offer .field textarea:focus { background: rgba(255, 255, 255, .1); border-color: rgba(244, 244, 242, .8); box-shadow: 0 0 0 4px rgba(255, 255, 255, .06); }
.offer .field.is-invalid input, .offer .field.is-invalid textarea { border-color: #ff8f85; }
.offer .field__err { color: #ff9d94; }
.offer .form__row { gap: 12px; }
/* odstęp tylko między polami POD SOBĄ (nie w wierszu Imię | E-mail — tam E-mail zjeżdżał 12 px niżej) */
.ostep[data-step="kontakt"] > .field + .field, .ostep[data-step="kontakt"] > .form__row + .field { margin-top: 12px; }
.offer__date { grid-template-columns: minmax(0, 360px); }
.offer__date .field[hidden] { display: none; }
.ocheck { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; color: rgba(244, 244, 242, .8); cursor: pointer; }
.ocheck input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink-inv); }
.offer__send { margin-top: 18px; justify-self: start; }
.offer .form__note { text-align: left; color: rgba(244, 244, 242, .75); }
.offer .form__note[data-kind="error"] { color: #ff9d94; }
.offer .form__info { color: rgba(244, 244, 242, .7); }
.offer .form__info a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.offer__done { display: grid; gap: 8px; padding: 28px 8px; text-align: center; }
.offer__done strong { font-family: var(--font-serif); font-weight: 400; font-size: clamp(30px, 4vw, 44px); }
.offer__done span { color: rgba(244, 244, 242, .78); }

@media (max-width: 600px) {
  .offer__card { border-radius: 26px; }
  .opt span { min-height: 44px; padding: 10px 16px; font-size: 14.5px; }
  .offer__send { justify-self: stretch; }
  .offer__date { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .offer__card .ostep.is-new { animation: none; } }

/* kalendarz terminu w formularzu oferty */
.cal__native { width: 100%; padding: 14px 16px; font: inherit; font-size: 16px; color: var(--ink-inv); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; color-scheme: dark; }
.cal__box { padding: 14px 14px 12px; border-radius: 24px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.cal.is-invalid .cal__box { box-shadow: inset 0 0 0 1px #ff8f85; }
.cal__head { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; margin-bottom: 8px; }
.cal__title { justify-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; border-radius: 999px;
  font-family: var(--font-serif); font-weight: 400; font-size: 22px; text-align: center; letter-spacing: .01em; color: var(--ink-inv);
  background: none; border: 0; cursor: pointer; transition: background .25s; }
/* mała strzałka: nazwa miesiąca to przycisk — otwiera wybór miesiąca i roku */
.cal__title::after { content: ""; width: 7px; height: 7px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; transition: transform .25s; }
.cal__title[aria-expanded="true"]::after { margin-top: 3px; transform: rotate(-135deg); }
.cal__title:hover { background: rgba(255, 255, 255, .1); }
.cal__title:focus-visible, .cal__month:focus-visible { outline: 2px solid var(--ink-inv); outline-offset: 2px; }
/* wybór miesiąca: 12 miesięcy w 3 kolumnach (wybrany jak wybrany dzień) */
.cal__months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px 2px 2px; }
.cal__months[hidden], .cal__grid[hidden], .cal__dow[hidden] { display: none; }
.cal__month { min-height: 48px; padding: 0 6px; border-radius: 999px; font: inherit; font-size: 15px; color: var(--ink-inv); background: rgba(255, 255, 255, .04); border: 0; cursor: pointer; transition: background .2s, color .2s; }
.cal__month:hover:not(:disabled) { background: rgba(255, 255, 255, .14); }
.cal__month.is-cur { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.cal__month.is-sel { background: var(--ink-inv); color: var(--ink); box-shadow: none; font-weight: 500; }
.cal__month:disabled { opacity: .26; cursor: default; }
.cal__nav { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink-inv); transition: background .25s, opacity .25s; }
.cal__nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cal__nav:hover:not(:disabled) { background: rgba(255, 255, 255, .12); }
.cal__nav:disabled { opacity: .25; cursor: default; }
.cal__nav:focus-visible, .cal__day:focus-visible { outline: 2px solid var(--ink-inv); outline-offset: 2px; }
.cal__dow, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal__dow span { padding: 4px 0 6px; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; text-align: center; color: rgba(244, 244, 242, .5); }
.cal__day { display: grid; place-items: center; aspect-ratio: 1; min-height: 38px; border-radius: 50%; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--ink-inv); transition: background .2s, color .2s; }
.cal__day:hover:not(:disabled) { background: rgba(255, 255, 255, .14); }
.cal__day:disabled { opacity: .26; cursor: default; }
.cal__day.is-today { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.cal__day.is-sel { background: var(--ink-inv); color: var(--ink); box-shadow: none; font-weight: 500; }
.cal__picked { min-height: 1.4em; margin: 10px 4px 0; font-size: 14px; text-align: center; color: rgba(244, 244, 242, .8); }
.cal__err { min-height: 0; margin: 8px 4px 0; font-size: 13px; color: #ff9d94; }
.cal__err:empty { display: none; }

/* sekcja, do której przeskakuje link #… (fokus dla klawiatury) — bez ramki */
section[tabindex="-1"]:focus { outline: none; }

/* błąd pobierania danych portfolio (nie „pusta galeria”) + przycisk ponowienia */
.load-err { display: grid; justify-items: center; gap: 16px; padding: 10vh 16px; text-align: center; color: inherit; }
.load-err p { margin: 0; opacity: .75; }

/* „Potrzebujesz odpowiedzi jak najszybciej? Zadzwoń do nas: …” — pod każdym „odezwiemy się w najbliższym czasie”, mniejszym pismem */
.urgent { font-size: 13.5px; line-height: 1.5; opacity: .8; }
.urgent a { color: inherit; font-weight: 500; white-space: nowrap; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.urgent a:hover { opacity: .7; }
.contact__urgent { margin: 12px auto 0; color: var(--ink-soft); opacity: 1; }
small.urgent { display: block; margin-top: 6px; }
.faq__a p:not(.urgent) { padding-bottom: 8px; }
.faq__a p.urgent { font-size: 13.5px; opacity: 0; }
.faq__item.is-open .faq__a p.urgent { opacity: .8; }
.offer__done small.urgent { margin-top: 4px; color: rgba(244, 244, 242, .78); opacity: 1; }

/* stopka: logo z nazwą, strony, kontakt, sprawy prawne + dolny pasek (z nowego projektu graficznego) */
.footer { padding: clamp(48px, 6vw, 72px) 0 calc(28px + env(safe-area-inset-bottom)); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; font-size: 14px; }
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__brand p { display: grid; gap: 2px; line-height: 1.3; }
.footer__brand strong { font-family: var(--font-serif); font-weight: 400; font-size: 24px; color: var(--ink); }
.footer__brand span { font-size: 13px; color: var(--ink-soft); }
.footer__col,
.footer__legal { display: grid; align-content: start; gap: 8px; }
.footer__col a { width: max-content; max-width: 100%; color: var(--ink-soft); transition: color .25s; }
.footer__col a:hover { color: var(--ink); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: clamp(36px, 5vw, 56px); padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); }
@media (max-width: 1000px) {
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* stara reguła stopki środkowała linki prawne na telefonie (justify-content: center) — w nowym układzie kolumny są do lewej */
@media (max-width: 600px) { .footer__legal { justify-content: start; } }
/* ==========================================================================
   Pasek nawigacji z nowego projektu — TYLKO komputer (≥ 761 px); telefon bez zmian (logo + menu, globus, kółko menu)
   Realizacje · Oferta · Blog | logo | O nas · EN/PL · „Sprawdź termin” (wypełniony przycisk). Hover = tylko kolor (Safari).
   ========================================================================== */
@media (min-width: 761px) {
  .nav__glass { width: min(900px, 100%); }
  .nav__link { padding: 0 14px; }
  /* EN/PL pośrodku między „O nas” a przyciskiem: mniejsza czcionka i odstęp liter (też za ostatnią literą) przesuwały napis w prawo;
     2px u góry = napis 1px niżej — mniejsze wersaliki bez tego wyglądały na uniesione względem „O nas” */
  .nav__lang { padding: 2px 17.85px 0 19.15px; position: relative; left: -5.15px; font-size: 12px; letter-spacing: .1em; opacity: .75; } /* napis dokładnie pośrodku „pigułki” przy najechaniu; left przywraca jego dawne miejsce w pasku */
  .nav__lang:hover { opacity: 1; }
  .nav__link--cta { margin-left: 4px; padding: 0 20px; background: var(--ink); color: var(--bg); }
  .nav__link--cta:hover { background: #2e2e2e; }
  .nav--dark .nav__link--cta { background: var(--ink-inv); color: var(--ink); }
  .nav--dark .nav__link--cta:hover { background: #ffffff; }
  .nav__link--cta.is-active::after { display: none; }
  /* wszystkie linki i wybór języka są w pasku — osobne kółka (globus, menu) na komputerze niepotrzebne */
  .lang { display: none; }
  .chrome-up .nav-solo { opacity: 0; pointer-events: none; }
}
@media (min-width: 761px) and (max-width: 1040px) {
  .nav__link { padding: 0 10px; font-size: 13px; }
  .nav__link--cta { padding: 0 14px; }
  .nav__lang { padding: 2px 11.85px 0 13.15px; left: -3.15px; }
  .nav__logo { margin-inline: 10px; width: 48px; }
}
/* karty „Wybrane historie” (strona główna, komputer): typ jako etykieta w rogu zdjęcia, pod spodem tytuł i opis;
   telefon bez zmian (kółko ▶ i dopisek „· Film” / „· Foto”) */
.badge { display: none; }
@media (min-width: 761px) {
  .card .play, .card__type { display: none; }
  .card .badge { display: block; }
  .card__meta > span { font-size: 14px; color: rgba(244, 244, 242, .7); }
}
.card__type { font: inherit; color: inherit; }
.card .badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 1;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(12, 12, 12, .55);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
  pointer-events: none;
}
.card .badge i { font-style: normal; font-size: 9px; }

/* Kontakt (nowy projekt): na komputerze dwie kolumny — tekst po lewej, formularz po prawej, linki pod spodem */
.contact__where { margin-top: 18px; font-size: 15px; color: var(--ink-soft); }
@media (min-width: 900px) {
  .contact__inner { max-width: var(--maxw); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(48px, 6vw, 96px); align-items: start; text-align: left; }
  .contact .display { margin-inline: 0; max-width: 11ch; }
  .contact .lead { margin: 28px 0 0; }
  .contact__urgent { margin: 16px 0 0; }
  .contact .form { margin-top: 0; }
  .contact .form .btn { justify-self: start; }
  .contact .form__note { text-align: left; }
  .contact__links { grid-column: 1 / -1; justify-content: flex-start; padding-top: 32px; border-top: 1px solid var(--line); }
}

/* ==========================================================================
   FAQ — prosta lista na jasnym tle (bez szkła i zdjęcia): pytanie w Cormorant, cienka linia między pytaniami.
   Szkło zostaje znakiem rozpoznawczym paska nawigacji.
   ========================================================================== */
.faq .faq__list { gap: 0; border-top: 1px solid var(--line); }
.faq .faq__list .faq__item {
  border-radius: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  border-bottom: 1px solid var(--line);
}
.faq .faq__item::before { display: none; }
.faq .faq__list .faq__item:hover,
.faq .faq__list .faq__item.is-open { background: none; }
.faq .faq__q {
  min-height: 76px;
  padding: 18px 0;
  border-radius: 0;
  font-family: var(--font-serif);
  font-size: clamp(21px, 2.1vw, 26px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.25;
  transition: opacity .3s;
}
.faq .faq__q:hover { opacity: .65; }
.faq .faq__q:focus-visible { outline-offset: 2px; border-radius: 4px; }
.faq .faq__icon { width: 36px; height: 36px; background: none; box-shadow: none; }
.faq .faq__item.is-open .faq__icon { background: none; color: var(--ink); }
.faq .faq__a p { padding: 0 56px 26px 0; font-size: 16px; }
@media (max-width: 520px) {
  .faq .faq__q { min-height: 64px; padding: 14px 0; font-size: 20px; }
  .faq .faq__a p { padding: 0 8px 22px 0; }
}

/* menu na telefonie: „Sprawdź termin” jako wyróżniony przycisk (zamiast Bloga; blog jest w stopce) */
.mobile-menu li:has(.mobile-menu__cta) { overflow: visible; padding: 10px 0; }
.mobile-menu .mobile-menu__cta {
  display: table;
  margin-inline: auto;
  padding: 10px 30px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: clamp(26px, 7.6vw, 34px);
}

/* Wpis bloga: śródtytuły-pytania (np. „7 pytań…”). Pytanie w Cormorant, odpowiedź tuż pod nim;
   numer na komputerze wisi duży na lewym marginesie kolumny tekstu, na telefonie stoi mały nad pytaniem */
.post__q {
  position: relative;
  margin-top: 1.2em;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(25px, 2.3vw, 31px);
  line-height: 1.2;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.post__n { display: block; margin-bottom: .2em; font-size: .72em; font-weight: 400; color: var(--ink-soft); font-variant-numeric: lining-nums; } /* cyfry nautyczne Cormorant: „1” wyglądała jak „I” */
.post__q + p { margin-top: -.55em; }
@media (min-width: 1100px) {
  .post__n {
    position: absolute;
    right: 100%;
    top: 0;
    margin: 0 clamp(28px, 3vw, 48px) 0 0;
    font-size: 2.4em;
    line-height: .82;
    color: rgba(17, 17, 17, .22);
  }
}

/* ==========================================================================
   Wpis bloga — większy, „magazynowy” układ: szerszy tytuł, większy tekst,
   pierwszy akapit jako wstęp w Cormorant (jedyny mocny akcent), większe pytania i „Następny wpis”
   ========================================================================== */
.post__head { max-width: calc(1040px + var(--gutter) * 2); text-align: center; } /* w jednej osi z kolumną tekstu */
.post__head .post-card__meta { justify-content: center; font-size: 14px; }
.post__title { margin-top: 26px; font-size: clamp(46px, 7.2vw, 108px); line-height: .98; text-wrap: balance; }
.post__lead { margin: 30px auto 0; max-width: 34em; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.55; }
.post__hero { margin-top: clamp(56px, 7vw, 96px); border-radius: clamp(20px, 2.4vw, 32px); }
.post__hero img { max-height: 86vh; }
.post__body {
  max-width: calc(740px + var(--gutter) * 2);
  padding-block: clamp(64px, 8vw, 120px);
  gap: 1.3em;
  font-size: clamp(18px, 1.45vw, 20.5px);
  line-height: 1.78;
}
/* wstęp: pierwszy akapit większy, w Cormorant — wprowadza w tekst zamiast od razu „szarej ściany” */
.post__body > p:first-child {
  margin-bottom: .6em;
  font-family: var(--font-serif);
  font-size: clamp(25px, 2.25vw, 31px);
  line-height: 1.42;
  letter-spacing: -.005em;
  text-wrap: pretty;
}
.post__q { margin-top: 1.5em; font-size: clamp(28px, 2.7vw, 38px); line-height: 1.16; }
.post__q + p { margin-top: -.45em; }
.post__next { max-width: calc(1040px + var(--gutter) * 2); padding-top: 48px; }
.post__next a { margin-top: 10px; font-size: clamp(32px, 4.2vw, 58px); line-height: 1.08; text-wrap: balance; }
@media (min-width: 1100px) {
  .post__n { font-size: 2.2em; }
}
/* wstęp szerszy niż kolumna tekstu (komputer) — wychodzi po równo w obie strony */
@media (min-width: 1100px) {
  .post__body > p:first-child { margin-inline: -110px; }
}

/* Zapasowe listy linków (build.py) — dla wyszukiwarek i botów AI bez JavaScriptu.
   Z JavaScriptem ukryte od pierwszej klatki (perf.js dodaje .has-js); skrypty rysują pełny układ */
.has-js .ssr-list { display: none; }
.ssr-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 18px; }
.ssr-list a { font-family: var(--font-serif); font-size: 22px; }
.ssr-list p { margin: 2px 0 0; color: var(--ink-soft); font-size: 15px; }
.ssr-list--photos { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.ssr-list--photos img { width: 100%; height: auto; display: block; }

/* Podziękowanie po wysłaniu formularza kontaktowego: zajmuje miejsce formularza, duży napis i znaczek „ptaszek” */
.form__done { display: grid; justify-items: center; gap: 10px; padding: clamp(36px, 6vw, 64px) 12px; text-align: center; }
.form__done:focus { outline: none; }
.form__tick { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 6px; border-radius: 50%; border: 1px solid var(--ink); color: var(--ink); }
.form__tick path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: tick-draw .7s .15s cubic-bezier(.16, 1, .3, 1) forwards; }
@keyframes tick-draw { to { stroke-dashoffset: 0; } }
.form__done strong { font-family: var(--font-serif); font-weight: 400; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.1; }
.form__done > span:not(.form__tick) { max-width: 30ch; color: var(--ink-soft); font-size: 17px; }
.form__done small.urgent { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .form__tick path { animation: none; stroke-dashoffset: 0; } }

/* ==========================================================================
   Wpis jak album (2026-11): okładka z tytułem obok zdjęcia, zdjęcia między akapitami,
   spis treści, rada, cytat, lista do odhaczenia i zaproszenie na końcu.
   Lekko dla starszych komputerów: bez rozmycia tła, bez przesuwania i skalowania przy animacji.
   ========================================================================== */
.post { --sage: #56634f; --paper: #fafaf8; --tint: #e9e9e4; }
.post .container { margin-inline: auto; }

/* okładka */
.pcover {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: clamp(110px, 12vw, 150px); padding: 0; max-width: calc(1320px + var(--gutter) * 2);
  padding-inline: var(--gutter);
}
.pcover__text {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(32px, 5vw, 80px); background: var(--paper);
  border: 1px solid var(--line); border-right: 0; border-radius: 28px 0 0 28px;
}
.pcover__cat { font-size: 15px; color: var(--sage); }
.pcover__title { margin-top: 18px; font-family: var(--font-serif); font-weight: 400; font-size: clamp(44px, 5.2vw, 84px); line-height: 1; letter-spacing: -.01em; text-wrap: balance; }
.pcover__sub { margin-top: 18px; font-family: var(--font-serif); font-style: italic; font-size: clamp(22px, 2vw, 30px); line-height: 1.25; color: var(--ink-soft); text-wrap: balance; }
.pcover__credit { grid-column: 2; margin-top: 10px; padding-left: 4px; font-size: 11px; letter-spacing: 0.02em; color: var(--ink-soft); }
.pcover__credit a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pcover__lead { margin-top: 22px; max-width: 34em; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.byline { display: flex; align-items: center; gap: 14px; margin-top: clamp(28px, 4vw, 56px); font-size: 15px; line-height: 1.35; }
.byline img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.byline strong { display: block; font-weight: 600; }
.byline span span { color: var(--ink-soft); }
.pcover__img { margin: 0; min-height: min(78vh, 760px); border-radius: 0 28px 28px 0; overflow: hidden; background: #e4e4e1; }
.pcover__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .pcover { grid-template-columns: 1fr; margin-top: 96px; }
  .pcover__img { order: -1; min-height: 0; aspect-ratio: 4 / 3; border-radius: 22px; }
  .pcover__text { border: 1px solid var(--line); border-radius: 22px; padding: 26px 22px 30px; }
  .pcover__credit { grid-column: 1; order: -1; margin: 0; padding: 8px 2px 14px; }
  .pcover__title { font-size: clamp(38px, 10vw, 54px); }
}

/* tekst + spis treści */
.post__wrap { max-width: calc(1320px + var(--gutter) * 2); padding-block: clamp(56px, 7vw, 110px); }
.post__wrap .post__body { max-width: 740px; margin-inline: auto; padding: 0; grid-template-columns: minmax(0, 1fr); }
.post__q { scroll-margin-top: 110px; }
.ptoc { margin-bottom: 36px; }
.ptoc details { background: var(--tint); border-radius: 16px; }
.ptoc summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; }
.ptoc summary::-webkit-details-marker { display: none; }
.ptoc__count { font-weight: 400; color: var(--ink-soft); }
.ptoc ol { list-style: none; margin: 0; padding: 0 20px 18px; display: grid; gap: 4px; font-size: 15px; }
.ptoc a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid transparent; color: var(--ink-soft); line-height: 1.35; }
.ptoc a span { color: var(--sage); }
.ptoc a:hover, .ptoc a[aria-current] { color: var(--ink); }
.ptoc a[aria-current] { border-left-color: var(--ink); font-weight: 600; }
@media (min-width: 1360px) {
  .post__wrap.has-toc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 740px) minmax(0, 1fr); column-gap: 40px; }
  .post__wrap.has-toc .post__body { grid-column: 2; grid-row: 1; margin: 0; }
  .ptoc { grid-column: 1; grid-row: 1; align-self: start; position: sticky; top: 120px; max-width: 250px; margin: 0; }
  .ptoc details { background: none; border-radius: 0; }
  .ptoc summary { padding: 0 0 12px 14px; cursor: default; }
  .ptoc summary .ptoc__count { display: none; }
  .ptoc ol { padding: 0; }
}

/* numer pytania: szałwia, duży na marginesie (komputer), mały w linii (telefon) */
.post__n { color: var(--sage); font-style: italic; }
@media (min-width: 1100px) { .post__n { color: var(--sage); opacity: .9; } }

/* zdjęcia w treści */
.pfig { margin: 1.2em 0; }
.pfig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pfig > img, .pfig .pfilm { aspect-ratio: var(--r, 3 / 2); border-radius: 18px; overflow: hidden; background: #e4e4e1; }
.pfig figcaption { margin-top: 12px; font-family: var(--font-serif); font-style: italic; font-size: 19px; line-height: 1.35; color: var(--ink-soft); }
.pfig--wide { position: relative; z-index: 2; width: min(calc(100vw - var(--gutter) * 2 - 16px), 1320px); margin-left: 50%; transform: translateX(-50%); }
.pfig--wide figcaption { padding-inline: 4px; }
.pfig__two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.2vw, 16px); }
.pfig__two > div { aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: #e4e4e1; }
@media (min-width: 1100px) {
  .pfig--pair, .pfig--film { margin-inline: -110px; }
  .pfig:not(.pfig--wide):not(.pfig--pair):not(.pfig--film) { margin-inline: -60px; }
}
.pfilm { position: relative; display: block; }
.pfilm__play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  display: grid; place-items: center; border-radius: 50%; background: rgba(250, 250, 248, .92); color: var(--ink);
  transition: background-color .3s;
}
.pfilm__play svg { width: 26px; height: 26px; margin-left: 4px; fill: currentColor; }
.pfilm:hover .pfilm__play, .pfilm:focus-visible .pfilm__play { background: #fff; }
.pfade-on .pfade { opacity: 0; transition: opacity 1s ease; }
.pfade-on .pfade.in { opacity: 1; }

/* rada i cytat */
.ptip { margin: 1.2em 0; padding: clamp(24px, 3vw, 36px); background: var(--tint); border-radius: 22px; }
.ptip__who { display: flex; align-items: center; gap: 14px; font-size: 16px; }
.ptip__who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.ptip__text { margin-top: 16px; font-family: var(--font-serif); font-size: clamp(23px, 2vw, 28px); line-height: 1.38; }
.pquote { margin: 1.4em 0; padding-left: clamp(20px, 3vw, 36px); border-left: 2px solid var(--sage); }
.pquote p { font-family: var(--font-serif); font-style: italic; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.2; text-wrap: balance; }
@media (min-width: 1100px) { .pquote { margin-inline: -60px 0; } }

/* lista do odhaczenia */
.pcheck { margin: 1.2em 0; padding: clamp(24px, 3vw, 40px); background: var(--paper); border: 1px solid var(--line); border-radius: 22px; }
.pcheck h3 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; }
.pcheck ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; font-size: 17px; line-height: 1.45; }
.pcheck li { position: relative; padding-left: 36px; }
.pcheck li::before { content: ""; position: absolute; left: 0; top: .1em; width: 20px; height: 20px; border: 1.5px solid var(--sage); border-radius: 5px; }

/* koniec wpisu */
.pend { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; max-width: calc(1320px + var(--gutter) * 2); padding-bottom: clamp(80px, 9vw, 140px); }
.pend__cta { padding: clamp(28px, 4vw, 56px); background: #1b1b19; color: var(--ink-inv); border-radius: 26px; }
.pend__cta h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 50px); line-height: 1.08; text-wrap: balance; }
.pend__cta p { margin-top: 14px; color: rgba(244, 244, 242, .72); font-size: 16px; }
.pend__btn { display: inline-block; margin-top: 26px; padding: 15px 28px; border-radius: 999px; background: var(--ink-inv); color: var(--ink); font-weight: 600; font-size: 15px; transition: background-color .3s; }
.pend__btn:hover { background: #fff; }
.pend__btns { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.pend__btn--ghost { background: transparent; color: var(--ink-inv); box-shadow: inset 0 0 0 1px rgba(244, 244, 242, .38); font-weight: 500; padding: 15px 24px; }
.pend__btn--ghost:hover { background: rgba(244, 244, 242, .12); }
.pend__next { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 22px; align-items: center; align-self: center; }
.pend__thumb { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #e4e4e1; }
.pend__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pend__label { display: block; font-size: 15px; color: var(--ink-soft); }
.pend__next strong { display: block; margin-top: 6px; font-family: var(--font-serif); font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; }
.pend__next:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (max-width: 900px) {
  .pend { grid-template-columns: 1fr; }
  .pend__next { grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
}
@media print {
  .nav, .footer, .ptoc, .pend, .pfig, .mobile-menu { display: none !important; }
}
@media (min-width: 1100px) {
  .post__wrap.has-toc .post__body > p:first-child { margin-inline: 0; }
  .post__wrap.has-toc .pfig--pair, .post__wrap.has-toc .pfig--film { margin-inline: -40px; }
}
/* Spis treści z boku (szerokie ekrany): przy samej lewej krawędzi, a zdjęcia i film zostają na środku —
   wychodzą poza tekst tylko o tyle, ile jest wolnego miejsca obok spisu, więc nic na siebie nie nachodzi */
@media (min-width: 1100px) {
  .post__wrap.has-toc { --ext: 0px; }
  .post__wrap.has-toc .pfig--wide { width: auto; margin-left: 0; transform: none; }
  .post__wrap.has-toc .pfig--pair, .post__wrap.has-toc .pfig--film, .post__wrap.has-toc .pfig--wide,
  .post__wrap.has-toc .pfig:not(.pfig--wide):not(.pfig--pair):not(.pfig--film) { margin-inline: calc(var(--ext) * -1); }
  .post__wrap.has-toc .pquote { margin-inline: 0; }
}
@media (min-width: 1360px) {
  .post__wrap.has-toc { column-gap: 32px; --ext: max(0px, min(130px, (100vw - 740px) / 2 - 290px)); }
  .post__wrap.has-toc .ptoc { justify-self: start; max-width: 200px; }
}
/* spis treści przy samej lewej krawędzi okna (nie wyśrodkowanej ramki) — na szerokich ekranach nie wchodzi pod zdjęcia */
@media (min-width: 1360px) {
  .post__wrap.has-toc { max-width: none; }
}
.pfig__credit { display: block; margin-top: 6px; font-family: var(--font-sans); font-style: normal; font-size: 11px; letter-spacing: 0.02em; opacity: 0.85; }
/* .pfig__soon — przyszły odnośnik (realizacja jeszcze nieopublikowana): wygląda jak odnośnik, ale nie prowadzi nigdzie */
.pfig figcaption a, .pfig__soon { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Realizacja filmowa bez dużego zdjęcia u góry: okładka filmu na jasnym tle, przycisk odtwarzania na środku */
.project__film { padding: clamp(40px, 6vw, 88px) var(--gutter) 0; }
.project__filmlink { position: relative; display: block; max-width: 1320px; margin: 0 auto; border-radius: clamp(18px, 2.2vw, 28px); overflow: hidden; background: #e4e4e1; }
.project__filmlink img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project__filmlink .pfilm__play {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px;
  display: grid; place-items: center; border-radius: 50%; background: rgba(250, 250, 248, .92); color: var(--ink);
  transition: background-color .3s;
}
.project__filmlink .pfilm__play svg { width: 28px; height: 28px; margin-left: 4px; fill: currentColor; }
.project__filmlink:hover .pfilm__play, .project__filmlink:focus-visible .pfilm__play { background: #fff; }
@media (max-width: 700px) { .project__filmlink .pfilm__play { width: 64px; height: 64px; margin: -32px 0 0 -32px; } }

/* zdjęcia: bez menu „Zapisz w Zdjęciach” po przytrzymaniu palca (iPhone) i bez przeciągania (razem z js/common.js) */
img, .gt, .glb { -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }

/* O nas — „Razem” (wspólny tekst duetu pod sylwetkami) */
.together { padding-top: 0; }
.together__title { max-width: 18ch; }
.together__text { margin-top: 24px; max-width: 46ch; color: var(--ink-soft); }
.person__bio + .person__bio { margin-top: -8px; } /* dwa akapity bio bliżej siebie (22 − 8 = 14 px odstępu) */
