

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}

@keyframes rotateIn {
  0% {
    transform: rotate(360deg) scale(0);
    opacity: 0;
  }
  100% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
}

.socials-desktop a {
  animation: rotateIn 0.6s ease-out both;
}



.socials-desktop {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.socials-desktop a img {
  width: 52px;
  height: 52px;
  transition: transform 0.3s ease;
}

.socials-desktop a:hover img {
  transform: scale(1.1);
}


.socials-mobile {
  display: none;
}


@media (max-width: 400px) {
  .socials-desktop {
    display: none;
  }

  .socials-mobile {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* Zawija ikonki jeśli się nie mieszczą */
  }

  .socials-mobile img {
    width: 28px;
    height: 28px;
  }
}


.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(34, 34, 34, 0.95);
  color: #eee;
  padding: 15px 20px;
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999999;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.4);
  font-size: 14px;
}

.cookie-text {
  max-width: 70%;
}

.cookie-text a {
  color: #58a6ff;
  text-decoration: underline;
}

.cookie-button {
  background-color: #58a6ff;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.cookie-button:hover {
  background-color: #3b7dd8;
}






 


body {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 16px;
  background-color: #ffffff;
  color: #2b2b2b;
  line-height: 1.7;
  letter-spacing: 0.2px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(150,150,150,0.6) transparent;
}

body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 6px;               
  height: 6px;              
}

body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
  background: transparent;  
}

body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
  background-color: rgba(150, 150, 150, 0.6); 
  border-radius: 4px;                         
}

body::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
  background-color: rgba(120, 120, 120, 0.8); /
}



/* Nagłówek */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.8); 
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  z-index: 1000;
  backdrop-filter: blur(132px);
   min-height: 80px;
  transition: all 0.2s ease;
  
}

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo-icon {
  width: 36px;
  height: 36px;
   object-fit: contain;
  margin-right: 8px;
}

.header__logo-text {
  font-weight: 600;
  font-size: 20px;
  color: #42B9BC;
}

.nav__list {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav__item a {
  font-weight: 600;
  font-size: 16px;
  color: #42B9BC;
  text-decoration: none;
}

.nav__item a:hover {
  color: #349799;
}

.nav__item a:visited {
  color: #42B9BC;         
  text-decoration: none;  
}

.nav__item a {
  transition: color 0.2s ease;
}

.nav__item a,
.nav__item a:link,
.nav__item a:visited,
.nav__item a:hover,
.nav__item a:active {
  color: #42B9BC;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.2s ease;
}

.nav__item a:hover {
  color: #349799;
}



/* Hero */
.hero {
  width: 100%;
  height: 680px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 24px;
  background-size: cover;
  text-align: center;
  position: relative;
  z-index: 1;
  background-color: transparent;
}

.hero__title {
  
  font-size: 90px;
  color: #fff;
}

.hero__subtitle {
  font-size: 28px;
  color: #fff;
  margin-top: 24px;
}

.hero__btn {
  margin-top: 32px;
  padding: 16px 32px;
  font-size: 22px;
  background: #fff;
  color: #42B9BC;
  border: 2px solid #42B9BC;
  border-radius: 8px;
  text-decoration: none;
}

.hero__btn:hover {
  background: #42B9BC;
  color: #fff;
}

@media (max-width: 400px) {
  /* Kontener nagłówka dostosowany do wąskich ekranów */
  .header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;               
    padding: 0.5rem 0.75rem;   
    width: 100%;
    box-sizing: border-box;
  }

  /* Logo wyśrodkowane i zoptymalizowane wysokościowo */
  .header__logo {
    display: flex;
    justify-content: center;
    height: 2rem;              
  }

  /* Sekcja ikonek społecznościowych */
  .socials-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;             
    margin: 0;
    padding: 0;
  }

  .socials-mobile img {
    width: 1.5rem;            
    height: 1.5rem;
    object-fit: contain;
  }

 
  .nav__list {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;        /* odstęp między przyciskami */
    margin: 0;
    padding: 0;
    list-style: none;
  }

  /* Każdy link to pełno-szerokościowy przycisk z dobrą wielkością "tap target" */
  .nav__item a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 2.5rem;           /* ~40px – zalecane dla dotykowych interakcji */
    padding: 0.5rem 0.75rem;      /* zwiększona przestrzeń wokół tekstu */
    font-size: 0.875rem;          /* ~14px – czytelny na małych ekranach */
    color: #42B9BC;
    background-color: rgba(66, 185, 188, 0.05);
    border-radius: 0.25rem;       /* 4px */
    text-decoration: none;
    transition: background-color 0.2s ease;
  }

  /* Wyraźniejszy stan „hover” i „focus” */
  .nav__item a:hover,
  .nav__item a:focus {
    background-color: rgba(66, 185, 188, 0.15);
  }
}




/* === Features === */

.features-section {
  position: relative;
  background-color: white;
  overflow: hidden;
}


.features-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center; 
}

.features__heading {
  
  font-size: 48px;
  color: #42B9BC;
  margin-bottom: 16px;
}

.features__subheading {
  font-size: 24px;
  color: #42B9BC;
  margin-bottom: 40px;
}

/* Kafelki – desktop */
.features__list {
  display: flex;
  flex-wrap: nowrap;
  gap: 32px;
  justify-content: center;
  align-items: stretch;
}

.feature {
  width: 100%;
  max-width: 480px;
  background-color: #f9f9f9;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12); 
  overflow: hidden;
  transition: all 0.3s ease;
}

.feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.feature__image {
  height: 270px;
  background-size: cover;
  background-position: center;
}

.feature__title {
  font-size: 20px;
  font-weight: 700;
  color: #42B9BC;
  margin: 16px;
}

.feature__desc {
  font-size: 16px;
  color: #555;
  margin: 0 16px 16px;
}

/* === Responsywność – telefon === */
@media (max-width: 768px) {
  .features-section {
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: scroll;
   
}

  .features__list {
    flex-direction: column;
    gap: 32px;
    justify-content: center;
    align-items: center;
    padding: 0;
  }

  .feature {
    width: 100%;
    max-width: 480px;
  }

  .feature__image {
    height: 200px;
  }

  .features__heading {
    font-size: 32px;
    margin-bottom: 0px;
    text-align: center;
  }

  .features__subheading {
    font-size: 18px;
    margin-bottom: 32px;
    text-align: center;
  }

  .hero {
    padding: 60px 16px;
    height: auto;
    text-align: center;
  }

  .hero__title {
    font-size: 48px;
  }

  .hero__title-image img {
    width: 100%;
    max-width: 400px;
  }

  .hero__subtitle {
    font-size: 18px;
    margin: 20px 0;
  }

  .hero__btn {
    font-size: 16px;
    padding: 10px 20px;
  }
}


/* Ikona hamburgera */
.nav__toggle {
  background: none;
  border: none;
  font-size: 32px;
  color: #42B9BC;
  cursor: pointer;
  display: none;
}

.nav__toggle:hover {
  cursor: pointer;
}

/* Układ listy */
.nav__list {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav__item a {
  font-weight: 600;
  font-size: 16px;
  color: #42B9BC;
  text-decoration: none;
}

/* === Responsywność menu === */

@media (max-width: 768px) {
  .nav__toggle {
    display: block;
  }

  .nav__list {
    display: none;
    flex-direction: column;
    gap: 16px;
    background: #fff;
    position: absolute;
    top: 72px; 
    right: 24px;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .nav__list.active {
    display: flex;
  }
}

/* === Sekcja o nas === */
.about-section {
  background-color: #fff;
  padding: 10px 24px;
.about-heading,
.about-subheading,
.about-image,
.about-image.rounded {
  position: relative;
  z-index: 2;
}
}

.about__container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.about-heading {
  
  font-size: 48px;
  font-weight: 700;
  color: #42B9BC;
  margin-bottom: 16px;
}

.about-subheading {
  font-size: 24px;
  font-weight: 600;
  color: #42B9BC;
  max-width: 1000px;
  margin: 0 auto 40px;
  line-height: 1.4;
}

/* === Kontener sekcji === */
.about-block,
.about-block.reversed {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  max-width: 1000px;
  margin: 80px auto;
  border-radius: 25px;
  overflow: hidden;
}

/* Naprzemienny układ */
.about-block.reversed {
  flex-direction: row-reverse;
  margin-bottom: 0;
}

/* === Zielone panele z tekstem – szersze, prostokątne === */
.about-panel-left,
.about-panel-right {
  flex-basis: 65%;              
  background-color: #42B9BC;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 40px;             
  gap: 16px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  border-radius: 0 25px 25px 0;
}

/* === Korekta zaokrągleń po stronie odwrotnej === */
.about-panel-right {
  border-radius: 25px 0 0 25px;
}

/* === Obrazki – węższe, pionowe proporcje === */
.about-image,
.about-image.rounded {
  flex-basis: 35%;               
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: block;
  height: auto;
  min-height: 100%;
  border-radius: 25px;
}

.about-image {
  border-radius: 0 25px 25px 0;
}

.about-image.rounded {
  border-radius: 25px 0 0 25px;
}


/* === Nagłówki w panelach === */
.about-title {
  font-family: 'Lora', serif;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin: 0;
  white-space: nowrap;
  display: block;
  width: 100%;
}

/* === Tekst w panelach === */
.about-text {
  max-width: 600px;
  font-size: 20px;

  color: #fff;
  text-align: center;
  line-height: 1.6;
  margin: 0 auto;
}

/* === Obraz jako tło === */
.about-image,
.about-image.rounded {
  width: 360px;
  height: 400px;
  margin: auto 0;
 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 25px;
}

/* Zaokrąglenie lewej/prawej strony obrazów */
.about-image {
  border-radius: 0 25px 25px 0;
}

.about-image.rounded {
  border-radius: 25px 0 0 25px;
}

/* === Wersja mobilna === */
@media (max-width: 768px) {
  .about-block,
  .about-block.reversed {
    flex-direction: column;
    height: auto;
    margin: 40px 0;
    border-radius: 16px;
    overflow: hidden;
  }

  .about-image,
  .about-image.rounded {
    width: 85%;
    height: 255px;
    margin: 0 auto;
    border-radius: 0 0 16px 16px;
  }

  .about-panel-left,
  .about-panel-right {
    width: 100%;
    padding: 24px 16px;
    background-color: #42B9BC;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 240px;
    margin: 0 auto;
    box-sizing: border-box;
    gap: 16px;
  }

  .about-text {
    font-size: 16px;
    max-width: 90%;
    margin: 0;
    text-align: center;
  }
}



.hero {
  position: relative;
  overflow: hidden; 
}

#bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__title-image,
.hero__subtitle,
.hero__btn {
  position: relative;
  z-index: 1; 
}


.section-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: auto;
  z-index: 0;
  pointer-events: none;
   opacity: 0.20;
}
.stacked-background {
  position: relative;
  overflow: visible;
}
.stacked-background > *:not(.section-bg) {
  position: relative;
  z-index: 1;
}


.section-bg--second {
  top: 1900px; 
}

@media screen and (max-width: 768px) {
  .section-bg,
  .stacked-bg {
    display: none !important; 
    opacity: 0;               
    pointer-events: none;
  }
}

@media screen and (max-width: 768px) {
  .about-section,
  .services-circle,
  .contact-section {
    position: relative;
    z-index: 2;
    background-color: #fff; 
  }
}

@media screen and (max-width: 768px) {
  .about-section {
    margin-top: 200px; 
  }
}






@media (max-width: 768px) {
  .nav__toggle {
    display: block;
    background: none;
    border: none;
    font-size: 28px;
    color: #42B9BC;
    cursor: pointer;
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 1001;
  }

  .nav__list {
    display: none;
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 64px;
    right: 24px;
    width: 200px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border-radius: 8px;
  }

  .nav__list.active {
    display: flex;
  }
}


/* === POD STRONAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA  ZAKRE === */


.agmir-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 600px;       
  padding: 60px 24px;     
  overflow: hidden;
}

.agmir-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.agmir-frame {
  max-width: 1000px;       
  width: 90%;
  padding: 30px;         
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;              

  background-color: rgba(255, 255, 255, 0.75);
  border: 2px solid rgba(66, 185, 188, 0.3);
  border-radius: 16px;
  scroll-margin-top: 100px;
  z-index: 1;
}

.agmir-title {
  
  font-weight: 700;
  font-size: 75px;        
  line-height: 1.2;
  text-align: center;
  color: var(--turkus, #42b9bc);
}

.agmir-subtitle {
  font-family: "Lora", serif;
  font-weight: 600;
  font-size: 28px;        
  line-height: 1.5;
  text-align: center;
  color: var(--turkus, #42b9bc);
}

.agmir-desc {
  font-family: "Lora", serif;
  font-weight: 400;
  font-size: 22px;         
  line-height: 1.6;
  text-align: center;
  color: var(--turkus, #42b9bc);
  max-width: 800px;       
}

/*  Breakpoint: tablet */
@media (max-width: 768px) {
  .agmir-hero {
    padding: 50px 16px;
    min-height: 500px;
  }
  .agmir-frame {
    padding: 20px;
    gap: 16px;
  }
  .agmir-title { font-size: 48px; }
  .agmir-subtitle { font-size: 22px; }
  .agmir-desc { font-size: 16px; }
}

/*  Breakpoint: mobile */
@media (max-width: 480px) {
  .agmir-hero {
    padding: 40px 12px;
    min-height: auto;
  }
  .agmir-frame {
    width: 95%;
    padding: 16px;
    gap: 12px;
  }
  .agmir-title { font-size: 36px; }
  .agmir-subtitle { font-size: 18px; }
  .agmir-desc { font-size: 14px; }
}

/*  Główna sekcja usługi */
.usluga,
.usluga-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  max-width: 1550px;
  margin: 80px auto;
  padding: 0 40px;
  background: transparent;
}

/*  Naprzemienne ustawienie kolejności */
.usluga:nth-of-type(odd),
.usluga-block:nth-of-type(odd) {
  flex-direction: row-reverse;
}
.usluga:nth-of-type(even),
.usluga-block:nth-of-type(even) {
  flex-direction: row;
}

/*  Kolumna tekstu */
.usluga-text,
.usluga > .usluga-text,
.usluga > div[class^="tekst-"] {
  flex: 2;
  max-width: 900px;
  max-height: 580px; 
  margin: 0;
  padding: 0;
  text-align: center;
  font-family: "Lora", serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 🔠 Nagłówki */
.usluga h2,
.usluga-text h2 {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  color: #42b9bc;
}
.usluga h3,
.usluga-text h3 {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 12px;
  color: #42b9bc;
}
.usluga h4,
.usluga-text h4 {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0 0 32px;
  color: #2b2b2b;
}

/*  Zielony box  */
.usluga p,
.usluga-text p {
  
  font-size: 22px;
  line-height: 1.7;
  background-color: #42b9bc;
  color: #fff;
  padding: 24px 32px;
  margin: 0 auto 48px;
  border-radius: 12px;
  max-width: 100%;
  text-align: center;
  white-space: pre-wrap;
  word-break: break-word;

  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*  Obrazki  */
.usluga-image,
.obraz-ziemne,
.obraz-brukarskie,
.obraz-nawadnianie,
.obraz-przebudowy,
.obraz-porzadkowanie,
.obraz-ogrodowe {
  flex: 1;
  width: 600px;
  height: 650px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 0;
}

.usluga-image img,
.obraz-ziemne img,
.obraz-brukarskie img,
.obraz-nawadnianie img,
.obraz-przebudowy img,
.obraz-porzadkowanie img,
.obraz-ogrodowe img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* Mobile – układ kolumnowy */
@media (max-width: 30rem) { /* 480px */
  /* Kontenery usług ustawione w kolumnę */
  .usluga,
  .usluga-block {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;        /* 2px */
    margin: 1.125rem auto;/* 18px auto */
    padding: 0;           /* usuń negatywne paddingi */
    box-sizing: border-box;
  }

  /* Tekst w usłudze – pełna szerokość */
  .usluga-text,
  .usluga > .usluga-text,
  .usluga > div[class^="tekst-"] {
    max-width: 100%;
    max-height: none;
  }

  /* Nagłówki w usłudze */
  .usluga h2,
  .usluga-text h2 {
    font-size: clamp(1.5rem, 5vw, 2rem); /* od 24px do 32px */
    line-height: 1.3;
    margin-bottom: 0.75rem;              /* 12px */
  }

  .usluga h3,
  .usluga-text h3 {
    font-size: clamp(1.25rem, 4vw, 1.375rem); /* od 20px do 22px */
    line-height: 1.4;
    margin-bottom: 0.625rem;                 /* 10px */
  }

  .usluga h4,
  .usluga-text h4 {
    font-size: clamp(1.125rem, 3.5vw, 1.25rem); /* od 18px do 20px */
    line-height: 1.5;
    margin-bottom: 1.25rem;                   /* 20px */
  }

  /* Akapity i opisy */
  .usluga p,
  .usluga-text p {
    font-size: clamp(1rem, 3vw, 1rem);   /* 16px */
    line-height: 1.6;
    padding: 1rem;                       /* 16px */
    margin-bottom: 0.625rem;             /* 10px */
    flex-grow: 0;
    word-break: break-word;
  }

  /* Ukrycie grafik w mobilnym widoku */
  .usluga-image,
  .obraz-ziemne,
  .obraz-brukarskie,
  .obraz-nawadnianie,
  .obraz-przebudowy,
  .obraz-porzadkowanie,
  .obraz-ogrodowe {
    display: none;
  }
}

.usluga {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.usluga.visible {
  opacity: 1;
  transform: translateY(0);
}


/*  Animacja wejścia dla sekcji usług */
.usluga,
.usluga-block {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.usluga.visible,
.usluga-block.visible {
  opacity: 1;
  transform: translateY(0);
}



/* Ukryj blur-box domyślnie */
.mobile-blur-box {
  display: none;
}

.mobile-blur-box {
  display: none;
}

@media (max-width: 480px) {
  .egzotyczne p {
    display: none !important;
  }

  .mobile-blur-box {
    position: relative;
    display: block;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .mobile-blur-box img {
    width: 100%;
    height: auto;
    display: block;
    filter: blur(6px) brightness(0.75);
    transform: scale(1.1); /* powiększenie, by blur się nie urywał */
  }

  .mobile-blur-text {
    position: absolute;
    inset: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
  }

  .mobile-blur-text h2 {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .mobile-blur-text h4 {
    font-size: 16px;
  }
}


/* PAJAKKKKKKKKKKKKKKKKKKKKKKKK*/

.services-circle {
  background-color: transparent;
  padding: 10rem 0;
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
   z-index: 1;
}

.services-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -66%);
  width: 350px;
  height: 350px;
  background-color: #3ccfcf;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 2rem;
  text-align: center;
  text-decoration: none;
  z-index: 2;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow: hidden;
}

/*  */
.services-center .services-label {
  transition: opacity 0.3s ease;
  z-index: 2;
}
.services-center .services-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 50%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.services-ring {
  position: relative;
  width: 1000px;
  height: 1000px;
  list-style: none;
  margin: 0;
  padding: 0;
  transform: translate(-14%, -20%);
}

.service {
  --radius: 400px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: rotate(var(--angle)) translate(var(--radius)) rotate(calc(-1 * var(--angle)));
  width: 280px;
  height: 280px;
  background-color: #3ccfcf;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  overflow: hidden;
  
}

.service a {
  text-decoration: none;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.services-label {
  font-size: 1.8rem;
  padding: 0 10px;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.services-icon {
  width: 64px;
  height: 64px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  transition: all 0.3s ease;
}


.service:hover,
.services-center:hover {
  background-color: #2cb67d;
}
.service:hover .services-label,
.services-center:hover .services-label {
  opacity: 0;
}
.service:hover .services-icon,
.services-center:hover .services-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}


.service:nth-child(1) { --angle: 0deg; }
.service:nth-child(2) { --angle: 51deg; }
.service:nth-child(3) { --angle: 102deg; }
.service:nth-child(4) { --angle: 153deg; }
.service:nth-child(5) { --angle: 204deg; }
.service:nth-child(6) { --angle: 255deg; }
.service:nth-child(7) { --angle: 306deg; }


@media screen and (max-width: 768px) {
  .services-circle {
    flex-direction: column;
    padding: 3rem 1rem;
  }
  .services-center {
    position: static;
    margin: 0 auto 2rem;
    width: 260px;
    height: 260px;
    font-size: 0.9rem;
    transform: none;
  }
  .services-ring {
    position: static;
    transform: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    height: auto;
    margin: 0;
  }
  .service {
    position: static;
    transform: none !important;
    width: 240px;
    height: 240px;
  }
  .services-icon {
    width: 48px;
    height: 48px;
  }
}

/*  Responsywność – mobile (≤480px) z falowaną kolumną */
@media screen and (max-width: 480px) {
  .services-circle {
    flex-direction: column;
    padding: 2rem 1rem;
  }
  .services-center {
    position: static;
    margin: 0 auto 1.5rem;
    width: 200px;
    height: 200px;
    font-size: 1.5em;
    transform: none;
  }
  .services-ring {
    position: static;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    height: auto;
    margin: 0;
  }
  .service {
    position: static;
    transform: none !important;
    width: 180px;
    height: 180px;
    margin: 0 auto;
  }
  /* falowanie w pionie: co drugie lekko przesunięte */
  .service:nth-child(odd) {
    transform: translateX(-12px) !important;
  }
  .service:nth-child(even) {
    transform: translateX(12px) !important;
  }
  .service a {
    font-size: 0.5rem;
  }
  .services-label {
    font-size: 1.1rem;
  }
  .services-icon {
    width: 40px;
    height: 40px;
  }
}


#usluga-egzotyczne,
.prace-ziemne,
.brukarskie,
.nawadnianie,
.przebudowy,
.porzadkowanie,
.egzotyczne {
  scroll-margin-top: 150px; 
}




/* === Globalne ustawienia sekcji === */
.usluga, .usluga-block {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  max-width: 1550px;
  margin: 80px auto;
  padding: 0 20px;
  background: transparent;
  overflow: hidden;
}

/* === Naprzemienne ustawienie dla desktopu === */
.usluga:nth-of-type(odd),
.usluga-block:nth-of-type(odd) {
  flex-direction: row-reverse;
}
.usluga:nth-of-type(even),
.usluga-block:nth-of-type(even) {
  flex-direction: row;
}

/* === Kolumna tekstu === */
.usluga-text,
.usluga > .usluga-text,
.usluga > div[class^="tekst-"] {
  flex: 2;
  max-width: 900px;
  max-height: 580px;
  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}

/* === Nagłówki === */
.usluga h2, .usluga-text h2 {
  font-size: 64px;
  font-weight: 700;
  color: #42b9bc;
  margin-bottom: 16px;
}
.usluga h3, .usluga-text h3 {
  font-size: 36px;
  font-weight: 500;
  color: #42b9bc;
  margin-bottom: 12px;
}
.usluga h4, .usluga-text h4 {
  font-size: 28px;
  font-weight: 400;
  color: #2b2b2b;
  margin-bottom: 32px;
}

/* === Zielony box === */
.usluga p, .usluga-text p {
  font-size: 22px;
  line-height: 1.7;
  background-color: #42b9bc;
  color: white;
  padding: 24px 32px;
  margin: 0 auto 48px;
  border-radius: 12px;
  max-width: 100%;
  text-align: center;
  white-space: pre-wrap;
  word-break: break-word;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Obrazki === */
.usluga-image,
.obraz-ziemne,
.obraz-brukarskie,
.obraz-nawadnianie,
.obraz-przebudowy,
.obraz-porzadkowanie,
.obraz-ogrodowe {
  flex: 1;
  width: 600px;
  height: 650px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.usluga-image img,
.obraz-ziemne img,
.obraz-brukarskie img,
.obraz-nawadnianie img,
.obraz-przebudowy img,
.obraz-porzadkowanie img,
.obraz-ogrodowe img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* === RESPONSYWNOŚĆ: TABLET i TELEFON (≤ 992px) === */
@media (max-width: 992px) {
  .usluga,
  .usluga-block {
    flex-direction: column;
    gap: 24px;
    margin: 40px auto;
    padding: 0 16px;
    overflow: visible;
    max-width: 100%;
    box-sizing: border-box;
  }

  .usluga-image,
  .obraz-ziemne,
  .obraz-brukarskie,
  .obraz-nawadnianie,
  .obraz-przebudowy,
  .obraz-porzadkowanie,
  .obraz-ogrodowe {
    display: none !important;
  }

  .usluga h2,
  .usluga-text h2 {
    font-size: 32px;
    line-height: 1.3;
  }

  .usluga h3,
  .usluga-text h3 {
    font-size: 20px;
    line-height: 1.4;
  }

  .usluga h4,
  .usluga-text h4 {
    font-size: 18px;
    line-height: 1.5;
  }

  .usluga p,
  .usluga-text p {
    font-size: 15px;
    padding: 16px;
    margin-bottom: 24px;
    flex-grow: 0;
    word-break: break-word;
    hyphens: auto;
    white-space: normal;
  }
}

/* === EXTRA: telefony < 400px – pełna szerokość tekstu === */
@media (max-width: 400px) {
  .usluga,
  .usluga-block {
    flex-direction: column;
    gap: 24px;
    margin: 20px auto;
    padding: 0 8px;
    overflow: visible;
    max-width: 100%;
    box-sizing: border-box;
  }

  .usluga-text,
  .usluga > .usluga-text,
  .usluga > div[class^="tekst-"] {
    width: 100%;
    max-width: 100%;
    max-height: none;
    flex: 0 1 auto;
  }
}


/* === Sekcja kontaktowa === */

.contact-section {
  position: relative;
  z-index: 1;
  padding: 4rem 1rem;
  color:  #42B9BC;
  overflow: hidden;
}

/* Tło video */
.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* === Zielony box z nagłówkiem === */

.contact-header-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto 4rem auto;
  text-align: center;
}

.contact-header-box {
  background-color: #fcfcfc;
  padding: 2rem;
  border-radius: 24px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-header-box h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-header-box h2 span {
  display: block;
  font-size: 1.5rem;
  font-weight: 300;
  color:  #42B9BC;
}

.contact-header-box p {
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  color:   #42B9BC;
}

/* === Kafelki z kartami kontaktowymi i mapami === */

.contact-map-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

/* --- Lokalizacja 1 --- */

.contact-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-info-floating {
  position: relative;
  background-color: #ffffff;
  padding: 1.5rem 1.8rem;
  border-radius: 24px 24px 0 0;
  width: 90%;
  margin-bottom: -5px;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hours img {
  width: 16px;
  height: 16px;
  vertical-align: middle;  /* lepsze wyrównanie z tekstem */
  margin-right: 6px;        /* odstęp między ikoną a tekstem */
}

/* Ujednolicenie wyglądu wszystkich linków w kartach kontaktowych */
.contact-info-floating a,
.contact-info-floatingtwo a {
  display: inline-block;
  color: inherit;           
  text-decoration: none;    
  user-select: text;        
  white-space: nowrap;     
}

.contact-info-floating a:hover,
.contact-info-floatingtwo a:hover {
  text-decoration: underline;
}



.contact-info-floating ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info-floating li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  font-size: 1rem;
  color:  #42B9BC;
  line-height: 1.4;
}

.contact-info-floating li img {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.map-box {
   position: relative;
  width: 100%;
  height: 370px;
  max-width: 4420px;
  z-index: 2;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  border-radius: 25px 25px 25px 25px;
  overflow: hidden;
}

.map-box iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Lokalizacja 2 --- */

.contact-cardtwo {
  position: relative;
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-info-floatingtwo {
  position: relative;
  background-color: #ffffff;
  padding: 1.5rem 1.8rem;
  border-radius: 24px 24px 0 0;
  width: 90%;
  margin-bottom: -10px;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-info-floatingtwo ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-map-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end; /* <-- wyrównaj karty do dołu */
  gap: 2rem;
  margin-top: 2rem;
}


.contact-info-floatingtwo li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  font-size: 1rem;
  color:  #42B9BC;
  line-height: 1.4;
}

.contact-info-floatingtwo li img {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.map-boxtwo {
  position: relative;
  width: 100%;
  height: 370px;
  max-width: 4420px;
  z-index: 2;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  border-radius: 20px 20px 20px 20px;
  overflow: hidden;
}

.map-boxtwo iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* === Responsywność (≤ 600px) === */

@media (max-width: 600px) {
  .contact-card,
  .contact-cardtwo {
    max-width: 100%;
  }

  .map-box,
  .map-boxtwo {
    max-width: 100%;
    height: 300px;
  }

  .contact-info-floating,
  .contact-info-floatingtwo {
    width: 95%;
    padding: 1.2rem;
  }
}






/* === Sekcja bloga === */

/* === NAGŁÓWEK BLOGA === */
.blog__header {
  text-align: center;
  padding: 3rem 1rem 2rem;
  background-color: #ffffff;
  border-bottom: 2px solid #ffffff;
  box-shadow: inset 0 -1px 2px rgba(255, 255, 255, 0.05);
}

.blog__title {
  font-size: 2.2rem;
  color: #42B9BC;
  margin-bottom: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.blog__subtitle {
  font-size: 1.2rem;
  color: #42B9BC;
  margin-bottom: 2rem;
  font-weight: 500;
 
}

.blog__search {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

#searchInput, .search__input {
  padding: 0.75rem 1.25rem;
  width: 100%;
  max-width: 500px;
  border: 1.5px solid #42B9BC;
  border-radius: 2rem;
  font-size: 1rem;
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#searchInput:focus, .search__input:focus {
  outline: none;
  border-color: #42B9BC;
  box-shadow: 0 0 8px #ffffff;
}

.blog__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.tag-filter {
  padding: 0.4rem 0.9rem;
  border: none;
  border-radius: 2rem;
  background-color: #42B9BC;
  color: #ffffff;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  user-select: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tag-filter:hover, .tag-filter.active {
  background-color: #42B9BC;
  color: #fff;
  box-shadow: 0 4px 10px rgba(66, 185, 188, 0.5);
}

/* === SIATKA ARTYKUŁÓW === */
.blog__articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 6fr));
  gap: 3rem;
  padding: 4rem 2rem 6rem;
  max-width: 1600px;
  margin: 0 auto;
}

.blog__article {
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog__article:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.article__image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-bottom: 4px solid #ffffff;
}

.article__content {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}


.article__date {
  color: #42B9BC;
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.article__title {
  font-size: 2rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 1rem;
  line-height: 1.4;
  min-height: 5.6rem;
  display: cover;
  align-items: flex-start;
}

.article__intro {
  font-size: 1.25rem;
  color: #333;
  line-height: 1.8;
  margin-bottom: 2rem;
  flex-grow: 2;
}

.article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
}

.article__tags .tag {
  background-color: #e0f5f5;
  color: #42B9BC;
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.article__tags .tag:hover {
  background-color: #c1e6e6;
}

/* Większy artykuł na siatce */
.blog__article--tall {
  grid-row: span 2;
}

/* Responsywność */
@media (max-width: 768px) {
  .blog__articles {
    grid-template-columns: 1fr;
  }

  .article__image {
    height: 220px;
  }

  .article__title {
    font-size: 1.6rem;
    min-height: 4.2rem;
  }

  .article__intro {
    font-size: 1.1rem;
  }

  .article__content {
    padding: 2rem 1.5rem;
  }
}




/* === POPUP (MODAL) === */
.popupBlog {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  overflow-y: auto; /* zostaje */
  backdrop-filter: blur(5px); /* subtelne rozmycie tła */
}

.popupBlog--active {
  display: flex;
}

.popupBlog__content {
  background-color: #fff;
  padding: 2rem 2.5rem;
  border-radius: 1rem;
  max-width: 700px;
  width: 100%;
  position: relative;
  animation: fadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  max-height: 90vh;
  overflow-y: auto;
  scroll-behavior: smooth;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.popupBlog__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: #444;
  cursor: pointer;
  transition: color 0.3s ease;
  user-select: none;
}

.popupBlog__close:hover {
  color: #42B9BC; /* kolor przewodni jako efekt hover */
}

.popupBlog__date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.popupBlog__title {
  font-size: 1.7rem;
  margin-bottom: 1.25rem;
  color: #42B9BC;
  font-weight: 700;
  line-height: 1.2;
}

.popupBlog__text {
  font-size: 1rem;
  color: #222;
  line-height: 1.75;
}

.popupBlog__text p {
  margin-bottom: 1.2rem;
}

/* === RESPONSYWNOŚĆ === */
@media screen and (max-width: 768px) {
  .popupBlog__content {
    padding: 1.5rem 1.8rem;
  }
  .search__input {
    width: 90%;
  }
}

@media screen and (max-width: 480px) {
  .article__title {
    font-size: 1rem;
  }

  .article__intro {
    font-size: 0.9rem;
  }

  .popupBlog__title {
    font-size: 1.4rem;
  }

  .popupBlog__text {
    font-size: 0.95rem;
  }
}




/* === Sekcja === */


.section-b1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: auto;
  z-index: 1;
  pointer-events: none;
   opacity: 0.20;
}
.stacked-background1 {
  position: relative;
  overflow: visible;
}
.stacked-background1 >  {
  position: relative;
  z-index: 1;
}


.plant-section {
  padding: 80px 24px;
  max-width: 1400px;
  margin: 0 auto;
   z-index: 2;
}

.plant-heading {
  font-size: 44px;
  text-align: center;
  color: #42B9BC;
  margin-bottom: 12px;
   z-index: 3;

}

.plant-intro {
  font-size: 18px;
  text-align: center;
  color: #333;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
   z-index: 3;
  
}


/* === Wyszukiwarka === */
.plant-search {
  display: block;
  margin: 0 auto 32px;
  max-width: 400px;
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid #42B9BC;
  border-radius: 12px;
  outline: none;
  box-sizing: border-box;
   z-index: 2;
  
}

/* === Kategorie === */
.plant-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
   z-index: 2;

}

.plant-categories button {
  background-color: #42B9BC;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
   z-index: 2;

}

.plant-categories button.active,
.plant-categories button:hover {
  background-color: #00A86B;
   z-index: 2;
}

/* === Siatka kafelków === */
.plant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
   z-index: 2;
 
}

/* === Kafelek rośliny === */
.plant-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform 0.3s ease;
   z-index: 2;
   
}

.plant-card:hover {
  transform: translateY(-6px);
   z-index: 2;
}

.plant-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
   z-index: 2;
}

.plant-card__label {
  width: 100%;
  background-color: #42B9BC;
  text-align: center;
  padding: 12px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
   z-index: 2;
}

.plant-card__label span {
  display: inline-block;
  width: 100%;
   z-index: 2;
}


/* === Popup === */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.popup.open {
  display: flex;
}

.popup__content {
  background-color: #ffffff;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  max-width: 950px;
  width: 100%;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  padding: 30px;
  gap: 20px;
  box-sizing: border-box;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* === Zdjęcie === */
.popup__img-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 20px;
  padding: 15px;
  box-sizing: border-box;
  transition: box-shadow 0.3s ease;
}

.popup__img {
  max-width: 100%;
  max-height: 60vh;
  height: auto;
  width: auto;
  border-radius: 20px;
  object-fit: contain;
  display: block;
  transition: box-shadow 0.3s ease;
}

/* Zielone podświetlenie po najechaniu */
.popup__img-container:hover .popup__img {
  box-shadow: 0 0 30px rgba(0, 200, 0, 0.9);
}

/* === Teksty i szczegóły === */
.popup__description,
.popup__note,
.popup__details {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333;
  margin: 0;
}

.popup__note {
  background-color: #ffffff;
  border-left: 5px solid #42B9BC;
  padding: 12px 16px;
  border-radius: 12px;
  font-style: italic;
  font-weight: 500;
  color: #2a5930;
}


.popup__details {
  list-style: none;
  padding-left: 0;
}

.popup__details li::before {
  content: '✔';
  color: #42b983;
  margin-right: 8px;
  font-weight: bold;
}

/* === Kontakt === */
.popup__contact-inner {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.popup__contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}

.popup__icon {
  font-size: 20px;
  color: #42b983;
}

.popup__contact-line a {
  color:#42B9BC;
  text-decoration: none;
  font-weight: 600;
}

/* === Przycisk zamknięcia === */
.popup__close {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  font-size: 30px;
  color: #555;
  cursor: pointer;
  transition: color 0.2s ease;
}

.popup__close:hover {
  color: #000;
}

@media (max-width: 768px) {
  /* 1. Cały pop-up jako blok z przewijaniem */
  .popup__content {
    display: block;
    box-sizing: border-box;
    width: 90vw;               /* zajmuje 90% szerokości viewportu */
    max-width: 500px;          /* ograniczenie dla większych ekranów */
    max-height: 80vh;          /* zachowuje miejsce na scroll */
    margin: 2rem auto;         /* centrowanie w pionie i poziomie */
    padding: 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* 2. Nagłówek i ciało (tekst) nie zmieniają się zasadniczo */
  .popup__header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
  }

  /* 1. Upewnij się, że dialog ma kontekst dla position:absolute */
  .popup__dialog {
    position: relative;
  }

  /* 2. Styl przycisku zamykania – zawsze w prawym górnym rogu */
  .popup__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    padding: 0;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #333;        /* dostosuj do koloru tła */
    cursor: pointer;
    z-index: 10;
  }


  .popup__body {
    margin-bottom: 1rem;
  }

  /* 3. Kluczowe reguły dla samego obrazka */
  .popup__img {
    display: block !important;   /* usuwa zachowania inline/flex */
    width: 100% !important;      /* zawsze pełna szerokość kontenera */
    height: auto !important;     /* proporcje zachowane */
    object-fit: contain !important;
    margin: 1rem 0 !important;
  }

  /* 4. (Opcjonalnie) kontener na obrazek z ograniczeniem wysokości */
  .popup__img-container {
    width: 100%;
    max-height: 60vh;            /* zapobiega nadmiernej wysokości */
    overflow: hidden;
  }

  /* 5. Styl paska scrolla w iOS/Chrome */
  .popup__content::-webkit-scrollbar {
    width: 8px;
  }
  .popup__content::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 4px;
  }
}

   
.plant-card__content {
  background-color: #42B9BC;
  padding: 16px;
  min-height: 100px; /* dodaj na test */
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  z-index: 2;
}


.plant-card__content h2 {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 8px;
   z-index: 2;
}

.plant-card__content p {
  font-size: 14px;
  color: #ffffff;
  line-height: 1.4;
   z-index: 2;
}
.plant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 40px;
   z-index: 2;
}



/* === Ukrywanie kart (filtrowanie) === */
.plant-card.hidden {
  display: none !important;
}






