/* Polecani — bez tła sekcji; okna specjalizacji bez zmian */
.home-featured {
  --feat-ink: #2b2d38;
  --feat-teal: #32c4d6;
  --feat-teal-deep: #249eb0;
  --feat-muted: #888887;
  --feat-window: #f3f7fa;
  position: relative;
  /* Taki sam odstęp nad tytułem jak nad „Jesteś operatorem?” (52px) */
  padding: 52px 0 56px;
  background: transparent;
}

.home-featured__intro {
  max-width: 40rem;
  margin: 0 0 28px;
  padding: 0;
  background: transparent;
}

.home-featured__title {
  margin: 0;
  color: var(--feat-ink);
  font-family: "Roboto", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

/* Okna specjalizacji — tło jak po wyszukiwaniu + delikatna obwódka */
.home-featured__group {
  margin: 0 0 40px;
  padding: 20px 20px 16px;
  border-radius: 16px;
  border: 1px solid #cfd8e0;
  background: var(--feat-window);
  box-sizing: border-box;
}

.home-featured__group:last-of-type {
  margin-bottom: 0;
}

.home-featured__group-head {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 0 0 14px;
  min-width: 0;
}

.home-featured__group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  min-width: 0;
  color: var(--feat-ink);
  font-family: "Roboto", sans-serif;
  /* Nieco mniejsze niż „Polecani operatorzy” (28px) */
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-featured__group-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: var(--feat-ink);
  line-height: 0;
}

.home-featured__group-icon svg,
.home-featured__group-icon img {
  display: block;
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
}

.home-featured__group-icon svg:not([fill="none"]) path {
  stroke: none;
}

.home-featured__group-icon svg[fill="none"] path[fill]:not([fill="none"]),
.home-featured__group-icon svg[fill="none"] circle[fill]:not([fill="none"]) {
  fill: currentColor;
  stroke: none;
}

.home-featured__group-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-featured__group-head:has(+ .home-featured__group-desc) {
  margin-bottom: 6px;
}

.home-featured__group-desc {
  margin: 0 0 14px;
  max-width: 52rem;
  color: var(--feat-muted);
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-featured__tiles.search__list {
  margin: 0;
  padding: 0;
  background: transparent;
}

/* Desktop: 4 kafelki; mobile: 2 */
.home-featured__tiles.search__list.is-two-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  width: 100%;
  padding-top: 0;
}

.home-featured__tiles .search-profile {
  margin: 0;
  height: 100%;
  background-color: #fff;
}

/* Nazwy i miasta bez zawijania; specjalizacje pod zdjęciem — zawijaj */
.home-featured__tiles.search__list.is-two-columns .search-profile__title--header,
.home-featured__tiles.search__list.is-two-columns .search-profile__city,
.home-featured__tiles.search__list.is-two-columns .search-profile__location {
  white-space: nowrap;
}

.home-featured__tiles.search__list.is-two-columns .search-profile__title--header,
.home-featured__tiles.search__list.is-two-columns .search-profile__city {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.home-featured__tiles.search__list.is-two-columns .search-profile__categories {
  flex-wrap: wrap !important;
  overflow: visible;
}

.home-featured__tiles.search__list.is-two-columns .search-profile__categories-link {
  white-space: normal;
}

.home-featured__more {
  appearance: none;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  border: 0;
  border-radius: 13px;
  background: var(--feat-teal);
  color: #fff !important;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.18s ease, filter 0.18s ease;
}

.home-featured__more:hover,
.home-featured__more:focus-visible {
  color: #fff !important;
  outline: none;
  box-shadow: none;
  text-decoration: none;
}

@media (max-width: 1199px) {
  .home-featured__tiles.search__list.is-two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  /* Mobile / tablet: tylko 2 okna profilu */
  .home-featured__tiles.search__list.is-two-columns > .search-profile:nth-child(n + 3) {
    display: none;
  }
}

@media (max-width: 1023px) {
  .home-featured {
    /* Jak padding nad „Jesteś operatorem?” na mobile (28px) */
    padding: 28px 0 48px;
  }

  .home-featured__title {
    font-size: 23px;
  }
}

@media (max-width: 575px) {
  .home-featured {
    padding: 26px 0 44px;
  }

  .home-featured__intro {
    margin-bottom: 20px;
  }

  .home-featured__group {
    margin-bottom: 28px;
    padding: 14px 12px 12px;
    border-radius: 14px;
  }

  .home-featured__group-head {
    margin-bottom: 12px;
    gap: 8px 10px;
  }

  .home-featured__group-head:has(+ .home-featured__group-desc) {
    margin-bottom: 4px;
  }

  .home-featured__group-title {
    font-size: 18px; /* vs Polecani 23px na mobile */
  }

  .home-featured__group-desc {
    margin-bottom: 12px;
    white-space: normal;
  }

  .home-featured__tiles.search__list.is-two-columns {
    gap: 10px;
  }

  .home-featured__more {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 13px;
  }
}
