/* ==========================================================================
   Pani Dylewska — strona główna
   Odwzorowanie 1920_PD_HOME.psd (1920 × 6729 px)

   SKALOWANIE
   Projekt powstał na siatce 1920 px. Root font-size = 100vw/192, więc
   1rem = 10 px przy 1920 px szerokości okna, a każda wartość w rem to
   wprost piksele z PSD podzielone przez 10 (21 px → 2.1rem).
   Powyżej 1920 px skala jest zatrzymana (1rem = 10 px na stałe): teksty,
   menu, przyciski i odstępy zostają w rozmiarze z makiety, a zdjęcia
   pełnoekranowe dalej wypełniają całą szerokość okna.
   ========================================================================== */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
img, picture, svg { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

/* ---------- zmienne ---------- */
:root {
  --orange:   #FF9700;   /* przyciski */
  --orange-bar: #FF8E0B; /* pasek nad nagłówkiem */
  --red:      #E82000;
  --cream-a:  #FFFDF4;   /* jaśniejszy kremowy */
  --cream-b:  #FFFAEA;   /* cieplejszy kremowy */
  --ink:      #000000;
  --rule:     #878379;   /* linie formularza */
  --muted:    #C3C3C3;   /* copyright */

  --container: 166.4rem; /* 1664 px = 1920 − 2 × 128 */
  --pad:       12.8rem;  /* margines zewnętrzny */

  --ease: cubic-bezier(.22,.61,.36,1);
}

html {
  font-size: clamp(8.4px, calc(100vw / 192), 10px);   /* sufit = skala 1:1 z makiety */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "neulis-sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 2.1rem;
  line-height: 3.142rem;              /* 31.42 px */
  letter-spacing: .01em;
  color: var(--ink);
  background: var(--cream-a);
  overflow-x: clip;                   /* clip zamiast hidden — nie psuje position:sticky */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- pomocnicze ---------- */
.u-vh {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 999;
  background: var(--ink); color: #fff; padding: 1rem 2rem; border-radius: .6rem;
  font-size: 1.6rem;
}
.skip-link:focus { top: 1rem; }

:where(a, button, input, textarea):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.inner {
  width: min(var(--container), 100% - 2 * var(--pad));
  margin-inline: auto;
}

/* ---------- typografia wspólna ---------- */
.h2 {
  font-size: 4.107rem;                /* 41.07 px */
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .01em;
}

.eyebrow {
  font-size: 2.095rem;
  font-weight: 700;
  line-height: 2.554rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* ---------- przycisk (pigułka) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 6.3rem;
  min-width: var(--bw, auto);
  padding-inline: 3.4rem;
  border-radius: 999rem;
  background: var(--orange);
  color: #fff;
  font-size: 2.095rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover  { background: #F08B00; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* dekoracje (gałązki) */
.deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ==========================================================================
   PASEK GÓRNY  (y 0–21)
   ========================================================================== */
.topbar {
  height: 2.1rem;
  background: var(--orange-bar);
}

/* ==========================================================================
   NAGŁÓWEK  (y 21–≈197)
   ========================================================================== */
.hdr {
  position: absolute;
  top: 2.1rem; left: 0; right: 0;
  z-index: 40;
  padding-top: 4.4rem;               /* logo start: y 65 */
}
.hdr__inner {
  position: relative;
  width: min(var(--container), 100% - 2 * var(--pad));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 4.8rem;
}
.hdr__nav {
  display: flex;
  align-items: center;
  gap: 4.1rem;
  font-size: 1.98rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hdr__nav--left  { justify-content: flex-end; }
.hdr__nav--right { justify-content: flex-start; }
.hdr__nav a { position: relative; padding-block: .6rem; }
.hdr__nav a::after {
  content: ""; position: absolute; left: 0; right: .1em; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.hdr__nav a:hover::after { transform: scaleX(1); }

.hdr__logo img { width: 46.8rem; height: auto; }

.hdr__ig {
  position: absolute;
  right: 0;
  top: calc(50% - .5rem);            /* środek ikony na y 126 */
  transform: translateY(-50%);
  width: 3.2rem;
}
.hdr__ig img { width: 100%; height: auto; }

.burger { display: none; }

/* ==========================================================================
   HERO  (y 21–1034, wys. 1013)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 101.3rem;
  min-height: calc(100svh - 2.1rem); /* okno minus pasek nad nagłówkiem */
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  z-index: -1;
}
.hero__inner {
  width: min(var(--container), 100% - 2 * var(--pad));
  margin-inline: auto;
  display: flex;
  justify-content: flex-end;
}
.hero__text {
  width: 74rem;
  margin-right: 23.9rem;             /* środek bloku na x 1183 */
  transform: translateY(3.64rem);    /* przesunięcie względem środka pasa */
  text-align: center;
  color: #fff;
}
.hero__h1 {
  margin-top: 2.59rem;
  font-size: 4.107rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .01em;
}
.hero__h1 b { font-weight: 700; }
.hero__h1 { white-space: nowrap; }
.hero__lead { margin-top: 1.31rem; }
.hero__text .btn { margin-top: 3.09rem; --bw: 26.5rem; }

.hero__contact {
  position: absolute;
  right: calc(50% - min(var(--container), 100vw - 2 * var(--pad)) / 2);
  bottom: 8.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.2rem;
  color: #fff;
  font-weight: 500;
  line-height: 1.2;
}
.hero__contact a {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  transition: opacity .25s var(--ease);
}
.hero__contact a:hover { opacity: .75; }
.hero__contact img { width: 2.7rem; height: auto; }

/* ==========================================================================
   SEKCJA WSTĘPNA  (y 1034–1438, wys. 404)
   ========================================================================== */
.intro {
  position: relative;
  min-height: 54.54rem;              /* 404 px z makiety + 35% */
  display: flex;
  align-items: center;
  background: var(--cream-a);
  overflow: hidden;
  text-align: center;
}
.intro__inner {
  position: relative;
  z-index: 1;
  width: min(120rem, 100% - 2 * var(--pad));
  margin-inline: auto;
  transform: translateY(-1.3rem);    /* przesunięcie względem środka pasa */
}
.intro__p {
  margin-top: 1.99rem;
  max-width: 86rem;
  margin-inline: auto;
}
.intro__lead {
  margin-top: 2.47rem;
  font-size: 2.7rem;
  line-height: 3.142rem;
}
/* gałązka lewa: x −397…329, y 927…1336 (odbita w pionie) */
.intro__deco-l {
  left: -39.7rem; top: -10.7rem;
  width: 72.6rem;
  transform: scaleY(-1);
}
/* gałązka prawa — wychodzi z prawego dolnego narożnika sekcji */
.intro__deco-r {
  left: auto; top: auto;
  right: -20rem; bottom: -17rem;
  width: 76rem;
  transform: rotate(26deg);
}

/* ==========================================================================
   JAK PRACUJĘ  (y 1438–2203, wys. 765)
   ========================================================================== */
.how {
  position: relative;
  min-height: 76.5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  text-align: center;
}
.how picture { display: contents; }
.how__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  z-index: -1;
}
.how__inner {
  width: min(144rem, 100% - 2 * var(--pad));
  margin-inline: auto;
  transform: translateY(-.64rem);    /* przesunięcie względem środka pasa */
}
.script--how img { width: 40.8rem; height: auto; margin-inline: auto; }
/* napis wyżej o 10% własnej wysokości (10,69rem) — karty zostają na miejscu */
.script--how { transform: translateY(-1.07rem); }

.how__grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.card__icon { width: 18.9rem; height: auto; }
.card__title {
  margin-top: 2.94rem;
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .01em;
}
.card__text { margin-top: 1.51rem; }
.card .btn { margin-top: 3.33rem; --bw: 17.4rem; }

/* ==========================================================================
   HISTORIE POŻEGNAŃ  (y 2203–4070)
   ========================================================================== */
.stories {
  position: relative;
  overflow: hidden;
}
.stories--a { background: var(--cream-a); }   /* Marek */
.stories--b { background: var(--cream-b); }   /* Joanna, Władysław */

.stories__head {
  position: relative;
  z-index: 1;
  width: min(120rem, 100% - 2 * var(--pad));
  margin-inline: auto;
  padding-top: 7.32rem;              /* nagłówek: y 2286 */
  text-align: center;
}
.stories__sub { margin-top: 1.25rem; }

.story {
  position: relative;
  z-index: 1;
  width: min(140rem, 100% - 2 * var(--pad));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 45.6rem 1fr;
  column-gap: 9rem;
  align-items: center;
  padding-block: 3.26rem 3.3rem;     /* wiersz Joanny */
}
.stories--a.story-row .story {                 /* Marek: 587 px, siatka 1391 px */
  width: min(139.1rem, 100% - 2 * var(--pad));
  column-gap: 7.4rem;
  padding-block: 6.4rem 6.7rem;
  transform: translateX(1.25rem);
}
.stories--b.story-row .story { padding-block: 6.7rem 6.9rem; }   /* Władysław: 592 px */
.story--rev { direction: rtl; }
.story--rev > * { direction: ltr; }

.story__media img {
  width: 45.6rem; height: 45.6rem;
  border-radius: 50%;
  object-fit: cover;
}
/* Kółko ze zdjęciem prowadzi do historii — kontener ma dokładnie szerokość
   zdjęcia, więc blokowy odnośnik nie łapie kliknięć obok koła. */
.media-link {
  display: block;
  border-radius: 50%;
  transition: opacity .25s ease;
}
.media-link:hover { opacity: .88; }
.media-link:focus-visible {
  outline: .3rem solid var(--orange);
  outline-offset: .6rem;
  border-radius: 50%;
}
.story__body { max-width: 85.4rem; }
/* w makiecie bloki tekstu nie są idealnie wyśrodkowane względem koła */
#historie .story__body             { transform: translateY(-1.90rem); }
.stories--a.story-row .story__body { transform: translateY(.20rem); }
.stories--b.story-row .story__body { transform: translateY(-1.34rem); }
.story__name {
  font-size: 4.107rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .01em;
}
.story__text { margin-top: 1.21rem; max-width: 81.5rem; }
.stories--a.story-row .story__body { max-width: none; }
.stories--a.story-row .story__text { max-width: 86rem; }
.story__body .btn { margin-top: 3.8rem; --bw: 22.6rem; }

/* gałązki — zasada: ucięty koniec zawsze poza kadrem, do środka wchodzą liście
   (branch-a ma koniec pnia po PRAWEJ, branch-b w LEWYM DOLNYM rogu) */
.stories__deco-l { left: -53.5rem; top: -6.8rem;  width: 81.8rem; transform: rotate(180deg); }
.stories__deco-r { left: auto; top: auto; right: -62rem; bottom: -4rem; width: 103.4rem; transform: scaleX(-1); }
.story__deco-r   { left: calc(50% + 17.4rem); top:  4.8rem; width: 81.8rem;  transform: scaleY(-1); }
.story__deco-r--tilt {
  left: calc(50% + 28.075rem); top: 34.715rem;
  width: 81.77rem;
  transform: rotate(-2.67deg) scaleY(-1);
}

/* ==========================================================================
   FAQ  (y 4070–4722, wys. 652)
   ========================================================================== */
.faq {
  position: relative;
  min-height: 74.82rem;              /* 652 px z makiety + 35%, potem −15% */
  display: flex;
  align-items: center;
  background: var(--red);
  color: #fff;
  overflow: hidden;
}
.faq__wm {
  position: absolute;
  right: -44.8rem;                   /* poziomo jak w PSD (x 1280…2368) */
  top: 58.91rem;                     /* dolna krawędź sekcji tnie napis w połowie wysokości małej „a” */
  width: 108.8rem;
  z-index: 0;
  pointer-events: none;
}
.faq__inner {
  position: relative;
  z-index: 1;
  width: min(120rem, 100% - 2 * var(--pad));
  margin-inline: auto;
  transform: translateY(-.59rem);    /* przesunięcie względem środka pasa */
}
.script--faq img {
  position: relative;
  left: -.55rem;                     /* środek napisu na x 954,5 */
  width: 58.17rem; height: auto;
  margin-inline: auto;
  transform: rotate(2.06deg);
}

.faq__list { margin-top: -.51rem; }
.faq__item:not(:last-child) { border-bottom: 2px solid rgba(255,255,255,.5); }

.faq__q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
  padding-block: 2.8rem 2.6rem;
  text-align: left;
  font-size: 2.095rem;
  font-weight: 500;
  line-height: 1.43;
  letter-spacing: .025em;
  text-transform: uppercase;
  transition: opacity .25s var(--ease);
}
.faq__q:hover { opacity: .82; }
.is-open .faq__q { padding-bottom: 1.23rem; }

/* ikona +/− rysowana w CSS (w PSD: znak z kroju Light, 41 px) */
.faq__ico {
  position: relative;
  flex: none;
  width: 1.9rem; height: 1.9rem;
  margin-top: .5rem;
}
.faq__ico::before, .faq__ico::after {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 100%; height: 2px;
  background: currentColor;
  transform: translateY(-50%);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.faq__ico::after { transform: translateY(-50%) rotate(90deg); }
.is-open .faq__ico::after { transform: translateY(-50%) rotate(0deg); opacity: 0; }

.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}
.is-open .faq__panel { grid-template-rows: 1fr; }
.faq__a { overflow: hidden; }
.faq__a p { padding-bottom: 2.77rem; padding-right: 6rem; }

/* ==========================================================================
   CEREMONIE — pas ze zdjęciem  (y 4722–5500, wys. 778)
   ========================================================================== */
.cta {
  position: relative;
  min-height: 77.8rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
.cta__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  z-index: -1;
}
.cta__inner {
  width: min(var(--container), 100% - 2 * var(--pad));
  margin-inline: auto;
  padding-left: 19rem;               /* kolumna tekstu: x 318 */
  transform: translateY(-1.45rem);   /* przesunięcie względem środka pasa */
}
.script--cta img { width: 49.8rem; height: auto; margin-left: -1.3rem; }
.cta__text {
  margin-top: 1.27rem;
  max-width: 48rem;
  font-weight: 500;
}
.cta__inner .btn { margin-top: 5.08rem; --bw: 25.7rem; }

/* ==========================================================================
   KONTAKT  (y 5500–…, w makiecie 808 px)
   Sekcja jest wyższa od makiety o wysokość etykiety „TELEFON”, którego
   w PSD nie było — pola dostały równy oddech zamiast ściśnięcia.
   ========================================================================== */
.contact {
  min-height: 89.4rem;
  background: var(--cream-b);
}
.contact__inner {
  width: min(118rem, 100% - 2 * var(--pad));
  margin-inline: auto;
  padding-top: 8.3rem;
}
.script--contact img { width: 37.6rem; height: auto; margin-inline: auto; }

.form { margin-top: 4.1rem; }          /* etykieta „IMIĘ…” na y 5802 */
.form__row { margin-top: 4rem; }
.form__row:first-child { margin-top: 0; }
.form__row--2 {
  display: grid;
  grid-template-columns: 56.7rem 56.7rem;
  justify-content: space-between;
}
.field { display: flex; flex-direction: column; }
.field label {
  font-size: 2.095rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.field input,
.field textarea {
  margin-top: .4rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--rule);
  font-size: 2.1rem;
  line-height: 3.142rem;
  color: var(--ink);
  transition: border-color .25s var(--ease);
}
.field input { height: 3.4rem; }
.field textarea { resize: vertical; height: 12.5rem; min-height: 12.5rem; }
.field input:focus,
.field textarea:focus { border-color: var(--ink); outline: none; }
.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--red); }

.form__actions { margin-top: 5.5rem; text-align: center; }
.form__actions .btn { --bw: 14.9rem; }
.form__status {
  margin-top: 1.6rem;
  text-align: center;
  font-size: 1.8rem;
  min-height: 2.6rem;
}

.form__status.is-error { color: #C81E00; }

/* ==========================================================================
   STOPKA  (y 6308–6729, wys. 421)
   ========================================================================== */
.ftr {
  min-height: 42.1rem;
  background: var(--ink);
  color: #fff;
}
.ftr__inner {
  width: min(var(--container), 100% - 2 * var(--pad));
  margin-inline: auto;
  padding-top: 8.2rem;
  display: grid;
  grid-template-columns: 70.2fr 37.2fr 48.5fr 10.5fr;
}
.ftr__logo { width: 30.3rem; height: auto; margin-left: -.7rem; }
.ftr__name {
  margin-top: 2.8rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .01em;
}
.ftr__role { margin-top: .78rem; }

.ftr__h {
  font-size: 2.095rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .01em;
  padding-top: 1.89rem;
}
.ftr__list { margin-top: .59rem; }
.ftr__list a { transition: opacity .25s var(--ease); }
.ftr__list a:hover { opacity: .7; }
.ftr__copy {
  margin-top: 7.15rem;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--muted);
}
.ftr__ig { display: block; width: 3.2rem; margin-top: 1.5rem; }

/* ---------- dwa zdjęcia w kółku, przenikające się co 3 s ---------- */
.xfade { position: relative; display: inline-block; }
.xfade img + img {
  position: absolute; left: 0; top: 0;
  animation: xfade 6s infinite;
}
@keyframes xfade {
  0%, 42%  { opacity: 0; }
  50%, 92% { opacity: 1; }
  100%     { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .xfade img + img { animation: none; opacity: 0; }
}

/* ==========================================================================
   „WKRÓTCE” — pigułka pojawiająca się po kliknięciu w Blog
   ========================================================================== */
.soon {
  position: fixed;
  left: 50%;
  top: 22rem;                        /* poniżej logo w nagłówku */
  z-index: 90;
  transform: translate(-50%, -1.2rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility 0s linear .28s;
}
.soon.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s, 0s, 0s;
}

/* ==========================================================================
   MENU MOBILNE
   ========================================================================== */
.mnav { display: none; }

/* ==========================================================================
   RESPONSYWNOŚĆ
   ========================================================================== */

/* --- wąskie laptopy: skala jest już przycięta, więc zwężamy marginesy --- */
@media (min-width: 1081px) and (max-width: 1612px) {
  :root { --pad: 6rem; }
  .hdr__inner { column-gap: 3.4rem; }
  .hdr__logo img { width: 40rem; }
  .hdr__nav { gap: 3rem; }
  .hero__text { margin-right: 14rem; }
  .cta__inner { padding-left: 10rem; }
}

@media (min-width: 1081px) and (max-width: 1320px) {
  .hdr__logo img { width: 34rem; }
  .hdr__nav { gap: 2.4rem; font-size: 1.86rem; }
  .hero__text { margin-right: 6rem; width: 70rem; }
  .story { column-gap: 6rem; }
  .story__text br, .hero__lead br { display: none; }
  .cta__inner { padding-left: 4rem; }
}

/* --- tablet i mniej: przełączamy skalę na piksele --- */
@media (max-width: 1080px) {
  html { font-size: 10px; }

  :root { --pad: 6.4rem; --container: 100rem; }   /* podwojone marginesy boczne */

  body { font-size: 1.7rem; line-height: 2.7rem; }

  .h2, .story__name, .hero__h1 { font-size: 3.2rem; }
  .card__title { font-size: 2.4rem; }
  .eyebrow { font-size: .84rem; }   /* −40% */
  .intro__lead { font-size: 2rem; line-height: 3rem; }
  .btn { height: 5.4rem; padding-inline: 3rem; font-size: 1.6rem; }

  /* nagłówek */
  .hdr { padding-top: 1.8rem; padding-bottom: 1.8rem; background: rgba(255,253,244,.92); backdrop-filter: blur(8px); top: 2.1rem; }
  .hdr__inner { grid-template-columns: 1fr auto; column-gap: 2rem; }
  .hdr__nav, .hdr__ig { display: none; }
  .hdr__logo { grid-column: 1; }
  .hdr__logo img { width: 25.96rem; }        /* +18% */
  .hdr__logo { transform: translateY(.73rem); }  /* 10% wysokości logo niżej */
  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: .6rem;
    grid-column: 2; justify-self: end;
    width: 4.4rem; height: 4.4rem;
  }
  .burger span {
    display: block; height: 2px; width: 80%; align-self: flex-end; background: var(--ink);
    transition: transform .3s var(--ease), opacity .2s var(--ease);
  }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(.8rem) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-.8rem) rotate(-45deg); }

  .mnav {
    display: block;
    position: fixed; inset: 0;
    z-index: 60;
    background: var(--cream-a);
    padding: 12rem var(--pad) 4rem;
    overflow-y: auto;
    font-size: 2.4rem; line-height: 2;
    letter-spacing: .06em; text-transform: uppercase;
  }
  .mnav[hidden] { display: none; }
  .mnav a { display: block; }
  .mnav__meta {
    margin-top: 4rem; padding-top: 3rem;
    border-top: 1px solid rgba(0,0,0,.15);
    font-size: 1.7rem; letter-spacing: .01em; text-transform: none; line-height: 2.2;
  }
  body.is-locked { overflow: hidden; }
  /* przy otwartym menu nagłówek (logo + krzyżyk) zostaje na wierzchu */
  body.is-locked .hdr { position: fixed; top: 0; z-index: 70; }

  /* hero */
  /* na mobilce hero: tytuł i przycisk w dolnej części kadru, bez cieni i przyciemnień */
  .hero { min-height: calc(100svh - 2.1rem); flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 5.4rem; }  /* odstęp = wysokość przycisku */
  .hero__bg { object-position: 30% 48%; }
  .hero__inner { justify-content: center; flex: none; }
  .hero__text {
    width: 100%; max-width: 58rem; margin-right: 0; transform: none;
    display: flex; flex-direction: column; align-items: center;
  }
  .hero__h1 { margin-top: 1.28rem; }   /* −20% */
  .hero__h1 { white-space: normal; }
  .hero__h1 br, .hero__lead br, .story__text br { display: none; }
  .btn { --bw: auto !important; }
  .hero__lead { margin-top: 1.4rem; }
  .hero__text .btn { margin-top: 2.6rem; }
  .hero__contact { display: none; }   /* telefon i mail są w menu i w stopce */
  .hero__contact img { width: 2.2rem; }

  /* wstęp */
  .intro { min-height: 0; padding-block: 7rem; display: block; }
  .intro__inner { transform: none; }
  .intro__p { margin-top: 2rem; }
  .intro__lead { margin-top: 2rem; }
  .deco { opacity: .5; }
  .intro__deco-l { left: -20rem; top: -5rem; width: 34rem; }
  .intro__deco-r { left: auto; top: auto; right: -17rem; bottom: -9rem; width: 38rem; }

  /* jak pracuję */
  .how { min-height: 0; padding-block: 7rem 8rem; }
  .how__inner { padding-top: 0; }
  .script--how img { width: 28rem; }
  .script--how { transform: none; }
  .how__grid { margin-top: 4rem; grid-template-columns: 1fr; gap: 5rem; }
  .card__icon { width: 12rem; }
  .card__title { margin-top: 1.8rem; }
  .card__text { margin-top: 1rem; }
  .card__text br { display: none; }
  .card .btn { margin-top: 2.2rem; }

  /* historie */
  .stories__head { padding-top: 7rem; }
  .stories__sub { margin-top: 1.2rem; }
  .story {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 3rem;
    padding-block: 4rem 7rem;
    text-align: center;
  }
  .stories--a.story-row .story,
  .stories--b.story-row .story {
    width: min(100rem, 100% - 2 * var(--pad));
    column-gap: 0;
    padding-block: 7rem;
    transform: none;
  }
  .story__body,
  .stories--a.story-row .story__body,
  .stories--b.story-row .story__body { transform: none; max-width: 60rem; }
  .story--rev { direction: ltr; }
  .story__media img { width: 30rem; height: 30rem; }
  .story__body { max-width: 60rem; }
  .story__text { margin-top: 1rem; }
  .story__body .btn { margin-top: 2.4rem; }
  .stories__deco-l { left: -24rem; top: -2rem; width: 40rem; }
  .stories__deco-r { display: none; }          /* wchodził na „Historie pożegnań” */
  .story__deco-r,
  .story__deco-r--tilt { left: auto; right: -24rem; top: 2rem; width: 40rem; }

  /* faq */
  .faq { min-height: 0; padding-block: 7rem 8rem; display: block; }
  .faq__inner { transform: none; }
  .script--faq img { width: 32rem; }
  /* Szerokość jest przycinana przez globalne max-width:100%, więc stała wartość
     w rem dawała różny wynik przy różnych szerokościach okna. Procent w translateY
     liczy się od własnej wysokości obrazka — dolna krawędź sekcji tnie napis
     dokładnie w połowie małej „a” (52% wysokości) przy każdej szerokości. */
  .faq__wm { right: -18rem; top: auto; bottom: 0; width: 60rem; transform: translateY(48%); }
  .faq__list { margin-top: 3.4rem; }
  .faq__q { font-size: 1.6rem; padding-block: 1.8rem; gap: 2rem; }
  .faq__a p { padding-right: 0; padding-bottom: 1.8rem; }
  .faq__item + .faq__item,
  .faq__item:not(:last-child) { border-width: 1px; }

  /* cta */
  .cta { min-height: 0; padding-block: 7rem 8rem; }
  .cta__inner { padding-top: 0; padding-left: 0; }
  .script--cta img { width: 30rem; margin-left: 0; }
  .cta__text { margin-top: 2rem; max-width: 42rem; }
  .cta__inner .btn { margin-top: 2.6rem; }

  /* kontakt */
  .contact { min-height: 0; padding-block: 7rem 8rem; }
  .contact__inner { padding-top: 0; }
  .script--contact img { width: 24rem; }
  .form { margin-top: 4rem; }
  .form__row { margin-top: 4rem; }
  .form__row--2 { grid-template-columns: 1fr; row-gap: 4rem; }
  .form__actions { margin-top: 4rem; }

  /* stopka */
  .ftr { min-height: 0; padding-block: 6rem 5rem; }
  .ftr__inner {
    padding-top: 0;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 4rem; column-gap: 3rem;
  }
  .ftr__brand { grid-column: 1 / -1; }
  .ftr__logo { width: 22rem; margin-left: 0; }
  .ftr__name { margin-top: 2.4rem; }
  .ftr__h { padding-top: 0; }
  .ftr__copy { margin-top: 2.4rem; }
}

/* --- telefon --- */
@media (max-width: 640px) {
  :root { --pad: 4.8rem; }                         /* podwojone marginesy boczne */

  body { font-size: 1.6rem; line-height: 2.6rem; }
  .h2, .story__name, .hero__h1 { font-size: 2.7rem; }
  .card__title { font-size: 2.2rem; }
  .intro__lead { font-size: 1.8rem; line-height: 2.8rem; }
  .btn { height: 5rem; padding-inline: 2.6rem; font-size: 1.4rem; }

  .hero { padding-bottom: 5rem; }   /* odstęp = wysokość przycisku */
  .hero__text { padding-top: 6rem; }
  .hero__contact { font-size: 1.4rem; }

  .story__media img { width: 24rem; height: 24rem; }
  .script--how img,
  .script--faq img { width: 22rem; }
  .script--cta img { width: 22rem; }
  .script--contact img { width: 19rem; }
  .faq__q { font-size: 1.4rem; }

  .ftr__inner { grid-template-columns: 1fr; }
}

/* --- redukcja ruchu --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ==========================================================================
   PODSTRONY — elementy wspólne
   Pas nagłówkowy 1920 × 449 (w PSD y 21–470), pod nim treść, potem
   ten sam formularz kontaktowy i ta sama stopka co na stronie głównej.
   ========================================================================== */
:root {
  --accent:      #FE961B;   /* pigułki i paski akcentu na podstronach */
  --accent-line: #E09947;   /* ramka karty z ceną */
  --accent-soft: #D39F65;   /* ramka boxów z dopłatami */
  --bar-idle:    #F4DCC2;   /* nieaktywny pasek menu bocznego */
  --hair:        #EDDDC6;   /* cienka linia rozdzielająca */
}

.page-band {
  position: relative;
  min-height: 44.9rem;
  display: flex;
  align-items: flex-start;          /* pozycja liczona od góry, nie od środka pasa */
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.page-band__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  z-index: -1;
}
.page-band__title {
  padding-top: 26.34rem;             /* środek napisu 288 px pod górną krawędzią pasa:
                                        w połowie między dołem „a” z logo a dolną krawędzią
                                        pasa w makiecie 1920 px — i tyle samo na szerszych
                                        monitorach, gdzie pas rośnie tylko w dół */
  font-size: 4.107rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .01em;
  color: #fff;
}
/* aktywna pozycja w menu jest podkreślona */
.hdr__nav a[aria-current="page"]::after { transform: scaleX(1); }

/* sekcja treści podstrony */
.page {
  position: relative;
  background: var(--cream-a);
  overflow: clip;                     /* clip, żeby sticky menu etapów działało */
}
.page__inner {
  position: relative;
  z-index: 1;
  width: min(var(--container), 100% - 2 * var(--pad));
  margin-inline: auto;
}

/* wariant sekcji kontaktowej z danymi obok napisu (strona Kontakt) */
.contact--split .contact__head {
  display: grid;
  grid-template-columns: 61.3rem 1fr;   /* druga kolumna równo z polem „E MAIL” */
  column-gap: 0;
  align-items: start;
  width: min(118rem, 100% - 2 * var(--pad));
  margin-inline: auto;
}
.contact--split .script--contact img { margin-inline: 0; }
.contact--split .contact__details {
  padding-top: 4.1rem;
  font-size: 2.36rem;                   /* +15% */
  font-weight: 500;
  line-height: 3.09rem;
  letter-spacing: .01em;
}
.contact--split .contact__details a { display: block; transition: opacity .25s var(--ease); }
.contact--split .contact__details a:hover { opacity: .6; }

/* ---------- HISTORIE: trzy karty ---------- */
.cards3 {
  position: relative;
  z-index: 1;                        /* karty zawsze nad gałązkami */
  display: grid;
  grid-template-columns: repeat(3, 38.6rem);
  justify-content: space-between;
  width: min(134.4rem, 100% - 2 * var(--pad));
  margin-inline: auto;
  padding-block: 8.3rem 8.5rem;
}
.card3__media img { width: 38.6rem; height: 38.6rem; border-radius: 50%; object-fit: cover; }
.card3__name  { margin-top: 3.5rem; font-size: 4.107rem; font-weight: 400; line-height: 1.2; letter-spacing: .01em; }
.card3__text  { margin-top: 1.6rem; }
.card3 .btn   { margin-top: 3.5rem; --bw: 22.8rem; }

/* ---------- CENNIK ---------- */
.price { padding-block: 8.2rem 9.5rem; text-align: center; }
.price__lead { max-width: 86rem; margin-inline: auto; font-size: 2.7rem; line-height: 3.8rem; }
.price__card {
  position: relative;
  width: 87.2rem; margin: 8.3rem auto 0;
  padding: 6.4rem 4rem 5rem;
  border: 1px solid var(--accent-line);
  border-radius: 1.4rem;
}
.price__badge {
  position: absolute; left: 50%; top: 0;
  transform: translate(-50%, -50%);
  --bw: 31.6rem;
  background: var(--accent);
}
.price__value { font-size: 7.7rem; font-weight: 400; line-height: 1.1; letter-spacing: .01em; }
.price__unit  { margin-top: 1.1rem; }
.price__note  { margin-top: 2.4rem; }
.price__extra-label { margin-top: 3.3rem; }
.price__grid {
  display: grid; grid-template-columns: repeat(2, 41.1rem);
  justify-content: space-between;
  width: 87.2rem; margin: 2.9rem auto 0;
}
.price__box {
  padding: 4.6rem 2.4rem 4rem;
  border: 1px solid var(--accent-soft);
  border-radius: 1.4rem;
}
.price__box strong { display: block; font-size: 3.7rem; font-weight: 400; line-height: 1.1; letter-spacing: .01em; }
.price__box span   { display: block; margin-top: 2.1rem; }
.price__terms { max-width: 86rem; margin: 6.5rem auto 0; }

/* ---------- CEREMONIE: etapy ---------- */
.stages { display: grid; grid-template-columns: 38.4rem 1fr; padding-block: 9.4rem 0; }
.stages__nav { position: sticky; top: 4rem; align-self: start; margin-left: -3.7rem; }
.stages__nav a {
  display: block;
  padding: 1.4rem 0 1.4rem 3.9rem;
  border-left: 1.4rem solid var(--bar-idle);
  font-size: 3.2rem; line-height: 1.2; letter-spacing: .01em;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.stages__nav a.is-active,
.stages__nav a:hover { border-color: var(--accent); }

.stage { position: relative; display: grid; grid-template-columns: 18.9rem 1fr; column-gap: 5.2rem; }
.stage + .stage { margin-top: 8.4rem; padding-top: 9.4rem; }
/* linia rozdzielająca z PSD: x 360–1563 */
.stage + .stage::before {
  content: ""; position: absolute; left: -15.2rem; top: 0;
  width: 120.3rem; height: 1px; background: var(--hair);
}
.stage__icon { width: 18.9rem; height: auto; }
.stage__label { font-size: 2.095rem; font-weight: 700; line-height: 2.554rem; letter-spacing: .2em; text-transform: uppercase; }
.stage__title { margin-top: 2.1rem; font-size: 4.107rem; font-weight: 500; line-height: 1.2; letter-spacing: .01em; }
.stage__body  { margin-top: 2.4rem; max-width: 85.4rem; }
.stage__body p + p { margin-top: 3.1rem; }
.stage__list { margin-top: 2.4rem; max-width: 85.4rem; }
.stage__list li { position: relative; padding-left: 1.8rem; }
.stage__list li + li { margin-top: 3.1rem; }
.stage__list li::before { content: "·"; position: absolute; left: 0; }

.outro { padding-block: 10.5rem 10rem; text-align: center; }
.outro h2 { font-size: 4.107rem; font-weight: 400; line-height: 1.2; letter-spacing: .01em; }
.outro p { max-width: 112rem; margin: 2.5rem auto 0; }
.outro p + p { margin-top: 3.1rem; }
.outro strong { font-weight: 700; }

/* ---------- JOANNA: pojedyncza historia ---------- */
.storypage { position: relative; z-index: 1; display: grid; grid-template-columns: 38.6rem 1fr; column-gap: 7.9rem; padding-block: 10.6rem 12.5rem; }
.storypage__media img { width: 38.6rem; height: 38.6rem; border-radius: 50%; object-fit: cover; }
.storypage__name { font-size: 4.107rem; font-weight: 500; line-height: 1.2; letter-spacing: .01em; }
.storypage__body { margin-top: 2.4rem; max-width: 85.6rem; }
.storypage__body p + p { margin-top: 3.1rem; }
.storypage .btn { margin-top: 6.8rem; --bw: 31.6rem; }

/* znak wodny „Pani Dylewska” w sekcji kontaktowej (strona Ceremonie) */
.contact { position: relative; overflow: clip; }
.contact__wm {
  position: absolute;
  right: -53.8rem; top: 0;
  width: 108.8rem;
  opacity: .5;
  z-index: 0;
  pointer-events: none;
}
.contact__inner { position: relative; z-index: 1; }

/* dekoracje na podstronach (pozycje z PSD, względem sekcji treści) */
.page .deco { z-index: 0; }
/* Historie — pozycje z PSD, orientacja tak, by wystawały liście */
.page .stories__deco-l { left: -55.5rem; top: 21.3rem;  width: 81.8rem;  transform: rotate(180deg); }
.page .stories__deco-r { left: auto; right: -62rem; top: 31.4rem; width: 103.4rem; transform: scaleX(-1); }
/* Cennik / Joanna */
.price__deco-l { left: -54.9rem; top: -5.5rem; width: 103.4rem; }
.price__deco-r { left: auto; right: -49.08rem; top: 56.5rem; width: 81.8rem; }   /* 60% poza kadrem */
/* O mnie — gałązka wychodzi zza prawej krawędzi */
.about__deco-r { left: auto; right: -34rem; top: 46rem; width: 90rem; }
/* O mnie, pas „Dlaczego…” — z prawego dolnego narożnika sekcji */
.about-why__deco {
  left: auto; top: auto;
  right: -22rem; bottom: -16rem;
  width: 82rem;
  transform: rotate(24deg);
}
/* Ceremonie */
.cer__deco-1 { left: -53.5rem;  top: 54rem;     width: 81.8rem;  transform: rotate(180deg); }
.cer__deco-2 { left: -40.07rem; top: 199.06rem; width: 103.4rem; transform: rotate(96.67deg) scaleX(-1); }

/* ---------- responsywność podstron ---------- */
@media (max-width: 1080px) {
  .page-band { min-height: 52rem; }        /* 2x wyższy kadr zdjęcia */
  /* kadr pionowy pokazuje 17,5% szerokości zdjęcia — bez tego widać sam środek pola */
  .page-band--omnie .page-band__bg { object-position: 75% 50%; }
  .page-band__title { padding-top: 0; font-size: 3rem; transform: none; }
  .page-band { display: flex; align-items: center; justify-content: center; padding-top: 10.1rem; }  /* = wysokość nagłówka, więc tytuł ląduje w środku widocznej części */

  .contact--split .contact__head {
    width: 100%;                      /* rodzic ma już marginesy — nie odejmujemy drugi raz */
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2.4rem; text-align: center;
  }
  .contact--split .script--contact img { margin-inline: auto; }
  .contact--split .contact__details { padding-top: 0; font-size: 2.2rem; line-height: 1.6; text-align: center; overflow-wrap: anywhere; }

  .cards3 { grid-template-columns: 1fr; justify-items: center; row-gap: 6rem; padding-block: 7rem; text-align: center; }
  .card3 { max-width: 46rem; }
  .card3__media img { width: 26rem; height: 26rem; }
  .card3__name { margin-top: 2.4rem; font-size: 2.7rem; }

  .price { padding-block: 7rem; }
  .price__lead { font-size: 2rem; line-height: 3rem; }
  .price__card { width: 100%; margin-top: 6rem; padding: 5rem 2.4rem 4rem; }
  .price__value { font-size: 4.6rem; }
  .price__grid { width: 100%; grid-template-columns: 1fr; row-gap: 2rem; }
  .price__box strong { font-size: 2.8rem; }

  .stages { grid-template-columns: 1fr; padding-block: 7rem 0; }
  .stages__nav { display: none; }
  .stage { grid-template-columns: 1fr; row-gap: 2.4rem; }
  .stage__icon { width: 12rem; }
  .stage + .stage { margin-top: 5rem; padding-top: 5rem; }
  .stage__title { font-size: 2.7rem; }
  .outro { padding-block: 6rem 7rem; }
  .outro h2 { font-size: 2.7rem; }

  .storypage { grid-template-columns: 1fr; justify-items: center; row-gap: 3rem; padding-block: 6rem 7rem; text-align: center; }
  .storypage__media img { width: 26rem; height: 26rem; }
  .storypage__name { font-size: 2.7rem; }
  .storypage .btn { margin-top: 3.4rem; }
}

/* ==========================================================================
   O MNIE
   Strony nie było w makietach — złożona z elementów istniejącego systemu:
   ta sama siatka, ta sama typografia, te same gałązki.
   ========================================================================== */
.about { position: relative; z-index: 1; padding-block: 10.6rem 10rem; }
.about__lead {
  display: grid;
  grid-template-columns: 38.6rem 1fr;
  column-gap: 7.9rem;
  align-items: start;
}
.about__body { max-width: 85.6rem; }
.about__body p + p { margin-top: 3.1rem; }

/* dwie karty z dorobkiem — ten sam język co boxy w cenniku */
.about__cards {
  margin-top: 8.4rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 5.2rem;
}
.about__card {
  padding: 5rem 4.4rem;
  border: 1px solid var(--accent-soft);
  border-radius: 1.4rem;
}
.about__card h3 {
  font-size: 2.095rem; font-weight: 700; line-height: 2.554rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
}
.about__card p { margin-top: 2.1rem; }

/* pas „Dlaczego wybrałam tę drogę?” */
.about-why {
  position: relative;
  background: #FDF7E5;               /* kremowy, rozjaśniony — odcina się od sekcji kontaktowej */
  overflow: clip;
  padding-block: 11.4rem 11rem;
}
.about-why__grid {
  display: grid;
  grid-template-columns: 52rem 1fr;
  column-gap: 9rem;
  align-items: start;
}
.about-why__h {
  padding-left: 3.9rem;
  border-left: 1.4rem solid var(--accent);
  font-size: 4.107rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .01em;
}
.about-why__body { max-width: 96rem; }
.about-why__body p + p { margin-top: 3.1rem; }
.about__quote {
  margin: 9.4rem auto 0;
  max-width: 96rem;
  padding-top: 5.4rem;
  border-top: 2px solid var(--accent);
  font-size: 2.7rem;
  line-height: 3.8rem;
  letter-spacing: .01em;
  text-align: center;
}

/* miejsca na zdjęcia — puste do czasu dostarczenia fotografii */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--accent-soft);
  color: var(--accent-soft);
  font-size: 1.7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
}
.ph--round { width: 38.6rem; height: 38.6rem; border-radius: 50%; }
.about__portrait img { width: 38.6rem; height: 38.6rem; border-radius: 50%; object-fit: cover; }
.ph--wide  { width: 100%; height: 46rem; margin-top: 8.4rem; border-radius: 1.4rem; }

@media (max-width: 1080px) {
  .about { padding-block: 6rem 6rem; }
  .about__lead { grid-template-columns: 1fr; row-gap: 3rem; justify-items: center; }
  .about__body { max-width: 60rem; }
  .about__cards { margin-top: 5rem; grid-template-columns: 1fr; row-gap: 2.4rem; }
  .about__card { padding: 3.4rem 2.8rem; }
  .about-why { padding-block: 6rem 7rem; }
  .about-why__deco { display: none; }             /* na wąskim ekranie wchodziła na tekst */
  .about-why__grid { grid-template-columns: 1fr; row-gap: 3rem; }
  .about-why__h { font-size: 2.7rem; padding-left: 2.4rem; border-left-width: .8rem; }
  .about__quote { margin-top: 5rem; padding-top: 3.4rem; font-size: 2rem; line-height: 3rem; text-align: left; }
  .ph--round { width: 26rem; height: 26rem; }
  .about__portrait img { width: 26rem; height: 26rem; }
  .ph--wide { height: 24rem; margin-top: 4rem; }
}

/* ==========================================================================
   POWYŻEJ 1920 px
   Typografia i układ są zamrożone, ale pasy ze zdjęciami zachowują proporcje
   z makiety — inaczej na szerokim monitorze robiłyby się z nich wąskie paski.
   ========================================================================== */
@media (min-width: 1920px) {
  .how       { min-height: calc(100vw *  765 / 1920); }
  .cta       { min-height: calc(100vw *  778 / 1920); }
  .page-band { min-height: calc(100vw *  449 / 1920); }
}
