/* VERSION: v11 (2026-10-21 20:48) — wyglad strony publicznej: ciemny gradient, zielen, owalne zdjecia, uklad swobodny */
@font-face {
  font-family: "Manrope";
  src: url("/assets/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root { --green: #32d11a; --ink: #131313; }

* { box-sizing: border-box; }

html { background: var(--ink); }

body {
  margin: 0;
  min-height: 100vh;
  /* margines plotna (main.wrap.cv-*) zostaje W srodku body; bez tego przeciekal na zewnatrz i nad gradientem wychodzil czarny pasek html */
  display: flow-root;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--green);
  /* gradient "przyklejony" do kolumny ze zdjeciami, takze na szerokich ekranach */
  --x: max(0px, calc(50vw - 600px));
  background: linear-gradient(90deg, #c3d6d6 0, #6c8080 calc(var(--x) + 300px), #1d2323 calc(var(--x) + 580px), #0d0d0d calc(var(--x) + 820px));
}


.wrap {
  display: grid;
  grid-template-columns: minmax(240px, 520px) minmax(280px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(16px, 4vw, 48px);
  min-height: 100vh;
}

.photos { display: grid; gap: 28px; }
.photos img, .photos .show {
  width: 100%; height: auto; display: block;
}

.info { padding: 8px 0; }
.info p { margin: 0 0 1.1em; font-style: italic; }

.phone { font-size: clamp(1.7rem, 4.2vw, 2.3rem); font-weight: 800; }
.phone a { color: inherit; text-decoration: none; }
.phone a:hover { text-decoration: underline; }

.promo { display: flex; align-items: center; gap: 22px; margin: 0 0 1.4em; }
.promo .promo-title { margin: 0; font-size: clamp(1.6rem, 3.8vw, 2.2rem); font-weight: 300; }

.invite { font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 800; max-width: 22em; }
.info p.blk { font-size: clamp(1.15rem, 2.8vw, 1.6rem); font-weight: 600; font-style: normal; max-width: 26em; }
.sig { font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 800; text-align: right; max-width: 12em; }

@media (max-width: 760px) {
  /* te same barwy co na komputerze (jasny pas z lewej, ciemnienie ku prawej), przeliczone na szerokosc telefonu */
  body { background: linear-gradient(90deg, #c3d6d6 0, #6c8080 32%, #1d2323 62%, #0d0d0d 88%); }
  .wrap { grid-template-columns: 1fr; gap: 22px; min-height: 0; padding: 20px 18px 40px; }
  .photos { grid-template-columns: 1fr; justify-items: center; }
  .photos img, .photos .show { max-width: 420px; }
  .info { text-align: center; order: -1; padding-top: 12px; }
  .promo { flex-direction: column; gap: 12px; }
  .invite, .sig { max-width: none; text-align: center; }
  .info p.blk { max-width: none; text-align: center; }
}

/* zaokraglenie rogow zdjec i grafik (wybierane w edytorze: 0 = ostre ... 10 = owal) */
.rad-0 { border-radius: 0; }
.rad-1 { border-radius: 6px; }
.rad-2 { border-radius: 12px; }
.rad-3 { border-radius: 18px; }
.rad-4 { border-radius: 26px; }
.rad-5 { border-radius: 36px; }
.rad-6 { border-radius: 48px; }
.rad-7 { border-radius: 64px; }
.rad-8 { border-radius: 90px; }
.rad-9 { border-radius: 140px; }
.rad-10 { border-radius: 50%; }

/* rozmiar zdjec i grafik (% szerokosci kolumny), wybierany w edytorze: 1-8 */
.photos img.sz-1, .photos .show.sz-1 { width: 25%; }
.photos img.sz-2, .photos .show.sz-2 { width: 35%; }
.photos img.sz-3, .photos .show.sz-3 { width: 45%; }
.photos img.sz-4, .photos .show.sz-4 { width: 55%; }
.photos img.sz-5, .photos .show.sz-5 { width: 65%; }
.photos img.sz-6, .photos .show.sz-6 { width: 75%; }
.photos img.sz-7, .photos .show.sz-7 { width: 87%; }
.photos img.sz-8, .photos .show.sz-8 { width: 100%; }

/* uklad swobodny (wybierany w edytorze osobno dla komputera: cv-d i telefonu: cv-p).
   Plotno = kolumna .wrap; elementy (.ly) maja polozenie i szerokosc w % szerokosci plotna (arkusz /?layout=...),
   teksty - wielkosc w cqw (1% szerokosci plotna), wiec caly uklad skaluje sie jak obrazek.
   Te same reguly dla symulowanego widoku telefonu w edytorze sa w builder.css (body.vp-phone). */
@media (min-width: 761px) {
  main.wrap.cv-d { --cvp: clamp(16px, 4vw, 48px); display: block; position: relative; container-type: inline-size; padding: 0; min-height: 0; height: auto; margin: var(--cvp) auto; width: min(calc(100% - 2 * var(--cvp)), calc(1200px - 2 * var(--cvp))); }
  main.wrap.cv-d .photos, main.wrap.cv-d .info, main.wrap.cv-d .promo { display: contents; }
  main.wrap.cv-d .ly { position: absolute; left: 0; top: 0; margin: 0; max-width: none; }
  main.wrap.cv-d .photos img.ly, main.wrap.cv-d .photos .show.ly { height: auto; }
}
@media (max-width: 760px) {
  main.wrap.cv-p { display: block; position: relative; container-type: inline-size; padding: 0; min-height: 0; height: auto; margin: 20px auto 40px; width: calc(100% - 36px); }
  main.wrap.cv-p .photos, main.wrap.cv-p .info, main.wrap.cv-p .promo { display: contents; }
  main.wrap.cv-p .ly { position: absolute; left: 0; top: 0; margin: 0; max-width: none; }
  main.wrap.cv-p .photos img.ly, main.wrap.cv-p .photos .show.ly { height: auto; }
}

/* pokaz slajdow (pole ze zmieniajacymi sie zdjeciami): kolejne warstwy .sl leza jedna na drugiej, slides.js przelacza klase "on";
   przejscie (fx-fade / fx-zoom / fx-wipe / fx-blur) i czasy (--d: czas przejscia, --tt: czas jednego slajdu) ustawia klasa + slides.js.
   cover: zdjecie przyciete do pola; fit: cale zdjecie (contain) na rozmytym, powiekszonym tle tego samego zdjecia (.bk) */
.show { position: relative; overflow: hidden; display: block; isolation: isolate; }
.photos .show > .sl { position: absolute; inset: 0; opacity: 0; z-index: 0; transition: opacity 0s, transform 0s, filter 0s, -webkit-mask-position 0s, mask-position 0s; }
.photos .show .sl img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.photos .show.fit .sl img.fr { object-fit: contain; }
.photos .show .sl img.bk { filter: blur(22px) brightness(.72); transform: scale(1.18); }
.photos .show > .sl.on, .photos .show > .sl.old { opacity: 1; }
.photos .show > .sl.old { z-index: 1; }
.photos .show > .sl.on { z-index: 2; transition: opacity var(--d, 1.4s) ease-in-out, transform var(--tt, 7s) linear, filter var(--d, 1.4s) ease-in-out, -webkit-mask-position var(--d, 1.4s) ease-in-out, mask-position var(--d, 1.4s) ease-in-out; }
/* powolne przyblizanie (efekt "oddechu" zdjecia) */
.photos .fx-zoom > .sl.on, .photos .fx-zoom > .sl.old { transform: scale(1.14); }
/* rozmycie: nowe zdjecie wyostrza sie z mgly */
.photos .fx-blur > .sl { filter: blur(18px); }
.photos .fx-blur > .sl.on, .photos .fx-blur > .sl.old { filter: blur(0); }
/* miekkie wycieranie: krawedz przejscia jest rozmyta (gradient), nie ostra kreska */
.photos .fx-wipe > .sl { opacity: 1; -webkit-mask-image: linear-gradient(100deg, #000 38%, transparent 62%); mask-image: linear-gradient(100deg, #000 38%, transparent 62%);
  -webkit-mask-size: 320% 100%; mask-size: 320% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: 100% 0; mask-position: 100% 0; }
.photos .fx-wipe > .sl.on, .photos .fx-wipe > .sl.old { -webkit-mask-position: 0 0; mask-position: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .photos .show > .sl.on { transition-duration: 0.01s; }
  .photos .fx-zoom > .sl.on, .photos .fx-zoom > .sl.old { transform: none; }
}
