html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Gilroy', sans-serif;
  color: #000;

  font-size: 24px;
  font-weight: 400;
  line-height: 36px;
  font-style: normal;
}

.container {
  position: relative;

  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

a {
  transition: color 0.2s ease;
}

/* HERO */

.hero {
  height: 100vh;
  width: 100%;
  background-image: url(../img/hero.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hero__title {
  position: relative;
  color: #fff;
  text-align: center;
  font-size: 50px;
  font-style: normal;
  font-weight: 700;
  line-height: 58px;
  text-transform: uppercase;

  max-width: 662px;
  margin: 0 auto 46px;
  z-index: 1;
}

.hero__title::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 150%;
  border-radius: 774px;
  background: #272929;
  filter: blur(50px);
  z-index: -1;
  overflow: hidden;
}

.start-quiz {
  color: #000;
  text-align: center;
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: 58px;
  text-transform: uppercase;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  width: 100%;
  max-width: 772px;
  padding: 18px;

  border-radius: 22px;
  background: #ecb815;
  box-shadow: 0 4px 13.1px 1px rgba(0, 0, 0, 0.43) inset;

  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  animation: pulse 2.5s infinite;
}

.start-quiz__hand {
  width: 70px;
  height: auto;
  animation: tap-hand 2s infinite ease-in-out;
  transform-origin: bottom left;
}

.start-quiz:hover {
  background: #fbd74b;
  transform: translateY(-2px);
}

.start-quiz:hover .start-quiz__hand {
  animation: tap-hand 0.3s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@keyframes tap-hand {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(4px) rotate(-5deg);
  }
}

/* PROJECT */
.project {
  padding: 70px 0 25px;
}

.title {
  font-size: 46px;
  font-weight: 500;
  line-height: 22.5px;
  text-transform: uppercase;

  margin-bottom: 60px;
}

.title--what {
  text-align: center;
}

.text {
  color: #000;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 36px;
}

.text--centr {
  text-align: center;
}

.project__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project__ditails {
  width: 40%;
}

.project__list {
  margin-top: 56px;
  min-width: 400px;
}

/* WHAT */
.what {
  padding: 135px 0 172px;
  background-image: url(../img/what.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.what__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.what__subtitle {
  margin-bottom: 24px;
  text-align: center;
}

.learn {
  margin-top: 172px;
}

.learn__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 100px;
  row-gap: 60px;
}

.item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.item__img {
  margin-bottom: 20px;
}

.item__title {
  text-align: center;
  font-size: 24px;

  font-weight: 600;
  line-height: 28px;

  margin-bottom: 10px;
}

.item__text {
  text-align: center;
  font-size: 20px;

  font-weight: 400;
  line-height: 22px;
}

/* ABOUT */
.about {
  padding: 0 0 150px 0;
}

.about__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.about__details {
  max-width: 40%;
  min-width: 350px;
}

.about__title {
  margin-top: 30px;
  margin-bottom: 10px;

  font-size: 24px;
  font-weight: 500;
  line-height: 36px;
}

/* FOOTER */
.footer {
  background-color: #212121;
  padding: 46px 0 15px;
}

.footer__list {
  display: flex;
  align-items: center;
  justify-content: space-between;

  max-width: 900px;
  margin: 0 auto;
}

.footer__item {
  color: #b2b2b2;
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  line-height: 58px;

  transition: all 0.2s ease-in;
}

.footer__item:hover {
  color: #edcc49;
  text-decoration: underline;
}
a {
  text-underline-offset: 3px;
}

.footer__item:hover a {
  color: #edcc49;

  text-decoration: underline;
}

.footer__text {
  color: #b2b2b2;
  text-align: center;
  font-family: Gilroy;
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: 58px;
}

/* OFFERING */
.offering {
  position: relative;
  padding: 120px 0;
  background-image: url(../img/what.png);
}

.back {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  right: 2%;
  top: 2%;
  padding: 9px;
  width: 50px;
  height: 50px;
  border-radius: 50%;

  background: #e6b415;
}

.back img {
  width: 100%;
  height: 100%;
  margin-left: -2px;
}

.back:hover {
  background: #f2d14a;
}

.title--offering {
  font-size: 30px;
  line-height: 30px;
}

.text__wrapper {
  margin-bottom: 50px;
}

.offering__title {
  font-size: 25px;
  font-weight: 600;
  line-height: 28px;

  margin-bottom: 25px;
}

.offering__text {
  font-size: 24px;
  font-weight: 400;
  line-height: 36px;
}

@media (max-width: 1320px) {
  .container {
    padding: 0 23px;
  }
}

@media (max-width: 1100px) {
  .learn__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1000px) {
  .text {
    font-size: 18px;
  }
}

@media (max-width: 800px) {
  .hero__title {
    font-size: 38px;
    line-height: 40px;
  }
  .hero__title::before {
    width: 100%;
  }

  .start-quiz {
    font-size: 20px;
    line-height: 20px;
    padding: 15px;
    width: 80%;
  }

  .start-quiz__hand {
    width: 50px;
  }

  .title {
    text-align: center;
    font-size: 30px;
    margin-bottom: 50px;
  }

  .text {
    text-align: center;
    line-height: 28px;
  }

  .text--centr {
    font-size: 16px;
  }
  .project__container {
    flex-direction: column;
  }
  .project__ditails {
    width: 100%;
  }
  .project__list {
    min-width: 100%;
    margin-top: 25px;
  }

  .project__img {
    margin-top: 20px;
  }

  .what {
    padding: 80px 0;
  }

  .learn {
    margin-top: 110px;
  }

  .about__container {
    flex-direction: column;
    margin-bottom: 45px;
  }

  .about__details {
    min-width: 100%;
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    margin-bottom: 45px;
  }

  .about__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .about__title {
    font-size: 22px;
    line-height: 36px;
  }

  .about__text {
    font-size: 20px;
    line-height: 28px;
    text-align: center;
  }

  .footer__list {
    flex-direction: column;
    margin-bottom: 30px;
  }

  .footer__item {
    line-height: 38px;
  }

  .footer__text {
    font-size: 12px;
    font-style: normal;
    font-weight: 300;
    line-height: 28px;
  }

  .text__wrapper {
    margin-bottom: 25px;
  }

  .offering {
    padding: 90px 0;
  }

  .offering__title {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .offering__text {
    font-size: 20px;
    font-weight: 400;
    line-height: 25px;
  }

  .back {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    right: 3%;
    top: 1%;
    padding: 9px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 500px) {
  .hero__title {
    font-size: 30px;
    line-height: 33px;
  }

  .start-quiz {
    font-size: 15px;
    line-height: 27.537px;
    width: 100%;
    max-width: 300px;
  }
  .start-quiz__hand {
    width: 33px;
  }

  .what__subtitle {
    margin-bottom: 9px;
  }

  .learn__list {
    grid-template-columns: repeat(1, 1fr);
    row-gap: 32px;
  }

  .item {
    padding: 0 40px;
  }

  .item__title {
    font-size: 24px;
    line-height: 28px;
  }

  .item__text {
    font-size: 20px;
    line-height: 22px;
  }

  .about {
    padding: 80px 0 80px 0;
  }

  .about__title {
    font-size: 18px;
    line-height: 36px;
  }

  .about__text {
    font-size: 18px;
    line-height: 28px;
    text-align: center;
  }

  .footer__item {
    font-size: 14px;
  }

  .footer__text {
    font-size: 12px;
    font-style: normal;
    font-weight: 300;
    line-height: 18px;
  }
}
