/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }
svg { display: block; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (max-width: 1240px) {
  .container, .navbar-inner, .hero-inner, .benefits-grid { padding-left: 40px; padding-right: 40px; }
}
@media (max-width: 600px) {
  .container, .navbar-inner, .hero-inner, .benefits-grid { padding-left: 20px; padding-right: 20px; }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; line-height: 1.2; color: var(--dark); }
h1 { font-size: clamp(36px, 4vw, 56px); }
h2 { font-size: clamp(28px, 3vw, 40px); }
h3 { font-size: clamp(20px, 2vw, 26px); }
h4 { font-size: 18px; }

.section-label {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
  display: block;
}

.text-highlight {
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius-btn);
  padding: 2px 8px;
  font-weight: 400;
}

/* ============================================
   SECTION BASE
   ============================================ */
.section     { padding: 64px 0 96px; }
.section-sm  { padding: 44px 0 64px; }
.section-lg  { padding: 88px 0 120px; }

@media (max-width: 600px) {
  .section     { padding: 44px 0 64px; }
  .section-sm  { padding: 32px 0 44px; }
  .section-lg  { padding: 56px 0 80px; }
}
.section-dark     { background: var(--dark); }
.section-red      { background: var(--red); }
.section-tint     { background: var(--surface); }
.section-red-tint { background: var(--red-tint); }

.section-header { margin-bottom: 56px; }
.section-header-center { text-align: center; }
.section-header-center .section-header-desc { margin: 0 auto; }
.section-header h2 { margin-bottom: 16px; }
.section-header-desc {
  font-size: 17px; color: var(--text-muted);
  max-width: 560px; line-height: 1.65;
}

.section-divider { border: none; border-top: 1px solid var(--border); }

/* ============================================
   MEDIA PLACEHOLDER
   Wzór spójny z mockupem "Automat i posiłki":
   szare ukośne paski + podpis opisujący docelowe zdjęcie.
   Podmień <img src> na docelowy plik - placeholder zniknie
   automatycznie (onerror), etykieta zostaje widoczna do czasu podmiany.
   ============================================ */
.media-placeholder {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, #DCDCDB, #DCDCDB 10px, #E8E8E7 10px, #E8E8E7 20px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-placeholder-label {
  position: relative;
  z-index: 0;
  font-family: var(--font-body);
  font-size: 12px;
  color: #8A8A89;
  text-align: center;
  padding: 12px;
  max-width: 80%;
  line-height: 1.4;
}
