/* Fonty na własnym serwerze (bez Google Fonts — RODO, szybkość).
   Familjen Grotesk i Zalando Sans Expanded, licencja SIL Open Font License.
   Tylko zestawy latin i latin-ext (polskie znaki). */

@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/familjen-grotesk-latin-ext-e30d66.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: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/familjen-grotesk-latin-0fb10b.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: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/familjen-grotesk-latin-ext-e30d66.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: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/familjen-grotesk-latin-0fb10b.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: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/familjen-grotesk-latin-ext-e30d66.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: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/familjen-grotesk-latin-0fb10b.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: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/familjen-grotesk-latin-ext-e30d66.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: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/familjen-grotesk-latin-0fb10b.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: 'Zalando Sans Expanded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/zalando-sans-expanded-latin-ext-1f46a4.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: 'Zalando Sans Expanded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/zalando-sans-expanded-latin-99c2c3.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: 'Zalando Sans Expanded';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/zalando-sans-expanded-latin-ext-1f46a4.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: 'Zalando Sans Expanded';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/zalando-sans-expanded-latin-99c2c3.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: 'Zalando Sans Expanded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/zalando-sans-expanded-latin-ext-1f46a4.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: 'Zalando Sans Expanded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/zalando-sans-expanded-latin-99c2c3.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: 'Zalando Sans Expanded';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/zalando-sans-expanded-latin-ext-1f46a4.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: 'Zalando Sans Expanded';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/zalando-sans-expanded-latin-99c2c3.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;
}


/* ============================================
   WSPÓŁTWÓRCY V4 — Final
   ============================================ */

/* Fonts loaded via <link> in HTML for better performance */

:root {
  --white:      #FFFFFF;
  --black:      #0A0A0A;
  --gray-dark:  #6B6B6B;
  --gray-mid:   #ABABAB;
  --gray-light: #F2F2F2;
  --border:     #E2E2E2;
  --accent:     #0A0A0A;
  --accent-dim: rgba(10, 10, 10, 0.08);

  --font-head: 'Sora', sans-serif;
  --font-body: 'Manrope', sans-serif;

  --s1:  8px;
  --s2:  16px;
  --s3:  24px;
  --s4:  32px;
  --s5:  48px;
  --s6:  64px;
  --s7:  80px;
  --s8:  120px;
  --s9:  120px;

  --max: 1200px;
  --pad: 40px;
  --radius: 12px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

/* --- Util --- */
.label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-dark);
}
.label-light { color: rgba(255,255,255,0.4); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 15px 34px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease, transform 0.2s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }

.btn-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark:hover { background: var(--white); color: var(--black); border-color: var(--black); }

.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }

.btn-accent { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-accent:hover { background: #222; border-color: #222; }

.btn-light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-light:hover { background: transparent; color: var(--white); }


/* ============================================
   ANIMACJE SCROLL
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger dzieci wewnątrz reveal */
.stagger-child {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.stagger-child.stagger-in {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================
   NAWIGACJA
   ============================================ */

#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, backdrop-filter 0.3s, background 0.3s;
}
#nav.scrolled {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.82);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}
.nav-logo img { display: block; height: 34px; width: auto; }
.nav-logo-fallback { display: none; }

.nav-links {
  display: flex;
  gap: var(--s5);
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--gray-dark);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--black); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.nav-active { color: var(--black); }
.nav-links a.nav-active::after { width: 100%; }

.nav-right { display: flex; justify-content: flex-end; }
.nav-cta {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--black);
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.7; }

/* --- Burger (tylko mobile) --- */
.nav-burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--black);
  cursor: pointer;
}
.nav-burger span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s ease;
}
.nav-burger span:nth-child(1) { top: 18px; }
.nav-burger span:nth-child(2) { top: 24px; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* --- Panel mobilny --- */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  z-index: 99;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--s6) var(--pad) var(--s6);
  background: var(--white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
}
.nav-mobile.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-mobile ul {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  list-style: none;
}
.nav-mobile ul a {
  font-family: var(--font-head);
  font-size: clamp(30px, 9vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--black);
}
.nav-mobile-foot {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding-top: var(--s5);
  border-top: 1px solid var(--border);
}
.nav-mobile-cta {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--black);
}
.nav-mobile-mail {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gray-dark);
}

body.nav-open { overflow: hidden; }


/* ============================================
   HERO
   ============================================ */

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
#hero {
  padding-top: var(--nav-h);
  background: #ffffff;
}
#hero .hero-stage h1      { animation: heroFadeUp 0.8s ease both; animation-delay: 0.08s; }
#hero .hero-sub           { animation: heroFadeUp 0.8s ease both; animation-delay: 0.22s; }
#hero .hero-cta           { animation: heroFadeUp 0.8s ease both; animation-delay: 0.36s; }
#hero .hero-placeholder   { animation: heroFadeUp 0.8s ease both; animation-delay: 0.16s; }

.hero-stage {
  display: flex;
  align-items: center;
  gap: clamp(48px, 6vw, 96px);
  padding: clamp(48px, 7vh, 88px) 0 clamp(80px, 9vw, 120px);
}

.hero-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 24px;
}

.hero-stage h1 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--black);
  margin: 0;
  max-width: 650px;
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}
.h1-main { font-size: clamp(52px, 8vw, 96px); }
.h1-echo { font-size: clamp(24px, 3.2vw, 42px); color: var(--gray-mid); }

.hero-sub {
  font-size: 17px;
  color: #222222;
  line-height: 1.65;
  margin: 0;
  max-width: 420px;
}

.hero-cta {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition: opacity 0.22s ease;
  margin-top: 8px;
}
.hero-cta:hover { opacity: 0.42; }

.hero-placeholder {
  flex: 0 0 clamp(260px, 38vw, 500px);
  height: clamp(400px, 65vh, 640px);
  background: #F0EDE8;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.hero-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ============================================
   USŁUGI
   ============================================ */

#uslugi {
  padding: var(--s9) 0;
  background: #F6F6F6;
}

.section-intro {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: var(--s6);
  align-items: start;
  margin-bottom: var(--s7);
}
.section-intro .label { margin-bottom: var(--s2); display: block; }
.section-intro h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
/* System prawej kolumny — jeden parametr dla całej strony */
.col-right {
  padding-top: clamp(44px, 4.5vw, 58px);
}
.col-right p {
  font-size: 17px;
  color: #222222;
  line-height: 1.65;
  max-width: 420px;
}

/* Siatka usług */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Karta */
.service-card {
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

/* Placeholder graficzny — góra */
.sc-visual {
  background: #E9E6E0;
  height: clamp(160px, 20vw, 260px);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.sc-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Część tekstowa — dół */
.sc-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: 8px;
}

.sc-desc {
  font-size: 14px;
  color: var(--gray-dark);
  line-height: 1.65;
  margin-bottom: 4px;
}

.sc-for {
  font-size: 13px;
  color: var(--gray-mid);
  line-height: 1.55;
  margin-bottom: 16px;
}

.sc-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.sc-tags li {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gray-dark);
  background: var(--gray-light);
  padding: 3px 10px;
  border-radius: 4px;
}

.sc-link {
  display: inline-block;
  margin-top: auto;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: opacity 0.2s;
}
.sc-link:hover { opacity: 0.5; }


/* ============================================
   PODEJŚCIE
   ============================================ */

#podejscie {
  padding: var(--s9) 0;
  background: #ffffff;
}

.approach-header {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: var(--s6);
  align-items: start;
  margin-bottom: clamp(100px, 10vw, 140px);
}

.approach-header .label { margin-bottom: var(--s2); }

.approach-header h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}


.approach-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
}

.approach-block {
  position: relative;
  padding: var(--s4) var(--s3);
  border-radius: var(--radius);
  overflow: visible;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.approach-block:hover {
  transform: translateY(-4px);
}
.approach-block:hover .approach-num {
  opacity: 0.11;
}

.approach-num {
  position: absolute;
  font-family: var(--font-head);
  font-size: clamp(120px, 13vw, 160px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--black);
  opacity: 0.06;
  top: -28px;
  right: -8px;
  user-select: none;
  pointer-events: none;
}

.approach-block h3 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: 12px;
}

.approach-block p {
  font-size: 14px;
  color: #707070;
  line-height: 1.65;
}


/* ============================================
   DLA KOGO
   ============================================ */



/* ============================================
   PORTFOLIO — Ślady współtworzenia
   ============================================ */

#slady {
  padding: var(--s9) 0;
  background: #F6F6F6;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: var(--s6);
}

.project-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.project-item:nth-child(1) { grid-column: span 2; }
.project-item:nth-child(4) { grid-column: span 2; }

.project-thumb {
  overflow: hidden;
  position: relative;
  height: clamp(260px, 30vw, 400px);
  border-radius: 16px;
  background: #E9E6E0;
  transition: filter 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}
.project-item:hover .project-thumb {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.project-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.project-item:hover .project-thumb img { transform: scale(1.04); }

/* Podpis pod kaflem — widoczny zawsze, także na dotyku */
.project-caption {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px var(--s2);
  padding-top: 18px;
}
.project-caption h3 {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--black);
  transition: opacity 0.25s ease;
}
.project-cat {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-dark);
}
.project-item:hover .project-caption h3 { opacity: 0.55; }

/* Button pod gridem */
.portfolio-cta {
  margin-top: var(--s6);
  display: flex;
  justify-content: center;
}

.cta-link {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition: opacity 0.22s ease;
}
.cta-link:hover { opacity: 0.42; }


/* ============================================
   PROCES
   ============================================ */

/* ============================================
   O MNIE
   ============================================ */

#o-mnie {
  padding: var(--s9) 0;
  background: #ffffff;
}

.about-layout {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: var(--s8);
  align-items: stretch;
}

.about-photo {
  background: #E9E6E0;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  min-height: 480px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}
.about-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-body {
  display: flex;
  flex-direction: column;
}

.about-body .label { margin-bottom: var(--s2); display: block; }
.about-body h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--s5);
}
.about-body p {
  font-size: 17px;
  color: #222222;
  line-height: 1.65;
  max-width: 420px;
}

/* ── Rekomendacje ── */

.testimonials {
  margin-top: var(--s6);
  background: #F6F6F6;
  border-radius: 16px;
  padding: var(--s5);
}

.t-track {
  position: relative;
  min-height: 180px;
}

.t-slide {
  display: none;
}
.t-slide.active {
  display: block;
  animation: tFadeIn 0.45s ease both;
}
@keyframes tFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.t-text {
  font-family: var(--font-head);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--black);
  max-width: 800px;
  margin-bottom: var(--s4);
}

.t-source {
  display: flex;
  align-items: center;
  gap: 14px;
}
.t-source::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--gray-mid);
  flex-shrink: 0;
}
.t-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
}
.t-role {
  font-size: 12px;
  color: var(--gray-dark);
  letter-spacing: 0.04em;
}

.t-nav {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s5);
}

.t-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--gray-dark);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s ease;
}
.t-btn:hover { color: var(--black); }

.t-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}
.t-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.t-dot.active {
  background: var(--black);
  transform: scale(1.4);
}


/* ============================================
   REKOMENDACJE
   ============================================ */



/* ============================================
   KONTAKT
   ============================================ */

#kontakt {
  background: var(--black);
  padding: var(--s9) 0 var(--s8);
}

.contact-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: var(--s6);
  align-items: start;
}

.contact-grid .label { margin-bottom: var(--s2); display: block; }

.contact-h {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--white);
}

.contact-right {
  padding-top: clamp(44px, 4.5vw, 58px);
}

.contact-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.5);
  max-width: 420px;
  line-height: 1.65;
  margin-bottom: var(--s3);
}
.contact-sub--gap {
  margin-top: var(--s3);
  margin-bottom: var(--s4);
}

.contact-cta {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition: opacity 0.22s ease;
}
.contact-cta:hover { opacity: 0.5; }
.contact-email { cursor: pointer; display: inline-block; }


/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form { display: flex; flex-direction: column; gap: var(--s3); }

.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
}

.cf-field { display: flex; flex-direction: column; gap: 8px; }

.cf-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.cf-input {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}
.cf-input::placeholder { color: rgba(255,255,255,0.2); }
.cf-input:focus { outline: none; border-color: rgba(255,255,255,0.45); }

.cf-textarea { resize: none; min-height: 130px; }

.cf-note {
  font-size: 14px;
  color: rgba(255,255,255,0.35);
  margin-top: calc(var(--s1) * -1);
}

.cf-submit {
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition: opacity 0.22s ease;
  padding: 0;
}
.cf-submit:hover { opacity: 0.5; }
.cf-submit:disabled { opacity: 0.4; cursor: default; }

.contact-success { display: none; }


/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: var(--s3) 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer p, footer a {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.04em;
}
footer a:hover { color: rgba(255,255,255,0.6); }


/* ============================================
   PODSTRONY — wspólne style
   ============================================ */

.subpage-hero {
  padding: calc(var(--nav-h) + var(--s6)) 0 var(--s7);
  background: #ffffff;
}
.subpage-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-dark);
  margin-bottom: var(--s5);
  transition: color 0.2s;
}
.subpage-back:hover { color: var(--black); }
.subpage-back svg { transition: transform 0.2s; }
.subpage-back:hover svg { transform: translateX(-3px); }

.subpage-meta { margin-bottom: var(--s3); }
.subpage-meta .label { display: inline; }

.subpage-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin-bottom: var(--s4);
}
/* ── Intro (tekst + visual) ── */

.subpage-intro {
  padding: var(--s9) 0;
  background: #F6F6F6;
}

.subpage-intro-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: var(--s8);
  align-items: stretch;
}

.subpage-intro-text h2 {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--s4);
}

.subpage-intro-text p {
  font-size: 17px;
  color: #222222;
  line-height: 1.75;
  margin-bottom: var(--s3);
  max-width: 480px;
}

.subpage-tags {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  margin-top: var(--s6);
  padding-top: var(--s5);
  border-top: 1px solid var(--border);
}

.subpage-tag .label { margin-bottom: 4px; display: block; }
.subpage-tag p {
  font-size: 14px;
  color: #222222;
  line-height: 1.5;
  margin: 0;
  max-width: none;
}

.subpage-intro-visual {
  background: #E9E6E0;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  min-height: 320px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}
.subpage-intro-visual img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ── Galeria ── */

.subpage-gallery {
  padding: var(--s8) 0 var(--s9);
  background: #ffffff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(220px, 24vw, 320px);
  gap: 16px;
}

.gallery-item {
  background: #E9E6E0;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}


/* ── CTA ── */

.subpage-cta {
  padding: var(--s9) 0;
  background: var(--black);
}
.subpage-cta p {
  font-family: var(--font-head);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 480px;
  margin-bottom: var(--s4);
}
.cta-link--white {
  color: var(--white);
}
.cta-link--white:hover { opacity: 0.5; }


/* ============================================
   POZOSTAŁE PROJEKTY
   ============================================ */

.projects-cat {
  padding: var(--s9) 0;
  background: #ffffff;
}
.projects-cat--alt {
  background: #F6F6F6;
}

.projects-cat-header {
  margin-bottom: var(--s6);
}
.projects-cat-header .label {
  margin-bottom: var(--s2);
  display: block;
}
.projects-cat-header h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.projects-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(200px, 22vw, 300px);
  gap: 16px;
}

.projects-tile {
  background: #E9E6E0;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.projects-tile img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}


/* ============================================
   RESPONSYWNOŚĆ
   ============================================ */

@media (max-width: 1024px) {
  :root { --pad: 32px; }

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

  .about-layout { grid-template-columns: 1fr; gap: var(--s6); }
  .about-photo { aspect-ratio: 4 / 5; min-height: auto; max-width: 460px; }

  .subpage-intro-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .subpage-intro-visual { min-height: 300px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-cat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --pad: 20px; }

  .nav-links { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-right { display: none; }
  .nav-logo img { height: 26px; }
  .nav-burger { display: block; }
  .nav-mobile { display: flex; }

  .hero-stage { flex-direction: column; align-items: stretch; padding-bottom: clamp(48px, 7vh, 72px); }
  .hero-copy { min-height: auto; justify-content: flex-start; gap: 20px; }
  .hero-cta { margin-top: 24px; }
  .hero-placeholder {
    flex: none;
    width: 100%;
    height: clamp(300px, 46vh, 400px);
  }
  .hero-stage h1 { line-height: 1.1; max-width: none; }
  .h1-main { font-size: clamp(40px, 11vw, 64px); }
  .h1-echo { font-size: clamp(20px, 5vw, 30px); }

  .section-intro { grid-template-columns: 1fr; gap: var(--s3); }

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

  .approach-header { grid-template-columns: 1fr; gap: var(--s4); }
  .approach-blocks { grid-template-columns: 1fr; gap: var(--s4); }

  .portfolio-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .project-item:nth-child(1),
  .project-item:nth-child(4) { grid-column: span 1; }

  /* Każdy kafel zachowuje własne proporcje — zero przycinania.
     Wąskie 9:10, szerokie 2:1, dokładnie tak jak dostarczone pliki. */
  .project-item .project-thumb { height: auto; aspect-ratio: 9 / 10; }
  .project-item:nth-child(1) .project-thumb,
  .project-item:nth-child(4) .project-thumb { aspect-ratio: 2 / 1; }

  .about-layout { grid-template-columns: 1fr; gap: var(--s5); }
  .about-photo { aspect-ratio: 4 / 5; min-height: auto; max-width: none; }

  .subpage-intro-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .subpage-intro-visual { min-height: 260px; }

  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: clamp(180px, 50vw, 260px); gap: 12px; }
  .projects-cat-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(130px, 38vw, 200px); gap: 12px; }

  .contact-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .contact-right { padding-top: 0; }
  .cf-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: var(--s2); text-align: center; }

  .subpage-cta { flex-direction: column; align-items: flex-start; }
}


/* ============================================================
   ============================================================
   NOWY UKŁAD — od 2026-10-06
   Wszystko poniżej nadpisuje starsze reguły z góry pliku.
   Menu boczne, nagłówki przyklejone po lewej, czerń przy kontakcie.
   ============================================================
   ============================================================ */

:root {
  /* Tło: minimalnie złamana biel — łagodniejszy kontrast niż czyste #FFF */
  --white:      #FAFAF8;
  --black:      #000000;
  --gray-dark:  #5E5E5E;
  --gray-mid:   #A3A3A3;
  --gray-light: #F0F0EE;
  --border:     #DCDCDC;
  --accent:     #000000;

  /* Nagłówki: Zalando Sans Expanded (wybrany 2026-10-06). Reszta: Familjen Grotesk. */
  --font-head:    'Familjen Grotesk', sans-serif;
  --font-body:    'Familjen Grotesk', sans-serif;
  --font-display: 'Zalando Sans Expanded', sans-serif;

  --radius: 0;
  --rail: 76px;
  --gut: clamp(20px, 4vw, 64px);
}

body { font-size: 17px; }
html { scroll-padding-top: 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gut);
}


/* ============================================
   MENU BOCZNE — tylko na szerokim ekranie
   Logo i linki biegną pionowo, czytane od dołu do góry.
   ============================================ */

.rail { display: none; }

@media (min-width: 1025px) {
  body { padding-left: var(--rail); }
  #nav { display: none; }

  /* Na laptopie treść wypełnia ekran obok menu. Na dużym monitorze
     rośnie do 1840 px i staje pośrodku wolnego miejsca. */
  .wrap { max-width: 1840px; padding-left: clamp(40px, 5vw, 96px); padding-right: clamp(40px, 5vw, 96px); }

  .rail {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 32px 0;
    background: var(--white);
    border-right: 1px solid var(--border);
  }

  /* Logo obrócone o 90°. Pudełko ma wymiary już obróconego logo. */
  .rail-logo {
    position: relative;
    width: 34px;
    height: 145px;
    flex-shrink: 0;
  }
  .rail-logo img {
    position: absolute;
    top: 50%; left: 50%;
    width: 145px; height: 34px;
    max-width: none;
    transform: translate(-50%, -50%) rotate(-90deg);
    /* wypisuje się raz przy wejściu — po obrocie od dołu do góry */
    clip-path: inset(-20% 100% -20% 0);
    animation: sign 1.8s cubic-bezier(.55, .1, .35, 1) .2s forwards;
  }

  .rail-links,
  .rail-cta {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }
  .rail-links {
    display: flex;
    flex-direction: row-reverse; /* po obrocie pierwszy link jest na górze */
    gap: 24px;
    white-space: nowrap;
  }
  .rail-links a {
    font-size: 15px;
    color: var(--gray-dark);
    transition: color .2s;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .rail-links a::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    transform: scale(0);
    transition: transform .25s ease;
  }
  .rail-links a:hover,
  .rail-links a.is-active { color: var(--black); }
  .rail-links a.is-active::before { transform: scale(1); }

  .rail-cta {
    font-size: 15px;
    font-weight: 600;
    color: var(--black);
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
  }
  .rail-cta:hover { opacity: .5; white-space: nowrap; }
  .rail-cta { white-space: nowrap; }

  /* Niski ekran: link do kontaktu jest w hero i na dole strony, z paska znika */
  @media (max-height: 760px) {
    .rail-cta { display: none; }
    .rail { justify-content: flex-start; gap: 56px; }
  }
}

/* Logo w menu górnym (tablet, telefon) też się wypisuje */
.nav-logo img {
  clip-path: inset(-20% 100% -20% 0);
  animation: sign 1.8s cubic-bezier(.55, .1, .35, 1) .2s forwards;
}
.nav-links a.is-active { color: var(--black); }
.nav-links a.is-active::after { width: 100%; }

@keyframes sign {
  to { clip-path: inset(-20% 0 -20% 0); }
}


/* ============================================
   HERO
   ============================================ */

#hero { padding-top: 0; }
@media (max-width: 1024px) { #hero { padding-top: var(--nav-h); } }

#hero .wrap {
  padding-top: clamp(64px, 14vh, 168px);
  padding-bottom: clamp(80px, 13vh, 160px);
}

.hero-h {
  margin: 0 0 clamp(40px, 6vh, 72px);
  font-family: var(--font-display);
  color: var(--black);
}
.hero-h .h1-main {
  display: block;
  font-size: clamp(40px, 7.6vw, 168px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.hero-h .h1-echo {
  display: block;
  margin-top: 0.4em;
  font-size: clamp(20px, 3vw, 62px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--gray-mid);
}

/* Podmieniane słowo: pudełko przycina wjazd i wyjazd, ale nie ogonki liter */
.swap-box {
  display: inline-block;
  vertical-align: bottom;
  overflow: hidden;
  padding: 0.1em 0.04em 0.16em;
  margin: -0.1em -0.04em -0.16em;
  white-space: nowrap;
}
.swap { display: inline-block; }

.hero-copy { gap: 20px; display: flex; flex-direction: column; align-items: flex-start; }
.hero-sub {
  font-size: 19px;
  line-height: 1.5;
  color: var(--black);
  max-width: 400px;
}
.hero-cta { font-size: 17px; font-weight: 600; margin-top: 0; }


/* ============================================
   SEKCJE — nagłówek po lewej stoi, treść przewija się obok
   ============================================ */

/* style.css ustawia te sekcje po id, więc nadpisujemy też po id */
.sec,
#slady, #uslugi, #podejscie, #o-mnie, #kontakt {
  padding: clamp(80px, 10vw, 150px) 0;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.sec-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}

.sec-head {
  position: sticky;
  top: 40px;
}
.sec-head h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.7vw, 56px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.sec-lead {
  font-size: 19px;
  line-height: 1.5;
  max-width: 540px;
  margin-bottom: clamp(40px, 5vw, 64px);
}


/* ============================================
   REALIZACJE — lista nazw, kadr przy kursorze
   ============================================ */

.plist {
  list-style: none;
  border-top: 1px solid var(--black);
  margin-bottom: var(--s5);
}
.pl-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--s3);
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--border);
  transition: opacity .3s ease;
}
.pl-name {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.pl-cat {
  font-size: 15px;
  color: var(--gray-dark);
  text-align: right;
}
.pl-thumb { display: none; }

/* Myszka: reszta listy przygasa, kadr jedzie za kursorem */
@media (hover: hover) and (pointer: fine) {
  .plist:hover .pl-row:not(:hover) { opacity: .28; }
}
.pl-preview {
  position: fixed;
  top: 0; left: 0;
  z-index: 90;
  width: clamp(260px, 24vw, 380px);
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}
.pl-preview.on { opacity: 1; }
.pl-preview img { width: 100%; height: auto; border-radius: var(--radius); }

/* Dotyk: kadr stoi w liście nad nazwą */
@media (hover: none), (pointer: coarse) {
  .pl-preview { display: none; }
  .pl-thumb {
    display: block;
    grid-column: 1 / -1;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 4px;
  }
  .pl-row { padding-top: 20px; }
}


/* ============================================
   USŁUGI i JAK PRACUJĘ — wiersze
   ============================================ */

.rows {
  list-style: none;
  border-top: 1px solid var(--black);
}
.row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s4);
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--border);
}
.row h3 {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.7vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.row p { font-size: 17px; line-height: 1.55; }
.row-tags { margin-top: 8px; color: var(--gray-dark); }
.row-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.row-link:hover { opacity: .5; }


/* ============================================
   O MNIE — rekomendacje
   ============================================ */

.testimonials {
  margin-top: 0;
  border-radius: var(--radius);
  background: var(--gray-light);
}
.t-text {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.7vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.45;
}
.t-name { font-size: 15px; letter-spacing: 0; text-transform: none; }
.t-role { font-size: 15px; letter-spacing: 0; }


/* ============================================
   KONTAKT — zdanie do uzupełnienia
   ============================================ */

#kontakt.sec {
  background: var(--black);
  border-top: 0;
  padding-bottom: clamp(96px, 12vw, 180px);
}
#kontakt .sec-head h2 { color: var(--white); }

.fill-line {
  font-size: clamp(22px, 2.4vw, 44px);
  line-height: 1.75;
  color: var(--white);
  max-width: 760px;
}
.fill-line input {
  font: inherit;
  color: var(--white);
  background: transparent;
  border: 0;
  border-bottom: 2px solid rgba(255,255,255,.45);
  border-radius: 0;
  padding: 0 2px;
  min-width: 4ch;
  max-width: 100%;
  transition: border-color .2s;
}
.fill-line input::placeholder { color: rgba(255,255,255,.35); }
.fill-line input:focus { outline: none; border-bottom-color: var(--white); }
.fill-line input:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }

.fill-send {
  margin-top: var(--s5);
  padding: 16px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font: 600 17px var(--font-body);
  cursor: pointer;
  transition: opacity .2s;
}
.fill-send:hover { opacity: .8; }
.fill-send:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }

.contact-note {
  margin-top: var(--s5);
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,.55);
  max-width: 520px;
}
.contact-email {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  cursor: pointer;
}


/* ============================================
   TABLET I TELEFON
   ============================================ */

@media (max-width: 1024px) {
  .sec-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .sec-head { position: static; }
}

@media (max-width: 768px) {
  .hero-h .h1-main { font-size: clamp(32px, 9.4vw, 64px); }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .pl-row { grid-template-columns: 1fr; gap: 6px; }
  .pl-cat { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .rail-logo img,
  .nav-logo img { animation: none; clip-path: none; }
}

/* Duży monitor: tekst ciągły też trochę większy */
@media (min-width: 2000px) {
  body, .row p, .contact-note { font-size: 19px; }
  .hero-sub, .sec-lead { font-size: 22px; max-width: 620px; }
  .hero-sub { max-width: 480px; }
}


/* ============================================
   KURSOR-KROPKA — tylko myszka
   Biała kropka w trybie „różnicy”: na białym wygląda na czarną, na czarnym na białą.
   ============================================ */

.cursor { display: none; }
.has-cursor body,
.has-cursor a,
.has-cursor button,
.has-cursor [role="button"] { cursor: none; }
.has-cursor input { cursor: text; }

.has-cursor .cursor {
  display: grid;
  place-items: center;
  position: fixed;
  top: 0; left: 0;
  z-index: 300;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0;
  transition: width .3s cubic-bezier(.25,1,.5,1), height .3s cubic-bezier(.25,1,.5,1),
              margin .3s cubic-bezier(.25,1,.5,1), opacity .2s, background .2s;
}
.has-cursor .cursor.on { opacity: 1; }
.cursor.is-link { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
.cursor.is-text { opacity: 0 !important; }

/* Nad realizacjami: czarne kółko z napisem, bez odwracania kolorów */
.cursor-label {
  font: 600 14px var(--font-body);
  color: #fff;
  opacity: 0;
  transition: opacity .2s;
}
.cursor.is-view {
  width: 88px; height: 88px; margin: -44px 0 0 -44px;
  background: #000;
  mix-blend-mode: normal;
}
.cursor.is-view .cursor-label { opacity: 1; }


/* ============================================
   KLAMRA — duże logo na dole strony
   ============================================ */

.outro {
  margin-top: clamp(96px, 12vw, 200px);
}
.outro-logo {
  width: 100%;
  height: auto;
  filter: invert(1); /* logo jest czarne, tło tu czarne */
  clip-path: inset(-10% 100% -10% 0);
  transition: clip-path 2.4s cubic-bezier(.55, .1, .35, 1);
}
.outro-logo.is-in { clip-path: inset(-10% 0 -10% 0); }
#kontakt.sec { padding-bottom: clamp(48px, 5vw, 80px); }


/* ============================================
   PRZEJŚCIE W CZERŃ — przy kontakcie cała strona ciemnieje
   Zmienne kolorów zamieniają się miejscami, przejścia robią resztę.
   ============================================ */

body,
.sec, #hero, #slady, #uslugi, #podejscie, #o-mnie,
.rail, #nav, .testimonials, .pl-row, .row, .plist, .rows {
  transition: background-color .9s ease, color .9s ease, border-color .9s ease;
}
.rail-logo img, .nav-logo img { transition: filter .9s ease; }

body.is-dark {
  --white:      #000000;
  --black:      #FFFFFF;
  --gray-dark:  rgba(255,255,255,.62);
  --gray-mid:   rgba(255,255,255,.45);
  --gray-light: #141414;
  --border:     rgba(255,255,255,.16);
  --accent:     #FFFFFF;
  background: #000;
  color: #fff;
}
body.is-dark .rail-logo img,
body.is-dark .nav-logo img { filter: invert(1); }
body.is-dark #nav { background: rgba(0,0,0,.9); }
body.is-dark .hero-sub { color: #fff; }

/* Kontakt i stopka są czarne zawsze, niezależnie od trybu */
#kontakt.sec, footer { background: #000; }
#kontakt .sec-head h2, .fill-line { color: #fff; }
.fill-send { background: #fff; color: #000; }
.contact-email { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .outro-logo { transition: none; clip-path: none; }
}


/* ============================================
   REALIZACJE — kadr po lewej, pod nagłówkiem (wybrany 2026-10-06)
   Wszystkie kadry w jednej proporcji 4:3, przycinane od środka.
   ============================================ */

.pl-preview { display: none; }
.pl-stage { display: none; }

@media (hover: hover) and (pointer: fine) {
  .pl-stage {
    display: block;
    margin-top: var(--s5);
    max-width: 440px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .4s cubic-bezier(.25,1,.5,1);
  }
  .pl-stage.on { opacity: 1; transform: none; }
  .pl-stage img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
  }
  /* nad listą realizacji kursor zostaje zwykłą kropką */
  .cursor.is-view { width: 48px; height: 48px; margin: -24px 0 0 -24px; background: #fff; mix-blend-mode: difference; }
  .cursor.is-view .cursor-label { opacity: 0; }
}

/* Miniatury na telefonie w tej samej proporcji */
@media (hover: none), (pointer: coarse) {
  .pl-thumb { aspect-ratio: 4 / 3; }
}


/* ============================================
   PODSTRONY PROJEKTÓW (mumio, koncept, african, natanael)
   ============================================ */

.cs-hero .wrap {
  padding-top: clamp(56px, 12vh, 140px);
  padding-bottom: clamp(56px, 8vh, 100px);
}
@media (max-width: 1024px) { .cs-hero { padding-top: var(--nav-h); } }

.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--s5);
  font-size: 15px;
  color: var(--gray-dark);
  transition: color .2s;
}
.cs-back:hover { color: var(--black); }
.cs-back svg { transition: transform .2s; }
.cs-back:hover svg { transform: translateX(-3px); }

.cs-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 150px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.cs-kind {
  margin-top: var(--s3);
  font-size: 19px;
  color: var(--gray-dark);
}

/* Fakty o projekcie — w przyklejonej lewej kolumnie */
.cs-facts { margin-top: var(--s5); }
.cs-facts div {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.cs-facts dt { font-size: 15px; color: var(--gray-dark); }
.cs-facts dd { font-size: 17px; line-height: 1.45; }

.cs-text p {
  font-size: 19px;
  line-height: 1.55;
  max-width: 600px;
  margin-bottom: var(--s3);
}
.cs-main {
  margin-top: var(--s6);
}
.cs-main img,
.cs-gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* Galeria: dwa w rzędzie, kadry w naturalnych proporcjach.
   Brakujące pliki znikają same (wspolne.js), pusta galeria się chowa. */
.cs-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
  margin-top: var(--s3);
  align-items: start;
}
.cs-gallery figure { margin: 0; }

/* Następny projekt */
.cs-next {
  display: block;
  padding: clamp(56px, 8vw, 120px) 0;
  border-top: 1px solid var(--border);
}
.cs-next span { display: block; font-size: 15px; color: var(--gray-dark); margin-bottom: 10px; }
.cs-next strong {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 96px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  transition: opacity .25s;
}
.cs-next:hover strong { opacity: .5; }

/* Czarna stopka-zaproszenie (ta sama co kontakt na głównej) */
.cs-cta h2 { color: #fff; }
.cs-cta-btn {
  display: inline-block;
  padding: 16px 28px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font: 600 17px var(--font-body);
  transition: opacity .2s;
}
.cs-cta-btn:hover { opacity: .8; }
.cs-cta p { color: rgba(255,255,255,.62); font-size: 19px; line-height: 1.5; max-width: 520px; margin-bottom: var(--s4); }

@media (max-width: 768px) {
  .cs-gallery { grid-template-columns: 1fr; }
}


/* ============================================
   POZOSTAŁE PROJEKTY (projekty.html)
   ============================================ */

.pp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}
.pp-grid figure { margin: 0; }
.pp-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.pp-empty {
  font-size: 17px;
  color: var(--gray-dark);
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

@media (max-width: 1024px) { .pp-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .pp-grid { grid-template-columns: 1fr; } }


/* ============================================
   PODSTRONY — opis na górze, pod nim galeria w wierszach (np. mumio.html)
   W każdym wierszu obrazki mają tę samą wysokość: kolumny podane
   w fr = proporcja szer./wys. pliku. Bez podpisów, zaokrągleń i cieni.
   ============================================ */

.cs-rows {
  margin-top: clamp(48px, 5vw, 80px);
}
.cs-row {
  display: grid;
  gap: clamp(12px, 1.2vw, 20px);
  margin-top: clamp(12px, 1.2vw, 20px);
}
.cs-row img { display: block; width: 100%; height: auto; }

/* Telefon: jeden pod drugim */
@media (max-width: 768px) {
  .cs-row { grid-template-columns: 1fr !important; }
}

/* Podstrony projektów: nagłówek i sekcja ciaśniej niż sekcje strony głównej */
.cs-hero .wrap { padding-top: clamp(48px, 9vh, 104px); padding-bottom: clamp(40px, 6vh, 72px); }
.cs-hero + .sec { padding-top: clamp(56px, 6vw, 96px); padding-bottom: clamp(56px, 6vw, 96px); }
.cs-text > p:last-of-type { margin-bottom: 0; }

/* Sekcja z samym zdaniem pod nagłówkiem (np. kategorie w projekty.html) — galeria bliżej */
.sec-body > .sec-lead:only-child { margin-bottom: 0; }

/* Sam nagłówek, bez tekstu obok (kategorie w projekty.html): na całą szerokość, galeria tuż pod nim */
.sec-grid:has(> .sec-head:only-child) { grid-template-columns: 1fr; }
.sec-grid:has(> .sec-head:only-child) > .sec-head { position: static; }
.sec-grid:has(> .sec-head:only-child) + .cs-rows { margin-top: clamp(24px, 2.5vw, 40px); }


/* ============================================
   REKOMENDACJE — lżej (2026-10-06)
   Bez szarego kafla: cienka kreska, cytat zwykłym tekstem, podpis pod spodem.
   ============================================ */

#o-mnie .testimonials {
  background: none;
  padding: var(--s3) 0 0;
  margin-top: var(--s5);
  border-top: 1px solid var(--black);
  border-radius: 0;
  max-width: 640px;
}
#o-mnie .t-track { min-height: 0; }
#o-mnie .t-text {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.55;
  max-width: none;
  margin-bottom: var(--s2);
}
#o-mnie .t-source::before { display: none; }
#o-mnie .t-name { font-size: 15px; font-weight: 600; }
#o-mnie .t-role { font-size: 15px; }
#o-mnie .t-nav { margin-top: var(--s3); }
/* Podpis: imię w jednej linii, rola pod spodem */
#o-mnie .t-source { display: block; }
#o-mnie .t-name, #o-mnie .t-role { display: block; }
#o-mnie .t-role { margin-top: 2px; }
/* Wszystkie slajdy w jednej komórce: ramka ma wysokość najdłuższego, strzałki nie skaczą */
#o-mnie .t-track { display: grid; }
#o-mnie .t-slide {
  display: block;
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  transition: opacity .35s ease, visibility 0s .35s;
}
#o-mnie .t-slide.active {
  visibility: visible;
  opacity: 1;
  animation: none;
  transition: opacity .35s ease;
}

/* Duży cudzysłów nad cytatem — od razu widać, że to czyjaś wypowiedź */
#o-mnie .testimonials::before {
  content: "\201D";
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 80px;
  line-height: 0.8;
  height: 0.4em;
  margin-bottom: var(--s3);
  color: var(--black);
}

/* Cytat innym głosem niż opis: ciemnoszary, w stopniu zwykłego tekstu */
#o-mnie .t-text {
  color: #474747;
  font-size: 17px;
  line-height: 1.6;
}
body.is-dark #o-mnie .t-text { color: rgba(255,255,255,.72); }


/* ============================================
   TELEFON — poprawki po przeglądzie (2026-10-06)
   ============================================ */

/* Logo w „Pozostałych projektach”: jedna siatka, 3 w rzędzie, na telefonie 2 */
.cs-logos { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 768px) {
  /* mniej powietrza między sekcjami */
  .sec,
  #slady, #uslugi, #podejscie, #o-mnie, #kontakt { padding: 56px 0; }
  .cs-hero + .sec { padding-top: 40px; padding-bottom: 48px; }
  #hero .wrap { padding-top: 48px; padding-bottom: 64px; }
  .cs-hero .wrap { padding-top: 40px; padding-bottom: 40px; }
  .cs-rows { margin-top: 32px; }
  .sec-lead { margin-bottom: 32px; }
  .outro { margin-top: 64px; }

  .cs-row.cs-logos { grid-template-columns: 1fr 1fr !important; }
}


/* ============================================
   ZŁAMANA BIEL (2026-10-06) — miejsca, gdzie stary styl miał wpisane #fff na sztywno
   ============================================ */
#hero, .cs-hero { background: var(--white); }
#nav { background: rgba(250,250,248,0.92); }
#nav.scrolled { background: rgba(250,250,248,0.82); }
body.is-dark #nav { background: rgba(0,0,0,.9); }


/* ============================================
   DÓŁ PODSTRONY PROJEKTU: następny projekt (lewo) + pozostałe projekty (prawo)
   ============================================ */

.cs-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
  padding-top: clamp(48px, 6vw, 96px);
  padding-bottom: clamp(56px, 7vw, 112px);
  border-top: 1px solid var(--border);
}
.cs-pager .cs-next {
  padding: 0;
  border-top: 0;
}
.cs-pager .cs-next strong {
  display: block;
  font-size: clamp(26px, 3.4vw, 56px);
}
.cs-next--all { text-align: right; }

@media (max-width: 768px) {
  .cs-pager { grid-template-columns: 1fr; gap: var(--s4); padding-top: 40px; padding-bottom: 48px; }
  .cs-next--all { text-align: left; }
}

/* Strona 404 */
.cs-404-links { display: flex; align-items: center; gap: var(--s4); margin-top: var(--s5); }
.cs-404-btn { background: var(--black); color: var(--white); }

/* Grafiki mają w HTML wpisane width/height (żeby strona nie skakała przy ładowaniu);
   wysokość zawsze liczona z proporcji, chyba że klasa mówi inaczej */
img { height: auto; }


/* ============================================
   DOSTĘPNOŚĆ (2026-10-06)
   ============================================ */

/* Kontrast: szary podtytuł hero min. 3:1 (duży tekst), stopka i podpowiedzi w polach czytelne na czerni */
:root { --gray-mid: #858585; }
footer p, footer a { color: rgba(255,255,255,.55); }
footer a:hover { color: #fff; }
.fill-line input::placeholder { color: rgba(255,255,255,.5); }

/* „Przejdź do treści” — niewidoczny, pojawia się po wciśnięciu Tab */
.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 400;
  padding: 10px 16px;
  background: var(--black);
  color: var(--white);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; }
