/**
 * KPKS Home Page Styles
 */

/* ===== Hero Sections Cards ===== */
.main-content.home-page {
  overflow: visible;
  background: transparent;
  padding-top: 0 !important;
}

body.is-main-site.home .page-wrapper,
body.is-main-site.home .ccm-page,
body.site-siatkowka.home .page-wrapper,
body.site-siatkowka.home .ccm-page,
body.site-akrobatyka.home .page-wrapper,
body.site-akrobatyka.home .ccm-page {
  background-color: #f3f6fb;
}

/* Kafelki dopasowane do karty nagłówka - tylko same kafelki, bez ramki sekcji */
body.is-main-site.home .sections-showcase .section-card,
body.is-main-site.home .sections-showcase .section-card-inner,
body.is-main-site.home .sections-showcase .section-card::before,
body.site-siatkowka.home .sections-showcase .section-card,
body.site-siatkowka.home .sections-showcase .section-card-inner,
body.site-siatkowka.home .sections-showcase .section-card::before,
body.site-akrobatyka.home .sections-showcase .section-card,
body.site-akrobatyka.home .sections-showcase .section-card-inner,
body.site-akrobatyka.home .sections-showcase .section-card::before {
  border-radius: 22px;
}

body.is-main-site.home .sections-showcase .section-card,
body.site-siatkowka.home .sections-showcase .section-card,
body.site-akrobatyka.home .sections-showcase .section-card {
  border: 2px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 30px rgba(3, 16, 71, 0.12);
}

body.is-main-site.home .sections-showcase .section-card-link:hover .section-card,
body.is-main-site.home .sections-showcase .section-card:hover,
body.site-siatkowka.home .sections-showcase .section-card-link:hover .section-card,
body.site-siatkowka.home .sections-showcase .section-card:hover,
body.site-akrobatyka.home .sections-showcase .section-card-link:hover .section-card,
body.site-akrobatyka.home .sections-showcase .section-card:hover {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 40px rgba(3, 16, 71, 0.14);
}

.sections-showcase {
  position: relative;
  margin-top: calc(-1 * var(--kpks-header-height, 200px));
  padding: calc(var(--kpks-header-height, 200px) + 0.5rem) 0 clamp(3.75rem, 5vw, 4.5rem) !important;
  margin-bottom: -5.75rem;
  overflow: visible;
  isolation: isolate;
  z-index: 2;
}

.section-card-main::before {
  background-position: center center;
}

/* Pełnoszerokościowe tło: od góry strony (za nagłówkiem) do końca sekcji kafelków */
.sections-showcase::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);
}

.sections-showcase::after {
  content: none;
}

/* Animowane ukośne linie - SVG + warstwy CSS, zgodne z kątem tła */
.sections-showcase-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%
  );
}

/* Animacja tła - złoty środek: oddech linii + wyraźniejsze błyski światła */
.sections-showcase-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;
}

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

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

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

.sections-showcase-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;
  animation-delay: 0s;
}

.sections-showcase-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;
}

.sections-showcase-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);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sections-showcase-fx-lines,
  .sections-showcase-fx-light {
    animation: none;
  }

  .sections-showcase-fx-lines--outer {
    opacity: 0.55;
  }

  .sections-showcase-fx-lines--inner,
  .sections-showcase-fx-light {
    opacity: 0;
  }
}

.sections-showcase .container {
  position: relative;
  z-index: 1;
  overflow: visible;
  container-type: inline-size;
  container-name: kpks-sections;
}

.sections-showcase .default-sections {
  --bs-gutter-x: clamp(12px, 2cqw, 24px);
  --bs-gutter-y: clamp(12px, 2cqw, 20px);
}

/* ===== Subsite hero: boczne kafleki + slider na środku ===== */
.sections-showcase--subsite .container {
  display: block;
}

.sections-subsite-banner {
  display: grid;
  grid-template-columns: minmax(4.75rem, 0.2fr) minmax(0, 1fr) minmax(4.75rem, 0.2fr);
  gap: clamp(0.4rem, 1.2cqw, 0.85rem);
  align-items: stretch;
  width: 100%;
}

.sections-subsite-center {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sections-subsite-side {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: stretch;
}

.sections-subsite-side .section-nav-tile-link {
  width: 100%;
  height: 50%;
  min-height: 0;
}

.sections-hero-slider {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
}

.sections-hero-slider-track {
  position: relative;
  width: 100%;
}

.sections-hero-slide {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  height: auto;
  cursor: default;
}

.sections-hero-slide:hover,
.sections-hero-slide.section-card:hover,
body.is-main-site.home .sections-showcase .sections-hero-slide:hover,
body.site-siatkowka.home .sections-showcase .sections-hero-slide:hover,
body.site-akrobatyka.home .sections-showcase .sections-hero-slide:hover {
  transform: none;
  box-shadow:
    0 28px 56px rgba(3, 16, 71, 0.32),
    0 12px 28px rgba(0, 0, 0, 0.2),
    0 2px 8px rgba(3, 16, 71, 0.14);
  border-color: rgba(255, 255, 255, 0.72);
}

.sections-hero-slide:hover::before,
.sections-hero-slide.section-card:hover::before {
  transform: none;
}

.sections-hero-slide:hover .section-cutout,
.sections-hero-slide:hover .section-logo {
  transform: none;
}

.sections-hero-slide[hidden] {
  display: none !important;
}

.sections-hero-slide.is-active {
  display: block;
}

.sections-hero-slide-inner {
  min-height: 100%;
  height: 100%;
}

.sections-hero-slide .section-card-body {
  justify-content: center;
  padding: clamp(0.65rem, 2.2cqw, 1.35rem) clamp(0.55rem, 1.8cqw, 1.1rem);
}

.sections-hero-slide .section-title {
  font-size: clamp(1.05rem, 4.2cqw, 2.55rem);
  margin-bottom: clamp(0.35rem, 1.2cqw, 0.85rem);
  max-width: 14ch;
}

.sections-hero-slide .section-description {
  margin-bottom: 0;
  max-width: 28rem;
  font-size: clamp(0.72rem, 1.7cqw, 1.02rem);
}

.sections-hero-slide--has-bg.section-card {
  background: #031047;
  overflow: hidden;
}

.sections-hero-slide--has-bg.section-card::before {
  background-image:
    linear-gradient(
      105deg,
      rgba(3, 16, 71, 0.72) 0%,
      rgba(3, 16, 71, 0.42) 38%,
      rgba(3, 16, 71, 0.12) 62%,
      rgba(3, 16, 71, 0.05) 100%
    ),
    var(--hero-bg-image);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  transform: none;
}

.sections-hero-slide--has-bg .sections-hero-slide-inner,
.sections-hero-slide--photo .sections-hero-slide-inner {
  display: flex;
  align-items: stretch;
  min-height: 100%;
}

.sections-hero-slide--has-bg .section-card-body,
.sections-hero-slide--photo .section-card-body {
  flex: 1 1 auto;
  max-width: min(34rem, 58%);
  justify-content: center;
  padding: clamp(1.1rem, 3.2cqw, 2.35rem) clamp(1rem, 3cqw, 2rem);
}

.sections-hero-slide--has-bg .section-title,
.sections-hero-slide--photo .section-title {
  max-width: 12ch;
  text-shadow: 0 2px 18px rgba(3, 16, 71, 0.35);
}

.sections-hero-slide--has-bg .section-description,
.sections-hero-slide--photo .section-description {
  margin-bottom: clamp(0.85rem, 2cqw, 1.35rem);
  max-width: 28rem;
  text-shadow: 0 1px 12px rgba(3, 16, 71, 0.28);
}

.sections-hero-slide--has-bg .btn-section,
.sections-hero-slide--photo .btn-section {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0;
  width: fit-content;
}

.sections-hero-slide--has-bg .btn-section i,
.sections-hero-slide--photo .btn-section i {
  font-size: 0.75em;
  transition: transform 0.25s ease;
}

.sections-hero-slide--has-bg .btn-section:hover i,
.sections-hero-slide--photo .btn-section:hover i {
  transform: translateX(3px);
}

.sections-hero-slide .section-card-media {
  min-height: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sections-hero-slide .section-cutout {
  position: relative;
  right: auto;
  bottom: auto;
  top: auto;
  left: auto;
  height: auto;
  max-height: 88%;
  width: auto;
  max-width: min(100%, 420px);
  object-fit: contain;
  object-position: center center;
  margin: 0 auto;
}

.sections-hero-slide .section-cutout-vball,
.sections-hero-slide .section-cutout-acro {
  right: auto;
  height: auto;
}

.sections-hero-slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.sections-hero-slider-btn {
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.sections-hero-slider-btn:hover,
.sections-hero-slider-btn:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  outline: none;
}

.sections-hero-slider-dots {
  display: flex;
  gap: 0.4rem;
}

.sections-hero-slider-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.sections-hero-slider-dot.is-active {
  background: var(--kpks-secondary, #ffd000);
  transform: scale(1.15);
}

.section-nav-tile-link {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.section-nav-tile {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  border-radius: clamp(12px, 1.8cqw, 16px);
  overflow: hidden;
  background: #156fb0;
  border: 2px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 20px rgba(3, 16, 71, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.section-nav-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image:
    linear-gradient(135deg, rgba(3, 16, 71, 0.42) 0%, rgba(0, 139, 210, 0.22) 100%),
    url("../images/sections-showcase-bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.section-nav-tile-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.28rem, 1cqw, 0.55rem);
  height: 100%;
  padding: clamp(0.4rem, 1.2cqw, 0.7rem) clamp(0.3rem, 1cqw, 0.55rem);
  min-width: 0;
  text-align: center;
}

.section-nav-tile-logo {
  flex-shrink: 0;
  width: clamp(1.5rem, 4.5cqw, 2.35rem);
  height: clamp(1.5rem, 4.5cqw, 2.35rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-nav-tile-logo img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.section-nav-tile-title {
  margin: 0;
  min-width: 0;
  width: 100%;
  font-family: "Oswald", sans-serif;
  font-size: clamp(0.58rem, 1.7cqw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.15;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}

.section-nav-tile-btn {
  flex-shrink: 0;
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  padding: 0.22rem 0.4rem;
  border-radius: 8px;
  background: #ffd000;
  color: #031047;
  border: none;
  font-family: "Oswald", sans-serif;
  font-size: clamp(0.45rem, 1.25cqw, 0.58rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: normal;
  line-height: 1.15;
  text-align: center;
  max-width: 100%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
}

.section-nav-tile-btn i {
  font-size: 0.65em;
  transition: transform 0.25s ease;
}

.section-nav-tile-link:hover .section-nav-tile {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(3, 16, 71, 0.16);
  transform: translateY(-2px);
}

.section-nav-tile-link:hover .section-nav-tile-btn i {
  transform: translateX(2px);
}

body.site-siatkowka.home .sections-showcase--subsite .sections-hero-slide,
body.site-akrobatyka.home .sections-showcase--subsite .sections-hero-slide {
  border: 2px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 30px rgba(3, 16, 71, 0.12);
  border-radius: clamp(14px, 2.2cqw, 22px);
}

/* Desktop: większa, czytelniejsza treść w sliderze i bocznych sekcjach */
@media (min-width: 768px) {
  .sections-subsite-banner {
    grid-template-columns: minmax(7.5rem, 0.26fr) minmax(0, 1fr) minmax(7.5rem, 0.26fr);
    gap: clamp(0.65rem, 1.4cqw, 1rem);
  }

  .sections-hero-slide .section-card-body {
    padding: clamp(1.1rem, 2.8cqw, 2rem) clamp(1rem, 2.4cqw, 1.75rem);
  }

  .sections-hero-slide .section-title {
    font-size: clamp(1.85rem, 4.6cqw, 3.1rem);
    margin-bottom: clamp(0.55rem, 1.4cqw, 1rem);
    max-width: 12ch;
  }

  .sections-hero-slide .section-description {
    font-size: clamp(0.95rem, 1.85cqw, 1.2rem);
    line-height: 1.55;
    max-width: 30rem;
  }

  .sections-hero-slide--has-bg .section-card-body,
  .sections-hero-slide--photo .section-card-body {
    max-width: min(36rem, 52%);
  }

  .section-nav-tile-inner {
    gap: clamp(0.45rem, 1.2cqw, 0.85rem);
    padding: clamp(0.7rem, 1.6cqw, 1.1rem) clamp(0.55rem, 1.3cqw, 0.9rem);
  }

  .section-nav-tile-logo {
    width: clamp(2.5rem, 5.5cqw, 3.5rem);
    height: clamp(2.5rem, 5.5cqw, 3.5rem);
  }

  .section-nav-tile-title {
    font-size: clamp(0.85rem, 2cqw, 1.15rem);
    letter-spacing: 0.04em;
  }

  .section-nav-tile-btn {
    padding: 0.35rem 0.65rem;
    font-size: clamp(0.62rem, 1.35cqw, 0.78rem);
    border-radius: 9px;
  }
}

/* Ten sam układ i proporcje na mobile - tylko drobne dopasowanie czytelności */
@media (max-width: 767px) {
  .sections-subsite-banner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "center"
      "left"
      "right";
    gap: 0.65rem;
  }

  .sections-subsite-side--left {
    grid-area: left;
  }

  .sections-subsite-center {
    grid-area: center;
  }

  .sections-subsite-side--right {
    grid-area: right;
  }

  .sections-subsite-side {
    align-items: stretch;
  }

  .sections-subsite-side .section-nav-tile-link {
    height: auto;
  }

  .section-nav-tile {
    height: 52px;
    min-height: 52px;
    max-height: 52px;
  }

  .section-nav-tile-inner {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    gap: 0.45rem 0.55rem;
    padding: 0.35rem 0.65rem;
  }

  .section-nav-tile-logo {
    width: 28px;
    height: 28px;
  }

  .section-nav-tile-title {
    flex: 1 1 auto;
    width: auto;
    -webkit-line-clamp: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
    overflow: hidden;
    font-size: 0.72rem;
  }

  .section-nav-tile-btn {
    margin-left: auto;
    white-space: nowrap;
    font-size: 0.52rem;
  }

  .sections-hero-slide .section-card-inner {
    min-height: 100%;
  }

  .sections-hero-slide .section-description {
    -webkit-line-clamp: 4;
  }

  .sections-hero-slide--has-bg .section-card-body,
  .sections-hero-slide--photo .section-card-body {
    max-width: 65%;
    padding: clamp(0.85rem, 3.8vw, 1.25rem);
  }

  .sections-hero-slide--has-bg.section-card::before {
    background-position: 72% center;
    background-image:
      linear-gradient(
        105deg,
        rgba(3, 16, 71, 0.42) 0%,
        rgba(3, 16, 71, 0.2) 42%,
        rgba(3, 16, 71, 0.05) 65%,
        rgba(3, 16, 71, 0) 100%
      ),
      var(--hero-bg-image);
  }

  .sections-hero-slide .section-cutout {
    max-height: 82%;
  }
}

.sections-showcase .row {
  width: 100%;
  margin: 0;
  overflow: visible;
}

.sections-showcase .row > [class*="col-"] {
  padding: 0.75rem;
  display: flex;
  overflow: visible;
}

.sections-showcase .row > [class*="col-"]:first-child {
  padding-left: 0;
}

.sections-showcase .row > [class*="col-"]:last-child {
  padding-right: 0;
}

.section-card-link {
  text-decoration: none;
  display: block;
  width: 100%;
  overflow: visible;
  color: inherit;
}

.section-card {
  position: relative;
  width: 100%;
  min-height: clamp(280px, 42cqw, 380px);
  border-radius: 24px;
  overflow: visible;
  border: none;
  box-shadow:
    0 28px 56px rgba(3, 16, 71, 0.32),
    0 12px 28px rgba(0, 0, 0, 0.2),
    0 2px 8px rgba(3, 16, 71, 0.14);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
  cursor: pointer;
  background: #156fb0;
  isolation: isolate;
}

/* Tło kafelka - ta sama grafika co sekcja hero, z lekkim overlayem pod tekst */
.section-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(135deg, rgba(3, 16, 71, 0.28) 0%, rgba(0, 139, 210, 0.12) 100%),
    url("../images/sections-showcase-bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-card-volleyball::before {
  background-position: 78% center;
}

.section-card-acrobatics::before {
  background-position: 18% center;
}

.section-card-link:hover .section-card::before,
.section-card:hover::before {
  transform: scale(1.03);
}

.section-card-link:hover .section-card,
.section-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 40px 80px rgba(3, 16, 71, 0.38),
    0 18px 36px rgba(0, 0, 0, 0.24),
    0 4px 12px rgba(3, 16, 71, 0.16);
}

.section-card-inner {
  display: flex;
  align-items: stretch;
  min-height: clamp(280px, 42cqw, 380px);
  position: relative;
  z-index: 1;
  border-radius: 24px;
  overflow: visible;
}

.section-card-body {
  position: relative;
  z-index: 2;
  flex: 1 1 54%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: clamp(1.25rem, 3cqw, 2rem) clamp(0.75rem, 2cqw, 1rem) clamp(1.25rem, 3cqw, 2rem)
    clamp(1.25rem, 3.5cqw, 2rem);
  color: #fff;
}

.section-card-media {
  position: relative;
  flex: 0 0 46%;
  min-height: clamp(280px, 42cqw, 380px);
  overflow: visible;
  pointer-events: none;
}

.section-cutout {
  position: absolute;
  right: -10%;
  bottom: -14%;
  height: 132%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.22));
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-cutout-vball {
  right: -18%;
  height: 138%;
}

.section-cutout-acro {
  right: -12%;
}

.section-card-link:hover .section-cutout {
  transform: scale(1.04) translateY(-6px);
}

.section-logo {
  width: clamp(64px, 14cqw, 118px);
  height: clamp(64px, 14cqw, 118px);
  margin-bottom: clamp(0.5rem, 1.5cqw, 1rem);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transition: transform 0.35s ease;
}

.section-card-link:hover .section-logo {
  transform: scale(1.05);
}

.section-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
}

.section-card--no-cutout .section-card-inner {
  grid-template-columns: 1fr;
}

.section-card--no-cutout .section-card-body {
  max-width: none;
}

.section-card--no-logo .section-title {
  margin-top: 0;
}

.section-title {
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.15rem, 5.5cqw, 2.35rem);
  font-weight: 700;
  margin-bottom: clamp(0.4rem, 1.2cqw, 0.75rem);
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}

.section-description {
  font-family: "Inter", sans-serif;
  font-size: clamp(0.82rem, 2.2cqw, 1.05rem);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: clamp(0.75rem, 2cqw, 1.35rem);
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.95);
}

.btn-section {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: clamp(0.55rem, 1.5cqw, 0.75rem) clamp(1rem, 3cqw, 1.6rem);
  font-size: clamp(0.8rem, 2cqw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  display: inline-block;
  margin-top: auto;
}

.btn-volleyball,
.btn-acrobatics {
  background-color: #ffd000;
  color: #031047;
  border: 2px solid #ffd000;
}

.btn-volleyball:hover,
.btn-acrobatics:hover,
.section-card-link:hover .btn-volleyball,
.section-card-link:hover .btn-acrobatics {
  background-color: var(--kpks-primary);
  border-color: var(--kpks-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 139, 210, 0.35);
}


/* ===== News Section ===== */
.home-page .news-section {
  position: relative;
  z-index: 1;
  margin-top: -5.75rem;
  padding: clamp(4.25rem, 5.5vw, 5.75rem) 0 clamp(3rem, 5vw, 4.5rem);
  background: #f3f6fb;
}

.home-page .news-section::before {
  content: "";
  position: absolute;
  top: -5.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 7.25rem;
  background: #f3f6fb;
  pointer-events: none;
  z-index: -1;
}

.home-page .news-section-container {
  container-type: inline-size;
  container-name: kpks-news;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "heading cta"
    "list list";
  align-items: end;
  column-gap: clamp(1rem, 3vw, 2rem);
  row-gap: clamp(1.75rem, 3.5vw, 3rem);
}

.home-page .news-header-content {
  grid-area: heading;
  min-width: 0;
}

.home-page .news-section-cta {
  grid-area: cta;
  align-self: end;
}

.home-page .news-list-grid,
.home-page .news-section-container > .alert {
  grid-area: list;
}

.home-page .news-section .section-heading {
  font-size: clamp(1.35rem, 4.5cqw, 2.35rem);
  margin-bottom: clamp(0.35rem, 1.2cqw, 0.75rem);
  line-height: 1.1;
}

.home-page .news-section .section-subheading {
  font-size: clamp(0.88rem, 2.2cqw, 1.05rem);
  max-width: 36rem;
}

.home-page .news-list-grid {
  --bs-gutter-x: clamp(1.1rem, 2.4cqw, 1.85rem);
  --bs-gutter-y: clamp(1.25rem, 2.8cqw, 2rem);
  max-width: none;
  margin: 0;
  width: 100%;
}

.home-page .news-list-grid > [class*="col-"] {
  padding-top: 0;
  padding-bottom: 0;
}

.home-page .news-card {
  border-radius: 24px;
  border: none;
  box-shadow: 0 2px 18px rgba(3, 16, 71, 0.055);
  transition:
    transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.home-page .news-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 18px 44px rgba(3, 16, 71, 0.11);
}

.home-page .news-card-image,
.home-page .news-card-image-placeholder {
  height: auto;
  aspect-ratio: 16 / 10;
}

.home-page .news-card:hover .news-card-image-placeholder {
  transform: scale(1.02);
}

.home-page .news-card-body {
  padding: clamp(1.15rem, 2.6cqw, 1.55rem) clamp(1.15rem, 2.6cqw, 1.55rem)
    clamp(1.25rem, 2.8cqw, 1.65rem);
}

.home-page .news-card-title {
  font-size: clamp(1.05rem, 2.8cqw, 1.22rem);
}

.home-page .news-card-excerpt {
  font-size: clamp(0.86rem, 2cqw, 0.94rem);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-page .news-card .btn,
.home-page .news-card-link {
  font-size: clamp(0.86rem, 2cqw, 0.94rem);
}

.btn-see-more {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  border-radius: 10px;
  padding: clamp(0.55rem, 1.5vw, 0.75rem) clamp(1rem, 3vw, 1.6rem);
  font-weight: 600;
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  text-transform: none;
  letter-spacing: 0.01em;
  border: 2px solid #ffd000;
  color: #031047;
  background-color: #ffd000;
  box-shadow: 0 8px 20px rgba(255, 208, 0, 0.28);
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  text-decoration: none;
}

.btn-see-more:hover,
.btn-see-more:focus-visible {
  background-color: var(--kpks-primary);
  border-color: var(--kpks-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 139, 210, 0.35);
}

.btn-see-more i {
  transition: transform 0.3s ease;
  font-size: 0.85em;
}

.btn-see-more:hover i,
.btn-see-more:focus-visible i {
  transform: translateX(3px);
}


/* ===== Responsive ===== */
@media (max-width: 1199px) {
  .sections-showcase {
    margin-top: calc(-1 * var(--kpks-header-height, 180px));
    padding: calc(var(--kpks-header-height, 180px) + 0.85rem) 0 clamp(3rem, 4.5vw, 3.75rem) !important;
    margin-bottom: -5rem;
  }

  .home-page .news-section {
    margin-top: -5rem;
    padding-top: clamp(3.25rem, 4.5vw, 4rem);
  }

  .home-page .news-section::before {
    top: -5rem;
    height: 6rem;
  }

  .sections-showcase::before,
  .sections-showcase-fx {
    clip-path: polygon(
      0 0,
      100% 0,
      100% 85%,
      55% 92%,
      0 91%
    );
  }
}

/* Tablet: dwa kafelki obok siebie, proporcjonalne skalowanie */
@media (min-width: 768px) and (max-width: 1199px) {
  .sections-showcase .default-sections {
    --bs-gutter-x: 14px;
    --bs-gutter-y: 14px;
  }

  .section-description {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .home-page .news-list-grid {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1.15rem;
  }
}

@media (max-width: 991px) {
  .section-heading {
    font-size: 2rem;
  }

}

@media (max-width: 767px) {
  .sections-showcase {
    margin-top: calc(-1 * var(--kpks-header-height, 160px));
    padding: calc(var(--kpks-header-height, 160px) + 1rem) 0 clamp(2.5rem, 5vw, 3.25rem) !important;
    margin-bottom: -4.35rem;
  }

  .home-page .news-section {
    margin-top: -4.35rem;
  }

  .home-page .news-section::before {
    top: -4.35rem;
    height: 5.75rem;
  }

  .sections-showcase::before,
  .sections-showcase-fx {
    clip-path: polygon(
      0 0,
      100% 0,
      100% 89%,
      0 93%
    );
  }

  .sections-showcase .default-sections {
    --bs-gutter-x: 0;
    --bs-gutter-y: 14px;
  }

  .sections-showcase .row > [class*="col-"] {
    padding: 0;
  }

  .section-card,
  .section-card-inner,
  .section-card-media {
    min-height: clamp(240px, 72vw, 300px);
  }

  .sections-hero-slide.section-card,
  .sections-hero-slide .section-card-inner,
  .sections-hero-slide .section-card-media {
    min-height: 0;
    height: 100%;
  }

  .sections-hero-slide .section-cutout,
  .sections-hero-slide .section-cutout-vball,
  .sections-hero-slide .section-cutout-acro {
    position: relative;
    right: auto;
    bottom: auto;
    height: auto;
    max-height: 82%;
  }

  .section-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
  }

  .section-cutout {
    height: 125%;
    bottom: -12%;
    right: -14%;
  }

  .section-cutout-vball {
    right: -18%;
    height: 128%;
  }

  .section-cutout-acro {
    right: -14%;
  }

  /* News Section Mobile */
  .home-page .news-section {
    margin-top: -4rem;
    padding: clamp(3rem, 8vw, 3.5rem) 0 clamp(2.5rem, 9vw, 3.5rem);
  }

  .home-page .news-section::before {
    top: -4rem;
    height: 5rem;
  }

  .home-page .news-section-container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "list"
      "cta";
    align-items: stretch;
    row-gap: 1.25rem;
  }

  .home-page .news-section-cta {
    margin-top: 0.35rem;
  }

  .home-page .news-list-grid {
    --bs-gutter-x: 0.7rem;
    --bs-gutter-y: 0.7rem;
  }

  .home-page .news-section .section-heading {
    font-size: clamp(1.35rem, 7vw, 1.75rem);
  }

  .home-page .news-section .section-subheading {
    font-size: clamp(0.88rem, 3.8vw, 0.95rem);
  }

  .home-page .btn-see-more {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .home-page .news-card {
    border-radius: 14px;
  }

  .home-page .news-card-image,
  .home-page .news-card-image-placeholder {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .home-page .news-card-body {
    padding: 0.7rem 0.75rem 0.85rem;
  }

  .home-page .news-card-title {
    font-size: 0.82rem;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .home-page .news-card-excerpt {
    -webkit-line-clamp: 2;
    font-size: 0.72rem;
  }

  .home-page .news-card .btn,
  .home-page .news-card-link {
    font-size: 0.72rem;
  }

  .section-card-body .btn-section,
  .btn-section {
    padding: 10px 20px;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    border-radius: 8px;
    line-height: 1.25;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

}

@media (max-width: 575px) {
  .section-description {
    margin-bottom: 0.75rem;
  }

  .section-card-body .btn-section,
  .btn-section {
    padding: 8px 14px;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    border-radius: 6px;
    line-height: 1.25;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  }

  .btn-volleyball,
  .btn-acrobatics {
    border-width: 1px;
  }
}

@media (max-width: 400px) {
  .section-card-body .btn-section,
  .btn-section {
    padding: 6px 11px;
    font-size: 0.68rem;
    letter-spacing: 0.01em;
  }
}

/* ===== Additional Animations ===== */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.section-card,
.news-card {
  animation: fadeInScale 0.5s ease-out;
}

.section-card:nth-child(2) {
  animation-delay: 0.1s;
}

/* ===== Elastyczny blok nad stopką (treść strony + widgety) ===== */
.home-extra-section {
  position: relative;
  z-index: 1;
  padding: clamp(2.25rem, 4.5vw, 3.5rem) 0;
  background: #f8fafc;
  border-top: 1px solid rgba(3, 16, 71, 0.06);
}

.home-extra-container {
  max-width: 920px;
}

.home-extra-content {
  color: rgba(3, 16, 71, 0.88);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  letter-spacing: -0.01em;
}

.home-extra-content > *:first-child {
  margin-top: 0;
}

.home-extra-content > *:last-child {
  margin-bottom: 0;
}

.home-extra-content h2,
.home-extra-content h3 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--kpks-navy, #031047);
  line-height: 1.15;
}

.home-extra-content h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  margin: 0 0 0.85rem;
}

.home-extra-content h3 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  margin: 1.5rem 0 0.65rem;
}

.home-extra-content p {
  margin: 0 0 1rem;
}

.home-extra-content a {
  color: var(--kpks-primary, #008bd2);
  font-weight: 600;
  text-decoration: none;
}

.home-extra-content a:hover {
  color: var(--kpks-navy, #031047);
}

.home-extra-content img,
.home-extra-content figure {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.home-extra-content .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.35rem;
  border-radius: 980px;
  background: var(--kpks-navy, #031047);
  color: #fff !important;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  border: none;
}

.home-extra-content .wp-block-button__link:hover {
  background: var(--kpks-primary, #008bd2);
  color: #fff !important;
}

.home-extra-content ul,
.home-extra-content ol {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}

.home-extra-content li {
  margin-bottom: 0.4rem;
}

.home-extra-widgets {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.home-extra-content + .home-extra-widgets {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(3, 16, 71, 0.08);
}

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

@media (max-width: 767px) {
  .home-extra-section {
    padding: 1.75rem 0 2rem;
  }
}

/* ===== Footer showcase (KPKS - układ mockup) ===== */
.site-footer--integrated {
  border-top: 0;
  background: #f3f6fb;
  overflow: visible;
  margin-top: 0;
  padding: 0;
}

.footer-showcase {
  --footer-showcase-radius: clamp(22px, 3vw, 28px);
  position: relative;
  margin-top: clamp(-1.75rem, -3vw, -2.5rem);
  padding: clamp(3.25rem, 5vw, 4.25rem) 0 clamp(2rem, 3.5vw, 2.75rem);
  isolation: isolate;
  overflow: hidden;
  z-index: 2;
  background: var(--kpks-navy);
  border-radius: var(--footer-showcase-radius) var(--footer-showcase-radius) 0 0;
  box-shadow:
    0 -14px 40px rgba(3, 16, 71, 0.1),
    0 -4px 14px rgba(3, 16, 71, 0.06);
}

.footer-showcase-container {
  position: relative;
  z-index: 1;
}

.footer-showcase-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(1.75rem, 3.5vw, 2.75rem);
  align-items: center;
}

.footer-showcase-eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 0.65rem;
}

.footer-showcase-heading {
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.35rem, 4.5cqw, 2.35rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 0.65rem;
}

.footer-showcase-lead {
  font-family: "Inter", sans-serif;
  font-size: clamp(0.88rem, 2.2vw, 1.05rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  max-width: 28rem;
  margin: 0 0 1.35rem;
}

.footer-showcase-cta {
  margin-top: 0.25rem;
  white-space: normal;
  text-align: center;
  max-width: 22rem;
}

.footer-showcase-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1rem);
}

.footer-showcase-info-card {
  min-height: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  transition: border-color 0.2s ease;
}

.footer-showcase-info-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.footer-showcase-info-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  height: 100%;
  padding: clamp(1.1rem, 2vw, 1.35rem);
  color: #fff;
  text-decoration: none;
}

.footer-showcase-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: var(--kpks-secondary);
  font-size: 0.95rem;
  line-height: 1;
}

.footer-showcase-info-label {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.footer-showcase-info-value {
  font-family: "Inter", sans-serif;
  font-size: clamp(0.88rem, 1.8vw, 0.96rem);
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
  word-break: break-word;
}

.footer-showcase-divider {
  height: 1px;
  margin: clamp(1.75rem, 3.5vw, 2.25rem) 0;
  background: rgba(255, 255, 255, 0.12);
}

.footer-showcase-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.footer-showcase-meta-col--sections {
  justify-self: end;
  text-align: left;
}

.footer-showcase-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.footer-showcase-social-links .kpks-social-link,
.footer-showcase-social-links .kpks-social-group-toggle {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.footer-showcase-social-links .kpks-social-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.footer-showcase-sections-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.footer-showcase-section-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.95rem 0.55rem 0.55rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Inter", sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-showcase-section-pill:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.footer-showcase-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 0;
  background: #fff;
  flex-shrink: 0;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 0 rgba(3, 16, 71, 0.08);
}

.footer-showcase-section-pill:hover .footer-showcase-section-icon {
  background: #fff;
  box-shadow: 0 2px 8px rgba(3, 16, 71, 0.12);
}

.footer-showcase-section-icon img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

.footer-showcase-section-pill i {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  margin-left: 0.1rem;
}

.footer-showcase-bar {
  position: relative;
  z-index: 1;
  background: var(--kpks-navy);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: clamp(1rem, 2.2vw, 1.25rem) 0 clamp(1.1rem, 2.2vw, 1.35rem);
}

.footer-showcase-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.footer-showcase-back-to-top-slot {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .footer-showcase-back-to-top-slot {
    display: none;
  }
}

.footer-showcase-legal-nav .btn-back-to-top.btn-back-to-top--inline {
  position: static;
  bottom: auto;
  right: auto;
  width: 40px;
  height: 40px;
  margin: 0;
  box-shadow: 0 6px 16px rgba(3, 16, 71, 0.2);
}

.footer-showcase-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}

.footer-showcase-brand:hover {
  color: #fff;
  opacity: 0.92;
}

.footer-showcase-brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-showcase-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.footer-showcase-brand-top {
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.3;
}

.footer-showcase-brand-name {
  font-family: "Oswald", sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
}

.footer-showcase-legal {
  text-align: right;
  flex-shrink: 0;
}

.footer-showcase-legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-bottom: 0.35rem;
}

.footer-showcase-legal-nav a {
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.footer-showcase-legal-nav a:hover {
  color: #fff;
}

.footer-showcase-legal-sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.82rem;
}

.footer-showcase-copyright {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.42);
}

body.is-main-site.home .home-page .kpks-partners {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: clamp(2.5rem, 4.5vw, 3.5rem) 0;
}

/* ===== Dotacje / programy wsparcia ===== */
.home-page .grants-section--after-showcase {
  padding-top: clamp(6.5rem, 10vw, 7.75rem);
  border-top: none;
}

.home-page .grants-section {
  position: relative;
  z-index: 1;
  padding: clamp(2.25rem, 4.5vw, 3.25rem) 0;
  background: #fff;
  border-top: 1px solid rgba(3, 16, 71, 0.06);
}

.home-page .grants-section-container {
  container-type: inline-size;
  container-name: kpks-grants;
}

.home-page .grants-section-header {
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
  max-width: none;
}

.home-page .grants-section-heading {
  margin: 0 0 0.5rem;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.25rem, 3.5cqw, 1.85rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--kpks-navy, #031047);
}

.home-page .grants-section-subheading {
  margin: 0;
  font-size: clamp(0.92rem, 2cqw, 1.02rem);
  line-height: 1.65;
  color: var(--kpks-gray, #6c757d);
}

.home-page .grants-section-content {
  max-width: none;
  margin: 0 0 clamp(1.35rem, 2.5vw, 1.75rem);
  color: rgba(3, 16, 71, 0.86);
  font-size: clamp(0.95rem, 1.8cqw, 1.02rem);
  line-height: 1.75;
}

.home-page .grants-section-content p {
  margin: 0 0 0.85rem;
}

.home-page .grants-section-content p:last-child {
  margin-bottom: 0;
}

.home-page .grants-logos {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 1.8vw, 1.15rem);
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  max-width: none;
  margin: 0;
}

.home-page .grants-logo {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  flex: 1 1 auto;
  min-width: min(100%, 160px);
  max-width: 100%;
  min-height: clamp(88px, 12vw, 120px);
  padding: clamp(0.85rem, 1.8vw, 1.15rem) clamp(1rem, 2vw, 1.35rem);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--kpks-navy, #031047);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 22px rgba(3, 16, 71, 0.16);
}

.home-page .grants-logo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--kpks-navy, #031047);
  background-image: url("../images/sections-showcase-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.home-page .grants-logo::after {
  content: "";
  position: absolute;
  inset: -18% -12%;
  z-index: 0;
  pointer-events: none;
  background-image: url("../images/sections-showcase-lines.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.72;
}

.home-page .grants-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.home-page .grants-logo-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: clamp(52px, 7.5vw, 76px);
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.home-page .grants-logo--klub_pro .grants-logo-image {
  max-height: clamp(44px, 6.5vw, 64px);
}

.home-page .grants-logo--partnerzy .grants-logo-image {
  max-height: clamp(56px, 8vw, 88px);
  max-width: min(540px, 100%);
}

.home-page .grants-logo--wojewodztwo_slaskie .grants-logo-image {
  max-height: clamp(48px, 7vw, 72px);
  max-width: min(320px, 100%);
}

@media (max-width: 767px) {
  .home-page .grants-logos {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.65rem;
  }

  .home-page .grants-logo {
    flex: 1 1 calc(50% - 0.35rem);
    width: auto;
    min-width: calc(50% - 0.35rem);
    max-width: 100%;
    min-height: 72px;
    padding: 0.7rem 0.75rem;
    border-radius: 14px;
  }

  /* Szeroki zestaw partnerów - pełna szerokość, gdy jest w rzędzie sam. */
  .home-page .grants-logo--partnerzy {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .home-page .grants-logo-image,
  .home-page .grants-logo--partnerzy .grants-logo-image,
  .home-page .grants-logo--wojewodztwo_slaskie .grants-logo-image,
  .home-page .grants-logo--klub_pro .grants-logo-image {
    max-height: 52px;
    max-width: 100%;
  }
}

@media (max-width: 991px) {
  .footer-showcase-hero {
    grid-template-columns: 1fr;
  }

  .footer-showcase-meta {
    grid-template-columns: 1fr;
  }

  .footer-showcase-meta-col--sections {
    justify-self: start;
  }

  .footer-showcase-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-showcase-legal {
    text-align: left;
    width: 100%;
  }

  .footer-showcase-legal-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .footer-showcase-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .footer-showcase-cta {
    width: 100%;
    justify-content: center;
  }
}
