.opakowania {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
  color: #333;
}

.opakowania h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 10px;
  
  font-weight: 700;
  line-height: 54px;
  color: #222;
}

.underline {
  width: 60px;
  height: 4px;
  background-color: orange;
  margin: 0 auto 0;
  border-radius: 2px;
}

.content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center; /* <-- To sprawia, że tekst jest wyśrodkowany względem obrazka */
}

.image {
  flex: 1 1 400px;
  max-width: 100%;
  max-height: 450px;
  border-radius: 8px;
  object-fit: cover;
}

.text {
    font-family: Roboto;
  flex: 1 1 400px;
  font-size: 18px;
    line-height: 28px;
    letter-spacing: 0em;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background-color: orange;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background 0.3s;
}

.btn:hover {
  background-color: darkorange;
}

@media (max-width: 768px) {
  .content {
    flex-direction: column;
  }

  .image, .text {
    flex: 1 1 100%;
  }

  .text {
    margin-top: 20px;
  }
}