
*,
*::before,
*::after {
  box-sizing: border-box;
}

.main-categories {
  width: 100%;
  min-height: 100vh;
  padding: 4rem 5rem;
  background:
    radial-gradient(circle at center, rgba(118, 70, 143, .28), transparent 38%),
    #050008;
  margin: 0;
  color: #fafafa;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap:1rem;
}
.visible {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.visible.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.main-categories__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.main-categories__header {
  max-width: 680px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.main-categories__header span {
  display: inline-block;
  margin-bottom: .6rem;
  color: #ff5de8;
  font-size: clamp(.7rem, 1.2vw, .85rem);
  font-weight: 800;
  letter-spacing: .38em;
  text-transform: uppercase;
  text-shadow:
    0 0 12px rgba(255, 93, 232, .7),
    0 0 28px rgba(255, 93, 232, .35);
}

.main-categories__header h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: -0.05em;
  color: #fff;
}

.main-categories__header p {
  margin: .9rem auto 0;
  max-width: 620px;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(.95rem, 1.3vw, 1.08rem);
  line-height: 1.6;
}

/* Grid desktop */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Card */
.category-card {
  position: relative;
  min-height: 255px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: #fafafa;
  border: 1px solid rgba(255, 93, 232, .38);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, .42),
    inset 0 0 0 1px rgba(255, 255, 255, .04);
  isolation: isolate;
  transition:
    transform .35s ease,
    border-color .35s ease,
    box-shadow .35s ease;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .6s ease;
}

.category-card__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, .2) 45%, rgba(0, 0, 0, .2) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .2) 0%, rgba(0, 0, 0, .2) 100%);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 38%, rgba(255, 75, 245, .2), transparent 28%);
  opacity:.9;
  pointer-events: none;
}

.category-card__content {
  width: 100%;
  height: auto;
  padding: 1.35rem 1.25rem 1.4rem;
  justify-content: center;
  display: flex;
  flex-direction: column;
  gap:0px;
}

.category-card__icon {
  position: absolute;
  right: 1.1rem;
  top: 1.1rem;
  margin: 0;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ff77ef;
  font-size: 1rem;
  background: rgba(35, 0, 50, .65);
  border: 2px solid rgba(255, 97, 240, .85);
  box-shadow:
    0 0 10px rgba(255, 97, 240, .9),
    0 0 24px rgba(255, 97, 240, .55),
    inset 0 0 18px rgba(255, 97, 240, .18);
}

.category-card h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  margin: 0;
}

.category-card p {
  margin: 0;
  max-width: 270px;
  color: rgba(255, 255, 255, .78);
  font-size: .98rem;
  line-height: 1.45;
}

.category-card__arrow {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  color: #ff64eb;
  font-size: 2rem;
  line-height: 1;
  text-shadow:
    0 0 12px rgba(255, 100, 235, .8),
    0 0 26px rgba(255, 100, 235, .45);
  transition: transform .35s ease;
}

/* Hover */
.category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 100, 235, .9);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, .58),
    0 0 28px rgba(255, 100, 235, .22);
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-card:hover .category-card__arrow {
  transform: translateX(6px);
}

/* Tablet */
@media (max-width: 980px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-card {
    min-height: 235px;
  }
}

/* Mobile: one below the other */
@media (max-width: 680px) {
  .main-categories {
    padding: 3rem 1rem;
  }

  .main-categories__header {
    text-align: center;
    margin: auto;
    padding: 1rem 0;

  }

  .main-categories__header span {
    letter-spacing: .24em;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .category-card {
    min-height: 170px;
    border-radius: 18px;
  }

  .category-card__content {
    padding: 1rem;
  }

  .category-card__icon {
    width: 52px;
    height: 52px;
    margin-bottom: .75rem;
  }

  .category-card h5 {
    line-height: 0;
  }

  .category-card small {
    display: block;
    max-width: 100%;
    line-height: 1.2;

    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;

  }

  .category-card__arrow {
    right: .9rem;
    bottom: .9rem;
    font-size: 1.7rem;
  }
}

/* Small mobile */
@media (max-width: 420px) {
  .category-card {
    min-height: 155px;
  }

  .category-card__overlay {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .62) 58%, rgba(0, 0, 0, .28) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, .08) 0%, rgba(0, 0, 0, .78) 100%);
  }
}
/* filter */

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0 0 4rem 0;
  list-style: none;
  justify-content: center;
  align-items: center;

}

.filter-list li {
  padding: 5px 9px;
  border-radius: 5px;
  background: #fafafa;
  color: #000;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
  font-size: clamp(0.7rem, .8vw, 1rem);

}

.filter-list li:hover,
.filter-list li.active {
  background: #111;
  color: #fafafa;
  border: 2px solid #ff5de8;

}
.place-card.hide {
  display: none;
}
