.home-hero.home-hero-split {
  display: grid !important;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: stretch;
  margin: 20px 0 32px;
  padding: 0 !important;
  background: none !important;
  border: 0;
  box-shadow: none;
}

.home-hero-split .home-hero-feature {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 330px;
  padding: clamp(24px, 3vw, 42px);
  overflow: hidden;
  border-radius: 18px;
  color: #fff;
  background-image: linear-gradient(90deg, rgb(7 34 25 / 78%), rgb(7 34 25 / 20%)), url('/assets/rybarske-hero-malovany.webp');
  background-size: cover;
  background-position: center;
}

.home-hero-split .home-hero-content {
  width: 100%;
  max-width: 650px !important;
  margin: 0 !important;
}

.home-hero-split .home-hero-content h1 {
  max-width: 18ch;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(28px, 3vw, 43px);
  line-height: 1.08;
}

.home-hero-guides {
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 330px;
  overflow: hidden;
}

.home-hero-guides-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px 2px;
}

.home-hero-guides-head .home-hero-guides-label {
  padding: 0;
}

.home-hero-guides-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #65746a;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.home-hero-guides-controls button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #d8e2db;
  border-radius: 50%;
  background: #fff;
  color: #28533a;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.home-hero-guides-controls button:hover:not(:disabled) {
  border-color: #75927d;
  background: #eff5f0;
}

.home-hero-guides-controls button:disabled {
  opacity: .38;
  cursor: default;
}

.home-hero-guides-track {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding: 1px 5px 2px 1px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #b8c9bc transparent;
  overscroll-behavior: contain;
}

.home-hero-guide-card {
  gap: 11px;
  min-height: 72px;
  padding: 8px 10px;
  border-radius: 12px;
  box-shadow: 0 2px 9px rgb(20 45 30 / 4%);
}

.home-hero-guide-card img {
  flex-basis: 72px;
  width: 72px;
  height: 54px;
  border-radius: 8px;
}

.home-hero-guide-copy { gap: 4px; }

.home-hero-guide-copy strong {
  font-size: 12.5px;
  line-height: 1.28;
}

.home-hero-guide-copy small { font-size: 11px; }

@media (max-width: 850px) {
  .home-hero-guides { min-height: 300px; }
  .home-hero-guide-card { min-height: 68px; }
}

.home-hero-split .home-hero-content > p {
  max-width: 48ch;
  margin: 0 0 22px;
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
}

.home-hero-split .home-hero-search {
  max-width: 620px;
  margin: 0;
}

.home-hero-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.home-hero-topics a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 999px;
  background: rgb(9 39 28 / 55%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  backdrop-filter: blur(5px);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.home-hero-topics a:hover,
.home-hero-topics a:focus-visible {
  border-color: #fff;
  background: #fff;
  color: #175c3b;
  outline: none;
}

.home-hero-guides {
  display: grid;
  grid-template-rows: auto repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.home-hero-guides-label {
  align-self: end;
  padding: 0 4px 2px;
  color: #355c43;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.home-hero-guide-card {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  min-height: 82px;
  padding: 10px 12px;
  border: 1px solid #dce5df;
  border-radius: 14px;
  background: #fff;
  color: #1d2922;
  text-decoration: none;
  box-shadow: 0 4px 14px rgb(20 45 30 / 5%);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.home-hero-guide-card:hover {
  transform: translateY(-2px);
  border-color: #9cb8a4;
  box-shadow: 0 8px 20px rgb(20 45 30 / 10%);
}

.home-hero-guide-card img {
  flex: 0 0 92px;
  width: 92px;
  height: 68px;
  object-fit: cover;
  border-radius: 9px;
  background: #eef2ee;
}

.home-hero-guide-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.home-hero-guide-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: #24352a;
  font-size: 14px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-hero-guide-copy small {
  color: #386247;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 850px) {
  .home-hero.home-hero-split {
    grid-template-columns: minmax(0, .9fr) minmax(260px, 1.1fr);
  }

  .home-hero-split .home-hero-feature {
    min-height: 300px;
  }

  .home-hero-guide-card img {
    flex-basis: 76px;
    width: 76px;
    height: 62px;
  }
}

@media (max-width: 640px) {
  .home-hero.home-hero-split {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
  }

  .home-hero-split .home-hero-feature {
    min-height: 300px;
    padding: 24px 20px;
    background-image: linear-gradient(90deg, rgb(7 34 25 / 78%), rgb(7 34 25 / 25%)), url('/assets/rybarske-hero-mobile.webp');
    background-position: center;
  }

  .home-hero-split .home-hero-content h1 {
    font-size: clamp(27px, 8vw, 36px);
  }

  .home-hero-topics {
    gap: 6px;
    margin-top: 12px;
  }

  .home-hero-topics a {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 12px;
  }

  .home-hero-guides {
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .home-hero-guides-track {
    grid-auto-flow: column;
    grid-auto-columns: minmax(245px, 82%);
    grid-template-columns: none;
    grid-template-rows: 1fr;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
  }

  .home-hero-guide-card { scroll-snap-align: start; }

  .home-hero-guides-controls button {
    width: 32px;
    height: 32px;
  }
}

/* Keep the hero and the advice carousel in one balanced, fixed-height row. */
@media (min-width: 641px) {
  .home-hero.home-hero-split {
    grid-template-rows: 380px;
    align-items: stretch;
  }

  .home-hero-split .home-hero-feature,
  .home-hero-split .home-hero-guides {
    height: 380px;
    min-height: 0;
    max-height: 380px;
  }

  .home-hero-split .home-hero-guides {
    grid-template-rows: 30px minmax(0, 1fr);
  }

  .home-hero-split .home-hero-guides-track {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .home-hero.home-hero-split {
    grid-template-rows: auto auto;
    align-items: start;
  }

  .home-hero-split .home-hero-feature {
    height: auto;
    min-height: 300px;
  }

  .home-hero-split .home-hero-guides {
    width: 100%;
    height: auto;
    max-height: none;
    min-height: 0;
  }

  .home-hero-split .home-hero-guides-track {
    height: 84px;
    min-height: 84px;
    grid-auto-columns: minmax(245px, 82%);
  }
}
