/* ==========================================================================
   Gestalt Dialog — Małgorzata Kaczarewska
   System wizualny: brąz + złoto z papeterii, szałwia z gabinetu,
   Taviraj (logo) w nagłówkach, Manrope w tekście.
   ========================================================================== */

:root {
  /* Kolory marki (papeteria A4) */
  --brown: #683C11;
  --brown-deep: #4A2A10;
  --brown-ink: #2E2015;
  --brown-pattern: #5E3B28;
  --gold: #CA9E67;
  --gold-deep: #94693A;      /* złoto do tekstu na jasnym tle (kontrast AA) */
  --gold-soft: #E9D7BC;

  /* Tła */
  --paper: #FBF8F3;
  --cream: #F4ECE0;
  --sand: #EADFCF;

  /* Akcent z gabinetu */
  --sage: #A7B59C;
  --sage-soft: #E3E8DC;
  --sage-deep: #56684C;

  --ink: #2E2015;
  --ink-soft: #5D4D40;
  --line: rgba(104, 60, 17, .16);

  --serif: "Taviraj", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --narrow: 720px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(80px, 11vw, 150px);
  --radius: 4px;
  --radius-img: 20px;       /* zdjęcia: portrety, galerie, okładki wpisów */
  --header-h: 100px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(17px, 1.05vw + 11px, 19px);
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--brown); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 16px; }

/* ---------- Typografia ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  color: var(--brown-deep);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 .55em;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.9rem); }
h2 { font-size: clamp(2.05rem, 3.6vw, 3.3rem); }
h3 { font-size: clamp(1.45rem, 2vw, 1.85rem); font-weight: 400; line-height: 1.25; }
h4 { font-size: 1.2rem; font-weight: 500; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--gold-deep); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 1.4em;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.eyebrow--plain::before { display: none; }

.lead { font-size: clamp(1.2rem, 1.5vw, 1.4rem); line-height: 1.6; color: var(--ink); font-weight: 400; }
.muted { color: var(--ink-soft); }
.small { font-size: .88rem; }

.quote {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1.35;
  color: var(--brown-deep);
  margin: 0;
}

.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h2 { font-size: clamp(1.7rem, 2.6vw, 2.25rem); margin-top: 1.8em; margin-bottom: .3em; }
.prose h3 { margin-top: 1.6em; margin-bottom: .2em; }
.prose blockquote {
  margin: 1.8em 0;
  padding: .2em 0 .2em 1.4em;
  border-left: 2px solid var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--brown-deep);
}
.prose ul { padding-left: 0; list-style: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--cream { background: var(--cream); }
.section--sage { background: var(--sage-soft); }
.section--paper { background: var(--paper); }

.grid-2 { display: grid; gap: clamp(40px, 7vw, 110px); grid-template-columns: minmax(0, 1fr); align-items: center; }
.grid-2 > * { min-width: 0; }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-2--wide-left { grid-template-columns: 1.15fr .85fr; }
  .grid-2--wide-right { grid-template-columns: .85fr 1.15fr; }
  .grid-2--top { align-items: start; }
}

.stack > * + * { margin-top: 1.2em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; margin-top: 2.2em; }

/* ---------- Przyciski ---------- */
.btn {
  --btn-bg: var(--brown);
  --btn-fg: #FFF8EE;
  --btn-bd: var(--brown);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 30px;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover { --btn-bg: var(--brown-deep); --btn-bd: var(--brown-deep); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--brown); --btn-bd: rgba(104, 60, 17, .35); }
.btn--ghost:hover { --btn-bg: var(--brown); --btn-fg: #FFF8EE; --btn-bd: var(--brown); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--brown-ink); --btn-bd: var(--gold); }
.btn--gold:hover { --btn-bg: #DDB57F; --btn-bd: #DDB57F; }
.btn--light { --btn-bg: transparent; --btn-fg: #FFF8EE; --btn-bd: rgba(233, 215, 188, .45); }
.btn--light:hover { --btn-bg: #FFF8EE; --btn-fg: var(--brown-deep); --btn-bd: #FFF8EE; }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: .82rem; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: .9rem; letter-spacing: .04em;
  color: var(--brown); text-decoration: none;
  border-bottom: 1px solid var(--gold); padding-bottom: 3px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Nagłówek ---------- */
/* fixed + stałe miejsce w body: zwijanie nagłówka nie przesuwa treści (inaczej przy sticky strona „drży” przy progu) */
body { padding-top: var(--header-h); }
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(251, 248, 243, .92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 30px -18px rgba(46, 32, 21, .35); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); transition: height .3s var(--ease); }
.site-header.is-scrolled .site-header__inner { height: 72px; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.brand__mark { width: 50px; height: 50px; transition: transform .6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg); }
/* napis niższy od sygnetu – sygnet dominuje, a nad i pod logo jest powietrze */
.brand__wm { height: 50px; width: auto; aspect-ratio: 143.5 / 72.6; transition: height .3s var(--ease); }
.brand__mark { width: 54px; height: 54px; transition: transform .6s var(--ease), width .3s var(--ease), height .3s var(--ease); }
.site-header.is-scrolled .brand__wm { height: 40px; }
.site-header.is-scrolled .brand__mark { width: 44px; height: 44px; }
/* Wariant poziomy w nagłówku: blok napisu ma wysokość koła sygnetu (83% pola sygnetu) */
.brand { --mark: 62px; }
.site-header.is-scrolled .brand { --mark: 50px; }
.brand:not(.brand--stacked) .brand__mark { width: var(--mark); height: var(--mark); }
.brand__wm--line { aspect-ratio: 212.5 / 70.5; height: calc(var(--mark) * .831); }
.site-header.is-scrolled .brand__wm--line { height: calc(var(--mark) * .831); }
.sygnet--light { --wm: #FFF8EE; }
.brand--stacked { flex-direction: column; align-items: center; gap: 14px; width: max-content; }
.brand--stacked .brand__mark { width: 64px; height: 64px; }
.brand--stacked .brand__wm { height: 74px; }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 30px); list-style: none; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 0; background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: .9rem; font-weight: 500; color: var(--ink); text-decoration: none;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after, .nav__item.is-current > .nav__link::after { transform: scaleX(1); }
.nav__link svg { width: 12px; height: 12px; transition: transform .3s; }
.nav__item { position: relative; }
.nav__item--has-sub:hover .nav__link svg, .nav__item--has-sub.is-open .nav__link svg { transform: rotate(180deg); }
.subnav {
  position: absolute; top: 100%; left: -24px; min-width: 260px;
  list-style: none; padding: 12px; margin-top: 8px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 50px -24px rgba(46, 32, 21, .35);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav__item--has-sub:hover .subnav, .nav__item--has-sub:focus-within .subnav, .nav__item--has-sub.is-open .subnav { opacity: 1; visibility: visible; transform: none; }
.subnav a { display: block; padding: 12px 14px; border-radius: 3px; text-decoration: none; font-size: .92rem; }
.subnav a:hover, .subnav a[aria-current="page"] { background: var(--cream); color: var(--brown); }
.subnav small { display: block; color: var(--ink-soft); font-size: .78rem; margin-top: 2px; }

.header-cta { display: none; }
.header-social { display: none; align-items: center; gap: 4px; margin-left: -8px; padding-left: 18px; border-left: 1px solid var(--line); }
.header-social__link {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  color: var(--brown); transition: background .3s, color .3s;
}
.header-social__link svg { width: 17px; height: 17px; }
.header-social__link:hover { background: var(--cream); color: var(--gold-deep); }
.mobile-nav .social-btn { border-color: rgba(233, 215, 188, .3); color: var(--gold-soft); }
.mobile-nav .social-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--brown-ink); }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer;
  font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brown);
}
.menu-toggle__bars { position: relative; width: 18px; height: 10px; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s; }
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars::after { top: 8px; }

@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; padding-block: 12px; }
  .menu-toggle { width: 46px; padding: 0; font-size: 0; gap: 0; }
  .brand { gap: 10px; }
  .brand, .site-header.is-scrolled .brand { --mark: 50px; }
  .brand { gap: 10px; }
}
@media (max-width: 899px) { .hide-mobile { display: none !important; } }

@media (min-width: 1140px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav__link { white-space: nowrap; }
}
@media (min-width: 1280px) {
  .header-social { display: flex; }
  .menu-toggle { display: none; }
}

/* Menu mobilne */
.mobile-nav {
  position: fixed; inset: 0; z-index: 150;
  background: var(--brown-pattern) url("../img/pattern.jpg") center / 900px auto;
  color: #FFF8EE;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  overflow-y: auto;
}
.mobile-nav::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(62, 36, 16, .82), rgba(62, 36, 16, .94)); pointer-events: none; }
.mobile-nav > * { position: relative; }
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; height: var(--header-h); padding-inline: var(--gutter); }
.mobile-nav__close { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(233, 215, 188, .35); background: transparent; color: #FFF8EE; cursor: pointer; display: grid; place-items: center; }
.mobile-nav__close svg { width: 18px; height: 18px; }
.mobile-nav__list { list-style: none; padding: 24px var(--gutter) 0; }
.mobile-nav__list a { display: block; padding: 12px 0; font-family: var(--serif); font-weight: 300; font-size: clamp(1.7rem, 7vw, 2.3rem); line-height: 1.2; text-decoration: none; border-bottom: 1px solid rgba(233, 215, 188, .14); }
.mobile-nav__list a[aria-current="page"] { color: var(--gold); }
.mobile-nav__list .is-sub a { font-size: 1.25rem; padding: 10px 0 10px 22px; color: var(--gold-soft); }
.mobile-nav__foot { margin-top: auto; padding: 32px var(--gutter) 40px; display: grid; gap: 18px; }
.mobile-nav__foot a:not(.btn) { color: var(--gold-soft); text-decoration: none; font-size: .95rem; }
body.menu-open { overflow: hidden; }

/* ---------- Sygnet / ornamenty ---------- */
.sygnet { --sg-a: var(--brown); --sg-b: var(--gold); }
.sygnet--light { --sg-a: #FFF8EE; --sg-b: var(--gold); }
.sygnet--mono-gold { --sg-a: var(--gold); --sg-b: var(--gold); }
.divider { display: flex; align-items: center; gap: 22px; color: var(--gold); margin: 0 auto; max-width: 320px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .6; }
.divider svg { width: 40px; height: 40px; flex-shrink: 0; }
.watermark { position: absolute; pointer-events: none; opacity: .07; width: clamp(280px, 40vw, 560px); height: auto; }

/* Pas z patternem przy lewej krawędzi – motyw z papeterii A4 */
.paper-strip { position: relative; }
.paper-strip::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; pointer-events: none;
  width: clamp(12px, calc((100vw - 1330px) / 2), 120px);
  background: #F4ECE0 url("../img/pattern-light.jpg") left top / 520px auto;
}
.hero.paper-strip::after { bottom: 0; }

/* Ciemne sekcje z patternem */
.section--pattern {
  background: var(--brown-pattern) url("../img/pattern.jpg") center / 1100px auto;
  color: #F7EDE0;
  isolation: isolate;
}
.section--pattern::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(74, 42, 16, .72), rgba(62, 36, 16, .9)); }
.section--pattern h1, .section--pattern h2, .section--pattern h3 { color: #FFF8EE; }
.section--pattern h2 em, .section--pattern h3 em { color: var(--gold); }
.section--pattern .eyebrow { color: var(--gold); }
.section--pattern .muted { color: rgba(247, 237, 224, .72); }

/* ---------- Hero (strona główna) ---------- */
.hero { position: relative; padding-top: clamp(32px, 5vw, 72px); padding-bottom: var(--section); overflow: hidden; }
.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.08fr .92fr; gap: clamp(48px, 6vw, 96px); } }
.hero__kicker { font-family: var(--serif); font-size: clamp(1.15rem, 1.6vw, 1.4rem); color: var(--brown); margin-bottom: .3em; font-weight: 500; }
.hero__kicker span { display: block; font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); margin-top: 10px; }
.hero h1 { font-size: clamp(2.9rem, 5.4vw, 5.1rem); line-height: 1.02; margin: .45em 0 .5em; }
.hero h1 em { display: block; padding-left: clamp(0px, 4vw, 70px); }
.hero__text { max-width: 34em; }
.hero__watermark { right: -140px; top: -60px; opacity: .05; }

/* Portret z ramką */
.portrait { position: relative; margin: 0; }
.portrait__frame { position: relative; z-index: 1; overflow: hidden; border-radius: 300px 300px var(--radius-img) var(--radius-img); background: #222; aspect-ratio: 4 / 5.4; }
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform 1.4s var(--ease); }
.portrait:hover .portrait__frame img { transform: scale(1.03); }
.portrait::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; z-index: 0;
  border: 1px solid var(--gold); border-radius: 300px 300px var(--radius-img) var(--radius-img);
}
.portrait--square .portrait__frame, .portrait--square::before { border-radius: var(--radius-img); }
.portrait--left::before { inset: 22px 22px -22px -22px; }
.portrait__badge {
  position: absolute; z-index: 2; left: -28px; bottom: 56px;
  width: 116px; height: 116px; border-radius: 50%;
  background: var(--paper); box-shadow: 0 18px 40px -18px rgba(46, 32, 21, .45);
  display: grid; place-items: center;
}
.portrait__badge svg { width: 78px; height: 78px; }
.portrait__badge--spin svg.ring { position: absolute; inset: 6px; width: auto; height: auto; animation: spin 40s linear infinite; }
.portrait__badge--spin svg.ring text { font-family: var(--sans); font-size: 8.4px; letter-spacing: .32em; font-weight: 600; fill: var(--gold-deep); text-transform: uppercase; }
.portrait__badge--spin svg:not(.ring) { width: 54px; height: 54px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .portrait { margin-right: 22px; }
  .portrait__badge { left: auto; right: -14px; bottom: 30px; width: 96px; height: 96px; }
}

/* ---------- Nagłówek podstrony ---------- */
.page-hero { position: relative; padding-block: clamp(56px, 9vw, 130px) clamp(48px, 7vw, 100px); overflow: hidden; }
.page-hero--pattern { padding-block: clamp(80px, 11vw, 160px); }
.page-hero h1 { max-width: 15em; margin-bottom: .35em; }
.page-hero .lead { max-width: 36em; }
.page-hero__watermark { right: -120px; bottom: -160px; opacity: .06; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; font-size: .8rem; color: var(--ink-soft); margin-bottom: 2.4em; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--brown); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--gold); }
.section--pattern .breadcrumb { color: rgba(247, 237, 224, .7); }

/* ---------- Strona główna: ścieżki ---------- */
.paths { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 900px) { .paths { grid-template-columns: repeat(3, 1fr); } }
.path {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: clamp(32px, 4vw, 52px); background: var(--paper); text-decoration: none;
  transition: background .4s var(--ease);
}
.path:hover { background: #fff; }
.path__num { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--gold-deep); }
.path h3 { margin: 0; }
.path__meta { font-size: .9rem; color: var(--ink-soft); }
.path .link-arrow { margin-top: auto; align-self: flex-start; padding-top: 18px; border: 0; }
.path .link-arrow span { border-bottom: 1px solid var(--gold); padding-bottom: 3px; }

/* Wstęga zdjęć */
.photo-band { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.photo-band figure { margin: 0; overflow: hidden; border-radius: var(--radius-img); }
.photo-band img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.photo-band figure:hover img { transform: scale(1.04); }
.photo-band .pb-a { grid-column: 1 / 8; aspect-ratio: 4 / 3; }
.photo-band .pb-b { grid-column: 8 / 13; aspect-ratio: 4 / 5.6; align-self: end; }
@media (max-width: 700px) { .photo-band .pb-a, .photo-band .pb-b { grid-column: 1 / -1; aspect-ratio: 4 / 3; } }

/* Galeria masonry – zdjęcia w naturalnych proporcjach, układane w kolumnach */
.masonry { column-count: 2; column-gap: clamp(12px, 1.6vw, 22px); }
@media (min-width: 900px) { .masonry { column-count: 3; } }
.masonry__item {
  position: relative; display: block; width: 100%; break-inside: avoid;
  margin: 0 0 clamp(12px, 1.6vw, 22px); padding: 0; border: 0;
  overflow: hidden; border-radius: var(--radius-img); background: var(--sand);
}
button.masonry__item { cursor: zoom-in; }
.masonry__item img { width: 100%; height: auto; transition: transform 1.2s var(--ease), filter .6s; }
.masonry__item:hover img { transform: scale(1.04); }
.masonry__item::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(46, 32, 21, .28));
  opacity: 0; transition: opacity .5s var(--ease);
}
.masonry__item:hover::after { opacity: 1; }
.masonry__item figcaption, .masonry__item .gallery__tag { z-index: 1; }

/* ---------- Psychoterapia Gestalt: 4 sekcje ---------- */
.chapter { display: grid; gap: 24px 64px; padding-block: clamp(56px, 7vw, 100px); border-top: 1px solid var(--line); }
.chapter:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .chapter { grid-template-columns: 5fr 7fr; } .chapter__head { position: sticky; top: calc(var(--header-h) + 30px); align-self: start; } }
.chapter__num { font-family: var(--serif); font-weight: 300; font-size: clamp(3.4rem, 6vw, 5.4rem); line-height: 1; color: var(--gold); display: block; margin-bottom: 16px; }
.chapter h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); }

.toc { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 1px; background: rgba(233, 215, 188, .16); border: 1px solid rgba(233, 215, 188, .16); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 800px) { .toc { grid-template-columns: repeat(4, 1fr); } }
.toc a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px 24px; background: rgba(46, 32, 21, .55); text-decoration: none; color: #F7EDE0; font-size: .95rem; transition: background .3s; }
.toc a:hover { background: rgba(46, 32, 21, .8); }
.toc span { font-family: var(--serif); font-style: italic; color: var(--gold); }

/* ---------- Oferty ---------- */
.offer {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(32px, 4vw, 52px); overflow: hidden;
}
.offer::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); }
.offer__title { font-family: var(--serif); font-size: 1.5rem; color: var(--brown-deep); margin: 0 0 18px; font-weight: 400; }
.offer__rows { list-style: none; margin: 0 0 28px; }
.offer__row { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.offer__row:first-child { border-top: 1px dashed var(--line); }
.offer__label { font-weight: 600; color: var(--ink); }
.offer__label small { display: block; font-weight: 400; color: var(--ink-soft); font-size: .84rem; }
.offer__fill { flex: 1; }
.offer__time { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: .9rem; white-space: nowrap; }
.offer__time svg { width: 16px; height: 16px; color: var(--gold-deep); }
.offer__price { font-family: var(--serif); font-size: 1.7rem; color: var(--brown); white-space: nowrap; min-width: 4.4em; text-align: right; }
.offer__price small { font-family: var(--sans); font-size: .8rem; color: var(--ink-soft); margin-left: 3px; }
.offer__note { font-size: .9rem; color: var(--ink-soft); margin-bottom: 26px; }
@media (max-width: 560px) {
  .offer__row { flex-wrap: wrap; gap: 4px 16px; }
  .offer__fill { display: none; }
  .offer__label { flex: 1 1 100%; }
  .offer__price { margin-left: auto; }
}

/* Lista „z czym możesz przyjść” */
.checklist { list-style: none; display: grid; gap: 0; }
.checklist li { position: relative; padding: 18px 0 18px 46px; border-bottom: 1px solid var(--line); }
.checklist li:first-child { border-top: 1px solid var(--line); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 24px; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--gold);
  background: radial-gradient(circle, var(--gold) 0 3px, transparent 3.5px);
}

/* ---------- Zasady współpracy ---------- */
.rules { display: grid; gap: clamp(20px, 2.4vw, 32px); counter-reset: rule; }
@media (min-width: 760px) { .rules { grid-template-columns: repeat(2, 1fr); } }
.rule {
  counter-increment: rule; position: relative;
  padding: clamp(32px, 3.5vw, 48px); background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line);
}
.rule::before {
  content: counter(rule, decimal-leading-zero); display: block;
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--gold-deep); margin-bottom: 18px;
}
.rule h3 { font-size: 1.55rem; margin-bottom: .45em; }
.rule--wide { grid-column: 1 / -1; }
.rule--accent { background: var(--sage-soft); border-color: transparent; }

/* ---------- Gabinet: galeria ---------- */
.gallery { display: grid; gap: clamp(12px, 1.6vw, 22px); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(6, 1fr); } }
.gallery__item { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-img); cursor: zoom-in; background: var(--sand); border: 0; padding: 0; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption, .gallery__tag {
  position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px;
  background: rgba(251, 248, 243, .9); font-size: .74rem; font-weight: 600; letter-spacing: .06em; color: var(--brown);
}
@media (min-width: 900px) {
  .g-1 { grid-column: 1 / 4; grid-row: span 2; }
  .g-2 { grid-column: 4 / 7; aspect-ratio: 16 / 10; }
  .g-3 { grid-column: 4 / 5; aspect-ratio: 3 / 4; }
  .g-4 { grid-column: 5 / 7; aspect-ratio: 3 / 2; }
}
@media (max-width: 899px) {
  .gallery__item { aspect-ratio: 3 / 4; }
  .g-1 { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(30, 20, 12, .94);
  display: grid; place-items: center; padding: 60px 20px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 86vh; width: auto; border-radius: var(--radius-img); }
.lightbox button { position: absolute; background: transparent; border: 1px solid rgba(233, 215, 188, .35); color: #FFF8EE; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox button svg { width: 18px; height: 18px; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%) rotate(180deg); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Adres / karta lokalizacji */
.address-card { display: grid; gap: 22px; }
.address-card__row { display: flex; gap: 18px; align-items: flex-start; }
.icon-circle { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; color: var(--brown); }
.icon-circle svg { width: 20px; height: 20px; }
.address-card strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--brown-deep); line-height: 1.3; }
.section--pattern .icon-circle { color: var(--gold); }
.section--pattern .address-card strong { color: #FFF8EE; }

/* ---------- Blog ---------- */
.post-grid { display: grid; gap: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 40px); }
@media (min-width: 720px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .post-grid { grid-template-columns: repeat(3, 1fr); } .post-grid--2 { grid-template-columns: repeat(2, 1fr); } }
.post-card { display: flex; flex-direction: column; text-decoration: none; }
.post-card__img { overflow: hidden; border-radius: var(--radius-img); aspect-ratio: 16 / 11; margin-bottom: 24px; background: var(--sand); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 12px; }
.post-meta span + span::before { content: "·"; margin-right: 14px; color: var(--gold); }
.post-card h3 { font-size: 1.6rem; margin-bottom: .45em; transition: color .3s; }
.post-card:hover h3 { color: var(--brown); }
.post-card p { color: var(--ink-soft); font-size: .98rem; }
.post-card .link-arrow { margin-top: 18px; align-self: flex-start; }

.post-card--featured { display: grid; gap: 28px clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .post-card--featured { grid-template-columns: 1.2fr 1fr; } .post-card--featured .post-card__img { margin: 0; aspect-ratio: 4 / 3; } }
.post-card--featured h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); }

.article-hero { padding-block: clamp(48px, 7vw, 100px) clamp(36px, 5vw, 64px); text-align: center; }
.article-hero h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); max-width: 16em; margin-inline: auto; }
.article-hero .lead { max-width: 34em; margin-inline: auto; color: var(--ink-soft); }
.article-hero .post-meta { justify-content: center; }
.article-cover { max-width: 1100px; margin: 0 auto; border-radius: var(--radius-img); overflow: hidden; aspect-ratio: 16 / 9; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding-block: clamp(48px, 7vw, 96px); }
.article-body .prose > p:first-child::first-letter {
  float: left; font-family: var(--serif); font-size: 4.6em; line-height: .82; margin: .06em .12em 0 0; color: var(--brown);
}
.author-box {
  display: flex; gap: 24px; align-items: center; margin-top: 64px; padding: 28px; border-radius: var(--radius);
  background: var(--cream);
}
.author-box img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: center 20%; flex-shrink: 0; }
.author-box strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; color: var(--brown-deep); display: block; }
.author-box p { font-size: .92rem; color: var(--ink-soft); margin: 4px 0 10px; }
.social-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.social-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--brown); transition: background .3s, color .3s, border-color .3s; }
.social-btn:hover { background: var(--brown); color: #FFF8EE; border-color: var(--brown); }
.social-btn svg { width: 18px; height: 18px; }
.post-nav { display: grid; gap: 18px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .post-nav { grid-template-columns: 1fr 1fr; } .post-nav a:last-child { text-align: right; } }
.post-nav a { text-decoration: none; }
.post-nav span { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 6px; }
.post-nav strong { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; color: var(--brown-deep); }

/* ---------- Kontakt ---------- */
.contact-list { list-style: none; display: grid; gap: 0; }
.contact-list li { border-bottom: 1px solid var(--line); }
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list a, .contact-list div { display: flex; gap: 20px; align-items: center; padding: 22px 0; text-decoration: none; }
.contact-list a > span:last-child, .address-card__row > div { min-width: 0; }
.contact-list small { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.contact-list strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 2vw, 1.6rem); color: var(--brown-deep); }
.contact-list a:hover strong { color: var(--brown); }
.note { padding: 26px 28px; border-radius: var(--radius); background: var(--sage-soft); font-size: .95rem; }
.note--alert { background: #F6E7DD; border-left: 3px solid #B5562F; }
.note--alert strong { color: #8E3A1B; }
.booking-card { position: relative; overflow: hidden; border-radius: var(--radius); padding: clamp(36px, 5vw, 64px); }

/* ---------- Dokumenty (polityka prywatności) ---------- */
.doc-sec { display: grid; grid-template-columns: 1fr; gap: 8px 32px; padding-block: clamp(32px, 4vw, 52px); border-top: 1px solid var(--line); }
.doc-sec:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 760px) { .doc-sec { grid-template-columns: 72px minmax(0, 1fr); } }
.doc-sec__num { font-family: var(--serif); font-weight: 300; font-size: 2.6rem; line-height: 1; color: var(--gold); }
.doc-sec h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin: 0 0 .6em; }
.doc-sec .list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.doc-sec .list li { position: relative; padding-left: 26px; }
.doc-sec .list li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.55; }
.tbl th { text-align: left; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); padding: 0 16px 12px 0; border-bottom: 1px solid var(--gold); }
.tbl td { padding: 14px 16px 14px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.tbl td:first-child { width: 44%; font-weight: 600; }
@media (max-width: 600px) {
  .tbl thead { display: none; }
  .tbl tr { display: block; padding: 14px 0; border-bottom: 1px dashed var(--line); }
  .tbl td { display: block; width: auto !important; padding: 0; border: 0; }
  .tbl td + td { color: var(--ink-soft); margin-top: 4px; }
}
.principles { display: grid; gap: 14px; margin-top: 8px; }
@media (min-width: 600px) { .principles { grid-template-columns: 1fr 1fr; } }
.principles div { background: var(--paper); border-top: 2px solid var(--gold); padding: 18px 20px; font-size: .92rem; color: var(--ink-soft); line-height: 1.55; }
.principles b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.15rem; color: var(--brown-deep); margin-bottom: 4px; }

/* ---------- CTA wstęga ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 14em; margin-inline: auto; }
.cta-band .actions { justify-content: center; }
.cta-band .divider { margin-bottom: 36px; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--brown-ink); color: rgba(247, 237, 224, .78); font-size: .94rem; position: relative; overflow: hidden; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer__top { display: grid; gap: 48px; padding-block: clamp(64px, 8vw, 110px) 56px; }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer__brand p { margin-top: 28px; max-width: 22em; }
.site-footer h4 { font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer__list { list-style: none; display: grid; gap: 10px; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; padding-block: 28px; border-top: 1px solid rgba(233, 215, 188, .12); font-size: .82rem; color: rgba(247, 237, 224, .55); }
.footer__watermark { right: -120px; top: -80px; opacity: .05; }
.site-footer .social-btn { border-color: rgba(233, 215, 188, .25); color: var(--gold-soft); }
.site-footer .social-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--brown-ink); }

/* Przycisk mobilny „Umów” */
.sticky-book {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  box-shadow: 0 16px 40px -16px rgba(46, 32, 21, .6);
  transform: translateY(140%); transition: transform .5s var(--ease);
}
.sticky-book.is-visible { transform: none; }
@media (min-width: 1140px) { .sticky-book { display: none; } }

/* ---------- Animacje wejścia ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .12s; }
.reveal-d2 { transition-delay: .24s; }
.reveal-d3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .portrait__badge--spin svg.ring { animation: none; }
}
.no-js .reveal { opacity: 1; transform: none; }
