.dmac-market {
	--dmac-ink: #17211c;
	--dmac-muted: #5f6b65;
	--dmac-line: #dfe5e1;
	--dmac-green: #176b53;
	--dmac-coral: #d94747;
	--dmac-blue: #315fa8;
	--dmac-gold: #a86608;
	width: 100%;
	max-width: 1240px;
	margin: 24px auto 48px;
	color: var(--dmac-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	letter-spacing: 0;
}

.dmac-market *,
.dmac-market *::before,
.dmac-market *::after {
	box-sizing: border-box;
}

.dmac-hero {
	position: relative;
	display: grid;
	align-items: start;
	min-height: 520px;
	overflow: hidden;
	border-radius: 8px;
	background: #edf3ef;
	isolation: isolate;
}

.dmac-hero__picture,
.dmac-hero__picture img {
	position: absolute;
	inset: 0;
	z-index: -2;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dmac-hero::after {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgb(255 255 255 / 48%);
	content: "";
}

.dmac-hero__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: min(560px, 66%);
	padding: 58px 52px;
}

.dmac-hero__eyebrow,
.dmac-catalog__eyebrow {
	color: var(--dmac-green);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.25;
	text-transform: uppercase;
}

.dmac-hero h2 {
	max-width: 520px;
	margin: 14px 0 16px;
	color: #111914;
	font: inherit;
	font-size: 48px;
	font-weight: 800;
	line-height: 1.06;
	letter-spacing: 0;
}

.dmac-hero p {
	max-width: 520px;
	margin: 0;
	color: #35413b;
	font-size: 18px;
	line-height: 1.55;
}

.dmac-hero__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 50px;
	margin-top: 26px;
	padding: 12px 19px;
	border-radius: 6px;
	background: var(--dmac-green);
	box-shadow: 0 10px 24px rgb(23 107 83 / 23%);
	color: #fff !important;
	font-size: 15px;
	font-weight: 750;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.dmac-hero__action:hover {
	background: #0f5843;
	box-shadow: 0 14px 28px rgb(23 107 83 / 30%);
	transform: translateY(-2px);
}

.dmac-trust {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-bottom: 1px solid var(--dmac-line);
}

.dmac-trust span {
	display: grid;
	gap: 4px;
	min-width: 0;
	padding: 21px 24px;
	color: var(--dmac-muted);
	font-size: 13px;
	line-height: 1.35;
}

.dmac-trust span + span {
	border-left: 1px solid var(--dmac-line);
}

.dmac-trust strong {
	color: var(--dmac-ink);
	font-size: 14px;
}

.dmac-catalog {
	padding-top: 48px;
	scroll-margin-top: 24px;
}

.dmac-catalog__header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 20px;
}

.dmac-catalog__header h2 {
	margin: 6px 0 0;
	color: var(--dmac-ink);
	font: inherit;
	font-size: 32px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: 0;
}

.dmac-catalog__count {
	margin: 0;
	color: var(--dmac-muted);
	font-size: 14px;
}

.dmac-filters {
	display: flex;
	gap: 0;
	max-width: 100%;
	margin-bottom: 28px;
	overflow-x: auto;
	border: 1px solid #cfd8d3;
	border-radius: 6px;
	background: #fff;
	scrollbar-width: thin;
}

.dmac-filters button {
	flex: 0 0 auto;
	min-height: 44px;
	padding: 10px 16px;
	border: 0;
	border-right: 1px solid #cfd8d3;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #3e4b45;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	white-space: nowrap;
}

.dmac-filters button:last-child {
	border-right: 0;
}

.dmac-filters button:hover {
	background: #f1f7f4;
	color: var(--dmac-green);
}

.dmac-filters button.is-active {
	background: var(--dmac-ink);
	color: #fff;
}

.dmac-filters button:focus-visible,
.dmac-hero__action:focus-visible,
.dmac-card__button:focus-visible {
	outline: 3px solid rgb(49 95 168 / 30%);
	outline-offset: 3px;
}

.dmac-store {
	display: grid;
	grid-template-columns: repeat(var(--dmac-columns, 3), minmax(0, 1fr));
	gap: 24px;
	width: 100%;
}

.dmac-card {
	--dmac-ink: #17211c;
	--dmac-muted: #5f6b65;
	--dmac-green: #176b53;
	--dmac-coral: #d94747;
	--dmac-blue: #315fa8;
	--dmac-gold: #a86608;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid #e0e5e2;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 12px 34px rgb(24 35 29 / 9%);
	color: var(--dmac-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	letter-spacing: 0;
	transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.dmac-card[hidden] {
	display: none;
}

.dmac-card:hover {
	border-color: #c9d4ce;
	box-shadow: 0 18px 42px rgb(24 35 29 / 15%);
	transform: translateY(-4px);
}

.dmac-card__media {
	position: relative;
	display: grid;
	place-items: center;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 1 / 1;
	background: #f5f7f6;
}

.dmac-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 380ms ease;
}

.dmac-card:hover .dmac-card__media img {
	transform: scale(1.045);
}

.dmac-card__badges {
	position: absolute;
	z-index: 1;
	top: 12px;
	left: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	max-width: calc(100% - 24px);
}

.dmac-card__badge {
	padding: 6px 8px;
	border-radius: 4px;
	background: var(--dmac-ink);
	box-shadow: 0 4px 12px rgb(23 33 28 / 16%);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.15;
	text-transform: uppercase;
}

.dmac-card__badge.is-offer {
	background: var(--dmac-coral);
}

.dmac-card__badge.is-bestseller {
	background: var(--dmac-blue);
}

.dmac-card__badge.is-best-price {
	background: var(--dmac-gold);
}

.dmac-card__badge.is-featured {
	background: var(--dmac-green);
}

.dmac-card__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px;
}

.dmac-card__title {
	margin: 0 0 9px;
	color: var(--dmac-ink);
	font: inherit;
	font-size: 18px;
	font-weight: 780;
	line-height: 1.28;
	letter-spacing: 0;
	overflow-wrap: anywhere;
}

.dmac-card__text {
	margin: 0 0 12px;
	color: var(--dmac-muted);
	font-size: 14px;
	line-height: 1.5;
}

.dmac-card__meta {
	margin: auto 0 16px;
	padding-top: 8px;
	color: #65716b;
	font-size: 12px;
	font-weight: 650;
	line-height: 1.35;
}

.dmac-card__button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 48px;
	padding: 12px 18px;
	border-radius: 6px;
	background: var(--dmac-coral);
	box-shadow: 0 8px 18px rgb(217 71 71 / 22%);
	color: #fff !important;
	font-size: 15px;
	font-weight: 780;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.dmac-card__button:hover {
	background: #bd3636;
	box-shadow: 0 12px 24px rgb(217 71 71 / 30%);
	color: #fff !important;
	transform: translateY(-2px);
}

.dmac-filter-empty,
.dmac-empty {
	padding: 24px;
	border: 1px dashed #bfcac4;
	border-radius: 6px;
	color: var(--dmac-muted);
	text-align: center;
}

.dmac-price-note {
	margin: 18px 0 0;
	color: #6b756f;
	font-size: 12px;
	line-height: 1.45;
	text-align: center;
}

@media (max-width: 980px) {
	.dmac-hero {
		min-height: 470px;
	}

	.dmac-hero__content {
		width: 68%;
		padding: 46px 38px;
	}

	.dmac-hero h2 {
		font-size: 40px;
	}

	.dmac-store {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.dmac-market {
		margin: 12px auto 36px;
	}

	.dmac-hero {
		min-height: 510px;
	}

	.dmac-hero::after {
		background: rgb(255 255 255 / 38%);
	}

	.dmac-hero__content {
		width: 100%;
		padding: 26px 22px 24px;
		background: rgb(255 255 255 / 84%);
	}

	.dmac-hero h2 {
		max-width: 320px;
		margin-top: 10px;
		font-size: 32px;
		line-height: 1.08;
	}

	.dmac-hero p {
		max-width: 330px;
		font-size: 16px;
		line-height: 1.5;
	}

	.dmac-hero__action {
		min-height: 48px;
		margin-top: 20px;
	}

	.dmac-trust {
		grid-template-columns: minmax(0, 1fr);
	}

	.dmac-trust span {
		padding: 12px 8px;
	}

	.dmac-trust span + span {
		border-top: 1px solid var(--dmac-line);
		border-left: 0;
	}

	.dmac-catalog {
		padding-top: 36px;
	}

	.dmac-catalog__header {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.dmac-catalog__header h2 {
		font-size: 28px;
	}

	.dmac-filters {
		margin-bottom: 20px;
	}

	.dmac-filters button {
		min-height: 46px;
		padding: 10px 14px;
	}

	.dmac-store {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	.dmac-card__content {
		padding: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dmac-market *,
	.dmac-market *::before,
	.dmac-market *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
