.df-products {
	background: #fff;
	font-family: "Montserrat", sans-serif;
	color: #000;
}

.df-products *,
.df-products *::before,
.df-products *::after,
.df-modal *,
.df-modal *::before,
.df-modal *::after {
	box-sizing: border-box;
}

.df-products__inner {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: var(--df-section-y, 72px) var(--df-section-x, 24px);
}

.df-products__title {
	margin: 0 0 48px;
	color: #000;
	font-family: "Montserrat", sans-serif;
	font-size: var(--df-title-size, 50px);
	font-weight: 400;
	line-height: 1.3;
	text-align: center;
	text-transform: none;
}

.df-products__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px 24px;
	align-items: stretch;
}

.df-products__list--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: 860px;
	margin: 0 auto;
}

.df-products__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
	text-align: center;
}

.df-products__media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 350px;
	margin-bottom: 20px;
	background: #fff;
}

.df-products__image {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.df-products__name {
	margin: 0 0 20px;
	color: #000;
	font-family: "Montserrat", sans-serif;
	font-size: 25px;
	font-weight: 600;
	line-height: 1.3;
}

.df-products__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: auto;
	padding: 12px 40px;
	border: none;
	border-radius: 5px;
	background: #1d1d1db8;
	color: #fff;
	font-family: "Montserrat", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.df-products__btn:hover,
.df-products__btn:focus,
.df-products__btn:focus-visible {
	background: #131313 !important;
	color: #fff !important;
	outline: none;
	box-shadow: none;
}

.df-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

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

.df-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(19, 19, 19, 0.56);
}

.df-modal__dialog {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	align-items: stretch;
	width: 100%;
	max-width: 1080px;
	max-height: calc(100vh - 48px);
	overflow: auto;
	background: #fff;
}

.df-modal__dialog[hidden] {
	display: none;
}

.df-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid #d4d4d4;
	background: #fff !important;
	color: #131313 !important;
	cursor: pointer;
	outline: none;
	box-shadow: none;
}

.df-modal__close:hover,
.df-modal__close:focus,
.df-modal__close:focus-visible,
.df-modal__close:active {
	background: #fff !important;
	color: #131313 !important;
	border-color: #d4d4d4 !important;
	outline: none;
	box-shadow: none;
}

.df-modal__close svg {
	display: block;
	width: 16px;
	height: 16px;
}

.df-modal__media {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 400px;
	padding: 40px 24px;
	background: #f6f6f6;
}

.df-modal__image {
	display: block;
	max-width: 100%;
	max-height: 525px;
	object-fit: contain;
}

.df-modal__content {
	padding: 48px 56px 48px 40px;
	font-family: "Montserrat", sans-serif;
	color: #131313;
}

.df-modal__name {
	margin: 0 0 16px;
	color: #000;
	font-family: "Montserrat", sans-serif;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
}

.df-modal__lead,
.df-modal__closing {
	margin: 0 0 16px;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.6;
}

.df-modal__list {
	margin: 0 0 16px;
	padding: 0 0 0 18px;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.6;
}

.df-modal__list li {
	margin: 0 0 8px;
}

.df-modal__list li:last-child,
.df-modal__closing {
	margin-bottom: 0;
}

html.df-modal-open,
body.df-modal-open {
	overflow: hidden !important;
	overscroll-behavior: none;
	scroll-behavior: auto !important;
}

@media (max-width: 1024px) {
	.df-products__list {
		gap: 32px 20px;
	}

	.df-products__media {
		height: 275px;
	}

	.df-modal__content {
		padding: 32px 40px 32px 28px;
	}
}

@media (max-width: 767px) {
	.df-products__title {
		margin-bottom: 32px;
	}

	.df-products__list,
	.df-products__list--2 {
		grid-template-columns: 1fr;
		gap: 36px;
		max-width: none;
	}

	.df-products__btn {
		width: 100%;
		max-width: 280px;
	}

	.df-modal {
		padding: 12px;
		align-items: flex-start;
	}

	.df-modal__dialog {
		grid-template-columns: 1fr;
		max-height: calc(100vh - 24px);
	}

	.df-modal__media {
		min-height: 220px;
		padding: 24px 16px 8px;
	}

	.df-modal__image {
		max-height: 240px;
	}

	.df-modal__content {
		padding: 16px 20px 28px;
	}

	.df-modal__name {
		font-size: 18px;
		padding-right: 40px;
	}

	.df-modal__lead,
	.df-modal__closing,
	.df-modal__list {
		font-size: 16px;
	}
}
