.reviews-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.reviews-hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.reviews-hero-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviews-hero-head img {
  width: 32px;
  height: 32px;
}

.reviews-hero-head h1 {
  font-family: Onest;
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  color: white;
}

.reviews-summary {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035) 0%, rgba(255, 255, 255, .01) 100%), rgb(21, 22, 24);
}

.reviews-score {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reviews-score-value {
  font-family: Onest;
  font-weight: 800;
  font-size: 48px;
  line-height: 1;
  color: white;
}

.reviews-score-stars svg {
  width: 20px;
  height: 20px;
}

.reviews-score-count {
  font-family: Onest;
  font-weight: 600;
  font-size: 14px;
  color: rgba(108, 109, 112, 1);
}

.reviews-score-count b {
  color: white;
  font-weight: 700;
}

.reviews-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reviews-bar {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .7);
  font-family: Onest;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: background .15s;
}

.reviews-bar:hover,
.reviews-bar.is-active {
  background: rgba(255, 255, 255, .04);
}

.reviews-bar.is-active {
  color: rgb(255, 141, 40);
}

.reviews-bar.is-empty {
  opacity: .5;
}

.reviews-bar-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.reviews-bar-label svg,
.reviews-filter-item svg {
  width: 13px;
  height: 13px;
  fill: rgb(255, 176, 32);
}

.reviews-bar-track {
  height: 8px;
  border-radius: 90px;
  background: rgba(255, 255, 255, .06);
  overflow: hidden;
}

.reviews-bar-track span {
  display: block;
  height: 100%;
  border-radius: 90px;
  background: linear-gradient(90deg, rgba(255, 141, 40, .95), rgba(255, 176, 32, .95));
}

.reviews-bar-count {
  text-align: right;
  color: rgba(108, 109, 112, 1);
}

.reviews-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reviews-filter-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 90px;
  background: rgba(21, 22, 24, 1);
  color: rgba(255, 255, 255, .8);
  font-family: Onest;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.reviews-filter-item:hover {
  background: rgba(28, 30, 32, 1);
}

.reviews-filter-item.is-active {
  background: rgba(255, 141, 40, .12);
  color: rgb(255, 141, 40);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.reviews-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: center;
  padding: 14px 32px;
  border: 1px solid rgba(255, 141, 40, .25);
  border-radius: 12px;
  background: rgba(255, 141, 40, .08);
  color: rgb(255, 141, 40);
  font-family: Onest;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background .2s;
}

.reviews-more:hover {
  background: rgba(255, 141, 40, .14);
}

.reviews-more.is-loading {
  opacity: .6;
  pointer-events: none;
}

.reviews-more-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 141, 40, .3);
  border-top-color: rgb(255, 141, 40);
  border-radius: 50%;
  animation: reviews-spin .7s linear infinite;
}

.reviews-more.is-loading .reviews-more-spinner {
  display: inline-block;
}

@keyframes reviews-spin {
  to {
    transform: rotate(360deg);
  }
}

.reviews-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px 20px;
  border-radius: 18px;
  background: rgba(21, 22, 24, 1);
  text-align: center;
}

.reviews-empty img {
  width: 40px;
  height: 40px;
  opacity: .6;
}

.reviews-empty-title {
  font-family: Onest;
  font-weight: 700;
  font-size: 18px;
  color: white;
}

@media (max-width: 800px) {
  .reviews-summary {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
}

@media (max-width: 500px) {
  .reviews-hero-head h1 {
    font-size: 24px;
    line-height: 30px;
  }

  .reviews-score-value {
    font-size: 40px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .reviews-more {
    align-self: stretch;
  }
}
