header {
  display: flex;
  flex-direction: column; /* ułożenie w kolumnie */
  align-items: center; /* wyśrodkowanie logo i tekstu */
  text-align: center;
  gap: 20px; /* odstęp między elementami */
  background-image: url("../images/background.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
}

.header-content {
  display: flex;
  align-items: center; /* wyśrodkowanie logo i tekstu */
  text-align: left;
  padding: 20px 30px;
}

header img {
  height: 20em;
  width: 20em;
  z-index: 2;
  opacity: 0.8;
}
header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(27, 27, 27, 0.7);
}
header h1,
header p,
header i,
header button {
  position: relative;
  z-index: 1;
}
header h1 {
  font-size: 3rem;
}
header p {
  font-size: 1.5rem;
  margin-bottom: 30px;
}
header button {
  padding: 10px 25px;
  font-size: 1rem;
  border: none;
  background-color: var(--main-color);
  color: white;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.3s;
}
header button:hover {
  background-color: var(--main-color-hover);
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }
  .header-content {
    flex-direction: column;
    text-align: center;
    padding: 20px 30px;
  }
  header img {
    height: 10em;
    width: 10em;
  }

  header h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 1rem;
  }
}
