.reviews-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  color: #fff;
}

.reviews-header {
  margin: 40px 0 60px;
}

.reviews-title {
  position: relative;
  display: inline-block;
  font-family: AMS;
  font-size: 64px;
  font-weight: 600;
  line-height: 64px;
  margin: 0 0 24px;
}

.reviews-title::before {
  content: "";
  position: absolute;
  top: 0;
  right: -16px;
  width: 18px;
  clip-path: polygon(0 0, 100% 5.5%, 100% 94.6%, 0 100%);
  background-color: #FF723D;
  height: 100%;
}

.reviews-title::after {
  content: "";
  position: absolute;
  top: 0;
  right: -15px;
  width: 16px;
  height: 100%;
  clip-path: polygon(0 1%, 100% 6%, 100% 94%, 0 99%);
  background-color: #000;
}

.reviews-title .hl-word {
  display: inline-block;
  border: 2px solid #FF723D;
  padding: 2px 20px;
}

.reviews-desc {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 620px;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 80px;
}

.review-card {
  background: #fff;
  box-sizing: border-box;
  max-width: 1210px;
  padding: 32px 40px;
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  grid-template-areas:
    "logo divider avatar name"
    "logo divider avatar position"
    "logo divider text text";
  column-gap: 24px;
}

.review-logo {
  grid-area: logo;
  align-self: start;
}

.review-divider {
  grid-area: divider;
  width: 1px;
  background: rgba(14, 14, 14, 0.15);
}

.review-avatar {
  grid-area: avatar;
  align-self: center;
  margin-right: 16px;
}

.review-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.review-logo img {
  max-width: 160px;
  max-height: 48px;
  width: auto;
  height: auto;
  display: block;
}

.review-name {
  grid-area: name;
  align-self: end;
  font-weight: 700;
  font-size: 18px;
  color: #0E0E0E;
  margin-bottom: 4px;
}

.review-position {
  grid-area: position;
  align-self: start;
  font-weight: 500;
  font-size: 14px;
  color: #FF723D;
  margin-bottom: 10px;
}

.review-text-wrap {
  grid-area: text;
  margin-top: 22px;
}

.review-text {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #0E0E0E;
  max-height: 140px;
  overflow: hidden;
}

.review-text.expanded {
  max-height: none;
}

.review-text p {
  margin: 0 0 16px;
}

.review-text p:last-child {
  margin-bottom: 0;
}

.review-toggle {
  display: none;
  margin-top: 12px;
  text-align: right;
  color: rgba(14, 14, 14, 0.5);
  cursor: pointer;
  font-size: 14px;
}

@media(max-width: 1100px) {
  .reviews-header {
    margin-left: 20px;
    margin-right: 20px;
  }

  .reviews-title {
    font-size: 32px;
    line-height: 40px;
  }

  .reviews-title::before,
  .reviews-title::after {
    display: none;
  }

  .reviews-title .hl-word {
    position: relative;
  }

  .reviews-title .hl-word::before {
    content: "";
    position: absolute;
    top: 0;
    right: -16px;
    width: 18px;
    height: 100%;
    clip-path: polygon(0 0, 100% 5.5%, 100% 94.6%, 0 100%);
    background-color: #FF723D;
  }

  .reviews-title .hl-word::after {
    content: "";
    position: absolute;
    top: 0;
    right: -15px;
    width: 16px;
    height: 100%;
    clip-path: polygon(0 1%, 100% 6%, 100% 94%, 0 99%);
    background-color: #000;
  }

  .reviews-list {
    margin-left: 20px;
    margin-right: 20px;
  }

  .review-card {
    padding: 24px;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "avatar logo"
      "name name"
      "position position"
      "text text";
    column-gap: 16px;
  }

  .review-avatar {
    align-self: center;
    margin-right: 0;
  }

  .review-avatar img {
    width: 56px;
    height: 56px;
  }

  .review-logo {
    align-self: center;
  }

  .review-divider {
    display: none;
  }

  .review-name {
    align-self: revert;
    margin-top: 16px;
    width: 80%;
    margin-left: auto;
  }

  .review-position {
    align-self: auto;
    margin-bottom: 16px;
    width: 80%;
    margin-left: auto;
  }
}
