/* KD – Powiązane artykuły (3, cosine top-3). Mobile-first: stack -> 3 kolumny. */

.kd-related {
	margin: 44px 0 8px;
	padding-top: 28px;
	border-top: 1px solid #ececec;
}
.kd-related__title {
	font-size: 26px;
	line-height: 1.3;
	color: #010101;
	margin: 0 0 22px;
	position: relative;
	padding-top: 1.4rem;
}
.kd-related__title::after {
	content: "";
	position: absolute;
	top: 0.25rem;
	left: 0;
	width: 40px;
	height: 6px;
	background: linear-gradient(90deg, #fb761d 0 50%, #000 50% 100%);
	border-radius: 1px;
}

/* Mobile: 1 kolumna */
.kd-related__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

.kd-related__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.kd-related__card:hover {
	transform: translateY(-3px);
	border-color: #fb761d;
	box-shadow: 0 10px 26px rgba(1, 1, 1, .10);
}

.kd-related__thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #f3f3f3;
	overflow: hidden;
}
.kd-related__thumb .kd-related__img,
.kd-related__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.kd-related__thumb-fallback {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #fb761d 0%, #010101 100%);
	opacity: .12;
}

.kd-related__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px 18px 18px;
}
.kd-related__cat {
	align-self: flex-start;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #fb761d;
	background: #fff3e9;
	padding: 4px 10px;
	border-radius: 999px;
}
.kd-related__name {
	margin: 0;
	font-size: 17px;
	line-height: 1.4;
	font-weight: 600;
	color: #010101;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.kd-related__card:hover .kd-related__name {
	color: #fb761d;
}
.kd-related__meta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	font-size: 13px;
	color: #8a8a8a;
}
.kd-related__icon {
	flex: 0 0 auto;
	color: #fb761d;
}
.kd-related__arrow {
	margin-left: auto;
	font-size: 16px;
	color: #fb761d;
	transition: transform .2s ease;
}
.kd-related__card:hover .kd-related__arrow {
	transform: translateX(4px);
}

/* Tablet+ : 3 kolumny obok siebie */
@media (min-width: 700px) {
	.kd-related__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 22px;
	}
	.kd-related__title { font-size: 30px; }
	.kd-related__name { font-size: 16px; }
}
