/* Новый вид блока «Форма в тексте» (gutenberg/block_form.php). */

.priem-form,
.priem-form * {
	box-sizing: border-box;
}

.priem-form {
	--priem-form-accent: #f45251;
	--priem-form-accent-dark: #e3000f;
	--priem-form-white: #fff;
	--priem-form-ink: #222;
	--priem-form-muted: #6b7380;
	--priem-form-line: #e6e7ea;
	width: 100%;
	margin: 20px 0 30px;
	overflow: hidden;
	border: 1px solid var(--priem-form-line);
	border-radius: 16px;
	color: var(--priem-form-ink);
	background: var(--priem-form-white);
	box-shadow: 0 16px 48px rgba(34, 34, 34, 0.08);
}

.priem-form__hero {
	position: relative;
	overflow: hidden;
	padding: 28px 34px;
	color: var(--priem-form-white);
	background: var(--priem-form-accent);
	isolation: isolate;
}

.priem-form__hero::after {
	position: absolute;
	z-index: -1;
	top: -115px;
	right: -70px;
	width: 265px;
	height: 265px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	content: "";
}

.priem-form .priem-form__eyebrow,
.item_content .priem-form__eyebrow {
	display: inline-flex;
	width: fit-content;
	margin: 0 0 13px;
	padding: 6px 11px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.priem-form__title {
	margin: 0 0 8px;
	color: var(--priem-form-white);
	font-size: clamp(28px, 3vw, 41px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.03em;
}

.priem-form .priem-form__lead,
.item_content .priem-form__lead {
	max-width: 760px;
	margin: 0;
	color: var(--priem-form-white);
	font-size: 15px;
	line-height: 1.5;
}

.priem-form .fogm-gutt {
	min-width: 0;
	padding: 22px 34px 20px;
}

.priem-form__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	min-width: 0;
}

.priem-form .age_sp {
	display: none;
}

.priem-form__control {
	display: block;
	width: 100%;
	min-width: 0;
	min-height: 52px;
	margin: 0;
	padding: 13px 18px;
	border: 1px solid var(--priem-form-line);
	border-radius: 999px;
	outline: 0;
	color: var(--priem-form-ink);
	background: #f5f5f5;
	font: inherit;
	font-size: 16px;
	line-height: 1.3;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.priem-form__control::placeholder {
	color: #8a8a8a;
	opacity: 1;
}

.priem-form__control:focus {
	border-color: var(--priem-form-accent);
	background: var(--priem-form-white);
	box-shadow: 0 0 0 4px rgba(244, 82, 81, 0.14);
}

.priem-form__button {
	min-height: 52px;
	padding: 13px 25px;
	border: 0;
	border-radius: 999px;
	color: var(--priem-form-white);
	background: var(--priem-form-accent);
	box-shadow: 0 9px 22px rgba(244, 82, 81, 0.25);
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: transform 0.18s ease, background-color 0.18s ease;
}

.priem-form__button:hover {
	background: var(--priem-form-accent-dark);
	transform: translateY(-1px);
}

.priem-form__footer {
	display: flex;
	gap: 20px;
	align-items: center;
	justify-content: space-between;
	margin: 14px 0 0;
}

.priem-form__consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0;
	color: var(--priem-form-muted);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	cursor: pointer;
}

.priem-form__checkbox {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--priem-form-accent);
	cursor: pointer;
}

.priem-form .priem-form__consent a,
.item_content .priem-form__consent a {
	color: var(--priem-form-accent);
	font-weight: 400;
	text-decoration: underline;
	text-underline-offset: 2px;
}

@media (max-width: 700px) {
	.priem-form {
		border-radius: 14px;
	}

	.priem-form__hero,
	.priem-form .fogm-gutt {
		padding: 24px 20px;
	}

	.priem-form__title {
		font-size: 30px;
	}

	.priem-form .priem-form__lead,
	.item_content .priem-form__lead {
		font-size: 14px;
	}

	.priem-form__fields {
		grid-template-columns: 1fr;
	}

	.priem-form__footer {
		flex-direction: column;
		align-items: stretch;
	}

	.priem-form__button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.priem-form__control,
	.priem-form__button {
		transition: none;
	}
}
