/* Reset i podstawy */
* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #f2f2f2;
  color: #000;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 18px;
  font-weight: 300;
}

/* Kolory */
:root {
  --main-blue: #3399ff;
  --white-color: #fff;
  --background-gray: #f2f2f2;
  --footer-text: #f0f0f0;
}

/* HEADER */
header {
  background-color: var(--white-color);
  width: 100%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo img {
  height: 160px;
  display: block;
}

/* Menu */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: #000000;
  font-weight: bold;
  font-size: 1.3rem;
  line-height: 140px;
  display: inline-block;
}

nav a:hover,
nav a.active {
  text-decoration: underline;
  color: #0077cc;
}

/* Hamburger (checkbox hack) */
.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
  font-size: 2rem;
  padding: 10px;
}

@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    background: white;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .menu-toggle:checked + .menu-icon + nav ul {
    display: flex;
  }

  nav a {
    line-height: normal;
  }

  .logo img {
    height: 120px;
  }

  header .container {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* CONTENT */
main.content-wrapper {
  flex-grow: 1;
  background-color: var(--background-gray);
  padding: 0;
  display: flex;
  justify-content: center;
}

.content {
  background-color: var(--white-color);
  max-width: 1300px;
  width: 100%;
  padding: 40px 50px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 1px;
  margin: 0 auto;
}

.content h2 {
  text-align: left;
  margin-top: 0;
  margin-bottom: 40px;
  color: #000000;
  font-size: 1.1rem;
}

/* Kategorie (Realizacje) */
.categories-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.categories-list li {
  background: #ffffff;
  border: 1px solid #ddd;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  border-radius: 4px;
  box-shadow: 0 0 5px #ccc;
  transition: box-shadow 0.3s ease;
}

.categories-list li:hover {
  box-shadow: 0 0 12px var(--main-blue);
}

.categories-list img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  margin-top: 10px;
  border-radius: 4px;
}

/* Ukryte galerie */
.gallery {
  display: none;
}

/* Kontakt - Flexbox dla tekstu i mapy */
.contact-flex {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.contact-info, .map-container {
  flex: 1 1 400px;
  max-width: 600px;
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

/* FOOTER */
footer {
  background-color: var(--main-blue);
  color: var(--footer-text);
  text-align: center;
  padding: 20px 0;
  flex-shrink: 0;
  font-weight: 300;
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 10px;
  text-align: left;
}

/* Galeria */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 40px auto;
}

.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 6px #aaa;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--main-blue);
}

/* Lightbox overlay */
.lightbox {
  position: fixed;
  display: none;
  justify-content: center;
  align-items: center;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.9);
  z-index: 9999;
  flex-direction: column;
  gap: 15px;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 6px;
  box-shadow: 0 0 20px #000;
  user-select: none;
}

.close {
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 30px;
  user-select: none;
}

.navigation {
  display: flex;
  gap: 15px;
}

.navigation button {
  background: none;
  border: 2px solid white;
  color: white;
  font-size: 1.6rem;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}

.navigation button:hover {
  background-color: white;
  color: black;
}

/* CERTYFIKATY */
.certificates-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  max-width: 1000px;
}

.certificates-list li {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  box-shadow: 0 0 7px #ccc;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
  text-align: center;
}

.certificates-list li:hover {
  box-shadow: 0 0 14px var(--main-blue);
}

.certificates-list img {
  max-width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
  user-select: none;
}
