* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

header {
  background-color: #222;
  color: #fff;
  padding: 15px 0px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.navbar {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.logo {
  width: 130px;
  margin-bottom: 10px;
}

nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 0;
  margin: 0;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1em;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #ff9d00;
}

section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
}

h1,
h2 {
  text-align: center;
  margin-bottom: 20px;
}

.services,
.gallery,
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* ----- GALERIA SLIDER ----- */

.slider-container {
  position: relative;
  max-width: 900px;
  margin: 40px auto;
  overflow: hidden;
}

.slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 15px;
}

.slider::-webkit-scrollbar {
  display: none;
}

.slider img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.slider img:hover {
  transform: scale(1.05);
}

/* Strzałki */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ff9d00;
  border: none;
  color: white;
  font-size: 28px;
  padding: 8px 14px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
  z-index: 10;
}

.slide-btn:hover {
  background: #e68a00;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* ----- LIGHTBOX (POWIĘKSZENIE) ----- */

#lightbox {
  display: none; /* pokazywany w JS */
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

#lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.3);
}

#closeLightbox {
  position: absolute;
  top: 40px;
  right: 40px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  user-select: none;
}

/* ----- LIGHTBOX STRZAŁKI ----- */
.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.3);
  border: none;
  color: white;
  font-size: 50px;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 8px;
  transition: 0.2s;
  user-select: none;
}

.lb-arrow:hover {
  background: rgba(255, 255, 255, 0.6);
}

.lb-prev {
  left: 5%;
}

.lb-next {
  right: 5%;
}

footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

a {
  color: #ff9d00;
}

.price-table {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.price-table .column {
  flex: 1;
  min-width: 300px;
}

.price-table ul {
  list-style: none;
  padding: 0;
}

.price-table li {
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
  font-size: 0.95em;
}

.price-table strong {
  color: #222;
}

.price {
  color: #1e90ff;
  font-weight: bold;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff !important; /* wymusza biały tekst */
  background: #ff9d00; /* pomarańcz */
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none !important; /* usuwa podkreślenie */
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  background: #e68a00; /* ciemniejszy pomarańcz */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.burger {
  display: none;
  font-size: 1.8rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

.blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* FORMULARZE */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

form input,
form select,
form textarea {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}

form textarea {
  resize: vertical;
}

/*Certyfikaty*/
.certy-section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
}

.center-text {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.1em;
}

.certy-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px 1fr));
  gap: 25px;
  margin-top: 30px;
}

.cert-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
}

.cert-title {
  width: 100%;
  height: 250px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  pointer-events: none;
}

.cert-img {
  width: 50%;
  height: 600px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  pointer-events: none;
}

.cert-card:hover {
  transform: translateY(-5px);
  transition: 0.3s;
}

.cert-title {
  margin-top: 12px;
  font-weight: bold;
  color: #333;
}

#cursorTooltip{
  position: fixed;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

/*Responsywnosc*/
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  .burger {
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
  }

  nav {
    display: none;
    width: 100%;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    background: #222;
    gap: 15px;
    padding: 20px 0;
  }

  nav ul li a {
    font-size: 1.1em;
    display: block;
    padding: 10px;
  }

  .logo {
    width: 100px;
    margin-bottom: 15px;
  }

  section {
    padding: 40px 15px;
  }

  .price-table {
    flex-direction: column;
    gap: 20px;
  }

  .gallery,
  .services,
  .reviews {
    grid-template-columns: 1fr;
  }

  .card {
    font-size: 0.95em;
    padding: 15px;
  }

  .slider img {
    width: 240px;
    height: 160px;
  }

  .slide-btn {
    font-size: 22px;
    padding: 6px 10px;
  }

  .lb-arrow {
    font-size: 38px;
    padding: 6px 12px;
  }

  .cert-img {
    width: auto;
    height: 768px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    pointer-events: none;
  }

  footer {
    font-size: 0.9em;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5em;
  }

  h2 {
    font-size: 1.2em;
  }

  nav ul li a {
    font-size: 0.9em;
  }

  .price {
    font-size: 1em;
  }
}
