/* ==========================================================================
   Pewne Wnętrze - wersja testowa (nowoczesny układ)
   Marka bez zmian: granat #0a1628, złoto #d4af37, logo 1:1 jak na stronie.
   ========================================================================== */

:root {
  --bg: #0a1628;
  --bg-2: #0d2240;
  --bg-3: #112a4d;
  --bg-deep: #07101f;
  --gold: #d4af37;
  --gold-2: #b8952a;
  --gold-3: #f0d060;
  --gold-soft: rgba(212, 175, 55, .1);
  --line: rgba(212, 175, 55, .18);
  --line-soft: rgba(255, 255, 255, .07);
  --text: #ffffff;
  --text-2: #f1f3f7;
  --muted: #b6becb;

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --logo: 'Quicksand', sans-serif;

  --container: 1240px;
  --nav-h: 78px;
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(212, 175, 55, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, .08) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.025em;
  margin: 0 0 .5em;
  color: var(--text);
  text-wrap: balance;
}

/* akcent w nagłówku: ta sama czcionka co nagłówek, tylko złota */
h1 em, h2 em, h3 em {
  font-style: normal;
  color: var(--gold);
}

p { margin: 0 0 1em; text-wrap: pretty; }

::selection { background: rgba(212, 175, 55, .35); color: #fff; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.container-wide { width: min(1440px, 100% - 48px); margin-inline: auto; }

.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;
}

/* ---------- Logo 1:1 ze strony (znak + nazwa) ---------- */
.plogo-mark { width: 38px; height: 38px; min-width: 38px; background: rgba(212,175,55,.08); border: 1px solid rgba(212,175,55,.3); border-radius: 9px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 7px; }
.plogo-mark span { display: block; border-radius: 2px; }
.plogo-mark span:nth-child(1), .plogo-mark span:nth-child(4) { background: #d4af37; }
.plogo-mark span:nth-child(2), .plogo-mark span:nth-child(3) { background: #b8952a; }
.plogo-text { display: flex; flex-direction: column; line-height: 1.3; }
.plogo-name { font-family: var(--logo); font-weight: 700; font-size: 15px; letter-spacing: .03em; text-transform: uppercase; color: #d4af37; }
.plogo-sub { font-family: var(--logo); font-size: 9.5px; color: var(--muted); letter-spacing: .08em; }

/* Animacja logo: raz po wczytaniu strony kafelki znaku układają się po kolei,
   potem odsłania się nazwa. Klasę .logo-intro zdejmuje main.js po zakończeniu,
   żeby nie kolidowała z obrotem znaku po najechaniu. */
.plogo-mark { transition: transform .6s var(--ease); }
.brand:hover .plogo-mark { transform: rotate(90deg); }
.js .logo-intro .plogo-mark span { animation: logo-tile .55s var(--ease) both; }
.js .logo-intro .plogo-mark span:nth-child(1) { animation-delay: .15s; }
.js .logo-intro .plogo-mark span:nth-child(2) { animation-delay: .28s; }
.js .logo-intro .plogo-mark span:nth-child(4) { animation-delay: .41s; }
.js .logo-intro .plogo-mark span:nth-child(3) { animation-delay: .54s; }
.js .logo-intro .plogo-name { animation: logo-name .7s var(--ease) .62s both; }
.js .logo-intro .plogo-sub { animation: logo-sub .7s ease .95s both; }
@keyframes logo-tile { from { opacity: 0; transform: scale(.25) rotate(-25deg); } to { opacity: 1; transform: none; } }
@keyframes logo-name { from { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateX(-6px); } to { opacity: 1; clip-path: inset(0 0 0 0); transform: none; } }
@keyframes logo-sub { from { opacity: 0; letter-spacing: .3em; } to { opacity: 1; letter-spacing: .08em; } }

/* ---------- Dekoracje marki ---------- */
.deco-tiles {
  position: absolute; width: 300px; height: 300px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 9px;
  transform: rotate(14deg); opacity: .06; pointer-events: none; z-index: 0;
}
.deco-tiles span { display: block; background: #d4af37; border-radius: 7px; }
.deco-tiles span:nth-child(2), .deco-tiles span:nth-child(3) { background: #b8952a; }
.deco-tr { top: -60px; right: -60px; }
.deco-bl { bottom: -90px; left: -90px; width: 240px; height: 240px; opacity: .045; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  background: var(--gold); color: #0a1628;
  border: 1.5px solid var(--gold);
  font-weight: 700; font-size: 15px; line-height: 1.2; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 12px 32px -12px rgba(212, 175, 55, .6);
  transition: transform .25s var(--ease), background .2s, box-shadow .25s, color .2s, border-color .2s;
}
.btn:hover { background: var(--gold-3); border-color: var(--gold-3); transform: translateY(-2px); box-shadow: 0 18px 38px -14px rgba(212, 175, 55, .75); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, .22); box-shadow: none; }
.btn-ghost:hover { background: rgba(212, 175, 55, .08); border-color: var(--gold); color: var(--gold); box-shadow: none; }
.btn-sm { padding: 11px 20px; font-size: 14px; }

/* ---------- Eyebrow / nagłówki sekcji ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
.center .eyebrow::after { content: ''; width: 28px; height: 1px; background: var(--gold); }

/* dół sekcji ma więcej powietrza niż góra: treść nie siada na linii następnej sekcji */
.section { position: relative; padding: clamp(40px, 4.5vw, 64px) 0 clamp(60px, 6.8vw, 100px); overflow: clip; }
/* wszystkie sekcje mają to samo tło: granat strony z siatką (klasa .section-alt nie zmienia już wyglądu) */
.section-head { max-width: 760px; margin-bottom: clamp(20px, 2.2vw, 28px); position: relative; z-index: 1; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head h2 { font-size: clamp(26px, 2.7vw, 36px); margin-bottom: 10px; }
.section-head p { font-size: 15px; color: var(--text-2); margin: 0; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; max-width: none; }
.section-head-row > div { max-width: 700px; }

/* ==========================================================================
   Nawigacja
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.nav.scrolled, .nav.open, .nav.solid {
  background: rgba(10, 22, 40, .86);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: rgba(212, 175, 55, .14);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 9px 13px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--text-2); text-decoration: none;
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); background: rgba(212, 175, 55, .08); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-wa {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(212, 175, 55, .35); color: var(--gold);
  transition: background .2s, color .2s;
}
.nav-wa:hover { background: var(--gold); color: #0a1628; }
.nav-wa svg { width: 20px; height: 20px; }
.nav-burger {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, .3); background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0;
}
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--gold); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav.open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile-cta { display: none; }

@media (max-width: 1240px) {
  .nav-burger { display: flex; }
  .nav-actions .btn { display: none; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 24px 24px 40px;
    background: rgba(10, 22, 40, .98);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { font-size: 22px; font-weight: 700; padding: 14px 16px; border-radius: 14px; color: var(--text); }
  .nav-mobile-cta { display: block; margin-top: 16px; }
  .nav-links .nav-mobile-cta .btn,
  .nav-links .nav-mobile-cta .btn:hover { width: 100%; font-size: 16px; padding: 16px 24px; border-radius: 999px; background: var(--gold); color: #0a1628; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + clamp(32px, 3.6vw, 52px)) 0 clamp(36px, 4vw, 56px);
}
/* wysokość jak w hero e-Obserwacji: ok. 740 px razem z paskiem menu, a nie cały ekran */
@media (min-width: 1101px) {
  .hero { min-height: 740px; min-height: min(740px, 100svh); }
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; opacity: .42; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(212, 175, 55, .14), transparent 62%),
    linear-gradient(90deg, rgba(10, 22, 40, .97) 0%, rgba(10, 22, 40, .86) 42%, rgba(10, 22, 40, .6) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10, 22, 40, 0) 34%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: clamp(36px, 5.5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.1; letter-spacing: -.03em; margin-bottom: 20px; }
.hero .lede { font-size: clamp(15.5px, 1.2vw, 17px); color: var(--text-2); max-width: 560px; margin-bottom: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 0; }
.hero .hero-cta { display: inline-grid; grid-template-columns: 1fr 1fr; }

/* ---------- Karta "Bez niespodzianek" (złota linia u góry, lista odhaczana) ---------- */
.hero-visual { position: relative; width: 100%; }
.hcard {
  position: relative; isolation: isolate; overflow: hidden;
  border: 1px solid rgba(212, 175, 55, .24); border-radius: 18px;
  background: #0b1a30;
  box-shadow: 0 44px 80px -46px rgba(0, 0, 0, .9);
}
.hcard::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 3px; z-index: 3;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hcard-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
/* zdjęcie jest już przyciemnione w pliku, więc nakładka tylko lekka (jak na obecnej stronie) */
.hcard::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 16, 30, .26), rgba(8, 16, 30, .5)); }
.hcard-body { position: relative; padding: clamp(30px, 3.4vw, 46px) clamp(26px, 3.8vw, 54px) clamp(30px, 3.2vw, 42px); }
.hcard-sep { display: block; width: 36px; height: 2px; background: var(--gold); opacity: .85; margin-bottom: 16px; transition: width .6s var(--ease) .2s; }
.hcard-title { font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--gold); margin: 0 0 12px; }
.hcard-desc { font-size: 14.5px; line-height: 1.75; color: var(--text); margin: 0 0 24px; text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.hcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hcard-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.hcard-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; color: var(--text); transition: color .4s ease var(--d, 0ms); }

/* Animacja karty (gra raz, po pojawieniu się karty na ekranie):
   1. kafelki przy punktach obracają się po kolei na stronę z ptaszkiem,
      w kolorach logo (złoty, ciemne złoto, granatowy ptaszek);
   2. cztery kafelki przelatują w prawo i układają znak logo, jeszcze z ptaszkami;
   3. ptaszki na znaku znikają i odsłania się nazwa.
   Stan bazowy w CSS = stan końcowy (tak wygląda bez JS i przy wyłączonych
   animacjach); .js + brak .is-on = stan przed animacją. Start przelotu
   kafelków (--dx, --dy, --s) wylicza main.js z położenia kafelków na liście. */
.hcard-list li:nth-child(1) { --d: 400ms; --tile: #d4af37; }
.hcard-list li:nth-child(2) { --d: 780ms; --tile: #b8952a; }
.hcard-list li:nth-child(3) { --d: 1160ms; --tile: #b8952a; }
.hcard-list li:nth-child(4) { --d: 1540ms; --tile: #d4af37; }
.chk {
  position: relative; flex: 0 0 20px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 4px;
  transform: perspective(120px) rotateY(0deg); transition: transform .6s ease-in-out var(--d, 0ms);
}
.chk::before {
  content: ''; position: absolute; inset: 0; border-radius: 4px;
  background-color: var(--tile, #d4af37); box-shadow: inset 0 0 0 1.5px var(--tile, #d4af37);
  transition: background-color 0s linear calc(var(--d, 0ms) + 300ms), box-shadow 0s linear calc(var(--d, 0ms) + 300ms);
}
.chk svg, .hl-mark svg { position: relative; z-index: 1; width: 14px; height: 14px; fill: none; stroke: #0a1628; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chk svg { transition: opacity 0s linear calc(var(--d, 0ms) + 300ms); }

/* znak logo po prawej stronie listy (proporcje jak .plogo-mark w menu) */
.hcard-logo { --L: 2250ms; flex: 0 0 116px; width: 116px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hl-mark { position: relative; width: 68px; height: 68px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 12px; margin-bottom: 9px; }
.hl-mark::before {
  content: ''; position: absolute; inset: 0; border-radius: 15px;
  background: rgba(212, 175, 55, .08); border: 1px solid rgba(212, 175, 55, .3);
  transition: opacity .5s ease calc(var(--L) + 950ms);
}
.hl-mark span {
  position: relative; z-index: 1; display: grid; place-items: center; border-radius: 4px; background: #d4af37;
  transition: transform .8s cubic-bezier(.5, 0, .2, 1) var(--ld, 0ms), opacity 0s linear var(--ld, 0ms);
}
.hl-mark span:nth-child(2), .hl-mark span:nth-child(3) { background: #b8952a; }
.hl-mark span:nth-child(1) { --ld: var(--L); }
.hl-mark span:nth-child(2) { --ld: calc(var(--L) + 110ms); }
.hl-mark span:nth-child(3) { --ld: calc(var(--L) + 220ms); }
.hl-mark span:nth-child(4) { --ld: calc(var(--L) + 330ms); }
.hl-mark svg { width: 13px; height: 13px; opacity: 0; transition: opacity .45s ease calc(var(--L) + 1500ms); }
.hl-name {
  font-family: var(--logo); font-weight: 700; font-size: 12.5px; line-height: 1.3; letter-spacing: .03em; text-transform: uppercase;
  color: #d4af37; white-space: nowrap; clip-path: inset(0 0 0 0);
  transition: clip-path .7s var(--ease) calc(var(--L) + 1900ms), visibility 0s linear calc(var(--L) + 1900ms);
}
.hl-sub {
  font-family: var(--logo); font-size: 8.5px; line-height: 1.4; letter-spacing: .08em; color: var(--muted); white-space: nowrap; clip-path: inset(0 0 0 0);
  transition: clip-path .7s var(--ease) calc(var(--L) + 2250ms), visibility 0s linear calc(var(--L) + 2250ms);
}

/* stan przed animacją */
.js .hcard:not(.is-on) .hcard-list li { color: var(--muted); }
.js .hcard:not(.is-on) .hcard-sep { width: 0; }
.js .hcard:not(.is-on) .chk { transform: perspective(120px) rotateY(180deg); }
.js .hcard:not(.is-on) .chk::before { background-color: transparent; box-shadow: inset 0 0 0 1.5px rgba(212, 175, 55, .4); }
.js .hcard:not(.is-on) .chk svg { opacity: 0; }
.js .hcard:not(.is-on) .hl-mark::before { opacity: 0; }
.js .hcard:not(.is-on) .hl-mark span { opacity: 0; transform: translate(var(--dx, 0px), var(--dy, 0px)) scale(var(--s, 1)); }
.js .hcard:not(.is-on) .hl-mark svg { opacity: 1; }
.js .hcard:not(.is-on) .hl-name, .js .hcard:not(.is-on) .hl-sub { visibility: hidden; clip-path: inset(0 100% 0 0); }
.hcard.no-anim, .hcard.no-anim *, .hcard.no-anim *::before, .hcard.no-anim *::after { transition: none !important; }

/* ---------- Pasek przewijany ---------- */
.ticker {
  position: relative; overflow: hidden; padding: 20px 0;
  border-block: 1px solid rgba(212, 175, 55, .14);
  background: rgba(13, 34, 64, .55);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
/* pasek przesuwa się ok. 7 s od pojawienia się na ekranie (klasę .run dodaje main.js),
   pod koniec zwalnia i zostaje nieruchomy */
.ticker-track { display: flex; width: max-content; }
.js .ticker.run .ticker-track { animation: ticker-once 7s linear both; }
.ticker-group { display: flex; align-items: center; }
.ticker-group span {
  display: inline-flex; align-items: center; gap: 30px; padding-right: 30px;
  font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--text-2); white-space: nowrap;
}
.ticker-group span::after { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); opacity: .8; }
/* równe tempo przez pierwsze 5 s, potem płynne wyhamowanie do zera */
@keyframes ticker-once {
  0% { transform: translateX(0); animation-timing-function: linear; }
  75% { transform: translateX(-390px); animation-timing-function: cubic-bezier(.2, .37, .4, 1); }
  100% { transform: translateX(-460px); }
}

/* ==========================================================================
   O nas + liczby
   ========================================================================== */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about-copy h2 { font-size: clamp(26px, 2.7vw, 36px); margin-bottom: 16px; }
.about-copy p { color: var(--text-2); font-size: 15px; line-height: 1.7; margin-bottom: .8em; }
.about-copy .btn { margin-top: 10px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat {
  position: relative; overflow: hidden;
  padding: 20px 20px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(17, 42, 77, .9), rgba(13, 34, 64, .5));
  border: 1px solid var(--line-soft);
  transition: border-color .3s, transform .3s var(--ease);
}
.stat:hover { border-color: rgba(212, 175, 55, .35); transform: translateY(-3px); }
.stat strong { display: block; font-weight: 800; font-size: clamp(30px, 2.8vw, 38px); letter-spacing: -.03em; line-height: 1; color: var(--gold); margin-bottom: 8px; }
.stat span { font-size: 13.5px; color: var(--text-2); line-height: 1.45; display: block; }
.stat span b { color: var(--text); display: block; font-size: 14.5px; }

/* ==========================================================================
   Oferta (zakładki usług - znaczniki ADMIN:* zachowane dla panelu)
   ========================================================================== */
.svc { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 32px; align-items: stretch; position: relative; z-index: 1; }
.svc-side { min-width: 0; }
.svc-side .section-head { margin-bottom: 20px; }
.svc-side .section-head h2 { font-size: clamp(26px, 2.5vw, 33px); margin-bottom: 12px; }
.svc-side .section-head h2 em { display: block; }
/* na komputerze akapit jest wyrównany do obu krawędzi kolumny, tak jak zakładki pod nim */
.svc-side .section-head p { font-size: 15px; line-height: 1.6; }
@media (min-width: 1101px) {
  .svc-side .section-head p, .proc .section-head p, .crew .section-head p { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
}
.svc-nav {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
  counter-reset: svc;
}
.svc-nav li { counter-increment: svc; margin: 0; padding: 0; }
.svc-nav a {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 16px; border-radius: 13px;
  border: 1px solid var(--line-soft);
  background: rgba(13, 34, 64, .5);
  color: var(--text-2); font-weight: 600; font-size: 14.5px; line-height: 1.3;
  text-decoration: none; cursor: pointer;
  transition: border-color .2s, background .25s, color .2s, transform .25s var(--ease);
}
.svc-nav a::before {
  content: counter(svc, decimal-leading-zero);
  font-size: 12px; font-weight: 800; letter-spacing: .08em;
  color: var(--gold); opacity: .6; min-width: 20px;
}
.svc-nav a:hover { border-color: rgba(212, 175, 55, .35); color: var(--text); transform: translateX(3px); }
.svc-nav a.pwt-active {
  background: linear-gradient(120deg, rgba(212, 175, 55, .18), rgba(212, 175, 55, .04));
  border-color: rgba(212, 175, 55, .55); color: var(--text);
}
.svc-nav a.pwt-active::before { opacity: 1; }

.svc-card {
  display: flex; flex-direction: column;
  border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 34, 64, .92), rgba(13, 34, 64, .6));
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .8);
}
.svc-media { position: relative; flex: 0 0 auto; height: 136px; overflow: hidden; background: var(--bg-2); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .45s, transform 1.2s var(--ease); }
.svc-media img.swap { opacity: 0; transform: scale(1.04); }
.svc-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 34, 64, .05) 30%, rgba(13, 34, 64, .96) 100%); }
.pwt-content { flex: 1; display: grid; padding: 0 clamp(18px, 2vw, 26px) clamp(18px, 2vw, 22px); margin-top: -30px; position: relative; z-index: 1; }
.pwt-pane { grid-area: 1 / 1; display: flex; flex-direction: column; visibility: hidden; opacity: 0; transition: opacity .35s; min-width: 0; }
.pwt-pane.pwt-active { visibility: visible; opacity: 1; }
.pwt-quote { font-size: clamp(20px, 1.9vw, 25px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--text); margin: 0 0 10px; text-wrap: balance; }
.pwt-text { color: var(--text-2); font-size: 15px; line-height: 1.6; }
.pwt-text b, .pwt-text strong { color: var(--text); }
/* bez JS: punkty jeden pod drugim */
.pwt-text .pwt-li { display: flex; gap: 10px; margin: 0 0 8px; }
.pwt-text .pwt-li::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); margin-top: 9px; flex-shrink: 0; }
/* po wzbogaceniu przez JS (main.js): wstęp, kafelki, a tekst zamykający zawsze przy dolnej krawędzi karty */
.pwt-text[data-enhanced] { flex: 1; display: flex; flex-direction: column; }
.pwt-intro { font-size: 14.5px; line-height: 1.6; color: var(--text-2); margin: 0 0 14px; }
.pwt-outro { font-size: 13px; line-height: 1.55; color: var(--muted); margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line-soft); }
/* wąskie okno komputera: lewa kolumna węższa, żeby opisy kafelków dalej mieściły się w 2 liniach */
@media (min-width: 1101px) and (max-width: 1199px) {
  .svc { grid-template-columns: 300px minmax(0, 1fr); gap: 24px; }
}
/* przy kolumnie 380 px ostatnia linia akapitu jest prawie pełna, więc też dochodzi do krawędzi */
@media (min-width: 1200px) {
  .svc-side .section-head p { text-align-last: justify; }
}
/* równa geometria wszystkich zakładek: nagłówek 1 linia, wstęp 3 linie, zakończenie 2 linie */
@media (min-width: 1101px) {
  /* lewa kolumna ma tę samą wysokość co karta: zakładki rozciągają się do jej dolnej krawędzi */
  .svc-side { display: flex; flex-direction: column; }
  .svc-nav { flex: 1; }
  .svc-nav li { flex: 1; display: flex; }
  .svc-nav a { flex: 1; }
  .pwt-quote { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pwt-intro { min-height: 4.8em; }
  .pwt-outro { min-height: calc(3.1em + 13px); }
}
.pwt-li-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-bottom: 14px; }
.pwt-li-grid .pwt-li {
  margin: 0; padding: 6px 12px 7px; border-radius: 11px; gap: 10px;
  background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 255, 255, .055);
  transition: border-color .2s, background .2s;
}
.pwt-li-grid .pwt-li:hover { border-color: rgba(212, 175, 55, .3); background: rgba(212, 175, 55, .05); }
.pwt-li-grid .pwt-li::before { width: 6px; height: 6px; margin-top: 7px; }
.pwt-li-body { font-size: 14.5px; line-height: 1.5; }
.pwt-li-grid .pwt-li-body { flex: 1; min-width: 0; font-size: 14px; line-height: 1.45; }
.pwt-li-grid .pwt-li-body strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; margin-bottom: 1px; }
.pwt-li-desc { color: var(--text-2); font-size: 14px; }
/* każdy kafelek: tytuł w 1 linii i opis w 2 liniach. Teksty są pisane na 2 linie
   (pomiar: _tools/pomiar-kafelkow.js), a min-height i przycięcie pilnują równej
   wysokości kafelków także tam, gdzie opis wyszedłby krótszy albo dłuższy */
.pwt-li-grid .pwt-li-desc {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden; line-height: 1.4; min-height: 2.8em; font-size: 12.5px;
  -webkit-hyphens: auto; hyphens: auto;
}
.pwt-li-grid .pwt-li-cta {
  text-decoration: none; color: inherit;
  border-color: rgba(212, 175, 55, .45);
  background: linear-gradient(120deg, rgba(212, 175, 55, .16), rgba(212, 175, 55, .03));
}
.pwt-li-grid .pwt-li-cta .pwt-li-desc { color: var(--gold); font-weight: 600; }
.pwt-li-grid .pwt-li-cta:hover { border-color: var(--gold); background: linear-gradient(120deg, rgba(212, 175, 55, .24), rgba(212, 175, 55, .06)); }

/* ==========================================================================
   Realizacje - galeria
   ========================================================================== */
/* sekcja o połowę niższa niż pierwotnie: 6 kolumn w 2 rzędach zamiast 4 kolumn w 3 rzędach */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 170px; grid-auto-flow: dense; gap: 12px; position: relative; z-index: 1; }
.g-item {
  position: relative; margin: 0; border-radius: 14px; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line-soft);
  cursor: zoom-in; padding: 0; text-align: left; color: inherit;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
.g-item:hover img { transform: scale(1.06); }
.g-item figcaption, .g-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 12px 10px;
  background: linear-gradient(180deg, transparent, rgba(6, 12, 24, .88));
  font-size: 12.5px; line-height: 1.35; font-weight: 600; color: #fff;
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .35s var(--ease);
}
.g-cap small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.g-item:hover .g-cap, .g-item:focus-visible .g-cap { opacity: 1; transform: none; }
@media (hover: none) { .g-cap { opacity: 1; transform: none; } }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 72px 72px 90px;
  background: rgba(4, 9, 18, .94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lb-cap { position: absolute; left: 0; right: 0; bottom: 28px; text-align: center; color: var(--text-2); font-size: 15px; padding: 0 20px; }
.lb-btn {
  position: absolute; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(13, 34, 64, .8); border: 1px solid rgba(212, 175, 55, .35); color: var(--gold);
  transition: background .2s, color .2s;
}
.lb-btn:hover { background: var(--gold); color: #0a1628; }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Proces
   ========================================================================== */
/* "Jak pracujemy" (.proc) i "Nasza ekipa" (.crew): nagłówek po lewej, w tej samej kolumnie
   co nagłówek oferty, treść po prawej. Etapy to pionowa oś: w każdym wierszu numer, tytuł
   i opis w trzech równych kolumnach. */
.proc, .crew { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 32px; align-items: center; position: relative; z-index: 1; }
.proc .section-head, .crew .section-head { margin-bottom: 0; }
.proc .section-head h2, .crew .section-head h2 { font-size: clamp(26px, 2.5vw, 33px); margin-bottom: 12px; }
.proc .section-head h2 em, .crew .section-head h2 em { display: block; }
.proc .section-head p, .crew .section-head p { font-size: 15px; line-height: 1.6; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; position: relative; z-index: 1; }
.steps::before {
  content: ''; position: absolute; top: 22px; bottom: 22px; left: 22px; width: 1px;
  background: linear-gradient(180deg, var(--gold), rgba(212, 175, 55, .12));
}
.step { position: relative; display: grid; grid-template-columns: 44px 190px minmax(0, 1fr); gap: 0 18px; align-items: center; }
.step-num {
  position: relative; z-index: 1;
  width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--gold); border: 1px solid var(--gold);
  font-size: 17px; font-weight: 800; color: #0a1628;
}
.step h3 { font-size: 17px; letter-spacing: -.01em; margin: 0; }
.step p { font-size: 15px; line-height: 1.55; color: var(--text-2); margin: 0; }
@media (min-width: 1101px) and (max-width: 1199px) {
  .proc { grid-template-columns: 300px minmax(0, 1fr); gap: 24px; }
  .step { grid-template-columns: 44px 170px minmax(0, 1fr); }
}

/* ==========================================================================
   Zespół
   ========================================================================== */
/* karty osób mają być szerokie, dlatego lewa kolumna jest tu węższa niż w ofercie,
   a nagłówek odrobinę mniejszy, żeby "jedno miejsce kontaktu" zostało w jednej linii */
.crew { grid-template-columns: 320px minmax(0, 1fr); gap: 28px; }
.crew .section-head h2 { font-size: clamp(24px, 2.15vw, 29px); }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; position: relative; z-index: 1; }
.member {
  display: flex; flex-direction: column; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, rgba(17, 42, 77, .85), rgba(13, 34, 64, .55));
  border: 1px solid var(--line-soft);
  transition: border-color .3s, transform .35s var(--ease);
}
.member:hover { border-color: rgba(212, 175, 55, .35); transform: translateY(-4px); }
.member-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .8s var(--ease); }
.member:hover .member-photo img { transform: scale(1.04); }
.member-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(13, 34, 64, .9)); }
.member-role {
  position: absolute; left: 12px; bottom: 10px; z-index: 1;
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #0a1628; background: var(--gold); border-radius: 999px; padding: 4px 9px;
}
.member-photo.placeholder {
  display: grid; place-items: center; align-content: center; gap: 14px;
  background:
    radial-gradient(420px 260px at 70% 20%, rgba(212, 175, 55, .12), transparent 70%),
    linear-gradient(rgba(212, 175, 55, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, .05) 1px, transparent 1px),
    var(--bg-2);
  background-size: auto, 34px 34px, 34px 34px, auto;
}
.member-photo.placeholder .mono { font-weight: 800; font-size: 64px; letter-spacing: -.04em; line-height: .9; color: var(--gold); }
.member-photo.placeholder .soon { font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.member-body { padding: 15px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.member-body h3 { font-size: 20px; margin-bottom: 2px; }
.member-exp { font-size: 13px; font-weight: 600; color: var(--gold); margin-bottom: 8px; }
.member-body p { font-size: 14px; line-height: 1.55; color: var(--text-2); margin-bottom: 11px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: auto 0 0; padding: 2px 0 0; }
.chips li { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(212, 175, 55, .3); color: var(--gold); background: rgba(212, 175, 55, .05); }
/* poniżej 1200 px trzy karty obok nagłówka byłyby za wąskie: nagłówek idzie nad karty */
@media (max-width: 1199px) {
  .crew { grid-template-columns: 1fr; gap: 24px; }
  .member-photo { aspect-ratio: 1 / 1; }
}

/* ==========================================================================
   Kalkulator - oprawa (sam kalkulator 1:1 z produkcji, style #klb bez zmian)
   ========================================================================== */
.calc-section { padding: clamp(28px, 3.4vw, 48px) 0 clamp(48px, 5.6vw, 84px); }
.calc-shell {
  border-radius: 30px; overflow: hidden;
  border: 1px solid rgba(212, 175, 55, .22);
  box-shadow: 0 50px 100px -60px rgba(0, 0, 0, .9);
}
.calc-shell #klb { background: linear-gradient(180deg, #0c1d36, #0a1628) !important; padding: 52px clamp(16px, 3vw, 40px) 36px !important; }
.calc-shell #klb > *:not(.k-grid-bg):not(.k-tiles):not(.k-bars) { max-width: 100% !important; }
.calc-shell #klb .kh h1 { font-weight: 800 !important; letter-spacing: -.03em !important; font-size: clamp(28px, 3.4vw, 40px) !important; }
.calc-shell #klb .kh h1 em { font-style: normal !important; }
.calc-shell #custom-html-1b { scroll-margin-top: var(--nav-h); }
/* kółko "ƒ" ze wzorem ilości - ten sam kształt co "?", złoty akcent */
#klb .krow-tip.krow-fx { border-color: rgba(212, 175, 55, .45) !important; color: #d4af37 !important; font-family: Georgia, 'Times New Roman', serif !important; font-style: italic !important; font-size: 10px !important; font-weight: 400 !important; cursor: help !important; }
#klb .krow-tip.krow-fx:hover { background: rgba(212, 175, 55, .12) !important; }
/* wyłączone pomieszczenie dodaje się do wyceny kliknięciem w całą belkę (js/main.js) */
#klb .kroom.off .kroom-hd { cursor: pointer !important; }

/* ==========================================================================
   Blog - karty (wspólne dla strony głównej i /blog/)
   ========================================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; z-index: 1; }
.blog-card {
  display: flex; flex-direction: column; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, rgba(17, 42, 77, .8), rgba(13, 34, 64, .55));
  border: 1px solid var(--line-soft);
  text-decoration: none; color: inherit;
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
.blog-card:hover { transform: translateY(-5px); border-color: rgba(212, 175, 55, .45); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .9); }
.blog-card[hidden] { display: none; }
.blog-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.blog-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.blog-card:hover .blog-cover img { transform: scale(1.05); }
.blog-cover.graphic, .blog-cover.planks,
.article-cover.graphic, .article-cover.planks { display: grid; place-items: center; }
.blog-cover.graphic, .article-cover.graphic {
  background:
    radial-gradient(360px 220px at 75% 15%, rgba(212, 175, 55, .16), transparent 70%),
    linear-gradient(rgba(212, 175, 55, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, .06) 1px, transparent 1px),
    #0c1d36;
  background-size: auto, 30px 30px, 30px 30px, auto;
}
.blog-cover.planks, .article-cover.planks {
  background:
    radial-gradient(360px 220px at 75% 15%, rgba(212, 175, 55, .18), transparent 70%),
    repeating-linear-gradient(90deg, rgba(212, 175, 55, .0) 0 58px, rgba(212, 175, 55, .22) 58px 60px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .0) 0 118px, rgba(212, 175, 55, .12) 118px 120px),
    linear-gradient(135deg, #13325a, #0a1628);
}
.cover-ico { width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center; background: rgba(10, 22, 40, .7); border: 1px solid rgba(212, 175, 55, .45); color: var(--gold); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cover-ico svg { width: 40px; height: 40px; }
.blog-card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.blog-card-meta, .article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.blog-card-meta { margin-bottom: 10px; }
.blog-tag { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #0a1628; background: var(--gold); border-radius: 999px; padding: 4px 11px; }
.blog-date { font-size: 13px; color: var(--muted); }
.blog-card-title { font-size: 17.5px; font-weight: 800; letter-spacing: -.015em; line-height: 1.3; color: var(--text); margin-bottom: 8px; text-wrap: balance; }
.blog-card-lede { font-size: 13.5px; line-height: 1.6; color: var(--text-2); margin: 0 0 14px; }
.blog-card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--gold); }
.blog-card-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.blog-card:hover .blog-card-link svg { transform: translateX(4px); }

/* ==========================================================================
   FAQ (po lewej) + kontakt (po prawej) w jednej sekcji
   ========================================================================== */
.faq-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 430px); gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.faq-col { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; z-index: 1; }
.faq-col .section-head { margin-bottom: 14px; }

/* Rozwijanie jak na stronie Studio: kliknięcie w pytanie chowa pozostałe,
   a odpowiedź zajmuje resztę wysokości listy, więc blok zawsze kończy się
   równo z kartą kontaktu. Drugie kliknięcie (w pytanie albo w odpowiedź)
   przywraca listę. Na wąskim ekranie zwykły akordeon. Obsługa: main.js. */
.faq-list { flex: 1; display: flex; flex-direction: column; min-height: 0; border-top: 1px solid var(--line-soft); }
.faq-item { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid var(--line-soft); }
.faq-question {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 13px 4px; font-family: var(--font); font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--text);
  transition: color .2s;
}
.faq-question:hover, .faq-item.open .faq-question { color: var(--gold); }
.faq-question .plus {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, .4);
  background:
    linear-gradient(var(--gold), var(--gold)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 1.5px 10px no-repeat;
  transition: transform .3s var(--ease), background-color .2s;
}
.faq-item.open .faq-question .plus { transform: rotate(45deg); background-color: rgba(212, 175, 55, .1); }
.faq-answer { color: var(--text-2); font-size: 14.5px; line-height: 1.65; cursor: pointer; }
.faq-answer p { margin: 0; padding: 0 44px 14px 4px; }
.js .faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
/* tryb skupiony (szeroki ekran): widać tylko otwarte pytanie i jego odpowiedź */
.faq-list.expanded .faq-item { display: none; }
.faq-list.expanded .faq-item.open { display: flex; flex: 1; min-height: 0; justify-content: flex-start; }
.faq-list.expanded .faq-item.open .faq-question { flex-shrink: 0; padding-top: 18px; font-size: 17px; }
.faq-list.expanded .faq-item.open .faq-answer { flex: 1; min-height: 0; max-height: none; overflow-y: auto; font-size: 15.5px; animation: faq-in .3s ease both; }
@keyframes faq-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Kontakt: karta po prawej ---------- */
.contact-card {
  position: relative; z-index: 1; overflow: hidden;
  display: flex; flex-direction: column;
  border-radius: 22px; border: 1px solid rgba(212, 175, 55, .28);
  background: linear-gradient(135deg, #10284a, #0a1628 70%);
  scroll-margin-top: calc(var(--nav-h) + 12px);
}
.contact-copy { padding: 26px 26px 22px; position: relative; }
.contact-copy .eyebrow { margin-bottom: 12px; }
.contact-copy h2 { font-size: clamp(22px, 2.1vw, 27px); margin-bottom: 8px; }
.contact-copy > p { color: var(--text-2); font-size: 14px; line-height: 1.6; margin: 0; }
.contact-list { list-style: none; margin: 14px 0 16px; padding: 0; display: grid; gap: 2px; }
.contact-item { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 7px 10px; margin: 0 -10px; border-radius: 12px; transition: background .2s; }
.contact-item:hover { background: rgba(212, 175, 55, .07); }
.contact-ic { width: 38px; height: 38px; min-width: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(212, 175, 55, .4); color: var(--gold); }
.contact-ic svg { width: 17px; height: 17px; }
.contact-txt small { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact-txt span { font-size: 15px; font-weight: 700; color: var(--text); }
.contact-item:hover .contact-txt span { color: var(--gold); }
.contact-copy .btn { padding: 12px 20px; font-size: 14px; }
.contact-map { position: relative; flex: 1; min-height: 150px; border-top: 1px solid rgba(212, 175, 55, .18); background: var(--bg-2); }
.contact-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: invert(.92) hue-rotate(180deg) saturate(.7) brightness(.95); }
.contact-map-badge {
  position: absolute; left: 14px; bottom: 14px; z-index: 1;
  padding: 8px 12px; border-radius: 11px;
  background: rgba(10, 22, 40, .88); border: 1px solid rgba(212, 175, 55, .35);
  font-size: 12.5px; font-weight: 600; color: var(--text);
}
.contact-map-badge b { color: var(--gold); }
.contact-map:not(.is-live) .contact-map-badge { display: none; }
/* kafel w miejscu mapy, dopóki nie ma zgody na wczytanie mapy Google */
.map-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 14px; text-align: center; text-decoration: none; color: var(--text);
  background:
    radial-gradient(300px 160px at 70% 10%, rgba(212, 175, 55, .13), transparent 70%),
    linear-gradient(rgba(212, 175, 55, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, .06) 1px, transparent 1px),
    #0c1d36;
  background-size: auto, 26px 26px, 26px 26px, auto;
}
.map-ph svg { width: 26px; height: 26px; color: var(--gold); margin-bottom: 3px; }
.map-ph-t { font-size: 14px; font-weight: 700; transition: color .2s; }
.map-ph-n { font-size: 11.5px; color: var(--muted); }
.map-ph:hover .map-ph-t { color: var(--gold); }
.contact-map.is-live .map-ph { display: none; }

/* ---------- Przerywniki między sekcjami ----------
   Między każdą parą sekcji stoi inny motyw remontowy, wszystkie na szerokość kontenera
   i 28 px wysokości. Najcięższa jest poziomica (.lvl, przed ekipą); pozostałe (.sep-*)
   to cienkie linie: płytki z krzyżykami, laser, miarka, linia wymiarowa, kreska ołówka,
   wtyczka i gniazdko. Każdy gra raz, gdy pojawia się na ekranie (klasa .is-on z main.js).

   Poziomica: wąska, na szerokość kontenera (odpowiednik miarki krawieckiej ze strony Nikity).
   Podziałka co 10 px, wyższa kreska co 50 i co 100 px, na końcach zaślepki, pośrodku
   libella. Pęcherzyk raz dochodzi do środka, gdy przerywnik pojawia się na ekranie
   (klasa .is-on z main.js), i zostaje w poziomie. Bez JS stoi od razu pośrodku. */
.lvl {
  --lvl-bg: var(--bg);
  position: relative; width: min(var(--container), 100% - 48px); height: 22px; margin-inline: auto;
  border: 1px solid rgba(212, 175, 55, .3); border-radius: 4px;
  background:
    repeating-linear-gradient(to right, rgba(212, 175, 55, .55) 0 1px, transparent 1px 100px) 10px 0 / calc(100% - 20px) 9px no-repeat,
    repeating-linear-gradient(to right, rgba(212, 175, 55, .4) 0 1px, transparent 1px 50px) 10px 0 / calc(100% - 20px) 6px no-repeat,
    repeating-linear-gradient(to right, rgba(212, 175, 55, .26) 0 1px, transparent 1px 10px) 10px 0 / calc(100% - 20px) 3px no-repeat;
}
/* zaślepki na końcach */
.lvl::before, .lvl::after { content: ''; position: absolute; top: -1px; bottom: -1px; width: 5px; background: rgba(212, 175, 55, .55); }
.lvl::before { left: -1px; border-radius: 4px 0 0 4px; }
.lvl::after { right: -1px; border-radius: 0 4px 4px 0; }
/* okienko z libellą: zasłania podziałkę pod spodem */
.lvl-win {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 124px; transform: translateX(-50%);
  display: grid; place-items: center; background: var(--lvl-bg);
  border-inline: 1px solid rgba(212, 175, 55, .3);
}
.lvl-vial {
  position: relative; width: 92px; height: 12px; overflow: hidden;
  border: 1px solid rgba(212, 175, 55, .7); border-radius: 999px;
  background:
    linear-gradient(rgba(212, 175, 55, .7), rgba(212, 175, 55, .7)) calc(50% - 14px) 0 / 1px 100% no-repeat,
    linear-gradient(rgba(212, 175, 55, .7), rgba(212, 175, 55, .7)) calc(50% + 14px) 0 / 1px 100% no-repeat,
    rgba(212, 175, 55, .12);
}
.lvl-vial::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 20px; height: 6px; margin: -3px 0 0 -10px;
  border-radius: 999px; background: var(--gold-3);
}
.js .lvl:not(.is-on) .lvl-vial::after { transform: translateX(-27px); }
.js .lvl.is-on .lvl-vial::after { animation: lvl-settle 2.1s cubic-bezier(.35, 0, .25, 1) both; }
@keyframes lvl-settle {
  0% { transform: translateX(-27px); }
  36% { transform: translateX(10px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(2px); }
  100% { transform: none; }
}

/* odstęp przerywnika od sekcji nad nim i pod nim (dochodzi do odstępów samych sekcji) */
.lvl, .sep { margin-top: clamp(14px, 2.2vw, 32px); margin-bottom: clamp(24px, 3.6vw, 52px); }

/* Lżejsze przerywniki: wspólna baza.
   Stan "przed animacją" nigdy nie przycina samego przerywnika (clip-path na nim zerowało
   jego widoczny obszar i przeglądarka nie zgłaszała, że pojawił się na ekranie):
   przycinane są tylko elementy w środku. */
.sep {
  --ln: rgba(212, 175, 55, .5);
  position: relative; width: min(var(--container), 100% - 48px); height: 28px; margin-inline: auto; color: var(--gold);
}
.sep svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* 1. Płytki: pięć kafelków kładzionych po kolei, po bokach linia z krzyżykami dystansowymi */
.sep-tiles::before, .sep-tiles::after { content: ''; position: absolute; top: 50%; height: 9px; margin-top: -4.5px; }
.sep-tiles::before {
  left: 0; right: calc(50% + 111px);
  background:
    linear-gradient(var(--ln), var(--ln)) 0 50% / 100% 1px no-repeat,
    repeating-linear-gradient(to left, transparent 0 59px, var(--ln) 59px 60px, transparent 60px 120px);
}
.sep-tiles::after {
  left: calc(50% + 111px); right: 0;
  background:
    linear-gradient(var(--ln), var(--ln)) 0 50% / 100% 1px no-repeat,
    repeating-linear-gradient(to right, transparent 0 59px, var(--ln) 59px 60px, transparent 60px 120px);
}
.sep-tl { position: absolute; left: 50%; top: 50%; display: flex; gap: 4px; transform: translate(-50%, -50%); }
.sep-tl i {
  width: 34px; height: 16px; border: 1px solid rgba(212, 175, 55, .7); border-radius: 2px; background: rgba(212, 175, 55, .1);
  transition: opacity .35s ease, transform .45s var(--ease);
}
.sep-tl i:last-child { background: var(--gold); border-color: var(--gold); }
.sep-tl i:nth-child(2) { transition-delay: .14s; }
.sep-tl i:nth-child(3) { transition-delay: .28s; }
.sep-tl i:nth-child(4) { transition-delay: .42s; }
.sep-tl i:nth-child(5) { transition-delay: .56s; }
.js .sep-tiles:not(.is-on) .sep-tl i { opacity: 0; transform: translateY(-9px); }

/* 2. Laser krzyżowy: świecąca linia rozchodzi się ze środka */
.sep-laser::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -.5px;
  background: linear-gradient(90deg, transparent, var(--gold-3) 9%, var(--gold-3) 91%, transparent);
  box-shadow: 0 0 9px 1px rgba(240, 208, 96, .5);
  transition: transform 1.1s var(--ease);
}
.sep-cross {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; margin-left: -.5px;
  background: var(--gold-3); box-shadow: 0 0 9px 1px rgba(240, 208, 96, .5);
  transition: transform .5s var(--ease) .1s;
}
.sep-cross::after { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border: 1px solid var(--gold-3); border-radius: 50%; background: var(--bg); }
.js .sep-laser:not(.is-on)::before { transform: scaleX(0); }
.js .sep-laser:not(.is-on) .sep-cross { transform: scaleY(0); }

/* 3. Miarka: podziałka co 1 cm (10 px), zaczep z lewej, znacznik idzie za kursorem i pokazuje wymiar */
.sep-tape::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(var(--ln), var(--ln)) 0 0 / 100% 1px no-repeat,
    repeating-linear-gradient(to right, rgba(212, 175, 55, .8) 0 1px, transparent 1px 100px) 0 0 / 100% 13px no-repeat,
    repeating-linear-gradient(to right, rgba(212, 175, 55, .55) 0 1px, transparent 1px 50px) 0 0 / 100% 9px no-repeat,
    repeating-linear-gradient(to right, rgba(212, 175, 55, .38) 0 1px, transparent 1px 10px) 0 0 / 100% 5px no-repeat;
  clip-path: inset(0 0 0 0); transition: clip-path 1.3s var(--ease);
}
.sep-tape::before { content: ''; position: absolute; left: -1px; top: -3px; width: 3px; height: 19px; border-radius: 1px; background: var(--gold-2); }
.sep-pin { position: absolute; left: 62%; top: -4px; width: 2px; height: 22px; margin-left: -.5px; background: var(--gold-3); transition: left .16s var(--ease), opacity .4s ease 1s; }
.sep-pin b { position: absolute; left: 8px; top: 12px; font-size: 10.5px; font-weight: 700; line-height: 1; letter-spacing: .06em; white-space: nowrap; color: var(--gold-3); }
.sep-pin.flip b { left: auto; right: 8px; }
.js .sep-tape:not(.is-on)::after { clip-path: inset(0 100% 0 0); }
.js .sep-tape:not(.is-on) .sep-pin { opacity: 0; }
html:not(.js) .sep-pin { display: none; }

/* 4. Linia wymiarowa jak na rysunku technicznym: liczba to szerokość linii w pikselach */
.sep-dl {
  position: absolute; inset: 0;
  background:
    linear-gradient(var(--ln), var(--ln)) 0 19px / 100% 1px no-repeat,
    linear-gradient(var(--ln), var(--ln)) 0 10px / 1px 18px no-repeat,
    linear-gradient(var(--ln), var(--ln)) 100% 10px / 1px 18px no-repeat;
  clip-path: inset(-6px -8px -6px -8px); transition: clip-path 1.1s var(--ease);
}
.sep-dl::before, .sep-dl::after { content: ''; position: absolute; top: 12.5px; width: 1.5px; height: 14px; background: var(--gold); transform: rotate(45deg); }
.sep-dl::before { left: -.5px; }
.sep-dl::after { right: -.5px; }
.sep-val { position: absolute; left: 50%; top: 0; transform: translateX(-50%); font-size: 11px; font-weight: 700; line-height: 14px; letter-spacing: .14em; color: var(--gold); font-variant-numeric: tabular-nums; }
.js .sep-dim:not(.is-on) .sep-dl { clip-path: inset(-6px 50% -6px 50%); }

/* 5. Kreska ołówka stolarskiego ze znacznikiem "V" */
.sep-pencil::before {
  content: ''; position: absolute; left: 0; right: 19px; top: 19px; height: 1px; background: var(--ln);
  clip-path: inset(-2px 0 -2px 0); transition: clip-path 1.5s cubic-bezier(.45, 0, .3, 1);
}
.sep-pencil::after {
  content: ''; position: absolute; left: 38%; top: 9px; width: 8px; height: 8px;
  border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(45deg);
  transition: opacity .3s ease .7s;
}
.sep-pen { position: absolute; left: calc(100% - 21px); top: 1px; width: 21px; height: 21px; transition: left 1.5s cubic-bezier(.45, 0, .3, 1); }
.js .sep-pencil:not(.is-on)::before { clip-path: inset(-2px 100% -2px 0); }
.js .sep-pencil:not(.is-on)::after { opacity: 0; }
.js .sep-pencil:not(.is-on) .sep-pen { left: -2px; }

/* 6. Wtyczka i gniazdko, czyli "kontakt": wtyczka dojeżdża do gniazdka, gniazdko się rozświetla */
.sep-plug::before { content: ''; position: absolute; left: 0; right: calc(50% + 52px); top: 50%; height: 1px; margin-top: -.5px; background: var(--ln); }
.sep-plug::after { content: ''; position: absolute; left: calc(50% + 29px); right: 0; top: 50%; height: 1px; margin-top: -.5px; background: var(--ln); }
.sep-pl { position: absolute; left: calc(50% - 31px); top: 50%; width: 34px; height: 18px; margin-top: -9px; transition: transform .7s var(--ease) .15s; }
.sep-pl::before { content: ''; position: absolute; right: 100%; top: 50%; width: 24px; height: 1px; margin: -.5px -1px 0 0; background: var(--ln); }
.sep-so { position: absolute; left: calc(50% + 3px); top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; transition: box-shadow .5s ease .8s; }
.sep-plug.is-on .sep-so, html:not(.js) .sep-so { box-shadow: 0 0 0 4px rgba(212, 175, 55, .14), 0 0 14px rgba(240, 208, 96, .45); }
.js .sep-plug:not(.is-on) .sep-pl { transform: translateX(-22px); }

/* ==========================================================================
   Stopka
   ========================================================================== */
/* Jeden niski pasek jak w stopkach stron Venatu: logo i grupy linków obok siebie,
   rozdzielone pionowymi kreskami. Każda grupa ma nagłówek i dwa wiersze, żeby wszystkie
   kończyły się na tej samej wysokości. Pod spodem dane spółki i wykonawca strony. */
.footer { position: relative; border-top: 1px solid rgba(212, 175, 55, .12); padding: 26px 0 16px; background: rgba(6, 14, 28, .55); }
.footer-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px 14px; }
/* logo, a pod nim linia praw autorskich w dwóch krótkich wierszach (szerokość logo) */
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex: none; }
.footer-copy { font-size: 12px; line-height: 1.5; color: var(--muted); }
.footer-sep { flex: none; align-self: stretch; width: 1px; background: rgba(255, 255, 255, .1); }
.footer-group { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.footer h4 { margin: 0; font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.footer-links { display: grid; gap: 3px 16px; justify-content: start; }
.footer-links-2 { grid-template-columns: repeat(2, auto); }
.footer-links-3 { grid-template-columns: repeat(3, auto); }
.footer a { color: var(--text-2); text-decoration: none; font-size: 13.5px; line-height: 1.55; white-space: nowrap; transition: color .2s, border-color .2s; }
.footer a:hover { color: var(--gold); }
/* media społecznościowe: obrysowane pastylki z nazwą, jak przyciski "Nasze produkty" w Venatu */
.footer-social { display: grid; grid-template-columns: repeat(2, auto); gap: 4px; justify-content: start; }
.footer-social a {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px;
  border: 1.5px solid rgba(212, 175, 55, .3); border-radius: 999px;
  font-size: 12.5px; font-weight: 600; line-height: 1.35;
}
.footer-social a:hover { border-color: var(--gold); }
.footer-social svg { flex: none; width: 13px; height: 13px; color: var(--gold); }
.footer-legal {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 24px;
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line-soft);
  font-size: 12.5px; line-height: 1.6; color: var(--muted);
}
.footer-legal a { font-size: 12.5px; color: var(--muted); }
/* węższe okno: logo w osobnym wierszu, grupy pod nim bez kresek */
@media (max-width: 1279px) {
  .footer-bar { flex-wrap: wrap; justify-content: flex-start; gap: 18px 34px; }
  .footer-bar > .footer-brand { flex: 0 0 100%; }
  .footer-copy br { display: none; }
  .footer-sep { display: none; }
}

/* ---------- Szybki kontakt: przycisk "Kontakt +" w prawym dolnym rogu ----------
   Wzór: e-Obserwacje (Venatu). Po kliknięciu otwiera nad sobą kartę z kanałami
   (telefon, WhatsApp, e-mail). Na telefonie zostaje sama ikona. Nad stopką
   przycisk znika (.is-away), bo kontakt jest tam wypisany. Buduje go main.js. */
.dock { position: fixed; right: 22px; bottom: 22px; z-index: 900; transition: opacity .3s ease, visibility .3s; }
.dock.is-away { opacity: 0; visibility: hidden; pointer-events: none; }
.dock-toggle {
  display: inline-flex; align-items: center; gap: 11px; padding: 13px 22px;
  font-family: var(--font); font-size: 12.5px; font-weight: 700; line-height: 1; letter-spacing: .12em;
  text-transform: uppercase; white-space: nowrap; color: #0a1628; cursor: pointer;
  border: 1.5px solid var(--gold); border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .85), 0 12px 28px -14px rgba(212, 175, 55, .7);
  transition: background .2s, border-color .2s, transform .1s;
}
.dock-toggle:hover, .dock.is-open .dock-toggle { background: var(--gold-3); border-color: var(--gold-3); }
.dock-toggle:active { transform: translateY(1px); }
.dock-ico { display: none; width: 22px; height: 22px; }
/* "+" po otwarciu obraca się w "x" */
.dock-plus { position: relative; width: 10px; height: 10px; }
.dock-plus::before, .dock-plus::after {
  content: ''; position: absolute; left: 0; top: 4px; width: 10px; height: 2px; background: currentColor;
  transition: transform .3s ease;
}
.dock-plus::after { transform: rotate(90deg); }
.dock.is-open .dock-plus::before { transform: rotate(45deg); }
.dock.is-open .dock-plus::after { transform: rotate(135deg); }
.dock-panel {
  position: absolute; right: 0; bottom: calc(100% + 10px); width: 320px; padding: 6px 20px;
  background: #0d2240; border: 1px solid rgba(212, 175, 55, .3); border-radius: 18px;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .8);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.dock.is-open .dock-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease; }
.dock-list { list-style: none; margin: 0; padding: 0; }
.dock-a {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft); color: var(--text); text-decoration: none;
}
.dock-list li:last-child .dock-a { border-bottom: 0; }
.dock-a svg { width: 22px; height: 22px; color: var(--gold); }
.dock-text { display: flex; flex-direction: column; min-width: 0; }
.dock-label { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.dock-detail { margin-top: 2px; font-size: 15px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.dock-arrow { color: var(--muted); transition: transform .25s ease, color .2s; }
.dock-a:hover .dock-label, .dock-a:focus-visible .dock-label, .dock-a:hover .dock-arrow { color: var(--gold); }
.dock-a:hover .dock-arrow, .dock-a:focus-visible .dock-arrow { transform: translateX(4px); }
@media (max-width: 640px) {
  .dock { right: 14px; bottom: 14px; }
  .dock-toggle { padding: 15px; }
  .dock-ico { display: block; }
  .dock-toggle-label, .dock-plus { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dock-panel { width: calc(100vw - 28px); }
}

/* ---------- Baner cookies ----------
   Karta w lewym dolnym rogu, na telefonie na dole ekranu z marginesem. Wygląd
   jak karta w hero: jedna granatowa powierzchnia ze złotą linią u góry, tytuł
   i logo w jednym wierszu, tekst, trzy przyciski w jednym rzędzie tej samej
   wielkości (odmowa jest tak samo łatwa jak zgoda, wyróżniony jest tylko kolor).
   Pokazuje ją main.js, dopóki w przeglądarce nie ma decyzji; "Ustawienia cookies"
   w stopce otwiera ją ponownie. Bez JS karty nie ma. */
.cookie {
  position: fixed; left: 22px; bottom: 22px; z-index: 950;
  width: min(412px, calc(100vw - 28px)); overflow: hidden;
  padding: 22px 22px 20px;
  background: linear-gradient(180deg, #0f2443, #0b1a30); color: var(--text);
  border: 1px solid rgba(212, 175, 55, .24); border-radius: 18px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .9);
  animation: cookie-in .45s var(--ease) both;
}
.cookie::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.cookie[hidden] { display: none; }
.cookie:focus { outline: none; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(12px); } }
.cookie-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 11px; }
.cookie-h { margin: 0; font-size: 16.5px; font-weight: 800; line-height: 1.2; letter-spacing: -.005em; color: var(--text); }
.cookie-brand { display: flex; align-items: center; gap: 8px; }
.cookie-brand .plogo-mark { width: 24px; height: 24px; min-width: 24px; border-radius: 6px; gap: 2px; padding: 4.5px; }
.cookie-brand .plogo-mark span { border-radius: 1.5px; }
.cookie-brand .plogo-name { font-size: 11px; line-height: 1; white-space: nowrap; }
.cookie-text { margin: 0; font-size: 13.5px; line-height: 1.62; color: var(--text-2); }
.cookie-text a { color: var(--gold); text-decoration-color: rgba(212, 175, 55, .45); text-underline-offset: 3px; white-space: nowrap; transition: color .2s; }
.cookie-text a:hover { color: var(--gold-3); }
/* szerokość przycisków idzie za długością napisu, wysokość jest wspólna */
.cookie-btns { display: flex; gap: 8px; margin-top: 17px; }
.cookie-btn {
  flex: 1 1 auto; padding: 10px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  background: transparent; color: var(--text); border: 1.5px solid rgba(212, 175, 55, .42);
  font-family: var(--font); font-size: 13px; font-weight: 700; line-height: 1.2; letter-spacing: .01em;
  transition: background .2s, border-color .2s, color .2s;
}
.cookie-btn:hover { background: rgba(212, 175, 55, .1); border-color: var(--gold); color: var(--gold-3); }
.cookie-btn-yes { background: var(--gold); border-color: var(--gold); color: #0a1628; }
.cookie-btn-yes:hover { background: var(--gold-3); border-color: var(--gold-3); color: #0a1628; }
@media (max-width: 640px) {
  .cookie { left: 14px; right: 14px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: auto; padding: 19px 16px 16px; }
  .cookie-h { font-size: 15.5px; }
  .cookie-text { font-size: 13px; line-height: 1.55; }
  .cookie-btns { gap: 6px; margin-top: 14px; }
  .cookie-btn { padding: 10px 9px; font-size: 12.5px; }
  /* baner zajmuje dół ekranu, więc przycisk "Kontakt" czeka na decyzję */
  .has-cookie .dock { opacity: 0; visibility: hidden; pointer-events: none; }
}
/* najwęższe telefony: zgoda w pierwszym wierszu, dwie pozostałe decyzje pod nią */
@media (max-width: 359px) {
  .cookie-btns { flex-wrap: wrap; }
  .cookie-btn-yes { flex-basis: 100%; }
}
.footer-btn { padding: 0; border: 0; background: none; cursor: pointer; text-align: left; white-space: nowrap; font-family: var(--font); font-size: 13.5px; line-height: 1.55; color: var(--text-2); transition: color .2s; }
.footer-btn:hover { color: var(--gold); }
html:not(.js) .footer-btn { display: none; }

/* ==========================================================================
   Strona bloga
   ========================================================================== */
.page-hero { position: relative; overflow: clip; isolation: isolate; padding: calc(var(--nav-h) + clamp(56px, 8vw, 96px)) 0 clamp(24px, 3vw, 40px); text-align: center; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 380px at 50% 0%, rgba(212, 175, 55, .13), transparent 70%); }
.page-hero h1 { font-size: clamp(48px, 8vw, 104px); letter-spacing: -.045em; line-height: 1; margin-bottom: 20px; }
.page-hero .lede { max-width: 700px; margin: 0 auto; font-size: clamp(16px, 1.4vw, 19px); color: var(--text-2); }

.blog-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 36px 0 0; padding: 0; }
.blog-filter {
  font-size: 14px; font-weight: 700; color: var(--text-2);
  background: rgba(13, 34, 64, .6); border: 1px solid var(--line-soft);
  border-radius: 999px; padding: 9px 18px; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.blog-filter:hover { border-color: rgba(212, 175, 55, .4); color: var(--text); }
.blog-filter.active { background: var(--gold); border-color: var(--gold); color: #0a1628; }
.blog-page .blog-grid { margin-top: 40px; }
.blog-empty { text-align: center; color: var(--muted); margin-top: 32px; }

.articles { margin-top: clamp(24px, 4vw, 48px); }
.article { max-width: 780px; margin: 0 auto; padding-top: clamp(64px, 8vw, 96px); scroll-margin-top: calc(var(--nav-h) + 8px); }
.article + .article { border-top: 1px solid var(--line-soft); margin-top: clamp(64px, 8vw, 96px); }
.article-cover { border-radius: 24px; overflow: hidden; aspect-ratio: 21 / 9; margin: 0 0 32px; border: 1px solid var(--line-soft); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article h2 { font-size: clamp(30px, 3.8vw, 46px); letter-spacing: -.03em; margin-bottom: 18px; }
.article .article-lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--text); line-height: 1.6; margin-bottom: 28px; }
.article h3 { font-size: 22px; letter-spacing: -.015em; margin: 40px 0 14px; }
.article p, .article li { font-size: 17px; line-height: 1.78; color: var(--text-2); }
.article strong { color: var(--text); }
.article ul, .article ol { padding-left: 24px; margin: 0 0 20px; }
.article li { margin-bottom: 8px; padding-left: 4px; }
.article li::marker { color: var(--gold); font-weight: 700; }
.article a:not(.btn):not(.blog-back) { color: var(--gold); text-underline-offset: 3px; }
.table-wrap { overflow-x: auto; margin: 8px 0 26px; border-radius: 16px; border: 1px solid var(--line-soft); }
.price-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.price-table th { text-align: left; padding: 13px 18px; background: rgba(212, 175, 55, .1); color: var(--gold); font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.price-table td { padding: 13px 18px; border-top: 1px solid var(--line-soft); color: var(--text-2); vertical-align: top; }
.price-table tr:hover td { background: rgba(255, 255, 255, .02); }
.price-table th:last-child, .price-table td:last-child { text-align: right; }
.price-table td:last-child { white-space: nowrap; }
.price-table td:last-child { color: var(--text); font-weight: 700; }
.price-table tr.total td { background: rgba(212, 175, 55, .09); color: var(--gold); font-weight: 800; }
.callout { border-left: 3px solid var(--gold); background: rgba(212, 175, 55, .08); border-radius: 0 16px 16px 0; padding: 20px 24px; margin: 8px 0 30px; }
.callout p { margin: 0; font-size: 16px; color: var(--text); }
.article-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 24px; }
.blog-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--gold); text-decoration: none; }
.blog-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.steps-list { counter-reset: sl; list-style: none; padding-left: 0 !important; }
.steps-list > li { counter-increment: sl; position: relative; padding-left: 52px !important; margin-bottom: 18px !important; }
.steps-list > li::before {
  content: counter(sl); position: absolute; left: 0; top: 2px;
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid rgba(212, 175, 55, .5); color: var(--gold);
  font-size: 15px; font-weight: 800;
}
.blog-cta {
  position: relative; overflow: hidden; isolation: isolate;
  max-width: 880px; margin: clamp(80px, 10vw, 120px) auto 0; text-align: center;
  padding: clamp(36px, 5vw, 56px); border-radius: 30px;
  border: 1px solid rgba(212, 175, 55, .3);
  background: linear-gradient(135deg, #10284a, #0a1628 75%);
}
.blog-cta h2 { font-size: clamp(28px, 3.4vw, 42px); }
.blog-cta p { color: var(--text-2); max-width: 560px; margin: 0 auto 26px; }
.blog-cta .hero-cta { justify-content: center; margin: 0; }

/* ==========================================================================
   Animacje wejścia
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }
.js .reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .lvl .lvl-vial::after { transform: none; }
}

/* ==========================================================================
   Responsywność
   ========================================================================== */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .about { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; }
  .svc-nav { position: static; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: none; margin: 0 -24px; padding-inline: 24px; }
  .svc-nav::-webkit-scrollbar { display: none; }
  .svc-nav a { white-space: nowrap; padding: 12px 16px; }
  .svc-nav a:hover { transform: none; }
  .proc { grid-template-columns: 1fr; gap: 24px; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .faq-contact { grid-template-columns: 1fr; }
  .faq-item { flex: 0 0 auto; }
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; }
}

@media (max-width: 760px) {
  :root { --nav-h: 68px; }
  .container, .container-wide, .lvl, .sep { width: calc(100% - 32px); }
  /* etapy: numer z lewej, tytuł i opis jeden pod drugim */
  .steps { gap: 0; }
  .steps::before { top: 0; bottom: 0; }
  .step { grid-template-columns: 44px 1fr; gap: 0 16px; align-items: start; padding-bottom: 20px; }
  .step:last-child { padding-bottom: 0; }
  .step-num { grid-row: span 2; }
  .step h3 { margin-bottom: 6px; }
  .svc-nav { margin: 0 -16px; padding-inline: 16px; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: calc(var(--nav-h) + 28px); }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero .hero-cta { display: grid; grid-template-columns: 1fr; }
  .hcard-desc { text-align: left; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 16px 14px; }
  .pwt-li-grid { grid-template-columns: 1fr; }
  .pwt-li-grid .pwt-li-body strong { white-space: normal; }
  .pwt-li-grid .pwt-li-desc { display: block; -webkit-line-clamp: unset; line-clamp: none; min-height: 0; }
  .svc-media { height: 110px; }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 104px; gap: 8px; }
  .g-wide { grid-column: span 2; }
  .g-item { border-radius: 10px; }
  .g-cap { display: none; } /* kafelki są za małe na podpis; podpis jest w podglądzie po dotknięciu */
  .hcard-logo { flex-basis: 46px; width: 46px; }
  .hl-mark { width: 46px; height: 46px; padding: 8px; gap: 4px; margin-bottom: 0; }
  .hl-mark::before { border-radius: 11px; }
  .hl-mark span { border-radius: 3px; }
  .hl-mark svg { width: 9px; height: 9px; }
  .hl-name, .hl-sub { display: none; }
  .team { grid-template-columns: 1fr; }
  .member-photo { aspect-ratio: 4 / 3; }
  .blog-grid { grid-template-columns: 1fr; }
  .faq-answer p { padding-right: 4px; }
  .lvl-win { width: 108px; }
  .lvl-vial { width: 80px; }
  .footer-bar { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .footer-legal span { white-space: normal; }
  .lightbox { padding: 64px 12px 80px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-cap { bottom: 30px; padding: 0 76px; font-size: 13.5px; }
  .article p, .article li { font-size: 16px; }
  .price-table { font-size: 14px; }
  .price-table th, .price-table td { padding: 11px 10px; }
  .price-table th { letter-spacing: .08em; }
  .calc-shell { border-radius: 22px; }
}
