.toprated-hero {
  padding-top: var(--space-40);
  padding-bottom: var(--space-32);
}

.toprated-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-32);
  align-items: center;
}

.toprated-hero__subtitle {
  max-width: 34rem;
}

.toprated-hero__meta {
  margin-top: var(--space-12);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.toprated-hero__actions {
  margin-top: var(--space-16);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.toprated-hero__links {
  margin-top: var(--space-12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  font-size: var(--font-size-sm);
}

.toprated-hero__links a {
  color: var(--color-text-muted);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background-color: rgba(15, 23, 42, 0.8);
}

.toprated-hero__links a:hover {
  color: var(--color-text);
  background-color: rgba(15, 23, 42, 1);
}

.toprated-hero__image {
  max-width: 480px;
  margin-left: auto;
}

.toprated-grid {
  gap: var(--space-16);
}

.toprated-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  font-size: var(--font-size-sm);
}

.toprated-card__image {
  margin-bottom: var(--space-12);
}

.toprated-featured__row,
.toprated-reviews__layout,
.toprated-specs__layout,
.toprated-leaderboard__layout,
.toprated-offers__layout {
  gap: var(--space-24);
}

.toprated-featured__text,
.toprated-specs__text,
.toprated-leaderboard__content,
.toprated-offers__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.toprated-featured__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  font-size: var(--font-size-sm);
}

.toprated-featured__cta,
.toprated-reviews__cta,
.toprated-specs__links,
.toprated-leaderboard__cta,
.toprated-offers__cta,
.toprated-bottom-cta__actions {
  margin-top: var(--space-12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.toprated-mini {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.toprated-review {
  margin-bottom: var(--space-12);
}

.toprated-specs__table-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.toprated-specs__table {
  display: grid;
  gap: var(--space-4);
  font-size: var(--font-size-sm);
}

.toprated-specs__row {
  display: grid;
  grid-template-columns: 1.2fr 1.3fr 2fr 0.8fr;
  gap: var(--space-4);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  background-color: rgba(15, 23, 42, 0.8);
}

.toprated-specs__row:nth-child(1) {
  background-color: rgba(15, 140, 232, 0.16);
}

.toprated-specs__cell--header {
  font-weight: 600;
}

.toprated-gallery__image {
  margin-bottom: var(--space-12);
}

.toprated-gallery__footer {
  gap: var(--space-16);
  align-items: center;
}

.toprated-leaderboard__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  counter-reset: leaderboard;
}

.toprated-leaderboard__list li {
  counter-increment: leaderboard;
}

.toprated-leaderboard__item {
  position: relative;
  padding-left: 2.25rem;
}

.toprated-leaderboard__item::before {
  content: counter(leaderboard);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
}

.toprated-offers {
  padding: var(--space-20);
}

.toprated-bottom-cta {
  padding-top: var(--space-24);
  padding-bottom: var(--space-32);
}

.toprated-bottom-cta__layout {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
  align-items: center;
  justify-content: space-between;
}

.toprated-bottom-cta__layout p {
  max-width: 40rem;
}

@media (max-width: 1024px) {
  .toprated-hero__layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  }
}

@media (max-width: 768px) {
  .toprated-hero__layout {
    grid-template-columns: 1fr;
  }

  .toprated-hero__image {
    max-width: none;
    margin: 0 auto;
    order: -1;
  }

  .toprated-gallery__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .toprated-specs__row {
    grid-template-columns: 1.2fr 1.2fr;
    grid-template-rows: auto auto;
  }

  .toprated-specs__row > :nth-child(3) {
    grid-column: 1 / -1;
  }

  .toprated-bottom-cta__layout {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .toprated-hero {
    padding-top: var(--space-32);
  }

  .toprated-offers {
    padding: var(--space-16);
  }
}
