/* Pierogowe Love 2.0 — „Ciepła kuchnia w jasny dzień”
   Tokeny: docs/stage-1/01-creative-direction.md §3, 12 §3 i §7 (pierwotne → semantyczne → komponentowe).
   Mobile-first; progi: 640 / 768 / 1024 / 1280. */

@layer reset, tokens, base, layout, components, sections, utilities;

/* ───────── Fonty (self-hosting, statyczne instancje, latin + latin-ext) ───────── */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-display-620.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-text-560.woff2") format("woff2");
  font-weight: 500 599;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
/* Fallbacki dopasowane metrycznie (szerokość zmierzona w Chrome: Fraunces 620 ≈ 87,5 % Georgia Bold,
   Instrument Sans ≈ 100 % Arial) — podmiana fontu nie zmienia łamania wierszy. */
@font-face {
  font-family: "Fraunces Fallback";
  src: local("Georgia Bold"), local("Georgia-Bold"), local("Georgia");
  font-weight: 500 700;
  size-adjust: 87.5%;
  ascent-override: 111%;
  descent-override: 29%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Instrument Fallback";
  src: local("Arial");
  size-adjust: 100%;
  ascent-override: 97%;
  descent-override: 25%;
  line-gap-override: 0%;
}

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  img, picture, svg { display: block; max-width: 100%; }
  img { height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  button { cursor: pointer; }
  dialog { padding: 0; border: 0; color: inherit; }
  [hidden] { display: none !important; }
}

@layer tokens {
  :root {
    /* — pierwotne — */
    --flour: #FFFDF9;
    --dough: #F5EEE3;
    --line: #E7DCCB;
    --field: #8C7865;
    --crust: #2B211A;
    --crust-deep: #1A140F;
    --cocoa: #6E5D50;
    --butter: #F1AE0E;
    --butter-soft: #FCEFC7;
    --raspberry: #C93A62;
    --raspberry-deep: #B8325A;
    --blush: #F6D9DF;
    --dill: #56704A;
    --danger: #B3261E;

    /* — semantyczne — */
    --color-bg: var(--flour);
    --color-surface: var(--dough);
    --color-text: var(--crust);
    --color-text-muted: var(--cocoa);
    --color-action: var(--crust);
    --color-action-hover: var(--crust-deep);
    --color-action-text: var(--flour);
    --color-signature: var(--raspberry);
    --color-border-control: var(--field);
    --color-border-decor: var(--line);
    --color-focus: var(--crust);
    --color-focus-on-dark: var(--flour);
    --color-status-open: var(--dill);
    --color-status-closed: var(--cocoa);
    --color-info-bg: var(--butter-soft);
    --color-danger: var(--danger);
    --color-brand: var(--butter);

    /* — komponentowe — */
    --button-radius: 14px;
    --button-height: 52px;
    --media-radius: 8px;
    --chip-radius: 999px;
    --sheet-radius: 16px;
    --header-h: 56px;
    --actionbar-h: 68px;

    /* — typografia — */
    --font-display: "Fraunces", "Fraunces Fallback", Georgia, serif;
    --font-body: "Instrument Sans", "Instrument Fallback", Arial, sans-serif;
    --fs-display: clamp(2.375rem, 1.55rem + 3.4vw, 4.5rem);
    --fs-signature: clamp(4.25rem, 1.4rem + 12vw, 8.75rem);
    --fs-h2: clamp(1.875rem, 1.35rem + 2.1vw, 3.25rem);
    --fs-h3: clamp(1.1875rem, 1.1rem + 0.35vw, 1.4375rem);
    --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem);
    --fs-body: clamp(1.0625rem, 1.04rem + 0.1vw, 1.125rem);
    --fs-small: 0.9375rem;

    /* — rytm (skala 4 px) — */
    --gutter: clamp(1.25rem, 0.55rem + 2.8vw, 3rem);
    --container: 1240px;
    --section-y: clamp(4rem, 2.4rem + 6.4vw, 8.5rem);

    /* — ruch (12 §3.1) — */
    --dur-fast: 120ms;
    --dur-base: 200ms;
    --dur-enter: 220ms;
    --dur-exit: 150ms;
    --ease-out: cubic-bezier(.2, .7, .2, 1);
    --ease-in: cubic-bezier(.4, 0, 1, 1);
  }
  @media (min-width: 1024px) {
    :root { --header-h: 72px; --button-height: 50px; --fs-display: clamp(3.5rem, 1rem + 4vw, 4.5rem); }
  }
}

@layer base {
  html {
    color-scheme: light;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 16px);
    scroll-padding-bottom: calc(var(--actionbar-h) + env(safe-area-inset-bottom) + 8px);
  }
  @media (prefers-reduced-motion: no-preference) {
    html:focus-within { scroll-behavior: smooth; }
  }
  body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.55;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--header-h);
    overflow-x: clip;
  }
  h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 620; line-height: 1.05; text-wrap: balance; }
  h3 { font-weight: 560; }
  p, li, dd { text-wrap: pretty; }
  a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
  a:hover { text-decoration-thickness: 2px; }
  :focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
  ::selection { background: var(--butter-soft); color: var(--crust); }
  strong { font-weight: 600; }
  address { font-style: normal; }
  main:focus { outline: none; }
}

@layer layout {
  .wrap { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
  section { position: relative; }
}

/* ───────── Komponenty ───────── */
@layer components {
  .display { font-size: var(--fs-display); line-height: 1.0; letter-spacing: -0.01em; }
  .h2, .h3 { font-family: var(--font-display); line-height: 1.05; text-wrap: balance; }
  .h2 { font-size: var(--fs-h2); font-weight: 620; letter-spacing: -0.005em; }
  .h3 { font-size: var(--fs-h3); font-weight: 560; line-height: 1.2; }
  .nowrap { white-space: nowrap; }

  .icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
  .sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

  /* Przyciski: prostokąt 14 px (nie pigułka); primary = Skórka; secondary = obrys */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: var(--button-height); padding: 0.75rem 1.375rem;
    border-radius: var(--button-radius); border: 2px solid transparent;
    font-family: var(--font-body); font-size: 1.0625rem; font-weight: 600; line-height: 1.2;
    text-decoration: none; text-align: center;
    touch-action: manipulation; -webkit-tap-highlight-color: transparent;
    transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) ease,
      translate var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  }
  .btn:active { transform: scale(0.98); }
  /* Przycisk „pracuje”: przy najechaniu unosi się nad maślaną podkładką (kolor logo), przy kliknięciu ją dociska. */
  @media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .btn--primary:hover, .btn--on-color:hover, .btn--on-dark:hover { translate: 0 -3px; box-shadow: 0 5px 0 0 var(--btn-plate, var(--butter)); }
    .btn--on-color { --btn-plate: var(--crust); }
    .btn--secondary:hover, .btn--secondary-on-dark:hover { translate: 0 -2px; }
    .btn:active { translate: 0 0; box-shadow: 0 1px 0 0 var(--btn-plate, var(--butter)); }
  }
  .btn .icon { width: 1.2rem; height: 1.2rem; }
  .btn--primary { background: var(--color-action); color: var(--color-action-text); }
  .btn--primary:hover { background: var(--color-action-hover); }
  .btn--secondary { border-color: var(--color-action); color: var(--color-action); background: transparent; }
  .btn--secondary:hover { background: var(--color-surface); }
  .btn--on-dark { background: var(--flour); color: var(--crust); }
  .btn--on-dark:hover { background: var(--dough); }
  .btn--secondary-on-dark { border-color: var(--flour); color: var(--flour); }
  .btn--secondary-on-dark:hover { background: rgb(255 253 249 / 0.1); }
  .btn--on-color { background: var(--flour); color: var(--crust); }
  .btn--on-color:hover { background: var(--dough); }
  .btn[aria-disabled="true"], .btn:disabled { opacity: 0.55; cursor: progress; transform: none; }

  .icon-btn {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    border: 0; border-radius: 12px; background: transparent; color: var(--crust);
    touch-action: manipulation; -webkit-tap-highlight-color: transparent;
    transition: background-color var(--dur-fast) ease;
  }
  .icon-btn:hover { background: var(--dough); }
  .icon-btn .icon { width: 24px; height: 24px; }

  /* Link tekstowy: zwykłe podkreślenie + maślany „marker” nasuwający się od lewej przy najechaniu/fokusie. */
  .link {
    font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 0.22em;
    background: linear-gradient(var(--link-marker, var(--butter)), var(--link-marker, var(--butter))) 0 88% / 0 0.38em no-repeat;
    transition: background-size 320ms var(--ease-out);
  }
  .link:hover, .link:focus-visible { background-size: 100% 0.38em; text-decoration-thickness: 1px; }
  .link--on-color { --link-marker: rgb(255 253 249 / 0.28); display: inline-flex; align-items: center; min-height: 44px; color: var(--flour); }

  /* Strona techniczna podstrony (trasa zastępcza do czasu zbudowania podstron) */
  .stub { padding-block: var(--section-y); }
  .stub__inner { display: grid; gap: 1.25rem; justify-items: start; max-width: 40rem; }
  .stub__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }

  /* Status godzin: tekst + kropka (kolor nie jest jedynym nośnikiem) */
  .status {
    display: inline-flex; align-items: center; gap: 0.55rem;
    padding: 0.4rem 0.85rem 0.4rem 0.75rem; border-radius: var(--chip-radius);
    background: var(--color-info-bg); color: var(--crust);
    font-size: var(--fs-small); font-weight: 500; line-height: 1.3;
    font-variant-numeric: tabular-nums;
  }
  .status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-status-closed); display: none; flex: none; }
  .status[data-state] .status__dot { display: block; }
  .status[data-state="open"] .status__dot { background: var(--color-status-open); }

  .tag {
    display: inline-block; padding: 0 0.5rem; border: 1px solid var(--dill); border-radius: var(--chip-radius);
    color: var(--dill); font-family: var(--font-body); font-size: 0.8125rem; font-weight: 500; line-height: 1.5; vertical-align: 0.15em;
    white-space: nowrap;
  }

  .notice { padding: 1rem 1.125rem; border-radius: var(--media-radius); background: var(--color-info-bg); font-size: var(--fs-small); }

  .skip-link {
    position: fixed; left: 1rem; top: 0.75rem; z-index: 100;
    padding: 0.75rem 1rem; border-radius: var(--button-radius);
    background: var(--crust); color: var(--flour); font-weight: 600;
    transform: translateY(-200%);
  }
  .skip-link:focus { transform: none; outline-color: var(--butter); }

  .hours { display: grid; gap: 0.25rem; font-variant-numeric: tabular-nums; }
  .hours > div { display: flex; justify-content: space-between; gap: 1.5rem; padding: 0.375rem 0; border-bottom: 1px solid var(--color-border-decor); }
  .hours dd { font-weight: 500; }
  .hours > div.is-today { font-weight: 600; }
  .hours > div.is-today dt::after { content: " (dziś)"; font-weight: 500; color: var(--color-text-muted); }

  .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;
  }

  picture img { width: 100%; }
}

/* ───────── Nagłówek ───────── */
@layer components {
  .site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 30;
    height: var(--header-h);
    background: var(--color-bg);
    border-bottom: 1px solid transparent;
    transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) ease;
  }
  .site-header[data-scrolled] { border-bottom-color: var(--color-border-decor); }
  .site-header[data-hidden] { transform: translateY(-100%); }
  .site-header:focus-within { transform: none; }
  .site-header__inner {
    height: 100%; width: min(100% - 2 * var(--gutter) + 16px, var(--container) + 16px); margin-inline: auto;
    display: flex; align-items: center; gap: 0.25rem;
  }
  .site-header__logo { margin-right: auto; padding: 6px 8px 6px 0; border-radius: 6px; }
  .site-header__logo img { width: 148px; }
  .site-nav, .site-header__phone, .site-header__cta { display: none; }
  .site-header__call, .site-header__menu { flex: none; }
  /* Na /zamow/ CTA „Zamów online” oznacza bieżące miejsce: maślana karteczka zamiast pełnego przycisku (aria-current). */
  .site-header__cta[aria-current="page"], .menu-sheet__order[aria-current="page"] {
    background: var(--butter-soft); border-color: var(--butter); color: var(--crust); cursor: default;
  }
  .site-header__cta[aria-current="page"]:hover, .menu-sheet__order[aria-current="page"]:hover { background: var(--butter-soft); translate: none; box-shadow: none; }

  @media (min-width: 768px) {
    .site-header__cta { display: inline-flex; min-height: 44px; padding-block: 0.5rem; margin-right: 0.5rem; }
    .site-header__call { display: none; }
  }
  @media (min-width: 1024px) {
    .site-header__inner { gap: 0.5rem; }
    .site-header__logo img { width: 172px; }
    .site-nav { display: block; }
    .site-nav ul { display: flex; gap: 0.25rem; list-style: none; padding: 0; }
    .site-nav a {
      display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.75rem; border-radius: 10px;
      font-weight: 500; text-decoration: none;
    }
    .site-nav a {
      background: linear-gradient(var(--butter), var(--butter)) 50% calc(100% - 9px) / 0 0.32em no-repeat;
      transition: background-size 280ms var(--ease-out);
    }
    .site-nav a:hover { background-size: calc(100% - 1.5rem) 0.32em; }
    .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
    .site-header__phone {
      display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0 0.75rem 0 1rem; margin-left: 0.5rem;
      font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums;
      border-left: 1px solid var(--color-border-decor);
    }
    .site-header__phone:hover span { text-decoration: underline; }
    .site-header__phone .icon { width: 1.1rem; height: 1.1rem; }
    .site-header__cta { margin-right: 0; }
    .site-header__menu { display: none; }
  }
}

/* ───────── Menu mobile (<dialog>) ───────── */
@layer components {
  .menu-sheet {
    width: 100%; max-width: none; height: 100%; max-height: none; margin: 0;
    background: var(--color-bg);
    padding: 0 var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
    overflow-y: auto;
  }
  .menu-sheet::backdrop { background: rgb(43 33 26 / 0.4); }
  .menu-sheet__bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); margin-right: -8px; }
  .menu-sheet__logo { width: 148px; }
  .menu-sheet__links { list-style: none; padding: 1rem 0 1.25rem; border-bottom: 1px solid var(--color-border-decor); }
  .menu-sheet__links a {
    display: flex; align-items: center; min-height: 56px;
    font-family: var(--font-display); font-weight: 620; font-size: 2rem; line-height: 1.1; text-decoration: none;
  }
  .menu-sheet__links a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
  .menu-sheet__info { display: grid; gap: 0.75rem; justify-items: start; padding: 1.5rem 0; border-bottom: 1px solid var(--color-border-decor); }
  .menu-sheet__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; width: 100%; margin-top: 0.5rem; }
  .menu-sheet__order { grid-column: 1 / -1; }
  .menu-sheet__social { padding-top: 1.25rem; }

  @media (prefers-reduced-motion: no-preference) {
    .menu-sheet { transition: opacity var(--dur-exit) var(--ease-in), transform var(--dur-exit) var(--ease-in), overlay var(--dur-exit) allow-discrete, display var(--dur-exit) allow-discrete; opacity: 0; transform: translateY(-12px); }
    .menu-sheet[open] { opacity: 1; transform: none; transition-duration: var(--dur-enter); transition-timing-function: var(--ease-out); }
    @starting-style { .menu-sheet[open] { opacity: 0; transform: translateY(-12px); } }
  }
  @media (prefers-reduced-motion: reduce) {
    .menu-sheet { transition: opacity 100ms linear, overlay 100ms allow-discrete, display 100ms allow-discrete; opacity: 0; }
    .menu-sheet[open] { opacity: 1; }
    @starting-style { .menu-sheet[open] { opacity: 0; } }
  }
}

/* ───────── Pasek akcji mobile ───────── */
@layer components {
  .actionbar {
    position: fixed; inset: auto 0 0 0; z-index: 25;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0.5rem;
    padding: 0.5rem var(--gutter) calc(0.5rem + env(safe-area-inset-bottom));
    background: rgb(255 253 249 / 0.97);
    border-top: 1px solid var(--color-border-decor);
    transform: translateY(105%); visibility: hidden;
    transition: transform var(--dur-base) var(--ease-in), visibility 0s linear var(--dur-base);
  }
  .actionbar[data-visible] {
    transform: none; visibility: visible;
    transition: transform var(--dur-enter) var(--ease-out), visibility 0s;
  }
  .actionbar__call {
    display: grid; place-content: center; justify-items: center; gap: 0.1rem;
    min-height: var(--button-height); padding: 0.25rem 0.75rem;
    border: 2px solid var(--crust); border-radius: var(--button-radius);
    text-decoration: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
    transition: background-color var(--dur-fast) ease, transform var(--dur-fast) ease;
  }
  .actionbar__call:active { transform: scale(0.98); }
  .actionbar__label { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; line-height: 1.15; }
  .actionbar__label .icon { width: 1.05rem; height: 1.05rem; }
  .actionbar__status { font-size: 0.78125rem; line-height: 1.15; color: var(--color-text-muted); white-space: nowrap; }
  .actionbar__status:empty { display: none; }
  .actionbar__order { padding-inline: 0.5rem; font-size: 1rem; white-space: nowrap; }
  @media (min-width: 768px), (max-height: 480px) { .actionbar { display: none; } }
  @media (prefers-reduced-motion: reduce) { .actionbar, .actionbar[data-visible] { transition: visibility 0s; } }
}

/* ───────── Sekcje ───────── */
@layer sections {

  /* ═════════ 1. HERO ═════════
     Mobile: ogromne zdjęcie, pod nim panel tekstu „wciśnięty” falbanką w kadr.
     Desktop: kolumna tekstu + zdjęcie do prawej krawędzi, falbanka na styku. Para, światło i mikro-zoom — tylko dekoracja. */
  .hero { display: grid; view-timeline: --hero; }
  .hero__media {
    position: relative; overflow: hidden; background: var(--dough);
    height: clamp(300px, calc(100svh - var(--header-h) - 19.5rem), 74svh);
    --px: 0; --py: 0;
  }
  .hero__photo { height: 100%; }
  .hero__photo picture, .hero__photo img { height: 100%; }
  .hero__photo img { object-fit: cover; object-position: 50% 40%; }
  .hero__light {
    position: absolute; inset: -25%; pointer-events: none;
    background: radial-gradient(38% 34% at 34% 26%, rgb(255 222 160 / 0.7), rgb(255 222 160 / 0) 70%);
    mix-blend-mode: soft-light; opacity: 0.8;
  }

  .hero__text {
    position: relative; z-index: 1;
    margin-top: -18px; padding: 1.25rem var(--gutter) 1.75rem;
    background: var(--flour);
    display: grid; justify-items: start; gap: 0.875rem;
    container-type: inline-size;
  }
  .hero__text::before { content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 14px; background: var(--flour);
    -webkit-mask: radial-gradient(circle at 50% 100%, #000 13.5px, transparent 14px) 0 0 / 28px 14px repeat-x;
            mask: radial-gradient(circle at 50% 100%, #000 13.5px, transparent 14px) 0 0 / 28px 14px repeat-x; }

  /* H1: dwa wersy jako dwa równe obiekty („Ciepłe, pulchne, / lepione ręcznie.”). Rozmiar liczony od szerokości
     kolumny, żeby oba wersy zawsze mieściły się w jednej linii. */
  .hero__title {
    font-family: var(--font-display); font-weight: 650; line-height: 0.98; letter-spacing: -0.018em;
    font-size: min(13.2cqi, 5.5rem); /* etap 17: „Domowe pierogi,” jest szersze niż dawne „Ciepłe, pulchne,” — mieści się w kolumnie */
    text-wrap: nowrap;
  }
  .hero__title span { display: block; }
  .hero__lead { font-size: var(--fs-lead); line-height: 1.45; max-width: 25em; }
  .hero__lead-long { display: none; }
  .hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; width: 100%; margin-top: 0.25rem; }
  .hero__actions .btn--primary { flex: 1 1 100%; }
  .hero__call { display: none; }
  .hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
  .hero__place { display: none; font-size: var(--fs-small); color: var(--color-text-muted); }

  /* Para: 5 smug (tekstura WebP ~4 KB), każda z innym czasem wznoszenia i kołysania — okresy względnie pierwsze,
     więc układ nigdy nie powtarza się w oczywistej pętli. Tylko transform + opacity (kompozytor). */
  .steam { position: absolute; inset: 0; pointer-events: none; }
  /* Tekstury pobierane dopiero po zdarzeniu load (JS ustawia data-steam) — nie konkurują z obrazem LCP. */
  [data-steam] .steam__wisp { background-image: var(--tex, url("/img/fx/para-1.webp")); }
  .steam__wisp {
    position: absolute; left: var(--x); bottom: var(--b); height: var(--h, 46%); aspect-ratio: 300 / 720;
    background: 50% 100% / contain no-repeat;
    opacity: 0; transform-origin: 50% 100%;
  }
  .steam__wisp--1 { --x: 14%; --b: 56%; --h: 46%; --o: 0.85; --d: 7.3s; --s: 5.9s; --dl: -2.1s; --dx: -6%; }
  .steam__wisp--2 { --x: 31%; --b: 60%; --h: 42%; --o: 0.75; --d: 9.7s; --s: 7.1s; --dl: -6.4s; --dx: 8%; --tex: url("/img/fx/para-2.webp"); }
  .steam__wisp--3 { --x: 47%; --b: 58%; --h: 50%; --o: 0.85; --d: 8.3s; --s: 6.7s; --dl: -4.2s; --dx: -9%; --tex: url("/img/fx/para-3.webp"); }
  .steam__wisp--4 { --x: 63%; --b: 62%; --h: 40%; --o: 0.7;  --d: 11.1s; --s: 8.3s; --dl: -8.8s; --dx: 5%; }
  .steam__wisp--5 { --x: 76%; --b: 60%; --h: 44%; --o: 0.65; --d: 10.3s; --s: 6.1s; --dl: -1.3s; --dx: -4%; --tex: url("/img/fx/para-2.webp"); }

  @media (min-width: 480px) {
    .hero__actions .btn--primary { flex: 0 1 auto; }
  }
  @media (min-width: 768px) {
    .hero__media { height: min(58svh, 72vw); }
    .hero__photo img { object-position: 50% 42%; }
    .hero__text { margin-top: -18px; padding: 2rem var(--gutter) 2.75rem; gap: 1.125rem; }
    .hero__lead-long { display: inline; }
    .hero__lead-short { display: none; }
    .hero__call { display: inline-flex; }
    .hero__place { display: block; }
    .steam__wisp--1 { --x: 34%; --b: 58%; }
    .steam__wisp--2 { --x: 44%; --b: 62%; }
    .steam__wisp--3 { --x: 54%; --b: 60%; }
    .steam__wisp--4 { --x: 66%; --b: 66%; }
    .steam__wisp--5 { --x: 77%; --b: 62%; }
  }
  @media (min-width: 1024px) {
    .hero {
      grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
      min-height: clamp(620px, calc(100svh - var(--header-h)), 960px);
      padding-inline-start: max(var(--gutter), (100% - var(--container)) / 2);
    }
    .hero__media { grid-column: 2; grid-row: 1; height: auto; }
    .hero__photo img { object-position: 14% 50%; }
    /* falbanka na styku tekstu i zdjęcia — pionowo */
    .hero__media::after {
      content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 15px; background: var(--flour); z-index: 2;
      -webkit-mask: radial-gradient(circle at 0 50%, #000 13.5px, transparent 14px) 0 0 / 15px 28px repeat-y;
              mask: radial-gradient(circle at 0 50%, #000 13.5px, transparent 14px) 0 0 / 15px 28px repeat-y;
    }
    .hero__text {
      grid-column: 1; grid-row: 1; margin: 0; background: none;
      padding: 3rem clamp(2rem, 4.5vw, 5rem) 3.5rem 0; align-content: center; gap: 1.5rem;
    }
    .hero__text::before { display: none; }
    .hero__lead { max-width: 24em; }
    .steam__wisp--1 { --x: 36%; --b: 52%; --h: 46%; }
    .steam__wisp--2 { --x: 47%; --b: 58%; --h: 40%; }
    .steam__wisp--3 { --x: 57%; --b: 55%; --h: 48%; }
    .steam__wisp--4 { --x: 70%; --b: 62%; --h: 38%; }
    .steam__wisp--5 { --x: 82%; --b: 57%; --h: 42%; }
  }
  @media (min-width: 1440px) {
    .hero { grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); }
  }

  @media (prefers-reduced-motion: no-preference) {
    @keyframes steam-rise {
      0%   { transform: translate3d(0, 16%, 0) scale(0.8, 0.7); opacity: 0; }
      22%  { opacity: var(--o); }
      65%  { opacity: calc(var(--o) * 0.6); }
      100% { transform: translate3d(var(--dx), -34%, 0) scale(1.35, 1.2); opacity: 0; }
    }
    @keyframes steam-sway { 0%, 100% { translate: -6% 0; } 50% { translate: 7% 0; } }
    @keyframes steam-in { from { opacity: 0; } }
    @keyframes light-drift { from { transform: translate3d(-5%, -3%, 0); opacity: 0.55; } to { transform: translate3d(6%, 4%, 0); opacity: 0.95; } }
    @keyframes hero-settle { from { scale: 1.07; } }
    .steam { animation: steam-in 1.8s var(--ease-out) 0.5s both; translate: calc(var(--px) * 10px) calc(var(--py) * 6px); transition: translate 900ms var(--ease-out); }
    .steam__wisp {
      animation: steam-rise var(--d) cubic-bezier(.3, .1, .6, 1) var(--dl) infinite, steam-sway var(--s) ease-in-out var(--dl) infinite;
      will-change: transform, opacity;
    }
    .hero__light { animation: light-drift 14s ease-in-out infinite alternate; }
    .hero__photo { animation: hero-settle 2.4s cubic-bezier(.16, .8, .24, 1) both; translate: calc(var(--px) * -7px) calc(var(--py) * -5px); transition: translate 900ms var(--ease-out); }
    [data-paused] :is(.steam__wisp, .hero__light) { animation-play-state: paused; }

    /* Przy wychodzeniu z hero: zdjęcie lekko się przybliża i zostaje w tyle (prawie niezauważalnie). */
    @supports ((animation-timeline: view()) and (animation-range: entry)) {
      @keyframes hero-drift { to { transform: translateY(9%) scale(1.06); } }
      .hero__photo img { animation: hero-drift linear both; animation-timeline: --hero; animation-range: exit 0% exit 100%; }
    }
  }

  /* — NA WIGILIĘ (sezonowo) — */
  .season { display: none; background: var(--crust); color: var(--flour); padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
  [data-season="wigilia"] .season { display: block; }
  .season :focus-visible { outline-color: var(--color-focus-on-dark); }
  .season__grid { display: grid; gap: 1.75rem; }
  .season__media { order: -1; }
  .season__media img { border-radius: var(--media-radius); aspect-ratio: 1; object-fit: cover; }
  .season__text { display: grid; gap: 1rem; justify-items: start; max-width: 33rem; }
  .season__text h2 { margin-bottom: 0.25rem; }
  .season__label { font-size: var(--fs-small); font-weight: 600; color: var(--dough); }
  .season__note { color: var(--dough); }
  .season__actions { display: grid; gap: 0.75rem; width: 100%; margin-top: 0.5rem; }
  @media (min-width: 768px) {
    .season__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 6rem); align-items: center; }
    .season__media { order: 0; }
    .season__media img { aspect-ratio: 4 / 5; }
    .season__actions { display: flex; flex-wrap: wrap; width: auto; }
  }

  /* ═════════ 2. SMAKI — trzy talerze jak fizyczne odbitki + karta menu z chipsami ═════════ */
  .flavours { padding-top: var(--section-y); overflow-x: clip; }
  .flavours__head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
  .flavours__head p { font-size: var(--fs-lead); line-height: 1.5; color: var(--color-text-muted); max-width: 40ch; }
  /* Etap 17: dyskretna informacja przy zdjęciach produktów (HOME, katalogi) — zdjęcia to propozycje podania. */
  .photo-note { font-size: var(--fs-small); line-height: 1.45; color: var(--color-text-muted); }
  .flavours__photo-note { margin-top: clamp(1.25rem, 0.75rem + 1.5vw, 2rem); text-align: center; }
  @media (min-width: 1024px) {
    .flavours__head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 3rem; }
    .flavours__head p { padding-bottom: 0.4rem; }
  }

  .plates { display: grid; gap: 3rem; }
  .plate { position: relative; display: grid; gap: 0.375rem; align-content: start; --px: 0; --py: 0; }
  .plate--1 { width: 86%; }
  .plate--2 { width: 74%; justify-self: end; }
  .plate--3 { width: 82%; justify-self: center; }
  .plate__frame {
    position: relative; overflow: hidden; border-radius: 10px; background: var(--dough);
    box-shadow: 0 22px 44px -28px rgb(60 38 20 / 0.55), 0 2px 6px -2px rgb(60 38 20 / 0.12);
    transition: translate 500ms var(--ease-out), box-shadow 500ms var(--ease-out);
  }
  .plate__frame img { aspect-ratio: 4 / 5; object-fit: cover; transition: scale 800ms cubic-bezier(.2, .8, .2, 1), translate 800ms cubic-bezier(.2, .8, .2, 1); }
  .plate--2 .plate__frame img { aspect-ratio: 1; object-position: 50% 55%; }
  .plate--3 .plate__frame img { aspect-ratio: 3 / 4; }
  .plate__name { margin-top: 0.875rem; font-family: var(--font-display); font-weight: 620; font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem); line-height: 1.08; letter-spacing: -0.01em; }
  .plate__link { text-decoration: none; }
  .plate__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 10px; }
  .plate__note { color: var(--color-text-muted); font-size: 1rem; line-height: 1.5; max-width: 32ch; }
  .plate:has(.plate__link:focus-visible) .plate__frame { outline: 2px solid var(--color-focus); outline-offset: 4px; }

  @media (min-width: 768px) {
    .plates { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(1rem, 2.4vw, 2.5rem); align-items: start; }
    .plate--1, .plate--2, .plate--3 { width: auto; justify-self: stretch; }
    .plate--1 { grid-column: 1 / span 5; }
    .plate--2 { grid-column: 6 / span 4; margin-top: clamp(5rem, 14vw, 12rem); margin-left: -18%; z-index: 2; }
    .plate--2 .plate__frame { border: 10px solid var(--flour); border-radius: 18px; }
    .plate--3 { grid-column: 10 / span 3; margin-top: clamp(1rem, 4vw, 3.5rem); }
  }

  /* Hover (kursor): talerz „unosi się”, zdjęcie przybliża się i podąża za kursorem o kilka pikseli, nazwa dostaje maślane podkreślenie. */
  @media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .plate:hover .plate__frame { translate: 0 -6px; box-shadow: 0 34px 60px -30px rgb(60 38 20 / 0.6), 0 4px 10px -4px rgb(60 38 20 / 0.16); }
    .plate:hover .plate__frame img { scale: 1.07; translate: calc(var(--px) * -10px) calc(var(--py) * -10px); }
  }
  .plate:hover .plate__link { background-size: 100% 0.32em; }
  .plate__link { background: linear-gradient(var(--butter), var(--butter)) 0 92% / 0 0.32em no-repeat; transition: background-size 350ms var(--ease-out); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

  /* Karta menu: pozostałe smaki jako chipsy w trzech grupach + karta „Co w środku?”. Bez ruchu poziomego — tekst stoi. */
  .menu-board {
    position: relative; display: grid; gap: 1.75rem; grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "groups" "card" "cta";
    margin-top: clamp(3.5rem, 2rem + 5vw, 7rem); padding: clamp(1.5rem, 1rem + 2.6vw, 3.5rem) clamp(1.125rem, 0.6rem + 2.4vw, 3.5rem);
    background: var(--dough); border-radius: 20px;
    overflow-anchor: none; /* karta przenoszona na telefonie — korekta przewinięcia robi JS */
  }
  .menu-board__intro { grid-area: intro; display: grid; gap: 0.5rem; }
  .menu-board__title { font-size: var(--fs-h2); font-weight: 620; line-height: 1.05; letter-spacing: -0.005em; }
  .menu-board__lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--color-text-muted); max-width: 36ch; }
  html:not(.js) .menu-board__hint { display: none; }
  .menu-board__groups { grid-area: groups; display: grid; gap: 1.5rem; }
  .menu-board__cta { grid-area: cta; }

  .taste-group { display: grid; gap: 0.75rem; }
  .taste-group__label {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: var(--fs-small); font-weight: 600; color: var(--color-text-muted);
  }
  .taste-group__label::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--group-dot, var(--butter)); }
  .taste-group--slodkie { --group-dot: var(--raspberry); }
  .taste-group--wytrawne { --group-dot: var(--butter); }

  .chips { display: flex; flex-wrap: wrap; gap: 0.5rem 0.4375rem; }
  .chip {
    position: relative; display: inline-flex; align-items: center; gap: 0.45rem; min-height: 46px; padding: 0.5rem clamp(0.875rem, 0.7rem + 0.5vw, 1.125rem);
    border: 1px solid var(--line); border-radius: var(--chip-radius); background: var(--flour);
    font-family: var(--font-display); font-weight: 560; font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); line-height: 1.15;
    color: var(--crust); cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
    transition: background-color var(--dur-base) ease, color var(--dur-base) ease, border-color var(--dur-base) ease,
      translate var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  }
  .chip--signature { color: var(--raspberry-deep); }
  .chip--signature::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; }
  /* Natywne radio pokrywa cały chip: klik/tap w dowolnym miejscu, strzałki w grupie, czytnik słyszy „przycisk opcji, 1 z 16”. */
  .chip__input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; appearance: none; border-radius: inherit; }
  .chip:has(.chip__input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 3px; }
  .chip:hover { border-color: var(--field); }
  @media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .chip:hover { translate: 0 -2px; box-shadow: 0 3px 0 0 var(--butter); }
  }
  .js .chip:has(.chip__input:checked) { background: var(--crust); border-color: var(--crust); color: var(--flour); translate: 0 0; box-shadow: 0 3px 0 0 var(--butter); }
  .js .chip--signature:has(.chip__input:checked) { background: var(--raspberry-deep); border-color: var(--raspberry-deep); box-shadow: 0 3px 0 0 var(--blush); }

  /* Karta „Co w środku?” — biała karteczka z falbanką jak brzeg pieroga. */
  .taste-card {
    grid-area: card; position: relative; align-self: start; margin-top: 10px; padding: 1.5rem clamp(1.25rem, 1rem + 1vw, 2rem) 1.25rem;
    background: var(--flour); border-radius: 0 0 14px 14px;
    filter: drop-shadow(0 18px 22px rgb(60 38 20 / 0.13)) drop-shadow(0 2px 3px rgb(60 38 20 / 0.08));
  }
  .taste-card::before {
    content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 10px; background: var(--flour);
    -webkit-mask: radial-gradient(circle at 50% 100%, #000 9.5px, transparent 10px) 0 0 / 20px 10px repeat-x;
            mask: radial-gradient(circle at 50% 100%, #000 9.5px, transparent 10px) 0 0 / 20px 10px repeat-x;
  }
  html:not(.js) .taste-card { display: none; }
  .taste-group > .taste-card { grid-area: auto; margin-top: 1.25rem; }
  .taste { display: grid; gap: 0.5rem; }
  .taste__kicker { font-size: var(--fs-small); font-weight: 600; color: var(--color-text-muted); }
  .taste__name { font-family: var(--font-display); font-weight: 620; font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }
  .taste--signature .taste__name { color: var(--raspberry-deep); }
  .taste__facts { display: grid; gap: 0.5rem; margin-top: 0.375rem; }
  .taste__facts > div { display: grid; grid-template-columns: clamp(5.25rem, 4rem + 3vw, 6.5rem) minmax(0, 1fr); gap: 0.75rem; padding-top: 0.5rem; border-top: 1px dashed var(--line); }
  .taste__facts dt { font-size: var(--fs-small); color: var(--color-text-muted); padding-top: 0.1em; }
  .taste__facts dd { line-height: 1.4; }
  .taste__actions { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin-top: 0.25rem; }
  .taste__actions .link { display: inline-flex; align-items: center; min-height: 44px; }
  @media (prefers-reduced-motion: no-preference) {
    .taste:not([hidden]) { animation: taste-in var(--dur-enter) var(--ease-out); }
    @keyframes taste-in { from { opacity: 0; translate: 0 6px; } }
  }

  /* Telefon i tablet: karta otwiera się pod grupą wybranego smaku (JS); od 1024 px stoi w prawej kolumnie. */
  .taste-group > .taste-card { max-width: 34rem; }
  @media (min-width: 768px) {
    .menu-board { border-radius: 28px; }
  }
  @media (min-width: 1024px) {
    .menu-board {
      grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(1.75rem, 4vw, 4.5rem); row-gap: 2rem;
      grid-template-areas: "intro card" "groups card" "cta card";
      grid-template-rows: auto auto 1fr;
    }
    .menu-board__groups { gap: 1.75rem; }
    .taste-card { position: sticky; top: calc(var(--header-h) + 2rem); margin-top: 0.75rem; }
  }

  /* ═════════ 3. RÓŻOWE. NASZE. — Malina zalewa ekran od dołu, słowa wjeżdżają z dwóch stron, talerz „ląduje” ═════════ */
  .signature { --sig-bg: var(--raspberry); position: relative; margin-top: 14px; color: var(--flour); overflow-x: clip; }
  .signature::before { content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 14px; background: var(--raspberry); z-index: 1;
    -webkit-mask: radial-gradient(circle at 50% 100%, #000 13.5px, transparent 14px) 0 0 / 28px 14px repeat-x;
            mask: radial-gradient(circle at 50% 100%, #000 13.5px, transparent 14px) 0 0 / 28px 14px repeat-x; }
  .signature :focus-visible { outline-color: var(--color-focus-on-dark); }
  .signature__stage { position: relative; isolation: isolate; background: var(--sig-bg); padding-block: clamp(4.5rem, 3rem + 6vw, 8rem); }
  .signature__flood { display: none; }
  .signature__grid { display: grid; gap: 1.75rem; grid-template-areas: "title" "media" "body"; }
  .signature__title {
    grid-area: title; font-family: var(--font-display); font-size: var(--fs-signature); font-weight: 650;
    line-height: 0.9; letter-spacing: -0.025em; text-wrap: nowrap;
  }
  .signature__title span { display: block; }
  .signature__w2 { padding-left: 0.6em; }
  .signature__media { grid-area: media; width: 80%; justify-self: end; margin-top: -0.5rem; rotate: -2deg; }
  .signature__media img { border-radius: 10px; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 40px 70px -36px rgb(70 8 28 / 0.75); }
  .signature__body { grid-area: body; display: grid; gap: 1rem; justify-items: start; }
  .signature__name { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); }
  .signature__desc { font-size: var(--fs-lead); line-height: 1.45; max-width: 26ch; }
  .signature__actions { display: grid; gap: 0.75rem; width: 100%; margin-top: 0.5rem; justify-items: start; }
  .signature__actions .btn { width: 100%; }
  @media (min-width: 640px) {
    .signature__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; width: auto; }
    .signature__actions .btn { width: auto; }
  }
  @media (min-width: 768px) {
    .signature__grid {
      grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "title media" "body media";
      column-gap: clamp(2rem, 5vw, 6rem); row-gap: 2.5rem; align-items: center;
    }
    .signature__title { font-size: min(var(--fs-signature), 10.5vw); align-self: end; }
    .signature__body { align-self: start; }
    .signature__media { width: 100%; margin: 0; }
  }

  @property --sig-bg { syntax: "<color>"; inherits: true; initial-value: #C93A62; }
  @media (prefers-reduced-motion: no-preference) {
    @supports ((animation-timeline: view()) and (animation-range: entry)) {
      .signature { view-timeline: --sig; clip-path: inset(-14px 0 0 0); --r-flood: entry 0% entry 75%; --r-w: entry 45% cover 42%; --r-media: entry 55% cover 48%; --r-body: entry 75% cover 50%; }
      .signature::before { display: none; }
      .signature__stage { background: transparent; }
      .signature__flood {
        display: block; position: absolute; inset: 0; z-index: -1; background: var(--raspberry);
        animation: sig-flood linear both; animation-timeline: --sig; animation-range: var(--r-flood);
      }
      .signature__flood::before { content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 14px; background: var(--raspberry);
        -webkit-mask: radial-gradient(circle at 50% 100%, #000 13.5px, transparent 14px) 0 0 / 28px 14px repeat-x;
                mask: radial-gradient(circle at 50% 100%, #000 13.5px, transparent 14px) 0 0 / 28px 14px repeat-x; }
      @keyframes sig-flood { from { transform: translateY(78%); } to { transform: none; } }
      @keyframes sig-w1 { from { transform: translateX(-38%); opacity: 0; } }
      @keyframes sig-w2 { from { transform: translateX(38%); opacity: 0; } }
      @keyframes sig-media { from { transform: translateY(30%) rotate(7deg) scale(0.86); opacity: 0; } }
      @keyframes sig-body { from { transform: translateY(2rem); opacity: 0; } }
      .signature__w1 { animation: sig-w1 linear both; animation-timeline: --sig; animation-range: var(--r-w); }
      .signature__w2 { animation: sig-w2 linear both; animation-timeline: --sig; animation-range: var(--r-w); }
      .signature__media { animation: sig-media linear both; animation-timeline: --sig; animation-range: var(--r-media); }
      .signature__body { animation: sig-body linear both; animation-timeline: --sig; animation-range: var(--r-body); }

      /* Telefon i tablet (etap 10 — poprawka „tekst pojawia się za późno”): wcześniej słowa i opis liczyły postęp od całej, wysokiej
         sekcji (np. „cover 42%”) i kończyły wjazd dopiero, gdy nagłówek był już u góry ekranu albo poza nim. Teraz każdy element
         ma WŁASNĄ oś (view()): nagłówek jest w pełni widoczny, zanim dojdzie do połowy ekranu, opis — w dolnej połowie.
         Zalanie Maliną kończy się szybciej (entry 0–45%). Efekt (słowa z dwóch stron, talerz „ląduje”) zostaje. */
      @media (max-width: 1023px), (max-height: 699px) {
        .signature { --r-flood: entry 0% entry 45%; }
        .signature__w1, .signature__w2 { animation-timeline: view(); animation-range: entry 0% cover 24%; }
        .signature__media { animation-timeline: view(); animation-range: entry 0% cover 32%; }
        .signature__body { animation-timeline: view(); animation-range: entry 0% cover 25%; }
      }
      /* Duże ekrany: sekcja wyższa niż ekran, scena przypięta — Malina „przejmuje” cały widok na chwilę (bez blokowania scrolla). */
      @media (min-width: 1024px) and (min-height: 700px) {
        .signature { height: 165svh; --r-flood: entry 10% entry 95%; --r-w: entry 70% contain 30%; --r-media: entry 80% contain 40%; --r-body: contain 10% contain 50%; }
        .signature__stage { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; padding-block: 2rem; }
      }
    }
  }

  /* ═════════ 4. NIE TYLKO PIEROGI — tryptyk z zatwierdzonych zdjęć produktów; nazwy na „zakładkach” wchodzących w zdjęcia ═════════
     Telefon: krokiety na całą szerokość (4:3), pod nimi dwa kwadraty. Od 640 px: trzy pionowe kadry 4:5 obok siebie, od krawędzi do krawędzi. */
  .others { padding-block: var(--section-y) calc(var(--section-y) * 0.6); }
  .others__head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 1.5rem + 2.5vw, 3.5rem); }
  .others__head p { font-size: var(--fs-lead); line-height: 1.5; color: var(--color-text-muted); max-width: 34ch; }
  .dishes {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 0.75rem;
    width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; view-timeline: --others;
  }
  .dish { position: relative; display: grid; align-content: start; }
  .dish--krokiety { grid-column: 1 / -1; }
  .dish__media { overflow: hidden; border-radius: 10px; background: var(--dough); }
  .dish__media img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: scale 900ms cubic-bezier(.2, .8, .2, 1), filter 450ms var(--ease-out); }
  .dish--krokiety .dish__media img { aspect-ratio: 4 / 3; }
  .dish__label { position: relative; z-index: 1; display: grid; gap: 0.375rem; padding-top: 0.875rem; }
  .dish__name { font-family: var(--font-display); font-weight: 620; font-size: clamp(1.625rem, 1.1rem + 2.4vw, 2.5rem); line-height: 1.02; letter-spacing: -0.018em; }
  .dish--krokiety .dish__name { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3rem); }
  .dish__link { text-decoration: none; background: linear-gradient(var(--butter), var(--butter)) 0 90% / 0 0.22em no-repeat; transition: background-size 350ms var(--ease-out); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
  .dish__link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 10px; }
  .dish:hover .dish__link, .dish__link:focus-visible { background-size: 100% 0.22em; }
  .dish:has(.dish__link:focus-visible) .dish__media { outline: 2px solid var(--color-focus); outline-offset: 3px; }
  .dish__note { color: var(--color-text-muted); font-size: 1rem; line-height: 1.5; max-width: 34ch; }
  .others__foot { margin-top: 2rem; }

  @media (min-width: 640px) {
    .dishes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; }
    .dish--krokiety { grid-column: auto; }
    .dish__media { border-radius: 0; }
    .dish__media img, .dish--krokiety .dish__media img { aspect-ratio: 4 / 5; }
    .dish__label {
      margin: -3.25rem clamp(0.75rem, 1.6vw, 2rem) 0; padding: 1.125rem clamp(1rem, 1.6vw, 1.75rem) 0.25rem;
      background: var(--flour); border-radius: 14px 14px 0 0; transition: translate 450ms var(--ease-out);
    }
    .dish__name, .dish--krokiety .dish__name { font-size: clamp(1.75rem, 0.7rem + 2.9vw, 3.5rem); }
    .dish__link::after { border-radius: 0; }
    .dish:has(.dish__link:focus-visible) .dish__media { outline-offset: -6px; outline-color: var(--flour); outline-width: 3px; }
  }
  @media (min-width: 1024px) {
    .others__head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 3rem; }
    .others__head p { padding-bottom: 0.4rem; }
    .dish__media img, .dish--krokiety .dish__media img { height: min(41.5vw, 82svh); aspect-ratio: auto; }
    .dish__label { margin-top: -5rem; padding-top: 1.5rem; }
    .others__foot { margin-top: 2.5rem; }
  }
  /* Kursor na daniu: jego zdjęcie przybliża się, sąsiednie lekko gasną — uwaga idzie tam, gdzie patrzysz. */
  @media (hover: hover) and (pointer: fine) {
    .dishes:has(.dish:hover) .dish:not(:hover) .dish__media img { filter: brightness(0.78) saturate(0.85); }
  }
  @media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .dish:hover .dish__media img { scale: 1.05; }
    .dish:hover .dish__label { translate: 0 -6px; }
  }
  @media (prefers-reduced-motion: no-preference) {
    @supports ((animation-timeline: view()) and (animation-range: entry)) {
      @keyframes others-zoom { from { transform: scale(1.14); } }
      @keyframes dish-rise { from { transform: translateY(2.5rem); opacity: 0; } }
      .dish__media img { animation: others-zoom linear both; animation-timeline: --others; animation-range: entry 0% cover 50%; }
      .dish__label { animation: dish-rise linear both; animation-timeline: --others; }
      .dish--krokiety .dish__label { animation-range: entry 45% cover 42%; }
      .dish--golabki .dish__label { animation-range: entry 55% cover 48%; }
      .dish--kluski .dish__label { animation-range: entry 65% cover 54%; }
      @media (max-width: 639px) { .dish__label { animation: none; } }
    }
  }

  /* ═════════ 5. RĘCZNIE, OD 2008 — zdjęcie przypięte, detal falbanki rośnie, gdy czytasz „Od 2008” ═════════ */
  .handmade { padding-block: var(--section-y); timeline-scope: --year; }
  .handmade__grid { display: grid; gap: 2.75rem; }
  .handmade__frame { position: relative; }
  .handmade__wide img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; }
  .handmade__detail {
    position: absolute; right: -0.25rem; bottom: -1.75rem; width: 44%;
    border: 6px solid var(--flour); border-radius: 14px; overflow: hidden; background: var(--dough);
    box-shadow: 0 20px 40px -24px rgb(60 38 20 / 0.5);
  }
  .handmade__detail img { aspect-ratio: 1; object-fit: cover; }
  .handmade__story { display: grid; gap: 2.5rem; }
  .handmade__chapter { display: grid; gap: 1rem; max-width: 36rem; }
  .handmade__chapter p { max-width: 52ch; }
  .handmade__year {
    font-family: var(--font-display); font-weight: 650; font-size: clamp(3.75rem, 1.5rem + 7vw, 7.25rem); white-space: nowrap;
    line-height: 0.85; letter-spacing: -0.03em; font-variant-numeric: lining-nums;
  }
  .handmade__chapter--year { view-timeline: --year; gap: 0.75rem; }
  .handmade__chapter--year .handmade__year + p { font-size: var(--fs-lead); line-height: 1.45; }

  @media (min-width: 768px) {
    .handmade__visual { max-width: 700px; }
  }
  @media (min-width: 1024px) {
    .handmade__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(3rem, 7vw, 7.5rem); align-items: start; }
    .handmade__visual { position: sticky; top: max(2rem, calc(50svh - min(42svh, 44vw * 1.25 / 2))); max-width: none; }
    .handmade__wide img { aspect-ratio: 4 / 5; max-height: 84svh; width: 100%; }
    .handmade__detail { right: auto; left: -1.5rem; bottom: -1.5rem; width: 46%; }
    .handmade__story { gap: 4rem; padding-top: 3rem; }
  }
  @media (prefers-reduced-motion: no-preference) {
    @supports ((animation-timeline: view()) and (animation-range: entry)) {
      @media (min-width: 1024px) {
        .handmade__story { gap: 0; padding-block: 8svh 4svh; }
        .handmade__chapter { min-height: 64svh; align-content: center; }
        .handmade__chapter--year { min-height: 70svh; }
      }
      @keyframes hand-crop { from { transform: scale(1.14); } }
      .handmade__frame { overflow: visible; }
      .handmade__wide { display: block; overflow: hidden; border-radius: 10px; view-timeline: --wide; }
      .handmade__wide img { animation: hand-crop linear both; animation-timeline: --wide; animation-range: entry 0% cover 60%; }
      /* Desktop: detal falbanki wychodzi z rogu i wypełnia cały kadr — „przybliżenie” na ręczny zacisk.
         Stan końcowy = detal na całą ramkę; stan początkowy (przed zakresem) = mała odbitka w lewym dolnym rogu. */
      @media (min-width: 1024px) {
        @keyframes detail-grow { from { transform: translate(-1.5rem, 1.5rem) scale(0.44); } }
        .handmade__detail {
          inset: 0; width: auto; border-width: 0; border-radius: 10px; transform-origin: 0 100%;
          box-shadow: 0 0 0 6px var(--flour), 0 20px 40px -24px rgb(60 38 20 / 0.5);
          animation: detail-grow linear both; animation-timeline: --year; animation-range: entry 25% contain 30%;
        }
        .handmade__detail picture, .handmade__detail img { height: 100%; aspect-ratio: auto; }
      }
    }
  }


  /* ═════════ 6. KONTAKT — finał bez formularza: hasło + „Zamów online”, obok karta z danymi. Falbanka na górnej krawędzi. ═════════ */
  .contact {
    margin-top: 14px; margin-bottom: -14px; /* ciasto wchodzi pod falbankę stopki — bez jasnego paska między sekcjami */
    padding-block: var(--section-y) calc(var(--section-y) * 0.75 + 14px);
    background: var(--dough);
  }
  .contact::before {
    content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 14px; background: var(--dough);
    -webkit-mask: radial-gradient(circle at 50% 100%, #000 13.5px, transparent 14px) 0 0 / 28px 14px repeat-x;
            mask: radial-gradient(circle at 50% 100%, #000 13.5px, transparent 14px) 0 0 / 28px 14px repeat-x;
  }
  .contact__grid { display: grid; gap: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); }
  .contact__lead { display: grid; gap: 1.25rem; justify-items: start; align-content: start; }
  .contact__title { font-size: clamp(2.375rem, 1.55rem + 3.4vw, 4.25rem); line-height: 1; letter-spacing: -0.01em; }
  .contact__intro { font-size: var(--fs-lead); line-height: 1.5; max-width: 30ch; color: var(--color-text-muted); }
  .contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; width: 100%; margin-top: 0.5rem; }
  .contact__order { min-width: 15rem; }
  .contact__actions .link { display: inline-flex; align-items: center; min-height: 44px; }
  @media (max-width: 479px) { .contact__order { width: 100%; } }

  .contact__card {
    display: grid; align-self: start; padding: clamp(1.25rem, 0.8rem + 1.8vw, 2.25rem) clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
    background: var(--flour); border-radius: 14px; box-shadow: 0 30px 50px -36px rgb(60 38 20 / 0.45);
  }
  .contact__row { display: grid; gap: 0.25rem; padding-block: 1.125rem; border-top: 1px dashed var(--line); }
  .contact__row:first-child { padding-top: 0; border-top: 0; }
  .contact__row:last-child { padding-bottom: 0; }
  .contact__row > dt { font-size: var(--fs-small); font-weight: 600; color: var(--color-text-muted); }
  .contact__row > dd { display: grid; gap: 0.625rem; justify-items: start; min-width: 0; }
  .contact__phone {
    display: inline-flex; align-items: center; min-height: 48px;
    font-family: var(--font-display); font-weight: 620; font-size: clamp(2.125rem, 1.6rem + 2vw, 2.875rem);
    line-height: 1.05; text-decoration: none; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.01em;
  }
  .contact__phone:hover { text-decoration: underline; text-decoration-thickness: 2px; }
  .contact__mail { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.125rem; font-weight: 600; overflow-wrap: anywhere; }
  .contact__address { font-size: 1.125rem; font-weight: 500; line-height: 1.45; }
  .contact__route { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; }
  .contact__route .icon { width: 1.15rem; height: 1.15rem; }
  .contact__row .hours { width: 100%; max-width: 24rem; }
  .contact__row .hours > div:last-child { border-bottom: 0; }
  /* Etykieta obok wartości tylko wtedy, gdy sama karta jest dość szeroka (768 i 1440 tak, kolumna przy 1024 nie). */
  .contact__card { container-type: inline-size; }
  @container (min-width: 34rem) {
    .contact__row { grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1.25rem; align-items: baseline; }
  }
  @media (min-width: 1024px) {
    .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3rem, 6vw, 6.5rem); }
    .contact__lead { position: sticky; top: calc(var(--header-h) + 2.5rem); align-self: start; padding-top: 0.5rem; }
  }

  .b2b { margin-top: clamp(3rem, 2rem + 3vw, 5rem); padding-top: 1.5rem; border-top: 1px solid rgb(43 33 26 / 0.12); max-width: 64ch; color: var(--color-text-muted); }
  .b2b a { color: var(--crust); font-weight: 600; overflow-wrap: anywhere; }
}

/* ───────── Ikony social media (etap 10): okrągłe przyciski 44 px, znak marki w kolorze tekstu; hover = Masło + uniesienie.
   Wariant domyślny na ciemnym tle (stopka); .social--light na jasnym (menu, /kontakt/). ───────── */
@layer components {
  .social { display: flex; flex-wrap: wrap; gap: 0.625rem; list-style: none; padding: 0; margin: 0; }
  .social__link {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-width: 44px; min-height: 44px;
    border-radius: 999px; border: 1.5px solid rgb(255 253 249 / 0.4); color: var(--flour); text-decoration: none;
    transition: background-color var(--dur-base) ease, color var(--dur-base) ease, border-color var(--dur-base) ease, translate var(--dur-base) var(--ease-out);
  }
  .social__icon { width: 1.25rem; height: 1.25rem; flex: none; }
  .social__link:has(.social__name) { padding: 0 1rem 0 0.75rem; }
  .social__name { font-weight: 600; font-size: 0.9375rem; }
  .social__link:hover, .social__link:focus-visible { background: var(--butter); border-color: var(--butter); color: var(--crust); }
  @media (hover: hover) and (prefers-reduced-motion: no-preference) { .social__link:hover { translate: 0 -2px; } }
  .social--light .social__link { border-color: var(--field); color: var(--crust); }
  .social--light .social__link:hover, .social--light .social__link:focus-visible { background: var(--butter-soft); border-color: var(--butter); color: var(--crust); }
}

/* ───────── Stopka ───────── */
@layer sections {
  .site-footer {
    position: relative; margin-top: 14px;
    background: var(--crust); color: var(--flour);
    padding: clamp(3.5rem, 2.5rem + 4vw, 6rem) 0 calc(2rem + env(safe-area-inset-bottom));
  }
  .site-footer::before {
    content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 14px; background: var(--crust);
    -webkit-mask: radial-gradient(circle at 50% 100%, #000 13.5px, transparent 14px) 0 0 / 28px 14px repeat-x;
            mask: radial-gradient(circle at 50% 100%, #000 13.5px, transparent 14px) 0 0 / 28px 14px repeat-x;
  }
  .site-footer :focus-visible { outline-color: var(--color-focus-on-dark); }
  /* Układ: marka (z hasłem i profilami) · oferta · firma i informacje · kontakt. Telefon to największy element stopki. */
  .site-footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
  .site-footer__brand, .site-footer__contact { grid-column: 1 / -1; }
  .site-footer__logo { display: inline-block; border-radius: 6px; }
  .site-footer__logo img { width: 208px; }
  .site-footer__tagline { margin-top: 1.125rem; max-width: 24ch; font-family: var(--font-display); font-weight: 560; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); line-height: 1.25; color: var(--flour); }
  .site-footer h2 { font-family: var(--font-body); font-size: var(--fs-small); font-weight: 600; letter-spacing: 0; color: rgb(245 238 227 / 0.72); margin-bottom: 0.5rem; }
  .site-footer ul { list-style: none; padding: 0; }
  .site-footer a { text-decoration-color: rgb(255 253 249 / 0.38); text-underline-offset: 0.28em; }
  .site-footer a:hover { text-decoration-color: var(--butter); text-decoration-thickness: 2px; }
  .site-footer__col li a, .site-footer__contact p a { display: inline-flex; align-items: center; min-height: 44px; }
  .site-footer__col li a { text-decoration: none; }
  .site-footer__col li a:hover { text-decoration: underline; text-decoration-color: var(--butter); text-decoration-thickness: 2px; }
  .site-footer__social { margin-top: 1.25rem; }
  .site-footer__phone {
    font-family: var(--font-display); font-weight: 620; font-size: clamp(1.875rem, 1.6rem + 1vw, 2.25rem); line-height: 1.1;
    font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.01em; text-decoration: none;
  }
  .site-footer__contact address { margin-top: 0.5rem; line-height: 1.55; color: var(--dough); }
  .site-footer__hours { display: grid; gap: 0.125rem; margin-top: 0.875rem; font-variant-numeric: tabular-nums; color: var(--dough); }
  .site-footer__hours > div { display: flex; gap: 0.5rem; }
  .site-footer__hours dt { min-width: 4.75rem; }
  .site-footer__hours dd { font-weight: 500; color: var(--flour); }
  .hours dd { white-space: nowrap; }
  /* Dolny wiersz (etap 10): jeden podpis marki + dyskretna informacja o projekcie. Dane formalne: /kontakt/#dane-firmy. */
  .site-footer__legal {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem;
    margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); padding-top: 1.5rem;
    border-top: 1px solid rgb(255 253 249 / 0.16); font-size: var(--fs-small); line-height: 1.5; color: var(--dough);
  }
  .site-footer__sign { font-family: var(--font-display); font-weight: 560; font-size: 1.125rem; color: var(--flour); }
  .site-footer__heart { display: inline-block; margin-inline: 0.2em; color: var(--blush); }
  .site-footer__info ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; list-style: none; padding: 0; }
  .site-footer__info a { display: inline-flex; align-items: center; min-height: 44px; text-decoration-color: rgb(255 253 249 / 0.3); }
  .site-footer__credit { display: inline-flex; align-items: center; gap: 0.3em; color: rgb(245 238 227 / 0.72); }
  @media (min-width: 768px) {
    .site-footer__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 3rem 2rem; }
    .site-footer__brand { grid-column: 1; grid-row: 1 / span 2; }
    .site-footer__contact { grid-column: 2 / -1; }
  }
  @media (min-width: 1024px) {
    .site-footer__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 1.1fr) minmax(0, 1.2fr); gap: 3rem; }
    .site-footer__brand { grid-row: auto; }
    .site-footer__contact { grid-column: auto; }
  }
}

/* Przejścia między podstronami (MPA): przeglądarki z obsługą cross-document view transitions robią krótkie przenikanie;
   pozostałe — zwykła nawigacja. Przy ograniczeniu ruchu wyłączone. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 220ms; }
}

/* Falbanki (Malina, Kontakt, stopka) przesuwają się o kilka „ząbków” w rytm przewijania całej strony — ledwie zauważalnie. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    @keyframes scallop-drift { to { -webkit-mask-position: 224px 0; mask-position: 224px 0; } }
    .site-footer::before, .signature__flood::before, .signature::before, .contact::before { animation: scallop-drift linear both; animation-timeline: scroll(root); }
  }
}

@layer utilities {
  @media print {
    .site-header, .actionbar, .menu-sheet { display: none !important; }
    body { padding-top: 0; }
  }
}

/* ───────── Cena produktu (makro `price` w macros.njk; dane: src/_lib/price.js) — wspólna dla katalogów, HOME i /zamow/.
   Widoczna, ale spokojna: kwota krojem nagłówków, jednostka i cena jednostkowa drobniej. To karta menu, nie etykieta sklepu. ───────── */
@layer components {
  .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.125rem 0.75rem; line-height: 1.25; font-variant-numeric: lining-nums tabular-nums; }
  .price__main { white-space: nowrap; }
  .price__amount { font-family: var(--font-display); font-weight: 620; font-size: 1.3125rem; letter-spacing: -0.005em; }
  .price__unit { font-size: var(--fs-small); font-weight: 500; color: var(--color-text-muted); }
  .price__per { font-size: 0.8125rem; color: var(--color-text-muted); white-space: nowrap; }
  /* Cena jeszcze niepotwierdzona: neutralna plakietka zamiast kwoty (nigdy zgadywana liczba). */
  .price__tbc {
    display: inline-flex; align-items: center; min-height: 1.75rem; padding: 0.125rem 0.75rem;
    border: 1px dashed var(--field); border-radius: var(--chip-radius);
    font-size: 0.875rem; font-weight: 600; line-height: 1.3; color: var(--color-text-muted);
  }
}

/* ───────── Skład i alergeny (etap 11; makro `facts` w macros.njk, dane: src/_lib/product-facts.js) — wspólne dla katalogów i /zamow/.
   Dyskretnie: zwinięty panel wygląda jak spokojny link z chevronem (bez ikon ostrzegawczych i czerwieni), pole dotyku 44 px.
   Po rozwinięciu: tekst w kolorze treści, alergeny pogrubione, linia po lewej łączy panel z produktem. Kolor dziedziczony —
   ten sam komponent działa na jasnym tle, w Malinie (Firmowe) i na ciemnym tle oferty świątecznej. ───────── */
@layer components {
  .facts { align-self: stretch; font-size: var(--fs-small); line-height: 1.5; }
  .facts__summary {
    display: inline-flex; align-items: center; gap: 0.375rem; min-height: 44px; cursor: pointer;
    list-style: none; font-weight: 600;
  }
  .facts__summary::-webkit-details-marker { display: none; }
  .facts__summary-text {
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em;
    text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  }
  .facts__summary:hover .facts__summary-text { text-decoration-color: currentColor; }
  /* Chevron: bez JS — według [open]; z JS (main.js → initFacts) — według data-facts-state, więc przy zamykaniu obraca się od razu,
     razem ze zwijaniem treści (atrybut `open` znika dopiero po animacji). Czas i krzywa jak rozwijanie panelu. */
  .facts__chevron {
    width: 1rem; height: 1rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    transition: rotate var(--facts-dur, 320ms) var(--ease-out);
  }
  .facts[open]:not([data-facts-state]) .facts__chevron,
  .facts[data-facts-state="opening"] .facts__chevron, .facts[data-facts-state="open"] .facts__chevron { rotate: 180deg; }
  /* .facts__panel = animowana warstwa (wysokość od rzeczywistej wysokości treści, WAAPI w main.js). flow-root: marginesy treści
     liczą się do wysokości panelu zawsze tak samo — koniec animacji nie przeskakuje o margines. Overflow tylko na czas ruchu. */
  .facts__panel { display: flow-root; }
  .facts[data-facts-state="opening"] .facts__panel, .facts[data-facts-state="closing"] .facts__panel { overflow: hidden; }
  .facts__body {
    display: grid; gap: 0.375rem; max-width: 62ch; margin: 0.125rem 0 0.5rem;
    padding: 0.125rem 0 0.125rem 0.875rem; border-left: 2px solid var(--color-border-decor);
  }
  .facts__label { font-weight: 600; }
  .facts__row strong { font-weight: 700; }
  .facts__row--quiet { color: var(--color-text-muted); }
  /* Na kolorze (Firmowe w Malinie) i na ciemnym tle (oferta świąteczna): linia i tekst dodatkowy w kolorze tekstu sekcji. */
  .facts--on-color .facts__body, .facts--on-dark .facts__body { border-left-color: color-mix(in srgb, currentColor 35%, transparent); }
  .facts--on-color .facts__row--quiet, .facts--on-dark .facts__row--quiet { color: inherit; }
  /* Etap 16: adnotacja propozycji roboczej — tylko na stronie testowej (staging). */
  /* Konfigurator: wiersz jest ciasny — mniejszy odstęp nad panelem. */
  .facts--compact .facts__summary { min-height: 40px; }
  @media (prefers-reduced-motion: reduce) { .facts__chevron { transition: none; } }
}

/* ───────── Animacje wejścia (etap 10) — jeden system dla całej strony; cele i logika: main.js (REVEAL, initReveal).
   Atrybut [data-reveal] dostają WYŁĄCZNIE elementy, które w chwili startu skryptu są poniżej ekranu (bez JS i przy ograniczeniu
   ruchu nic nie jest ukrywane). Przenikanie + 18 px w pionie, 420 ms; zdjęcie w karcie dochodzi do skali 1 (bardzo delikatnie).
   Poza warstwami (@layer) — nadpisuje przejścia komponentów tylko na czas wejścia; po animacji main.js zdejmuje atrybut. ───────── */
[data-reveal] {
  transition: opacity 420ms var(--ease-out), translate 480ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal]:not(.is-in) { opacity: 0; translate: 0 18px; }
[data-reveal] :is(.card__media, .feature__media, .season-card__media, .ab-door__media, .ab-taste__media) img { transition: scale 900ms var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
[data-reveal]:not(.is-in) :is(.card__media, .feature__media, .season-card__media, .ab-door__media, .ab-taste__media) img { scale: 1.045; }
@media print { [data-reveal] { opacity: 1 !important; translate: none !important; } }

/* Cel kotwicy po płynnym przejściu (pushState nie zmienia :target) — to samo podświetlenie co :target. */
.season-card.is-target .season-card__media { outline: 3px solid var(--butter); outline-offset: 4px; }

/* ───────── Baner zgody na analitykę (etap 15) — markup: base.njk [data-consent], logika: analytics.js.
   Nie modalny (nie blokuje strony, nie zabiera fokusu), dwa RÓWNORZĘDNE przyciski (ten sam styl dla zgody i odmowy).
   Ciemna karta jak stopka — odróżnia się od treści; nad paskiem akcji i nagłówkiem. ───────── */
@layer components {
  .consent {
    position: fixed; z-index: 40;
    inset: auto 0.75rem calc(0.75rem + env(safe-area-inset-bottom)) 0.75rem;
    max-width: 34rem; margin-inline: auto;
    padding: 1.125rem 1.25rem 1.25rem;
    border-radius: 12px; background: var(--crust); color: var(--flour);
    box-shadow: 0 10px 30px rgb(26 20 15 / 0.28);
  }
  .consent[hidden] { display: none; }
  .consent__title { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; line-height: 1.3; margin: 0 0 0.375rem; }
  .consent__text { font-size: var(--fs-small); line-height: 1.5; margin: 0; color: var(--dough); }
  .consent__text a { color: var(--flour); }
  .consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; margin-top: 1rem; }
  .consent__actions .btn { width: 100%; padding-inline: 0.75rem; }
  @media (min-width: 768px) {
    .consent { inset-inline: auto 1.5rem; bottom: 1.5rem; }
  }
  /* Przycisk w stopce wygląda jak sąsiednie linki (pokazywany dopiero z JS). */
  .site-footer__info .linklike {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none;
    color: inherit; font: inherit; text-decoration: underline; text-decoration-color: rgb(255 253 249 / 0.3); cursor: pointer;
  }
}

/* Etap 16: strona błędu 404 (Apache ErrorDocument) — ten sam język co reszta: Fraunces, Malina, przyciski marki. */
@layer components {
  .not-found { display: grid; gap: 1.25rem; justify-items: start; padding-block: clamp(3.5rem, 2rem + 8vw, 8rem); }
  .not-found__code { font-family: var(--font-display); font-size: clamp(4.5rem, 3rem + 8vw, 9rem); font-weight: 650; line-height: 0.9; color: var(--raspberry); }
  .not-found__title { font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem); font-weight: 620; line-height: 1.05; max-width: 18ch; }
  .not-found__lead { font-size: var(--fs-lead); line-height: 1.5; max-width: 40ch; color: var(--color-text-muted); }
  .not-found__links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
  .not-found__more { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: center; }
}
