/* ===== HOMEPAGE – horní blok: H1, podtitul a 4 karty kategorií (#mp-hp), 1. 11. 2026 =====
   Podle plátna „Metrpiva – homepage s kartami kategorií“, verze 3f.
   Barvy z design systému: hneda-900 #2A1E14, hneda-800 #3A2618, pena-50 #F7F3EC,
   zlata-400 #F2B31B, jantar-700 #8F5E00.
   Kontrasty: #F7F3EC na #3A2618 12,9 : 1, #F2B31B na #2A1E14 8,7 : 1, #8F5E00 na #F7F3EC 5,0 : 1. */

/* Banner s blokem přes celou šířku. Bannery vedle karuselu dostávají
   v Apollu jen polovinu šířky (flex 0 0 50 %, max-width 50 %). */
html body .next-to-carousel-banners .banner-wrapper:has(#mp-hp) {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
}
html body .banner-wrapper > span:has(> #mp-hp) {
  display: block;
}

/* Menší mezera pod hlavním menu: obsah homepage má v Apollu od 992 px
   margin-top 60 px (.products-group). Jen na homepage. */
html body.in-index .content-wrapper.products-group {
  margin-top: 20px;
}

/* Šířka bloku = šířka obsahu stránky, karty stejně široké jako produkty
   (na 1440 px 4 × 329,5 px, mezera 20 px jako mezi produkty).
   Boční 10 px vyrovnává záporný okraj řady bannerů. */
html body #mp-hp {
  box-sizing: border-box;
  max-width: none;
  margin: 0;
  padding: 24px 10px 56px;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #2A1E14;
}
html body #mp-hp *,
html body #mp-hp *::before,
html body #mp-hp *::after {
  box-sizing: border-box;
}

/* Úvod: H1 se zlatou linkou a podtitul */
html body #mp-hp .mp-hp__intro {
  max-width: 780px;
  margin: 0 auto 32px;
  text-align: center;
}
html body #mp-hp .mp-hp__title {
  margin: 0 0 16px;
  padding: 0;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: normal;
  text-transform: none;
  text-align: center;
  color: #2A1E14;
}
html body #mp-hp .mp-hp__title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 2px;
  background-color: #F2B31B;
}
html body #mp-hp .mp-hp__claim {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.5;
  color: #3A2618;
}

/* Karty kategorií */
html body #mp-hp .mp-hp__tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
html body #mp-hp a.mp-hp__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background-color: #fff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, .08);
  text-decoration: none;
  transition: box-shadow .15s;
}
html body #mp-hp a.mp-hp__card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, .16);
  text-decoration: none;
}
html body #mp-hp a.mp-hp__card:focus-visible {
  outline: 3px solid #F2B31B;
  outline-offset: 3px;
}
html body #mp-hp .mp-hp__card img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  background-color: #fff;
}
/* Apollo zvětšuje obrázky v bannerech při najetí (scale 1.02). Tady nic nehýbe. */
html body #mp-hp .mp-hp__card img,
html body #mp-hp a.mp-hp__card:hover img,
html body #mp-hp a.mp-hp__card:focus-visible img {
  transform: none;
  transition: none;
}
html body #mp-hp .mp-hp__band {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 9px 12px;
  border-top: 3px solid #F2B31B;
  background-color: #3A2618;
  color: #F7F3EC;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  transition: background-color .15s, color .15s;
}
html body #mp-hp a.mp-hp__card:hover .mp-hp__band,
html body #mp-hp a.mp-hp__card:focus-visible .mp-hp__band {
  background-color: #2A1E14;
  color: #F2B31B;
}

/* Odkaz pod kartami */
html body #mp-hp .mp-hp__more {
  margin: 26px 0 0;
  text-align: center;
  font-weight: 700;
}
html body #mp-hp .mp-hp__more a {
  color: #8F5E00;
  text-decoration: underline;
  text-underline-offset: 3px;
}
html body #mp-hp .mp-hp__more a:hover,
html body #mp-hp .mp-hp__more a:focus-visible {
  color: #3A2618;
}

/* Tablet */
@media (max-width: 1100px) {
  html body #mp-hp .mp-hp__band {
    font-size: 18px;
  }
}

/* Mobil: karty 2 + 2 */
@media (max-width: 767px) {
  html body #mp-hp {
    padding: 20px 0 40px;
  }
  html body #mp-hp .mp-hp__intro {
    margin-bottom: 24px;
  }
  html body #mp-hp .mp-hp__title {
    font-size: 32px;
  }
  html body #mp-hp .mp-hp__title::after {
    width: 52px;
    margin-top: 12px;
  }
  html body #mp-hp .mp-hp__claim {
    font-size: 18px;
  }
  html body #mp-hp .mp-hp__tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  html body #mp-hp .mp-hp__band {
    min-height: 48px;
    padding: 6px 8px;
    font-size: 15px;
  }
}
