.HowItWork {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  margin-bottom: 100px;

  > h1 {
    font-size: 3vw;
    color: #000;
  }
  > p {
    font-weight: 500;
    font-size: 1.2vw;
    text-wrap: pretty;
    width: 52%;
    text-align: center;
    color: var(--text);
  }
  > div {
    display: flex;
    justify-content: center;

    width: 80%;
    gap: 40px;
    margin-top: 40px;
    > img {
      width: 600px;
      height: 500px;
    }
    > span {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      max-width: 100%;
      height: 100%;
      gap: 100px;
      padding-block: 10%;
      article {
        display: flex;
        align-items: center;
        gap: 20px;
        max-width: 100%;
        img {
          width: 50px;
          object-fit: contain;
        }
        div {
          width: 100% !important;
          h4 {
            font-size: max(1.2vw, 16px);
          }
          p {
            font-weight: normal;
            font-size: max(1vw, 14px);
            width: 100%;
          }
        }
      }
    }
  }
}

@media screen and (max-width: 900px) {
  .HowItWork {
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    margin-block: 100px;

    > h1 {
      font-size: 7vw;
      color: var(--text);
    }
    > p {
      font-weight: 500;
      font-size: 3vw;
      text-wrap: pretty;
      width: 60%;
      text-align: center;
      color: var(--text);
    }
    > div {
      display: flex;
      justify-content: center;
      flex-direction: column;
      align-items: center;
      width: 80%;
      gap: 40px;
      margin-top: 40px;
      > img {
        width: 300px;
        height: 250px;
        order: 0;
      }
      > span {
        order: 2;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-width: 100%;
        height: 100%;
        gap: 20px;
        padding-block: 0%;

        article {
          display: flex;
          flex-direction: column;
          align-items: flex-start;
          gap: 20px;
          max-width: 100%;
          background: var(--bg2);
          padding: 20px;
          img {
            width: 50px;
            object-fit: contain;
          }
          div {
            width: 80%;
            h4 {
              font-size: max(1.2vw, 16px);
            }
            p {
              font-weight: normal;
              font-size: max(1vw, 14px);
              width: 100%;
            }
          }
        }
      }
    }
  }
}
