/* ------- Bazowe ------- */
body {
  margin: 0;
  font-family: "Poppins", "Open Sans", sans-serif;
  background-color: #001935;
  color: #cfd7e3;
}
button {font-family: "Poppins", "Open Sans", sans-serif;}
strong {font-family: "Poppins", "Open Sans", sans-serif;
font-weight: 400; font-size: 1em}
h3 {font-family: "Poppins", "Open Sans", sans-serif;
font-weight: 500; font-size: 1.2em}
h1 {font-family: "Poppins", "Open Sans", sans-serif;
font-weight: 500; font-size: 1.5em}
/* wyłącz systemowe podświetlenia */
a, a:focus, a:active,
.hamburger, .hamburger:focus, .hamburger:active {
  -webkit-tap-highlight-color: transparent;
  outline: none;
  background: none;
  border: none;
  appearance: none;
  user-select: none;
  text-decoration: none;
  color: inherit;
}

/* ------- Pasek nawigacji ------- */
.nav {
  background-color: #001935;
  padding: 0 20px;
  position: relative;
  border-bottom:1px solid rgba(255,255,255,.08);
}

/* hamburger (pokazujemy tylko na mobile) */
.hamburger {
  display: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  padding: 15px 0;
}

/* ------- Menu ------- */
.menu {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;

  max-height: none;
  overflow: visible;
  transition: none;
}

.menu li { position: relative; }

/* linki */
.link {
  display: block;
  padding: 15px;
  font-weight: 500;
  color: #cfd7e3;
  font-size: 16px;
  line-height: 1;
  border-bottom: 2px solid transparent; /* zapobiega skakaniu */
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

/* Link SZUKAJ ma wyglądać jak każdy inny link w menu */
.search-toggle {
  display: inline-flex;
  align-items: center;
  /*gap: 6px;  odstęp między ikoną a tekstem */
  font-size: inherit;
  color: inherit;
  background: none;
  padding: 20px 15px;
  border-bottom: 2px solid transparent;
	transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.search-toggle {
 /* margin-left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: inherit;
  color: #cfd7e3;
  font-weight: 500;
 /* background-color: #2f3b51; /* od razu tło jak hover */
  padding: 15px 15px;
  /*border-radius: 12px;*/
  transition: background-color 0.25s, color 0.25s;
	border-bottom: 2px solid transparent;
}

.search-toggle:hover {
  background-color: #3f4b61; /* lekko jaśniejsze przy najechaniu */
}

.search-toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}



.link:hover {
  background-color: #2f3b51;
  color: #fff;
  border-bottom-color: #2f3b51;
}
.link:focus {
	border-bottom: 2px solid transparent;
}
.link.active {
  color: #fff;
  /*border-bottom-color: #00bfff;*/
}

/* ------- Pasek SZUKAJ pod menu (rozwijany) ------- */
.searchbar {
 /* background: #001f3f;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.25); */
  overflow: hidden;
  width: 250px;
	margin: auto;
  max-height: 0;        /* zwinięty */
  padding: 0px;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.searchbar.open {
  max-height: 40px;     /* wystarczy na input 40px */
  padding: 12px 20px;
}

.searchbar form { margin: 0; }

.searchbar input {
  height: 30px;
  font-size: 16px;
  padding: 8px 12px;
  border: none;
  border-radius: 10px;
  background: #2f3b51;
  color: #fff;
  transition: background-color 0.25s;
}

.searchbar input::placeholder { color: #99a7b7; }
.searchbar input:focus { outline: none; background: #2f3b51; }

/* ------- Mobile ------- */
@media (max-width: 768px) {
  .hamburger { display: block; }
  .search-toggle {
    margin-left: 0;
  }
    
  .menu {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;

    /* animowane rozwijanie menu */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .menu.active { max-height: 600px; } /* spokojnie starczy na kilka pozycji */

  .menu li {
    width: 100%;
    text-align: left;
  }

  /* Na urządzeniach mobilnych – usunięcie podkreślenia i animacji */
  .link {
    transition: none !important; /* Wyłączenie animacji */
    text-decoration: none !important; /* Wyłączenie podkreślenia */
  }

  .link::before {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: transparent; /* Brak koloru */
    transition: none !important; /* Wyłączenie animacji */
  }

  .link:hover::before,
  .link.active::before {
    width: 0 !important; /* Brak podkreślenia */
    left: 50%;
  }

  /* Na urządzeniach mobilnych – tło na hover */
  .link.active {
    background-color: #2f3b51;
    border-bottom-color: transparent;
  }

  /* pasek szukaj – lekko węższe boczne paddingi */
  .searchbar { padding-left: 15px; padding-right: 15px; }
  .searchbar.open { padding-left: 15px; padding-right: 15px; }
}


a.liprawa,
a.liprawa:visited {
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.42857 !important;
  text-decoration: none !important;
  color: #00B8FF !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  outline: none !important;
}

a.liprawa:hover,
a.liprawa:focus {
  text-decoration: none !important;
  color: #007BFF !important;
  outline: none !important;
}

a.liprawa:active {
  text-decoration: none !important;
  color: #007BFF !important;
  outline: none !important;
}



a.liprawad,
a.liprawad:visited {
  font-size: 1.5rem !important;
  font-weight: 400 !important;
  line-height: 1.6em !important;
  text-decoration: none !important;
  color: #00B8FF !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  outline: none !important;
}

a.liprawad:hover,
a.liprawad:focus {
  text-decoration: none !important;
  color: #007BFF !important;
  outline: none !important;
}

a.liprawad:active {
  text-decoration: none !important;
  color: #007BFF !important;
  outline: none !important;
}


/* Odstęp pod formularzem na linki typu „Zapomniałem hasła” */
.form-meta {
  margin-top: 10px;
}

.ls-loading,.ls-empty{ padding:10px 12px; opacity:.9 }
.ls-list{ list-style:none; margin:0; padding:0 }
.ls-item{ border-bottom:1px solid rgba(255,255,255,.07) }
.ls-item:last-child{ border-bottom:none }
.ls-link{ display:block; padding:10px 12px; text-decoration:none; color:inherit }
.ls-link:hover{ background:rgba(255,255,255,.06); border-radius:8px }
.ls-title{ color:#fff; font-weight:400; margin-bottom:4px }
.ls-meta{ font-size:.85rem; opacity:.9; margin-bottom:6px }
.ls-snippet{ font-size:.95rem; line-height:1.45 }
.ls-more a{ display:block; padding:10px 12px; text-align:center; color:#fff; text-decoration:none }
.ls-more a:hover{ background:rgba(255,255,255,.06); border-radius:8px }
mark{ background:rgba(255,221,87,.35); color:inherit; padding:0 2px; border-radius:3px }

.nav-search{ position:relative; }
.live-search{
  position:absolute; top:100%; left:0; right:0;
  z-index:1000;
  background:#122943; color:#a6aeb8;
  border-radius:12px; box-shadow:0 8px 22px rgba(0,0,0,.25);
  margin-top:6px; padding:8px; max-height:60vh; overflow:auto;
}
.live-search { pointer-events:auto; }
.nav-search--icon{ position:relative; }
.nav-search--icon .form-input{
  padding-left: 36px; /* miejsce na ikonkę */
}
.nav-search--icon .search-ico{
  position:absolute; left:10px; top:50%; transform:translateY(-50%);
  width:18px; height:18px;
  fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round;
  pointer-events:none; opacity:.9;
}
.nav-search--icon:focus-within .search-ico{ opacity:1; }
/* Live search: własny scrollbar */
.live-search{
  max-height:60vh;
  overflow:auto;

  /* Firefox */
  scrollbar-width: thin;               /* auto | thin | none */
  scrollbar-color: #2a4a6e transparent;/* kciuk | tło */
  overscroll-behavior: contain;        /* nie przewijaj body przy końcu listy */
}

/* WebKit (Chrome, Edge, Safari) */
.live-search::-webkit-scrollbar{
  width: 10px;                         /* grubość paska */
}
.live-search::-webkit-scrollbar-track{
  background: transparent;
  margin-block: 6px;                   /* oddech u góry/dole */
}
.live-search::-webkit-scrollbar-thumb{
  background: #2a4a6e;                 /* kolor kciuka */
  border-radius: 8px;
  border: 2px solid transparent;       /* „oddalenie” kciuka od krawędzi */
  background-clip: content-box;
}
.live-search::-webkit-scrollbar-thumb:hover{
  background: #3b6ea8;
  background-clip: content-box;
}
.live-search::-webkit-scrollbar-corner{
  background: transparent;
}

/* Na urządzeniach dotykowych – węższy */
@media (pointer: coarse){
  .live-search::-webkit-scrollbar{ width: 8px; }
  .live-search{ scrollbar-width: thin; }
}

/* Kontener z inputem */
.nav-search{ position: relative; z-index: 10; }

/* Sam dropdown z wynikami */
.live-search{
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  z-index: 2000;             /* nad menu */
  background:#122943; color:#a6aeb8;
  border-radius:12px;
  /*box-shadow:0 8px 22px rgba(0,0,0,.25);*/
  max-height:60vh; overflow:auto;
}

/* iOS/Android – pełna szerokość pod headerem */
@media (max-width: 768px){
  .live-search{
    position: fixed;
    top: var(--top-offset, 72px);  /* tyle masz headera */
    left: 8px; right: 8px;         /* małe marginesy */
    margin: 0;
    border-radius:12px;
    z-index: 3000;
    max-height: 70vh;
  }
}

/* Jeśli któryś przodek ucina overflow (często <li> w menu), wymuś widoczność */
.nav-search, .nav-search li{ overflow: visible !important; }

/* Scrollbar (jak wcześniej) */
.live-search{ scrollbar-width:thin; scrollbar-color:#2a4a6e transparent; overscroll-behavior:contain; }
.live-search::-webkit-scrollbar{ width:10px; }
.live-search::-webkit-scrollbar-track{ background:transparent; margin-block:6px; }
.live-search::-webkit-scrollbar-thumb{ background:#2a4a6e; border-radius:8px; border:2px solid transparent; background-clip:content-box; }
.live-search::-webkit-scrollbar-thumb:hover{ background:#3b6ea8; background-clip:content-box; }

/* Na wszelki wypadek – hidden zawsze chowa */
.live-search[hidden]{ display:none !important; }
.nav-search{ position:relative; z-index:10; }
.live-search{
  position:absolute; top:calc(100% + 6px); left:0; right:0;
  z-index:2000; background:#122943; color:#a6aeb8;
  border-radius:12px; box-shadow:0 8px 22px rgba(0,0,0,.25);
  max-height:60vh; overflow:auto;
}
.nav-search, .nav-search li{ overflow:visible !important; }

/* mobile: pełna szerokość pod headerem */
@media (max-width: 768px){
  .live-search{
    position:fixed; top:var(--top-offset,72px); left:8px; right:8px;
    max-height:70vh; z-index:3000;
  }
}
.live-search[hidden]{ display:none !important; }
.nav-search{ position:relative; z-index:10; }
.live-search{
/* to białe tło  background:#FFF; color:#a6aeb8; */
  background:#122943; color:#a6aeb8;
  border-radius:12px; box-shadow:0 8px 22px rgba(0,0,0,.25);
  max-height:60vh; overflow:auto;
  /* scrollbar jak lubisz */
  scrollbar-width:thin; scrollbar-color:#2a4a6e transparent;
}
.live-search[hidden]{ display:none !important; }

/* upewnij się, że rodzice nie ucinają dropdownu */
.nav-search, .nav-search li{ overflow:visible !important; }

.nav-item--search { margin-left:20px; }

@media (max-width:768px){
  .nav-item--search { margin-left:0; }
}
.ls-badge{display:inline-block;margin-left:6px;padding:1px 6px;font-size:.75rem;border-radius:999px;background:#2a4a6e;color:#fff}
.strona-button {
    background-color: #4CAF50;  /* Zielony */
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin-top: 5px;
    cursor: pointer;
    border-radius: 5px;
}

.strona-button:hover {
    background-color: #45a049;  /* Jaśniejszy zielony po najechaniu */
}
.ls-title a {
    color: #4CAF50;  /* Zielony kolor dla linku */
    text-decoration: none;
    font-weight: bold;
}
.link {
  text-decoration: none;
  position: relative;
  transition: 0.4s;
}

.link::before {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #00bfff;
  transition: all 0.4s;
}

.link:hover::before,
.link.active::before {
  width: 100%;
  left: 0;
}
