/* Section base */
section.section {
  position: relative;
  min-block-size: 100svh;
  padding-block: clamp(64px, 12vh, 140px);
  display: grid;
  align-items: center;
}

section.section:nth-child(2n+1) {
  background: var(--bg);
}

section.section:nth-child(2n) {
  background: var(--bg-soft);
}

.section__inner {
  display: grid;
  gap: clamp(16px, 2.5vw, 28px);
}

/* Typography */
.kicker {
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #666;
  font-size: .78rem;
}

.title {
  font-size: clamp(2rem, 7vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
}

.subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: #444;
}

/* Hero section */
.hero {
  min-block-size: 100svh;
  padding-block: clamp(80px, 18vh, 200px);
  background: transparent !important;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.rwdots {
  position: absolute;
  top: 10%;
  left: 15%;
  width: 70%;
  height: 80%;
  background: url('/img/RWdots.svg') no-repeat center/contain;
  z-index: -1;
  pointer-events: none;
  rotate: 3deg;
}

.hero__logo {
  height: 38px;
  margin-bottom: 8px;
}

.hero__bigyear {
  font-family: "Bebas Neue", system-ui, sans-serif;
  font-size: clamp(5rem, 20vw, 18rem);
  line-height: .85;
  letter-spacing: .02em;
  color: #0a0a0a;
  text-shadow: 0 4px 0 rgba(0, 0, 0, .06);
}

.hero__script {
  font-family: "Dancing Script", cursive;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--red);
  font-weight: 600;
}

.hero__content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__boxes {
  position: relative;
  margin-top: 2rem;
}


@media screen and (max-width: 768px) {
	.hero__boxes {
	  font-size:1.2rem;
	}
	.hero__bigyear {
	  font-size: clamp(12rem, 20vw, 18rem);
	  line-height: .85;
	  letter-spacing: .02em;
	}
	#otwarcie h2.title {
		font-size: clamp(4rem, 7vw, 5rem);
		font-weight: 900;
		line-height: 1.05;
	}
	.hero__logo {
	  margin-bottom: 20px;
	}
	#kalendarium .y1946 .date > div > div > div > div > div {
		font-size: 1.4rem !important;
	}
	#kalendarium .date > div > div > div > div > div {
		font-size: 1.4rem !important;
	}
	#kalendarium .timeline > [class*="col-"]:nth-child(2n) .text > div {
		margin: 10px 0 0 10px !important;
	}
	#kalendarium .text > div > div > div {
	  position: relative !important;
	  min-height: 90px;
	}
	#kalendarium .text > div > div {
	  padding-bottom: 10% !important;
	  position: relative;
	}
	#kalendarium .timeline .item {
	  margin-bottom: 1rem !important;
	}
	#kalendarium .timeline > [class*="col-"]:nth-child(2) {
	 margin-top: 1rem !important;
	}
}

@media screen and (max-width: 768px) {
	#kalendarium .text > div > div > div > div {
		min-height: 150px;
	}
}

@media screen and (min-width: 769px) and (max-width: 992px) {
	.hero__boxes {
	  font-size:1.6rem;
	}
	.hero__bigyear {
	  font-size: clamp(12rem, 20vw, 18rem);
	  line-height: .85;
	  letter-spacing: .02em;
	}
	#kalendarium .y1946 .date > div > div > div > div > div {
		font-size: 1.4rem !important;
	}
	#kalendarium .date > div > div > div > div > div {
		font-size: 1.4rem !important;
	}
	#kalendarium .text > div > div > div > div {
		min-height: 200px;
	}
}

@media screen and (min-width: 993px) {
	.hero__boxes {
	  font-size:1.6rem;
	}
	#kalendarium .text > div > div > div > div {
		min-height: 200px;
	}
}

.hero__subtitle-box {
  background: #000;
  color: #fff;
  padding: clamp(16px, 2.5vw, 24px);
  border-radius: 4px;
  transform: rotate(4deg);
  font-weight: bold;
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
}

.hero__sub-subtitle-box {
  background: #a01f2c;
  color: #fff;
  padding: clamp(16px, 2.5vw, 24px);
  border-radius: 4px;
  transform: rotate(0deg);
  font-weight: bold;
  position: relative;
  z-index: 1;
  margin-left: 20px;
  margin-top: -10px;
}

/* Cards */
.card {
  background: 
    linear-gradient(180deg, #fff, #fff) padding-box,
    linear-gradient(180deg, #ececec, #dadada) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: var(--pad);
  box-shadow: var(--shadow);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--gray-2);
  font-weight: 700;
  color: #333;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1.1rem;
  border-radius: 12px;
  background: var(--red);
  color: white;
  font-weight: 900;
  border: 0;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.btn--ghost {
  background: #fff;
  color: #111;
  border: 1px solid var(--gray-2);
}

/* People module - Grid layout z oblewaniem */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  align-items: start;
}

#peopleList{
	display: contents;
}

/* Duża featured karta - zajmuje więcej miejsca */
.person-featured {
  grid-column: span 3;
  grid-row: span 6;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 400px;
}

.person-featured__photo {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 16px;
  object-fit: cover;
  background: #e9eef2;
}

.person-featured__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.person-featured__role {
  color: #555;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
}

.person-featured__bio {
  color: #333;
  line-height: 1.6;
}

/* Małe klocki - pojedyncze karty */
.person-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: #f9f9f9;
  color: inherit;
  cursor: pointer;
  text-align: center;
  transition: all .2s ease;
  min-height: 140px;
}

.person-item__photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #e9eef2 center/cover;
  margin: 0 auto;
}

.person-item__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.person-item__meta strong {
  display: block;
  font-size: .9rem;
  line-height: 1.25;
  font-weight: 700;
}

.person-item__meta small {
  color: #555;
  font-size: .75rem;
}

.person-item:hover {
  background: #fff;
  border-color: var(--gray-2);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.person-item.is-active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 12px 30px rgba(192, 14, 14, .25);
}

.person-item.is-active .person-item__meta small {
  color: #ffecec;
}

/* Responsive */
@media (max-width: 1200px) {
  .people-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

@media (max-width: 768px) {
  .people-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
  }
  
  .person-featured {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: auto;
  }
  
  .person-item {
    min-height: 120px;
    padding: 10px;
  }
  
  .person-item__photo {
    width: 60px;
    height: 60px;
  }
}

/* Ribbon (wstęga) */
.ribbon {
  position: absolute;
  left: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 100 / 23;
  background: url('/img/Wave.svg') no-repeat center;
  background-size: 100% auto;
  z-index: -1;
  pointer-events: none;
  opacity: 1;
}

@media screen and (max-width: 768px) {
	.ribbon {
		margin-top: 70%;
	}
}

@media screen and (min-width: 769px) and (max-width: 992px) {
	.ribbon {
		margin-top:35%;
	}
}

@media screen and (min-width: 993px) {
	.ribbon {
		margin-top:25%;
	}
}

.ribbon--light::before,
.ribbon--light::after {
  opacity: .85;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .15));
}

/* Image carousel */
#radio-kiedys-dzis .img-carousel {
  display: flex;
  flex-direction: row;
  gap: 16px;
  overflow-x: scroll;  
  overflow-y: hidden;
  scrollbar-width: auto;
}

#radio-kiedys-dzis .img-carousel a.gallery-photo {
  border-radius: 10px;
  border: 2px solid #ccc;
  overflow: hidden;     
  display: block;
}

#radio-kiedys-dzis .img-carousel img.slide {
  width: 100%;
  height: 100%;
  object-fit: cover;  
  display: block;
}


@media screen and (max-width: 768px) {
	#radio-kiedys-dzis .img-carousel a.gallery-photo {
	  flex: 0 0 calc(100% / 1.5);
	  height: 250px;
	}
}

@media screen and (min-width: 769px) and (max-width: 992px) {
	#radio-kiedys-dzis .img-carousel a.gallery-photo {
	  flex: 0 0 calc(100% / 2.5);
	  height: 300px;
	}
}

@media screen and (min-width: 993px) {
	#radio-kiedys-dzis .img-carousel a.gallery-photo {
	  flex: 0 0 calc(100% / 3.5);
	  height: 350px;
	}
}

/* Webkit (Chrome, Safari, Edge) */
#radio-kiedys-dzis .img-carousel::-webkit-scrollbar {
  height: 12px;
}
#radio-kiedys-dzis .img-carousel::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 6px;
}
#radio-kiedys-dzis .img-carousel::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 6px;
}
#radio-kiedys-dzis .img-carousel::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Firefox */
#radio-kiedys-dzis .img-carousel {
  scrollbar-width: auto;
  scrollbar-color: #888 #f1f1f1;
}


#kalendarium .timeline {
    position:relative;
	background: url(/img/kalendarium/red_pixel.png) repeat-y 22.5px top;
    padding-top: 2rem;
}
#kalendarium .date {

}

#kalendarium .timeline .item {
    position: relative;
    margin-bottom: 4rem;
}

#kalendarium .date > div {
    margin: 10px 0 10px 40px;
}
#kalendarium .date > div > div {
    background-color: #a01f2c;
    padding-bottom: 100%;
    position: relative;
	border-radius: 40px;
}
#kalendarium .date > div > div > div {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
#kalendarium .date > div > div > div > div {
    color: #fff;
    width: 100%;
    height: 100%;
    display: table;
}
#kalendarium .date > div > div > div > div > div {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
    color: #fff;
    font-weight: 700;
    font-size: 2rem;
    text-transform: uppercase;
}
#kalendarium .text > div {
    padding-top: 10px;
}
#kalendarium .text .decor {
    display: none;
}
#kalendarium .date span {
    display: block;
    text-align: center;
    font-weight: 300;
    font-size: 0.6em;
}
#kalendarium .romb {
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 1px solid #c92b28;
    display: block;
    position: absolute;
    transform: rotate(45deg);
    left: 13px;
    z-index: 1;
    top: 12px;
}
#kalendarium .y1946 .date > div > div {
    background-color: transparent;
    background-image: url('/img/kalendarium/1946.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
}
#kalendarium .y1946 .date > div > div > div > div > div {
    color: #c92b28;
}
#kalendarium .y1946 .decor span {
    background-image: url('/img/kalendarium/star.png');
    background-repeat: no-repeat;
    background-size: 80% auto;
    background-position: center center;
}
#kalendarium .y2017 .date > div > div {
    background-color: transparent;
    background-image: url('/img/kalendarium/2017.jpg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
}
#kalendarium .y1946 .date > div > div > div > div > div {
}
#kalendarium .headerctn .floating {
    font-size: 1.2em;
    text-align: center;
    padding-bottom: 1.5em;
}
#kalendarium .headerctn .floating span {
    display: block;
    font-size: 1.6em;
}





#kalendarium .timeline {
	background: url(/img/kalendarium/red_pixel.png) repeat-y 22.5px top;
	background-position: 50% top;
}
#kalendarium .timeline > [class*='col-']:nth-child(odd) {
	margin-top: -7.5%;
}
#kalendarium .timeline > [class*='col-']:nth-child(even) {
	margin-top: 4%;
}
#kalendarium .timeline > [class*='col-']:nth-child(odd) .romb {
	left: initial;
	right: -11px;
}
#kalendarium .timeline > [class*='col-']:nth-child(even) .romb {
	left: -9px;
}
#kalendarium .timeline > [class*='col-']:nth-child(odd) .date {

}
#kalendarium .timeline > [class*='col-']:nth-child(even) .date {
	left: 50%;
	position: absolute;
}
#kalendarium .timeline > [class*='col-']:nth-child(even) .date > div {
	margin: 10px 40px 0 0;
}
#kalendarium .timeline > [class*='col-']:nth-child(even) .text > div {
	margin: 10px 0 0 40px;
}
#kalendarium .timeline > [class*='col-']:nth-child(even) .text .decor {
	text-align: right;
	right: 0;
	left: -42px;
}
#kalendarium .timeline > [class*='col-']:nth-child(odd) .text .decor {

}
#kalendarium .text .decor {
	display: block;
	position: absolute;
	background-image: url('/img/kalendarium/red_pixel.png');
	background-repeat: repeat-x;
	background-position: left center;
	text-align: left;
	top: 0;
	left: 0;
	right: -43px;
}
#kalendarium .text .decor span {
	display: inline-block;
	width: 20px;
	height: 20px;
	background-color: #c92b28;
	border-radius: 10px;
}
#kalendarium .text > div > div {
	padding-bottom: 100%;
	position: relative;
}
#kalendarium .text > div > div > div {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}
#kalendarium .text > div > div > div > div {
	width: 100%;
	height: 100%;
	display: table;
}
#kalendarium .text > div > div > div > div > div {
	display: table-cell;
	text-align: left;
	vertical-align: middle;
	font-size: 1rem;
	font-weight: 300;
	padding-left: 1rem;
}    
#kalendarium .timeline > [class*='col-']:nth-child(odd) .text {

}
#kalendarium .timeline > [class*='col-']:nth-child(even) .text {
	right: 50%;
}
#kalendarium .timeline > [class*='col-']:nth-child(even) .text > div > div > div > div > div {
	text-align: right;
	padding-right: 1rem;
}
#kalendarium .timeline > [class*='col-']:first-child {
	margin-top: 0;
}
#kalendarium .timeline > [class*='col-']:nth-child(2) {
	margin-top: 12%;
}    
#kalendarium .text > div {
	padding-top: 0;
	margin: 10px 40px 10px 0;
}
#kalendarium .date > div {
	margin: 10px 0 10px 40px;
}

@media screen and (max-width: 575px) {
	#kalendarium .text .decor {display: none;}
	#kalendarium .text > div > div > div > div > div {
		vertical-align: middle;
	}   
	#kalendarium .timeline > [class*="col-"]:nth-child(2n+1) {
		margin-top: 4.5%;
	}
	#kalendarium span.romb {display:none;}
}

@media screen and (min-width: 576px) and (max-width: 768px) {
	#kalendarium .timeline > [class*="col-"]:nth-child(2n+1) {
		margin-top: 4.5%;
	}
	#kalendarium span.romb {display:none;}
	#kalendarium .text .decor {display: none;}
	#kalendarium .text > div > div > div > div > div {
		vertical-align: middle;
	}   
}

@media screen and (min-width: 769px) and (max-width: 992px) {
	#kalendarium .text > div > div > div > div > div {
		font-size:0.6em;
	} 
}

#kalendarium .timeline > .col-12 {
    position: relative;
}

#audycje img {border-radius: 15px;}

.sparkle-text {
  position: relative;
  display: inline-block;
  font-size: 48px;
  font-weight: bold;
}

.sparkle {
  position: absolute;
  pointer-events: none;
  animation: sparkle 0.8s ease-out forwards;
}

.sparkle::before,
.sparkle::after {
  content: '';
  position: absolute;
  background: white;
}

.sparkle::before {
  width: 2px;
  height: 10px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.sparkle::after {
  width: 10px;
  height: 2px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

@keyframes sparkle {
  0% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1) rotate(180deg);
  }
  100% {
    opacity: 0;
    transform: scale(0) rotate(360deg);
  }
}

.y1946 .audio-player button {
	border: none;
	background: none;
	color: #a01f2c;
}

.audio-player button {
	border: none;
	background: none;
	color: #fff;
	margin-bottom: 10px;
}

.audio-player {
	cursor: pointer;
}

.y1946 .audio-player .btn-restart {
    margin-left: 6px;
    border: none;
    background: none;
    color: #a01f2c;
    cursor: pointer;
}

.audio-player .btn-restart {
    margin-left: 6px;
    border: none;
    background: none;
    color: #fff;
    cursor: pointer;
}

.card h3 {
    display: flex;
    align-items: center;
    gap: 0.3em; /* odstęp między słowem a ikoną */
    flex-wrap: nowrap; /* tekst + ikona zawijają się razem */
    white-space: normal; /* pozwala łamać linię */
	cursor: pointer;
}

.card h3 span.program-play {color:#a01f2c;}

@media (max-width: 575.98px) {
	.qr img {
		height: 110px;
	}
	.qr img.look {
		height: 70px;
		margin-top:25px;
	}
}
@media (min-width: 576px) {
	.qr img {
		height: 110px;
	}
	.qr img.look {
		height: 110px;
		margin-top:35px;
	}
}
@media (min-width: 768px) {
	.qr img {
		height: 150px;
	}
	.qr img.look {
		height: 110px;
		margin-top:35px;
	}
}