/* ============================================================
   STYLES.CSS – WERSJA DLA CENTRUM FINANSOWO-KSIĘGOWEGO
   - baza z obecnej strony
   - spokojniejszy, profesjonalny kierunek
   - akcent niebiesko-granatowy dopasowany do zdjęć i marki
============================================================ */

/* ============================================================
   RESET + TYPOGRAFIA BAZOWA
============================================================ */
* { box-sizing: border-box; }
html { height: 100%; }
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; }
:root { --bg-shift: 0px; }

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: #0b1624;
}

/* Podstrony */
body.subpage {
  background: none;
  background-color: #0b1624;
}

/* Stałe przyciemnienie tła */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 18, 32, 0.28), rgba(8, 18, 32, 0.34));
  z-index: -1;
  pointer-events: none;
}

/* ============================================================
   HYBRID BACKGROUND
============================================================ */
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: #0b1624;
  background-position: 50% calc(0px - var(--bg-shift));
  will-change: background-position;
}

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: #0b1624;
  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
============================================================ */
.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, 18, 32, 0.95);
  color: #fff;
  outline: 2px solid var(--gold);
}

/* ============================================================
   ZMIENNE
============================================================ */
:root {
  --bg: #0f1c2f;
  --ink: #09111d;
  --ink-soft: rgba(9, 17, 29, .82);
  --white: rgba(255, 255, 255, 0.88);

  /* zachowuję nazwy zmiennych dla kompatybilności, ale kolorystyka jest niebieska */
  --gold: #4e7fc5;
  --gold-2: #2f5fa6;
  --gold-soft: #7fa0d3;

  --card-bg: rgba(11, 24, 40, .58);
  --card-border: rgba(255,255,255,.16);
  --radius: 18px;

  --shadow: 0 18px 40px rgba(0,0,0,.24);

  --container: 1120px;
  --container-pad: 24px;
  --shift-10mm: 38px;
  --section-pad: 20px;

  --overlay-dark: rgba(9, 17, 29, .22);
  --overlay-soft: rgba(9, 17, 29, .18);

  --contact-form-maxw: 560px;

  --hero-card-maxw: 420px;
  --hero-card-offset-x: 24px;
}

/* ============================================================
   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,.84);
  max-width: 62ch;
}

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(10, 22, 36, 0.66);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
}

.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 { 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, 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: #eef4ff;
  position: relative;
  isolation: isolate;
  transform: translateZ(0);
}

.btn--primary:hover {
  background: rgba(78, 127, 197, .78);
  color: #ffffff;
}

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

.btn--ghost:hover {
  background: rgba(78, 127, 197, 0.78);
  color: #ffffff;
}

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

.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) 58%, transparent) 0%,
      color-mix(in srgb, var(--gold) 42%, transparent) 30%,
      transparent 72%
    );
  opacity: .20;
  filter: blur(10px);
  transform: scale(0.985);
  transition: opacity .22s ease, filter .22s ease, transform .22s ease;
  animation: ctaHaloPulse 2.8s ease-in-out infinite;
}

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

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

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

/* ============================================================
   TOPBAR / NAV
============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 18, 32, .58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.14);
  --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 rgba(78, 127, 197, 0.55);
  background: rgba(78, 127, 197, 0.10);
  color: #eaf2ff;
  font-size: 22px;
  line-height: 1;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}

.home-link:hover {
  background: rgba(78, 127, 197, 0.18);
  border-color: rgba(78, 127, 197, 0.78);
  color: #ffffff;
  transform: translateY(-1px);
}

.home-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(78, 127, 197, 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: #eaf2ff;
}

.brand__subtitle {
  font-size: 13px;
  color: rgba(234, 242, 255, 0.82);
}

.brand-divider {
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,.18);
  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 {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: rgba(234, 242, 255, 0.88);
  padding: 10px 12px;
  border-radius: 999px;
  transition: background-color .15s ease, color .15s ease;
}

.nav__link:hover {
  background: rgba(78, 127, 197, 0.14);
  color: #ffffff;
}

.nav__link--btn {
  border: 1px solid rgba(78, 127, 197, 0.55);
  background: rgba(78, 127, 197, 0.10);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid rgba(78, 127, 197, 0.55);
  color: #eaf2ff;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  flex: 0 0 auto;
}

.nav-toggle__icon {
  display: block;
  position: relative;
  width: 20px;
  height: 2px;
  background: #eaf2ff;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: #eaf2ff;
}

.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(8, 18, 32, .96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.16);
    z-index: 1001;
    white-space: normal;
  }

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

  #site-nav.nav .nav__link {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
  }

  #site-nav.nav .nav__link--btn {
    align-self: flex-start;
    width: auto;
    border: 1px solid rgba(78,127,197,0.55);
    background: rgba(78,127,197,0.12);
    border-radius: 999px;
    padding: 10px 12px;
  }

  #site-nav.nav .nav__link--btn:hover {
    background: rgba(78,127,197,0.20);
    color: #ffffff;
  }

  #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 {
    padding: 10px;
    min-width: 44px;
    justify-content: center;
  }
}

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

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

  .nav-toggle {
    min-width: 42px;
    padding: 8px;
  }

  .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;
  text-shadow: 0 2px 16px rgba(0,0,0,.14);
}

.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,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.84);
  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: rgba(8, 18, 32, 0.28);
  box-shadow: none;
  border: 1px solid rgba(255,255,255,.08);
}

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

.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,.86);
}

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

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

.form label span {
  display: block;
  font-weight: 700;
  color: rgba(255,255,255,.86);
  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,.94);
  outline: none;
}

.form input:focus,
.form textarea:focus {
  border-color: rgba(78, 127, 197, .75);
}

/* ============================================================
   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;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  padding: 12px 0;
  background: rgba(6, 12, 22, .86);
  color: rgba(234, 242, 255, 0.82);
  border-top: 1px solid rgba(255,255,255,.14);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer__copyright {
  color: rgba(234, 242, 255, 0.72);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__links a {
  color: rgba(234, 242, 255, 0.78);
}

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

/* ============================================================
   PODSTRONY
============================================================ */
.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
============================================================ */
.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: #eef4ff;
  background: linear-gradient(135deg, #3568b4 0%, #4e7fc5 45%, #8fb0e0 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

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

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

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

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 80px;
}

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

/* ============================================================
   DOKUMENTY
============================================================ */
.section--subpage .btn--tiny {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #eef4ff;
  border: 1px solid var(--gold);
  box-shadow: 0 6px 18px rgba(0,0,0,0.30);
}

.section--subpage .btn--tiny:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.38);
  background: rgba(78, 127, 197,.82);
  color: #fff;
}

/* ============================================================
   HOVER
============================================================ */
body.home #aktualnosci .card,
body.home #dokumenty .card,
.section--subpage .card {
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

body.home #aktualnosci .card:hover,
body.home #dokumenty .card:hover,
.section--subpage .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 46px rgba(78, 127, 197, 0.18);
  border-color: rgba(78, 127, 197, 0.38);
}

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.16), 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.3s ease forwards;
}

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

/* ============================================================
   ARTICLE
============================================================ */
.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(78,127,197,.55), rgba(255,255,255,.10), rgba(78,127,197,.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(78,127,197,0.18));
}

/* ============================================================
   BREADCRUMBS
============================================================ */
.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(10, 20, 35, 0.48);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(78,127,197,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(10, 20, 35, 0.58);
  border-color: rgba(78,127,197,0.42);
}

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

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

.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(127,160,211,0.85); }

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

/* ============================================================
   CTA
============================================================ */
.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(78, 127, 197, 0.34);
  background: linear-gradient(145deg, rgba(78, 127, 197, 0.12), rgba(78, 127, 197, 0.05));
  box-shadow: 0 18px 60px rgba(0,0,0,0.28);
  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 52px rgba(78, 127, 197, 0.24);
  border-color: rgba(78, 127, 197, 0.45);
}

.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.24), 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; }

.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(78,127,197,0.34);
  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.48; transform: scale(1.02); }
  100% { opacity: 0; transform: scale(1.05); }
}

/* ============================================================
   TO TOP
============================================================ */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(78,127,197,0.42);
  background: rgba(10,18,32,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #dce9ff;
  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(78,127,197,0.68); }

/* ============================================================
   Sticky CTA
============================================================ */
.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(78,127,197,0.32);
    background: rgba(10,18,32,0.56);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 18px 60px rgba(0,0,0,0.28);
  }

  .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
============================================================ */
.expert-box {
  margin-top: 26px;
  padding: 22px 26px;
  border-radius: 16px;
  border: 1px solid rgba(78,127,197,0.30);
  background: linear-gradient(145deg, rgba(78,127,197,0.10), rgba(12,18,32,0.35));
  box-shadow: 0 18px 60px rgba(0,0,0,0.26);
  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.05) 40%,
    rgba(255,255,255,0.14) 50%,
    rgba(255,255,255,0.05) 60%,
    rgba(255,255,255,0) 100%
  );
  transform: rotate(20deg);
  transition: all 0.9s ease;
}

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

/* ============================================================
   Author signature
============================================================ */
.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-soft);
  font-weight: 600;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
  text-shadow: 0 0 12px rgba(78,127,197,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(78,127,197,0) 0%,
    rgba(78,127,197,0.95) 50%,
    rgba(78,127,197,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
============================================================ */
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-soft);
  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(78,127,197,0.95) 0%,
    rgba(78,127,197,0.35) 70%,
    rgba(78,127,197,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.24); }

/* ============================================================
   AUTO DRAW UNDERLINE
============================================================ */
.list strong { position: relative; display: inline-block; }

.list strong::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, #4e7fc5 0%, #dce9ff 50%, #4e7fc5 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, #4e7fc5 0%, #dce9ff 50%, #4e7fc5 100%);
  filter: blur(3px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.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
============================================================ */
@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: 0;
    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(8, 18, 32, .96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.16);
    z-index: 1001;
    white-space: normal;
  }

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

  #site-nav.nav .nav__link {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
  }

  #site-nav.nav .nav__link--btn {
    align-self: flex-start;
    width: auto;
    border: 1px solid rgba(78,127,197,0.55);
    background: rgba(78,127,197,0.12);
    border-radius: 999px;
    padding: 10px 12px;
  }

  #site-nav.nav .nav__link--btn:hover {
    background: rgba(78,127,197,0.20);
    color: #ffffff;
  }

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

@media (max-width: 1024px) {
  .grid3,
  .grid2 {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 768px) {
  body::after,
  body.subpage::after {
    inset: 0 auto auto 0;
    width: 100%;
    height: 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;
  }
}

@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%;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 28px;
  }

  .section {
    padding: 60px 0;
  }

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

  .btn {
    width: 100%;
  }
}

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

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

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

/* ============================================================
   CONSENT MODAL
============================================================ */
.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.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.74);
  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(10,18,32,0.94);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 60px rgba(0,0,0,.34);
  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(78, 127, 197, 0.28),
    0 0 0 4px rgba(78, 127, 197, 0.10);
}

.consent-modal__title {
  margin: 0 0 10px;
  padding-right: 48px;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.16;
  font-weight: 800;
  color: #ffffff;
}

.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(78, 127, 197, 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,.12);
  background: rgba(255,255,255,.05);
}

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

#consentError {
  color: #ffd0d0;
  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
============================================================ */
#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
============================================================ */
.form label {
  display: block;
}

.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: #ffd4d4;
}

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

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

/* ============================================================
   SUCCESS / STATUS STATE
============================================================ */
#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: #eaf2ff;
  background:
    linear-gradient(135deg, rgba(78, 127, 197, 0.18), rgba(47, 95, 166, 0.10));
  border: 1px solid rgba(78, 127, 197, 0.30);
  border-radius: 12px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.14),
    0 0 0 1px rgba(78, 127, 197, 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;
}

.service-page .hero-section .container,
.service-page .content-section > .container {
  padding: 28px 30px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(8, 18, 32, 0.50), rgba(10, 24, 42, 0.42));
  border: 1px solid rgba(126, 169, 230, 0.38);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
}

.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-box {
  margin: 42px 0 0;
  padding: 28px 24px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(8, 18, 32, 0.42), rgba(10, 24, 42, 0.34));
  border: 1px solid rgba(126, 169, 230, 0.34);
  box-shadow: 0 14px 34px rgba(0,0,0,0.20);
}

.cta-box__inner h2 {
  margin-top: 0;
}

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

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

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

.faq-item {
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(8, 18, 32, 0.36);
  border: 1px solid rgba(126, 169, 230, 0.28);
}

.faq-item h3 {
  margin-top: 0;
}

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

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

  .service-page .hero-section .container,
  .service-page .content-section > .container {
    padding: 22px 18px;
    border-radius: 18px;
  }

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

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

.cta-box {
  margin: 42px 0 0;
  padding: 28px 24px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(8, 18, 32, 0.42), rgba(10, 24, 42, 0.34));
  border: 1px solid rgba(126, 169, 230, 0.34);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.20);
}

.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(8, 18, 32, 0.36);
  border: 1px solid rgba(126, 169, 230, 0.28);
}

.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(8, 18, 32, 0.36);
  border: 1px solid rgba(126, 169, 230, 0.28);
}

.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">
   KSIEGOWOSC.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: rgba(234, 242, 255, 0.88);
  font-weight: 600;
  transition: background-color .15s ease, color .15s ease;
}

#site-nav.nav .nav__list a:hover {
  background: rgba(78, 127, 197, 0.14);
  color: #ffffff;
}

@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
   niższy footer + ciaśniejsze linki
========================================= */

footer.footer {
  --footer-edge-pad: clamp(16px, 2.8vw, 56px);
  --footer-item-gap: clamp(18px, 3vw, 44px);

  padding: 8px 0;
  background: rgba(6, 12, 22, .86);
  color: rgba(234, 242, 255, 0.82);
  border-top: 1px solid rgba(255,255,255,.14);
}

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: center;
  justify-content: center;
  gap: 6px;
}

footer.footer .footer__copyright {
  color: rgba(234, 242, 255, 0.72);
  text-align: center;
  line-height: 1.25;
  font-size: 0.88rem;
  margin: 0;
}

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

  width: auto;
  max-width: 100%;

  margin: 0;
  padding: 0;
  gap: 4px var(--footer-item-gap);
}

footer.footer .footer__links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(234, 242, 255, 0.78);
  white-space: nowrap;
  text-align: center;
  line-height: 1.25;
  font-size: 0.92rem;
}

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

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

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

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

  footer.footer .footer__inner {
    gap: 8px;
  }

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

  footer.footer .footer__copyright {
    font-size: 0.84rem;
  }
}

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

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

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

/* =========================================
   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-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, 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: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 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 – KSIĘGOWOŚĆ
========================================= */

.content-section a,
.section--subpage a,
.article a,
.faq-section a,
.related-pages a {
  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, opacity .18s ease;
}

.content-section a:hover,
.section--subpage a:hover,
.article a:hover,
.faq-section a:hover,
.related-pages a:hover {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 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(127, 160, 211, 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%;
  }
}

/* =========================================
   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;
  }
}

/* =========================================
   MOBILE TOPBAR – naprawa rozciągniętego hamburgera
========================================= */

@media (max-width: 768px) {
  .topbar__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    align-items: center;
    gap: 12px;
  }

  .brand-group {
    min-width: 0;
  }

  .nav-toggle {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 30px !important;
    padding: 0 !important;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    justify-self: end;
    align-self: center;

    border-radius: 999px;
    flex: 0 0 52px;
  }

  .nav-toggle__text {
    display: none !important;
  }

  .nav-toggle__icon {
    width: 18px;
    height: 2px;
  }

  .nav-toggle__icon::before,
  .nav-toggle__icon::after {
    width: 18px;
    height: 2px;
  }

  .nav-toggle__icon::before {
    top: -5px;
  }

  .nav-toggle__icon::after {
    top: 5px;
  }
}

@media (max-width: 400px) {
  .topbar__inner {
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 10px;
  }

  .nav-toggle {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 28px !important;
    flex-basis: 48px;
  }

  .nav-toggle__icon,
  .nav-toggle__icon::before,
  .nav-toggle__icon::after {
    width: 16px;
  }
}

/* =========================================
   HOME MOBILE TOPBAR – osobna poprawka strony głównej
   układ: Home | Brand | Hamburger
========================================= */

@media (max-width: 768px) {
  body.home .topbar__inner {
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) 52px !important;
    align-items: center !important;
    gap: 10px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  body.home .home-link {
    grid-column: 1 !important;
    justify-self: start !important;
    align-self: center !important;

    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    flex: 0 0 44px !important;
  }

  body.home .brand-group {
    grid-column: 2 !important;
    justify-self: start !important;
    align-self: center !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 5px !important;

    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
  }

  body.home .brand-divider {
    display: none !important;
  }

  body.home .brand {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.home .brand__title {
    font-size: 14px !important;
    line-height: 1.08 !important;
    white-space: normal !important;
  }

  body.home .brand__subtitle {
    font-size: 11.5px !important;
    line-height: 1.15 !important;
    white-space: normal !important;
  }

  body.home .nav-toggle {
    grid-column: 3 !important;
    justify-self: end !important;
    align-self: center !important;

    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 30px !important;
    padding: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 52px !important;
    border-radius: 999px !important;
  }

  body.home .nav-toggle__text {
    display: none !important;
  }

  body.home .nav-toggle__icon {
    width: 18px !important;
    height: 2px !important;
  }

  body.home .nav-toggle__icon::before,
  body.home .nav-toggle__icon::after {
    width: 18px !important;
    height: 2px !important;
  }

  body.home .nav-toggle__icon::before {
    top: -5px !important;
  }

  body.home .nav-toggle__icon::after {
    top: 5px !important;
  }

  body.home #site-nav.nav {
    right: 16px !important;
    left: auto !important;
    width: min(320px, calc(100vw - 32px)) !important;
  }
}

@media (max-width: 400px) {
  body.home .topbar__inner {
    grid-template-columns: 42px minmax(0, 1fr) 48px !important;
    gap: 8px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body.home .home-link {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    flex-basis: 40px !important;
  }

  body.home .nav-toggle {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 28px !important;
    flex-basis: 48px !important;
  }

  body.home .brand__title {
    font-size: 13.5px !important;
  }

  body.home .brand__subtitle {
    font-size: 11px !important;
  }

  body.home #site-nav.nav {
    right: 12px !important;
    width: min(300px, calc(100vw - 24px)) !important;
  }
}

/* =========================================
   POSTY – CIEMNE PANELE POD TEKSTEM
   KSIEGOWOSC.LIBERTASFILIPIAK.PL
========================================= */

/* Mocniejsze przyciemnienie tła tylko na wpisach */
body.page-wpis::before {
  background:
    linear-gradient(
      180deg,
      rgba(8, 18, 32, 0.32),
      rgba(8, 18, 32, 0.26)
    ) !important;
}

/* Panel pod tytułem, leadem, breadcrumbs i tagami */
body.page-wpis .hero__text-wrapper {
  width: min(980px, 100%);
  padding: 28px 30px;
  border-radius: 22px;
  background:
    linear-gradient(
      145deg,
      rgba(8, 18, 32, 0.32),
      rgba(10, 24, 42, 0.26)
    );
  border: 1px solid rgba(126, 169, 230, 0.42);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
}

/* Tytuł i lead mocniej czytelne */
body.page-wpis .hero__text-wrapper h1,
body.page-wpis .hero__text-wrapper .lead {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.48);
}

body.page-wpis .hero__text-wrapper .lead {
  color: rgba(255, 255, 255, 0.88);
}

/* Breadcrumbs w panelu bez zbyt dużego odstawania */
body.page-wpis .hero__text-wrapper .breadcrumbs {
  background: rgba(7, 16, 30, 0.32);
  border-color: rgba(126, 169, 230, 0.42);
}

/* Główna treść wpisu jako duży ciemny panel */
body.page-wpis #post-content.article {
  max-width: 980px;
  padding: 34px 38px;
  border-radius: 24px;
  background:
    linear-gradient(
      145deg,
      rgba(8, 18, 32, 0.32),
      rgba(10, 24, 42, 0.26)
    );
  border: 1px solid rgba(126, 169, 230, 0.42);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
}

/* Poprawa kontrastu tekstu */
body.page-wpis #post-content.article p,
body.page-wpis #post-content.article li {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.52);
}

body.page-wpis #post-content.article h2,
body.page-wpis #post-content.article h3 {
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.52);
}

/* Ekspercki box wewnątrz wpisu trochę mocniejszy */
body.page-wpis .expert-box,
body.page-wpis .sticky-cta__box {
  background:
    linear-gradient(
      145deg,
      rgba(12, 28, 48, 0.28),
      rgba(8, 18, 32, 0.18)
    );
  border-color: rgba(126, 169, 230, 0.42);
}

/* Panel pod nagłówkiem sekcji powiązanych wpisów */
body.page-wpis .related .section__head {
  width: min(980px, 100%);
  margin-inline: auto;
  padding: 24px 28px;
  border-radius: 22px;
  background:
    linear-gradient(
      145deg,
      rgba(8, 18, 32, 0.32),
      rgba(10, 24, 42, 0.26)
    );
  border: 1px solid rgba(126, 169, 230, 0.42);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
}

/* Powiązane wpisy – karty ciemniejsze i czytelniejsze */
body.page-wpis .related .card.post {
  background: rgba(8, 18, 32, 0.32);
  border-color: rgba(126, 169, 230, 0.42);
}

/* Mobile */
@media (max-width: 768px) {
  body.page-wpis .hero__text-wrapper {
    padding: 22px 18px;
    border-radius: 18px;
  }

  body.page-wpis #post-content.article {
    padding: 24px 18px;
    border-radius: 18px;
  }

  body.page-wpis .related .section__head {
    padding: 20px 18px;
    border-radius: 18px;
  }
}

@media (max-width: 420px) {
  body.page-wpis .hero__text-wrapper,
  body.page-wpis #post-content.article,
  body.page-wpis .related .section__head {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* =========================================
   POSTY – wyrównanie przezroczystości paneli CTA
   "Szukasz księgowości..." / "Eksperckie spojrzenie" / "Masz pytanie księgowe?"
========================================= */

body.page-wpis .expert-box,
body.page-wpis .sticky-cta__box {
  background:
    linear-gradient(
      145deg,
      rgba(78, 127, 197, 0.12),
      rgba(78, 127, 197, 0.05)
    ) !important;

  border: 1px solid rgba(78, 127, 197, 0.34) !important;

  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28) !important;

  backdrop-filter: blur(10px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(150%) !important;
}

/* =========================================
   AI / SEO SEKCJE – KSIĘGOWOŚĆ
   Czym zajmuje się / Obszar działania /
   Dla kogo / Jak wygląda współpraca
   wkleić na sam koniec styles.css
========================================= */

.ai-answer-box,
.area-section,
.service-audience,
.process-section,
.definitions-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(78, 127, 197, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(
      145deg,
      rgba(8, 18, 32, 0.42),
      rgba(10, 24, 42, 0.34)
    );
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
}

/* Pierwszy blok pod topbarem/hero bez zbyt dużej przerwy */
.hero + .ai-answer-box,
.hero + .area-section,
.hero + .service-audience,
.hero + .process-section {
  margin-top: 28px;
}

/* Nagłówki */
.ai-answer-box h2,
.area-section h2,
.service-audience h2,
.process-section h2,
.definitions-section h2,
.trust-section h2,
.related-links h2 {
  margin: 0 0 16px;
  color: #eaf2ff;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.36);
}

/* Delikatna linia pod nagłówkiem */
.ai-answer-box h2::after,
.area-section h2::after,
.service-audience h2::after,
.process-section h2::after,
.definitions-section h2::after,
.trust-section h2::after,
.related-links h2::after {
  content: "";
  display: block;
  width: 92px;
  height: 2px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(78, 127, 197, 0.95),
    rgba(127, 160, 211, 0.50),
    rgba(78, 127, 197, 0)
  );
}

/* Tekst */
.ai-answer-box p,
.area-section p,
.service-audience p,
.process-section p,
.definitions-section p,
.trust-section p,
.related-links p {
  max-width: 96ch;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.ai-answer-box p:last-child,
.area-section p:last-child,
.service-audience p:last-child,
.process-section p:last-child,
.definitions-section p:last-child,
.trust-section p:last-child,
.related-links p:last-child {
  margin-bottom: 0;
}

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

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

/* Lista kroków współpracy */
.process-section ol {
  margin: 14px 0 0;
  padding-left: 22px;
}

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

.process-section strong {
  color: #ffffff;
  font-weight: 800;
}

/* Linki w sekcjach AI */
.ai-answer-box a,
.area-section a,
.service-audience a,
.process-section a,
.definitions-section a,
.trust-section a,
.related-links a {
  color: var(--gold-soft, #7fa0d3);
  text-decoration: underline;
  text-decoration-color: rgba(127, 160, 211, 0.48);
  text-underline-offset: 3px;
}

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

/* Gdy po blokach AI idzie zwykła sekcja strony */
.ai-answer-box + .section,
.area-section + .section,
.service-audience + .section,
.process-section + .section,
.definitions-section + .section,
.trust-section + .section,
.related-links + .section {
  padding-top: 64px;
}

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

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

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

  .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,
  .area-section,
  .service-audience,
  .process-section,
  .definitions-section,
  .trust-section,
  .related-links {
    width: calc(100% - 24px) !important;
    padding: 20px 14px !important;
  }
}

/* =========================================
   PRZYCISKI – biały tekst + niebieski hover
   KSIEGOWOSC.LIBERTASFILIPIAK.PL
========================================= */

.btn,
.btn:visited,
.btn--primary,
.btn--primary:visited,
.btn--ghost,
.btn--ghost:visited,
.card .btn,
.card .btn:visited,
.actions .btn,
.actions .btn:visited,
.card.post .actions .btn,
.card.post .actions .btn:visited,
.article__cta .btn,
.article__cta .btn:visited,
.cta-box .btn,
.cta-box .btn:visited,
.calendly-help .btn,
.calendly-help .btn:visited {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Tekst w przyciskach po najechaniu */
.btn:hover,
.btn--primary:hover,
.btn--ghost:hover,
.card .btn:hover,
.actions .btn:hover,
.card.post .actions .btn:hover,
.article__cta .btn:hover,
.cta-box .btn:hover,
.calendly-help .btn:hover {
  color: #eaf2ff !important;
  text-decoration: none !important;
}

/* Niebieski, lekko rozświetlony hover przycisków */
.btn--primary:hover,
.btn--ghost:hover,
.card .btn:hover,
.actions .btn:hover,
.card.post .actions .btn:hover,
.article__cta .btn:hover,
.cta-box .btn:hover {
  background: linear-gradient(180deg, #5f91dc, #3f73bd) !important;
  border-color: rgba(127, 160, 211, 0.95) !important;
  box-shadow:
    0 0 22px rgba(78, 127, 197, 0.34),
    0 8px 22px rgba(0, 0, 0, 0.28) !important;
}

/* Focus z klawiatury */
.btn:focus-visible,
.btn--primary:focus-visible,
.btn--ghost:focus-visible,
.card .btn:focus-visible {
  color: #ffffff !important;
  outline: 2px solid rgba(127, 160, 211, 0.85) !important;
  outline-offset: 3px !important;
}
/* =========================================
   POLITYKA PRYWATNOŚCI / COOKIES – CIEMNE PANELE
   struktura: body.subpage.page-... .hero + .section--subpage
========================================= */

body.page-polityka-prywatnosci .hero__text-wrapper,
body.page-cookies .hero__text-wrapper {
  width: min(980px, 100%);
  padding: 28px 30px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(8, 18, 32, 0.50), rgba(10, 24, 42, 0.42));
  border: 1px solid rgba(126, 169, 230, 0.38);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
}

body.page-polityka-prywatnosci .section--subpage > .container,
body.page-cookies .section--subpage > .container {
  padding: 34px 38px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(8, 18, 32, 0.50), rgba(10, 24, 42, 0.42));
  border: 1px solid rgba(126, 169, 230, 0.38);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
}

body.page-polityka-prywatnosci .section--subpage h2,
body.page-cookies .section--subpage h2 {
  color: #eaf2ff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.36);
}

body.page-polityka-prywatnosci .section--subpage p,
body.page-polityka-prywatnosci .section--subpage li,
body.page-cookies .section--subpage p,
body.page-cookies .section--subpage li {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

body.page-polityka-prywatnosci .section--subpage ul,
body.page-cookies .section--subpage ul {
  margin: 0 0 18px 22px;
  padding: 0;
  list-style: disc;
}

@media (max-width: 768px) {
  body.page-polityka-prywatnosci .hero__text-wrapper,
  body.page-cookies .hero__text-wrapper,
  body.page-polityka-prywatnosci .section--subpage > .container,
  body.page-cookies .section--subpage > .container {
    padding: 22px 18px;
    border-radius: 18px;
  }
}

/* =========================================
   STRONA GŁÓWNA – CIEMNE PANELE SEKCJI
   Twoja księgowość / Dlaczego my / O nas / Oferta /
   Aktualności / Dokumenty / Kontakt
========================================= */

body.home .hero__grid > div:first-child,
body.home #dlaczego-my > .container,
body.home #o-nas > .container,
body.home #oferta > .container,
body.home #aktualnosci > .container,
body.home #dokumenty > .container,
body.home #kontakt > .container {
  padding: 28px 30px;
  border-radius: 22px;
  background:
    linear-gradient(
      145deg,
      rgba(8, 18, 32, 0.50),
      rgba(10, 24, 42, 0.42)
    );
  border: 1px solid rgba(126, 169, 230, 0.38);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
}

body.home .hero__grid > div:first-child h1,
body.home .hero__grid > div:first-child .lead,
body.home #dlaczego-my h2,
body.home #dlaczego-my .muted,
body.home #o-nas h2,
body.home #o-nas .muted,
body.home #oferta h2,
body.home #oferta .muted,
body.home #aktualnosci h2,
body.home #aktualnosci .muted,
body.home #dokumenty h2,
body.home #dokumenty .muted,
body.home #kontakt h2 {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
}

body.home .hero__grid > div:first-child .lead,
body.home #dlaczego-my .muted,
body.home #o-nas .muted,
body.home #oferta .muted,
body.home #aktualnosci .muted,
body.home #dokumenty .muted {
  color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 768px) {
  body.home .hero__grid > div:first-child,
  body.home #dlaczego-my > .container,
  body.home #o-nas > .container,
  body.home #oferta > .container,
  body.home #aktualnosci > .container,
  body.home #dokumenty > .container,
  body.home #kontakt > .container {
    padding: 22px 18px;
    border-radius: 18px;
  }
}

/* =========================================
   AKTUALNOŚCI / DOKUMENTY / KALENDARZ – CIEMNE PANELE
   struktura: body.subpage.page-... .hero + .section--subpage
========================================= */

body.page-aktualnosci .hero__text-wrapper,
body.page-dokumenty .hero__text-wrapper,
body.page-kalendarz .hero__text-wrapper {
  width: min(980px, 100%);
  padding: 28px 30px;
  border-radius: 22px;
  background:
    linear-gradient(
      145deg,
      rgba(8, 18, 32, 0.50),
      rgba(10, 24, 42, 0.42)
    );
  border: 1px solid rgba(126, 169, 230, 0.38);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
}

body.page-aktualnosci .section--subpage > .container,
body.page-dokumenty .section--subpage > .container,
body.page-kalendarz .section--subpage > .container {
  padding: 28px 30px;
  border-radius: 22px;
  background:
    linear-gradient(
      145deg,
      rgba(8, 18, 32, 0.42),
      rgba(10, 24, 42, 0.34)
    );
  border: 1px solid rgba(126, 169, 230, 0.34);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
}

body.page-aktualnosci .section__head,
body.page-dokumenty .section__head {
  margin-bottom: 22px;
}

body.page-aktualnosci .section--subpage h2,
body.page-dokumenty .section--subpage h2,
body.page-kalendarz .section--subpage h1,
body.page-kalendarz .section--subpage h2 {
  color: #eaf2ff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.36);
}

body.page-aktualnosci .section--subpage p,
body.page-dokumenty .section--subpage p,
body.page-kalendarz .section--subpage p {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

body.page-aktualnosci .card,
body.page-dokumenty .card,
body.page-kalendarz .card {
  background: rgba(8, 18, 32, 0.46);
  border-color: rgba(126, 169, 230, 0.34);
}

body.page-kalendarz .card--calendly {
  background: rgba(8, 18, 32, 0.38);
}

@media (max-width: 768px) {
  body.page-aktualnosci .hero__text-wrapper,
  body.page-dokumenty .hero__text-wrapper,
  body.page-kalendarz .hero__text-wrapper,
  body.page-aktualnosci .section--subpage > .container,
  body.page-dokumenty .section--subpage > .container,
  body.page-kalendarz .section--subpage > .container {
    padding: 22px 18px;
    border-radius: 18px;
  }
}

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

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

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

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

/* =========================================
   ACCESSIBILITY FIX — topbar touch targets
   KSIEGOWOSC.LIBERTASFILIPIAK.PL
========================================= */

/* Brand/link logo — większy realny obszar kliknięcia */
.topbar .brand {
  min-height: 48px;
  min-width: 48px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 12px;
}

/* Odstęp między dwoma linkami brand w topbarze */
.topbar .brand-group {
  gap: clamp(22px, 3vw, 44px);
}

/* Linki menu — większy target i odstęp */
#site-nav.nav .nav__list {
  gap: 12px;
}

#site-nav.nav .nav__list a,
#site-nav.nav .nav__link {
  min-height: 48px;
  min-width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  line-height: 1.2;
}

/* W menu mobilnym linki na pełną szerokość i wygodny klik */
@media (max-width: 1100px) {
  #site-nav.nav .nav__list {
    gap: 10px;
  }

  #site-nav.nav .nav__list a,
  #site-nav.nav .nav__link {
    min-height: 48px;
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
  }
}

/* Hamburger — zachowany kompaktowy wygląd, ale większy obszar kliknięcia */
.nav-toggle {
  min-width: 48px;
  min-height: 48px;
}

@media (max-width: 768px) {
  .nav-toggle,
  body.home .nav-toggle {
    min-width: 52px !important;
    min-height: 44px !important;
    height: 44px !important;
  }
}

@media (max-width: 400px) {
  .nav-toggle,
  body.home .nav-toggle {
    min-width: 48px !important;
    min-height: 44px !important;
    height: 44px !important;
  }
}