/*
Theme Name: Kancelaria
*/

:root {
  --navy-900: #101C2E;
  --navy-800: #17263C;
  --navy-700: #1B2B44;
  --ink: #1D2733;
  --text: #3D4756;
  --muted: #5A6472;
  --subtle: #8B8272;
  --gold: #A6864F;
  --gold-light: #D8B87C;
  --gold-dark: #8A6A34;
  --gold-tint: #F3ECDF;
  --bg: #FBFAF8;
  --bg-alt: #F4F1EA;
  --line: #E5DFD4;
  --line-strong: #DAD2C3;
  --white: #FFFFFF;
  --on-dark: #C9D0DA;
  --on-dark-strong: #DDE3EA;

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: 24px;
  --header-h: 88px;
  --section-y: clamp(56px, 7vw, 100px);
  --radius: 10px;
  --radius-lg: 16px;
  --radius-sm: 4px;
  --shadow-sm: 0 1px 2px rgba(16, 28, 46, 0.04), 0 6px 18px -10px rgba(16, 28, 46, 0.14);
  --shadow-md: 0 2px 4px rgba(16, 28, 46, 0.04), 0 22px 44px -20px rgba(16, 28, 46, 0.3);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a {
  color: var(--navy-800);
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
a:hover { color: var(--gold); }

p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.fupi_button  {
  border:0px !important
}

.fupi_cta {
    border:0px !important

}

.wpcf7-spinner {
  display:none
}

/* wrapper CF7 jest inline – musi udawać, że go nie ma */
.form-card .wpcf7-form-control-wrap { display: block; width: 100%; }
.form-card .field input,
.form-card .field textarea { width: 100%; box-sizing: border-box; }

/* zgoda: CF7 generuje własny label + spany w środku */
.form-card .consent .wpcf7-list-item { margin: 0; }
.form-card .consent label { display: flex; gap: .5rem; align-items: flex-start; margin: 0; }

/* komunikat po wysyłce – zamiast .form-success */
.form-card .wpcf7-response-output { /* skopiuj tu reguły z .form-success */ }

.form-card .wpcf7-not-valid-tip { font-size: .85em; color: #c00; }
.form-card .wpcf7-spinner { margin-left: .5rem; }

.wpcf7-form {
    display: grid;
    gap: 16px;
    align-content: start;
    padding: clamp(24px, 3.2vw, 38px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* `clip` zamiast `hidden` — nie tworzy kontenera przewijania, więc position: sticky działa */
.page { overflow-x: clip; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy-900); color: var(--bg); }

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.section-head-row .h2 { margin-bottom: 0; }

/* ---------- Typography ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow--light { color: var(--gold-light); }

.h2 {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(23px, 2.5vw, 32px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.005em;
  color: var(--navy-900);
}
.h2--xl { font-size: clamp(25px, 2.7vw, 30px); font-weight: 400;line-height:1.4 }
.h2--light { color: var(--bg); }
.h2--narrow { max-width: 48ch; }

.h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy-900);
}

/* W dużych liczbach używamy cyfr tablicowych o równej szerokości. */
.benefit-num,
.threshold-num,
.person-facts strong,
.benefits-progress,
.contact-phones a,
.faq-contact a { font-variant-numeric: lining-nums; }

.lead {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
}
.lead--light { color: var(--on-dark); }

.section-lead {
  max-width: 100%;
  margin-bottom: clamp(32px, 4vw, 44px);
}

.link-arrow {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy-900);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.link-arrow:hover { color: var(--gold-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn .icon { font-size: 1.1em; }
.btn--lg { padding: 15px 22px; font-size: 16px; }
.btn--sm { padding: 10px 16px; font-size: 15px; }

.btn--dark { background: var(--navy-900); color: var(--bg); }
.btn--dark:hover { background: var(--gold); color: var(--navy-900); }

.btn--gold { background: var(--gold-light); color: var(--navy-900); font-weight: 600; }
.btn--gold:hover { background: var(--bg); color: var(--navy-900); }

.btn--ghost-light { color: var(--bg); border-color: rgba(251, 250, 248, 0.5); }
.btn--ghost-light:hover { color: var(--gold-light); border-color: var(--gold-light); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 248, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--navy-900);
}
.brand-sub {
  margin-top: 5px;
  font-size: 13px;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 16.5px;
  white-space: nowrap;
  font-weight:400
}
.nav-links a {
  position: relative;
  padding-block: 6px;
  color: #2F3A3F;
  text-decoration: none;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-links a:hover { color: var(--navy-900); }
.nav-links a:hover::after { transform: scaleX(1); }

.header-phones {
  display: flex;
  flex: none;
  gap: 6px;
}
.header-phone {
  flex: none;
  gap: 7px;
  padding: 8px 11px;
  font-size: 13.5px;
}
.header-phone-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.menu-toggle {
  display: none;
  flex: none;
  width: 38px;
  height: 38px;
  padding: 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--navy-900);
  cursor: pointer;
}
.menu-toggle span { display: block; height: 2px; width: 18px; background: currentColor; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1080px) {
  :root { --header-h: 70px; }
  .header-inner { gap: 8px; }
  .brand { min-width: 0; margin-right: auto; }
  .brand-name { font-size: 13.6px; }
  .brand-sub { font-size: 10.4px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: space-between; }
  .header-phone { width: 38px; height: 38px; padding: 0; }
  .header-phone-label, .header-phone + .header-phone { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 12px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: calc(100dvh - var(--header-h) - 70px);
    overflow-y: auto;
    white-space: normal;
  }
  .nav-links.is-open { display: grid; gap: 0; }
  .nav-links a { padding: 12px 0; }
}

@media (max-width: 520px) {
  .header-inner { gap: 8px; }
  .brand-name { font-size: 14.4px; }
  .brand-sub { font-size: 8px; letter-spacing: 0.16em; }
  .header-phone { width: 38px; height: 38px; padding: 0; }
  .header-phone-label { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--bg);
  background-color: var(--navy-900);
  background-image:
    linear-gradient(95deg, rgba(16, 28, 46, 0.96) 0%, rgba(16, 28, 46, 0.86) 46%, rgba(16, 28, 46, 0.42) 100%),
    url("uploads/bg.jpg");
  background-size: cover;
  background-position: center right;
}

.hero-inner { padding-block: clamp(84px, 9.5vw, 134px) clamp(84px, 9vw, 134px); }

.hero-eyebrow {
  margin-bottom: clamp(24px, 3vw, 36px);
  font-size: 14px;
  letter-spacing: 0.26em;
  color: var(--gold-light);
}
.hero-eyebrow::before { width: 46px; opacity: 1; }

.hero-title {
  max-width: 26ch;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--bg);
}
.hero-title em { font-style: normal; color: var(--gold-light); }

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 2vw, 44px);
  align-items: end;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(26px, 3.5vw, 36px);
  border-top: 1px solid rgba(251, 250, 248, 0.22);
}

@media (min-width: 800px) {
  .hero-bottom { grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); }
}

.hero-label {
  margin: 0 0 12px;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #A9B4C2;
}
.hero-names {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.45;
  color: #F1EDE5;
}

.hero-actions { display: grid; gap: 14px; justify-items: start; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 0; font-size: 15px; color: #B9C2CE; }

/* ---------- Czy to Twoja sytuacja ---------- */
.situation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.situation-title { font-size: clamp(25px, 2.7vw, 30px); line-height: 1.4; margin-bottom: 22px; }
.situation-grid .link-arrow { margin-top: 10px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 38px);
  box-shadow: var(--shadow-sm);
}

.help-title { margin-bottom: 20px; }

.help-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.help-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text);
}
.help-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 0.62em;
  justify-self: center;
  background: var(--gold-dark);
  transform: rotate(45deg);
}

.help-footnote {
  margin: 24px 0 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--navy-800);
  color: var(--bg);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side at 88% 120%, rgba(216, 184, 124, 0.2), rgba(216, 184, 124, 0) 70%);
  pointer-events: none;
}
.cta-band::after {
  content: "";
  position: absolute;
  top: -90px;
  right: clamp(-60px, 4vw, 80px);
  width: 340px;
  height: 340px;
  border: 1px solid rgba(216, 184, 124, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

.cta-band-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(32px, 4.5vw, 32px);
  align-items: center;
  padding-block: clamp(56px, 6.5vw, 88px);
}
.cta-band-inner::before {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: -140px;
  right: 180px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(251, 250, 248, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.cta-copy { max-width: 64ch; }
.cta-copy .eyebrow { margin-bottom: 18px; }
.cta-copy p:last-child { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--on-dark); }

.cta-actions {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 400px;
  justify-self: end;
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 17.5px;
  font-weight: 400;
  text-decoration: none;
  letter-spacing:.7px

}
.cta-btn > span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.cta-btn--gold { background: var(--gold-light); color: var(--navy-900); font-size: 19px; font-weight: 600; white-space: nowrap; }
.cta-btn--gold:hover { background: var(--bg); color: var(--navy-900); }
.cta-btn--ghost { color: var(--bg); border-color: rgba(251, 250, 248, 0.45); }
.cta-btn--ghost:hover { color: var(--gold-light); border-color: var(--gold-light); }
.cta-btn-hint { font-size: 16px; font-weight: 500; opacity: 0.85; }

@media (max-width: 640px) {
  .cta-actions { justify-self: stretch; max-width: none; }
}

/* ---------- Zalety – dlaczego warto (sticky) ---------- */
.benefits-grid {
  display: grid;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

.benefits-intro .lead { max-width: 44ch; margin-bottom: 28px; }

.benefits-progress {
  --progress: calc(1 / 7);
  display: none;
  align-items: center;
  gap: 14px;
  max-width: 320px;
  margin-top: 40px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--navy-900);
}
.benefits-track {
  position: relative;
  flex: 1;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line);
}
.benefits-bar {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(var(--progress));
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.benefits-total { color: var(--subtle); }

@media (min-width: 960px) {
  .benefits-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .benefits-intro { position: sticky; top: calc(var(--header-h) + 48px); }
  .benefits-progress { display: flex; }
}

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

.benefit {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 28px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.benefit::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.benefit:hover,
.benefit.is-active {
  border-color: rgba(166, 134, 79, 0.45);
  box-shadow: var(--shadow-md);
}
.benefit:hover { transform: translateY(-2px); }
.benefit.is-active::before { transform: scaleY(1); }

.benefit-num {
  font-family: var(--font-serif);
  font-size: 32px;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
  color: var(--gold);
  transition: color 0.3s var(--ease);
}
.benefit.is-active .benefit-num { color: var(--gold-dark); }

.benefit h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(21px, 2vw, 25px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy-900);
}
.benefit p { margin: 0; max-width: 60ch; font-size: 16px; line-height: 1.65; color: var(--text); }

@media (max-width: 560px) {
  .benefit { grid-template-columns: 1fr; gap: 10px; padding: 22px; }
  .benefit-num { font-size: 32px; }
}

/* ---------- Co podlega umorzeniu / Kto może ogłosić upadłość ---------- */
.scope-grid { display: grid; gap: 24px; }

@media (min-width: 980px) {
  .scope-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

.scope-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 3.6vw, 48px);
  border-radius: 20px;
}
.scope-card > * { position: relative; }

.scope-card--light {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.scope-card--light .lead { max-width: 52ch; }

.scope-card--dark {
  background: var(--navy-900);
  color: var(--bg);
}
.scope-card--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side at 100% 0%, rgba(216, 184, 124, 0.24), rgba(216, 184, 124, 0) 80%);
  pointer-events: none;
}
.scope-card--dark::after {
  content: "";
  position: absolute;
  top: -110px;
  right: -110px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(216, 184, 124, 0.25);
  border-radius: 50%;
  pointer-events: none;
}

.debt-grid {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 14px;
}

.debt-tile {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.debt-tile:hover {
  background: var(--white);
  border-color: rgba(166, 134, 79, 0.5);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gold-tint);
  color: var(--gold-dark);
  font-size: 23px;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.debt-tile:hover .icon-badge { background: var(--navy-900); color: var(--gold-light); }

.scope-text { margin: 0 0 24px; font-size: 16.5px; line-height: 1.7; color: var(--on-dark); }

.threshold {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 26px 0;
  padding: 22px 0;
  border-top: 1px solid rgba(251, 250, 248, 0.14);
  border-bottom: 1px solid rgba(251, 250, 248, 0.14);
}
.threshold-num {
  flex: none;
  font-family: var(--font-serif);
  font-size: clamp(72px, 7.5vw, 96px);
  font-weight: 500;
  line-height: 0.8;
  color: var(--gold-light);
}
.threshold-num small { font-size: 0.45em; vertical-align: top; }
.threshold-label { font-size: 15px; line-height: 1.5; color: var(--on-dark); }
.threshold-label strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--bg);
}

.note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 20px 22px;
  background: rgba(251, 250, 248, 0.06);
  border: 1px solid rgba(216, 184, 124, 0.32);
  border-radius: 14px;
}
.note .icon { font-size: 22px; color: var(--gold-light); margin-top: 2px; }
.note p { margin: 0; font-size: 15.5px; line-height: 1.65; color: #E6EAF0; }
.note strong { font-weight: 600; color: var(--gold-light); }

/* ---------- Zakres usług ---------- */
.services {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: rgba(251, 250, 248, 0.14);
  border: 1px solid rgba(251, 250, 248, 0.14);
  border-radius: var(--radius-lg);
}

.service {
  background: var(--navy-900);
  transition: background-color 0.3s var(--ease);
}
.service:hover { background: #13223A; }
.service[open] { background: #13223A; }

.service-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 20px;
  align-items: center;
  padding: clamp(20px, 2.6vw, 30px) clamp(22px, 3.2vw, 36px);
  list-style: none;
  cursor: pointer;
}
.service-summary::-webkit-details-marker { display: none; }

.service-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
.service-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--navy-900);
  font-size: 23px;
}

.service-toggle {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(216, 184, 124, 0.62);
  border-radius: 50%;
  color: var(--gold-light);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.service-toggle::before,
.service-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.service-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.service[open] .service-toggle {
  transform: rotate(45deg);
  background: var(--gold-light);
  color: var(--navy-900);
}

.service-label {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8E9AAB;
}
.service-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--gold-light);
}
.service-points {
  display: grid;
  gap: 12px;
  padding: 0 clamp(22px, 3.2vw, 36px) clamp(24px, 3.2vw, 36px) clamp(90px, 9vw, 104px);
}
.service:not([open]) .service-points { display: none; }
.service-points p { margin: 0; font-size: 16.5px; line-height: 1.7; color: var(--on-dark-strong); }
.service-points strong { font-weight: 600; color: var(--bg); }

@media (max-width: 520px) {
  .service-summary { grid-template-columns: minmax(0, 1fr) 36px; gap: 12px; }
  .service-head { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .service-icon { width: 44px; height: 44px; font-size: 20px; }
  .service-toggle { width: 36px; height: 36px; }
  .service-name { font-size: 22px; }
  .service-points { padding-left: 22px; }
}

/* ---------- Koszty ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}

.price-card {
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.price-card h3 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy-900);
}

.price-card--dark { background: var(--navy-900); border-color: var(--navy-900); color: var(--bg); }
.price-card--dark h3 { color: var(--gold-light); }
.price-card--dark p { margin: 0 0 20px; font-size: 16.5px; line-height: 1.7; color: var(--on-dark-strong); }

.dash-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dash-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
}
.dash-list li::before { content: "—"; color: var(--gold-dark); }

.price-footnote {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Nasze sukcesy (slider) ---------- */
.cases-lead { margin: 0; max-width: 62ch; font-size: 16.5px; line-height: 1.7; color: var(--muted); }
.cases-head .h2 { margin-bottom: 14px; }

.slider-nav { display: flex; gap: 10px; }
.slider-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #C9C1B2;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy-900);
  font-size: 19px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.slider-btn:hover { border-color: var(--navy-900); background: var(--navy-900); color: var(--gold-light); }

.cases-track {
  display: flex;
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 4px var(--gutter) 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #D6CFC2 transparent;
}
.cases-track::-webkit-scrollbar { height: 6px; }
.cases-track::-webkit-scrollbar-thumb { background: #D6CFC2; border-radius: 3px; }

.case-card {
  flex: 0 0 min(540px, 88%);
  display: grid;
  grid-template-columns: minmax(150px, 200px) 1fr;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

/* Skan postanowienia — miniatura otwierana w lightboxie */
.case-scan {
  position: relative;
  display: block;
  min-height: 220px;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #EFEAE1 0 8px, #F7F4EE 8px 16px);
  border-right: 1px solid var(--line);
  cursor: zoom-in;
}
.case-scan img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s var(--ease);
}
.case-scan::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(158 158 158 / 11%);
  transition: background-color 0.3s var(--ease);
}
.case-scan:hover img { transform: scale(1.04); }
.case-scan:hover::after { background: rgba(16, 28, 46, 0.28); }

.case-zoom {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 1px solid rgba(216, 184, 124, 0.55);
  border-radius: 50%;
  background: rgba(16, 28, 46, 0.72);
  color: var(--gold-light);
  font-size: 32px;
  transform: translate(-50%, -50%);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.case-scan:hover .case-zoom,
.case-scan:focus-visible .case-zoom {
  background: var(--navy-900);
  transform: translate(-50%, -50%) scale(1.08);
}
.case-scan:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: -3px; }

@media (prefers-reduced-motion: reduce) {
  .case-scan img,
  .case-zoom { transition: none; }
  .case-scan:hover img { transform: none; }
  .case-scan:hover .case-zoom,
  .case-scan:focus-visible .case-zoom { transform: translate(-50%, -50%); }
}

.case-body { padding: 24px 22px; }
.case-label {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.case-text { margin: 0 0 18px; font-size: 16px; line-height: 1.65; color: var(--text); }
.case-result {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--navy-900);
  text-wrap: initial !important
}

.cases-disclaimer { margin: 0 auto; font-size: 14px; color: var(--subtle); }

@media (max-width: 520px) {
  .case-card { grid-template-columns: 1fr; }
  .case-scan { min-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
  .case-zoom { width: 58px; height: 58px; font-size: 28px; }
}

/* ---------- Opinie ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: 20px;
}
.review {
  margin: 0;
  padding: 28px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.review-stars { margin-bottom: 14px; font-size: 16px; letter-spacing: 3px; color: var(--gold-light); }
.review blockquote {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}
.review figcaption { font-size: 14.5px; color: var(--muted); }

/* ---------- O nas ---------- */
.team-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }

.person {
  display: grid;
  grid-template-columns: minmax(170px, 280px) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 24px 30px;
  padding: clamp(22px, 2.6vw, 32px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease);
}
.person:hover { box-shadow: var(--shadow-md); }

.person-photo {
  position: relative;
  align-self: start;
  margin: 0 12px 12px 0;
}
.person-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  border-radius: 0;
  transform: translate(12px, 12px);
  transition: transform 0.5s var(--ease);
}
.person-photo img {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 0%;
  border-radius: 0;
  background: #E6E9EE;
}
.person:hover .person-photo::before { transform: translate(6px, 6px); }

.person-body { align-self: center; }

.person-role {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gold-tint);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.person-name {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.4vw, 31px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--navy-900);
}

.person-bio { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--text); }

.person-facts {
  grid-column: 1 / -1;
  list-style: none;
  margin: 0;
  padding: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  border-top: 1px solid var(--line);
}
.person-facts li { display: grid; gap: 4px; align-content: start; }
.person-facts li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.person-facts strong {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  color: var(--navy-900);
}
.person-facts span { font-size: 13px; line-height: 1.4; color: var(--muted); }

@media (max-width: 600px) {
  .person { grid-template-columns: 1fr; }
  .person-photo { width: min(260px, 80%); }
  .person-facts { gap: 12px; }
  .person-facts li + li { padding-left: 12px; }
  .person-facts strong { font-size: 24px; }
}

/* ---------- Dlaczego my ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.why-title { line-height: 1.3; margin-bottom: 22px; }
.why-title strong {
  font-weight: 700;
  background: linear-gradient(transparent 64%, rgba(216, 184, 124, 0.38) 64%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.why-grid .lead { margin-bottom: 26px; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.check-list li:hover { border-color: rgba(166, 134, 79, 0.5); transform: translateX(4px); }
.check-list li::before {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A6A34' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

@media (min-width: 960px) {
  .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .faq-intro { position: sticky; top: calc(var(--header-h) + 48px); }
}

.faq-intro .lead { max-width: 38ch; }
.faq-contact { display: grid; gap: 4px; margin-top: 28px; }
.faq-contact span { font-size: 14px; color: var(--muted); }
.faq-contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--navy-900);
  text-decoration: none;
}
.faq-contact a .icon { font-size: 20px; color: var(--gold-dark); }
.faq-contact a:hover { color: var(--gold-dark); }

.faq-item + .faq-item { border-top: 1px solid var(--line-strong); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy-900);
  transition: color 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-dark); }

.faq-icon {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(166, 134, 79, 0.55);
  border-radius: 50%;
  color: var(--gold-dark);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--gold-light);
}

.faq-answer {
  max-width: 64ch;
  margin: 0;
  padding: 0 0px 24px 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
}

@supports (interpolate-size: allow-keywords) {
  .faq-item { interpolate-size: allow-keywords; }
  .faq-item::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete;
  }
  .faq-item[open]::details-content { block-size: auto; }
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
}

@media (min-width: 800px) {
  .contact-grid { grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr); }
}

.contact-info { display: grid; gap: 26px; align-content: start; }
.contact-label {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.contact-phones { margin: 0; display: grid; gap: 2px; }
.contact-phones a {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--navy-900);
  text-decoration: none;
}
.contact-phones a:hover { color: var(--gold-dark); }
.contact-mail { font-size: 17.5px; color: var(--navy-900); }
.contact-address { margin: 0; font-size: 17.5px; line-height: 1.6; color: var(--ink); }

.form-card {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: clamp(24px, 3.2vw, 38px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.form-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--navy-900);
}
.form-lead { margin: 0 0 4px; font-size: 15.5px; line-height: 1.6; color: var(--muted); }

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 14px;
}

.field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--muted); }
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #D8D2C6;
  border-radius: 6px;
  background: var(--bg);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(166, 134, 79, 0.18);
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}
.consent input { flex: none; width: 17px; height: 17px; margin-top: 3px; accent-color: var(--navy-900); }
.consent a { color: var(--navy-900); }

.form-submit { justify-self: start; padding: 15px 26px; font-weight: 600; }

.form-success {
  margin: 0;
  padding: 12px 14px;
  background: #EDF3ED;
  border: 1px solid #CBDCCB;
  border-radius: 6px;
  font-size: 15.5px;
  color: #14532D;
}

/* ---------- Blog ---------- */
.link-more {
  font-size: 15.5px;
  color: var(--navy-900);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 20px;
}
.blog-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 24px; }

.post {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.post:hover { border-color: rgba(138, 106, 52, 0.5); box-shadow: var(--shadow-md); transform: translateY(-3px); }

.post-media { aspect-ratio: 16 / 9; overflow: hidden; background: #EFEAE1; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.post:hover .post-media img { transform: scale(1.04); }

.post-body { padding: 30px; }
.post-title {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy-900);
}
.post p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--muted); }

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(40px, 5vw, 64px);
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #C9C1B2;
  border-radius: 999px;
  background: var(--white);
  font-size: 16px;
  font-weight: 500;
  color: var(--navy-900);
  text-decoration: none;
}
.pagination .page-numbers .icon { font-size: 19px; }
.pagination a.page-numbers:hover { border-color: var(--navy-900); background: var(--navy-900); color: var(--gold-light); }
.pagination .current { border-color: var(--navy-900); background: var(--navy-900); color: var(--bg); }
.pagination .dots { min-width: 0; padding: 0 4px; border-color: transparent; background: none; }

/* ---------- Podstrony i wpisy ---------- */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container--narrow { max-width: calc(860px + 2 * var(--gutter)); }

.page-hero {
  --hero-y: clamp(56px, 7vw, 96px);
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--bg);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side at 92% 0%, rgba(216, 184, 124, 0.18), rgba(216, 184, 124, 0) 75%);
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  top: -120px;
  right: clamp(-80px, 4vw, 80px);
  width: 340px;
  height: 340px;
  border: 1px solid rgba(216, 184, 124, 0.22);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; padding-block: var(--hero-y); }
.page-hero .eyebrow a { color: inherit; text-decoration: none; }
.page-hero .eyebrow a:hover { color: var(--bg); }

.page-title {
  max-width: 28ch;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--bg);
}
.page-lead { max-width: 62ch; margin-top: 22px; font-size: 18px; line-height: 1.7; color: var(--on-dark); }
.page-lead p { margin: 0 0 12px; }
.page-lead p:last-child { margin-bottom: 0; }

.page-body { padding-block: clamp(44px, 5.5vw, 80px) var(--section-y); }
.page-body--media { padding-top: 0; }

/* Zdjęcie wpisu nachodzi na granatowy nagłówek */
.article { --media-overlap: clamp(48px, 7vw, 110px); }
.page-hero--overlap .page-hero-inner { padding-bottom: calc(var(--hero-y) + var(--media-overlap)); }
.article-media {
  position: relative;
  margin: calc(-1 * var(--media-overlap)) 0 clamp(36px, 4.5vw, 56px);
}
.article-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: #EFEAE1;
  box-shadow: var(--shadow-md);
}

/* Treść z edytora WordPress */
.entry-content {
  font-size: 17.5px;
  line-height: 1.8;
  color: var(--text);
  overflow-wrap: break-word;
}
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content > * { margin-top: 0; margin-bottom: 1.15em; }
.entry-content h2 {
  margin: 1.9em 0 0.6em;
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.5vw, 30px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--navy-900);
}
.entry-content h3 {
  margin: 1.6em 0 0.5em;
  font-family: var(--font-serif);
  font-size: clamp(20px, 2vw, 23px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy-900);
}
.entry-content h4 { margin: 1.5em 0 0.4em; font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--navy-900); }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content strong,
.entry-content b { font-weight: 600; color: var(--ink); }
.entry-content a { color: var(--navy-800); text-decoration: underline; text-decoration-color: var(--gold); }
.entry-content a:hover { color: var(--gold-dark); }

.entry-content ul,
.entry-content ol { padding-left: 1.4em; }
.entry-content li { padding-left: 0.3em; }
.entry-content li + li { margin-top: 0.45em; }
.entry-content li > ul,
.entry-content li > ol { margin: 0.45em 0 0; }
.entry-content li::marker { color: var(--gold-dark); }
.entry-content ol > li::marker { font-weight: 600; }

.entry-content blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 26px;
  border-left: 2px solid var(--gold);
  font-family: var(--font-serif);
  font-size: clamp(19px, 2vw, 22px);
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
}
.entry-content blockquote p { margin: 0 0 0.6em; }
.entry-content blockquote > :last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: 10px; font-family: var(--font-sans); font-size: 15px; font-style: normal; color: var(--muted); }

.entry-content figure { margin: 2em 0; }
.entry-content img { height: auto; border-radius: var(--radius); }
.entry-content figcaption { margin-top: 10px; font-size: 14.5px; line-height: 1.5; text-align: center; color: var(--muted); }
.entry-content hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--line-strong); }

.entry-content .wp-block-table { overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.55; }
.entry-content th,
.entry-content td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th { background: var(--bg-alt); font-weight: 600; color: var(--ink); }

.entry-content .aligncenter { margin-inline: auto; }
.entry-content .alignleft { float: left; margin: 0.3em 1.6em 1em 0; }
.entry-content .alignright { float: right; margin: 0.3em 0 1em 1.6em; }

@media (max-width: 600px) {
  .entry-content .alignleft,
  .entry-content .alignright { float: none; margin-inline: 0; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: clamp(48px, 6vw, 72px) 40px;
  background: var(--navy-900);
  color: var(--on-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 32px;
}
.footer-brand {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--bg);
}
.footer-label {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.footer-text { margin: 0; font-size: 16px; line-height: 1.75; }
.footer-links { margin: 0; display: grid; gap: 4px; font-size: 16px; }
.site-footer a { color: var(--bg); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(251, 250, 248, 0.16);
  font-size: 14px;
}
.footer-bottom a { color: var(--on-dark); text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  gap: 1px;
  background: rgba(16, 28, 46, 0.2);
  box-shadow: 0 -6px 24px rgba(16, 28, 46, 0.18);
  transform: translateY(calc(100% + 30px));
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s var(--ease), visibility 0s 0.3s;
}
.sticky-cta.is-visible {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.sticky-cta a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 12px calc(15px + env(safe-area-inset-bottom, 0px));
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.sticky-cta-call,
.sticky-cta-call:hover { background: var(--navy-900); color: var(--bg); }
.sticky-cta-write,
.sticky-cta-write:hover { background: var(--gold-light); color: var(--navy-900); }

@media (max-width: 900px) {
  .sticky-cta { display: flex; }
  .site-footer { padding-bottom: 110px; }
}

/* ---------- Animacje wejścia ---------- */
@media (max-width: 900px) {
  .hero-title { font-size: clamp(32px, calc(4.6vw - 2px), 58px); line-height: 1.16; }
  .hero-names { font-size: 19px; }
  .hero .btn--lg { padding: 12.8px 20.8px; font-size: 13.2px; gap: 8px; }
  .cta-btn { padding: 15.2px 19.2px; font-size: 14px; gap: 12.8px; letter-spacing: .56px; }
  .cta-btn--gold { font-size: 15.2px; }
  .cta-btn > span:first-child { gap: 8px; }
  .cta-btn-hint { font-size: 12.8px; }
  #koszty > .container > h2 { line-height: 1.6; }
  .faq-item summary { font-size: 16.8px; }
}

@keyframes reveal-up {
  from { opacity: 0; translate: 0 22px; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; }

  .js .reveal.is-visible { animation: reveal-up 0.8s var(--ease) both; }

  .js .reveal:nth-child(2).is-visible { animation-delay: 0.08s; }
  .js .reveal:nth-child(3).is-visible { animation-delay: 0.16s; }
  .js .reveal:nth-child(4).is-visible { animation-delay: 0.24s; }

}

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