@charset "UTF-8";

/* ==========================================================================
   Medi Expert — sklep medyczny
   Arkusz stylów. Paleta i typografia wg ulotki (kremowe tło, złoto, granat NFZ).
   ========================================================================== */

/* ---------- 1. Zmienne ---------- */
:root {
  color-scheme: light;

  /* tła */
  --paper:      #FBF8F2;
  --paper-warm: #F5EFE3;
  --paper-deep: #F0E7D6;
  --card:       #FFFFFF;
  --photo-bg:   #F3F1ED;

  /* tekst */
  --ink:        #2C231A;
  --ink-soft:   #4C4034;
  --muted:      #7C6E5E;
  --muted-2:    #9A8D7D;

  /* linie */
  --line:       #E6DBC8;
  --line-soft:  #F0E8DA;

  /* złoto */
  --gold:       #B07A25;
  --gold-light: #CC9A45;
  --gold-deep:  #8A5D14;
  --gold-tint:  #F7EFDF;
  --gold-tint2: #FBF5EA;

  /* NFZ */
  --nfz:        #123A8C;
  --nfz-light:  #2C56AE;

  --ok:         #3F7A4B;
  --alert:      #A0402A;

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --maxw:  1220px;
  --maxw-wide: 1440px;
  --pad:   clamp(18px, 4.5vw, 44px);

  --r-sm: 4px;
  --r:    8px;
  --r-lg: 14px;

  --sh-sm: 0 1px 2px rgba(60, 42, 18, .06);
  --sh:    0 2px 4px rgba(60, 42, 18, .05), 0 10px 28px rgba(60, 42, 18, .07);
  --sh-lg: 0 4px 10px rgba(60, 42, 18, .07), 0 24px 60px rgba(60, 42, 18, .12);

  --sec-y: clamp(56px, 8vw, 108px);

  /* ruch — jeden zestaw krzywych dla całego serwisu */
  --ease:      cubic-bezier(.22, .7, .3, 1);    /* miękkie wyhamowanie */
  --ease-out:  cubic-bezier(.16, 1, .3, 1);     /* wejścia elementów */
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --dur-fast:  .18s;
  --dur:       .32s;
  --dur-slow:  .55s;
}

/* ---------- 2. Reset / baza ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(15.5px, 0.35vw + 14.8px, 17.5px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }

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

::selection { background: var(--gold-tint); color: var(--gold-deep); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: var(--r);
  font-size: .9rem; font-weight: 600; text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 3. Układ ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.wrap--wide { max-width: var(--maxw-wide); }
.wrap--narrow { max-width: 760px; }

.section { padding-block: var(--sec-y); }
.section--tint { background: var(--paper-warm); }
.section--card { background: var(--card); }
.section--line { border-top: 1px solid var(--line); }

/* ---------- 4. Typografia pomocnicza ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: clamp(10.5px, .8vw, 11.5px);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: currentColor; opacity: .55; flex: none;
}
.eyebrow--plain::before { display: none; }

.h-display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.005em;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -.01em;
}
.section-title em { font-style: italic; color: var(--gold-deep); }

.section-head { max-width: 62ch; display: grid; gap: 14px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.section-head--center { max-width: 66ch; margin-inline: auto; text-align: center; justify-items: center; }
.lede { color: var(--muted); font-size: clamp(1rem, .5vw + .9rem, 1.12rem); }

.rule-gold {
  width: 54px; height: 2px; border: 0; margin: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

/* ---------- 5. Przyciski ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px;
  border-radius: var(--r);
  font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  line-height: 1.25;
  text-decoration: none;
  background: var(--gold); color: #fff;
  border: 1px solid var(--gold);
  box-shadow: var(--sh-sm);
  transition:
    background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur) var(--ease);
}
/* delikatny błysk przechodzący przez przycisk */
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn:hover {
  background: var(--gold-deep); border-color: var(--gold-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(138, 93, 20, .28);
}
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: translateY(0); box-shadow: var(--sh-sm); transition-duration: .06s; }
.btn .icon { width: 1.15em; height: 1.15em; flex: none; transition: transform var(--dur) var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn--ghost:hover {
  background: var(--gold-tint2); border-color: var(--gold); color: var(--gold-deep);
  box-shadow: 0 6px 16px rgba(60, 42, 18, .1);
}
.btn--ghost::before { background: linear-gradient(105deg, transparent 30%, rgba(176, 122, 37, .12) 50%, transparent 70%); }

.btn--dark { background: var(--ink); border-color: var(--ink); }
.btn--dark:hover { background: #17110B; border-color: #17110B; box-shadow: 0 6px 18px rgba(28, 21, 13, .3); }

.btn--sm { padding: 9px 17px; font-size: .875rem; }
.btn--block { width: 100%; }

.link-more {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: .93rem;
  color: var(--gold-deep); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  padding-bottom: 2px;
  transition: gap .16s ease, border-color .16s ease;
}
.link-more:hover { gap: 12px; border-color: var(--gold); }

/* ---------- 6. Pasek górny ---------- */
.topbar {
  background: var(--ink);
  color: #EDE4D6;
  font-size: .8rem;
  letter-spacing: .015em;
}
.topbar__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px 28px; flex-wrap: wrap;
  min-height: 40px; padding-block: 7px;
}
.topbar__list { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.topbar__list li { display: inline-flex; align-items: center; gap: 8px; }
.topbar__list .icon { width: 15px; height: 15px; color: var(--gold-light); flex: none; }
.topbar a { text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar__nfz {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  font-size: .68rem; color: #fff;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.18);
  padding: 4px 12px; border-radius: 999px;
}
.topbar__nfz .icon { width: 14px; height: 14px; color: var(--gold-light); }

/* ---------- 7. Nagłówek ---------- */
.header {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.header.is-stuck { box-shadow: 0 6px 22px rgba(60, 42, 18, .08); }

.header__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 78px; padding-block: 10px;
}

.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; flex: none; }
.brand__logo { display: block; height: clamp(40px, 6vw, 54px); width: auto; }
.brand__mark { width: 44px; height: 44px; color: var(--gold); flex: none; }
.brand__text { display: grid; gap: 3px; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.32rem, 1.6vw, 1.62rem);
  letter-spacing: .005em;
  color: var(--ink);
  white-space: nowrap;
}
.brand__name em { font-style: italic; color: var(--gold-deep); }
.brand__sub {
  font-size: .58rem; font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: clamp(14px, 1.9vw, 30px); }

/* `:not(.btn)` jest tu konieczne — bez tego te reguły wygrywają specyficznością
   z klasą .btn i zerują jej wypełnienie oraz obramowanie. */
.nav a:not(.btn) {
  position: relative;
  font-size: .92rem; font-weight: 600;
  text-decoration: none; color: var(--ink-soft);
  padding: 8px 0;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease);
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}
.nav a:not(.btn):hover { color: var(--gold-deep); }
.nav a:not(.btn):hover::after,
.nav a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }

.nav .btn { flex: none; }

.header__cta { display: flex; align-items: center; gap: 12px; flex: none; }
.header__phone {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: .98rem; text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.header__phone .icon { width: 18px; height: 18px; color: var(--gold); }
.header__phone:hover { color: var(--gold-deep); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r);
  color: var(--ink); background: var(--card);
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

/* ---------- 8. Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--paper); }
.hero::after {
  /* złota fala u dołu — motyw z ulotki */
  content: "";
  position: absolute; inset: auto 0 -1px 0; height: 90px;
  background:
    radial-gradient(120% 100% at 50% 100%, var(--gold-tint) 0 60%, transparent 62%);
  opacity: .8; pointer-events: none;
}
.hero__grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(40px, 6vw, 88px) clamp(52px, 7vw, 104px);
}
.hero__copy { display: grid; gap: clamp(16px, 2vw, 24px); justify-items: start; max-width: 34ch; }
.hero__copy > * { animation: hero-rise .75s var(--ease-out) both; }
.hero__copy > *:nth-child(1) { animation-delay: .04s; }
.hero__copy > *:nth-child(2) { animation-delay: .12s; }
.hero__copy > *:nth-child(3) { animation-delay: .20s; }
.hero__copy > *:nth-child(4) { animation-delay: .28s; }
.hero__copy > *:nth-child(5) { animation-delay: .36s; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 5.4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.015em;
}
.hero h1 .accent { color: var(--gold-deep); font-style: italic; }
.hero__sub { color: var(--muted); font-size: clamp(1rem, .55vw + .92rem, 1.15rem); max-width: 44ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--r);
  padding: 9px 16px 9px 14px;
  font-weight: 700; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-deep);
  box-shadow: var(--sh-sm);
}
.hero__badge .icon { width: 18px; height: 18px; color: var(--gold); }

.hero__media { position: relative; }
.hero__media::before {
  /* złoty łuk za zdjęciem — wysokość liczona z szerokości, więc łuk trzyma się
     kwadratowego zdjęcia także wtedy, gdy pod nim stoi karta z podpisem */
  content: "";
  position: absolute;
  top: 6%; left: 4%; right: -4%;
  aspect-ratio: 1 / .92;
  border-radius: 999px 999px 40% 40%;
  background: linear-gradient(160deg, var(--gold-tint) 0%, var(--paper-deep) 100%);
  z-index: 0;
  animation: hero-arc 1.1s var(--ease-out) both;
}
.hero__photo {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 1 / 1;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 24px 34px rgba(60, 42, 18, .16));
  animation: hero-photo .95s var(--ease-out) .12s both;
}
/* Animujemy samo zdjęcie, nie kontener .hero__media — nadanie kontenerowi
   transformacji lub przezroczystości utworzyłoby kontekst stosu i na czas
   animacji zepsuło tryb mieszania `multiply` (białe tło zdjęcia przestałoby
   wtapiać się w kremową stronę). */
@keyframes hero-photo {
  from { opacity: 0; transform: translateY(26px) scale(.965); }
  to   { opacity: 1; transform: none; }
}
@keyframes hero-arc {
  from { opacity: 0; transform: scale(.9) translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
.hero__tag {
  animation: hero-rise .8s var(--ease-out) .55s both;
  position: absolute; z-index: 2; right: 2%; bottom: 6%;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 11px 16px;
  box-shadow: var(--sh);
  display: grid; gap: 2px;
  max-width: 62%;
}
.hero__tag strong { font-size: .92rem; }
.hero__tag span { font-size: .78rem; color: var(--muted); }

/* ---------- 9. Pasek NFZ ---------- */
.nfz-band { background: var(--ink); color: #F3EADA; }
.nfz-band__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: clamp(20px, 4vw, 56px);
  padding-block: clamp(24px, 3.4vw, 38px);
}
.nfz-band__copy { display: grid; gap: 8px; }
.nfz-band__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.95rem);
  line-height: 1.15;
  color: #fff;
}
.nfz-band__copy p { color: #C9BCA8; font-size: .97rem; max-width: 58ch; }
.nfz-band__logo {
  background: #fff; border-radius: var(--r);
  padding: 14px 22px;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
}
.nfz-logo { width: clamp(150px, 17vw, 200px); height: auto; }

/* logo NFZ złożone typograficznie (zgodnie z ulotką) */
.nfz-logo__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 46px;
  letter-spacing: .01em;
  fill: var(--nfz);
}
.nfz-logo__sub {
  font-family: var(--font-body);
  font-size: 11.2px;
  letter-spacing: .012em;
  fill: var(--nfz);
}

/* ---------- 10. Oferta (8 kategorii) ---------- */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.offer-item {
  position: relative;
  display: grid; gap: 12px; justify-items: center; text-align: center;
  padding: clamp(22px, 3vw, 34px) 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background var(--dur) var(--ease);
}
.offer-item::after {
  /* złota kreska wjeżdżająca od dołu kafelka */
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease);
}
.offer-item:hover { background: var(--gold-tint2); }
.offer-item:hover::after, .offer-item:focus-visible::after { transform: scaleX(1); }

.offer-item__icon {
  width: 58px; height: 58px; flex: none;
  display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--gold) 42%, transparent);
  border-radius: 50%;
  color: var(--gold);
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease);
}
.offer-item:hover .offer-item__icon {
  background: var(--gold-tint); border-color: var(--gold);
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 8px 18px rgba(176, 122, 37, .22);
}
.offer-item__icon .icon { width: 28px; height: 28px; }
.offer-item__name {
  font-size: .8rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  line-height: 1.4;
  color: var(--ink);
  transition: color var(--dur-fast) var(--ease);
}
.offer-item:hover .offer-item__name { color: var(--gold-deep); }

/* ---------- 11. Produkty ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 9px;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.chip {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: .86rem; font-weight: 600;
  transition:
    background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}
.chip:hover {
  border-color: var(--gold); color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(60, 42, 18, .1);
}
.chip:active { transform: translateY(0); }
.chip[aria-pressed="true"] {
  background: var(--gold); border-color: var(--gold); color: #fff;
  box-shadow: 0 4px 14px rgba(176, 122, 37, .28);
}

/* karty produktów przełączane filtrem wjeżdżają zamiast migać */
@keyframes card-in {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.product.is-entering { animation: card-in .42s var(--ease-out) both; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 285px), 1fr));
  gap: clamp(18px, 2.2vw, 30px);
}

.product {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition:
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 22px rgba(60, 42, 18, .09), 0 26px 60px rgba(60, 42, 18, .12);
  border-color: color-mix(in srgb, var(--gold) 50%, var(--line));
}
.product[hidden] { display: none; }

/* `overflow: hidden` trzyma powiększane zdjęcie w kadrze — bez tego nachodzi
   na plakietkę „Refundacja NFZ” i na krawędź karty. */
.product__media {
  position: relative;
  overflow: hidden;
  background: var(--photo-bg);
  isolation: isolate;
}
.product__media::after {
  /* ciepła poświata rozjaśniająca kadr pod kursorem */
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(120% 90% at 50% 108%, rgba(176, 122, 37, .16), transparent 62%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}
.product:hover .product__media::after { opacity: 1; }

.product__media img {
  width: 100%; aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 16px;
  transform-origin: 50% 58%;
  transition: transform var(--dur-slow) var(--ease);
}
.product:hover .product__media img { transform: scale(1.06); }

.product__flag {
  position: absolute; top: 12px; left: 12px;
  z-index: 3;                       /* nad przekształconym zdjęciem */
  background: var(--nfz); color: #fff;
  font-size: .64rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--r-sm);
  box-shadow: 0 2px 8px rgba(18, 58, 140, .28);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.product:hover .product__flag {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(18, 58, 140, .34);
}
.product__flag--gold { background: var(--gold); box-shadow: 0 2px 8px rgba(138, 93, 20, .28); }

.product__name { transition: color var(--dur-fast) var(--ease); }
.product:hover .product__name { color: var(--gold-deep); }

.product__body { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px 22px; flex: 1; }
.product__cat {
  font-size: .66rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
}
.product__name {
  font-family: var(--font-display);
  font-weight: 400; font-size: 1.32rem; line-height: 1.2;
}
.product__desc { color: var(--muted); font-size: .92rem; }
.product__feats { display: grid; gap: 6px; font-size: .86rem; color: var(--ink-soft); }
.product__feats li { position: relative; padding-left: 25px; }
.product__feats .icon {
  position: absolute; left: 0; top: .32em;
  width: 16px; height: 16px; color: var(--gold);
}

.product__foot {
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.product__price { display: grid; gap: 1px; }
.product__price strong { font-size: .93rem; font-weight: 700; }
.product__price span { font-size: .74rem; color: var(--muted-2); }

.products-note {
  margin-top: clamp(22px, 3vw, 34px);
  padding: 16px 20px;
  background: var(--gold-tint2);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: .9rem; color: var(--ink-soft);
}

/* ---------- 12. Kroki NFZ ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
  counter-reset: step;
}
.step { display: grid; gap: 12px; justify-items: center; text-align: center; position: relative; }
.step:not(:last-child)::after {
  content: "";
  position: absolute; top: 34px; left: calc(50% + 44px); right: calc(-50% + 44px);
  border-top: 2px dotted color-mix(in srgb, var(--gold) 50%, transparent);
}
.step__disc {
  position: relative;
  width: 68px; height: 68px;
  display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  border-radius: 50%;
  background: var(--card);
  color: var(--gold);
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.step:hover .step__disc {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 10px 22px rgba(176, 122, 37, .2);
}
.step__disc .icon { width: 30px; height: 30px; transition: transform var(--dur) var(--ease-out); }
.step:hover .step__disc .icon { transform: scale(1.1); }
.step__num {
  position: absolute; top: -8px; right: -8px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold); color: #fff;
  display: grid; place-items: center;
  font-size: .78rem; font-weight: 700;
  font-family: var(--font-body);
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease);
}
.step:hover .step__num { transform: scale(1.14); background: var(--gold-deep); }
.step__title {
  font-size: .82rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  line-height: 1.4;
  /* dwie linie wysokości, aby opisy pod spodem trzymały wspólną linię */
  min-height: 2.8em;
  display: flex; align-items: center;
}
.step__text { font-size: .88rem; color: var(--muted); max-width: 26ch; }

/* ---------- 13. O nas ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}
.about-copy { display: grid; gap: 18px; }
.about-copy p { color: var(--ink-soft); }
.about-copy p.intro {
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.3vw, 1.35rem);
  line-height: 1.5; color: var(--ink);
}
.about-copy strong { color: var(--ink); font-weight: 600; }

.about-figure { position: relative; }
.about-figure img {
  width: 100%; border-radius: var(--r-lg);
  aspect-ratio: 4 / 5; object-fit: cover;
  background: var(--photo-bg);
}
.about-figure figcaption {
  margin-top: 12px; font-size: .82rem; color: var(--muted-2);
  display: flex; align-items: center; gap: 8px;
}
.about-figure figcaption::before { content: ""; width: 18px; height: 1px; background: var(--gold); flex: none; }

.mission {
  margin-top: clamp(34px, 4.5vw, 56px);
  padding: clamp(24px, 3.4vw, 42px);
  background: var(--gold-tint2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: grid; gap: 12px;
}
.mission__title {
  font-family: var(--font-display); font-size: 1.4rem;
}
.mission p { color: var(--ink-soft); max-width: 78ch; }

/* ---------- 14. Dlaczego warto ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.why-item {
  display: grid; gap: 12px; justify-items: center; text-align: center;
  padding: clamp(24px, 3vw, 36px) clamp(14px, 2vw, 26px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background var(--dur) var(--ease);
}
.why-item:hover { background: color-mix(in srgb, var(--card) 60%, transparent); }
.why-item:nth-child(3n) { border-right: 0; }
.why-item:nth-last-child(-n+3) { border-bottom: 0; }
.why-item__icon {
  width: 62px; height: 62px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold-tint);
  color: var(--gold-deep);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease);
}
.why-item:hover .why-item__icon {
  transform: translateY(-4px) rotate(-4deg);
  box-shadow: 0 10px 20px rgba(176, 122, 37, .2);
}
.why-item__icon .icon { width: 28px; height: 28px; }
.why-item h3 {
  font-size: .84rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; line-height: 1.4;
}
.why-item p { font-size: .9rem; color: var(--muted); max-width: 34ch; }

/* ---------- 15. Refundacja krok po kroku (akordeon) ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__btn {
  width: 100%; text-align: left;
  display: grid; grid-template-columns: 44px 1fr 24px;
  align-items: center; gap: 14px;
  padding: 20px 4px;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.2vw, 1.18rem);
  color: var(--ink);
  transition: color .16s ease;
}
.faq__btn:hover { color: var(--gold-deep); }
.faq__step {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold-tint); color: var(--gold-deep);
  font-family: var(--font-body); font-size: .84rem; font-weight: 700;
}
.faq__btn[aria-expanded="true"] .faq__step { background: var(--gold); color: #fff; }
.faq__chev { color: var(--gold); transition: transform .22s ease; }
.faq__chev .icon { width: 22px; height: 22px; }
.faq__btn[aria-expanded="true"] .faq__chev { transform: rotate(180deg); }

.faq__item { border-bottom: 1px solid var(--line); transition: background var(--dur) var(--ease); }
.faq__item:hover { background: color-mix(in srgb, var(--gold-tint2) 55%, transparent); }

.faq__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s var(--ease); }
.faq__panel > div { overflow: hidden; }
.faq__panel.is-open { grid-template-rows: 1fr; }
.faq__body {
  padding: 0 4px 24px 62px; display: grid; gap: 12px;
  color: var(--ink-soft); font-size: .96rem;
  opacity: 0; translate: 0 -6px;
  transition: opacity .3s var(--ease) .06s, translate .3s var(--ease) .06s;
}
.faq__panel.is-open .faq__body { opacity: 1; translate: none; }
.faq__body ul { display: grid; gap: 7px; }
.faq__body ul li { position: relative; padding-left: 26px; }
.faq__body ul .icon {
  position: absolute; left: 0; top: .34em;
  width: 16px; height: 16px; color: var(--gold);
}
.faq__body address { font-style: normal; line-height: 1.55; }

.disclaimer {
  margin-top: clamp(24px, 3vw, 36px);
  padding: 18px 22px;
  border: 1px dashed var(--line);
  border-radius: var(--r);
  background: var(--paper-warm);
  font-size: .87rem; color: var(--muted);
}

/* ---------- 16. Galeria ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
.gallery figure { margin: 0; }
.gallery button {
  position: relative;
  display: block; width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden; background: var(--photo-bg);
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.gallery button:hover,
.gallery button:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 10px 26px rgba(60, 42, 18, .14);
  transform: translateY(-3px);
}
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.gallery button:hover img,
.gallery button:focus-visible img { transform: scale(1.06); }

/* ikona lupy pojawiająca się nad zdjęciem */
.gallery button::after {
  content: "";
  position: absolute; right: 10px; bottom: 10px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .92) center / 17px 17px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A5D14' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E");
  box-shadow: 0 3px 12px rgba(60, 42, 18, .22);
  opacity: 0; transform: scale(.75);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease-out);
  pointer-events: none;
}
.gallery button:hover::after,
.gallery button:focus-visible::after { opacity: 1; transform: scale(1); }

.gallery figcaption { margin-top: 9px; font-size: .82rem; color: var(--muted); transition: color var(--dur-fast) var(--ease); }
.gallery figure:hover figcaption { color: var(--gold-deep); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 140;
  display: none; place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(28, 21, 13, .9);
}
.lightbox[open], .lightbox.is-open { display: grid; animation: fade-in .22s var(--ease) both; }
.lightbox img { max-width: min(1100px, 100%); max-height: 82vh; object-fit: contain; border-radius: var(--r); background: #fff; }
.lightbox.is-open img { animation: pop-in .38s var(--ease-out) both; }
.lightbox__close, .lightbox__nav { transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.lightbox__close:hover, .lightbox__nav:hover { transform: scale(1.08); }
.lightbox__cap { margin-top: 14px; color: #E9DECB; font-size: .9rem; text-align: center; }
.lightbox__close {
  position: absolute; top: clamp(12px, 2vw, 24px); right: clamp(12px, 2vw, 24px);
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.24);
}
.lightbox__close:hover { background: rgba(255,255,255,.22); }
.lightbox__close .icon { width: 22px; height: 22px; }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.24);
}
.lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__nav .icon { width: 24px; height: 24px; }
.lightbox__nav--prev { left: clamp(8px, 2vw, 26px); }
.lightbox__nav--next { right: clamp(8px, 2vw, 26px); }

/* ---------- 17. Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  display: grid; grid-template-columns: 46px 1fr; gap: 16px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.contact-card:hover {
  transform: translateX(4px);
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
  box-shadow: 0 8px 20px rgba(60, 42, 18, .09);
}
.contact-card__icon {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold-tint); color: var(--gold-deep);
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease);
}
.contact-card:hover .contact-card__icon { transform: scale(1.08); background: var(--gold); color: #fff; }
.contact-card__icon .icon { width: 22px; height: 22px; }
.contact-card h3 {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2);
  margin-bottom: 5px;
}
.contact-card p, .contact-card address { font-style: normal; font-size: 1.02rem; line-height: 1.5; }
.contact-card a { text-decoration: none; font-weight: 600; }
.contact-card a:hover { color: var(--gold-deep); text-decoration: underline; }
.contact-card small { display: block; color: var(--muted); font-size: .85rem; font-weight: 400; margin-top: 3px; }

.landmarks {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  padding: 16px 22px; margin-top: 2px;
  border: 1px dashed var(--line); border-radius: var(--r-lg);
  background: var(--gold-tint2);
}
.landmarks li { display: inline-flex; align-items: center; gap: 9px; font-size: .84rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.landmarks .icon { width: 18px; height: 18px; }
.landmarks li:nth-child(1) .icon { color: var(--ok); }
.landmarks li:nth-child(2) .icon { color: var(--gold); }
.landmarks li:nth-child(3) .icon { color: var(--muted); }

.contact-form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 34px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.contact-form h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; }
.field { display: grid; gap: 6px; }
.field label { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--paper); color: var(--ink);
  font-size: .97rem;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent);
}
.field textarea { min-height: 118px; resize: vertical; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 11px; align-items: start; font-size: .82rem; color: var(--muted); line-height: 1.5; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); }
.consent a { color: var(--gold-deep); }
.form-status { font-size: .88rem; font-weight: 600; }
.form-status[data-state="ok"] { color: var(--ok); }
.form-status[data-state="err"] { color: var(--alert); }

/* ---------- 18. Stopka ---------- */
.footer { background: var(--ink); color: #DCD0BE; border-top: 3px solid var(--gold); }
.footer__slogan {
  text-align: center;
  padding-block: clamp(26px, 3.4vw, 42px);
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  color: #F6EEE1;
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
}
.footer__slogan em { font-style: italic; color: var(--gold-light); }
.footer__slogan .icon { width: 26px; height: 26px; color: var(--gold-light); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: clamp(26px, 3.4vw, 52px);
  padding-block: clamp(38px, 5vw, 64px);
}
.footer__brand .brand__name { color: #F6EEE1; }
.footer__brand .brand__name em { color: var(--gold-light); }
.footer__brand .brand__sub { color: #9E9585; }
.footer__brand .brand__mark { color: var(--gold-light); }
.footer__brand p { margin-top: 14px; font-size: .9rem; color: #A99C8B; max-width: 38ch; }
.footer h3 {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.footer ul { display: grid; gap: 10px; font-size: .92rem; }
.footer a { text-decoration: none; color: #DCD0BE; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer address { font-style: normal; font-size: .92rem; line-height: 1.6; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 20px 26px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  font-size: .82rem; color: #97897A;
}
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__legal-note { width: 100%; font-size: .76rem; color: #7E7263; line-height: 1.6; }

/* ---------- 19. Cookies ---------- */
.cookie-bar {
  position: fixed; inset: auto 0 0 0; z-index: 150;
  background: var(--card);
  border-top: 3px solid var(--gold);
  box-shadow: 0 -10px 40px rgba(44, 35, 26, .18);
  transform: translateY(102%);
  transition: transform .32s cubic-bezier(.22,.7,.3,1);
}
.cookie-bar.is-open { transform: translateY(0); }
.cookie-bar__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: clamp(16px, 3vw, 40px);
  padding-block: clamp(18px, 2.4vw, 26px);
}
.cookie-bar__copy { display: grid; gap: 7px; }
.cookie-bar__copy h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.22rem;
  display: flex; align-items: center; gap: 10px;
}
.cookie-bar__copy h2 .icon { width: 22px; height: 22px; color: var(--gold); }
.cookie-bar__copy p { font-size: .9rem; color: var(--muted); max-width: 84ch; }
.cookie-bar__copy a { color: var(--gold-deep); font-weight: 600; }
.cookie-bar__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cookie-bar__actions .btn { min-width: 168px; }

.cookie-fab {
  position: fixed; left: 16px; bottom: 16px; z-index: 120;
  width: 48px; height: 48px; border-radius: 50%;
  display: none; place-items: center;
  background: var(--card); color: var(--gold-deep);
  border: 1px solid var(--line);
  box-shadow: var(--sh);
}
.cookie-fab.is-visible { display: grid; animation: pop-in .4s var(--ease-out) both; }
.cookie-fab {
  transition:
    border-color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease),
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease);
}
.cookie-fab:hover {
  border-color: var(--gold); background: var(--gold-tint2);
  transform: translateY(-3px) rotate(-8deg);
  box-shadow: 0 10px 22px rgba(60, 42, 18, .18);
}
.cookie-fab .icon { width: 23px; height: 23px; }

.modal {
  position: fixed; inset: 0; z-index: 160;
  display: none; place-items: center;
  padding: clamp(12px, 3vw, 40px);
  background: rgba(28, 21, 13, .55);
  backdrop-filter: blur(3px);
}
.modal.is-open { display: grid; animation: fade-in .24s var(--ease) both; }
.modal.is-open .modal__box { animation: pop-in .36s var(--ease-out) both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.modal__box {
  width: min(720px, 100%);
  max-height: min(86vh, 860px);
  display: flex; flex-direction: column;
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.modal__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--line);
}
.modal__head h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; }
.modal__head p { font-size: .88rem; color: var(--muted); margin-top: 6px; max-width: 60ch; }
.modal__close {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  border: 1px solid var(--line); color: var(--muted);
}
.modal__close:hover { background: var(--paper-warm); color: var(--ink); }
.modal__close .icon { width: 19px; height: 19px; }
.modal__body { padding: 8px 26px 20px; overflow-y: auto; }
.modal__foot {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end;
  padding: 18px 26px 22px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.cc-group { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.cc-group:last-child { border-bottom: 0; }
.cc-group__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.cc-group__head h3 { font-size: 1rem; font-weight: 700; }
.cc-group__head p { font-size: .88rem; color: var(--muted); margin-top: 5px; }
.cc-group__req { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ok); white-space: nowrap; padding-top: 4px; }
.cc-group details { margin-top: 12px; }
.cc-group summary {
  cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--gold-deep);
  list-style: none; display: inline-flex; align-items: center; gap: 7px;
}
.cc-group summary::-webkit-details-marker { display: none; }
.cc-group summary::before { content: "▸"; font-size: .8em; transition: transform .18s ease; }
.cc-group details[open] summary::before { transform: rotate(90deg); }

.switch { position: relative; display: inline-block; width: 50px; height: 28px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch__track {
  position: absolute; inset: 0; border-radius: 999px;
  background: #D8CDBB; transition: background .18s ease;
  pointer-events: none;
}
.switch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.24);
  transition: transform .2s ease;
}
.switch input:checked + .switch__track { background: var(--gold); }
.switch input:checked + .switch__track::after { transform: translateX(22px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--gold); outline-offset: 3px; }
.switch input:disabled + .switch__track { background: var(--ok); opacity: .55; cursor: not-allowed; }

/* ---------- 20. Tabele / strony prawne ---------- */
.page-hero {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(38px, 5vw, 68px);
}
.page-hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1;
}
.page-hero p { margin-top: 12px; color: var(--muted); max-width: 66ch; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { text-decoration: none; color: var(--gold-deep); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }

.prose { max-width: 78ch; display: grid; gap: 18px; }
.prose h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  margin-top: clamp(18px, 2.4vw, 30px);
  padding-top: clamp(18px, 2.4vw, 30px);
  border-top: 1px solid var(--line);
  line-height: 1.2;
}
.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.prose h3 { font-size: 1.05rem; font-weight: 700; margin-top: 8px; }
.prose p, .prose li { color: var(--ink-soft); }
/* Znaczniki list rysujemy przez ::before w pozycjonowaniu absolutnym.
   Układ siatki jest tu nie do użycia: w kontenerze grid każdy element inline
   (<strong>, <a>, <code>) staje się osobnym elementem siatki i tekst rozpada
   się na kolumny. */
.prose ul, .prose ol { display: grid; gap: 9px; padding-left: 0; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before {
  content: ""; position: absolute; left: 5px; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 32px; counter-increment: n; }
.prose ol li::before {
  content: counter(n) "."; position: absolute; left: 0; top: 0;
  font-weight: 700; color: var(--gold-deep);
}
.prose a { color: var(--gold-deep); font-weight: 600; }
.prose address { font-style: normal; line-height: 1.6; }
.prose .callout {
  padding: 18px 22px; background: var(--gold-tint2);
  border-left: 3px solid var(--gold); border-radius: 0 var(--r) var(--r) 0;
  font-size: .94rem;
}
.prose .callout--warn { background: #FBF1EC; border-left-color: var(--alert); }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
/* tabele mogą wyjść poza kolumnę tekstu — inaczej kolumna „Cel” robi się nieczytelna */
.prose .table-scroll { max-width: none; width: min(1000px, calc(100vw - 2 * var(--pad))); }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 640px; }
table.data th, table.data td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data thead th {
  background: var(--paper-warm);
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data code {
  font-family: Consolas, "SF Mono", Menlo, monospace;
  font-size: .92em; background: var(--gold-tint2);
  padding: 2px 6px; border-radius: var(--r-sm); color: var(--gold-deep);
  white-space: nowrap;
}
.doc-meta { font-size: .82rem; color: var(--muted-2); }

/* ---------- 21. Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 170;
  transform: translate(-50%, 22px);
  background: var(--ink); color: #F6EEE1;
  padding: 13px 24px; border-radius: var(--r);
  font-size: .92rem; font-weight: 600;
  box-shadow: var(--sh-lg);
  opacity: 0; pointer-events: none;
  transition: opacity .24s ease, transform .24s ease;
  max-width: calc(100vw - 32px);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 22. Wejścia przy przewijaniu ----------
   Używamy własności `translate`, a nie `transform`. Dzięki temu przesunięcie
   wejściowe nie nadpisuje przekształceń z hoverów (karty produktów unoszą się
   przez `transform`) — obie własności składają się ze sobą. */
/* Stan początkowy tylko przy włączonym JavaScripcie (klasę `js` dopisuje
   skrypt w <head>). Bez JS treść jest po prostu widoczna od razu. */
.js .reveal {
  opacity: 0; translate: 0 18px;
  transition: opacity var(--dur-slow) var(--ease-out), translate var(--dur-slow) var(--ease-out);
}
.js .reveal.is-in { opacity: 1; translate: none; }

/* Kaskada: kontener dostaje [data-stagger], opóźnienia liczy skrypt. */
.js [data-stagger] > * {
  opacity: 0; translate: 0 22px;
  transition: opacity .6s var(--ease-out), translate .6s var(--ease-out);
}
.js [data-stagger].is-in > * { opacity: 1; translate: none; }

/* ==========================================================================
   23. RWD
   ========================================================================== */

/* Duże ekrany */
@media (min-width: 1600px) {
  :root { --maxw: 1340px; --sec-y: clamp(72px, 6.2vw, 128px); }
  .hero__grid { padding-block: 96px 116px; }
}

/* Laptop / mały desktop */
@media (max-width: 1120px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 1040px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 34px; }
  .step::after { display: none; }
  .offer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Tablet */
@media (max-width: 960px) {
  html { scroll-padding-top: 78px; }

  .nav-toggle { display: flex; }
  .header__row { min-height: 66px; }
  .nav {
    position: fixed; inset: 66px 0 auto 0;
    flex-direction: column; align-items: stretch;
    gap: 0;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(60, 42, 18, .14);
    padding: 6px var(--pad) 18px;
    max-height: calc(100dvh - 66px);
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) {
    padding: 15px 2px; font-size: 1rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; justify-content: center; }

  .header__cta .header__phone span { display: none; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { max-width: 46ch; justify-self: center; text-align: center; justify-items: center; }
  .hero__sub { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__media { max-width: 460px; margin-inline: auto; width: 100%; }

  .nfz-band__row { grid-template-columns: 1fr; justify-items: start; gap: 22px; }

  .about-grid { grid-template-columns: 1fr; }
  .about-figure { max-width: 420px; }

  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-item:nth-child(3n) { border-right: 1px solid var(--line); }
  .why-item:nth-child(2n) { border-right: 0; }
  .why-item:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .why-item:nth-last-child(-n+2) { border-bottom: 0; }

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

  .cookie-bar__row { grid-template-columns: 1fr; }
  .cookie-bar__actions .btn { flex: 1 1 210px; min-width: 0; }
}

/* Telefon */
@media (max-width: 700px) {
  html { scroll-padding-top: 72px; }
  .nav { inset-block-start: 62px; max-height: calc(100dvh - 62px); }
  .header__row { min-height: 62px; }
  .brand__mark { width: 38px; height: 38px; }

  /* poniżej 700 px karta „producent wózków” nie mieści się już na zdjęciu */
  .hero__tag {
    position: relative; inset: auto; z-index: 2;
    max-width: none; margin-top: 16px; text-align: left;
  }

  .topbar__row { justify-content: center; text-align: center; }
  .topbar__list { justify-content: center; gap: 6px 18px; font-size: .78rem; }
  .topbar__list li:nth-child(3) { display: none; }

  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: 1fr; }
  .why-item { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .why-item:last-child { border-bottom: 0 !important; }

  .product-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .field--row { grid-template-columns: 1fr; }
  .faq__btn { grid-template-columns: 36px 1fr 20px; gap: 11px; padding: 17px 2px; }
  .faq__step { width: 30px; height: 30px; font-size: .78rem; }
  .faq__body { padding-left: 47px; }

  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .modal__head, .modal__body, .modal__foot { padding-inline: 18px; }
  .modal__foot .btn { flex: 1 1 100%; }
  .cookie-bar__actions .btn { flex: 1 1 100%; }
  .toast { left: 16px; right: 16px; bottom: 16px; transform: translateY(20px); max-width: none; }
  .toast.is-visible { transform: translateY(0); }
}

@media (max-width: 360px) {
  .offer-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .offer-item__name, .step__title, .why-item h3 { letter-spacing: .06em; }
}

/* Preferencje użytkownika */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media (prefers-contrast: more) {
  :root { --muted: #5C5044; --line: #C9B99E; }
}

/* Druk */
@media print {
  .topbar, .header, .cookie-bar, .cookie-fab, .modal, .lightbox, .toast, .contact-form, .filters { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .section { padding-block: 18pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: #666; }
  .reveal { opacity: 1; transform: none; }
}
