:root{
  --navy:#03254C;
  --navy-dark:#0e1f38;
  --green:#5a9e3d;
  --green-light:#e9f3e2;
  --gray-bg:#f4f5f2;
  --text:#233042;
  --muted:#5b6472;
  --white:#ffffff;
  --radius:10px;
  --maxw:1180px;
}
/* Zmiana koloru zaznaczenia tekstu dla całej strony */
::selection {
  background-color: var(--green); /* Twój zielony kolor z wartości :root */
  color: var(--white); /* Kolor czcionki po zaznaczeniu (biały dla lepszego kontrastu) */
}

/* Wersja dla przeglądarek opartych na starszym silniku Firefox (dla pełnej kompatybilności) */
::-moz-selection {
  background-color: var(--green);
  color: var(--white);
}
  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;
  
  /* Ta wartość powinna być równa wysokości Twojego paska menu lub nieco większa, 
     aby zostawić estetyczny margines nad nagłówkiem */
  scroll-padding-top: 120px;
  }
  body{
    font-family:'Segoe UI', Roboto, -apple-system, sans-serif;
    color:var(--text);
    background:var(--white);
    line-height:1.55;
  }
  img{max-width:100%; display:block;}
  a{color:inherit; text-decoration:none;}
  ul{list-style:none;}
  .wrap{max-width:var(--maxw); margin:0 auto; padding:0 24px;}

  header{
    position:sticky; top:0; z-index:50;
    background:var(--white);
    box-shadow:0 2px 10px rgba(0,0,0,0.06);
  }
  .header-inner{
    display:flex; align-items:center; justify-content:space-between;
    padding:36px 24px; max-width:var(--maxw); margin:0 auto;
  }
  
.logo {
  display: flex; 
  align-items: center; 
  gap: 14px;
  position: relative;
}

.logo img {
  height: 88px;
  width: auto;
  flex-shrink: 0;
  z-index: 1;
  
  position: absolute;
  top: 25%;
  transform: translateY(-50%);
}

.logo-text {
  margin-left: 75px;
  display: flex;
  flex-direction: column;
}

.logo-text .name {
  font-size: 1.35rem; 
  font-weight: 800; 
  color: #5F5F5F; 
  letter-spacing: 0.5px; 
  line-height: 1.2;
}

.logo-text .tag {
  font-size: 0.92rem; 
  color: var(--green); 
  margin-top: 0px;
}
nav ul {
  display: flex; 
  gap: 28px;
}

nav a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.85rem; 
  font-weight: 800; 
  color: var(--navy);
  text-transform: uppercase; 
  letter-spacing: 0.6px;
  padding-bottom: 6px; 
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--green);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

nav a:hover, 
nav a.active {
  color: var(--green) !important;
}

nav a:hover::after, 
nav a.active::after {
  width: 100%;
}
.nav-toggle{display:none; background:none; border:none; cursor:pointer; padding:6px;}
.nav-toggle span{display:block; width:26px; height:3px; background:var(--navy); margin:5px 0; border-radius:2px;}

.hero{position:relative; overflow:hidden; background:var(--white);
  padding-bottom: 60px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, 
    rgba(255, 255, 255, 1) 0%, 
    rgba(255, 255, 255, 0.95) 35%, 
    rgba(255, 255, 255, 0) 55%
  ), 
  url('images/bakcground.jpg') top right no-repeat;
}
  .hero-inner{
    position:relative; display:grid;
    grid-template-columns:1fr 2fr;
    gap:40px; align-items:center; padding:60px 24px 20px; max-width:var(--maxw); margin:0 auto;
  }
  .hero-copy h1{
    font-size:5.4rem; font-weight:900; line-height:0.8; color:var(--navy);
    letter-spacing:-1px;
  }
  .hero-copy h1 .accent{color:var(--green);}
  .hero-copy .sub{
    font-size:2.8rem; font-weight:700; color:var(--navy); margin-top:6px;
  }
  .hero-rule{width:60px; height:4px; background:var(--green); margin:18px 0 20px; border-radius:2px;}
  .hero-copy p.desc{color:var(--navy); font-size:1.08rem; font-weight:600; max-width:390px; margin-bottom:26px;}

  .feature-grid{
    display:grid; grid-template-columns:repeat(4,1fr); gap:6px; margin-bottom:26px;
    margin-left: -24px;
  }
  .feature{text-align:center;}
  .feature .icon-circle{
    width:62px; height:62px; border-radius:50%;
    background: #f4f4f4;
    display:flex; align-items:center; justify-content:center;
    margin:0 auto 10px; border:1px solid rgba(90,158,61,0.25);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease-in-out;
  }

.feature:hover .icon-circle {
  transform: scale(1.08); /* Lekkie powiększenie (o 8%) */
}
.feature:hover .icon-circle svg {
  stroke:var(--green);
}


  .feature .icon-circle svg{width:46px; height:46px; stroke:var(--navy); fill:none; stroke-width:2;}
  .feature .label{font-size:0.72rem; font-weight:700; color:var(--navy); line-height:1.3; text-transform:uppercase;
  transition: transform 0.3s ease-in-out;
  cursor: default;
  }
  .feature:hover .label {
    transform: scale(1.12); /* Lekkie powiększenie (o 12%) */
  }

  .badge-strip{
    display:inline-block; background:var(--green); color:#fff;
    font-weight:700; font-size:0.85rem; letter-spacing:1px;
    padding:12px 26px; border-radius:30px; text-transform:uppercase;
  }

  .hero-visual{
    position:relative; display:flex; align-items:center; justify-content:center;
    min-height:420px;
  }
  .hero-visual .photo-frame{
    width:100%; height:100%; min-height:420px; border-radius:var(--radius);
    background:linear-gradient(135deg,#dfe8f5,#eef4ea);
    display:flex; align-items:center; justify-content:center;
    position:relative; overflow:hidden;
    border:1px dashed rgba(21,42,74,0.25);
  }
  
  /* ZASTOSOWANIE */
  .section{padding:70px 0;}
  .section-title{
    font-size:1.5rem; font-weight:800; color:var(--navy);
    text-transform:uppercase; letter-spacing:0.5px; margin-bottom:36px;
    position:relative; display:inline-block;
  }
  .section-title::before{
    content:""; position:absolute; left:0; bottom:-10px; width:60px; height:3px;
    background:var(--green); border-radius:2px;
  }
  .app-grid{
    display:grid; grid-template-columns:repeat(6,1fr); gap:20px;
  }
  .app-item{text-align:center;}
  .app-item .icon-circle{
    display:flex; align-items:center; justify-content:center; margin:0 auto 14px;
    transition: transform 0.3s ease-in-out;
  }

  .app-item:hover .icon-circle {
    transform: scale(1.18); /* Lekkie powiększenie (o 18%) */
  }
  
.app-item:hover .icon-circle svg {
  stroke:var(--navy);
}

  
  .app-item .icon-circle svg{width:68px; height:68px; stroke:var(--green); fill:none; stroke-width:1.8;}
  .app-item p{font-size:0.8rem; color:var(--text); font-weight:bold; line-height:1.3;transition: transform 0.3s ease-in-out;}
  .app-item:hover p {
    transform: scale(1.08); /* Lekkie powiększenie (o 8%) */ 
  }




/* 1. Musimy dodać position: relative, aby linia pozycjonowała się względem kafelka */
.app-item {
  position: relative;
  /* Dodatkowy padding z prawej strony, żeby linia nie dotykała tekstu */
  padding-right: 10px; 
}

/* 2. Tworzymy nowoczesną, trójwymiarową linię */
.app-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -10px; /* Pozycja idealnie pomiędzy kafelkami (dostosuj do potrzeb) */
  top: 10%;
  width: 1px;
  height: 80%; /* Linia nie dotyka krawędzi, co wygląda o wiele lżej i nowocześniej */
  
  /* Subtelny, metaliczno-szary gradient zamiast jednolitego koloru */
  background: linear-gradient(to bottom, 
    rgba(224, 224, 224, 0) 0%, 
    rgba(180, 185, 195, 1) 20%, 
    rgba(140, 145, 155, 1) 50%, 
    rgba(180, 185, 195, 1) 80%, 
    rgba(160, 160, 160, 0) 100%
  );
  
  /* Miękki, rozmyty cień dający efekt przestrzeni i "wtapiania" się w tło */
  box-shadow: 1px 0px 4px rgba(0, 0, 0, 0.12), 
              -1px 0px 2px rgba(255, 255, 255, 0.8); /* Jasny refleks z drugiej strony dla efektu 3D */
  
}

  /* WYKAZUJE */
  .showcase{background:var(--gray-bg);}
  .showcase-title{
    font-size:1.4rem; font-weight:800; color:var(--navy); margin-bottom:34px;
    letter-spacing:0.4px;
    position:relative; display:inline-block;
  }
  .showcase-title::before{
    content:""; position:absolute; left:0; bottom:-10px; width:60px; height:3px;
    background:var(--green); border-radius:2px;
  }
  
  .check-grid {
  /* Zmieniamy grid na kolumny */
  column-count: 3;
  column-gap: 60px; /* Odstęp między kolumnami (wcześniej gap) */
  column-rule: 1px solid #E2E7D0;
}

.check-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  
  /* Kluczowa właściwość: zapobiega rozrywaniu kafelka pomiędzy kolumnami */
  break-inside: avoid; 
  /* Dodajemy margines dolny zamiast wierszowego gap */
  margin-bottom: 16px; 
}

  .check-item svg{width:22px; height:22px; stroke:var(--green); fill:none; stroke-width:2.4; flex-shrink:0; margin-top:2px;}
  .check-item p{font-size:0.92rem; font-weight:700; color:var(--text);}
  .check-item.flag{align-items:center;}
  .check-item.flag .flag-icon{width:22px; height:15px; flex-shrink:0; border-radius:2px; overflow:hidden; box-shadow:0 0 0 1px rgba(0,0,0,0.1);}
  .check-item.flag .flag-icon div{height:50%;}
  .check-item.flag p{font-weight:700; color:var(--navy);}


  /* OPAKOWANIA + NORMY */
  .two-col{
    display:grid; grid-template-columns:0.8fr 1.5fr; gap:30px; align-items:start;
  }
  .card{
    background:var(--white); border-radius:var(--radius); padding:30px 15px;
    border:1px solid rgba(21,42,74,0.08); box-shadow:0 4px 18px rgba(21,42,74,0.05);
  }
  .card h3{font-size:1.15rem; color:var(--navy); font-weight:800; margin-bottom:16px; text-transform:uppercase;}
  .card h3.border{border-bottom:2px solid var(--navy); padding-bottom:10px; margin-bottom:22px;}
  .pack-row{display:flex; gap:14px; align-items:flex-end; margin:22px 0 18px; flex-wrap:wrap;}
  .pack-row .bottle .lbl{font-size:0.5rem;}
  

  /* Główny kontener tworzący 4 równe kolumny */
.pack-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 22px 0 18px;
}

/* Każda kolumna układa butelkę i napis pionowo, centrując je */
.pack-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
}

.pack-item .label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 10px; /* Odstęp między obrazkiem a tekstem */
}

.pack-item .bottle {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

  .card p.note{color:var(--muted); font-size:0.85rem; margin-top:10px;}
  .pl-flag{display:flex; align-items:center; gap:8px; margin-top:16px; font-size:0.8rem; font-weight:700; color:var(--navy); text-transform:uppercase;}
  .pl-flag .flag-icon{width:22px; height:15px; border-radius:2px; overflow:hidden; box-shadow:0 0 0 1px rgba(0,0,0,0.1);}
  .pl-flag .flag-icon div{height:50%;}

  .norms-grid{
    display:grid; grid-template-columns:1fr; gap:0;
  }
  .norm-row{
    display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:22px 26px;
    align-items:stretch; padding:0 0 12px; margin-bottom:12px;
    border-bottom:1px solid rgba(90,158,61,0.85);
  }
  .norm-row:last-child{margin-bottom:0; border-bottom:none;}
  .norm-item{
    display:flex; flex-direction:column; justify-content:flex-start;
    box-sizing:border-box; min-width:0; padding-right:14px; height:100%;
  }
  .norm-item:not(:nth-child(3n)):not(.wide){
    border-right:1px solid rgba(90,158,61,0.85);
  }
  .norm-item.wide{grid-column:span 2; padding-right:0;}
  .norm-header{
    display:grid; grid-template-columns:auto 1fr; gap:0 6px; align-items:start;
  }
  .norm-item .num{color:var(--green); font-weight:800; font-size:0.81rem; margin:0;}
  .norm-item .code{font-weight:800; color:var(--navy); font-size:0.81rem; margin:0; min-width:0;}
  .norm-item p.detail{font-size:0.82rem; font-weight:600; color:var(--navy-dark); line-height:1.5; margin-top:6px;}
  .norm-item.wide ul{margin-top:6px;}
  .norm-item.wide li{font-size:0.8rem; font-weight: 600; color:var(--navy-dark); display:inline; margin-right:1px;}
  .norm-item.wide li::before{content:"• "; color:var(--green); font-size: 1.25rem; font-weight:800;}
  .norm-item.wide .small{display:block; font-size:0.78rem; color:var(--muted); margin-top:6px;}

  .norm-allow {
    font-size:0.82rem; font-weight:600; color:var(--navy-dark); line-height:1.5; margin-top:6px;
  }

  /* FOOTER */
  footer{background:var(--navy-dark); color:#fff; padding:44px 0;}
  footer .foot-title{
    font-size:1.1rem; font-weight:800; letter-spacing:1px; margin-bottom:26px;
    text-transform:uppercase;

    position:relative; display:inline-block;
  }
  footer .foot-title::before{
    content:""; position:absolute; left:0; bottom:-10px; width:60px; height:3px;
    background:var(--green); border-radius:2px;
  }
  
  .contact-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:26px;}
  .contact-item{display:flex; align-items:flex-start; gap:14px;}
  .contact-item .avatar{
    width:44px; height:44px; border-radius:50%; background:rgba(255,255,255,0.08);
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
  }
  .contact-item .avatar svg{width:22px; height:22px; stroke:var(--green); fill:none; stroke-width:2;}
  .contact-item .name{font-weight:700; margin-bottom:6px;}
  .contact-item .line{display:flex; align-items:center; gap:8px; font-size:0.85rem; color:#c6d2e5; margin-top:3px;}
  .contact-item .line svg{width:14px; height:14px; stroke:#8fb4e8; fill:none; stroke-width:2; flex-shrink:0;}
  .contact-item .line a:hover{color:#fff;}

  /* MOBILE MENU OVERLAY */
  @media (max-width: 960px){
    nav{
      position:fixed; top:120px; left:0; right:0; bottom:0;
      background:var(--white); transform:translateX(100%);
      transition:transform .3s ease; z-index:40; overflow-y:auto;
    }
    nav.open{transform:translateX(0);}
    nav ul{flex-direction:column; padding:30px 24px; gap:0;}
    nav ul li{border-bottom:1px solid rgba(21,42,74,0.08);}
    nav ul li a{display:block; padding:16px 4px;}
    .nav-toggle{display:block;}
    .hero-inner{grid-template-columns:1fr;}
    .hero-copy h1{font-size:2.6rem;}
    .feature-grid{grid-template-columns:repeat(4,1fr); gap:10px;}
    .feature .label{font-size:0.62rem;}
    .app-grid{grid-template-columns:repeat(3,1fr);}
    .check-grid{grid-template-columns:repeat(2,1fr);}
    .two-col{grid-template-columns:1fr;}
    .norms-grid{grid-template-columns:repeat(2,1fr);}
    .contact-grid{grid-template-columns:1fr;}
  }
  @media (max-width: 600px){
    .hero-copy h1{font-size:2.1rem;}
    .hero-copy .sub{font-size:1.2rem;}
    .feature-grid{grid-template-columns:repeat(2,1fr);}
    .app-grid{grid-template-columns:repeat(2,1fr);}
    .check-grid{grid-template-columns:1fr;}
    .norms-grid{grid-template-columns:1fr;}
    .section{padding:46px 0;}
    .hero-visual{min-height:280px;}
    .hero-visual .photo-frame{min-height:280px;}
  }