/* Слайдер подарочных сертификатов. */
.ezc-showcase {
	--ezc-green: #1d9d45;
	--ezc-teal: #1d9d7f;
	--ezc-ink: #292828;
	--ezc-muted: #808080;
	--ezc-stroke: #e6e6e6;
	--ezc-mint: #f3faf5;

	width: 100%;
	max-width: 120rem;
	margin: 0 auto;
	padding: 48px var(--emc-gutter, 16px) 32px;
	font-family: Montserrat, ui-sans-serif, system-ui, sans-serif;
	color: var(--ezc-ink);
	box-sizing: border-box;
}

.ezc-showcase *,
.ezc-showcase *::before,
.ezc-showcase *::after {
	box-sizing: border-box;
}

.ezc-showcase__inner {
	padding: 32px 0 28px;
	background: #fff;
	border-radius: 24px;
	overflow: hidden;
}

.ezc-showcase__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 24px;
	padding: 0 32px;
}

.ezc-showcase__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 500;
	color: var(--ezc-green);
	background: #e8f5ec;
	border-radius: 999px;
}

.ezc-showcase__chip::before {
	content: "";
	width: 5px;
	height: 5px;
	background: currentcolor;
	border-radius: 50%;
}

.ezc-showcase__title {
	margin: 12px 0 0;
	font-size: clamp(24px, 2.4vw, 32px);
	font-weight: 700;
	line-height: 1.2;
	color: var(--ezc-ink);
}

.ezc-showcase__more {
	margin-left: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ezc-green);
	text-decoration: none;
	white-space: nowrap;
	vertical-align: middle;
}

.ezc-showcase__more:hover {
	text-decoration: underline;
}

.ezc-showcase__lead {
	max-width: 560px;
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--ezc-muted);
}

.ezc-showcase__pager {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ezc-showcase__pager[hidden] {
	display: none;
}

.ezc-showcase__count {
	margin-right: 4px;
	font-size: 12px;
	color: var(--ezc-muted);
	font-variant-numeric: tabular-nums;
}

.ezc-showcase__count b {
	font-size: 15px;
	color: var(--ezc-green);
}

.ezc-showcase__arrow {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	color: var(--ezc-ink);
	background: #fff;
	border: 1px solid var(--ezc-stroke);
	border-radius: 50%;
	cursor: pointer;
	transition: color 0.2s, border-color 0.2s, opacity 0.2s;
}

.ezc-showcase__arrow:hover:not(:disabled) {
	color: var(--ezc-green);
	border-color: var(--ezc-green);
}

.ezc-showcase__arrow:disabled {
	opacity: 0.4;
	cursor: default;
}

.ezc-showcase__arrow svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentcolor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Лента. */
.ezc-showcase__track {
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 20px 32px 28px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 32px;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
}

.ezc-showcase__track::-webkit-scrollbar {
	display: none;
}

.ezc-showcase__slide {
	flex: 0 0 auto;
	margin: 0;
	scroll-snap-align: start;
}

/* ── Карточка-сертификат ─────────────────────────────────────────────── */
.ezc-gift {
	--ezc-gift-bg: linear-gradient(135deg, #1d9d7f 0%, #1d9d45 100%);
	--ezc-gift-fg: #fff;
	--ezc-gift-soft: rgb(255 255 255 / 78%);
	--ezc-gift-ribbon: rgb(255 255 255 / 22%);
	--ezc-gift-bow-color: #fff;
	--ezc-gift-bow-opacity: 0.82;
	--ezc-gift-shadow: rgb(29 157 69 / 45%);

	position: relative;
	display: flex;
	flex-direction: column;
	width: 300px;
	height: 188px;
	padding: 22px 24px 20px;
	overflow: hidden;
	color: var(--ezc-gift-fg);
	text-decoration: none;
	background: var(--ezc-gift-bg);
	border-radius: 28px;
	box-shadow:
		0 18px 36px -18px var(--ezc-gift-shadow),
		inset 0 1px 0 rgb(255 255 255 / 28%);
	transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s;
	isolation: isolate;
}

/* Блик. */
.ezc-gift::before {
	content: "";
	position: absolute;
	inset: -40% -10% auto auto;
	z-index: -1;
	width: 260px;
	height: 260px;
	background: radial-gradient(circle, rgb(255 255 255 / 26%) 0%, rgb(255 255 255 / 0%) 65%);
	border-radius: 50%;
}

.ezc-gift::after {
	content: "";
	position: absolute;
	inset: auto auto -70px -50px;
	z-index: -1;
	width: 200px;
	height: 200px;
	background: rgb(255 255 255 / 7%);
	border-radius: 50%;
}

.ezc-gift:hover,
.ezc-gift:focus-visible {
	transform: translateY(-6px) rotate(-1deg);
	box-shadow:
		0 26px 44px -18px var(--ezc-gift-shadow),
		inset 0 1px 0 rgb(255 255 255 / 28%);
}

.ezc-gift:focus-visible {
	outline: 3px solid var(--ezc-green);
	outline-offset: 3px;
}

/* Лента и бант. */
.ezc-gift__ribbon {
	position: absolute;
	top: 0;
	right: 56px;
	bottom: 0;
	z-index: -1;
	width: 16px;
	background: var(--ezc-gift-ribbon);
}

.ezc-gift__bow {
	position: absolute;
	top: 4px;
	right: 28px;
	width: 72px;
	height: 54px;
	overflow: visible;
	color: var(--ezc-gift-bow-color);
	fill: currentcolor;
	opacity: var(--ezc-gift-bow-opacity);
	filter: drop-shadow(0 3px 4px rgb(0 0 0 / 14%));
}

.ezc-gift__bow-fold {
	fill: rgb(0 0 0 / 16%);
}

.ezc-gift__bow-tail {
	fill: currentcolor;
}

.ezc-gift__bow-shine {
	fill: none;
	stroke: rgb(255 255 255 / 70%);
	stroke-width: 1.6;
	stroke-linecap: round;
}

.ezc-gift__eyebrow {
	max-width: 170px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ezc-gift-soft);
}

.ezc-gift__title {
	margin-top: auto;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.ezc-gift--mint .ezc-gift__title,
.ezc-gift--white .ezc-gift__title {
	font-size: 24px;
	white-space: normal;
}

.ezc-gift__foot {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-top: 8px;
	font-size: 13px;
	color: var(--ezc-gift-soft);
}

.ezc-gift__note {
	min-width: 0;
}

.ezc-gift__brand {
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

/* Тона. */
.ezc-gift--teal {
	--ezc-gift-bg: linear-gradient(135deg, #168a8a 0%, #1d9d7f 100%);
	--ezc-gift-shadow: rgb(29 157 127 / 45%);
}

.ezc-gift--deep {
	--ezc-gift-bg: linear-gradient(135deg, #1d9d45 0%, #11742f 100%);
	--ezc-gift-shadow: rgb(17 116 47 / 45%);
}

.ezc-gift--emerald {
	--ezc-gift-bg: linear-gradient(135deg, #0f5f3a 0%, #1d9d7f 100%);
	--ezc-gift-shadow: rgb(15 95 58 / 45%);
}

.ezc-gift--mint {
	--ezc-gift-bg: linear-gradient(135deg, #f3faf5 0%, #dff2e6 100%);
	--ezc-gift-fg: #1d9d45;
	--ezc-gift-soft: #4f8f63;
	--ezc-gift-ribbon: rgb(29 157 69 / 14%);
	--ezc-gift-bow-color: #1d9d45;
	--ezc-gift-bow-opacity: 0.5;
	--ezc-gift-shadow: rgb(29 157 69 / 25%);
}

.ezc-gift--white {
	--ezc-gift-bg: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
	--ezc-gift-fg: #292828;
	--ezc-gift-soft: #808080;
	--ezc-gift-ribbon: rgb(29 157 69 / 14%);
	--ezc-gift-bow-color: #1d9d45;
	--ezc-gift-bow-opacity: 0.5;
	--ezc-gift-shadow: rgb(41 40 40 / 22%);

	border: 1px solid var(--ezc-stroke);
}

.ezc-gift--mint::before,
.ezc-gift--white::before {
	background: radial-gradient(circle, rgb(29 157 69 / 10%) 0%, rgb(29 157 69 / 0%) 65%);
}

.ezc-gift--mint::after,
.ezc-gift--white::after {
	background: rgb(29 157 69 / 5%);
}

@media (width < 640px) {
	.ezc-showcase {
		padding-top: 32px;
	}

	.ezc-showcase__inner {
		padding-top: 24px;
	}

	.ezc-showcase__head {
		padding: 0 20px;
	}

	.ezc-showcase__track {
		gap: 14px;
		padding-inline: 20px;
		scroll-padding-inline: 20px;
	}

	.ezc-gift {
		width: 264px;
		height: 168px;
	}

	.ezc-gift__title {
		font-size: 30px;
	}

	.ezc-gift__foot {
		font-size: 12px;
	}

	.ezc-showcase__pager {
		width: 100%;
		justify-content: flex-end;
	}
}

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

	.ezc-gift:hover,
	.ezc-gift:focus-visible {
		transform: none;
	}
}
