/* =========================================================
   KLARA ZIELIŃSKA — Fotografia
   Warm Editorial Design System
   (paleta: kość słoniowa / grafit / mosiądz)
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Kolory */
  --ink: #14100E;          /* tekst główny / ciemne tła */
  --ink-soft: #2A241F;
  --graphite: #44403C;     /* drugorzędne */
  --muted: #585249;        /* tekst pomocniczy (AA na kości słoniowej) */
  --ivory: #FAF8F4;        /* tło bazowe */
  --sand: #EFEAE3;         /* tło sekcji */
  --sand-deep: #E6DFD4;
  --line: #E0DACF;         /* linie / obramowania */
  --brass: #B08D57;        /* akcent */
  --brass-deep: #8C6E40;   /* akcent na jasnym tle (kontrast) */
  --white: #FFFFFF;

  /* Typografia */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Rytm */
  --container: 1320px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 9vw, 9rem);
  --radius: 2px;

  /* Ruch */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;

  --header-h: 78px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  background: var(--ivory);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
::selection { background: var(--brass); color: var(--ivory); }

/* ---------- Typografia ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.015em; }
.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 7vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.06; }
.h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.45rem);
  line-height: 1.6;
  color: var(--graphite);
  font-weight: 400;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass-deep);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--brass);
}
.eyebrow--center::after {
  content: "";
  width: 28px; height: 1px;
  background: var(--brass);
}
.muted { color: var(--muted); }
em, .italic { font-style: italic; }
.serif-accent { font-family: var(--font-display); font-style: italic; font-weight: 400; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 880px; }
.section { padding-block: var(--section-y); }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: var(--ivory); }
.section--ink .lead, .section--ink .muted { color: rgba(250,248,244,0.7); }
.section--ink .eyebrow { color: var(--brass); }
.section--ink .eyebrow::before, .section--ink .eyebrow--center::after { background: var(--brass); }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .h2 { margin-top: 1.2rem; }
.section-head .lead { margin-top: 1.25rem; }
.stack > * + * { margin-top: 1.25rem; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--ivory); --bd: var(--ink);
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding: 0.95rem 1.7rem;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bd);
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase;
  border-radius: var(--radius);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  will-change: transform;
}
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover { --bg: var(--brass-deep); --bd: var(--brass-deep); }
.btn:hover svg { transform: translateX(4px); }
.btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--ivory); --bd: var(--ink); }
.btn--light { --bg: var(--ivory); --fg: var(--ink); --bd: var(--ivory); }
.btn--light:hover { --bg: var(--brass); --fg: var(--ink); --bd: var(--brass); }
.btn--outline-light { --bg: transparent; --fg: var(--ivory); --bd: rgba(250,248,244,0.5); }
.btn--outline-light:hover { --bg: var(--ivory); --fg: var(--ink); --bd: var(--ivory); }
.btn--small { padding: 0.7rem 1.25rem; font-size: 0.74rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 4px;
  position: relative;
}
.link-arrow::after { content:""; position:absolute; left:0; bottom:0; width:100%; height:1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.link-arrow:hover::after { transform: scaleX(1); transform-origin: left; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-header.is-solid {
  background: rgba(250,248,244,0.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--line);
}
/* warianty na ciemnym hero (strony z jasnym tłem nadpisują na .is-light) */
.site-header[data-theme="over-dark"]:not(.is-solid) { color: var(--ivory); }
.site-header[data-theme="over-dark"]:not(.is-solid) .brand__mark { color: var(--ivory); }
.site-header[data-theme="over-dark"]:not(.is-solid) .nav a { color: rgba(250,248,244,0.82); }
.site-header[data-theme="over-dark"]:not(.is-solid) .langtoggle { color: rgba(250,248,244,0.82); border-color: rgba(250,248,244,0.35); }
.site-header[data-theme="over-dark"]:not(.is-solid) .burger span { background: var(--ivory); }

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__logo { height: 30px; width: auto; display: block; transition: filter .4s var(--ease); }
.site-header[data-theme="over-dark"]:not(.is-solid) .brand__logo { filter: brightness(0) invert(1); }
@media (max-width: 760px){ .brand__logo { height: 26px; } }
.brand__mark { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; letter-spacing: 0.01em; color: var(--ink); transition: color .4s var(--ease); }
.brand__dot { color: var(--brass); }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a {
  position: relative;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--graphite);
  padding: 0.4rem 0;
  transition: color .3s var(--ease);
}
.nav a::after { content:""; position:absolute; left:0; bottom:-2px; width:100%; height:1px; background: var(--brass); transform: scaleX(0); transform-origin:right; transition: transform .4s var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin:left; }

.header__actions { display: flex; align-items: center; gap: 1.1rem; }
.langtoggle {
  display: inline-flex; align-items: center;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em;
  border: 1px solid var(--line); border-radius: 100px;
  padding: 0.42rem 0.7rem; color: var(--graphite);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.langtoggle b { color: var(--ink); font-weight: 600; }
.langtoggle .sep { opacity: .4; margin-inline: .35rem; }
.site-header[data-theme="over-dark"]:not(.is-solid) .langtoggle b { color: var(--ivory); }

/* ---------- Flagi + podpowiedz jezykowa ---------- */
.flag { display: inline-block; border-radius: 2px; vertical-align: -3px; box-shadow: 0 0 0 .5px rgba(0,0,0,.18); }
.langtoggle .flag { width: 18px; height: 13px; }
.langtoggle .flag:first-child { margin-right: .4rem; }
.langtoggle .flag:last-child { margin-left: .4rem; }
.lang-hint {
  position: fixed; left: 50%; bottom: 1.3rem; transform: translateX(-50%) translateY(160%);
  z-index: 120; display: flex; align-items: center; gap: .8rem;
  background: var(--ink); color: var(--ivory);
  padding: .6rem .7rem .6rem 1.1rem; border-radius: 100px;
  box-shadow: 0 18px 44px -18px rgba(0,0,0,.55); font-size: .86rem; max-width: 92vw;
  transition: transform .55s var(--ease);
}
.lang-hint.is-in { transform: translateX(-50%) translateY(0); }
.lang-hint__flag { display: inline-flex; }
.lang-hint__flag .flag { width: 20px; height: 14px; vertical-align: middle; }
.lang-hint__btn { background: var(--ivory); color: var(--ink); border-radius: 100px; padding: .42rem .95rem; font-size: .78rem; font-weight: 600; white-space: nowrap; transition: background .3s var(--ease); }
.lang-hint__btn:hover { background: var(--brass); }
.lang-hint__x { color: rgba(250,248,244,.65); font-size: 1.35rem; line-height: 1; padding: 0 .35rem; }
.lang-hint__x:hover { color: var(--ivory); }
@media (max-width: 760px) { .lang-hint { bottom: 78px; font-size: .8rem; gap: .5rem; padding-left: .9rem; } }

.burger { display: none; width: 30px; height: 22px; position: relative; }
.burger span { position:absolute; left:0; width:100%; height:1.6px; background: var(--ink); transition: transform .4s var(--ease), opacity .3s var(--ease), top .4s var(--ease); }
.burger span:nth-child(1){ top: 2px; }
.burger span:nth-child(2){ top: 10px; }
.burger span:nth-child(3){ top: 18px; }
body.menu-open .burger span:nth-child(1){ top:10px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2){ opacity:0; }
body.menu-open .burger span:nth-child(3){ top:10px; transform: rotate(-45deg); }

/* ---------- Mobile drawer ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: var(--ivory);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
  display: flex; flex-direction: column;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
  visibility: hidden;
  overflow-y: auto;
}
body.menu-open .drawer { transform: translateY(0); visibility: visible; }
.drawer__logo { width: 150px; max-width: 50%; height: auto; }
.drawer nav { display: flex; flex-direction: column; gap: 0.4rem; margin-top: auto; margin-bottom: auto; }
.drawer nav a {
  font-family: var(--font-display); font-size: clamp(2rem, 9vw, 3rem); font-weight: 500;
  color: var(--ink); letter-spacing: -0.01em;
  padding: 0.35rem 0; opacity: 0; transform: translateY(14px);
}
body.menu-open .drawer nav a { animation: drawerIn .6s var(--ease) forwards; }
body.menu-open .drawer nav a:nth-child(1){ animation-delay:.1s; }
body.menu-open .drawer nav a:nth-child(2){ animation-delay:.16s; }
body.menu-open .drawer nav a:nth-child(3){ animation-delay:.22s; }
body.menu-open .drawer nav a:nth-child(4){ animation-delay:.28s; }
body.menu-open .drawer nav a:nth-child(5){ animation-delay:.34s; }
@keyframes drawerIn { to { opacity:1; transform: translateY(0); } }
.drawer__foot { display:flex; flex-wrap:wrap; gap: 1rem 1.5rem; align-items:center; border-top:1px solid var(--line); padding-top: 1.5rem; }
.drawer__foot a { font-size: .85rem; letter-spacing: .08em; color: var(--graphite); }

/* ---------- Mobile bottom action bar ---------- */
.actionbar { display: none; }
@media (max-width: 760px) {
  .actionbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid; grid-template-columns: repeat(3, 1fr);
    background: rgba(250,248,244,0.94);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .actionbar a {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 0.7rem 0; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--graphite);
  }
  .actionbar a + a { border-left: 1px solid var(--line); }
  .actionbar svg { width: 20px; height: 20px; }
  body { padding-bottom: 64px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--ivory); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(20,16,14,0.45) 0%, rgba(20,16,14,0.12) 35%, rgba(20,16,14,0.62) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(3rem, 8vh, 7rem); padding-top: calc(var(--header-h) + 2rem); }
.hero .display { max-width: 16ch; }
.hero .eyebrow { color: var(--brass); }
.hero .eyebrow::before { background: var(--brass); }
.hero__sub { max-width: 46ch; margin-top: 1.5rem; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.6; color: rgba(250,248,244,0.85); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  font-size: .64rem; letter-spacing: .25em; text-transform: uppercase; color: rgba(250,248,244,0.7);
}
.hero__scroll .line { width: 1px; height: 46px; background: rgba(250,248,244,0.5); position: relative; overflow: hidden; }
.hero__scroll .line::after { content:""; position:absolute; top:-100%; left:0; width:100%; height:100%; background: var(--brass); animation: scrollPulse 2.2s var(--ease) infinite; }
@keyframes scrollPulse { 0%{ top:-100%; } 60%,100%{ top:100%; } }

/* ---------- Intro / split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.frame--tall { aspect-ratio: 4 / 5; }
.frame--portrait { aspect-ratio: 3 / 4; }
.frame--wide { aspect-ratio: 3 / 2; }
.frame__tag {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(20,16,14,0.7); color: var(--ivory);
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; padding: .5rem .85rem; border-radius: var(--radius);
  backdrop-filter: blur(4px);
}
.signature { font-family: var(--font-display); font-style: italic; font-size: 1.7rem; color: var(--graphite); margin-top: .5rem; }
.stat-row { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 2.5rem; }
.stat { }
.stat__num { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 500; line-height: 1; }
.stat__num .plus { color: var(--brass); }
.stat__label { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: .5rem; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service { background: var(--ivory); padding: clamp(1.8rem, 3.5vw, 3rem); transition: background .5s var(--ease); }
.section--sand .service { background: var(--sand); }
.service:hover { background: var(--white); }
.section--sand .service:hover { background: var(--ivory); }
.service__no { font-size: .72rem; letter-spacing: .2em; color: var(--brass-deep); }
.service__icon { width: 34px; height: 34px; margin-top: 1.4rem; color: var(--ink); }
.service__icon svg { width: 100%; height: 100%; stroke-width: 1.2; }
.service h3 { margin-top: 1.1rem; font-size: clamp(1.3rem, 2vw, 1.6rem); }
.service p { margin-top: .8rem; color: var(--muted); font-size: .98rem; line-height: 1.7; }
.service .link-arrow { margin-top: 1.4rem; font-size: .74rem; }

/* ---------- Gallery / portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.6rem; }
.filters button {
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  padding: .55rem 1.1rem; border: 1px solid var(--line); border-radius: 100px;
  transition: all .3s var(--ease);
}
.filters button:hover { color: var(--ink); border-color: var(--graphite); }
.filters button.is-active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(.6rem, 1.4vw, 1.1rem); }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sand); cursor: pointer; grid-column: span 4; aspect-ratio: 3/4; }
.gallery__item.span-6 { grid-column: span 6; aspect-ratio: 3/2; }
.gallery__item.span-8 { grid-column: span 8; aspect-ratio: 16/10; }
.gallery__item.tall { aspect-ratio: 3/4; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.05s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.gallery__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.2rem; opacity: 0; transition: opacity .45s var(--ease);
  background: linear-gradient(180deg, rgba(20,16,14,0) 40%, rgba(20,16,14,0.72) 100%);
  color: var(--ivory);
}
.gallery__item:hover .gallery__overlay, .gallery__item:focus-visible .gallery__overlay { opacity: 1; }
/* W konkretnej kategorii podpis jest zbedny — zostaje zoom + ikona powiekszenia */
.gallery.is-category .gallery__overlay { display: none; }
.gallery__cat { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); }
.gallery__title { font-family: var(--font-display); font-size: 1.2rem; margin-top: .3rem; }
.gallery__plus { position: absolute; top: 1rem; right: 1rem; width: 38px; height: 38px; border:1px solid rgba(250,248,244,0.6); border-radius:50%; display:grid; place-items:center; opacity:0; transform: scale(.8); transition: all .45s var(--ease); }
.gallery__item:hover .gallery__plus { opacity:1; transform: scale(1); }
.gallery__plus svg { width:16px; height:16px; color: var(--ivory); }
@media (max-width: 900px){ .gallery__item, .gallery__item.span-6, .gallery__item.span-8 { grid-column: span 6; } }
@media (max-width: 560px){ .gallery__item, .gallery__item.span-6, .gallery__item.span-8 { grid-column: span 12; aspect-ratio: 4/3; } }

/* Masonry (strona Portfolio) — naturalne proporcje, bez przycinania */
.gallery--masonry { display: block; column-count: 3; column-gap: clamp(.6rem, 1.4vw, 1.1rem); }
.gallery--masonry .gallery__item { width: 100%; margin: 0 0 clamp(.6rem, 1.4vw, 1.1rem); aspect-ratio: auto; grid-column: auto; break-inside: avoid; }
.gallery--masonry .gallery__item img { height: auto; }
@media (max-width: 900px){ .gallery--masonry { column-count: 2; } }

/* Galeria justowana — rzedy o rownej wysokosci, pelne kadry bez ciecia (wymiary ustawia JS) */
.gallery--justified { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.gallery--justified .gallery__item { aspect-ratio: auto; grid-column: auto; flex: 0 0 auto; width: 320px; height: 240px; }
.gallery--justified .gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(14,11,10,0.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: min(92vw, 1100px); max-height: 82vh; object-fit: contain; border-radius: var(--radius); opacity: 0; transform: scale(.98); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.lightbox.is-open .lightbox__img { opacity: 1; transform: scale(1); }
.lightbox__cap { position: absolute; bottom: 1.6rem; left: 0; right: 0; text-align: center; color: rgba(250,248,244,0.75); font-size: .8rem; letter-spacing: .1em; }
.lightbox__cap .cat { color: var(--brass); text-transform: uppercase; letter-spacing: .18em; font-size: .68rem; display:block; margin-bottom:.3rem; }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border:1px solid rgba(250,248,244,0.3); border-radius:50%; display:grid; place-items:center; color: var(--ivory); transition: all .3s var(--ease); }
.lb-btn:hover { background: var(--ivory); color: var(--ink); }
.lb-prev { left: clamp(1rem, 3vw, 2.5rem); }
.lb-next { right: clamp(1rem, 3vw, 2.5rem); }
.lb-close { top: clamp(1rem,3vw,2rem); right: clamp(1rem,3vw,2rem); transform: none; width: 48px; height: 48px; }
.lb-btn svg { width: 20px; height: 20px; }
.lb-count { position: absolute; top: clamp(1.4rem,3vw,2.4rem); left: clamp(1rem,3vw,2.5rem); color: rgba(250,248,244,0.6); font-size: .8rem; letter-spacing: .15em; }
@media (max-width: 640px){ .lb-prev{ left:.5rem; } .lb-next{ right:.5rem; } .lb-btn{ width:44px; height:44px; } }

/* ---------- Testimonials ---------- */
.quote { max-width: 900px; margin-inline: auto; text-align: center; }
.quote__mark { font-family: var(--font-display); font-size: 5rem; line-height: .5; color: var(--brass); opacity: .5; }
.quote__text { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.3; margin-top: 1rem; letter-spacing: -0.01em; }
.quote__author { margin-top: 1.8rem; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.quote__author b { color: var(--ink); font-weight: 600; }
.dots { display: flex; justify-content: center; gap: .5rem; margin-top: 2.4rem; }
.dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: all .3s var(--ease); }
.dots button.is-active { background: var(--brass); width: 26px; border-radius: 100px; }

.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(2rem, 6vw, 5rem); margin-top: 4rem; opacity: .75; }
.logos span { font-family: var(--font-display); font-size: clamp(1.1rem,1.8vw,1.5rem); letter-spacing: .04em; color: var(--graphite); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); align-items: stretch; }
.plan { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.8rem, 3vw, 2.6rem); display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease); }
.section--sand .plan { background: var(--white); }
.plan:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(20,16,14,0.25); }
.plan--featured, .section--sand .plan--featured { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.plan--featured .plan__price, .plan--featured h3 { color: var(--ivory); }
.plan--featured .plan__feat { color: rgba(250,248,244,0.8); }
.plan--featured .plan__feat svg { color: var(--brass); }
.plan__badge { align-self: flex-start; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); background: var(--brass); padding: .35rem .8rem; border-radius: 100px; margin-bottom: 1.2rem; }
.plan h3 { font-size: 1.5rem; }
.plan__desc { color: var(--muted); font-size: .92rem; margin-top: .5rem; min-height: 2.6em; }
.plan--featured .plan__desc { color: rgba(250,248,244,0.7); }
.plan__price { font-family: var(--font-display); font-size: clamp(2.2rem,4vw,2.8rem); font-weight: 500; margin-top: 1.4rem; }
.plan__price small { font-family: var(--font-sans); font-size: .8rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display:block; margin-bottom:.3rem; }
.plan--featured .plan__price small { color: rgba(250,248,244,0.6); }
.plan__list { margin-top: 1.6rem; display: flex; flex-direction: column; gap: .85rem; flex-grow: 1; }
.plan__feat { display: flex; align-items: flex-start; gap: .7rem; font-size: .92rem; color: var(--graphite); }
.plan__feat svg { width: 18px; height: 18px; color: var(--brass-deep); flex-shrink: 0; margin-top: 3px; }
.plan .btn { margin-top: 2rem; justify-content: center; }
@media (max-width: 860px){ .pricing { grid-template-columns: 1fr; max-width: 460px; margin-inline:auto; } }

/* ---------- FAQ (accordion) ---------- */
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.4rem 0;
  font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-sans); font-weight: 300; font-size: 1.6rem; color: var(--brass-deep); transition: transform .35s var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); padding-bottom: 1.5rem; max-width: 64ch; }

/* ---------- Article (wpis) ---------- */
.article-head { padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 4rem)); }
.article-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 1.4rem; }
.article-meta .cat { color: var(--brass-deep); }
.article-cover { aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius); margin-top: clamp(2rem, 4vw, 3rem); background: var(--sand); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { max-width: 720px; margin-inline: auto; font-size: 1.12rem; line-height: 1.8; }
.prose > * + * { margin-top: 1.6rem; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 2.8rem; }
.prose h3 { font-size: 1.4rem; margin-top: 2rem; }
.prose p { color: var(--ink-soft); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose blockquote { border-left: 2px solid var(--brass); padding-left: 1.6rem; font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem,2.4vw,1.7rem); line-height: 1.4; color: var(--graphite); }
.prose ul { padding-left: 1.3rem; list-style: disc; color: var(--ink-soft); }
.prose li + li { margin-top: .5rem; }
.prose figure { margin-top: 2.4rem; }
.prose figure img { border-radius: var(--radius); width: 100%; }
.prose figcaption { font-size: .82rem; color: var(--muted); margin-top: .7rem; text-align: center; }

/* ---------- Blok statystyk / mini-wykres ---------- */
.statblock { background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); margin: 2.6rem 0; }
.statblock__eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-deep); }
.statblock h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-top: .7rem; }
.statblock__tag { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: var(--brass); padding: .2rem .55rem; border-radius: 100px; margin-left: .5rem; vertical-align: middle; }
.statblock__intro { color: var(--muted); margin-top: .6rem; font-size: .98rem; }
.stat-bars { display: flex; flex-direction: column; gap: 1.05rem; margin-top: 1.5rem; }
.stat-bar__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .4rem; }
.stat-bar__top span { font-size: .95rem; color: var(--graphite); }
.stat-bar__top b { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; color: var(--ink); }
.stat-bar__track { height: 12px; background: var(--sand-deep); border-radius: 100px; overflow: hidden; }
.stat-bar__fill { height: 100%; width: var(--pct); background: var(--brass); border-radius: 100px; animation: barGrow 1.1s var(--ease) both; }
@keyframes barGrow { from { width: 0; } to { width: var(--pct); } }
.statblock__source { font-size: .78rem; color: var(--muted); margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.statblock__source a { color: var(--brass-deep); text-decoration: underline; }

/* ---------- Journal ---------- */
.journal { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2.2rem); }
.post { display: flex; flex-direction: column; }
.post__media { aspect-ratio: 3/2; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post:hover .post__media img { transform: scale(1.05); }
.post__meta { margin-top: 1.1rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; gap: .8rem; align-items:center; }
.post__meta .cat { color: var(--brass-deep); }
.post h3 { margin-top: .7rem; font-size: 1.35rem; line-height: 1.2; transition: color .3s var(--ease); }
.post:hover h3 { color: var(--brass-deep); }
.post p { margin-top: .6rem; color: var(--muted); font-size: .95rem; }
@media (max-width: 880px){ .journal { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .journal { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 6vw, 5rem); }
.field { position: relative; margin-bottom: 1.6rem; }
.field label { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .55rem; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line);
  padding: .7rem 0; font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .3s var(--ease);
}
.section--ink .field input, .section--ink .field textarea, .section--ink .field select { color: var(--ivory); border-bottom-color: rgba(250,248,244,0.25); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--brass); }
.field textarea { resize: vertical; min-height: 120px; }
.field--error input, .field--error textarea { border-bottom-color: #B3503F; }
.field__err { display: none; color: #B3503F; font-size: .78rem; margin-top: .4rem; }
.field--error .field__err { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 1rem; }
.form-success { display:none; padding: 1.2rem 1.4rem; border:1px solid var(--brass); border-radius: var(--radius); background: rgba(176,141,87,0.08); color: var(--ink); margin-top: 1rem; }
.form-success.show { display:block; }

.contact-details { display: flex; flex-direction: column; gap: 1.8rem; }
.cdetail { display: flex; gap: 1rem; align-items: flex-start; }
.cdetail__icon { width: 42px; height: 42px; border:1px solid var(--line); border-radius: 50%; display:grid; place-items:center; flex-shrink:0; }
.cdetail__icon svg { width: 18px; height: 18px; color: var(--brass-deep); }
.section--ink .cdetail__icon { border-color: rgba(250,248,244,0.2); }
.section--ink .cdetail__icon svg { color: var(--brass); }
.cdetail__label { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cdetail__value { font-size: 1.05rem; margin-top: .25rem; }
.cdetail__value a:hover { color: var(--brass-deep); }
.socials { display: flex; gap: .7rem; margin-top: .5rem; }
.socials a { width: 42px; height: 42px; border:1px solid var(--line); border-radius: 50%; display:grid; place-items:center; transition: all .3s var(--ease); }
.socials a:hover { background: var(--ink); border-color: var(--ink); }
.socials a:hover svg { color: var(--ivory); }
.socials svg { width: 18px; height: 18px; color: var(--graphite); transition: color .3s var(--ease); }
.section--ink .socials a { border-color: rgba(250,248,244,0.2); }
.section--ink .socials svg { color: var(--ivory); }
@media (max-width: 820px){ .contact { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* ---------- Page hero (wewnętrzne strony) ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)); padding-bottom: clamp(2.5rem, 5vw, 4rem); background: var(--sand); }
.page-hero .display { font-size: clamp(2.5rem, 6vw, 4.6rem); }
.breadcrumb { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.4rem; }
.breadcrumb a:hover { color: var(--brass-deep); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--ivory); padding-top: clamp(4rem, 8vw, 7rem); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); padding-bottom: 4rem; border-bottom: 1px solid rgba(250,248,244,0.12); }
.footer__brand .brand__mark { color: var(--ivory); font-size: 1.8rem; }
.footer__logo { width: 210px; max-width: 62%; height: auto; margin-bottom: 1.1rem; filter: brightness(0) invert(1); opacity: .9; }
.footer__brand p { color: rgba(250,248,244,0.6); margin-top: 1.2rem; max-width: 32ch; font-size: .95rem; }
.footer__col h4 { font-family: var(--font-sans); font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); margin-bottom: 1.4rem; }
.footer__col a, .footer__col p { display: block; color: rgba(250,248,244,0.7); font-size: .95rem; padding: .35rem 0; transition: color .3s var(--ease); }
.footer__col a:hover { color: var(--ivory); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 2rem; font-size: .8rem; color: rgba(250,248,244,0.5); }
.footer__bottom a:hover { color: var(--ivory); }
.footer__socials { display:flex; gap: .8rem; margin-top: 1.6rem; }
.footer__socials a { width: 40px; height:40px; border:1px solid rgba(250,248,244,0.2); border-radius:50%; display:grid; place-items:center; transition: all .3s var(--ease); }
.footer__socials a:hover { background: var(--brass); border-color: var(--brass); }
.footer__socials a:hover svg { color: var(--ink); }
.footer__socials svg { width: 17px; height:17px; color: rgba(250,248,244,0.8); transition: color .3s var(--ease); }
@media (max-width: 820px){ .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer__top { grid-template-columns: 1fr; } }

/* ---------- Reveal animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

/* ---------- Language visibility ---------- */
[data-lang="en"] { display: none; }
html.lang-en [data-lang="en"] { display: revert; }
html.lang-en [data-lang="pl"] { display: none; }

/* ---------- Utilities ---------- */
.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; }
.text-center { text-align: center; }
.mt-cta { margin-top: clamp(2.5rem, 5vw, 4rem); }
.divider { height: 1px; background: var(--line); border: 0; }
.no-scroll { overflow: hidden; }

/* ---------- Responsive layout ---------- */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split--reverse .split__media { order: 0; }
  .services { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav, .header__actions .btn { display: none; }
  .burger { display: block; }
}
@media (min-width: 901px) {
  .drawer { display: none; }
}
@media (max-width: 760px) {
  :root { --header-h: 66px; }
  .hero__scroll { display: none; }
  .hero__inner { padding-bottom: clamp(2rem, 6vh, 4rem); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__scroll .line::after { display: none; }
}
