* {
  font-family: "Gantari", sans-serif !important;
}
.in-index .benefitBanner {
  border-bottom: none;
  padding: 50px 0 30px;
}
.in-index .footer-banners {
  margin: 0;
  padding: 0;
  border-bottom: none;
}
.categories__wrapper * {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  list-style: none;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
}
.categories__wrapper {
  margin: 0 auto;
  padding: 20px 0 50px;
  max-width: 1400px;
}
.categories__title {
  margin-bottom: 40px;
  font-size: 25px;
  text-align: center;
}
.categories__list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

/* ✅ Desktop: přesně 3 bannery v řadě */
.categories__item {
  width: calc((100% - 60px) / 3); /* 3 položky v řadě → 2x30px gap */
  aspect-ratio: 1 / 0.7;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  overflow: hidden;
  background-color: #f7f7f7;
}

/* Obsah dlaždice */
.categories__link {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.categories__link img {
  margin: 0 auto;
  width: 85%;
  height: 85%;
  object-fit: contain;
  transform: translateY(50%) !important;
  transition: all 0.3s ease-in-out !important;
  display: block;
}
.in-index .categories__link:hover img {
  transform: translateY(40%) !important;
}
.categories__btn {
  position: absolute;
  padding: 5px 15px;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  border: none;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 600;
  color: black;
  background-color: transparent;
  text-transform: uppercase;
}

/* ✅ Tablet & Mobil: 2 bannery v řadě */
@media (max-width: 976px) {
  .categories__item {
    width: calc((100% - 30px) / 2); /* 2 položky v řadě → 1x30px gap */
    aspect-ratio: 1 / 1;
  }
}

/* Malé displeje */
@media (max-width: 767px) {
  .categories__wrapper {
    padding: 20px 0;
  }
  .categories__title {
    margin-bottom: 20px;
    font-size: 22px;
    text-align: left;
  }
  .categories__btn {
    font-size: 18px;
  }
}

/* Extra malé displeje */
@media (max-width: 500px) {
  .categories__item:nth-child(3) .categories__link img {
    transform: translateY(60%) !important;
  }
  .in-index .categories__item:nth-child(3) .categories__link:hover img {
    transform: translateY(50%) !important;
  }
  .categories__btn {
    width: 100%;
    padding: 5px 10px;
    font-size: 14px;
    text-wrap: wrap;
    line-height: 1.4;
  }
}
