
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #111;
  color: #eee;
}

header {
  background: #6CC24A;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  height: 40px;
  margin-right: 10px;
}

header h1 {
  color: #000;
  margin: 0;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 15px;
  transition: color 0.3s;
}

nav a:hover {
  color: #ccc;
}

.hero {
  text-align: center;
  padding: 60px 20px;
  background: #000;
  color: #6CC24A;
}

.hero .btn {
  background: #6CC24A;
  color: #000;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.hero .btn:hover {
  background: #5aa83f;
}

table {
  width: 80%;
  margin: auto;
  border-collapse: collapse;
}

td {
  border: 1px solid #6CC24A;
  padding: 10px;
}

footer {
  text-align: center;
  padding: 20px;
  background: #6CC24A;
  color: #000;
  margin-top: 20px;
}

footer a {
  color: #000;
  font-weight: bold;
  text-decoration: none;
  margin: 0 10px;
}

footer a:hover {
  text-decoration: underline;
}

.comparison-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 3px solid #6CC24A;
  border-radius: 8px;
  padding: 5px;
  margin: 10px auto;
  max-width: 30%;
  background: #000;
  flex-wrap: nowrap;
}

.comparison-box img {
  flex: 1;
  width: 30%;
  height: auto;
  border: 2px solid #6CC24A;
  border-radius: 5px;
  display: block;
  transition: all 0.3s ease-in-out;
}

.comparison-box img:hover {
    transform: scale(2.0);     /* powiększenie zdjęcia */
    box-shadow: 0 0 15px #6CC24A; /* lekki zielony cień dla efektu */
    position: relative;        /* żeby zdjęcie było nad innymi */
    z-index: 10;
}

gallery-grid {
  display: grid !important; 
  grid-template-columns: repeat(2, 1fr); /* 2 pary (czyli 4 zdjęcia) w jednym rzędzie */
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.comparison-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 3px solid #6CC24A;
  border-radius: 8px;
  padding: 5px;
  background: #000;
}

.comparison-box img {
  width: 48%;
  height: auto;
  border: 2px solid #6CC24A;
  border-radius: 5px;
  transition: transform 0.3s ease-in-out;
}

.comparison-box img:hover {
  transform: scale(1.05);
}


/* --- RESPONSYWNOŚĆ --- */

/* Dla telefonów (ekrany do 768px) */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    nav {
        margin-top: 10px;
    }

    table {
        width: 100%;
        font-size: 14px;
    }

    .faq-item {
        width: 95%;
        font-size: 14px;
    }

    form {
        width: 90%;
    }

    .comparison-box {
        flex-direction: column;   /* zamiast obok siebie ustawia jedno pod drugim */
        max-width: 100%;
    }

    .comparison-box img {
        width: 90%; max-width: 400px; /* każde zdjęcie pełna szerokość na telefonie */
    }
}

/* Dla dużych ekranów (komputery) */
@media (min-width: 769px) {
    .comparison-box {
        flex-direction: row; /* zdjęcia obok siebie */
    }

    .comparison-box img {
        width: 35%; max width: 280px;
    }
}


/* --- GALERIA --- */
.gallery-grid {
  display: grid !important;        /* wymuszenie grida */
  grid-template-columns: repeat(2, 1fr) !important; /* 2 kolumny = 2 pary obok siebie */
  gap: 10px !important;           /* odstęp między parami */
  max-width: 1600px;
  margin: 0 auto;
}

/* Każda para (comparison-box) to dwa zdjęcia obok siebie */
.comparison-box {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 2px solid #6CC24A;
  border-radius: 6px;
  padding: 5px;
  background: #000;
  width: 100%
  height: auto;
}

/* Zdjęcia w parze */
.comparison-box img {
  flex: 1;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 2px solid #6CC24A;
  border-radius: 4px;
  transition: transform 0.3s ease-in-out;
}

.comparison-box img:hover {
  transform: scale(3.0); z-index: 2;
}

/* --- TELEFON --- */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr !important;  /* tylko 1 para w rzędzie na telefonie */
  }
}
