/* ============================================
   POSIŁKI REGENERACYJNE - style specyficzne dla podstrony
   ============================================ */

/* Sekcje docelowe anchorów - margines, żeby nie chowały się pod sticky
   nagłówkiem + subnav (ten sam wzorzec co na realizacje.css/kalkulator.css) */
#jak-dziala, #karta-prepaid, #raportowanie, #przepisy, #porownanie, #faq { scroll-margin-top: 140px; }

/* ============================================
   HERO (ciemny, wzorzec sitewide)
   ============================================ */
.page-hero { background: var(--dark); color: #fff; padding: 48px 0 64px; }
.page-hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 24px; }
.breadcrumb a { color: rgba(255,255,255,0.55); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb strong { color: rgba(255,255,255,0.9); font-weight: 500; }
.breadcrumb span { margin: 0 6px; }
.page-hero h1 { color: #fff; margin-bottom: 20px; }
.page-hero-desc { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,0.75); max-width: 540px; margin-bottom: 28px; }
.page-hero-media .media-placeholder { aspect-ratio: 4/3; border-radius: var(--radius-media);
  background: repeating-linear-gradient(135deg, #4a4a49 0, #4a4a49 10px, #444443 10px, #444443 20px); }
.page-hero-media .media-placeholder-label { color: rgba(255,255,255,0.4); }
.page-hero-media .media-placeholder-icon { color: rgba(255,255,255,0.35); }

.page-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

@media (min-width: 901px) { .page-hero-media .media-placeholder { min-height: 340px; } }
@media (max-width: 900px) {
  .page-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .page-hero-media .media-placeholder { min-height: 220px; }
}
@media (max-width: 600px) {
  .breadcrumb { display: none; }
  .page-hero-content { text-align: center; }
  .page-hero-desc { margin-left: auto; margin-right: auto; }
  .page-hero-actions { justify-content: center; }
}

/* ============================================
   PODNAWIGACJA (przejdź do)
   ============================================ */
.subnav { position: sticky; top: 80px; z-index: 80; background: var(--white); border-bottom: 1px solid var(--border); }
.subnav-inner { display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.subnav-label { font-size: 13px; color: var(--text-light); flex-shrink: 0; }
.subnav-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.subnav-pill {
  font-size: 14px; color: var(--dark);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 7px 16px; transition: all 0.15s; white-space: nowrap;
}
.subnav-pill:hover { border-color: var(--red); color: var(--red); background: var(--red-tint); }
@media (max-width: 900px) { .subnav { top: 64px; } }
@media (max-width: 680px) {
  .subnav-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .subnav-pills { width: 100%; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
}

/* ============================================
   SECTION HEADERS (wzorzec sitewide: odstęp h2 -> opis)
   ============================================ */
.section-intro { margin-top: 14px; }
.section-intro + .checklist,
.section-intro + .checklist-2col { margin-top: 28px; }

/* ============================================
   DEFINICJA (Czym są posiłki regeneracyjne)
   ============================================ */
.definicja-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.definicja-text { padding-right: 8px; }
.definicja-text .section-intro { margin-bottom: 20px; }
.definicja-lead { font-size: 17px; line-height: 1.7; color: var(--text-muted); margin-bottom: 0; }

.checklist-lg {
  gap: 0; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-card); box-shadow: var(--shadow-sm); padding: 8px 32px;
}
.checklist-lg .checklist-item {
  font-size: 17px; line-height: 1.6; gap: 16px; padding: 22px 0;
  border-bottom: 1px solid var(--border-light);
}
.checklist-lg .checklist-item:last-child { border-bottom: none; }
.checklist-lg .check-icon { width: 28px; height: 28px; margin-top: 0; }

@media (max-width: 900px) {
  .definicja-grid { grid-template-columns: 1fr; gap: 32px; }
  .definicja-text { padding-right: 0; }
}

/* ============================================
   KORZYŚCI (4 karty)
   ============================================ */
.korzysci-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 32px; }
.korzysci-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 32px 28px; box-shadow: var(--shadow-sm); text-align: center; }
.korzysci-card-icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--red-tint); color: var(--red);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.korzysci-card-icon svg { width: 22px; height: 22px; stroke-width: 2; }
.korzysci-card h3 { font-size: 17px; margin-bottom: 8px; }
.korzysci-card p { font-size: 15px; color: var(--text-muted); line-height: 1.6; }

@media (max-width: 900px) { .korzysci-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .korzysci-grid { grid-template-columns: 1fr; } }

.automat-gallery-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 40px; }
.automat-gallery-item { aspect-ratio: 3/4; border-radius: var(--radius-media); overflow: hidden; }
.automat-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 700px) { .automat-gallery-row { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
@media (max-width: 420px) { .automat-gallery-row { grid-template-columns: repeat(2, 1fr); } }

/* ============================================
   JAK DZIAŁA USŁUGA (5 kroków - pozioma oś desktop, pionowo mobile)
   ============================================ */
.proces-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 40px; position: relative; }
.proces-step { position: relative; text-align: center; }
.proces-step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff;
  font-family: var(--font-head); font-size: 18px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.proces-step h3 { font-size: 17px; margin-bottom: 8px; }
.proces-step p { font-size: 15px; color: var(--text-muted); line-height: 1.6; }

@media (max-width: 900px) {
  .proces-steps { grid-template-columns: 1fr; gap: 0; text-align: left; }
  .proces-step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding-bottom: 28px; }
  .proces-step:not(:last-child) { border-left: 2px solid var(--border); margin-left: 21px; padding-left: 24px; }
  .proces-step-num { margin: 0; }
  .proces-step:not(:last-child) { margin-left: 0; border-left: none; }
}

.gallery-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gallery-item { aspect-ratio: 1/1; overflow: hidden; border-radius: var(--radius-media); background: var(--surface); }
.gallery-item img { width: 100%; height: 100%; object-fit: contain; display: block; }

@media (max-width: 900px) { .gallery-row { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (max-width: 480px) { .gallery-row { grid-template-columns: repeat(2, 1fr); } }

/* ============================================
   KARTA PREPAID
   ============================================ */
.karta-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 8px; }
.karta-media { border-radius: var(--radius-media); overflow: hidden; aspect-ratio: 4/3; }
.karta-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 900px) {
  .karta-split { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================
   RAPORTOWANIE
   ============================================ */
.raport-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; margin-top: 8px; }
.raport-split > * { min-width: 0; }
.raport-table-wrap { border-radius: var(--radius-card); overflow-x: auto; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.raport-table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: 13px; }
.raport-table th { background: var(--dark); color: #fff; text-align: left; padding: 10px 14px; font-weight: 600; }
.raport-table td { padding: 10px 14px; border-bottom: 1px solid var(--border-light); color: var(--text-muted); background: var(--white); }
.raport-table tr:last-child td { border-bottom: none; }
.raport-caption { font-size: 12px; color: var(--text-light); margin-top: 10px; font-style: italic; }

@media (max-width: 900px) { .raport-split { grid-template-columns: 1fr; gap: 32px; } }

/* ============================================
   PRZEPISY
   ============================================ */
#przepisy h2 { margin-bottom: 32px; }
.przepisy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 40px; }
.przepisy-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--border-light); }
.przepisy-item-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--red-tint); color: var(--red);
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.przepisy-item h3 { font-size: 17px; margin-bottom: 6px; }
.przepisy-item p { font-size: 15px; color: var(--text-muted); line-height: 1.6; }

.legal-note {
  font-style: italic; color: var(--text-light);
  padding-top: 20px; border-top: 1px solid var(--border-light);
  font-size: 13px; line-height: 1.65; margin-top: 32px;
}
.legal-note strong { color: var(--text-muted); }

@media (max-width: 768px) { .przepisy-grid { grid-template-columns: 1fr; } }

/* ============================================
   PORÓWNANIE (tabela)
   ============================================ */
.compare-table-wrap { overflow-x: auto; margin-top: 40px; border-radius: var(--radius-card); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table th { text-align: left; padding: 18px 22px; font-size: 15px; font-weight: 600; background: var(--surface); color: var(--dark); border-bottom: 1px solid var(--border); }
.compare-table th.is-highlight { background: var(--dark); color: #fff; }
.compare-table td { padding: 16px 22px; font-size: 15px; color: var(--text-muted); border-bottom: 1px solid var(--border-light); background: var(--white); }
.compare-table td.is-highlight { background: var(--red-tint); font-weight: 600; color: var(--red); }
.compare-table tr:last-child td { border-bottom: none; }

/* ============================================
   DLA JAKICH FIRM
   ============================================ */
.dla-firm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 32px; }
.dla-firm-col h3 { font-size: 17px; margin-bottom: 16px; }
@media (max-width: 768px) { .dla-firm-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ============================================
   FAQ (grupowane, wzorzec sitewide)
   ============================================ */
#faq .section-header { text-align: center; margin-bottom: 32px; }

