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

html, body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
  }

body {
    background-color: white;
}

*, *::before, *::after {
    box-sizing: border-box;
}

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

.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;
}

.header {
    position: relative;
    height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;

}

.header_video {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: url('images/header/Header_alt.png') no-repeat center center;
    background-size: cover;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.header_content {
    z-index: 1;
}

.info {
    text-align: center;
    padding: 40px 20px;
}

.info h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: rgb(37, 37, 37);
}

.info p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: black;
    line-height: 1.6;
    font-weight: 500;
}

.option img {
    width: 150px;
    height: auto;
    margin-bottom: 15px;
}

.options h2 {
    margin-bottom: 15px;
}

.options {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.option {
    text-align: center;
    width: 200px;
    border: 2px solid #ddd;
    border-radius: 10px;
    height: 350px;
}

.option p {
    font-size: 1rem;
    margin: 10px 0;
    color: black;
    font-weight: 500;
}

.button {
    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;
}

.button:hover {
    border: 2px solid black;
}

.realizacje {
    padding: 50px 5%;
    background-color: #f8f8f8;
    text-align: center;
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #f4b400;
    margin: 10px auto;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    display: block;
    transition: transform 0.3s ease-in-out;
    object-fit: cover;
    object-position: center;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.overlay h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.gallery-item:hover .overlay {
    opacity: 1;
}



.contact_section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
    background-color: white;
}

.info_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    width: 100%;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.map {
    width: 100%;
}

.map h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #333;
}

.map iframe {
    width: 100%;
    height: 350px;
    border-radius: 10px;
    border: none;
}

.picloc {
    display: none;
}


@media (max-width: 768px) {
    .info_container {
        padding: 15px;
    }
    .map iframe {
        height: 300px;
    }
}


.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;
}

/* 🔹 Modal */
.modal {
    display: none;
    position: fixed;
    top: 40px;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

/* 🔹 Zawartość modala */
.modal-content {
    background: white;
    color: black;
    padding: 20px;
    text-align: center;
    max-height: 90vh;
    max-width: 1200px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.2);
    overflow-y: auto; /* 🔑 umożliwia przewijanie zawartości */
    z-index: 10000;
}

body.modal-open {
    overflow: hidden;
}

.modal-content img {
    width: 100%;
    height: 400px;            /* Ustalona wysokość */
    object-fit: cover;        /* Przytnie obraz do kontenera */
    display: block;
    border-radius: 8px;
    margin-top: 10px;
}


/* Twoje obecne style – pozostają bez zmian */
.close {
  font-size: 24px;
  cursor: pointer;
  float: right;
  background: #fff;
  padding: 5px 10px;
  border-radius: 50%;
}

.protection-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap; /* Zapobiega wypychaniu zawartości */
}

.protection-text {
  flex: 1;
}

.protection-text h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 15px;
  text-align: center;
}

.protection-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 15px;
  text-align: justify;
}

.protection-image {
  width: 100%;
  max-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.protection-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16/9;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 🔻 Dostosowanie do telefonów i mniejszych ekranów */
@media (max-width: 768px) {
  .protection-row {
    flex-direction: column;
    text-align: center;
  }

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

  .protection-text p {
    font-size: 1rem;
    text-align: justify;
  }

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

  .protection-image img {
    height: auto;
    aspect-ratio: 16/9;
  }
}


.carousel-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  
  .carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 90%;
    max-height: 80%;
  }
  
  #carouselImage {
    max-width: 700px;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255,255,255,0.2);
  }
  
  .carousel-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 32px;
    color: white;
    background: rgba(255,255,255,0.2);
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
  }
  
  .carousel-prev, .carousel-next {
    background: rgba(0,0,0,0.6);
    border: none;
    color: white;
    font-size: 36px;
    padding: 12px 18px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .carousel-prev:hover, .carousel-next:hover {
    background: white;
    color: black;
  }
  
  #carouselTitle {
    color: white;
    margin-top: 20px;
    font-size: 1.5rem;
  }

  .homepage-carousel {
  position: relative;
  max-width: 1000px;
  margin: 60px auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.carousel-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slides img {
  min-width: 100%;
  height: 500px;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  font-size: 30px;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
}

.carousel-btn.prev {
  left: 15px;
}

.carousel-btn.next {
  right: 15px;
}




@media (max-width: 1024px) {
    .navbar_menu {
        gap: 15px;
        width: 100vw;
    }
    
    .navbar_menu li a {
        font-size: 18px;
    }

    .info {
        height: auto;
        max-width: 600px;
        margin: 0 auto;
        padding: 30px;
    }

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

    /* .option {
        width: 180px;
        height: 320px;
    } */
}

@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: 480px) {
    .navbar {
        padding: 10px;
    }

    .navbar_menu {
        gap: 8px;
    }

    .navbar_menu li a {
        font-size: 16px;
    }

    .header {
        height: 300px;
    }

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

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

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

    .option {
        width: 100%;
        padding: 15px;
    }

    .gallery-item img {
        height: 250px;
    }

    .contact_section {
        padding: 20px 5px;
    }

    .map iframe {
        height: 200px;
    }

    .footer {
        padding: 15px 5px;
    }

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

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



/* 🔹 Styl dla hamburgera */
.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; /* Normalna długość */
    height: 4px;
    background-color: white;
    margin: 5px 0;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    transform-origin: left; /* Zablokowanie lewej strony, wydłużenie tylko w prawo */
}

/* 🔹 Animacja hamburgera w X z wydłużeniem tylko z prawej strony */
.hamburger.active div:nth-child(1) {
    transform: translateY(-10px) rotate(45deg);
    width: 37px; /* Wydłużenie tylko w prawo */
}

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

.hamburger.active div:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
    width: 37px; /* Wydłużenie tylko w prawo */
}

/* 🔹 Ukrywamy menu na telefonach */
@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) {
    .carousel-container {
      position: relative;
      flex-direction: row;            /* ← strzałki po bokach */
      justify-content: center;
      align-items: center;
      gap: 0;
      width: 100%;
      max-width: 100vw;
    }
  
    #carouselImage {
      width: 100%;
      max-width: 90vw;               /* 90% szerokości ekranu */
      max-height: 60vh;
      object-fit: contain;
      display: block;
    }
  
    .carousel-prev,
    .carousel-next {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(0, 0, 0, 0.5);
      border: none;
      color: white;
      font-size: 28px;
      padding: 10px;
      border-radius: 50%;
      cursor: pointer;
      z-index: 10;
    }
  
    .carousel-prev {
      left: 10px;
    }
  
    .carousel-next {
      right: 10px;
    }
  
    #carouselTitle {
      font-size: 1rem;
      text-align: center;
      margin-top: 10px;
      padding: 0 10px;
      word-break: break-word;
      color: white;
    }
  
    .carousel-modal {
      padding: 0 10px;
    }
  }
  
  