/* Animacje */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-in-out forwards;
}

.slide-in {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideIn 1s ease-in-out forwards;
}

@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
      opacity: 0;
      transform: translateX(-50px);
  }
  to {
      opacity: 1;
      transform: translateX(0);
  }
}

.plan {
  width: 100%;
  margin-top: 80px;
  padding: 120px;
  text-align: left;
}

.title {
  margin: 80px 20px 20px 20px;
  padding: 10px;
}

.plan_title {
  text-align: center;
  font-size: 32px;
}

.plan p {
  text-align: justify;
  font-size: 18px;
  color: rgb(71, 71, 71);
  line-height: 32px;
}

.line_adaptacja {
  width: 100%;
  height: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.line_30 {
  width: 15%;
  height: 4px;
  background-color: #4aa3df;
  margin-top: 10px;
}

.photo {
  display: flex;
  justify-content: right;
  width: 100%;
  top: -150px;
  position: relative;
  z-index: -1;
  margin-right: 200px;
  padding-right: 250px;
}

.photo img {
  height: 25%;
  width: 25%;
}

/* Dla tabletów i małych ekranów */
@media only screen and (max-width: 1024px) {
  .plan {
    padding: 80px;
  }
  .title {
    margin: 60px 20px 20px 20px;
  }
  .plan_title {
    font-size: 28px;
  }
  .plan p {
    font-size: 16px;
  }
  .photo {
    margin-right: 150px;
    padding-right: 200px;
    top: -120px;
  }
}

/* Dla urządzeń mobilnych */
@media only screen and (max-width: 768px) {
  .plan {
    padding: 40px;
  }
  .title {
    margin: 40px 10px;
  }
  .plan_title {
    font-size: 24px;
  }
  .plan p {
    font-size: 14px;
    line-height: 24px;
    word-spacing: 5px;
  }
  .photo {
    margin-right: 20px;
    padding-right: 20px;
    top: -70px;
  }
  .photo img {
    width: 50%;
    height: auto;
  }
}
