/* ==========================================================================
   pracownia S. — Kwiaty i Dekoracje
   System wizualny: boutique floral studio × contemporary editorial.
   Fotografia prowadzi. Typografia: EB Garamond globalnie (nagłówki, tekst, UI).
   Kolory: chłodna biel, lawenda, neutralna szarość, grafit + fiolet marki jako kontrolowany akcent.
   Signature: warstwowe „aranżacje" zdjęć, cienki motyw łodygi (stem rule),
   ręczne podkreślenie kluczowych nagłówków.
   Wszystkie klasy / hooki używane przez js/main.js i Sanity są zachowane.
   --------------------------------------------------------------------------
   SPIS:
   01 Tokens          06 Editorial components   11 Portfolio / realizacje
   02 Reset / base    07 Home                   12 About
   03 Typography      08 Weddings               13 Contact
   04 Layout          09 Celebrations           14 Footer
   05 Header / nav    10 Flowers                15 Lightbox / states / responsive
   ========================================================================== */

/* 01 — TOKENS ============================================================= */

:root {
  /* Tła — paleta klientki (runda 1, 20.10.2026) */
  --paper:      #f7f9f8;   /* bazowe tło body + header */
  --paper-2:    #fbfbfb;   /* jaśniejsze neutralne — galerie / przyciski jasne */
  --blush:      #e1d7e2;   /* lawenda — sekcje wyróżnione */
  --blush-2:    #f3edf4;   /* jaśniejsza lawenda — panele / karty ofert */
  --sage:       #ecedec;   /* neutralny szary — sekcje pomocnicze */
  --footer-bg:  #e1e1e1;   /* dolna część stopki */
  --media-bg:   #ecedec;   /* placeholder pod zdjęciami (przed załadowaniem) */

  /* Grafit zamiast czerni */
  --ink:        #292428;   /* tekst główny */
  --ink-soft:   #6c636a;   /* tekst drugorzędny */
  --ink-faint:  #9a9096;   /* podpisy / meta */
  --dark:       #3f3a40;   /* ciemne sekcje / CTA kontaktowe */
  --on-dark:    #f7f9f8;   /* tekst na ciemnym */
  --on-dark-dim:rgba(247,249,248,.68);

  /* Fiolet marki — WYŁĄCZNIE akcent */
  --accent:      #8b4b91;
  --accent-dark: #6e3a74;
  --accent-soft: #e7cfe0;

  /* Linie */
  --line:      #dedadf;
  --line-2:    #d2cdd3;
  --line-soft: rgba(41, 36, 40, 0.12);
  --line-dark: rgba(246, 239, 232, 0.16);

  --ff-display: "EB Garamond", Georgia, "Times New Roman", serif;
  --ff-body:    "EB Garamond", Georgia, "Times New Roman", serif;

  --container:      1320px;
  --container-wide: 1500px;
  --container-text: 720px;
  --gutter:         clamp(1.1rem, 3vw, 2.5rem);
  --section:        clamp(1.9rem, 2.8vw, 3rem);
  --section-tight:  clamp(1.4rem, 2vw, 2rem);
  --header-h:       116px;
  --ease:           cubic-bezier(.22, .61, .36, 1);
}

/* 02 — RESET / BASE ======================================================= */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.68;
  /* EB Garamond ma niską wysokość małych liter (~0.41) — wyrównanie
     czytelności tekstu/UI bez zmiany rozmiarów w rem. Nagłówki: niżej. */
  font-size-adjust: 0.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin-top: 0; }

::selection { background: var(--accent-soft); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 999;
  background: var(--dark);
  color: #fff;
  padding: .7rem 1rem;
  border-radius: 2px;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

/* 03 — TYPOGRAPHY ========================================================= */

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-optical-sizing: auto;
  color: var(--ink);
  font-weight: 480;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* Elementy display zachowują dotychczasowe rozmiary (bez korekty x-height). */
h1, h2, h3, h4,
.display-italic,
.offer__price,
.price-row__name,
.spec-table caption,
.spec-table tbody th,
.pricing-panel__title,
.pricing-panel__lead,
.pullquote,
.site-header.nav-open .nav__link { font-size-adjust: none; }

h1 {
  font-size: clamp(2.7rem, 5.2vw, 4.35rem);
  line-height: 1.12;
  margin-bottom: 1.15rem;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.14;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  line-height: 1.2;
  margin-bottom: .65rem;
}

h4 {
  font-size: 1.16rem;
  line-height: 1.28;
  margin-bottom: .4rem;
  font-weight: 500;
}

/* Italiki EB Garamond jako editorial accent */
em, .italic { font-style: italic; }
.display-italic { font-family: var(--ff-display); font-style: italic; font-weight: 420; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.58;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.measure { max-width: 60ch; }
.measure-narrow { max-width: 46ch; }

/* Eyebrow — EB Garamond, uppercase, spacja, akcent */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.1rem;
  color: var(--accent);
  font-family: var(--ff-body);
  font-size: .73rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}
.eyebrow--light { color: var(--accent-soft); }
.eyebrow--center { justify-content: center; }

/* Nagłówki bez dekoracyjnego podkreślenia. Akcent typograficzny realizujemy
   kolorem/italic pojedynczych słów (.hl), nie kreską. */
.mark { text-decoration: none; }
.hl { color: var(--accent); font-style: italic; }

/* Signature: cienki motyw łodygi (dzielnik sekcji) */
.stem-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  color: var(--accent);
  margin: 0 auto;
}
.stem-rule::before,
.stem-rule::after {
  content: "";
  height: 1px;
  width: min(22vw, 150px);
  background: linear-gradient(to var(--dir, right), transparent, var(--line-2));
}
.stem-rule::before { --dir: left; }
.stem-rule svg { width: 34px; height: 22px; opacity: .85; }
.stem-rule--light { color: var(--accent-soft); }
.stem-rule--light::before,
.stem-rule--light::after { background-image: linear-gradient(to var(--dir, right), transparent, var(--line-dark)); }

/* 04 — LAYOUT ============================================================= */

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

.section { padding-block: var(--section); }
.section--tight { padding-block: var(--section-tight); }
.section--ivory { background: var(--paper-2); }
.section--blush { background: var(--blush); }
.section--sage  { background: var(--sage); }
.section--ink   { background: var(--dark); color: var(--on-dark); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--ink p { color: var(--on-dark-dim); }

/* pełne wtopienie zdjęć w krawędzie */
.bleed { width: 100vw; margin-inline: calc(50% - 50vw); }

.section-head {
  max-width: 48rem;
  margin-bottom: clamp(.75rem, 1.3vw, 1.25rem);
}
.section-head .lead, .section-head > p { color: var(--ink-soft); margin-bottom: 0; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.section-head--row {
  max-width: none;
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  align-items: flex-end;
}
.section-head--row > div { max-width: 46rem; }
.section-head--row .btn,
.section-head--row .textlink { flex: 0 0 auto; margin-bottom: .35rem; }

/* 05 — HEADER / NAV ======================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 249, 248, .9);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px);
  transition: border-color .3s ease, background .3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line-soft);
  background: rgba(247, 249, 248, .98);
}

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo — mocniejsza obecność marki.
   Lokalny fallback (logo-wordmark.png) ma te same proporcje 3:1 co logo z CMS,
   dzięki czemu object-fit: contain daje identyczny render przed i po pobraniu
   z Sanity (brak skoku rozmiaru / layout shift). */
.nav__logo {
  width: clamp(190px, 19vw, 225px);
  height: 88px;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  overflow: hidden;
}
.nav__logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  transform: none;
}

.nav__menu { display: flex; align-items: center; gap: clamp(.9rem, 1.8vw, 1.9rem); }

.nav__link {
  position: relative;
  padding: .45rem 0;
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition: color .22s var(--ease);
}
.nav__link:hover,
.nav__link:focus-visible { color: var(--accent); }
/* Statyczne, dyskretne podkreślenie wyłącznie aktywnej strony */
.nav__link[aria-current="page"] { color: var(--accent); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .05rem;
  height: 1.5px;
  background: var(--accent);
}

.nav__cta { margin-left: .5rem; white-space: nowrap; }

.nav__toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  width: 19px; height: 1.5px;
  left: 50%; margin-left: -9.5px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle span { top: 50%; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* 06 — EDITORIAL COMPONENTS =============================================== */

/* Buttons */
.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .01em;
  transition: background .22s ease, color .22s ease, border-color .22s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { border-color: rgba(41, 36, 40, .45); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { background: var(--paper-2); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--outline-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Textlink z animowaną strzałką */
.textlink {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--accent);
  font-weight: 600;
  font-size: .95rem;
  border-bottom: 1px solid transparent;
  transition: gap .22s ease, border-color .22s ease;
}
.textlink:hover { gap: .85rem; border-color: currentColor; }
.textlink svg, .ico { width: 1.05em; height: 1.05em; }
.section--ink .textlink { color: var(--accent-soft); }

.breadcrumb {
  margin-bottom: 1.4rem;
  color: var(--ink-soft);
  font-size: .82rem;
  letter-spacing: .02em;
}
.breadcrumb a:hover { color: var(--accent); }
.section--ink .breadcrumb, .hero-over .breadcrumb { color: var(--on-dark-dim); }

/* --- Offer rows (statyczne + generowane przez Sanity) --------------------
   Editorial index: naprzemienne kolumny, duży numer na zdjęciu.            */

.offer-list { display: grid; gap: clamp(1.4rem, 2.4vw, 2.25rem); }

.offer {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.25rem, 2.6vw, 2.5rem);
  align-items: center;
}
.offer:nth-child(even) .offer__media { order: 2; }
.offer:nth-child(even) .offer__body  { order: 1; }

.offer__media {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 520px;
  overflow: hidden;
  background: var(--media-bg);
}
.offer__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.offer:hover .offer__media img { transform: scale(1.04); }

.offer__body { max-width: 36rem; }
.offer__num {
  display: block;
  margin-bottom: .65rem;
  color: var(--accent);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.offer h3 { margin-bottom: .5rem; }
.offer__description,
.offer__body > p:not([class]) {
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: .85rem;
}

.offer__price {
  display: block;
  margin: 0 0 1.15rem;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--ink);
}

.svc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem 1.5rem;
  margin: 0 0 1.1rem;
}
.svc-list--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.svc-list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: .94rem;
  line-height: 1.45;
}
.svc-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .75;
}

.offer__price-info {
  padding-top: 1rem;
  margin: 0 0 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .88rem;
  line-height: 1.6;
  max-width: 58ch;
}

/* --- Panel treści oferty — bazowy shell -----------------------------------
   Wspólna baza. Home „Oferta" rozbudowuje go niżej w ekskluzywną kartę
   florystyczną; /uroczystosci/ (.page-events) zostaje na tym wariancie.      */
/* === Karta oferty — spokojny panel florystyczny ==========================
   Wspólny system dla home „Oferta" (#oferta) ORAZ /uroczystosci/ (.page-events):
   jedno jasne tło, pojedyncza delikatna ramka, bez ozdobników. */
#oferta .offer__body,
.page-events .offer__body {
  max-width: none;
  position: relative;
  padding: clamp(1.9rem, 2.9vw, 2.9rem) clamp(1.6rem, 2.7vw, 2.75rem);
  background: var(--blush-2);
  border: 1px solid rgba(139, 75, 145, .14);
  border-radius: 14px;
}
#oferta .offer__body > p:not([class]),
.page-events .offer__body > p:not([class]) { max-width: 46ch; }

#oferta .offer__body h3,
.page-events .offer__body h3 {
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  margin-bottom: .55rem;
}

#oferta .svc-list,
.page-events .svc-list {
  gap: .6rem 1.75rem;
  margin: 0 0 .35rem;
  padding: .4rem 0 .1rem;
}
#oferta .svc-list li,
.page-events .svc-list li { font-size: .92rem; }

/* CTA w panelu — lekki, „designed": pełnowymiarowy wiersz z hairline nad linkiem,
   etykieta z lewej, strzałka z prawej, subtelny ruch na hover. */
#oferta .offer__body .textlink,
.page-events .offer__body .textlink {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 1.15rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(139, 75, 145, .16);
  border-bottom: 0;
}
#oferta .offer__body .textlink svg,
.page-events .offer__body .textlink svg { transition: transform .22s var(--ease); }
#oferta .offer__body .textlink:hover svg,
.page-events .offer__body .textlink:hover svg { transform: translateX(4px); }

/* /uroczystosci/ — krótki tekst rozciąga ramkę na wysokość zdjęcia
   (align-items: stretch na .page-events .offer): panel wypełnia pion
   zamiast zostawiać pustkę obok wysokiego kadru. */
.page-events .offer__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- Feature sequence (proces / „jak pracujemy") -------------------------
   Editorialna oś typograficzna, nie karty.                                 */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.feature {
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-2);
}
.feature h3, .feature h4 { margin-bottom: .5rem; }

/* Numeracja etapów (01, 02…) — /sluby, /o-pracowni, /kontakt — licznik CSS, więc działa też dla kroków
   renderowanych z Sanity przez main.js (/sluby), bez zmian w JS. */
.page-weddings .feature-grid,
.page-about .feature-grid,
.page-contact .feature-grid { counter-reset: step; }
.page-weddings .feature-grid .feature,
.page-about .feature-grid .feature,
.page-contact .feature-grid .feature { counter-increment: step; }
.page-weddings .feature-grid .feature::before,
.page-about .feature-grid .feature::before,
.page-contact .feature-grid .feature::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 1.1rem;
  color: var(--accent);
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 2.1rem;
  line-height: 1;
  font-size-adjust: none;
}
.page-weddings .feature-grid .feature::before { font-size: 1.9rem; margin-bottom: .4rem; }
.feature p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 0; }
.section--ink .feature { border-top-color: var(--line-dark); }
.section--ink .feature p { color: var(--on-dark-dim); }

/* --- Editorial grid gallery ---------------------------------------------- */

.grid-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(.6rem, 1vw, 1rem);
}
.gitem {
  grid-column: span 3;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  background: var(--media-bg);
  cursor: zoom-in;
}
.gitem--wide { grid-column: span 6; aspect-ratio: 3 / 2; }
.gitem--tall { grid-column: span 3; aspect-ratio: 4 / 5; }
.grid-gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-gallery--3 .gitem { grid-column: auto; aspect-ratio: 4 / 5; }
.grid-gallery--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-gallery--4 .gitem { grid-column: auto; aspect-ratio: 4 / 5; }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }

/* Subtelne zaokrąglenie fotografii — galerie, realizacje, editorial.
   Pomijamy full-bleed (.image-band, .hero-over) oraz home hero. */
.gitem,
.masonry__item,
.offer__media,
.home-about__media,
.about-hero__media,
.contact-figure,
.flowers-intro__media,
.split-hero__pair figure,
.lookbook-hero__strip figure { border-radius: 8px; }
.gitem:hover img { transform: scale(1.04); }

/* Lookbook /kwiaty — równy grid „od linijki”.
   Ważne: resetujemy grid-column z bazowego .gitem { grid-column: span 3; },
   żeby każdy element zajmował dokładnie jedną kolumnę. */
.grid-gallery--lookbook {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: clamp(.6rem, 1vw, 1rem);
}

.grid-gallery--lookbook .gitem {
  display: block;
  width: 100%;
  min-width: 0;
  grid-column: auto;
  aspect-ratio: 4 / 5;
  margin: 0;
  break-inside: auto;
}

.grid-gallery--lookbook .gitem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* --- Masonry (portfolio z Sanity) ---------------------------------------- */

.masonry { column-count: 4; column-gap: clamp(.6rem, 1vw, 1rem); }
.masonry > p { color: var(--ink-soft); }
.masonry__item {
  width: 100%;
  display: inline-block;
  break-inside: avoid;
  margin: 0 0 clamp(.6rem, 1vw, 1rem);
  position: relative;
  overflow: hidden;
  background: var(--media-bg);
  cursor: zoom-in;
}
.masonry__item img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.masonry__item:hover img { transform: scale(1.04); }
.masonry__cap {
  position: absolute;
  inset: auto .8rem .7rem .8rem;
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
  text-shadow: 0 1px 12px rgba(0,0,0,.55);
}
.masonry__item::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,15,18,.42), transparent 42%);
  opacity: 0;
  transition: opacity .25s ease;
}
.masonry__item:hover::before { opacity: 1; }
.masonry__item:hover .masonry__cap { opacity: 1; transform: none; }

/* --- Filters ------------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.4rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.chip {
  position: relative;
  padding: .5rem 0;
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: color .22s ease;
}
.chip::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .35rem;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.chip:hover { color: var(--accent); }
.chip:hover::after,
.chip.is-active::after { transform: scaleX(1); }
.chip.is-active { color: var(--ink); }

/* --- Pricing ------------------------------------------------------------- */

.pricing {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.price-list { border-top: 1px solid var(--line-2); }
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}
.price-row__name { font-family: var(--ff-display); font-size: 1.25rem; }
.price-row__val { color: var(--accent-dark); font-weight: 700; white-space: nowrap; }

.pricing > div:last-child { overflow-x: auto; }
.spec-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .92rem; }
.spec-table caption {
  text-align: left;
  font-family: var(--ff-display);
  font-size: 1.4rem;
  margin-bottom: .9rem;
}
.spec-table th, .spec-table td {
  padding: .85rem .75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.spec-table thead th {
  font-family: var(--ff-body);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.spec-table tbody th { color: var(--accent-dark); font-family: var(--ff-display); font-size: 1.15rem; }
.spec-note { color: var(--ink-soft); font-size: .84rem; margin-top: .9rem; }

/* --- Cennik kwiatów — jeden spokojny panel z dwiema kartami ---------------
   Ten sam język co karty #oferta: jasne tło, pojedyncza delikatna ramka.
   Dane (kompozycje + flowerboxy) nadal z CMS przez istniejące data-hooki.    */
.pricing-panel {
  position: relative;
  padding: clamp(1.75rem, 4vw, 3.5rem) clamp(1.2rem, 3.5vw, 3rem);
  background: var(--blush-2);
  border: 1px solid rgba(139, 75, 145, .14);
  border-radius: 16px;
}
.pricing-panel__inner { position: relative; }
.pricing-panel__head { margin-inline: auto; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.pricing-panel__intro { max-width: 54ch; margin-inline: auto; color: var(--ink-soft); }

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.1rem, 2.6vw, 2.25rem);
  align-items: start;
}
.pricing-card {
  padding: clamp(1.2rem, 2.4vw, 2rem) clamp(1.05rem, 2vw, 1.75rem);
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(139, 75, 145, .14);
  border-radius: 16px;
}
.pricing-card__title {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  margin-bottom: 1.05rem;
}
.pricing-panel__note { text-align: center; margin: clamp(1.25rem, 2.5vw, 2rem) auto 0; }

/* Tabela i lista wewnątrz kart — lekkie, hairline separatory, ceny brandowe */
.pricing-card .price-list { border-top: 0; }
.pricing-card .price-row { padding: .85rem 0; }
.pricing-card .price-row:last-child { border-bottom: 0; }
.pricing-card .price-row__name { font-size: 1.12rem; }
.pricing-card .spec-table { min-width: 0; font-size: .9rem; }
.pricing-card .spec-table th,
.pricing-card .spec-table td { padding: .7rem .55rem; }
.pricing-card .spec-table tbody tr:last-child th,
.pricing-card .spec-table tbody tr:last-child td { border-bottom: 0; }
.pricing-card .spec-table td:last-child { color: var(--accent-dark); font-weight: 600; white-space: nowrap; }

/* Nagłówek cennika — wyśrodkowany, editorial */
.pricing-panel__head { text-align: center; }

/* Eyebrow „CENNIK" — symetryczny, delikatny divider zamiast jednej kreski */
.pricing-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .95rem;
  color: var(--accent);
  font-family: var(--ff-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.pricing-eyebrow > span { white-space: nowrap; }

.pricing-panel__title {
  font-family: var(--ff-display);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.14;
  margin: 0 0 .65rem;
}
.pricing-panel__lead {
  max-width: 52ch;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
}

/* Rozmiary flowerboxów jako subtelny pudrowy badge (nie przycisk) */
.pricing-card .spec-table tbody th {
  position: relative;
  isolation: isolate;
  text-align: center;
  vertical-align: middle;
  color: var(--accent-dark);
  font-family: var(--ff-display);
  font-size: 1rem;
  width: 3rem;
}
.pricing-card .spec-table tbody th::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--blush);
  box-shadow: inset 0 0 0 1px rgba(139, 75, 145, .18);
  z-index: -1;
}

.pricing-panel__footer { margin-top: clamp(1.4rem, 3vw, 2.25rem); text-align: center; }
.pricing-panel__footer .pricing-panel__note { margin: 0; }

/* ==========================================================================
   PASS PRZED PREZENTACJĄ — oprawa ofert /sluby + /kwiaty, timeline współpracy,
   ramka wyceny, finalne CTA. WYŁĄCZNIE prezentacja: zero zmian w danych/CMS.
   Ornamenty to pseudo-elementy (::before/::after z background-image) → przetrwają
   re-render innerHTML przez main.js. Wszystkie hooki data-* pozostają nietknięte.
   ========================================================================== */

/* Wspólny panel — spokojny, jedna delikatna ramka, bez ornamentów */
.page-weddings .offer,
.page-flowers .offer-list > .offer,
.page-weddings .wycena-split,
.page-weddings .form-invite {
  position: relative;
  padding: clamp(1.6rem, 3.2vw, 2.9rem);
  background: var(--blush-2);
  border: 1px solid rgba(139, 75, 145, .14);
  border-radius: 16px;
}

/* Oferty — zachowany layout ZDJĘCIE|TREŚĆ i naprzemienność; CTA z hairline. */
.page-weddings .offer__num,
.page-flowers .offer-list .offer__num {
  letter-spacing: .18em;
}
.page-weddings .offer__body .textlink,
.page-flowers .offer-list .offer__body .textlink {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(139, 75, 145, .16);
  border-bottom: 0;
}

/* --- Timeline współpracy (/sluby) — lekka, editorialowa ścieżka ----------
   Rytm 01·02·03 / (wyśrodkowane) 04·05. Bez ciężkich czarnych linii. */
.page-weddings .feature-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.6rem, 3vw, 2.4rem) clamp(1.5rem, 3.5vw, 2.75rem);
}
.page-weddings .feature-grid .feature {
  flex: 0 1 clamp(200px, 30%, 290px);
  position: relative;
  padding: 1.3rem 0 0;
  border-top: 1px solid var(--line-2);
}
.page-weddings .feature-grid .feature h3 { font-family: var(--ff-display); font-size: 1.2rem; }

/* --- Wycena (/sluby) — ramka + ponumerowane czynniki --------------------- */
.page-weddings .wycena-split { align-items: center; }
.page-weddings [data-wycena-opis] { white-space: pre-line; }
.page-weddings [data-wycena-czynniki] { gap: .2rem clamp(1.25rem, 3vw, 2.5rem); }
.page-weddings [data-wycena-czynniki] li {
  padding: .7rem 0 .7rem 1.2rem;
  border-bottom: 1px solid rgba(139, 75, 145, .14);
  font-size: .98rem;
  line-height: 1.4;
}
.page-weddings [data-wycena-czynniki] li::before { top: 1.1rem; }

/* --- Finalne CTA (/sluby) — „Opowiedz nam o swoim ślubie" ---------------- */
.page-weddings .form-invite {
  display: block;
  text-align: center;
  padding-block: clamp(2rem, 4vw, 3.25rem);
}
.page-weddings .form-invite__body {
  max-width: 640px;
  margin: 0 auto 1.6rem;
}
.page-weddings .form-invite__body .eyebrow { justify-content: center; }
.page-weddings .form-invite__body .eyebrow::after {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  opacity: .6;
}
.page-weddings .form-invite h2 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
}
.page-weddings .form-invite__body .lead { margin-inline: auto; }

/* --- CTA band ------------------------------------------------------------ */

.cta-band { padding-block: clamp(2.25rem, 3.6vw, 3.5rem); }
.cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.cta-band h2 { max-width: 18ch; }
.cta-band p { max-width: 52ch; margin-bottom: 1.8rem; }
.cta-band__aside { display: grid; align-content: center; }

.contact-line {
  display: flex; gap: .9rem; align-items: center;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line-dark);
}
.contact-line:first-child { border-top: 1px solid var(--line-dark); }
.contact-line svg { width: 18px; height: 18px; color: var(--accent-soft); margin-top: .2rem; flex: 0 0 auto; }
.contact-line b, .contact-line span { display: block; }
.contact-line b { font-weight: 600; }
.contact-line span { color: var(--on-dark-dim); font-size: .82rem; }
.contact-line a:hover { color: var(--accent-soft); }

/* Ikony kontaktowe — realne PNG marki (assets/logo), rozjaśnione do
   czytelności na ciemnym tle; ikona + tekst = jeden spokojny wiersz,
   bez ciężkich białych kółek */
.contact-line__ico {
  flex: 0 0 auto;
  width: 54px; height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact-line__ico img {
  width: 54px; height: 54px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .92;
}

/* Layout: hero + sekcje — kontekst stackingu i przycięcie wystających kadrów */
.home-hero, .section--decor { position: relative; overflow: hidden; }
.home-hero > .container,
.section--decor > .container { position: relative; z-index: 1; }
.home-hero__stage { z-index: 0; }

/* 15 — LIGHTBOX =========================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(24, 19, 22, .95);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(92vw, 1500px); max-height: 88vh; object-fit: contain; }
.lightbox__close, .lightbox__nav {
  position: absolute;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.08);
  color: #fff;
  display: grid;
  place-items: center;
}
.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__nav--prev { left: 1.25rem; }
.lightbox__nav--next { right: 1.25rem; }
.lightbox__close:hover, .lightbox__nav:hover { background: #fff; color: var(--ink); }

/* Reveal ------------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

.text-center { text-align: center; }

/* Stan oczekiwania CMS — elementy podmieniane przez Sanity są ukryte od
   pierwszego renderu (miejsce zarezerwowane, brak przeskoków), a js/main.js
   zwalnia je po odpowiedzi API, błędzie lub timeoucie (5 s).
   cms-failsafe: zabezpieczenie wyłącznie na wypadek, gdyby main.js w ogóle
   się nie wczytał — w normalnym działaniu nigdy nie jest osiągane.
   Bez JS: <noscript> w <head> pokazuje treść od razu. */
[data-cms-pending] {
  visibility: hidden;
  animation: cms-failsafe 0s linear 8s forwards;
}
[data-cms-ready] { animation: cms-in .3s var(--ease) both; }
@keyframes cms-in { from { opacity: 0; } }
@keyframes cms-failsafe { to { visibility: visible; } }

/* ==========================================================================
   07 — HOME
   ========================================================================== */

/* Hero: warstwowa aranżacja zdjęć + editorial headline */
.home-hero { padding-block: clamp(1.75rem, 3vw, 2.75rem) clamp(2.25rem, 4vw, 3.5rem); }
.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: center;
}
.home-hero__copy { max-width: 36rem; }
/* Nagłówek z CMS bywa długi — rozmiar dobrany tak, by 6–10 słów mieściło się
   w ~3 wierszach, a krótki wariant nadal wyglądał na hero. */
.home-hero__title {
  font-size: clamp(2.6rem, 4.5vw, 4.1rem);
  line-height: 1.08;
  margin-bottom: 1.35rem;
}
/* Akcent frazy „na ważne chwile" — mauve marki, italic EB Garamond */
.home-hero__title em { color: var(--accent); font-style: italic; }
.home-hero__lead { max-width: 40ch; margin-bottom: 1.9rem; }

/* aranżacja: duże zdjęcie + nakładające się mniejsze, asymetryczne napięcie.
   padding-top/right robią „oddech” nad i po prawej głównego zdjęcia, w którym
   siadają ramiona ornamentów (górny i prawy bok ramki). */
.home-hero__stage {
  position: relative;
  min-height: min(60vh, 560px);
  padding-top: 7%;
  padding-right: 5%;
  padding-bottom: 1.5rem;
}
.home-hero__fig { position: relative; z-index: 1; margin: 0; overflow: hidden; background: var(--media-bg); }
.home-hero__fig img { width: 100%; height: 100%; object-fit: cover; }
/* Zdjęcia lekko zmniejszone → botaniczna ramka ma zapas z każdej strony */
.home-hero__fig--main {
  aspect-ratio: 4 / 5;
  width: 60%;
  margin-left: auto;
  margin-right: 2%;
  box-shadow: 0 32px 60px -34px rgba(41, 36, 40, .52);
}
.home-hero__fig--sub {
  position: absolute;
  left: 2%; bottom: -.5rem;
  width: 40%;
  aspect-ratio: 4 / 3;
  border: 7px solid var(--paper);
  box-shadow: 0 24px 46px -28px rgba(41, 36, 40, .48);
}

/* About feature (home) */
.home-about {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}
.home-about__media {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 600px;
  overflow: hidden;
  background: var(--media-bg);
}
.home-about__media img { width: 100%; height: 100%; object-fit: cover; }
.home-about__body h2 { max-width: 15ch; }
.home-about__body p { color: var(--ink-soft); max-width: 50ch; }
.home-about__actions { margin-top: 1.8rem; }
.section--sage .home-about__body p { color: var(--ink-soft); }

/* ==========================================================================
   08 — WEDDINGS (/sluby/)
   ========================================================================== */

/* Immersive full-bleed opening */
.hero-over {
  position: relative;
  min-height: min(84vh, 760px);
  display: flex;
  align-items: flex-end;
  color: var(--on-dark);
  overflow: hidden;
}
.hero-over__img { position: absolute; inset: 0; }
.hero-over__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-over::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(24,16,20,.82), rgba(24,16,20,.2) 52%, rgba(24,16,20,.28));
}
.hero-over__inner { position: relative; z-index: 1; padding-block: clamp(2.25rem, 5vw, 4rem); }
.hero-over h1 {
  color: #fff;
  max-width: 22ch;
  font-size: clamp(2.5rem, 4.8vw, 4.15rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin-bottom: .95rem;
  text-wrap: balance;
}
.hero-over .lead { color: rgba(255,255,255,.88); max-width: 48ch; }
.hero-over .eyebrow { color: var(--accent-soft); }

/* Śluby — punkt ostrości zdjęcia hero (DSC05595): białe kwiaty po lewej,
   świece w centrum. Na mobile portretowy kadr przesuwamy ku kwiatom. */
.page-weddings .hero-over__img img { object-position: 50% 42%; }
@media (max-width: 760px) {
  .page-weddings .hero-over__img img { object-position: 36% 50%; }
}

/* Wycena — dwie kolumny */
.wycena-split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.wycena-split .svc-list { margin-bottom: 0; }

/* Formularz ślubny — editorial band */
.form-invite {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.form-invite__body { max-width: 40rem; }

/* ==========================================================================
   09 — CELEBRATIONS (/uroczystosci/)
   ========================================================================== */

/* Full-bleed pauza fotograficzna — łączy sąsiednie sekcje */
.image-band {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  height: clamp(300px, 40vw, 560px);
  overflow: hidden;
  background: var(--media-bg);
}
.image-band img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
/* Zdjęcie plenerowe uroczystości: kadr na łuk, stół i kwiaty — podniesiony,
   by ograniczyć trawę u dołu; przesunięty w lewo, by nie eksponować schodów. */
.page-events .image-band img { object-position: 42% 38%; }

/* Split hero: type + para zdjęć */
.split-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
}
.split-hero__copy { max-width: 34rem; }
.split-hero__pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.6rem, 1.2vw, 1rem); align-items: start; }
.split-hero__pair figure { margin: 0; overflow: hidden; background: var(--media-bg); }
.split-hero__pair img { width: 100%; height: 100%; object-fit: cover; }
.split-hero__pair figure:first-child { aspect-ratio: 3/4; }
.split-hero__pair figure:last-child { aspect-ratio: 3/4; }
/* editorialowe przesunięcie drugiego zdjęcia — mniej płasko, lepiej wypełnia pion */
.split-hero__pair figure:last-child { margin-top: clamp(1.25rem, 3.5vw, 2.75rem); }

/* /uroczystosci/ — krótsze, poziome kadry ofert + zwarte odstępy: krótki tekst
   nie zostawia pustki obok wysokiego zdjęcia (kompozycja, nie cięcie paddingu) */
.page-events .offer { grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: clamp(1.25rem, 2.6vw, 2.25rem); align-items: stretch; }
.page-events .offer__media { aspect-ratio: 4 / 3; max-height: 420px; }
.page-events .offer-list { gap: clamp(1.25rem, 2.2vw, 2rem); }
.page-events .split-hero { padding-block: clamp(2rem, 3.6vw, 3.25rem); }
.page-events .split-hero__copy { max-width: 30rem; }

/* ==========================================================================
   10 — FLOWERS (/kwiaty/)
   ========================================================================== */

/* Lookbook hero: type + pasek zdjęć */
.lookbook-hero { padding-block: clamp(1.75rem, 3vw, 2.75rem) clamp(3.5rem, 5.5vw, 5rem); }
.lookbook-hero__copy { max-width: 44rem; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.lookbook-hero__strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.5rem, 1vw, .85rem);
}
.lookbook-hero__strip figure { margin: 0; overflow: hidden; aspect-ratio: 3/4; background: var(--media-bg); }
.lookbook-hero__strip figure:nth-child(even) { margin-top: clamp(.6rem, 1.8vw, 1.5rem); }
.lookbook-hero__strip img { width: 100%; height: 100%; object-fit: cover; }

/* Intro (fallback oferty kwiatów) */
.flowers-intro {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.flowers-intro__media { aspect-ratio: 4/5; max-height: 560px; overflow: hidden; background: var(--media-bg); }
.flowers-intro__media img { width: 100%; height: 100%; object-fit: cover; }
.flowers-intro__body { max-width: 34rem; }

/* ==========================================================================
   11 — PORTFOLIO (/realizacje/)
   ========================================================================== */

.portfolio-hero { padding-block: clamp(2.25rem, 4vw, 3.25rem) 0; }
.portfolio-hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  margin-bottom: clamp(1.25rem, 2.2vw, 1.75rem);
}
.portfolio-hero__top h1 { font-size: clamp(3rem, 6.5vw, 5.5rem); margin-bottom: 0; }
.portfolio-hero__top .lead { padding-bottom: .4rem; }
/* galeria wchodzi szybciej i mocniej */
.page-portfolio .section--tight { padding-top: clamp(1.5rem, 2.4vw, 2.25rem); }
.page-portfolio .filters { margin-bottom: clamp(1.25rem, 2vw, 1.75rem); }

/* ==========================================================================
   12 — ABOUT (/o-pracowni/)
   ========================================================================== */

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(1.25rem, 2.4vw, 2.25rem) clamp(2rem, 4vw, 3.25rem);
}
.about-hero__body { max-width: 34rem; }
.about-hero__body h1 { font-size: clamp(2.6rem, 4.6vw, 3.9rem); line-height: 1.12; }
.about-hero__body .lead { margin-bottom: 1.4rem; }
.about-hero__media {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;          /* rezerwuje miejsce zanim zdjęcie (CDN) się wczyta */
  max-width: 400px;
  max-height: 400px;
  margin-left: auto;
  overflow: hidden;
  background: var(--media-bg);
}
.about-hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Pull quote — editorial accent, mocniejszy */
.pullquote {
  max-width: 18ch;
  margin: 0;
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--ink);
}
.pullquote .mark { text-decoration-thickness: 3px; text-underline-offset: .12em; }
.about-statement {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-statement__body p { color: var(--ink-soft); max-width: 54ch; }
.about-statement__body p:first-child { font-size: 1.08rem; }

/* ==========================================================================
   13 — CONTACT (/kontakt/)
   ========================================================================== */

.contact-hero { padding-block: clamp(2.25rem, 4vw, 3.5rem); }
.contact-hero h1 { font-size: clamp(2.7rem, 5.5vw, 4.5rem); max-width: 16ch; }
.contact-hero .lead { max-width: 52ch; }

/* Layout editorialowy: duże zdjęcie + dane + zintegrowany formularz */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact-figure {
  margin: 0;
  overflow: hidden;
  background: var(--media-bg);
  aspect-ratio: 4 / 5;
  max-height: 600px;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.contact-figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.contact-main { display: grid; gap: clamp(2rem, 4vw, 3rem); align-content: start; }
.contact-panel h2 { max-width: 14ch; }
.contact-intro { color: var(--ink-soft); max-width: 50ch; margin-bottom: 1.75rem; }

/* Dane kontaktowe jako mocny element typograficzny */
.contact-list { border-top: 1px solid var(--line-2); }
.contact-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: .1rem 1.3rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
a.contact-item:hover strong { color: var(--accent); }
.contact-item__label {
  grid-row: 1 / span 2;
  color: var(--ink-soft);
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  padding-top: .3rem;
}
.contact-item strong {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.3rem;
  transition: color .2s ease;
  word-break: break-word;
}
.contact-item > span:last-child { color: var(--ink-soft); font-size: .88rem; }

.contact-socials { border-top: 1px solid var(--line); margin-top: 1.75rem; }
.contact-socials a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.contact-socials a:hover { color: var(--accent); }

/* Formularz kontaktowy — zintegrowany z tłem, bez „białej karty" */
.contact-form-panel {
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-2);
}
.contact-form-panel > .eyebrow { margin-bottom: .75rem; }
.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--ink); }
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: .82rem .95rem;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139,75,145,.12);
}
.field textarea { min-height: 130px; resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.form__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .35rem; }
.form-note { color: var(--ink-soft); font-size: .82rem; margin: 0; }
.form-status {
  margin: 0;
  padding: .9rem 1.1rem;
  background: var(--sage);
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-size: .92rem;
}
/* Honeypot — poza ekranem (nie display:none, część botów to pomija) */
.field--hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-privacy a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* Polityka prywatności (/polityka-prywatnosci/) — treść dokumentu prawnego */
.legal { max-width: 46rem; }
.legal h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 2.2rem 0 .8rem; }
.legal h3 { font-size: 1.1rem; margin: 1.6rem 0 .6rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul, .legal ol { padding-left: 1.2rem; margin: 0 0 1rem; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   14 — FOOTER
   ========================================================================== */

.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(2.25rem, 3.6vw, 3.25rem) 1.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr .85fr .85fr 1.2fr;
  gap: clamp(1.5rem, 4vw, 3.25rem);
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--line-soft);
}
.footer__brand { max-width: 30ch; }
/* Logo footera — jedna globalna reguła, identyczny rozmiar na wszystkich stronach.
   Scope „> img" celuje wyłącznie w logo (nie w ikony social wewnątrz .footer__social),
   dzięki czemu żaden margin/transform nie przecieka na ikony. */
.footer__brand > img {
  display: block;
  width: 130px;
  height: 50px;
  max-width: 130px;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 .9rem 0;
}
.footer__brand p { max-width: 32ch; color: var(--ink-soft); font-size: .9rem; margin-bottom: 0; }
.footer__col h4 {
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--ink);
  margin-bottom: 1rem;
}
.footer__col a { display: block; padding: .32rem 0; color: var(--ink-soft); font-size: .92rem; }
.footer__col a:hover { color: var(--accent); }
.footer__contact p { margin: 0 0 .8rem; color: var(--ink-soft); font-size: .92rem; }
.footer__contact .lbl { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; opacity: .7; margin-bottom: .15rem; }
.footer__contact a:hover { color: var(--accent); }
/* Social — jeden spójny system: [box ikony] [nazwa]. Jedna kolumna →
   wszystkie nazwy startują na tej samej osi X, identyczny box i row-gap. */
.footer__social { display: grid; gap: .5rem; margin-top: 1.15rem; justify-items: start; }
.footer__social-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink-soft);
  font-size: .89rem;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1;
  transition: color .2s ease;
}
/* Stały box ikony (24×20) → nazwy startują na tej samej osi X, ikony optycznie
   równe i wyśrodkowane w pionie względem nazwy. Assety line-art (przycięte). */
.footer__social-link img { flex: 0 0 24px; width: 24px; height: 20px; margin: 0; transform: none; object-fit: contain; object-position: center; }
.footer__social-link span { display: inline-block; line-height: 1; }
.footer__social-link:hover { color: var(--accent); }
/* GdzieWesele = sam tekst „GdzieWesele" (bez logo). Zachowuje klasę --text (hook JS). */
.footer__social-link.footer__social--text {
  border: 0;
  font-size: .89rem;
}

.footer__social-link.footer__social--text:hover {
  border: 0;
  color: var(--accent);
}
.footer__social-link.footer__social--text span { display: inline-block; line-height: 1; }

/* Kontakt — [logo] [nazwa] w jednej linii, strzałka po prawej */
.contact-socials a { align-items: center; }
.contact-socials a.footer__social--text { font-size: inherit; }
.contact-socials .social-label { display: inline-flex; align-items: center; gap: .65rem; }
.contact-socials .social-ico-inline { width: 22px; height: 20px; object-fit: contain; object-position: center; flex: 0 0 auto; }
/* Dolny pas: JEDEN rząd — © (lewa) · meta (prawa) */
.footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .8rem 1.5rem;
  padding-top: 1.6rem;
  color: var(--ink-soft);
  font-size: .8rem;
}
.footer__copy { justify-self: start; }
.footer__meta { justify-self: end; text-align: right; }
.footer__policy { color: var(--ink-soft); transition: color .2s ease; }
.footer__policy:hover { color: var(--accent); }

/* ==========================================================================
   15 — RESPONSIVE
   ========================================================================== */

@media (max-width: 1100px) {
  :root { --header-h: 94px; }
  .nav__logo { height: 78px; width: clamp(180px, 20vw, 210px); }
  .nav__menu { gap: 1.05rem; }
  .nav__link { font-size: .87rem; }
  .nav__cta { padding-inline: 1.15rem; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__contact { grid-column: 2 / span 2; }
}

/* Wąski desktop: dłuższa pozycja „Bukiety i kompozycje" — ciaśniejsze odstępy
   menu, żeby CTA zmieścił się w jednej linii przed przejściem na hamburger. */
@media (min-width: 901px) and (max-width: 1000px) {
  .nav { gap: 1.25rem; }
  .nav__menu { gap: .7rem; }
  .nav__cta { padding-inline: .9rem; }
}

@media (max-width: 900px) {
  :root { --section: clamp(2.5rem, 6vw, 3.5rem); --section-tight: 2.25rem; }

  /* Mobile nav */
  .nav__menu { display: none; }
  .nav__toggle { display: block; }
  .site-header.nav-open .nav__menu {
    display: flex;
    position: absolute;
    left: 0; right: 0; top: 100%;
    height: calc(100dvh - var(--header-h));
    padding: 1.5rem var(--gutter) 2rem;
    background: var(--paper);
    border-top: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    overflow: auto;
  }
  .site-header.nav-open .nav__link {
    font-family: var(--ff-display);
    font-size: 1.6rem;
    font-weight: 480;
    padding: .95rem 0;
    border-bottom: 1px solid var(--line);
  }
  .site-header.nav-open .nav__link::after { display: none; }
  .site-header.nav-open .nav__cta { margin: 1.25rem 0 0; align-self: flex-start; }

  /* Home hero → osobna kompozycja mobilna */
  .home-hero__grid { grid-template-columns: 1fr; gap: 2rem; }
  .home-hero__copy { max-width: 640px; }
  .home-hero__stage { min-height: 0; padding-top: 0; padding-right: 0; }
  .home-hero__fig--main { width: 88%; aspect-ratio: 4/5; }
  .home-hero__fig--sub { width: 42%; bottom: -1rem; }

  .home-about { grid-template-columns: 1fr; gap: 2rem; }
  .home-about__media { max-width: 560px; aspect-ratio: 4/3; }

  .offer { grid-template-columns: 1fr; gap: 1.6rem; }
  /* /uroczystosci/ — zbij do jednej kolumny tak samo jak pozostałe oferty
     (reguła .page-events .offer ma wyższą specyficzność niż samo .offer) */
  .page-events .offer { grid-template-columns: 1fr; align-items: initial; }
  .offer:nth-child(even) .offer__media,
  .offer:nth-child(even) .offer__body { order: initial; }
  .offer__media { aspect-ratio: 4/3; max-height: none; }
  .offer__body { max-width: 640px; }

  .feature-grid { grid-template-columns: 1fr; gap: 0; }
  .feature { padding: 1.4rem 0; border-top: 1px solid var(--line); }

  .wycena-split,
  .form-invite,
  .pricing,
  .contact-layout,
  .cta-band__inner,
  .flowers-intro,
  .about-hero,
  .about-statement,
  .split-hero { grid-template-columns: 1fr; }
  .cta-band__aside { margin-top: .5rem; }
  .about-statement { gap: 1.25rem; }
  .about-hero__media { aspect-ratio: 1/1; max-width: 460px; max-height: 460px; margin-inline: auto; }
  .contact-figure { position: static; aspect-ratio: 16/10; max-height: 420px; }
  .contact-main { gap: 2rem; }

  .split-hero__pair figure:first-child { margin-top: 0; }
  .lookbook-hero__strip { grid-template-columns: repeat(4, 1fr); }

  .hero-over { min-height: min(72vh, 560px); }

  .portfolio-hero__top { grid-template-columns: 1fr; align-items: start; gap: 1rem; }

  .grid-gallery--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masonry { column-count: 3; }
  .grid-gallery--lookbook { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__contact { grid-column: auto; }
}

@media (max-width: 680px) {
  :root { --gutter: 1.25rem; --section: clamp(2.25rem, 7vw, 3rem); --header-h: 80px; }
  body { font-size: 16px; }
  h1 { font-size: clamp(2.3rem, 10vw, 3rem); }
  h2 { font-size: clamp(1.85rem, 8vw, 2.35rem); }
  h3 { font-size: clamp(1.35rem, 6.5vw, 1.75rem); }
  .nav__logo { width: 168px; height: 66px; }

  .home-hero__title { font-size: clamp(2.3rem, 9.5vw, 3rem); }
  .home-hero__fig--sub { border-width: 4px; }

  .hero-over h1, .contact-hero h1, .portfolio-hero__top h1 { font-size: clamp(2.3rem, 11vw, 3.1rem); }
  .hero-over__inner { padding-block: 2.5rem; }

  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }

  .section-head--row { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .offer-list { gap: 3rem; }
  .offer__media { aspect-ratio: 4/3; }
  .svc-list, .svc-list--cols { grid-template-columns: 1fr; gap: .5rem; }

  /* Cennik — jedna kolumna, tabela bez poziomego scrolla */
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card .spec-table { font-size: .82rem; }
  .pricing-card .spec-table th,
  .pricing-card .spec-table td { padding: .58rem .38rem; }
  .pricing-card .spec-table tbody th { width: 2.6rem; }
  .pricing-card .spec-table tbody th::before { width: 1.8rem; height: 1.8rem; }

  .grid-gallery { grid-template-columns: 1fr 1fr; gap: .55rem; }
  .grid-gallery--lookbook { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .gitem, .gitem--wide, .gitem--tall, .grid-gallery--3 .gitem { grid-column: auto; aspect-ratio: 4/5; }
  .gitem--wide { grid-column: 1 / -1; aspect-ratio: 16/10; }

  .lookbook-hero__strip { grid-template-columns: 1fr 1fr; }
  .split-hero__pair { grid-template-columns: 1fr 1fr; }

  .masonry { column-count: 2; }
  .masonry__cap { opacity: 1; transform: none; }
  .masonry__item::before { opacity: 1; }

  .filters { gap: .2rem 1rem; }
  .chip { font-size: .85rem; }

  .form__row { grid-template-columns: 1fr; }
  .contact-item { grid-template-columns: 1fr; gap: .25rem; }
  .contact-item__label { grid-row: auto; padding-top: 0; }

  .footer__grid { grid-template-columns: 1fr; gap: 1.9rem; }
  .footer__bottom { grid-template-columns: 1fr; justify-items: center; gap: 1rem; }
  .footer__copy, .footer__meta { justify-self: center; text-align: center; }

  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: .6rem; }
  .lightbox__nav--next { right: .6rem; }
  .lightbox__close { top: .6rem; right: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== PASS PREZENTACYJNY — responsywność (tablet / mobile) ===== */
@media (max-width: 900px) {
  /* Oferty w ramce: mniejszy padding (stack dziedziczy z bazy) */
  .page-weddings .offer,
  .page-flowers .offer-list > .offer { padding: clamp(1.2rem, 4vw, 1.9rem); }
  /* Czynniki wyceny → 1 kolumna, gdy robi się ciasno */
  .page-weddings [data-wycena-czynniki] { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  /* Timeline współpracy → pionowa, zwarta lista kroków */
  .page-weddings .feature-grid { display: block; }
  .page-weddings .feature-grid .feature {
    flex: none;
    max-width: none;
    padding: 1.1rem 0 0;
  }
  .page-weddings .feature-grid .feature::before,
  .page-about .feature-grid .feature::before,
  .page-contact .feature-grid .feature::before { font-size: 1.7rem; margin-bottom: .3rem; }
}

/* ===== /KWIATY — FINALNY RÓWNY GRID CMS =====
   Każde zdjęcie, także po podmianie z Sanity, zajmuje dokładnie 1 kafelek. */
.page-flowers .grid-gallery--lookbook {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: clamp(.6rem, 1vw, 1rem);
}

.page-flowers .grid-gallery--lookbook > .gitem,
.page-flowers .grid-gallery--lookbook > .gitem--wide,
.page-flowers .grid-gallery--lookbook > .gitem--tall {
  grid-column: auto !important;
  width: 100% !important;
  min-width: 0;
  aspect-ratio: 4 / 5 !important;
  margin: 0 !important;
  overflow: hidden;
}

.page-flowers .grid-gallery--lookbook > .gitem img,
.page-flowers .grid-gallery--lookbook > .gitem--wide img,
.page-flowers .grid-gallery--lookbook > .gitem--tall img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 900px) {
  .page-flowers .grid-gallery--lookbook {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .page-flowers .grid-gallery--lookbook {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
