.ded-work-videos {
	padding: 56px 0 60px;
	background: #fff;
}

.ded-work-videos__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 28px;
}

.ded-work-videos__heading {
	max-width: 850px;
}

.ded-work-videos__kicker {
	margin-bottom: 9px;
	color: #129b35;
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .055em;
	line-height: 1.25;
	text-transform: uppercase;
}

.ded-work-videos__head h2 {
	margin: 0;
	color: #171a20;
	font-family: "Montserrat", sans-serif;
	font-size: 42px;
	font-weight: 800;
	letter-spacing: -.035em;
	line-height: 1.12;
}

.ded-work-videos__head p {
	max-width: 800px;
	margin: 12px 0 0;
	color: #7d8792;
	font-size: 16px;
	line-height: 1.55;
}

.ded-work-videos__channel {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	padding: 10px 0;
	color: #129b35;
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.ded-work-videos__channel:hover,
.ded-work-videos__channel:focus-visible {
	color: #0b7f29;
	text-decoration: underline;
}

.ded-work-videos__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.ded-work-videos__card {
	min-width: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid #dfe6df;
	border-radius: 16px;
	box-shadow: 0 12px 34px rgba(25, 45, 29, .08);
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.ded-work-videos__card:hover {
	border-color: #c7d8ca;
	box-shadow: 0 17px 42px rgba(25, 45, 29, .13);
	transform: translateY(-3px);
}

.ded-work-videos__card-link {
	display: flex;
	height: 100%;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
}

.ded-work-videos__media {
	position: relative;
	display: block;
	flex: 0 0 auto;
	width: 100%;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #e9eee9;
}

.ded-work-videos__media::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(6, 12, 7, .34), transparent 55%);
	content: "";
	pointer-events: none;
}

.ded-work-videos__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform .3s ease;
}

.ded-work-videos__card:hover .ded-work-videos__media img {
	transform: scale(1.025);
}

.ded-work-videos__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	display: grid;
	width: 58px;
	height: 58px;
	place-items: center;
	padding-left: 4px;
	background: #15a53d;
	border-radius: 50%;
	box-shadow: 0 10px 30px rgba(10, 76, 27, .32);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	transform: translate(-50%, -50%);
	transition: background .2s ease, transform .2s ease;
}

.ded-work-videos__card:hover .ded-work-videos__play {
	background: #0d8e30;
	transform: translate(-50%, -50%) scale(1.06);
}

.ded-work-videos__duration {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 2;
	padding: 6px 9px;
	background: rgba(20, 24, 21, .76);
	border-radius: 999px;
	color: #fff;
	font-family: "Montserrat", sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.ded-work-videos__body {
	display: flex;
	flex: 1 1 auto;
	min-height: 0;
	flex-direction: column;
	align-items: flex-start;
	padding: 18px 20px 19px;
}

.ded-work-videos__body > strong {
	display: block;
	min-height: 50px;
	color: #171a20;
	font-family: "Montserrat", sans-serif;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -.015em;
	line-height: 1.35;
}

.ded-work-videos__description {
	display: block;
	min-height: 42px;
	margin: 8px 0 14px;
	color: #7d8792;
	font-size: 14px;
	line-height: 1.5;
}

.ded-work-videos__watch {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	color: #129b35;
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
}

.ded-work-videos__card-link:focus-visible {
	outline: 3px solid rgba(18, 155, 53, .4);
	outline-offset: -3px;
}

.ded-video-modal[hidden] {
	display: none;
}

.ded-video-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 28px;
}

.ded-video-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(7, 12, 8, .84);
	backdrop-filter: blur(4px);
}

.ded-video-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 980px);
	overflow: hidden;
	background: #101411;
	border-radius: 18px;
	box-shadow: 0 28px 90px rgba(0, 0, 0, .45);
	outline: none;
}

.ded-video-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 3;
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	padding: 0 0 4px;
	background: rgba(13, 20, 15, .78);
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	font: 300 30px/1 Arial, sans-serif;
}

.ded-video-modal__close:hover,
.ded-video-modal__close:focus-visible {
	background: #159b3b;
	outline: none;
}

.ded-video-modal__title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.ded-video-modal__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

.ded-video-modal__frame iframe {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.ded-video-modal__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 15px 20px 16px;
	color: #bdc6bf;
	font-size: 13px;
	line-height: 1.45;
}

.ded-video-modal__footer a {
	flex: 0 0 auto;
	color: #69d282;
	font-family: "Montserrat", sans-serif;
	font-weight: 700;
	text-decoration: none;
}

.ded-video-modal__footer a:hover,
.ded-video-modal__footer a:focus-visible {
	color: #fff;
	text-decoration: underline;
}

.ded-video-modal-open {
	overflow: hidden;
}

@media (max-width: 960px) {
	.ded-work-videos {
		padding: 54px 0 60px;
	}

	.ded-work-videos__head h2 {
		font-size: 36px;
	}

	.ded-work-videos__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.ded-work-videos {
		padding: 42px 0 48px;
	}

	.ded-work-videos__head {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
		margin-bottom: 22px;
	}

	.ded-work-videos__head h2 {
		font-size: 28px;
		letter-spacing: -.025em;
	}

	.ded-work-videos__head p {
		font-size: 15px;
	}

	.ded-work-videos__channel {
		padding: 2px 0;
	}

	.ded-work-videos__grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.ded-work-videos__body > strong,
	.ded-work-videos__description {
		min-height: 0;
	}

	.ded-work-videos__play {
		width: 54px;
		height: 54px;
		font-size: 18px;
	}

	.ded-video-modal {
		padding: 10px;
	}

	.ded-video-modal__dialog {
		border-radius: 12px;
	}

	.ded-video-modal__footer {
		align-items: flex-start;
		flex-direction: column;
		gap: 7px;
		padding: 12px 14px 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ded-work-videos__card,
	.ded-work-videos__media img,
	.ded-work-videos__play {
		transition: none;
	}
}
