
    /* Globalne style */
    /* 🔹 Ogólny wygląd headera */
   

    
    /* Globalnie box-sizing dla łatwiejszego zarządzania szerokością */
  * {
      box-sizing: border-box;
    }

    
    
    
    body {
      margin: 0;
      font-family: 'Roboto', sans-serif; /* Główna czcionka dla tekstu */
      background-color: #222222; /* Ciemny szary jako bazowy */
      color: #ffffff; /* Biały tekst */
      line-height: 1.6;
    }

    a {
      color: #ffffff;
      text-decoration: none;
      cursor: pointer;
      outline: none; /* Usunięto migającą kreskę po kliknięciu */
    }

    a:hover {
      color: #e60000; /* Czerwony akcent na hover */
    }

    /* Dodatkowe style dla usunięcia outline na elementach interaktywnych */
    button, input, textarea, select {
        outline: none;
    }
    a:focus, button:focus, input:focus, textarea:focus, select:focus {
        outline: none;
        /* Można dodać subtelny efekt focusu, który nie jest migającą kreską, np. box-shadow */
        /* box-shadow: 0 0 0 2px rgba(230, 0, 0, 0.5); */
    }


    /* Nagłówek (Header) */
    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 20px; /* zmniejszony padding, przesuwa toolbar w lewo */
      background-color: #1f1f1f;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 1000;
      font-family: 'Montserrat', sans-serif;
      box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    header.hidden {
      transform: translateY(-100%);
    }

    /* Logo firmy */
    .header-logo img {
      height: 100px; /* ZWIĘKSZONE LOGO */
      width: auto;
      display: block;
      cursor: pointer;
    }

    /* Nawigacja */
    nav {
      display: flex;
      gap: 30px;
      align-items: center;
    }

    nav a {
      color: #ffffff;
      font-family: 'Montserrat', sans-serif;
      font-weight: bold;
      text-transform: uppercase;
      font-size: 1.1em;
      padding: 5px 0;
      position: relative;
      transition: color 0.3s;
      border-bottom: none; /* Usunięto kreskę */
    }

    nav a:hover {
      color: #e60000;
    }

    .social-icons {
      display: flex;
      gap: 15px;
      margin-left: 20px;
    }

    .social-icons a {
      font-size: 24px;
      color: #ffffff;
      transition: color 0.3s;
    }

    .social-icons a:hover {
      color: #e60000;
    }

    /* Hero Slider */
    .hero-slider {
      width: 100%;
      height: 550px;
      overflow: hidden;
      position: relative;
      margin-top: 90px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .slider-backgrounds {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }

    .slider-item-bg {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-size: cover;
      background-position: center;
      opacity: 0;
      transition: opacity 1s ease-in-out;
      z-index: 1;
    }

    .slider-item-bg.active {
      opacity: 1;
      z-index: 2;
    }

    .slider-item-bg::after {
      content: '';
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.5);
      z-index: 3;
    }

    .slider-content {
      position: absolute;
      bottom: 10%;
      left: 10%;
      padding: 30px 40px;
      background-color: rgba(230, 0, 0, 0.3);
      color: white;
      text-align: left;
      font-family: 'Montserrat', sans-serif;
      font-size: 2.2rem;
      font-weight: bold;
      z-index: 4;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
      text-transform: none; /* Normalne litery */
    }

    /* Sekcje */
    .section {
      display: none;
      max-width: 1200px;
      margin: 60px auto;
      padding: 30px;
      background-color: #2e2e2e;
      border-radius: 8px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
      animation: fadeIn 0.6s ease-out;
    }

    .section.active {
      display: block;
    }

    /* Sekcja Home - specjalne ustawienia dla jej zawartości */
    #home.section {
        display: block; /* Domyślnie aktywna */
        margin-top: 0; /* Brak marginesu na górze */
        padding: 0; /* Brak paddingu, elementy w środku mają własny */
        background-color: transparent; /* Przezroczyste tło dla sekcji home */
        box-shadow: none; /* Brak cienia */
    }

    #home.section .hero-slider {
        margin-top: 90px; /* Margines dla slidera, by nie chował się pod headerem */
    }

    #home.section .features-section,
    #home.section .timeline-section,
    #home.section .home-contact-section {
        max-width: 1200px;
        margin: 60px auto;
        padding: 30px;
        background-color: #2e2e2e;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    #home.section .features-section {
        margin-top: 30px; /* Trochę mniejszy odstęp od slidera */
    }
    #home.section .timeline-section {
        margin-top: 60px; /* Odstęp między sekcjami na home */
    }
    #home.section .home-contact-section {
        margin-bottom: 60px; /* Odstęp przed stopką */
    }


    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .section h2 {
      color: #ffffff;
      text-align: center;
      padding-top: 20px;
      margin-bottom: 40px;
      font-size: 2.5em;
      font-family: 'Montserrat', sans-serif;
      border-bottom: 2px solid rgba(255, 255, 255, 0.3);
      padding-bottom: 20px;
      text-transform: uppercase; /* Nagłówki drukowanymi literami */
    }

    .section h3 {
      color: #ffffff;
      text-align: center;
      font-size: 1.8em;
      margin-bottom: 25px;
      padding-bottom: 15px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.2);
      font-family: 'Montserrat', sans-serif;
      text-transform: uppercase; /* Nagłówki drukowanymi literami */
    }

    .section-content {
      display: flex;
      align-items: center;
      gap: 40px;
      margin-bottom: 40px;
      flex-wrap: wrap;
    }

    .section-text {
      flex: 1;
      min-width: 300px;
      background-color: #3a3a3a;
      padding: 30px;
      border-radius: 8px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    .section-text p, .section-text ul {
      font-size: 1.1em;
      line-height: 1.8;
      color: #cccccc;
      margin-bottom: 15px;
      text-transform: none; /* Normalne litery */
    }

    .section-text ul {
      list-style-type: none;
      padding: 0;
    }

    .section-text ul li {
      padding: 8px 0;
      border-bottom: 1px dotted rgba(255, 255, 255, 0.1);
    }

   

    .section-text ul li:last-child {
      border-bottom: none;
    }

    .section-image {
      flex: 1;
      min-width: 300px;
      text-align: center;
    }

    .section-image img {
      max-width: 100%;
      height: auto;
      border-radius: 8px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    /* Układ naprzemienny */
    .section-content.reverse {
      flex-direction: row-reverse;
    }

    /* Sekcja kontakt w każdej sekcji */
    .contact-in-section {
      background-color: #3a3a3a;
      padding: 30px;
      margin-top: 80px;
      border-radius: 8px;
      box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
      padding-bottom: 40px;
    }

    .contact-grid {
        display: flex;
        gap: 40px;
        flex-wrap: wrap;
        margin-bottom: 30px;
    }

    .contact-form-container {
        flex: 1;
        min-width: 300px;
    }

    .address-info-container {
        flex: 1;
        min-width: 300px;
        background-color: #4a4a4a;
        padding: 30px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .address-info-container .address-group,
    .address-info-container .contact-group {
        margin-bottom: 20px; /* Odstęp między grupami adres/kontakt */
        text-transform: none; /* Zmieniono na normalne litery */
    }
    .address-info-container .contact-group {
        margin-bottom: 0; /* Ostatnia grupa bez marginesu */
    }

    .address-info-container p {
        margin: 5px 0;
        color: #cccccc;
        font-size: 1.1em;
        text-transform: none; /* Normalne litery */
    }

    .contact-in-section form {
      max-width: none;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 15px;
    }

    .contact-in-section input,
    .contact-in-section textarea {
      padding: 15px;
      font-size: 1.05rem;
      border: 1px solid #555;
      border-radius: 5px;
      background-color: #4a4a4a;
      color: #ffffff;
      outline: none;
      transition: border-color 0.3s;
      text-transform: none; /* Normalne litery */
    }

    .contact-in-section input::placeholder,
    .contact-in-section textarea::placeholder {
      color: #aaaaaa;
      text-transform: none; /* Normalne litery */
    }

    .contact-in-section input:focus,
    .contact-in-section textarea:focus {
      border-color: #e60000;
    }

    .contact-in-section input[type="submit"] {
      background-color: #e60000;
      color: white;
      border: none;
      cursor: pointer;
      font-weight: bold;
      padding: 15px 25px;
      border-radius: 5px;
      transition: background-color 0.3s ease;
      text-transform: uppercase; /* Przycisk pozostaje uppercase */
    }

    .contact-in-section input[type="submit"]:hover {
      background-color: #c00;
    }

    .contact-in-section iframe {
      width: 100%;
      height: 350px;
      border: 0;
      border-radius: 5px;
      margin-top: 25px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    /* Sekcja "kwadracików" MHS style */
    .features-section {
        text-align: center;
    }

    .features-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
        margin-top: 40px;
    }

    .feature-box {
        background-color: #3a3a3a;
        padding: 40px 20px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        transition: background-color 0.3s ease, transform 0.3s ease;
        position: relative;
        overflow: hidden;
        cursor: pointer;
        display: flex; /* Flexbox dla centrowania contentu */
        flex-direction: column;
        justify-content: center; /* Wyśrodkowanie pionowe */
        align-items: center; /* Wyśrodkowanie poziome */
        min-height: 200px; /* Minimalna wysokość, aby kwadraty były spójne */
        background-size: cover; /* Pokrycie tła zdjęciem */
        background-position: center; /* Wyśrodkowanie zdjęcia w tle */
        background-blend-mode: multiply; /* Tryb mieszania, aby tło było ciemniejsze */
        background-color: #3a3a3a; /* Bazowy kolor tła */
    }
    /* Hover effect for feature-box, using an overlay for color change */
    .feature-box::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: transparent; /* Początkowo przezroczyste */
        transition: background-color 0.3s ease;
        z-index: 1;
    }

    .feature-box:hover::before {
        background-color: rgba(230, 0, 0, 0.7); /* Czerwony overlay na hover */
    }


    .feature-box h4 {
        color: #ffffff;
        font-family: 'Montserrat', sans-serif;
        font-size: 1.5em;
        margin-bottom: 0; /* Usunięto margines, bo nie ma p */
        text-transform: uppercase;
        position: relative;
        z-index: 2; /* Powyżej tła zmiany koloru */
        text-align: center; /* Wyśrodkowanie tekstu */
    }

    .feature-box p {
        display: none; /* Ukryj tag p */
    }

    .feature-box .read-more {
        position: absolute;
        bottom: -50px;
        left: 0;
        width: 100%;
        text-align: center;
        background-color: rgba(0, 0, 0, 0.6);
        color: white;
        padding: 10px 0;
        font-family: 'Montserrat', sans-serif;
        font-weight: bold;
        text-transform: uppercase;
        transition: bottom 0.3s ease;
        z-index: 3;
    }

    .feature-box:hover .read-more {
        bottom: 0;
    }

    /* Styl dla osi czasu (chronological tree) */
    .timeline-section {
        background-color: #2e2e2e;
        padding: 30px;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        text-align: center;
    }
    .timeline {
        position: relative;
        max-width: 900px;
        margin: 0 auto;
        padding: 20px 0;
    }

    .timeline::before {
        content: '';
        position: absolute;
        width: 4px;
        background-color: #e60000; /* Czerwona linia czasu */
        top: 0;
        bottom: 0;
        left: 50%;
        margin-left: -2px;
    }

    .timeline-item {
        padding: 10px 0;
        position: relative;
        width: 50%;
        box-sizing: border-box;
    }

    .timeline-item:nth-child(odd) {
        left: 0;
        padding-right: 30px;
        text-align: right;
    }

    .timeline-item:nth-child(even) {
        left: 50%;
        padding-left: 30px;
        text-align: left;
    }

    .timeline-item::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        background-color: #e60000; /* Czerwone kółka na osi */
        border: 4px solid #3a3a3a; /* Kolor tła sekcji */
        top: 30px;
        border-radius: 50%;
        z-index: 1;
    }

    .timeline-item:nth-child(odd)::after {
        right: -10px;
    }

    .timeline-item:nth-child(even)::after {
        left: -10px;
    }

    .timeline-content {
        background-color: #3a3a3a;
        padding: 25px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        position: relative;
        margin-top: 15px;
    }

    .timeline-content h4 {
        margin-top: 0;
        color: #ffffff;
        font-family: 'Montserrat', sans-serif;
        font-size: 1.4em;
        text-transform: uppercase;
        margin-bottom: 10px;
    }

    .timeline-content p {
        color: #cccccc;
        font-size: 1em;
        text-transform: none;
    }

    .timeline-content img {
        max-width: 100%;
        height: auto;
        border-radius: 5px;
        margin-top: 15px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    /* Galeria kwadratowych zdjęć */
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
        margin-top: 40px;
        padding: 0 30px; /* Dopasowanie do paddingu sekcji */
    }

    .gallery-item {
        background-color: #3a3a3a;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        aspect-ratio: 1 / 1; /* Kwadratowe zdjęcia */
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer; /* Dodano kursor wskazujący na klikalność */
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Pokrywa cały obszar kwadratu */
        display: block;
        transition: transform 0.3s ease;
    }

    .gallery-item img:hover {
        transform: scale(1.05); /* Delikatne powiększenie na hover */
    }

    /* Lightbox Styles */
    .lightbox-overlay {
        display: flex; /* Zmieniamy na flex, żeby kontrolować widoczność przez opacity/visibility */
        opacity: 0; /* Początkowo niewidoczne */
        visibility: hidden; /* Początkowo ukryte dla interakcji */
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out; /* Płynne przejście */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 1000;
        justify-content: center;
        align-items: center;
    }

    .lightbox-overlay.active { /* Nowa klasa do aktywacji */
        opacity: 1;
        visibility: visible;
    }

    .lightbox-content {
        position: relative;
        max-width: 90%;
        max-height: 90%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .lightbox-content img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain; /* DOPASOWUJE ZDJĘCIE DO OKNA Z ZACHOWANIEM PROPORCJI */
        border-radius: 8px;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
        opacity: 0; /* Początkowo niewidoczne, aby zrobić fade-in po załadowaniu */
        transition: opacity 0.3s ease-in-out; /* Płynne przejście dla obrazu */
    }

    .lightbox-content img.loaded { /* Nowa klasa, gdy obraz jest załadowany */
        opacity: 1;
    }

    .lightbox-close, .lightbox-prev, .lightbox-next {
        position: absolute;
        color: #ffffff;
        font-size: 2.5em;
        cursor: pointer;
        background: none;
        border: none;
        padding: 10px;
        z-index: 1001;
        transition: color 0.3s ease;
    }

    .lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
        color: #e60000;
    }

    .lightbox-close {
        top: 20px;
        right: 30px;
    }

    .lightbox-prev {
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .lightbox-next {
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Stopka (Footer) */
    footer {
      background-color: #1a1a1a;
      color: #ffffff;
      text-align: center;
      padding: 30px 20px;
      margin-top: 60px;
      font-size: 0.9em;
      box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
      text-transform: none; /* Normalne litery */
    }

    /* Responsywność */
    @media (max-width: 900px) {
      header {
        flex-direction: column;
        padding: 15px 20px;
      }

      .header-logo {
        margin-bottom: 15px;
        margin-right: 20px;
      }

      .header-logo img {
        height: 90px; /* ZWIĘKSZONE LOGO DLA TABLETÓW */
      }

      nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
      }

      nav a {
        font-size: 1em;
      }

      .social-icons {
        margin-left: 0;
        margin-top: 10px;
      }

      .hero-slider {
        height: 400px;
        margin-top: 120px;
      }

      .slider-content {
        font-size: 1.8rem;
        padding: 20px 30px;
        left: 5%;
        right: 5%;
        bottom: 5%;
        transform: none;
        text-align: center;
      }

      #home.section .features-section,
      #home.section .timeline-section,
      #home.section .home-contact-section {
          margin: 40px auto;
          padding: 20px;
      }

      .section {
        margin: 40px auto;
        padding: 0 20px; /* Zapewnia padding wewnątrz sekcji */
      }

      .section h2 {
        font-size: 2em;
      }

      .section-content {
        flex-direction: column;
      }

      .section-content.reverse {
        flex-direction: column;
      }

      .section-text, .section-image {
        min-width: unset;
        width: 100%;
      }

      .contact-in-section h3 {
        font-size: 1.5em;
      }

      .contact-grid {
          flex-direction: column;
          gap: 20px;
      }

      .features-grid {
          grid-template-columns: 1fr;
      }

      .gallery-grid {
          grid-template-columns: 1fr; /* Jedno zdjęcie na szerokość */
          padding: 0 20px;
      }

      /* Responsywność dla osi czasu */
      .timeline::before {
          left: 18px;
      }

      .timeline-item {
          width: 100%;
          padding-left: 50px;
          padding-right: 0;
          text-align: left;
      }

      .timeline-item:nth-child(odd),
      .timeline-item:nth-child(even) {
          left: 0;
      }

      .timeline-item::after {
          left: 10px;
      }
    }

    @media (max-width: 600px) {
      header {
        padding: 10px 15px;
      }

      .header-logo img {
        height: 80px; /* ZWIĘKSZONE LOGO DLA TELEFONÓW */
      }

      nav {
        gap: 10px;
      }

      nav a {
        font-size: 0.9em;
      }

      .hero-slider {
        height: 300px;
        margin-top: 100px;
      }

      .slider-content {
        font-size: 1.5rem;
        padding: 15px 20px;
      }

      .section {
        margin: 30px auto;
        padding: 0 15px;
      }

      .section h2 {
        font-size: 1.6em;
      }
      .gallery-grid {
          padding: 0 15px;
      }
    }
    

     
    

/* 🔹 Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  background-color: #1f1f1f;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  font-family: 'Montserrat', sans-serif; /* Nagłówkowa czcionka */
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* 🔹 Logo */
.header-logo img {
  height: 80px;
  width: auto;
  display: block; /* Zapewnia, że logo zawsze się wyświetla */
  cursor: pointer;
}

/* 🔹 Linki w toolbarze */
.nav-links {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  text-align: center;
  margin-left: -10px; /* lekko w lewo */
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: color 0.3s;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: #e60000; /* czerwony hover */
}

/* 🔹 Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  background-color: white;
  height: 3px;
  width: 25px;
  border-radius: 2px;
}

/* 🔹 Mobilny widok */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #1f1f1f;
    padding: 15px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 10px 0;
    font-size: 1em;
  }

  .header-logo img {
    height: 65px; /* mniejsze logo na telefon */
  }
}

/* 🔹 Blokowanie przesuwania strony w poziomie */
body {
  overflow-x: hidden;
}

/* Dodatkowy odstęp, żeby header nie przykrywał sekcji */
.section, .home-contact-section {
  margin-top: 100px; /* dopasuj do wysokości headera */
  padding-top: 20px;
}

/* Mobilnie */
@media (max-width: 768px) {
  .section, .home-contact-section {
    margin-top: 120px; /* większy odstęp dla hamburger menu */
  }
}


@media (max-width: 768px) {
  header {
    flex-direction: row; /* logo i menu w jednej linii */
    justify-content: center; /* wyśrodkowanie całego contentu */
    align-items: center;
    padding: 10px 15px;
  }

  .header-logo {
    margin: 0; /* usuń margines, żeby logo było dokładnie na środku */
  }

  .menu-toggle {
    position: absolute; /* niezależnie od logo */
    right: 15px; /* od prawej krawędzi headera */
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-links {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    padding: 10px 0;
  }

  .header-logo img {
    height: 65px; /* mniejsze logo na telefon */
  }
}


#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background-color: rgba(50, 50, 50, 0.7);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s, transform 0.2s;
}

#scrollTopBtn:hover {
  transform: translateY(-2px);
}

#scrollTopBtn svg {
  display: block;
}


/* Kontener suwaka w galerii - identyczny styl jak na głównej */
.gallery-homepage-slider {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 85%; /* Trzyma się sztywno ram strony */
  height: 550px; /* Wysokość dopasowana do bloku galerii */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 4px;
  overflow: hidden;
  /* Odpalenie identycznej płynnej animacji (tutaj ustawiona na 25 sekund dla 5 zdjęć) */
  animation: gallerySlideAnim 25s infinite; 
  margin-bottom: 40px;
}

/* Przyciemniająca nakładka (overlay) - dokładnie taka sama jak na stronie głównej */
.gallery-slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Subtelne przyciemnienie zdjęć */
}

/* REGÓŁA ANIMACJI DLA 5 ZDJĘĆ (Płynne przejścia procentowe) */
@keyframes gallerySlideAnim {
  0%, 16% {
    background-image: url('img/zakładki/galeria/mercedeskabinaprzed.jpg');
  }
  20%, 36% {
    background-image: url('img/zakładki/galeria/mercedeskabinapo.jpg');
  }
  40%, 56% {
    background-image: url('img/zakładki/galeria/mocowanieplug.jpeg');
  }
  60%, 76% {
    background-image: url('img/zakładki/galeria/zabudowa.jpg');
  }
  80%, 96% {
    /* Tutaj podaj ścieżkę do swojego piątego zdjęcia */
    background-image: url('img/zakładki/galeria/spawanie.jpeg'); 
  }
  100% {
    background-image: url('img/zakładki/galeria/mercedeskabinaprzed.jpg'); /* Powrót do pierwszego płynnym krokiem */
  }
}

/* Responsywność - dopasowanie do ekranów telefonów */
@media (max-width: 768px) {
  .gallery-homepage-slider {
    height: 300px; /* Na telefonie slider się zmniejsza, by nie rozpychać ekranu */
  }
}


/* ==========================================
   BLOKADA SEKCYJNA: MOCNY BLUR I BRAK RUCHU
   ========================================== */

/* Sekcja nadrzędna - blokujemy jej wysokość i wyłączamy przewijanie czegokolwiek wewnątrz */
.locked-section {
  position: relative;
  height: 520px; /* Sztywna, optymalna wysokość sekcji na komputerach */
  overflow: hidden; /* KLUCZOWE: Całkowicie odcina możliwość przewijania zawartości w tle */
}

/* Główna nakładka pokrywająca całą sekcję */
.section-blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  /* Ciemniejsze, głębokie tło dla lepszego odcięcia tekstu */
  background: rgba(20, 20, 20, 0.85); 
  
  /* ZWIĘKSZONY BLUR: Bardzo mocne rozmycie tła (efekt ciężkiego matowego szkła) */
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px); /* Wsparcie dla Safari / iOS */
  
  /* Centrowanie zawartości dokładnie na środku */
  display: flex;
  justify-content: center;
  align-items: center;
  
  /* Bezpieczeństwo przed klikaniem w tło */
  z-index: 30; 
  padding: 20px;
  text-align: center;
  
  /* Blokada myszki: nakładka wchłania wszystkie kliknięcia i ruchy, nic pod spodem nie zareaguje */
  pointer-events: auto; 
}

/* Pudełko z tekstem (bez zmian, idealnie wyśrodkowane dzięki flexboxowi wyżej) */
.overlay-text-box {
  max-width: 550px;
  color: #ffffff;
  animation: fadeInOverlay 0.8s ease-out;
}

/* Ikona narzędzi */
.overlay-text-box i {
  font-size: 48px;
  color: #e60000; /* Czerwień Truck Spaw */
  margin-bottom: 20px;
  display: inline-block;
}

/* Napis: Galeria wkrótce dostępna */
.overlay-text-box h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 15px 0;
}

/* Opis pod napisem */
.overlay-text-box p {
  font-size: 16px;
  line-height: 1.6;
  color: #dddddd;
  margin: 0;
}

/* Płynne pulsowanie ikonki */
.overlay-text-box i.animate-pulse {
  animation: pulseIcon 2.5s infinite ease-in-out;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.7; }
}

@keyframes fadeInOverlay {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* DOPASOWANIE DO TELEFONÓW */
@media (max-width: 768px) {
  .locked-section {
    height: 420px; /* Na telefonie sekcja robi się nieco niższa, żeby pasować do ekranu */
  }
  .overlay-text-box h2 {
    font-size: 24px;
  }
  .overlay-text-box p {
    font-size: 14px;
  }
  .overlay-text-box i {
    font-size: 38px;
  }
}

