/* Kontener główny trzymający obie sekcje obok siebie */
.main-content {
  display: flex;
  justify-content: flex-start; /* elementy ustawione od lewej */
  align-items: flex-start;     /* wyrównanie do góry */
  gap: 60px;                   /* odstęp między galerią a tabelą */
  padding: 40px 20px;
  flex-wrap: nowrap;           /* wyłącz zawijanie, by nie spadało pod siebie */
  max-width: 100%;
  overflow-x: auto;            /* poziomy scroll gdy za wąsko */
}

/* Sekcja galerii */
.gallery-section {
  max-width: 600px;
  flex-shrink: 0;              /* nie kurczy się poniżej max-width */
  padding-left: 40px;
}

/* Tytuł galerii wyśrodkowany */
.gallery-title-center {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 40px;
  text-align: center;
  width: 100%;
  display: block;
}

/* Kontener dużego zdjęcia */
.large-image-container {
  width: 100%;
  height: 400px;
  margin-bottom: 15px;
  border-radius: 12px;
  overflow: hidden;
}

/* Duże zdjęcie */
.large-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Miniaturki */
.thumbnails {
  display: flex;
  justify-content: center; /* wyśrodkowanie miniaturek */
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.thumbnails img.thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  border: 2px solid transparent;
}

.thumbnails img.thumb.active,
.thumbnails img.thumb:hover {
  opacity: 1;
  border-color: #c51212;
}

/* Sekcja z tabelą "Dane techniczne" */
.specs-section {
  background-color: #f8f8f8;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-width: 300px;
  max-width: 400px;
  flex-shrink: 0; /* nie kurczy się */
}

/* Tytuł tabeli */
.specs-section h3 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 25px;
  text-align: center;
  color: #000;
}

/* Styl tabeli */
.specs-section table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  background-color: #ffffff;
}

.specs-section table tr {
  transition: background-color 0.3s ease;
}

.specs-section table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.specs-section table tr:hover {
  background-color: #f1f1f1;
}

.specs-section table tr td:first-child {
  font-weight: 600;
  color: #2c3e50;
  padding: 12px 15px;
  width: 40%;
  border-right: 2px solid #e0e0e0;
  vertical-align: top;
  background-color: #f4f7fb;
}

.specs-section table tr td:last-child {
  padding: 12px 15px;
  color: #34495e;
  vertical-align: top;
}

/* Zaokrąglenie rogów tabeli */
.specs-section table tr:first-child td:first-child {
  border-top-left-radius: 12px;
}

.specs-section table tr:first-child td:last-child {
  border-top-right-radius: 12px;
}

.specs-section table tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.specs-section table tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

/* Lightbox styles */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 12px;
  margin-bottom: 20px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  user-select: none;
}

.nav-btn {
  background: none;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  margin: 0 20px;
  user-select: none;
}

/* Dodatkowy tytuł sekcji */
.title-section {
  width: 100%;
  text-align: center;
  margin-bottom: 40px;
  margin-top: 40px;
}

.main-title {
  font-size: 54px;
  font-weight: bold;
  margin: 0 auto;
  color: #000;
}
.contact-section {
  background-color: #e7f0ff;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-width: 280px;
  max-width: 350px;
  flex-shrink: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-section h3 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  color: #004085;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.contact-section p {
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
}

.contact-section strong {
  color: #003366;
}
.description-section {
  max-width: 1000px;
  margin: 40px auto 80px auto;
  padding: 25px 30px;
  background-color: #f4f6f9;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
}

.description-section h3 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #003366;
  text-transform: uppercase;
  letter-spacing: 1.3px;
}

.description-section p {
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
}
/* --- RESPONSYWNOŚĆ --- */

/* Do 768px (tablet, małe laptopy) */
@media (max-width: 768px) {
  .main-content {
    flex-wrap: wrap;
    flex-direction: column;
    gap: 30px;
    padding: 20px 10px;
    overflow-x: visible; /* usuń scroll gdy zawijamy */
  }
  
  .gallery-section,
  .specs-section {
    max-width: 100%;
    flex-shrink: 1;
    padding-left: 0;
  }
}

/* Do 480px (smartfony) */
@media (max-width: 480px) {
  .gallery-title-center {
    font-size: 36px;
    margin-bottom: 25px;
  }

  .large-image-container {
    height: 250px; /* zmniejszona wysokość zdjęcia */
  }

  .thumbnails img.thumb {
    width: 48px;
    height: 48px;
  }

  .specs-section {
    max-width: 100%;
    padding: 20px 15px;
    min-width: auto;
    box-shadow: none;
  }

  .specs-section h3 {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .specs-section table {
    font-size: 14px;
  }

  .contact-section {
    max-width: 100%;
    padding: 20px 15px;
    min-width: auto;
    box-shadow: none;
  }

  .contact-section h3 {
    font-size: 24px;
  }

  .description-section {
    padding: 20px 15px;
    margin: 30px 15px 60px 15px;
  }

  .description-section h3 {
    font-size: 24px;
  }

  .description-section p {
    font-size: 16px;
  }
}




