/* ============================================================
   BASE — reset, typografia bazowa, elementy wspólne
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* Film grain — subtelna faktura na ciemnych powierzchniach (fixed, pointer-events:none = bez kosztu repaintu) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--red-l); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }

/* Bebas Neue (display) — kondensowany, caps-only: potrzebuje oddechu w trackingu.
   Jeden spójny tracking dla WSZYSTKICH elementów Bebas (wcześniej ceny/etykiety miały 0). */
.font-display, .section-title, .hero h1, .brand__name, .reco h3, .mcard__price, .reco__price,
.hot__item .p, .pricelist li .p, .about__stat b, .menu-order-cta strong, .cookie__text b {
  font-family: var(--font-display);
  letter-spacing: .03em;
  line-height: .98;
  font-weight: 400; /* Bebas ma jedną wagę; „ciężar" daje sam krój */
}

/* --- Layout helpers --- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* --- Nagłówki sekcji (styl marki: uppercase + czerwony podkreślnik) --- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red-l);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); }
.section-title {
  font-family: var(--font-display);
  font-size: var(--t-xl);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-top: .6rem;
  text-wrap: balance; /* równoważy linie, zapobiega sierotom typu samotne „14" */
}
.section-lead { color: var(--ink-2); max-width: 62ch; margin-top: .9rem; font-size: var(--t-md); }

/* --- Przyciski --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: var(--tap); padding: .8rem 1.5rem;
  border-radius: var(--r-pill); font-weight: 700; font-size: var(--t-sm);
  letter-spacing: .01em; transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn:not(:disabled):hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: linear-gradient(180deg, var(--red-l), var(--red)); color: var(--on-accent); box-shadow: var(--shadow-red), inset 0 1px 0 rgba(255,255,255,.18); }
.btn--primary:hover { background: linear-gradient(180deg, var(--red-l), var(--red-l)); box-shadow: 0 18px 42px -12px rgba(225,27,34,.62), inset 0 1px 0 rgba(255,255,255,.22); }
.btn--ghost { background: rgba(245,241,233,.06); color: var(--ink); border: 1px solid var(--line-2); }
.btn--ghost:hover { background: rgba(245,241,233,.12); border-color: var(--ink-3); }
.btn--lg { padding: 1rem 1.9rem; font-size: var(--t-base); }

/* --- Utility --- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
