.md-home-services {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 72px 24px 48px;
	background: #f7f6f1;
	color: #20282b;
}

.md-home-services *,
.md-home-services *::before,
.md-home-services *::after {
	box-sizing: border-box;
}

.md-home-services__inner {
	width: min(1080px, 100%);
	margin: 0 auto;
}

.md-home-services__eyebrow {
	margin: 8px 0 0;
	color: #52602b;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .18em;
	text-align: center;
}

.md-home-services__title {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #3f4d20;
	font-size: clamp(34px, 4.2vw, 54px);
	font-weight: 800;
	letter-spacing: .05em;
	line-height: 1.3;
	text-align: center;
}

.md-home-services__title::before,
.md-home-services__title::after {
	display: none;
}

.md-home-services__lead {
	margin: 24px auto 42px;
	color: #2f342e;
	font-size: 17px;
	line-height: 1.9;
	text-align: center;
}

.md-home-services__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.md-home-service-card {
	position: relative;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	border-radius: 6px;
	background: #e3e3e1;
	box-shadow: none;
}

.md-home-service-card-link {
	display: block;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.md-home-service-card-link .md-home-service-card {
	height: 100%;
	transition: transform .22s ease, box-shadow .22s ease;
}

.md-home-service-card-link:hover .md-home-service-card,
.md-home-service-card-link:focus-visible .md-home-service-card {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(40, 52, 21, .16);
}

.md-home-service-card--wide {
	grid-column: 1 / -1;
}

.md-home-service-card__number {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 78px;
	height: 54px;
	clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%);
	background: #43531f;
	color: #fff;
	font-size: 24px;
	font-weight: 800;
}

.md-home-service-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 12px;
	min-height: 260px;
	padding: 30px;
	background: linear-gradient(135deg, #eeeeec, #d9d9d7);
}

.md-home-service-card__placeholder svg {
	width: 62px;
	height: auto;
	fill: none;
	stroke: #a3a3a1;
	stroke-width: 3;
}

.md-home-service-card__placeholder span {
	color: #8b8b88;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
}

.md-home-service-card__photo {
	min-height: 260px;
	background: #d9d9d7;
}

.md-home-service-card__photo img {
	display: block;
	width: 100%;
	height: 260px;
	object-fit: cover;
	object-position: center center;
}

.md-home-service-card--boat-preview .md-home-service-card__photo--boat img {
	width: 100%;
	height: 260px;
	object-fit: cover;
	object-position: center 55%;
}

.md-home-service-card--heavy-preview .md-home-service-card__photo--heavy {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	min-height: 304px;
	background: #f8f6f1;
}

.md-home-service-card--heavy-preview .md-home-service-card__photo--heavy img {
	width: 100%;
	height: 200px;
	object-fit: contain;
	object-position: center top;
}

.md-home-service-card--precision .md-home-service-card__photo--precision {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	min-height: 304px;
	background: #f8f6f1;
}

.md-home-service-card--precision .md-home-service-card__photo--precision img {
	width: 100%;
	height: 200px;
	object-fit: contain;
	object-position: center top;
}

.md-home-service-card--piano .md-home-service-card__photo--piano {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	min-height: 304px;
	background: #f8f6f1;
}

.md-home-service-card--piano .md-home-service-card__photo--piano img {
	width: 100%;
	height: 200px;
	object-fit: contain;
	object-position: center top;
}

.md-home-service-card--medical .md-home-service-card__photo--medical {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	min-height: 304px;
	background: #f8f6f1;
}

.md-home-service-card--medical .md-home-service-card__photo--medical img {
	width: 100%;
	height: 200px;
	object-fit: contain;
	object-position: center top;
}

.md-home-service-card--other .md-home-service-card__photo--other {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	min-height: 464px;
	background: #f8f6f1;
}

.md-home-service-card--other .md-home-service-card__photo--other img {
	width: 100%;
	height: 360px;
	object-fit: contain;
	object-position: center top;
}

.md-home-service-card__label {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 104px;
	padding: 18px 28px;
	background: linear-gradient(90deg, #364718, #53642a);
	color: #fff;
}

.md-home-service-card__label > div {
	min-width: 0;
}

.md-home-service-card__label h3 {
	margin: 0;
	color: inherit;
	font-size: clamp(20px, 2vw, 27px);
	font-weight: 800;
	letter-spacing: .03em;
	line-height: 1.4;
}

.md-home-service-card__label p {
	margin: 4px 0 0;
	color: rgba(255, 255, 255, .9);
	font-size: 14px;
	line-height: 1.55;
}

.md-home-service-card__arrow {
	flex: 0 0 auto;
	margin-left: 20px;
	font-size: 38px;
	font-weight: 300;
	line-height: 1;
}

.md-home-service-card__status {
	flex: 0 0 auto;
	margin-left: 20px;
	padding: 7px 12px;
	border: 1px solid rgba(255, 255, 255, .52);
	border-radius: 999px;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	line-height: 1;
	white-space: nowrap;
}

.md-home-services__line {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 24px;
	margin-top: 26px;
	padding: 22px 28px;
	border: 1px solid #e6e6df;
	border-radius: 5px;
	background: #fff;
}

.md-home-services__line--net {
	grid-template-columns: 1fr auto;
}

.md-home-services__line-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	border-radius: 18px;
	background: #28c840;
	color: #fff;
	font-size: 16px;
	font-weight: 800;
}

.md-home-services__line-copy h3 {
	margin: 0;
	color: #34421f;
	font-size: 21px;
	font-weight: 800;
}

.md-home-services__line-copy p {
	margin: 5px 0 0;
	color: #555b52;
	font-size: 14px;
	line-height: 1.6;
}

.md-home-services__line > a {
	display: inline-flex;
	align-items: center;
	gap: 20px;
	min-height: 54px;
	padding: 12px 28px;
	border-radius: 3px;
	background: #455522;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.md-home-services__note {
	margin: 16px 0 0;
	color: #5e625a;
	font-size: 12px;
	text-align: center;
}

@media (max-width: 767px) {
	.md-home-services {
		padding: 64px 18px 72px;
	}

	.md-home-services__lead {
		margin-bottom: 34px;
		font-size: 15px;
	}

	.md-home-services__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.md-home-service-card--wide {
		grid-column: auto;
	}

	.md-home-service-card__placeholder {
		min-height: 260px;
	}

	.md-home-service-card--other .md-home-service-card__photo--other {
		min-height: 235px;
	}

	.md-home-service-card--other .md-home-service-card__photo--other img {
		height: 151px;
	}

	.md-home-service-card--medical .md-home-service-card__photo--medical {
		min-height: 235px;
	}

	.md-home-service-card--medical .md-home-service-card__photo--medical img {
		height: 151px;
	}

	.md-home-service-card--precision .md-home-service-card__photo--precision {
		min-height: 235px;
	}

	.md-home-service-card--precision .md-home-service-card__photo--precision img {
		height: 151px;
	}

	.md-home-service-card--piano .md-home-service-card__photo--piano {
		min-height: 235px;
	}

	.md-home-service-card--piano .md-home-service-card__photo--piano img {
		height: 151px;
	}

	.md-home-service-card__label {
		gap: 12px;
		min-height: 80px;
		padding: 17px 20px;
	}

	.md-home-service-card__label h3,
	.md-home-service-card__label p {
		max-width: 100%;
		white-space: normal;
		word-break: normal;
		overflow-wrap: anywhere;
	}

	.md-home-service-card__label h3 {
		font-size: clamp(19px, 6vw, 24px);
		line-height: 1.35;
	}

	.md-home-service-card__status {
		margin-left: 0;
		padding: 6px 9px;
		font-size: 11px;
	}

	.md-home-services__line {
		grid-template-columns: auto 1fr;
	}

	.md-home-services__line--net {
		grid-template-columns: 1fr;
	}

	.md-home-services__line > a {
		grid-column: 1 / -1;
		justify-content: center;
	}

	.md-home-services--mobile-photo-preview .md-home-service-card {
		display: flex;
		flex-direction: column;
		height: auto;
	}

	.md-home-services--mobile-photo-preview .md-home-service-card__photo,
	.md-home-services--mobile-photo-preview .md-home-service-card--precision .md-home-service-card__photo--precision,
	.md-home-services--mobile-photo-preview .md-home-service-card--medical .md-home-service-card__photo--medical,
	.md-home-services--mobile-photo-preview .md-home-service-card--piano .md-home-service-card__photo--piano,
	.md-home-services--mobile-photo-preview .md-home-service-card--heavy-preview .md-home-service-card__photo--heavy,
	.md-home-services--mobile-photo-preview .md-home-service-card--other .md-home-service-card__photo--other {
		display: block;
		min-height: 0;
		padding: 0;
		background: #f8f6f1;
	}

	.md-home-services--mobile-photo-preview .md-home-service-card__photo img,
	.md-home-services--mobile-photo-preview .md-home-service-card--precision .md-home-service-card__photo--precision img,
	.md-home-services--mobile-photo-preview .md-home-service-card--medical .md-home-service-card__photo--medical img,
	.md-home-services--mobile-photo-preview .md-home-service-card--piano .md-home-service-card__photo--piano img,
	.md-home-services--mobile-photo-preview .md-home-service-card--heavy-preview .md-home-service-card__photo--heavy img,
	.md-home-services--mobile-photo-preview .md-home-service-card--other .md-home-service-card__photo--other img {
		display: block;
		width: 100%;
		height: auto;
		object-fit: contain;
		object-position: center;
	}

	.md-home-services--mobile-photo-preview .md-home-service-card__label {
		position: static;
		flex: 1 0 auto;
		min-height: 0;
		padding: 18px 20px 20px;
	}

	.md-home-services--mobile-photo-preview .md-home-service-card--other .md-home-service-card__photo--other {
		display: flex !important;
		align-items: center;
		justify-content: center;
		min-height: 180px !important;
		height: 180px !important;
		overflow: visible;
	}

	.md-home-services--mobile-photo-preview .md-home-service-card--other .md-home-service-card__photo--other img {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
		width: 100% !important;
		height: 180px !important;
		object-fit: contain !important;
		object-position: center center !important;
	}

	.md-home-services--number-preview .md-home-service-card__number {
		position: static;
		align-self: flex-start;
		width: 58px;
		height: 38px;
		padding-right: 7px;
		clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
		font-size: 19px;
		line-height: 1;
	}
}
