/*
Theme Name: Fight Cover
Theme URI: https://fightcover.pl
Author: Agencja
Description: Custom Single Page Experience dla pośrednika ubezpieczeniowego sportów walki. Zero builderów, zero frameworków CSS, vanilla JS + self-hosted Three.js dla interaktywnego worka 3D w Hero.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: fight-cover
*/

/* ==========================================================================
   0. RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Marka v3 — czerwień zarezerwowana WYŁĄCZNIE dla .fc-btn--primary (jedyna
     czerwona rzecz na całej stronie). Wszystko inne: czerń/biel/szarości.
     Ciepła, węglowa czerń (nie granatowa) dopasowana do tła siłowni.
     Ostre kąty — zero zaokrągleń. */
  --fc-red: #DC2626;
  /* Kolor secondary — piaskowy beż, ciepły akcent obok czerni/bieli. Zastępuje
     podkreślenia (lepszy kontrast na ciemnym tle niż samo podkreślenie) i
     przycisk "Dalej" w formularzu. */
  --fc-secondary: #C9AF8C;
  --fc-bg: #121010;
  --fc-bg-elevated: #1C1918;
  --fc-bg-elevated-2: #262220;
  --fc-white: #FFFFFF;
  --fc-ink-70: rgba(255, 255, 255, 0.70);
  --fc-ink-50: rgba(255, 255, 255, 0.50);
  --fc-ink-30: rgba(255, 255, 255, 0.30);
  --fc-ink-12: rgba(255, 255, 255, 0.12);
  --fc-ink-08: rgba(255, 255, 255, 0.08);

  /* Typografia — propozycja klienta: Montserrat (WIELKIMI LITERAMI) do nagłówków,
     Public Sans do treści. "Public Sans" zamiast dosłownie "Inter" — ten sam
     neutralny, czysty charakter liter, ale bez wpadania w najpowszechniejszy
     font świata (czego miał unikać projekt od początku). */
  --fc-font-display: 'Montserrat', system-ui, sans-serif;
  --fc-font-body: 'Public Sans', system-ui, sans-serif;
  --fc-font-label: 'Montserrat', system-ui, sans-serif;

  /* Skala odstępów */
  --fc-space-2xs: 0.5rem;
  --fc-space-xs: 0.75rem;
  --fc-space-sm: 1rem;
  --fc-space-md: 1.5rem;
  --fc-space-lg: 2.5rem;
  --fc-space-xl: 4rem;
  --fc-space-2xl: 6rem;
  --fc-space-3xl: 9rem;

  /* Promienie i kontener — 0 wszędzie: prostokątne obramówki na prośbę klienta */
  --fc-radius-sm: 0;
  --fc-radius-md: 0;
  --fc-radius-lg: 0;
  --fc-radius-pill: 0;
  --fc-container: 1200px;

  /* Trzy dozwolone easingi ruchu — nigdy przeglądarkowy domyślny "ease" na stanach UI */
  --fc-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --fc-ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --fc-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ==========================================================================
   2. FUNDAMENTY
   ========================================================================== */
html, body { overflow-x: clip; }

body {
  background: var(--fc-bg);
  color: var(--fc-white);
  font-family: var(--fc-font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--fc-font-display);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  min-width: 0;
}

/* Widoczny pierścień fokusu, natychmiastowy (bez animacji) — nigdy nie przycinany kontrastowo */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--fc-white);
  outline-offset: 3px;
}

h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }

p { color: var(--fc-ink-70); }

.fc-container {
  width: 100%;
  max-width: var(--fc-container);
  margin: 0 auto;
  padding-inline: var(--fc-space-md);
}

.fc-section { position: relative; padding-block: var(--fc-space-2xl); }
.fc-section--tight { padding-block: var(--fc-space-xl); }

.fc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--fc-font-label);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fc-ink-70);
}
.fc-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fc-white);
}

.fc-section-head { max-width: 640px; margin-bottom: var(--fc-space-lg); }
.fc-section-head h2 { margin-top: var(--fc-space-2xs); }
.fc-section-head p { margin-top: var(--fc-space-sm); font-size: 1.05rem; }

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

/* Split-text reveal target */
.fc-reveal { opacity: 0; transform: translateY(16px); }
.fc-reveal.is-visible {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.6s var(--fc-ease-out), transform 0.6s var(--fc-ease-out);
}

/* Grain / noise overlay — editorial texture, nie plastik */
.fc-grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
}

/* ==========================================================================
   3. PRZYCISKI
   ========================================================================== */
.fc-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.7rem;
  border-radius: var(--fc-radius-pill);
  font-family: var(--fc-font-label);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--fc-ease-out);
  will-change: transform;
}
.fc-btn:active { transform: scale(0.97); }
.fc-btn:disabled, .fc-btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.fc-btn.is-loading { opacity: 0.85; cursor: wait; pointer-events: none; }
.fc-btn.is-loading::after {
  content: '';
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: var(--fc-white);
  animation: fc-spin 0.7s linear infinite;
}
@keyframes fc-spin { to { transform: rotate(360deg); } }

.fc-btn--primary {
  background: linear-gradient(135deg, var(--fc-red), #B91C1C);
  color: var(--fc-white);
}
.fc-btn--primary:hover { transform: translateY(-2px); }

.fc-btn--ghost {
  background: var(--fc-ink-08);
  color: var(--fc-white);
  border: 1px solid var(--fc-ink-12);
}
.fc-btn--ghost:hover { background: var(--fc-ink-12); }

.fc-btn--outline {
  background: var(--fc-secondary);
  color: var(--fc-bg);
  border: 1.5px solid var(--fc-secondary);
}
.fc-btn--outline:hover { background: var(--fc-white); border-color: var(--fc-white); }

/* ==========================================================================
   4. NAWIGACJA
   ========================================================================== */
.fc-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-block: var(--fc-space-sm);
  background: linear-gradient(to bottom, rgba(2,3,23,0.92), rgba(2,3,23,0));
  backdrop-filter: blur(10px);
}
.fc-header__inner { display: flex; align-items: center; justify-content: space-between; }
.fc-logo { display: flex; align-items: center; gap: 0.6rem; font-family: var(--fc-font-label); }
.fc-logo img, .fc-logo svg { width: 42px; height: 42px; }
.fc-logo span { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

.fc-nav { display: none; gap: var(--fc-space-lg); align-items: center; }
.fc-nav a { font-size: 0.92rem; color: var(--fc-ink-70); transition: color 0.2s var(--fc-ease-out); }
.fc-nav a:hover { color: var(--fc-white); }

.fc-nav-toggle { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; }
.fc-nav-toggle span, .fc-nav-toggle::before, .fc-nav-toggle::after { display: none; }
.fc-nav-toggle svg { width: 22px; height: 22px; }

.fc-mobile-nav {
  position: fixed; inset: 0; z-index: 49;
  background: var(--fc-bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--fc-space-lg);
  transform: translateY(-100%);
  transition: transform 0.4s var(--fc-ease-out);
}
.fc-mobile-nav.is-open { transform: translateY(0); }
.fc-mobile-nav a { font-family: var(--fc-font-display); font-size: 1.8rem; }

@media (min-width: 960px) {
  .fc-nav { display: flex; }
  .fc-nav-toggle { display: none; }
}

/* ==========================================================================
   5. HERO
   ========================================================================== */
.fc-hero {
  position: relative;
  padding-top: calc(var(--fc-space-3xl) + var(--fc-space-lg));
  padding-bottom: var(--fc-space-2xl);
  overflow: hidden;
  background-color: var(--fc-bg);
}
/* Zdjęcie siłowni na całej sekcji Hero (także pod tekstem) */
/* Tło siłowni pod tekstem I workiem - ale tylko na wysokości tej "górnej" części
   Hero (tekst+worek), nie całej sekcji (razem z paskiem zdjęć niżej). Inaczej
   "cover" na bardzo wysokim kontenerze przybliża wąski, nieczytelny wycinek zdjęcia. */
/* z-index:0 (nie tylko position:relative) jest tu konieczny — bez tego stage nie
   tworzy własnego kontekstu stackowania i ujemny z-index dzieci "ucieka" pod tło body. */
.fc-hero__stage { position: relative; z-index: 0; }
/* Zdjęcie sięga do samej góry sekcji (pod fixed headerem), nie tylko do początku
   grida — header ma już swój blur/gradient, więc zdjęcie "prześwituje" pod menu
   zamiast zostawiać płaski, pusty pas tła nad workiem. Ujemny top o wysokość
   padding-top .fc-hero wyrównuje górną krawędź zdjęcia z górą strony. */
.fc-hero__stage::before {
  content: '';
  position: absolute;
  top: calc(-1 * (var(--fc-space-3xl) + var(--fc-space-lg))); bottom: 0;
  left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
  width: 100vw;
  background: url('assets/img/hero-gym-bg.jpg') center right / cover no-repeat;
  opacity: 0.85;
  z-index: -3;
}
.fc-hero__stage::after {
  content: '';
  position: absolute;
  top: calc(-1 * (var(--fc-space-3xl) + var(--fc-space-lg))); bottom: 0;
  left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
  width: 100vw;
  background: rgba(18,16,16,0.4);
  z-index: -2;
}
/* Płynne przejście ze zdjęcia w Hero do płaskiego tła paska zdjęć poniżej —
   maska rozmywa krawędź zamiast twardego cięcia; gradient dociąga do --fc-bg. */
.fc-hero__fade {
  position: absolute;
  bottom: 0;
  left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
  width: 100vw;
  height: 180px;
  z-index: 0;
  pointer-events: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(18,16,16,0), var(--fc-bg) 90%);
  mask-image: linear-gradient(to bottom, transparent, black 65%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 65%);
}

.fc-hero__glow {
  position: absolute;
  top: -20%; right: -10%;
  width: 60vw; height: 60vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.fc-hero__grid {
  position: relative; z-index: 1;
  display: grid;
  gap: var(--fc-space-xl);
  align-items: center;
}

@media (min-width: 960px) {
  .fc-hero__grid { grid-template-columns: 1.05fr 0.95fr; }
}
/* Mobile: worek POD tekstem (nagłówek + opis + CTA + atuty), nie na samej górze —
   naturalny porządek z DOM (.fc-hero__copy jest pierwszym dzieckiem grida) wystarczy,
   bez override'u order. */

.fc-hero h1 { margin-bottom: var(--fc-space-md); text-shadow: 0 2px 16px rgba(0,0,0,0.7); }
.fc-hero h1 .is-accent { color: var(--fc-secondary); }

.fc-hero__desc { font-size: 1.15rem; max-width: 46ch; margin-bottom: var(--fc-space-lg); }

.fc-hero__ctas { display: flex; flex-wrap: wrap; gap: var(--fc-space-sm); margin-bottom: var(--fc-space-xl); }

.fc-perks { display: grid; gap: var(--fc-space-sm); }
@media (min-width: 640px) { .fc-perks { grid-template-columns: repeat(3, 1fr); } }

.fc-perk { display: flex; flex-direction: column; gap: 0.6rem; }
.fc-perk__icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--fc-radius-sm);
  background: var(--fc-ink-08);
  color: var(--fc-white);
}
.fc-perk__icon svg { width: 22px; height: 22px; }
.fc-perk p { color: var(--fc-white); font-size: 0.92rem; font-weight: 600; margin: 0; }

/* Scena 3D — worek stoi na scenie, nie w pudełku (bez ramki/karty) */
.fc-hero__visual {
  position: relative;
  aspect-ratio: 4 / 5;
}
/* Na desktopie wiersz grida jest wyższy niż box 4:5 (kolumna z tekstem jest wyższa) —
   "center" wyśrodkowywał worek w tej różnicy wysokości, przez co łańcuch startował
   niżej niż górna krawędź nagłówka. align-self:start wyrównuje górę boxa z górą
   kolumny tekstu, więc łańcuch zaczyna się na tym samym poziomie co tekst. */
@media (min-width: 960px) {
  .fc-hero__visual { align-self: start; }
}
/* Płytszy format na mobile (1:1 zamiast 4:5) — na 375px szerokości to ~94px mniej
   wysokości, więc nagłówek i CTA są bliżej góry, mniej scrollowania do treści.
   Kamera w hero-bag.js kadruje worek proporcjonalnie do kontenera (fov/distance
   ustawione niezależnie od aspect-ratio), więc worek nie ucina się przy zmianie
   formatu — po prostu jest mniejszy razem z boxem. */
@media (max-width: 959px) {
  .fc-hero__visual { aspect-ratio: 1 / 1; }
}
.fc-hero__visual::before {
  content: '';
  position: absolute;
  left: 50%; top: 40%;
  width: 85%; height: 62%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 68%);
  filter: blur(55px);
  z-index: -3;
  pointer-events: none;
}
.fc-hero__visual-light {
  position: absolute;
  left: 50%; top: 46%;
  width: 55%; height: 45%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,0.5) 0%, transparent 72%);
  filter: blur(45px);
  z-index: -2;
  pointer-events: none;
}
.fc-hero__visual-placeholder {
  background: linear-gradient(160deg, var(--fc-bg-elevated), var(--fc-bg-elevated-2));
  border: 1px solid var(--fc-ink-12);
  border-radius: var(--fc-radius-lg);
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.75rem;
  text-align: center; padding: var(--fc-space-md);
  color: var(--fc-ink-50);
}
.fc-hero__visual-placeholder svg { width: 56px; height: 56px; opacity: 0.5; }
.fc-hero__visual-placeholder span { font-family: var(--fc-font-label); font-size: 0.85rem; letter-spacing: 0.04em; }

/* Worek bokserski 3D — vanilla Three.js, self-hosted (assets/js/hero-bag.js) */
.fc-hero__bag { width: 100%; height: 100%; }
.fc-hero__bag canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.fc-hero__visual-hint {
  position: absolute; bottom: var(--fc-space-sm); left: 50%;
  transform: translateX(-50%);
  font-family: var(--fc-font-label); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fc-ink-50); pointer-events: none;
}
/* Mysz vs dotyk - "przejedź kursorem" nie ma sensu na telefonie */
.fc-hero__visual-hint--touch { display: none; }
@media (hover: none) {
  .fc-hero__visual-hint--mouse { display: none; }
  .fc-hero__visual-hint--touch { display: block; }
}

/* Pasek 5 zdjęć */
.fc-angle-strip {
  position: relative; z-index: 1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(130px, 1fr);
  gap: var(--fc-space-xs);
  margin-top: var(--fc-space-xl);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.fc-angle-strip::-webkit-scrollbar { display: none; }
@media (pointer: fine) { .fc-angle-strip { cursor: grab; } }
.fc-angle-strip.is-dragging { cursor: grabbing; user-select: none; scroll-snap-type: none; }
@media (min-width: 720px) {
  .fc-angle-strip { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow-x: visible; }
}
.fc-angle-strip__item {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: var(--fc-radius-sm);
  background: var(--fc-bg-elevated);
  border: 1px solid var(--fc-ink-12);
  overflow: hidden;
  scroll-snap-align: start;
}
.fc-angle-strip__item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  /* Jednolita gradacja — zdjęcia z różnych sesji/świateł czytają się jako jedna galeria */
  filter: grayscale(20%) contrast(1.08) saturate(1.05);
}
.fc-angle-strip__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.75rem 0.7rem 0.6rem;
  background: linear-gradient(to top, rgba(2,3,23,0.92) 15%, transparent 100%);
  font-family: var(--fc-font-body);
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--fc-white);
}

/* ==========================================================================
   6. SEKCJA PROBLEM / KOSZT
   ========================================================================== */
.fc-problem { background: var(--fc-bg-elevated); border-top: 1px solid var(--fc-ink-08); border-bottom: 1px solid var(--fc-ink-08); }

.fc-stat-row { display: grid; gap: var(--fc-space-md); }
@media (min-width: 720px) { .fc-stat-row { grid-template-columns: repeat(2, 1fr); } }

.fc-compare-card {
  padding: var(--fc-space-lg);
  border-radius: var(--fc-radius-md);
  background: var(--fc-bg);
  border: 1px solid var(--fc-ink-12);
}
.fc-compare-card--negative { border-color: rgba(220, 38, 38, 0.35); }
.fc-compare-card--positive { border-color: rgba(83, 88, 238, 0.35); }
.fc-compare-card__label {
  font-family: var(--fc-font-label);
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: var(--fc-space-sm); display: block;
}
.fc-compare-card--negative .fc-compare-card__label { color: var(--fc-ink-50); }
.fc-compare-card--positive .fc-compare-card__label { color: var(--fc-white); }
.fc-compare-card ul { display: flex; flex-direction: column; gap: 0.6rem; margin-top: var(--fc-space-sm); }
.fc-compare-card li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; color: var(--fc-ink-70); }
.fc-compare-card li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }

/* ==========================================================================
   7. KARTY USŁUG
   ========================================================================== */
.fc-cards { display: grid; gap: var(--fc-space-md); }
@media (min-width: 720px) { .fc-cards { grid-template-columns: repeat(2, 1fr); } }

.fc-card {
  position: relative;
  padding: var(--fc-space-lg);
  border-radius: var(--fc-radius-md);
  background: var(--fc-bg-elevated);
  border: 1px solid var(--fc-ink-12);
  transition: border-color 0.3s var(--fc-ease-out);
}
.fc-card:hover { border-color: var(--fc-white); }

.fc-card__icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--fc-radius-sm);
  background: var(--fc-ink-08);
  color: var(--fc-white);
  margin-bottom: var(--fc-space-md);
}
.fc-card__icon svg { width: 26px; height: 26px; }
.fc-card h3 { margin-bottom: 0.5rem; }
.fc-card p { font-size: 0.95rem; }

/* ==========================================================================
   7b. O ZAWODNIKU — realna sesja zdjęciowa
   ========================================================================== */
.fc-athlete__grid { display: grid; gap: var(--fc-space-xl); align-items: center; }
@media (min-width: 860px) { .fc-athlete__grid { grid-template-columns: 1fr 1fr; } }
.fc-athlete__photo {
  border-radius: var(--fc-radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--fc-ink-12);
}
.fc-athlete__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fc-athlete .fc-eyebrow { margin-bottom: var(--fc-space-2xs); }
.fc-athlete h2 { margin-bottom: var(--fc-space-sm); }

/* ==========================================================================
   8. PROCES (jak to działa)
   ========================================================================== */
/* Liniowa ścieżka: pozioma linia + punkty na desktopie, wertykalna na mobile */
.fc-path { position: relative; padding-top: 0.75rem; }
.fc-path__track {
  position: absolute;
  top: 1.75rem; left: 5%; right: 5%;
  height: 2px;
  background: var(--fc-ink-12);
  z-index: 0;
}
.fc-path__steps {
  position: relative; z-index: 1;
  display: grid;
  gap: var(--fc-space-xl);
}
@media (min-width: 720px) { .fc-path__steps { grid-template-columns: repeat(3, 1fr); } }

.fc-path__dot {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--fc-white);
  color: var(--fc-bg);
  font-family: var(--fc-font-label);
  font-size: 0.8rem; font-weight: 700;
  margin-bottom: var(--fc-space-sm);
  flex-shrink: 0;
}
.fc-path__step h3 { margin-bottom: 0.4rem; }
.fc-path__step p { font-size: 0.92rem; }

@media (max-width: 719px) {
  .fc-path__track { top: 0; bottom: 0; left: 12px; right: auto; width: 2px; height: auto; }
  .fc-path__steps { grid-template-columns: 1fr; gap: var(--fc-space-lg); }
  .fc-path__step { display: grid; grid-template-columns: 26px 1fr; column-gap: var(--fc-space-sm); align-items: start; }
  .fc-path__dot { grid-column: 1; grid-row: 1; margin-bottom: 0; }
  .fc-path__step h3 { grid-column: 2; grid-row: 1; align-self: center; margin-bottom: 0; }
  .fc-path__step p { grid-column: 2; grid-row: 2; margin-top: 0.4rem; }
}

/* ==========================================================================
   8b. Z INSTAGRAMA — karuzela natywnych kart (tekst z postów, nie zrzuty ekranu)
   ========================================================================== */
.fc-ig-strip {
  display: flex;
  gap: var(--fc-space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  margin-bottom: var(--fc-space-md);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.fc-ig-strip::-webkit-scrollbar { display: none; }
@media (pointer: fine) { .fc-ig-strip { cursor: grab; } }
.fc-ig-strip.is-dragging { cursor: grabbing; user-select: none; scroll-snap-type: none; }
.fc-ig-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 0.75rem;
  padding: var(--fc-space-md);
  border-radius: var(--fc-radius-md);
  background: var(--fc-bg);
  border: 1px solid var(--fc-ink-12);
  transition: border-color 0.2s var(--fc-ease-out);
}
.fc-ig-card:hover { border-color: var(--fc-white); }
.fc-ig-card__label {
  font-family: var(--fc-font-label); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fc-ink-50);
}
.fc-ig-card p { color: var(--fc-white); font-weight: 600; font-size: 1rem; margin: 0; flex: 1; }
.fc-ig-card__cta { font-family: var(--fc-font-label); font-size: 0.78rem; color: var(--fc-ink-50); }
.fc-ig-card:hover .fc-ig-card__cta { color: var(--fc-white); }

/* ==========================================================================
   9. OPINIE (marquee)
   ========================================================================== */
.fc-marquee { overflow: hidden; position: relative; }
.fc-marquee::before, .fc-marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2;
}
.fc-marquee::before { left: 0; background: linear-gradient(to right, var(--fc-bg), transparent); }
.fc-marquee::after { right: 0; background: linear-gradient(to left, var(--fc-bg), transparent); }
.fc-marquee__track {
  display: flex; gap: var(--fc-space-md);
  animation: fc-marquee 32s linear infinite;
  width: max-content;
}
@keyframes fc-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.fc-review {
  width: 320px; flex-shrink: 0;
  padding: var(--fc-space-md);
  border-radius: var(--fc-radius-md);
  background: var(--fc-bg-elevated);
  border: 1px solid var(--fc-ink-12);
}
.fc-review__stars { color: var(--fc-white); font-size: 0.85rem; margin-bottom: 0.5rem; letter-spacing: 0.1em; }
.fc-review p { font-size: 0.92rem; }
.fc-review__author { display: block; margin-top: 0.75rem; font-size: 0.85rem; font-weight: 600; color: var(--fc-white); }
.fc-review--empty { width: 100%; max-width: 480px; }

.fc-reviews-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: var(--fc-space-md); font-size: 0.92rem; color: var(--fc-ink-70); }
.fc-reviews-link:hover { color: var(--fc-white); }

/* ==========================================================================
   10. KONTAKT
   ========================================================================== */
.fc-contact__grid { display: grid; gap: var(--fc-space-xl); align-items: start; }
@media (min-width: 960px) { .fc-contact__grid { grid-template-columns: 1.3fr 0.7fr; } }

.fc-nap { display: flex; flex-direction: column; gap: var(--fc-space-md); }
.fc-nap__item { display: flex; gap: var(--fc-space-sm); align-items: flex-start; }
.fc-nap__item svg { width: 20px; height: 20px; color: var(--fc-white); margin-top: 3px; flex-shrink: 0; }
.fc-nap__item strong { display: block; font-size: 0.85rem; color: var(--fc-ink-50); font-weight: 500; }
.fc-nap__item a, .fc-nap__item span.value { font-size: 1.02rem; }

/* Kompaktowy blok "zadzwoń" — jeden numer + zwięzła lista, bez rzędu ikon na każdą linię */
.fc-nap-compact {
  display: flex; flex-direction: column; gap: 0.6rem;
  padding: var(--fc-space-md);
  border-radius: var(--fc-radius-md);
  background: var(--fc-bg-elevated);
  border: 1px solid var(--fc-ink-12);
}
.fc-nap-compact__label { font-size: 0.85rem; color: var(--fc-ink-70); }
.fc-nap-compact__highlight { font-family: var(--fc-font-display); font-size: 1.15rem; font-weight: 700; color: var(--fc-white); word-break: break-word; }
.fc-nap-compact__highlight:hover { color: var(--fc-ink-70); }
.fc-nap-compact__list { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.85rem; color: var(--fc-ink-50); }
.fc-nap-compact__list a { color: var(--fc-ink-50); }
.fc-nap-compact__list a:hover { color: var(--fc-white); }

.fc-form {
  display: flex; flex-direction: column; gap: var(--fc-space-sm);
  padding: var(--fc-space-lg);
  border: 1px solid var(--fc-ink-12);
  background: var(--fc-bg-elevated);
}
.fc-form__row { display: grid; gap: var(--fc-space-sm); grid-template-columns: 1fr; }
@media (min-width: 480px) { .fc-form__row { grid-template-columns: 1fr 1fr; } }

/* Formularz wieloetapowy — bez JS wszystkie fieldsety są widoczne (jeden długi formularz) */
.fc-form-progress { height: 4px; border-radius: var(--fc-radius-pill); background: var(--fc-ink-08); overflow: hidden; margin-bottom: 0.4rem; }
.fc-form-progress__bar { display: block; height: 100%; width: 33.33%; background: var(--fc-white); transition: width 0.3s var(--fc-ease-out); }
.fc-form-progress__label { font-size: 0.8rem; color: var(--fc-ink-50); margin: 0 0 var(--fc-space-sm); }
.fc-form-step { border: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--fc-space-sm); }
.fc-form-step[hidden] { display: none; }
.fc-form-step legend { font-family: var(--fc-font-label); font-size: 0.95rem; font-weight: 600; color: var(--fc-white); padding: 0; margin-bottom: 0.2rem; }
.fc-form-step__actions { display: flex; gap: var(--fc-space-sm); margin-top: 0.2rem; }
.fc-form-step__actions .fc-btn { flex: 1; justify-content: center; }

.fc-chip-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fc-chip {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.1rem;
  border-radius: var(--fc-radius-pill);
  background: var(--fc-ink-08);
  border: 1px solid var(--fc-ink-12);
  font-family: var(--fc-font-label); font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.2s var(--fc-ease-out), background-color 0.2s var(--fc-ease-out);
}
.fc-chip:hover { border-color: var(--fc-ink-30); }
.fc-visually-hidden:checked + .fc-chip { background: var(--fc-white); border-color: var(--fc-white); color: var(--fc-bg); }
.fc-visually-hidden:focus-visible + .fc-chip { outline: 2px solid var(--fc-white); outline-offset: 2px; }
.fc-field label { display: block; font-size: 0.85rem; margin-bottom: 0.4rem; color: var(--fc-ink-70); }
.fc-field input, .fc-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--fc-radius-sm);
  background: var(--fc-ink-08);
  border: 1px solid var(--fc-ink-12);
  color: var(--fc-white);
  transition: border-color 0.2s var(--fc-ease-out), background-color 0.2s var(--fc-ease-out);
}
.fc-field input:hover, .fc-field textarea:hover { border-color: var(--fc-ink-30); }
.fc-field input:focus, .fc-field textarea:focus { border-color: var(--fc-white); }
.fc-field input:disabled, .fc-field textarea:disabled { opacity: 0.5; cursor: not-allowed; }
.fc-field textarea { min-height: 120px; resize: vertical; }
.fc-field--error input, .fc-field--error textarea { border-color: var(--fc-white); border-width: 2px; }
.fc-field--valid input, .fc-field--valid textarea { border-color: var(--fc-ink-30); background-color: rgba(255,255,255,0.05); }
.fc-field__error { display: none; font-size: 0.8rem; color: var(--fc-white); font-weight: 700; margin-top: 0.35rem; }
.fc-field--error .fc-field__error { display: block; }

.fc-honeypot { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; }

.fc-rodo { font-size: 0.82rem; color: var(--fc-ink-50); }
.fc-rodo a { color: var(--fc-secondary); }

.fc-form-status { padding: 0.85rem 1rem; border-radius: var(--fc-radius-sm); font-size: 0.9rem; display: none; }
.fc-form-status.is-success { display: block; background: rgba(255,255,255,0.06); border: 1px solid var(--fc-white); }
.fc-form-status.is-error { display: block; background: rgba(255,255,255,0.08); border: 2px solid var(--fc-white); font-weight: 700; }

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.fc-footer { border-top: 1px solid var(--fc-ink-08); padding-block: var(--fc-space-xl) var(--fc-space-lg); font-size: 0.88rem; color: var(--fc-ink-50); }

/* CTA przyklejone do dołu ekranu na mobile - "Bezpłatna wycena" ma być widoczne bez scrolla */
.fc-sticky-cta { display: none; }
@media (max-width: 719px) {
  .fc-sticky-cta {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 40;
    padding: var(--fc-space-sm) var(--fc-space-md);
    padding-bottom: calc(var(--fc-space-sm) + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, var(--fc-bg) 55%, transparent);
  }
  .fc-sticky-cta .fc-btn { flex: 1; justify-content: center; }
  .fc-footer { padding-bottom: calc(var(--fc-space-lg) + 4rem); }
}
.fc-footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--fc-space-lg); margin-bottom: var(--fc-space-lg); }
.fc-footer__legal { max-width: 480px; line-height: 1.7; }
.fc-footer__legal strong { color: var(--fc-ink-70); }
.fc-footer__links { display: flex; gap: var(--fc-space-md); flex-wrap: wrap; }
.fc-footer__links a:hover { color: var(--fc-white); }
.fc-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--fc-space-sm); padding-top: var(--fc-space-md); border-top: 1px solid var(--fc-ink-08); }

.fc-footer__copy { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.4em; }
.fc-footer__sep { opacity: 0.6; }
.fc-footer__credit { display: inline-flex; align-items: center; gap: 0.45em; color: inherit; text-decoration: none; opacity: 0.85; }
.fc-footer__credit:hover { color: var(--fc-white); opacity: 1; }
.fc-footer__credit img {
  height: 20px; width: auto; display: block;
  /* Logo Lokalni Detektywi ma czarny tekst na przezroczystym tle - niewidoczny
     na ciemnym tle stopki. Zamieniamy na białą sylwetkę, bez ingerencji w plik. */
  filter: grayscale(1) brightness(0) invert(1);
}

/* ==========================================================================
   12. TREŚĆ EDYTORA WP — Polityka Prywatności, Regulamin, wpisy blogowe
   ========================================================================== */
.fc-page-content { font-size: 1.05rem; line-height: 1.75; color: var(--fc-ink-70); }
.fc-page-content > * + * { margin-top: var(--fc-space-md); }
.fc-page-content h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); color: var(--fc-white); margin-top: var(--fc-space-xl); }
.fc-page-content h3 { color: var(--fc-white); margin-top: var(--fc-space-lg); }
.fc-page-content h2:first-child, .fc-page-content h3:first-child { margin-top: 0; }
.fc-page-content ul, .fc-page-content ol { padding-left: 1.4rem; }
.fc-page-content ul { list-style: disc; }
.fc-page-content ol { list-style: decimal; }
.fc-page-content li + li { margin-top: 0.4rem; }
.fc-page-content a { color: var(--fc-secondary); }
.fc-page-content a:hover { color: var(--fc-white); }
.fc-page-content blockquote {
  border-left: 3px solid var(--fc-white);
  padding-left: var(--fc-space-md);
  color: var(--fc-white);
}
.fc-page-content img { border-radius: var(--fc-radius-md); width: 100%; height: auto; }
.fc-page-content hr { border: none; border-top: 1px solid var(--fc-ink-12); }
.fc-page-content strong { color: var(--fc-white); }

/* ==========================================================================
   12b. BLOG — archiwum (index.php) i wpis (single.php)
   ========================================================================== */
/* Sekcja bloga/wpisu - ta sama delikatna poświata co w Hero, żeby nie był
   płaską czernią, bez wprowadzania nowych kolorów (zero-kolorowa zasada marki). */
.fc-section--blog { position: relative; overflow: hidden; }
.fc-section--blog::before,
.fc-section--blog::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}
.fc-section--blog::before {
  top: -25%; left: 8%;
  width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
  background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 68%);
}
.fc-section--blog::after {
  top: -10%; right: -6%;
  width: 34vw; height: 34vw; max-width: 460px; max-height: 460px;
  background: radial-gradient(circle, rgba(201,175,140,0.14) 0%, transparent 70%);
}
.fc-section--blog > .fc-container { position: relative; z-index: 1; }

.fc-blog-head { max-width: 640px; margin-bottom: var(--fc-space-lg); }
.fc-blog-head h1 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
.fc-single-title { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.fc-blog-grid { display: grid; gap: var(--fc-space-md); }
@media (min-width: 720px) { .fc-blog-grid { grid-template-columns: repeat(2, 1fr); } }

.fc-post-card {
  display: flex; flex-direction: column;
  border-radius: var(--fc-radius-md);
  background: var(--fc-bg-elevated);
  border: 1px solid var(--fc-ink-12);
  overflow: hidden;
}
.fc-post-card__thumb { aspect-ratio: 16 / 10; background: linear-gradient(160deg, var(--fc-bg-elevated), var(--fc-bg-elevated-2)); }
.fc-post-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fc-post-card__body { padding: var(--fc-space-md); display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.fc-post-card__date { font-family: var(--fc-font-label); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fc-ink-50); }
.fc-post-card h2 { font-size: 1.3rem; }
.fc-post-card h2 a { transition: color 0.2s var(--fc-ease-out); }
.fc-post-card h2 a:hover { color: var(--fc-ink-70); }
.fc-post-card p { font-size: 0.92rem; flex: 1; }
.fc-post-card__link { font-family: var(--fc-font-label); font-size: 0.85rem; color: var(--fc-white); }

.fc-pagination { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--fc-space-xl); }
.fc-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding-inline: 0.5rem;
  border-radius: var(--fc-radius-sm);
  background: var(--fc-ink-08);
  border: 1px solid var(--fc-ink-12);
  font-family: var(--fc-font-label); font-size: 0.9rem;
}
.fc-pagination .page-numbers.current { background: var(--fc-white); border-color: var(--fc-white); color: var(--fc-bg); }

.fc-single-back { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; color: var(--fc-ink-70); margin-bottom: var(--fc-space-lg); }
.fc-single-back:hover { color: var(--fc-white); }
.fc-single-meta { font-family: var(--fc-font-label); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fc-ink-50); margin-bottom: var(--fc-space-sm); }
.fc-single-thumb { border-radius: var(--fc-radius-lg); overflow: hidden; margin-bottom: var(--fc-space-lg); aspect-ratio: 16/9; }
.fc-single-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==========================================================================
   13. UTILITY
   ========================================================================== */
.fc-skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--fc-white); color: var(--fc-bg); padding: 0.75rem 1.25rem;
}
.fc-skip-link:focus { left: 1rem; top: 1rem; }
