.contact-page-main {
	width: 100%;
	max-width: 980px;
	margin: 0 auto;
	padding: 88px 20px 112px;
}

.contact-page__header {
	padding-bottom: 24px;
	margin-bottom: 24px;
	border-bottom: 1px solid #ececec;
}

.contact-page__title {
	text-align: center;
	font-size: 5.6rem;
	font-weight: 700;
	line-height: 120%;
	letter-spacing: 0.03em;
	background: linear-gradient(118deg, #7312ff 0.1%, #5bdbe5 99.9%);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	margin: 0;
}

.contact-page__lead {
	font-size: max(1.8rem, 14px);
	margin: 16px 0 0;
	line-height: 1.9;
	color: #383838;
}

.contact-page__content {
	line-height: 1.9;
}

.contact-page__form .wpcf7 {
	background: #fff;
	border-radius: 12px;
	padding: clamp(2.4rem, 3.5vw, 4.8rem) clamp(1.6rem, 4.5vw, 6.4rem);
	box-shadow: 0 8px 24px rgb(20 20 43 / 8%);
}

.contact-page__form {
	margin-top: 32px;
}

.contact-page__form .wpcf7 form,
.contact-page__form .yzrh-cf7-service-form {
	margin: 0;
}

.contact-page__form p {
	margin: 0;
}

.contact-page__form .cf7-field {
	margin-top: 24px;
}

.contact-page__form .cf7-field:first-child {
	margin-top: 0;
}

.contact-page__form .cf7-label {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
	font-size: max(1.8rem, 14px);
	font-weight: 700;
	line-height: 1.5;
	color: var(--text);
}

.contact-page__form .cf7-required {
	color: #ff6b6b;
	font-size: max(1.4rem, 12px);
	font-weight: 700;
}

.contact-page__form .wpcf7-form-control-wrap {
	display: block;
}

.contact-page__form .wpcf7-text,
.contact-page__form .wpcf7-email,
.contact-page__form .wpcf7-tel,
.contact-page__form .wpcf7-select,
.contact-page__form .wpcf7-textarea {
	width: 100%;
	border: 1px solid #d8d8d8;
	border-radius: 8px;
	background: #fff;
	color: #333;
	font-size: max(1.6rem, 13px);
	line-height: 1.6;
	padding: 12px 16px;
}

.contact-page__form .wpcf7-select {
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, #909090 50%), linear-gradient(135deg, #909090 50%, transparent 50%);
	background-position: calc(100% - 22px) calc(50% - 2px), calc(100% - 16px) calc(50% - 2px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 42px;
}

.contact-page__form .wpcf7-textarea {
	min-height: 180px;
	resize: vertical;
}

.contact-page__form .wpcf7-list-item {
	display: block;
	margin: 0 0 12px;
}

.contact-page__form .wpcf7-list-item:last-child {
	margin-bottom: 0;
}

.contact-page__form .wpcf7-list-item label {
	display: inline-flex;
	align-items: flex-start;
	gap: 8px;
	color: #555;
	font-size: max(1.6rem, 13px);
	line-height: 1.5;
}

.contact-page__form input[type="checkbox"] {
	margin-top: 3px;
	width: 18px;
	height: 18px;
}

.contact-page__form .cf7-privacy-note {
	margin-top: 32px;
	font-size: max(1.5rem, 12px);
	line-height: 1.7;
	color: #666;
	text-align: center;
}

.contact-page__form .cf7-privacy-note a {
	color: #ff6b6b;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.contact-page__form .cf7-privacy-check {
	margin-top: 12px;
}

.contact-page__form .cf7-submit {
	margin-top: 32px;
	text-align: center;
}

.contact-page__form .wpcf7-submit {
	min-width: min(100%, 280px);
	border: 0;
	border-radius: 999px;
	padding: 14px 24px;
	color: #fff;
	font-size: max(2rem, 14px);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.03em;
	background: linear-gradient(90deg, #6d3ff3 0%, #66c5ff 100%);
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.contact-page__form .wpcf7-submit:hover {
	opacity: 0.85;
}

.contact-page__form .wpcf7-spinner {
	display: block;
	margin: 12px auto 0;
}

@media screen and (max-width: 767px) {
	.contact-page-main {
		padding: 64px 16px 80px;
	}

	.contact-page-article {
		padding: 28px 20px;
	}

	.contact-page__title {
		font-size: 2.8rem;
	}

	.contact-page__form {
		margin-top: 24px;
	}

	.contact-page__form .yzrh-cf7-service-form,
	.contact-page__form .wpcf7 {
		border-radius: 16px;
		padding: 20px 16px;
	}

	.contact-page__form .cf7-field {
		margin-top: 20px;
	}

	.contact-page__form .cf7-label {
		font-size: 1.6rem;
	}

	.contact-page__form .wpcf7-text,
	.contact-page__form .wpcf7-email,
	.contact-page__form .wpcf7-tel,
	.contact-page__form .wpcf7-select,
	.contact-page__form .wpcf7-textarea {
		font-size: 1.4rem;
	}

	.contact-page__form .wpcf7-submit {
		width: 100%;
		font-size: 1.8rem;
	}
	.contact-page__lead {
		font-size: 1.4rem;
	}
}
