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


/* SEKCJA MOTORÓWKA */
.motorowka {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 400px;
  background: rgba(0,0,0,0.4);
  text-align: center;
  color: white;
  padding: 0 20px;
}


@media only screen and (max-width: 768px) {
  .motorowka {
    background-image: url('kursymotorowodne.jpg') !important;
    background-position: 35% center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
  }
}



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

.motorowka p { 
  font-size: 20px; max-width: 700px; line-height: 1.4; 
}

/* KONTAKT */
.kontakt {
  padding: 60px 5%;
  background: #f5f7fa;
  text-align: center;
}

.contact-line {
  width: 100%;
  border-top: 1px solid #333;
  margin: 40px 0 20px;
}

.kontakt h2 {
  font-size: 36px;
  color: #002d4f;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.kontakt-form-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}

.contact-form {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.contact-form label { 
  font-weight: bold; color: #002d4f; 
}

.contact-form input, .contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  color: #002d4f;
}

.contact-form button {
  background: #00CFFF;
  color: white;
  border: none;
  padding: 15px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover { 
  background: #005fa3; 
}

/* KWADRATY I MAPA */
.kontakt-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  flex: 1;
}

.contact-info > div {
  background: #002d4f;
  color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-align: center;
}

.contact-info h4 { 
  margin-bottom: 10px; font-size: 20px; 
}

.contact-info a, .contact-info p {
  color: white;
  font-size: 18px;
  word-break: break-word;
  text-decoration: none;
}

.contact-info a:hover { 
  text-decoration: underline; 
}

.kontakt-right {
  flex: 1;
  min-width: 300px;
  max-width: 800px;
  height: 400px;
}

.map-container {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  overflow: hidden;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 1024px) {
  .kontakt-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-info {
    grid-template-columns: 1fr; /* jeden box w rzędzie na tabletach */
  }

  .kontakt-right {
    max-width: 100%;
    height: 300px; /* mniejsza mapa na tabletach */
  }
}


@media (max-width: 768px) {

  .motorowka h1, .kontakt h2 {
    font-size: 30px;
  }

  .motorowka p, .contact-form label, .contact-form input, .contact-form textarea, .contact-form button {
    font-size: 16px;
  }

}
@media (max-width: 480px) {
  .contact-form {
    max-width: 90%;
  }

  .contact-info > div {
    padding: 15px;
  }

  .contact-info h4 {
    font-size: 18px;
  }

  .contact-info p, .contact-info a {
    font-size: 16px;
  }

  .kontakt-right {
    height: 250px; /* jeszcze mniejsza mapa na małych telefonach */
  }

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