/* Витрина подарочных сертификатов. */
.ezc-shop {
	--ezc-green: #1d9d45;
	--ezc-teal: #1d9d7f;
	--ezc-ink: #292828;
	--ezc-muted: #808080;
	--ezc-stroke: #e6e6e6;
	--ezc-mint: #f3faf5;
	--ezc-light: #f5f5f5;
	--ezc-danger: #e82323;

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

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

.ezc-shop a {
	color: var(--ezc-green);
}

.ezc-shop__section {
	padding: 40px;
	background: #fff;
	border-radius: 24px;
}

.ezc-shop__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
	gap: 48px;
	align-items: start;
}

.ezc-shop__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-shop__chip::before {
	content: "";
	width: 5px;
	height: 5px;
	background: currentcolor;
	border-radius: 50%;
}

.ezc-shop__title {
	margin: 14px 0 0;
	font-size: clamp(30px, 3.4vw, 48px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.01em;
}

.ezc-shop__lead {
	max-width: 640px;
	margin: 14px 0 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--ezc-muted);
}

.ezc-shop__noscript {
	margin: 20px 0 0;
	padding: 14px 18px;
	background: var(--ezc-mint);
	border-radius: 14px;
}

.ezc-shop__form {
	margin-top: 28px;
}

.ezc-shop__step {
	min-width: 0;
	margin: 0 0 32px;
	padding: 0;
	border: 0;
}

.ezc-shop__step-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	padding: 0;
	font-size: 20px;
	font-weight: 700;
}

.ezc-shop__step-title span {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	font-size: 14px;
	color: #fff;
	background: linear-gradient(135deg, var(--ezc-teal), var(--ezc-green));
	border-radius: 50%;
}

.ezc-field__hint.ezc-shop__step-hint {
	margin: -6px 0 16px;
}

/* Вкладки. */
.ezc-tabs {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 4px;
	background: var(--ezc-light);
	border-radius: 14px;
}

.ezc-tabs__tab {
	padding: 10px 18px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--ezc-muted);
	background: transparent;
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.ezc-tabs__tab:hover {
	color: var(--ezc-ink);
}

.ezc-tabs__tab[aria-selected="true"] {
	color: var(--ezc-green);
	background: #fff;
	box-shadow: 0 1px 3px rgb(0 0 0 / 8%);
}

.ezc-tabs__tab:focus-visible,
.ezc-quick__btn:focus-visible,
.ezc-service:focus-visible {
	outline: 2px solid var(--ezc-green);
	outline-offset: 2px;
}

.ezc-panel {
	margin-top: 20px;
}

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

/* Номиналы. */
.ezc-presets {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 12px;
}

.ezc-preset {
	position: relative;
	cursor: pointer;
}

.ezc-preset input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ezc-preset__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
	padding: 20px 18px;
	background: #fff;
	border: 2px solid var(--ezc-stroke);
	border-radius: 20px;
	transition: border-color 0.2s, background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.ezc-preset:hover .ezc-preset__body {
	border-color: rgb(29 157 69 / 45%);
	transform: translateY(-2px);
}

.ezc-preset input:checked + .ezc-preset__body {
	background: var(--ezc-mint);
	border-color: var(--ezc-green);
	box-shadow: 0 10px 24px -14px rgb(29 157 69 / 60%);
}

.ezc-preset input:focus-visible + .ezc-preset__body {
	outline: 2px solid var(--ezc-green);
	outline-offset: 2px;
}

.ezc-preset__sum {
	font-size: 24px;
	font-weight: 700;
	white-space: nowrap;
}

.ezc-preset input:checked + .ezc-preset__body .ezc-preset__sum {
	color: var(--ezc-green);
}

.ezc-preset__note {
	font-size: 12px;
	color: var(--ezc-muted);
}

.ezc-preset--test .ezc-preset__body {
	border-style: dashed;
	border-color: #e0a800;
}

.ezc-preset--test .ezc-preset__note {
	color: #a07800;
}

/* Поля. */
.ezc-input {
	width: 100%;
	padding: 13px 16px;
	font: inherit;
	font-size: 16px;
	color: var(--ezc-ink);
	background: #fff;
	border: 1px solid var(--ezc-stroke);
	border-radius: 10px;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.ezc-input:focus {
	border-color: var(--ezc-green);
	box-shadow: 0 0 0 1px var(--ezc-green);
}

.ezc-input[aria-invalid="true"] {
	border-color: var(--ezc-danger);
}

.ezc-field__label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 500;
}

.ezc-field__label span {
	color: var(--ezc-danger);
}

.ezc-field__hint {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--ezc-muted);
}

.ezc-field__error {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--ezc-danger);
}

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

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

.ezc-field--wide {
	grid-column: 1 / -1;
}

.ezc-amount {
	position: relative;
	max-width: 360px;
}

.ezc-amount__input {
	padding-right: 44px;
	font-size: 22px;
	font-weight: 700;
}

.ezc-amount__currency {
	position: absolute;
	top: 50%;
	right: 18px;
	font-size: 20px;
	font-weight: 600;
	color: var(--ezc-muted);
	transform: translateY(-50%);
}

.ezc-quick {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.ezc-quick__btn {
	padding: 8px 14px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--ezc-green);
	background: var(--ezc-mint);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.2s;
}

.ezc-quick__btn:hover {
	background: #e1f3e7;
}

/* Поиск услуги. */
.ezc-search {
	position: relative;
}

.ezc-search__icon {
	position: absolute;
	top: 50%;
	left: 14px;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: var(--ezc-muted);
	stroke-width: 2;
	stroke-linecap: round;
	transform: translateY(-50%);
	pointer-events: none;
}

.ezc-search__input {
	padding-left: 44px;
}

.ezc-services {
	position: relative;
	max-height: 360px;
	margin-top: 10px;
	overflow-y: auto;
	border: 1px solid var(--ezc-stroke);
	border-radius: 14px;
	overscroll-behavior: contain;
}

.ezc-services__group {
	position: sticky;
	top: 0;
	z-index: 1;
	padding: 8px 16px;
	font-size: 12px;
	font-weight: 600;
	color: var(--ezc-muted);
	background: var(--ezc-light);
}

.ezc-service {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 12px 16px;
	font: inherit;
	font-size: 14px;
	line-height: 1.4;
	color: var(--ezc-ink);
	text-align: left;
	background: #fff;
	border: 0;
	border-top: 1px solid #f0f0f0;
	cursor: pointer;
}

.ezc-services__group + .ezc-service {
	border-top: 0;
}

.ezc-service:hover {
	background: var(--ezc-mint);
}

.ezc-service[aria-selected="true"] {
	background: var(--ezc-mint);
	box-shadow: inset 3px 0 0 var(--ezc-green);
}

.ezc-service__price {
	flex: none;
	font-weight: 700;
	white-space: nowrap;
}

.ezc-service[aria-selected="true"] .ezc-service__price {
	color: var(--ezc-green);
}

.ezc-services__empty,
.ezc-services__more {
	padding: 16px;
	font-size: 14px;
	color: var(--ezc-muted);
}

/* Согласие, кнопка. */
.ezc-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 20px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--ezc-muted);
	cursor: pointer;
}

.ezc-consent input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--ezc-green);
	cursor: pointer;
}

.ezc-shop__alert {
	margin-top: 16px;
	padding: 12px 16px;
	font-size: 14px;
	color: var(--ezc-danger);
	background: rgb(232 35 35 / 5%);
	border: 1px solid rgb(232 35 35 / 25%);
	border-radius: 10px;
}

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

.ezc-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	max-width: 420px;
	margin-top: 22px;
	padding: 17px 28px;
	font: inherit;
	font-size: 17px;
	font-weight: 700;
	color: #fff;
	background: var(--ezc-green);
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
}

.ezc-btn:hover:not(:disabled) {
	background: linear-gradient(135deg, var(--ezc-teal), var(--ezc-green));
}

.ezc-btn:active:not(:disabled) {
	transform: scale(0.99);
}

.ezc-btn:disabled {
	cursor: wait;
	opacity: 0.75;
}

.ezc-btn:focus-visible {
	outline: 3px solid rgb(29 157 69 / 40%);
	outline-offset: 2px;
}

.ezc-btn__spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid rgb(255 255 255 / 40%);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ezc-spin 0.8s linear infinite;
}

.ezc-btn.is-loading .ezc-btn__spinner {
	display: inline-block;
}

@keyframes ezc-spin {
	to {
		transform: rotate(360deg);
	}
}

.ezc-shop__secure {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 12px 0 0;
	font-size: 13px;
	color: var(--ezc-muted);
}

.ezc-shop__secure svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentcolor;
	stroke-width: 2;
}

/* Превью карточки. */
.ezc-shop__sticky {
	position: sticky;
	top: 120px;
}

.ezc-gift.ezc-gift--hero {
	width: 100%;
	height: auto;
	min-height: 260px;
	aspect-ratio: 1.62;
	padding: 30px 32px 26px;
	border-radius: 32px;
	box-shadow:
		0 30px 60px -28px rgb(29 157 69 / 65%),
		inset 0 1px 0 rgb(255 255 255 / 28%);
	transform: rotate(-2deg);
}

.ezc-gift--hero:hover {
	transform: rotate(-2deg);
}

.ezc-gift--hero .ezc-gift__ribbon {
	right: 76px;
	width: 22px;
}

.ezc-gift--hero .ezc-gift__bow {
	top: 6px;
	right: 37px;
	width: 100px;
	height: 75px;
}

.ezc-gift--hero .ezc-gift__eyebrow {
	font-size: 12px;
}

.ezc-gift--hero .ezc-gift__title {
	font-size: clamp(36px, 4vw, 52px);
	transition: opacity 0.2s;
}

.ezc-gift__purpose {
	display: -webkit-box;
	max-width: 85%;
	margin-top: 6px;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.4;
	color: var(--ezc-gift-soft);
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.ezc-gift__code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 14px;
	letter-spacing: 0.06em;
}

.ezc-perks {
	display: grid;
	gap: 10px;
	margin: 36px 0 0;
	padding: 0;
	list-style: none;
}

.ezc-perks li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
}

.ezc-perks li::before {
	content: "";
	flex: none;
	width: 22px;
	height: 22px;
	background: var(--ezc-mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d9d45' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
	border-radius: 50%;
}

/* Как это работает. */
.ezc-shop__h2 {
	margin: 0 0 24px;
	font-size: clamp(24px, 2.4vw, 32px);
	font-weight: 700;
	line-height: 1.2;
}

.ezc-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ezc-steps__item {
	padding: 24px;
	background: var(--ezc-light);
	border-radius: 20px;
}

.ezc-steps__num {
	font-size: 14px;
	font-weight: 700;
	color: var(--ezc-green);
}

.ezc-steps__item h3 {
	margin: 12px 0 6px;
	font-size: 18px;
	font-weight: 700;
}

.ezc-steps__item p {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--ezc-muted);
}

/* Условия и FAQ. */
.ezc-shop__info {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 48px;
	margin-bottom: 8px;
	scroll-margin-top: 120px;
}

.ezc-terms {
	scroll-margin-top: 120px;
}

.ezc-terms__list {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ezc-terms__list li {
	position: relative;
	padding-left: 22px;
	font-size: 15px;
	line-height: 1.55;
}

.ezc-terms__list li::before {
	content: "";
	position: absolute;
	top: 9px;
	left: 4px;
	width: 7px;
	height: 7px;
	background: var(--ezc-green);
	border-radius: 50%;
}

.ezc-faq__item {
	border-bottom: 1px solid var(--ezc-stroke);
}

.ezc-faq__item summary {
	position: relative;
	padding: 16px 36px 16px 0;
	font-size: 16px;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

.ezc-faq__item summary::-webkit-details-marker {
	display: none;
}

.ezc-faq__item summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 6px;
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--ezc-green);
	border-bottom: 2px solid var(--ezc-green);
	transform: translateY(-70%) rotate(45deg);
	transition: transform 0.2s;
}

.ezc-faq__item[open] summary::after {
	transform: translateY(-30%) rotate(-135deg);
}

.ezc-faq__item p {
	margin: 0 0 16px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--ezc-muted);
}

@media (width < 1024px) {
	.ezc-shop__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.ezc-shop__aside {
		order: -1;
	}

	.ezc-shop__sticky {
		position: static;
		max-width: 480px;
	}

	.ezc-perks {
		display: none;
	}

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

	.ezc-shop__info {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
}

@media (width < 640px) {
	.ezc-shop {
		gap: 16px;
		padding-top: 16px;
	}

	.ezc-shop__section {
		padding: 24px 20px;
	}

	.ezc-tabs {
		display: grid;
		grid-auto-columns: minmax(0, 1fr);
		grid-auto-flow: column;
		width: 100%;
	}

	.ezc-tabs__tab {
		padding: 10px 6px;
		font-size: 13px;
	}

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

	.ezc-preset__body {
		padding: 16px 14px;
	}

	.ezc-preset__sum {
		font-size: 20px;
	}

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

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

	.ezc-gift.ezc-gift--hero {
		min-height: 0;
		padding: 22px 24px 20px;
		border-radius: 26px;
		transform: none;
	}

	.ezc-btn {
		max-width: none;
	}
}

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

	.ezc-btn__spinner {
		animation-duration: 2s;
	}
}
