/* Poprawka dla nowych sekcji strony głównej - osobny plik omija cache starego style.css */
.stats-section {
  padding-top: 20px;
}

.calls-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 189, 53, .16), rgba(255, 122, 24, .07));
  border: 1px solid rgba(255, 189, 53, .22);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
}

.calls-box h2 {
  margin: 12px 0 8px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1;
}

.calls-box p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.calls-number {
  min-width: 230px;
  padding: 24px;
  border-radius: 24px;
  text-align: center;
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .1);
}

.calls-number strong {
  display: block;
  font-size: clamp(58px, 9vw, 104px);
  line-height: .9;
  color: #ffbd35;
  text-shadow: 0 12px 34px rgba(255, 122, 24, .22);
}

.calls-number span {
  display: block;
  margin-top: 10px;
  color: #f8fafc;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
}

.news-card-with-image {
  overflow: hidden;
}

.news-image {
  display: block;
  width: calc(100% + 48px);
  height: 220px;
  margin: -24px -24px 18px;
  object-fit: cover;
  background: rgba(0, 0, 0, .24);
  border-bottom: 1px solid var(--border);
}

.empty-box {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .065);
  border: 1px solid var(--border);
  text-align: center;
}

.empty-box h3 {
  margin: 0 0 8px;
}

.empty-box p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .calls-box {
    grid-template-columns: 1fr;
  }

  .calls-number {
    min-width: 0;
    width: 100%;
  }
}

/* Skróty aktualności na stronie głównej */
.news-excerpt {
  display: -webkit-box;
  min-height: calc(1.6em * 5);
  margin-bottom: 18px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  padding: 11px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffbd35, #ff7a18);
  color: #17120a !important;
  font-weight: 1000;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(255, 122, 24, .2);
  transition: transform .18s ease, filter .18s ease;
}

.news-read-more:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

/* Pełna podstrona aktualności */
.article-page {
  min-height: calc(100vh - 170px);
  padding: 64px 0 80px;
}

.article-container {
  max-width: 1120px;
}

.article-back {
  display: inline-flex;
  margin-bottom: 22px;
  color: #ffc46b;
  font-weight: 900;
  text-decoration: none;
}

.article-card {
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255, 255, 255, .065);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}

.article-header {
  max-width: 900px;
  margin: 0 auto 32px;
  text-align: center;
}

.article-header h1,
.article-not-found h1 {
  margin: 15px 0 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
}

.article-image-wrap {
  display: flex;
  justify-content: center;
  margin: 0 auto 36px;
}

.article-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 720px;
  border-radius: 20px;
  object-fit: contain;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
}

.article-content {
  max-width: 900px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.article-not-found {
  text-align: center;
}

.article-not-found p {
  margin-bottom: 24px;
  color: var(--muted);
}

@media (max-width: 700px) {
  .article-page {
    padding: 36px 0 54px;
  }

  .article-card {
    border-radius: 20px;
  }

  .article-content {
    font-size: 16px;
    line-height: 1.7;
  }
}

/* =========================================================
   AKTUALNOŚCI: STAŁA WYSOKOŚĆ, WIELE ZDJĘĆ I WYPEŁNIACZ
========================================================= */
.news-grid {
  align-items: stretch;
}

.news-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.news-card-with-image {
  overflow: hidden;
}

.news-media {
  position: relative;
  display: block;
  width: calc(100% + 48px);
  height: 220px;
  flex: 0 0 220px;
  margin: -24px -24px 18px;
  overflow: hidden;
  background: rgba(0, 0, 0, .28);
  border-bottom: 1px solid var(--border);
}

.news-media .news-image {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  background: rgba(0, 0, 0, .24);
  border: 0;
}

.news-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 189, 53, .16), transparent 42%),
    linear-gradient(135deg, #182231, #0c111a);
}

.news-image-placeholder::before,
.article-placeholder::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: linear-gradient(115deg, transparent 36%, rgba(255, 255, 255, .045) 50%, transparent 64%);
  transform: rotate(-8deg);
}

.news-image-placeholder img {
  position: relative;
  width: 100px;
  max-height: 115px;
  object-fit: contain;
  opacity: .56;
  filter: grayscale(.25) drop-shadow(0 16px 28px rgba(0, 0, 0, .45));
}

.news-image-placeholder span {
  position: relative;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.news-photo-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 8, 13, .78);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 900;
}

.news-excerpt {
  flex: 0 0 auto;
}

.news-read-more {
  align-self: flex-start;
  margin-top: auto;
}

/* =========================================================
   PEŁNY ARTYKUŁ: SLIDER ZDJĘĆ
========================================================= */
.article-slider {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 38px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 22px;
  background: rgba(0, 0, 0, .3);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
  outline: none;
}

.article-slider:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 189, 53, .28), 0 18px 50px rgba(0, 0, 0, .3);
}

.article-slides {
  position: relative;
  min-height: clamp(300px, 56vw, 680px);
}

.article-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(.985);
  transition: opacity .28s ease, transform .28s ease;
}

.article-slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.article-slider .article-image {
  display: block;
  width: 100%;
  height: clamp(300px, 56vw, 680px);
  max-width: none;
  max-height: none;
  border-radius: 0;
  object-fit: contain;
  background: #080c12;
  box-shadow: none;
}

.article-slider-arrow,
.sponsors-arrow {
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  background: rgba(5, 8, 13, .72);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}

.article-slider-arrow:hover,
.sponsors-arrow:hover {
  transform: scale(1.06);
  background: rgba(255, 122, 24, .9);
}

.article-slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transform: translateY(-50%);
  font-size: 34px;
  line-height: 1;
}

.article-slider-arrow:hover {
  transform: translateY(-50%) scale(1.06);
}

.article-slider-prev {
  left: 16px;
}

.article-slider-next {
  right: 16px;
}

.article-slider-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 58px;
  padding: 10px 18px;
  background: linear-gradient(transparent, rgba(3, 6, 10, .88));
}

.article-slider-counter {
  color: rgba(255, 255, 255, .86);
  font-size: 13px;
  font-weight: 800;
}

.article-slider-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-slider-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .38);
  cursor: pointer;
  transition: width .18s ease, border-radius .18s ease, background .18s ease;
}

.article-slider-dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
}

.article-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 15px;
  min-height: 360px;
  max-width: 1000px;
  margin: 0 auto 38px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 189, 53, .15), transparent 42%),
    linear-gradient(135deg, #182231, #0c111a);
}

.article-placeholder img {
  position: relative;
  width: 180px;
  max-height: 210px;
  object-fit: contain;
  opacity: .48;
  filter: grayscale(.25) drop-shadow(0 20px 34px rgba(0, 0, 0, .46));
}

.article-placeholder span {
  position: relative;
  color: rgba(255, 255, 255, .74);
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

/* =========================================================
   SLIDER PARTNERÓW „WSPIERAJĄ NAS”
========================================================= */
.sponsors-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 100%, rgba(255, 122, 24, .08), transparent 40%),
    rgba(255, 255, 255, .012);
}

.sponsors-slider {
  position: relative;
  padding: 0 58px;
}

.sponsors-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 22px;
}

.sponsors-viewport::-webkit-scrollbar {
  display: none;
}

.sponsors-track {
  display: flex;
  gap: 15px;
  min-width: max-content;
  padding: 4px;
}

.sponsor-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 205px;
  height: 128px;
  flex: 0 0 205px;
  padding: 20px;
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .16);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.sponsor-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 21px 44px rgba(0, 0, 0, .24);
}

.sponsor-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sponsors-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  line-height: 1;
}

.sponsors-arrow:hover {
  transform: translateY(-50%) scale(1.06);
}

.sponsors-arrow-prev {
  left: 0;
}

.sponsors-arrow-next {
  right: 0;
}

.sponsors-slider-static .sponsors-arrow {
  display: none;
}

.sponsors-slider-static {
  padding: 0;
}

@media (max-width: 700px) {
  .news-media {
    height: 205px;
    flex-basis: 205px;
  }

  .article-slider-arrow {
    width: 42px;
    height: 42px;
  }

  .article-slider-prev {
    left: 9px;
  }

  .article-slider-next {
    right: 9px;
  }

  .article-placeholder {
    min-height: 280px;
  }

  .sponsors-slider {
    padding: 0 42px;
  }

  .sponsor-card {
    width: min(220px, calc(100vw - 124px));
    flex-basis: min(220px, calc(100vw - 124px));
    height: 120px;
  }

  .sponsors-arrow {
    width: 36px;
    height: 36px;
  }
}

.sponsors-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 760px;
  min-height: 128px;
  margin: 0 auto;
  padding: 22px 28px;
  border: 1px dashed rgba(255, 189, 53, .24);
  border-radius: 22px;
  background: rgba(255, 255, 255, .035);
  color: var(--muted);
  text-align: left;
}

.sponsors-empty img {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  object-fit: contain;
  opacity: .38;
}

.sponsors-empty p {
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 560px) {
  .sponsors-empty {
    flex-direction: column;
    text-align: center;
  }
}
