/* Проверка сертификата. */
.emc-cert {
	--emc-green: #1d9d45;
	--emc-teal: #1d9d7f;
	--emc-ink: #292828;
	--emc-muted: #808080;
	--emc-stroke: #e6e6e6;
	--emc-mint: #f3faf5;
	--emc-danger: #e82323;

	display: flex;
	justify-content: center;
	padding: 48px 16px 64px;
	font-family: Montserrat, ui-sans-serif, system-ui, sans-serif;
}

.emc-cert__card {
	width: 100%;
	max-width: 520px;
	padding: 40px 32px;
	background: #fff;
	border-radius: 24px;
	text-align: center;
	color: var(--emc-ink);
	box-shadow: 0 1px 2px rgb(0 0 0 / 4%);
}

.emc-cert__icon {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	margin: 0 auto 20px;
	border-radius: 50%;
}

.emc-cert__icon svg {
	width: 36px;
	height: 36px;
}

.emc-cert__card--ok .emc-cert__icon {
	background: linear-gradient(135deg, var(--emc-teal), var(--emc-green));
	color: #fff;
}

.emc-cert__card--used .emc-cert__icon {
	background: #f5f5f5;
	color: var(--emc-muted);
}

.emc-cert__card--bad .emc-cert__icon {
	background: #fdecec;
	color: var(--emc-danger);
}

.emc-cert__eyebrow {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--emc-muted);
}

.emc-cert__title {
	margin: 0;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.25;
}

.emc-cert__card--ok .emc-cert__title {
	color: var(--emc-green);
}

.emc-cert__code {
	display: inline-block;
	margin: 18px 0 0;
	padding: 10px 18px;
	border: 1px dashed var(--emc-stroke);
	border-radius: 12px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.emc-cert__text {
	margin: 18px 0 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--emc-muted);
}

.emc-cert__phone {
	font-weight: 600;
	color: var(--emc-green);
	white-space: nowrap;
	text-decoration: none;
}

.emc-cert__phone:hover {
	text-decoration: underline;
}

.emc-cert__form {
	display: flex;
	gap: 8px;
	margin-top: 24px;
}

.emc-cert__mask {
	display: flex;
	flex: 1;
	align-items: center;
	min-width: 0;
	padding: 0 14px;
	border: 1px solid var(--emc-stroke);
	border-radius: 10px;
	background: #fff;
	cursor: text;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.emc-cert__mask:focus-within {
	border-color: var(--emc-green);
	box-shadow: 0 0 0 3px rgb(29 157 69 / 15%);
}

.emc-cert__prefix,
.emc-cert__dash {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--emc-muted);
	user-select: none;
}

.emc-cert__dash {
	margin: 0 4px;
	color: #c4c4c4;
}

.emc-cert__input {
	flex: 1;
	width: 100%;
	min-width: 0;
	padding: 14px 0;
	border: 0;
	background: transparent;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--emc-ink);
}

.emc-cert__input:focus {
	outline: none;
	box-shadow: none;
}

.emc-cert__input::placeholder {
	font-weight: 400;
	color: #c4c4c4;
}

.emc-cert__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 22px;
	border: 0;
	border-radius: 10px;
	background: var(--emc-green);
	font: 600 15px/1 Montserrat, ui-sans-serif, system-ui, sans-serif;
	color: #fff;
	text-decoration: none;
	cursor: pointer;
}

.emc-cert__button:hover {
	background: #188a3c;
	color: #fff;
}

.emc-cert__button--wide {
	width: 100%;
	margin-top: 28px;
	padding: 16px 22px;
}

.emc-cert__button--wide + .emc-cert__button--wide {
	margin-top: 10px;
}

.emc-cert__button--ghost {
	border: 1px solid var(--emc-stroke);
	background: #fff;
	color: var(--emc-ink);
}

.emc-cert__button--ghost:hover {
	border-color: var(--emc-green);
	background: var(--emc-mint);
	color: var(--emc-green);
}

.emc-cert__staff {
	display: inline-block;
	margin-top: 24px;
	font-size: 13px;
	color: var(--emc-muted);
}

.emc-cert__staff:hover {
	color: var(--emc-green);
}

@media (max-width: 480px) {
	.emc-cert__form {
		flex-direction: column;
	}
}
