@import url('https://fonts.googleapis.com/css2?family=Spartan:wght@400;500;700&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-size: 15px;
  font-family: 'Spartan', sans-serif;
  padding: 20px;
  max-width: 550px;
  margin: 0 auto;
}

/* HEADER */

header {
  text-align: center;
}

h1 {
  font-size: 2rem;
  color: hsl(300, 43%, 22%);
  font-weight: 700;
  margin-top: 50px;
}

h2 {
  font-size: 1.1rem;
  color: hsl(303, 10%, 53%);
  font-weight: 500;
  margin: 30px 0;
}

/* RATES */

.rates {
  margin: 50px 0;
}

.rate {
  background: hsl(300, 24%, 96%);
  color: hsl(300, 43%, 22%);
  font-weight: 700;
  text-align: center;
  margin: 20px 0;
  padding: 20px;
  border-radius: 10px;
}

/* REVIEWS */

.review {
  background: hsl(300, 43%, 22%);
  border-radius: 10px;
  color: hsl(300, 24%, 96%);
  padding: 30px;
  margin: 20px auto;
}

.review__customer {
  display: flex;
  margin: 30px 0;
}

.review__person {
  margin-left: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.review__person>p {
  margin: 0;
  font-size: 1.1rem;
}

.review__avatar {
  border-radius: 50px;
  height: 50px;
}

.review__fullname {
  font-weight: 700;
  color: hsl(300, 24%, 96%);
}

.review__role {
  color: hsl(303, 10%, 53%);
  font-weight: 500;
}

.review__opinion {
  line-height: 1.5;
  font-weight: 500;
}

/* DESKTOP 1440px */

@media (min-width: 1440px) {

  body {
    max-width: 1400px;
    display: flex;
    flex-wrap: wrap;
    padding-top: 100px;
  }

  header {
    flex: 1 1 50%;
    padding-right: 110px;
    text-align: start;
  }

  h1 {
    margin: 0;
    font-size: 3.5rem;
  }

  h2 {
    margin: 20px 0;
  }


  /* RATES */
  .rates {
    flex: 1 1 50%;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .rate {
    width: 100%;
    max-width: 450px;
    margin: 0;
    padding: 10px;
    display: flex;
    align-items: center;
  }

  .rate__stars {
    margin: 0 20px;
  }

  .rate:first-child {
    align-self: flex-start;
    margin-bottom: 20px;
  }

  .rate:last-child {
    align-self: flex-end;
    margin-top: 20px;
  }

  /* REVIEWS */
  .reviews {
    display: flex;
    height: 365px;
    align-items: center;
    margin-top: 50px;
  }

  .review {
    margin: 0;
    flex: 1;
  }

  .review:first-child {
    align-self: flex-start;
    margin-right: 30px;
  }

  .review:last-child {
    align-self: flex-end;
    margin-left: 30px;
  }
}