.gold-icon {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  filter: var(--gold-icon-filter);
}

.benefit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  gap: 7px;
  min-width: 0;
  min-height: 102px;
  padding: 9px 7px 10px;
  border: 1px solid var(--color-gold);
  border-radius: 8px;
  background: rgb(5 6 5 / 30%);
  text-align: center;
}

.benefit-card > img {
  width: 26px;
  height: 26px;
}
.benefit-card__content {
  min-width: 0;
}
.benefit-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.15;
}
.benefit-card p {
  margin: 3px 0 0;
  color: #cfcdc8;
  font-size: 13px;
  line-height: 1.1;
}

.profile-card {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--color-gold);
  border-radius: 7px;
  background: #11100c;
  box-shadow: inset 0 0 2px var(--color-gold-subtle);
}

.profile-card__link {
  display: grid;
  height: 100%;
  isolation: isolate;
}

.profile-card__photo,
.profile-card__details {
  grid-area: 1 / 1;
}

.profile-card__photo {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 30%;
  z-index: -1;
}

.profile-card__details {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: 42% 5px 5px;
  background: linear-gradient(
    transparent 36%,
    rgb(0 0 0 / 28%) 52%,
    rgb(0 0 0 / 94%) 88%
  );
  color: #eeeae3;
  text-shadow: 0 1px 2px #000;
}

.profile-card__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1px 4px;
}

.profile-card__name {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.15;
}

.profile-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 8px;
  line-height: 1.3;
}

.profile-card__badge img {
  width: 9px;
  height: 9px;
}
.profile-card__badge--verified {
  color: var(--color-gold);
}
.profile-card__badge--new {
  color: var(--color-new);
}

.profile-card__meta,
.profile-card__city {
  margin: 2px 0 0;
  font-size: 10px;
  line-height: 1.25;
  white-space: nowrap;
}

.profile-card__city {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
}

.profile-card__city img {
  width: 11px;
  height: 11px;
}

.profile-card__online {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--color-online);
  box-shadow: 0 0 2px rgb(53 217 87 / 55%);
}

.profile-card__favorite {
  position: absolute;
  top: 2px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 20px;
  padding: 2px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.profile-card__favorite img {
  width: 16px;
  height: 16px;
  filter: drop-shadow(0 1px 2px #000);
}

.profile-card__link:focus-visible {
  outline-offset: -3px;
}
.profile-card__favorite:focus-visible {
  outline-offset: -2px;
}
.profile-card__favorite:active {
  transform: scale(0.92);
}

.profile-carousel {
  position: relative;
}

.profile-carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(82px, calc((100% - 18px) / 4), 144px);
  gap: 6px;
  margin: 0;
  padding: 2px 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
  cursor: grab;
}

.profile-carousel__track::-webkit-scrollbar {
  display: none;
}
.profile-carousel__track > li {
  min-width: 0;
  aspect-ratio: 0.59;
  scroll-snap-align: start;
}
.profile-carousel__track.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}
.profile-carousel__arrow {
  display: none;
}

.category-carousel__track {
  grid-auto-columns: clamp(80px, 20vw, 110px);
  gap: 9px;
}

.category-carousel__track > li {
  aspect-ratio: auto;
  height: 100px;
}

.category-card {
  display: grid;
  grid-template-rows: 44px 1fr;
  align-items: center;
  justify-items: center;
  gap: 5px;
  height: 100%;
  padding: 10px 6px 8px;
  border: 1px solid var(--color-gold);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 3%), transparent 60%),
    rgb(10 10 8 / 64%);
  color: var(--color-gold);
  text-align: center;
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

.category-card > img {
  width: 34px;
  height: 34px;
}
.category-card__label {
  max-width: 100%;
  font-size: 16px;
  line-height: 1.04;
  text-wrap: balance;
}
.category-card:focus-visible {
  outline-offset: -4px;
}
.category-card:active {
  opacity: 0.75;
}
.category-carousel__previous:disabled {
  visibility: hidden;
}

@media (hover: hover) {
  .profile-card__favorite:hover {
    background: rgb(0 0 0 / 42%);
  }
  .profile-card:hover {
    border-color: var(--color-gold);
    box-shadow: 0 0 5px var(--color-gold-subtle);
  }
  .category-card:hover {
    background-color: var(--color-gold-subtle);
  }
}

@media (min-width: 900px) {
  .benefit-card {
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    min-height: 52px;
    padding: 8px 14px;
    border-radius: 5px;
    box-shadow: inset 0 0 2px var(--color-gold-subtle);
    text-align: left;
  }
  .benefit-card > img {
    width: 34px;
    height: 34px;
  }
  .benefit-card h3 {
    font-size: 14px;
    font-weight: 600;
  }
  .benefit-card p {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.2;
  }
  .benefit-card__mobile-break {
    display: none;
  }

  .profile-carousel__track {
    grid-auto-columns: max(128px, calc((100% - 70px) / 8));
    gap: 10px;
  }
  .profile-carousel__track > li {
    aspect-ratio: 1.23;
  }
  .profile-card {
    border-radius: 5px;
  }
  .profile-card__details {
    padding: 32% 10px 5px 22px;
  }
  .profile-card__name {
    font-size: 14px;
    font-weight: 600;
  }
  .profile-card__badge {
    font-size: 11px;
  }
  .profile-card__badge img {
    width: 11px;
    height: 11px;
  }
  .profile-card__meta,
  .profile-card__city {
    font-size: 12px;
    margin-top: 1px;
  }
  .profile-card__meta {
    order: 3;
  }
  .profile-card__city img {
    display: none;
  }
  .profile-card__online {
    position: absolute;
    left: 8px;
    bottom: 25px;
    width: 8px;
    height: 8px;
  }
  .profile-card__favorite {
    top: 3px;
    right: 3px;
    width: 25px;
    height: 25px;
  }
  .profile-card__favorite img {
    width: 16px;
    height: 16px;
  }
  .profile-carousel__arrow {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 32px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    transform: translateY(-50%);
  }
  .profile-carousel__arrow--previous {
    left: -36px;
  }
  .profile-carousel__arrow--next {
    right: -36px;
  }
  .profile-carousel__arrow--previous img {
    transform: rotate(90deg);
  }
  .profile-carousel__arrow--next img {
    transform: rotate(-90deg);
  }
  .profile-carousel__arrow:disabled {
    opacity: 0.35;
    cursor: default;
  }
  .profile-carousel__arrow:active:not(:disabled) {
    opacity: 0.65;
  }
  .profile-carousel__arrow:hover:not(:disabled) {
    background: var(--color-gold-subtle);
  }
  .category-carousel__track {
    grid-auto-columns: max(74px, calc((100% - 140px) / 15));
    gap: 10px;
  }
  .category-carousel__track > li {
    height: 64px;
  }
  .category-card {
    grid-template-rows: 28px 1fr;
    gap: 3px;
    padding: 6px 4px;
    border-radius: 5px;
  }
  .category-card > img {
    width: 24px;
    height: 24px;
  }
  .category-card__label {
    font-size: 11px;
    line-height: 1.05;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-card__favorite {
    transition: none;
  }

  .category-card {
    transition: none;
  }
}
