body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f4f4f4;
}

.m3-container {
  display: flex;
  flex-wrap: wrap;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.m3-left, .m3-right {
  flex: 1 1 300px;
  padding: 10px;
}

.m3-left img {
  width: 100%;
  max-width: 500px;
  cursor: pointer;
  border-radius: 10px;
}

.m3-right h1 {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 15px;
}

.m3-secondary-image {
  width: 100%;
  max-width: 300px;
  margin-bottom: 20px;
  border-radius: 10px;
}

.download-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #ff6600;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  margin-top: 20px;
}

.download-button:hover {
  background-color: #e65c00;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1); /* zamiast 0.85 — dużo jaśniejsze tło */
  backdrop-filter: blur(2px); /* opcjonalnie: rozmycie tła */
}


.modal-content-wrapper {
  position: relative;
  background: white;
  padding: 10px;
  max-width: fit-content;
  max-height: fit-content;
  margin: 5% auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  display: flex;
  justify-content: center;
  align-items: center;
}


.modal-content {
  max-height: 90vh;
  max-width: 90vw;
  width: auto;
  height: auto;
  object-fit: contain;
}

.close {
  position: absolute;
  top: 10px;
  right: 30px;
  color: red;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
}

.gallery-section {
  max-width: 900px;
  margin: 40px auto;
  font-family: Arial, sans-serif;
  text-align: center;
  color: #ff6600;
}

.gallery-section h2 {
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px 3px #ff6600cc;
}

/* MODAL */

.modal {
  display: none; /* domyślnie ukryty */
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content-wrapper {
  display: flex;
  align-items: center;
  max-width: 90%;
  max-height: 90%;
}

.modal-content {
  max-width: 80vw;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 15px #ff6600;
  user-select: none;
  pointer-events: none;
}

.arrow-button {
  background: none;
  border: none;
  color: #ff6600;
  font-size: 3rem;
  cursor: pointer;
  user-select: none;
  padding: 0 15px;
  transition: color 0.3s;
}

.arrow-button:hover {
  color: #cc5200;
}
.gallery-container {
  max-width: 800px; /* ustaw na szerokość galerii zdjęć, np. 800px lub inną */
  margin: 0 auto;   /* wyśrodkowanie kontenera galerii */
}

.video-wrapper {
  width: 800px;          /* szerokość równa szerokości galerii zdjęć */
  height: 400px;         /* wysokość ustawiona na połowę szerokości (50%) */
  margin: 20px auto 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}
.contact-expert-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 5%;
  background-color: white;
}

.contact-text {
  flex: 1;
  text-align: left;
}

.contact-text h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.contact-text h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #555;
}

.whatsapp-link {
  display: inline-block;
  background-color: #25d366;
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.whatsapp-link:hover {
  background-color: #128c7e;
}

/* Styl zdjęcia i danych kontaktowych */
.contact-image {
  text-align: center;
  flex: 1;
  margin-top: 60px;  /* Dalsze obniżenie zdjęcia */
}

.contact-image img {
  width: 100%;
  max-width: 300px;
  border-radius: 50%;
  object-fit: cover;
}

.name {
  font-size: 24px;
  margin-top: 5px;  /* Dalsze zmniejszenie odstępów */
  font-weight: bold;
}

.subtitle {
  font-size: 18px;
  margin-bottom: 5px;  /* Dalsze zmniejszenie odstępów */
  color: #888;
}

.contact-info {
  font-size: 18px;
  color: #333;
}

.contact-info a {
  color: #0066cc;
  text-decoration: none;
}

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

table {
      border-collapse: collapse;
      width: auto;
      margin-left: 0;
    }

    th, td {
      border: 1px solid #ccc;
      padding: 10px 16px;
      text-align: center;
      vertical-align: left;
    }

    th {
      background-color: #ff5c00;
      color: white;
      white-space: nowrap;
    }

    tr:nth-child(even) td {
      background-color: #f9f9f9;
    }

    tr:nth-child(odd) td {
      background-color: #ffffff;
    }

    td:first-child {
      text-align: left;
      font-weight: bold;
      background-color: #f2f2f2;
    }

    caption {
      caption-side: top;
      font-size: 1.4em;
      font-weight: bold;
      margin-bottom: 10px;
    }
/* TABLETY – max-width: 1024px */
@media (max-width: 1024px) {
  .m3-container {
    flex-direction: column;
    align-items: center;
  }

  .m3-left, .m3-right {
    width: 100%;
    padding: 10px 0;
    text-align: center;
  }

  .m3-left img, .m3-secondary-image {
    max-width: 90%;
  }

  .modal-content-wrapper {
    margin: 10% auto;
  }

  .video-wrapper {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-expert-section {
    flex-direction: column;
    text-align: center;
  }

  .contact-text, .contact-image {
    width: 100%;
  }

  .contact-image {
    margin-top: 30px;
  }

  .contact-image img {
    max-width: 250px;
  }
}

/* TELEFONY – max-width: 768px */
@media (max-width: 768px) {
  .m3-right h1 {
    font-size: 1.6em;
  }

  .download-button {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-content {
    max-width: 90vw;
    max-height: 70vh;
  }

  .arrow-button {
    font-size: 2rem;
    padding: 0 10px;
  }

  .video-wrapper {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .contact-text h2 {
    font-size: 24px;
  }

  .contact-text h3 {
    font-size: 18px;
  }

  .whatsapp-link {
    font-size: 14px;
    padding: 10px 16px;
  }

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

  .contact-image img {
    max-width: 200px;
  }

  table {
    font-size: 0.9rem;
    width: 100%;
    overflow-x: auto;
    display: block;
  }

  th, td {
    padding: 8px 10px;
    white-space: nowrap;
  }
}

/* MAŁE TELEFONY – max-width: 480px */
@media (max-width: 480px) {
  .m3-right h1 {
    font-size: 1.4em;
  }

  .download-button {
    width: 100%;
    padding: 10px;
  }

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

  .arrow-button {
    font-size: 1.8rem;
    padding: 0 6px;
  }

  .contact-text h2 {
    font-size: 20px;
  }

  .contact-text h3 {
    font-size: 16px;
  }

  .contact-image img {
    max-width: 160px;
  }

  .modal-content {
    max-width: 95vw;
    max-height: 60vh;
  }

  caption {
    font-size: 1.1em;
  }
}
@media (max-width: 1024px) {
  .video-wrapper {
    max-width: 600px;  /* trochę mniejsze video na tabletach */
    padding-bottom: 56.25%; /* proporcje 16:9 */
  }
}

@media (max-width: 768px) {
  .video-wrapper {
    max-width: 90%;    /* prawie pełna szerokość ekranu na telefonach */
    padding-bottom: 56.25%; /* 16:9 */
  }
}

@media (max-width: 480px) {
  .video-wrapper {
    max-width: 100%;   /* pełna szerokość na małych telefonach */
    padding-bottom: 56.25%; /* 16:9 */
    margin: 15px auto 0;
  }
}