.reviews {
  display: block;
}

.reviews__item {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  margin: 0 0 40px;

  @media (width < 768px) {
    flex-direction: column;
  }
}

.reviews__item-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  width: 140px;
  flex-shrink: 0;
  margin: 0 30px 20px 0;

  @media (width < 768px) {
    width: 100%;
    flex-direction: row;
    margin: 0 0 12px;
  }
}

.reviews__item-name {
  margin-bottom: 10px;

  font-size: 18px;
  font-weight: 500;

  @media (width < 768px) {
    margin-bottom: 0;
  }
}

.reviews__item-text {
  position: relative;
  flex-grow: 1;
  padding: 30px 30px;

  background-color: var(--color-grey-extra-light);
  border-left: 1px solid var(--color-grey-light);
  border-radius: 5px;
  font-size: 18px;

  @media (width < 1024px) {
    font-size: 16px;
  }

  &::after,
  &::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 12px;
    border: 20px solid transparent;
    border-top: none;
    border-right-color: var(--color-grey-light);

    @media (width < 768px) {
      right: auto;
      top: auto;
      bottom: 100%;
      left: 5px;
      border: 10px solid transparent;
      border-top: none;
      border-bottom-color: var(--color-grey-light);
    }
  }

  &::after {
    top: 11px;
    right: calc(100% - 1px);
    border-right-color: var(--color-grey-extra-light);

    @media (width < 768px) {
      right: auto;
      top: auto;
      left: 6px;
      border-color: transparent;
      border-bottom-color: var(--color-grey-extra-light);
    }
  }
}

.reviews__item-date {
  color: var(--color-grey);
  font-size: 14px;

  @media (width < 768px) {
    margin: 0 6px 0 auto;
  }
}

.reviews__item-time {
  color: var(--color-grey);
  font-size: 14px;
}

.reviews__write {
  display: block;
  margin: 0 auto;
  width: 280px;
  max-width: 100%;
}
