#services {
	background: white;
	color: #111;
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 40px;
	margin: auto;
}

.service-card {
	border-top: 1px solid #ddd;
	padding-top: 24px;
	container-type: inline-size;
}

.service-card h3 {
	margin-bottom: 0.35rem;
	font-weight: 500;
}

.service-card-preview {
	display: flex;
	flex-wrap: nowrap;
	gap: 1rem;
	align-items: flex-start;
	cursor: pointer;
}

.service-card-image {
	width: 100%;
	max-width: 33.333%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 18px;
	flex: 0 0 33.333%;
	min-width: 120px;
}

.service-card-content {
	flex: 1 1 0;
	min-width: 0;
}

.service-card-meta {
	flex: 1 1 0;
	min-width: 0;
}

@container (max-width: 300px) {
	.service-card-preview {
		flex-direction: column;
	}

	.service-card-image {
		flex: 0 0 100%;
		max-width: 100%;
		min-width: auto;
	}

	.service-card-meta {
		flex: 1 1 100%;
		min-width: auto;
	}
}

@media (max-width: 520px) {
	.service-card-preview {
		flex-direction: column;
	}

	.service-card-image {
		flex: 0 0 auto;
		max-width: 100%;
		min-width: auto;
	}
}

.service-card p {
	line-height: 1.8;
}

.service-card {
	position: relative;
	container-type: inline-size;
}

.service-card details.service-details {
	margin: 1rem 0 0;
	display: block;
}

.service-card details.service-details summary {
	display: none;
}

.service-card .service-details-toggle {
	font: inherit;
	color: #0f4a6f;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	margin: 0;
	font-size: 1rem;
	line-height: 1;
	vertical-align: middle;
}

.service-card .service-details-toggle:hover,
.service-card .service-details-toggle:focus-visible {
	text-decoration: underline;
	outline: none;
}

.service-card .service-popup {
	display: none;
}

.service-card details.service-details[open] .service-popup {
	display: block;
}

.service-card .service-popup-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 34, 55, 0.25);
	z-index: 998;
}

.service-card .service-popup-panel {
	position: fixed;
	top: var(--overlay-content-top, 8.5rem);
	left: 50%;
	transform: translateX(-50%);
	width: calc(100% - 4rem);
	max-width: 700px;
	max-height: calc(100vh - var(--overlay-content-top, 8.5rem) - 1rem);
	max-height: calc(100dvh - var(--overlay-content-top, 8.5rem) - 1rem);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: white;
	border: 1px solid #ddd;
	box-shadow: 0 16px 40px rgba(15, 34, 55, 0.12);
	border-radius: 24px;
	padding: 0;
	z-index: 999;
}

.service-card .service-popup-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	flex: 0 0 auto;
	margin: 0;
	padding: 1.5rem;
	background: var(--accent);
	border-radius: 24px 24px 0 0;
}

.service-card .service-popup-header h4 {
	margin: 0;
	font-size: 1.3rem;
	color: white;
}

.service-card .service-popup-image {
	width: 100%;
	height: auto;
	border-radius: 18px;
	object-fit: cover;
	margin: 1rem 0;
	display: block;
	max-height: 320px;
}

.service-card .service-popup-description {
	margin: 1rem 0 0;
	color: var(--body);
	line-height: 1.6;
}

.service-card .service-popup-close {
	background: transparent;
	border: none;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	color: white;
	padding: 0;
}

.service-card details.service-details .service-popup-panel ul {
	margin: 0;
	padding-left: 1.25rem;
	line-height: 1.8;
}

.service-card details.service-details .service-popup-panel ul li {
	margin-bottom: 0.75rem;
	list-style-type: disc;
}

.service-card details.service-details .service-popup-panel ul li strong {
	font-weight: 600;
}

.service-card details.service-details ul li {
	margin-bottom: 0.75rem;
	list-style-type: disc;
}

.service-card details.service-details ul li strong {
	font-weight: 600;
}

.service-solutions {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(46, 91, 42, 0.2);
}

.service-solutions[hidden] {
	display: none;
}

.service-solutions h3 {
	margin: 0 0 1rem;
	font-size: 1.15rem;
	font-weight: 500;
}

.service-solutions-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.service-solutions-grid.service-solutions-single {
	display: block;
}

.service-solutions .product-item {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 1rem;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: var(--radius);
	background: #f3f5ef;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-solutions .product-item:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow);
}

.service-solutions .product-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
}

.service-solutions .product-title {
	margin: 0 0 0.4rem;
	font-size: 1rem;
	font-weight: 500;
	text-transform: none;
}

.service-solutions .product-desc {
	display: -webkit-box;
	margin: 0 0 0.25rem;
	overflow: hidden;
	font-size: 0.9rem;
	font-weight: 400;
	line-height: 1.5;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.service-solutions .product-desc strong {
	font-weight: inherit;
}

.service-solutions .product-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 0.5rem;
}

.service-solutions .price,
.service-solutions .package-contact-button {
	font-size: 0.85rem;
}

.service-solutions .package-contact-button {
	padding: 0;
	border: 0;
	border-bottom: 1px solid rgba(102, 122, 99, 0.35);
	background: transparent;
	font: inherit;
	cursor: pointer;
}

.service-solutions .product-link {
	flex: 0 0 auto;
	color: var(--accent);
	font-size: 1.5rem;
	line-height: 1;
}

@media (min-width: 1000px) {
	.services-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.service-card ul {
		max-width: 100%;
	}
}

.service-card .service-popup-body {
	min-height: 0;
	overflow-y: auto;
	padding: 0 1.5rem 1.5rem;
}

@container (max-width: 420px) {
	.service-card-preview {
		flex-direction: column;
	}

	.service-card-image {
		max-width: 100%;
		flex: 0 0 100%;
		min-width: auto;
	}
}

@media (max-width: 520px) {
	.service-solutions-grid {
		grid-template-columns: 1fr;
	}
}
