.home-component {
	padding: var(--fanshild-section-space) 0;
}

.home-component__header {
	max-width: 780px;
	margin-bottom: 44px;
}

.home-component__header h2,
.home-certifications h2 {
	margin: 0 0 16px;
	font-size: clamp(34px, 4vw, 52px);
	line-height: 1.12;
	letter-spacing: -0.025em;
}

.home-component__header p:last-child,
.home-process__item p,
.home-why-us__item p,
.home-project-card p {
	color: var(--fanshild-muted);
	line-height: 1.7;
}

.home-capability {
	position: relative;
	z-index: 2;
	padding: 0 0 38px;
	background: var(--fanshild-white);
}

.home-capability__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: -28px;
	overflow: hidden;
	border: 1px solid var(--fanshild-border);
	border-radius: 12px;
	background: var(--fanshild-white);
	box-shadow: var(--fanshild-shadow);
}

.home-capability__item {
	padding: 28px 22px;
	text-align: center;
}

.home-capability__item + .home-capability__item {
	border-left: 1px solid var(--fanshild-border);
}

.home-capability__item strong,
.home-capability__item span {
	display: block;
}

.home-capability__item strong {
	margin-bottom: 6px;
	font-size: clamp(30px, 3vw, 42px);
	line-height: 1;
	color: var(--fanshild-blue);
}

.home-capability__item span {
	font-size: 14px;
	font-weight: 700;
	color: var(--fanshild-muted);
}

.home-process {
	position: relative;
	isolation: isolate;
	background:
		linear-gradient(90deg, rgba(238, 245, 249, 0.98) 0%, rgba(238, 245, 249, 0.88) 38%, rgba(238, 245, 249, 0.34) 72%, rgba(238, 245, 249, 0.16) 100%),
		url("/wp-content/uploads/2026/06/2-7-1024x768.webp") center 42% / cover no-repeat;
}

.home-process::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(246, 249, 251, 0.1), rgba(246, 249, 251, 0.7));
	content: "";
}

.home-process__panel {
	padding: clamp(34px, 5vw, 64px);
	border: 1px solid rgba(255, 255, 255, 0.8);
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.86);
	box-shadow: 0 28px 70px rgba(8, 38, 63, 0.16);
	backdrop-filter: blur(5px);
}

.home-process .home-component__header {
	max-width: 690px;
	margin-bottom: 34px;
}

.home-process .home-component__header h2,
.home-process__item h3 {
	color: var(--fanshild-ink);
}

.home-process .home-component__header > p:last-child,
.home-process__item p {
	color: var(--fanshild-muted);
}

.home-process__list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.home-process__item {
	position: relative;
	min-width: 0;
	padding: 18px 18px 22px;
	border: 1px solid rgba(215, 226, 233, 0.86);
	border-radius: 12px;
	background: var(--fanshild-white);
	box-shadow: 0 14px 32px rgba(8, 38, 63, 0.1);
}

.home-process__item::before {
	position: absolute;
	top: 50%;
	right: -15px;
	z-index: 2;
	width: 16px;
	height: 10px;
	background: var(--fanshild-cyan);
	clip-path: polygon(0 42%, 62% 42%, 62% 0, 100% 50%, 62% 100%, 62% 58%, 0 58%);
	content: "";
	transform: translateY(-50%);
}

.home-process__item:last-child::before {
	display: none;
}

.home-process__icon {
	display: grid;
	width: 48px;
	height: 48px;
	margin: -38px auto 16px;
	border: 4px solid var(--fanshild-white);
	border-radius: 50%;
	place-items: center;
	background: linear-gradient(145deg, var(--fanshild-cyan), var(--fanshild-blue));
	box-shadow: 0 8px 18px rgba(0, 111, 173, 0.2);
	color: var(--fanshild-white);
}

.home-process__icon svg {
	width: 25px;
	height: 25px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.55;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.home-process__step-heading {
	position: relative;
	padding-bottom: 12px;
}

.home-process__step-heading::after {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 34px;
	height: 2px;
	background: var(--fanshild-cyan);
	content: "";
}

.home-process__number {
	display: inline-block;
	margin: 0 0 6px;
	font-family: var(--fanshild-font-heading);
	font-size: 15px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.02em;
	color: var(--fanshild-cyan);
}

.home-process__item h3 {
	min-height: 54px;
	margin-bottom: 0;
	font-size: 17px;
}

.home-process__item > p {
	margin: 14px 0 0;
	font-size: 13px;
	line-height: 1.65;
}

.home-process__flow {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin-top: 28px;
	padding: 16px 20px;
	border: 1px solid rgba(218, 228, 234, 0.9);
	border-radius: 10px;
	background: rgba(244, 249, 252, 0.9);
}

.home-process__flow span {
	position: relative;
	padding: 0 18px;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	color: var(--fanshild-ink);
}

.home-process__flow span:not(:last-child)::after {
	position: absolute;
	top: 50%;
	right: -8px;
	font-size: 18px;
	font-weight: 400;
	color: var(--fanshild-cyan);
	content: "\2192";
	transform: translateY(-52%);
}

.home-why-us__item h3,
.home-project-card h3 {
	margin: 0 0 12px;
	font-size: 21px;
	font-weight: 600;
	line-height: 1.3;
}

.home-why-us {
	background: var(--fanshild-surface);
}

.home-why-us__layout {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(42px, 7vw, 96px);
}

.home-component__header--compact {
	margin-bottom: 0;
}

.home-why-us__list {
	display: grid;
	gap: 12px;
}

.home-why-us__item {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr);
	gap: 18px;
	padding: 22px;
	border: 1px solid var(--fanshild-border);
	border-radius: 10px;
	background: var(--fanshild-white);
}

.home-why-us__item > span {
	font-weight: 800;
	color: var(--fanshild-blue);
}

.home-why-us__item p,
.home-project-card p {
	margin: 0;
}

.home-component__header--with-action {
	display: flex;
	max-width: none;
	align-items: end;
	justify-content: space-between;
	gap: 28px;
}

.home-button--outline {
	flex: 0 0 auto;
	color: var(--fanshild-blue);
	border-color: var(--fanshild-blue);
}

.home-projects {
	overflow: hidden;
	background: var(--fanshild-white);
}

.home-project-showcase__slide {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
	gap: clamp(54px, 7vw, 108px);
	align-items: center;
	min-height: 560px;
}

.home-project-showcase__slide[hidden] {
	display: none;
}

.home-project-showcase__media {
	position: relative;
	height: 500px;
	margin-left: calc((100vw - min(1180px, calc(100vw - 48px))) / -2);
	padding: 42px 42px 42px max(24px, calc((100vw - min(1180px, calc(100vw - 48px))) / 2));
	overflow: hidden;
	border-radius: 0 48% 52px 0 / 0 28% 52px 0;
	background: #e8f7fa;
}

.home-project-showcase__media--missing {
	background: linear-gradient(145deg, #dce8ee, #edf7f9);
}

.home-project-showcase__image {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 0 43% 38px 0 / 0 22% 38px 0;
	object-fit: cover;
}

.home-project-showcase__content {
	max-width: 580px;
}

.home-project-showcase__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}

.home-project-showcase__tags span {
	padding: 5px 12px;
	border-radius: 999px;
	color: var(--fanshild-white);
	background: var(--fanshild-cyan);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.home-project-showcase__content h3 {
	margin: 0 0 24px;
	font-size: clamp(30px, 3.3vw, 46px);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.025em;
	color: var(--fanshild-ink);
}

.home-project-showcase__content p {
	margin: 0 0 26px;
	font-size: 17px;
	line-height: 1.65;
	color: var(--fanshild-muted);
}

.home-project-showcase__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 17px;
	font-weight: 700;
	color: var(--fanshild-blue);
	text-decoration: none;
}

.home-project-showcase__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 4px;
}

.home-project-showcase__controls button {
	display: grid;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	place-items: center;
	color: var(--fanshild-blue);
	background: transparent;
	font-size: 31px;
	line-height: 1;
	cursor: pointer;
}

.home-project-showcase__controls button:hover,
.home-project-showcase__controls button:focus-visible {
	color: var(--fanshild-white);
	background: var(--fanshild-blue);
}

.home-project-showcase__controls output {
	min-width: 64px;
	font-size: 16px;
	font-weight: 700;
	text-align: center;
	color: var(--fanshild-ink);
}

.home-certifications {
	padding: clamp(52px, 6vw, 76px) 0;
	border-block: 1px solid var(--fanshild-border);
	background: var(--fanshild-white);
}

.home-certifications__layout {
	display: grid;
	grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
	gap: clamp(34px, 6vw, 80px);
	align-items: center;
}

.home-certifications__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.home-certifications__list li {
	padding: 20px 16px;
	border-left: 3px solid var(--fanshild-blue);
	background: var(--fanshild-surface);
}

.home-certifications__list strong,
.home-certifications__list span {
	display: block;
}

.home-certifications__list strong {
	margin-bottom: 7px;
}

.home-certifications__list span {
	font-size: 12px;
	line-height: 1.4;
	color: var(--fanshild-muted);
}

@media (max-width: 1024px) {
	.home-process__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home-process__item::before {
		display: none;
	}

	.home-process__icon {
		margin-top: 0;
	}

	.home-project-showcase__slide {
		grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
		gap: 42px;
	}

	.home-project-showcase__media {
		height: 420px;
	}

	.home-certifications__layout,
	.home-why-us__layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.home-process {
		background-position: 62% center;
	}

	.home-process__panel {
		padding: 28px 18px;
		border-radius: 16px;
		backdrop-filter: blur(7px);
	}

	.home-process .home-component__header {
		margin-bottom: 28px;
	}

	.home-capability {
		padding-bottom: 18px;
	}

	.home-capability__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-top: -18px;
	}

	.home-capability__item + .home-capability__item {
		border-left: 0;
	}

	.home-capability__item:nth-child(even) {
		border-left: 1px solid var(--fanshild-border);
	}

	.home-capability__item:nth-child(n+3) {
		border-top: 1px solid var(--fanshild-border);
	}

	.home-process__list,
	.home-certifications__list {
		grid-template-columns: 1fr;
	}

	.home-project-showcase__slide {
		grid-template-columns: 1fr;
		gap: 32px;
		min-height: 0;
	}

	.home-project-showcase__media {
		height: 290px;
		margin: 0;
		padding: 14px;
		border-radius: 28px 48% 28px 28px / 28px 22% 28px 28px;
	}

	.home-project-showcase__image {
		border-radius: 18px 44% 18px 18px / 18px 20% 18px 18px;
	}

	.home-project-showcase__content h3 {
		font-size: clamp(30px, 9vw, 40px);
	}

	.home-project-showcase__content p {
		font-size: 16px;
	}

	.home-project-showcase__controls {
		margin-top: 28px;
	}

	.home-process__item {
		padding: 24px;
	}

	.home-process__item h3 {
		min-height: 0;
	}

	.home-process__flow {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.home-process__flow span:not(:last-child)::after {
		top: auto;
		right: 50%;
		bottom: -19px;
		transform: translateX(50%) rotate(90deg);
	}

	.home-component__header--with-action {
		align-items: stretch;
		flex-direction: column;
	}

	.home-button--outline {
		width: 100%;
	}

	.home-why-us__item {
		grid-template-columns: 34px minmax(0, 1fr);
		padding: 20px;
	}
}
