:root {
    --main-blue: #4ea8de;
    --btn-blue: #3695cf;
    --btn-hover: #ffe400;
    --white: #ffffff;
    --text-dark: #1e1e1e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
     font-family: 'Poppins', sans-serif;
    background: linear-gradient(to bottom, #eaf6ff, #ffffff);
    color: var(--text-dark);
    box-sizing: border-box;
}

/* NAVBAR */
.navbar {
    height: 120px;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    transition:
        height 1.5s ease,
        background-color 1.5s ease,
        box-shadow 0.5s ease;
    padding: 27px 40px;
    z-index: 1000;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: gold;
    text-shadow: 0 0 5px gold;
}

/* Efekt złotego połysku po scrollu */
.navbar.shine {
    background-image: linear-gradient(
        120deg,
        rgba(255, 215, 0, 0) 0%,
        rgba(255, 215, 0, 0.3) 45%,
        rgba(255, 215, 0, 0.6) 50%,
        rgba(255, 215, 0, 0.3) 55%,
        rgba(255, 215, 0, 0) 100%
    );
    background-size: 200% auto;
    animation: shineEffect 1.5s ease-out forwards;
}

/* Efekt końcowy: czarne tło z przezroczystością */
.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.6);
    background-image: none;
}

/* Kluczowa animacja połysku */
@keyframes shineEffect {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.logo {
    position: relative;
    display: flex;
    top: 59px;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    width: 100px;
    height: 80px;
    transition: height 0.3s ease;
}

.navbar.shrink {
    height: 70px;
}
.navbar.shrink .logo {
    height: 40px;
    width: 100px;
    top: 35px;
}

.navbar.shrink .logoimage {
   transform: scale(0.5);
  cursor: pointer;
z-index: 1000000;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 100px;
    width: 50%;
    justify-content: flex-end;
    align-content: stretch;
    padding-right: 10%;
    padding-top: 1%;
}
.nav-links,
.nav-links2 {
    display: flex;
    gap: 100px;
    list-style: none;
}

.nav-links a,
.nav-links2 a {
    text-decoration: none;
    color: inherit;
    font-size: 1rem; /* NIE zmieniamy wielkości tekstu */
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}
.nav-links2 a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--main-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    transform: scale(1.05);
    color: var(--main-blue);
}

/* HERO */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100vw;
    height: 100vh;
    margin-top: 0;
    color: white;
    z-index: 100;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
     font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: italic;
  font-size: 20px; 
}

.hero h1 {
    margin-bottom: 40px;
}

.cta-buttons {
    margin-top: 15px;
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

.primary {
    background: var(--btn-blue);
    color: white;
}

.primary:hover {
    background: var(--btn-hover);
}

.secondary {
    background: white;
    color: var(--btn-blue);
    border: 2px solid var(--white);
}

.secondary:hover {
    background: var(--btn-hover);
    color: white;
}

/* SEKCJE */

main {
    height: auto;
    width: 100vw;
    background: transparent;
    background: rgba(255, 255, 255, 0.1); /* białe tło z przezroczystością */
    border: 1px solid rgba(255, 255, 255, 0.2); /* delikatna ramka */
    color: #fff; /* jasny tekst na ciemnym tle */
    overflow-y: hidden;
}

.service {
    padding-top: 1%;
    align-items: center;
    width: 100vw;
    height: 100vh;
    text-align: center;
    border-bottom: 1px solid #eee;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.15);
}

.service h1 {
    font-size: 2.5em;
    color: var(--white);
    margin-bottom: 35px;
    text-align: center;
}

.service p {
    color: var(--white);
    text-align: center;
    margin: auto;
    max-width: 800px;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3.5em;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

.wrapper-nav {
    position: relative;
    width: 100%;
    height: auto;
}

nav {
    position: relative;
    width: 100%;
    display: flex;
}

.nav-links2 {
    list-style: none;
    display: flex;
    width: 50%;
    gap: 100px;
    padding-left: 10%;
    justify-content: flex-start;
    padding-top: 1%;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 40px;
    background: var(--main-blue);
    color: white;
}

/* SLIDER Swiper */
.swiper {
    width: 100%;
    max-width: 1000px;
    height: 59%;
    margin: auto;
    overflow: auto;
    position: relative;
}

/* Dodaj to! */
.swiper-slide img {
    top: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* To jest kluczowe! */
.swiper-slide {
    align-items: center;
    justify-content: center;
    height: 100%;
}
/* Dla ekranów o szerokości maks. 1200px */
@media (max-width: 1200px) {
    .swiper {
        max-width: 100%;
        height: 500px; /* zmniejszamy wysokość dla laptopów */
        margin: 20px auto;
        padding: 0 10px;
    }
}

/* Dla urządzeń mobilnych */
@media (max-width: 768px) {
    .swiper {
        max-width: 100%;
        height: 320px; /* jeszcze mniejsza wysokość dla telefonów */
        margin: 10px auto;
        padding: 0 5px;
    }
}
@media (max-width: 768px) {
}

.swiper-button-next,
.swiper-button-prev {
    width: 80px; /* SZEROKOŚĆ PRZYCISKU */
    height: 80px; /* WYSOKOŚĆ PRZYCISKU */
    font-size: 42px; /* ROZMIAR IKONY STRZAŁKI */
    color: #ffffff;
    border-radius: 50%;
    transition:
        transform 0.3s ease,
        background-color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(0, 0, 0, 0.9); /* jaśniejszy złoty */
    color: black;
    transform: scale(1.1); /* delikatne powiększenie przy hover */
}

.swiper-button-next {
    margin-right: 2%;
}

.swiper-button-prev {
    margin-left: 2%;
}
.swiper-button-next::after,
.swiper-button-prev::after {
    color: gold; /* Zmieniasz kolor ikony */
    font-size: 32px; /* Rozmiar ikony strzałki */
}
.paralax {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: url("img/HomeKontenerFinal.jpeg") center/cover no-repeat;
    z-index: -1;
}

.service ul {
    list-style-position: inside; /* Punktory blisko tekstu */
    text-align: left; /* Justowanie tekstu do lewej */
    margin-top: 10px; /* Wyśrodkowanie całego ul */
    padding: 0;
    max-width: 900px; /* Maksymalna szerokość dla lepszej czytelności */
    color: #ffd700; /* Złoty kolor punktorów */
    font-size: 1rem;
    line-height: 1.6;
    list-style: none;
}

.service li {
    color: #ffffff; /* Kolor tekstu punktowanego */
    margin-bottom: 4px;
    margin-top: 5px;
    font-size: 15px;
}

.blur {
    backdrop-filter: blur(12px); /* rozmycie tła */
    -webkit-backdrop-filter: blur(12px); /* dla Safari */
}

.logoimage {
    height: 200px;
    transition: transform 0.3s ease;
    transform: scale(1);
}

.swiper-wrapper {
    height: auto;
    width: auto;
}

.spacer {
    width: 100%;
    height: 120px;
}

.service-box {
    height: 85%;
    background-color: rgba(27, 27, 27, 0.59);
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}



.image-popup .popup-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

/* Tylko dla przycisku zamykającego popup zdjęcia */
.image-popup .close-image-popup {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    appearance: none;
}

/* Tylko dla przycisku zamykającego popup wideo */
.video-popup .close-video-popup {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    appearance: none;
}

.swiper-slide video {
    width: 100%;
    height: 106%;
    object-fit: cover; /* lub 'contain' jeśli chcesz, żeby całe video było widoczne bez przycięcia */
    border-radius: 12px; /* opcjonalnie – dla estetyki */
    display: block;
}

#video-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#video-popup .popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    width: auto;
}

#video-popup video {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.footer {
    background: #111;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form-container h2 {
    margin-bottom: 28px;
   font-size: 2.5rem;
    color: #fff;
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background-color: #222;
    color: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #aaa;
}

.submit-btn {
    background-color: var(--btn-blue);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--btn-blue);
}

.contact-info {
    margin-top: 25px;
    font-size: 16px;
    color: #ccc;
}

.contact-info a {
    color: var(--btn-blue);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.visual-section h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #222;
}

.visual-section .section-intro {
    font-size: 18px;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #555;
}

.visual-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 60px auto;
}

.step {
    background: #f9f9f9;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    cursor: pointer;
}

.step:hover {
    transform: translateY(-4px);
}

.step-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.step h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.step p {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}

.highlight {
    max-width: 900px;
    margin: 40px auto;
    text-align: center;
}

.highlight h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.highlight ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.highlight ul li {
    font-size: 18px;
    margin-bottom: 12px;
    color: #444;
}

.gallery-preview {
    margin-top: 50px;
}

.gallery-preview h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.image-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.image-row img {
    max-width: 300px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.image-row img:hover {
    transform: scale(1.03);
}
.visual-section {
    padding: 120px 0;
    background-color: white;
    text-align: center;
}
.section-intro {
    font-size: 18px;
    margin-bottom: 50px;
    color: #555;
}
.visual-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}
.step {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.step-icon.centered {
    font-size: 32px;
    margin-bottom: 15px;
    text-align: center;
}
.features {
    margin-top: 60px;
    background: #fafafa;
    padding: 120px 20px;
    max-width: 1200px;
    margin: auto;
    border-radius: 16px;
}
@media (max-width: 768px) {
  .features {
    padding: 60px 16px;
    margin-top: 40px;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .features {
    padding: 40px 12px;
    margin-top: 30px;
    border-radius: 8px;
  }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: 0px;
}
@media (max-width: 768px) {
  .features-grid {
    padding: 60px 16px;
    margin-top: 40px;
    border-radius: 12px;
      grid-template-columns: repeat(1, minmax(300px, 1fr));
  }
}

@media (max-width: 480px) {
  .features-grid {
    padding: 40px 12px;
    margin-top: 30px;
    border-radius: 8px;
      grid-template-columns: repeat(1, minmax(300px, 1fr));
  }
}

.feature-tile {
    background: white;
    padding: 25px;
    padding-top: 120px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s;
    margin: 50px;
}
.feature-tile:hover {
    transform: translateY(-5px);
}
#oferta ul,
#cennik ul {
    list-style: none;
    padding: 0;
}
#oferta ul li,
#cennik ul li {
    padding: 10px 0;
    font-size: 16px;
    color: #444;
}
.features h3 {
    margin-bottom: 25px;
    font-size: 2.5rem;
}
.pricing-section {
    padding: 120px 20px;
    background-color: white;
    text-align: center;
    border-radius: 16px;
    max-width: 1200px;
    margin: auto;
}

.pricing-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.pricing-intro {
    font-size: 1rem;
    color: #555;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
padding: 40px 0;
    max-width: 1200px;
}

.pricing-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ca8a04;
    margin-bottom: 1rem;
}
.offer-section {
    padding: 120px 20px;
    background-color: #fff;
    text-align: center;
     max-width: 1200px;
  margin: auto;
}

.offer-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #222;
}

.offer-intro {
    font-size: 1rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
}

.offer-card {
    background: #f9f9f9;
    border-radius: 16px;
    padding: 40px 25px 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.offer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.offer-icon {
    font-size: 50px;
    margin-bottom: 20px;
    color: #333;
    transition: transform 0.3s ease;
}

.offer-card:hover .offer-icon {
    transform: scale(1.15) rotate(5deg);
}

.offer-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #222;
}

.offer-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}
.gallery-section {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 50px 10px 100px;
  border-radius: 12px;
  box-shadow: 0 40px 120px rgba(0,0,0,.45);
}

.gallery-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
padding: 10px;
    cursor: pointer;
}

.gallery-item {
  width: 100%;
  aspect-ratio: 4 / 3; /* Lub ustaw height: np. 250px */
  overflow: hidden;
  border-radius: 12px;
  position: relative;
  background-color: #111; /* fallback dla wolnego ładowania */
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Popup */
.image-popup {
  position: fixed;
  inset: 0; /* top:0 right:0 bottom:0 left:0 */
  background: rgba(0, 0, 0, 0.85);
  display: none; /* pokazujesz przez JS */
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
width: 100vw;
  height: 100vh;
}
.image-popup.active {
  display: flex;
}

#popupImage {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: auto;
  border-radius: 8px;
}
@media (max-width: 768px) {
  #popupImage {
    max-width: 100%;
    max-height: 85svh; /* NIE vh */
  }
}

.image-popup img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.close-popup {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  z-index: 10000;



}
@media (max-width: 1400px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gallery-section h2 {
    font-size: 2.5rem;
  }

  .close-popup {
    font-size: 32px;
    top: 20px;
    right: 25px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 8px;
  }

  .gallery-item img {
    border-radius: 10px;
  }

  .close-popup {
    font-size: 28px;
    top: 15px;
    right: 20px;
  }
}
.hero-content h1 {
   color: white;
    font-size: 3.5em;
}
/* --- Desktop - oryginalne style, nie ruszaj --- */

/* --- Mobilne style --- */
#hamburger {
  display: none; /* na desktop ukryty */
  position: fixed;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 25px;
  cursor: pointer;
  z-index: 1101; /* ponad menu */
  flex-direction: column;
  justify-content: space-between;
}

#hamburger .bar {
  display: block;
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Menu mobilne pełen ekran */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: black;
  color: white;
  z-index: 1100;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-top: 60px;
  overflow-y: auto;
  transition: opacity 0.3s ease;
}

.mobile-menu.hidden {
  display: none;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.mobile-menu ul li {
  margin: 20px 0;
}

.mobile-menu ul li a {
  color: white;
  font-size: 2rem;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.mobile-menu ul li a:hover {
  color: #ddd;
}

/* Hamburger animacja X */
#hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

#hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Ukryj desktopowe menu i pokaż hamburger na mobilkach */
@media (max-width: 768px) {
  nav ul.nav-links,
  nav ul.nav-links2{
    display: none;
  }

  #hamburger {
    display: flex;
  }
}

.paralax-JD {
      position: fixed;
  width: 100vw;
  height: 100vh;
    background: url('img/architect.jpg') center/cover no-repeat;
  z-index: -1;
}

.section-intro-JD {
  font-size: 18px;
  margin-bottom: 40px;
  color: #555;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.feature-tile ul {
    margin: 15px;
    text-align: left;
}

.feature-tile h4 {
    margin: 15px;
}



a {
    text-decoration: none;
    color: black;
}

.features-grid-JD {
     display: grid;
    grid-template-columns: repeat(auto-fit, minmax(auto,auto));
        gap: 30px;
}

.offer-card ul {
    text-align: left;
    list-style: none;
  padding-left: 0; /* usuwa domyślne wcięcie */
}

.offer-card ul li {
    margin: 15px;
}

.note {
    font-size: 1rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto 50px auto;
  font-style: italic;
}


/* === MEDIA QUERIES dla swiper === */
@media (max-width: 768px) {
  .swiper-3d-slicer-main {
    height: 60vh;
  }

  .swiper-3d-slicer-thumbs {
    height: 80px;
  }

  .popup-slider-close {
    top: 5px;
    right: 10px;
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .swiper-3d-slicer-main {
    height: 50vh;
  }

  .swiper-3d-slicer-thumbs {
    height: 60px;
  }

  .swiper-3d-slicer-thumbs .swiper-slide img {
    max-height: 50px;
  }
}
.close-button {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  background-color: white;
}

.close-bar {
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: #000;
  border-radius: 2px;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.close-bar.top {
  transform: rotate(45deg);
}

.close-bar.bottom {
  transform: rotate(-45deg);
}

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: #111;
  color: #fff;
  font-size: 24px;
  text-align: center;
  line-height: 45px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.3s ease;
  z-index: 999999;
  border: none;
}

.scroll-to-top:hover {
  transform: scale(1.1);
  background-color: #333;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}
/* Dropdown menu
 /* Styl ogólny dla elementu dropdown */
.dropdown {
  position: relative;
}

/* Ukryte menu początkowo */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background-color: rgba(255,255,255, 0.8);
  border: 1px solid #ccc;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 1000;
}

/* Pokazanie menu przy hover */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Styl dla linków w menu */
.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  transition: background 0.2s ease;
}

.dropdown-menu li a:hover {
  background-color: rgba(0,0,0, 0.8);
  border-radius: 5px;
  
}


/* Menu mobilne pełen ekran */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: black;
  color: white;
  z-index: 1100;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-top: 60px;
  overflow-y: auto;
  transition: opacity 0.3s ease;
}

.mobile-menu.hidden {
  display: none;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.mobile-menu ul li {
  margin: 20px 0;
}

.mobile-menu ul li a {
  color: white;
  font-size: 2rem;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.mobile-menu ul li a:hover {
  color: #ddd;
}


/* --- Mobilne style --- */
#hamburger {
  display: none; /* na desktop ukryty */
  position: fixed;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 25px;
  cursor: pointer;
  z-index: 1101; /* ponad menu */
  flex-direction: column;
  justify-content: space-between;
}

#hamburger .bar {
  display: block;
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Menu mobilne pełen ekran */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: black;
  color: white;
  z-index: 1100;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-top: 60px;
  overflow-y: auto;
  transition: opacity 0.3s ease;
}

.mobile-menu.hidden {
  display: none;
}

.hidden {
  display: none;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.mobile-menu ul li {
  margin: 20px 0;
}

.mobile-menu ul li a {
  color: white;
  font-size: 2rem;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.mobile-menu ul li a:hover {
  color: #ddd;
}

/* Hamburger animacja X */
#hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

#hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Ukryj desktopowe menu i pokaż hamburger na mobilkach */
@media (max-width: 768px) {
  nav ul.nav-links,
  nav ul.nav-links2{
    display: none;
  }

  #hamburger {
    display: flex;
  }
}
.close-button {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  background-color: white;
}

.close-bar {
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: #000;
  border-radius: 2px;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.close-bar.top {
  transform: rotate(45deg);
}

.close-bar.bottom {
  transform: rotate(-45deg);
}
/* Początkowo popup jest ukryty i transparentny */
#popup-slider {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Kiedy popup ma klasę 'active' to jest widoczny i w pełni nieprzezroczysty */
#popup-slider.active {
  opacity: 1;
  visibility: visible;
}

/* Klasa do animacji znikania (fade out) */
#popup-slider.fade-out {
  opacity: 0;
  visibility: hidden;
}



/* Dropdown menu
 /* Styl ogólny dla elementu dropdown */
.dropdown {
  position: relative;
}

/* Ukryte menu początkowo */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background-color: rgba(255,255,255, 0.8);
  border: 1px solid #ccc;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 1000;
}

/* Pokazanie menu przy hover */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Styl dla linków w menu */
.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  transition: background 0.2s ease;
  
}

.dropdown-menu li a:hover {
  background-color: rgba(0,0,0, 0.8);
  border-radius: 5px;
  
}



.dropdown-mobile {
  display: inline-block; /* lub block, jeśli wolisz */
  height: fit-content; /* lub height: fit-content; */
  line-height: normal;
}

.dropdown-menu2 {
    transform: scaleY(0);
  transform-origin: top;
  
  pointer-events: auto;
  position: relative; /* WAŻNE: nie absolute */
  min-width: 100%;
  background-color: rgba(255,255,255, 0.6);
  border: 1px solid #ccc;
  list-style: none;
  z-index: 9999999;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  width: 100%;
  padding: 0;
  margin: 0;
  color: black; 
  display: none;
  
}

.dropdown-menu2.active {
 max-height: 800px; /* wystarczająco dużo na cały dropdown */
  opacity: 1;
  visibility: visible;
  padding: 10px 0;
  z-index: 9999999;
  transform: scaleY(1);
 height: auto;
  display: block;
}
.dropdown-menu2 li a {
  color: black;
  text-decoration: none;
  font-size: 1rem;
}
.dropdown-menu2 li {
 margin: 0 0;
  text-align: center;
  font-size: 1rem;

}
.mobile-item {
  transition: margin 0.4s ease;
  margin: 0;
}

.mobile-item.shrink {
  margin: 0.2rem 0;
}



/* Debug */
.dropdown-mobile {
  border: 1px dashed #ffffff;

}
/* ===============================
   SOCIAL MEDIA FIXED WIDGET
   =============================== */

.social-fixed {
  position: fixed;
  right: 0;
  top: 30%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999999;
}

/* Ikony */
.social-fixed a {
  width: 48px;
  height: 48px;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;

  border-radius: 0 0 0 0;

  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    filter 0.25s ease;

  will-change: transform, border-radius;
}

/* Hover – nowoczesny, „premium” */
.social-fixed a:hover {
  transform: scale(1.2) translateX(-8px);
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  filter: brightness(1.1);
}

/* Ikony Font Awesome */
.social-fixed i {
  font-size: 25px;
  color: #fff;
}

/* Wyłączenie hovera na urządzeniach dotykowych */
@media (hover: none) {
  .social-fixed a {
    transition: none;
  }
}


@media (max-width: 768px) {

  .hero.service {
    min-height: 100svh; /* bezpieczne na iOS */
    padding: 0 20px;
    display: flex;
    align-items: center;
  }

  .hero-content {
    width: 100%;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 28px;
  }

  .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
}
