.lib {
  display: flex;
  height: 100vh;
}

.lib__half {
  width: 50%;
}

.lib__half:nth-child(1) {
  background-image: url(../img/lib-img.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.lib__half:nth-child(2) {
  padding: 100px;
  max-width: 700px;
  display: flex;
  align-items: start;
  justify-content: center;
  flex-direction: column;
  margin: 0 auto;
}

.lib__title {
  display: flex;
}

.lib__text {
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
  max-width: 400px;
  margin: 60px 0;
}

.lib__link {
  font-size: 20px;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  background-color: #249c72;
  border-radius: 40px;
  transition: all .6s;
  padding: 20px 60px;
  overflow: hidden;
  position: relative;
}

.lib__link:hover {
  background-color: #50af8e;
}


@media (max-width:768px) {
  .lib {
    display: block;
    height: auto;
  }

  .lib__title {
    width: 100%;
  }

  .lib__title h2 {
    width: 100%;
    text-align: center;
  }

  .lib__half:nth-child(1) {
    background-image: url(../img/lib-img.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 500px;
    width: 100%;
  }

  .lib__half:nth-child(2) {
    padding: 60px;
    width: 100%;
    height: 500px;
    background-color: #f8f8f8;
  }

  .lib__text {
    font-size: 18px;
    line-height: 28px;
    font-weight: 500;
    max-width: 100%;
    margin: 30px 0;
    text-align: center;
  }

  .lib__link {
    font-size: 18px;
    padding: 10px 25px;
    margin: 0 auto;
  }
}