/*
 * Homepage sections (front-page.php, template-parts/home/*.php). Mobile first, desktop from 1000px.
 * Colours are theme.json presets through --nz-* and --wp--preset--color--*; the only raw values are
 * the hero texture stops, which exist only on the canvas and are not part of the palette.
 */

/* ---------- Shared: big serif headings ---------- */
/* A long word ("przypadkowych", "pielęgnacja") in a 44-88px heading is wider than a 320px viewport
   (400% zoom), with larger text or once letter spacing grows (WCAG 1.4.4, 1.4.10, 1.4.12): it breaks
   instead of widening the page. "anywhere" (not break-word) also lowers the min-content width, so a
   grid or flex item (post cards) does not keep its column wider than the screen. */
.nz-main :is(h1, h2, h3) { overflow-wrap: anywhere; }
.nz-main .nz-card { grid-template-columns: minmax(0, 1fr); }

/* ---------- Shared: section heads ---------- */
.nz-home-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 32px; }
.nz-home-head__title { margin: 0; font-size: var(--wp--preset--font-size--heading-2); line-height: 1; letter-spacing: -0.01em; }
.nz-home-head .nz-eyebrow { margin-bottom: 14px; }
.nz-home-head .nz-link { white-space: nowrap; }

/* ---------- Shared: tabs (featured products, ingredients) ---------- */
.nz-tabs { display: flex; gap: 26px; margin: 0; overflow-x: auto; scrollbar-width: none; white-space: nowrap; border-bottom: 1px solid var(--nz-line); }
.nz-tabs::-webkit-scrollbar { display: none; }
.nz-tabs--wrap { flex-wrap: wrap; gap: 8px 28px; overflow: visible; white-space: normal; }
.nz-tabs__tab { flex: none; display: inline-flex; align-items: flex-end; min-height: 44px; margin: 0 0 -1px; padding: 0 0 14px; border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; font-size: 1.0625rem; font-weight: 500; color: var(--nz-muted); cursor: pointer; }
.nz-tabs--wrap .nz-tabs__tab { font-size: 1rem; padding-bottom: 12px; }
.nz-tabs__tab:hover { color: var(--nz-text); }
.nz-tabs__tab[aria-selected="true"] { font-weight: 700; color: var(--nz-text); border-bottom-color: var(--nz-text); }
@media (min-width: 1000px) {
  .nz-tabs { gap: 36px; }
  .nz-tabs--wrap { gap: 8px 28px; }
}
/* Phones: the row of tabs is cut at the screen edge ("Skóra wrażliw"), so its end fades out and the
   last tab can scroll clear of the fade. */
@media (max-width: 999px) {
  .nz-tabs:not(.nz-tabs--wrap) { padding-right: 40px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
}

/* ---------- Shared: scroll-snap carousel ---------- */
.nz-carousel { position: relative; }
.nz-carousel[hidden] { display: none; }
ul.products.nz-carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none; gap: 16px; margin: 0; padding: 0 0 4px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
ul.products.nz-carousel__track::-webkit-scrollbar { display: none; }
ul.products.nz-carousel__track > li { scroll-snap-align: start; width: auto; min-width: 0; margin: 0; float: none; }
.nz-carousel__more-item { display: grid; }
.nz-carousel__more { display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 32px; background: var(--nz-bg-linen); border-radius: var(--nz-radius); color: var(--nz-text); transition: background-color 150ms; }
.nz-carousel__more:hover { background: var(--wp--preset--color--peach-2); color: var(--nz-text); }
.nz-carousel__more-label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--nz-accent-dark); }
.nz-carousel__more-title { font-family: var(--nz-serif); font-size: 1.875rem; line-height: 1.05; text-wrap: balance; }
.nz-carousel__more-arrow { font-size: 1.375rem; line-height: 1; }
.nz-carousel__arrows { display: flex; gap: 8px; }
@media (max-width: 999px) {
  .nz-carousel__arrows { display: none; }
}
.nz-carousel__arrow { width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--nz-text); border-radius: var(--nz-radius); background: none; color: var(--nz-text); font-size: 1.25rem; line-height: 1; cursor: pointer; transition: background-color 150ms, color 150ms, opacity 150ms; }
.nz-carousel__arrow:hover { background: var(--nz-text); color: var(--nz-bg-light); }
.nz-carousel__arrow[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.nz-carousel__arrow[aria-disabled="true"]:hover { background: none; color: var(--nz-text); }
@media (min-width: 1000px) {
  /* Four cards in the container, but no wider than the window height allows: the square photo, the
     card text, the section head and its padding fit on one screen (1536x730 laptop: about five cards
     in view, the last one peeks in as a hint that the row scrolls). */
  ul.products.nz-carousel__track { grid-auto-columns: min(calc((100% - 72px) / 4), max(240px, 100svh - 2 * var(--nz-section) - 440px)); gap: 24px; }
}

/* ---------- Looping satin video behind a section's copy (<nz-bg-video>, bg-video.js) ---------- */
/* A box that fills its positioned parent. The first frame (an image) is there from the start; the
   video lies over it, transparent until it plays (class is-playing), then fades in: the frames
   match, so the swap does not show. The section's own colour shows under the image, and the
   section decides where the box sits in the stack (z-index in the rules below). */
.nz-bg-video { position: absolute; inset: 0; display: block; overflow: hidden; pointer-events: none; }
.nz-bg-video__poster,
.nz-bg-video video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.nz-bg-video video { opacity: 0; transition: opacity 600ms ease; }
.nz-bg-video.is-playing video { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .nz-bg-video video { transition: none; }
}

/* ---------- 1. Hero ---------- */
/* The beige satin is darker than the old texture: a light veil over it keeps the small terracotta
   eyebrow above 4.5:1 (checked on the darkest 1% of the frames: 4.9:1 with this veil, 3.4:1 without). */
.nz-hero { --nz-hero-veil: rgb(248 242 234 / 0.45); display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; overflow: hidden; background: var(--nz-bg); }
.nz-hero__content { position: relative; z-index: 2; max-width: none; padding: 28px var(--nz-gutter) 40px; background: var(--wp--preset--color--peach-4); }
.nz-hero__bg::after { content: ""; position: absolute; inset: 0; background: var(--nz-hero-veil); }
.nz-hero__inner { position: relative; display: flex; flex-direction: column; gap: 14px; }
.nz-hero__inner .nz-eyebrow { margin: 0; font-size: 0.8125rem; }
.nz-hero__lead { margin: 0; max-width: 28em; color: var(--nz-text-2); line-height: 1.55; }
.nz-hero__actions { display: flex; flex-direction: column; align-items: stretch; gap: 16px; margin-top: 6px; text-align: center; }
.nz-hero__actions .nz-link { align-self: center; }
/* Below 1000px the photo sits on top, 4:3 and at most half the screen high, so the title and the
   button stay on the first screen (375x812: the button ends near 790px instead of starting at
   1000px). The crop keeps the upper part of the 4:5 portrait, where the face is. */
.nz-hero__media { position: relative; z-index: 1; order: -1; aspect-ratio: 4 / 3; max-height: 50svh; overflow: hidden; background: var(--wp--preset--color--peach); }
.nz-hero__media picture, .nz-hero__media img { display: block; width: 100%; height: 100%; }
.nz-hero__media img { object-fit: cover; object-position: 50% 25%; }
@media (min-width: 1000px) {
  /* min-height, not height: with a larger default font size, text-only zoom or the text spacing
     override the copy grows taller than the band, and a fixed height would clip it (overflow: hidden).
     The band follows the viewport height: the whole hero fits under the header (top bar and header,
     --nz-hero-chrome) and the next section peeks in by --nz-hero-peek. Not --nz-header-offset: it
     changes while scrolling and the band would jump. Padding, gaps and the title shrink on short
     screens so the copy fits the band. */
  .nz-hero { --nz-hero-chrome: 128px; --nz-hero-peek: 72px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(480px, calc(100svh - var(--nz-hero-chrome) - var(--nz-hero-peek)), 880px); }
  .nz-hero__content { padding: clamp(32px, 5.5svh, 56px) clamp(48px, 5vw, 96px) clamp(32px, 5.5svh, 56px) max(48px, calc((100vw - var(--nz-container)) / 2 + 48px)); }
  .nz-hero__inner { max-width: 580px; gap: clamp(16px, 2.8svh, 26px); }
  .nz-hero__title { font-size: min(var(--wp--preset--font-size--heading-1), 8.5svh); }
  .nz-hero__inner .nz-eyebrow { font-size: 0.875rem; }
  .nz-hero__lead { line-height: 1.6; }
  .nz-hero__actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 8px; text-align: left; }
  .nz-hero__actions .nz-link { align-self: auto; }
  .nz-hero__media { order: 0; aspect-ratio: auto; height: 100%; max-height: none; }
  .nz-hero__media img { object-position: 50% 50%; }
  /* The photo fills the column without adding height of its own: the band is as tall as its copy needs. */
  .nz-hero__media picture { position: absolute; inset: 0; }
}

/* ---------- 2. Needs (checkerboard) ---------- */
.nz-needs { background: var(--nz-bg-light); }
.nz-needs__head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px 48px; align-items: end; padding-top: var(--nz-section); padding-bottom: 40px; }
.nz-needs__head .nz-eyebrow { margin-bottom: 14px; }
.nz-needs__text { margin: 0; max-width: 30em; color: var(--wp--preset--color--text-3); }
.nz-needs__grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.nz-needs__image { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--wp--preset--color--peach); }
.nz-needs__image--peach-3 { background: var(--wp--preset--color--peach-3); }
.nz-needs__image--peach-4 { background: var(--wp--preset--color--peach-4); }
.nz-needs__image img { width: 100%; height: 100%; object-fit: cover; }
.nz-needs__tile { --nz-tile-bg: var(--nz-bg-light); --nz-tile-fg: var(--nz-text); --nz-tile-no: var(--nz-accent-dark); display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 32px var(--nz-gutter) 40px; background: var(--nz-tile-bg); color: var(--nz-tile-fg); }
.nz-needs__tile--terracotta { --nz-tile-bg: var(--nz-accent); --nz-tile-fg: var(--nz-bg-light); --nz-tile-no: var(--nz-bg-light); } /* light instead of peach-pale: 4.38:1 was below AA */
.nz-needs__tile--peach-light { --nz-tile-bg: var(--wp--preset--color--peach-light); }
.nz-needs__tile--sage-light { --nz-tile-bg: var(--wp--preset--color--sage-light); --nz-tile-no: var(--wp--preset--color--green); }
a.nz-needs__tile:hover { color: var(--nz-tile-fg); filter: brightness(0.98); }
.nz-needs__no { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.1em; color: var(--nz-tile-no); font-variant-numeric: tabular-nums; }
.nz-needs__title { margin: 0; font-size: 2rem; line-height: 1.05; color: inherit; }
.nz-needs__desc { margin: 0; font-size: 1.0625rem; line-height: 1.5; max-width: 22em; }
.nz-needs__cta { display: flex; align-items: center; gap: 14px; margin-top: 10px; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.nz-needs__cta::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.nz-needs__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; padding: 28px 0 36px; font-size: 1.0625rem; }
/* Below 1000px: one row that scrolls sideways, a column per need (photo over its tile; the grid
   flows by column, two rows), the next one peeking in. */
@media (max-width: 999px) {
  .nz-needs__grid { grid-auto-flow: column; grid-template-columns: none; grid-template-rows: auto 1fr; grid-auto-columns: min(78%, 340px); column-gap: 12px; padding-inline: var(--nz-gutter); scroll-padding-inline: var(--nz-gutter); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
  .nz-needs__grid::-webkit-scrollbar { display: none; }
  .nz-needs__image { scroll-snap-align: start; }
  .nz-needs__tile { justify-content: flex-start; gap: 8px; padding: 22px 20px 26px; }
  .nz-needs__title { font-size: 1.625rem; }
  .nz-needs__desc { font-size: 1rem; }
}
.nz-needs__foot-text { margin: 0; color: var(--wp--preset--color--text-3); }
.nz-needs__foot .nz-link { font-size: inherit; padding-bottom: 2px; }
@media (min-width: 1000px) {
  .nz-needs__head { padding-bottom: clamp(24px, 4svh, 56px); }
  .nz-needs__text { justify-self: end; }
  /* Two rows plus the head and the foot fit on one screen; a row grows when its text needs more room. */
  .nz-needs__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(clamp(220px, min(25vw, 50svh - 190px), 420px), auto); }
  /* The photo fills its cell without adding height of its own: the row is as tall as the text tile needs. */
  .nz-needs__image { aspect-ratio: auto; height: 100%; }
  .nz-needs__image img { position: absolute; inset: 0; }
  .nz-needs__tile { padding: clamp(20px, min(3.4vw, 3svh), 56px) clamp(24px, 3vw, 56px); gap: clamp(6px, 1.2svh, 12px); }
  .nz-needs__title { font-size: clamp(26px, min(2.5vw, 3.6svh), 40px); }
  .nz-needs__desc { font-size: 1rem; }
  .nz-needs__cta { margin-top: clamp(4px, 1.4svh, 14px); }
  .nz-needs__foot { padding: 20px 0 24px; }
  /* Row 2 of the checkerboard swaps photo and text: DOM order stays photo, text per need. */
  .nz-needs__grid > :nth-child(5) { grid-area: 2 / 2; }
  .nz-needs__grid > :nth-child(6) { grid-area: 2 / 1; }
  .nz-needs__grid > :nth-child(7) { grid-area: 2 / 4; }
  .nz-needs__grid > :nth-child(8) { grid-area: 2 / 3; }
}

/* ---------- 3. MenoBalans ---------- */
.nz-meno { background: var(--nz-bg-linen); }
.nz-meno__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.nz-meno__media { position: relative; aspect-ratio: 5 / 6; background: var(--wp--preset--color--peach-3); border-radius: var(--nz-radius); }
.nz-meno__img { position: absolute; inset: 0; overflow: hidden; border-radius: var(--nz-radius); }
.nz-meno__img img { width: 100%; height: 100%; object-fit: cover; }
.nz-meno__spot { position: absolute; left: var(--x, 50%); top: var(--y, 50%); transform: translate(-50%, -50%); z-index: 2; }
.nz-meno__spot.is-active { z-index: 5; }
.nz-meno__spot-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--nz-text); border-radius: var(--nz-radius); background: var(--nz-bg-light); color: var(--nz-text); font-family: var(--nz-serif); font-size: 1.375rem; line-height: 1; cursor: pointer; box-shadow: 0 0 0 6px rgba(251, 247, 242, 0.45); transition: background-color 150ms, color 150ms; }
.nz-meno__spot-btn[aria-pressed="true"] { background: var(--nz-text); color: var(--nz-bg-light); }
.nz-meno__tip { display: none; position: absolute; top: 56px; left: var(--nz-tip-x, -150px); width: 300px; flex-direction: column; gap: 6px; padding: 18px 20px; background: var(--nz-bg-light); border: 1px solid var(--nz-line-linen); border-radius: var(--nz-radius); box-shadow: var(--wp--custom--shadow--tooltip); text-align: left; }
.nz-meno__spot--left { --nz-tip-x: -22px; }
.nz-meno__spot--center { --nz-tip-x: -150px; }
.nz-meno__spot--right { --nz-tip-x: -278px; }
.nz-meno__tip-body { display: flex; flex-direction: column; gap: 6px; }
.nz-meno__tip-step { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--nz-accent-dark); }
.nz-meno__tip-name { font-family: var(--nz-serif); font-size: 1.5rem; line-height: 1.1; color: var(--nz-text); }
.nz-meno__tip-text { font-size: 1rem; line-height: 1.5; color: var(--wp--preset--color--text-3); }
.nz-meno__tip-link { align-self: flex-start; margin-top: 8px; }
/* Phone: all step boxes share one grid cell, so the wrapper is as tall as the tallest box and
   switching steps does not move anything below it (CLS). Inactive boxes stay laid out but
   visibility:hidden keeps them out of the accessibility tree and the tab order. */
.nz-meno__panels { display: grid; margin-top: -16px; }
.nz-meno__panel { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: var(--nz-bg-light); border: 1px solid var(--nz-line-linen); border-radius: var(--nz-radius); }
.nz-meno__panel[hidden] { display: flex; visibility: hidden; }
.nz-meno__content { display: flex; flex-direction: column; gap: 20px; max-width: 600px; }
.nz-meno__content .nz-eyebrow { margin: 0; }
.nz-meno__title { margin: 0; font-size: clamp(40px, min(5.4vw, 9svh), 80px); line-height: 0.98; letter-spacing: -0.01em; }
.nz-meno__subtitle { display: block; margin-top: 10px; font-style: italic; font-size: 0.5em; line-height: 1.2; color: var(--nz-accent-dark); }
.nz-meno__text { margin: 0; max-width: 30em; font-size: var(--wp--preset--font-size--lead); color: var(--nz-text-2); }
.nz-meno__steps { margin: 10px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--nz-line-linen); }
.nz-meno__step { border-bottom: 1px solid var(--nz-line-linen); }
.nz-meno__step-btn { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: baseline; width: 100%; padding: 18px 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.nz-meno__step-no { font-family: var(--nz-serif); font-size: 1.625rem; line-height: 1; color: var(--wp--preset--color--label-muted); /* step-muted was 2.06:1 on linen */ transition: color 150ms; }
.nz-meno__step[aria-current] .nz-meno__step-no { color: var(--nz-accent); }
.nz-meno__step-body { display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
.nz-meno__step-label { overflow-wrap: anywhere; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp--preset--color--label-muted); }
.nz-meno__step-name { font-size: 1.1875rem; font-weight: 600; color: var(--nz-text); }
/* The link to the step's product sits under the name (56px number column plus 16px gap = 72px). */
.nz-meno__step-link { display: inline-block; margin: -8px 0 12px 72px; padding-block: 10px; font-size: 0.9375rem; }
.nz-meno__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 12px; }
.nz-meno__price { font-family: var(--nz-sans); font-size: 2rem; font-weight: 600; line-height: 1; }
.nz-meno__price del { font-size: 0.5em; font-weight: 400; color: var(--nz-muted); margin-right: 0.5em; }
.nz-meno__price ins { text-decoration: none; }
.nz-meno__buy .added_to_cart { font-weight: 700; font-size: 1.0625rem; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
@media (min-width: 1000px) {
  .nz-meno__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  /* The photo keeps its 5:6 ratio (the hotspots sit on it in percent) and gets narrower when the
     window is too short for its full height. */
  .nz-meno__media { width: min(100%, (100svh - 2 * var(--nz-section)) * 5 / 6); justify-self: start; }
  .nz-meno__content { gap: clamp(12px, 2.2svh, 20px); }
  .nz-meno__step-btn { padding-block: clamp(10px, 1.8svh, 18px); }
  .nz-meno__spot.is-active .nz-meno__tip { display: flex; }
  .nz-meno__panels { display: none; }
}

/* ---------- 4. Featured products ---------- */
.nz-featured { background: var(--nz-bg-light); }
.nz-featured .nz-tabs { margin: 40px 0 36px; }
@media (min-width: 1000px) {
  .nz-featured .nz-tabs { margin: clamp(20px, 4svh, 40px) 0 clamp(20px, 3.5svh, 36px); }
}

/* ---------- 4b. Zdrowie 40+ (one product of the health category) ---------- */
/* Like "Składnik pod lupą": no section padding, the photo fills the full height of the band and
   touches the left edge of the screen; the text column keeps the padding. */
.nz-health { padding-block: 0; background: var(--nz-bg-linen); }
.nz-health__inner { display: grid; grid-template-columns: minmax(0, 1fr); }
.nz-health__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--wp--preset--color--peach-3); }
.nz-health__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nz-health__content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 36px var(--nz-gutter) 44px; }
.nz-health__title { margin-bottom: clamp(20px, 3vw, 32px); }
.nz-health__name { margin: 0 0 14px; font-family: var(--nz-serif); font-size: var(--wp--preset--font-size--heading-3, 1.75rem); font-weight: 500; line-height: 1.15; text-wrap: balance; }
.nz-health__text { margin: 0 0 clamp(24px, 3vw, 36px); max-width: 52ch; font-size: 1.0625rem; line-height: 1.6; color: var(--nz-muted); }
.nz-health__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
@media (max-width: 999px) {
  .nz-health__actions { flex-direction: column; align-items: stretch; width: 100%; gap: 20px; }
  .nz-health__actions .nz-link { align-self: flex-start; }
}
@media (min-width: 1000px) {
  .nz-health__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(380px, min(34vw, 100svh - 160px), 520px); }
  /* Photo out of flow (like the ingredients band): its intrinsic ratio must not stretch the row,
     so the band height comes only from the min-height clamp above. */
  .nz-health__media { position: relative; aspect-ratio: auto; }
  .nz-health__img { position: absolute; inset: 0; }
  .nz-health__content { padding: clamp(40px, 7svh, 72px) max(48px, calc((100vw - var(--nz-container)) / 2 + 48px)) clamp(40px, 7svh, 72px) clamp(48px, 6vw, 96px); }
}

/* ---------- 5. Features (deep green) ---------- */
.nz-features { position: relative; isolation: isolate; background: var(--wp--preset--color--green); color: var(--wp--preset--color--green-text); }
/* The green satin is the band colour (#3A4535) with a slow sheen: text and lines keep 5:1 or more on it. */
.nz-features__bg { z-index: -1; }
.nz-features__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); }
.nz-features__intro { display: flex; flex-direction: column; gap: 20px; }
.nz-features .nz-eyebrow { margin: 0; color: var(--wp--preset--color--green-eyebrow); }
.nz-features__title { margin: 0; font-size: clamp(34px, min(4.4vw, 7.5svh), 64px); line-height: 1.02; letter-spacing: -0.01em; color: var(--nz-bg-light); }
.nz-features__title em { font-style: italic; color: var(--wp--preset--color--peach-2); }
.nz-features__list { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--wp--preset--color--green-line); }
.nz-features__item { display: flex; flex-direction: column; gap: 10px; padding: 28px 28px 36px 0; border-bottom: 1px solid var(--wp--preset--color--green-line); }
.nz-features__no { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.1em; color: var(--wp--preset--color--green-eyebrow); }
.nz-features__item-title { margin: 0; font-size: 1.75rem; line-height: 1.1; color: var(--nz-bg-light); }
.nz-features__item-text { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--wp--preset--color--green-text); }
@media (min-width: 1000px) {
  .nz-features__inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); }
  .nz-features__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 6. Ingredients ---------- */
.nz-ingredients { background: var(--nz-bg); }
.nz-ingredients__inner { display: grid; grid-template-columns: minmax(0, 1fr); }
/* Phone: the photo box has its own ratio (it no longer depends on the tab that is open) and all
   figures sit in the same place; inactive ones stay laid out with visibility:hidden, so they keep
   lazy-loading near the viewport and switching tabs neither shifts the layout nor waits for an image. */
.nz-ingredients__media { position: relative; aspect-ratio: 1 / 1; background: var(--wp--preset--color--peach-deep); }
.nz-ingredients__figure { position: absolute; inset: 0; margin: 0; }
.nz-ingredients__figure[hidden] { display: block; visibility: hidden; }
.nz-ingredients__figure img { width: 100%; height: 100%; object-fit: cover; }
.nz-ingredients__content { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 44px var(--nz-gutter) 64px; }
.nz-ingredients__content .nz-eyebrow { margin: 0; }
/* All panels share one grid cell: the block is as tall as the tallest panel, tabs do not move the page. */
.nz-ingredients__panels { display: grid; }
.nz-ingredients__panel { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 22px; }
.nz-ingredients__panel[hidden] { display: flex; visibility: hidden; }
.nz-ingredients__title { margin: 6px 0 0; font-size: clamp(44px, min(5.6vw, 10svh), 88px); line-height: 0.95; letter-spacing: -0.01em; }
.nz-ingredients__desc { margin: 0; max-width: 30em; font-size: var(--wp--preset--font-size--lead); line-height: 1.6; color: var(--nz-text-2); }
.nz-ingredients__found { display: flex; flex-direction: column; gap: 10px; max-width: 34em; }
.nz-ingredients__found-label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--label-muted); }
/* Mini product card: the whole card is one link (thumbnail, name, price, note, "Zobacz produkt"). */
.nz-ingredients__product { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px; background: var(--nz-bg-light); border: 1px solid var(--nz-line); border-radius: var(--nz-radius); color: var(--nz-text); transition: border-color 150ms, box-shadow 150ms; }
.nz-ingredients__product:hover { border-color: var(--nz-text); box-shadow: var(--wp--custom--shadow--tooltip); }
.nz-ingredients__product:focus-visible { outline: var(--nz-focus); outline-offset: 3px; border-color: var(--nz-text); }
.nz-ingredients__product-thumb { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--nz-radius); background: var(--wp--preset--color--peach-deep); }
.nz-ingredients__product-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nz-ingredients__product-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nz-ingredients__product-name { font-size: 1.125rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.nz-ingredients__product-price { font-size: 1rem; font-weight: 600; }
.nz-ingredients__product-price del { margin-right: 0.4em; font-weight: 400; color: var(--nz-muted); }
.nz-ingredients__product-price ins { text-decoration: none; }
.nz-ingredients__product-note { font-size: 0.9375rem; line-height: 1.4; color: var(--nz-muted); }
.nz-ingredients__product-more { margin-top: 4px; font-size: 1.0625rem; font-weight: 700; color: var(--nz-accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.nz-ingredients__product-arrow { display: inline-block; text-decoration: none; transition: transform 150ms; }
.nz-ingredients__product:hover .nz-ingredients__product-arrow, .nz-ingredients__product:focus-visible .nz-ingredients__product-arrow { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) {
  .nz-ingredients__product, .nz-ingredients__product-arrow { transition: none; }
  .nz-ingredients__product:hover .nz-ingredients__product-arrow, .nz-ingredients__product:focus-visible .nz-ingredients__product-arrow { transform: none; }
}
.nz-ingredients__cta { align-self: flex-start; min-height: 48px; padding: 0 24px; }
@media (min-width: 1000px) {
  .nz-ingredients__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(480px, min(48vw, 100svh - 40px), 760px); }
  .nz-ingredients__media { aspect-ratio: auto; }
  .nz-ingredients__content { padding: clamp(40px, 7svh, 72px) max(48px, calc((100vw - var(--nz-container)) / 2 + 48px)) clamp(40px, 7svh, 72px) clamp(48px, 6vw, 96px); }
}

/* ---------- 7. Guide ---------- */
.nz-guide { background: var(--nz-bg-light); }
.nz-guide__head { padding-bottom: 28px; margin-bottom: 40px; border-bottom: 1px solid var(--nz-line); }
/* Below 1000px the three articles scroll sideways (they were 1900px stacked at 375px). */
@media (max-width: 999px) {
  .nz-guide__head { margin-bottom: 28px; }
  .nz-guide__grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(78%, 340px); gap: 16px; margin-inline: calc(-1 * var(--nz-gutter)); padding-inline: var(--nz-gutter); scroll-padding-inline: var(--nz-gutter); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
  .nz-guide__grid::-webkit-scrollbar { display: none; }
  .nz-guide__grid > * { scroll-snap-align: start; }
  .nz-guide .nz-card__media { aspect-ratio: 4 / 3; }
  .nz-guide .nz-card__title { font-size: 1.5rem; }
}
@media (min-width: 1000px) {
  .nz-guide__head { padding-bottom: clamp(16px, 2.5svh, 28px); margin-bottom: clamp(24px, 4svh, 40px); }
}

/* ---------- 8. Brands ---------- */
.nz-brands { background: var(--nz-bg); border-top: 1px solid var(--nz-line); border-bottom: 1px solid var(--nz-line); }
.nz-brands__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 40px; align-items: center; padding: 44px 0; }
.nz-brands__label { margin: 0; }
/* Below 1000px the label sits over the moving row: centred over it. */
@media (max-width: 999px) { .nz-brands__label { text-align: center; } }
/* Below 1000px: one row from edge to edge of the screen, scrolled by hand (no JS, reduced motion)
   or moving endlessly (<nz-marquee>, marquee.js: .is-running and copies of the list in the track).
   The edges fade, so names enter and leave softly. */
.nz-brands__viewport { min-width: 0; margin-inline: calc(-1 * var(--nz-gutter)); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-mask-image: linear-gradient(90deg, transparent, black var(--nz-gutter), black calc(100% - var(--nz-gutter)), transparent); mask-image: linear-gradient(90deg, transparent, black var(--nz-gutter), black calc(100% - var(--nz-gutter)), transparent); }
.nz-brands__viewport::-webkit-scrollbar { display: none; }
.nz-brands__track { display: flex; width: max-content; padding-inline: var(--nz-gutter); }
.nz-brands__list { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.nz-brands__item { display: grid; flex: none; border-left: 1px solid var(--nz-line); }
.nz-brands__link { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 72px; padding: 8px 28px; color: var(--wp--preset--color--text-3); text-align: center; }
.nz-brands__link:hover { color: var(--nz-text); }
.nz-brands__link:focus-visible { outline-offset: -3px; }
.nz-brands__name { font-family: var(--nz-serif); font-size: 1.5rem; line-height: 1.1; white-space: nowrap; }
.nz-brands__logo { max-height: 44px; width: auto; filter: grayscale(1) brightness(0.45); opacity: 0.85; transition: opacity 150ms, filter 150ms; }
.nz-brands__link:hover .nz-brands__logo { opacity: 1; filter: grayscale(1) brightness(0.25); }
/* Moving: the track shifts by one copy of the list and starts over (the copies make the seam
   invisible). The padding goes, or the seam would show it; hover and focus inside stop the row (no pause button). */
.nz-brands__inner.is-running .nz-brands__viewport { overflow: hidden; }
.nz-brands__inner.is-running .nz-brands__track { padding-inline: 0; animation: nz-marquee var(--nz-marquee-duration, 30s) linear infinite; }
.nz-brands__inner.is-running .nz-brands__viewport:hover .nz-brands__track,
.nz-brands__inner.is-running .nz-brands__viewport:focus-within .nz-brands__track { animation-play-state: paused; }
@keyframes nz-marquee { to { transform: translateX(calc(-1 * var(--nz-marquee-shift, 0px))); } }
@media (prefers-reduced-motion: reduce) {
  .nz-brands__inner.is-running .nz-brands__track { animation: none; }
}
@media (min-width: 1000px) {
  .nz-brands__inner { grid-template-columns: 200px minmax(0, 1fr); }
  .nz-brands__viewport { margin-inline: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .nz-brands__track { display: block; width: auto; padding-inline: 0; }
  .nz-brands__list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .nz-brands__link { padding-inline: 16px; }
  /* A long brand name breaks inside its column instead of widening the row. */
  .nz-brands__name { min-width: 0; white-space: normal; text-wrap: balance; overflow-wrap: anywhere; }
  /* Moving on desktop too: every brand keeps its natural width (no equal columns, no wrapping),
     the row runs under a soft fade at both ends. */
  .nz-brands__inner.is-running .nz-brands__viewport { -webkit-mask-image: linear-gradient(90deg, transparent, black 48px, black calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent, black 48px, black calc(100% - 48px), transparent); }
  .nz-brands__inner.is-running .nz-brands__track { display: flex; width: max-content; }
  .nz-brands__inner.is-running .nz-brands__list { display: flex; }
  .nz-brands__inner.is-running .nz-brands__link { padding-inline: 36px; }
  .nz-brands__inner.is-running .nz-brands__name { white-space: nowrap; }
}

/* ---------- 9. Newsletter ---------- */
.nz-newsletter { background: var(--wp--preset--color--sage); }
.nz-newsletter__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 32px 64px; align-items: center; padding-block: clamp(min(64px, 9svh), min(7vw, 10svh), 104px); }
.nz-newsletter__intro { display: flex; flex-direction: column; gap: 14px; }
.nz-newsletter .nz-eyebrow { margin: 0; color: var(--wp--preset--color--green); }
.nz-newsletter__title { margin: 0; font-size: clamp(32px, min(4vw, 7svh), 58px); line-height: 1.02; letter-spacing: -0.01em; }
.nz-newsletter__text { margin: 0; max-width: 30em; color: var(--nz-text-2); }
.nz-newsletter__box { display: block; }
.nz-newsletter__form { display: flex; position: relative; }
.nz-newsletter__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nz-newsletter__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nz-newsletter__input { flex: 1; min-width: 0; min-height: 60px; padding: 0 22px; border: 1px solid var(--nz-text); border-right: 0; border-radius: var(--nz-radius) 0 0 var(--nz-radius); background: var(--nz-bg-light); font: inherit; font-size: 1.125rem; color: var(--nz-text); }
.nz-newsletter__input::placeholder { color: var(--nz-muted); opacity: 1; }
.nz-newsletter__submit { min-height: 60px; padding: 0 18px; border: 0; border-radius: 0 var(--nz-radius) var(--nz-radius) 0; background: var(--nz-text); color: var(--nz-bg-light); font: inherit; font-size: 1.0625rem; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background-color 150ms; }
.nz-newsletter__submit:hover { background: var(--wp--preset--color--green); }
.nz-newsletter__submit[aria-disabled="true"] { opacity: 0.7; cursor: progress; }
.nz-newsletter__thanks:focus { outline: none; }
.nz-newsletter__thanks:focus-visible { outline: var(--nz-focus); outline-offset: 4px; }
.nz-newsletter__note { margin: 12px 0 0; font-size: 0.9375rem; color: var(--nz-text-2); }
.nz-newsletter__note a { text-decoration: underline; }
.nz-newsletter__thanks { margin: 0; font-family: var(--nz-serif); font-size: 1.75rem; line-height: 1.2; }
.nz-newsletter__error { margin: 0 0 12px; font-weight: 600; color: var(--nz-accent-dark); }
@media (min-width: 1000px) {
  .nz-newsletter__submit { padding: 0 32px; }
}
/* Phone: the field and the button one under the other, both full width (a row left the placeholder
   cut to "Twój adres e-"). */
@media (max-width: 599px) {
  .nz-newsletter__form { flex-direction: column; gap: 12px; }
  .nz-newsletter__input { border-right: 1px solid var(--nz-text); border-radius: var(--nz-radius); }
  .nz-newsletter__submit { width: 100%; border-radius: var(--nz-radius); }
}
