/* ============================================================
   Kadrownia Starter — assets/css/style.css
   Baza: WebKit/components/kit.css. Oryginalny blok :root ZASTĄPIONY
   aliasami do presetów z theme.json — tam jest źródło prawdy dla
   kolorów i czcionek (klient widzi je w edytorze). Tu nic nie zmieniaj
   w :root; kolory zmieniasz w theme.json → settings.color.palette.
   Aliasy stoją na :root i body, bo WP różnie wypisuje presety.
   ============================================================ */

:root, body {
  --c-dark:       var(--wp--preset--color--dark);
  --c-dark-2:     var(--wp--preset--color--dark-2);
  --c-dark-line:  var(--wp--preset--color--dark-line);
  --c-bg:         var(--wp--preset--color--bg);
  --c-surface:    var(--wp--preset--color--surface);
  --c-accent:     var(--wp--preset--color--accent);
  --c-accent-2:   var(--wp--preset--color--accent-2);
  --c-text:       var(--wp--preset--color--text);
  --c-muted:      var(--wp--preset--color--muted);
  --c-muted-dark: var(--wp--preset--color--muted-dark);
  --c-line:       var(--wp--preset--color--line);

  --font-display: var(--wp--preset--font-family--display);
  --font-body:    var(--wp--preset--font-family--body);
  /* Etykiety/ceny = font body (mono-etykiety to AI-look; mono tylko na życzenie klienta) */
  --font-mono:    var(--wp--preset--font-family--body);

  --container: 72rem;
  --radius: 0.375rem;
}

/* ============================================================
   WebKit — kit.css
   Baza CSS wielokrotnego użytku dla stron klientów.
   KAŻDY projekt zaczyna od zmiany tokenów w :root — nic więcej.
   Mobile-first. Breakpointy: 640px, 1024px.
   ============================================================ */


/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 640px) { .container { padding-inline: 2rem; } }
.hidden { display: none !important; }

/* ---------- Typografia ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: 1.15rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-accent-2);
  display: block;
  margin-bottom: 0.75rem;
}
.on-dark .eyebrow { color: var(--c-accent); }
.lead { font-size: 1.1rem; color: var(--c-muted); max-width: 38rem; }
.on-dark .lead { color: var(--c-muted-dark); }
.mono { font-family: var(--font-mono); font-size: 0.85rem; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  min-height: 44px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--c-accent); color: var(--c-dark); }
.btn-primary:hover { background: var(--c-accent-2); }
.btn-ghost { border-color: var(--c-line); color: var(--c-text); background: transparent; }
.btn-ghost:hover { border-color: var(--c-text); }
.on-dark .btn-ghost { border-color: var(--c-dark-line); color: #fff; }
.on-dark .btn-ghost:hover { border-color: var(--c-accent); color: var(--c-accent); }
.btn-whatsapp { background: #1fa855; color: #fff; }
.btn-whatsapp:hover { background: #179147; }

/* ---------- Nagłówek strony ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-dark); color: #fff;
  border-bottom: 1px solid var(--c-dark-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--font-display); }
.logo-mark { background: var(--c-accent); color: var(--c-dark); font-weight: 700; font-size: 1rem; padding: 0.3rem 0.45rem; border-radius: 2px; }
.logo-text { font-weight: 700; font-size: 0.95rem; letter-spacing: 0.16em; text-transform: uppercase; }
.main-nav ul { display: none; list-style: none; gap: 1.75rem; align-items: center; }
.main-nav a { text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--c-muted-dark); transition: color 0.15s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; }
.main-nav a[aria-current="page"] { border-bottom: 2px solid var(--c-accent); padding-bottom: 2px; }
.header-cta { display: none; }
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; background: transparent; border: none; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: #fff; transition: transform 0.2s, opacity 0.2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-open .main-nav ul {
  display: flex; flex-direction: column; align-items: flex-start;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--c-dark); border-bottom: 1px solid var(--c-dark-line);
  padding: 1.25rem; gap: 1.1rem;
}
.nav-open .main-nav a { font-size: 1.1rem; display: block; padding: 0.25rem 0; }
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .main-nav ul { display: flex; }
  .header-cta { display: inline-flex; padding: 0.6rem 1.2rem; }
}

/* ---------- Sekcje ---------- */
.section { padding-block: 4rem; }
@media (min-width: 1024px) { .section { padding-block: 6rem; } }
.section-dark { background: var(--c-dark); color: #fff; }
.section-white { background: var(--c-surface); }
.section-head { margin-bottom: 2.5rem; max-width: 44rem; }
.section-head p { margin-top: 0.75rem; }

/* Separator-miarka (opcjonalny motyw) */
.tape {
  height: 14px;
  background-image:
    repeating-linear-gradient(90deg, var(--c-accent) 0, var(--c-accent) 2px, transparent 2px, transparent 24px),
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--c-accent) 55%, transparent) 0, color-mix(in srgb, var(--c-accent) 55%, transparent) 1px, transparent 1px, transparent 6px);
  background-size: auto 100%, auto 55%;
  background-repeat: repeat-x;
  opacity: 0.8;
}

/* ---------- HERO: split (tekst + media) ---------- */
.hero { background: var(--c-dark); color: #fff; padding-block: 3.5rem 4rem; }
.hero-grid { display: grid; gap: 2.5rem; }
.hero h1 { margin: 1rem 0 1.25rem; }
.hero h1 em { font-style: normal; color: var(--c-accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 2rem; list-style: none; }
.hero-trust li { font-size: 0.9rem; font-weight: 500; color: var(--c-muted-dark); display: flex; align-items: center; gap: 0.45rem; }
.hero-trust li::before { content: "✓"; color: var(--c-accent); font-weight: 600; }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; }
  .hero { padding-block: 5rem; }
}

/* ---------- HERO: pełnoekranowy ze zdjęciem ---------- */
.hero-full {
  position: relative; display: flex; align-items: flex-end;
  min-height: 82vh; color: #fff;
  background: linear-gradient(180deg, rgba(10,12,16,0.35) 0%, rgba(10,12,16,0.8) 100%), var(--c-dark);
  background-size: cover; background-position: center;
  /* W projekcie: background-image: linear-gradient(...), url("images/hero.webp"); */
}
.hero-full .container { padding-block: 4rem; }
.hero-full h1 { max-width: 16ch; }

/* ---------- Suwak before/after ---------- */
.ba-slider {
  position: relative; aspect-ratio: 4 / 3;
  border-radius: var(--radius); overflow: hidden;
  user-select: none; touch-action: pan-y;
  border: 1px solid var(--c-dark-line);
}
.ba-pane { position: absolute; inset: 0; }
.ba-pane img { width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 0 0 var(--ba-pos, 50%)); }
.ba-label {
  position: absolute; top: 0.75rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem; border-radius: 2px;
  background: rgba(10, 12, 16, 0.8); color: #fff;
}
.ba-before .ba-label { left: 0.75rem; }
.ba-after .ba-label { right: 0.75rem; background: var(--c-accent); color: var(--c-dark); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--ba-pos, 50%); width: 0; border-left: 2px solid var(--c-accent); z-index: 3; }
.ba-handle::after {
  content: "◂ ▸"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--c-accent); color: var(--c-dark);
  font-size: 0.7rem; font-weight: 700; padding: 0.5rem 0.55rem; border-radius: 999px; white-space: nowrap;
}
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 4; margin: 0; }

/* ---------- Placeholdery zdjęć (do czasu prawdziwych) ---------- */
.ph { width: 100%; height: 100%; display: flex; align-items: flex-end; padding: 1rem; font-family: var(--font-mono); font-size: 0.72rem; color: rgba(255,255,255,0.75); }
.ph-before { background: repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0, rgba(255,255,255,0.05) 2px, transparent 2px, transparent 12px), linear-gradient(160deg, #4a4f57 0%, #33383f 60%, #24282e 100%); }
.ph-after { background: linear-gradient(160deg, #efe9dd 0%, #d8cdb8 55%, #b7a482 100%); color: rgba(10,12,16,0.65); }
.ph-photo {
  aspect-ratio: 4 / 3; border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, rgba(10,12,16,0.06) 0, rgba(10,12,16,0.06) 2px, transparent 2px, transparent 12px), linear-gradient(160deg, #d9d6cd 0%, #c2beb2 100%);
  color: var(--c-muted); display: flex; align-items: flex-end; padding: 1rem;
  font-family: var(--font-mono); font-size: 0.72rem;
}

/* ---------- Pasek zaufania / statystyki ---------- */
.trust-bar { background: var(--c-dark-2); border-block: 1px solid var(--c-dark-line); color: #fff; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding-block: 1.75rem; }
.trust-item strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--c-accent); }
.trust-item span { font-size: 0.85rem; color: var(--c-muted-dark); }
@media (min-width: 640px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Siatki i karty ---------- */
.grid-2 { display: grid; gap: 1.25rem; }
.grid-3 { display: grid; gap: 1.25rem; }
.grid-4 { display: grid; gap: 1.25rem; }
@media (min-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 1.5rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.card h3 { margin-top: 0.25rem; }
.card p { color: var(--c-muted); font-size: 0.95rem; flex-grow: 1; }
.card .price { font-size: 0.9rem; font-weight: 600; color: var(--c-accent-2); border-top: 1px solid var(--c-line); padding-top: 0.75rem; }
.card-icon { font-size: 1.5rem; line-height: 1; }

/* ---------- Cennik / tabela ---------- */
.price-table { width: 100%; border-collapse: collapse; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.price-table th, .price-table td { text-align: left; padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--c-line); font-size: 0.95rem; }
.price-table th { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-muted); background: var(--c-bg); }
.price-table td:last-child { font-family: var(--font-mono); color: var(--c-accent-2); white-space: nowrap; }
.table-scroll { overflow-x: auto; }

/* ---------- Kalkulator wyceny ---------- */
.calc { background: var(--c-dark-2); border: 1px solid var(--c-dark-line); border-radius: var(--radius); padding: 1.75rem; display: grid; gap: 1.5rem; color: #fff; }
.calc label { display: block; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-muted-dark); margin-bottom: 0.5rem; }
.calc select, .calc input[type="number"] { width: 100%; padding: 0.8rem 1rem; background: var(--c-dark); color: #fff; border: 1px solid var(--c-dark-line); border-radius: var(--radius); }
.calc-result { border-top: 1px dashed var(--c-dark-line); padding-top: 1.25rem; }
.calc-result .amount { font-family: var(--font-display); font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 600; color: var(--c-accent); display: block; }
.calc-result small { color: var(--c-muted-dark); font-size: 0.8rem; }
@media (min-width: 1024px) {
  .calc { grid-template-columns: 1fr 1fr; align-items: end; padding: 2.5rem; }
  .calc-result { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
}

/* ---------- Kroki procesu ---------- */
.steps { list-style: none; counter-reset: step; display: grid; gap: 1.5rem; }
.steps li { counter-increment: step; padding-left: 3.25rem; position: relative; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0.1rem;
  font-family: var(--font-mono); font-size: 0.9rem; color: var(--c-accent-2);
  border: 1px solid var(--c-line); border-radius: 2px; padding: 0.3rem 0.45rem; background: var(--c-surface);
}
.steps h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.steps p { color: var(--c-muted); font-size: 0.95rem; }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Opinie ---------- */
.review { border-left: 3px solid var(--c-accent); }
.review blockquote { font-size: 1rem; }
.review footer { margin-top: 0.75rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--c-muted); }
.stars { color: var(--c-accent-2); letter-spacing: 0.1em; font-size: 0.85rem; }

/* ---------- Karuzela (opinie/loga) ---------- */
.carousel { position: relative; overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.4s ease; }
.carousel-slide { flex: 0 0 100%; padding-inline: 0.25rem; }
.carousel-nav { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.25rem; }
.carousel-nav button { width: 44px; height: 44px; border: 1px solid var(--c-line); background: var(--c-surface); border-radius: var(--radius); font-size: 1.1rem; }
.carousel-nav button:hover { border-color: var(--c-accent); color: var(--c-accent-2); }
@media (min-width: 640px) { .carousel-slide { flex-basis: 50%; } }
@media (min-width: 1024px) { .carousel-slide { flex-basis: 33.333%; } }

/* ---------- Galeria + lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.25s; }
.gallery a:hover img { transform: scale(1.04); }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 12, 16, 0.92);
  display: none; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 85vh; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; background: transparent; border: 1px solid rgba(255,255,255,0.3); color: #fff; border-radius: var(--radius); font-size: 1.2rem; }

/* ---------- Chipy / obszary ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; }
.chips li { font-family: var(--font-mono); font-size: 0.82rem; padding: 0.45rem 0.9rem; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-surface); color: var(--c-muted); }
.on-dark .chips li { background: var(--c-dark-2); border-color: var(--c-dark-line); color: var(--c-muted-dark); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.75rem; max-width: 44rem; }
.faq details { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); }
.faq summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--c-accent-2); font-size: 1.1rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.25rem 1.25rem; color: var(--c-muted); font-size: 0.95rem; }

/* ---------- Formularze ---------- */
.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.4rem; }
.field label .req { color: var(--c-accent-2); }
.field input, .field select, .field textarea { width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); color: var(--c-text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--c-accent); outline-offset: 0; border-color: var(--c-accent); }
.field-hint { font-size: 0.8rem; color: var(--c-muted); margin-top: 0.3rem; }
.checkbox-field { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.85rem; color: var(--c-muted); }
.checkbox-field input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }

/* ---------- Pasek CTA ---------- */
.cta-band { background: var(--c-accent); color: var(--c-dark); }
.cta-band-inner { display: flex; flex-direction: column; gap: 1.25rem; padding-block: 3rem; align-items: flex-start; }
.cta-band h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
.cta-band .btn { background: var(--c-dark); color: #fff; }
.cta-band .btn:hover { background: #000; }
@media (min-width: 1024px) { .cta-band-inner { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ---------- Stopka ---------- */
.site-footer { background: var(--c-dark); color: var(--c-muted-dark); font-size: 0.9rem; }
.footer-grid { display: grid; gap: 2rem; padding-block: 3.5rem 2rem; }
.footer-grid h4, .footer-grid .footer-h { color: #fff; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.9rem; }
.footer-grid ul { list-style: none; display: grid; gap: 0.5rem; }
.footer-grid a { color: var(--c-muted-dark); text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--c-dark-line); padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; font-family: var(--font-mono); font-size: 0.75rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #1fa855; color: #fff;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; box-shadow: 0 6px 18px rgba(10, 12, 16, 0.35);
  transition: transform 0.15s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Baner cookie (tylko gdy jest GA/pixel!) ---------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90;
  background: var(--c-dark); color: #fff;
  border: 1px solid var(--c-dark-line); border-radius: var(--radius);
  padding: 1.25rem; display: none; gap: 1rem; flex-wrap: wrap; align-items: center;
  max-width: 40rem; margin-inline: auto;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { font-size: 0.85rem; color: var(--c-muted-dark); flex: 1 1 100%; }
.cookie-banner .btn { padding: 0.6rem 1.2rem; min-height: 40px; }

/* ---------- Podstrona: hero ---------- */
.page-hero { background: var(--c-dark); color: #fff; padding-block: 3.5rem; }
.page-hero p { margin-top: 0.75rem; }
/* Ciemne tło = kolory jak w .on-dark. Bez tego eyebrow (--c-accent-2)
   i lead (--c-muted) mają kontrast ~2.7:1 i oblewają audyt WCAG. */
.page-hero .eyebrow, .section-dark .eyebrow, .cta-band .eyebrow { color: var(--c-accent); }
.page-hero .lead, .section-dark .lead { color: var(--c-muted-dark); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Utilsy ---------- */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.center { text-align: center; }

/* ============================================================
   WORDPRESS — to, czego statyczna strona nie potrzebowała
   ============================================================ */

/* Skip link — widoczny tylko po fokusie z klawiatury */
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; padding: 0.75rem 1rem; background: var(--c-accent); color: var(--c-dark); border-radius: var(--radius); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 1rem; }

/* Logo wgrane w Wygląd → Dostosuj → Tożsamość witryny */
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { height: 2.5rem; width: auto; }

/* Stopka startowa ma trzy kolumny, kit zakłada cztery */
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

/* Treść z edytora bloków. Zasada: kto ustawia background, ustawia też color. */
.prose { max-width: 44rem; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }
.prose a:not(.wp-block-button__link) { color: var(--c-accent-2); text-decoration: underline; text-underline-offset: 0.15em; }
.prose a:not(.wp-block-button__link):hover { color: var(--c-text); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.35rem; }
.prose img { border-radius: var(--radius); }
.prose figcaption { font-size: 0.85rem; color: var(--c-muted); margin-top: 0.5rem; }
.prose blockquote { border-left: 3px solid var(--c-accent); padding-left: 1rem; color: var(--c-muted); }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--c-line); }
.prose details { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 0 1.25rem; }
.prose summary { cursor: pointer; padding: 1rem 0; font-weight: 700; min-height: 44px; }
.prose details[open] summary { border-bottom: 1px solid var(--c-line); margin-bottom: 0.75rem; }
.prose .wp-block-button__link { text-decoration: none; }
.prose .alignwide, .prose .alignfull { max-width: none; }
.section-dark .prose a:not(.wp-block-button__link) { color: var(--c-accent); }
.section-dark .prose a:not(.wp-block-button__link):hover { color: #fff; }

/* Listing wpisów (index.php) */
.post-date { font-size: 0.85rem; color: var(--c-muted); }
.pagination { margin-top: 2.5rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 0.9rem; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); color: var(--c-text); text-decoration: none; }
.pagination .page-numbers.current { background: var(--c-dark); color: #fff; border-color: var(--c-dark); }

/* Z common.css WordPressa — wp-block-library jest wyłączony w functions.php */
.screen-reader-text { border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal; }
.screen-reader-text:focus { clip-path: none; height: auto; width: auto; margin: 0; padding: 0.75rem 1rem; background: var(--c-accent); color: var(--c-dark); z-index: 100; left: 1rem; top: 1rem; }
.aligncenter { display: block; margin-inline: auto; }
.alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.has-text-align-center { text-align: center; }
.has-text-align-left { text-align: left; }
.has-text-align-right { text-align: right; }

/* ============================================================
   PROJEKT — wszystko specyficzne dla TEJ strony poniżej
   ============================================================ */

/* ============================================================
   PROJEKT — Nocturne (magazyny energii, ciemny motyw, wideo w hero)
   Cała strona jest ciemna: tokeny bg/surface/text są odwrócone
   względem startera, a kit działa bez zmian. Bursztyn = światło
   w nocy. Sekcja „How it works" to jedna scena SVG sterowana scrollem.
   ============================================================ */

:root, body { --radius: 0.75rem; }
body { background: var(--c-bg); }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 0.98; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.lead { font-size: 1.12rem; }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.12em; }
.btn { border-radius: 0.6rem; }
.btn-ghost { border-color: var(--c-dark-line); color: var(--c-text); }
.btn-ghost:hover { border-color: var(--c-accent); color: var(--c-accent-2); }
::selection { background: var(--c-accent); color: var(--c-dark); }

/* ---------- Nagłówek ---------- */
.site-header { background: color-mix(in srgb, var(--c-dark) 72%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: color-mix(in srgb, var(--c-dark-line) 60%, transparent); }
.nc-header-float { position: fixed; left: 0; right: 0; top: 0; }
.header-inner { min-height: 4.5rem; }
.logo-mark { display: none; }
.logo-text { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; text-transform: none; }
.logo-text::after { content: ""; display: inline-block; width: 0.45em; height: 0.45em; margin-left: 0.35em; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 12px var(--c-accent); vertical-align: middle; }
.nc-header-right { display: flex; align-items: center; gap: 1rem; }
.nc-header-info { display: none; font-size: 0.82rem; color: var(--c-muted-dark); }
@media (min-width: 1200px) { .nc-header-info { display: inline; } }

/* ---------- Hero z wideo ---------- */
.nc-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding-block: 8rem 4rem; color: #fff; overflow: clip; background: var(--c-dark); }
.nc-hero-media { position: absolute; inset: 0; z-index: 0; background: var(--c-dark) center / cover no-repeat; }
.nc-hero-video { width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; /* jednostka na prawo od tekstu */ opacity: 0.001; transition: opacity 1.2s ease; background: var(--c-dark); }
.nc-hero-video.is-playing, .nc-hero-video[poster] { opacity: 1; }
.nc-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(4,6,10,0.35) 0%, rgba(4,6,10,0.15) 40%, rgba(4,6,10,0.85) 100%); pointer-events: none; }
.nc-hero-inner { position: relative; z-index: 2; max-width: 46rem; }
.nc-hero .eyebrow { color: var(--c-accent-2); }
.nc-hero h1 { margin: 0.75rem 0 1.25rem; text-wrap: balance; }
.nc-hero .lead { color: #d5dde6; max-width: 34rem; }
.nc-hero .btn-ghost { border-color: rgba(255,255,255,0.35); color: #fff; }
.nc-hero .btn-ghost:hover { border-color: var(--c-accent); color: var(--c-accent-2); }
.nc-video-toggle { position: absolute; right: 1.25rem; bottom: 1.25rem; z-index: 3; min-height: 44px; padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.3); background: rgba(4,6,10,0.55); color: #fff; font-size: 0.82rem; font-weight: 600; backdrop-filter: blur(6px); }
.nc-video-toggle:hover { border-color: var(--c-accent); }
.nc-video-toggle .nc-vt-play, .nc-video-toggle[aria-pressed="true"] .nc-vt-pause { display: none; }
.nc-video-toggle[aria-pressed="true"] .nc-vt-play { display: inline; }
@media (max-width: 767px) { .nc-hero-video { display: none; } .nc-hero { min-height: 88svh; padding-top: 7rem; } }
@media (min-width: 1024px) { .nc-hero { padding-block: 10rem 6rem; } .nc-video-toggle { right: 2rem; bottom: 2rem; } }

/* ---------- Pasek liczb ---------- */
.nc-specs { background: var(--c-bg); border-block: 1px solid var(--c-line); }
.nc-specs .trust-item strong { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em; }

/* ---------- Scena dzień/noc ---------- */
.nc-how-grid { display: grid; gap: 2.5rem; }
.nc-scene-wrap { position: sticky; top: 5.5rem; }
.nc-scene { width: 100%; height: auto; display: block; border-radius: 18px; border: 1px solid var(--c-line); --night: 0; }
.nc-sky-top { stop-color: color-mix(in srgb, #0a1220 calc(100% - var(--night) * 100%), #03050a); }
.nc-sky-bottom { stop-color: color-mix(in srgb, #1c2f4d calc(100% - var(--night) * 100%), #070b12); }
.nc-scene .nc-sky-top { stop-color: #0a1220; } .nc-scene .nc-sky-bottom { stop-color: #1c2f4d; }
.nc-scene.is-night .nc-sky-top { stop-color: #03050a; } .nc-scene.is-night .nc-sky-bottom { stop-color: #070b12; }
.nc-sky-top, .nc-sky-bottom { transition: stop-color 0.6s ease; }
.nc-ground { fill: #0c1118; }
.nc-stars circle { fill: #dfe6ee; opacity: 0; transition: opacity 0.6s; }
.nc-scene.is-night .nc-stars circle { opacity: 0.8; }
.nc-sun { fill: #ffd08a; filter: drop-shadow(0 0 14px rgba(255, 208, 138, 0.8)); transition: opacity 0.4s; }
.nc-moon { transition: opacity 0.4s; }
.nc-moon-bite { fill: #03050a; }
.nc-walls { fill: #141b25; stroke: #26313f; }
.nc-roof { stroke: #2c3846; stroke-width: 4; stroke-linejoin: round; }
.nc-panels { fill: #1f3a5c; stroke: #2f5583; }
.nc-window { fill: #1a2331; transition: fill 0.5s; }
.nc-scene.is-night .nc-window { fill: #ffd08a; filter: drop-shadow(0 0 8px rgba(255, 208, 138, 0.7)); }
.nc-door { fill: #0f151d; }
.nc-batt-body { fill: #1a222d; stroke: #2c3846; }
.nc-batt-inner { fill: #0b1017; }
.nc-fill { transition: height 0.15s linear, y 0.15s linear; }
.nc-pct { fill: #eaf0f6; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.nc-label { fill: #9aa7b6; font-family: var(--font-body); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.nc-flow { stroke: #ffd08a; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 6 10; opacity: 0; transition: opacity 0.4s; }
.nc-scene.is-charging .nc-flow-charge { opacity: 1; animation: nc-dash 1.2s linear infinite; }
.nc-scene.is-discharging .nc-flow-discharge { opacity: 1; animation: nc-dash 1.2s linear infinite; }
@keyframes nc-dash { to { stroke-dashoffset: -32; } }
.nc-steps { list-style: none; display: grid; gap: 3rem; counter-reset: none; }
.nc-steps li { padding: 0; }
.nc-steps li .eyebrow, .nc-steps li h2, .nc-steps li p { transition: color 0.4s; }
/* Nieaktywne kroki przygaszone KOLOREM, nie opacity — opacity psuje kontrast (WCAG 4.5:1) */
.nc-steps li:not(.is-active) .eyebrow { color: #b08a55; }
.nc-steps li:not(.is-active) h2 { color: #aab4c0; }
.nc-steps li:not(.is-active) p { color: #7d8896; }
.nc-steps li::before { content: none; }
.nc-steps h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0.5rem 0 0.75rem; }
.nc-steps p { color: var(--c-muted); max-width: 30rem; }
@media (min-width: 1024px) {
  .nc-how { padding-block: 4rem; }
  .nc-how-grid { grid-template-columns: 1.15fr 1fr; gap: 5rem; align-items: start; }
  .nc-steps { gap: 0; }
  .nc-steps li { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }
  .nc-steps li:first-child { min-height: 50vh; }
}

/* ---------- Konfiguracje ---------- */
.nc-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; max-width: none; }
.nc-head-row > div { max-width: 44rem; }
.nc-config { gap: 0.75rem; }
.nc-config-n { display: flex; gap: 0.35rem; }
.nc-config-n i { display: block; width: 1.1rem; height: 1.8rem; border-radius: 0.25rem; background: linear-gradient(180deg, var(--c-accent-2), var(--c-accent)); box-shadow: 0 0 10px rgba(242, 178, 90, 0.35); }
.nc-config h3 { font-size: 1.4rem; display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.nc-config-kwh { font-size: 0.9rem; font-weight: 600; color: var(--c-muted); }
.nc-config .price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--c-text); border-top-color: var(--c-line); }
.nc-config .price small { font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; color: var(--c-muted); margin-left: 0.3rem; }

/* ---------- Kalkulator ---------- */
.nc-calc-grid { display: grid; gap: 2.5rem; }
.nc-calc-form { margin-top: 2rem; display: grid; gap: 1.5rem; }
.nc-calc-row label { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.6rem; }
.nc-calc-row output { color: var(--c-accent-2); font-family: var(--font-display); font-size: 1.1rem; }
.nc-calc-row input[type="range"] { width: 100%; height: 44px; accent-color: var(--c-accent); background: transparent; }
.nc-calc-checks { display: grid; gap: 0.75rem; }
.nc-calc-checks label { display: flex; gap: 0.6rem; align-items: center; min-height: 44px; font-size: 0.95rem; cursor: pointer; }
.nc-calc-checks input { width: 20px; height: 20px; accent-color: var(--c-accent); }
.nc-calc-result { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 1rem; padding: 2rem; display: grid; gap: 0.5rem; align-content: start; position: relative; overflow: hidden; }
.nc-calc-result::before { content: ""; position: absolute; inset: auto -20% -40% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(242,178,90,0.25), transparent 70%); pointer-events: none; }
.nc-calc-modules { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.nc-calc-kwh { color: var(--c-accent-2); font-weight: 600; }
.nc-calc-facts { margin-top: 1rem; display: grid; }
.nc-calc-facts div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-top: 1px solid var(--c-line); font-size: 0.95rem; }
.nc-calc-facts dt { color: var(--c-muted); }
.nc-calc-facts dd { font-weight: 700; white-space: nowrap; }
.nc-calc-note { font-size: 0.85rem; color: var(--c-muted); margin-top: 0.5rem; }
.nc-calc-result .btn { justify-self: start; margin-top: 1rem; position: relative; }
@media (min-width: 1024px) { .nc-calc-grid { grid-template-columns: 1.1fr 1fr; gap: 5rem; align-items: start; } }

/* ---------- FAQ ---------- */
.nc-faq { max-width: 44rem; }

/* ---------- Rezerwacja ---------- */
.nc-reserve-grid { display: grid; gap: 2.5rem; }
.nc-reserve-trust { flex-direction: column; gap: 0.6rem; }
.nc-form { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 1rem; padding: 1.5rem; }
.nc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nc-form-msg { margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: 0.6rem; background: var(--c-bg); border: 1px solid var(--c-line); font-size: 0.95rem; }
.nc-form-msg.is-error { border-color: #d9534f; color: #ffb3ae; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #d9534f; }
.nc-opt { font-weight: 400; color: var(--c-muted); font-size: 0.85rem; margin-left: 0.3rem; }
.nc-legend { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.6rem; }
.nc-radios { display: grid; gap: 0.5rem; }
.nc-radios label { display: flex; gap: 0.6rem; align-items: center; min-height: 44px; padding: 0.5rem 0.9rem; border: 1px solid var(--c-line); border-radius: 0.6rem; background: var(--c-bg); cursor: pointer; font-size: 0.95rem; }
.nc-radios label:has(:checked) { border-color: var(--c-accent); }
.nc-radios input { width: 18px; height: 18px; accent-color: var(--c-accent); }
.field input, .field select, .field textarea { border-radius: 0.6rem; background: var(--c-bg); }
.field select option { background: var(--c-surface); }
.checkbox-field input { accent-color: var(--c-accent); }
@media (min-width: 1024px) { .nc-reserve-grid { grid-template-columns: 1fr 1.3fr; gap: 5rem; align-items: start; } .nc-form { padding: 2rem; } }

/* ---------- Podstrony ---------- */
.page-hero { padding-top: 8rem; padding-bottom: 1rem; background: var(--c-bg); }
.page-hero .eyebrow { color: var(--c-accent-2); }
.nc-404 { padding-bottom: 5rem; }
.nc-page-image { width: 100%; max-width: 44rem; border-radius: var(--radius); margin-bottom: 2rem; }
.nc-demo-box { background: var(--c-surface); border: 1px dashed var(--c-accent); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.prose table { background: var(--c-surface); }
.prose th, .prose td { border-bottom-color: var(--c-line); }

/* ---------- Stopka ---------- */
.site-footer { border-top: 1px solid var(--c-line); }
.site-footer .logo-text { color: #fff; }
.nc-demo-note { font-size: 0.8rem; color: var(--c-muted-dark); border-top: 1px solid var(--c-dark-line); padding-block: 1rem; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1.2fr; } }

/* Kotwice (#how, #size, #faq…) zatrzymują się pod przyklejonym nagłówkiem */
section[id], [id].section { scroll-margin-top: 5.5rem; }
