/* ==========================================================================
   RAFA — Wędzenie i Przetwórstwo Ryb · Władysławowo
   Design system: logo-matched deep sea navy + smoked amber gold on warm cream
   Hand-crafted CSS (no framework runtime) for fast paint on any device.
   ========================================================================== */

/* ---------- 1. Design tokens ---------------------------------------------- */
:root {
  /* Brand — pulled from the RAFA logo (royal navy letters + gold sun/wave) */
  --ink:          #0A1E2C; /* near-black navy — body text */
  --sea-900:      #051a2b;
  --sea-800:      #072536;
  --sea-700:      #0b3350;
  --sea-600:      #0c368e; /* logo royal blue — interactive accents on light */
  --sea-500:      #14508a;

  --gold-600:     #8f5c08; /* text-gold: must stay >=4.5:1 on --cream AND --cream-100 */
  --gold-500:     #f2a900; /* primary amber — CTAs, fills */
  --gold-400:     #ffc24b; /* light gold — glows, highlights */
  --gold-300:     #ffd98a;

  --ember:        #d8551f; /* warm smoked-ember accent (sparingly) */
  --brand-red:    #d82327; /* logo ® red — micro accents only */

  /* Warm neutrals */
  --cream:        #faf5ea; /* page background — warm, appetizing */
  --cream-50:     #fffdf8;
  --cream-100:    #f4ecdb;
  --sand-200:     #e9dec6;
  --line:         #e6dcc7; /* warm hairline */
  --line-strong:  #d8cbaf;

  --white:        #ffffff;
  --muted:        #5c6b76; /* secondary text on light — passes AA on cream */
  --muted-dark:   #9fb2c2; /* secondary text on dark */

  /* Semantic */
  --bg:           var(--cream);
  --surface:      var(--cream-50);
  --text:         var(--ink);
  --text-soft:    var(--muted);
  --accent:       var(--gold-500);
  --accent-ink:   #2b1b02; /* text that sits on gold */
  --focus:        #1c74d6;

  /* Typography */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Fluid type scale (clamp: min, preferred, max) */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.5rem);
  --step-2:  clamp(1.45rem, 1.3rem + 0.75vw, 2rem);
  --step-3:  clamp(1.8rem, 1.5rem + 1.5vw, 2.75rem);
  --step-4:  clamp(2.2rem, 1.7rem + 2.5vw, 3.75rem);
  --step-5:  clamp(2.7rem, 1.9rem + 4vw, 5rem);

  /* Spacing scale (8pt rhythm) */
  --space-2xs: 0.5rem;
  --space-xs:  0.75rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Radii, shadows, motion */
  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm:  0 1px 2px rgba(10, 30, 44, 0.06), 0 2px 6px rgba(10, 30, 44, 0.05);
  --shadow-md:  0 6px 18px rgba(10, 30, 44, 0.08), 0 2px 6px rgba(10, 30, 44, 0.05);
  --shadow-lg:  0 24px 60px rgba(6, 30, 48, 0.14), 0 8px 24px rgba(6, 30, 48, 0.08);
  --shadow-gold: 0 14px 40px rgba(242, 169, 0, 0.28);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 260ms;

  --container: 1200px;
  --container-wide: 1360px;
  --header-h: 76px;
}

/* ---------- 2. Reset & base ----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

::selection { background: var(--gold-400); color: var(--accent-ink); }

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

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--sea-800);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- 3. Layout helpers --------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}
.container--wide { max-width: var(--container-wide); }

.section {
  padding-block: clamp(3.5rem, 8vw, var(--space-3xl));
  position: relative;
}
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-500), transparent);
}
.eyebrow.center::after {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-500));
}
.eyebrow.on-dark { color: var(--gold-400); }

.section-head h2 { font-size: var(--step-4); margin-bottom: 1rem; }
.lead {
  font-size: var(--step-1);
  color: var(--text-soft);
  line-height: 1.55;
  font-weight: 400;
}
.on-dark .lead, .lead.on-dark { color: var(--muted-dark); }

/* ---------- 4. Buttons ----------------------------------------------------- */
.btn {
  --_bg: var(--gold-500);
  --_fg: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.6em;
  min-height: 52px;
  font-weight: 600;
  font-size: var(--step-0);
  letter-spacing: -0.01em;
  color: var(--_fg);
  background: var(--_bg);
  border-radius: 999px;
  border: 1.5px solid transparent;
  position: relative;
  isolation: isolate;
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              background-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out);
  will-change: transform;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--primary {
  box-shadow: var(--shadow-gold);
  /* The magnetic movement is driven by GSAP (quickTo). Keep `transform` OUT of
     the CSS transition so the browser transition and GSAP don't fight over it —
     otherwise the button lags and won't settle back cleanly to its place. */
  transition: box-shadow var(--dur) var(--ease-out),
              background-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out);
}
.btn--primary:hover { box-shadow: 0 18px 46px rgba(242,169,0,.4); }

.btn--ghost {
  --_bg: transparent;
  --_fg: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { --_bg: var(--ink); --_fg: #fff; transform: translateY(-2px); border-color: var(--ink); }

.btn--on-dark {
  --_bg: rgba(255,255,255,0.06);
  --_fg: #fff;
  border-color: rgba(255,255,255,0.28);
  backdrop-filter: blur(6px);
}
.btn--on-dark:hover { --_bg: #fff; --_fg: var(--sea-900); transform: translateY(-2px); }

.btn--sm { min-height: 44px; padding: 0.6em 1.15em; font-size: var(--step--1); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  color: var(--sea-600);
  transition: gap var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover { color: var(--gold-600); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 5. Header / navigation ---------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 400ms var(--ease-out),
              box-shadow 400ms var(--ease-out),
              backdrop-filter 400ms var(--ease-out);
}
.header__inner {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.header.is-scrolled {
  background: rgba(250, 245, 234, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(6,30,48,0.06);
}
/* Over the dark hero, links are light; after scroll they turn dark */
.header .nav__link,
.header .brand__word { color: #fff; }
.header.is-scrolled .nav__link,
.header.is-scrolled .brand__word { color: var(--ink); }
.header.is-scrolled .nav__link:hover { color: var(--gold-600); }

.brand { display: inline-flex; align-items: center; gap: 0.75rem; }
.rafa-logo { height: 46px; width: auto; display: block; flex: none; }
.rafa-logo--lg { height: 54px; }
.brand__sub {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
  padding-left: 0.8rem;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  transition: color 400ms var(--ease-out), border-color 400ms var(--ease-out);
}
.header.is-scrolled .brand__sub { color: var(--muted); border-color: var(--line-strong); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem); }
.nav__list { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav__link {
  position: relative;
  font-weight: 500;
  font-size: 0.98rem;
  padding-block: 6px;
  transition: color var(--dur) var(--ease-out);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.nav__cta { margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}
.nav-toggle span {
  position: relative;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: background 200ms;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute; left: 0;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 300ms var(--ease-out);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.header .nav-toggle { color: #fff; }
.header.is-scrolled .nav-toggle { color: var(--ink); }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. Hero -------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 1rem);
  /* reserve a band below the content so the overlapping split cards
     never collide with the hero text/trust row */
  padding-bottom: clamp(7rem, 13vh, 11rem);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 120% at 15% 100%, rgba(12,54,142,0.45), transparent 60%),
    linear-gradient(160deg, var(--sea-800) 0%, var(--sea-900) 60%, #04141f 100%);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -3;
}
.hero__scene {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__scrim {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4,16,26,0.42) 0%, rgba(4,16,26,0.10) 32%, rgba(4,16,26,0.88) 100%),
    linear-gradient(90deg, rgba(4,16,26,0.80) 0%, rgba(4,16,26,0.15) 55%, transparent 72%);
}
.hero__grain { position: absolute; inset: 0; z-index: -1; opacity: 0.5; pointer-events: none; }

.hero__inner {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
  padding-block: clamp(1.5rem, 4vh, 3rem) 0;
}
.hero__content { max-width: 46rem; }
.hero .eyebrow { color: var(--gold-400); }
.hero h1 {
  font-size: var(--step-5);
  color: #fff;
  margin-bottom: 1.5rem;
}
.hero h1 .line-mask { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero h1 .line { display: block; }
.hero h1 .accent {
  color: var(--gold-400);
  font-style: italic;
}
.hero__sub {
  font-size: var(--step-1);
  color: #e8eef3;
  max-width: 40rem;
  margin-bottom: 2.25rem;
  font-weight: 400;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #dfe7ee;
}
.hero__trust-item svg { width: 20px; height: 20px; color: var(--gold-400); flex: none; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.hero__scroll-dot {
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  position: relative;
}
.hero__scroll-dot::after {
  content: "";
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  border-radius: 4px;
  background: var(--gold-400);
  transform: translateX(-50%);
  animation: scrollDot 1.8s var(--ease-in-out) infinite;
}
@keyframes scrollDot {
  0%, 100% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  70% { opacity: 0; transform: translate(-50%, 14px); }
}

/* ---------- 7. Audience split --------------------------------------------- */
.split {
  margin-top: clamp(-5.5rem, -7vh, -4rem);
  position: relative;
  z-index: 5;
}
.split__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.audience-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  min-height: 320px;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.audience-card:hover { transform: translateY(-6px); box-shadow: 0 34px 80px rgba(6,30,48,.18); }
.audience-card--dark {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(242,169,0,0.22), transparent 55%),
    linear-gradient(155deg, var(--sea-700), var(--sea-900));
  color: #fff;
  border-color: transparent;
}
.audience-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.audience-card--dark .audience-card__tag { background: rgba(255,255,255,0.12); color: var(--gold-400); }
.audience-card--light .audience-card__tag { background: var(--cream-100); color: var(--gold-600); }
.audience-card__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  margin-bottom: 1.25rem;
}
.audience-card--dark .audience-card__icon { background: rgba(255,255,255,0.1); color: var(--gold-400); }
.audience-card--light .audience-card__icon { background: var(--cream-100); color: var(--sea-600); }
.audience-card__icon svg { width: 28px; height: 28px; }
.audience-card h3 { font-size: var(--step-2); margin-bottom: 0.75rem; }
.audience-card--dark h3 { color: #fff; }
.audience-card p { color: var(--text-soft); margin-bottom: 1.5rem; flex: 1; }
.audience-card--dark p { color: #cdd8e2; }
.audience-card__meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.audience-card__meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.audience-card--dark .audience-card__meta { color: #b9c6d2; }
.audience-card--light .audience-card__meta { color: var(--text-soft); }
.audience-card__meta svg { width: 16px; height: 16px; color: var(--gold-500); }
.audience-card--dark .audience-card__meta svg { color: var(--gold-400); }

/* ---------- 8. About / stats ---------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about__body p + p { margin-top: 1.15rem; }
.about__body p { color: var(--text-soft); }
/* .about__body p outranks .eyebrow — restore the gold label color */
.about__body .eyebrow { color: var(--gold-600); }
.about__signature {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.about__signature .sig {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--sea-700);
}
.about__signature small { color: var(--text-soft); display: block; font-size: 0.85rem; }

.about__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}
.about__photo { width: 100%; height: 100%; object-fit: cover; display: block; }
/* soft top scrim so the caption stays legible over bright photo areas */
.about__visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,16,26,0.5) 0%, rgba(4,16,26,0.05) 28%, transparent 55%);
  pointer-events: none; z-index: 1;
}
.about__visual .art__label, .about__visual .about__badge { z-index: 2; }
/* caption sits at the top of the card; year badge at the bottom — no overlap */
.about__visual .art__label { top: 18px; bottom: auto; left: 20px; }
.about__badge {
  position: absolute;
  left: 20px; bottom: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.about__badge .yr {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-600);
  line-height: 1;
}
.about__badge small { color: var(--text-soft); font-size: 0.82rem; max-width: 8rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.stat__num {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.1em;
}
.stat__num .suffix { color: var(--gold-600); }
.stat__label {
  margin-top: 0.5rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ---------- 9. Products / oferta ------------------------------------------ */
.products { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-100) 100%); }
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.filter {
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: all var(--dur) var(--ease-out);
}
.filter:hover { border-color: var(--gold-500); color: var(--ink); }
.filter.is-active {
  background: var(--sea-800);
  color: #fff;
  border-color: var(--sea-800);
}
@media (max-width: 680px) {
  .filters { justify-content: center; } /* równiejszy układ pigułek na wąskim ekranie */
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.product-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card__media {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.product-card__media img,
.product-card__media .art {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
.product-card:hover .product-card__media img,
.product-card:hover .product-card__media .art { transform: scale(1.06); }
.product-card__badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.92);
  color: var(--sea-800);
  backdrop-filter: blur(4px);
}
.product-card__badge.hot { background: var(--gold-500); color: var(--accent-ink); }
.product-card__badge.cold { background: #d7ecff; color: #0b4a7a; }
.product-card__body { padding: 1.1rem 1.25rem 1.35rem; }
.product-card__body h3 { font-size: 1.16rem; margin-bottom: 0.35rem; }
.product-card__body p { font-size: 0.9rem; color: var(--text-soft); }
.product-card__pack {
  margin-top: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.product-card__pack svg { width: 15px; height: 15px; color: var(--gold-600); }

.products__note {
  margin-top: 2.5rem;
  text-align: center;
  color: var(--text-soft);
}

/* Featured "Specjalność zakładu" card — spans the grid, horizontal layout */
.product-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  border: 1.5px solid rgba(242, 169, 0, 0.55);
  box-shadow: 0 10px 40px rgba(242, 169, 0, 0.14), var(--shadow-md);
  background:
    radial-gradient(90% 90% at 100% 0%, rgba(242,169,0,0.07), transparent 60%),
    var(--surface);
}
.product-card--featured .product-card__media {
  aspect-ratio: auto;
  min-height: 300px;
  height: 100%;
}
.product-card--featured .product-card__body {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.product-card--featured h3 { font-size: var(--step-3); margin-bottom: 0.6rem; }
.product-card--featured .product-card__body > p { font-size: 1.02rem; }
.featured-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.7rem;
}
.product-card__badge.featured {
  background: var(--gold-500);
  color: var(--accent-ink);
  font-size: 0.74rem;
  padding: 0.42rem 0.85rem;
}
.featured-cta { margin-top: 1.35rem; }
@media (max-width: 760px) {
  .product-card--featured { grid-template-columns: 1fr; }
  .product-card--featured .product-card__media { min-height: 0; aspect-ratio: 16 / 10; height: auto; }
}

/* Mobile-only sticky contact bar */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  gap: 1px;
  background: rgba(4, 20, 31, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 30px rgba(4, 16, 26, 0.25);
  transform: translateY(0);
  transition: transform 320ms var(--ease-out);
}
.mobile-cta.is-hidden { transform: translateY(110%); }
.mobile-cta__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
}
.mobile-cta__btn svg { width: 19px; height: 19px; flex: none; }
.mobile-cta__btn--call { color: #fff; border: 1.5px solid rgba(255,255,255,0.3); margin-right: 0.6rem; }
.mobile-cta__btn--ask { background: var(--gold-500); color: var(--accent-ink); }
@media (max-width: 680px) {
  .mobile-cta { display: flex; }
}

/* ---------- 10. Process --------------------------------------------------- */
.process { background: var(--sea-900); color: #fff; position: relative; }
.process::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(90% 60% at 80% 10%, rgba(242,169,0,0.16), transparent 60%);
  pointer-events: none;
}
.process .section-head h2 { color: #fff; }
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  counter-reset: step;
}
.step { position: relative; }
.step__num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255,255,255,0.14);
  line-height: 1;
  margin-bottom: 1rem;
  transition: color var(--dur);
}
.step__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  display: grid; place-items: center;
  color: var(--gold-400);
  margin-bottom: 1.1rem;
}
.step__icon svg { width: 26px; height: 26px; }
.step h3 { color: #fff; font-size: 1.3rem; margin-bottom: 0.5rem; }
.step p { color: #b9c6d2; font-size: 0.95rem; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 26px; right: -1rem;
  width: 2rem; height: 2px;
  background: linear-gradient(90deg, rgba(242,169,0,0.5), transparent);
}

/* ---------- 11. Quality / certifications ---------------------------------- */
.quality__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.certs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.cert {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.cert:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cert__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--cream-100);
  color: var(--gold-600);
  display: grid; place-items: center;
  margin-bottom: 0.9rem;
}
.cert__icon svg { width: 24px; height: 24px; }
.cert h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.cert p { font-size: 0.85rem; color: var(--text-soft); }

.quality__points { margin-top: 1.75rem; display: grid; gap: 1rem; }
.qpoint { display: flex; gap: 0.9rem; align-items: flex-start; }
.qpoint svg { width: 24px; height: 24px; color: var(--gold-600); flex: none; margin-top: 2px; }
.qpoint strong { display: block; color: var(--ink); }
.qpoint span { color: var(--text-soft); font-size: 0.95rem; }

.eu-strip {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: var(--cream-50);
  border: 1px dashed var(--line-strong);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  justify-content: space-between;
}
.eu-strip p { color: var(--text-soft); font-size: 0.9rem; max-width: 42rem; }
.eu-strip__logos { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.eu-logo {
  height: 46px;
  min-width: 90px;
  border-radius: 8px;
  background: var(--cream-100);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  padding: 0 0.9rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ---------- 12. Shop ------------------------------------------------------- */
.shop__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
}
.shop__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  box-shadow: var(--shadow-md);
}
.shop__hours { display: grid; gap: 0.75rem; margin: 1.5rem 0; }
.shop__hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--cream-100);
}
.shop__hours-row.is-today {
  background: var(--sea-800);
  color: #fff;
}
.shop__hours-row .day { font-weight: 600; display: inline-flex; align-items: center; gap: 0.5rem; }
.shop__hours-row .time { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.shop__hours-row.is-today .time { color: var(--gold-400); font-weight: 700; }
.shop__badge-note {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--text-soft);
}
.shop__badge-note svg { width: 18px; height: 18px; color: var(--gold-600); }

.shop__map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  min-height: 360px;
  background: linear-gradient(150deg, var(--sea-700), var(--sea-900));
}
.shop__map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
  z-index: 1;                 /* covers the on-brand fallback when it loads */
  filter: saturate(1.02);
}
.shop__map-fallback {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
}
.shop__map-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.shop__map-pin {
  position: absolute;
  top: 42%; left: 50%;
  transform: translate(-50%, -100%);
  width: 44px; height: 44px;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.4));
}
.shop__map-pin::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -6px;
  width: 22px; height: 8px;
  background: rgba(0,0,0,0.35);
  border-radius: 50%;
  transform: translateX(-50%);
  filter: blur(2px);
}
.shop__map-pin svg { width: 100%; height: 100%; position: relative; }
.shop__map-pin::before {
  content: "";
  position: absolute;
  left: 50%; top: 42%;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(242,169,0,0.35);
  transform: translate(-50%, -50%);
  animation: pinPulse 2.4s var(--ease-out) infinite;
}
@keyframes pinPulse {
  0% { transform: translate(-50%,-50%) scale(0.4); opacity: 0.7; }
  100% { transform: translate(-50%,-50%) scale(2.6); opacity: 0; }
}
.shop__map-label {
  position: absolute;
  left: 18px; bottom: 18px; right: 18px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 2px;
}
.shop__map-label strong { color: var(--ink); font-size: 1rem; }
.shop__map-label > span { color: var(--text-soft); font-size: 0.88rem; }
.shop__map-cta {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--sea-600) !important;
  font-size: 0.88rem;
}
.shop__map-cta svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
.shop__map:hover .shop__map-cta svg { transform: translateX(4px); }

.address-line { display: flex; gap: 0.7rem; align-items: flex-start; margin-bottom: 0.5rem; }
.address-line svg { width: 20px; height: 20px; color: var(--gold-600); flex: none; margin-top: 3px; }

/* ---------- 13. Contact --------------------------------------------------- */
.contact { background: linear-gradient(180deg, var(--cream-100), var(--cream)); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: 0.45rem; }
.field.row { grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 520px){ .field.row { grid-template-columns: 1fr; } }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.field label .req { color: var(--brand-red); }
.field input, .field textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  min-height: 52px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #9aa7b1; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(242,169,0,0.16);
}
.form__submit { margin-top: 0.5rem; }
.form__note { font-size: 0.82rem; color: var(--text-soft); }
.form__status {
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  display: none;
}
.form__status.ok { display: block; background: #e6f6ec; color: #16663a; border: 1px solid #b6e2c6; }
.form__status.err { display: block; background: #fdeaea; color: #a12626; border: 1px solid #f3c2c2; }

.contact__info {
  background: var(--sea-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-lg);
  align-self: start;
  position: relative;
  overflow: hidden;
}
.contact__info::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 100% 0%, rgba(242,169,0,0.2), transparent 60%);
}
.contact__info > * { position: relative; }
.contact__info h3 { color: #fff; font-size: var(--step-2); margin-bottom: 1.25rem; }
.info-row { display: flex; gap: 0.85rem; align-items: flex-start; padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.info-row:last-of-type { border-bottom: none; }
.info-row svg { width: 20px; height: 20px; color: var(--gold-400); flex: none; margin-top: 3px; }
.info-row .label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 2px; }
.info-row a, .info-row span { color: #eaf0f5; }
.info-row a:hover { color: var(--gold-400); }
.info-legal {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.78rem;
  color: var(--muted-dark);
  line-height: 1.5;
}
.info-legal strong { color: #dfe7ee; }

/* ---------- 14. Footer ---------------------------------------------------- */
.footer {
  background: #04141f;
  color: #b9c6d2;
  padding-block: clamp(3.5rem, 6vw, 5rem) 2rem;
  position: relative;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer .brand__word { color: #fff; }
.footer .brand__sub { color: var(--gold-400); }
.footer__about { margin-top: 1.1rem; font-size: 0.9rem; max-width: 22rem; }
.footer h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 1.1rem;
  font-weight: 700;
}
.footer__links { display: grid; gap: 0.35rem; }
.footer__links a { color: #b9c6d2; font-size: 0.95rem; padding: 0.2rem 0; transition: color var(--dur); } /* większe pole dotyku */
.footer__links a:hover { color: #fff; }
.footer__contact p { font-size: 0.92rem; margin-bottom: 0.5rem; }
.footer__contact a:hover { color: var(--gold-400); }
.footer__bottom {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: #8296a5;
}
.footer__bottom a:hover { color: #fff; }

/* ---------- 14b. Designed image placeholders (swap for real photos) ------- */
.art {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.art::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 55% at 30% 22%, rgba(255,255,255,0.30), transparent 62%);
  z-index: -1;
}
.art--hot       { background: linear-gradient(140deg, #f8bd3f 0%, #e07a1f 52%, #c1420f 100%); }
.art--cold      { background: linear-gradient(140deg, #57a6da 0%, #1c5f96 55%, #0b3350 100%); }
.art--preserves { background: linear-gradient(140deg, #edb02a 0%, #c78710 55%, #96650a 100%); }
.art--fresh     { background: linear-gradient(140deg, #38b7bf 0%, #17789a 55%, #0b3350 100%); }
.art--sea       { background: linear-gradient(150deg, var(--sea-600), var(--sea-900)); }
.art-fish {
  width: 54%;
  height: 54%;
  color: rgba(255,255,255,0.92);
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.28));
}
.art--big .art-fish { width: 46%; height: 46%; }
.art__label {
  position: absolute;
  bottom: 14px; left: 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ---------- 14d. Global: wave section dividers ---------------------------- */
.section-wave {
  position: absolute; left: 0; width: 100%;
  line-height: 0; z-index: 1; pointer-events: none;
  overflow: hidden; /* clips the 200%-wide sliding SVG here, so the section no
                       longer needs overflow:hidden and the wave can bleed over
                       the boundary — killing the hairline seam */
}
/* SVG is 2 periods wide (200%); sliding it by one period (-50%) loops seamlessly.
   max-width:none is required — the base reset clamps svg to max-width:100%,
   which would squash the wave and leave a gap while it slides. */
.section-wave svg {
  width: 200%;
  max-width: none;
  height: clamp(40px, 5.5vw, 66px);
  display: block;
  will-change: transform;
  animation: waveFlow 11s linear infinite;
}
.section-wave--top { top: -2px; }
.section-wave--bottom { bottom: -2px; transform: scaleY(-1); }
/* alternate the drift so stacked dividers don't move in lockstep */
.section-wave--bottom svg { animation-duration: 15s; animation-direction: reverse; }
.footer .section-wave svg { animation-duration: 13s; }
@keyframes waveFlow {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ---------- Ambient swimming fish (decorative, always behind text) ------- */
.fish-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1; /* content containers in these sections sit at z-index: 2 */
}
.fish-layer--hero { z-index: -2; } /* between the sea scene (-3) and the scrim (-1) */
.fish {
  position: absolute;
  left: -80px;
  display: block;
  width: 34px;
  color: #fff;
  opacity: var(--o, 0.07);
  will-change: transform;
  animation: fishSwim var(--dur, 48s) linear var(--delay, 0s) infinite;
}
.fish--rev { left: auto; right: -80px; animation-name: fishSwimRev; }
.fish__flip { display: block; }
.fish--rev .fish__flip { transform: scaleX(-1); }
.fish svg {
  width: 100%;
  height: auto;
  display: block;
  animation: fishBob var(--bob, 5s) ease-in-out infinite alternate;
}
.fish--gold { color: var(--gold-400); }
@keyframes fishSwim    { to { transform: translateX(calc(100vw + 180px)); } }
@keyframes fishSwimRev { to { transform: translateX(calc(-100vw - 180px)); } }
@keyframes fishBob {
  from { transform: translateY(-4px) rotate(-2deg); }
  to   { transform: translateY(4px) rotate(2deg); }
}

/* Hero navy sea — gentle breathing bob (two layers, offset) */
.hero-sea { animation: seaBob 7s ease-in-out infinite alternate; will-change: transform; }
.hero-sea--front { animation-duration: 5.5s; animation-delay: -1.8s; }
@keyframes seaBob {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}
.process .container, .footer .container { position: relative; z-index: 2; }

/* ---------- 12b. Shop: open/closed status + duotone gallery -------------- */
.shop__status {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.95rem; border-radius: 999px;
  font-weight: 600; font-size: 0.9rem;
  background: var(--cream-100); border: 1px solid var(--line); color: var(--text-soft);
  margin-bottom: 1.4rem;
}
.shop__status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; position: relative; }
.shop__status.is-open { background: #e7f6ec; border-color: #bfe6cd; color: #15663a; }
.shop__status.is-open .shop__status-dot { background: #1f9d55; }
.shop__status.is-open .shop__status-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(31,157,85,0.55); animation: statusPulse 2s var(--ease-out) infinite;
}
@keyframes statusPulse { 0% { transform: scale(0.5); opacity: 0.8; } 100% { transform: scale(1.7); opacity: 0; } }

.shop__gallery { margin-top: clamp(2rem, 4vw, 3.25rem); }
.shop__gallery h3 { font-size: var(--step-2); margin-bottom: 1.25rem; }
.gallery-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.75rem, 2vw, 1.25rem); }
.gallery-tile {
  position: relative; margin: 0; border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.gallery-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.gallery-tile .gallery-art { width: 100%; height: 100%; display: block; }
.gallery-tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0.75rem 0.95rem;
  font-family: var(--font-display); font-style: italic; font-size: 0.98rem; color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
  background: linear-gradient(to top, rgba(4,16,26,0.6), transparent);
}
.art-navy { background: linear-gradient(150deg, var(--sea-600), var(--sea-900)); }
.art-gold { background: linear-gradient(150deg, #e89b17, #b06f09); }
.gallery-line { stroke: rgba(255,238,201,0.92); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.gallery-fill { fill: rgba(255,238,201,0.14); }

/* ---------- 13b. Contact: FAQ + inline validation + success ------------- */
.faq { margin-top: clamp(2.5rem, 5vw, 3.75rem); max-width: 54rem; margin-inline: auto; }
.faq__title { font-size: var(--step-2); margin-bottom: 1.25rem; text-align: center; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0.25rem; text-align: left; font-weight: 600; font-size: 1.05rem; color: var(--ink);
}
.faq__q:hover { color: var(--gold-600); }
.faq__icon { width: 22px; height: 22px; flex: none; position: relative; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 13px; height: 2px;
  background: var(--gold-600); border-radius: 2px; transform: translate(-50%, -50%);
  transition: transform var(--dur) var(--ease-out);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq__a { overflow: hidden; height: 0; transition: height var(--dur) var(--ease-out); }
.faq__a p { padding: 0 0.25rem 1.25rem; color: var(--text-soft); }

.field__error {
  font-size: 0.82rem; color: #c0202a; min-height: 1.1em;
  opacity: 0; transform: translateY(-3px); transition: opacity 0.2s, transform 0.2s;
}
.field.is-invalid input, .field.is-invalid textarea {
  border-color: #d33; box-shadow: 0 0 0 4px rgba(216,35,39,0.12);
}
.field.is-invalid .field__error { opacity: 1; transform: none; }

.form__success {
  display: none; align-items: center; gap: 1rem;
  padding: 1.2rem 1.4rem; border-radius: var(--radius);
  background: #e7f6ec; border: 1px solid #b6e2c6; color: #15663a;
}
.form__success.show { display: flex; }
.form__success strong { display: block; color: #0f5730; }
.form__success p { font-size: 0.9rem; margin-top: 2px; }
.check-circle { width: 46px; height: 46px; flex: none; }
.check-circle circle { stroke: #1f9d55; stroke-width: 2.5; fill: none; stroke-dasharray: 151; stroke-dashoffset: 151; }
.check-circle path { stroke: #1f9d55; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.form__success.show .check-circle circle { animation: drawCircle 0.5s var(--ease-out) forwards; }
.form__success.show .check-circle path { animation: drawCheck 0.35s var(--ease-out) 0.42s forwards; }
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

/* ---------- 15. Reveal animation base (only when JS+motion enabled) ------- */
.gsap-ready [data-reveal] { opacity: 0; }
.gsap-ready [data-reveal="up"]    { transform: translateY(32px); }
.gsap-ready [data-reveal="left"]  { transform: translateX(-32px); }
.gsap-ready [data-reveal="right"] { transform: translateX(32px); }
.gsap-ready [data-reveal="scale"] { transform: scale(0.94); }

/* ---------- 16. Responsive ------------------------------------------------ */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 900px) {
  .nav__list, .nav__cta { display: none; }
  .nav-toggle { display: inline-flex; }

  /* Mobile nav panel */
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(250,245,234,0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem clamp(1.25rem, 5vw, 2.5rem) 2rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  body.nav-open .nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  body.nav-open { overflow: hidden; }
  .nav__list { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav__link { color: var(--ink) !important; padding: 1rem 0.5rem; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav__link::after { display: none; }
  .nav__cta { display: flex; margin: 1rem 0 0; }
  .nav__cta .btn { width: 100%; }

  .about__grid { grid-template-columns: 1fr; }
  /* width:100% is required — with only margin-inline:auto the grid item
     shrinks to its (absolutely-positioned) content and collapses to a sliver */
  .about__visual { width: 100%; max-width: 26rem; margin-inline: auto; order: -1; }
  .quality__grid { grid-template-columns: 1fr; }
  .shop__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .brand__sub { display: none; }
  .rafa-logo { height: 42px; }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
  /* On phones the hero content can be tall, so drop the floating overlap
     entirely — the cards sit cleanly below the hero (no more overlap). */
  .hero { padding-bottom: clamp(2.75rem, 7vh, 4.5rem); }
  .split { margin-top: 0; padding-top: 1.75rem; }
  .split__grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .process__grid { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .hero__actions .btn { flex: 1 1 auto; }
}
@media (max-width: 420px) {
  .product-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
}

/* ---------- 17. Reduced motion -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero__media img { transform: none; }
  .section-wave svg, .hero-sea { animation: none !important; }
  /* fish start off-screen (left/right: -80px), so no animation = invisible */
  .fish, .fish svg { animation: none !important; }
  .hero__scroll-dot::after { animation: none; }
  /* Ensure any JS-hidden content is visible */
  .gsap-ready [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* Print niceties */
@media print {
  .header, .hero__scroll, .nav-toggle, .form__submit { display: none; }
  body { color: #000; background: #fff; }
  .chat-fab, .chat-panel { display: none !important; }
}

/* ==========================================================================
   Asystent RAFA — czat FAQ (widget)
   ========================================================================== */
.chat-fab {
  position: fixed; z-index: 95;
  right: clamp(1rem, 3vw, 1.5rem);
  bottom: clamp(1rem, 3vw, 1.5rem);
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--accent-ink);
  background: linear-gradient(140deg, var(--gold-400), var(--gold-500));
  box-shadow: 0 12px 30px rgba(242, 169, 0, 0.42), 0 4px 12px rgba(6, 30, 48, 0.22);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
              background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.chat-fab:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(242, 169, 0, 0.52), 0 6px 14px rgba(6, 30, 48, 0.24); }
.chat-fab svg { width: 28px; height: 28px; }
.chat-fab__close { display: none; }
.chat-fab.is-open { background: var(--sea-800); color: #fff; }
.chat-fab.is-open .chat-fab__icon { display: none; }
.chat-fab.is-open .chat-fab__close { display: block; }
.chat-fab__dot {
  position: absolute; top: 1px; right: 1px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--brand-red); border: 2px solid #fff;
}
.chat-fab.is-open .chat-fab__dot { display: none; }
/* ukryj przycisk czatu, gdy otwarte jest mobilne menu (nie konkuruje o uwagę) */
body.nav-open .chat-fab { opacity: 0; visibility: hidden; pointer-events: none; }

.chat-panel {
  position: fixed; z-index: 96;
  right: clamp(1rem, 3vw, 1.5rem);
  bottom: calc(clamp(1rem, 3vw, 1.5rem) + 72px);
  width: min(380px, calc(100vw - 2rem));
  height: min(560px, calc(100dvh - 7.5rem));
  display: flex; flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform-origin: bottom right;
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.96);
  pointer-events: none;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out),
              visibility var(--dur) var(--ease-out);
}
.chat-panel.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }

.chat-panel__head {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: radial-gradient(90% 130% at 100% 0%, rgba(242, 169, 0, 0.28), transparent 60%),
              linear-gradient(150deg, var(--sea-700), var(--sea-900));
  color: #fff;
}
.chat-panel__avatar {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.1); color: var(--gold-400);
}
.chat-panel__avatar svg { width: 24px; height: 24px; }
.chat-panel__id { flex: 1; line-height: 1.2; min-width: 0; }
.chat-panel__id strong { font-family: var(--font-display); font-size: 1.05rem; }
.chat-panel__id span { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: #cdd8e2; margin-top: 2px; }
.chat-panel__status-dot { width: 7px; height: 7px; border-radius: 50%; background: #41d17f; box-shadow: 0 0 0 3px rgba(65, 209, 127, 0.25); }
.chat-panel__close {
  flex: none; width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center; color: #fff; opacity: 0.82;
  transition: background-color var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.chat-panel__close:hover { background: rgba(255, 255, 255, 0.14); opacity: 1; }
.chat-panel__close svg { width: 20px; height: 20px; }

.chat-log {
  flex: 1; overflow-y: auto; padding: 1rem;
  display: flex; flex-direction: column; gap: 0.55rem;
  background: var(--cream);
  overscroll-behavior: contain;
}
.chat-msg {
  max-width: 84%; padding: 0.62rem 0.85rem; border-radius: 15px;
  font-size: 0.92rem; line-height: 1.5; word-wrap: break-word;
  animation: chatIn 0.28s var(--ease-out) both;
}
.chat-msg a { color: inherit; text-decoration: underline; font-weight: 600; }
.chat-msg--bot { align-self: flex-start; background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.chat-msg--user { align-self: flex-end; background: linear-gradient(140deg, var(--gold-400), var(--gold-500)); color: var(--accent-ink); border-bottom-right-radius: 5px; }
.chat-msg--typing { display: inline-flex; gap: 5px; align-items: center; }
.chat-msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: chatDot 1.2s infinite ease-in-out; }
.chat-msg--typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-msg--typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes chatDot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }

.chat-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.65rem 1rem 0; }
.chat-chip {
  padding: 0.4rem 0.8rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; color: var(--sea-700);
  background: var(--surface); border: 1px solid var(--line-strong);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.chat-chip:hover { background: var(--sea-800); color: #fff; border-color: var(--sea-800); }

.chat-form { display: flex; gap: 0.5rem; padding: 0.75rem 1rem 0.4rem; align-items: center; }
.chat-form input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0.6rem 0.95rem;
  border: 1.5px solid var(--line-strong); border-radius: 999px;
  font: inherit; font-size: 1rem; background: #fff; color: var(--ink); /* 16px — nie zoomuje na iOS */
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.chat-form input::placeholder { color: var(--muted); }
.chat-form input:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(242, 169, 0, 0.16); }
.chat-send {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold-500); color: var(--accent-ink);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.chat-send:hover { background: var(--gold-600); color: #fff; transform: translateY(-1px); }
.chat-send svg { width: 20px; height: 20px; }
.chat-note { font-size: 0.72rem; color: var(--text-soft); text-align: center; padding: 0 1rem 0.75rem; }
.chat-note a { color: var(--sea-600); font-weight: 600; white-space: nowrap; }

@media (max-width: 680px) {
  .chat-fab { bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px)); }
  .chat-fab.is-open { display: none; }
  .chat-panel {
    right: 0; left: 0; bottom: 0; top: auto;
    width: 100%; height: 86dvh; max-height: 86dvh;
    border-radius: 22px 22px 0 0;
    /* min 14px chroni stopkę czatu przed paskiem przeglądarki; env dokłada
       margines nad home-indicatorem na telefonach z wcięciem */
    padding-bottom: max(env(safe-area-inset-bottom, 0px), 14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-panel { transition: opacity 0.001ms, visibility 0.001ms; transform: none; }
  .chat-msg { animation: none; }
  .chat-msg--typing span { animation: none; }
  .chat-fab:hover, .chat-send:hover { transform: none; }
}

/* ==========================================================================
   Zgoda RODO w formularzu + klauzula informacyjna
   ========================================================================== */
.field--consent { margin-top: 0.25rem; }
.consent {
  display: flex; align-items: flex-start; gap: 0.6rem;
  cursor: pointer; font-size: 0.86rem; line-height: 1.5; color: var(--text-soft);
}
.consent input[type="checkbox"] {
  flex: none; width: 20px; height: 20px; margin-top: 1px;
  accent-color: var(--gold-500); cursor: pointer;
}
.consent a { color: var(--sea-600); font-weight: 600; text-decoration: underline; }
.field--consent.is-invalid .consent { color: var(--brand-red); }
.field--consent.is-invalid input[type="checkbox"] { outline: 2px solid var(--brand-red); outline-offset: 2px; }

.form__rodo { margin-top: 0.85rem; font-size: 0.82rem; color: var(--text-soft); }
.form__rodo summary {
  cursor: pointer; font-weight: 600; color: var(--sea-700);
  list-style: none; display: inline-flex; align-items: center; gap: 0.4rem;
}
.form__rodo summary::-webkit-details-marker { display: none; }
.form__rodo summary::before { content: "＋"; color: var(--gold-600); font-weight: 700; }
.form__rodo[open] summary::before { content: "－"; }
.form__rodo p { margin-top: 0.5rem; line-height: 1.6; }
.form__rodo a { color: var(--sea-600); font-weight: 600; }

/* ==========================================================================
   Strona prawna (Polityka prywatności)
   ========================================================================== */
.legal-body { background: var(--cream); color: var(--ink); }
.legal-top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 900px; margin: 0 auto; padding: 1.25rem clamp(1.25rem, 4vw, 2rem);
}
.legal-top__back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--sea-700); font-weight: 600; font-size: 0.92rem;
}
.legal-top__back:hover { color: var(--gold-600); }
.legal-top__back svg { width: 18px; height: 18px; }

.legal {
  max-width: 760px; margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) clamp(1.25rem, 4vw, 2rem) clamp(3rem, 6vw, 4.5rem);
}
.legal h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 2.8rem); color: var(--ink); line-height: 1.1; }
.legal__meta { color: var(--text-soft); margin: 0.5rem 0 2rem; font-size: 0.9rem; }
.legal h2 { font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.45rem); color: var(--sea-800); margin: 2.2rem 0 0.65rem; }
.legal p { color: var(--ink); line-height: 1.75; margin-bottom: 0.9rem; }
.legal ul { margin: 0.4rem 0 1.1rem 1.2rem; display: grid; gap: 0.4rem; }
.legal li { color: var(--ink); line-height: 1.65; }
.legal a { color: var(--sea-600); font-weight: 600; }
.legal a:hover { color: var(--gold-600); }
.legal strong { color: var(--ink); }
.legal__back-wrap { margin-top: 2.5rem; }

.legal-foot {
  border-top: 1px solid var(--line);
  max-width: 900px; margin: 0 auto;
  padding: 1.5rem clamp(1.25rem, 4vw, 2rem) 2.5rem;
  color: var(--text-soft); font-size: 0.82rem;
}
