.iqg-realizacje-loop {
	background: var(--iqg-page-background, #f9f9f9);
}

.iqg-realizacje-loop__inner {
	width: min(1280px, calc(100% - 48px));
	margin: 0 auto;
}

.iqg-realizacje-loop__head {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
	align-items: center;
}

.iqg-realizacje-loop__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 16px;
	color: #7fa037;
	font-size: 14px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0;
}

.iqg-realizacje-loop__eyebrow::before {
	content: "";
	width: 38px;
	height: 2px;
	background: currentColor;
}

.iqg-realizacje-loop h2 {
	max-width: 780px;
	margin: 0;
	color: #103f1c;
	font-size: clamp(38px, 5vw, 74px);
	line-height: 0.98;
	letter-spacing: 0;
}

.iqg-realizacje-loop__intro {
	color: rgba(19, 35, 24, 0.72);
	font-size: clamp(17px, 1.35vw, 20px);
	line-height: 1.55;
}

.iqg-realizacje-loop__intro p {
	margin: 0;
}

.iqg-realizacje-loop__intro p + p {
	margin-top: 12px;
}

.iqg-realizacje-loop__subtitle {
	color: #1b4f27;
	font-weight: 800;
}

.iqg-realizacje-loop__grid {
	width: 100%;
}

.iqg-realizacje-loop__grid--cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	align-items: stretch;
}

.iqg-realizacje-loop-item {
	height: 100%;
	min-width: 0;
}

.iqg-realizacje-card {
	position: relative;
	display: flex;
	min-width: 0;
	height: 100%;
	flex-direction: column;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid rgba(16, 63, 28, 0.12);
	border-radius: 8px;
	box-shadow: 0 18px 48px rgba(16, 63, 28, 0.08);
}

.iqg-realizacje-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	height: clamp(230px, 18vw, 270px);
	background: #153f1e;
	text-decoration: none;
}

.iqg-realizacje-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.iqg-realizacje-card__placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	padding: 28px;
	background: linear-gradient(135deg, #103f1c 0%, #2a712e 56%, #94b83d 100%);
	color: #ffffff;
	font-size: 24px;
	font-weight: 850;
	line-height: 1.1;
	text-align: center;
}

.iqg-realizacje-card__badge {
	position: absolute;
	right: 14px;
	bottom: 14px;
	max-width: calc(100% - 28px);
	padding: 8px 12px;
	border-radius: 999px;
	background: #7fa037;
	color: #ffffff;
	font-size: 12px;
	font-weight: 850;
	line-height: 1;
	text-transform: uppercase;
}

.iqg-realizacje-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 24px;
}

.iqg-realizacje-card__meta,
.iqg-realizacje-card__type {
	color: rgba(16, 63, 28, 0.64);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.35;
	text-transform: uppercase;
}

.iqg-realizacje-card h3 {
	margin: 10px 0 10px;
	color: #103f1c;
	font-family: var(--iqg-font-heading, "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-size: clamp(22px, 2vw, 28px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: 0;
}

.iqg-realizacje-card h3 a {
	color: inherit;
	display: block;
	text-decoration: none;
}

.iqg-realizacje-card__title-separator {
	color: #103f1c;
	font-family: var(--iqg-font-heading, "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-style: normal;
	font-weight: 700;
}

.iqg-realizacje-card__title-accent {
	color: #4f7f24;
	font-family: var(--iqg-font-accent, "Fraunces", Georgia, serif);
	font-style: var(--iqg-title-accent-style, italic);
	font-weight: var(--iqg-title-accent-weight, 400);
}

.iqg-realizacje-card__type {
	margin: 0 0 12px;
	color: #7fa037;
}

.iqg-realizacje-card__excerpt {
	margin: 0 0 22px;
	color: rgba(19, 35, 24, 0.72);
	font-size: 16px;
	line-height: 1.48;
}

.iqg-realizacje-card__link {
	display: inline-flex;
	width: fit-content;
	align-items: center;
	justify-content: center;
	margin-top: auto;
	padding: 13px 18px;
	border-radius: 999px;
	background: #1f7a2e;
	color: #ffffff;
	font-size: 15px;
	font-weight: 850;
	text-decoration: none;
}

.iqg-realizacje-card__link:hover,
.iqg-realizacje-card__link:focus {
	background: #103f1c;
	color: #ffffff;
}

.iqg-realizacje-loop__actions {
	display: flex;
	justify-content: center;
}

a.iqg-realizacje-loop__button {
	display: inline-flex;
	min-height: 52px;
	align-items: center;
	justify-content: center;
	padding: 14px 24px;
	border: 1px solid rgba(16, 63, 28, 0.18);
	border-radius: 999px;
	background: #1f7a2e;
	color: #ffffff;
	font-weight: 850;
	text-decoration: none;
}

a.iqg-realizacje-loop__button:hover,
a.iqg-realizacje-loop__button:focus {
	background: #103f1c;
	color: #ffffff;
}

.iqg-realizacje-loop__empty {
	padding: 24px;
	border: 1px dashed rgba(16, 63, 28, 0.28);
	border-radius: 8px;
	color: #103f1c;
}

.iqg-realizacje-archive-template .iqg-realizacje-loop {
	min-height: 70vh;
	padding: clamp(58px, 7vw, 96px) 0 clamp(68px, 8vw, 110px);
	background: var(--iqg-page-background, #f9f9f9);
}

.iqg-realizacje-archive-template .iqg-realizacje-loop__head {
	margin-bottom: clamp(26px, 3vw, 38px);
}

.iqg-realizacje-archive-template .iqg-realizacje-loop__actions {
	display: none;
}

@media (max-width: 1024px) {
	.iqg-realizacje-loop__head {
		grid-template-columns: 1fr;
		align-items: start;
	}

	.iqg-realizacje-loop__grid--cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.iqg-realizacje-loop__inner {
		width: min(100% - 28px, 1280px);
	}

	.iqg-realizacje-loop h2 {
		font-size: clamp(34px, 11vw, 48px);
		line-height: 1.02;
	}

	.iqg-realizacje-card__body {
		padding: 22px;
	}

	.iqg-realizacje-card__media {
		height: 220px;
	}

	.iqg-realizacje-loop__grid--cards {
		grid-template-columns: 1fr;
	}
}
