/* Заявка рядом с фото: слева снимок во всю половину экрана, справа форма.
   Размеры сняты с прежнего сайта. */

.invite {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	min-height: 600px;
	background: #efefef;
	font-family: var(--vk-font);
}

.invite__media {
	position: relative;
	min-height: 100%;
}

.invite__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.invite__body {
	display: flex;
	align-items: center;
	padding: 72px;
}

.invite__inner {
	width: 100%;
}

.invite__title {
	margin: 0 0 20px;
	font-size: 42px;
	font-weight: 600;
	line-height: 1.23;
	color: #000000;
	overflow-wrap: anywhere;
}

.invite__descr {
	margin: 0 0 30px;
	font-size: 20px;
	font-weight: 300;
	line-height: 1.55;
	color: #000000;
	overflow-wrap: anywhere;
}

/* Форма */

.invite__form,
.invite .wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* Плагины форм заворачивают поля в абзац и служебные обёртки. Они убираются
   из раскладки, чтобы поля оставались прямыми элементами формы. */
.invite .wpcf7-form > p,
.invite .wpcf7-form-control-wrap,
.invite .wpcf7-acceptance,
.invite .wpcf7-list-item {
	display: contents;
}

.invite .wpcf7-form br {
	display: none;
}

.invite .wpcf7-spinner {
	display: none;
}

/* Поля оформляются по тегу: форму вставляют из админки, и проставлять класс
   каждому полю в её настройках не нужно. */
.invite input[type="text"],
.invite input[type="tel"],
.invite input[type="email"],
.invite textarea {
	width: 100%;
	min-width: 0;
	min-height: 54px;
	padding: 16px 18px;
	border: 0;
	border-radius: 0;
	background: #ffffff;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	color: #000000;
}

.invite input::placeholder,
.invite textarea::placeholder {
	color: #6a6a6a;
	opacity: 1;
}

.invite textarea {
	height: 256px;
	resize: vertical;
}

.invite .wpcf7-acceptance label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	font-weight: 300;
	line-height: 1.4;
	color: #d0d0d0;
	cursor: pointer;
}

.invite .wpcf7-acceptance input[type="checkbox"] {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--vk-accent);
}

.invite__note {
	margin: 20px 0 0;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.55;
	color: #000000;
}

.invite__note a {
	color: #ff8562;
	text-decoration: none;
}

.invite input[type="submit"] {
	align-self: flex-start;
	min-height: 52px;
	margin-top: 10px;
	padding: 16px 32px;
	border: 0;
	border-radius: 0;
	background: var(--vk-accent);
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	color: #ffffff;
	cursor: pointer;
	transition: background-color var(--vk-transition);
}

.invite input[type="submit"]:hover {
	background: var(--vk-accent-hover);
}

.invite :focus-visible {
	outline: 2px solid var(--vk-accent);
	outline-offset: 2px;
}

/* Media */

@media (max-width: 1200px) {
	.invite__body {
		padding: 60px;
	}

	.invite__title {
		font-size: 38px;
	}

	.invite__descr {
		font-size: 18px;
		line-height: 1.55;
	}
}

@media (max-width: 960px) {
	.invite {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.invite__media {
		height: 700px;
		min-height: 0;
	}

	.invite__body {
		padding: 40px 20px 30px;
	}
}

@media (max-width: 640px) {
	.invite__title {
		font-size: 30px;
	}

	.invite__descr {
		font-size: 16px;
		line-height: 1.45;
	}
}
