/**
 * Style dla bloku Realizacja
 * @package WeblegendBlocks
 */

.wl-realizacja-block {
	--bg: #f5f5f5;
	--card: #ffffff;
	--muted: #12a1d9;
	--accent: #12a1d9;
	--accent-strong: #12a1d9;
	--stroke: rgba(0, 0, 0, 0.18);
	--shadow: 0 20px 70px rgba(255, 255, 255, 0.119);
	padding: 60px 20px;
	color: #e7f0eb;
	background: radial-gradient(
			120% 120% at 20% 20%,
			rgba(255, 255, 255, 0.08),
			transparent 40%
		),
		#ffffff;
}

.wl-real-wrapper {
	background: var(--bg);
	border-radius: 28px;
	border: 1px solid var(--stroke);
	box-shadow: var(--shadow);
	overflow: hidden;
	position: relative;
}

.wl-real-wrapper::after {
	content: "";
	position: absolute;
	inset: 0;

	pointer-events: none;
}

.wl-real-hero {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 32px;
	padding: 56px 56px 32px;
	position: relative;
	z-index: 1;
}

.wl-real-hero__content {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.wl-real-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 12px;
	color: var(--accent);
}

.wl-real-eyebrow::before {
	content: "";
	display: inline-block;
	width: 36px;
	height: 1px;
	background: var(--accent);
	opacity: 0.7;
}

.wl-real-title {
	font-size: clamp(26px, 4vw, 42px);
	line-height: 1.1;
	margin: 0;
	color: black;
}

.wl-real-lead {
	font-size: 17px;
	line-height: 1.7;
	color: var(--muted);
}

.wl-real-lead p:last-child {
	margin-bottom: 0;
}

.wl-real-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 10px;
}

.wl-real-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	border-radius: 14px;
	font-weight: 600;
	font-size: 14px;
	border: 1px solid var(--stroke);
	color: black;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.wl-real-button:hover {
	color: white !important;
}

.wl-real-button svg {
	width: 16px;
	height: 16px;
}

.wl-real-button.primary {
	background: linear-gradient(120deg, var(--accent), var(--accent-strong));
	color: white;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	border-color: transparent;
}

.wl-real-button.ghost {
	color: var(--accent);
}

.wl-real-button.ghost:hover a {
	color: black !important;
}

.wl-real-button:hover {
	transform: translateY(-2px);
	border-color: rgba(0, 0, 0, 0.35);
	box-shadow: 0 12px 30px rgba(10, 25, 22, 0.25);
}

.wl-real-hero__visual {
	align-self: stretch;
	display: flex;
	justify-content: flex-end;
}

.wl-real-visual-frame {
	border-radius: 20px;
	padding: 12px;
	border: 1px solid var(--stroke);
	position: relative;
	width: 100%;
	max-width: 520px;
}

.wl-real-visual-frame img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 14px;
	object-fit: cover;
	box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
}

.wl-real-visual-tag {
	position: absolute;
	bottom: 16px;
	left: 16px;
	background: rgba(10, 19, 17, 0.85);
	border: 1px solid var(--stroke);
	padding: 10px 14px;
	border-radius: 12px;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: white;
	backdrop-filter: blur(6px);
}

.wl-real-parameters {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	padding: 0 56px 32px;
	position: relative;
	z-index: 1;
}

.wl-real-parameter {
	background: white;
	border: 1px solid var(--stroke);
	border-radius: 18px;
	padding: 16px 18px;
}

.wl-real-parameter__label {
	margin: 0 0 6px;
	font-size: 12px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--accent);
	font-weight: bold;
}

.wl-real-parameter__value {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: black;
}

.wl-real-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 18px;
	padding: 0 56px 26px;
	position: relative;
	z-index: 1;
}

.wl-real-card {
	background: white;
	border: 1px solid var(--stroke);
	border-radius: 18px;
	padding: 24px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.wl-real-card.highlight {
	background: white;
	border-color: rgba(0, 0, 0, 0.35);
}

.wl-real-card.soft {
	background: white;
}

.wl-real-card a {
	color: var(--accent) !important;
}

.wl-real-card__eyebrow {
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
	font-weight: bold;
	margin: 0 0 10px;
}

.wl-real-card__body {
	color: #7a7a7a;
	line-height: 1.7;
	font-size: 15px;
}

.wl-real-card__body p:last-child {
	margin-bottom: 0;
}

.wl-real-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	padding: 0 56px 48px;
	position: relative;
	z-index: 1;
}

.wl-real-attachments {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wl-real-attachment {
	display: flex;
	align-items: center;
	gap: 10px;
	color: black;
	font-weight: 600;
}

.wl-real-attachment svg {
	color: var(--accent);
}

.wl-real-attachment a {
	color: black;
	text-decoration: none;
	border-bottom: 1px solid rgba(154, 230, 110, 0.35);
	padding-bottom: 2px;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.wl-real-attachment a:hover {
	color: var(--accent);
	border-color: var(--accent);
}

@media (max-width: 1024px) {
	.wl-real-hero {
		grid-template-columns: 1fr;
		padding: 40px 28px 24px;
	}

	.wl-real-parameters,
	.wl-real-grid,
	.wl-real-meta {
		padding: 0 28px 28px;
	}
}

@media (max-width: 640px) {
	.wl-realizacja-block {
		padding: 40px 14px;
	}

	.wl-real-hero {
		padding: 32px 20px 18px;
		gap: 22px;
	}

	.wl-real-actions {
		flex-direction: column;
	}

	.wl-real-button {
		justify-content: center;
		width: 100%;
	}

	.wl-real-parameters,
	.wl-real-grid,
	.wl-real-meta {
		padding: 0 20px 24px;
	}

	.wl-real-card {
		padding: 18px;
	}
}
