/* ============================================================
   STYLES.CSS – WERSJA OCZYSZCZONA (jedno źródło prawdy)
   - bez duplikatów
   - spójne breakpointy
   - TOPBAR + hamburger zgodny z JS: .nav-toggle + #site-nav.nav--open
============================================================ */

/* ============================================================
   ZMIENNE
============================================================ */
:root {
  --bg-shift: 0px;

  /* Kolory bazowe */
  --bg: #0f172a;
  --ink: #0b1220;
  --ink-soft: rgba(11, 18, 32, .82);
  --white: rgba(255, 255, 255, 0.80);

  /* Akcent */
  --gold: #b98b4a;
  --gold-2: #a67c00;

  /* Karty */
  --card-bg: rgba(255,255,255,.12);
  --card-border: rgba(255,255,255,.18);
  --radius: 18px;

  /* Cienie */
  --shadow: 0 18px 40px rgba(0,0,0,.25);

  /* Kontenery */
  --container: 1120px;
  --container-pad: 24px;

  /* ~10mm (użyteczne jako stała) */
  --shift-10mm: 38px;

  /* Sekcje */
  --section-pad: 20px;

  /* Hero overlay */
  --overlay-dark: rgba(11, 18, 32, .22);
  --overlay-soft: rgba(11, 18, 32, .18);

  /* Kontakt */
  --contact-form-maxw: 560px;

  /* HERO: dopasowanie karty do ilustracji */
  --hero-card-maxw: 420px;
  --hero-card-offset-x: 24px;
}

/* ============================================================
   RESET + TYPOGRAFIA BAZOWA
============================================================ */
* { box-sizing: border-box; }
html { height: 100%; overflow-x: hidden; scroll-padding-top: 88px; }
body, h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
  color: var(--white);
  background: none;
  background-color: #0b1220;
  overflow-x: hidden;
  padding-top: 72px;
}

/* Tło dla podstron (np. kalendarz.html) */
body.subpage {
  background: none;
  background-color: #0b1220;
}

/* Stałe przyciemnienie tła */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 28, 0.30);
  z-index: -1;
  pointer-events: none;
}

/* ============================================================
   HYBRID BACKGROUND (scroll -> stop na końcu obrazka)
============================================================ */

/* warstwa obrazu */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;

  background-image: image-set(
    url("/tlo.avif") type("image/avif"),
    url("/tlo.webp") type("image/webp"),
    url("/tlo.png")  type("image/png")
  );

  background-size: 100% auto;
  background-repeat: no-repeat;
  background-color: #0b1220;
  background-position: 50% calc(0px - var(--bg-shift));
  will-change: background-position;
}

/* podstrony */
body.subpage::after {
  background-image: image-set(
    url("/tlo_1.avif") type("image/avif"),
    url("/tlo_1.webp") type("image/webp"),
    url("/tlo_1.png")  type("image/png")
  );

  background-size: 100% auto;
  background-repeat: no-repeat;
  background-color: #0b1220;
  background-position: 50% calc(0px - var(--bg-shift));
  will-change: background-position;
}

p { margin: 0 0 14px; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.2; }
h2 {
  margin-top: 10px;
  margin-bottom: 10px;
}

/* ============================================================
   SKIP LINK (A11Y)
============================================================ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(10, 16, 28, 0.9);
  color: #fff;
  outline: 2px solid var(--gold);
}

/* ============================================================
   UTIL / LAYOUT
============================================================ */
.container {
  width: min(var(--container), calc(100% - (var(--container-pad) * 2)));
  margin-inline: auto;
}

.container--content { padding-top: 0; }

.section {
  padding: 100px 0;
  min-height: auto;
  color: var(--white);
  background: transparent;
}

.section--soft { background: transparent; }

.lead {
  color: rgba(255,255,255,.80);
  max-width: 62ch;
}

.muted { color: rgba(255,255,255,.70); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.list { margin: 0; padding-left: 16px; }
.list li { margin-bottom: 10px; }
.list strong {
  position: relative;
  display: inline-block;
  min-width: 70px;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  font-weight: 600;
  letter-spacing: .2px;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
  user-select: none;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  border: 1px solid var(--gold);
  color: #1a1208;
  position: relative;
  isolation: isolate;
  transform: translateZ(0);
}

.btn--primary:hover {
  background: rgba(184, 139, 65,.75);
  color: var(--white);
}

.btn--ghost {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a1208;
  border: 1px solid var(--gold);
}

.btn--ghost:hover {
  background: rgba(184, 139, 65,.75);
  color: var(--white);
}

.btn--block { width: 100%; }

.btn:focus-visible,
.nav__link:focus-visible,
.nav-toggle:focus-visible,
.to-top:focus-visible {
  outline: 2px solid rgba(185, 139, 74, 0.9);
  outline-offset: 2px;
}

/* Premium halo – idle + hover/focus */
.btn--primary::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      120% 120% at 50% 55%,
      color-mix(in srgb, var(--gold-2) 62%, transparent) 0%,
      color-mix(in srgb, var(--gold)   38%, transparent) 28%,
      transparent 70%
    );
  opacity: .22;
  filter: blur(10px);
  transform: scale(0.985);
  transition: opacity .22s ease, filter .22s ease, transform .22s ease;
  animation: ctaHaloPulse 2.6s ease-in-out infinite;
}

.btn--primary:hover::after { opacity: .36; filter: blur(11px); transform: scale(1.01); }
.btn--primary:focus-visible { outline: none; }
.btn--primary:focus-visible::after { opacity: .48; filter: blur(12px); transform: scale(1.03); }

@keyframes ctaHaloPulse {
  0%   { opacity: .20; transform: scale(0.985); }
  45%  { opacity: .28; transform: scale(1.005); }
  100% { opacity: .20; transform: scale(0.985); }
}

@media (prefers-reduced-motion: reduce) {
  .btn--primary::after { animation: none; }
}

/* ============================================================
   TOPBAR / NAV – FINAL
============================================================ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 16, 28, .55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.18);
  --edge-pad: clamp(16px, 2.8vw, 38px);
}

.topbar__inner.container {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 18px);
  padding: 6px var(--edge-pad);
  position: relative;
}

.home-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--gold), transparent 5%);
  background: color-mix(in srgb, var(--gold), transparent 92%);
  color: color-mix(in srgb, var(--gold), transparent 5%);
  font-size: 22px;
  line-height: 1;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.home-link:hover {
  background: color-mix(in srgb, var(--gold), transparent 86%);
  border-color: color-mix(in srgb, var(--gold-2), transparent 5%);
  color: color-mix(in srgb, var(--gold-2), transparent 5%);
  transform: translateY(-1px);
}

.home-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(185, 139, 74, 0.22);
}

.brand-group {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 40px);
  margin-left: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand__title {
  font-weight: 800;
  letter-spacing: .2px;
  color: color-mix(in srgb, var(--gold), transparent 5%);
}

.brand__subtitle {
  font-size: 13px;
  color: color-mix(in srgb, var(--gold), transparent 5%);
}

.brand-divider {
  width: 1px;
  height: 30px;
  background: color-mix(in srgb, var(--gold), transparent 20%);
  flex: 0 0 auto;
}

#site-nav.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 1.2vw, 16px);
  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: 0;
}

.nav__link {
  font-weight: 600;
  color: color-mix(in srgb, var(--gold), transparent 5%);
  padding: 10px 12px;
  border-radius: 999px;
  transition: background-color .15s ease, color .15s ease;
}

.nav__link:hover {
  background: color-mix(in srgb, var(--gold), transparent 90%);
  color: color-mix(in srgb, var(--gold-2), transparent 5%);
}

.nav__link--btn {
  border: 1px solid color-mix(in srgb, var(--gold-2), transparent 5%);
  background: color-mix(in srgb, var(--gold), transparent 95%);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--gold), transparent 5%);
  color: color-mix(in srgb, var(--gold), transparent 5%);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  flex: 0 0 auto;
}

.nav-toggle__icon {
  display: block;
  position: relative;
  width: 20px;
  height: 2px;
  background: color-mix(in srgb, var(--gold), transparent 5%);
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: color-mix(in srgb, var(--gold), transparent 5%);
}

.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after  { top: 6px; }

@media (max-width: 1200px) {
  .topbar__inner {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex;
  }

  #site-nav.nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 24px;
    left: auto;
    width: min(360px, calc(100vw - 48px));
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    gap: 10px;
    border-radius: 16px;
    background: rgba(10, 16, 28, .96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.18);
    z-index: 1001;
    white-space: normal;
  }

  #site-nav.nav.nav--open {
    display: flex;
  }

  #site-nav.nav .nav__link {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
  }

  #site-nav.nav .nav__link--btn {
    align-self: flex-start;
    width: auto;
    border: 1px solid color-mix(in srgb, var(--gold-2), transparent 5%);
    background: color-mix(in srgb, var(--gold), transparent 95%);
    border-radius: 999px;
    padding: 10px 12px;
  }

  #site-nav.nav .nav__link--btn:hover {
    background: color-mix(in srgb, var(--gold), transparent 90%);
    color: color-mix(in srgb, var(--gold-2), transparent 5%);
  }

  #site-nav.nav .nav__link--btn:active {
    transform: translateY(1px);
  }
}

@media (max-width: 768px) {
  .topbar__inner {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    gap: 12px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .brand-divider {
    display: none;
  }

  .brand__title {
    font-size: 15px;
    line-height: 1.1;
  }

  .brand__subtitle {
    font-size: 12px;
    line-height: 1.2;
  }

  #site-nav.nav {
    right: 16px;
    width: min(360px, calc(100vw - 32px));
  }

  .nav-toggle__text {
    display: none;
  }

  .nav-toggle {
    width: auto;
    height: auto;
    min-width: 58px;
    min-height: 36px;
    padding: 8px 15px;
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .topbar__inner {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .home-link {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .nav-toggle {
    width: auto;
    height: auto;
    min-width: 54px;
    min-height: 34px;
    padding: 7px 14px;
  }

  .brand__subtitle {
    font-size: 11px;
  }

  #site-nav.nav {
    right: 12px;
    width: calc(100vw - 24px);
  }
}

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  color: var(--white);
  padding: 20px 0 20px;
  overflow: hidden;
  background: transparent;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, var(--hero-card-maxw));
  gap: 32px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 4.4vw, 58px);
  letter-spacing: .2px;
  margin-bottom: 14px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 18px 0 16px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.pill {
  display: inline-flex;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.82);
  font-weight: 600;
  font-size: 13px;
}

.hero__card {
  margin-left: 0;
  width: 100%;
  max-width: var(--hero-card-maxw);
  justify-self: end;
  align-self: flex-start;
  margin-top: 85px;
  transform: translateX(var(--hero-card-offset-x));
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border: none;
}

.hero__card h3,
.hero__card p,
.hero__card li {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 10px;
}

.checklist li {
  position: relative;
  padding-left: 22px;
  color: rgba(255,255,255,.84);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-2);
  font-weight: 800;
}

/* ============================================================
   FORMY
============================================================ */
.form {
  display: grid;
  gap: 12px;
}

.form label {
  display: block;
}

.form label span {
  display: block;
  font-weight: 700;
  color: rgba(255,255,255,.84);
  margin-bottom: 6px;
  font-size: 13px;
}

.form input,
.form textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  outline: none;
}

.form input:focus,
.form textarea:focus {
  border-color: rgba(198, 161, 97, .65);
}

/* ============================================================
   PODSTRONY (Aktualności / Dokumenty / Kalendarz)
============================================================ */
.hero--subpage { padding: 28px 0 12px; }
.section--subpage { padding: 48px 0 72px; }

body.subpage .section--subpage + .section--subpage { margin-top: 40px; }

.container--subpage,
.container--subpage-box {
  width: min(var(--container), calc(100% - (var(--container-pad) * 2)));
  margin-inline: auto;
}

.section__head { margin-bottom: 18px; }

.embed {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: calc(var(--radius) - 6px);
  margin-bottom: 28px;
}

.embed iframe {
  display: block;
  width: 100%;
  height: min(72vh, 820px);
  border: 0;
}

.card--calendly { padding: 16px; }

/* ============================================================
   BADGE – OFICJALNY (PREMIUM)
============================================================ */
.badge--official {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 600;
  color: #1a1a1a;
  background: linear-gradient(135deg, #e8c67a 0%, #d4a94f 40%, #f3d991 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #b8872b);
}

.card--official:hover .badge--official {
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Karty: akcje na dole */
.card .btn { margin-top: auto; }
.card .actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.card.post { display: flex; flex-direction: column; }
.card.post .actions {
  margin-top: auto;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.card.post .actions .btn { width: auto; }

/* PODSTRONY – odstępy i akcje pod sekcjami */
.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 80px;
}

.actions--centered { justify-content: center; }

/* ============================================================
   DOKUMENTY – WSZYSTKIE PRZYCISKI ZŁOTE
============================================================ */
.section--subpage .btn--tiny {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a1208;
  border: 1px solid var(--gold);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.section--subpage .btn--tiny:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.45);
  background: rgba(184, 139, 65,.75);
  color: var(--white);
}

/* ============================================================
   LUXURY HOVER (HOME + PODSTRONY)
============================================================ */
body.home #aktualnosci .card,
body.home #dokumenty .card,
.section--subpage .card {
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

body.home #aktualnosci .card:hover,
body.home #dokumenty .card:hover,
.section--subpage .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 60px rgba(212, 169, 79, 0.22);
  border-color: rgba(212, 169, 79, 0.45);
}

body.home #aktualnosci .card::before,
body.home #dokumenty .card::before,
.section--subpage .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

body.home #aktualnosci .card:hover::before,
body.home #dokumenty .card:hover::before,
.section--subpage .card:hover::before {
  animation: shimmer 1.4s ease forwards;
}

@keyframes shimmer { 100% { left: 140%; } }

/* ============================================================
   ARTICLE (wpisy) – układ + typografia premium
============================================================ */
.article {
  max-width: 920px;
  margin: 0 auto;
  animation: articleFade 0.55s ease forwards;
  opacity: 0;
  transform: translateY(6px);
}

@keyframes articleFade { to { opacity: 1; transform: translateY(0); } }

.article h1 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.article p {
  margin-top: 10px;
  line-height: 1.75;
  max-width: 76ch;
}

.article ul { margin-top: 10px; padding-left: 18px; }
.article li { margin: 8px 0; }

.article__meta {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.article__meta .pill {
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 999px;
}

.article__rule {
  height: 1px;
  margin: 18px 0 10px;
  background: linear-gradient(90deg, rgba(212,169,79,.55), rgba(255,255,255,.10), rgba(212,169,79,.10));
}

.article h2 {
  margin-top: 28px;
  font-size: 20px;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 10px;
}

.article h2::after {
  content: "";
  display: block;
  height: 1px;
  width: 84px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--gold), rgba(212,169,79,0.18));
}

/* ============================================================
   BREADCRUMBS – glass premium
============================================================ */
.breadcrumbs {
  margin-top: 18px;
  padding: 12px 18px;
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  background: rgba(12, 18, 32, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(212,169,79,0.25);
  border-radius: 8px;
  animation: breadcrumbsFade 0.6s ease forwards;
  opacity: 0;
  transform: translateY(4px);
  transition: background 0.3s ease, border-color 0.3s ease;
}

@keyframes breadcrumbsFade { to { opacity: 1; transform: translateY(0); } }

.breadcrumbs:hover {
  background: rgba(12, 18, 32, 0.55);
  border-color: rgba(212,169,79,0.45);
}

.breadcrumbs__link {
  position: relative;
  color: rgba(255,255,255,0.82);
  transition: color 0.25s ease;
}

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

.breadcrumbs__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s ease;
}

.breadcrumbs__link:hover::after { width: 100%; }

.breadcrumbs__sep { color: rgba(212,169,79,0.85); }

.breadcrumbs__current {
  color: rgba(255,255,255,0.92);
  max-width: 52ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   CTA – wspólne (home + wpisy + inne)
============================================================ */
.card--cta {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.card--cta .btn { margin-top: 16px; }

.card--cta,
.article__cta,
.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 169, 79, 0.40);
  background: linear-gradient(145deg, rgba(212, 169, 79, 0.15), rgba(212, 169, 79, 0.05));
  box-shadow: 0 18px 60px rgba(0,0,0,0.30);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.card--cta:hover,
.article__cta:hover,
.cta-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 60px rgba(212, 169, 79, 0.35);
  border-color: rgba(212, 169, 79, 0.50);
}

.card--cta::before,
.article__cta::before,
.cta-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
}

.card--cta:hover::before,
.article__cta:hover::before,
.cta-card:hover::before {
  animation: shimmer 1.4s ease forwards;
}

.article__cta {
  margin-top: 36px;
  padding: 28px 32px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.article__cta p { margin-top: 0; max-width: 80ch; }
.article__cta .btn { margin-top: 12px; }

/* Subtelny halo pulse – primary CTA w artykule */
.article__cta .btn.btn--primary {
  position: relative;
}

.article__cta .btn.btn--primary::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  border: 1px solid rgba(212,169,79,0.35);
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
  animation: haloPulse 3.6s ease-in-out infinite;
}

@keyframes haloPulse {
  0%, 70% { opacity: 0; transform: scale(0.98); }
  80% { opacity: 0.55; transform: scale(1.02); }
  100% { opacity: 0; transform: scale(1.05); }
}

/* ============================================================
   TO TOP – premium
============================================================ */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(212,169,79,0.45);
  background: rgba(12,18,32,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--gold);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, border-color .25s ease;
}

.to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.to-top:hover { border-color: rgba(212,169,79,0.65); }

/* ============================================================
   Sticky CTA – desktop only
============================================================ */
.sticky-cta { display: none; }

@media (min-width: 1101px) {
  .sticky-cta {
    display: block;
    position: sticky;
    top: 110px;
    align-self: start;
    margin-left: 24px;
  }

  .section--subpage .container--subpage.article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
  }

  .sticky-cta__box {
    padding: 18px 18px;
    border-radius: 16px;
    border: 1px solid rgba(212,169,79,0.35);
    background: rgba(12,18,32,0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 18px 60px rgba(0,0,0,0.30);
  }

  .sticky-cta__title { font-weight: 700; letter-spacing: -0.01em; }
  .sticky-cta__text { margin-top: 8px; opacity: 0.85; line-height: 1.6; }

  .sticky-cta__box .btn {
    margin-top: 14px;
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   Expert box – premium
============================================================ */
.expert-box {
  margin-top: 26px;
  padding: 22px 26px;
  border-radius: 16px;
  border: 1px solid rgba(212,169,79,0.35);
  background: linear-gradient(145deg, rgba(212,169,79,0.10), rgba(12,18,32,0.35));
  box-shadow: 0 18px 60px rgba(0,0,0,0.28);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.expert-box__title { font-weight: 800; letter-spacing: -0.01em; }
.expert-box__text { margin-top: 10px; opacity: 0.88; line-height: 1.75; max-width: 78ch; }
.expert-box .btn { margin-top: 14px; }

.expert-box::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -120%;
  width: 80%;
  height: 200%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.06) 40%,
    rgba(255,255,255,0.18) 50%,
    rgba(255,255,255,0.06) 60%,
    rgba(255,255,255,0) 100%
  );
  transform: rotate(20deg);
  transition: all 0.9s ease;
}

.expert-box:hover::after { left: 130%; }

/* ============================================================
   Author signature – premium + reveal on scroll
============================================================ */
.author-sign {
  margin-top: 12px;
  margin-bottom: 24px;
  text-align: left;
  opacity: 0;
  transform: translateY(14px);
  filter: blur(2px);
  transition: opacity .6s ease, transform .6s ease, filter .6s ease;
  will-change: opacity, transform, filter;
}

.author-sign.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.author-sign__name {
  position: relative;
  display: inline-block;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
  text-shadow: 0 0 12px rgba(212,169,79,0.18);
}

.author-sign.is-visible .author-sign__name {
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 45%, transparent 62%, transparent 100%);
  -webkit-mask-size: 240% 100%;
  -webkit-mask-position: 120% 0;
  mask-image: linear-gradient(90deg, #000 0%, #000 45%, transparent 62%, transparent 100%);
  mask-size: 240% 100%;
  mask-position: 120% 0;
  animation: inkRevealText 1.05s ease forwards;
}

@keyframes inkRevealText {
  to {
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
  }
}

.author-sign__role {
  position: relative;
  display: block;
  font-size: 0.95rem;
  opacity: 0.85;
}

.author-sign__role::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  bottom: -10px;
  width: 64%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(212,175,55,0) 0%,
    rgba(212,175,55,0.95) 50%,
    rgba(212,175,55,0) 100%
  );
  opacity: 0;
}

.author-sign.is-visible .author-sign__role::after {
  opacity: 1;
  animation: inkStroke 0.85s ease forwards 0.35s;
}

@keyframes inkStroke {
  to { transform: translateX(-50%) scaleX(1); }
}

/* ============================================================
   NUMERACJA H2 (opcjonalnie) – post--numbered
============================================================ */
body.post--numbered #post-content { counter-reset: h2count; }

body.post--numbered #post-content h2 {
  counter-increment: h2count;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  position: relative;
  padding-left: 0;
  margin: 26px 0 14px;
}

body.post--numbered #post-content h2::before {
  content: counter(h2count) ".";
  color: var(--gold);
  font-weight: 700;
  flex: 0 0 auto;
}

body.post--numbered #post-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 120px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(212,175,55,0.95) 0%,
    rgba(212,175,55,0.35) 70%,
    rgba(212,175,55,0) 100%
  );
  opacity: 0.95;
}

/* ============================================================
   RELATED POSTS
============================================================ */
.related .section__head { margin-bottom: 18px; }
.related .card.post { transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.related .card.post:hover { transform: translateY(-4px); box-shadow: 0 18px 60px rgba(0,0,0,0.28); }

/* ============================================================
   AUTO DRAW GOLD UNDERLINE – .list strong (opcjonalnie)
============================================================ */
.list strong::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, #c8a63a 0%, #fef3c7 50%, #c8a63a 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}

.list strong::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, #d4af37 0%, #fcf6ba 50%, #d4af37 100%);
  filter: blur(3px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.list-animate strong::after { transform: scaleX(1); }
.list-animate strong::before { opacity: 0.6; }

.list-animate li:nth-child(1) strong::after,
.list-animate li:nth-child(1) strong::before { transition-delay: 0.00s; }

.list-animate li:nth-child(2) strong::after,
.list-animate li:nth-child(2) strong::before { transition-delay: 0.14s; }

.list-animate li:nth-child(3) strong::after,
.list-animate li:nth-child(3) strong::before { transition-delay: 0.28s; }

/* ============================================================
   RESPONSIVE STRUCTURE – desktop -> tablet -> mobile
============================================================ */

/* <= 1200px | small desktop / laptop */
@media (max-width: 1200px) {
  .topbar__inner {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* <= 1100px | tablet landscape / mobile nav */
@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex;
  }

  #site-nav.nav {
    position: absolute;
    top: calc(100% + 10px);
    right: var(--edge-pad);
    left: auto;
    width: min(360px, calc(100vw - (2 * var(--edge-pad))));
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    gap: 10px;
    border-radius: 16px;
    background: rgba(10, 16, 28, .96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.18);
    z-index: 1001;
    white-space: normal;
  }

  #site-nav.nav.nav--open {
    display: flex;
  }

  #site-nav.nav .nav__link {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
  }

  #site-nav.nav .nav__link--btn {
    align-self: flex-start;
    width: auto;
    border: 1px solid color-mix(in srgb, var(--gold-2), transparent 5%);
    background: color-mix(in srgb, var(--gold), transparent 95%);
    border-radius: 999px;
    padding: 10px 12px;
  }

  #site-nav.nav .nav__link--btn:hover {
    background: color-mix(in srgb, var(--gold), transparent 90%);
    color: color-mix(in srgb, var(--gold-2), transparent 5%);
  }

  #site-nav.nav .nav__link--btn:active {
    transform: translateY(1px);
  }
}

/* <= 1024px | tablet */
@media (max-width: 1024px) {
  .grid3,
  .grid2 {
    grid-template-columns: 1fr;
  }

  .hero__card {
    margin-left: 0;
    transform: none;
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }
}

/* <= 768px | large mobile / small tablet */
@media (max-width: 768px) {
  body::after,
  body.subpage::after {
    inset: 0 auto auto 0;
    width: 100%;
    height: max(100vh, var(--bg-layer-height, 100vh));
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: top center;
    transform: translate3d(0, calc(-1 * var(--bg-shift)), 0);
    will-change: transform;
  }

  .brand-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .brand-divider {
    display: none;
  }
}

/* <= 640px | consent modal mobile */
@media (max-width: 640px) {
  .consent-modal {
    padding: 12px;
  }

  .consent-modal__dialog {
    width: calc(100vw - 24px);
    padding: 20px 16px;
  }

  .consent-modal__actions {
    flex-direction: column-reverse;
  }

  .consent-modal__actions .btn {
    width: 100%;
  }
}

/* <= 600px | mobile */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 28px;
  }

  .section {
    padding: 60px 0;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }  
}

/* <= 400px | small mobile */
@media (max-width: 400px) {
  .topbar__inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .nav-toggle {
    padding: 7px 10px;
  }

  .brand__subtitle {
    font-size: 12px;
  }
}

/* ============================================================
   CONSENT MODAL – UX FINAL
============================================================ */

.consent-modal[hidden] {
  display: none !important;
}

.consent-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12px;
  z-index: 1200;
  overflow-y: auto;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.26s ease,
    visibility 0.26s ease;
}

.consent-modal__title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 800;
  color: var(--text);
}

.consent-modal.is-open,
.consent-modal.is-closing {
  visibility: visible;
}

.consent-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.consent-modal.is-closing {
  opacity: 0;
  pointer-events: none;
}

.consent-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 12, 22, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.26s ease;
}

.consent-modal.is-open .consent-modal__backdrop {
  opacity: 1;
}

.consent-modal.is-closing .consent-modal__backdrop {
  opacity: 0;
}

.consent-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 28px;
  border-radius: 16px;

  background: rgba(12,18,32,0.92);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);

  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 0.26s ease,
    transform 0.26s ease,
    box-shadow 0.26s ease;
  outline: none;
}

.consent-modal.is-open .consent-modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.consent-modal.is-closing .consent-modal__dialog {
  opacity: 0;
  transform: translateY(10px) scale(0.985);
}

.consent-modal__dialog:focus {
  outline: none;
}

.consent-modal__dialog:focus-visible {
  box-shadow:
    0 18px 60px rgba(0,0,0,.35),
    0 0 0 1px rgba(185, 139, 74, 0.25),
    0 0 0 4px rgba(185, 139, 74, 0.08);
}

.consent-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.consent-modal__close:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-1px);
}

.consent-modal__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(185, 139, 74, 0.22);
}

.consent-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
}

.consent-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

#consentError {
  color: #ffb3b3;
  font-size: 13px;
  margin-top: 6px;
}

.consent-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

body.consent-modal-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .consent-modal,
  .consent-modal__backdrop,
  .consent-modal__dialog,
  .consent-modal__close {
    transition: none;
  }
}

/* ============================================================
   LOADING STATE – formularz kontaktowy
============================================================ */

#openConsentModal,
#confirmConsentSubmit {
  position: relative;
}

#openConsentModal.is-loading,
#confirmConsentSubmit.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
  opacity: 0.92;
}

#openConsentModal:disabled,
#confirmConsentSubmit:disabled {
  cursor: not-allowed;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  flex: 0 0 16px;
  animation: btnSpinnerRotate 0.7s linear infinite;
}

@keyframes btnSpinnerRotate {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   INLINE VALIDATION – błędy pod polami
============================================================ */

.form input.is-invalid,
.form textarea.is-invalid {
  border-color: rgba(255, 140, 140, 0.95);
  box-shadow: 0 0 0 1px rgba(255, 140, 140, 0.18);
}

.form label.has-error span {
  color: #ffcccc;
}

.form-error {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.4;
  color: #ffb8b8;
}

.form-error[hidden] {
  display: none;
}

/* ============================================================
   SUCCESS / STATUS STATE – formularz kontaktowy
============================================================ */

#formMsg {
  margin-top: 14px;
  padding: 0;
  min-height: 0;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    background-color 0.28s ease,
    border-color 0.28s ease,
    color 0.28s ease,
    box-shadow 0.28s ease,
    padding 0.28s ease;
}

#formMsg.is-visible {
  opacity: 1;
  transform: translateY(0);
  padding: 12px 14px;
}

#formMsg.is-error {
  color: #ffd4d4;
  background: rgba(120, 24, 24, 0.22);
  border: 1px solid rgba(255, 140, 140, 0.28);
  border-radius: 12px;
}

#formMsg.is-success {
  color: #f4e7c7;
  background:
    linear-gradient(135deg, rgba(185, 139, 74, 0.20), rgba(166, 124, 0, 0.10));
  border: 1px solid rgba(185, 139, 74, 0.34);
  border-radius: 12px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.16),
    0 0 0 1px rgba(185, 139, 74, 0.06) inset;
}

.form.is-success {
  animation: formSuccessPulse 0.75s ease;
}

@keyframes formSuccessPulse {
  0% {
    transform: translateY(0);
    filter: brightness(1);
  }
  35% {
    transform: translateY(-2px);
    filter: brightness(1.04);
  }
  100% {
    transform: translateY(0);
    filter: brightness(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  #formMsg {
    transition: none;
  }

  .form.is-success {
    animation: none;
  }
}

/* ============================================================
  PODSTRONY - pozycjonowanie
============================================================ */

.service-page .container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-section {
  padding: 56px 0 28px;
}

.hero-section h1 {
  margin: 0 0 18px;
}

.hero-section .lead {
  max-width: 900px;
  font-size: 1.08rem;
  line-height: 1.75;
}

.content-section {
  padding: 12px 0 56px;
}

.content-section h2 {
  margin: 38px 0 14px;
}

.content-section h3 {
  margin: 24px 0 10px;
}

.content-section p,
.content-section li {
  line-height: 1.8;
}

.content-section ul {
  margin: 0 0 18px 22px;
  padding: 0;
}

.content-section a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =========================================
   CTA + FAQ + POWIĄZANE STRONY
========================================= */

.cta-box {
  margin: 42px 0 0;
  padding: 28px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.cta-box__inner h2 {
  margin: 0 0 12px;
}

.cta-box__inner p {
  margin: 0 0 14px;
}

.cta-box__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 16px;
}

.cta-box__details p {
  margin: 6px 0;
}

.faq-section {
  margin: 42px 0 0;
}

.faq-section h2 {
  margin: 0 0 20px;
}

.faq-item {
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item h3 {
  margin: 0 0 10px;
}

.faq-item p {
  margin: 0;
}

.related-pages {
  margin: 42px 0 0;
  padding: 22px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.related-pages h2 {
  margin: 0 0 14px;
}

.related-pages__lead {
  margin: 0 0 14px;
  opacity: 0.92;
}

.related-pages__list {
  margin: 0;
  padding-left: 18px;
}

.related-pages__list li {
  margin: 8px 0;
}

.related-pages__list a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 767px) {
  .hero-section {
    padding: 38px 0 20px;
  }

  .cta-box {
    padding: 22px 18px;
  }

  .cta-box__buttons {
    flex-direction: column;
  }

  .faq-item {
    padding: 16px 16px;
  }

  .related-pages {
    padding: 18px 16px;
  }
}

/* =========================================
   MENU HTML – KOMPATYBILNOŚĆ Z <ul class="nav__list">
   ODDLUZENIE.LIBERTASFILIPIAK.PL
========================================= */

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 16px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__list li {
  margin: 0;
  padding: 0;
}

#site-nav.nav .nav__list a {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--gold), transparent 5%);
  font-weight: 600;
  transition: background-color .15s ease, color .15s ease;
}

#site-nav.nav .nav__list a:hover {
  background: color-mix(in srgb, var(--gold), transparent 90%);
  color: color-mix(in srgb, var(--gold-2), transparent 5%);
}

@media (max-width: 1100px) {
  #site-nav.nav .nav__list {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  #site-nav.nav .nav__list li {
    width: 100%;
  }

  #site-nav.nav .nav__list a {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
  }
}

/* =========================================
   FOOTER – FINAL
   lokalne zmienne tylko dla footera
========================================= */

footer.footer {
  --footer-edge-pad: clamp(16px, 2.8vw, 56px);
  --footer-item-gap: clamp(8px, 0.5vw, 14px);

  padding: 12px 0;
  background: rgba(0,0,0,.80);
  color: color-mix(in srgb, var(--gold), transparent 5%);
  border-top: 1px solid rgba(255,255,255,.18);
}

footer.footer .footer__inner.container,
footer.footer .footer__inner.container--content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-left: var(--footer-edge-pad) !important;
  padding-right: var(--footer-edge-pad) !important;
}

footer.footer .footer__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
}

footer.footer .footer__copyright {
  color: color-mix(in srgb, var(--gold), transparent 15%);
  text-align: center;
  line-height: 1.6;
}

footer.footer .footer__links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 10px var(--footer-item-gap);
}

footer.footer .footer__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--gold), transparent 15%);
  white-space: nowrap;
  text-align: center;
}

footer.footer .footer__links a:hover {
  text-decoration: underline;
}

@media (max-width: 1200px) {
  footer.footer {
    --footer-edge-pad: 24px;
    --footer-item-gap: 16px;
  }
}

@media (max-width: 1100px) {
  footer.footer .footer__links {
    justify-content: center;
    gap: 10px 16px;
  }
}

@media (max-width: 768px) {
  footer.footer {
    --footer-edge-pad: 16px;
    --footer-item-gap: 12px;
  }

  footer.footer .footer__links {
    justify-content: center;
    gap: 8px 12px;
    padding-right: 56px;
  }
}

@media (max-width: 640px) {
  footer.footer .footer__links a {
    font-size: 0.95rem;
  }
}

@media (max-width: 400px) {
  footer.footer {
    --footer-edge-pad: 12px;
  }

  footer.footer .footer__links {
    padding-right: 56px;
  }
}

/* =========================================
   LINKI WEWNĘTRZNE NA PODSTRONACH
   eleganckie wyróżnienie
========================================= */

/* zwykłe linki w treści */
.service-page .content-section p a,
.service-page .content-section li a,
.article p a,
.article li a {
  color: var(--gold-light);
  text-decoration: underline;
  text-decoration-color: rgba(240, 201, 135, 0.45);
  text-underline-offset: 3px;
  transition: color .18s ease, text-decoration-color .18s ease, opacity .18s ease;
}

.service-page .content-section p a:hover,
.service-page .content-section li a:hover,
.article p a:hover,
.article li a:hover {
  color: #fff1d5;
  text-decoration-color: rgba(255, 241, 213, 0.80);
}

/* mocniejszy focus dla dostępności */
.service-page .content-section p a:focus-visible,
.service-page .content-section li a:focus-visible,
.article p a:focus-visible,
.article li a:focus-visible {
  outline: 2px solid rgba(240, 201, 135, 0.75);
  outline-offset: 3px;
  border-radius: 4px;
}

/* linki w sekcji powiązanych stron */
.related-pages__list a {
  color: var(--gold-light);
  text-decoration: underline;
  text-decoration-color: rgba(240, 201, 135, 0.45);
  text-underline-offset: 3px;
  transition: color .18s ease, text-decoration-color .18s ease, transform .18s ease;
}

.related-pages__list a:hover {
  color: #fff1d5;
  text-decoration-color: rgba(255, 241, 213, 0.80);
}

/* linki w dodatkowych akapitach pod sekcjami */
.areas-links a,
.faq-section + p a,
.related-pages + p a {
  color: var(--gold-light);
  text-decoration: underline;
  text-decoration-color: rgba(240, 201, 135, 0.45);
  text-underline-offset: 3px;
}

.areas-links a:hover,
.faq-section + p a:hover,
.related-pages + p a:hover {
  color: #fff1d5;
  text-decoration-color: rgba(255, 241, 213, 0.80);
}

/* =========================================
   LINKI W TREŚCI – ODDŁUŻENIE
========================================= */

.content-section a,
.section--subpage a,
.article a,
.faq-section a,
.related-pages a {
  color: var(--gold-light, #f0c987);
  text-decoration: underline;
  text-decoration-color: rgba(240, 201, 135, 0.45);
  text-underline-offset: 3px;
  transition: color .18s ease, text-decoration-color .18s ease, opacity .18s ease;
}

.content-section a:hover,
.section--subpage a:hover,
.article a:hover,
.faq-section a:hover,
.related-pages a:hover {
  color: #fff1d5;
  text-decoration-color: rgba(255, 241, 213, 0.80);
}

.content-section a:focus-visible,
.section--subpage a:focus-visible,
.article a:focus-visible,
.faq-section a:focus-visible,
.related-pages a:focus-visible {
  outline: 2px solid rgba(240, 201, 135, 0.75);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================
   PHONE MODAL – desktop modal / mobile tel
========================================= */

.contact-phone-link {
  color: var(--gold-soft, #7fa0d3);
  text-decoration: underline;
  text-decoration-color: rgba(127, 160, 211, 0.45);
  text-underline-offset: 3px;
  transition: color .18s ease, text-decoration-color .18s ease;
}

.contact-phone-link:hover {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.78);
}

.contact-phone-link:focus-visible {
  outline: 2px solid rgba(78, 127, 197, 0.75);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn--phone-mobile {
  display: inline-flex;
}

.btn--phone-desktop {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .btn--phone-mobile {
    display: none;
  }

  .btn--phone-desktop {
    display: inline-flex;
  }
}

.phone-modal[hidden] {
  display: none !important;
}

.phone-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .24s ease, visibility .24s ease;
}

.phone-modal.is-open,
.phone-modal.is-closing {
  visibility: visible;
}

.phone-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.phone-modal.is-closing {
  opacity: 0;
  pointer-events: none;
}

.phone-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 12, 22, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.phone-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 24px));
  padding: 28px;
  border-radius: 16px;
  background: rgba(10,18,32,0.94);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
  text-align: center;
  outline: none;
  transform: translateY(18px) scale(0.985);
  transition: transform .24s ease, opacity .24s ease;
}

.phone-modal.is-open .phone-modal__dialog {
  transform: translateY(0) scale(1);
}

.phone-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}

.phone-modal__close:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

.phone-modal__close:focus-visible,
.phone-modal .btn:focus-visible,
.phone-modal__number a:focus-visible {
  outline: 2px solid rgba(78, 127, 197, 0.86);
  outline-offset: 3px;
}

.phone-modal__eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.82);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.phone-modal__text {
  margin-bottom: 10px;
}

.phone-modal__number {
  margin: 0 0 20px;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.2;
}

.phone-modal__number a {
  color: #dce9ff;
  text-decoration: none;
}

.phone-modal__actions {
  display: flex;
  justify-content: center;
}

body.phone-modal-open {
  overflow: hidden;
}

@media (max-width: 560px) {
  .phone-modal__dialog {
    width: calc(100vw - 20px);
    padding: 22px 16px;
  }

  .phone-modal__number {
    font-size: 28px;
  }

  .phone-modal__actions .btn {
    width: 100%;
  }
}

/* =========================================
   LINK TELEFONU W SEKCJI KONTAKT
========================================= */

.contact-phone-link {
  color: var(--gold-light, #f0c987);
  text-decoration: underline;
  text-decoration-color: rgba(240, 201, 135, 0.45);
  text-underline-offset: 3px;
  transition: color .18s ease, text-decoration-color .18s ease;
}

.contact-phone-link:hover {
  color: #fff1d5;
  text-decoration-color: rgba(255, 241, 213, 0.80);
}

.contact-phone-link:focus-visible {
  outline: 2px solid rgba(240, 201, 135, 0.75);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================
   PHONE MODAL – poprawka etykiety
   "KONTAKT TELEFONICZNY"
========================================= */

.phone-modal__eyebrow {
  display: inline-flex;
  width: auto;
  max-width: calc(100% - 96px);
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  padding: 8px 18px;
  border-radius: 999px;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .phone-modal__eyebrow {
    max-width: calc(100% - 72px);
    padding-left: 14px;
    padding-right: 14px;
    font-size: 11px;
  }
}

/* =========================================
   FOOTER – FINAL COMPACT
   niższy footer + bliższe linki
========================================= */

footer.footer {
  --footer-edge-pad: clamp(16px, 2.4vw, 38px);
  --footer-item-gap: clamp(10px, 1vw, 18px);

  padding: 8px 0 !important;
}

footer.footer .footer__inner,
footer.footer .footer__inner.container,
footer.footer .footer__inner.container--content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;

  gap: 6px !important;

  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-left: var(--footer-edge-pad) !important;
  padding-right: var(--footer-edge-pad) !important;

  text-align: center !important;
}

footer.footer .footer__copyright {
  margin: 0 !important;
  color: color-mix(in srgb, var(--gold), transparent 15%) !important;
  text-align: center !important;
  line-height: 1.25 !important;
  font-size: 0.9rem !important;
}

footer.footer .footer__links {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;

  width: auto !important;
  max-width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  gap: 4px var(--footer-item-gap) !important;
}

footer.footer .footer__links a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  margin: 0 !important;

  color: color-mix(in srgb, var(--gold), transparent 15%) !important;
  white-space: nowrap !important;
  text-align: center !important;

  line-height: 1.2 !important;
  font-size: 0.92rem !important;
}

footer.footer .footer__links a:hover {
  text-decoration: underline !important;
}

@media (max-width: 768px) {
  footer.footer {
    --footer-edge-pad: 14px;
    --footer-item-gap: 12px;

    padding: 8px 0 !important;
  }

  footer.footer .footer__inner {
    gap: 5px !important;
  }

  footer.footer .footer__copyright {
    font-size: 0.84rem !important;
    line-height: 1.2 !important;
  }

  footer.footer .footer__links {
    gap: 4px 10px !important;
    padding-right: 52px !important;
  }

  footer.footer .footer__links a {
    font-size: 0.88rem !important;
    line-height: 1.15 !important;
  }
}

@media (max-width: 400px) {
  footer.footer {
    --footer-edge-pad: 12px;
    --footer-item-gap: 10px;
  }

  footer.footer .footer__links {
    padding-right: 52px !important;
  }
}

/* =========================================
   LINKI W HERO / GÓRNEJ SEKCJI PODSTRON
========================================= */

.hero-section a,
.hero-section .container a,
.service-page .hero-section a {
  color: var(--gold-light, #f0c987);
  text-decoration: underline;
  text-decoration-color: rgba(240, 201, 135, 0.45);
  text-underline-offset: 3px;
  transition: color .18s ease, text-decoration-color .18s ease, opacity .18s ease;
}

.hero-section a:hover,
.hero-section .container a:hover,
.service-page .hero-section a:hover {
  color: #fff1d5;
  text-decoration-color: rgba(255, 241, 213, 0.80);
}

.hero-section a:focus-visible,
.hero-section .container a:focus-visible,
.service-page .hero-section a:focus-visible {
  outline: 2px solid rgba(240, 201, 135, 0.75);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================
   MOBILE FIX – kontakt / dane / formularz
   ODDLUZENIE.LIBERTASFILIPIAK.PL
   Naprawa wychodzenia kart poza prawą krawędź
========================================= */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

main,
section,
.container,
.container--content,
.container--subpage,
.container--subpage-box,
.grid2,
.grid3,
.card,
.form,
.cta-box,
.cta-box__inner,
.cta-box__details,
.contact-list,
.list {
  min-width: 0;
  max-width: 100%;
}

.grid2,
.grid3 {
  width: 100%;
}

.grid2 > *,
.grid3 > * {
  min-width: 0;
}

/* Długie maile, adresy, numery i linki nie mogą rozpychać kart */
.card,
.card p,
.card li,
.card a,
.cta-box,
.cta-box p,
.cta-box li,
.cta-box a,
.cta-box__details,
.cta-box__details p,
.contact-list,
.contact-list p,
.list,
.list li,
.list a {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Formularz i pola zawsze mieszczą się w karcie */
.form,
.form label,
.form input,
.form textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Tylko główny przycisk formularza ma zajmować szerokość formularza.
   Nie obejmujemy tu przycisków zamykających modale. */
.form > .btn,
#openConsentModal {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Cloudflare Turnstile nie może wypchnąć formularza poza ekran */
.cf-turnstile {
  max-width: 100%;
  overflow: hidden;
}

/* Mobile: ciaśniejsze karty i kontener jak w księgowości */
@media (max-width: 600px) {
  :root {
    --container-pad: 16px;
  }

  .container,
  .container--content,
  .container--subpage,
  .container--subpage-box,
  .service-page .container {
    width: min(100% - 32px, 1100px);
    margin-inline: auto;
  }

  .card {
    padding: 18px 16px;
  }

  .section {
    padding-left: 0;
    padding-right: 0;
  }

  .grid2,
  .grid3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-box {
    padding: 20px 16px;
  }

  .cta-box__buttons {
    flex-direction: column;
  }

  .cta-box__buttons .btn {
    width: 100%;
  }

  .cta-box__details {
    max-width: 100%;
  }

  .cta-box__details p {
    max-width: 100%;
    line-height: 1.55;
  }

  .list {
    padding-left: 0;
  }

  .list li {
    display: block;
    max-width: 100%;
  }

  .list strong {
    display: inline-block;
    min-width: 0;
    margin-right: 6px;
  }
}

@media (max-width: 380px) {
  :root {
    --container-pad: 12px;
  }

  .container,
  .container--content,
  .container--subpage,
  .container--subpage-box,
  .service-page .container {
    width: min(100% - 24px, 1100px);
  }

  .card {
    padding: 16px 14px;
  }

  .cta-box {
    padding: 18px 14px;
  }
}

/* =========================================
   MOBILE FIX 2 – mocniejsze zwężenie sekcji Kontakt/Dane
   ODDLUZENIE.LIBERTASFILIPIAK.PL
========================================= */

@media (max-width: 600px) {
  body {
    overflow-x: hidden;
  }

  /* Główne kontenery na telefonie trochę węższe */
  .container,
  .container--content,
  .container--subpage,
  .container--subpage-box,
  .service-page .container {
    width: calc(100% - 44px) !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Sekcja kontaktowa i karty danych */
  #kontakt .container,
  #kontakt .container--content,
  .cta-box,
  .card,
  .contact-list,
  .cta-box__details {
    max-width: 100% !important;
  }

  /* Karty mniej rozpychają ekran */
  .card,
  .cta-box {
    padding-left: 14px !important;
    padding-right: 14px !important;
    border-radius: 16px !important;
  }

  /* Formularz kontaktowy na mobile */
  #kontakt .card,
  #kontakt form,
  #kontakt .form {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Pola formularza nie mogą być szersze niż karta */
  #kontakt input,
  #kontakt textarea,
  #kontakt button,
  .form input,
  .form textarea,
  .form button {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* Cloudflare Turnstile – zwężenie kontenera */
  .cf-turnstile {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    transform-origin: left top;
  }

  /* Dane kontaktowe – łamanie długich linii */
  .cta-box__details,
  .cta-box__details p,
  .contact-list,
  .contact-list p,
  .list,
  .list li {
    width: 100% !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  .cta-box__details strong,
  .contact-list strong,
  .list strong {
    min-width: 0 !important;
    display: inline-block !important;
    margin-right: 6px !important;
  }
}

@media (max-width: 420px) {
  .container,
  .container--content,
  .container--subpage,
  .container--subpage-box,
  .service-page .container {
    width: calc(100% - 52px) !important;
  }

  .card,
  .cta-box {
    padding-left: 13px !important;
    padding-right: 13px !important;
  }
}

@media (max-width: 380px) {
  .container,
  .container--content,
  .container--subpage,
  .container--subpage-box,
  .service-page .container {
    width: calc(100% - 56px) !important;
  }

  .card,
  .cta-box {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

.ai-answer-box,
.faq-section,
.service-audience,
.process-section,
.definitions-section,
.area-section,
.trust-section,
.related-links {
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid rgba(176, 141, 87, 0.32);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.ai-answer-box h2,
.faq-section h2,
.service-audience h2,
.process-section h2,
.definitions-section h2,
.area-section h2,
.trust-section h2,
.related-links h2 {
  margin-top: 0;
  color: var(--accent, #b08d57);
}

.faq-item {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.faq-item h3 {
  margin-bottom: 0.45rem;
  color: #fff;
}

.definitions-section dt {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--accent, #b08d57);
}

.definitions-section dd {
  margin-left: 0;
  margin-top: 0.35rem;
}

.related-links ul {
  padding-left: 1.2rem;
}

.related-links a {
  color: var(--accent, #b08d57);
  text-decoration: none;
}

.related-links a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .ai-answer-box,
  .faq-section,
  .service-audience,
  .process-section,
  .definitions-section,
  .area-section,
  .trust-section,
  .related-links {
    padding: 1.15rem;
    border-radius: 14px;
  }
}

/* =========================================
   AI / SEO SEKCJE – DOPASOWANIE DO LAYOUTU
   ODDLUZENIE.LIBERTASFILIPIAK.PL
   wkleić na sam koniec styles.css
========================================= */

.ai-answer-box,
.service-audience,
.process-section,
.definitions-section,
.area-section,
.trust-section,
.related-links {
  width: min(var(--container), calc(100% - (var(--container-pad) * 2)));
  max-width: 1120px;
  margin: 34px auto;
  padding: 28px 30px;
  border: 1px solid rgba(185, 139, 74, 0.34);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
}

/* FAQ już istnieje w kilku miejscach, więc dopasowujemy ostrożniej */
.faq-section {
  width: min(var(--container), calc(100% - (var(--container-pad) * 2)));
  max-width: 1120px;
  margin: 42px auto 0;
  padding: 28px 30px;
  border: 1px solid rgba(185, 139, 74, 0.34);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
}

/* Nagłówki sekcji */
.ai-answer-box h2,
.service-audience h2,
.process-section h2,
.definitions-section h2,
.area-section h2,
.trust-section h2,
.related-links h2,
.faq-section h2 {
  margin: 0 0 16px;
  color: var(--gold, #b98b4a);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.2;
}

/* Tekst */
.ai-answer-box p,
.service-audience p,
.process-section p,
.definitions-section p,
.area-section p,
.trust-section p,
.related-links p,
.faq-section p {
  max-width: 92ch;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.75;
}

/* Listy */
.service-audience ul,
.trust-section ul,
.related-links ul {
  margin: 12px 0 0;
  padding-left: 20px;
  list-style: disc;
}

.service-audience li,
.trust-section li,
.related-links li {
  margin: 8px 0;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.84);
}

/* Proces krok po kroku */
.process-section ol {
  margin: 14px 0 0;
  padding-left: 22px;
}

.process-section li {
  margin: 10px 0;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.84);
}

.process-section strong {
  color: #fff;
}

/* Słownik pojęć */
.definitions-section dl {
  margin: 0;
}

.definitions-section dt {
  margin-top: 18px;
  font-weight: 800;
  color: var(--gold, #b98b4a);
}

.definitions-section dt:first-of-type {
  margin-top: 0;
}

.definitions-section dd {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.75;
}

/* FAQ item w nowych panelach */
.faq-section .faq-item {
  margin: 16px 0 0;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
}

.faq-section .faq-item:first-of-type {
  margin-top: 0;
}

.faq-section .faq-item h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(18px, 1.7vw, 22px);
}

.faq-section .faq-item p {
  margin: 0;
}

/* Linki w sekcjach AI */
.ai-answer-box a,
.service-audience a,
.process-section a,
.definitions-section a,
.area-section a,
.trust-section a,
.related-links a,
.faq-section a {
  color: var(--gold-light, #f0c987);
  text-decoration: underline;
  text-decoration-color: rgba(240, 201, 135, 0.45);
  text-underline-offset: 3px;
}

.ai-answer-box a:hover,
.service-audience a:hover,
.process-section a:hover,
.definitions-section a:hover,
.area-section a:hover,
.trust-section a:hover,
.related-links a:hover,
.faq-section a:hover {
  color: #fff1d5;
  text-decoration-color: rgba(255, 241, 213, 0.8);
}

/* Gdy sekcja jest bezpośrednio pod hero */
.hero + .area-section,
.hero + .ai-answer-box,
.hero + .definitions-section,
.hero + .service-audience,
.hero + .process-section,
.hero + .trust-section {
  margin-top: 28px;
}

/* Gdy sekcja jest bezpośrednio przed kolejną sekcją strony */
.area-section + .section,
.ai-answer-box + .section,
.definitions-section + .section,
.service-audience + .section,
.process-section + .section,
.trust-section + .section,
.related-links + .section {
  padding-top: 64px;
}

/* Tablet */
@media (max-width: 900px) {
  .ai-answer-box,
  .service-audience,
  .process-section,
  .definitions-section,
  .area-section,
  .trust-section,
  .related-links,
  .faq-section {
    width: calc(100% - 36px);
    margin: 30px auto;
    padding: 24px 22px;
    border-radius: 16px;
  }
}

/* Telefon */
@media (max-width: 600px) {
  .ai-answer-box,
  .service-audience,
  .process-section,
  .definitions-section,
  .area-section,
  .trust-section,
  .related-links,
  .faq-section {
    width: calc(100% - 32px) !important;
    margin: 24px auto !important;
    padding: 22px 16px !important;
    border-radius: 16px !important;
  }

  .ai-answer-box h2,
  .service-audience h2,
  .process-section h2,
  .definitions-section h2,
  .area-section h2,
  .trust-section h2,
  .related-links h2,
  .faq-section h2 {
    font-size: 24px;
  }

  .faq-section .faq-item {
    padding: 16px 14px;
  }

  .process-section ol,
  .service-audience ul,
  .trust-section ul,
  .related-links ul {
    padding-left: 18px;
  }
}

/* Mały telefon */
@media (max-width: 380px) {
  .ai-answer-box,
  .service-audience,
  .process-section,
  .definitions-section,
  .area-section,
  .trust-section,
  .related-links,
  .faq-section {
    width: calc(100% - 24px) !important;
    padding: 20px 14px !important;
  }
}
/* =========================================
   ACCESSIBILITY / ANTISPAM HONEYPOT
========================================= */

.form-field--hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-field--hp label,
.form-field--hp input {
  width: 1px !important;
  height: 1px !important;
}

/* =========================================
   ACCESSIBILITY / TOUCH TARGETS
   Poprawa klikalności bez nadpisywania topbara
========================================= */

/* Linki menu */
.nav__link {
  min-height: 40px;
}

/* Linki w rozwijanym menu mobilnym */
@media (max-width: 1100px) {
  #site-nav.nav .nav__link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* Przyciski w treści */
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Linki w stopce */
.footer a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

/* =========================================
   CSP FIX — zamienniki dla inline style
========================================= */

.actions--spaced {
  margin-top: 16px;
}

.actions--spaced-lg {
  margin-top: 24px;
}

.form-message {
  margin-top: 12px;
}