.owner-reviews {
  width: calc(100% - 40px);
  height: 471.5px;
  margin-inline: 20px;
  padding-top: 34px;
  color: var(--color-light);
  background: var(--color-dark);
  border: 1px solid rgba(244, 246, 244, 0.1);
}

.owner-reviews__heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
}

.owner-reviews__title {
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--color-light);
  font-size: 44px;
  font-weight: 600;
  line-height: 46.64px;
  letter-spacing: -0.66px;
  text-transform: uppercase;
  white-space: nowrap;
}

.owner-reviews__title span:last-child {
  color: rgba(244, 246, 245, 0.6);
  font-weight: 400;
}

.owner-reviews__tools {
  display: flex;
  align-items: flex-end;
  gap: 30px;
}

.owner-reviews__rating {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.owner-reviews__rating strong {
  color: var(--color-yellow);
  font-size: 56px;
  font-weight: 600;
  line-height: 50.4px;
  letter-spacing: -1.68px;
  white-space: nowrap;
}

.owner-reviews__rating span {
  padding-bottom: 4px;
  color: rgba(244, 246, 245, 0.5);
  font-size: 12px;
  font-weight: 400;
  line-height: 18.6px;
  white-space: nowrap;
}

.owner-reviews__arrows {
  display: flex;
  gap: 8px;
}

.owner-reviews__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--color-light);
  background: transparent;
  border: 1px solid rgba(244, 246, 245, 0.2);
  border-radius: 11px;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  cursor: pointer;
}

.owner-reviews__arrow:focus {
  outline: none;
}

.owner-reviews__viewport {
  width: 100%;
  height: 280.5px;
  margin-top: 36px;
  overflow: hidden;
}

.owner-reviews__track {
  display: flex;
  gap: 16px;
  width: max-content;
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.owner-reviews__card {
  display: flex;
  flex-direction: column;
  width: calc((100vw - 74px) / 3);
  height: 281px;
  padding: 26px 26px 22px;
  color: var(--color-light);
  background: #151917;
  border: 1px solid rgba(244, 246, 245, 0.12);
  border-radius: 16px;
}

.owner-reviews__person {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: 48px;
}

.owner-reviews__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  color: var(--color-yellow);
  background: rgba(255, 207, 0, 0.16);
  border: 1px solid rgba(255, 207, 0, 0.3);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0.28px;
}

.owner-reviews__person h3,
.owner-reviews__person p,
.owner-reviews__text p {
  margin: 0;
}

.owner-reviews__person h3 {
  color: var(--color-light);
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: -0.16px;
  white-space: nowrap;
}

.owner-reviews__person p {
  padding-top: 5px;
  color: rgba(244, 246, 245, 0.5);
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  white-space: nowrap;
}

.owner-reviews__text {
  flex: 0 0 124px;
  min-height: 0;
  padding-top: 22px;
}

.owner-reviews__text p {
  color: rgba(244, 246, 245, 0.76);
  font-size: 15px;
  font-weight: 400;
  line-height: 25.5px;
}

.owner-reviews__card-footer {
  width: 100%;
  padding-top: 24px;
}

.owner-reviews__card-footer > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 18px;
  border-top: 1px solid rgba(244, 246, 245, 0.12);
}

.owner-reviews__stars {
  color: var(--color-yellow);
  font-size: 13px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 2.08px;
  white-space: nowrap;
}

.owner-reviews__source {
  color: rgba(244, 246, 245, 0.42);
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  white-space: nowrap;
}

.owner-reviews__pagination {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  width: 100%;
  height: 27px;
  padding-top: 24px;
}

.owner-reviews__dot {
  width: 20px;
  height: 3px;
  padding: 0;
  background: rgba(244, 246, 245, 0.24);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: width 300ms ease, background-color 300ms ease;
}

.owner-reviews__dot.is-active {
  width: 40px;
  background: var(--color-yellow);
}

.owner-reviews__dot:focus {
  outline: none;
}

@media (max-width: 900px) {
  .owner-reviews {
    height: auto;
    padding: 34px 0 0;
  }

  .owner-reviews__heading-row {
    align-items: flex-start;
    gap: 28px;
  }

  .owner-reviews__card {
    width: calc((100vw - 58px) / 2);
  }
}

@media (max-width: 640px) {
  .owner-reviews__heading-row {
    flex-direction: column;
  }

  .owner-reviews__title {
    font-size: 36px;
    line-height: 38px;
  }

  .owner-reviews__tools {
    width: 100%;
    justify-content: space-between;
  }

  .owner-reviews__card {
    width: calc(100vw - 42px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .owner-reviews__track,
  .owner-reviews__dot {
    transition-duration: 1ms;
  }
}
