/* ============================================================
   RIFT COFFEE ROASTERS — Rotterdam
   Model strony: SKLEP STEROWANY SMAKIEM. Nie ma siatki kategorii
   ani listy produktow do przewijania — sa trzy osie smaku
   (kwasowosc / body / palenie) i kawy przestawiaja sie na zywo.

   Kolory: zielen niedojrzalej wisni kawowej (#132a21) i miedz
   swiezo wypalonego ziarna (#c9622d) na papierze do palarni.

   UWAGA na kontrast: --c-accent (miedz) ma 3,8:1 i na bialym
   NIGDY nie jest tekstem — tylko wypelnienia, paski, kropki.
   Do tekstu na jasnym: --c-accent-2. Na ciemnym: --c-accent-lt.
   ============================================================ */

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-v22-latin_latin-ext-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-v22-latin_latin-ext-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Supreme";
  src: url("fonts/Supreme-Variable.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  /* ---- TOKENY PROJEKTU ---- */
  --c-dark: #132a21;       /* ciemna zielen — naglowek, stopka, sekcje */
  --c-dark-2: #1b3a2e;     /* karty na ciemnym */
  --c-dark-line: #2b5145;  /* obramowania na ciemnym */
  --c-bg: #f3f1ea;         /* papier */
  --c-surface: #ffffff;    /* karty na jasnym */
  --c-accent: #c9622d;     /* miedz — TYLKO wypelnienia, 3,8:1 */
  --c-accent-2: #9a4a1e;   /* glęboka miedz — tekst i CTA, 5,5:1 na papierze */
  --c-accent-lt: #e8a06a;  /* jasna miedz — tekst na ciemnym, 6,9:1 */
  --c-text: #16211c;
  --c-muted: #4e5b54;      /* 6,2:1 na papierze */
  --c-muted-dark: #a9bcb2; /* 7,6:1 na ciemnej zieleni */
  --c-line: #dfdcd2;

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Supreme", sans-serif;

  --container: 78rem;
  --radius: 4px;
  --ease: 260ms cubic-bezier(.2, .7, .3, 1);
  --header-h: 4.25rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--c-accent-2); outline-offset: 2px; }
.on-dark :focus-visible, .site-header :focus-visible { outline-color: var(--c-accent-lt); }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 640px) { .container { padding-inline: 2rem; } }
.hidden, [hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--c-accent-2); color: #fff; padding: 0.7rem 1.1rem;
  border-radius: var(--radius); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Typografia ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6.5vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-accent-2);
  display: block;
  margin-bottom: 0.85rem;
}
/* Kazda ciemna sekcja MUSI byc tu wymieniona — miedz --c-accent-2
   ma na zieleni 2,4:1, a --c-muted 2,1:1. Bez tego audyt WCAG pada
   dokladnie na hero, ktorego nikt nie sprawdza. */
.on-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow,
.section-dark .eyebrow, .info-bar .eyebrow, .cta-band .eyebrow { color: var(--c-accent-lt); }
.lead { font-size: 1.1rem; color: var(--c-muted); max-width: 40rem; }
.on-dark .lead, .hero .lead, .page-hero .lead, .section-dark .lead { color: var(--c-muted-dark); }
.cta-band .eyebrow { color: #fff; }
.prose p + p { margin-top: 1rem; }
.prose p { color: var(--c-muted); }
.prose strong { color: var(--c-text); font-weight: 600; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem; min-height: 44px;
  border: 2px solid transparent; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  text-decoration: none; text-align: center;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.btn-primary { background: var(--c-accent-2); color: #fff; }
.btn-primary:hover { background: #7f3c15; }
.btn-ghost { border-color: var(--c-line); color: var(--c-text); background: transparent; }
.btn-ghost:hover { border-color: var(--c-text); }
.on-dark .btn-ghost, .hero .btn-ghost, .page-hero .btn-ghost,
.section-dark .btn-ghost, .site-header .btn-ghost { border-color: var(--c-dark-line); color: #fff; }
.on-dark .btn-ghost:hover, .hero .btn-ghost:hover, .page-hero .btn-ghost:hover,
.section-dark .btn-ghost:hover, .site-header .btn-ghost:hover { border-color: var(--c-accent-lt); color: var(--c-accent-lt); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* ---------- Naglowek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--c-dark); color: #fff;
  border-bottom: 1px solid var(--c-dark-line);
}
.header-inner { display: flex; align-items: center; gap: 0.75rem; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; margin-right: auto; }
.logo-mark {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(150deg, var(--c-accent-lt), var(--c-accent-2));
  position: relative;
}
.logo-mark::after {
  content: ""; position: absolute; inset: 0;
  border-left: 2px solid var(--c-dark);
  left: 50%; transform: translateX(-1px) rotate(8deg);
}
.logo-text {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; letter-spacing: 0.02em; color: #fff;
}
.logo-text small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.6rem; letter-spacing: 0.18em; color: var(--c-muted-dark); text-transform: uppercase; margin-top: -2px; }

.main-nav ul { display: none; list-style: none; gap: 1.6rem; align-items: center; }
.main-nav a { text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--c-muted-dark); transition: color var(--ease); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--c-accent-lt); }

.bag-btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px; padding: 0.5rem 0.95rem;
  background: transparent; color: #fff;
  border: 1px solid var(--c-dark-line); border-radius: 999px;
  font-size: 0.9rem; font-weight: 600; flex-shrink: 0;
  transition: border-color var(--ease), background var(--ease);
}
.bag-btn:hover { border-color: var(--c-accent-lt); }
.bag-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
/* Na waskich ekranach zostaje sama ikona z licznikiem — inaczej
   logo, koszyk i hamburger nie miesza sie w 375 px. */
@media (max-width: 639px) {
  .bag-btn { padding: 0.5rem 0.7rem; gap: 0.4rem; }
  .bag-btn > span:not(.bag-count) { display: none; }
}
.bag-count {
  min-width: 1.35rem; height: 1.35rem; padding-inline: 0.35rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-accent); color: #fff;
  border-radius: 999px; font-size: 0.75rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.bag-btn[data-empty="true"] .bag-count { background: var(--c-dark-line); color: var(--c-muted-dark); }

.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; flex-shrink: 0; padding: 10px; background: transparent; border: none; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: #fff; transition: transform var(--ease), opacity var(--ease); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-open .main-nav ul {
  display: flex; flex-direction: column; align-items: flex-start;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--c-dark); border-bottom: 1px solid var(--c-dark-line);
  padding: 1.25rem; gap: 1.1rem;
}
.nav-open .main-nav a { font-size: 1.1rem; display: block; padding: 0.25rem 0; }
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .main-nav ul { display: flex; }
  .main-nav { margin-right: 1.5rem; }
}

/* ---------- Sekcje ---------- */
.section { padding-block: 4rem; }
@media (min-width: 1024px) { .section { padding-block: 5.5rem; } }
.section-dark { background: var(--c-dark); color: #fff; }
.section-white { background: var(--c-surface); }
.section-head { margin-bottom: 2.5rem; max-width: 46rem; }
.section-head p { margin-top: 0.85rem; }

.page-hero { background: var(--c-dark); color: #fff; padding-block: 3.5rem; }
.page-hero p { margin-top: 0.85rem; }

/* Znak wodny: pasek palenia — jasny do ciemnego */
.roast-strip {
  height: 6px;
  background: linear-gradient(90deg, #d8c49a 0%, #c9903f 22%, #b06a2a 45%, #8a4a20 68%, #4d2b15 88%, #2a1a10 100%);
}

/* ---------- HERO ---------- */
.hero { background: var(--c-dark); color: #fff; padding-block: 3rem 3.5rem; overflow: hidden; }
.hero-grid { display: grid; gap: 2.75rem; }
.hero h1 { margin: 0.5rem 0 1.25rem; }
.hero h1 em { font-style: normal; color: var(--c-accent-lt); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; margin-top: 2rem; list-style: none; }
.hero-facts li { font-size: 0.9rem; color: var(--c-muted-dark); display: flex; align-items: baseline; gap: 0.5rem; }
.hero-facts strong { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: #fff; }
@media (min-width: 1024px) {
  .hero { padding-block: 4.5rem 5rem; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 4rem; }
}

/* ---------- Quiz: znajdz swoja kawe ---------- */
.quiz {
  background: var(--c-dark-2);
  border: 1px solid var(--c-dark-line);
  border-radius: 8px;
  padding: 1.5rem;
  position: relative;
}
@media (min-width: 640px) { .quiz { padding: 2rem; } }
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.quiz-step { font-size: 0.82rem; font-weight: 600; color: var(--c-muted-dark); font-variant-numeric: tabular-nums; }
.quiz-bar { height: 3px; background: var(--c-dark-line); border-radius: 2px; margin-bottom: 1.5rem; overflow: hidden; }
.quiz-bar i { display: block; height: 100%; background: var(--c-accent); width: 33.33%; transition: width var(--ease); }
.quiz h2 { font-size: 1.45rem; color: #fff; margin-bottom: 1.25rem; }
.quiz-opts { display: grid; gap: 0.6rem; }
.quiz-opt {
  display: flex; align-items: center; gap: 0.9rem;
  width: 100%; text-align: left;
  min-height: 56px; padding: 0.8rem 1rem;
  background: var(--c-dark); color: #fff;
  border: 1px solid var(--c-dark-line); border-radius: var(--radius);
  transition: border-color var(--ease), background var(--ease);
}
.quiz-opt:hover { border-color: var(--c-accent-lt); background: #17332a; }
.quiz-opt-t { flex: 1; }
.quiz-opt b { font-weight: 600; font-size: 0.98rem; display: block; }
.quiz-opt-t > span { display: block; font-size: 0.82rem; color: var(--c-muted-dark); margin-top: 1px; }
.quiz-opt em { font-style: normal; font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; color: var(--c-accent-lt); flex-shrink: 0; width: 1.5rem; text-align: center; }
.quiz-back {
  margin-top: 0.75rem; background: none; border: none; min-height: 44px; padding: 0.4rem 0.2rem;
  color: var(--c-muted-dark); font-size: 0.85rem; text-decoration: underline;
}
.quiz-back:hover { color: #fff; }
.quiz-skip { margin-top: 1.25rem; font-size: 0.82rem; color: var(--c-muted-dark); }
.quiz-skip a { color: var(--c-accent-lt); }

/* ---------- Sklep: uklad ---------- */
.shop { padding-block: 3.5rem; }
.shop-layout { display: grid; gap: 2rem; }
@media (min-width: 1024px) {
  .shop { padding-block: 5rem; }
  .shop-layout { grid-template-columns: 17.5rem 1fr; gap: 3rem; align-items: start; }
}

/* Panel smaku */
.taste {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 8px;
  padding: 1.35rem;
}
@media (min-width: 1024px) {
  .taste { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
.taste h2 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.taste > p { font-size: 0.87rem; color: var(--c-muted); margin-bottom: 1.4rem; }

.axis + .axis { margin-top: 1.4rem; }
.axis-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.15rem; }
.axis-head label { font-weight: 600; font-size: 0.95rem; }
.axis-val { font-size: 0.85rem; font-weight: 600; color: var(--c-accent-2); }
.axis input[type="range"] {
  width: 100%; height: 44px; margin: 0;
  background: transparent; -webkit-appearance: none; appearance: none;
}
.axis input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--c-accent) 0 var(--fill, 50%), var(--c-line) var(--fill, 50%) 100%);
}
.axis input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--c-line); }
.axis input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--c-accent); }
.axis input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; margin-top: -9px;
  border-radius: 50%; background: var(--c-surface);
  border: 3px solid var(--c-accent-2); cursor: grab;
}
.axis input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--c-surface); border: 3px solid var(--c-accent-2); cursor: grab;
}
.axis-ends { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--c-muted); margin-top: -0.35rem; }

.taste-sep { border: 0; border-top: 1px solid var(--c-line); margin: 1.5rem 0; }
.taste fieldset { border: 0; }
.taste legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.7rem; }
.brew-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; position: relative; }
.brew-chips label {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0.45rem 1.05rem;
  border: 1px solid var(--c-line); border-radius: 999px;
  background: var(--c-bg); font-size: 0.88rem; font-weight: 500;
  cursor: pointer; transition: all var(--ease);
}
.brew-chips input { position: absolute; opacity: 0; width: 0; height: 0; }
.brew-chips input:checked + label { background: var(--c-dark); border-color: var(--c-dark); color: #fff; }
.brew-chips input:focus-visible + label { outline: 3px solid var(--c-accent-2); outline-offset: 2px; }

.taste-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--c-line); }
.taste-count { font-size: 0.88rem; font-weight: 600; }
.taste-count b { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--c-accent-2); }
.taste-reset { background: none; border: 0; min-height: 44px; min-width: 44px; padding: 0.4rem 0.35rem; font-size: 0.85rem; color: var(--c-muted); text-decoration: underline; }
.taste-reset:hover { color: var(--c-text); }

/* Siatka kaw */
.shop-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.75rem; margin-bottom: 1.5rem; }
.shop-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.shop-head p { font-size: 0.9rem; color: var(--c-muted); }
.coffee-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .coffee-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .coffee-grid { grid-template-columns: repeat(3, 1fr); } }

.coffee {
  display: flex; flex-direction: column;
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: 8px; overflow: hidden;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.coffee:hover { border-color: var(--c-accent); box-shadow: 0 8px 24px rgba(19, 42, 33, 0.08); }
.coffee[hidden] { display: none; }
/* Kawy poza zakresem oznaczamy ramka i przygaszona paczka, NIE
   przezroczystoscia — opacity 0.55 zbija kontrast tekstu do 2,5:1. */
.coffee.is-off { border-style: dashed; border-color: var(--c-line); }
.coffee.is-off .bag-art { filter: saturate(0.3) brightness(0.85); }
.coffee.is-best { border-color: var(--c-accent-2); box-shadow: 0 0 0 1px var(--c-accent-2); }

/* Paczka kawy — czysty CSS, zero KB */
/* Dolny cien nie jest ozdoba — gwarantuje kontrast bialego napisu
   niezaleznie od tego, jak jasny kolor dostanie nowa kawa. */
.bag-art {
  position: relative; height: 9.5rem;
  background:
    linear-gradient(180deg, rgba(19, 42, 33, 0) 40%, rgba(19, 42, 33, 0.6) 100%),
    linear-gradient(165deg, var(--bag-a) 0%, var(--bag-b) 100%);
  display: flex; align-items: flex-end; padding: 1rem;
  border-bottom: 1px solid var(--c-line);
}
.bag-art::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1.5rem;
  background: rgba(19, 42, 33, 0.22);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.28);
}
.bag-art::after {
  content: ""; position: absolute; right: 1rem; top: 2.4rem;
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: rgba(19, 42, 33, 0.3);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25);
}
.bag-art-origin {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 2.1rem); line-height: 1;
  color: #fff; text-shadow: 0 1px 2px rgba(19, 42, 33, 0.35);
}
.bag-art-origin span { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.9; margin-bottom: 0.2rem; text-shadow: none; }

.coffee-tag {
  position: absolute; top: 2.3rem; left: 1rem;
  background: var(--c-surface); color: var(--c-accent-2);
  font-size: 0.72rem; font-weight: 700;
  padding: 0.2rem 0.55rem; border-radius: 2px;
}
.coffee-best {
  position: absolute; right: 0.75rem; bottom: 0.75rem;
  background: var(--c-accent-2); color: #fff;
  font-size: 0.72rem; font-weight: 700;
  padding: 0.25rem 0.6rem; border-radius: 2px;
}
.coffee-body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; flex-grow: 1; gap: 0.55rem; }
.coffee-origin { font-size: 0.82rem; font-weight: 600; color: var(--c-muted); }
.coffee h3 { font-size: 1.25rem; }
.coffee-notes { font-size: 0.92rem; color: var(--c-muted); }
.coffee-axes { display: grid; gap: 0.3rem; margin-top: 0.35rem; }

.ax { display: grid; grid-template-columns: 4.2rem 1fr 2rem; align-items: center; gap: 0.6rem; font-size: 0.78rem; }
.ax-k { font-weight: 600; color: var(--c-muted); }
.ax-t { height: 5px; border-radius: 3px; background: var(--c-line); overflow: hidden; }
.ax-t::after { content: ""; display: block; height: 100%; width: calc(var(--v) / 5 * 100%); background: var(--c-accent); border-radius: 3px; }
.ax-v { font-weight: 600; color: var(--c-muted); text-align: right; font-variant-numeric: tabular-nums; }
.coffee-detail-only .ax { grid-template-columns: 5rem 1fr 2.2rem; font-size: 0.85rem; }

.coffee-foot { margin-top: auto; padding-top: 0.9rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; border-top: 1px solid var(--c-line); }
.coffee-price { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.coffee-price span { font-family: var(--font-body); font-weight: 500; font-size: 0.8rem; color: var(--c-muted); }
.coffee-open {
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius);
  min-height: 44px; padding: 0.5rem 1rem; font-size: 0.88rem; font-weight: 600;
  transition: all var(--ease);
}
.coffee-open:hover { background: var(--c-dark); border-color: var(--c-dark); color: #fff; }

.shop-empty { border: 1px dashed var(--c-line); border-radius: 8px; padding: 2.5rem 1.5rem; text-align: center; }
.shop-empty h3 { margin-bottom: 0.5rem; }
.shop-empty p { color: var(--c-muted); font-size: 0.95rem; margin-bottom: 1.25rem; }
.shop-more { margin-top: 1.5rem; text-align: center; }
.shop-more button { background: none; border: 0; min-height: 44px; text-decoration: underline; color: var(--c-muted); font-size: 0.9rem; padding: 0.6rem 1rem; }
.shop-more button:hover { color: var(--c-text); }

/* ---------- Szuflada (produkt + koszyk) ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(19, 42, 33, 0.55);
  opacity: 0; visibility: hidden; transition: opacity var(--ease), visibility var(--ease);
}
body.drawer-open .scrim { opacity: 1; visibility: visible; }
body.drawer-open { overflow: hidden; }

.drawer {
  position: fixed; z-index: 95; top: 0; right: 0; bottom: 0;
  width: min(30rem, 100%);
  background: var(--c-bg);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--ease);
  visibility: hidden;
  box-shadow: -12px 0 40px rgba(19, 42, 33, 0.18);
}
.drawer.open { transform: none; visibility: visible; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem; background: var(--c-dark); color: #fff; flex-shrink: 0;
}
.drawer-head h2 { font-size: 1.05rem; color: #fff; }
.drawer-close {
  width: 44px; height: 44px; flex-shrink: 0;
  background: transparent; border: 1px solid var(--c-dark-line); border-radius: var(--radius);
  color: #fff; font-size: 1.1rem; line-height: 1;
}
.drawer-close:hover { border-color: var(--c-accent-lt); color: var(--c-accent-lt); }
.drawer-body { flex-grow: 1; overflow-y: auto; padding: 1.25rem; }
.drawer-foot { flex-shrink: 0; padding: 1.1rem 1.25rem; border-top: 1px solid var(--c-line); background: var(--c-surface); }

/* Wnetrze szuflady produktu */
.d-art { height: 7rem; border-radius: 8px; margin-bottom: 1.15rem; background: linear-gradient(165deg, var(--bag-a, #444) 0%, var(--bag-b, #222) 100%); display: flex; align-items: flex-end; padding: 1rem; }
.d-origin { font-size: 0.85rem; font-weight: 600; color: var(--c-muted); }
.d-title { font-size: 1.75rem; margin: 0.15rem 0 0.6rem; }
.d-notes { font-size: 1rem; color: var(--c-text); font-weight: 500; margin-bottom: 1.1rem; }
.d-spec { list-style: none; display: grid; gap: 0.5rem; margin: 1.25rem 0; padding: 1.1rem 0; border-block: 1px solid var(--c-line); }
.d-spec li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.75rem; font-size: 0.9rem; }
.d-spec dt, .d-spec .k { color: var(--c-muted); font-weight: 600; }
.d-story { font-size: 0.95rem; color: var(--c-muted); }
.d-story p + p { margin-top: 0.75rem; }
.d-recipe { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 8px; padding: 1rem 1.1rem; margin-top: 1.25rem; }
.d-recipe h3 { font-size: 0.95rem; margin-bottom: 0.6rem; }
.d-recipe ul { list-style: none; display: grid; gap: 0.35rem; font-size: 0.88rem; color: var(--c-muted); }
.d-recipe li strong { color: var(--c-text); font-weight: 600; }

.opt { margin-top: 1.4rem; }
.opt > span, .opt > label, .opt legend { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.55rem; }
.opt fieldset { border: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; position: relative; }
.seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg label {
  display: flex; flex-direction: column; justify-content: center; gap: 0.1rem;
  min-height: 52px; padding: 0.6rem 0.9rem; cursor: pointer;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 600; transition: all var(--ease);
}
.seg label small { font-weight: 500; font-size: 0.78rem; color: var(--c-muted); }
.seg input:checked + label { border-color: var(--c-accent-2); box-shadow: inset 0 0 0 1px var(--c-accent-2); }
.seg input:checked + label small { color: var(--c-accent-2); }
.seg input:focus-visible + label { outline: 3px solid var(--c-accent-2); outline-offset: 2px; }
.seg-3 { grid-template-columns: 1fr; }
.opt select {
  width: 100%; padding: 0.75rem 1rem; min-height: 44px;
  border: 1px solid var(--c-line); border-radius: var(--radius);
  background: var(--c-surface); color: var(--c-text);
}

.d-total { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.85rem; }
.d-total span { font-size: 0.9rem; color: var(--c-muted); }
.d-total strong { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; }
.d-save { font-size: 0.85rem; color: var(--c-accent-2); font-weight: 600; }

/* Koszyk */
.bag-lines { list-style: none; display: grid; gap: 1rem; }
.bag-line { display: grid; grid-template-columns: 3.25rem 1fr auto; gap: 0.9rem; padding-bottom: 1rem; border-bottom: 1px solid var(--c-line); }
.bag-line-art { height: 3.9rem; border-radius: var(--radius); background: linear-gradient(165deg, var(--bag-a, #444) 0%, var(--bag-b, #222) 100%); }
.bag-line h3 { font-size: 1rem; }
.bag-line-meta { font-size: 0.82rem; color: var(--c-muted); margin-top: 0.15rem; }
.bag-line-sub { font-size: 0.82rem; color: var(--c-accent-2); font-weight: 600; margin-top: 0.15rem; }
.bag-line-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.bag-line-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); }
.qty button { width: 44px; height: 44px; background: none; border: 0; font-size: 1.05rem; line-height: 1; color: var(--c-muted); }
.qty button:hover { color: var(--c-accent-2); }
.qty output { min-width: 1.6rem; text-align: center; font-size: 0.9rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.bag-remove { background: none; border: 0; min-height: 44px; font-size: 0.8rem; color: var(--c-muted); text-decoration: underline; padding: 0.2rem 0.2rem; }
.bag-remove:hover { color: var(--c-accent-2); }

.ship-meter { margin-bottom: 0.9rem; }
.ship-meter p { font-size: 0.85rem; color: var(--c-muted); margin-bottom: 0.4rem; }
.ship-meter p b { color: var(--c-accent-2); font-weight: 600; }
.ship-track { height: 5px; background: var(--c-line); border-radius: 3px; overflow: hidden; }
.ship-track i { display: block; height: 100%; background: var(--c-accent); transition: width var(--ease); }
.bag-total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.9rem; }
.bag-total span { font-size: 0.9rem; color: var(--c-muted); }
.bag-total strong { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }
.bag-empty { text-align: center; padding: 3rem 1rem; }
.bag-empty p { color: var(--c-muted); font-size: 0.95rem; margin-top: 0.5rem; }

/* Toast po dodaniu */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 120;
  transform: translate(-50%, 1.5rem);
  background: var(--c-dark); color: #fff;
  border: 1px solid var(--c-dark-line); border-radius: 999px;
  padding: 0.7rem 1.4rem; font-size: 0.9rem; font-weight: 500;
  opacity: 0; visibility: hidden; transition: all var(--ease);
  box-shadow: 0 10px 30px rgba(19, 42, 33, 0.25);
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Akcesoria ---------- */
.kit-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .kit-grid { grid-template-columns: repeat(3, 1fr); } }
.kit-item {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 8px;
  padding: 1.35rem; display: flex; flex-direction: column; gap: 0.5rem;
}
.kit-item h3 { font-size: 1.1rem; }
.kit-item p { font-size: 0.9rem; color: var(--c-muted); flex-grow: 1; }
.kit-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.75rem; padding-top: 0.85rem; border-top: 1px solid var(--c-line); }
.kit-foot .coffee-price { font-size: 1rem; }

/* ---------- Pasek informacyjny ---------- */
.info-bar { background: var(--c-dark-2); color: #fff; border-block: 1px solid var(--c-dark-line); }
.info-grid { display: grid; gap: 1.5rem; padding-block: 2rem; }
@media (min-width: 640px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info-item h3 { font-size: 1rem; color: var(--c-accent-lt); margin-bottom: 0.3rem; }
.info-item p { font-size: 0.88rem; color: var(--c-muted-dark); }

/* ---------- Wyjasnienie osi ---------- */
.axis-explain { display: grid; gap: 1.75rem; }
@media (min-width: 640px) { .axis-explain { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.axis-explain h3 { margin-bottom: 0.5rem; }
.axis-explain p { font-size: 0.95rem; color: var(--c-muted); }
.axis-explain .scale { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.9rem; }
.axis-explain .scale i { display: block; height: 8px; flex: 1; border-radius: 4px; }
.axis-explain .scale span { font-size: 0.78rem; color: var(--c-muted); white-space: nowrap; }
.scale-acidity i { background: linear-gradient(90deg, #cfd6c8, #c9622d); }
.scale-body i { background: linear-gradient(90deg, #e3ded1, #6b4a2f); }
.scale-roast i { background: linear-gradient(90deg, #d8c49a, #2a1a10); }

/* ---------- Opinie ---------- */
.reviews { display: grid; gap: 1.1rem; }
@media (min-width: 1024px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { background: var(--c-surface); border: 1px solid var(--c-line); border-left: 3px solid var(--c-accent); border-radius: var(--radius); padding: 1.5rem; }
.review blockquote { font-size: 0.98rem; }
.review footer { margin-top: 0.85rem; font-size: 0.82rem; color: var(--c-muted); }
.stars { color: var(--c-accent-2); font-size: 0.85rem; letter-spacing: 0.1em; margin-bottom: 0.6rem; }

/* ---------- Pasek CTA / subskrypcja ---------- */
.cta-band { background: var(--c-accent-2); color: #fff; }
.cta-band-inner { display: flex; flex-direction: column; gap: 1.25rem; padding-block: 3rem; align-items: flex-start; }
.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.cta-band p { max-width: 34rem; margin-top: 0.6rem; color: rgba(255, 255, 255, 0.88); }
.cta-band .btn { background: #fff; color: var(--c-accent-2); }
.cta-band .btn:hover { background: var(--c-dark); color: #fff; }
@media (min-width: 1024px) { .cta-band-inner { flex-direction: row; justify-content: space-between; align-items: center; gap: 3rem; } }

/* ---------- Tresc / podstrony ---------- */
.split { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }
.split-narrow { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .split-narrow { grid-template-columns: 1.25fr 0.75fr; gap: 4rem; align-items: start; } }

figure img { border-radius: 8px; }
figcaption { font-size: 0.82rem; color: var(--c-muted); margin-top: 0.6rem; }

.brew-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 8px; padding: 1.5rem; }
.brew-card + .brew-card { margin-top: 1.1rem; }
.brew-card h3 { font-size: 1.3rem; margin-bottom: 0.15rem; }
.brew-card > p { color: var(--c-muted); font-size: 0.95rem; margin-bottom: 1.1rem; }
.brew-specs { list-style: none; display: grid; gap: 0.5rem; padding: 1rem 0; margin-bottom: 1rem; border-block: 1px solid var(--c-line); }
.brew-specs li { display: grid; grid-template-columns: 8rem 1fr; gap: 0.75rem; font-size: 0.9rem; }
.brew-specs .k { color: var(--c-muted); font-weight: 600; }
.brew-steps { list-style: none; counter-reset: s; display: grid; gap: 0.7rem; }
.brew-steps li { counter-increment: s; padding-left: 2.25rem; position: relative; font-size: 0.93rem; color: var(--c-muted); }
.brew-steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 1.6rem; height: 1.6rem; display: flex; align-items: center; justify-content: center;
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 50%;
  font-size: 0.8rem; font-weight: 700; color: var(--c-accent-2);
}

.hours { list-style: none; display: grid; gap: 0.55rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.92rem; padding-bottom: 0.55rem; border-bottom: 1px solid var(--c-line); }
.hours li span:first-child { color: var(--c-muted); }
.hours li.closed span:last-child { color: var(--c-muted); }
.map-ph {
  aspect-ratio: 4 / 3; border-radius: 8px; border: 1px solid var(--c-line);
  background:
    repeating-linear-gradient(90deg, rgba(19,42,33,0.05) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg, rgba(19,42,33,0.05) 0 1px, transparent 1px 34px),
    linear-gradient(160deg, #e6e4da, #d5d3c8);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem; text-align: center;
}
.map-ph-pin { background: var(--c-surface); border-radius: var(--radius); padding: 0.9rem 1.15rem; box-shadow: 0 6px 18px rgba(19,42,33,0.12); font-size: 0.88rem; }
.map-ph-pin strong { display: block; margin-bottom: 0.2rem; }

.faq { display: grid; gap: 0.7rem; max-width: 46rem; }
.faq details { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); }
.faq summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--c-accent-2); font-size: 1.2rem; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 1.25rem 1.25rem; color: var(--c-muted); font-size: 0.95rem; }

/* ---------- Formularze ---------- */
.form-grid { display: grid; gap: 1.15rem; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; }
.field label .req { color: var(--c-accent-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 1rem; min-height: 44px;
  border: 1px solid var(--c-line); border-radius: var(--radius);
  background: var(--c-surface); color: var(--c-text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--c-accent-2); outline-offset: 0; border-color: var(--c-accent-2); }
.field-hint { font-size: 0.8rem; color: var(--c-muted); margin-top: 0.35rem; }
.checkbox-field { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.87rem; color: var(--c-muted); font-weight: 400; }
.checkbox-field input { width: 18px; height: 18px; min-height: 0; margin-top: 3px; flex-shrink: 0; }

/* Podsumowanie zamowienia */
.summary { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 8px; padding: 1.35rem; }
@media (min-width: 1024px) { .summary { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.summary h2 { font-size: 1.2rem; margin-bottom: 1.1rem; }
.summary-lines { list-style: none; display: grid; gap: 0.85rem; margin-bottom: 1.1rem; }
.summary-line { display: grid; grid-template-columns: 1fr auto; gap: 1rem; font-size: 0.9rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--c-line); }
.summary-line b { font-weight: 600; }
.summary-line-meta { display: block; color: var(--c-muted); font-size: 0.82rem; margin-top: 0.1rem; }
.summary-line-price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.92rem; padding-block: 0.35rem; }
.summary-row span:first-child { color: var(--c-muted); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid var(--c-line); }
.summary-total strong { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--c-dark); color: var(--c-muted-dark); font-size: 0.9rem; }
.footer-grid { display: grid; gap: 2rem; padding-block: 3.5rem 2rem; }
.footer-grid .footer-h { color: #fff; font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.9rem; }
.footer-grid ul { list-style: none; display: grid; gap: 0.5rem; }
.footer-grid a { color: var(--c-muted-dark); text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { color: var(--c-muted-dark); }
.footer-bottom { border-top: 1px solid var(--c-dark-line); padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; font-size: 0.78rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; } }

/* ---------- Reveal + utils ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.center { text-align: center; }
.demo-note {
  background: var(--c-dark-2); color: var(--c-muted-dark);
  border: 1px solid var(--c-dark-line); border-radius: var(--radius);
  padding: 0.85rem 1.1rem; font-size: 0.85rem;
}
.demo-note strong { color: #fff; }
