/* ============================================
   AUTOMAT I POSIŁKI - style specyficzne dla podstrony
   ============================================ */

/* ============================================
   HERO (jasny, z breadcrumbem)
   ============================================ */
.hero { background: var(--surface); padding: 48px 0 64px; }
.hero-breadcrumb { font-size: 13px; color: var(--text-light); margin-bottom: 22px; }
.hero-breadcrumb a { color: var(--text-light); }
.hero-breadcrumb a:hover { color: var(--red); }
.hero-breadcrumb strong { color: var(--dark); font-weight: 500; }
.hero-breadcrumb span { margin: 0 6px; }
.hero-desc { font-size: 18px; color: var(--text-muted); line-height: 1.6; margin-bottom: 28px; max-width: 520px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero .split-media .media-placeholder { aspect-ratio: 4/3; border-radius: var(--radius-media); }

/* min-height tylko na desktopie - w połączeniu z aspect-ratio na węższych
   ekranach potrafi wymusić szerokość większą niż kolumna (przelicza width
   z min-height*ratio), co wypychało zdjęcie poza container na mobile. */
@media (min-width: 901px) {
  .hero .split-media .media-placeholder { min-height: 320px; }
}
@media (max-width: 600px) {
  .hero { padding: 36px 0 44px; }
  .hero-breadcrumb { display: none; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* Domyślny styl leadu pod nagłówkiem sekcji (nadpisywany per-sekcja gdzie potrzeba) */
.section-intro { font-size: 17px; color: var(--text-muted); line-height: 1.65; max-width: 640px; margin-top: 12px; }

/* ============================================
   JAK TO DZIAŁA - 3 kroki (numer + ikona)
   ============================================ */
.mini-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mini-step-card { background: var(--white); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); padding: 28px 26px; }
.mini-step-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.mini-step-top .step-badge { margin-bottom: 0; flex-shrink: 0; }
.mini-step-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: var(--red-tint); color: var(--red);
  display: flex; align-items: center; justify-content: center;
}
.mini-step-icon svg { width: 20px; height: 20px; stroke-width: 2; }
.mini-step-card h3 { font-size: 18px; margin-bottom: 8px; }
.mini-step-card p { font-size: 15px; color: var(--text-muted); line-height: 1.6; }

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

/* ============================================
   SPECYFIKACJA AUTOMATU
   ============================================ */
.spec-card { border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); background: var(--white); }
.spec-card-head { background: var(--dark); color: #fff; font-family: var(--font-head); font-size: 17px; font-weight: 500; padding: 18px 28px; }
.spec-row { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 16px 28px; border-bottom: 1px solid var(--border-light); font-size: 15px; }
.spec-row:last-child { border-bottom: none; }
.spec-row span:first-child { color: var(--text-light); }
.spec-row span:last-child { color: var(--dark); font-weight: 500; text-align: right; }

@media (max-width: 480px) {
  .spec-row { grid-template-columns: 110px 1fr; padding: 16px 20px; }
}

/* ============================================
   ZOBACZ, GDZIE SPRAWDZA SIĘ AUTOMAT
   ============================================ */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.location-card {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--white); border-left: 3px solid var(--red);
  border-radius: var(--radius-card); box-shadow: var(--shadow-sm); padding: 26px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.location-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.location-card-icon {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 10px;
  background: var(--red-tint); color: var(--red);
  display: flex; align-items: center; justify-content: center;
}
.location-card-icon svg { width: 26px; height: 26px; stroke-width: 2; }
.location-card h3 { font-size: 18px; margin-bottom: 6px; }
.location-card p { font-size: 14px; color: var(--text-muted); line-height: 1.55; margin-bottom: 10px; }

@media (max-width: 768px) {
  .location-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .location-card { flex-direction: column; align-items: center; text-align: center; }
}

/* ============================================
   KLUCZOWE INFORMACJE
   ============================================ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 26px; }
.feature-card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--red-tint); color: var(--red);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-card-icon svg { width: 22px; height: 22px; stroke-width: 2; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } .feature-card { text-align: center; } .feature-card-icon { margin-left: auto; margin-right: auto; } }

/* ============================================
   AUTOMAT W TRZECH MODELACH (sekcja ciemna)
   ============================================ */
#modele-teaser h2 { color: #fff; }
#modele-teaser .section-intro { color: rgba(255,255,255,0.7); }
.models-note {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: rgba(255,255,255,0.06); border-radius: var(--radius-card); padding: 24px 32px; margin-top: 24px;
}
.models-note p { color: rgba(255,255,255,0.85); font-size: 16px; line-height: 1.6; max-width: 640px; }

@media (max-width: 600px) { .models-note { flex-direction: column; text-align: center; } .models-note .btn { width: 100%; justify-content: center; } }

/* ============================================
   POSIŁKI - tagi, cechy, galeria
   ============================================ */
.tag-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 40px; }
.tag-pill { background: var(--red-tint); color: var(--red); font-size: 14px; padding: 8px 18px; border-radius: var(--radius-pill); }

.mini-features-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 48px; }
.mini-feature-icon { width: 22px; height: 22px; color: var(--red); margin-bottom: 12px; }
.mini-feature-icon svg { width: 100%; height: 100%; stroke-width: 2; }
.mini-feature h4 { font-size: 15px; color: var(--dark); font-weight: 600; margin-bottom: 6px; }
.mini-feature p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.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) { .mini-features-row { grid-template-columns: 1fr 1fr; } .gallery-row { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (max-width: 480px) { .mini-features-row { grid-template-columns: 1fr; } .gallery-row { grid-template-columns: repeat(2, 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); } }

/* ============================================
   PRZYKŁADOWE DANIA - bez paskowanego tła placeholdera pod zdjęciami
   ============================================ */
#przykladowe-dania .case-study-media { background: var(--white); }

/* ============================================
   MOBILE - wyśrodkowanie nagłówków sekcji (spójnie z resztą serwisu)
   ============================================ */
@media (max-width: 600px) {
  .spec-card-head, .mini-step-top, .models-note, .mini-step-card { text-align: center; }
  .mini-step-top { justify-content: center; }
  /* nadpisuje sitewide ".step-badge{margin:auto}" (components.css) - tu badge
     musi zostać obok ikony, a nie wycentrować się osobno w wierszu flex */
  .mini-step-top .step-badge { margin-left: 0; margin-right: 0; }
  #przykladowe-dania .section-header { flex-direction: column; align-items: center; text-align: center; }
  #przykladowe-dania .section-header .btn { width: 100%; justify-content: center; }

  #posilki .section-header,
  #posilki .tag-pills,
  #posilki .mini-feature { text-align: center; }
  #posilki .tag-pills { justify-content: center; }
  #posilki .mini-feature { align-items: center; }
  #posilki .mini-feature-icon { margin-left: auto; margin-right: auto; }
}
