/* ════════════════════════════════════════════════════════════
   MOCNApracownia — premium redesign
   miękkie organiczne formy · ciepła paleta · płynne animacje
   ════════════════════════════════════════════════════════════ */

:root {
  --bg: #dee2dd;
  --bg-soft: #d6dcd4;
  --bg-card: #e7e7e2;
  --ink: #1b1f1f;
  --ink-soft: #556260;
  --ink-faint: #7d8986;
  --accent: #6b7e7d;
  --accent-deep: #4f5f5e;
  --accent-rgb: 107, 126, 125;
  --bg-rgb: 222, 226, 221;
  --dark-rgb: 27, 31, 31;
  --blob-primary-rgb: 83, 98, 99;
  --blob-secondary-rgb: 27, 31, 31;
  --accent-soft: rgba(107, 126, 125, 0.13);
  --dark: #1b1f1f;
  --dark-2: #536263;
  --line: rgba(27, 31, 31, 0.13);
  --on-dark: #efece8;
  --on-dark-soft: #cdc8bf;
  --on-dark-faint: #a29d95;
  --on-dark-faintest: #767169;
  --ff-head: 'Cormorant Garamond', Georgia, serif;
  --ff-body: 'DM Sans', Helvetica, sans-serif;
  --r-md: 22px;
  --r-lg: 36px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { user-select: none; }

::selection { background: var(--accent); color: #fff; }

/* ── śnieg (tylko motyw świąteczny; canvas dokłada site/snieg.js) ──
   Warstwa NAD plamami w tle (te mają z-index 0 w swoich sekcjach),
   a POD treścią i nawigacją — dlatego siedzi nisko i nie łapie kliknięć. */
#mp-snieg {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
}
/* ── grain ── */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 2000;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── preloader ── */
#loader {
  position: fixed; inset: 0; z-index: 3000;
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 1.4rem;
  transition: transform 0.9s var(--ease-soft), border-radius 0.9s var(--ease-soft);
  border-radius: 0 0 0 0;
}
#loader.done {
  transform: translateY(-100%);
  border-radius: 0 0 50% 50% / 0 0 8vh 8vh;
  pointer-events: none;
}
/* animacja i przezroczystość siedzą na WRAPPERZE (.mp-znak), nie na <img> —
   inaczej kropka z ::after nie brałaby w nich udziału i mrugałaby osobno */
#loader .mp-znak {
  opacity: 0;
  animation: loaderLogo 0.9s var(--ease-out) 0.1s forwards;
}
#loader img { height: 44px; width: auto; }
#loader .loader-line {
  width: 120px; height: 1px; background: rgba(255,255,255,0.15);
  position: relative; overflow: hidden;
}
#loader .loader-line::after {
  content: ''; position: absolute; inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: loaderBar 1s var(--ease-soft) 0.2s forwards;
}
@keyframes loaderLogo { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes loaderBar { to { transform: translateX(0); } }

/* ── custom cursor ── */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 2500;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 6px; height: 6px; background: var(--accent);
  transition: opacity 0.3s;
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  display: flex; align-items: center; justify-content: center;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
              background-color 0.35s, border-color 0.35s, opacity 0.3s;
  /* obrys żywego bloba zamiast statycznego kółka — morph jak plamy w tle.
     Animujemy TYLKO border-radius: transform ringa ustawia JS (śledzenie kursora)
     i keyframe z transformem by go nadpisał */
  border-radius: 58% 42% 38% 62% / 53% 51% 49% 47%;
  animation: cursorBlob 7s ease-in-out infinite alternate;
}
@keyframes cursorBlob {
  0%   { border-radius: 58% 42% 38% 62% / 53% 51% 49% 47%; }
  25%  { border-radius: 38% 62% 64% 36% / 60% 38% 62% 40%; }
  50%  { border-radius: 64% 36% 44% 56% / 42% 64% 36% 58%; }
  75%  { border-radius: 40% 60% 58% 42% / 62% 40% 60% 38%; }
  100% { border-radius: 60% 40% 36% 64% / 44% 58% 42% 56%; }
}
.cursor-ring span {
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; opacity: 0; transition: opacity 0.25s;
  font-family: var(--ff-body); white-space: nowrap;
}
.cursor-ring.grow {
  width: 92px; height: 92px;
  background: rgba(var(--dark-rgb), 0.82);
  border-color: transparent;
  backdrop-filter: blur(2px);
}
.cursor-ring.grow span { opacity: 1; }
@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ── nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4.5vw;
  height: 80px;
  transition: background-color 0.4s, box-shadow 0.4s, height 0.4s;
}
nav.scrolled {
  background: rgba(var(--bg-rgb), 0.88);
  backdrop-filter: blur(16px);
  height: 66px;
  box-shadow: 0 1px 0 var(--line);
}
/* ── logo: kropka przy „A" idzie za akcentem palety ──
   Plik SVG ma kropkę z zaszytym kolorem (fallback, gdyby CSS nie doszedł),
   ale <img> jest izolowany i zmienne strony do niego nie wchodzą. Dlatego
   kropkę dokłada nakładka: kółko pozycjonowane w % wymiarów logo (viewBox
   1477×393, środek 1371,8 / 212, r 22,1 + 10% zapasu na przykrycie oryginału).
   Owijaj każdy <img> logo w <span class="mp-znak">, inaczej kropka nie trafi. */
.mp-znak { position: relative; display: inline-block; line-height: 0; }
.mp-znak::after {
  content: ''; position: absolute; pointer-events: none;
  left: 91.232%; top: 47.758%; width: 3.292%; height: 12.372%;
  border-radius: 50%; background: var(--accent);
}
/* w stopce logo jest przygaszone opacity — kropka ma iść za nim */
.mp-znak img { display: block; }

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo { opacity: 0.85; transition: opacity 0.25s; }
.nav-logo img {
  height: 34px; width: auto; display: block;
  transition: height 0.4s;
}
/* logo ma kolorową kropkę → zamiast filtra CSS przełączamy dwa pliki
   (ciemny na jasnym tle / jasny na ciemnym), inaczej brightness() zjada akcent */
.nav-logo .logo-light { display: none; }
nav.scrolled .nav-logo img { height: 28px; }
.nav-logo:hover { opacity: 1; }

.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.74rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none;
  position: relative; padding: 0.3rem 0;
  transition: color 0.25s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-right { display: flex; align-items: center; gap: 1.4rem; }
.nav-cta {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.65rem 1.6rem;
  border: 1px solid var(--ink);
  border-radius: 100px;
  color: var(--ink); text-decoration: none;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.nav-cta:hover { background: var(--ink); color: var(--bg); }

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  z-index: 1200;
}
.menu-btn span {
  display: block; width: 26px; height: 1.5px; background: var(--ink);
  transition: transform 0.35s var(--ease-out), opacity 0.25s, background-color 0.3s;
}
.menu-btn.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.menu-btn.open span { background: #fff; }

/* mobile menu overlay */
.menu-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: var(--dark);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 9vw;
  clip-path: circle(0% at calc(100% - 58px) 40px);
  transition: clip-path 0.65s var(--ease-soft);
  pointer-events: none;
}
.menu-overlay.open { clip-path: circle(150% at calc(100% - 58px) 40px); pointer-events: all; }
.menu-overlay a {
  font-family: var(--ff-head);
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  font-weight: 300; color: var(--on-dark); text-decoration: none;
  padding: 0.45rem 0; line-height: 1.2;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.3s;
}
.menu-overlay.open a { opacity: 1; transform: none; }
.menu-overlay a:hover { color: var(--accent); font-style: italic; }
.menu-overlay a em { font-style: italic; color: var(--accent); }

/* menu otwarte: blokada scrolla strony pod spodem + ciemny top bar (nav
   przezroczysty → widać ciemne menu) + jasne logo na ciemnym tle.
   position:fixed (nie samo overflow:hidden) — iOS Safari ignoruje
   overflow:hidden na body; JS ustawia inline `top: -scrollY`. */
body.menu-open {
  position: fixed;
  left: 0; right: 0; width: 100%;
  overflow: hidden;
  background: var(--dark);   /* iOS nie honoruje dynamicznego theme-color → ciemne
                                tło dokumentu tintuje paski przeglądarki góra/dół */
}
body.menu-open nav,
body.menu-open nav.scrolled {
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.menu-open .nav-logo .logo-dark { display: none; }
body.menu-open .nav-logo { opacity: 1; }
body.menu-open .nav-logo .logo-light { display: block; }

/* ── reveal animations ── */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

.line-mask { display: block; overflow: hidden; }
.line-mask > span {
  display: block;
  transform: translateY(115%);
  transition: transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.in .line-mask > span, .line-mask.in > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .line-mask > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { animation-duration: 0.01s !important; }
}

/* ── hero ── */
#hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  padding: 110px 4.5vw 130px 8vw;
  gap: 4vw;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  width: 46vw; height: 46vw;
  max-width: 720px; max-height: 720px;
  left: -12vw; top: 16vh;
  background: rgba(var(--blob-primary-rgb), 0.15);
  border-radius: 58% 42% 38% 62% / 53% 51% 49% 47%;
  animation: blobMorph 12s ease-in-out infinite alternate;
  z-index: 0;
  will-change: transform, border-radius;
}
.hero-blob.b2 {
  left: auto; right: -16vw; top: -18vh;
  width: 38vw; height: 38vw;
  background: rgba(var(--blob-secondary-rgb), 0.08);
  animation-duration: 16s;
}
@keyframes blobMorph {
  0%   { border-radius: 58% 42% 38% 62% / 53% 51% 49% 47%; transform: translate(0%, 0%) rotate(0deg) scale(1); }
  25%  { border-radius: 38% 62% 64% 36% / 60% 38% 62% 40%; transform: translate(3%, -2%) rotate(3deg) scale(1.02); }
  50%  { border-radius: 64% 36% 44% 56% / 42% 64% 36% 58%; transform: translate(-2%, 3%) rotate(-2deg) scale(0.99); }
  75%  { border-radius: 40% 60% 58% 42% / 62% 40% 60% 38%; transform: translate(2%, 2%) rotate(2deg) scale(1.01); }
  100% { border-radius: 60% 40% 36% 64% / 44% 58% 42% 56%; transform: translate(-1%, -2%) rotate(-3deg) scale(1); }
}
/* trzecia plama — tylko wąskie ekrany (hero w 1 kolumnie); siedzi WEWNĄTRZ
   .hero-left, zakotwiczona do jego dołu, więc zawsze ląduje za statystykami.
   Skalowanie ODWROTNE do b1/b2: na progu 1020px startuje mała i ROŚNIE
   w miarę zwężania okna (na ~390px osiąga pełny rozmiar) — dzięki temu
   nie nakłada się na stare plamy przy średnich szerokościach */
.hero-blob.b3 { display: none; }
@media (max-width: 1020px) {
  .hero-blob.b3 {
    display: block;
    left: auto; top: auto;
    right: calc(9vw - 160px);
    bottom: calc(2vw - 40px);
    width: calc(480px - 28vw); height: calc(480px - 28vw);
    background: rgba(var(--blob-primary-rgb), 0.14);
    animation-duration: 14s;
    z-index: -1;
  }
}
/* strefa hero + marquee — wspólny kontener pozycjonujący dla plamy b4,
   żeby plama NIE ucinała się na granicy hero i płynęła pod napisami
   marquee (marquee ma przeźroczyste tło, teksty są nad plamą) */
.hero-zone {
  position: relative;
  /* clip-path zamiast overflow:hidden — boki/góra przycięte jak dawniej
     (bloby b1/b2 wystają poza viewport), ale DÓŁ otwarty: plama b4 płynie
     dalej pod łuk karty „O nas" (karta przykrywa ją swoim z-index:1) */
  overflow: visible;
  clip-path: inset(0 0 -340px 0);
}

/* czwarta plama — wypełnia pustą przestrzeń pod hero na wąskich ekranach
   (gdzie hero jest w 1 kolumnie). Skalowanie ODWROTNE: na progu 1020px mała,
   ROŚNIE przy zwężaniu okna do pełni na mobile, a powyżej 1020px znika.
   Siedzi w .hero-zone (nie w #hero!), zakotwiczona do dołu-lewej strefy —
   dzięki temu przechodzi pod marquee zamiast ucinać się na granicy hero. */
.hero-blob.b4 { display: none; }
@media (max-width: 1020px) {
  .hero-blob.b4 {
    display: block;
    left: calc(6vw - 120px); right: auto; top: auto;
    bottom: calc(6vw - 150px);
    width: calc(540px - 30vw); height: calc(540px - 30vw);
    background: rgba(var(--blob-primary-rgb), 0.14);
    animation-duration: 15s;
    z-index: 0;
  }
}

.hero-left { position: relative; z-index: 1; }

.eyebrow {
  font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: center; gap: 0.85rem;
  margin-bottom: 2rem;
}
.eyebrow::before { content: ''; width: 2.6rem; height: 1px; background: var(--accent); flex-shrink: 0; }

.hero-title {
  font-family: var(--ff-head);
  font-size: clamp(2.9rem, 5.4vw, 5.6rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 2.4rem;
}
.hero-title em { font-style: italic; color: var(--accent); }

.hero-sub {
  font-size: 1.02rem; color: var(--ink-soft);
  max-width: 40ch; line-height: 1.8;
  margin-bottom: 3rem;
}

.hero-actions { display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.7rem;
  background: var(--ink); color: var(--bg);
  padding: 1.05rem 2.4rem;
  font-size: 0.76rem; letter-spacing: 0.13em; text-transform: uppercase;
  text-decoration: none;
  border-radius: 100px;
  position: relative; overflow: hidden;
  transition: color 0.35s;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: var(--accent);
  border-radius: 100px;
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}
.btn-primary:hover::before { transform: none; }
.btn-primary span { position: relative; z-index: 1; }
.btn-primary:hover { color: #fff; }

.btn-ghost {
  font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.6rem;
  transition: color 0.25s;
}
.btn-ghost::after { content: '→'; transition: transform 0.3s var(--ease-out); }
.btn-ghost:hover { color: var(--ink); }
.btn-ghost:hover::after { transform: translateX(5px); }

.hero-stats {
  display: flex; gap: 3rem;
  margin-top: 4.2rem;
}
.stat-num {
  display: block;
  font-family: var(--ff-head); font-size: 2.6rem; font-weight: 300;
  color: var(--ink); line-height: 1;
}
.stat-num sup { font-size: 1.3rem; color: var(--accent); }
.stat-label {
  display: block; font-size: 0.64rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-faint); margin-top: 0.45rem;
}

.hero-visual { position: relative; z-index: 1; align-self: stretch; display: flex; align-items: center; }
.hero-arch {
  width: 100%;
  aspect-ratio: 4 / 5.1;
  max-height: 76vh;
  border-radius: 999px 999px var(--r-lg) var(--r-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 90px -30px rgba(33, 29, 24, 0.35);
}
.hero-arch img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.12);
  animation: heroKen 14s var(--ease-soft) forwards;
}
@keyframes heroKen { to { transform: scale(1); } }

.hero-arch-caption {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  background: rgba(var(--dark-rgb), 0.5); backdrop-filter: blur(10px);
  color: var(--on-dark);
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.55rem 1.3rem; border-radius: 100px;
  white-space: nowrap;
}

.scroll-hint {
  position: absolute; bottom: 2.2rem; left: 8vw;
  display: flex; align-items: center; gap: 0.9rem;
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-faint);
}
@media (max-height: 740px) { .scroll-hint { display: none; } }
.scroll-hint .wheel {
  width: 1px; height: 44px; background: var(--line); position: relative; overflow: hidden;
}
.scroll-hint .wheel::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 40%;
  background: var(--accent);
  animation: scrollDrop 1.8s var(--ease-soft) infinite;
}
@keyframes scrollDrop { 0% { transform: translateY(-110%); } 100% { transform: translateY(280%); } }

/* ── marquee ──
   tło PRZEŹROCZYSTE (plama b4 prześwituje pod napisami), z-index nad plamą.
   Przesuw robi JS w app.js (scrollLeft + rAF, jak pasek „Wizualizacje") —
   CSS-owa animacja translateX na bardzo szerokim pasku gubiła rendering
   na mobile (napisy znikały). NIE wracać do animation tutaj. */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1.5rem 0;
  background: transparent;
  position: relative; z-index: 1;
}
.marquee-track {
  display: flex; gap: 3.5rem; width: max-content;
}
.marquee span {
  font-family: var(--ff-head);
  font-size: 1.45rem; font-weight: 300; font-style: italic;
  color: var(--ink-soft); white-space: nowrap;
  display: flex; align-items: center; gap: 3.5rem;
}
.marquee span::after {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); display: block; opacity: 0.55;
}
/* ── sections ── */
section { padding: 8rem 8vw; position: relative; }

.section-head { margin-bottom: 4rem; max-width: 760px; }
.section-title {
  font-family: var(--ff-head);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 300; line-height: 1.14;
  letter-spacing: -0.01em;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-sub {
  color: var(--ink-soft); max-width: 56ch;
  margin-top: 1.4rem; font-size: 0.98rem; line-height: 1.8;
}

/* ── o nas ── */
/* karta „O nas" z bocznymi marginesami jak #uslugi; razem z #realizacje tworzy
   jedną „taflę" bg-soft (góra zaokrąglona tu, dół w #realizacje).
   position+z-index: karta musi przykryć plamę b4 wystającą z .hero-zone */
#onas { background: var(--bg-soft); border-radius: var(--r-lg) var(--r-lg) 0 0; margin: 0 1.2rem; position: relative; z-index: 1; padding-bottom: 2rem; }
#onas .inner {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 6vw; align-items: center;
}
.onas-visual { position: relative; }
.onas-arch {
  border-radius: 999px 999px var(--r-lg) var(--r-lg);
  overflow: hidden; aspect-ratio: 4/5;
}
.onas-arch img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1.2s var(--ease-out);
}
.onas-visual:hover .onas-arch img { transform: scale(1.04); }
.onas-badge {
  position: absolute; right: -1.8rem; bottom: 2.4rem;
  background: var(--dark); color: var(--on-dark);
  border-radius: 50%;
  width: 132px; height: 132px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 0.1rem;
  animation: floaty 5s ease-in-out infinite;
  box-shadow: 0 24px 50px -18px rgba(33,29,24,.45);
}
.onas-badge strong { font-family: var(--ff-head); font-size: 1.9rem; font-weight: 400; line-height: 1; }
.onas-badge small { font-size: 0.54rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

#onas .text-col p { color: var(--ink-soft); margin-bottom: 1.15rem; font-size: 0.96rem; line-height: 1.85; }
#onas .text-col p:last-of-type { margin-bottom: 2.4rem; }

/* Pastylki zespołu: zawsze jeden wiersz na szerokość kolumny tekstu.
   Ostatnia pastylka dopełnia wiersz (flex:1), pozostałe = zawartość.
   Rozmiary wewnątrz skalują się od szerokości wiersza (cqi), żeby na
   mobile wszystko zmieściło się obok siebie bez zawijania. */
.team-row { display: flex; gap: clamp(0.5rem, 1.4vw, 1.2rem); margin-top: 2.8rem; flex-wrap: nowrap; width: 100%; container-type: inline-size; }
.team-card {
  display: flex; align-items: center;
  gap: 0.95rem; gap: clamp(0.4rem, 2.2cqi, 0.95rem);
  padding: 1rem 1.5rem 1rem 1rem;
  padding: clamp(0.35rem, 1.7cqi, 1rem) clamp(0.7rem, 3cqi, 1.5rem) clamp(0.35rem, 1.7cqi, 1rem) clamp(0.35rem, 1.7cqi, 1rem);
  background: var(--bg);
  border-radius: 100px;
  flex: 0 1 auto; min-width: 0;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.team-card:last-child { flex: 1 1 auto; }
.team-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -16px rgba(33,29,24,.25); }
.team-avatar {
  width: 46px; height: 46px;
  width: clamp(30px, 9cqi, 46px); height: clamp(30px, 9cqi, 46px);
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-head); font-size: 1.1rem; font-size: clamp(0.78rem, 2.6cqi, 1.1rem);
  color: var(--accent); font-weight: 500;
  flex-shrink: 0;
}
.team-name { font-size: 0.86rem; font-size: clamp(0.6rem, 2.6cqi, 0.86rem); font-weight: 500; line-height: 1.3; white-space: nowrap; }
.team-role { font-size: 0.68rem; font-size: clamp(0.5rem, 2cqi, 0.68rem); color: var(--ink-soft); letter-spacing: 0.06em; white-space: nowrap; }

/* ── realizacje: sticky stack ── */
/* jedna tafla z #onas — zmniejszone paddingi na styku (16rem → 4rem łącznie) */
#realizacje { background: var(--bg-soft); padding-top: 2rem; padding-bottom: 5rem; margin: 0 1.2rem; border-radius: 0 0 var(--r-lg) var(--r-lg); }
#realizacje .section-head { display: flex; align-items: flex-end; justify-content: space-between; max-width: none; gap: 2rem; flex-wrap: wrap; }

.proj-card {
  position: sticky;
  top: calc(86px + var(--i) * 22px);
  height: min(74vh, 700px);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 2.6rem;
  cursor: pointer;
  box-shadow: 0 30px 70px -28px rgba(33, 29, 24, 0.45);
  will-change: transform;
  background: var(--dark);
}
.proj-card:last-of-type { margin-bottom: 0; }
.proj-card img {
  position: absolute; inset: 0;
  width: 100%; height: 112%;
  object-fit: cover;
  will-change: transform;
}
.proj-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(var(--dark-rgb), 0.74) 0%, rgba(var(--dark-rgb), 0.12) 42%, transparent 62%);
}
.proj-num {
  position: absolute; top: 2rem; right: 2.6rem; z-index: 2;
  font-family: var(--ff-head); font-style: italic; font-weight: 300;
  font-size: clamp(3rem, 6vw, 5.5rem);
  color: rgba(255, 255, 255, 0.34);
  line-height: 1;
}
.proj-info {
  position: absolute; left: 2.8rem; bottom: 2.5rem; right: 2.8rem; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
}
.proj-cat {
  font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.5rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.proj-cat::before { content: ''; width: 1.6rem; height: 1px; background: var(--accent); }
.proj-title {
  font-family: var(--ff-head);
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  font-weight: 300; color: #fff; line-height: 1.15;
}
.proj-open {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 0.7rem;
  color: #fff; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 0.75rem 1.6rem; border-radius: 100px;
  backdrop-filter: blur(6px);
  transition: background-color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.proj-card:hover .proj-open { background: var(--accent); border-color: var(--accent); }

.proj-more { display: flex; justify-content: center; padding-top: 4.5rem; }

/* ── wizualizacje: strip ── */
#wizualizacje {
  background: var(--bg);
  padding-left: 0; padding-right: 0;
  overflow: hidden;
}
#wizualizacje .section-head { padding: 0 8vw; display: flex; align-items: flex-end; justify-content: space-between; max-width: none; gap: 2rem; flex-wrap: wrap; }

.strip {
  display: flex; gap: 1.4rem;
  overflow-x: auto;
  padding: 1rem 8vw 2.4rem;
  scrollbar-width: none;
  cursor: grab;
}
.strip::-webkit-scrollbar { display: none; }
.strip.dragging { cursor: grabbing; }
.strip-item {
  flex: 0 0 auto;
  width: clamp(280px, 30vw, 460px);
  aspect-ratio: 4/3;
  border-radius: var(--r-md);
  position: relative;
  transform: scale(0.96);
  transition: transform 1s var(--ease-out), box-shadow 1s var(--ease-out);
}
/* wewnętrzna maska — clip-path obejmuje zdjęcie + podpis;
   cień i ramka spot::after zostają na zewnętrznym .strip-item */
.strip-mask {
  position: relative;
  width: 100%; height: 100%;
  clip-path: inset(0 round var(--r-md));
  transform: translateZ(0); /* stabilna warstwa GPU — bez flashu przy hover img */
}
.strip-item.arch .strip-mask {
  clip-path: inset(0 round 999px 999px var(--r-md) var(--r-md));
}
.strip-item.round .strip-mask {
  clip-path: circle(50%);
}
.strip-item.arch { border-radius: 999px 999px var(--r-md) var(--r-md); aspect-ratio: 4/4.6; align-self: center; width: clamp(230px, 22vw, 340px); }
.strip-item.round { border-radius: 50%; aspect-ratio: 1/1; align-self: center; width: clamp(230px, 22vw, 340px); }
/* znaczek filmu na kafelku projektu z linkiem YouTube */
.proj-card.has-video::before, .strip-item.has-video::before {
  content: '▶'; position: absolute; right: 1rem; top: 1rem; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--dark-rgb), 0.55); backdrop-filter: blur(8px);
  color: #fff; font-size: 0.72rem; padding-left: 3px;
  pointer-events: none;
  transition: opacity 0.4s;
}
/* film gra w kafelku — badge ▶ niepotrzebny */
.proj-card.video-live::before, .strip-item.video-live::before { opacity: 0; }

/* film YouTube grający w kafelku (bez dźwięku, startuje gdy kafelek na ekranie) */
.tile-video {
  position: absolute; inset: 0;
  overflow: hidden; border-radius: inherit;
  pointer-events: none;          /* klik przechodzi na kafelek (otwiera galerię) */
  opacity: 0; transition: opacity 0.8s;
}
.tile-video.on { opacity: 1; }
.tile-video iframe {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  border: 0; background: #000;
  /* wymiary nadaje JS (initTileVideos): „cover" 16:9 + zapas na pasek tytułu
     i kontrolki YT poza kadrem (container queries zawodziły na mobile → letterbox) */
  width: 100%; height: 100%;
}
.strip-item.round.has-video::before { right: 50%; top: 1.6rem; transform: translateX(50%); }
.strip-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.8s var(--ease-out);
  pointer-events: none;
}
.strip-item:hover img { transform: scale(1.06); }
.strip-item .strip-label {
  position: absolute; left: 1.2rem; bottom: 1.1rem;
  background: rgba(var(--dark-rgb), 0.55); backdrop-filter: blur(8px);
  color: var(--on-dark); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.45rem 1rem; border-radius: 100px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.35s, transform 0.35s var(--ease-out);
}
.strip-item:hover .strip-label { opacity: 1; transform: none; }

/* ── wyróżnienie kafelka na środku paska ── */
.strip-item.spot {
  transform: scale(1.06);
  z-index: 2;
  box-shadow: 0 40px 80px -32px rgba(28, 24, 19, 0.65);
}
.strip-item.spot img { transform: scale(1.08); }
.strip-item.spot .strip-label,
.strip-item.spot:hover .strip-label { opacity: 0; }
.strip-item.spot::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  animation: spotGlow 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes spotGlow {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
body.motion-subtle .strip-item.spot::after { animation: none; opacity: 0.5; }

/* podpis jak w przeglądarce realizacji: kategoria + tytuł na gradiencie */
.strip-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 3rem 1.5rem 1.25rem;
  background: linear-gradient(to top, rgba(var(--dark-rgb), 0.78), rgba(var(--dark-rgb), 0));
  display: flex; flex-direction: column; gap: 0.3rem;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.55s, transform 0.7s var(--ease-out);
  pointer-events: none;
}
.strip-cap-cat {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
}
.strip-cap-cat::before { content: ''; width: 1.6rem; height: 1px; background: var(--accent); }
.strip-cap-title {
  font-family: var(--ff-head); font-style: italic; font-weight: 400;
  font-size: clamp(1.15rem, 1.7vw, 1.55rem); line-height: 1.15;
  color: var(--on-dark);
}
.strip-item.spot .strip-cap { opacity: 1; transform: none; }

/* na okrągłej masce podpis wycentrowany i podniesiony — róg koła by go uciął */
.strip-item.round .strip-cap {
  align-items: center; text-align: center;
  padding: 3rem 2.4rem 2.6rem;
  background: linear-gradient(to top, rgba(var(--dark-rgb), 0.82) 0%, rgba(var(--dark-rgb), 0.18) 52%, rgba(var(--dark-rgb), 0) 68%);
}
.strip-item.round .strip-label {
  left: 50%; bottom: 2.2rem; white-space: nowrap;
  transform: translateX(-50%) translateY(8px);
}
.strip-item.round:hover .strip-label { transform: translateX(-50%); }

/* sąsiedzi delikatnie przygaszeni, środek świeci */
.strip-item { will-change: transform; }
.strip.has-spot .strip-item:not(.spot) { filter: brightness(0.85) saturate(0.88); }
.strip-item { transition: transform 1s var(--ease-out), box-shadow 1s var(--ease-out), filter 0.8s; }

.strip-progress {
  margin: 0.4rem 8vw 0;
  height: 2px; background: var(--line); border-radius: 2px;
  position: relative; overflow: hidden;
}
.strip-progress i {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 20%; background: var(--accent); border-radius: 2px;
  transition: transform 0.2s linear, width 0.2s;
}

/* ── usługi: accordion ── */
#uslugi { background: var(--bg-soft); border-radius: var(--r-lg); margin: 0 1.2rem; }
/* gdy pasek „Wizualizacje" jest wyłączony, tafla „Usługi" dostaje górny odstęp,
   żeby nie zlewała się z dolną krawędzią tafli „Realizacje" */
body.no-wizual #uslugi { margin-top: 3rem; }

.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head {
  width: 100%;
  display: grid; grid-template-columns: 4rem 1fr auto;
  align-items: center; gap: 1.5rem;
  padding: 1.9rem 0.5rem;
  background: none; border: none; cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: padding 0.35s var(--ease-out);
}
.acc-head:hover { padding-left: 1.2rem; }
.acc-num {
  font-family: var(--ff-head); font-style: italic;
  font-size: 1.05rem; color: var(--accent);
}
.acc-title {
  font-family: var(--ff-head);
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  font-weight: 300; color: var(--ink); line-height: 1.25;
  transition: color 0.3s;
}
.acc-item.open .acc-title, .acc-head:hover .acc-title { color: var(--accent-deep); }
.acc-icon {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 300; color: var(--ink-soft);
  transition: transform 0.45s var(--ease-out), background-color 0.3s, color 0.3s, border-color 0.3s;
  flex-shrink: 0;
}
.acc-item.open .acc-icon { transform: rotate(45deg); background: var(--ink); color: var(--bg); border-color: var(--ink); }
.acc-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.55s var(--ease-soft);
}
.acc-body-inner {
  display: grid; grid-template-columns: 1fr 280px;
  gap: 3rem; align-items: center;
  padding: 0.2rem 0.5rem 2.4rem calc(4rem + 1.5rem + 0.5rem);
}
/* usługa bez przypisanego zdjęcia — sam tekst na pełną szerokość */
.acc-body-inner.no-img { grid-template-columns: 1fr; }
.acc-body p { color: var(--ink-soft); font-size: 0.94rem; line-height: 1.85; max-width: 58ch; }
.acc-body a {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin-top: 1.3rem;
  font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--accent); text-decoration: none;
}
.acc-body a::after { content: '→'; transition: transform 0.3s; }
.acc-body a:hover::after { transform: translateX(4px); }
.acc-img {
  border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4/3;
}
.acc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.uslugi-cta {
  margin-top: 3.6rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  background: var(--dark);
  border-radius: var(--r-md);
  padding: 2.4rem 3rem;
  flex-wrap: wrap;
}
.uslugi-cta p {
  font-family: var(--ff-head); font-size: 1.5rem; font-weight: 300;
  color: var(--on-dark); line-height: 1.4;
}
.uslugi-cta p em { font-style: italic; color: var(--accent); }

/* ── opinie ── */
#opinie { text-align: center; padding-bottom: 9rem; }
#opinie .section-head { margin-left: auto; margin-right: auto; }
.quote-mark {
  font-family: var(--ff-head); font-size: 5rem; line-height: 0.6;
  color: var(--accent); opacity: 0.5; display: block; margin-bottom: 1.6rem;
}
.op-stage {
  position: relative; max-width: 760px; margin: 0 auto; min-height: 90px;
  transition: height 0.55s var(--ease-out);
}
.op-slide {
  position: absolute; top: 0; left: 0; right: 0;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  pointer-events: none;
}
.op-slide.active { opacity: 1; transform: none; pointer-events: all; }
.op-text {
  font-family: var(--ff-head); font-style: italic; font-weight: 300;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.55; color: var(--ink);
  margin-bottom: 2rem;
}
.op-who { font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.op-who b { color: var(--accent); font-weight: 500; }
.op-dots { display: flex; gap: 0.7rem; justify-content: center; margin-bottom: 2.2rem; }
.op-dot {
  width: 30px; height: 4px; border-radius: 4px;
  background: var(--line); border: none; cursor: pointer; padding: 0;
  transition: background-color 0.3s, width 0.3s;
}
.op-dot.active { background: var(--accent); width: 48px; }

/* ── kontakt ── */
#kontakt {
  background: var(--dark);
  color: var(--on-dark-soft);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding-top: 7.5rem;
  overflow: hidden;
  position: relative;
}
#kontakt .hero-blob {
  left: auto; right: -14vw; top: -10vh;
  background: rgba(var(--blob-primary-rgb), 0.12);
}
#kontakt .section-title { color: var(--on-dark); }
#kontakt .eyebrow { color: var(--accent); }
#kontakt .eyebrow::before { background: var(--accent); }

.kontakt-inner {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 6vw;
  margin-top: 3rem; position: relative; z-index: 1;
}
.kontakt-info > p { font-size: 0.96rem; color: var(--on-dark-faint); margin-bottom: 2.6rem; line-height: 1.85; max-width: 44ch; }
.kontakt-detail { display: flex; flex-direction: column; gap: 1.3rem; }
.kontakt-item { display: flex; align-items: baseline; gap: 1.1rem; font-size: 0.92rem; color: var(--on-dark-soft); }
.kontakt-item a { color: var(--on-dark-soft); text-decoration: none; transition: color 0.25s; }
.kontakt-item a:hover { color: var(--accent); }
.kontakt-item-label {
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); min-width: 5.2rem;
}

.kontakt-form { display: flex; flex-direction: column; gap: 1.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-field label {
  font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--on-dark-faint);
}
.form-field input, .form-field textarea, .form-field select {
  background: var(--dark-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--on-dark);
  padding: 0.95rem 1.2rem;
  font-family: var(--ff-body); font-size: 0.92rem; font-weight: 300;
  outline: none; resize: none;
  border-radius: 16px;
  transition: border-color 0.3s, background-color 0.3s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--accent); background: var(--dark-2);
}
.form-field textarea { min-height: 130px; }
.btn-submit {
  align-self: flex-start;
  background: var(--accent); color: #fff;
  padding: 1.05rem 2.8rem;
  font-size: 0.76rem; letter-spacing: 0.13em; text-transform: uppercase;
  font-family: var(--ff-body);
  border: none; cursor: pointer;
  border-radius: 100px;
  transition: background-color 0.3s, transform 0.25s var(--ease-out);
}
.btn-submit:hover { background: var(--accent-deep); transform: translateY(-2px); }

/* ── footer ── */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.4rem 8vw;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
/* tylko logo w stopce strony — NIE każdy <footer> (rolka viewera to też footer!) */
body > footer .mp-znak { opacity: 0.55; }
body > footer img { height: 26px; width: auto; display: block; }
.footer-copy { font-size: 0.7rem; color: var(--on-dark-faintest); }
.footer-copy a { color: var(--on-dark-faintest); text-decoration: none; transition: color 0.2s; }
.footer-copy a:hover { color: var(--accent); }

/* ── strefa pracowni (dyskretne logowanie w stopce) ── */
.fadmin { display: flex; align-items: center; gap: 0.7rem; min-height: 34px; }
.fadmin-ankieta {
  color: var(--on-dark-faintest); font-size: 0.68rem; text-decoration: none;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding-right: 0.9rem; border-right: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.25s;
}
.fadmin-ankieta:hover { color: var(--accent); }
.fadmin-mark {
  background: none; border: none; cursor: pointer;
  color: var(--on-dark-faintest); font-size: 0.78rem; line-height: 1;
  font-family: var(--ff-body); letter-spacing: 0.12em;
  opacity: 0.55; padding: 0.4rem; border-radius: 100px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
  transition: opacity 0.3s, color 0.3s, transform 0.4s var(--ease-out);
}
.fadmin-mark:hover { opacity: 1; color: var(--accent); transform: rotate(90deg); }
.fadmin-mark.in:hover { transform: none; }
.fadmin-mark.in span { font-size: 0.66rem; text-transform: uppercase; }
.fadmin-form {
  display: flex; align-items: center; gap: 0.5rem;
  max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap;
  transition: max-width 0.6s var(--ease-out), opacity 0.4s;
}
.fadmin-form.open { max-width: 560px; opacity: 1; }
.fadmin-form input {
  background: var(--dark-2); border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--on-dark); border-radius: 100px; padding: 0.45rem 1rem;
  font-family: var(--ff-body); font-size: 0.74rem; font-weight: 300;
  width: 124px; outline: none; transition: border-color 0.3s;
}
.fadmin-form input:focus { border-color: var(--accent); }
.fadmin-form button {
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  border-radius: 100px; padding: 0.48rem 1.1rem;
  font-family: var(--ff-body); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background-color 0.25s;
}
.fadmin-form button:hover { background: var(--accent-deep); }
.fadmin-msg { font-size: 0.68rem; color: var(--accent); min-width: 0; }
@media (max-width: 700px) {
  .fadmin { width: 100%; }
  .fadmin-form input { width: 38%; min-width: 0; }
}

/* ── lightbox ── */
.lb {
  position: fixed; inset: 0; z-index: 1500;
  background: rgba(var(--dark-rgb), 0.96);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s;
}
.lb.open { opacity: 1; pointer-events: all; }
.lb-img-wrap {
  max-width: 86vw; max-height: 74vh;
  display: flex; align-items: center; justify-content: center;
}
.lb img {
  max-width: 86vw; max-height: 74vh; object-fit: contain;
  border-radius: 14px; display: block;
  transform: scale(0.96); opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.4s;
}
.lb.open img.ready { transform: none; opacity: 1; }
.lb-caption { margin-top: 1.5rem; text-align: center; }
.lb-cat { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.lb-title { font-family: var(--ff-head); font-size: 1.5rem; color: #fff; font-weight: 300; margin-top: 0.3rem; }
.lb-link {
  display: inline-block; margin-top: 1rem;
  font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: #fff; border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.55rem 1.4rem; border-radius: 100px; text-decoration: none;
  transition: border-color 0.25s, color 0.25s;
}
.lb-link:hover { border-color: var(--accent); color: var(--accent); }
.lb-btn {
  position: fixed;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff; font-size: 1.05rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.25s, border-color 0.25s;
}
.lb-btn:hover { background: var(--accent); border-color: var(--accent); }
.lb-close { top: 1.6rem; right: 2rem; }
.lb-prev { left: 1.8rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.8rem; top: 50%; transform: translateY(-50%); }
.lb-counter {
  position: fixed; bottom: 1.8rem; left: 50%; transform: translateX(-50%);
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-faint);
}

/* ── tweaks ── */
#tweaks-panel {
  display: none;
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 50px rgba(33, 29, 24, 0.22);
  padding: 1.4rem;
  z-index: 1900; width: 256px;
  font-family: var(--ff-body); font-size: 0.82rem;
}
#tweaks-panel h4 {
  font-family: var(--ff-head); font-size: 1.05rem; font-weight: 500;
  margin-bottom: 1.1rem; border-bottom: 1px solid var(--line); padding-bottom: 0.6rem;
}
.tweak-row { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.95rem; }
.tweak-row:last-child { margin-bottom: 0; }
.tweak-row label { font-size: 0.62rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-soft); }
.tweak-row input[type="color"] { width: 100%; height: 32px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; padding: 2px; background: #fff; }
.tweak-row input[type="range"] { width: 100%; accent-color: var(--accent); }
.tweak-row select { width: 100%; padding: 0.45rem 0.6rem; border: 1px solid var(--line); border-radius: 8px; font-family: var(--ff-body); font-size: 0.8rem; background: #fff; }

/* ── responsive ── */
@media (max-width: 1020px) {
  #hero { grid-template-columns: 1fr; padding-top: 120px; gap: 3rem; }
  .hero-visual { max-width: 480px; }
  .scroll-hint { display: none; }
  .acc-body-inner { grid-template-columns: 1fr; padding-left: 0.5rem; }
  .acc-img { max-width: 380px; }
}
@media (max-width: 860px) {
  section { padding: 5.5rem 6vw; }
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: flex; }
  #onas .inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .onas-visual { max-width: 420px; }
  .onas-badge { right: 0.5rem; width: 110px; height: 110px; }
  .kontakt-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .proj-card { height: 64vh; }
  .proj-info { left: 1.6rem; right: 1.6rem; bottom: 1.6rem; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  .proj-num { right: 1.6rem; top: 1.4rem; }
  .hero-stats { gap: 2rem; flex-wrap: wrap; }
  .lb-prev, .lb-next { display: none; }
  .uslugi-cta { padding: 2rem; }
}
