/* Shared styles of website sketch 1 (home page and subpages). */
:root {
  --perla: #F6F8F7;
  --perla-2: #EDF2F1;
  --biel: #FCFDFC;
  --petrol-900: #102A31;
  --petrol-700: #1D4A55;
  --petrol-500: #3F6B75;
  --noc: #0E2228;
  --szampan: #C2A77A;
  --szampan-j: #DCC59A;
  --szampan-c: #86703F;
  --szary: #44595F;
  --widmo: rgba(16, 42, 49, .085);
  --f-szeryf: "Cormorant Garamond", Georgia, serif;
  --f-tekst: "Alegreya Sans", "Segoe UI", sans-serif;
  --naglowek: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--naglowek); }
body {
  margin: 0;
  background: var(--perla);
  color: var(--petrol-900);
  font: 400 1.25rem/1.62 var(--f-tekst);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
main { overflow-x: clip; }
a { color: var(--petrol-700); text-decoration-color: rgba(194, 167, 122, .7); text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--szampan); }
:focus-visible { outline: 2px solid var(--petrol-700); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--f-szeryf); font-weight: 500; color: var(--petrol-900); margin: 0; }
h2 { font-size: clamp(2.2rem, 4.2vw, 3.3rem); line-height: 1.08; margin-bottom: .7em; letter-spacing: .005em; }
h3 { font-size: 1.6rem; line-height: 1.2; margin-bottom: .5em; }

/* --- Inicjały nagłówków, zależne od wariantu zdobień --- */
h2::first-letter { font-weight: 600; color: var(--szampan-c); }
/* Owner 21.11: initials stay the petal-line style also with the illumination ornaments. */
body[data-zdobienia="a"] h2::first-letter,
body[data-zdobienia="b"] h2::first-letter { font-size: 1.32em; }
body[data-zdobienia="c"] h2::first-letter {
  font-size: 1.05em; padding: .02em .2em; margin-right: .08em;
  border: 1px solid var(--szampan); border-radius: 50%;
}
.okladka h2::first-letter { color: var(--szampan-j); }

/* --- Tło całej strony: trzy warianty --- */
.tlo { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.tlo > div { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
body[data-tlo="swit"] .tlo-swit,
body[data-tlo="mgla"] .tlo-mgla { opacity: 1; }
.tlo-swit {
  background:
    radial-gradient(70% 50% at 50% -8%, rgba(255, 242, 214, .95), rgba(255, 242, 214, 0) 70%),
    repeating-conic-gradient(from 90deg at 50% -12%, rgba(194, 167, 122, 0) 0deg 4deg, rgba(194, 167, 122, .09) 5deg, rgba(194, 167, 122, 0) 6.5deg 11deg);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 78%);
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}
.plama { position: absolute; width: 56vmax; aspect-ratio: 1; border-radius: 50%; filter: blur(90px); opacity: .55; animation: dryf 70s ease-in-out infinite alternate; }
.plama:nth-child(1) { background: #CFE3E1; left: -18vmax; top: -14vmax; }
.plama:nth-child(2) { background: #F4E6C9; right: -20vmax; top: 10vh; animation-delay: -20s; }
.plama:nth-child(3) { background: #E1EBEA; left: 20vw; bottom: -30vmax; animation-delay: -40s; }
.plama:nth-child(4) { background: #FAF0DC; left: -10vmax; bottom: -10vmax; width: 40vmax; animation-delay: -55s; }
@keyframes dryf { to { transform: translate(9vw, 7vh) scale(1.12); } }
.tlo-ziarno {
  opacity: .07 !important; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Zdjęcia w tle (CC0, źródła w tlo/ZRODLA.md): wyciszone, rozmyte, wtopione w perłę --- */
.foto {
  position: absolute; z-index: -1; pointer-events: none;
  background: 50% 50% / cover no-repeat; transition: opacity 1s ease;
}
body[data-foto="0"] .foto { opacity: 0 !important; }
.foto-start {
  left: 0; right: 0; bottom: 0; height: 64%;
  background-image: url("tlo/jezioro-gory.jpg"); background-position: 50% 62%;
  opacity: .42; filter: saturate(.6) brightness(1.1) contrast(.9) blur(1.5px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 45%, #000 78%, transparent);
}
.foto-liscie {
  right: 0; top: 0; bottom: 0; width: 58%;
  background-image: url("tlo/liscie-swiatlo.jpg");
  opacity: .24; filter: saturate(.45) brightness(1.15) blur(2px);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 65% 40%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 55% at 65% 40%, #000 25%, transparent 75%);
}
.foto-trzciny {
  left: 0; right: 0; top: 25%; bottom: 0;
  background-image: url("tlo/jezioro-trzciny.jpg"); background-position: 50% 55%;
  opacity: .26; filter: saturate(.5) brightness(1.12) blur(1.5px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 40%, #000 70%, transparent);
}
/* Companies: the photo only adds light (screen), and the petrol gets lighter with it, so it is not gloomy. */
.foto-swit {
  inset: 0; background-image: url("tlo/jezioro-swit.jpg"); background-position: 50% 55%;
  mix-blend-mode: screen; opacity: .44; filter: blur(1.5px) saturate(.5);
}
body[data-foto="1"] .okladka { background: #173E48; }
body[data-foto="1"] .okladka::before {
  opacity: .9;
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(255, 240, 210, .22), transparent 70%),
    radial-gradient(60% 70% at 50% 100%, rgba(194, 167, 122, .16), transparent 70%);
}
/* Company subpage (owner 27.11, "Szkło i niebo"): glass and sky on the cover, then other motifs so the
   page is not monotonous: a meeting room, a team at a table. They sit in the leaves' and reeds' places. */
.foto-firma {
  inset: 0; background-image: url("tlo/firma-szklo.jpg"); background-position: 50% 40%;
  mix-blend-mode: screen; opacity: .36; filter: blur(1.5px) saturate(.5);
}
.foto-sala { background-image: url("tlo/firma-sala.jpg"); background-position: 50% 55%; opacity: .2; }
.foto-zespol { background-image: url("tlo/firma-zespol.jpg"); background-position: 50% 50%; opacity: .2; }
/* Rooms and people have more detail than reeds and leaves: quieter, and the text glows lightly. */
:is(.foto-sala, .foto-zespol) ~ .karta :is(p, h2, h3, li) { text-shadow: 0 0 .8em rgba(246, 248, 247, .95), 0 0 .2em rgba(246, 248, 247, .9); }
.foto-morze {
  inset: 0; background-image: url("tlo/morze-horyzont.jpg"); background-position: 50% 45%;
  opacity: .34; filter: saturate(.55) brightness(1.12) blur(1.5px);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 80%);
}

/* --- Nagłówek --- */
.naglowek {
  position: sticky; top: 0; z-index: 30; height: var(--naglowek);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0 clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid transparent;
  transition: background-color .5s ease, border-color .5s ease;
}
.naglowek.przewiniete {
  background: rgba(246, 248, 247, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: rgba(194, 167, 122, .35);
}
.naglowek .logo img { height: 46px; width: auto; }
.nawigacja { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nawigacja a:not(.przycisk) { font-size: 1.08rem; text-decoration: none; color: var(--petrol-700); }
.nawigacja a:not(.przycisk):hover { text-decoration: underline; text-decoration-color: var(--szampan); }
.naglowek .menu-przycisk { display: none; }

.przycisk {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8em 1.6em; border: 0; border-radius: 3px; cursor: pointer;
  background: var(--petrol-700); color: var(--perla);
  font: 500 1.06rem/1.2 var(--f-tekst); letter-spacing: .02em; text-decoration: none;
  outline: 1px solid rgba(220, 197, 154, .75); outline-offset: -5px;
  transition: background-color .3s ease;
}
.przycisk:hover { background: var(--petrol-900); }
.przycisk:focus-visible { outline: 2px solid var(--szampan); outline-offset: 2px; }
.przycisk.jasny { background: transparent; color: var(--petrol-700); outline: 0; box-shadow: inset 0 0 0 1px rgba(29, 74, 85, .35); }
.przycisk.jasny:hover { background: rgba(255, 255, 255, .6); }
.przycisk.zloty { background: var(--szampan-j); color: var(--noc); outline-color: rgba(14, 34, 40, .35); }
.przycisk.zloty:hover { background: #E8D5AE; }

/* --- Pierwszy ekran: światło z lotosu --- */
.start {
  position: relative; min-height: calc(100svh - var(--naglowek));
  display: grid; place-items: center; text-align: center;
  padding: 2rem 1.25rem 4rem; isolation: isolate;
}
.serce { position: relative; width: clamp(170px, 24vw, 290px); aspect-ratio: 1; margin: 0 auto; }
.serce img { position: relative; z-index: 1; width: 100%; height: 100%; animation: pojawienie 2.2s ease both; }
.blask, .promienie { position: absolute; left: 50%; top: 80%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.blask {
  width: 330%; z-index: 0;
  background: radial-gradient(closest-side, rgba(255, 247, 228, 1), rgba(255, 245, 222, .6) 38%, rgba(255, 245, 222, 0) 100%);
  animation: rozblysk 3s ease .2s both;
}
.promienie {
  width: 520%; z-index: -1;
  background: repeating-conic-gradient(from 0deg, rgba(194, 167, 122, 0) 0deg 5deg, rgba(194, 167, 122, .2) 6.2deg, rgba(194, 167, 122, 0) 7.6deg 14deg);
  /* Owner 29.11: a full circle of rays. A half-disc mask turned with the rays, so they showed on one side only */
  -webkit-mask-image: radial-gradient(closest-side, transparent 8%, #000 20%, transparent 96%);
  mask-image: radial-gradient(closest-side, transparent 8%, #000 20%, transparent 96%);
  animation: rozblysk 3.4s ease .6s both, obrot 260s linear infinite;
}
@keyframes obrot { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes rozblysk { from { opacity: 0; } to { opacity: 1; } }
@keyframes pojawienie { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes zmgly { from { opacity: 0; filter: blur(10px); } to { opacity: 1; filter: none; } }
.start h1 {
  font-weight: 600; font-size: clamp(2.9rem, 7.4vw, 5.6rem); line-height: 1.02; letter-spacing: .004em;
  margin-top: .45em; animation: zmgly 1.3s ease .3s both;
}
.start .podtytul {
  font: italic 500 clamp(1.3rem, 2.3vw, 1.7rem)/1.35 var(--f-szeryf); color: var(--petrol-700);
  max-width: 38ch; margin: .7em auto 0; animation: zmgly 1.3s ease .5s both;
}
/* Owner 27.11: the text over the lake photo was hard to read. A soft pearl light behind the text
   block quiets the photo there (the photo stays visible at the sides), and the text glows lightly. */
.start > div:not(.foto) { position: relative; }
.start > div:not(.foto)::before {
  content: ""; position: absolute; z-index: -1; left: -6%; right: -6%; top: 50%; bottom: -8%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(246, 248, 247, .86), rgba(246, 248, 247, .62) 60%, rgba(246, 248, 247, 0));
}
.start .podtytul, .start .kto { text-shadow: 0 0 .9em rgba(246, 248, 247, .95), 0 0 .2em rgba(246, 248, 247, .9); }
.start .przycisk.jasny { background: rgba(252, 253, 252, .78); }
.start .przycisk.jasny:hover { background: rgba(252, 253, 252, .95); }
.start .akcje { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 2.2rem; animation: zmgly 1.3s ease .7s both; }
.start .glosa { max-width: 22rem; margin: 2.4rem auto 0; text-align: left; }

/* --- Strona księgi: kolumna tekstu, margines na zdobienia i glosy --- */
.rozdzial { position: relative; padding-block: clamp(4.5rem, 9vw, 8rem); isolation: isolate; }
.karta {
  display: grid;
  grid-template-columns: minmax(1.25rem, 1fr) minmax(0, 42rem) minmax(0, 16rem) minmax(1.25rem, 1fr);
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
}
.karta > .margines { grid-column: 1; justify-self: end; }
.karta > .tresc { grid-column: 2; }
.karta > .tresc.szeroka { grid-column: 2 / 4; }
.karta > .glosy { grid-column: 3; padding-top: 1rem; }
.prowadzenie { max-width: 38rem; }

/* Widmo tekstu: miejsce na treść, którą dopisze właściciel */
.widmo {
  --l: 4;
  display: block; height: calc(var(--l) * 1.65em); margin: 0 0 1.1em;
  background:
    linear-gradient(to bottom, transparent .6em, var(--widmo) .6em 1.08em, transparent 1.08em) left 0 top calc((var(--l) - 1) * 1.65em) / 58% 1.65em no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 .6em, var(--widmo) .6em 1.08em, transparent 1.08em 1.65em) left top / 100% calc((var(--l) - 1) * 1.65em) no-repeat;
}
.widmo.krotkie { width: 60%; }
.okladka .widmo { --widmo: rgba(224, 234, 236, .13); }

/* Glosy: notatki na marginesie dla właściciela */
.glosa {
  position: relative; font: italic 500 1.18rem/1.42 var(--f-szeryf); color: var(--szampan-c);
  padding-left: 1.4rem; margin: 0 0 1rem;
}
.glosa::before {
  content: ""; position: absolute; left: 0; top: .3em; width: .8rem; height: 1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-6 -17 12 18'%3E%3Cpath d='M0 0C5.2 -4.8 3.4 -13.4 0 -16.6C-3.4 -13.4 -5.2 -4.8 0 0Z' fill='%23C2A77A'/%3E%3C/svg%3E") center / contain no-repeat;
}
.okladka .glosa { color: var(--szampan-j); }

/* Client opinions (owner 29.11): not a panel; each stands on its own between sections, in a fine serif,
   shows up while scrolling and never covers a photo */
.opinia-miejsce { position: relative; padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem; }
.opinia { position: relative; margin: 0 auto; text-align: center; }
.opinia::before {
  content: ""; display: block; width: 1.1rem; height: 1.4rem; margin: 0 auto 1.2rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-6 -17 12 18'%3E%3Cpath d='M0 0C5.2 -4.8 3.4 -13.4 0 -16.6C-3.4 -13.4 -5.2 -4.8 0 0Z' fill='%23C2A77A'/%3E%3C/svg%3E") center / contain no-repeat;
}
.opinia blockquote { margin: 0; }
.opinia blockquote p { margin: 0; font-family: var(--f-szeryf); font-style: italic; font-weight: 400; color: var(--petrol-900); }
.opinia.dluga { max-width: 46rem; }
.opinia.dluga blockquote p { font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.5; }
.opinia.krotka { max-width: 38rem; }
.opinia.krotka blockquote p { font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.35; }
.opinia figcaption { margin-top: 1.1rem; font: 500 1rem/1.3 var(--f-tekst); letter-spacing: .14em; text-transform: uppercase; color: var(--szampan-c); }
.opinia figcaption::before { content: ""; display: inline-block; width: 2.2rem; height: 1px; margin-right: .8rem; vertical-align: middle; background: rgba(194, 167, 122, .7); }

/* Home page, "dla Ciebie": a large closing line and a call to action (owner's note 29.11) */
.haslo { margin: 2.8rem 0 0; font: italic 500 clamp(1.5rem, 2.6vw, 1.95rem)/1.35 var(--f-szeryf); color: var(--petrol-700); max-width: 40rem; }
.wezwanie { margin-top: 2rem; }
.wezwanie p { margin: 0 0 1.1rem; }
.wezwanie .akcje-kontakt { justify-content: flex-start; }
.po-kryzysie { margin: 1.4rem 0 0; }
body[data-glosy="0"] .glosa { visibility: hidden; }

/* --- Zdobienia (SVG rysowane w skrypcie) --- */
.ozdoba { color: var(--szampan); pointer-events: none; }
.orn-svg { display: block; width: 100%; height: auto; overflow: visible; }
.orn-svg * { fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.orn-svg .w { fill: currentColor; fill-opacity: .24; }
.orn-svg .slaby { opacity: .5; }
.dzielnik { width: min(360px, 78vw); margin: 0 auto; }
.pionowy { width: 40px; opacity: .6; position: sticky; top: calc(var(--naglowek) + 2rem); }
.rozeta { position: absolute; z-index: -1; width: min(620px, 90vw); opacity: .13; }
.naroznik { position: absolute; width: clamp(64px, 9vw, 112px); }
.n-lg { top: 14px; left: 14px; }
.n-pg { top: 14px; right: 14px; transform: scaleX(-1); }
.n-ld { bottom: 14px; left: 14px; transform: scaleY(-1); }
.n-pd { bottom: 14px; right: 14px; transform: scale(-1, -1); }

/* --- Przejścia: z mgły do ostrości, zdobienia rysują się same --- */
/* Text clears fast (nobody should scroll past it), ornaments may take their time. */
body[data-przejscia="mgla"] .odslona { transition: opacity .8s ease, filter .95s ease; }
body[data-przejscia="mgla"] .odslona:not(.widoczne) { opacity: 0; filter: blur(12px); }
body[data-przejscia="mgla"] .ozdoba .orn-svg * { transition: stroke-dashoffset 2.6s cubic-bezier(.45, 0, .2, 1), fill-opacity 1.6s ease 1.4s; }
body[data-przejscia="mgla"] .ozdoba:not(.widoczne) .orn-svg * { stroke-dashoffset: 1; }
body[data-przejscia="mgla"] .ozdoba:not(.widoczne) .orn-svg .w { fill-opacity: 0; }

/* --- Pytania --- */
.pytania { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); column-gap: 2.2rem; margin: 0; }
.pytania dt, .pytania dd { margin: 0; padding: 1.15rem 0 .2rem; border-top: 1px solid rgba(194, 167, 122, .38); }
.pytania dt { font: 500 1.45rem/1.25 var(--f-szeryf); }
.pytania dd p { margin: 0 0 .6em; font-size: 1.3rem; }
.pytania dd .widmo { margin-bottom: .6em; }

/* --- Kroki (prawdziwa kolejność, więc numeracja) --- */
.kroki { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; position: relative; }
.kroki::before { content: ""; position: absolute; left: 1.6rem; right: 1.6rem; top: 1.6rem; height: 1px; background: linear-gradient(to right, rgba(194, 167, 122, 0), rgba(194, 167, 122, .7) 10%, rgba(194, 167, 122, .7) 90%, rgba(194, 167, 122, 0)); }
.kroki li { position: relative; }
.numer {
  display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%;
  background: var(--perla); border: 1px solid var(--szampan); position: relative;
  font: 600 1.35rem/1 var(--f-szeryf); color: var(--szampan-c); margin-bottom: 1.1rem;
}
.kroki h3 { font-size: 1.55rem; }
.kroki .widmo { --l: 3; }

/* --- Dla firm: okładka księgi ze złotym tłoczeniem --- */
.okladka { position: relative; background: var(--noc); color: #E0EAEC; padding-block: clamp(4rem, 8vw, 7rem); overflow: hidden; isolation: isolate; }
.okladka::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(63, 107, 117, .55), transparent 70%),
    radial-gradient(40% 50% at 85% 100%, rgba(194, 167, 122, .12), transparent 70%);
}
.okladka::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .09; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.rama {
  position: relative; max-width: 68rem; margin: 0 auto; width: calc(100% - 2.5rem);
  border: 1px solid rgba(220, 197, 154, .55);
  outline: 1px solid rgba(220, 197, 154, .22); outline-offset: 9px;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 6vw, 5rem);
}
.rama .ozdoba { color: var(--szampan-j); }
.godlo { width: 58px; margin: 0 auto 1.4rem; opacity: .95; }
.okladka h2 { color: #F1E7D2; text-align: center; }
.okladka .wstep { max-width: 40rem; margin: 0 auto 3rem; }
.dwie-kolumny { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.okladka .akcje { text-align: center; margin-top: 2.6rem; }
.okladka .glosa { max-width: 40rem; margin: 2.4rem auto 0; }

/* --- O mnie: zdjęcie duże, w tle, rozmyte --- */
.o-mnie { min-height: min(92vh, 900px); overflow: hidden; }
.zdjecie {
  position: absolute; z-index: -1; top: 4.5rem; bottom: 0; right: 0; width: min(64%, 900px);
  background: url("marcin-daniun.jpg") 50% 0 / cover no-repeat;
  -webkit-mask-image: linear-gradient(to left, #000 30%, transparent 94%), linear-gradient(to bottom, transparent, #000 7%, #000 72%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to left, #000 30%, transparent 94%), linear-gradient(to bottom, transparent, #000 7%, #000 72%, transparent);
  mask-composite: intersect;
  transform: scale(1.04);
  transition: filter .8s ease, opacity .8s ease;
}
body[data-zdjecie="a"] .zdjecie { filter: grayscale(.3) sepia(.14) blur(3px) brightness(1.08) contrast(.88); opacity: .5; }
body[data-zdjecie="b"] .zdjecie { filter: grayscale(.55) sepia(.28) blur(7px) brightness(1.12) contrast(.82); opacity: .5; }
body[data-zdjecie="c"] .zdjecie { filter: grayscale(.85) brightness(1.1) contrast(.88); opacity: .44; }
.o-mnie::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 60% at 70% 30%, rgba(255, 245, 222, .35), transparent 70%);
}
.uprawnienia { list-style: none; padding: 0; margin: 2rem 0 0; }
.uprawnienia li { position: relative; padding: .55rem 0 .55rem 1.6rem; border-top: 1px solid rgba(194, 167, 122, .3); }
.uprawnienia li::before {
  content: ""; position: absolute; left: 0; top: .95rem; width: .75rem; height: .95rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-6 -17 12 18'%3E%3Cpath d='M0 0C5.2 -4.8 3.4 -13.4 0 -16.6C-3.4 -13.4 -5.2 -4.8 0 0Z' fill='%23C2A77A'/%3E%3C/svg%3E") center / contain no-repeat;
}
.uprawnienia span { color: var(--szary); }

/* --- Bezpieczeństwo, kontakt, stopka --- */
.cisza { padding-block: clamp(3rem, 6vw, 5rem); }
.kontakt { text-align: center; }
.kontakt .tresc { position: relative; }
.kontakt-karta {
  position: relative; max-width: 44rem; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3.5rem);
  background: rgba(252, 253, 252, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.kontakt .widmo { margin-inline: auto; }
.dane { display: grid; grid-template-columns: auto minmax(0, max-content); gap: .4rem 1.2rem; justify-content: center; text-align: left; margin: 1.6rem 0 2rem; }
.dane dt { color: var(--szary); }
.dane dd { margin: 0; }
.dane .widmo { --l: 1; margin: 0; }
.kontakt .glosa { text-align: left; max-width: 26rem; margin: 2rem auto 0; }
.rozeta-kontakt { left: 50%; top: 50%; transform: translate(-50%, -50%); }

.stopka { border-top: 1px solid rgba(194, 167, 122, .35); padding: 2.5rem clamp(1rem, 4vw, 3rem) 3rem; }
.stopka-wnetrze { max-width: 72rem; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; font-size: 1.05rem; color: var(--szary); }
.stopka img { height: 40px; width: auto; }
.miejsce-logo { border: 1px dashed rgba(194, 167, 122, .8); padding: .7rem 1rem; font: italic 1rem/1.3 var(--f-szeryf); color: var(--szampan-c); max-width: 15rem; }

/* --- Panel wariantów szkicu --- */
.panel {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; width: min(330px, calc(100vw - 32px));
  background: rgba(252, 253, 252, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(194, 167, 122, .55); border-radius: 6px;
  box-shadow: 0 14px 40px -14px rgba(16, 42, 49, .35); font-size: .95rem;
}
.panel summary { cursor: pointer; padding: .7rem 1rem; font-weight: 500; color: var(--petrol-700); list-style: none; }
.panel summary::-webkit-details-marker { display: none; }
.panel summary::after { content: "+"; float: right; color: var(--szampan-c); }
.panel[open] summary::after { content: "–"; }
.panel-tresc { max-height: min(70vh, 560px); overflow: auto; padding: 0 1rem .9rem; }
.panel fieldset { border: 0; padding: 0; margin: 0 0 .8rem; }
.panel legend { font: 500 1.12rem/1.3 var(--f-szeryf); color: var(--petrol-900); padding: 0; margin-bottom: .35rem; }
.wybor { display: flex; flex-wrap: wrap; gap: .35rem; }
.wybor label { position: relative; }
.wybor input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wybor span { display: inline-block; padding: .28rem .7rem; border: 1px solid rgba(29, 74, 85, .25); border-radius: 3px; cursor: pointer; }
.wybor input:checked + span { background: var(--petrol-700); color: var(--perla); border-color: var(--petrol-700); }
.wybor input:focus-visible + span { outline: 2px solid var(--szampan); outline-offset: 2px; }
.panel p { margin: .2rem 0 0; color: var(--szary); font-size: .9rem; line-height: 1.45; }
/* Text editing (tools/edytor.py): editable texts are outlined, the save state sits in the panel's header. */
body[data-edycja="1"] [data-t] { outline: 1px dashed rgba(194, 167, 122, .75); outline-offset: 3px; cursor: text; }
body[data-edycja="1"] [data-t]:focus { outline: 2px solid var(--szampan); }
.zapis {
  display: inline-block; max-width: 11.5rem; margin-left: .7em; vertical-align: bottom;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: .82rem; font-weight: 400; color: var(--szampan-c);
}
.zapis.blad { color: #9A3B2E; }
/* Loose notes (tools/edytor.py, owner 29.11): a movable note on the page, saved with the text it sits by.
   It lies on top of the page, so nothing under it moves; the add button keeps its corner. */
.notatki { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 28; }
.notatki[hidden], .notatka-dodaj[hidden] { display: none; }
.notatka {
  position: absolute; box-sizing: border-box; width: 320px; height: 210px; min-width: 200px; min-height: 120px;
  max-width: calc(100vw - 24px); display: flex; flex-direction: column; resize: both; overflow: hidden;
  background: #FBF4DF; border: 1px solid rgba(194, 167, 122, .8); border-radius: 4px;
  box-shadow: 0 10px 28px -12px rgba(16, 42, 49, .45); font: 400 1rem/1.45 var(--f-tekst); color: var(--petrol-900);
}
.notatka:focus-within { border-color: var(--szampan-c); }
.notatka.przesuwana { box-shadow: 0 20px 44px -12px rgba(16, 42, 49, .55); }
.notatka-pasek {
  display: flex; align-items: center; gap: .5rem; padding: .25rem .3rem .25rem .7rem;
  background: rgba(194, 167, 122, .3); cursor: move; touch-action: none; user-select: none;
}
.notatka-przy { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .82rem; color: var(--szampan-c); }
.notatka-usun {
  flex: none; width: 1.8rem; height: 1.8rem; border: 0; border-radius: 3px; background: transparent;
  color: var(--szampan-c); font: 400 1.25rem/1 var(--f-tekst); cursor: pointer;
}
.notatka-usun:hover { background: rgba(194, 167, 122, .35); color: var(--petrol-900); }
.notatka textarea {
  flex: 1; width: 100%; box-sizing: border-box; margin: 0; border: 0; padding: .55rem .7rem;
  background: transparent; font: inherit; color: inherit; resize: none; outline: 0;
}
.notatka-dodaj {
  position: fixed; left: 16px; bottom: 16px; z-index: 40; padding: .7rem 1.1rem; cursor: pointer;
  background: rgba(252, 253, 252, .94); color: var(--petrol-700); font: 500 .95rem/1.2 var(--f-tekst);
  border: 1px solid rgba(194, 167, 122, .55); border-radius: 6px; box-shadow: 0 14px 40px -14px rgba(16, 42, 49, .35);
}
.notatka-dodaj:hover { background: var(--biel); }
.notatka-dodaj:focus-visible { outline: 2px solid var(--szampan); outline-offset: 2px; }
@media (max-width: 500px) { .notatka-dodaj { bottom: 76px; } }

/* --- Menu na telefonie --- */
.menu-mobilne {
  position: fixed; z-index: 29; top: var(--naglowek); left: 0; right: 0;
  background: rgba(246, 248, 247, .97); border-bottom: 1px solid rgba(194, 167, 122, .4);
  padding: 1rem 1.25rem 1.5rem; display: none;
}
.menu-mobilne a:not(.przycisk) { display: block; padding: .6rem 0; font: 500 1.4rem/1.3 var(--f-szeryf); text-decoration: none; }
.menu-mobilne .przycisk { margin-top: .8rem; }
body[data-menu="1"] .menu-mobilne { display: block; }

@media (max-width: 960px) {
  .karta { grid-template-columns: 1.25rem minmax(0, 1fr) 1.25rem; column-gap: 0; }
  .karta > .margines { display: none; }
  .karta > .tresc, .karta > .tresc.szeroka, .karta > .glosy { grid-column: 2; }
  .karta > .glosy { padding-top: .5rem; }
  .kroki { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kroki::before { display: none; }
  .dwie-kolumny { grid-template-columns: 1fr; }
  .zdjecie {
    width: 100%; top: 2rem; bottom: auto; height: 62vh;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 45%, transparent 98%);
    mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 45%, transparent 98%);
  }
  .o-mnie .tresc { padding-top: 40vh; }
}
@media (max-width: 860px) {
  .nawigacja { display: none; }
  .naglowek .menu-przycisk { display: inline-flex; }
}
@media (max-width: 600px) {
  body { font-size: 1.15rem; }
  .pytania { grid-template-columns: 1fr; }
  .pytania dd { border-top: 0; padding-top: .2rem; }
  .kroki { grid-template-columns: 1fr; }
  .naglowek .logo img { height: 40px; }
  .dane { grid-template-columns: 1fr; text-align: center; }
  .dane .widmo { margin-inline: auto; width: 12rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .odslona { opacity: 1 !important; filter: none !important; }
  .ozdoba .orn-svg * { stroke-dashoffset: 0 !important; }
  .ozdoba .orn-svg .w { fill-opacity: .24 !important; }
}

/* --- Subpages (e.g. terapia-dla-firm): the cover opens the page, the current page in the menu --- */
.okladka h1 { color: #F1E7D2; text-align: center; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.05; margin-bottom: .6em; }
.okladka-start .wstep { text-align: center; font-size: 1.35rem; margin-bottom: 0; }
.akcje-strony { margin-top: 2.4rem; }
.nawigacja a[aria-current="page"], .menu-mobilne a[aria-current="page"] { color: var(--petrol-900); text-decoration: underline; text-decoration-color: var(--szampan); }

/* --- Content proposal (command 461): trust points, cards, lead quote, beliefs, three groups, crisis box --- */
.start .kto { font-size: 1.16rem; color: var(--petrol-700); max-width: 44ch; margin: 1.1rem auto 0; animation: zmgly 1.3s ease .6s both; }
.filary {
  list-style: none; margin: 0 auto; padding: 0 1.25rem; max-width: 68rem;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2.6rem);
}
.filary li { border-top: 1px solid rgba(194, 167, 122, .55); padding-top: 1.1rem; }
.filary strong { display: block; font: 500 1.55rem/1.2 var(--f-szeryf); color: var(--petrol-900); margin-bottom: .35rem; }
.filary span { color: var(--szary); }
.pas { padding-block: clamp(2.5rem, 5vw, 4rem) 0; }
.kafle { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 2.4rem; }
.kafle li { position: relative; padding-left: 1.6rem; }
.kafle li::before {
  content: ""; position: absolute; left: 0; top: .5rem; width: .75rem; height: .95rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-6 -17 12 18'%3E%3Cpath d='M0 0C5.2 -4.8 3.4 -13.4 0 -16.6C-3.4 -13.4 -5.2 -4.8 0 0Z' fill='%23C2A77A'/%3E%3C/svg%3E") center / contain no-repeat;
}
.kafle h3 { font-size: 1.45rem; margin-bottom: .2em; }
.kafle p { margin: 0; color: var(--petrol-700); }
.prowadzenie p { margin: 0 0 1em; }
.prowadzenie .lead { font: italic 500 clamp(1.4rem, 2.3vw, 1.7rem)/1.4 var(--f-szeryf); color: var(--petrol-700); }
.cytat {
  max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; text-align: center;
  font: italic 400 clamp(1.45rem, 2.8vw, 2.05rem)/1.4 var(--f-szeryf); color: var(--petrol-900);
}
.cytat p { margin: 0 0 .7em; }
.cytat .podpis { font: 400 1.08rem/1.4 var(--f-tekst); font-style: normal; color: var(--szary); letter-spacing: .03em; }
.kroki p { margin: 0; color: var(--petrol-700); }
.pytania dd p:last-child { margin-bottom: .9em; }
.o-mnie .prowadzenie p { margin: 0 0 1em; }
.uprawnienia.jezyki { margin-top: 1rem; }
.kryzys { margin-top: 1.4rem; padding: 1.1rem 1.3rem; border-left: 2px solid var(--szampan); background: rgba(252, 253, 252, .6); }
.kryzys p { margin: 0 0 .5em; }
.kryzys ul { list-style: none; padding: 0; margin: 0; }
.kryzys li { padding: .2rem 0; }
.kryzys a { font-weight: 500; white-space: nowrap; }
.lista { padding-left: 1.2rem; margin: .4rem 0 0; }
.lista li { margin-bottom: .35rem; }
.dane dd a { font-weight: 500; }
.kontakt .wstep-kontakt { max-width: 34rem; margin: 0 auto; }
.okladka .dwie-kolumny h3 { color: #F1E7D2; font-size: 1.55rem; }
.okladka .dwie-kolumny p { margin: 0; }
.okladka .wstep p { margin: 0; text-align: center; font-size: 1.32rem; }
.przekonania { list-style: none; padding: 0; margin: 1.6rem 0; display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.przekonania li { font: italic 500 clamp(1.5rem, 2.6vw, 1.9rem)/1.3 var(--f-szeryf); color: var(--szampan-c); }
.trzy { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.trzy h3 { font-size: 1.5rem; }
.trzy p { margin: 0; color: var(--petrol-700); }
@media (max-width: 960px) {
  .filary, .trzy { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .kafle { grid-template-columns: 1fr; }
}
.okladka .zasada { text-align: center; margin: 1.2rem auto 0; color: var(--szampan-j); font-size: 1.15rem; }
.akcje-kontakt { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
body[data-glosy="0"] .miejsce-logo { visibility: hidden; }
@media (max-width: 600px) {
  .rozdzial { padding-block: 3.2rem; }
  .cisza { padding-block: 2.4rem; }
  .okladka { padding-block: 3rem; }
}
