/* Departments list — Figma 842:13327 */

.departments {
	background: var(--dr-hug-bg);
	font-family: var(--dr-hug-font-family);
	padding: 0 0 100px;
}

.departments__inner {
	max-width: var(--dr-hug-content-width);
	margin: 0 auto;
	padding: 0 var(--dr-hug-content-gutter);
}

.departments__section {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.departments__title {
	margin: 0;
	font-size: var(--dr-hug-font-size-xxl);
	font-weight: var(--dr-hug-font-weight-bold);
	line-height: normal;
	color: var(--dr-hug-black);
}

.departments__empty {
	margin: 0;
	font-size: var(--dr-hug-font-size-base);
	font-weight: var(--dr-hug-font-weight-medium);
	color: var(--dr-hug-grey);
}

.departments__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.department-card {
	display: flex;
	align-items: stretch;
	height: 300px;
	overflow: hidden;
	border-radius: 24px;
	background: var(--dr-hug-white);
	color: inherit;
	text-decoration: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.department-card:hover,
.department-card:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(67, 72, 85, 0.08);
	outline: none;
}

.department-card__content {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
	padding: 24px 12px 24px 24px;
}

.department-card__title {
	margin: 0;
	font-size: 28px;
	font-weight: var(--dr-hug-font-weight-bold);
	line-height: 1.4;
	color: var(--dr-hug-black);
	overflow-wrap: anywhere;
}

.department-card__description {
	margin: 0;
	font-size: var(--dr-hug-font-size-base);
	font-weight: var(--dr-hug-font-weight-medium);
	line-height: 1.4;
	color: var(--dr-hug-grey);
	overflow-wrap: anywhere;
}

.department-card__media {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	padding: 8px 24px 8px 12px;
}

.department-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	pointer-events: none;
}

@media (max-width: 900px) {
	.departments__grid {
		grid-template-columns: 1fr;
	}

	.department-card {
		height: auto;
		min-height: 260px;
	}

	.department-card__title {
		font-size: 24px;
	}
}

@media (max-width: 600px) {
	.department-card {
		flex-direction: column;
		min-height: 0;
	}

	.department-card__content {
		flex: 0 0 auto;
		padding: 20px 20px 0;
	}

	.department-card__media {
		flex: 0 0 auto;
		display: flex;
		align-items: center;
		justify-content: center;
		height: 280px;
		min-height: 280px;
		padding: 8px 20px 40px;
	}

	.department-card__image {
		width: 100%;
		height: 100%;
		max-width: 100%;
		max-height: 100%;
		object-fit: contain;
		object-position: center center;
		transform: none;
	}

	.department-card__title {
		font-size: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.department-card {
		transition: none;
	}

	.department-card:hover,
	.department-card:focus-visible {
		transform: none;
	}
}
