/* ============================================================
   CudaInki - Mockup
   Design system: ciepły beż + biel, akcent złoto (CTA), tekst brąz
   Typografia: Frank Ruhl Libre (nagłówki/logo) + Inter (treść/UI)
   Mobile-first. Weryfikacja: 375 / 768 / 1024 / 1440.
   ============================================================ */

/* ---------- Fonty: self-hosted przez theme.json (fontFamilies[].fontFace) ----------
   WYJATEK od kopiowania makiety 1:1: blok @font-face NIE jest tu kopiowany.
   Fonty (Frank Ruhl Libre + Inter, 8 wag woff2 w assets/fonts/) rejestruje theme.json,
   a WP generuje @font-face sam (front + iframe edytora). Patrz Playbook "Fonty (self-hosted, default)". */

/* ---------- Design tokens ---------- */
:root {
  /* Tła — aliasy do presetów theme.json (Site Editor -> Style = źródło prawdy) */
  --beige: var(--wp--preset--color--base, #FFF7F0);
  --beige-2: var(--wp--preset--color--base-alt, #FBEEE2);          /* sekcje naprzemienne */
  --beige-line: var(--wp--preset--color--border, #EADBCB);         /* linie / obramowania */
  --white: var(--wp--preset--color--white, #FFFFFF);

  /* Tekst (ciepły brąz zamiast czerni) */
  --ink: var(--wp--preset--color--contrast, #2E2018);              /* główny tekst / na złocie */
  --ink-2: var(--wp--preset--color--contrast-2, #5A4A3F);          /* drugorzędny */
  --ink-muted: var(--wp--preset--color--contrast-muted, #897565);  /* opisy, podpisy */

  /* Akcent CTA - złoto/musztarda */
  --gold: var(--wp--preset--color--accent, #C8A04A);
  --gold-deep: var(--wp--preset--color--accent-deep, #A9842F);     /* hover/focus */
  --gold-soft: var(--wp--preset--color--accent-soft, #F0E2C2);     /* tła akcentowe */
  --gold-ink: var(--wp--preset--color--accent-ink, #866722);       /* złoto dla MAŁEGO tekstu, AA ≥4.5:1 */

  /* Pomocnicze */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(46, 32, 24, 0.06);
  --shadow-md: 0 10px 30px rgba(46, 32, 24, 0.10);
  --shadow-lg: 0 20px 50px rgba(46, 32, 24, 0.14);

  --container: 1140px;
  --gap: clamp(1rem, 3vw, 2rem);

  --header-h: 68px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Skala z-index */
  --z-nav: 50;
  --z-overlay: 40;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--beige);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Typografia ---------- */
h1, h2, h3, h4 {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 7vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { color: var(--ink-2); max-width: 68ch; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);   /* było gold-deep (3.29:1) → AA fail dla 0.85rem */
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 5vw, 2rem);
}
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--beige2 { background: var(--beige-2); }
.section--white { background: var(--white); }

/* Pasek separujący - czysto wizualny */
.section--divider {
  padding-block: clamp(2rem, 5vw, 3rem);
  display: grid;
  place-items: center;
}
.divider-dot {
  width: 56px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  opacity: 0.75;
}

.section-head { max-width: 64ch; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { display: block; margin-bottom: 0.6rem; }
.section-head p { margin-top: 0.9rem; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
              box-shadow 0.2s var(--ease), color 0.2s var(--ease);
  cursor: pointer;
}
.btn:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 3px;
}

/* CTA - złote tło + ciemnobrązowy tekst (kontrast ~6.4:1, WCAG AA) */
.btn-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: #BC9038;          /* lekko przyciemnione złoto, ciemny tekst nadal AA (~5.7:1) */
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--beige-line);
}
.btn-ghost:hover {
  border-color: var(--gold-deep);
  color: var(--gold-deep);
}

.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- Nawigacja ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(255, 247, 240, 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--beige-line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
}
.brand strong { color: var(--gold-deep); }

.nav__links { display: none; }
.nav__cta { display: none; }

.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
  margin-inline: auto;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Panel mobilny */
.nav__panel {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  /* jawna wysokość: .nav ma backdrop-filter → jest containing blockiem dla fixed,
     więc bottom:0 liczyłoby się względem paska (68px), nie ekranu */
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  background: var(--beige);
  z-index: var(--z-overlay);
  padding: 1.5rem clamp(1.1rem, 5vw, 2rem) 2.5rem;
  /* Ukrycie przez opacity+visibility, NIE translateX(100%) off-screen.
     Powód: panel jest position:fixed wewnątrz .nav, a .nav ma backdrop-filter →
     staje się containing blockiem dla fixed. Wysunięty w bok panel NIE był więc
     przyklejony do viewportu, tylko rozpychał poziomy scroll całej strony o pełną
     szerokość ekranu. Bolało w paśmie 768-1024px (iPad w pionie / tryb „Desktop"
     Safari ~980px) → „ucięte treści i menu". Fade nie tworzy off-screen boxa. */
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nav__panel.open { visibility: visible; opacity: 1; }
.nav__panel a {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--beige-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__panel a[aria-current="page"] { color: var(--gold-deep); }
.nav__panel .btn { margin-top: 1.5rem; justify-content: center; }

/* Akordeon „Oferta" w menu mobilnym */
.nav__acc { border-bottom: 1px solid var(--beige-line); }
.nav__acc-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  background: transparent;
  border: none;
  padding: 0.85rem 0.5rem;
}
.nav__acc-toggle.active { color: var(--gold-deep); }
.nav__acc-toggle .nav__caret { width: 1.1em; height: 1.1em; transition: transform 0.2s var(--ease); }
.nav__acc-toggle[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }
.nav__acc-menu { display: none; flex-direction: column; padding-left: 0.5rem; }
.nav__acc-menu.open { display: flex; }
.nav__acc-menu a {
  font-weight: 500;
  font-size: 1.05rem;
  padding: 0.7rem 0.6rem;
}
.nav__acc-menu a:last-child { border-bottom: none; }

body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  gap: clamp(1.5rem, 5vw, 3rem);
  align-items: center;
  padding-block: clamp(2.5rem, 7vw, 5rem);
}
.hero__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero .eyebrow { display: block; margin-bottom: 0.7rem; }   /* hero nie ma kontekstu page-head/section-head, który nadaje eyebrow odstęp */
.hero__title { margin-bottom: 1rem; }
.hero__subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--gold-deep);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  margin-bottom: 1.25rem;
}
.hero__text { margin-bottom: 1.75rem; }
.hero__text p + p { margin-top: 0.9rem; }

/* Mobile (np. strona główna): eyebrow + nagłówek + CTA wyśrodkowane,
   akapity tekstu wyrównane do lewej dla czytelności */
@media (max-width: 767px) {
  .hero--center { text-align: center; }
  .hero--center .hero__text { text-align: left; }
  .hero--center .cta-row { justify-content: center; }
}
/* Wąski tablet (768-828px): hero jest już 2-kolumnowy, ale kolumna treści jest
   na tyle wąska, że CTA lepiej wygląda wyśrodkowane (kontynuacja widoku mobilnego).
   Dotyczy hero--center: index + o-mnie. Powyżej 828px CTA wraca do lewej. */
@media (min-width: 768px) and (max-width: 828px) {
  .hero--center .cta-row { justify-content: center; }
}

/* ---------- Karty / siatki ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

.card {
  background: var(--white);
  border: 1px solid var(--beige-line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2rem);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 0.75rem; }
.card .step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
}
.card ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.7rem;
  color: var(--ink-2);
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Cennik ---------- */
.price-list {
  display: grid;
  gap: 1rem;
}
.price-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--beige-line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
}
.price-item__price {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--gold-ink);
  white-space: nowrap;
}
.price-item__desc { color: var(--ink-2); font-size: 0.97rem; }

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--beige-line);
}
.price-table th, .price-table td {
  text-align: left;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--beige-line);
}
.price-table th { font-family: 'Inter', sans-serif; background: var(--beige-2); }
.price-table tr:last-child td { border-bottom: none; }
.price-table th:last-child,
.price-table td:last-child { text-align: right; }
.price-table td:last-child { font-weight: 700; color: var(--gold-ink); }

/* ---------- Galeria ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.filter-btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.1rem;
  min-height: 44px;                 /* touch target: było ~40px */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--beige-line);
  background: var(--white);
  color: var(--ink-2);
  transition: all 0.2s var(--ease);
}
.filter-btn:hover { border-color: var(--gold); color: var(--ink); }
.filter-btn.active { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.filter-btn:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.gallery__item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--beige-2);
  box-shadow: var(--shadow-sm);
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item.is-hidden { display: none; }

/* Galeria w podziale: jasne tło (lewa połowa) / ciemne tło (prawa połowa) - oferta świąteczna.
   Dwie grupy obok siebie: na mobile po 1 kolumnie (=2 kol), od tabletu po 2 (=4 kol).
   Podział jasne/ciemne zachowany na każdej szerokości. */
.gallery-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.gallery-split__col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  align-content: start;
}
@media (min-width: 768px) {
  .gallery-split { gap: 1rem; }
  .gallery-split__col { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

/* Placeholder na zdjęcie */
.ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: repeating-linear-gradient(45deg, var(--beige-2), var(--beige-2) 12px, #f5e6d6 12px, #f5e6d6 24px);
  color: var(--ink-muted);
  text-align: center;
  border: 1.5px dashed var(--beige-line);
}
.ph svg { width: 34px; height: 34px; opacity: 0.6; }
.ph span { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.85rem; }

/* ---------- Sekcja sezonowa ---------- */
.season + .season { margin-top: clamp(3rem, 7vw, 5rem); }
.season__head { margin-bottom: 1.6rem; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: clamp(1.5rem, 5vw, 3rem); }
.contact-list { display: grid; gap: 1rem; margin-top: 1.5rem; list-style: none; padding-left: 0; }
.contact-list li { margin: 0; }   /* natywny wp:list — zerujemy domyślne marginesy/wcięcie li */
.contact-list a, .contact-list span.ci {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--white);
  border: 1px solid var(--beige-line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-weight: 600;
  transition: all 0.2s var(--ease);
}
.contact-list a:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
/* Ikony kontaktu jako ::before — kółko (gold-soft) + ikona line-art (gold-deep) bez inline SVG,
   żeby dane kontaktowe były EDYTOWALNE natywnym blokiem Lista (klient). Ikona KLUCZOWANA PO href
   (mailto:/tel:/domena) → gdy Inka zmieni numer lub handle, właściwa ikona zostaje. Używamy
   background-image (nie mask), bo kolor stroke #A9842F jest wbity w data-URI — background-image
   NIE dziedziczy currentColor. Linia bez rozpoznanego href = brak ikony (świadomy fallback). */
.contact-list a::before {
  content: "";
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background-color: var(--gold-soft);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
}
.contact-list a[href^="mailto:"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23A9842F%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%273%27%20y%3D%275%27%20width%3D%2718%27%20height%3D%2714%27%20rx%3D%272%27%2F%3E%3Cpath%20d%3D%27m3%207%209%206%209-6%27%2F%3E%3C%2Fsvg%3E"); }
.contact-list a[href^="tel:"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23A9842F%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M22%2016.92v3a2%202%200%200%201-2.18%202%2019.79%2019.79%200%200%201-8.63-3.07%2019.5%2019.5%200%200%201-6-6%2019.79%2019.79%200%200%201-3.07-8.67A2%202%200%200%201%204.11%202h3a2%202%200%200%201%202%201.72c.13.96.36%201.9.7%202.81a2%202%200%200%201-.45%202.11L8.09%209.91a16%2016%200%200%200%206%206l1.27-1.27a2%202%200%200%201%202.11-.45c.91.34%201.85.57%202.81.7A2%202%200%200%201%2022%2016.92z%27%2F%3E%3C%2Fsvg%3E"); }
.contact-list a[href*="instagram"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23A9842F%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%272%27%20y%3D%272%27%20width%3D%2720%27%20height%3D%2720%27%20rx%3D%275%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%274%27%2F%3E%3Ccircle%20cx%3D%2717.5%27%20cy%3D%276.5%27%20r%3D%271%27%2F%3E%3C%2Fsvg%3E"); }
.contact-list a[href*="facebook"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23A9842F%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M18%202h-3a5%205%200%200%200-5%205v3H7v4h3v8h4v-8h3l1-4h-4V7a1%201%200%200%201%201-1h3z%27%2F%3E%3C%2Fsvg%3E"); }

/* Placeholder formularza (wtyczka WP - wygląd do ustalenia) */
.form-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.6rem;
  padding: clamp(2rem, 6vw, 3rem);
  background: var(--beige-2);
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  color: var(--ink-2);
}
.form-placeholder__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-deep);
  margin-bottom: 0.4rem;
}
.form-placeholder__icon svg { width: 30px; height: 30px; }
.form-placeholder h3 { color: var(--ink); }
.form-placeholder p { max-width: 42ch; }
.form-placeholder__hint { font-size: 0.9rem; color: var(--ink-muted); }

/* Formularz */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 0.4rem; }
.form label { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.95rem; }
.form input, .form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--beige-line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  width: 100%;
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.form textarea { resize: vertical; min-height: 130px; }

/* ---------- Placeholder informacyjny (brak materiałów) ---------- */
.notice {
  background: var(--gold-soft);
  border: 1px dashed var(--gold-deep);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  text-align: center;
  color: var(--ink-2);
}
.notice h2 { margin-bottom: 0.6rem; }

/* ---------- Dokument prawny (regulamin / polityka) ---------- */
.legal { max-width: 760px; margin-inline: auto; }
.legal > *:first-child { margin-top: 0; }
.legal p { max-width: none; margin-top: 1rem; }
.legal h2 {
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--beige-line);
}
.legal h3 { margin-top: 1.6rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; margin-top: 1rem; }
.legal li { color: var(--ink-2); margin-top: 0.4rem; }
.legal li::marker { color: var(--gold-deep); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--gold-deep); }
.legal address { font-style: normal; color: var(--ink-2); margin-top: 1rem; line-height: 1.8; }
.legal__note {
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--beige-line);
  color: var(--ink-muted);
  font-size: 0.95rem;
}
.legal__version { margin-top: 1rem; color: var(--ink-muted); font-size: 0.9rem; }

.legal .table-wrap { overflow-x: auto; margin-top: 1.2rem; -webkit-overflow-scrolling: touch; }
.legal table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--beige-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 0.95rem;
}
.legal th, .legal td {
  text-align: left;
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--beige-line);
  vertical-align: top;
}
.legal th { font-family: 'Inter', sans-serif; font-weight: 600; background: var(--beige-2); color: var(--ink); }
.legal td { color: var(--ink-2); }
.legal tr:last-child td { border-bottom: none; }

/* Natywny blok Tabeli (wp:table) w .legal — polityka/regulamin po konwersji na bloki edytowalne.
   Rdzeń (.wp-block-table) dorzuca pełne ramki td/th, 3px pod thead, padding .5em oraz UA daje figure
   margines 40px. Override scoped `.legal .wp-block-table` (0,2,x) bije rdzeń (0,1,1) → wraca design .legal.
   overflow-x:auto (scroll mobilny) i width:100% dostajemy już z rdzenia — nie dublujemy. */
.legal figure.wp-block-table { margin: 1.2rem 0 0; }
.legal .wp-block-table thead { border-bottom: none; }
.legal .wp-block-table th, .legal .wp-block-table td { border: 0; border-bottom: 1px solid var(--beige-line); padding: 0.7rem 0.95rem; }
.legal .wp-block-table tr:last-child td { border-bottom: none; }

/* <address> nie ma natywnego bloku → zamienione na akapit z klasą; odtwarzamy styl dawnego `.legal address` */
.legal__address { font-style: normal; color: var(--ink-2); margin-top: 1rem; line-height: 1.8; }

/* ---------- Stopka ---------- */
.footer {
  background: var(--ink);
  color: #E9DDD2;
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
  margin-top: clamp(3rem, 8vw, 5rem);
}
.footer a { color: #E9DDD2; }
.footer a:hover { color: var(--gold); }
.footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer__brand { font-family: 'Frank Ruhl Libre', serif; font-weight: 700; font-size: 1.3rem; color: var(--white); }
.footer__brand strong { color: var(--gold); }
/* Nagłówki stopki to teraz <h2> (semantyka: bez przeskoku poziomów).
   Override neutralizuje globalny duży h2 → wygląd identyczny jak dawne h4. */
.footer h2 { font-size: 1.05rem; font-weight: 600; color: var(--white); margin-bottom: 0.9rem; }
.footer__nav li { margin-bottom: 0; }
.footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;                /* touch target: linki stopki były ~20px wys. */
}
.footer__socials {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.8rem;
}
.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;                /* touch target: było ~29px */
}
.footer__social svg { width: 22px; height: 22px; }
.footer__logo {
  display: block;
  width: 120px;
  height: auto;
  margin-bottom: 0.5rem;
  margin-inline: auto;            /* wyśrodkowane w boksie (Inka wybrała wariant środek) */
}
/* Boks logo: mobile = pełna szerokość stopki (logo na środku stopki);
   desktop = szerokość bloku opisu (34ch) → logo wyśrodkowane nad tekstem. */
.footer__logobox { max-width: none; }
@media (min-width: 768px) {
  .footer__logobox { max-width: 34ch; }
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #C9B8AA;
}
.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Page header (podstrony) ---------- */
.page-head {
  padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Desktop: stała wysokość = najwyższy page-head (sesja-na-zakonczenie), żeby emblemat
   (watermark) układał się tak samo na każdej podstronie i się nie obcinał. Treść
   wyśrodkowana w pionie. Wartość ~ do potwierdzenia okiem, łatwa do zmiany.
   Mobile bez zmian: emblemat jest tam płynny (~50%) i nie crop'uje się. */
@media (min-width: 768px) {
  .page-head {
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}
.page-head .eyebrow { display: block; margin-bottom: 0.7rem; }
.page-head p { margin: 1rem auto 0; }

/* Znak wodny (pieczęć) za tekstem page-head - emblemat, tekst zawsze na wierzchu.
   Opacity regulowalne: 0.25 wg testu klientki; zbić jeśli za mocne. */
.page-head__wm {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(280px, 50%);   /* emblemat docięty (viewBox 86 86 203 203, fill ~95%) - szerokość przeskalowana ×0.54, żeby widoczny rozmiar został jak przy starym (fill ~51%) */
  transform: translate(-50%, -50%);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}
.page-head > *:not(.page-head__wm) { position: relative; z-index: 1; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.cta-row.center { justify-content: center; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 768px) {
  body { font-size: 18px; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .hero { grid-template-columns: 1.05fr 0.95fr; }
  .hero--reverse .hero__media { order: 2; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
  .price-list { grid-template-columns: 1fr; }
}

/* Desktopowy nav dopiero od 1025px: iPad Pro 12.9" w pionie ma DOKŁADNIE 1024px,
   więc na 1024 dostawał ściśnięty poziomy pasek menu (zamiast hamburgera).
   Próg 1025 → tablety w pionie korzystają ze sprawdzonego menu mobilnego;
   desktop i iPad w poziomie (1366px) bez zmian. */
@media (min-width: 1025px) {
  .nav__toggle { display: none; }
  .nav__links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }
  .nav__links a {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-pill);
    color: var(--ink-2);
    transition: all 0.2s var(--ease);
  }
  .nav__links a:hover { color: var(--ink); background: var(--gold-soft); }
  .nav__links a[aria-current="page"] { color: var(--gold-deep); }
  .nav__cta { display: inline-flex; }
  .nav__panel { display: none; }
  .gallery { grid-template-columns: repeat(4, 1fr); }

  /* Dropdown „Oferta" na desktopie */
  .nav__dd { position: relative; }
  .nav__dd-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink-2);
    background: transparent;
    border: none;
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-pill);
    transition: all 0.2s var(--ease);
  }
  .nav__dd-toggle:hover { color: var(--ink); background: var(--gold-soft); }
  .nav__dd-toggle.active { color: var(--gold-deep); }
  .nav__dd-toggle:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; }
  .nav__caret { width: 1em; height: 1em; transition: transform 0.2s var(--ease); }
  .nav__dd-toggle[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }

  .nav__dd-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 270px;
    background: var(--white);
    border: 1px solid var(--beige-line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 0.4rem;
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: var(--z-nav);
  }
  /* niewidzialny mostek nad menu — kursor nie wypada z :hover w drodze do pozycji */
  .nav__dd-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 0.6rem;
  }
  .nav__dd:hover .nav__dd-menu,
  .nav__dd:focus-within .nav__dd-menu,
  .nav__dd-menu.open { display: flex; }
  .nav__links .nav__dd-menu a {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.97rem;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    color: var(--ink-2);
    white-space: nowrap;
  }
  .nav__links .nav__dd-menu a:hover { background: var(--gold-soft); color: var(--ink); }
  .nav__links .nav__dd-menu a[aria-current="page"] { background: var(--gold-soft); color: var(--gold-deep); }
}

/* ---------- Dostępność: redukcja ruchu ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
