/* ============================================================
   HUB „ROBIMY SAMI.” (Home): jedna przewijana opowieść
   Specyfikacja: docs/claude-design/home/hub-flow/HANDOFF.md. Markup: inc/hub.php (sekcja 4). Ruch: assets/js/hub-flow.js.
   Loaded after hub.css. Only --fs-* sizes, --elev-* shadows, no card borders (DESIGN.md).

   Warstwy ruchu (wszystko tylko transform + opacity, sterowane zmiennymi CSS z JS):
   • bez JS, prefers-reduced-motion, druk → zwykły stos sekcji, nic nie jest przypięte ani ukryte;
   • html.hf-js (skrypt w szablonie) + ekran + brak reduced-motion → głowa, produkty (≥ 1024 px) i realizacje są przypięte (sticky).
   Wysokość każdego przypiętego kontenera jest ustawiona w CSS, więc CLS się nie zmienia.
   ============================================================ */

.hub-flow {
  /* kolory na ciemnych panelach (z makiet; dawniej literały) */
  --hf-dk-lab:    #e2c9a8;   /* etykiety mono na espresso */
  --hf-dk-accent: #d9a05b;   /* podkreślnik na espresso */
  --hf-dk-text:   #cdbfae;   /* tekst drugorzędny na espresso */
  --hf-dk-sub:    #f0e6d6;   /* podtytuł głowy */
  --hf-img-bg:    #d9c9b0;   /* tło pod zdjęciem do czasu załadowania */
  --hf-word:      rgba(160, 106, 55, .24);   /* wielkie słowa w opowieści */
  --hf-sheet-shadow: 0 2px 4px rgba(0,0,0,.2), 0 24px 50px rgba(0,0,0,.35);
  --hf-curtain-shadow: 0 -20px 50px rgba(0,0,0,.35);

  --hf-u: 1vh;             /* jednostka wysokości okna: svh, gdy przeglądarka ją zna (pasek adresu nie zmienia wysokości kontenerów) */
  --hub-h: var(--nav-h);   /* wysokość nagłówka serwisu */
  --hub-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--hub-h));
  --hub-rb: 0px;           /* wysokość paska promocji, dopóki jest widoczny (nav.css: --rb-h) */
  --hf-sh: calc(100 * var(--hf-u) - var(--hub-top));   /* wysokość sceny przypiętej pod nagłówkiem */
  --hf-g: 24px;            /* boczny margines sekcji */

  --hf-grid-dk: linear-gradient(rgba(245,240,232,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(245,240,232,.05) 1px, transparent 1px);
  --hf-grid-lt: linear-gradient(rgba(139,91,47,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(139,91,47,.08) 1px, transparent 1px);
  background: var(--bg-base);
  color: var(--ink);
}
@supports (height: 100svh) { .hub-flow { --hf-u: 1svh; } }
body:has(.site-top .ribbon) .hub-flow { --hub-rb: 32px; }
html.ribbon-off body:has(.site-top .ribbon) .hub-flow { --hub-rb: 0px; }
@media (min-width: 640px)  { .hub-flow { --hf-g: 40px; } }
@media (min-width: 1024px) { .hub-flow { --hub-h: var(--desktop-nav-h); --hf-g: max(72px, calc((100% - 1296px) / 2)); } }

.hub-flow section { position: relative; }
.hub-flow :where(h1, h2, h3, p, ul) { margin: 0; padding: 0; }
.hub-flow :where(ul) { list-style: none; }

/* ── Wspólne drobiazgi ── */
.hf-mono { font: 500 var(--fs-label)/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.hf-ink  { color: var(--p-ink); }
.hf-us   { color: var(--p-accent); }
.hf-h2   { font: 400 var(--fs-h2)/1.08 var(--font-display); color: inherit; overflow-wrap: break-word; }
.hf-body { font: 400 var(--fs-body)/1.6 var(--font-body); }
.hf-chip {
  display: inline-flex; align-items: center; align-self: flex-start; min-height: 24px; padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--p-tint); color: var(--p-ink); font: 500 var(--fs-label)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.hf-ph { display: block; width: 100%; height: 100%; background: var(--hf-img-bg); }
.hf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 24px; border: 0; border-radius: var(--radius-pill);
  background: var(--forest); color: #fff; font: 600 var(--fs-ui)/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.hf-btn:hover { background: var(--forest-hover); transform: translateY(-2px); }
.hf-btn:active { transform: scale(.97); }
.hf-btn:disabled { background: var(--ink-3); cursor: not-allowed; transform: none; }
.hf-btn--lg { min-height: 48px; }
.hf-btn--sm { min-height: 36px; padding: 0 18px; }
.hf-m { display: none; }
.hub-flow a:focus-visible, .hub-flow button:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
.hf-head a:focus-visible, .hf-panel.is-dark a:focus-visible, .hf-news a:focus-visible { outline-color: var(--hf-dk-accent); }
.hub-flow .sr-only { font-size: var(--fs-label); position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============================================================
   1. GŁOWA
   ============================================================ */
.hf-head {
  display: flex; min-height: calc(100 * var(--hf-u) - var(--hub-top) - var(--hub-rb)); overflow: hidden;
  background-color: var(--bg-inv); background-image: var(--hf-grid-dk); background-size: 24px 24px; color: var(--bg-base);
}
.hf-head__in {
  flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-width: 0;
  transform: scale(var(--hs, 1)); opacity: var(--ho, 1); transform-origin: 50% 40%;
}
.hf-head__top { --hf-pt: 88px; display: flex; flex-direction: column; gap: 18px; padding: max(16px, calc(var(--hf-pt) - var(--hub-h))) var(--hf-g) 0; }
.hf-head .hf-mono { color: var(--hf-dk-lab); }
.hf-h1 { display: flex; flex-direction: column; font: inherit; }
.hf-line { display: block; transform: translateX(var(--hl, 0px)); }
.hf-mask { display: block; overflow: hidden; padding: 0 .04em; }
.hf-big {
  display: block; font: 700 var(--fs-display)/.94 var(--font-display); letter-spacing: -.03em; white-space: nowrap; color: var(--bg-base);
  animation: hf-in-l 1.1s cubic-bezier(.2,.8,.2,1) .15s both;
}
.hf-mask--r .hf-big { animation: hf-in-r 1.1s cubic-bezier(.2,.8,.2,1) .35s both; }
/* SAMI. jest kremowe, dopóki zdjęcie się nie załaduje (JS dokłada --fill i .is-filled); pan zaczyna się po wejściu */
.hf-big--fill.is-filled {
  color: transparent; background-image: var(--fill); background-size: 140% auto; background-position: 0 40%;
  -webkit-background-clip: text; background-clip: text;
  animation: hf-in-r 1.1s cubic-bezier(.2,.8,.2,1) .35s both, hf-pan 18s ease-in-out 1.5s infinite alternate;
}
.hf-head__mid {
  display: flex; flex-direction: column; gap: 20px; padding: 0 var(--hf-g) 28px; transform: translateY(var(--hy, 0px));
}
.hf-head__sub { max-width: 520px; font: 400 var(--fs-lead)/1.6 var(--font-body); color: var(--hf-dk-sub); }
.hf-head__cta { display: flex; flex-direction: column; gap: 20px; }
.hf-head__cta .hf-btn { min-height: 48px; width: 100%; }
.hf-head__cue { text-align: center; }
.hf-rise { animation: hf-rise .8s cubic-bezier(.2,.7,.2,1) var(--d, 0s) both; }
.hf-ticker { overflow: hidden; padding: 16px 0; background: rgba(245,240,232,.06); }
.hf-ticker__track { display: flex; width: max-content; animation: hf-tick 34s linear infinite; }
.hf-ticker__track span { flex: none; margin-right: 40px; font: 500 var(--fs-label)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--hf-dk-lab); }
@keyframes hf-in-l { from { transform: translateX(-14%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hf-in-r { from { transform: translateX(14%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hf-pan  { from { background-position: 0 20%; } to { background-position: 100% 80%; } }
@keyframes hf-tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes hf-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (min-width: 1024px) {
  .hf-head__top { --hf-pt: 96px; gap: 20px; }
  .hf-big { line-height: .92; }
  .hf-big--fill.is-filled { background-size: 130% auto; }
  .hf-head__mid { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 32px; }
  .hf-head__cta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
  .hf-head__cta .hf-btn { width: auto; min-height: 44px; }
  .hf-head__cue { text-align: left; }
  .hf-ticker { padding: 18px 0; }
  .hf-ticker__track { animation-duration: 38s; }
  .hf-ticker__track span { margin-right: 48px; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .hf-head__cta .hf-btn { width: auto; align-self: flex-start; }
  .hf-head__cue { text-align: left; }
}

/* ============================================================
   2. NOWE NA BLOGU (kurtyna nad głową)
   ============================================================ */
.hf-teaser {
  z-index: 2; padding: 56px var(--hf-g) 64px; border-radius: 28px 28px 0 0; background: var(--bg-base); box-shadow: var(--hf-curtain-shadow);
}
.hf-teaser__in { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "cards" "all"; }
.hf-teaser__head { grid-area: head; display: flex; flex-direction: column; gap: 10px; }
.hf-cards { grid-area: cards; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 28px; align-items: start; }
.hf-teaser__head, .hf-teaser__all { opacity: var(--ro, 1); transform: translateY(var(--ty, 0px)); }
.hf-cards__li { opacity: var(--ro, 1); transform: translateY(calc(var(--ty, 0px) + var(--stag, 0px))); }
.hf-teaser__all {
  grid-area: all; justify-self: center; align-self: center; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 12px; padding: 0 var(--sp-4);
  font: 600 var(--fs-ui)/1 var(--font-body); color: var(--ink);
}
.hf-teaser__all:hover { text-decoration: underline; text-underline-offset: 4px; }
.hf-post {
  display: flex; flex-direction: column; border-radius: 24px; background: var(--bg-surface); box-shadow: var(--elev-1); overflow: hidden; color: var(--ink);
  transition: box-shadow .5s var(--ease);
}
.hf-post:hover { box-shadow: var(--elev-3); }
.hf-post__im, .hf-feat__im { position: relative; display: block; overflow: hidden; background: var(--hf-img-bg); }
.hf-post__im { height: 180px; }
.hf-post__im img, .hf-feat__im img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none;
  transform: scale(var(--rz, 1)); transition: transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.hf-post__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 22px; }
.hf-post__meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.hf-post__meta .hf-chip { align-self: auto; }
.hf-post__meta .hf-mono { color: var(--p-ink); }
.hf-post__title { font: 400 var(--fs-card)/1.15 var(--font-display); color: var(--ink); overflow-wrap: break-word; }
.hf-post__more, .hf-feat__more { margin-top: 2px; font: 600 var(--fs-ui)/1 var(--font-body); }
@media (hover: hover) { .hf-post:hover img, .hf-feat:hover img { transform: scale(1.08); } }

@media (min-width: 1024px) {
  .hf-teaser { padding: 88px var(--hf-g) 64px; border-radius: 32px 32px 0 0; box-shadow: 0 -24px 60px rgba(0,0,0,.35); }
  .hf-teaser__in { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head all" "cards cards"; align-items: end; }
  .hf-teaser__head { gap: 12px; }
  .hf-teaser__all { grid-area: all; justify-self: end; margin-top: 0; min-height: 44px; padding: 0; }
  .hf-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
  .hf-cards__li { --stag: calc(var(--i) * 28px); }
  .hf-post { border-radius: 28px; }
  .hf-post__im { height: 230px; }
  .hf-post__body { gap: 12px; padding: 22px 26px 26px; }
  .hf-post__more { margin-top: 4px; }
}
@media (max-width: 1023px) { .hf-post__im img, .hf-feat__im img { transition: none; } }

/* ============================================================
   3. PRODUKTY: opowieść w trzech panelach
   Domyślnie: stos paneli (telefon, tablet, bez JS, reduced-motion, druk). Przypięta scena: tylko ≥ 1024 px z JS (niżej).
   ============================================================ */
.hf-story { z-index: 2; }
.hf-story__stage { position: relative; }
.hf-bgs, .hf-words, .hf-pill--story, .hf-cue { display: none; }
.hf-track { display: block; }
.hf-panel { position: relative; padding: 56px var(--hf-g) 64px; background-color: var(--pillar-home-tint); background-image: var(--hf-grid-lt); background-size: 24px 24px; color: var(--ink); }
.hf-panel.is-dark { background-color: var(--bg-inv); background-image: var(--hf-grid-dk); color: var(--bg-base); }
.hf-panel__in { position: relative; display: flex; flex-direction: column; max-width: 640px; margin-inline: auto; }
.hf-panel__eyebrow { color: var(--p-ink); opacity: var(--t1o, 1); }
.is-dark .hf-panel__eyebrow { color: var(--hf-dk-lab); }
.is-dark .hf-us { color: var(--hf-dk-accent); }

/* okładki: ruch na obwolutach (slotach), obraz niezależny; packshot podmienia tylko wnętrze */
.hf-covers { position: relative; height: 270px; margin-top: 20px; opacity: var(--cvo, 1); transform: translate3d(var(--cvx, 0px), var(--cvy, 0px), 0); }
.hf-slot { position: absolute; }
.hf-slot--back  { left: 130px; top: 40px; width: 150px; height: 200px; transform: rotate(var(--r2, 7deg)); opacity: var(--b3o, 1); }
.hf-slot--front { left: 6px; top: 0; width: 180px; height: 240px; transform: rotate(var(--r1, -5deg)) scale(var(--sc, 1)); }
.hf-cover {
  display: flex; flex-direction: column; width: 100%; height: 100%; border-radius: 16px; overflow: hidden; box-shadow: var(--elev-3);
  background: var(--pillar-home-tint); color: var(--ink);
}
.hf-covers--pack { height: auto; }
.hf-slot--pack { position: relative; width: min(100%, 340px); aspect-ratio: 1; margin-inline: auto; transform: rotate(calc(var(--r1, -5deg) * .4)) scale(var(--sc, 1)); }
.hf-slot--pack img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; box-shadow: var(--elev-3); }
.hf-cover--img { background: none; box-shadow: none; border-radius: 0; }
.hf-cover--img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 24px rgba(44,25,14,.2)); }
.hf-cover__band { padding: 10px 14px; background: var(--pillar-home); color: #fff; font: 500 var(--fs-label)/1 var(--font-mono); letter-spacing: .04em; }
.hf-cover__main { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 14px; }
.hf-cover__main b { font: 700 var(--fs-h2)/1 var(--font-display); }
.hf-cover--sm .hf-cover__main b { font-size: calc(var(--fs-h2) * .8); }
.hf-cover__foot { padding: 0 14px 14px; font: 500 var(--fs-label)/1.3 var(--font-mono); letter-spacing: .04em; color: var(--ink-2); }

.hf-text { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; transform: translateX(var(--txx, 0px)); }
.hf-blk { opacity: var(--b1o, 1); transform: translateY(var(--b1y, 0px)); }
.hf-blk--2 { opacity: var(--b2o, 1); transform: translateY(var(--b2y, 0px)); }
.hf-blk--3 { opacity: var(--b3o, 1); transform: translateY(var(--b3y, 0px)); }
.hf-blk--1 { display: flex; flex-direction: column; gap: 12px; }
.hf-blk--2 { display: flex; flex-direction: column; gap: 10px; }
.hf-blk--3 { display: flex; flex-direction: column; gap: 8px; }
.hf-blk--3 > .hf-btn, .hf-blk--3 > .hf-btn--wide { width: 100%; margin-bottom: 4px; }
.hf-chips { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.hf-chips .hf-chip { align-self: auto; }
.hf-flag { color: var(--ink); }
.hf-panel .hf-h2 { line-height: 1.1; }
.is-dark .hf-h2, .is-dark .hf-body { color: var(--bg-base); }

/* cena z promocji (inc/promo.php): nowa = --sale, przekreślona = najniższa z 30 dni */
.hf-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.hf-price__now { font: 600 var(--fs-stat)/1 var(--font-display); color: var(--ink); }
.hf-price.is-promo .hf-price__now { color: var(--sale); }
.hf-price__was { font: 400 var(--fs-small)/1 var(--font-body); color: var(--ink-2); text-decoration: line-through; }
.hf-story .price-badge { display: inline-block; padding: 3px 7px; border-radius: var(--radius-pill); background: var(--sale); color: #fff; font: 700 var(--fs-label)/1 var(--font-body); }
.hf-story .price-note { display: block; margin: 0; font: 400 var(--fs-label)/1.3 var(--font-body); color: var(--ink); }
.is-dark .price-note { color: var(--hf-dk-text); }
.hf-vars { display: flex; flex-direction: column; gap: 8px; }
.hf-var {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: var(--radius-md);
  background: rgba(245,240,232,.08); color: var(--bg-base); font: 500 var(--fs-ui)/1.2 var(--font-body);
}
.hf-var__p { display: flex; align-items: baseline; gap: 10px; }
.hf-var__p s { font: 400 var(--fs-small)/1 var(--font-body); color: var(--hf-dk-text); }
.hf-var__p b { font-size: var(--fs-body); }
.hf-vars__note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; }
.hf-rows { display: flex; flex-direction: column; gap: 8px; }
.hf-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: var(--radius-md);
  background: var(--bg-surface); box-shadow: var(--elev-1); color: var(--ink); font: 500 var(--fs-ui)/1.2 var(--font-body);
  transition: box-shadow var(--dur-base) var(--ease);
}
.hf-row:hover { box-shadow: var(--elev-2); }
.hf-row--dk { background: rgba(245,240,232,.08); box-shadow: none; color: var(--bg-base); }
.hf-row--dk:hover { background: rgba(245,240,232,.14); box-shadow: none; }
.hf-row__l { display: flex; align-items: center; gap: 10px; }
.hf-row__l .hf-chip { align-self: auto; }
.hf-row__p { font-weight: 700; white-space: nowrap; }
.hf-lead3 { font: 600 var(--fs-title-sm)/1.3 var(--font-body); }
.hf-form { display: flex; flex-direction: column; gap: 10px; }
.hf-form__row { display: flex; flex-direction: column; gap: 10px; }
.hf-input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 18px; border: 0; border-radius: var(--radius-pill); background: var(--bg-surface); box-shadow: var(--elev-1);
  color: var(--ink); font: 400 var(--fs-body)/1 var(--font-body);
}
.hf-input::placeholder { color: var(--ink-2); }
.hf-input:focus { outline: none; box-shadow: 0 0 0 3px var(--p-accent); }
.hf-consent { display: flex; align-items: flex-start; gap: 10px; font: 400 var(--fs-label)/1.4 var(--font-body); color: var(--ink); cursor: pointer; }
.hf-consent input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--forest); }
.hf-consent span { padding-top: 4px; }
.hf-consent a { text-decoration: underline; text-underline-offset: 2px; }
.hf-story .sa-status, .hf-news .sa-status { font: 600 var(--fs-ui)/1.4 var(--font-body); }
.hf-story__all-m {
  display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 12px; font: 600 var(--fs-ui)/1 var(--font-body); color: var(--ink);
}
.hf-story__all-m:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 640px) { .hf-form__row { flex-direction: row; } .hf-input { min-height: 44px; } }

/* ============================================================
   4. REALIZACJE KLIENTÓW
   Domyślnie: siatka (1 kolumna telefon, 2 kolumny od 640 px). Przypięty zoom: niżej, tylko z JS i ruchem.
   ============================================================ */
.hf-real { z-index: 2; background: var(--bg-base); }
.hf-real__stage { padding: 56px var(--hf-g) 64px; }
.hf-real__head { display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.hf-real__head .hf-body { line-height: 1.5; }
.hf-rcs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 28px; }
.hf-rc { position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; box-shadow: var(--elev-3); background: var(--hf-img-bg); }
.hf-rc__a { position: absolute; inset: 0; display: block; color: #fff; }
.hf-rc img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.hf-rc__cap {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 6px; padding: 40px 16px 16px; color: var(--bg-base);
  background: linear-gradient(180deg, rgba(44,25,14,0), rgba(44,25,14,.72)); opacity: var(--cap, 1);
}
.hf-rc__name { font: 600 var(--fs-small)/1.2 var(--font-body); }
.hf-pill--real { display: flex; justify-content: center; margin-top: 28px; }
.hf-pill--real .hf-pill__lab, .hf-pill--real .hf-bar { display: none; }
@media (min-width: 640px) { .hf-rcs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } .hf-rc { border-radius: 20px; } .hf-rc__cap { padding: 48px 20px 20px; gap: 8px; } .hf-rc__name { font-size: var(--fs-ui); } }

/* ============================================================
   5. Z BLOGA
   ============================================================ */
.hf-blog { z-index: 2; padding: 56px var(--hf-g) 64px; background-color: var(--pillar-home-tint); background-image: var(--hf-grid-lt); background-size: 24px 24px; overflow: hidden; }
.hf-blog__head { display: flex; flex-direction: column; gap: 20px; }
.hf-blog__title { display: flex; flex-direction: column; gap: 10px; }
.hf-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hf-tag {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill); background: var(--bg-surface); color: var(--ink);
  box-shadow: var(--elev-1); font: 600 var(--fs-ui)/1 var(--font-body); transition: background var(--dur-slow) var(--ease), color var(--dur-slow) var(--ease);
}
.hf-tag small { margin-left: 6px; font: 500 var(--fs-label)/1 var(--font-mono); opacity: .8; }
.hf-tag.is-on { background: var(--bg-inv); color: var(--bg-base); }
.hf-blog__grid { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.hf-blog__feat { opacity: var(--ro, 1); transform: translateY(var(--ty, 0px)); }
.hf-blog__list { display: flex; flex-direction: column; gap: 16px; }
.hf-blog__li { opacity: var(--ro, 1); transform: translateY(var(--ty, 0px)); }
.hf-blog__head { opacity: var(--ro, 1); transform: translateY(var(--ty, 0px)); }
.hf-feat { display: flex; flex-direction: column; border-radius: 24px; background: var(--bg-surface); box-shadow: var(--elev-1); overflow: hidden; color: var(--ink); transition: box-shadow .45s var(--ease); }
.hf-feat:hover { box-shadow: var(--elev-3); }
.hf-feat__im { height: 200px; }
.hf-feat__body { display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 26px; }
.hf-feat__title { font: 400 var(--fs-feature)/1.15 var(--font-display); overflow-wrap: break-word; }
.hf-feat__x { font: 400 var(--fs-body)/1.6 var(--font-body); }
.hf-it {
  display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: var(--radius-lg); background: var(--bg-surface); box-shadow: var(--elev-1); color: var(--ink);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.hf-it:hover { box-shadow: var(--elev-3); transform: translateX(8px); }
.hf-it__tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hf-it__title { font: 600 var(--fs-body)/1.35 var(--font-body); overflow-wrap: break-word; }
.hf-it__ar { flex: none; font: 600 var(--fs-lead)/1 var(--font-body); }
.hf-blog__all { margin-top: 24px; width: 100%; min-height: 48px; }
.hf-blog.is-swap .hf-blog__feat > *, .hf-blog.is-swap .hf-blog__list > * > * { animation: hf-rise .5s cubic-bezier(.2,.7,.2,1) both; }
@media (min-width: 1024px) {
  .hf-blog { padding: 88px var(--hf-g) 80px; }
  .hf-blog__head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; }
  .hf-blog__title { gap: 12px; }
  .hf-tags { justify-content: flex-end; }
  .hf-tag { padding: 0 18px; }
  .hf-tag small { margin-left: 8px; }
  .hf-blog__grid { flex-direction: row; align-items: flex-start; gap: 24px; margin-top: 36px; }
  .hf-blog__feat { flex: 1 1 0; min-width: 0; }
  .hf-blog__list { flex: 1 1 0; min-width: 0; }
  .hf-feat { border-radius: 28px; }
  .hf-feat__im { height: 300px; }
  .hf-feat__body { gap: 14px; padding: 28px 32px 32px; }
  .hf-it { gap: 16px; padding: 20px 24px; }
  .hf-blog__all { display: none; }
}

/* ============================================================
   6. NEWSLETTER (arkusz)
   ============================================================ */
.hf-news { z-index: 2; padding: 56px var(--hf-g) 64px; background-color: var(--bg-inv); background-image: var(--hf-grid-dk); background-size: 24px 24px; color: var(--bg-base); overflow: hidden; }
.hf-news__in { display: flex; flex-direction: column; gap: 28px; }
.hf-news__tx { display: flex; flex-direction: column; gap: 20px; opacity: var(--ro, 1); transform: translateY(var(--ty, 0px)); }
.hf-dk-lab { color: var(--hf-dk-lab); }
.hf-news__h { font: 700 var(--fs-h2-xl)/1.08 var(--font-display); letter-spacing: -.01em; color: var(--bg-base); overflow-wrap: break-word; }
.hf-points { display: flex; flex-direction: column; gap: 12px; }
.hf-points li { display: flex; align-items: center; gap: 12px; font: 400 var(--fs-body)/1.4 var(--font-body); }
.hf-nt { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(245,240,232,.1); font: 500 var(--fs-label)/1 var(--font-mono); color: var(--hf-dk-lab); }
.hf-news__sheetwrap { display: flex; justify-content: center; opacity: var(--ro, 1); transform: translateY(var(--ty, 0px)); }
.hf-sheet {
  position: relative; width: 100%; max-width: 520px; padding: 28px 22px 88px; border-radius: 24px; color: var(--ink);
  background-color: var(--pillar-home-tint); background-image: var(--hf-grid-lt); background-size: 24px 24px; box-shadow: var(--hf-sheet-shadow);
  transform: rotate(-1deg); transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.hf-sheet__frame { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); color: var(--p-accent); pointer-events: none; }
.hf-sheet__frame rect { stroke-dasharray: 1; stroke-dashoffset: var(--nl-line, 0); }
.hf-sheet__form { position: relative; display: flex; flex-direction: column; gap: 16px; }
.hf-sheet__form[hidden], .hf-sheet__done[hidden] { display: none; }
.hf-fld { display: flex; flex-direction: column; gap: 8px; }
.hf-fld .hf-mono { color: var(--ink); }
.hf-sheet .newsletter-block__gift { margin: 0; font: 400 var(--fs-small)/1.4 var(--font-body); }
.hf-sheet__done { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 8px 0; color: var(--p-accent); }
.hf-done__h { font: 400 var(--fs-feature)/1.15 var(--font-display); color: var(--ink); }
.hf-done__x { font: 400 var(--fs-body)/1.5 var(--font-body); color: var(--ink); }
.hf-chk { stroke-dasharray: 1; animation: hf-draw .7s cubic-bezier(.4,0,.2,1) .1s both; }
@keyframes hf-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.hf-sheet__tb {
  position: absolute; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 4px; padding: 8px 12px; pointer-events: none;
  background: linear-gradient(var(--p-accent), var(--p-accent)) top / 100% 1.5px no-repeat, linear-gradient(var(--p-accent), var(--p-accent)) left / 1.5px 100% no-repeat;
}
.hf-tb__a { font: 500 var(--fs-label)/1.2 var(--font-mono); letter-spacing: .06em; color: var(--p-ink); }
.hf-tb__b { font: 500 var(--fs-label)/1.2 var(--font-mono); letter-spacing: .04em; color: var(--ink); }
@media (min-width: 1024px) {
  .hf-news { display: flex; align-items: center; min-height: calc(80 * var(--hf-u)); padding-block: 72px; }
  .hf-news__in { flex: 1; flex-direction: row; align-items: center; gap: 56px; }
  .hf-news__tx { flex: 1 1 0; min-width: 0; gap: 26px; }
  .hf-news__sheetwrap { flex: 1 1 0; min-width: 0; }
  .hf-points { gap: 14px; }
  .hf-points li { gap: 14px; }
  .hf-nt { width: 36px; height: 36px; }
  .hf-sheet { padding: 44px 40px 100px; border-radius: 28px; transform: rotate(-1.2deg); box-shadow: 0 2px 4px rgba(0,0,0,.2), 0 30px 70px rgba(0,0,0,.35); }
  .hf-sheet:hover { transform: rotate(0); }
  .hf-sheet__frame { inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
  .hf-sheet__form { gap: 20px; }
  .hf-sheet__tb { right: 28px; bottom: 26px; padding: 10px 14px; }
  .hf-tb__a { letter-spacing: .08em; }
}

/* ============================================================
   RUCH: przypięte sceny (ekran + brak reduced-motion + html.hf-js)
   ============================================================ */
@media screen and (prefers-reduced-motion: no-preference) {

  /* głowa: przykleja się pod nagłówkiem, kolejna sekcja zasuwa się na nią */
  html.hf-js .hf-head { position: sticky; top: var(--hub-top); z-index: 1; height: calc(100 * var(--hf-u) - var(--hub-top) - var(--hub-rb)); min-height: 0; }
  html.hf-js .hf-head__in { will-change: auto; }

  /* wskazówka: will-change tylko, gdy sekcja jest w pobliżu okna (klasa .is-active z JS) */
  .hf-head.is-active .hf-head__in, .hf-head.is-active .hf-line, .hf-head.is-active .hf-head__mid,
  .hf-teaser.is-active .hf-cards__li, .hf-blog.is-active [data-rv], .hf-news.is-active [data-rv],
  .hf-story.is-active .hf-track, .hf-story.is-active .hf-bgs, .hf-story.is-active .hf-words, .hf-story.is-active .hf-covers,
  .hf-real.is-active .hf-rc { will-change: transform, opacity; }

  /* realizacje: przypięty zoom na każdej szerokości (jeśli okno ma ≥ 520 px wysokości) */
  @media (min-height: 520px) {
    html.hf-js .hf-real__wrap { height: calc(var(--hf-sh) + 213 * var(--hf-u)); }
    html.hf-js .hf-real__stage {
      position: sticky; top: var(--hub-top); height: var(--hf-sh); padding: 0; overflow: hidden; overflow: clip; background: var(--bg-base);
    }
    html.hf-js .hf-real__head { position: absolute; left: var(--hf-g); right: var(--hf-g); top: 64px; z-index: 3; max-width: none; }
    html.hf-js .hf-rcs { display: block; margin: 0; }
    html.hf-js .hf-rc {
      position: absolute; left: 50%; top: 250px; width: 220px; height: 275px; margin-left: -110px; aspect-ratio: auto; border-radius: 18px;
      transform: translate3d(var(--cx, 0px), 0, 0) scale(var(--cs, 1)); opacity: var(--co, 1); z-index: var(--cz, 0);
    }
    html.hf-js .hf-rc img { left: -8%; width: 116%; transform: translateX(var(--ix, 0px)); }
    html.hf-js .hf-rc__cap { opacity: var(--cap, 1); }
    html.hf-js .hf-pill--real {
      position: absolute; left: var(--hf-g); right: var(--hf-g); bottom: 28px; z-index: 4; margin: 0; display: flex; align-items: center; gap: 12px;
      height: 52px; padding: 0 6px 0 18px; border-radius: var(--radius-pill); background: var(--bg-surface); box-shadow: var(--elev-2);
    }
    html.hf-js .hf-pill--real .hf-pill__lab { display: block; min-width: 56px; color: var(--ink); }
    html.hf-js .hf-pill--real .hf-bar { display: block; flex: 1; }
    html.hf-js .hf-pill--real .hf-btn { min-height: 44px; padding: 0 16px; }
    html.hf-js .hf-pill--real .hf-d { display: none; }
    html.hf-js .hf-pill--real .hf-m { display: inline; }
  }
  @media (min-height: 520px) and (min-width: 768px) {
    html.hf-js .hf-real__wrap { height: calc(var(--hf-sh) + 350 * var(--hf-u)); }
    html.hf-js .hf-real__head { left: var(--hf-g); right: auto; top: 56px; max-width: 520px; gap: 12px; }
    html.hf-js .hf-real__head .hf-body { line-height: 1.6; }
    html.hf-js .hf-rc { top: 226px; width: 300px; height: 375px; margin-left: -150px; border-radius: 20px; }
    html.hf-js .hf-pill--real { left: 50%; right: auto; transform: translateX(-50%); bottom: 20px; gap: 14px; height: 44px; padding: 0 8px 0 20px; }
    html.hf-js .hf-pill--real .hf-pill__lab { min-width: 70px; }
    html.hf-js .hf-pill--real .hf-bar { flex: none; width: 120px; }
    html.hf-js .hf-pill--real .hf-btn { min-height: 36px; padding: 0 18px; }
    html.hf-js .hf-pill--real .hf-d { display: inline; }
    html.hf-js .hf-pill--real .hf-m { display: none; }
    html.hf-js .hf-rc__cap { padding: 48px 20px 20px; gap: 8px; }
    html.hf-js .hf-rc__name { font-size: var(--fs-ui); }
  }
}
.hf-pill__lab { white-space: nowrap; }
.hf-bar { position: relative; display: block; height: 2px; background: rgba(139,91,47,.25); }
.hf-bar__fill { position: absolute; inset: 0; background: var(--p-accent); transform-origin: left center; transform: scaleX(var(--p, 0)); }

/* produkty: przypięta opowieść tylko ≥ 1024 px, z JS, ruchem i oknem ≥ 641 px wysokości */
@media screen and (prefers-reduced-motion: no-preference) and (min-width: 1024px) and (min-height: 641px) {
  html.hf-js .hf-story__wrap { height: calc(var(--hf-sh) + 400 * var(--hf-u)); }
  html.hf-js .hf-story__stage { position: sticky; top: var(--hub-top); height: var(--hf-sh); overflow: hidden; overflow: clip; background: var(--pillar-home-tint); }
  html.hf-js .hf-bgs, html.hf-js .hf-track {
    position: absolute; left: 0; top: 0; display: flex; width: 300%; height: 100%; transform: translate3d(var(--tx, 0%), 0, 0);
  }
  html.hf-js .hf-bg { flex: 0 0 33.3333%; display: block; background-size: 24px 24px; }
  html.hf-js .hf-bg--tint { background-color: var(--pillar-home-tint); background-image: var(--hf-grid-lt); }
  html.hf-js .hf-bg--dark { background-color: var(--bg-inv); background-image: var(--hf-grid-dk); }
  html.hf-js .hf-words { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; transform: translate3d(var(--wx, 0%), 0, 0); }
  html.hf-js .hf-word { position: absolute; font: 700 var(--fs-display-xl)/.9 var(--font-display); letter-spacing: -.03em; color: var(--hf-word); white-space: nowrap; }
  html.hf-js .hf-word--0 { left: -1.56%; top: 8.75%; opacity: var(--w0, 1); }
  html.hf-js .hf-word--1 { left: 51.9%; top: 5%; font-size: calc(var(--fs-display-xl) * 1.256); color: rgba(160,106,55,.26); opacity: var(--w1, 0); }
  html.hf-js .hf-word--2 { left: 113.1%; top: 18.75%; font-size: calc(var(--fs-display-xl) * .58); opacity: var(--w2, 0); }

  html.hf-js .hf-panel { flex: 0 0 33.3333%; padding: 0; background: none; overflow: visible; }
  html.hf-js .hf-panel.is-dark { background: none; }
  html.hf-js .hf-panel__in { display: block; width: 100%; height: 100%; max-width: 1440px; }
  html.hf-js .hf-panel__eyebrow { position: absolute; left: 5.625%; top: 56px; }
  html.hf-js .hf-covers { position: absolute; left: 7.5%; top: 150px; width: 43.75%; max-width: 560px; height: 520px; margin: 0; }
  html.hf-js .hf-covers--pack { height: 520px; }
  html.hf-js .hf-slot--pack { position: absolute; left: 10px; top: 0; width: min(100%, 500px); margin: 0; }
  html.hf-js .hf-slot--back  { left: 210px; top: 90px; width: 250px; height: 330px; }
  html.hf-js .hf-slot--front { left: 0; top: 0; width: 310px; height: 410px; }
  html.hf-js .hf-cover { border-radius: 20px; }
  html.hf-js .hf-cover__band { padding: 14px 18px; font-size: var(--fs-ui); }
  html.hf-js .hf-cover__main { gap: 10px; padding: 0 20px; }
  html.hf-js .hf-cover__foot { padding: 0 20px 18px; }
  html.hf-js .hf-text { position: absolute; left: 54.6875%; top: 112px; width: min(39.6875%, 560px); margin: 0; gap: 20px; }
  html.hf-js .hf-panel--pax .hf-text { top: 100px; }
  html.hf-js .hf-panel--nadstawka .hf-text { top: 130px; }
  html.hf-js .hf-blk--1 { gap: 14px; }
  html.hf-js .hf-blk--2 { gap: 6px; }
  html.hf-js .hf-panel--nadstawka .hf-blk--2 { gap: 10px; }
  html.hf-js .hf-vars { gap: 6px; }
  html.hf-js .hf-var, html.hf-js .hf-row { min-height: 44px; }
  html.hf-js .hf-blk--3 > .hf-btn { width: auto; align-self: flex-start; }
  html.hf-js .hf-form__row { flex-direction: row; }
  html.hf-js .hf-input { min-height: 44px; }
  html.hf-js .hf-story__all-m { display: none; }
  html.hf-js .hf-pill--story {
    position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 14px;
    height: 44px; padding: 0 20px; border-radius: var(--radius-pill); background: var(--bg-surface); box-shadow: var(--elev-2);
  }
  html.hf-js .hf-pill--story .hf-pill__lab { min-width: 110px; color: var(--ink); }
  html.hf-js .hf-pill--story .hf-bar { width: 140px; }
  html.hf-js .hf-pill__link { display: inline-flex; align-items: center; min-height: 44px; margin-right: -8px; padding: 0 8px; color: var(--ink); font: 600 var(--fs-ui)/1 var(--font-body); opacity: var(--endo, 0); }
  html.hf-js .hf-pill__link:hover { text-decoration: underline; text-underline-offset: 4px; }
  html.hf-js .hf-cue { display: block; position: absolute; right: 72px; bottom: 42px; z-index: 3; color: var(--ink); opacity: var(--cueo, 1); }
}

/* ruch zatrzymany: wstęga i tło nie animują się (reduced motion i druk) */
@media (prefers-reduced-motion: reduce) {
  .hf-big, .hf-mask--r .hf-big, .hf-big--fill.is-filled, .hf-rise, .hf-ticker__track, .hf-chk, .hf-blog.is-swap * { animation: none !important; }
  .hf-post img, .hf-feat img, .hf-sheet, .hf-it { transition: none; }
  .hf-it:hover { transform: none; }
}
@media print {
  .hf-big, .hf-rise, .hf-ticker__track, .hf-big--fill.is-filled { animation: none !important; }
  .hf-ticker { display: none; }
  .hf-head, .hf-news, .hf-panel.is-dark { background: none; color: var(--ink); }
  .hf-head .hf-mono, .hf-head__sub, .hf-big, .hf-news__h, .hf-news .hf-dk-lab, .hf-points li, .is-dark .hf-h2, .is-dark .hf-body { color: var(--ink); }
  .hf-big--fill.is-filled { color: var(--ink); background: none; -webkit-background-clip: border-box; background-clip: border-box; }
  .hf-head { min-height: 0; padding-bottom: var(--sp-8); }
  .hf-teaser { box-shadow: none; }
}
@media (min-width: 640px) {
  .hf-post__meta { flex-wrap: nowrap; }
}
