body {
  background-image: url(motorowka.jpg);
  background-attachment: fixed;
  background-size: cover;
}

.footer-line {
  width: 90%;
  border: none;
  border-top: 1px solid #333;
  margin: 20px 0;
}

.list2 {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.list2 a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 18px;
  transition: color 0.3s;
}

.list2 a:hover {
  color: #00CFFF;
}

/* SEKSCJA .jeden */
.jeden {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  color: white;
  background-image: url("twoje-tlo.jpg"); /* twoje tło */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh; /* pełna wysokość widoku */
}

.jeden::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.jeden * {
  position: relative;
  z-index: 1;
}



.jeden h1 {
  font-size: 50px;
  margin-bottom: 20px;
  padding: 0 20px;
}

.jeden p {
  font-size: 20px;
  max-width: 700px;
  margin-bottom: 30px;
  padding: 0 20px;
  line-height: 1.4;
}

.jeden a {
  display: inline-block;
  width: 200px;
  height: 60px;
  line-height: 60px;
  background-color: #00CFFF;
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  font-size: 25px;
  font-weight: bold;
  transition: background-color 0.3s;

}

.jeden a:hover {
  background-color: #0295b7;
}

/* SEKSCJA .dwa */
.dwa {
  background-color: #f5f7fa;
  padding: 80px 5%;
  text-align: center;
}

.dwa h1 {
  font-size: 42px;
  color: #002d4f;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.dwa > p {
  font-size: 22px;
  max-width: 900px;
  margin: 0 auto 60px;
  color: #002d4f;
  line-height: 1.4;
}

.card-link {
  text-decoration: none;
  color: inherit;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: stretch; /* równa wysokość kart */
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  overflow: hidden;
  flex: 1 1 300px;
  max-width: 400px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.card img {
  width: 100%;
  height: 250px;            /* równa wysokość dla zdjęć */
  object-fit: cover;        /* przycięcie bez zniekształcenia */
  display: block;
}

.card-text {
  padding: 25px 20px;
  flex-grow: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.card-text h3 {
  font-size: 24px;
  color: #002d4f;
  margin-bottom: 10px;
}

.card-text p {
  font-size: 17px;
  color: #555;
  line-height: 1.4;
}

.rez-btn {
  display: inline-block;
  margin: 40px auto;
  padding: 14px 30px;
  background-color: #00CFFF;
  color: white;
  font-weight: bold;
  font-size: 18px;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s, transform 0.2s;
  text-align: center;
}

.rez-btn:hover {
  background-color: #0295b7;
  transform: translateY(-3px);
}


/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
  .jeden {
    height: 100vh;
    padding: 30px 20px;
  }

  .jeden h1 {
    font-size: 30px;
  }

  .jeden p {
    font-size: 16px;
  }

  .jeden a {
    font-size: 18px;
    width: 160px;
    height: 45px;
    line-height: 45px;
  }


  .cookie-banner p {
    font-size: 15px;
  }

  .cookie-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .cookie-buttons button {
    width: 100%;
    font-size: 15px;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .logo img, .logo2 img {
    height: 60px;
  }

  .list a {
    font-size: 18px;
  }

  footer .list a {
    font-size: 16px;
  }

  footer .social-icons a {
    font-size: 24px;
  }
  
  .cookie-banner p {
    font-size: 14px;
  }

  .cookie-buttons button {
    font-size: 14px;
    padding: 10px;
  }
  
}





