.home-reputation {
  margin: 48px 0 0;
  padding: 56px 24px 64px;
  background: #f6f5f3;
  color: #17171a;
}

.home-reputation[hidden],
.home-reputation [hidden] {
  display: none !important;
}

.home-reputation__container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
}

.home-reputation__header {
  max-width: 720px;
  margin: 0 auto 30px;
  text-align: center;
}

.home-reputation__eyebrow {
  margin: 0 0 8px;
  color: #6d6a67;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.home-reputation h2 {
  margin: 0;
  padding: 0 !important;
  color: #17171a;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.home-reputation__lead {
  margin: 12px 0 0;
  color: #5c5c62;
  font-size: 16px;
  line-height: 1.55;
}

.home-reputation__summary {
  min-height: 20px;
  margin: 8px 0 0;
  color: #77747a;
  font-size: 13px;
  line-height: 1.5;
}

.home-ratings__list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.home-rating-card {
  display: flex;
  min-width: 0;
  min-height: 150px;
  padding: 18px 14px 16px;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e2dfda;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 23, 26, .04);
  text-align: center;
}

.home-rating-card__logo-wrap {
  display: flex;
  width: 100%;
  height: 38px;
  align-items: center;
  justify-content: center;
}

.home-rating-card__logo {
  display: block;
  width: 100%;
  max-width: 112px;
  height: 32px;
  object-fit: contain;
}

.home-rating-card__name {
  color: #444248;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.home-rating-card__score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.home-rating-card__star {
  color: #c79a45;
  font-size: 17px;
}

.home-rating-card__score strong {
  color: #17171a;
  font-size: 22px;
  line-height: 1;
}

.home-rating-card__scale {
  color: #77747a;
  font-size: 12px;
}

.home-rating-card__count {
  min-height: 17px;
  color: #89868c;
  font-size: 11px;
  line-height: 1.35;
}

.home-reviews {
  margin-top: 54px;
}

.home-reviews__header {
  display: flex;
  margin-bottom: 22px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.home-reviews__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-reviews__counter {
  min-width: 76px;
  margin-right: 4px;
  color: #77747a;
  font-size: 13px;
  text-align: right;
}

.home-reviews__arrow {
  display: inline-flex;
  width: 42px;
  height: 42px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid #17171a;
  border-radius: 50%;
  background: transparent;
  color: #17171a;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}

.home-reviews__arrow:hover:not(:disabled) {
  background: #17171a;
  color: #fff;
}

.home-reviews__arrow:focus-visible,
.home-review-card__expand:focus-visible,
.home-review-card__link:focus-visible {
  outline: 3px solid rgba(23, 23, 26, .2);
  outline-offset: 3px;
}

.home-reviews__arrow:disabled {
  cursor: default;
  opacity: .3;
}

.home-reviews__list {
  display: flex;
  margin: 0;
  padding: 2px 2px 18px;
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.home-reviews__list::-webkit-scrollbar {
  display: none;
}

.home-review-card {
  display: flex;
  min-width: 0;
  flex: 0 0 calc((100% - 40px) / 3);
  padding: 24px;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid #e2dfda;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 23, 26, .05);
  scroll-snap-align: start;
}

.home-review-card__top {
  display: flex;
  min-height: 34px;
  margin-bottom: 18px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.home-review-card__platform {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.home-review-card__logo {
  display: block;
  width: 96px;
  max-width: 96px;
  height: 28px;
  object-fit: contain;
}

.home-platform-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #252329;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.home-review-card__platform-name {
  overflow: hidden;
  color: #4f4c52;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-review-card__stars {
  flex: 0 0 auto;
  color: #c79a45;
  font-size: 15px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.home-review-card__author {
  margin: 0 0 10px;
  color: #17171a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.home-review-card__text {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #3f3d42;
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  white-space: pre-line;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
}

.home-review-card__text.is-expanded {
  display: block;
  overflow: visible;
  -webkit-line-clamp: initial;
}

.home-review-card__expand {
  align-self: flex-start;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: #17171a;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.home-review-card__footer {
  display: flex;
  margin-top: auto;
  padding-top: 22px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.home-review-card__meta {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  color: #89868c;
  font-size: 11px;
  line-height: 1.4;
}

.home-review-card__location {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-review-card__link {
  flex: 0 0 auto;
  border-bottom: 1px solid currentColor;
  color: #17171a;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.home-review-card__link:hover {
  color: #666269;
}

.home-reputation__status {
  margin: 0;
  color: #77747a;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 1050px) {
  .home-ratings__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-review-card {
    flex-basis: calc((100% - 20px) / 2);
  }
}

@media (max-width: 640px) {
  .home-reputation {
    margin-top: 32px;
    padding: 40px 16px 48px;
  }

  .home-reputation h2 {
    font-size: 24px;
  }

  .home-reputation__lead {
    font-size: 14px;
  }

  .home-ratings__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-rating-card {
    min-height: 140px;
    padding: 16px 10px 14px;
  }

  .home-rating-card__logo {
    max-width: 100px;
    height: 28px;
  }

  .home-reviews {
    margin-top: 42px;
  }

  .home-reviews__header {
    align-items: flex-end;
  }

  .home-reviews__counter {
    display: none;
  }

  .home-reviews__arrow {
    width: 38px;
    height: 38px;
  }

  .home-review-card {
    flex-basis: 100%;
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-reviews__list {
    scroll-behavior: auto;
  }

  .home-reviews__arrow {
    transition: none;
  }
}
