/**
 * KPKS - podstrony (aktualności, o nas, historia, władze, kontakt)
 * Spójne ze stroną główną: tło, typografia, karty, odstępy.
 */

/* ===== Wspólny layout podstron ===== */
.main-content.inner-page,
.main-content.about-page,
.main-content.subsite-page {
  overflow: visible;
  background: #f3f6fb;
  padding-top: 0 !important;
}

.main-content.contact-page,
.main-content.news-list-page,
.main-content.news-single-page {
  overflow: visible;
  background: #f3f6fb;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.main-content.about-page {
  background: #fff;
}

.contact-page .inner-hero,
.news-list-page .inner-hero,
.news-single-page .inner-hero {
  background: #f3f6fb;
  padding-bottom: clamp(0.65rem, 1.1vw, 0.9rem);
}

/* Zapas pod breadcrumbs, gdy --kpks-header-height jest chwilowo zaniżone. */
.news-single-page .inner-hero {
  padding-top: calc(var(--kpks-header-height, 200px) + clamp(0.65rem, 1.4vw, 1rem));
}

.contact-page .inner-page-content,
.news-list-page .inner-page-content,
.news-single-page .inner-page-content {
  background: transparent;
  overflow: visible;
}

.news-single-page .inner-page-content {
  padding-top: clamp(1rem, 2vw, 1.35rem);
  padding-bottom: clamp(2rem, 3.5vw, 2.75rem);
}

.contact-page .container,
.news-list-page .container,
.news-single-page .container {
  container-type: inline-size;
  container-name: kpks-inner;
}

.news-list-page .row,
.news-single-page .row {
  --bs-gutter-x: clamp(12px, 2cqw, 24px);
  --bs-gutter-y: clamp(14px, 2.5cqw, 28px);
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.contact-page .inner-page-content,
.news-list-page .inner-page-content,
.news-single-page .inner-page-content {
  padding: clamp(1.25rem, 2vw, 1.75rem) 0 clamp(2rem, 3.5vw, 2.75rem);
}

.about-page .inner-page-content {
  display: flex;
  flex-direction: column;
  gap: var(--about-gap);
  padding: clamp(1.25rem, 2vw, 1.75rem) 0 clamp(2rem, 3.5vw, 2.75rem);
}

.about-page .inner-page-content > section {
  padding: 0;
  margin: 0;
}

.about-page .inner-hero {
  padding-bottom: clamp(0.65rem, 1.1vw, 0.9rem);
}

.news-single-page .inner-hero-eyebrow {
  color: rgba(3, 16, 71, 0.78);
  font-weight: 700;
}

.news-single-page .inner-hero-eyebrow time {
  color: inherit;
}

.news-single-page .inner-hero-title {
  font-size: clamp(1.45rem, 3.2vw, 2.35rem);
  line-height: 1.12;
  text-transform: none;
  letter-spacing: 0.01em;
}

.about-page .about-stats {
  margin-top: 0;
  padding: 0 0 clamp(0.5rem, 1vw, 0.75rem);
  position: relative;
  z-index: 1;
  background: #fff;
}

body:not(.home) .page-wrapper,
body:not(.home) .ccm-page {
  background-color: #f3f6fb;
}

.inner-page-content {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3rem, 5vw, 4.5rem);
}

.inner-page-content--entry {
  padding-top: clamp(1.25rem, 2.5vw, 2rem);
}

.inner-page-content--with-hero {
  position: relative;
  z-index: 3;
  padding-top: clamp(0.75rem, 2vw, 1.5rem);
}

.kpks-page-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  min-width: 0;
}

.kpks-page-layout__main,
.kpks-page-layout__sidebar {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 992px) {
  .kpks-page-layout {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: 1.75rem 2rem;
  }

  .kpks-page-layout__main,
  .kpks-page-layout__sidebar {
    margin-top: 0;
    padding-top: 0;
  }

  .kpks-page-layout__sidebar {
    position: sticky;
    top: calc(var(--kpks-header-height, 88px) + 1rem);
    align-self: start;
  }

  /* Pierwszy widget sidebara wyrównany do góry karty treści */
  .kpks-page-layout__sidebar .kpks-page-sidebar {
    margin-top: 0;
  }
}

.kpks-page-sidebar {
  display: grid;
  gap: 0.9rem;
}

.kpks-sidebar-widget {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(3, 16, 71, 0.1);
  box-shadow: 0 2px 12px rgba(3, 16, 71, 0.05);
}

.kpks-sidebar-widget__title,
.kpks-page-sidebar .widget-title {
  margin: 0 0 0.75rem;
  font-family: "Oswald", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--kpks-navy, #031047);
}

.kpks-sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.kpks-sidebar-menu a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  color: rgba(3, 16, 71, 0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
  transition: background 0.15s ease, color 0.15s ease;
}

.kpks-sidebar-menu a:hover,
.kpks-sidebar-menu .current-menu-item > a,
.kpks-sidebar-menu .current_page_item > a {
  background: rgba(3, 16, 71, 0.06);
  color: var(--kpks-navy, #031047);
}

.kpks-sidebar-menu .sub-menu {
  list-style: none;
  margin: 0.15rem 0 0.35rem;
  padding: 0 0 0 0.65rem;
  display: grid;
  gap: 0.15rem;
}

.kpks-sidebar-menu .sub-menu a {
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 0.65rem;
}

.kpks-sidebar-empty {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(3, 16, 71, 0.6);
}

.kpks-page-sidebar .widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kpks-page-sidebar .widget li {
  margin: 0;
}

.kpks-page-sidebar .widget a {
  color: rgba(3, 16, 71, 0.85);
  text-decoration: none;
}

/* Kontener - szerokość z layout.css (--kpks-content-max), bez dodatkowego ścieżenia */
.inner-page .container {
  container-type: inline-size;
  container-name: kpks-inner;
}

.inner-page .row {
  --bs-gutter-x: clamp(12px, 2cqw, 24px);
  --bs-gutter-y: clamp(14px, 2.5cqw, 28px);
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* ===== Jasny hero (O nas, Historia - jak Władze) ===== */
.inner-hero {
  position: relative;
  margin-top: calc(-1 * var(--kpks-header-height, 200px));
  padding: calc(var(--kpks-header-height, 200px) + clamp(0.35rem, 1vw, 0.65rem)) 0 clamp(1rem, 2vw, 1.35rem);
  background: #fff;
  color: var(--kpks-navy, #031047);
}

.inner-hero-inner {
  position: relative;
  z-index: 1;
}

.inner-hero .kpks-breadcrumbs {
  margin-bottom: 1rem;
}

.inner-hero .kpks-breadcrumbs-item {
  color: var(--kpks-gray, #6c757d);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inner-hero .kpks-breadcrumbs-item a {
  color: var(--kpks-primary, #008bd2);
}

.inner-hero .kpks-breadcrumbs-item a:hover {
  color: var(--kpks-navy, #031047);
}

.inner-hero .kpks-breadcrumbs-item.is-current span {
  color: var(--kpks-navy, #031047);
}

.inner-hero-eyebrow {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-family: "Oswald", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kpks-gray, #6c757d);
}

.inner-hero-title {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--kpks-navy, #031047);
}

.inner-hero-lead {
  margin: 0;
  width: 100%;
  max-width: none;
  font-family: "Inter", sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.65;
  color: var(--kpks-gray, #6c757d);
}

/* ===== Hero podstrony (jak sekcja kafelków na stronie głównej) ===== */
.page-hero {
  position: relative;
  margin-top: calc(-1 * var(--kpks-header-height, 200px));
  padding: calc(var(--kpks-header-height, 200px) + 0.5rem) 0 clamp(3.75rem, 6vw, 5rem);
  margin-bottom: -3.25rem;
  min-height: clamp(360px, 46vh, 500px);
  isolation: isolate;
  z-index: 2;
  color: #fff;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background-color: #0a4d8c;
  background-image: url("../images/sections-showcase-bg.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  clip-path: polygon(
    0 0,
    100% 0,
    100% 81%,
    62% 90%,
    28% 97%,
    0 87%
  );
  box-shadow: 0 28px 60px rgba(11, 37, 69, 0.12);
}

.page-hero-fx {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  clip-path: polygon(
    0 0,
    100% 0,
    100% 81%,
    62% 90%,
    28% 97%,
    0 87%
  );
}

.page-hero-fx-lines {
  position: absolute;
  inset: -12% -10%;
  background-image: url("../images/sections-showcase-lines.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform-origin: 58% 40%;
  will-change: transform, opacity;
}

.page-hero-fx-lines--outer {
  animation: kpksLinesBreatheOut 8s ease-in-out infinite;
}

.page-hero-fx-lines--inner {
  mix-blend-mode: screen;
  animation: kpksLinesBreatheIn 8s ease-in-out infinite;
}

.page-hero-fx-light {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0;
  will-change: opacity, transform;
}

.page-hero-fx-light--a {
  width: min(340px, 38vw);
  height: min(240px, 26vw);
  top: 14%;
  left: 48%;
  background: radial-gradient(
    ellipse 70% 80% at 50% 50%,
    rgba(255, 255, 255, 0.32) 0%,
    rgba(180, 230, 255, 0.12) 42%,
    transparent 72%
  );
  animation: kpksLightGlimmer 7.5s ease-in-out infinite;
}

.page-hero-fx-light--b {
  width: min(280px, 32vw);
  height: min(200px, 22vw);
  top: 38%;
  left: 22%;
  background: radial-gradient(
    ellipse 75% 70% at 50% 50%,
    rgba(255, 255, 255, 0.26) 0%,
    rgba(140, 210, 255, 0.1) 45%,
    transparent 70%
  );
  animation: kpksLightGlimmer 8.5s ease-in-out infinite;
  animation-delay: 2.1s;
}

.page-hero-fx-light--c {
  width: min(260px, 30vw);
  height: min(190px, 20vw);
  top: 22%;
  left: 68%;
  background: radial-gradient(
    ellipse 80% 75% at 50% 50%,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(160, 220, 255, 0.11) 40%,
    transparent 68%
  );
  animation: kpksLightGlimmer 8s ease-in-out infinite;
  animation-delay: 4.3s;
}

@keyframes kpksLinesBreatheOut {
  0%,
  100% {
    transform: scale(0.972);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.042);
    opacity: 0.9;
  }
}

@keyframes kpksLinesBreatheIn {
  0%,
  100% {
    transform: scale(1.038);
    opacity: 0.38;
  }
  50% {
    transform: scale(0.978);
    opacity: 0.18;
  }
}

@keyframes kpksLightGlimmer {
  0%,
  100%,
  62% {
    opacity: 0;
    transform: scale(0.88);
  }
  28% {
    opacity: 0.58;
    transform: scale(1);
  }
  44% {
    opacity: 0.12;
    transform: scale(1.1);
  }
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-hero .kpks-breadcrumbs {
  margin-bottom: 1.1rem;
}

.page-hero .kpks-breadcrumbs-item {
  color: rgba(255, 255, 255, 0.72);
}

.page-hero .kpks-breadcrumbs-item:not(.is-current)::after {
  color: rgba(255, 255, 255, 0.35);
}

.page-hero .kpks-breadcrumbs-item a {
  color: rgba(255, 255, 255, 0.92);
}

.page-hero .kpks-breadcrumbs-item a:hover {
  color: var(--kpks-secondary, #ffd000);
}

.page-hero .kpks-breadcrumbs-item.is-current span {
  color: #fff;
}

.page-hero-eyebrow {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.85rem;
}

.page-hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 3px;
  margin-right: 0.65rem;
  vertical-align: middle;
  border-radius: 2px;
  background: var(--kpks-secondary, #ffd000);
}

.wladze-page {
  overflow: visible;
}

.page-hero-title {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  max-width: 920px;
  color: #fff;
}

.page-hero-lead {
  font-family: "Inter", sans-serif;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.7;
  width: 100%;
  max-width: none;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.page-hero--compact {
  min-height: clamp(320px, 40vh, 440px);
  padding-bottom: clamp(3rem, 5vw, 4.25rem);
  margin-bottom: -2.75rem;
}

/* ===== Aktualności - lista ===== */
.news-list-page .news-list-grid {
  width: 100%;
  max-width: none;
  margin: 0;
  --bs-gutter-x: clamp(1rem, 2.2vw, 1.75rem);
  --bs-gutter-y: clamp(1.15rem, 2.4vw, 1.85rem);
}

.news-list-page .news-card {
  border-radius: 22px;
  border: none;
  box-shadow: 0 2px 16px rgba(3, 16, 71, 0.05);
  transition:
    transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.news-list-page .news-card:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: 0 16px 40px rgba(3, 16, 71, 0.1);
}

.news-list-page .news-empty {
  max-width: 640px;
  margin: 0 auto;
  border-radius: 16px;
}

/* ===== Dokumenty / nabór / sponsorzy (podstrony sekcji) ===== */
.kpks-docs-intro {
  margin: 0 0 1.15rem;
  color: rgba(3, 16, 71, 0.78);
  line-height: 1.55;
}

.kpks-docs-note {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: rgba(3, 16, 71, 0.55);
}

.kpks-docs-empty {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(3, 16, 71, 0.04);
  color: rgba(3, 16, 71, 0.65);
}

.kpks-doc-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.kpks-doc-link {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.95rem 1.1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(3, 16, 71, 0.1);
  box-shadow: 0 2px 12px rgba(3, 16, 71, 0.05);
  color: var(--kpks-navy, #031047);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.kpks-doc-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(3, 16, 71, 0.1);
  border-color: rgba(3, 16, 71, 0.18);
  color: var(--kpks-navy, #031047);
}

.kpks-doc-link__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(185, 28, 28, 0.08);
  color: #b91c1c;
  font-size: 1.2rem;
}

.kpks-doc-link__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.kpks-doc-link__title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
}

.kpks-doc-link__meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(3, 16, 71, 0.5);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.kpks-doc-link__action {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(3, 16, 71, 0.06);
  color: rgba(3, 16, 71, 0.7);
  font-size: 0.85rem;
}

a.kpks-doc-link:hover .kpks-doc-link__action {
  background: rgba(3, 16, 71, 0.1);
  color: var(--kpks-navy, #031047);
}

.kpks-nabor-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin: 0 0 1rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: rgba(3, 16, 71, 0.06);
  color: var(--kpks-navy, #031047);
}

.kpks-nabor-badge strong {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: #ffd000;
  color: #031047;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kpks-nabor-alt {
  margin-top: 1rem;
  color: rgba(3, 16, 71, 0.7);
}

/* ===== Nowy nabór (landing) ===== */
.kpks-nabor-page .page-content-card.kpks-nabor {
  padding: 0;
  overflow: hidden;
}

.kpks-nabor-hero {
  position: relative;
  margin: 0 0 0.5rem;
}

.kpks-nabor-hero__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vh, 420px);
  object-fit: cover;
  object-position: center;
}

.kpks-nabor-hero__overlay {
  padding: clamp(1.1rem, 3vw, 1.75rem) clamp(1.1rem, 3vw, 1.85rem) clamp(1.35rem, 3vw, 1.9rem);
  background: linear-gradient(180deg, rgba(248, 249, 250, 0.97) 0%, #fff 100%);
}

.kpks-nabor-hero__lead {
  margin: 0 0 1.15rem;
  max-width: 42rem;
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.55;
  color: rgba(3, 16, 71, 0.82);
}

.kpks-nabor-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
}

.kpks-nabor-actions .btn-section {
  margin-top: 0;
}

.kpks-nabor-link {
  font-weight: 600;
  color: var(--kpks-primary, #008bd2);
  text-decoration: none;
}

.kpks-nabor-link:hover {
  text-decoration: underline;
  color: var(--kpks-navy, #031047);
}

.kpks-nabor-link--on-dark {
  color: #ffd000;
}

.kpks-nabor-link--on-dark:hover {
  color: #fff;
}

.kpks-nabor-section {
  padding: clamp(1.5rem, 3.5vw, 2.35rem) clamp(1.1rem, 3vw, 1.85rem);
}

.kpks-nabor-section + .kpks-nabor-section {
  border-top: 1px solid rgba(3, 16, 71, 0.08);
}

.kpks-nabor-section h2 {
  margin: 0 0 0.75rem;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--kpks-navy, #031047);
}

.kpks-nabor-section h3 {
  margin: 1.15rem 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--kpks-navy, #031047);
}

.kpks-nabor-section p {
  margin: 0 0 0.85rem;
  line-height: 1.6;
  color: rgba(3, 16, 71, 0.8);
}

.kpks-nabor-lead {
  max-width: 40rem;
  margin-bottom: 1.25rem !important;
}

.kpks-nabor-split {
  display: grid;
  gap: clamp(1.15rem, 3vw, 1.85rem);
  align-items: center;
}

@media (min-width: 860px) {
  .kpks-nabor-split {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .kpks-nabor-split--reverse .kpks-nabor-split__text {
    order: 2;
  }

  .kpks-nabor-split--reverse .kpks-nabor-split__media {
    order: 1;
  }
}

.kpks-nabor-split__media {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(3, 16, 71, 0.1);
}

.kpks-nabor-split__media img {
  display: block;
  width: 100%;
  height: auto;
}

.kpks-nabor-split__media--poster {
  max-width: 280px;
  margin-inline: auto;
}

@media (min-width: 860px) {
  .kpks-nabor-split__media--poster {
    max-width: 320px;
    margin-inline: 0;
  }
}

.kpks-nabor-points,
.kpks-nabor-checklist,
.kpks-nabor-locations {
  list-style: none;
  margin: 0.75rem 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.kpks-nabor-points li,
.kpks-nabor-checklist li {
  position: relative;
  padding: 0.55rem 0.75rem 0.55rem 2.35rem;
  border-radius: 12px;
  background: rgba(3, 16, 71, 0.04);
  color: rgba(3, 16, 71, 0.85);
  line-height: 1.45;
}

.kpks-nabor-points li::before,
.kpks-nabor-checklist li::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 50%;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #ffd000;
  box-shadow: 0 0 0 3px rgba(255, 208, 0, 0.25);
}

.kpks-nabor-locations li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(3, 16, 71, 0.1);
  font-weight: 700;
  color: var(--kpks-navy, #031047);
}

.kpks-nabor-locations li i {
  color: var(--kpks-primary, #008bd2);
}

.kpks-nabor-benefits {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .kpks-nabor-benefits {
    grid-template-columns: 1fr 1fr;
  }
}

.kpks-nabor-benefit {
  padding: 1.05rem 1.1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(3, 16, 71, 0.1);
  box-shadow: 0 2px 12px rgba(3, 16, 71, 0.04);
}

.kpks-nabor-benefit__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.55rem;
  border-radius: 12px;
  background: rgba(255, 208, 0, 0.2);
  color: var(--kpks-navy, #031047);
  font-size: 1.05rem;
}

.kpks-nabor-benefit h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.kpks-nabor-benefit p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(3, 16, 71, 0.72);
}

.kpks-nabor-flyers {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  max-width: 560px;
}

@media (min-width: 640px) {
  .kpks-nabor-flyers {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }
}

.kpks-nabor-flyer {
  display: block;
  text-decoration: none;
  color: var(--kpks-navy, #031047);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(3, 16, 71, 0.1);
  box-shadow: 0 4px 18px rgba(3, 16, 71, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpks-nabor-flyer:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(3, 16, 71, 0.12);
  color: var(--kpks-navy, #031047);
}

.kpks-nabor-flyer img {
  display: block;
  width: 100%;
  height: auto;
}

.kpks-nabor-flyer span {
  display: block;
  padding: 0.65rem 0.85rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(3, 16, 71, 0.04);
  text-align: center;
}

.kpks-nabor-cta-band {
  margin: 0;
  padding: clamp(1.6rem, 4vw, 2.4rem) clamp(1.1rem, 3vw, 1.85rem);
  background: linear-gradient(135deg, #031047 0%, #0a2a6e 55%, #008bd2 140%);
  color: #fff;
}

.kpks-nabor-cta-band__inner {
  max-width: 40rem;
}

.kpks-nabor-cta-band h2 {
  margin: 0 0 0.55rem;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
}

.kpks-nabor-cta-band p {
  margin: 0 0 1.15rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

/* ===== Galeria - albumy Google ===== */
.kpks-albums-intro {
  margin: 0 0 1.25rem;
  max-width: 42rem;
  line-height: 1.55;
  color: rgba(3, 16, 71, 0.78);
}

.kpks-albums-filters {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.35rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(3, 16, 71, 0.035);
  border: 1px solid rgba(3, 16, 71, 0.08);
}

.kpks-albums-filters__group {
  display: grid;
  gap: 0.45rem;
}

.kpks-albums-filters__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(3, 16, 71, 0.55);
}

.kpks-albums-filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.kpks-albums-chip {
  appearance: none;
  border: 1px solid rgba(3, 16, 71, 0.14);
  background: #fff;
  color: var(--kpks-navy, #031047);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.kpks-albums-chip:hover {
  border-color: rgba(3, 16, 71, 0.28);
}

.kpks-albums-chip.is-active {
  background: var(--kpks-navy, #031047);
  border-color: var(--kpks-navy, #031047);
  color: #fff;
}

.kpks-albums-chip__count {
  display: inline-block;
  margin-left: 0.25rem;
  opacity: 0.75;
  font-size: 0.8em;
}

.kpks-albums-chip.is-active .kpks-albums-chip__count {
  opacity: 0.9;
}

.kpks-albums-empty {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(3, 16, 71, 0.04);
  color: rgba(3, 16, 71, 0.65);
}

.kpks-albums-empty--filter {
  margin-top: 0.75rem;
}

.kpks-albums-section {
  margin: 0 0 1.75rem;
}

.kpks-albums-section:last-child {
  margin-bottom: 0;
}

.kpks-albums-section__title {
  margin: 0 0 0.85rem;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--kpks-navy, #031047);
}

.kpks-albums-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

.kpks-albums-item[hidden] {
  display: none !important;
}

@media (min-width: 640px) {
  .kpks-albums-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.kpks-album-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 100%;
  padding: 0.95rem 1.05rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(3, 16, 71, 0.1);
  box-shadow: 0 2px 12px rgba(3, 16, 71, 0.05);
  color: var(--kpks-navy, #031047);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.kpks-album-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(3, 16, 71, 0.1);
  border-color: rgba(3, 16, 71, 0.18);
  color: var(--kpks-navy, #031047);
}

.kpks-album-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(26, 115, 232, 0.1);
  color: #1a73e8;
  font-size: 1.15rem;
}

.kpks-album-card--video .kpks-album-card__icon {
  background: rgba(185, 28, 28, 0.1);
  color: #b91c1c;
}

.kpks-album-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.kpks-album-card__date {
  display: inline-block;
  margin: 0 0 0.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--kpks-primary, #008bd2);
}

.kpks-album-card--video .kpks-album-card__date {
  color: #b91c1c;
}

.kpks-album-card__title {
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.35;
}

.kpks-album-card__meta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(3, 16, 71, 0.5);
}

.kpks-album-card__action {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(3, 16, 71, 0.06);
  color: rgba(3, 16, 71, 0.65);
  font-size: 0.8rem;
}

a.kpks-album-card:hover .kpks-album-card__action {
  background: rgba(3, 16, 71, 0.1);
  color: var(--kpks-navy, #031047);
}

.kpks-grants {
  display: grid;
  gap: 1rem;
}

.kpks-grant-card {
  margin: 0;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(3, 16, 71, 0.1);
  box-shadow: 0 2px 14px rgba(3, 16, 71, 0.05);
}

.kpks-grant-card h3 {
  margin: 0 0 0.65rem;
  font-family: "Oswald", sans-serif;
  font-size: 1.15rem;
  color: var(--kpks-navy, #031047);
}

.kpks-grant-card ul {
  margin: 0.65rem 0 0;
  padding-left: 1.1rem;
}

.kpks-grant-note {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: rgba(3, 16, 71, 0.65);
}

/* ===== Sponsorzy / dofinansowania ===== */
.kpks-sponsors-intro {
  margin: 0 0 1.25rem;
  max-width: 42rem;
  line-height: 1.55;
  color: rgba(3, 16, 71, 0.78);
}

.kpks-sponsors-empty {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(3, 16, 71, 0.04);
  color: rgba(3, 16, 71, 0.65);
}

.kpks-sponsors-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin: 0 0 1.75rem;
  padding: 1.1rem 1rem;
  border-radius: 18px;
  background: rgba(3, 16, 71, 0.04);
  border: 1px solid rgba(3, 16, 71, 0.08);
}

.kpks-sponsors-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(100px, 20vw, 148px);
  height: 84px;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  /* Ciemne tło - białe logotypy (KLUB, województwo) są widoczne */
  background: linear-gradient(160deg, #031047 0%, #0a2a6e 100%);
  border: 1px solid rgba(3, 16, 71, 0.25);
  box-shadow: 0 4px 14px rgba(3, 16, 71, 0.18);
  text-decoration: none;
}

.kpks-sponsors-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.kpks-sponsors-programs {
  display: grid;
  gap: 1rem;
}

.kpks-sponsor-program {
  display: grid;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 1.2rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(3, 16, 71, 0.1);
  box-shadow: 0 2px 14px rgba(3, 16, 71, 0.05);
}

@media (min-width: 720px) {
  .kpks-sponsor-program {
    grid-template-columns: 140px 1fr;
    gap: 1.25rem;
  }
}

.kpks-sponsor-program__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 0.85rem;
  border-radius: 14px;
  background: linear-gradient(160deg, #031047 0%, #0a2a6e 100%);
  border: 1px solid rgba(3, 16, 71, 0.2);
}

.kpks-sponsor-program__logo img {
  max-width: 120px;
  max-height: 96px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.kpks-sponsor-program__year {
  display: inline-block;
  margin: 0 0 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: #ffd000;
  color: #031047;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kpks-sponsor-program__title {
  margin: 0 0 0.55rem;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--kpks-navy, #031047);
}

.kpks-sponsor-program__lead,
.kpks-sponsor-program__amount {
  margin: 0 0 0.55rem;
  line-height: 1.55;
  color: rgba(3, 16, 71, 0.8);
}

.kpks-sponsor-program__amount {
  font-weight: 700;
  color: var(--kpks-navy, #031047);
}

.kpks-sponsor-program__list {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.kpks-sponsor-program__list li {
  position: relative;
  padding: 0.55rem 0.75rem 0.55rem 2.2rem;
  border-radius: 12px;
  background: rgba(3, 16, 71, 0.04);
  color: rgba(3, 16, 71, 0.85);
  line-height: 1.45;
}

.kpks-sponsor-program__list li::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #ffd000;
  box-shadow: 0 0 0 3px rgba(255, 208, 0, 0.25);
}

/* ===== Treningi ===== */
.kpks-treningi-intro {
  margin: 0 0 1.25rem;
  max-width: 42rem;
  line-height: 1.55;
  color: rgba(3, 16, 71, 0.78);
}

.kpks-treningi-note {
  margin: 1.35rem 0 0;
  color: rgba(3, 16, 71, 0.7);
  line-height: 1.5;
}

.kpks-treningi-locations {
  display: grid;
  gap: 1.35rem;
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(3, 16, 71, 0.08);
}

.kpks-treningi-location {
  display: grid;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(3, 16, 71, 0.1);
  box-shadow: 0 2px 14px rgba(3, 16, 71, 0.05);
}

.kpks-treningi-location__name {
  margin: 0 0 0.55rem;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--kpks-navy, #031047);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.kpks-treningi-location__name i {
  color: var(--kpks-primary, #008bd2);
}

.kpks-treningi-location__address {
  margin: 0;
  font-style: normal;
  line-height: 1.55;
  color: rgba(3, 16, 71, 0.78);
}

.kpks-treningi-location__grafik {
  margin: 0;
}

.kpks-treningi-location__grafik a {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(3, 16, 71, 0.08);
  box-shadow: 0 4px 18px rgba(3, 16, 71, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpks-treningi-location__grafik a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(3, 16, 71, 0.12);
}

.kpks-treningi-location__grafik img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.kpks-treningi-location__grafik figcaption {
  margin-top: 0.45rem;
  font-size: 0.85rem;
  color: rgba(3, 16, 71, 0.55);
}

.kpks-treningi-calendar {
  margin: 0 0 1.75rem;
  padding: 0;
  border-top: 0;
}

.kpks-treningi-calendar__title {
  margin: 0 0 0.35rem;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--kpks-navy, #031047);
}

.kpks-treningi-calendar__lead {
  margin: 0 0 1rem;
  max-width: 40rem;
  line-height: 1.5;
  color: rgba(3, 16, 71, 0.7);
  font-size: 0.95rem;
}

.kpks-treningi-filters {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 0.85rem;
}

.kpks-treningi-filters__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.45rem;
}

.kpks-treningi-filters__label {
  min-width: 5.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(3, 16, 71, 0.55);
}

.kpks-treningi-filter {
  appearance: none;
  border: 1px solid rgba(3, 16, 71, 0.14);
  background: #fff;
  color: var(--kpks-navy, #031047);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.kpks-treningi-filter:hover {
  border-color: rgba(3, 16, 71, 0.28);
  background: rgba(3, 16, 71, 0.04);
}

.kpks-treningi-filter.is-active {
  background: var(--kpks-navy, #031047);
  border-color: var(--kpks-navy, #031047);
  color: #fff;
}

.kpks-treningi-calendar__count {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
  color: rgba(3, 16, 71, 0.55);
}

.kpks-treningi-calendar__empty {
  margin: 0 0 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(3, 16, 71, 0.04);
  color: rgba(3, 16, 71, 0.65);
}

.kpks-treningi-calendar__wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(3, 16, 71, 0.1);
  background: #fff;
}

.kpks-treningi-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
}

@media (min-width: 768px) {
  .kpks-treningi-table {
    min-width: 640px;
  }
}

.kpks-treningi-table th,
.kpks-treningi-table td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid rgba(3, 16, 71, 0.08);
  color: rgba(3, 16, 71, 0.85);
}

.kpks-treningi-table th {
  background: rgba(3, 16, 71, 0.04);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(3, 16, 71, 0.65);
  white-space: nowrap;
}

.kpks-treningi-sort {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.kpks-treningi-sort.is-active {
  color: var(--kpks-navy, #031047);
}

.kpks-treningi-sort__icon {
  font-size: 0.75rem;
  min-width: 0.75rem;
}

.kpks-treningi-table tr:last-child td {
  border-bottom: 0;
}

.kpks-treningi-table tbody tr:nth-child(even) td {
  background: rgba(3, 16, 71, 0.015);
}

.kpks-treningi-table tbody tr[hidden] {
  display: none;
}

.kpks-treningi-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(3, 16, 71, 0.45);
}

.kpks-treningi-badge--open {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.kpks-treningi-locations__title {
  margin: 0 0 0.85rem;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--kpks-navy, #031047);
}

@media (max-width: 767px) {
  .kpks-treningi-page .page-content-card {
    padding: 1.15rem 1rem 1.35rem;
    overflow-x: clip;
  }

  .kpks-treningi-filters__label {
    flex: 1 0 100%;
    min-width: 0;
    margin-bottom: 0.05rem;
  }

  .kpks-treningi-filter {
    font-size: 0.82rem;
    padding: 0.38rem 0.72rem;
  }

  .kpks-treningi-calendar__wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    border-radius: 0;
  }

  .kpks-treningi-table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }

  .kpks-treningi-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .kpks-treningi-table tbody {
    display: grid;
    gap: 0.75rem;
  }

  .kpks-treningi-table tbody tr {
    display: grid;
    gap: 0.35rem;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(3, 16, 71, 0.1);
    background: #fff;
    box-shadow: 0 2px 10px rgba(3, 16, 71, 0.045);
  }

  .kpks-treningi-table tbody tr:nth-child(even) td {
    background: transparent;
  }

  .kpks-treningi-table th,
  .kpks-treningi-table td {
    padding: 0.2rem 0;
    border-bottom: 0;
  }

  .kpks-treningi-table td {
    display: grid;
    grid-template-columns: 6.25rem minmax(0, 1fr);
    gap: 0.45rem;
    align-items: baseline;
    word-break: break-word;
  }

  .kpks-treningi-table td::before {
    content: attr(data-label);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(3, 16, 71, 0.48);
  }

  .kpks-treningi-table td[data-label="Godziny"] {
    font-weight: 700;
    color: var(--kpks-navy, #031047);
  }

  .kpks-treningi-table td[data-label="Dzień"] {
    font-weight: 700;
  }

  .kpks-treningi-location {
    padding: 1rem;
  }
}

/* ===== Drużyny / Młodziczki (siatkówka) ===== */
.kpks-team-page .page-content-card.kpks-team {
  padding: clamp(1.25rem, 3vw, 1.85rem);
}

.kpks-team-intro {
  margin: 0 0 1.5rem;
}

.kpks-team-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 1rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(3, 16, 71, 0.06);
  color: var(--kpks-navy, #031047);
}

.kpks-team-badge strong {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: #ffd000;
  color: #031047;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kpks-team-intro > p:last-child {
  margin: 0;
  max-width: 44rem;
  line-height: 1.6;
  color: rgba(3, 16, 71, 0.8);
}

.kpks-team-block {
  margin: 0 0 1.75rem;
}

.kpks-team-block h2 {
  margin: 0 0 0.85rem;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--kpks-navy, #031047);
}

.kpks-team-block > p {
  margin: 0 0 0.85rem;
  line-height: 1.6;
  color: rgba(3, 16, 71, 0.8);
  max-width: 44rem;
}

.kpks-team-groups {
  display: grid;
  gap: 1.1rem;
}

.kpks-team-group {
  padding: 1.1rem 1.15rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(3, 16, 71, 0.1);
  box-shadow: 0 2px 14px rgba(3, 16, 71, 0.05);
}

.kpks-team-group h3 {
  margin: 0 0 0.75rem;
  font-family: "Oswald", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--kpks-navy, #031047);
}

.kpks-team-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(3, 16, 71, 0.08);
}

.kpks-team-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
}

.kpks-team-table th,
.kpks-team-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid rgba(3, 16, 71, 0.08);
  color: rgba(3, 16, 71, 0.85);
  vertical-align: top;
  line-height: 1.45;
}

.kpks-team-table th {
  background: rgba(3, 16, 71, 0.04);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(3, 16, 71, 0.6);
}

.kpks-team-table tr:last-child td {
  border-bottom: 0;
}

.kpks-team-table tbody tr:nth-child(even) td {
  background: rgba(3, 16, 71, 0.015);
}

.kpks-team-coach {
  margin: 0.85rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  font-size: 0.95rem;
  color: rgba(3, 16, 71, 0.85);
}

.kpks-team-coach i {
  color: var(--kpks-primary, #008bd2);
}

.kpks-team-coach a {
  font-weight: 700;
  color: var(--kpks-navy, #031047);
  text-decoration: none;
}

.kpks-team-coach a:hover {
  color: var(--kpks-primary, #008bd2);
}

.kpks-team-actions {
  margin-top: 1rem !important;
}

.kpks-team-photo {
  margin: 0 0 1rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(3, 16, 71, 0.08);
  background: rgba(3, 16, 71, 0.03);
}

.kpks-team-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.kpks-team-season {
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.15rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(3, 16, 71, 0.1);
  box-shadow: 0 2px 14px rgba(3, 16, 71, 0.05);
}

.kpks-team-season h3 {
  margin: 0 0 0.75rem;
  font-family: "Oswald", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--kpks-navy, #031047);
}

.kpks-team-season p {
  margin: 0 0 0.75rem;
  line-height: 1.6;
  color: rgba(3, 16, 71, 0.8);
}

.kpks-team-season p:last-child {
  margin-bottom: 0;
}

.kpks-team-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--kpks-primary, #008bd2);
  text-decoration: none;
}

.kpks-team-link:hover {
  text-decoration: underline;
}

.kpks-akademia-brand {
  display: grid;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .kpks-akademia-brand {
    grid-template-columns: 120px 1fr;
    gap: 1.25rem;
  }
}

.kpks-akademia-logo {
  width: 120px;
  height: auto;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(3, 16, 71, 0.08);
  padding: 0.35rem;
}

.kpks-akademia-list {
  margin: 0.5rem 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.kpks-akademia-list li {
  padding: 0.65rem 0.85rem 0.65rem 2.2rem;
  border-radius: 12px;
  background: rgba(3, 16, 71, 0.04);
  position: relative;
  line-height: 1.45;
  color: rgba(3, 16, 71, 0.85);
}

.kpks-akademia-list li::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 1rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #ffd000;
  box-shadow: 0 0 0 3px rgba(255, 208, 0, 0.25);
}

.kpks-akademia-protrain__grid {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 720px) {
  .kpks-akademia-protrain__grid {
    grid-template-columns: 1fr minmax(160px, 220px);
  }
}

.kpks-akademia-protrain__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 16px;
  background: linear-gradient(160deg, #031047 0%, #0a2a6e 100%);
  border: 1px solid rgba(3, 16, 71, 0.2);
  text-decoration: none;
}

.kpks-akademia-protrain__logo img {
  max-width: 100%;
  height: auto;
}

.kpks-akademia-protrain .kpks-team-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.kpks-akademia-banner {
  margin-top: 0.5rem;
}

/* ===== Pierwsze zawody ===== */
.kpks-zawody-page .page-content-card.kpks-zawody {
  padding: clamp(1.25rem, 3vw, 1.85rem);
}

.kpks-zawody-intro {
  margin: 0 0 1.5rem;
}

.kpks-zawody-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 1rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(3, 16, 71, 0.06);
  color: var(--kpks-navy, #031047);
}

.kpks-zawody-badge strong {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: #ffd000;
  color: #031047;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kpks-zawody-intro > p:last-child {
  margin: 0;
  max-width: 44rem;
  line-height: 1.6;
  color: rgba(3, 16, 71, 0.8);
  font-size: clamp(1rem, 2.1vw, 1.08rem);
}

.kpks-zawody-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.95rem;
  counter-reset: zawody-step;
}

.kpks-zawody-step {
  display: grid;
  gap: 0.95rem;
  align-items: start;
  padding: 1.15rem 1.2rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(3, 16, 71, 0.1);
  box-shadow: 0 2px 14px rgba(3, 16, 71, 0.05);
  counter-increment: zawody-step;
}

@media (min-width: 720px) {
  .kpks-zawody-step {
    grid-template-columns: 3.25rem 1fr;
    gap: 1.15rem;
  }
}

.kpks-zawody-step__icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 208, 0, 0.22);
  color: var(--kpks-navy, #031047);
  font-size: 1.15rem;
  position: relative;
}

.kpks-zawody-step__icon::after {
  content: counter(zawody-step);
  position: absolute;
  right: -0.35rem;
  top: -0.35rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: var(--kpks-navy, #031047);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kpks-zawody-step__body h2 {
  margin: 0 0 0.55rem;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--kpks-navy, #031047);
}

.kpks-zawody-step__body h3 {
  margin: 1rem 0 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--kpks-navy, #031047);
}

.kpks-zawody-step__body p {
  margin: 0 0 0.75rem;
  line-height: 1.6;
  color: rgba(3, 16, 71, 0.8);
}

.kpks-zawody-step__body p:last-child {
  margin-bottom: 0;
}

.kpks-zawody-list,
.kpks-zawody-checklist {
  list-style: none;
  margin: 0.35rem 0 0.75rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.kpks-zawody-list li,
.kpks-zawody-checklist li {
  position: relative;
  padding: 0.65rem 0.85rem 0.65rem 2.25rem;
  border-radius: 12px;
  background: rgba(3, 16, 71, 0.04);
  line-height: 1.5;
  color: rgba(3, 16, 71, 0.85);
}

.kpks-zawody-list li::before,
.kpks-zawody-checklist li::before {
  content: "";
  position: absolute;
  left: 0.8rem;
  top: 1rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #ffd000;
  box-shadow: 0 0 0 3px rgba(255, 208, 0, 0.25);
}

.kpks-zawody-cta {
  margin: 1.5rem 0 0;
  padding: clamp(1.35rem, 3vw, 1.85rem);
  border-radius: 18px;
  background: linear-gradient(135deg, #031047 0%, #0a2a6e 55%, #008bd2 140%);
  color: #fff;
}

.kpks-zawody-cta h2 {
  margin: 0 0 0.45rem;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
}

.kpks-zawody-cta p {
  margin: 0 0 1rem;
  max-width: 36rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.kpks-zawody-cta .btn-section {
  margin-top: 0;
}

/* ===== Kontakt - style w css/contact.css ===== */

/* ===== About pages - dopasowanie kart do Władze ===== */
.about-page .about-stats-showcase {
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(3, 16, 71, 0.12);
}

.about-page .about-stats-grid {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.about-page .about-section-card:not(.about-section-card--split),
.about-page .about-location,
.about-page .history-content {
  border-radius: 16px;
  border: 1px solid rgba(3, 16, 71, 0.08);
  box-shadow: 0 6px 20px rgba(3, 16, 71, 0.06);
}

.about-page .about-section-card--split {
  background: #fff;
  border: 1px solid rgba(3, 16, 71, 0.08);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(3, 16, 71, 0.08);
}

.about-page .about-achievement-tile {
  border-radius: 16px;
  background: #eef1f5;
  border: 1px solid rgba(3, 16, 71, 0.07);
  box-shadow: none;
}

.about-page .about-locations {
  background: transparent;
}

.about-page .about-cta {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-radius: 0;
  overflow: visible;
  background: var(--kpks-light, #f8f9fa);
}

.about-page .history-cta {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

/* ===== Generic page fallback ===== */
.inner-page .page-content-card {
  background: #fff;
  border-radius: 22px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 10px 30px rgba(3, 16, 71, 0.1),
    0 2px 8px rgba(3, 16, 71, 0.06);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}

.inner-page .entry-content h2,
.inner-page .entry-content h3 {
  font-family: "Oswald", sans-serif;
  color: var(--kpks-navy, #031047);
}

.inner-page .entry-content p {
  color: rgba(3, 16, 71, 0.82);
  line-height: 1.75;
}

/* ===== Responsywność ===== */
@media (max-width: 991px) {
  .page-hero {
    min-height: clamp(360px, 46vh, 500px);
    margin-bottom: -3rem;
  }
}

@media (max-width: 767px) {
  .page-hero {
    min-height: clamp(300px, 42vh, 420px);
    padding-bottom: clamp(3rem, 8vw, 4.5rem);
    margin-bottom: -2.25rem;
  }

  .page-hero--compact {
    min-height: clamp(280px, 38vh, 380px);
    padding-bottom: clamp(2.5rem, 7vw, 3.5rem);
    margin-bottom: -2rem;
  }

  .page-hero-title {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-fx-lines--outer,
  .page-hero-fx-lines--inner,
  .page-hero-fx-light {
    animation: none;
  }

  .page-hero-fx-lines--outer {
    opacity: 0.55;
  }

  .page-hero-fx-lines--inner,
  .page-hero-fx-light {
    opacity: 0;
  }
}
