* {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: white;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0px;
    right: 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    /* background-color: rgba(0, 0, 0, 0.5); */
    /* border-bottom: 2px solid white; */
    z-index: 999;
    height: 80px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.navbar::before {
    content: "";
    position: absolute;
    bottom: 0;
    height: 2px;
    background-color: white;
    left: 80px;
    right: 80px;
}

.navbar_logo img {
    height: 100px;
    width: auto;
    border-radius: 50%;
    padding: 20px;
}

.navbar_menu {
    display: flex;
    list-style-type: none;
    gap: 20px;
    padding: 0;
    margin-right: 100px;
}

.navbar_menu li {
    position: relative;
}

.navbar_menu li a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    padding: 10px 5px;
    transition: color 0.3s ease;
}

.navbar_menu li a::after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -26px;
    height: 3px;
    background-color: #0066cc;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.navbar_menu li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;    
}

.navbar_menu li a:hover {
    color: #0066cc;
}

.navbar_item {
    margin-left: 100px;
}

nav.scrolled {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
}

.test {
    height: 500px;
    background-color: black;
}


.footer {
    background-color: black;
    color: white;
    padding: 20px 20px;
    text-align: center;
}

.footer_content {
    margin-bottom: 20px;
}

.footer_content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}

.footer_content p {
    margin: 5px 0;
    font-size: 1rem;
    color: #bfbfbf;
}

.footer_content a {
    text-decoration: none;
}

.footer_content a:hover {
    color: white;
}

.footer_bottom {
    border-top: 1px solid white;
    padding-top: 10px;
    font-size: 0.9rem;
    color: white;
}

/* 🔹 Header z obrazami obok siebie */
.header {
    width: 100%;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #000; /* Czarny background na wypadek załadowania */
}

.header-images {
    display: flex;
    width: 100%;
    height: 100%;
}

.header-images img {
    width: 33.33%; /* Każde zdjęcie zajmuje równą część */
    height: 100%;
    object-fit: cover; /* Dopasowanie */
}

/* 🔹 Sekcja usług */
.services {
    text-align: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
}

/* 🔹 Lista usług */
.services-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* 🔹 Styl karty usługi */
.services-list li {
    background: white;
    padding: 20px;
    border-radius: 12px;
    height: 450px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services h1 {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 🔹 Zdjęcie między tekstem a przyciskiem */
.services-list li img {
    width: 300px; /* Możesz dostosować */
    height: 300px;
    margin: 20px 0;
    border-radius: 8px;
}

.service-text {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* 🔹 Przycisk "Więcej" */
.more-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    color: #333;
    background-color: white;
    border: 1px solid #333;
    text-decoration: none;
    cursor: pointer;
    transition: all 0s ease;
}

.more-btn:hover {
    border: 2px solid black;
}

/* 🔹 Modal - tło i pozycjonowanie */
.modal {
    display: none;
    position: fixed;
    top: 0px;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    z-index: 10000;
}

/* 🔹 Zawartość modala */
.modal-content {
    background: white;
    color: black;
    padding: 20px;
    text-align: center;
    max-width: 900px; /* Mniejsza szerokość dla lepszej czytelności */
    width: 90%;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.2);
     overflow-y: auto;
}

body.modal-open {
    overflow: hidden;
}

/* 🔹 Przycisk zamknięcia */
.close {
    font-size: 24px;
    cursor: pointer;
    float: right;
    background: #fff;
    padding: 5px 10px;
    border-radius: 50%;
}

/* 🔹 Nagłówek - na górze, wyśrodkowany */
.modal-header {
    text-align: center;
    width: 100%;
    margin-bottom: 15px;
}

/* 🔹 Układ treści - obrazek obok tekstu */
.modal-body {
    display: flex;
    flex-direction: row; /* Ustawia obrazek i tekst obok siebie */
    align-items: center; /* Wyrównanie pionowe */
    justify-content: space-between; /* Rozdziela tekst i obrazek */
    gap: 20px; /* Odstęp między elementami */
    text-align: justify;
}

/* 🔹 Obrazek w modalach */
.modal-body img {
    width: 45%; /* Zajmuje 45% szerokości kontenera */
    max-width: 350px; /* Maksymalny rozmiar */
    height: auto; /* Zachowanie proporcji */
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

/* 🔹 Tekst w modalach */
.modal-text {
    width: 50%; /* Tekst zajmuje połowę dostępnego miejsca */
    text-align: justify;
}

@media (max-width: 768px) {
  .modal-body {
    flex-direction: column;
    align-items: center;
  }

  .modal-text {
    width: 100%;
    padding: 0 15px;
  }

  .modal-image {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
  }

  .modal-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 10px;
  }

  .modal-content {
    max-height: 90vh;
    overflow-y: auto;
  }

  .close {
    top: 10px;
    right: 10px;
  }
}



.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1001;
    transition: opacity 0.3s ease-in-out;
}

.hamburger div {
    width: 35px;
    height: 4px;
    background-color: white;
    margin: 5px 0;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    transform-origin: left;
}


.hamburger.active div:nth-child(1) {
    transform: translateY(-10px) rotate(45deg);
    width: 37px;
}

.hamburger.active div:nth-child(2) {
    opacity: 0;
}

.hamburger.active div:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
    width: 37px;
}

@media (min-width: 1920px) {
  .services-list {
    grid-template-columns: repeat(3, 1fr); /* 3 kolumny = więcej wierszy */
    max-width: 1200px; /* ewentualnie zwiększ dla szerokich ekranów */
  }
}


@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 20px;
        background-color: rgba(0, 0, 0, 0.8); /* lekka przezroczystość */
        backdrop-filter: blur(10px);
        border-bottom: none;
    }

    .navbar_logo {
        margin-left: 10px;
        z-index: 1002;
    }

    .navbar_logo img {
        height: 60px;
        padding: 5px;
    }

    /* Pokazujemy hamburger menu */
    .hamburger {
        display: flex;
    }

    /* Styl hamburgerowego menu */
    .navbar_menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        text-align: center;
        padding-top: 120px;
        z-index: 1000;
        transition: transform 0.4s ease-in-out;
        transform: translateX(-150%);
    }

    .navbar_menu.open {
        transform: translateX(0);
    }

    .navbar_menu li {
        padding: 20px 0;
    }

    .navbar_menu li a {
        color: white;
        font-size: 22px;
        font-weight: bold;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .navbar_menu li a:hover {
        color: #0066cc;
    }

    /* Styl wewnętrznego menu z maksymalną szerokością (dodatkowe dopasowanie do mniejszych menu w środku) */
    .navbar_menu_inner {
        max-width: 400px;
        max-height: 600px;
        background-color: rgba(30, 30, 30, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        margin: 0 auto;
        padding: 0;
        box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
    }

    .navbar_menu.active {
        display: flex;
    }

    .navbar_item {
        margin: 10px 0;
    }

    .navbar_links:active {
        background-color: rgba(255, 255, 255, 0.1);
        transform: scale(0.95);
    }

    .navbar_links {
        display: block;
        padding: 12px 20px;
        background-color: transparent;
        color: white;
        font-size: 18px;
        border-radius: 8px;
        text-align: center;
        text-decoration: none;
        transition: background-color 0.3s, transform 0.2s;
    }

    .navbar_links:hover {
        background-color: rgba(255, 255, 255, 0.2);
        color: white;
    }

    .header {
        height: 400px;
    }

    .header_content h1 {
        font-size: 1.8rem;
    }

    .info {
        padding: 20px;
        max-width: 500px;
        margin: 0 auto;
    }

    .info h2 {
        font-size: 1.8rem;
    }

    .info p {
        font-size: 1rem;
    }

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

    .option {
        width: 100%;
        height: auto;
        padding: 20px;
    }

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

    .contact_section {
        padding: 30px 10px;
    }

    .info_container {
        padding: 0;
    }

    .map iframe {
        height: 250px;
    }

    .footer {
        padding: 20px 10px;
    }

    .footer_content h3 {
        font-size: 1.3rem;
    }

    .footer_content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .header {
      height: 400px;
      overflow: hidden;
      position: relative;
    }
  
    .header-images {
      display: flex;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
    }
  
    .header-images img {
        width: 33.33%; /* 3 zdjęcia po 1/3 */
        height: 100%;
        object-fit: cover;
        display: block;
    }
  
    /* Ukryj resztę zdjęć – zostaw tylko 3 */
    .header-images img:nth-child(n+4) {
      display: none;
    }
  }