* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  color: hsl(229, 6%, 66%);
  font-size: 0.9375rem;
  background-color: hsl(0, 0%, 98%);
  height: 100vh;
  padding: 50px 80px 0px;
}

main {
  max-width: 56rem;
  margin: 2.5rem auto;
}

.title {
  display: flex;
  justify-content: center;
  margin: auto;
  color: hsl(234, 12%, 34%);
  font-size: 1.8125rem;
  font-weight: 600;
  padding-bottom: 0.625rem;
}

.sub-title {
  display: flex;
  justify-content: center;
  margin: auto;
  color: hsl(234, 12%, 34%);
  font-size: 1.8125rem;
  font-weight: 200;
}

.title-descr {
  display: flex;
  justify-content: center;
  margin: auto;
  max-width: 27rem;
  text-align: center;
  font-size: 0.75rem;
}

article {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  height: 60vh;
}

.card {
  border-radius: 0.5em;
  box-shadow: 0px 10px 20px 0px hsla(229, 6%, 66%, 0.49);
  margin: 0.75rem;
  padding: 1.5rem;
  font-size: 0.625rem;
  position: relative;
}

.card h2 {
  color: hsl(234, 12%, 34%);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5em;
}

.card i, img {
  position: absolute;
  bottom: 1.875rem;
  right: 1.75rem;
}

.supervisor {
  border-top: 5px solid hsl(180, 62%, 55%);
  grid-row: 2/4;
}

.calculator {
  border-top: 5px solid hsl(212, 86%, 64%);
  grid-row: 2/4;
  grid-column: 3;
}

.team-builder {
  border-top: 5px solid hsl(0, 78%, 62%);
  grid-column: 2;
  grid-row: 1/3;
}

.karma {
  border-top: 5px solid hsl(34, 97%, 64%);
  grid-column: 2;
  grid-row: 3/5;
}

@media screen and (max-width: 767px) {
  body {
    padding: 80px 20px 0px;
    height: auto;
  }
  main {
    margin: 4rem auto;
  }
  .title {
    font-size: 1.5rem;
  }
  .sub-title {
    font-size: 1.5rem;
  }
  .title-descr {
    margin: auto 13px;
    font-size: 0.9375rem;
  }
  article {
    display: block;
    height: auto;
  }
  .card {
    padding: 1.5rem 1.75rem;
    font-size: 0.8125rem;
    line-height: 2;
    margin: 1.5rem 0.75rem;
    height: 225px;
  }
  .card h2 {
    font-size: 1.25rem;
    line-height: 1;
  }
  .card img {
    right: 2.25rem;
  }
}