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

body {
  font-size: 15px;
}

html {
  font-family: "Inter", sans-serif;
}

.stats {
  background-color: hsl(233, 47%, 7%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stats__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: hsl(244, 38%, 16%);
  max-width: 1100px;
  color: #fff;
  border-radius: 10px;
  overflow: hidden;
  margin-top: auto;
}

.stats__text {
  /* width: 50%; */
  padding: 70px;
}

.stats__title {
  margin-bottom: 30px;
  font-size: 40px;
}

.stats__title span {
  color: hsl(277, 64%, 61%);
}

.stats__subtitle {
  margin-bottom: 60px;
  color: hsla(0, 0%, 100%, 0.75);
  font-size: 16px;
  line-height: 1.6;
}

.stats__stats {
  display: flex;
  gap: 40px;
}

.stats__stats p:nth-child(1) {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.stats__stats p:nth-child(2) {
  text-transform: uppercase;
  font-size: 12px;
  font-family: "Lexend Deca", sans-serif;
  letter-spacing: 1.22px;
  color: hsla(0, 0%, 100%, 0.6);
}

.stats__image {
  /* width: 50%; */
  position: relative;
  background: url("./images/image-header-desktop.jpg");
  background-size: cover;
  background-position: center;
}

/* .stats__image img { */
/*   width: 100%; */
/* } */

.stats__image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: hsla(277, 64%, 61%, 0.5);
}

@media screen and (max-width: 990px) {
  .stats__content {
    grid-template-columns: 1fr;
    margin: 40px 24px;
  }

  .stats__image {
    height: 600px;
    grid-row: 1;
  }
}

@media screen and (max-width: 500px) {
  .stats__content {
    margin: 20px;
  }

  .stats__text {
    padding: 40px;
    text-align: center;
  }

  .stats__title {
    font-size: 30px;
  }

  .stats__subtitle {
    margin-bottom: 50px;
  }

  .stats__stats {
    flex-direction: column;
  }

  .stats__image {
    height: 270px;
  }
}
