* {
    margin: 0;
    padding: 0; font-family: Arial, sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.navbar_logo {
    display: flex;
    align-items: center;
    font-size: 3em;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.navbar_logo_content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.navbar_logo .navbar_subtitle {
    font-size: 0.5em;
    font-weight: normal;
    color: white;
    margin-top: -5px;
}

.navbar_logo::before {
    content: "";
    background-image: url('images/husqlogo.jpeg');
    background-size: contain;
    background-repeat: no-repeat;
    width: 100px;
    height: 100px;
    margin-right: 10px;
    display: inline-block;
    border-radius: 10%;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0; /* zmiana z 50px na 0 */
    right: 0; /* zmiana z 50px na 0 */
    display: flex;
    align-items: center;
    padding: 10px 50px; /* wewnętrzny padding zamiast marginesu */
    background-color: transparent;
    border-bottom: 3px solid white;
    z-index: 999;
    transition: background-color 0.3s ease, padding 0.3s ease;
}


.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.7); /* Czarne tło 70% przezroczystości */
    backdrop-filter: blur(5px); /* Opcjonalnie: lekkie rozmycie dla efektu szkła */
    transition: background-color 0.3s ease;
}


.navbar_menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
    margin-left: auto;
    margin-right: 50px;
}

.navbar_item {
    margin-left: 20px;
}

.navbar_links {
    color: white;
    text-decoration: none;
    font-size: 21px;
    font-weight: bold;
    position: relative;
    background-color: transparent;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.navbar_menu li a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    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;
}

.gps_icon {
    height: 24px;
    width: auto;
}

.gps_box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 25%;
    background-color: transparent;
    transition: background-color 0.3s;
}

.gps_box:hover {
    background-color: rgba(0, 119, 255, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    margin-left: auto;
    margin-right: 50px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

@media (max-width: 1050px) {

    .navbar {
        padding: 10px 20px;
        background-color: rgba(0, 0, 0, 0.7); /* lekka przezroczystość */
        border-bottom: none;
    }

    .navbar_menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 70px; /* niżej, żeby nie nachodziło */
        left: 0;
        right: 0;
        width: calc(100% - 40px);
        max-width: 400px;
        background-color: rgba(30, 30, 30, 0.9); /* ciemne tło */
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        margin: 0 auto;
        padding: 20px;
        box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
        z-index: 999;
        transition: all 0.3s ease;
    }

    .navbar_menu.active {
        display: flex;
    }

    .navbar_item {
        margin: 10px 0;
    }

    .navbar_links:active {
        background-color: rgba(255, 255, 255, 0.1); /* lekko jaśniejsze kliknięcie */
        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); /* lekko jaśniejszy efekt na ciemnym tle */
        color: white; /* napis pozostaje biały */
    }
    

    .gps_box {
        display: inline-flex;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 25px;
        height: 18px;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: white;
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

  

  /* Product Section */
  .product_section {
    padding: 20px 10px;
    text-align: center;
  }

  .product_section h2 {
    font-size: 2em;
    margin-bottom: 20px;
  }

  .swiper-container {
    padding: 10px 0;
  }

  .swiper-slide {
    height: auto;
    padding: 10px;
  }

  .swiper-slide img {
    width: 100%;
    height: auto;
  }

  .swiper-slide p {
    font-size: 1em;
  }

  /* Footer */
  .footer {
    padding: 15px 10px;
    font-size: 0.8em;
  }
}

@media (max-width: 600px) {
    .navbar_logo {
        font-size: 2em; /* Mniejsze logo */
    }

    .navbar_logo::before {
        width: 60px;
        height: 60px;
    }

    .hamburger {
        width: 20px;
        height: 15px;
    }

    .hamburger span {
        height: 2px;
    }
}

.video_header {
    position: relative;
    width: 100%;
    height: 800px;
    overflow: hidden;
}

.background_video {
    position: absolute;
    top: 0;
    width: 100%;
    height: auto;
    z-index: -1;
}

.header_content {
    position: relative;
    top: 200px;
    left: 200px;
    z-index: 1;
    color: white;
    padding: 20px;
}

.header_content h1 {
    font-size: 3em;
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.header_content h2 {
    font-size: 2em;
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.header_button {
    display: inline-block;
    padding: 12px 24px;
    background-color: transparent;
    color: white;
    text-decoration: none;
    font-size: 1em;
    border: 3px solid white;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.header_button:hover {
    background-color: white;
    color: black;
}

@media (max-width: 768px) {
    .video_header {
      height: 400px; /* niższy header na telefonach */
    }
  
    .background_video {
      width: 100%;
      height: 100%;
      object-fit: cover; /* Wypełnia całą sekcję */
    }
  
    .header_content {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%); /* Centrum ekranu */
      text-align: center;
      padding: 10px;
      width: 90%;
    }
  
    .header_content h1 {
      font-size: 2em;
      margin-bottom: 10px;
    }
  
    .header_content h2 {
      font-size: 1.2em;
      margin-bottom: 15px;
    }
  
    .header_button {
      padding: 10px 20px;
      font-size: 1em;
      border: 2px solid white;
      border-radius: 5px;
    }
  }
  



.product_section {
    text-align: left;
    padding: 20px;
}

.product_section h2 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.swiper-container {
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
    padding: 20px 0;
    margin: 0 auto;
    position: relative;
}

.swiper-wrapper {
    display: flex;
}

.swiper-slide {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    height: 300px;
    width: 100%;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.swiper-slide img {
    border-radius: 8px;
    margin-bottom: 10px;
}

.swiper-slide p {
    font-size: 1em;
    color: #333;
    text-decoration: none;
}

.swiper-slide a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.swiper-slide:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}

.swiper-button-next, .swiper-button-prev {
    font-weight: 800;
    background-color: white;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.swiper-button-next::after, .swiper-button-prev::after {
    color: black;
    width: auto;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background-color: #333;
}

.swiper-button-next:hover::after, .swiper-button-prev:hover::after {
    color: white;
}

.swiper-pagination {
    margin-top: 15px;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    opacity: 1;
    transition: background-color 0.3s;
}

.swiper-pagination-bullet-active {
    background-color: #333;
}

.footer {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 0.9em;
    font-family: Arial, sans-serif;
}

.footer p {
    margin: 0;
    color: #ccc;
}

.info_container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    gap: 40px;
}

.map_and_gallery {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex: 1;
}

.map {
    flex: 1;
}

.about-gallery {
    flex: 1;
    height: 1000px;
    overflow: hidden;
}

.about-gallery img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.map iframe {
    width: 100%;
    height: 300px;
    border-radius: 8px;
}

.opening_hours {
    flex: 0 0 300px;
}

.opening_hours h2, .map h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #333;
}

.opening_hours {
    padding: 20px;
}

.opening_hours ul {
    list-style: none;
    padding: 0;
}

.opening_hours li {
    font-size: 1.2em;
    color: #555;
    padding: 5px 0;
}

.hidden-heading {
    font-size: 2em;
    margin-bottom: 10px;
    color: #333;
    visibility: hidden;
}



.map_and_gallery {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.map {
    flex: 1 1 45%;
}

.about-gallery {
    flex: 1 1 45%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 400px;
}

.about-gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-slide {
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    width: 100%;
    height: 100%;
}

.gallery-slide.active {
    opacity: 1;
}

@media (max-width: 768px) {
    .contact_section {
      padding: 20px 10px;
    }
  
    .info_container {
      flex-direction: column;
      align-items: stretch;
      gap: 10px; /* zmniejszyłem z 20px lub więcej */
      padding: 0;
    }
  
    .opening_hours {
      padding: 10px;
      width: 100%;
      text-align: center;
    }
  
    .map_and_gallery {
      display: flex;
      flex-direction: column; /* kluczowe, by mapa była nad galerią */
      width: 100%;
      gap: 10px; /* mniejsza przerwa */
      margin-top: 10px;
    }
  
    .map {
      width: 100%;
    }
  
    .map iframe {
      width: 100%;
      height: 250px;
      border-radius: 8px;
    }
  
    .about-gallery {
      width: 100%;
      height: 250px;
    }
  
    .about-gallery img {
      width: 100%;
      height: 250px;
      object-fit: cover;
      border-radius: 8px;
    }
  
    .gallery-wrapper {
      width: 100%;
      height: 250px;
      overflow: hidden;
      position: relative;
    }
  
    .gallery-slide {
      position: absolute;
      width: 100%;
      height: 100%;
      opacity: 0;
      transition: opacity 1s ease-in-out;
    }
  
    .gallery-slide.active {
      opacity: 1;
    }
  
    .opening_hours h2,
    .map h2 {
      font-size: 1.8em;
    }
  
    .opening_hours li {
      font-size: 1em;
    }
  
    .hidden-heading {
      display: none;
    }
  }


@media (max-width: 768px) {
    .map_and_gallery {
        flex-direction: column;
    }

    .map, .about-gallery {
        flex: 1 1 100%;
    }
}
