:root {
  --brand-bg: #ffffff;
  --brand-text: #121212;
  --brand-green: #198754;
  --brand-green-600: #157347;
  --brand-green-50: #e9f7ef;
  --brand-gray: #6c757d;
  --ring: 0 0 0 .25rem rgba(25,135,84,.25);
}


html { scroll-behavior: smooth; }
body.bg-pattern {
  background-image: url('img/pw_pattern.png');
  background-size: auto;
  background-repeat: repeat;
}

.navbar {
  background: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
  position: relative;
  z-index: 1055;
}

.navbar .navbar-brand img { border-radius: 12px; }
.navbar .nav-link { font-weight: 500; }

.btn-gradient {
  background: linear-gradient(180deg, var(--brand-green) 0%, var(--brand-green-600) 100%);
  color: #fff;
  border: 0;
}
.btn-gradient:hover { filter: brightness(1.06); }
.btn { border-radius: 14px; transition: transform .2s ease, box-shadow .2s ease; }
.btn:focus { box-shadow: var(--ring); }
.btn:hover { transform: translateY(-1px); }

.badge-soft {
  background: var(--brand-green-50);
  color: var(--brand-green-600);
  border-radius: 9999px;
  padding: .25rem .5rem;
}

.tabelki {
  background: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
}
.tabelki .cyfry {
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}


footer .bottom-style {
  background: #0f2a1b;
  color: #e9f7ef;
  box-shadow: 0 -4px 12px rgba(0,0,0,.05);
  padding: 1.5rem 0;
}
footer a { color: #cdeed5; text-decoration: none; }
footer a:hover { text-decoration: underline; }


.spinner-wrapper {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.85);
  z-index: 2000;
}


@media (max-width: 991.98px) {
  .navbar-collapse {
    position: fixed;
    top: 74px;
    right: 0;
    width: 280px;
    min-height: 250px;
    background-color: #fff;
    box-shadow: -3px 0 15px rgba(0,0,0,0.25);
    opacity: 0;
    z-index: 1056;
    padding: 1.5rem 1rem;
    overflow-y: auto;
    pointer-events: none;
  }

  .navbar-collapse.show {
    opacity: 1;
    pointer-events: auto;
  }
}



  .menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    z-index: 1050;
    transition: opacity 0.15s ease;
  }

  .menu-overlay.active {
    opacity: 0.5;
    visibility: visible;
  }
}


@media (min-width: 992px) {
  .navbar-nav .nav-link {
    position: relative;
    color: #0b1d12;
    font-weight: 500;
    transition: color 0.2s ease, background-color 0.25s ease;
    padding: 0.75rem 1rem;
    border-radius: 0.35rem;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:focus {
    background-color: rgba(25, 135, 84, 0.15);
    color: #157347;
  }

  .navbar-nav .nav-link.active {
    color: #157347 !important;
    background-color: rgba(25,135,84,0.18);
  }

  .navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform-origin: top;
  }

  .navbar-nav .dropdown-menu.show {
    opacity: 1;
    transform: scale(1);
  }

  .navbar-nav .dropdown-item:hover,
  .navbar-nav .dropdown-item:focus {
    background-color: rgba(25,135,84,0.12);
    color: #157347;
  }
}


.group-title {
  font-weight: 600;
  font-size: 1.25rem;
  color: #222;
  text-align: left;
  margin-left: 1rem;
  margin-top: 2rem;
}

.herby {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: start;
  gap: 1rem;
  text-align: center;
}

.herby div {
  flex: 0 1 8%;
  min-width: 90px;
}

.herby img {
  max-width: 85px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 5px rgba(0,0,0,.15));
  transition: transform .2s ease, filter .2s ease;
}

.herby img:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 8px rgba(0,0,0,.3));
}

.herby p {
  margin-top: .4rem;
  font-size: .85rem;
  color: #333;
}


#backToTop {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

#backToTop:hover {
  transform: translateY(0) scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}


footer {
  background-color: #082b1e;
  color: #fff;
  font-size: 0.9rem;
}

footer .navbar {
  width: 100%;
  display: block;
  padding: 0;
  margin: 0;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.footer-content h6 {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.footer-content a {
  color: #e6e6e6;
  text-decoration: none;
}

.footer-content a:hover {
  color: #00c37a;
  text-decoration: underline;
}

.footer-content i {
  color: #00c37a;
}

footer .text-muted {
  opacity: 0.6;
}

@media (max-width: 768px) {
  .footer-content {
      width: 237px;
      margin: 0 auto;
      display: block;
  }
}

#backToTop {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
}


.cl-white {
  color: #ffffff !important;
}