/* ==========================================================================
   Pellet Jasiński – style.css
   Design system wg CLAUDE.md, sekcja 6. Mobile-first, bez frameworków i CDN.
   Montserrat (SIL OFL 1.1 – fonts/OFL-Montserrat.txt): font zmienny, 2 podzbiory.
   ========================================================================== */

/* --- Fonty ------------------------------------------------------------------ */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Tokeny ----------------------------------------------------------------- */
:root {
  --orange: #FF7800;
  --orange-300: #FF9D3D;
  --orange-700: #C25500;
  --graphite: #151515;
  --graphite-800: #232323;
  --cream: #F5F2EB;
  --white: #FFFFFF;
  --wood: #D7B892;
  --wood-200: #EADFCD;     /* linie w tabelach i etykietach */
  --muted: #5E5A52;
  --ok: #2E7D4F;
  --off: #8A8580;           /* tylko kropka statusu i grafiki – za słaby na tekst */
  --line: #7A756E;          /* obramowania pól formularza (≥ 3:1) */
  --gradient: linear-gradient(135deg, #FF7800, #FF9D3D);
  --radius: 10px;
  --radius-sm: 6px;

  /* Skala odstępów: 8 16 24 32 48 64 96 */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 64px;
  --bar-h: 64px;
  --slant: 37deg;           /* nachylenie skosów sygnetu */
}

/* --- Reset i baza ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--graphite);
  background: var(--cream);
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0 0 var(--s2); }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
address { font-style: normal; }
ul, ol { margin: 0; padding: 0; }
:where(section, [id]) { scroll-margin-top: calc(var(--header-h) + var(--s2)); }

/* Focus: pomarańcz marki + grafitowy pierścień, żeby było ≥ 3:1 na każdym tle */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--graphite);
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s2); top: -100px; z-index: 100;
  padding: var(--s1) var(--s2); background: var(--graphite); color: var(--white); font-weight: 600;
}
.skip-link:focus { top: var(--s1); }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon--sm { width: 1em; height: 1em; }

/* --- Układ ------------------------------------------------------------------ */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--s2); }
.container--narrow { max-width: 820px; }
@media (min-width: 768px) { .container { padding-inline: var(--s4); } }

.section { padding-block: var(--s6); }
.section--white { background: var(--white); }
@media (min-width: 960px) { .section { padding-block: var(--s7); } }

.section-title { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem); margin-bottom: var(--s3); }
.section-title--sm { font-size: 1.375rem; margin-bottom: var(--s2); }
.page-title { font-size: clamp(2rem, 1.3rem + 3vw, 3rem); margin-bottom: var(--s3); }
.section-lead { font-size: 1.125rem; color: var(--muted); max-width: 60ch; margin-bottom: var(--s4); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s4); }
.section-head .section-title { margin-bottom: 0; }
.note { font-size: .875rem; color: var(--muted); margin-top: var(--s2); }
.prose { max-width: 68ch; }
.prose p, .prose ul { margin-bottom: var(--s2); }
.prose ul { padding-left: 1.25em; }
.link-strong { font-weight: 600; text-decoration-color: var(--orange-700); text-decoration-thickness: 2px; }
.link-strong:hover { color: var(--orange-700); }

/* Tagline marki: wersaliki z rozstrzeleniem + krótka kreska (jak w logo) */
.tagline { text-transform: uppercase; letter-spacing: .28em; font-size: .8125rem; font-weight: 600; }
.tagline::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 12px; background: var(--orange); }

/* --- Przyciski ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  min-height: 48px; padding: 12px 20px;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  font: 700 1rem/1.2 var(--font); letter-spacing: -0.01em; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--orange); color: var(--graphite); }           /* 6,9:1 */
.btn--primary:hover { background: var(--orange-300); }
.btn--secondary { background: var(--graphite); color: var(--white); }
.btn--secondary:hover { background: var(--graphite-800); }
.btn--ghost { background: transparent; color: var(--graphite); border-color: var(--graphite); }
.btn--ghost:hover { background: var(--graphite); color: var(--white); }
.btn--ghost-dark { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn--ghost-dark:hover { background: var(--cream); color: var(--graphite); }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1.0625rem; }
.btn--block { width: 100%; }

/* --- Badge i status ------------------------------------------------------------ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; line-height: 1.4;
}
.badge--pellet { background: var(--wood); color: var(--graphite); }
.badge--groszek { background: var(--graphite); color: var(--cream); }
.badge--cert { background: var(--white); color: var(--graphite); border: 1px solid var(--wood); text-transform: none; letter-spacing: 0; }

.status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-weight: 600; font-size: .9375rem; margin: 0; }
.status--ok { color: var(--ok); }
.status--off { color: var(--muted); }
.status--off .status__dot { color: var(--off); }
.status__note { font-weight: 400; }
.status--inline { display: block; font-size: .8125rem; font-weight: 600; margin-top: 2px; }

/* --- Nagłówek -------------------------------------------------------------------- */
.announcement { background: var(--orange); color: var(--graphite); font-weight: 600; font-size: .9375rem; padding-block: var(--s1); text-align: center; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--wood);
}
.site-header__inner { display: flex; align-items: center; gap: var(--s3); min-height: var(--header-h); }
.site-header__logo { display: block; margin-right: auto; padding-block: var(--s1); }
.site-header__logo img { width: 92px; height: auto; }    /* wysokość ≤ 48 px – mieści się w --header-h */
.site-header__call { display: none; }

.nav--desktop { display: none; }
.nav__list { display: flex; gap: var(--s3); list-style: none; }
.nav__list a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.nav__list a:hover, .nav__list a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 8px; }

.nav--mobile > summary {
  display: flex; align-items: center; gap: var(--s1);
  min-height: 44px; padding: 0 var(--s2); margin-right: calc(-1 * var(--s1));
  font-weight: 600; cursor: pointer; list-style: none; border-radius: var(--radius-sm);
}
.nav--mobile > summary::-webkit-details-marker { display: none; }
.nav--mobile[open] > summary { background: var(--graphite); color: var(--white); }
.nav--mobile nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--cream); border-bottom: 1px solid var(--wood);
  padding: var(--s1) var(--s2) var(--s2);
}
.nav__list--mobile { flex-direction: column; gap: 0; }
.nav__list--mobile a { width: 100%; min-height: 48px; border-bottom: 1px solid var(--wood-200); font-size: 1.0625rem; }

@media (min-width: 960px) {
  :root { --header-h: 80px; }
  .site-header__logo img { width: 120px; }  /* wysokość 62 px przy --header-h 80 px */
  .nav--desktop { display: block; }
  .nav--mobile { display: none; }
  .site-header__call { display: inline-flex; }
}

/* --- Hero: zdjęcie z worka przy kominku; jedyny skos na ekranie = dolna krawędź ------ */
/* Zdjęcie zawsze jako tło całego hero (od samej góry). Mobile: tekst na przyciemnionej górze kadru,
   worek widoczny pod przyciskami. Desktop: tekst na ciemnej lewej części kadru. */
.hero {
  --hero-cut: 40px;                     /* wysokość skosu dolnej krawędzi */
  position: relative; background: var(--graphite); color: var(--cream); overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--hero-cut)), 0 100%);
}
/* pomarańczowy pas równoległy do cięcia – motyw szewronu z sygnetu */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: var(--orange);
  clip-path: polygon(0 calc(100% - 8px), 100% calc(100% - var(--hero-cut) - 8px), 100% calc(100% - var(--hero-cut)), 0 100%);
}
.hero__inner { position: relative; z-index: 2; padding-block: var(--s5) calc(200px + var(--hero-cut)); }
.tagline--hero { color: var(--orange); margin-bottom: var(--s3); }
.hero__title { font-size: clamp(2.5rem, 1.4rem + 5vw, 4.5rem); line-height: 1; letter-spacing: -0.035em; max-width: 12ch; margin-bottom: var(--s3); color: var(--white); text-wrap: balance; }
.hero__place { display: block; margin-top: var(--s2); font-size: .45em; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; color: var(--wood); }
.hero__lead { font-size: 1.125rem; max-width: 46ch; margin-bottom: var(--s4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0; }
/* Mobile: sam przycisk „Zadzwoń i zamów” (+ dolny pasek Zadzwoń | SMS | Napisz) – numer dopiero na desktopie. */
.hero__phone { display: none; margin: 0; }
.hero__phone a { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; color: var(--white); text-decoration: none; font-variant-numeric: tabular-nums; }
.hero__phone a:hover { color: var(--orange-300); }

.hero__media { position: absolute; inset: 0; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 74% 100%; }
/* przyciemnienie pod tekstem, u dołu odsłonięty worek + ciepły, delikatny ton */
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(21, 21, 21, .9) 0%, rgba(21, 21, 21, .78) 55%, rgba(21, 21, 21, .15) 78%, rgba(21, 21, 21, 0) 100%),
    rgba(255, 120, 0, .05);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: hero-settle 1.8s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes hero-settle { from { transform: scale(1.06); } to { transform: none; } }
}

@media (min-width: 960px) {
  .hero { --hero-cut: 64px; min-height: min(720px, calc(100vh - var(--header-h))); display: flex; align-items: center; }
  .hero__inner { padding-block: var(--s7) calc(var(--s7) + var(--hero-cut) / 2); }
  .hero__text { max-width: 52%; }
  .hero__media img { object-position: 72% 50%; }
  .hero__media::after {
    background:
      linear-gradient(90deg, rgba(21, 21, 21, .94) 0%, rgba(21, 21, 21, .82) 30%, rgba(21, 21, 21, .25) 55%, rgba(21, 21, 21, 0) 70%),
      linear-gradient(0deg, rgba(21, 21, 21, .45) 0%, rgba(21, 21, 21, 0) 30%),
      rgba(255, 120, 0, .04);
  }
  .hero__actions { margin-bottom: var(--s3); }
  .hero__phone { display: block; }
  .hero__phone a { font-size: 2rem; }
}

/* --- USP: jeden pasek z konkretami -------------------------------------------- */
.usp { background: var(--cream); border-bottom: 1px solid var(--wood); }
.usp__list { display: grid; grid-template-columns: 1fr 1fr; list-style: none; }
.usp__item { display: flex; gap: 12px; padding: var(--s3) var(--s2) var(--s3) 0; }
.usp__item:nth-child(even) { padding-left: var(--s2); border-left: 1px solid var(--wood); }
.usp__item:nth-child(-n+2) { border-bottom: 1px solid var(--wood); }
.usp__item .icon { width: 28px; height: 28px; color: var(--orange-700); }
.usp__item p { margin: 0; line-height: 1.35; }
.usp__item strong { display: block; font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.01em; }
.usp__item span { font-size: .875rem; color: var(--muted); }
@media (min-width: 960px) {
  .usp__list { grid-template-columns: repeat(4, 1fr); }
  .usp__item, .usp__item:nth-child(even) { padding: var(--s4) var(--s3); border-left: 1px solid var(--wood); border-bottom: 0; }
  .usp__item:first-child { border-left: 0; padding-left: 0; }
  .usp__item strong { font-size: 1.25rem; }
}

/* --- Filtr ------------------------------------------------------------------- */
.filter { display: inline-flex; border: 2px solid var(--graphite); border-radius: var(--radius-sm); overflow: hidden; }
.filter__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s2); font-weight: 600; text-decoration: none; }
.filter__link + .filter__link { border-left: 2px solid var(--graphite); }
.filter__link:hover { background: var(--cream); }
.filter__link[aria-current="true"] { background: var(--graphite); color: var(--white); }

/* --- Karty produktów: „etykieta z worka” ------------------------------------- */
/* maks. 3 kolumny: 5 produktów układa się 3 + 2, bez osieroconej karty */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--s3); }
.product-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--wood); border-radius: var(--radius); overflow: hidden; }
.product-card[hidden] { display: none; }
.product-card__media { position: relative; display: flex; align-items: flex-end; aspect-ratio: 4 / 5; padding: var(--s3); text-decoration: none; overflow: hidden; container-type: inline-size; }
.product-card__media--pellet { background: var(--wood); color: var(--graphite); }
.product-card__media--groszek { background: var(--graphite); color: var(--cream); }
/* rozmiar od szerokości karty – najdłuższe słowo („PREMIUM”) mieści się w jednej linii */
.product-card__placeholder { font-size: clamp(1.5rem, 13cqi, 3.5rem); font-weight: 800; line-height: .95; letter-spacing: -0.03em; text-transform: uppercase; }
.product-card__media--photo { padding: 0; background: var(--cream); }
.product-card__media--photo picture, .product-card__media--photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.product-card__media--photo img { object-fit: cover; }
/* niedostępny: zdjęcie częściowo odbarwione */
.product-card--off .product-card__media, .product-card__media.is-off { filter: grayscale(.75); opacity: .8; }
.product-card__body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: var(--s3); }
.product-card__badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.product-card__title { font-size: 1.1875rem; line-height: 1.25; letter-spacing: -0.015em; }
.product-card__title a { text-decoration: none; }
.product-card__title a:hover { text-decoration: underline; }
.product-card__price { margin-top: auto; padding-top: 4px; }
.product-card__price p { margin: 0; }
.product-card .btn { margin-top: 4px; }

.spec-plate { margin: 0; font-size: .875rem; border-top: 2px solid var(--graphite); }
.spec-plate > div { display: flex; justify-content: space-between; gap: var(--s2); padding: 6px 0; border-bottom: 1px solid var(--wood-200); }
.spec-plate dt { color: var(--muted); }
.spec-plate dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.spec-plate--full { font-size: .9375rem; }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.price__value { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price__value--ask { font-size: 1.25rem; }
.price__unit, .price__per-kg { font-size: .875rem; color: var(--muted); }

/* --- Jak zamówić (prawdziwa sekwencja → numery) ------------------------------ */
/* Tło: jasna grafika z pelletem i sosną po bokach; środek pusty pod treść. Kremowa mgiełka
   u góry i dołu łączy sekcję z sąsiednimi. Karty kroków – szkło (rozmycie tła). */
.how { position: relative; overflow: hidden; isolation: isolate; }
.how__bg { position: absolute; inset: 0; z-index: -1; }
.how__bg picture, .how__img { width: 100%; height: 100%; }
.how__img { object-fit: cover; object-position: 50% 60%; }
.how__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--cream) 0%, rgba(245, 242, 235, 0) 22%, rgba(245, 242, 235, 0) 78%, var(--cream) 100%),
    radial-gradient(ellipse 60% 70% at 50% 50%, rgba(245, 242, 235, .55), rgba(245, 242, 235, 0) 70%);
}
.how .container { text-align: center; }
.how .section-title { margin-inline: auto; }
.how .tagline::after { margin-inline: auto; }
.how__cta { margin: var(--s5) 0 0; }

.steps { list-style: none; counter-reset: step; display: grid; gap: var(--s3); text-align: left; position: relative; margin-top: var(--s4); }
.steps__item {
  counter-increment: step; position: relative;
  padding: var(--s4) var(--s3) var(--s3);
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  border: 1px solid rgba(215, 184, 146, .55); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(21, 21, 21, .05), 0 18px 40px -20px rgba(120, 70, 20, .35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.steps__item:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(21, 21, 21, .05), 0 24px 48px -20px rgba(120, 70, 20, .45); }
/* numer w pomarańczowym kółku na górnej krawędzi karty */
.steps__item::before {
  content: counter(step); position: absolute; top: -22px; left: var(--s3);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange); color: var(--graphite); font-weight: 800; font-size: 1.25rem;
  box-shadow: 0 0 0 6px rgba(255, 120, 0, .18);
}
.steps__icon { position: absolute; top: var(--s3); right: var(--s3); color: var(--orange-700); opacity: .85; }
.steps__icon .icon { width: 28px; height: 28px; }
.steps__item h3 { font-size: 1.25rem; margin: var(--s1) 0; padding-right: 40px; }
.steps__item p { color: var(--muted); margin: 0; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin-top: var(--s5); }
  /* linia łącząca numery kroków */
  .steps::before {
    content: ""; position: absolute; top: 0; left: calc(var(--s3) + 22px); right: calc(33.33% - var(--s3) - 22px);
    border-top: 2px dashed var(--orange-700); opacity: .5;
  }
}
/* Wjazd kart przy przewijaniu (CSS scroll-driven; bez wsparcia albo z ograniczeniem ruchu – karty od razu widoczne). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .steps__item { animation: step-in linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    .steps__item:nth-child(2) { animation-range: entry 10% entry 70%; }
    .steps__item:nth-child(3) { animation-range: entry 20% entry 80%; }
    @keyframes step-in { from { opacity: 0; transform: translateY(32px) scale(.97); } }
  }
}

/* --- Dostawa + mapa ----------------------------------------------------------- */
.delivery { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); align-items: center; }
@media (min-width: 900px) { .delivery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.checklist { list-style: none; display: grid; gap: 12px; margin-bottom: var(--s3); }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { width: 24px; height: 24px; margin-top: 1px; color: var(--orange-700); }
.checklist--plain li { padding-left: 20px; position: relative; }
.checklist--plain li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 3px; background: var(--orange); }

/* Mapa strefy: plik assets/img/mapa-dostawy.svg (style w samym pliku – delivery_map_files()),
   na nim nakładka w tym samym viewBox: magazyn i pinezka wyszukiwarki. Tekst w jednostkach mapy (1 = 100 m). */
.zone-map { margin: 0; }
.zone-map__canvas {
  position: relative; overflow: hidden; aspect-ratio: 600 / 520;
  border-radius: var(--radius); border: 1px solid var(--wood); background: #F1ECE2;
  box-shadow: 0 1px 2px rgba(21, 21, 21, .06), 0 12px 32px -12px rgba(21, 21, 21, .18);
}
.zone-map__canvas img, .zone-map__overlay { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.zone-map__overlay { font-family: var(--font); pointer-events: none; }
.zone-map__overlay path, .zone-map__overlay line, .zone-map__overlay circle { vector-effect: non-scaling-stroke; }
.zm-home text { paint-order: stroke; stroke: #F1ECE2; stroke-width: 4px; stroke-linejoin: round; } /* jasna obwódka – czytelność na drogach */
.zm-home__dot { fill: var(--orange); stroke: var(--graphite); stroke-width: 3; }
.zm-home__pulse { fill: var(--orange); opacity: .35; transform-box: fill-box; transform-origin: center; }
.zm-home text { font-size: 17px; font-weight: 800; fill: var(--graphite); }
.zm-home .zm-home__sub { font-size: 12px; font-weight: 600; fill: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.zm-pin[hidden] { display: none; }
.zm-pin__line { stroke: var(--graphite); stroke-width: 2; stroke-dasharray: 2 5; stroke-linecap: round; }
.zm-pin__mark path { fill: var(--graphite); }
.zm-pin__mark circle { fill: var(--orange); }
.zm-pin__mark text { font-size: 15px; font-weight: 800; fill: var(--graphite); paint-order: stroke; stroke: #F1ECE2; stroke-width: 4px; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .zm-home__pulse { animation: zm-pulse 2.4s ease-out infinite; }
  @keyframes zm-pulse { from { transform: scale(.6); opacity: .5; } to { transform: scale(2.4); opacity: 0; } }
  .zm-pin:not([hidden]) .zm-pin__mark { animation: zm-drop .5s cubic-bezier(.2, .9, .3, 1.2) both; }
  @keyframes zm-drop { from { opacity: 0; translate: 0 -24px; } }
}
/* Wąski ekran: mapa ~340 px szerokości – większe napisy (etykiety w pliku SVG mają własny próg). */
@media (max-width: 599px) {
  .zm-home text { font-size: 26px; }
  .zm-home .zm-home__sub { display: none; }
  .zm-pin__mark text { font-size: 24px; }
}
.zone-map figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s1); font-size: .875rem; color: var(--muted); margin-top: var(--s1); }
.zone-map figcaption a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--graphite); font-weight: 600; }
.zone-map figcaption span a { display: inline; min-height: 0; color: inherit; font-weight: 400; }

/* Sprawdź swoją miejscowość */
.zone-check { margin: var(--s3) 0 var(--s2); padding: var(--s2) var(--s3) var(--s3); background: var(--white); border: 1px solid var(--wood); border-radius: var(--radius); }
.zone-check__label { display: block; font-weight: 700; margin-bottom: var(--s1); }
.zone-check__row { display: flex; gap: var(--s1); }
.zone-check__row input {
  flex: 1; min-width: 0; min-height: 48px; padding: 10px 14px; font: inherit;
  border: 1.5px solid #B9AE9C; border-radius: 8px; background: var(--white);
}
.zone-check__row input:focus-visible { border-color: var(--graphite); }
.zone-check__row .btn { flex: none; }
.zone-check__result { margin: var(--s2) 0 0; }
.zone-check__ok { display: inline-flex; gap: 6px; align-items: center; color: var(--ok); }

/* --- O nas skrót ------------------------------------------------------------------ */
/* --- O nas -------------------------------------------------------------------------- */
/* Baner podstrony: ciemne zdjęcie magazynu ze skosem i pomarańczowym pasem jak w hero strony głównej. */
.page-hero {
  --hero-cut: 32px;
  position: relative; overflow: hidden; isolation: isolate; background: var(--graphite); color: var(--cream);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--hero-cut)), 0 100%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--orange);
  clip-path: polygon(0 calc(100% - 8px), 100% calc(100% - var(--hero-cut) - 8px), 100% calc(100% - var(--hero-cut)), 0 100%);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -1; }
.page-hero__bg picture, .page-hero__img { width: 100%; height: 100%; }
.page-hero__img { object-fit: cover; object-position: 70% 50%; }
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(21, 21, 21, .93) 0%, rgba(21, 21, 21, .82) 45%, rgba(21, 21, 21, .45) 100%);
}
@media (min-width: 900px) {
  .page-hero__bg::after { background: linear-gradient(90deg, rgba(21, 21, 21, .94) 0%, rgba(21, 21, 21, .8) 45%, rgba(21, 21, 21, .2) 78%, rgba(21, 21, 21, .05) 100%); }
}
.page-hero__inner { padding-block: var(--s4) calc(var(--s6) + var(--hero-cut)); }
@media (min-width: 900px) { .page-hero__inner { padding-block: var(--s5) calc(var(--s7) + var(--hero-cut)); } }
.page-hero__title { font-size: clamp(2.25rem, 1.3rem + 4vw, 3.75rem); line-height: 1.05; letter-spacing: -0.03em; max-width: 14ch; color: var(--white); margin-bottom: var(--s3); text-wrap: balance; }
.page-hero__lead { font-size: 1.125rem; max-width: 56ch; margin-bottom: var(--s4); }
.page-hero__lead p { margin: 0 0 var(--s2); }
.page-hero__lead p:last-child { margin: 0; }
.page-hero .hero__actions { margin-bottom: 0; }
@keyframes page-hero-in { from { opacity: 0; transform: translateY(24px); } } /* też /kontakt */
.breadcrumbs.breadcrumbs--light { color: rgba(245, 242, 235, .7); }
.breadcrumbs.breadcrumbs--light a { color: var(--cream); }
@media (prefers-reduced-motion: no-preference) {
  .page-hero__img { animation: hero-settle 1.6s cubic-bezier(.2, .7, .2, 1) both; }
  .page-hero__inner > * { animation: page-hero-in .7s cubic-bezier(.2, .7, .2, 1) both; }
  .page-hero__inner > :nth-child(2) { animation-delay: .08s; }
  .page-hero__inner > :nth-child(3) { animation-delay: .16s; }
  .page-hero__inner > :nth-child(4) { animation-delay: .24s; }
  .page-hero__inner > :nth-child(5) { animation-delay: .32s; }
}

/* Kafelki oferty: zdjęcie produktu z ciemnym gradientem u dołu, przybliżenie po najechaniu */
.offer-tiles { display: grid; gap: var(--s3); margin-top: var(--s4); }
@media (min-width: 900px) { .offer-tiles { grid-template-columns: repeat(2, 1fr); gap: var(--s4); } }
.offer-tile {
  position: relative; display: block; overflow: hidden; isolation: isolate; aspect-ratio: 4 / 3; border-radius: 16px;
  background: var(--graphite); color: var(--cream); text-decoration: none;
  box-shadow: 0 24px 48px -28px rgba(21, 21, 21, .6);
}
.offer-tile picture, .offer-tile__img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.offer-tile__img { object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.offer-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(21, 21, 21, 0) 20%, rgba(21, 21, 21, .7) 55%, rgba(21, 21, 21, .94) 100%); }
.offer-tile:hover .offer-tile__img, .offer-tile:focus-visible .offer-tile__img { transform: scale(1.06); }
.offer-tile__body { position: absolute; inset: auto 0 0; display: grid; gap: 6px; padding: var(--s3); }
.offer-tile__title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); font-weight: 800; letter-spacing: -0.02em; color: var(--white); }
.offer-tile__text { max-width: 44ch; }
.offer-tile__more { margin-top: var(--s1); font-weight: 600; color: var(--orange); transition: translate .25s ease; }
.offer-tile:hover .offer-tile__more { translate: 4px 0; }
/* Wjazd kafelków przy przewijaniu (jak kroki „Jak zamówić”). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .offer-tile { animation: step-in linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}

/* --- Lokalny skład (strona główna) ---------------------------------------------- */
/* Druga ciemna sekcja strony (po hero). Tło: ciepłe wnętrze magazynu, z lewej przyciemnione pod tekst,
   z prawej widoczny pellet. Przy przewijaniu: lekki paralaks/zoom tła i wjazd treści; smuga światła na karcie. */
.about-short { position: relative; overflow: hidden; isolation: isolate; background: var(--graphite); color: var(--cream); }
.about-short__bg { position: absolute; inset: 0; z-index: -1; }
.about-short__bg picture, .about-short__img { width: 100%; height: 100%; }
.about-short__img { object-fit: cover; object-position: 70% 50%; }
.about-short__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(21, 21, 21, .55) 0%, rgba(21, 21, 21, 0) 25%, rgba(21, 21, 21, 0) 70%, rgba(21, 21, 21, .6) 100%),
    linear-gradient(90deg, rgba(21, 21, 21, .92) 0%, rgba(21, 21, 21, .82) 35%, rgba(21, 21, 21, .55) 100%);
}
@media (min-width: 900px) {
  .about-short { padding-block: calc(var(--s7) + var(--s4)); }
  .about-short__bg::after {
    background:
      linear-gradient(180deg, rgba(21, 21, 21, .45) 0%, rgba(21, 21, 21, 0) 25%, rgba(21, 21, 21, 0) 70%, rgba(21, 21, 21, .5) 100%),
      linear-gradient(90deg, rgba(21, 21, 21, .94) 0%, rgba(21, 21, 21, .8) 38%, rgba(21, 21, 21, .2) 70%, rgba(21, 21, 21, .05) 100%);
  }
}
.about-short__inner { display: grid; gap: var(--s3); }
.about-short__head, .about-short__card { max-width: 560px; }
.about-short .tagline { color: var(--orange); margin-bottom: var(--s2); }
.about-short .section-title { color: var(--white); margin-bottom: 0; letter-spacing: -0.02em; }
.about-short__card {
  position: relative; overflow: hidden;
  padding: var(--s4) var(--s3) var(--s3); font-size: 1.0625rem;
  background: rgba(35, 35, 35, .55);
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(215, 184, 146, .28); border-radius: 16px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6);
  transition: border-color .3s ease, translate .3s ease;
}
.about-short__card:hover { border-color: rgba(255, 157, 61, .55); translate: 0 -3px; }
/* pomarańczowa kreska na górnej krawędzi karty */
.about-short__card::before { content: ""; position: absolute; top: 0; left: var(--s3); width: 56px; height: 3px; background: var(--gradient); border-radius: 0 0 3px 3px; }
.about-short__card p { margin: 0 0 var(--s2); }
.about-short__card p:last-child { margin: 0; }
.about-short .link-strong { color: var(--white); text-decoration-color: var(--orange); }
.about-short .link-strong::after { content: "→"; display: inline-block; margin-left: .35em; transition: transform .2s ease; }
.about-short .link-strong:hover { color: var(--orange-300); }
.about-short .link-strong:hover::after { transform: translateX(4px); }
@media (min-width: 900px) { .about-short__card { padding: var(--s5) var(--s4) var(--s4); } }

@media (prefers-reduced-motion: no-preference) {
  /* smuga ciepłego światła przesuwająca się po karcie po najechaniu */
  .about-short__card::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 157, 61, .14) 50%, transparent 70%);
    transform: translateX(-100%); transition: transform .9s ease;
  }
  .about-short__card:hover::after { transform: translateX(100%); }
}
/* Paralaks tła i wjazd treści przy przewijaniu (CSS scroll-driven; bez wsparcia – wszystko statyczne). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .about-short__img { animation: about-pan linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes about-pan { from { transform: scale(1.18) translateY(-4%); } to { transform: scale(1.05) translateY(4%); } }
    .about-short__inner { view-timeline: --about block; }
    .about-short__head { animation: about-in linear both; animation-timeline: --about; animation-range: entry 10% entry 70%; }
    .about-short__card { animation: about-in linear both; animation-timeline: --about; animation-range: entry 25% entry 90%; }
    @keyframes about-in { from { opacity: 0; transform: translateY(40px); filter: blur(4px); } }
  }
}

/* --- FAQ ----------------------------------------------------------------------------- */
.faq { border-top: 2px solid var(--graphite); }
.faq details { border-bottom: 1px solid var(--wood); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s2);
  min-height: 56px; padding: var(--s2) 0;
  font-weight: 600; font-size: 1.0625rem; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.75rem; font-weight: 400; line-height: 1; color: var(--orange-700); }
.faq details[open] summary::after { content: "–"; }
.faq details p { max-width: 68ch; padding-bottom: var(--s3); color: var(--muted); }
.faq details p strong { color: var(--graphite); }

/* --- Kontakt ----------------------------------------------------------------------- */
.contact { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .contact { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.contact__lead { font-size: 1.125rem; color: var(--muted); max-width: 44ch; }
.contact__phone { display: inline-block; font-size: clamp(2.25rem, 1.2rem + 4.5vw, 3.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; text-decoration: none; font-variant-numeric: tabular-nums; margin-bottom: var(--s3); }
/* Numer zawsze w jednej linii: wielkość z szerokości kolumny (cqi), „+48 570 710 740” ≈ 8,7 em. */
.contact__direct { container-type: inline-size; }
.contact__phone { white-space: nowrap; }
@supports (font-size: 1cqi) { .contact__phone { font-size: clamp(1.5rem, 11cqi, 3.75rem); } }
.contact__phone:hover { color: var(--orange-700); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: var(--s4); }
.contact__address { display: flex; gap: 12px; color: var(--muted); }
.contact__address .icon { color: var(--orange-700); margin-top: 3px; }
.contact__address a { color: var(--graphite); }
.contact__address + .contact__address { margin-top: var(--s2); }

/* --- /kontakt: baner ze zdjęciem w tle, treść na kartach --------------------------- */
/* Jasna grafika (kominek i palety po bokach, pusty środek); kremowa mgiełka u góry, biel u dołu
   – płynne przejście do następnej sekcji. */
.contact-hero { position: relative; overflow: hidden; isolation: isolate; padding-block: var(--s4) var(--s6); background: var(--cream); }
@media (min-width: 960px) { .contact-hero { padding-block: var(--s4) var(--s7); } }
.contact-hero__bg { position: absolute; inset: 0; z-index: -1; }
.contact-hero__bg picture, .contact-hero__img { width: 100%; height: 100%; }
.contact-hero__img { object-fit: cover; object-position: 50% 70%; }
.contact-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(245, 242, 235, .7) 0%, rgba(245, 242, 235, .2) 30%, rgba(255, 255, 255, 0) 75%, var(--white) 100%),
    radial-gradient(ellipse 55% 60% at 50% 45%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 70%);
}
@media (max-width: 899px) { .contact-hero__bg::after { background: linear-gradient(180deg, rgba(245, 242, 235, .75) 0%, rgba(245, 242, 235, .55) 50%, var(--white) 100%); } }
.contact-hero__head { max-width: 640px; margin-bottom: var(--s5); }
.contact-hero__head .page-title { font-size: clamp(2rem, 1.2rem + 4vw, 3.5rem); letter-spacing: -0.03em; margin-bottom: var(--s2); }
.contact-hero__lead { font-size: 1.125rem; color: #3A372F; max-width: 52ch; margin: 0; }
.contact--glass .contact__direct {
  padding: var(--s4) var(--s3) var(--s3);
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(215, 184, 146, .55); border-radius: 16px;
  box-shadow: 0 30px 60px -34px rgba(120, 70, 20, .4);
}
.contact--glass .contact__lead { color: #3A372F; }
@media (min-width: 768px) { .contact--glass .contact__direct { padding: var(--s5) var(--s4) var(--s4); } }
@media (prefers-reduced-motion: no-preference) {
  .contact-hero__img { animation: hero-settle 1.6s cubic-bezier(.2, .7, .2, 1) both; }
  .contact-hero__head, .contact--glass .contact__direct, .contact--glass .contact-form { animation: page-hero-in .7s cubic-bezier(.2, .7, .2, 1) both; }
  .contact--glass .contact__direct { animation-delay: .12s; }
  .contact--glass .contact-form { animation-delay: .24s; }
  /* telefon: podkreślenie rozwijane po najechaniu */
  .contact__phone { background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 3px no-repeat; transition: background-size .35s ease, color .2s ease; }
  .contact__phone:hover { background-size: 100% 3px; }
}

.contact-form {
  position: relative; display: grid; gap: var(--s2); padding: var(--s4) var(--s3) var(--s3);
  background: var(--white); border: 1px solid rgba(215, 184, 146, .6); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(21, 21, 21, .04), 0 30px 60px -30px rgba(120, 70, 20, .35);
}
/* pomarańczowa kreska na górnej krawędzi (jak karta „Lokalny skład”) */
.contact-form::before { content: ""; position: absolute; top: 0; left: var(--s3); width: 56px; height: 3px; background: var(--gradient); border-radius: 0 0 3px 3px; }
@media (min-width: 768px) { .contact-form { padding: var(--s4); } }
.contact-form__title { font-size: 1.375rem; }
.form-notice { background: var(--white); border-left: 4px solid var(--orange-700); padding: 12px var(--s2); font-weight: 600; }
.form-notice--ok { display: flex; gap: var(--s1); align-items: flex-start; border-left-color: var(--ok); }
.form-notice--ok .icon { color: var(--ok); flex: none; margin-top: 2px; }
.field__error { margin: 0; color: #B3261E; font-size: .875rem; font-weight: 600; }
.field [aria-invalid="true"] { border-color: #B3261E; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9375rem; }
.field__optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: 400 1rem/1.4 var(--font); color: var(--graphite);
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-sm);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input, .field select, .field textarea { transition: border-color .2s ease, box-shadow .2s ease; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--wood); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--graphite); box-shadow: 0 0 0 4px rgba(255, 120, 0, .25); }
.contact-form .note { margin: 0; }
.form-row { display: grid; gap: var(--s2); }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; align-items: start; } }
@media (min-width: 560px) { .form-row--qty { grid-template-columns: 1fr; } } /* liczba + przełącznik jednostki potrzebują całej szerokości */
.qty__units { max-width: 280px; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.qty legend { font-weight: 600; font-size: .9375rem; padding: 0; margin-bottom: 6px; }
.qty__row { display: flex; gap: var(--s1); }
.field .qty__row input[type="number"] { width: 5.5rem; flex: none; text-align: center; font-variant-numeric: tabular-nums; }
/* jednostka: dwa przyciski-przełączniki zamiast selecta – jedno dotknięcie na telefonie */
.qty__units { display: flex; flex: 1; border: 2px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.qty__unit { flex: 1; position: relative; display: grid; cursor: pointer; }
.qty__unit input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.qty__unit span { display: grid; place-items: center; min-height: 44px; padding: 0 10px; font-weight: 600; font-size: .9375rem; color: var(--muted); transition: background-color .2s ease, color .2s ease; }
.qty__unit + .qty__unit span { border-left: 2px solid var(--line); }
.qty__unit input:checked + span { background: var(--graphite); color: var(--white); }
.qty__unit input:focus-visible + span { box-shadow: inset 0 0 0 3px var(--orange); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; line-height: 1.45; cursor: pointer; }
.field .consent { font-weight: 400; }
.consent input { flex: none; width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; accent-color: var(--graphite); cursor: pointer; }
.consent a { color: var(--graphite); font-weight: 600; }
.contact__data { display: grid; gap: var(--s2); margin: 0; }
.contact__data > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--s2); padding-top: var(--s2); border-top: 1px solid rgba(215, 184, 146, .55); }
.contact__data dt { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; font-size: .875rem; color: var(--muted); }
.contact__data dt .icon { color: var(--orange-700); flex: none; width: 18px; height: 18px; margin-top: 1px; }
.contact__data dd { margin: 0; overflow-wrap: anywhere; }
.contact__data a { color: var(--graphite); }
@media (max-width: 380px) { .contact__data > div { grid-template-columns: 1fr; gap: 4px; } }

/* --- Kategoria: tytuł + wstęp SEO obok siebie ------------------------------------ */
.category-head { display: grid; gap: var(--s2); margin-bottom: var(--s5); }
.category-head .page-title { margin-bottom: 0; }
.category-head__intro { max-width: 62ch; color: var(--muted); font-size: 1.0625rem; }
@media (min-width: 960px) { .category-head { grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: end; } }

/* --- Produkt ------------------------------------------------------------------------ */
.section.product-page { padding-top: var(--s4); }   /* okruszki tuż pod nagłówkiem */
.breadcrumbs { font-size: .875rem; color: var(--muted); margin-bottom: var(--s3); }
.breadcrumbs a { color: var(--graphite); }
.product-page__grid { display: grid; gap: var(--s3); }
.product-page__head { display: grid; gap: var(--s2); min-width: 0; }
.product-page__head .page-title { margin-bottom: 0; }
.product-page__info { display: grid; gap: var(--s2); align-content: start; min-width: 0; }
.product-page__subtitle { margin: 0; color: var(--muted); font-weight: 600; }
@media (min-width: 900px) {
  .product-page__grid {
    grid-template-columns: 5fr 6fr; grid-template-areas: "gallery head" "gallery info";
    grid-template-rows: auto 1fr; column-gap: var(--s6); row-gap: var(--s3); align-items: start;
  }
  .product-page__head { grid-area: head; }
  .product-page__info { grid-area: info; }
  .product-page__grid > .gallery { grid-area: gallery; }
}

/* Galeria: pasek ze snapem (działa bez JS), miniatury = kotwice */
.gallery { min-width: 0; }
.gallery__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  background: var(--cream); border: 1px solid var(--wood); border-radius: var(--radius);
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; margin: 0; aspect-ratio: 3 / 4; scroll-snap-align: start; scroll-margin-top: calc(var(--header-h) + var(--s2)); }
.gallery__slide picture, .gallery__slide img { width: 100%; height: 100%; }
.gallery__slide img { object-fit: contain; }   /* całe zdjęcie, bez przycinania i rozciągania */
.gallery--off .gallery__slide img, .gallery--off .gallery__thumb img { filter: grayscale(.75); opacity: .85; }
.gallery__empty { border-radius: var(--radius); }
.gallery__thumbs { display: flex; flex-wrap: wrap; gap: var(--s1); list-style: none; margin-top: var(--s2); }
.gallery__thumb { display: block; width: 72px; height: 72px; border: 2px solid var(--wood-200); border-radius: var(--radius-sm); overflow: hidden; background: var(--cream); }
.gallery__thumb picture, .gallery__thumb img { width: 100%; height: 100%; }
.gallery__thumb img { object-fit: cover; }
.gallery__thumb:hover { border-color: var(--wood); }
.gallery__thumb[aria-current="true"] { border-color: var(--graphite); box-shadow: inset 0 -4px 0 var(--orange); }
@media (min-width: 900px) {
  .gallery { position: sticky; top: calc(var(--header-h) + var(--s3)); }
  .gallery__thumb { width: 80px; height: 80px; }
}

/* Blok zamówienia: „etykieta” z ceną i rozpisaną paletą */
.buy-box { background: var(--cream); border-top: 3px solid var(--graphite); border-radius: 0 0 var(--radius) var(--radius); padding: var(--s3); }
.price--lg .price__value { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); }
.price--lg .price__value--ask { font-size: 1.5rem; }
.buy-box .price, .buy-box .price__per-kg { margin: 0; }
.buy-box__bag { margin: var(--s1) 0 0; font-size: .9375rem; }
.pallet-math { margin: var(--s2) 0; padding-block: 12px; border-block: 1px solid var(--wood); font-variant-numeric: tabular-nums; }
.pallet-math__label { color: var(--muted); margin-right: 4px; }
.pallet-math strong { font-weight: 800; }
.pallet-math__term { white-space: nowrap; }
.notice { display: flex; gap: 12px; margin-bottom: var(--s2); padding: 12px var(--s2); background: var(--white); border-left: 4px solid var(--graphite); }
.notice .icon { margin-top: 3px; color: var(--muted); }
.notice p { margin: 0; }
.buy-box__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 var(--s1); }
.buy-box__phone { margin: 0; font-size: .875rem; color: var(--muted); }
.buy-box__phone a { color: var(--graphite); font-weight: 600; font-variant-numeric: tabular-nums; }

.replacement { display: flex; align-items: center; gap: var(--s2); padding: 12px; background: var(--white); border: 2px solid var(--ok); border-radius: var(--radius); text-decoration: none; }
.replacement picture { flex: none; }
.replacement__img { width: 64px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); }
.replacement__text { display: grid; gap: 2px; font-size: .9375rem; }
.replacement__label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ok); }
.replacement__text > span:last-child { color: var(--muted); font-size: .875rem; }
.replacement:hover strong { text-decoration: underline; }

.product-page__perks { list-style: none; display: grid; gap: var(--s1); font-size: .9375rem; }
.product-page__perks li { display: flex; align-items: center; gap: 12px; }
.product-page__perks .icon { width: 22px; height: 22px; color: var(--orange-700); }

.product-details__grid { display: grid; gap: var(--s5); }
.product-details__specs { align-self: start; background: var(--white); border: 1px solid var(--wood); border-radius: var(--radius); padding: var(--s3); }
.product-details__text .section-title--sm:not(:first-child) { margin-top: var(--s4); }
@media (min-width: 900px) { .product-details__grid { grid-template-columns: 5fr 6fr; gap: var(--s6); } }
.file-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-top: var(--s2); font-weight: 600; color: var(--graphite); }
.file-link .icon { color: var(--orange-700); }
.file-link__meta { font-weight: 400; color: var(--muted); }

/* --- Stopka (druga i ostatnia ciemna sekcja; drugi szewron) ----------------------- */
.site-footer { position: relative; overflow: hidden; background: var(--graphite); color: var(--cream); padding-top: var(--s6); }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--orange-300); }
.site-footer__chevrons { position: absolute; right: -60px; bottom: -40px; width: 340px; height: auto; color: var(--graphite-800); pointer-events: none; }
.site-footer__grid { position: relative; display: grid; gap: var(--s4); grid-template-columns: 1fr; }
.site-footer__title { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--wood); margin-bottom: 12px; }
.site-footer__phone a { font-size: 1.375rem; font-weight: 800; text-decoration: none; font-variant-numeric: tabular-nums; }
.site-footer__links { list-style: none; display: grid; gap: 2px; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__bottom { position: relative; margin-top: var(--s5); padding-block: var(--s3); border-top: 1px solid var(--graphite-800); font-size: .875rem; color: var(--wood); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s3); }
.site-footer__bottom p { margin: 0; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* --- Dolny pasek mobilny ------------------------------------------------------------ */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--graphite);
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--graphite-800);
}
.mobile-bar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--bar-h); color: var(--cream); font-size: .8125rem; font-weight: 600; text-decoration: none; }
.mobile-bar__item .icon { width: 22px; height: 22px; }
.mobile-bar__item--call { background: var(--orange); color: var(--graphite); }
body { padding-bottom: calc(var(--bar-h) + 1px + env(safe-area-inset-bottom)); } /* +1px: border-top paska */
@media (min-width: 960px) {
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}

/* --- Ruch ----------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
}

/* --- Podgląd ukrytego produktu z panelu ---------------------------------------- */
.preview-note { display: flex; align-items: center; gap: var(--s1); margin-bottom: var(--s3); padding: 12px var(--s2); background: var(--graphite); color: var(--cream); border-radius: var(--radius-sm); font-size: .9375rem; }
.preview-note .icon { color: var(--orange); }

/* --- Podziękowanie po formularzu (/kontakt/dziekujemy) --- */
.thanks { position: relative; overflow: hidden; padding-block: var(--s6) var(--s7); }
.thanks__chevrons { position: absolute; right: -40px; bottom: -30px; width: clamp(140px, 22vw, 260px); height: auto; color: var(--wood); opacity: .35; pointer-events: none; }
.thanks__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin: 0 0 var(--s3); border-radius: 50%; background: var(--ok); color: var(--white); }
.thanks__icon .icon { width: 32px; height: 32px; stroke-width: 2.25; }
.thanks__lead { font-size: 1.125rem; max-width: 52ch; }
.thanks__call { margin-block: var(--s5); padding: var(--s4) var(--s3); background: var(--white); border-radius: 16px; border: 1px solid rgba(215, 184, 146, .6); container-type: inline-size; }
.thanks__call > p:first-child { margin-top: 0; font-weight: 600; }
.thanks__call .contact__actions { margin-bottom: 0; }
.thanks__links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }

/* --- /dostawa --- */
/* hero: zdjęcie magazynu o złotej godzinie, tekst po jasnej (lewej) stronie, warunki na szklanym pasku */
.delivery-intro { position: relative; overflow: hidden; isolation: isolate; padding-block: var(--s4) var(--s5); background: var(--cream); }
@media (min-width: 960px) { .delivery-intro { padding-block: var(--s4) var(--s6); min-height: min(860px, calc(100svh - var(--header-h))); display: flex; flex-direction: column; justify-content: space-between; } .delivery-intro > .container { display: flex; flex-direction: column; flex: 1; width: 100%; } }
.delivery-intro__bg { position: absolute; inset: 0; z-index: -1; }
.delivery-intro__bg picture, .delivery-intro__img { width: 100%; height: 100%; display: block; }
.delivery-intro__img { object-fit: cover; object-position: 75% 60%; }
.delivery-intro__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(245, 242, 235, .96) 0%, rgba(245, 242, 235, .88) 32%, rgba(245, 242, 235, .35) 58%, rgba(245, 242, 235, 0) 75%),
    linear-gradient(0deg, rgba(21, 21, 21, .35) 0%, rgba(21, 21, 21, 0) 35%);
}
@media (max-width: 959px) {
  .delivery-intro__img { object-position: 82% 50%; }
  .delivery-intro__bg::after { background: linear-gradient(180deg, rgba(245, 242, 235, .9) 0%, rgba(245, 242, 235, .78) 45%, rgba(245, 242, 235, .55) 70%, rgba(245, 242, 235, .9) 100%); }
}
.delivery-intro__head { max-width: 640px; margin-bottom: var(--s5); }
.delivery-intro__head .page-title { font-size: clamp(2.25rem, 1.2rem + 4.6vw, 4.25rem); letter-spacing: -0.035em; line-height: 1; margin-bottom: var(--s3); text-wrap: balance; }
.delivery-intro__lead { font-size: 1.125rem; color: #2B2924; max-width: 48ch; margin: 0; }
@media (min-width: 960px) { .delivery-intro__head { margin-top: var(--s4); } }

/* warunki: szklany pasek przyklejony do dołu zdjęcia */
.terms {
  list-style: none; margin: auto 0 0; padding: var(--s3); display: grid; gap: var(--s3);
  background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .8); border-radius: 18px;
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 30px 60px -30px rgba(90, 50, 10, .45);
}
@media (min-width: 640px) { .terms { grid-template-columns: repeat(2, 1fr); gap: var(--s4) var(--s3); } }
@media (min-width: 1040px) { .terms { grid-template-columns: repeat(4, 1fr); gap: 0; padding: var(--s4) var(--s2); } }
.terms__item { position: relative; padding-left: var(--s2); }
.terms__item::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 3px; border-radius: 3px; background: var(--wood); transform-origin: top; transition: background-color .3s ease; }
.terms__item:first-child::before, .terms__item:hover::before { background: var(--orange); }
@media (min-width: 1040px) { .terms__item { padding: 0 var(--s3); } .terms__item::before { left: 0; } }
.terms__icon { width: 30px; height: 30px; color: var(--orange-700); transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.terms__item:hover .terms__icon { transform: translateY(-3px); }
.terms__title { font-size: 1.375rem; letter-spacing: -0.02em; margin: var(--s1) 0; }
.terms__item p { margin: 0; color: #4A463F; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .terms { background: rgba(255, 255, 255, .94); } }

/* jedno wejście przy załadowaniu: zdjęcie „osiada”, nagłówek, potem warunki po kolei; pasy rosną od góry */
@media (prefers-reduced-motion: no-preference) {
  .delivery-intro__img { animation: hero-settle 1.6s cubic-bezier(.2, .7, .2, 1) both; }
  .delivery-intro__head { animation: page-hero-in .7s cubic-bezier(.2, .7, .2, 1) both; }
  .terms { animation: page-hero-in .7s .2s cubic-bezier(.2, .7, .2, 1) both; }
  .terms__item::before { animation: terms-line .6s cubic-bezier(.2, .7, .2, 1) both; }
  .terms__item:nth-child(1)::before { animation-delay: .45s; }
  .terms__item:nth-child(2)::before { animation-delay: .55s; }
  .terms__item:nth-child(3)::before { animation-delay: .65s; }
  .terms__item:nth-child(4)::before { animation-delay: .75s; }
}
@keyframes terms-line { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.delivery__lead { color: var(--muted); margin-top: 0; }

.delivery-more { display: grid; gap: var(--s5); }
.delivery-more > * { min-width: 0; } /* inaczej tabela rozpycha kolumnę siatki na telefonie */
@media (min-width: 960px) { .delivery-more { grid-template-columns: 1.4fr 1fr; align-items: start; gap: var(--s6); } }
.delivery-more__lead { color: var(--muted); max-width: 56ch; }
.table-wrap { overflow-x: auto; margin-top: var(--s3); }
.places { width: 100%; border-collapse: collapse; font-size: .9375rem; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.places th, .places td { padding: 12px var(--s2); text-align: left; border-bottom: 1px solid rgba(215, 184, 146, .45); }
.places thead th { font-size: .8125rem; font-weight: 600; color: var(--muted); background: rgba(215, 184, 146, .18); }
.places tbody th { font-weight: 600; }
.places .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.places thead .num { white-space: normal; }
.places tbody tr:last-child > * { border-bottom: 0; }
.places__free { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; color: var(--ok); }
.places__far { color: var(--muted); }
.places__far th { font-weight: 400; }
@media (max-width: 479px) { .places th, .places td { padding: 10px 8px; } .places { font-size: .875rem; } }

.unload { padding: var(--s4) var(--s3); background: var(--graphite); color: var(--cream); border-radius: 16px; }
@media (min-width: 960px) { .unload { position: sticky; top: calc(var(--header-h, 72px) + var(--s3)); } }
.unload__title { color: var(--white); font-size: 1.5rem; margin-top: 0; }
.unload__steps { margin: var(--s3) 0; padding: 0; list-style: none; counter-reset: unload; display: grid; gap: var(--s2); }
.unload__steps li { counter-increment: unload; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.unload__steps li::before { content: counter(unload); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--orange); color: var(--orange); font-weight: 800; font-size: .9375rem; }
.unload__note { color: rgba(245, 242, 235, .8); font-size: .9375rem; }
.unload .btn { margin-top: var(--s1); }


/* --- /pellet i /groszek: nagłówek na zdjęciu magazynu, opis na szklanej karcie --- */
.category-hero { position: relative; overflow: hidden; isolation: isolate; padding-block: var(--s4) var(--s6); background: var(--cream); }
@media (min-width: 960px) { .category-hero { padding-block: var(--s4) var(--s7); } }
.category-hero__bg { position: absolute; inset: 0; z-index: -1; }
.category-hero__bg picture, .category-hero__img { width: 100%; height: 100%; display: block; }
.category-hero__img { object-fit: cover; object-position: 50% 70%; }
/* jasna mgiełka u góry (czytelny tytuł); dół zdjęcia zostaje ostry – produkty są niżej, na białym tle */
.category-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(245, 242, 235, .82) 0%, rgba(245, 242, 235, .5) 45%, rgba(245, 242, 235, .15) 75%, rgba(245, 242, 235, 0) 100%),
    radial-gradient(70% 60% at 20% 30%, rgba(245, 242, 235, .7), rgba(245, 242, 235, 0) 70%);
}
.category-head--hero { margin: var(--s4) 0 0; align-items: center; }
.category-head--hero .page-title { font-size: clamp(2.25rem, 1.2rem + 4.4vw, 4.25rem); letter-spacing: -0.035em; line-height: 1; text-wrap: balance; max-width: 12ch; }
.category-head--hero .category-head__intro {
  position: relative; padding: var(--s3); color: #3A372F;
  background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .85); border-radius: 18px;
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 30px 60px -30px rgba(90, 50, 10, .45);
}
.category-head--hero .category-head__intro::before { content: ""; position: absolute; top: 0; left: var(--s3); width: 56px; height: 3px; background: var(--gradient); border-radius: 0 0 3px 3px; }
.category-head--hero .category-head__intro p { margin-block: 0 var(--s2); }
.category-head--hero .category-head__intro p:last-child { margin-bottom: 0; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .category-head--hero .category-head__intro { background: rgba(255, 255, 255, .94); } }
/* produkty pod zdjęciem, na białym tle – zdjęcia produktów też są „magazynowe”, więc bez nachodzenia na tło;
   cienka linia w kolorach marki zamyka zdjęcie */
.category-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gradient); z-index: 3; }
.category-list { padding-top: var(--s5); }
.category-list .product-card { box-shadow: 0 1px 2px rgba(21, 21, 21, .05), 0 20px 40px -24px rgba(90, 50, 10, .35); }

@media (prefers-reduced-motion: no-preference) {
  .category-hero__img { animation: hero-settle 1.6s cubic-bezier(.2, .7, .2, 1) both; }
  .category-head--hero .page-title { animation: page-hero-in .7s cubic-bezier(.2, .7, .2, 1) both; }
  .category-head--hero .category-head__intro { animation: page-hero-in .7s .15s cubic-bezier(.2, .7, .2, 1) both; }
  /* ciepłe światło z okien powoli „oddycha” – jedyny ruch po załadowaniu, bardzo subtelny */
  .category-hero__bg::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(45% 55% at 12% 25%, rgba(255, 190, 110, .35), rgba(255, 190, 110, 0) 70%); animation: warm-light 9s ease-in-out infinite alternate; }
}
.category-hero__bg::after { z-index: 2; }
@keyframes warm-light { from { opacity: .35; } to { opacity: 1; } }
/* /groszek: ciemniejsze zdjęcie (węgiel, hala) – gęstsza mgiełka pod tytułem, kadr na hałdę i bramę */
.category-hero--groszek .category-hero__img { object-position: 30% 65%; }
.category-hero--groszek .category-hero__bg::after {
  background:
    linear-gradient(180deg, rgba(245, 242, 235, .9) 0%, rgba(245, 242, 235, .65) 45%, rgba(245, 242, 235, .25) 75%, rgba(245, 242, 235, .1) 100%),
    radial-gradient(70% 60% at 20% 30%, rgba(245, 242, 235, .75), rgba(245, 242, 235, 0) 70%);
}
@media (prefers-reduced-motion: no-preference) {
  .category-hero--groszek .category-hero__bg::before { background: radial-gradient(40% 50% at 45% 30%, rgba(255, 170, 80, .35), rgba(255, 170, 80, 0) 70%); }
}
