/**
 * Sekcje strony „Wizualizacje architektoniczne” (tools/sections/uslugi.py; Figma KARTS architecture visualizations
 * 2724:24047): hero z pigułką i dużym zdjęciem (niebieska mgła), ciemne sekcje z kartami „szkło” (kd-dark-card),
 * problem (zdjęcie z kartą), wizualizacje przyspieszają decyzje (zdjęcie w świecącej ramce), hasło z przyciskiem
 * i pakiety cenowe (kd-pricing, kd-price-card) na niebieskim gradiencie. Usługi 3D – assets/sections/offer (kd-offer--arch).
 */

/* ---------- Hero ---------- */

.kd-arch-hero {
	position: relative;
	overflow: clip;
	isolation: isolate;
}

/* Jasnoniebieska mgła za zdjęciem (dekoracja). */
.kd-arch-hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 60%;
	left: 50%;
	width: min(1900px, 150vw);
	height: 900px;
	transform: translate(-50%, -50%);
	background: radial-gradient(closest-side, rgb(11 152 255 / 0.3), rgb(11 152 255 / 0.1) 60%, transparent);
	pointer-events: none;
}

.kd-arch-hero .kd-arch-hero__text {
	max-width: 772px;
}

.kd-arch-hero .kd-arch-hero__text > * {
	margin: 0;
}

.kd-arch-hero .kd-arch-hero__badge {
	border-color: rgb(9 255 0 / 0.3);
	background: rgb(255 255 255 / 0.03);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.kd-arch-hero .kd-arch-hero__badge::before {
	background-color: #5ae07d;
}

.kd-arch-hero .kd-arch-hero__title {
	font-size: var(--wp--preset--font-size--heading-1);
	line-height: 1.2;
}

.kd-arch-hero .kd-arch-hero__lead {
	line-height: 1.4;
}

.kd-arch-hero .kd-arch-hero__text .wp-block-buttons {
	gap: var(--wp--preset--spacing--30);
	margin-top: var(--wp--preset--spacing--20);
}

.kd-arch-hero .kd-arch-hero__text .wp-block-button__link {
	min-height: 48px;
}

.kd-arch-hero .kd-arch-hero__text .is-style-outline .wp-block-button__link {
	background-color: var(--wp--preset--color--base);
}

.kd-arch-hero .kd-arch-hero__image {
	max-width: 1186px;
}

.kd-arch-hero .kd-arch-hero__image img {
	width: 100%;
	height: auto;
	aspect-ratio: 1186 / 667;
	border-radius: var(--wp--preset--border-radius--large);
	object-fit: cover;
}

/* ---------- Karty „szkło” na ciemnym tle ---------- */

.kd-dark-card {
	box-sizing: border-box;
	padding: 33px 17px;
	border: 1px solid rgb(255 255 255 / 0.1);
	border-radius: var(--wp--preset--border-radius--large);
	background: rgb(255 255 255 / 0.03);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.kd-dark-card > * {
	margin: 0;
}

.kd-dark-card .kd-dark-card__icon {
	display: grid;
	width: 48px;
	height: 48px;
	place-items: center;
	border-radius: 12px;
	background: rgb(182 196 255 / 0.2);
	line-height: 0;
}

.kd-dark-card .kd-dark-card__icon img {
	width: 32px;
	height: 32px;
}

.kd-dark-card .kd-dark-card__title {
	margin-top: 12px;
	color: #e2e2e2;
	line-height: 1.3;
}

.kd-dark-card .kd-dark-card__text {
	color: #c3c5d9;
	line-height: 1.4;
}

/* Karta szeroka: ikona w prawym górnym rogu. */
.kd-dark-card--wide {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: minmax(0, 1fr) 48px;
	column-gap: var(--wp--preset--spacing--40);
	padding: 17px;
}

.kd-dark-card--wide .kd-dark-card__icon {
	grid-row: 1 / span 2;
	grid-column: 2;
}

.kd-dark-card--wide .kd-dark-card__title {
	margin-top: 0;
}

.kd-dark-card--wide .kd-dark-card__text {
	max-width: 520px;
}

/* ---------- Bento: tekst z liczbą + 3 karty ---------- */

.kd-arch-bento {
	background-color: #0e0e0e;
}

.kd-arch-bento .kd-arch-bento__inner {
	max-width: 1281px;
	gap: 32px;
}

.kd-arch-bento .kd-arch-bento__text {
	flex: 0 1 515px;
	justify-content: space-between;
	min-width: 0;
}

.kd-arch-bento .kd-arch-bento__text > *,
.kd-arch-bento .kd-arch-bento__head > * {
	margin: 0;
}

.kd-arch-bento .kd-arch-bento__title {
	color: #e2e2e2;
}

.kd-arch-bento .kd-arch-bento__lead {
	color: #c3c5d9;
	line-height: 1.4;
}

.kd-arch-bento .kd-arch-bento__cards {
	flex: 1 1 734px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 32px;
	min-width: 0;
}

.kd-arch-stat {
	box-sizing: border-box;
	align-items: center;
	max-width: 380px;
	padding: 17px;
	gap: 12px;
	border: 1px solid rgb(255 255 255 / 0.1);
	border-radius: var(--wp--preset--border-radius--large);
	background: rgb(255 255 255 / 0.03);
}

.kd-arch-stat > * {
	margin: 0;
}

.kd-arch-stat .kd-arch-stat__icon {
	display: grid;
	flex: 0 0 40px;
	height: 40px;
	place-items: center;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	line-height: 0;
}

.kd-arch-stat .kd-arch-stat__icon img {
	width: 22px;
	height: 22px;
}

.kd-arch-stat .kd-arch-stat__text {
	color: #c3c5d9;
	line-height: 1.4;
}

/* ---------- Korzyści: 3 karty z punktami ---------- */

.kd-arch-benefits .kd-arch-benefits__cards {
	max-width: 1280px;
	gap: 32px;
}

.kd-dark-card--benefit {
	justify-content: space-between;
	min-height: 358px;
	padding: 25px 17px;
	border-color: rgb(255 255 255 / 0.05);
	border-radius: 32px;
}

.kd-dark-card--benefit .kd-dark-card__icon {
	width: 46px;
	height: 46px;
	border-radius: 0;
	background: none;
}

.kd-dark-card--benefit .kd-dark-card__icon img {
	width: 46px;
	height: 46px;
}

.kd-dark-card--benefit .kd-dark-card__title {
	margin-top: auto;
}

.kd-dark-card .kd-dark-card__checks {
	gap: 12px;
	padding-top: 8px;
	color: rgb(226 226 226 / 0.6);
	font-weight: 500;
	line-height: 1.3;
	text-transform: uppercase;
}

.kd-dark-card .kd-dark-card__checks li {
	gap: 8px;
}

.kd-dark-card .kd-dark-card__checks li::before {
	flex-basis: 12px;
	height: 12px;
	background: url("../../images/check-green.svg") center / contain no-repeat;
	-webkit-mask: none;
	mask: none;
}

.kd-arch-benefits .kd-arch-benefits__actions .wp-block-button {
	width: min(405px, 100%);
}

.kd-arch-benefits .kd-arch-benefits__actions .wp-block-button__link {
	width: 100%;
	min-height: 48px;
}

/* ---------- Problem i „przyspieszają decyzje”: zaokrąglone ciemne bloki ---------- */

.kd-arch-problem .kd-arch-problem__inner,
.kd-arch-smarter .kd-arch-smarter__inner {
	box-sizing: border-box;
	padding: 120px max(var(--wp--style--root--padding-left), (100% - 1281px) / 2);
	border-radius: var(--wp--preset--border-radius--large);
}

.kd-arch-problem .kd-arch-problem__inner {
	background-color: #0e0e0e;
	gap: 64px;
}

.kd-arch-smarter .kd-arch-smarter__inner {
	background-color: #131313;
	gap: 80px;
}

.kd-arch-problem .kd-arch-problem__media {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	overflow: hidden;
	border: 1px solid rgb(255 255 255 / 0.1);
	border-radius: var(--wp--preset--border-radius--large);
}

.kd-arch-problem .kd-arch-problem__image {
	margin: 0;
	line-height: 0;
}

.kd-arch-problem .kd-arch-problem__image img {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
}

.kd-arch-note {
	position: absolute;
	bottom: 20px;
	left: 20px;
	box-sizing: border-box;
	width: min(337px, calc(100% - 40px));
	margin: 0;
	padding: 17px;
	border: 1px solid rgb(255 255 255 / 0.1);
	border-radius: var(--wp--preset--border-radius--large);
	background: rgb(255 255 255 / 0.5);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: var(--wp--preset--color--contrast);
}

.kd-arch-note > *,
.kd-arch-note .kd-arch-note__text > * {
	margin: 0;
}

.kd-arch-note .kd-arch-note__title {
	font-size: var(--wp--preset--font-size--heading-5);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.3;
}

.kd-arch-note .kd-arch-note__desc {
	color: var(--wp--preset--color--muted);
}

.kd-arch-note .kd-arch-note__icon {
	flex: 0 0 40px;
	line-height: 0;
}

.kd-arch-note .kd-arch-note__icon img {
	width: 40px;
	height: 40px;
}

.kd-arch-problem .kd-arch-problem__text {
	flex: 1 1 0;
	min-width: 0;
}

.kd-arch-problem .kd-arch-problem__text > *,
.kd-arch-problem .kd-arch-problem__item > * {
	margin: 0;
}

.kd-arch-problem .kd-arch-problem__title {
	color: #e2e2e2;
}

.kd-arch-problem .kd-arch-problem__item {
	position: relative;
	padding-left: 36px;
}

.kd-arch-problem .kd-arch-problem__item::before {
	content: "";
	position: absolute;
	top: 6px;
	left: 0;
	width: 20px;
	height: 20px;
	background: url("../../images/cross-red.svg") center / contain no-repeat;
}

.kd-arch-problem .kd-arch-problem__item-title {
	color: #e2e2e2;
	font-size: var(--wp--preset--font-size--heading-4);
	line-height: 1.3;
}

.kd-arch-problem .kd-arch-problem__item-text {
	color: #c3c5d9;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.4;
}

.kd-arch-smarter .kd-arch-smarter__text {
	flex: 1 1 600px;
	min-width: 0;
}

.kd-arch-smarter .kd-arch-smarter__text > *,
.kd-arch-smarter .kd-arch-smarter__head > *,
.kd-arch-point .kd-arch-point__text > * {
	margin: 0;
}

.kd-arch-point .kd-arch-point__icon {
	display: grid;
	flex: 0 0 56px;
	height: 56px;
	place-items: center;
	border: 1px solid rgb(255 255 255 / 0.05);
	border-radius: var(--wp--preset--border-radius--medium);
	background: #2a2a2a;
	line-height: 0;
}

.kd-arch-point .kd-arch-point__icon img {
	width: 32px;
	height: 32px;
}

.kd-arch-point .kd-arch-point__title {
	color: #e2e2e2;
	line-height: 1.3;
}

.kd-arch-point .kd-arch-point__desc {
	color: #c3c5d9;
	line-height: 1.4;
}

/* Zdjęcie w świecącej ramce. */
.kd-arch-smarter .kd-arch-smarter__image {
	position: relative;
	flex: 0 1 600px;
	box-sizing: border-box;
	min-width: 0;
	margin: 0;
	padding: 17px;
	border: 1px solid rgb(255 255 255 / 0.1);
	border-radius: 32px;
	background: rgb(255 255 255 / 0.03);
	box-shadow: 0 0 40px -10px rgb(0 89 255 / 0.3);
	line-height: 0;
	isolation: isolate;
}

.kd-arch-smarter .kd-arch-smarter__image::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background: linear-gradient(135deg, #0059ff 0%, #b400d2 100%);
	opacity: 0.2;
	filter: blur(40px);
}

.kd-arch-smarter .kd-arch-smarter__image img {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	border-radius: var(--wp--preset--border-radius--large);
	object-fit: cover;
}

/* ---------- Hasło z przyciskiem ---------- */

.kd-arch-cta {
	padding-block: 160px;
}

.kd-arch-cta > * {
	max-width: 1102px;
}

.kd-arch-cta .kd-arch-cta__lead {
	line-height: 1.4;
}

.kd-arch-cta .kd-arch-cta__actions .wp-block-button {
	width: min(405px, 100%);
}

.kd-arch-cta .kd-arch-cta__actions .wp-block-button__link {
	width: 100%;
	min-height: 48px;
}

/* ---------- Pakiety cenowe ---------- */

.kd-pricing {
	background-image: linear-gradient(89.89deg, #0b98ff 23.52%, #0063d8 57.85%);
}

.kd-pricing .kd-section-head__lead,
.kd-pricing .is-style-eyebrow {
	color: var(--wp--preset--color--surface);
}

.kd-pricing .is-style-eyebrow {
	font-size: var(--wp--preset--font-size--large);
}

.kd-pricing .kd-pricing__cards {
	max-width: 1440px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.kd-price-card {
	position: relative;
	box-sizing: border-box;
	height: 100%;
	padding: 28px;
	border-radius: 14px;
	gap: 26px;
}

.kd-price-card > *,
.kd-price-card > * > * {
	margin: 0;
}

.kd-price-card .kd-price-card__title {
	line-height: 1.4;
}

.kd-price-card .kd-price-card__label {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
}

.kd-price-card .kd-price-card__text {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
}

.kd-price-card .kd-price-card__price {
	color: #7e7e7e;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
}

.kd-price-card .kd-price-card__price strong {
	color: var(--wp--preset--color--green);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
}

.kd-price-card .kd-price-card__price--main strong {
	font-size: var(--wp--preset--font-size--heading-4);
}

.kd-price-card .kd-price-card__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	list-style: none;
}

.kd-price-card .kd-price-card__list li {
	display: flex;
	gap: 7px;
	align-items: flex-start;
}

.kd-price-card .kd-price-card__list li::before {
	content: "";
	flex: 0 0 20px;
	height: 20px;
	background: url("../../images/check-thin.svg") center / contain no-repeat;
}

.kd-price-card .kd-price-card__foot {
	margin-top: auto;
}

.kd-price-card .kd-price-card__actions .wp-block-button__link {
	min-height: 40px;
}

.kd-price-card .kd-price-card__time {
	color: #7e7e7e;
	font-weight: 600;
}

.kd-price-card .kd-price-card__time strong {
	color: var(--wp--preset--color--contrast);
}

.kd-price-card--dark .kd-price-card__time strong {
	color: var(--wp--preset--color--base);
}

/* Wyróżniony pakiet: ramka 3 px z gradientem błękit → magenta (maska wycina środek). */
.kd-price-card--featured::before {
	content: "";
	position: absolute;
	inset: 0;
	padding: 3px;
	border-radius: inherit;
	background: linear-gradient(90deg, #33a0f4, #e500c6);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

/* ---------- Mniejsze ekrany ---------- */

@media (max-width: 1279px) {
	.kd-pricing .kd-pricing__cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.kd-arch-problem .kd-arch-problem__inner,
	.kd-arch-smarter .kd-arch-smarter__inner {
		padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--gutter);
		gap: var(--wp--preset--spacing--50);
	}
}

@media (max-width: 1023px) {
	.kd-arch-bento .kd-arch-bento__inner,
	.kd-arch-problem .kd-arch-problem__inner,
	.kd-arch-smarter .kd-arch-smarter__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.kd-arch-bento .kd-arch-bento__text,
	.kd-arch-bento .kd-arch-bento__cards,
	.kd-arch-problem .kd-arch-problem__media,
	.kd-arch-problem .kd-arch-problem__text,
	.kd-arch-smarter .kd-arch-smarter__text,
	.kd-arch-smarter .kd-arch-smarter__image {
		flex: 0 0 auto;
	}

	.kd-arch-bento .kd-arch-bento__text {
		gap: var(--wp--preset--spacing--40);
	}

	.kd-arch-benefits .kd-arch-benefits__cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.kd-dark-card--benefit {
		min-height: 0;
		gap: var(--wp--preset--spacing--20);
	}

	.kd-arch-cta {
		padding-block: var(--wp--preset--spacing--70);
	}
}

@media (max-width: 781px) {
	.kd-arch-bento .kd-arch-bento__cards,
	.kd-pricing .kd-pricing__cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.kd-arch-hero .kd-arch-hero__title {
		font-size: var(--wp--preset--font-size--heading-2);
	}
}
