:root {
  /* zmienie nowy tech */
  /* ZMIANA TLA W NOTATNIKU */
  --pageBg: #f4f4f4;
  --bgSoft: #eef4df;
  --surface: #ffffff;
  --surfaceSolid: #ffffff;
  --surfaceAlt: #f8fbf1;
  --textMain: #1c241d;
  --textMuted: #556055;
  --textSoft: #6d776a;
  --mainGreen: #1d5a2a;
  --deepGreen: #123c1b;
  --softGreen: #2d6f38;
  --accent: #93c33e;
  --accentStrong: #7daa26;
  --accentSoft: #dcebb3;
  --gold: #d9b762;
  --doliwa: #d4b15a;
  --korsak: #78806f;
  --krzywda: #d66c55;
  --line: rgba(29, 90, 42, 0.12);
  --lineHeavy: rgba(29, 90, 42, 0.2);
  --shadowLow: 0 6px 18px rgba(17, 28, 14, 0.08);
  --shadowMid: 0 12px 26px rgba(17, 28, 14, 0.12);
  --shadowBig: 0 18px 40px rgba(17, 28, 14, 0.15);
  --radiusSm: 4px;
  --radiusMd: 6px;
  --radiusLg: 8px;
  --radiusXL: 12px;
  --siteWidth: 1120px;
  --gapXs: 8px;
  --gapSm: 12px;
  --gapMd: 16px;
  --gapLg: 24px;
  --gapXl: 32px;
  --gap2xl: 48px;
  --fast: 0.2s ease;
  --base: 0.3s ease;
  --slow: 0.45s cubic-bezier(0.22, 1, 0.36, 1); /* do ogarniecia */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--textMain);
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 12% -8%,
      rgba(147, 195, 62, 0.14),
      transparent 28%
    ),
    radial-gradient(circle at 88% 8%, rgba(29, 90, 42, 0.08), transparent 24%),
    linear-gradient(180deg, var(--pageBg) 0%, #f6f7f1 100%);
}

img,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  background: rgba(147, 195, 62, 0.28);
  color: var(--deepGreen);
}

.container {
  width: min(var(--siteWidth), calc(100% - 32px));
  margin: 0 auto;
}

#loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 6px solid rgba(29, 90, 42, 0.12);
  border-top: 6px solid var(--softGreen);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.topbar {
  background: linear-gradient(
    90deg,
    var(--deepGreen),
    #213820 70%,
    #30441e 100%
  );
  color: #ffffff;
  padding: 6px 0;
  font-size: 0.92rem;
  box-shadow: 0 4px 12px rgba(8, 18, 8, 0.12);
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--gapSm);
  flex-wrap: wrap;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  flex-wrap: wrap;
}

.topbar a {
  color: #eff8cf;
  text-decoration: none;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.topbar a:hover,
.topbar a:focus-visible {
  color: #ffffff;
  outline: none;
}

.topbar i {
  color: var(--accentSoft);
  font-size: 1.05rem;
}

.topbar-login {
  padding: 0;
  min-height: 44px;
  border-radius: 0;
  background: transparent;
  color: #eff8cf !important;
  box-shadow: none;
  font-weight: 700;
}

.topbar-login:hover,
.topbar-login:focus-visible {
  background: transparent;
  color: #ffffff !important;
}

.navbar {
  position: relative;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid rgba(29, 90, 42, 0.1);
  box-shadow: 0 6px 18px rgba(24, 35, 18, 0.06);
}

body.header-scrolled .navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  animation: headerReveal 0.28s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--gapMd);
  padding-block: 10px;
}
/* header suwanie dziala*/
/* .navbar { position: sticky; } */
/* stara wersja ^^ */
@keyframes headerReveal {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.navbar-brand img {
  width: 62px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 18px rgba(18, 60, 27, 0.16));
}

.navbar-brand span,
.logo {
  font-weight: 700;
  font-size: 1.18rem;
  line-height: 1.15;
  color: var(--deepGreen);
  letter-spacing: -0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  transition:
    max-height var(--slow),
    opacity var(--base);
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: rgba(28, 36, 29, 0.9);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 9px 12px;
  border-radius: var(--radiusSm);
  transition:
    background-color var(--fast),
    color var(--fast),
    transform var(--fast);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* podpisz co to robi */
.nav-links > li > a:hover,
.nav-links > li > a:focus-visible,
.nav-links .dropdown:hover > a,
.nav-links .dropdown:focus-within > a,
.nav-links .dropdown.open > a {
  background: rgba(147, 195, 62, 0.16);
  color: var(--deepGreen);
  outline: none;
}

.nav-links .dropdown > a {
  gap: 10px;
}

.nav-links .dropdown > a::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform var(--base);
}

.nav-links .dropdown:hover > a::after,
.nav-links .dropdown:focus-within > a::after,
.nav-links .dropdown.open > a::after {
  transform: translateY(2px) rotate(-135deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  list-style: none;
  padding: 10px;
  border-radius: var(--radiusMd);
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadowMid);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity var(--base),
    visibility var(--base),
    transform var(--base);
  z-index: 1000;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  width: 100%;
  justify-content: flex-start;
  padding: 12px 14px;
  border-radius: var(--radiusSm);
  color: rgba(28, 36, 29, 0.88);
  font-weight: 600;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: rgba(147, 195, 62, 0.14);
  color: var(--deepGreen);
  transform: translateX(3px);
  outline: none;
}

.nav-links .dropdown:hover > .dropdown-menu,
.nav-links .dropdown:focus-within > .dropdown-menu,
.nav-links .dropdown.open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.burger span {
  display: block;
  height: 3px;
  background: var(--deepGreen);
  border-radius: 999px;
  transition:
    transform var(--base),
    opacity var(--base);
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* hero w stylu :skull: */
.hero {
  background-image: url("../../public/img/hero2.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  min-height: min(82svh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: clip;
  padding: clamp(56px, 8vw, 92px) 0;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero::before {
  background:
    linear-gradient(180deg, rgba(12, 24, 12, 0.18), rgba(12, 24, 12, 0.48)),
    radial-gradient(circle at center, rgba(147, 195, 62, 0.1), transparent 48%);
}

.hero::after {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(12, 24, 12, 0.44) 100%
  );
}

.home-page .hero::before {
  background: linear-gradient(
    180deg,
    rgba(12, 24, 12, 0.08),
    rgba(12, 24, 12, 0.22)
  );
}

.home-page .hero::after {
  background: linear-gradient(
    180deg,
    rgba(12, 24, 12, 0.04),
    rgba(12, 24, 12, 0.18)
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: clamp(24px, 5vw, 40px);
  border-radius: var(--radiusLg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 20, 11, 0.34);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.home-page .hero-content {
  width: min(1240px, 100%);
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.home-page .hero h1 {
  white-space: nowrap;
  font-size: clamp(2rem, 4.6vw, 3.55rem);
}

.home-page .hero p {
  font-size: clamp(1rem, 2vw, 1.28rem);
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.08;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: clamp(1rem, 3.4vw, 1.32rem);
  max-width: 42ch;
  margin: 0 auto 24px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.btn {
  background: linear-gradient(180deg, #9ed246, #81b229);
  color: #ffffff;
  padding: 11px 24px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(72, 99, 17, 0.16);
  transition:
    transform var(--fast),
    background var(--fast),
    /* zapytaj chata czemu to sie swieci */ box-shadow var(--fast);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.btn:hover,
.btn:focus-visible {
  background: linear-gradient(180deg, #92c73d, #769f23);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(72, 99, 17, 0.22);
  outline: none;
}

.news-content .btn,
.ekwipunek-content .btn,
.rodzice-content .btn,
.zastepy-content .btn,
.funkcyjni-content .btn {
  width: auto;
  min-width: 152px;
  align-self: center;
}

main section {
  margin: clamp(30px, 5vw, 48px) 0;
}

h2 {
  color: var(--deepGreen);
  margin-bottom: 15px;
}

.funkcyjni-container,
.zastepy-container,
.ekwipunek-container,
.rodzice-container,
.news-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: clamp(16px, 2.6vw, 26px);
  margin-top: 30px;
}

.funkcyjni-container {
  grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  justify-content: center;
}

.funkcyjni-card,
.zastepy-card,
.ekwipunek-card,
.rodzice-card,
.news-card {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadowLow);
  transition:
    transform var(--slow),
    box-shadow var(--slow),
    border-color var(--fast);
}

.funkcyjni-card {
  border-radius: var(--radiusLg);
  text-align: center;
  animation: cardFadeUp 420ms ease both;
  max-width: 320px;
  justify-self: center;
}

.zastepy-card {
  border-radius: var(--radiusMd);
}
/* Zimowisko ma tylko 3 rankingi */
#ranking-zastepow {
  padding: clamp(18px, 3vw, 28px);
  border-radius: var(--radiusLg);
  border: 1px solid rgba(29, 90, 42, 0.1);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.78),
    rgba(255, 255, 255, 0.6)
  );
  box-shadow: var(--shadowLow);
}

#ranking-zastepow h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

#ranking-zastepow h2::after {
  content: "";
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

#ranking-zastepow .zastepy-container {
  margin-top: 0;
}

#ranking-zastepow .zastepy-card {
  position: relative;
  overflow: hidden;
}

#ranking-zastepow .zastepy-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  opacity: 0.95;
}
/* zmien z ID na nazwy zastepow */
#ranking-zastepow .zastepy-card:nth-child(1)::before {
  background: linear-gradient(90deg, var(--doliwa), #ead89f);
}

#ranking-zastepow .zastepy-card:nth-child(2)::before {
  background: linear-gradient(90deg, var(--korsak), #b7b1a7);
}

#ranking-zastepow .zastepy-card:nth-child(3)::before {
  background: linear-gradient(90deg, var(--krzywda), #f1b29f);
}
/* ez */
#ranking-zastepow .zastepy-card::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(147, 195, 62, 0.12),
    transparent 68%
  );
  pointer-events: none;
}

#ranking-zastepow .zastepy-content {
  position: relative;
  z-index: 1;
}

#ranking-zastepow .zastepy-content h3 {
  letter-spacing: -0.02em;
}

#punktacja {
  padding: clamp(18px, 3vw, 28px);
  border-radius: var(--radiusLg);
  border: 1px solid rgba(29, 90, 42, 0.1);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.88),
    rgba(248, 251, 241, 0.9)
  );
  box-shadow: var(--shadowLow);
}

#punktacja h2 {
  margin-bottom: 16px;
}

#punktacja > div {
  border-radius: var(--radiusMd);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

/* Tablicje w punktacji btw */
#punktacja table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0;
  background: #ffffff;
}

#punktacja thead th {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--deepGreen);
  border-bottom: 1px solid rgba(29, 90, 42, 0.12);
}

#punktacja td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(29, 90, 42, 0.08);
  color: var(--textMuted);
  vertical-align: top;
}

#punktacja tbody tr:nth-child(even) {
  background: rgba(248, 251, 241, 0.78);
}

#punktacja tbody tr:hover {
  background: rgba(147, 195, 62, 0.1);
}

#punktacja tbody tr:last-child td {
  border-bottom: 0;
}

.ekwipunek-card,
.rodzice-card,
.news-card {
  border-radius: var(--radiusMd);
}

.funkcyjni-card:hover,
.zastepy-card:hover,
.ekwipunek-card:hover,
.rodzice-card:hover,
.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadowBig);
  border-color: var(--lineHeavy);
}

.funkcyjni-card img {
  width: 100%;
  height: clamp(220px, 34vw, 290px);
  object-fit: cover;
}

.zastepy-card img {
  width: 100%;
  height: clamp(170px, 28vw, 210px);
  object-fit: contain;
  background: rgba(248, 251, 241, 0.9);
  padding: 16px;
}

.ekwipunek-card img,
.rodzice-card img,
.news-card img {
  width: 100%;
  height: clamp(190px, 28vw, 220px);
  object-fit: cover;
}

.funkcyjni-content,
.zastepy-content,
.ekwipunek-content,
.rodzice-content,
.news-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
}

.ekwipunek-content,
.rodzice-content,
.news-content {
  text-align: left;
}

.funkcyjni-content h3,
.zastepy-content h3,
.ekwipunek-content h3,
.rodzice-content h3,
.news-content h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
  color: var(--deepGreen);
}

.funkcyjni-content h3 {
  color: var(--textMain);
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.ekwipunek-content p,
.rodzice-content p,
.news-content p {
  flex-grow: 1;
  margin-bottom: 12px;
  color: var(--textMuted);
}

.funkcyjni-content a:hover,
.zastepy-content a:hover {
  color: var(--mainGreen);
}

.funkcyjni-section h1 {
  color: var(--deepGreen);
  margin-bottom: 10px;
  font-size: clamp(1.95rem, 4.4vw, 2.4rem);
  text-align: center;
  letter-spacing: -0.03em;
}

.funkcyjni-section h2 {
  color: var(--textMuted);
  margin-bottom: 30px;
  font-size: clamp(1rem, 2.5vw, 1.18rem);
  text-align: center;
}

.funkcja {
  color: var(--mainGreen);
  font-weight: 700;
  font-size: 1rem;
  margin-top: 4px;
}

.data {
  color: var(--textSoft);
  font-size: 0.92rem;
  margin-top: 6px;
}

.role-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 7px 13px;
  border-radius: var(--radiusSm);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.role-badge.krzywda {
  background: linear-gradient(180deg, #ef6553, #d94836);
}

.role-badge.doliwa {
  background: linear-gradient(180deg, #42bbf0, #1794cd);
}

.role-badge.korsak {
  background: linear-gradient(180deg, #7b7b7b, #595959);
}

@keyframes cardFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* listy pakowania */
.packing-page {
  margin: clamp(24px, 4vw, 44px) auto;
}

.packing-hero {
  background: linear-gradient(
    135deg,
    rgba(29, 90, 42, 0.08),
    rgba(147, 195, 62, 0.18)
  );
  border: 1px solid var(--line);
  border-radius: var(--radiusLg);
  box-shadow: var(--shadowLow);
  padding: clamp(18px, 3vw, 26px);
  overflow: hidden;
}

.packing-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(29, 90, 42, 0.14);
  background: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  color: var(--deepGreen);
  font-weight: 800;
}

.packing-back:hover,
.packing-back:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(24, 35, 18, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

.packing-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2.8vw, 22px);
  margin-top: 14px;
  flex-wrap: wrap;
}

.packing-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: var(--deepGreen);
}

.packing-hero p {
  color: var(--textMuted);
  max-width: 66ch;
  font-size: 1.03rem;
}

.packing-hero-img {
  width: min(360px, 100%);
  height: 210px;
  object-fit: cover;
  border-radius: var(--radiusMd);
  border: 1px solid rgba(29, 90, 42, 0.12);
  box-shadow: var(--shadowMid);
}

.packing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(14px, 2.4vw, 22px);
  margin-top: clamp(16px, 3vw, 26px);
}

.packing-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radiusMd);
  box-shadow: var(--shadowLow);
  padding: 18px 18px 16px;
}

.packing-box h2 {
  font-size: 1.14rem;
  margin-bottom: 10px;
  color: var(--deepGreen);
}

.packing-list {
  padding-left: 18px;
  color: var(--textMuted);
}

.packing-list li {
  margin: 6px 0;
}

.packing-notes {
  margin-top: clamp(18px, 3vw, 26px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radiusLg);
  box-shadow: var(--shadowLow);
  padding: clamp(18px, 3vw, 26px);
}

.packing-note {
  color: var(--textMuted);
  margin-bottom: 12px;
}

.packing-note-list {
  padding-left: 18px;
  color: var(--textMuted);
}

.packing-note-list li {
  margin: 8px 0;
}

@media (max-width: 768px) {
  .packing-hero-img {
    height: 190px;
  }
}

.contact {
  background: #ffffff;
  padding: clamp(40px, 5vw, 56px) 0;
  text-align: center;
  border-radius: var(--radiusLg);
  border: 1px solid var(--line);
  box-shadow: var(--shadowLow);
}

.contact p {
  margin-bottom: 12px;
  font-size: 1.08rem;
  color: var(--textMuted);
}

.contact-info {
  margin-top: 20px;
}

.contact-info i {
  color: var(--accentStrong);
  margin-right: 8px;
  font-size: 1.15rem;
}

.contact-info a {
  color: var(--deepGreen);
  text-decoration: none;
  font-weight: 700;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.contact-info a:hover,
.contact-info a:focus-visible {
  color: var(--mainGreen);
  outline: none;
}

#o-nas {
  background: #ffffff;
  padding: clamp(24px, 4vw, 42px);
  border-radius: var(--radiusLg);
  border: 1px solid var(--line);
  box-shadow: var(--shadowLow);
  margin-top: 40px;
}

#o-nas h2 {
  font-size: clamp(1.8rem, 4.4vw, 2.2rem);
  color: var(--deepGreen);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

#o-nas h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 64%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 999px;
}

#o-nas p {
  font-size: 1.06rem;
  margin-bottom: 15px;
  color: var(--textMuted);
}

#o-nas ul,
.onas-list {
  list-style: none;
  padding-left: 0;
}

#o-nas li {
  margin-bottom: 12px;
  font-size: 1.04rem;
  position: relative;
  padding-left: 28px;
  color: var(--textMuted);
}

#o-nas strong {
  color: var(--deepGreen);
}

.onas-list li {
  margin-bottom: 14px;
  font-size: 1.04rem;
}

.onas-list i {
  color: var(--accentStrong);
  margin-right: 10px;
}

footer {
  background: linear-gradient(180deg, #162013 0%, #0f140d 100%);
  color: #ffffff;
  text-align: center;
  padding: 34px 0;
  line-height: 1.6;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

footer .logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}

footer .container img {
  height: 116px;
  width: auto;
  object-fit: contain;
  transition:
    transform var(--base),
    filter var(--base);
}

footer .container img:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.05);
}

footer .org {
  font-size: 1.22rem;
  font-weight: 700;
  margin-top: 10px;
}

footer .druzyna {
  font-size: 1.06rem;
  font-weight: 600;
}

footer .hufiec,
footer .choragiew {
  font-size: 0.94rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.84);
}

footer .copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.54);
  margin-top: 8px;
}

hr {
  border: 0;
  height: 1px;
  background-image: linear-gradient(
    to right,
    rgba(29, 90, 42, 0),
    rgba(29, 90, 42, 0.46),
    rgba(29, 90, 42, 0)
  );
}

iframe[src*="google.com/maps"] {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: var(--radiusMd);
  overflow: hidden;
  box-shadow: var(--shadowLow);
}

@media (min-width: 769px) {
  .hero {
    background-attachment: fixed;
  }
}

@media (max-width: 992px) {
  .navbar-brand span,
  .logo {
    font-size: 1.18rem;
  }

  .nav-links {
    gap: 6px;
  }

  .hero-content {
    width: min(680px, 100%);
  }
}

@media (max-width: 768px) {
  .container {
    width: min(var(--siteWidth), calc(100% - 24px));
  }

  .topbar {
    padding: 6px 0;
    font-size: 0.8rem;
  }

  .topbar-content {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    overflow: hidden;
  }

  .topbar-left,
  .topbar-right {
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .topbar-left {
    flex: 1 1 auto;
    min-width: 0;
  }

  .topbar-left span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-right {
    flex: 0 0 auto;
  }

  .topbar-right > span {
    display: none;
  }

  .topbar a {
    min-height: 32px;
  }

  .topbar-login {
    padding: 0;
    min-height: 32px;
    font-size: 0.8rem;
  }

  .navbar {
    border-bottom-left-radius: var(--radiusLg);
    border-bottom-right-radius: var(--radiusLg);
  }

  .navbar .container {
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-block: 12px 10px;
  }

  .navbar-brand {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .navbar-brand img {
    width: 54px;
  }

  .navbar-brand span,
  .logo {
    font-size: 1.05rem;
    max-width: 12ch;
  }

  .burger {
    display: flex;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    margin-top: 4px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: var(--radiusLg);
    background: #ffffff;
    box-shadow: 0 16px 28px rgba(16, 28, 14, 0.12);
  }

  .nav-links.show {
    max-height: 80svh;
    overflow-y: auto;
    padding: 8px;
    border-color: var(--line);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li + li {
    margin-top: 4px;
  }

  .nav-links a {
    width: 100%;
    justify-content: space-between;
    border-radius: var(--radiusMd);
    padding: 12px 14px;
  }

  .dropdown-menu {
    position: static;
    min-width: 100%;
    margin-top: 4px;
    padding: 0 0 0 12px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition:
      max-height var(--slow),
      padding-bottom var(--fast);
  }

  .dropdown-menu::before {
    display: none;
  }

  .dropdown.open > .dropdown-menu {
    max-height: 480px;
    padding-bottom: 8px;
  }

  .dropdown-menu li + li {
    margin-top: 4px;
  }

  .dropdown-menu a {
    border-radius: var(--radiusSm);
    background: rgba(147, 195, 62, 0.08);
    padding: 11px 13px;
    border: 1px solid rgba(29, 90, 42, 0.08);
  }

  .dropdown-menu a:hover,
  .dropdown-menu a:focus-visible {
    transform: none;
  }

  .hero {
    min-height: 70svh;
    background-position: center 24%;
    padding: 46px 0 36px;
  }

  .home-page .hero {
    min-height: 74svh;
    background-position: center 22%;
  }

  .hero-content {
    border-radius: var(--radiusLg);
    padding: 24px 20px;
  }

  .home-page .hero-content {
    width: min(100%, 760px);
    padding: 24px 20px;
  }
  /* jd*/
  .home-page .hero h1 {
    white-space: normal;
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.04rem;
    margin-bottom: 22px;
  }

  .hero .btn,
  .hero-content .btn {
    width: 100%;
  }

  main section {
    margin: 28px 0;
  }

  #o-nas {
    border-radius: var(--radiusLg);
  }

  .funkcyjni-container,
  .zastepy-container,
  .ekwipunek-container,
  .rodzice-container,
  .news-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .funkcyjni-card,
  .zastepy-card,
  .ekwipunek-card,
  .rodzice-card,
  .news-card {
    border-radius: var(--radiusLg);
  }

  .funkcyjni-card img {
    height: 230px;
  }

  .zastepy-card img,
  .ekwipunek-card img,
  .rodzice-card img,
  .news-card img {
    height: 210px;
  }

  .funkcyjni-content,
  .zastepy-content,
  .ekwipunek-content,
  .rodzice-content,
  .news-content {
    padding: 18px;
  }

  .contact {
    padding: 34px 18px;
    border-radius: var(--radiusLg);
  }

  footer {
    padding: 24px 0;
  }

  footer .container img {
    height: 88px;
  }

  footer .logos {
    gap: 18px;
  }

  footer .org {
    font-size: 1.02rem;
  }

  footer .druzyna {
    font-size: 0.94rem;
  }

  footer .hufiec,
  footer .choragiew {
    font-size: 0.84rem;
  }

  footer .copy {
    font-size: 0.74rem;
  }

  iframe[src*="google.com/maps"] {
    min-height: 300px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(var(--siteWidth), calc(100% - 20px));
  }

  .topbar {
    font-size: 0.84rem;
  }

  .navbar-brand img {
    width: 52px;
  }

  .navbar-brand span,
  .logo {
    font-size: 1.05rem;
  }

  .hero {
    min-height: 62svh;
    background-position: center 20%;
    padding: 34px 0 28px;
  }

  .home-page .hero {
    min-height: 68svh;
    background-position: center 18%;
  }

  .hero-content {
    padding: 22px 16px;
    border-radius: var(--radiusLg);
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero p {
    font-size: 0.98rem;
  }

  .btn {
    padding: 11px 18px;
    font-size: 0.96rem;
  }

  #o-nas h2 {
    font-size: 1.56rem;
  }

  #o-nas p,
  .onas-list li,
  .contact p {
    font-size: 0.96rem;
  }

  .funkcyjni-section h1 {
    font-size: 1.62rem;
  }

  .funkcyjni-section h2 {
    font-size: 0.98rem;
  }

  .funkcyjni-card img {
    height: 210px;
  }

  .zastepy-card img,
  .ekwipunek-card img,
  .rodzice-card img,
  .news-card img {
    height: 190px;
  }

  footer {
    padding: 18px 0;
  }

  footer .container img {
    height: 68px;
  }

  footer .logos {
    gap: 14px;
  }

  footer .org {
    font-size: 0.92rem;
  }

  footer .druzyna {
    font-size: 0.84rem;
  }

  footer .hufiec,
  footer .choragiew {
    font-size: 0.78rem;
  }

  footer .copy {
    font-size: 0.69rem;
  }

  iframe[src*="google.com/maps"] {
    min-height: 260px;
  }
}

@media (hover: none) {
  .btn:hover,
  .funkcyjni-card:hover,
  .zastepy-card:hover,
  .ekwipunek-card:hover,
  .rodzice-card:hover,
  .news-card:hover {
    transform: none;
    box-shadow: var(--shadowLow);
  }

  footer .container img:hover {
    transform: none;
    filter: none;
  }

  .nav-links > li > a:hover,
  .dropdown-menu a:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
