/* =========================================================
   Centrum Psychoterapii Łobzów – styl strony
   Układ i kolorystyka inspirowane szablonem „Talking Minds”.
   Ten sam plik ładuje edytor w panelu (klasa .prose), więc
   nagłówki, listy i ramki w edytorze wyglądają jak na stronie.
   ========================================================= */

:root {
  --primary: #26ABA3;
  --primary-dark: #1C8C85;
  --primary-hover: #00CFC3;
  --secondary: #F7AB1E;
  --secondary-dark: #D98E06;
  --dark: #293039;
  --text: #51565D;
  --muted: #7A8088;
  --mint: #F4FCFA;
  --mint-2: #DDF3F0;
  --mint-block: #BFE6E1;
  --cream: #FEF3DE;
  --white: #FFFFFF;
  --border: #E3E8EC;
  --radius: 24px;
  --radius-sm: 10px;
  --radius-shape: 80px 0 80px 0;
  --radius-shape-alt: 0 80px 0 80px;
  --shadow: 0 1px 2px 1px rgba(43, 171, 160, .14);
  --shadow-lg: 0 20px 40px rgba(43, 171, 160, .10);
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1240px;
  --ease: cubic-bezier(.25, 1, .5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4, h5, h6 { color: var(--dark); font-weight: 800; line-height: 1.22; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--dark); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.icon { width: 1em; height: 1em; flex: none; }
.center { text-align: center; }
.mt-lg { margin-top: 40px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 860px; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border-radius: 50px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2; cursor: pointer;
  transition: all .4s var(--ease); font-family: inherit; text-align: center;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px rgba(38, 171, 163, .28); }
.btn-primary:hover { background: var(--dark); color: #fff; }
.btn-outline { border-color: var(--secondary); color: var(--secondary-dark); background: transparent; }
.btn-outline:hover { background: var(--secondary); color: #fff; }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-light:hover { background: var(--secondary); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--primary-dark); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin: 28px 0 0; }
.btn-row.center { justify-content: center; }

.round-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; flex: none;
}
.round-ico .icon { width: 20px; height: 20px; }
.round-ico.sm { width: 26px; height: 26px; }
.round-ico.sm .icon { width: 14px; height: 14px; }
.more-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--primary); }
.more-link:hover .round-ico { background: var(--secondary); }
.round-ico { transition: background .3s var(--ease); }

.eyebrow {
  display: inline-block; font-weight: 700; color: var(--primary); text-transform: uppercase;
  letter-spacing: .08em; font-size: .82rem; margin-bottom: 14px;
}
.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list.center { justify-content: center; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: 50px;
  background: var(--mint-2); color: var(--primary-dark); font-weight: 600; font-size: .85rem; line-height: 1.4;
}
a.pill:hover, .pill-active { background: var(--primary); color: #fff; }
.pill small { opacity: .7; }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.site-header.scrolled { box-shadow: 0 8px 30px rgba(41, 48, 57, .07); border-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--primary); flex: none; }
.brand:hover { color: var(--primary); }
.logo-mark { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text span { font-size: .78rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.brand-text strong { font-size: 1.45rem; font-weight: 800; color: var(--primary); }
.main-nav { display: flex; align-items: center; flex: 1; justify-content: flex-end; gap: 24px; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.menu > li { position: relative; }
.menu > li > a {
  display: flex; align-items: center; gap: 4px; padding: 9px 14px; border-radius: 8px;
  color: var(--dark); font-weight: 600; font-size: .96rem; white-space: nowrap;
}
.menu > li > a .chev { width: 14px; height: 14px; }
.menu > li.active > a, .menu > li > a:hover { background: var(--mint-2); color: var(--primary-dark); }
.sub-toggle { display: none; }
.submenu {
  list-style: none; margin: 0; padding: 10px; position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg), 0 2px 8px rgba(0,0,0,.05);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .3s var(--ease);
}
.submenu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.menu > li:hover > .submenu, .menu > li:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: 9px 14px; border-radius: 10px; color: var(--dark); font-weight: 600; font-size: .94rem; }
.submenu a:hover { background: var(--mint); color: var(--primary); }
.header-phone { display: flex; align-items: center; gap: 10px; color: var(--dark); font-weight: 700; white-space: nowrap; }
.header-phone small { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }
.header-phone:hover { color: var(--primary); }
.nav-toggle { display: none; background: var(--mint-2); border: 0; border-radius: 10px; width: 46px; height: 46px; margin-left: auto; color: var(--dark); cursor: pointer; }
.nav-toggle .icon { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 90px; background: radial-gradient(circle at 10% 20%, var(--mint) 0, #fff 45%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.hero-lead { font-size: 1.15rem; max-width: 560px; }
.hero-leaf { position: absolute; left: -90px; top: 10px; color: var(--mint-2); opacity: .7; pointer-events: none; }
.hero-leaf path { stroke: var(--mint-2); }
.hero-leaf .icon { width: 260px; height: 260px; }
.stats { display: flex; flex-wrap: wrap; gap: 36px; margin: 44px 0 0; }
.stats div { min-width: 120px; }
.stats dt { font-size: 2.6rem; font-weight: 800; color: var(--secondary); line-height: 1; padding-bottom: 14px; position: relative; }
.stats dt::after { content: ""; position: absolute; left: 0; bottom: 0; width: 42px; height: 3px; background: var(--mint-block); border-radius: 3px; }
.stats dd { margin: 12px 0 0; font-size: .95rem; line-height: 1.4; max-width: 150px; }
.hero-media { position: relative; padding: 30px 30px 30px 0; }
.hero-media img { position: relative; z-index: 2; width: 100%; aspect-ratio: 4/4.2; object-fit: cover; border-radius: var(--radius-shape-alt); }
.block { position: absolute; z-index: 1; border-radius: 0; }
.hero-media .block-cream { top: 0; left: -24px; width: 75%; height: 70%; background: var(--cream); }
.hero-media .block-mint { right: 0; bottom: 0; width: 70%; height: 60%; background: var(--mint-block); }
.hero-badge {
  position: absolute; z-index: 3; left: -30px; bottom: 60px; display: flex; align-items: center; gap: 12px;
  background: #fff; padding: 14px 20px 14px 14px; border-radius: 18px; box-shadow: var(--shadow-lg), 0 4px 12px rgba(0,0,0,.06);
}
.hero-badge strong { display: block; color: var(--dark); line-height: 1.2; }
.hero-badge small { color: var(--muted); }

/* ---------- Sekcje ---------- */
.section { padding: 100px 0; position: relative; }
.section-tight { padding: 70px 0 90px; }
.bg-mint { background: var(--mint); }
.bg-cream { background: linear-gradient(180deg, #fff 0, var(--cream) 100%); }
.section-head { max-width: 700px; margin-bottom: 50px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.05rem; }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; flex-wrap: wrap; }
.row-head > div { max-width: 640px; }
.h-big { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.accent { color: var(--primary); }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.cards-grid.cards-2 { grid-template-columns: repeat(2, 1fr); }
/* samotna karta w ostatnim rzędzie siatki 2-kolumnowej – na środku */
.cards-grid.cards-2 > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 15px); }
.service-card {
  background: #fff; border-radius: var(--radius); padding: 40px 34px 34px; box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease); display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-ico { color: var(--primary); margin-bottom: 22px; }
.service-ico .icon { width: 64px; height: 64px; }
.service-card h3 a { color: var(--dark); }
.service-card h3 a:hover { color: var(--primary); }
.service-card p { flex: 1; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split-top { align-items: start; }
.split-rev > :first-child { order: 0; }
.media-framed { position: relative; padding: 0 30px 30px 0; margin: 0; }
.media-framed img { position: relative; z-index: 2; width: 100%; object-fit: cover; border-radius: var(--radius-shape-alt); aspect-ratio: 3/2.3; }
.media-framed .block-mint { right: 0; bottom: 0; width: 80%; height: 80%; background: var(--mint-block); }
.check-grid { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.check-grid li, .check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--dark); font-weight: 600; line-height: 1.45; }
.check-grid .icon, .check-list .icon { color: var(--secondary); width: 22px; height: 22px; margin-top: 1px; }
.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.check-list li { font-weight: 400; color: var(--text); }

.quote-card { background: #fff; border-radius: var(--radius-shape); padding: 56px 50px; box-shadow: var(--shadow-lg); position: relative; }
.quote-ico { width: 54px; height: 54px; color: var(--secondary); margin-bottom: 18px; }
.quote-card blockquote { margin: 0 0 28px; }
.quote-card blockquote p { font-size: 1.35rem; line-height: 1.55; color: var(--dark); font-weight: 600; font-style: italic; margin: 0; }

.consult { padding: 0 0 100px; background: linear-gradient(180deg, var(--cream) 0, var(--cream) 50%, #fff 50%); }
.consult-box { background: var(--primary); border-radius: var(--radius-shape); padding: 64px 60px; color: #fff; position: relative; overflow: hidden; }
.consult-box::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255,255,255,.08); }
.consult-box h2, .consult-box h3 { color: #fff; }
.consult-box .section-head { margin-bottom: 36px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; z-index: 1; }
.steps li { background: rgba(255,255,255,.1); border-radius: 18px; padding: 26px 22px; }
.steps h3 { font-size: 1.1rem; margin: 14px 0 8px; }
.steps p { margin: 0; font-size: .95rem; line-height: 1.55; color: rgba(255,255,255,.9); }
.step-no { display: inline-flex; width: 42px; height: 42px; border-radius: 50%; background: var(--secondary); color: #fff; font-weight: 800; align-items: center; justify-content: center; }

/* ---------- Zespół ---------- */
/* Flex z wyśrodkowaniem: niepełny ostatni rząd jest wyśrodkowany zamiast przyklejony do lewej */
.team-grid { --cols: 5; --gap: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.team-grid > * { width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
.team-grid-full { --cols: 3; --gap: 30px; }
.team-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-photo { display: block; background: var(--mint-2); aspect-ratio: 1/1; overflow: hidden; border-radius: 0 0 60px 0; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.team-body h3 { font-size: 1.15rem; margin-bottom: 4px; }
.team-body h3 a { color: var(--dark); }
.team-body h3 a:hover { color: var(--primary); }
.team-role { color: var(--primary); font-weight: 600; font-size: .92rem; margin-bottom: 12px; line-height: 1.45; }
.team-bio { font-size: .95rem; line-height: 1.6; }
.team-bio p { margin-bottom: .7em; }
.team-contact { list-style: none; padding: 0; margin: 0 0 16px; font-size: .84rem; display: grid; gap: 6px; flex: 1; align-content: start; }
.team-contact li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; word-break: break-word; }
.team-contact .icon { color: var(--secondary); width: 15px; height: 15px; transform: translateY(2px); }
.team-contact small { color: var(--muted); width: 100%; padding-left: 23px; }

.person-grid { display: grid; grid-template-columns: 340px 1fr; gap: 60px; align-items: start; }
.person-card { position: sticky; top: 110px; background: var(--mint); border-radius: var(--radius); padding: 30px; }
.person-photo { position: relative; padding: 0 18px 18px 0; margin-bottom: 22px; }
.person-photo img { position: relative; z-index: 2; width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius-shape-alt); }
.person-photo .block-mint { right: 0; bottom: 0; width: 80%; height: 80%; background: var(--mint-block); }
.person-name { font-size: 1.35rem; margin-bottom: 4px; }
.person-tags { margin-top: 22px; }
.small-title { font-weight: 700; color: var(--dark); font-size: .9rem; margin-bottom: 10px; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Kontakt ---------- */
.contact-card { background: var(--mint); border-radius: 0 0 80px 0; padding: 44px 40px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list strong { display: block; color: var(--dark); }
.contact-list small { display: block; color: var(--muted); }
.contact-list span { line-height: 1.5; word-break: break-word; }
.contact-list.compact { gap: 14px; margin-bottom: 22px; }
.contact-list.compact .round-ico { width: 38px; height: 38px; }
.people-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.people-list li { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 14px; }
.people-list img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.people-name { font-weight: 700; color: var(--dark); display: block; }
.people-data { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .9rem; }
.people-data a, .people-data span { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.people-data a:hover { color: var(--primary); }
.people-data .icon { color: var(--secondary); }
.map-box { border-radius: var(--radius-shape-alt); overflow: hidden; min-height: 420px; background: var(--mint-2); position: relative; }
.map-box iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.map-facade {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px;
  background-color: var(--mint-2);
  background-image: linear-gradient(rgba(38,171,163,.08) 2px, transparent 2px), linear-gradient(90deg, rgba(38,171,163,.08) 2px, transparent 2px);
  background-size: 44px 44px;
}
.map-pin { width: 64px; height: 64px; border-radius: 50%; background: var(--secondary); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; box-shadow: 0 0 0 12px rgba(247,171,30,.2); }
.map-pin .icon { width: 30px; height: 30px; }
.map-facade p { color: var(--dark); }
.map-note { font-size: .82rem; color: var(--muted) !important; max-width: 340px; margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 0; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 1.1rem; margin: 0; transition: color .3s; }
.faq-item[open] summary h3, .faq-item summary:hover h3 { color: var(--primary); }
.faq-sign { width: 18px; height: 18px; position: relative; flex: none; }
.faq-sign::before, .faq-sign::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; background: var(--dark); transition: transform .3s; }
.faq-sign::after { transform: rotate(90deg); }
.faq-item[open] .faq-sign::after { transform: rotate(0); }
.faq-item[open] .faq-sign::before, .faq-item[open] .faq-sign::after { background: var(--primary); }
.faq-a { padding: 0 0 20px; }
.faq-a p:last-child { margin-bottom: 0; }
/* Kolaż: dwie równe kolumny, prawa przesunięta w dół – stałe odstępy, nic nie nachodzi na siebie */
.collage { --shift: 48px; position: sticky; top: 120px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 30px 30px calc(30px + var(--shift)); align-self: start; }
.collage .block-cream { inset: 0 20% 16% 0; background: var(--cream); border-radius: 0 0 0 80px; }
.collage img { position: relative; z-index: 2; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }
.collage .c2, .collage .c4 { transform: translateY(var(--shift)); }
.collage .c1 { border-radius: 60px 0 0 0; }
.collage .c2 { border-radius: 0 60px 0 0; }
.collage .c3 { border-radius: 0 0 0 60px; }
.collage .c4 { border-radius: 0 0 60px 0; }

/* ---------- Blog ---------- */
.post-card { position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-card-img { display: block; aspect-ratio: 3/2; overflow: hidden; background: var(--mint-2); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.pill-overlay { position: absolute; left: 20px; top: 20px; background: #fff; color: var(--primary-dark); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.post-card-body { padding: 22px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card-body > p:not(.post-meta) { flex: 1; font-size: .97rem; }
.post-card-title { font-size: 1.2rem; line-height: 1.35; }
.post-card-title a { color: var(--dark); }
.post-card-title a:hover { color: var(--primary); }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.post-meta span::before { content: "|"; margin-right: 14px; color: var(--border); }
.post-featured { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--mint); border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; }
.post-featured-img { display: block; min-height: 100%; }
.post-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.post-featured-body { padding: 36px 36px 40px; }
.post-featured-body h2 { font-size: 1.6rem; margin-top: 16px; }
.post-featured-body h2 a { color: var(--dark); }
.post-featured-body h2 a:hover { color: var(--primary); }
.pagination { display: flex; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; width: 46px; height: 46px; border-radius: 50%; align-items: center; justify-content: center; font-weight: 700; background: var(--mint); color: var(--dark); }
.pagination span[aria-current] { background: var(--primary); color: #fff; }
.search-form { display: flex; background: #fff; border: 1px solid var(--border); border-radius: 50px; overflow: hidden; }
.search-form input { flex: 1; border: 0; padding: 12px 18px; font: inherit; font-size: .95rem; min-width: 0; background: transparent; }
.search-form input:focus { outline: none; }
.search-form:focus-within { border-color: var(--primary); }
.search-form button { border: 0; background: var(--primary); color: #fff; width: 50px; cursor: pointer; }
.search-info, .empty { background: var(--mint); padding: 16px 20px; border-radius: 14px; }
.rss-link { font-size: .9rem; text-align: center; }

.post-hero { padding-bottom: 60px; }
.post-tags-top { margin-bottom: 18px; }
.post-byline { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .92rem; margin-top: 20px; }
.post-byline > span { display: inline-flex; align-items: center; gap: 6px; }
.post-byline .icon { color: var(--secondary); }
.post-cover { margin: -10px 0 40px; }
.post-cover img { aspect-ratio: 16/9; }
.post-content { font-size: 1.08rem; }
.post-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; margin: 40px 0; padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.post-tags .small-title { margin: 0; }
.share { display: flex; align-items: center; gap: 10px; }
.share .small-title { margin: 0; }
.share a, .copy-link { display: inline-flex; align-items: center; justify-content: center; height: 38px; min-width: 38px; border-radius: 50px; background: var(--mint-2); color: var(--primary-dark); border: 0; cursor: pointer; font: inherit; font-size: .85rem; font-weight: 600; padding: 0 12px; }
.share a:hover, .copy-link:hover { background: var(--primary); color: #fff; }
.author-box { display: flex; gap: 22px; align-items: flex-start; background: var(--mint); border-radius: var(--radius-shape); padding: 30px; margin-bottom: 30px; }
.author-box img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box h2 { font-size: 1.25rem; margin-bottom: 6px; }
.author-box .small-title { margin-bottom: 4px; color: var(--primary); }
.disclaimer { font-size: .88rem; color: var(--muted); background: var(--cream); border-radius: 14px; padding: 16px 20px; }

/* ---------- Podstrony ---------- */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--mint) 0, #fff 70%); padding: 60px 0 70px; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 900px; margin-bottom: 14px; }
.page-lead { font-size: 1.15rem; max-width: 760px; margin: 0; }
.hero-deco { position: absolute; z-index: 0; }
.deco-1 { right: 6%; top: 30px; width: 180px; height: 180px; background: var(--cream); border-radius: var(--radius-shape); }
.deco-2 { right: 2%; top: 110px; width: 120px; height: 120px; background: var(--mint-block); border-radius: var(--radius-shape-alt); opacity: .8; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs [aria-current] { color: var(--dark); font-weight: 600; }
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 60px; align-items: start; }
.sidebar { display: grid; gap: 24px; position: sticky; top: 110px; }
.side-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.side-card h2 { font-size: 1.15rem; margin-bottom: 14px; }
.side-cta { background: var(--mint); border: 0; border-radius: var(--radius-shape); }
.side-small { display: flex; gap: 8px; align-items: center; font-size: .85rem; margin: 12px 0 0; }
.side-small .icon { color: var(--secondary); }
.side-links, .side-posts { list-style: none; padding: 0; margin: 0; }
.side-links a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); color: var(--dark); font-weight: 600; }
.side-links li:last-child a { border-bottom: 0; }
.side-links a:hover { color: var(--primary); }
.side-links .icon { color: var(--primary); width: 14px; height: 14px; }
.side-posts li { padding: 10px 0; border-bottom: 1px dashed var(--border); }
.side-posts li:last-child { border-bottom: 0; }
.side-posts a { color: var(--dark); font-weight: 600; display: block; line-height: 1.4; }
.side-posts a:hover { color: var(--primary); }
.side-posts time, .footer-posts time { font-size: .8rem; color: var(--muted); }
.toc { background: var(--mint); border-left: 4px solid var(--primary); border-radius: 0 18px 18px 0; padding: 20px 26px; margin-bottom: 36px; }
.toc-title { font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 4px 0; }
.page-faq { margin-top: 50px; }
.updated { font-size: .85rem; color: var(--muted); margin-top: 40px; }
.intro-prose { max-width: 860px; margin-bottom: 50px; }
.error-page { padding: 120px 0; }
.error-code { font-size: 7rem; font-weight: 800; color: var(--mint-block); line-height: 1; margin-bottom: 10px; }

/* ---------- Treść redakcyjna (.prose) – także w edytorze ---------- */
.prose { color: var(--text); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; color: var(--dark); }
.prose h4 { margin-top: 1.2em; }
.prose a { text-decoration: underline; text-decoration-color: rgba(38,171,163,.4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 30px; }
.prose ul > li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 0 4px rgba(247,171,30,.18); }
.prose ol > li::marker { color: var(--primary); font-weight: 800; }
.prose blockquote { margin: 1.6em 0; padding: 26px 30px; background: var(--mint); border-left: 5px solid var(--primary); border-radius: 0 24px 24px 0; font-size: 1.12rem; color: var(--dark); font-style: italic; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { border-radius: 18px; margin: 1.4em 0; }
.prose img.img-left { float: left; margin: .4em 24px 12px 0; max-width: 45%; }
.prose img.img-right { float: right; margin: .4em 0 12px 24px; max-width: 45%; }
.prose img.img-round { border-radius: 50%; }
.prose img.img-shape { border-radius: var(--radius-shape-alt); }
.prose figure { margin: 1.6em 0; }
.prose figure img { margin: 0; }
.prose figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; font-style: italic; }
.prose hr { border: 0; height: 1px; background: var(--border); margin: 2.4em 0; clear: both; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .97rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; vertical-align: top; }
.prose th { background: var(--mint); color: var(--dark); }
.prose code { background: var(--mint-2); color: var(--primary-dark); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose pre { background: #2d2d2d; color: #f8f8f2; border-radius: 16px; padding: 20px 22px; overflow-x: auto; font-size: .9rem; line-height: 1.6; margin: 1.4em 0; }
.prose pre code { background: none; color: inherit; padding: 0; }
.prose mark, .prose .mark { background: linear-gradient(transparent 55%, rgba(247,171,30,.4) 55%); color: inherit; padding: 0 2px; }
.prose::after { content: ""; display: table; clear: both; }
/* bloki ze stylów edytora */
.prose .lead, .lead { font-size: 1.22rem; line-height: 1.6; color: var(--dark); }
.prose .text-primary, .text-primary { color: var(--primary); }
.prose .text-secondary, .text-secondary { color: var(--secondary-dark); }
.prose .text-muted { color: var(--muted); }
.prose .box, .prose .box-info, .prose .box-warm, .prose .box-dark { padding: 26px 30px; border-radius: var(--radius); margin: 1.6em 0; }
.prose .box { background: var(--mint); }
.prose .box-info { background: var(--mint); border: 2px dashed var(--mint-block); }
.prose .box-warm { background: var(--cream); border-radius: var(--radius-shape); }
.prose .box-dark { background: var(--primary); color: #fff; border-radius: var(--radius-shape); }
.prose .box-dark h2, .prose .box-dark h3, .prose .box-dark a { color: #fff; }
.prose .box > :last-child, .prose .box-info > :last-child, .prose .box-warm > :last-child, .prose .box-dark > :last-child { margin-bottom: 0; }
.prose a.btn { text-decoration: none; }
.prose a.btn-primary, .prose a.btn-primary:hover { color: #fff; }
.prose .columns-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.prose ul.checks > li::before { content: "✓"; background: none; box-shadow: none; color: var(--primary); font-weight: 800; top: 0; left: 2px; width: auto; height: auto; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 1.4em 0 2em; }
.gallery a { display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 4/3; background: var(--mint-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; transition: transform .6s var(--ease); }
.gallery a:hover img { transform: scale(1.05); }

/* ---------- CTA i stopka ---------- */
.cta-band { background: var(--mint); padding: 70px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; background: var(--primary); border-radius: var(--radius-shape); padding: 50px 56px; color: #fff; }
.cta-inner h2 { color: #fff; margin-bottom: 8px; }
.cta-inner p { margin: 0; color: rgba(255,255,255,.9); max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.site-footer { background: var(--primary); color: rgba(255,255,255,.88); padding: 80px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 50px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--cream); }
.brand-light, .brand-light:hover, .brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text span { color: rgba(255,255,255,.8); }
.footer-about p { margin: 20px 0; }
.footer-title { color: #fff; font-size: 1.1rem; margin-bottom: 18px; }
.footer-links, .footer-posts { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a::before { content: "•"; color: var(--secondary); margin-right: 8px; }
.footer-posts li { line-height: 1.4; }
.footer-posts time { display: block; color: rgba(255,255,255,.7); }
.footer-contact { font-style: normal; display: grid; gap: 10px; }
.footer-contact p { display: flex; gap: 10px; margin: 0; line-height: 1.5; }
.footer-contact .icon { color: var(--secondary); margin-top: 4px; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: var(--secondary); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background .3s; }
.social a:hover { background: var(--dark); color: #fff; }
.social .icon { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255,255,255,.2); margin-top: 60px; padding-top: 22px; padding-bottom: 22px; font-size: .88rem; }
.footer-bottom p { margin: 0; }
/* ---------- Tabele w treści i okno cookies ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.4em 0; }
.table-wrap > table { margin: 0; min-width: 560px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--secondary); }
.consent {
  position: fixed; z-index: 200; left: 24px; bottom: 24px; width: min(560px, calc(100% - 48px));
  background: #fff; border-radius: 28px 0 28px 0; box-shadow: 0 24px 60px rgba(41, 48, 57, .22), 0 0 0 1px var(--border);
  animation: consent-in .45s var(--ease) both;
}
.consent[hidden] { display: none; }
@keyframes consent-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.consent-inner { padding: 26px 28px 24px; margin: 0; }
.consent h2 { font-size: 1.2rem; margin: 0 0 8px; }
.consent p { font-size: .93rem; line-height: 1.6; margin: 0 0 18px; }
.consent p a { color: var(--primary); font-weight: 600; }
.consent-options { border: 0; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.consent-options[hidden] { display: none; }
.consent-opt { display: flex; gap: 12px; align-items: flex-start; background: var(--mint); border-radius: 14px; padding: 12px 14px; cursor: pointer; }
.consent-opt input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.consent-opt strong { display: block; color: var(--dark); font-size: .95rem; }
.consent-opt small { display: block; font-size: .84rem; line-height: 1.45; color: var(--text); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-actions .btn { padding: 11px 18px; font-size: .9rem; box-shadow: none; flex: 1 1 auto; justify-content: center; }
.consent-actions .btn[hidden] { display: none; }
.consent-open .to-top { opacity: 0; visibility: hidden; }
@media (max-width: 560px) {
  .consent { left: 12px; right: 12px; bottom: 12px; width: auto; border-radius: 22px 0 22px 0; max-height: calc(100vh - 24px); overflow-y: auto; }
  .consent-inner { padding: 20px 18px 18px; }
  .consent-actions .btn { flex: 1 1 100%; }
}

.to-top { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%; background: var(--secondary); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(247,171,30,.4); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease); z-index: 90; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: #fff; background: var(--dark); }
.to-top .icon { width: 22px; height: 22px; }

/* Lightbox galerii */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(20, 26, 32, .92); display: flex; align-items: center; justify-content: center; padding: 30px; }
.lightbox img { max-height: 88vh; max-width: 92vw; border-radius: 14px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; font-size: 26px; line-height: 1; }
.lightbox button:hover { background: var(--primary); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; }
.lb-next { right: 20px; top: 50%; }

/* Animacje wejścia (wyłączone przy prefers-reduced-motion) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* ---------- Responsywność ---------- */
@media (max-width: 1180px) {
  .header-phone small { display: none; }
  .menu > li > a { padding: 9px 10px; font-size: .92rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .team-grid { --cols: 4; }
}
@media (max-width: 1040px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    position: fixed; inset: 84px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 20px 24px 40px; overflow-y: auto; transform: translateX(100%); transition: transform .4s var(--ease); gap: 20px;
  }
  .nav-open .main-nav { transform: none; }
  .nav-open { overflow: hidden; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .menu > li { border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; }
  .menu > li > a { flex: 1; padding: 14px 4px; font-size: 1.05rem; background: none !important; }
  .menu > li.active > a { color: var(--primary); }
  .menu > li > a .chev { display: none; }
  .sub-toggle { display: inline-flex; align-items: center; justify-content: center; background: var(--mint-2); border: 0; border-radius: 8px; width: 38px; height: 38px; color: var(--dark); cursor: pointer; }
  .sub-toggle .icon { width: 18px; height: 18px; transition: transform .3s; }
  .sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; width: 100%; padding: 0 0 10px 10px; display: none; min-width: 0; }
  .submenu.open { display: block; }
  .header-phone { justify-content: center; background: var(--mint); padding: 14px; border-radius: 16px; }
  .hero-grid, .split, .person-grid, .with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 50px; }
  .hero-text { text-align: center; }
  .hero-text .eyebrow, .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-text .btn-row, .stats { justify-content: center; }
  .stats dt::after { left: 50%; transform: translateX(-50%); }
  .stats dd { margin-left: auto; margin-right: auto; }
  .hero-media { width: calc(100% - 24px); max-width: 600px; margin: 0 auto; }
  .media-framed { width: 100%; max-width: 720px; margin: 0 auto; }
  .split > .quote-card { width: 100%; max-width: 720px; margin: 0 auto; }
  .sidebar, .person-card { position: static; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 15px); }
  .post-featured { grid-template-columns: 1fr; }
  .post-featured-img img { aspect-ratio: 16/9; }
  .section { padding: 80px 0; }
  .team-grid { --cols: 3; }
  .team-grid-full { --cols: 2; }
  .person-card { max-width: 520px; width: 100%; margin: 0 auto; }
  .with-sidebar > .sidebar { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
  /* kolaż pod FAQ: cztery zdjęcia w jednym rzędzie na całą szerokość */
  .collage { --shift: 36px; position: relative; top: auto; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 24px 24px calc(24px + var(--shift)); }
  .collage .block-cream { inset: 0 8% 22% 0; }
  .collage img { aspect-ratio: 3/4; border-radius: 40px 0 40px 0 !important; }
}
@media (max-width: 1040px) and (min-width: 701px) {
  .contact-section .split { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .header-inner { min-height: 72px; }
  .main-nav { inset: 72px 0 0 0; }
  .logo-mark { width: 40px; height: 40px; }
  .brand-text strong { font-size: 1.25rem; }
  .hero { padding: 40px 0 60px; }
  .hero-media { margin-left: 16px; padding: 20px 20px 20px 0; }
  .hero-badge { left: -10px; bottom: 30px; padding: 10px 14px 10px 10px; }
  .stats { gap: 22px; }
  .stats div { min-width: 90px; }
  .stats dt { font-size: 2rem; }
  .cards-grid, .cards-grid.cards-2, .steps, .check-grid, .footer-grid, .prose .columns-2 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .section-tight { padding: 44px 0 64px; }
  .consult-box, .cta-inner { padding: 40px 24px; border-radius: 50px 0 50px 0; }
  .quote-card { padding: 40px 28px; border-radius: 50px 0 50px 0; }
  .contact-card { padding: 32px 22px; }
  .page-hero { padding: 40px 0 50px; }
  .deco-1, .deco-2 { opacity: .5; }
  .deco-1 { width: 110px; height: 110px; right: -20px; }
  .deco-2 { display: none; }
  .prose img.img-left, .prose img.img-right { float: none; max-width: 100%; margin: 1.2em 0; }
  .author-box { flex-direction: column; }
  .cards-grid > :last-child:nth-child(odd), .cards-grid.cards-2 > :last-child:nth-child(odd) { grid-column: auto; width: auto; justify-self: stretch; }
  .team-grid { --cols: 2; --gap: 16px; }
  .team-grid-full { --cols: 1; }
  .team-grid-full > * { max-width: 520px; }
  .collage { --shift: 28px; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 16px calc(16px + var(--shift)); }
  .collage img { border-radius: 30px 0 30px 0 !important; }
  .hero-media { width: calc(100% - 16px); }
  .team-body { padding: 18px 16px 20px; }
  .post-featured-body { padding: 26px 22px 30px; }
  .footer-grid { gap: 36px; }
  .people-list li { align-items: flex-start; }
  .people-list img { width: 52px; height: 52px; }
}
@media (max-width: 520px) {
  /* zespół na telefonie: poziome karty – zdjęcie obok danych */
  .team-grid:not(.team-grid-full) { --cols: 1; }
  .team-grid:not(.team-grid-full) .team-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
  .team-grid:not(.team-grid-full) .team-photo { aspect-ratio: auto; height: 100%; min-height: 150px; border-radius: 0 0 40px 0; }
  .team-grid:not(.team-grid-full) .team-body { padding: 16px 16px 18px; }
  .team-grid:not(.team-grid-full) .team-body h3 { font-size: 1.05rem; }
  .team-grid:not(.team-grid-full) .team-role { margin-bottom: 8px; font-size: .86rem; }
}
