/* ═══════════════════════════════════════════════════════════════
   Ginekolog dla Ciebie — component styles
   Ported from the approved v2 mockups (design/pages/*.html), with the
   v2/v3/v4 overrides already resolved: no floral blobs, unified cream
   section backgrounds, sharp footer edge, negative footer logo.
   ═══════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ───────────────────────────────────────────── */
:root {
  --color-teal:       #0A5A68;
  --color-teal-dark:  #053D47;
  --color-teal-light: #1A7E8C;
  --color-teal-tint:  #E0EEF0;
  --color-cream:      #FAF7F2;
  --color-cream-dark: #F5E6CF;
  --color-terracotta: #EF7848;
  --color-terra-dark: #C25728;
  --color-anthracite: #1F2A2E;
  --color-muted:      #6B6660;
  --color-white:      #FFFFFF;

  --bg:           var(--color-cream);
  --surface:      var(--color-white);
  --text:         var(--color-anthracite);
  --text-muted:   var(--color-muted);
  --primary:      var(--color-teal);
  --primary-dark: var(--color-teal-dark);
  --accent:       var(--color-terracotta);

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Montserrat', 'Segoe UI', sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1.0625rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  1.875rem;
  --text-3xl:  2.375rem;
  --text-4xl:  3rem;
  --text-5xl:  3.75rem;

  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-pill: 50px;

  --shadow-sm: 0 2px 8px rgba(44, 95, 99, 0.08);
  --shadow-md: 0 6px 24px rgba(44, 95, 99, 0.12);
  --shadow-lg: 0 12px 48px rgba(44, 95, 99, 0.18);

  --transition-base: all 0.3s ease;
  --transition-slow: all 0.5s ease;

  --wide-size:    1280px;
  --content-size: 800px;
}

/* ── BASE ────────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* Layout helpers used inside core/html blocks */
.wide-width {
  max-width: var(--wide-size);
  margin-inline: auto;
  padding-inline: var(--space-8);
}
.content-width {
  max-width: var(--content-size);
  margin-inline: auto;
  padding-inline: var(--space-8);
}

/* ── ANIMATIONS / SCROLL REVEAL ──────────────────────────────── */
@keyframes gdcFadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
}
.btn--appointment {
  background: var(--accent);
  color: var(--color-white);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 10px rgba(239, 120, 72, 0.28);
}
.btn--appointment:hover {
  background: var(--color-terra-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(194, 87, 40, 0.35);
}
.btn--primary {
  background: var(--primary);
  color: var(--color-white);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(44, 95, 99, 0.3);
}
.btn--primary:hover {
  background: var(--primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(44, 95, 99, 0.4);
}
.btn--secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
  padding: calc(var(--space-4) - 2px) calc(var(--space-8) - 2px);
  border-radius: var(--radius-pill);
}
.btn--secondary:hover {
  background: var(--primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 95, 99, 0.25);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: transparent;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
}
.btn--ghost:hover { color: var(--primary); text-decoration-color: var(--primary); }
.btn--sm { font-size: var(--text-xs); padding: var(--space-2) var(--space-5); }
.cta-ghost-light {
  color: var(--color-teal-dark) !important;
  text-decoration-color: rgba(44, 95, 99, 0.4) !important;
}

/* ── HEADER / NAVIGATION ─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid rgba(44, 95, 99, 0.1);
  box-shadow: var(--shadow-sm);
}
.nav-tagline {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-xs);
  font-style: italic;
  font-family: var(--font-heading);
  text-align: center;
  padding: var(--space-2) var(--space-4);
  letter-spacing: 0.03em;
}
.nav-tagline strong { color: var(--color-white); font-weight: 600; }
.nav-bar {
  padding: var(--space-4) var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  max-width: var(--wide-size);
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
  min-width: max-content;
}
.nav-logo img { height: 72px; width: auto; }
.nav-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.02;
  padding-top: 2px;
  gap: 1px;
  white-space: nowrap;
}
.nav-wordmark-1 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--color-teal-dark);
  letter-spacing: -0.005em;
}
.nav-wordmark-2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--color-terracotta);
  letter-spacing: -0.005em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-shrink: 1;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--primary); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}
.nav-actions .btn--appointment { font-size: var(--text-xs); padding: var(--space-3) var(--space-6); }

/* Hamburger toggle — hidden on desktop, shown (JS only) below 960px */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
}
.nav-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.nav-toggle-bars {
  display: block;
  position: relative;
  width: 22px;
  height: 2px;
  background: var(--color-teal-dark);
  border-radius: 2px;
  transition: background 0.2s ease;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--color-teal-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, top 0.25s ease;
}
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1180px) {
  .nav-wordmark-1, .nav-wordmark-2 { font-size: 1.25rem; }
  .nav-logo img { height: 60px; }
  .nav-links { gap: var(--space-4); }
  .nav-links a { font-size: var(--text-xs); }
}
@media (max-width: 960px) {
  .nav-logo img { height: 56px; }
  .js .nav-toggle { display: inline-flex; }
  /* Links collapse into a dropdown panel under the sticky header */
  .js .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-top: 1px solid rgba(44, 95, 99, 0.08);
    border-bottom: 1px solid rgba(44, 95, 99, 0.1);
    box-shadow: var(--shadow-md);
    padding: var(--space-2) 0 var(--space-3);
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
  }
  .js .site-header.nav-open .nav-links { display: flex; }
  .js .nav-links a {
    font-size: var(--text-base);
    padding: var(--space-4) var(--space-8);
    border-bottom: 1px solid rgba(44, 95, 99, 0.06);
  }
  .js .nav-links a:last-child { border-bottom: none; }
  .js .nav-links a::after { display: none; }
  .js .nav-links a.active {
    color: var(--primary);
    box-shadow: inset 3px 0 0 var(--accent);
    background: rgba(10, 90, 104, 0.04);
  }
}
@media (max-width: 768px) {
  /* The tagline is decorative — free up sticky-header height on phones */
  .nav-tagline { display: none; }
}
@media (max-width: 560px) {
  /* Logo icon + CTA + hamburger only; the wordmark doesn't fit alongside */
  .nav-wordmark { display: none; }
}

/* ── SECTION HEADERS (shared) ────────────────────────────────── */
.section-header { text-align: center; margin-bottom: var(--space-16); }
.section-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-terra-dark);
  margin-bottom: var(--space-3);
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 700;
  color: var(--text);
  text-wrap: balance;
  margin-bottom: var(--space-4);
}
.section-lead {
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto;
  line-height: 1.75;
  text-wrap: pretty;
}

/* ── HERO (front page) ───────────────────────────────────────── */
.hero { background: var(--bg); padding: clamp(4rem, 8vw, 6rem) 0 0; position: relative; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
  max-width: var(--wide-size);
  margin: 0 auto;
  padding: 0 var(--space-8);
}
.hero-content { padding-bottom: var(--space-16); }
.hero-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-terra-dark);
  margin-bottom: var(--space-5);
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-teal-dark);
  margin-bottom: var(--space-6);
  text-wrap: balance;
}
.hero-title em { font-style: italic; color: var(--color-terra-dark); display: inline-block; }
.hero-lead {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-8);
  max-width: 48ch;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: var(--space-10);
}
.hero-inner > * { min-width: 0; }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--space-6) var(--space-8); padding-top: var(--space-8); border-top: 1px solid var(--color-cream-dark); }
.hero-trust-number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--primary);
  display: block;
  line-height: 1;
  margin-bottom: var(--space-1);
}
.hero-trust-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-photo-col { position: relative; align-self: stretch; display: flex; align-items: center; }
/* Photo frame and caption are shared with the About section — see .about-photo-*. */
.hero-photo-wrap { position: relative; width: 100%; border-radius: var(--radius-lg); overflow: hidden; }

/* ── SERVICES (2x2 cards) ────────────────────────────────────── */
.services { background: var(--bg); padding: var(--space-16) 0 var(--space-24); }
.cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  border: 1px solid rgba(44, 95, 99, 0.07);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon-area {
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-light) 100%);
  padding: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  position: relative;
  overflow: hidden;
}
.card-icon-area::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 24px;
  background: var(--surface);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.card-icon {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
}
.card-body { padding: var(--space-6) var(--space-6) var(--space-8); }
.card-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-terra-dark);
  margin-bottom: var(--space-3);
}
.card-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-3);
  line-height: 1.25;
}
.card-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-5);
  text-wrap: pretty;
}
.card--terra .card-icon-area { background: linear-gradient(135deg, var(--color-terra-dark) 0%, var(--color-terracotta) 100%); }
.card--teal-light .card-icon-area { background: linear-gradient(135deg, var(--color-teal-light) 0%, #5A9EA5 100%); }
.card--dark .card-icon-area { background: linear-gradient(135deg, var(--color-teal-dark) 0%, var(--color-teal) 100%); }
.card-svg { width: 28px; height: 28px; stroke: rgba(255,255,255,0.9); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── ABOUT (front page) ──────────────────────────────────────── */
.about { background: var(--color-cream); padding: var(--space-16) 0; position: relative; }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: center; position: relative; z-index: 1; }
.about-eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-terra-dark);
  display: block;
  margin-bottom: var(--space-4);
}
.about-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 700;
  color: var(--color-teal-dark);
  margin-bottom: var(--space-6);
  text-wrap: balance;
  line-height: 1.2;
}
.about-title em { font-style: italic; color: var(--color-teal); }
.about-text { font-size: var(--text-base); color: var(--text-muted); line-height: 1.8; margin-bottom: var(--space-6); text-wrap: pretty; }
.about-credentials { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-8); }
.badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  background: rgba(44, 95, 99, 0.08);
  color: var(--color-teal-dark);
  border: 1px solid rgba(44, 95, 99, 0.2);
  border-radius: var(--radius-pill);
}
.about-photo-col { position: relative; }
.about-photo-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.about-photo-wrap img,
.hero-photo-wrap img { width: 100%; height: 520px; object-fit: cover; object-position: center 15%; }
.about-photo-wrap::before,
.hero-photo-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(30, 67, 70, 0.6));
  z-index: 1;
}
.about-photo-caption,
.hero-photo-caption { position: absolute; bottom: var(--space-6); left: var(--space-6); z-index: 2; }
.about-photo-caption strong,
.about-photo-caption span,
.hero-photo-caption strong,
.hero-photo-caption span {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-white);
}
.about-photo-caption strong,
.hero-photo-caption strong { margin-bottom: var(--space-1); }

/* ── WIZYTA (numbered steps + CTA box) ───────────────────────── */
.wizyta { background: var(--bg); padding: var(--space-16) 0 var(--space-24); position: relative; scroll-margin-top: 100px; }
.wizyta-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-16); align-items: center; position: relative; z-index: 1; }
.wizyta-header { margin-bottom: var(--space-10); }
.steps-list { display: flex; flex-direction: column; gap: 0; }
.step-item { display: flex; gap: var(--space-6); padding-bottom: var(--space-8); position: relative; }
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 52px;
  left: 23px;
  width: 2px;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(44, 95, 99, 0.25), rgba(44, 95, 99, 0.08));
}
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--color-teal-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step-item:hover .step-number { transform: scale(1.08); box-shadow: var(--shadow-md); }
.step-number span { font-family: var(--font-heading); font-size: var(--text-lg); font-weight: 700; color: var(--color-white); }
.step-number--accent { background: linear-gradient(135deg, var(--color-terra-dark) 0%, var(--color-terracotta) 100%); }
.step-body { padding-top: var(--space-2); }
.step-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(44, 95, 99, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step-card:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.step-title { font-family: var(--font-heading); font-size: var(--text-xl); font-weight: 600; color: var(--text); margin-bottom: var(--space-2); }
.step-text { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.75; text-wrap: pretty; }
.wizyta-cta-col { position: relative; }
.wizyta-cta-box {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 120px;
  overflow: hidden;
}
.wizyta-cta-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-4);
  text-wrap: balance;
}
.wizyta-cta-text { font-size: var(--text-sm); color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: var(--space-8); }

/* ── TRUST SIGNALS ───────────────────────────────────────────── */
.trust { background: var(--bg); padding: var(--space-16) 0 var(--space-20); border-top: 1px solid var(--color-cream-dark); border-bottom: 1px solid var(--color-cream-dark); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.trust-item { text-align: center; padding: var(--space-6); }
.trust-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-cream-dark), var(--color-cream));
  border: 2px solid rgba(44, 95, 99, 0.1);
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-icon svg { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 1.8; stroke-linecap: round; }
.trust-number { font-family: var(--font-heading); font-size: var(--text-3xl); font-weight: 700; color: var(--primary); display: block; margin-bottom: var(--space-1); }
.trust-label { font-size: var(--text-sm); color: var(--text-muted); font-weight: 500; line-height: 1.4; }

/* ── BLOG CARDS (front page teaser + related) ────────────────── */
/* Not `.blog` — WordPress puts that class on <body> for the posts page. */
.blog-teaser { background: var(--bg); padding: var(--space-16) 0 var(--space-24); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-top: var(--space-12); }
/* In a query loop the grid children are the post-template's <li> wrappers. Core
   lays that list out as flow, which margins every item after the first away from
   its sibling — inside a grid that just drops the card down its own cell. Reset
   it and let the card fill the cell, so a row of cards is flush and equal-height. */
.blog-grid > li { margin: 0; display: flex; }
.blog-grid > li > .blog-card { flex: 1; }
.blog-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border: 1px solid rgba(44, 95, 99, 0.07);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-light) 100%);
  position: relative;
  overflow: hidden;
}
.blog-card-img::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 20px;
  background: var(--surface);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 1;
}
/* The featured-image slots render as <figure>, so reset the UA margin, and make
   the category artwork fill its fixed-height box. Where a post has no artwork
   the figure stays empty and the gradient above shows through instead. */
.blog-card-img,
.featured-img,
.article-cover-img { margin: 0; }
.blog-card-img a,
.featured-img a,
.article-cover-img a { display: block; width: 100%; height: 100%; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { padding: var(--space-5) var(--space-6) var(--space-6); }
.blog-card-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.blog-card-dot { width: 3px; height: 3px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
.blog-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-3);
  line-height: 1.3;
  text-wrap: balance;
}
.blog-card-title a:hover { color: var(--primary); }
.blog-card-excerpt { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.7; margin-bottom: var(--space-4); text-wrap: pretty; }
.blog-card-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: var(--transition-base);
}
.blog-card-link:hover { color: var(--color-terra-dark); text-decoration-color: var(--color-terra-dark); }

/* ── PAGE HERO (subpages) ────────────────────────────────────── */
.page-hero { background: var(--bg); padding: var(--space-20) 0 var(--space-16); }
.page-hero--center { text-align: center; }
.page-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: center; }
.page-hero-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-5);
}
.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-teal-dark);
  margin-bottom: var(--space-6);
}
.page-hero-title em { font-style: italic; color: var(--accent); }
.page-hero-lead { font-size: var(--text-lg); color: var(--text-muted); line-height: 1.75; margin-bottom: var(--space-8); }
.page-hero--center .page-hero-lead { max-width: 56ch; margin: 0 auto var(--space-8); }
.page-hero-photo { position: relative; }
.page-hero-photo img { width: 100%; height: 520px; object-fit: cover; object-position: center 10%; border-radius: var(--radius-lg); }
.badge-row { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-8); }
.badge-row .badge {
  background: var(--color-teal-tint);
  color: var(--primary);
  letter-spacing: 0.06em;
  padding: var(--space-2) var(--space-4);
  border: 1px solid rgba(44, 95, 99, 0.15);
}

/* ── ABOUT PAGE: bio + timeline + sidebar ────────────────────── */
.bio-section { background: var(--bg); padding: var(--space-24) 0; }
.bio-inner { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-16); align-items: start; }
.bio-text { font-size: var(--text-base); color: var(--text-muted); line-height: 1.8; margin-bottom: var(--space-6); }
.timeline { margin-top: var(--space-10); }
.timeline-item { display: flex; gap: var(--space-6); margin-bottom: var(--space-8); }
.timeline-year { font-family: var(--font-heading); font-size: var(--text-xl); font-weight: 700; color: var(--primary); min-width: 70px; padding-top: 2px; white-space: nowrap; }
.timeline-content h4 { font-family: var(--font-heading); font-size: var(--text-lg); font-weight: 600; color: var(--text); margin-bottom: var(--space-2); }
.timeline-content p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.7; }
.timeline-line { position: relative; }
.timeline-line::before { content: ''; position: absolute; left: 34px; top: 32px; bottom: -24px; width: 2px; background: rgba(44, 95, 99, 0.12); }
.quick-info { background: var(--surface); border-radius: var(--radius-lg); padding: var(--space-8); box-shadow: var(--shadow-md); border: 1px solid rgba(44, 95, 99, 0.08); }
.quick-info h3 { font-family: var(--font-heading); font-size: var(--text-xl); color: var(--primary); margin-bottom: var(--space-6); }
.quick-info-row { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4) 0; border-bottom: 1px solid var(--color-cream-dark); }
.quick-info-row:last-child { border-bottom: none; }
.quick-info-label { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.quick-info-value { font-size: var(--text-sm); color: var(--text); font-weight: 500; }

/* ── PHILOSOPHY (about page) ─────────────────────────────────── */
.philosophy { background: var(--bg); padding: var(--space-24) 0; }
.philosophy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-top: var(--space-12); }
.philosophy-card { background: var(--surface); border-radius: var(--radius-lg); padding: var(--space-8); border: 1px solid rgba(44, 95, 99, 0.07); }
.philosophy-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-teal), var(--color-teal-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}
.philosophy-icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.philosophy-card h3 { font-family: var(--font-heading); font-size: var(--text-lg); font-weight: 600; color: var(--text); margin-bottom: var(--space-3); }
.philosophy-card p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.75; }

/* ── CERTIFICATIONS (about page) ─────────────────────────────── */
.certifications { background: var(--bg); padding: var(--space-20) 0 var(--space-24); }
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); margin-top: var(--space-12); }
.cert-item {
  background: var(--surface);
  border: 1px solid rgba(44, 95, 99, 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}
.cert-placeholder {
  aspect-ratio: 4 / 3;
  position: relative;
  background-color: var(--color-cream);
  background-image: repeating-linear-gradient(45deg, rgba(10,90,104,0.05) 0 1px, transparent 1px 14px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-placeholder::before { content: ''; position: absolute; inset: 14px; border: 1px dashed rgba(10,90,104,0.28); border-radius: 6px; pointer-events: none; }
.cert-placeholder-label {
  position: relative;
  z-index: 1;
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(10,90,104,0.55);
  background: var(--color-cream);
  padding: 4px 10px;
}
.cert-thumb {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-cream);
}
.cert-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}
.cert-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cert-item:hover .cert-thumb img { transform: scale(1.04); }
.cert-meta { padding: var(--space-4) var(--space-5) var(--space-5); border-top: 1px solid rgba(44, 95, 99, 0.08); }
.cert-meta h4 { font-family: var(--font-heading); font-size: var(--text-base); font-weight: 600; color: var(--text); margin-bottom: 4px; line-height: 1.3; }
.cert-meta p { font-size: var(--text-xs); color: var(--text-muted); letter-spacing: 0.02em; }

/* ── CTA STRIP (dark) ────────────────────────────────────────── */
.cta-strip { background: var(--color-teal-dark); padding: var(--space-16) 0; text-align: center; }
.cta-strip h2 { font-family: var(--font-heading); font-size: clamp(1.75rem, 3vw, 2.375rem); color: #fff; margin-bottom: var(--space-4); }
.cta-strip p { font-size: var(--text-base); color: rgba(255,255,255,0.7); margin-bottom: var(--space-8); }
.cta-strip .btn--appointment { font-size: var(--text-base); padding: var(--space-5) var(--space-10); }

/* ── BOOKING OPTIONS (contact) ───────────────────────────────── */
.booking { background: var(--bg); padding: var(--space-16) 0 var(--space-24); }
.booking-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.booking-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 1.5px solid rgba(44, 95, 99, 0.07);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.booking-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.booking-card.featured { border-color: var(--accent); position: relative; }
.booking-card.featured::before {
  content: 'Najszybsza opcja';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
}
.booking-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-teal), var(--color-teal-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
}
.booking-icon svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.booking-card h3 { font-family: var(--font-heading); font-size: var(--text-xl); font-weight: 600; color: var(--text); margin-bottom: var(--space-3); }
.booking-card p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.7; margin-bottom: var(--space-6); }
.booking-card .booking-detail { font-size: var(--text-base); font-weight: 600; color: var(--primary); margin-bottom: var(--space-5); }

/* ── CONTACT DETAILS + FORM ──────────────────────────────────── */
.contact-section { background: var(--bg); padding: var(--space-24) 0; }
.contact-inner { display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--space-16); align-items: start; }
.contact-details { margin-top: var(--space-8); }
.contact-row { display: flex; gap: var(--space-4); padding: var(--space-5) 0; border-bottom: 1px solid var(--color-cream-dark); }
.contact-row:last-child { border-bottom: none; }
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--color-teal-tint);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
}
.contact-icon svg { width: 20px; height: 20px; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-label { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 4px; }
.contact-value { font-size: var(--text-sm); color: var(--text); font-weight: 500; }
.contact-value a { color: var(--primary); }
.contact-form { background: var(--surface); border: 1px solid rgba(44, 95, 99, 0.08); border-radius: var(--radius-lg); padding: var(--space-10); }
.contact-form h3 { font-family: var(--font-heading); font-size: var(--text-2xl); color: var(--text); margin-bottom: var(--space-6); }
.form-row { margin-bottom: var(--space-5); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-bottom: var(--space-5); }
.form-label { display: block; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-2); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(44, 95, 99, 0.15);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary); }
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-note { font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--space-3); }
.form-submit { margin-top: var(--space-6); }

/* ── OPENING HOURS (contact) ─────────────────────────────────── */
.hours-section { background: var(--bg); padding: var(--space-20) 0; }
.hours-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); margin-top: var(--space-12); }
.hours-card { background: var(--surface); border-radius: var(--radius-md); padding: var(--space-6); text-align: center; box-shadow: var(--shadow-sm); }
.hours-day { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: var(--space-3); }
.hours-time { font-family: var(--font-heading); font-size: var(--text-xl); font-weight: 700; color: var(--primary); }
.hours-time.closed { color: var(--color-muted); }

/* ── MAP (contact) ───────────────────────────────────────────── */
.map-section { background: var(--bg); padding: var(--space-20) 0; }
.map-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, var(--color-teal-tint), var(--color-cream-dark));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--text-muted);
  font-size: var(--text-xl);
}

/* ── KNOWLEDGE BASE: filter pills, featured, query grid, pagination ── */
.filter-bar { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; padding: var(--space-6) 0 var(--space-10); }
.filter-pill {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(44, 95, 99, 0.15);
  transition: var(--transition-base);
  cursor: pointer;
}
.filter-pill:hover, .filter-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.featured-post { background: var(--bg); padding: var(--space-8) 0 var(--space-16); }
.featured-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.featured-img {
  height: 400px;
  background: linear-gradient(135deg, var(--color-teal-tint), var(--color-cream-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--text-muted);
}
.featured-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-body { padding: var(--space-10); }
.featured-tag { display: inline-block; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-4); }
.featured-title { font-family: var(--font-heading); font-size: var(--text-3xl); font-weight: 700; color: var(--text); margin-bottom: var(--space-4); line-height: 1.25; }
.featured-title a:hover { color: var(--primary); }
.featured-excerpt { font-size: var(--text-base); color: var(--text-muted); line-height: 1.75; margin-bottom: var(--space-6); }
.featured-meta { font-size: var(--text-xs); color: var(--text-muted); display: flex; gap: var(--space-4); margin-bottom: var(--space-6); }

/* Knowledge-base query loop reuses .blog-card; this is the taller image variant */
.kb-section { background: var(--bg); padding: 0 0 var(--space-24); }
.kb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.kb-grid .blog-card-img { height: 200px; }

/* Pagination (core query pagination, restyled) */
.kb-section .wp-block-query-pagination { justify-content: center; align-items: center; gap: var(--space-2); padding-top: var(--space-12); }
.kb-section .wp-block-query-pagination-numbers { display: flex; align-items: center; gap: var(--space-2); }
.kb-section .wp-block-query-pagination .page-numbers,
.kb-section .wp-block-query-pagination a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1.5px solid rgba(44, 95, 99, 0.15);
  transition: var(--transition-base);
}
.kb-section .wp-block-query-pagination a:hover,
.kb-section .wp-block-query-pagination .page-numbers.current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── ARTICLE (single post) ───────────────────────────────────── */
.breadcrumb { font-size: var(--text-xs); color: var(--text-muted); margin-bottom: var(--space-8); display: flex; gap: var(--space-2); align-items: center; justify-content: center; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--primary); }
.article-hero { background: var(--bg); padding: var(--space-16) 0 var(--space-10); }
.article-hero-inner { max-width: 740px; margin: 0 auto; text-align: center; }
.article-tag { display: inline-block; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-5); }
.article-title { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.18; color: var(--color-teal-dark); margin-bottom: var(--space-6); }
.article-meta { display: flex; gap: var(--space-3); justify-content: center; align-items: center; flex-wrap: wrap; font-size: var(--text-sm); color: var(--text-muted); }
.article-meta .author { display: flex; gap: var(--space-2); align-items: center; font-weight: 600; color: var(--text); }
.article-meta .author-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.article-cover { max-width: var(--wide-size); margin: 0 auto var(--space-12); padding: 0 var(--space-8); }
.article-cover-img {
  height: 420px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-teal-tint), var(--color-cream-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--text-muted);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.article-cover-img img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-16); max-width: 1080px; margin: 0 auto; padding: 0 var(--space-8) var(--space-24); }

/* Prose — also applied to core/post-content via the .prose wrapper */
.prose { font-size: 1.0625rem; line-height: 1.85; color: var(--text); }
.prose h2 { font-family: var(--font-heading); font-size: var(--text-2xl); font-weight: 700; color: var(--color-teal-dark); margin: var(--space-12) 0 var(--space-4); scroll-margin-top: 120px; }
.prose h3 { font-family: var(--font-heading); font-size: var(--text-xl); font-weight: 600; color: var(--text); margin: var(--space-8) 0 var(--space-3); }
.prose p { margin-bottom: var(--space-5); }
.prose p.lead, .prose .lead { font-size: var(--text-lg); line-height: 1.75; color: var(--text-muted); margin-bottom: var(--space-8); }
.prose ul, .prose ol { margin: 0 0 var(--space-5) var(--space-6); }
.prose ul li, .prose ol li { margin-bottom: var(--space-2); list-style: revert; }
.prose ul li::marker { color: var(--accent); }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(10,90,104,0.3); }
.prose a:hover { text-decoration-color: var(--primary); }
.prose strong { color: var(--color-teal-dark); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  background: var(--color-teal-tint);
  padding: var(--space-6) var(--space-8);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-8) 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-teal-dark);
}
.prose figure { margin: var(--space-8) 0; }
.prose figcaption { font-size: var(--text-xs); color: var(--text-muted); text-align: center; margin-top: var(--space-3); }
.prose img { border-radius: var(--radius-md); }
.prose .callout { background: var(--surface); border: 1px solid rgba(44, 95, 99, 0.12); border-left: 4px solid var(--primary); border-radius: var(--radius-md); padding: var(--space-6); margin: var(--space-8) 0; box-shadow: var(--shadow-sm); }
.prose .callout strong { display: block; color: var(--primary); margin-bottom: var(--space-2); font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; }
.prose .callout p:last-child { margin-bottom: 0; }

/* Core button block inside an article — matches the site's booking button
   (.btn--appointment), so an editor can insert a plain core/button in the
   editor without knowing any theme class names. */
.prose .wp-block-buttons { margin: var(--space-10) 0; }
.prose .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-base);
  background: var(--accent);
  color: var(--color-white);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 10px rgba(239, 120, 72, 0.28);
}
.prose .wp-block-button__link:hover {
  background: var(--color-terra-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(194, 87, 40, 0.35);
}

.sidebar-inner { position: sticky; top: 120px; display: flex; flex-direction: column; gap: var(--space-6); }
.toc { background: var(--surface); border: 1px solid rgba(44, 95, 99, 0.08); border-radius: var(--radius-md); padding: var(--space-6); box-shadow: var(--shadow-sm); }
.toc-title { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-4); }
.toc-list { display: flex; flex-direction: column; gap: var(--space-3); }
.toc-list a { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.5; border-left: 2px solid transparent; padding-left: var(--space-3); transition: var(--transition-base); }
.toc-list a:hover, .toc-list a.active { color: var(--primary); border-left-color: var(--accent); }
.sidebar-cta { background: var(--color-teal-dark); border-radius: var(--radius-lg); padding: var(--space-8); color: #fff; text-align: center; }
.sidebar-cta h3 { font-family: var(--font-heading); font-size: var(--text-xl); margin-bottom: var(--space-3); color: #fff; }
.sidebar-cta p { font-size: var(--text-sm); color: rgba(255,255,255,0.7); margin-bottom: var(--space-6); line-height: 1.6; }
.share { display: flex; gap: var(--space-3); align-items: center; }
.share span { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.share a { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(44, 95, 99, 0.15); display: flex; align-items: center; justify-content: center; transition: var(--transition-base); }
.share a:hover { background: var(--primary); border-color: var(--primary); }
.share svg { width: 15px; height: 15px; stroke: var(--text-muted); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.share a:hover svg { stroke: #fff; }
.share-status { text-transform: none; letter-spacing: 0; color: var(--primary); font-weight: 600; }
.share-status:empty { display: none; }
.related-section { background: var(--bg); padding: var(--space-20) 0; border-top: 1px solid rgba(44, 95, 99, 0.08); }

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer { background: var(--color-teal-dark); color: rgba(255,255,255,0.8); padding: var(--space-20) 0 var(--space-8); position: relative; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: var(--space-12); margin-bottom: var(--space-16); }
.footer-logo { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.footer-logo img { height: 72px; width: auto; }
.footer-wordmark { display: flex; flex-direction: column; line-height: 1.02; padding-left: var(--space-3); margin-left: var(--space-3); border-left: 1px solid rgba(255,255,255,0.18); }
.footer-wordmark-1 { font-family: var(--font-heading); font-weight: 600; font-size: 1.25rem; color: #FBFAF6; letter-spacing: -0.005em; }
.footer-wordmark-2 { font-family: var(--font-heading); font-weight: 600; font-style: italic; font-size: 1.25rem; color: var(--color-terracotta); letter-spacing: -0.005em; }
.footer-tagline { font-family: var(--font-heading); font-style: italic; font-size: var(--text-sm); color: rgba(255,255,255,0.65); line-height: 1.6; margin-bottom: var(--space-6); max-width: 34ch; }
.footer-social { display: flex; gap: var(--space-3); }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: var(--transition-base); border: 1px solid rgba(255,255,255,0.12); }
.footer-social a:hover { background: rgba(212, 140, 112, 0.3); border-color: rgba(212, 140, 112, 0.5); }
.footer-social svg { width: 16px; height: 16px; stroke: rgba(255,255,255,0.8); fill: none; stroke-width: 1.8; stroke-linecap: round; }
.footer-col-title { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: var(--space-5); }
.footer-links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-links a,
.footer-links span { font-size: var(--text-sm); color: rgba(255,255,255,0.7); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--color-white); }
.footer-contact-item { font-size: var(--text-sm); color: rgba(255,255,255,0.7); margin-bottom: var(--space-3); line-height: 1.5; }
.footer-contact-item strong { color: rgba(255,255,255,0.9); display: block; font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--space-1); }
.footer-bottom { padding-top: var(--space-8); border-top: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.footer-copy { font-size: var(--text-xs); color: rgba(255,255,255,0.45); }
.footer-bottom-links { display: flex; gap: var(--space-6); }
.footer-bottom-links a { font-size: var(--text-xs); color: rgba(255,255,255,0.45); transition: color 0.2s ease; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.75); }
.zl-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.8);
  transition: var(--transition-base);
}
.zl-badge:hover { background: rgba(255,255,255,0.15); color: var(--color-white); }

/* ── PAPER GRAIN OVERLAY ─────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.17  0 0 0 0 0.37  0 0 0 0 0.39  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}
main, section, footer { position: relative; z-index: 2; }
.footer { isolation: isolate; }
.footer::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: var(--color-teal-dark); mix-blend-mode: normal; z-index: -1; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero { padding-top: var(--space-8); }
  .hero-inner { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero-photo-col { order: -1; align-self: center; justify-content: center; }
  .hero-photo-wrap img, .about-photo-wrap img { height: 400px; }
  .hero-content { padding-bottom: var(--space-12); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
  .about-photo-col { order: -1; }
  .wizyta-inner { grid-template-columns: 1fr; }
  .wizyta-cta-box { position: static; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-hero-inner { grid-template-columns: 1fr; }
  .bio-inner { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .booking-grid { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .hours-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-inner { grid-template-columns: 1fr; }
  .featured-img { height: 260px; }
}
@media (max-width: 960px) {
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; gap: var(--space-10); }
  .sidebar-inner { position: static; }
  .article-cover-img { height: 300px; }
}
@media (max-width: 768px) {
  .cards-grid { grid-template-columns: 1fr; }
  .blog-grid, .kb-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-title { font-size: 2rem; }
}
@media (max-width: 540px) {
  .hero-photo-wrap img, .about-photo-wrap img { height: 320px; }
  .hero-photo-caption strong, .hero-photo-caption span,
  .about-photo-caption strong, .about-photo-caption span { font-size: var(--text-lg); }
  .cert-grid { grid-template-columns: 1fr; }
  .hours-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
}
