/* =========================================================================
   MEDIACJE.SLASK.PL — Kancelaria Mediacyjna Robert Rozpończyk
   Design system: granat + złoto + biel
   ========================================================================= */

/* ----- 1. ZMIENNE / DESIGN TOKENS -------------------------------------- */
:root {
  /* Kolory marki */
  --navy:        #122140;   /* granat głęboki — tła ciemne, nagłówki */
  --navy-700:    #1a2c50;   /* granat jaśniejszy */
  --navy-800:    #0d1832;   /* granat ciemniejszy (stopka, watermark) */
  --gold:        #c0974a;   /* złoto bazowe — akcent */
  --gold-light:  #d8b56a;   /* złoto jaśniejsze — hover, gradient */
  --gold-dark:   #a87f38;   /* złoto ciemniejsze */

  /* Neutralne */
  --white:       #ffffff;
  --cream:       #f7f5f0;   /* ciepła biel — tła sekcji */
  --cream-2:     #f1ede4;   /* mocniejszy kremowy */
  --ink:         #2b3242;   /* tekst body */
  --ink-soft:    #5a6273;   /* tekst pomocniczy */
  --line:        #e7e3d9;   /* linie, obramowania */
  --line-soft:   #efece4;

  /* Typografia */
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Promienie */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Cienie */
  --sh-sm: 0 4px 16px rgba(18, 33, 64, 0.06);
  --sh-md: 0 14px 40px rgba(18, 33, 64, 0.10);
  --sh-lg: 0 30px 70px rgba(18, 33, 64, 0.16);
  --sh-gold: 0 12px 30px rgba(192, 151, 74, 0.30);

  /* Layout */
  --container: 1240px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --topbar-h: 42px;
  --header-h: 78px;
}

/* ----- 2. RESET --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

/* Zabezpieczenie grid items przed rozpychaniem (min-width:auto) */
.split > *, .split--reverse > *, .contact-wrap > *,
.about-split > *, .areas-grid > *, .steps-grid > *,
.trust-grid > *, .feature-bar .grid > *, .footer-grid > * { min-width: 0; }

/* ----- 3. UTILITY ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: clamp(64px, 8vw, 110px) 0; }
.section--cream { background: var(--cream); }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 30px; height: 2px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow--center { justify-content: center; }

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 16px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

.gold { color: var(--gold); }

/* Przyciski */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.97rem;
  padding: 15px 30px;
  border-radius: var(--r-pill);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  cursor: pointer;
  line-height: 1;
  text-align: center;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #fff;
  box-shadow: var(--sh-gold);
}
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(192,151,74,.42); }

.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line);
}
.btn--outline:hover { border-color: var(--navy); transform: translateY(-3px); }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); transform: translateY(-3px); box-shadow: var(--sh-md); }

.btn--ghost-light {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn--ghost-light:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-3px); }

.btn--lg { padding: 17px 38px; font-size: 1.02rem; }

/* ----- 4. TOPBAR -------------------------------------------------------- */
.topbar {
  background: var(--navy-800);
  color: rgba(255,255,255,.85);
  font-size: 0.86rem;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar a { color: rgba(255,255,255,.85); transition: color .2s var(--ease); }
.topbar a:hover { color: var(--gold-light); }
.topbar-left { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.topbar-left a { display: inline-flex; align-items: center; gap: 8px; }
.topbar-left svg { width: 15px; height: 15px; color: var(--gold); }
.topbar-social { display: flex; gap: 8px; align-items: center; }
.topbar-social a {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.topbar-social a:hover { background: var(--gold); color: #fff; }
.topbar-social svg { width: 15px; height: 15px; }

/* ----- 5. HEADER -------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.98);
  /* UWAGA: bez backdrop-filter — tworzyłby blok zawierający dla position:fixed,
     przez co wysuwane menu i nakładka liczyłyby się względem nagłówka, nie ekranu. */
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .3s var(--ease);
}
.header.scrolled { box-shadow: var(--sh-sm); }
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 20px;
  max-width: 1340px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.logo img { width: 46px; height: 46px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.logo-sub {
  font-family: var(--font-head);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-top: 5px;
  font-weight: 500;
}

/* Nawigacja */
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: var(--r-sm);
  position: relative;
  transition: color .2s var(--ease);
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav a:hover { color: var(--navy); }
.nav a:hover::after { transform: scaleX(1); }
.nav a.active { color: var(--gold-dark); font-weight: 600; }
.nav a.active::after { transform: scaleX(1); }

.header-cta { flex-shrink: 0; }

/* Hamburger */
.burger {
  display: none;
  width: 46px; height: 46px;
  border-radius: var(--r-sm);
  position: relative;
  flex-shrink: 0;
}
.burger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Nakładka pod wysuwanym menu mobilnym (klik w tło = zamknij) */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 24, 50, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
  z-index: 110;
}
.nav-overlay.open { opacity: 1; visibility: visible; }

/* ----- 6. HERO ---------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--white);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
  padding-top: clamp(48px, 6vw, 84px);
  padding-bottom: clamp(70px, 8vw, 120px);
}
.hero-content, .hero-media { min-width: 0; }
.hero-content { max-width: 580px; }
.hero h1 {
  font-size: clamp(2.3rem, 4.8vw, 3.7rem);
  line-height: 1.08;
  margin-bottom: 24px;
}
.hero h1 .gold { display: block; }
.hero-lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin-bottom: 34px;
  max-width: 500px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero media — pełnoekranowe zdjęcie po prawej z miękkim przejściem w tło.
   Pozycjonowane absolutnie względem .hero (prawa połowa okna), więc sięga
   krawędzi viewportu, a prawa kolumna gridu rezerwuje pod nie miejsce. */
.hero-media {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 50vw;
  max-width: 760px;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* miękki szew tylko przy lewej krawędzi (wąski), żeby zdjęcie wypełniało prawą połowę 50/50 */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 11%),
    linear-gradient(to bottom, #000 88%, transparent 100%);
  mask-image:
    linear-gradient(to right, transparent 0, #000 11%),
    linear-gradient(to bottom, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* ----- 7. PASEK 4 CECHY (features bar) --------------------------------- */
.feature-bar { position: relative; margin-top: -56px; z-index: 5; }
.feature-bar .grid {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  border: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 30px 28px;
  border-right: 1px solid var(--line-soft);
}
.feature-item:last-child { border-right: none; }
.feature-ico {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: grid; place-items: center;
}
.feature-ico svg { width: 40px; height: 40px; }
.feature-item h3 { font-size: 1.02rem; margin-bottom: 4px; }
.feature-item p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.5; }

/* ----- 8. RODZAJE MEDIACJI (karty) ------------------------------------- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.area-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 38px 26px 30px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.area-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.area-card:hover { transform: translateY(-8px); box-shadow: var(--sh-md); border-color: transparent; }
.area-card:hover::before { transform: scaleX(1); }
.area-ico {
  width: 84px; height: 84px;
  border-radius: 20px;
  background: var(--cream);
  display: grid; place-items: center;
  margin-bottom: 22px;
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.area-card:hover .area-ico { transform: translateY(-4px) scale(1.04); background: var(--cream-2); }
.area-ico svg { width: 50px; height: 50px; }
.area-card h3 { font-size: 1.22rem; margin-bottom: 12px; }
.area-card p { font-size: 0.94rem; color: var(--ink-soft); flex-grow: 1; margin-bottom: 20px; }
.area-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.9rem;
  color: var(--gold-dark);
}
.area-link svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.area-card:hover .area-link svg { transform: translateX(6px); }

/* ----- 9. SEKCJA MERYTORYCZNA (czym jest mediacja) --------------------- */
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
}
.split--reverse { grid-template-columns: 1.15fr 0.85fr; }
.prose p { margin-bottom: 18px; color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-bottom: 22px; }
.prose h3 { font-size: 1.3rem; margin: 32px 0 14px; }

.info-aside {
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(32px, 4vw, 48px);
  position: relative;
  overflow: hidden;
}
.info-aside::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -60px;
  width: 200px; height: 200px;
  border: 30px solid rgba(192,151,74,.10);
  border-radius: 50%;
}
.info-aside h3 { color: #fff; font-size: 1.5rem; margin-bottom: 20px; }
.info-aside ul { display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; }
.info-aside li { display: flex; gap: 14px; align-items: flex-start; color: rgba(255,255,255,.86); font-size: 0.97rem; }
.info-aside li svg { width: 22px; height: 22px; color: var(--gold-light); flex-shrink: 0; margin-top: 2px; }

/* Lista z ptaszkami (uniwersalna) */
.check-list { display: grid; gap: 14px; }
.check-list li { display: flex; gap: 13px; align-items: flex-start; color: var(--ink-soft); }
.check-list li svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.check-list--cols { grid-template-columns: repeat(2, 1fr); column-gap: 36px; }

/* ----- 10. BELKA CTA (granat z grafiką) -------------------------------- */
.cta-band {
  position: relative;
  background:
    radial-gradient(circle at 15% 20%, rgba(192,151,74,.18), transparent 42%),
    radial-gradient(circle at 85% 90%, rgba(192,151,74,.12), transparent 45%),
    linear-gradient(135deg, var(--navy-800), var(--navy) 60%, var(--navy-700));
  color: #fff;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .6;
}
.cta-band .container { position: relative; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 20px; max-width: 880px; margin-inline: auto; }
.cta-band h2 .gold { color: var(--gold-light); }
.cta-band p { color: rgba(255,255,255,.82); max-width: 720px; margin: 0 auto 34px; font-size: 1.08rem; }
.cta-band .hero-actions { justify-content: center; }

/* ----- 11. DLACZEGO WARTO (5 ikon) ------------------------------------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
.trust-item { text-align: center; padding: 12px; }
.trust-ico {
  width: 92px; height: 92px;
  margin: 0 auto 20px;
  border-radius: 24px;
  background: var(--cream);
  display: grid; place-items: center;
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.trust-item:hover .trust-ico { background: var(--cream-2); transform: translateY(-6px); }
.trust-ico svg { width: 54px; height: 54px; }
.trust-item p { font-size: 0.95rem; color: var(--ink); font-weight: 500; line-height: 1.5; }

/* ----- 12. JAK PRZEBIEGA (kroki) --------------------------------------- */
.steps { position: relative; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  position: relative;
}
.steps-grid::before {
  content: "";
  position: absolute;
  top: 30px; left: 10%; right: 10%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px);
  opacity: .5;
  z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 60px; height: 60px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  box-shadow: var(--sh-gold);
  border: 4px solid #fff;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.5; }

/* ----- 13. O MNIE (split granat) --------------------------------------- */
.about-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: stretch;
  background: var(--navy);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.about-photo { position: relative; min-height: 420px; }
/* inset:0 zamiast height:100% — wypełnia kontener nawet gdy ma tylko min-height (inaczej zostaje granatowa luka pod zdjęciem) */
.about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.about-body {
  padding: clamp(36px, 4.5vw, 60px);
  color: #fff;
}
.about-body .eyebrow { color: var(--gold-light); }
.about-body .eyebrow::before { background: var(--gold-light); }
.about-body h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: 22px; }
.about-body p { color: rgba(255,255,255,.82); margin-bottom: 18px; font-size: 1rem; }
.about-sign {
  display: flex; align-items: center; gap: 16px;
  margin: 28px 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.about-sign .name { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.05rem; }
.about-sign .role { font-size: 0.85rem; color: var(--gold-light); }

/* ----- 14. BELKA KONTAKTOWA (3 ikony) ---------------------------------- */
.contact-band {
  position: relative;
  /* Fallback, gdy w panelu „Tło sekcji" nie wybrano zdjęcia. Domyślne zdjęcie tej belki
     jest ustawione w atrybutach bloku (bgImage), więc steruje nim panel — nie CSS. */
  background: #122140;
}
.contact-band .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 30px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.contact-card .ico {
  width: 56px; height: 56px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--navy);
  color: var(--gold-light);
  display: grid; place-items: center;
}
.contact-card .ico svg { width: 26px; height: 26px; }
.contact-card .lbl { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); font-family: var(--font-head); font-weight: 600; margin-bottom: 4px; }
.contact-card .val { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1.02rem; line-height: 1.35; }
.contact-card a.val:hover { color: var(--gold-dark); }

/* ----- 15. FORMULARZ KONTAKTOWY ---------------------------------------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}
.contact-info h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 18px; }
.contact-info > p { color: var(--ink-soft); margin-bottom: 30px; }
.contact-detail { display: flex; flex-direction: column; gap: 18px; }
.contact-detail li { display: flex; gap: 16px; align-items: flex-start; }
.contact-detail .ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(192,151,74,.12); color: var(--gold-dark); display: grid; place-items: center; flex-shrink: 0; }
.contact-detail .ico svg { width: 22px; height: 22px; }
.contact-detail .lbl { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); font-weight: 600; }
.contact-detail .val { font-family: var(--font-head); font-weight: 600; color: var(--navy); }
.contact-detail a.val:hover { color: var(--gold-dark); }
/* Ikony social w danych kontaktowych (jasna sekcja) */
.contact-social { display: flex; gap: 10px; margin-top: 24px; }
.contact-social a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(192,151,74,.12);
  color: var(--gold-dark);
  display: grid; place-items: center;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.contact-social a:hover { background: var(--navy); color: #fff; transform: translateY(-3px); }
.contact-social svg { width: 20px; height: 20px; }

/* Strona 404 */
.error-404__inner { max-width: 620px; margin: 0 auto; text-align: center; }
.error-404 h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; margin: 14px 0 16px; }
.error-404 p { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 30px; }
.error-404__actions { justify-content: center; }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3.5vw, 44px);
  box-shadow: var(--sh-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; font-family: var(--font-head); }
.field label .req { color: var(--gold-dark); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--cream);
  color: var(--ink);
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(192,151,74,.12);
}
.field.error input, .field.error select, .field.error textarea { border-color: #d9534f; }
.field .err-msg { color: #d9534f; font-size: 0.8rem; margin-top: 5px; display: none; }
.field.error .err-msg { display: block; }
.form-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 22px; }
.form-consent input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--gold); }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 16px; text-align: center; }
.form-success {
  display: none;
  background: rgba(192,151,74,.10);
  border: 1px solid var(--gold);
  border-radius: var(--r-md);
  padding: 18px 22px;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 20px;
}
.form-success.show { display: block; }
.honeypot { position: absolute; left: -9999px; opacity: 0; }

/* Mapa */
.map-wrap { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); border: 1px solid var(--line); margin-top: 28px; }
.map-wrap iframe { width: 100%; height: 340px; border: 0; display: block; filter: grayscale(.15); }

/* ----- 15a. SEKCJA Z SUBTELNYM ZDJĘCIEM W TLE -------------------------- */
.section--photo {
  position: relative;
  background: var(--cream);
  overflow: hidden;
}
.section--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--photo);
  background-size: cover;
  background-position: center;
  opacity: 0.12;            /* subtelne tło */
  pointer-events: none;
}
.section--photo::after {     /* delikatne wybielenie krawędzi dla czytelności */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(247,245,240,.55), rgba(247,245,240,.15) 40%, rgba(247,245,240,.55));
  pointer-events: none;
}
.section--photo > .container { position: relative; z-index: 1; }

/* ----- 15b. GALERIA BIURA ---------------------------------------------- */
.office-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-self: stretch;
}
.office-gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.office-gallery img:hover { transform: scale(1.03); box-shadow: var(--sh-md); }

/* ----- 16. PODSTRONY: hero z breadcrumb -------------------------------- */
.page-hero {
  position: relative;
  background:
    radial-gradient(circle at 80% 10%, rgba(192,151,74,.16), transparent 45%),
    linear-gradient(135deg, var(--navy-800), var(--navy) 70%);
  color: #fff;
  padding: clamp(54px, 7vw, 96px) 0;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .5;
}
.page-hero .container { position: relative; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: rgba(255,255,255,.6); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb .sep { color: var(--gold); }
.breadcrumb span[aria-current] { color: var(--gold-light); }
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero .eyebrow::before { background: var(--gold-light); }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: 18px; max-width: 800px; }
.page-hero p { color: rgba(255,255,255,.82); max-width: 680px; font-size: 1.1rem; }

/* ----- 17. STOPKA ------------------------------------------------------- */
.footer {
  background: var(--navy-800);
  color: rgba(255,255,255,.7);
  padding-top: clamp(56px, 7vw, 88px);
  position: relative;
  overflow: hidden;
}
.footer::after {
  content: "RR";
  position: absolute;
  right: -10px; bottom: -50px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22rem;
  line-height: 1;
  color: rgba(255,255,255,.025);
  pointer-events: none;
  letter-spacing: -0.05em;
}
.footer .container { position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.footer-logo img { width: 48px; height: 48px; }
.footer-logo .logo-name { color: #fff; }
.footer-logo .logo-sub { color: var(--gold-light); }
.footer-about { font-size: 0.95rem; line-height: 1.7; max-width: 360px; margin-bottom: 24px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: grid; place-items: center;
  color: rgba(255,255,255,.8);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.footer-social a:hover { background: var(--gold); color: #fff; transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }

.footer h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
}
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--gold); }
.footer-nav { display: grid; gap: 12px; }
.footer-nav a { font-size: 0.95rem; transition: color .2s var(--ease), padding-left .2s var(--ease); display: inline-flex; align-items: center; gap: 8px; }
.footer-nav a::before { content: "›"; color: var(--gold); font-size: 1.1rem; }
.footer-nav a:hover { color: #fff; padding-left: 4px; }

.footer-contact li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; font-size: 0.95rem; }
.footer-contact svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.footer-contact a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.footer-bottom a:hover { color: var(--gold-light); }
.footer-legal { display: flex; gap: 22px; }

/* ----- 17b. FAQ (accordion) -------------------------------------------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.faq details[open] { box-shadow: var(--sh-sm); border-color: var(--gold); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--gold-dark);
  transition: transform .3s var(--ease);
  line-height: 1;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 26px 24px; color: var(--ink-soft); }
.faq .faq-body p { margin: 0; }

/* ----- 17c. STRONA PRAWNA (polityka prywatności) ----------------------- */
.legal h2 {
  font-size: 1.4rem;
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.legal h2:first-of-type { margin-top: 8px; }
.legal p { font-size: 0.98rem; }
.legal .check-list { font-size: 0.96rem; }
.legal .check-list li { color: var(--ink); }

/* ----- 18. ANIMACJE WEJŚCIA -------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ----- 19. RESPONSYWNOŚĆ ----------------------------------------------- */
@media (max-width: 1100px) {
  .nav a { padding: 10px 10px; font-size: 0.88rem; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .steps-grid { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .steps-grid::before { display: none; }
  .feature-bar .grid { grid-template-columns: repeat(2, 1fr); }
  .feature-item:nth-child(2) { border-right: none; }
  .feature-item:nth-child(1), .feature-item:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
}

/* Nav → hamburger wcześniej (rozbudowane 7-pozycyjne menu) */
@media (max-width: 1280px) {
  .burger { display: block; }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(84vw, 330px);
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    padding: calc(var(--topbar-h) + var(--header-h) + 12px) 24px 28px;
    gap: 2px;
    box-shadow: -16px 0 48px rgba(13, 24, 50, .20);
    transform: translateX(105%);
    transition: transform .35s var(--ease);
    overflow-y: auto;
    z-index: 120;
  }
  .nav.open { transform: translateX(0); }
  .burger { z-index: 130; }
  .nav a { padding: 14px 12px; font-size: 1rem; border-bottom: 1px solid var(--line-soft); }
  .nav a::after { display: none; }
  .nav a.active::after { display: none; }
}

@media (max-width: 980px) {
  :root { --header-h: 70px; }

  .hero .container { grid-template-columns: 1fr; }
  .hero-content { max-width: 100%; order: 1; }
  .hero-media {
    position: static;            /* reset full-bleed na mobile */
    width: auto;
    max-width: none;
    order: 2;
    margin: 16px 0 0;
  }
  .hero-media img {
    aspect-ratio: 4 / 3.1;
    border-radius: var(--r-lg);
    -webkit-mask-image: none;
    mask-image: none;
  }

  .split, .split--reverse, .contact-wrap, .about-split { grid-template-columns: 1fr; }
  .split--reverse .info-aside { order: -1; }
  .about-photo { min-height: 360px; }

  .contact-band .grid { grid-template-columns: 1fr; }
  .contact-card .val { overflow-wrap: anywhere; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .topbar-left { gap: 16px; font-size: 0.8rem; flex-wrap: nowrap; min-width: 0; }
  .topbar-left a { white-space: nowrap; }
  .topbar-left .tb-addr { display: none; }
  .areas-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-bar { margin-top: -30px; }
  .feature-bar .grid { grid-template-columns: 1fr; }
  .feature-item { border-right: none !important; border-bottom: 1px solid var(--line-soft); }
  .feature-item:last-child { border-bottom: none; }
  .check-list--cols { grid-template-columns: 1fr; }
  .contact-band .grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .footer::after { font-size: 13rem; }
}

@media (max-width: 460px) {
  .container { padding-inline: 18px; }
  .steps-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .logo-name { font-size: 1rem; }
  .topbar-left a:first-child { display: none; } /* telefon: chowamy długi e-mail, zostaje tel. + social */
}

/* ----- 20. DOSTĘPNOŚĆ --------------------------------------------------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: -9999px;
  background: var(--navy); color: #fff;
  padding: 12px 20px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; top: 0; }

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

/* ----- 21. KONFIGUROWALNE OPCJE BLOKÓW --------------------------------- */
/* Karty obszarów: liczba kolumn wybierana w edytorze (2 / 3 / 4), responsywnie. */
.areas-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.areas-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.areas-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) {
  .areas-grid.cols-2, .areas-grid.cols-3, .areas-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .areas-grid.cols-2, .areas-grid.cols-3, .areas-grid.cols-4 { grid-template-columns: 1fr; }
}

/* Tło sekcji — wariant granatowy (jasny tekst nagłówka) */
.section--navy { background: var(--navy); }
.section--navy .section-head h2 { color: #fff; }
.section--navy .section-head p { color: rgba(255, 255, 255, 0.82); }
.section--navy .eyebrow { color: var(--gold-light); }

/* Odstępy sekcji — kompaktowe / luźne */
.section--compact { padding-top: clamp(36px, 4vw, 56px); padding-bottom: clamp(36px, 4vw, 56px); }
.section--spacious { padding-top: clamp(90px, 11vw, 150px); padding-bottom: clamp(90px, 11vw, 150px); }

/* Wyrównanie nagłówka sekcji */
.section-head--left { text-align: left; margin-left: 0; max-width: 880px; }

/* Warianty wyglądu kart */
.area-card--shadow { border-color: transparent; box-shadow: 0 18px 40px rgba(18, 33, 64, 0.10); }
.area-card--filled { background: var(--cream); border-color: transparent; }

/* Własne zdjęcie / SVG w miejscu ikony karty — dopasowanie do kafelka ikony */
.area-ico img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; display: block; }
.area-ico svg { max-width: 100%; height: auto; }

/* Pełna dowolność kolorów: gdy ktoś ustawi kolor tekstu sekcji (natywne WP),
   nagłówki też za nim idą (np. ciemne tło + jasny tekst = wszystko czytelne). */
.has-text-color .section-head h2,
.has-text-color .section-head p,
.has-text-color .eyebrow,
.has-text-color h2,
.has-text-color h3,
.has-text-color p { color: inherit; }

/* Opcje specyficzne bloków */
.hero--img-left .hero-media { order: -1; }          /* Hero: zdjęcie po lewej */
.prose-block--wide .prose { max-width: 1100px; }    /* Tekst: szersza treść */
.split--reverse .info-aside { order: -1; }          /* Split: panel po lewej */

/* Granularne kroki: numeracja automatyczna licznikiem CSS (przelicza się po przestawieniu) */
.steps-grid--auto { counter-reset: gstep; }
.steps-grid--auto .step .step-num::before { counter-increment: gstep; content: counter(gstep); }

/* Sekcja bez własnego nagłówka (lista/kroki jako ciąg dalszy poprzedniej sekcji) — bez pustej przerwy */
.section--no-head { padding-top: 0; }
.section:has(+ .section--no-head) { padding-bottom: clamp(16px, 2vw, 28px); }
