/* Контакты: десктоп как в style.css (float); мобила — одна колонка, нормальные поля */
#contacts > .centrator {
	display: block;
	overflow: hidden;
	max-width: 962px;
	box-sizing: border-box;
}

#contacts > .centrator > .wrapper {
	float: right;
}

#contacts > .centrator > #contact_form {
	float: left;
	padding-right: 23px;
	max-width: 100%;
	box-sizing: border-box;
}

#contacts #contact_form table {
	width: auto;
	max-width: 100%;
	table-layout: auto;
}

#contacts #contact_form td {
	vertical-align: top;
}

#contacts #captcha {
	float: left;
	display: block;
	width: 297px;
	height: 29px;
	max-width: none;
	min-width: 297px;
	object-fit: contain;
}

#contacts > .centrator > .contacts-clearfix {
	clear: both;
	height: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	line-height: 0;
	font-size: 0;
}

@media screen and (max-width: 900px) {
	#contacts > .centrator > .wrapper,
	#contacts > .centrator > #contact_form {
		float: none;
		width: 100%;
		max-width: 100%;
		padding-left: 0;
		padding-right: 0;
		box-sizing: border-box;
	}

	#contacts #contact_form table {
		display: block;
		width: 100%;
	}

	#contacts #contact_form tbody {
		display: block;
		width: 100%;
	}

	#contacts #contact_form tr {
		display: flex;
		flex-direction: column;
		width: 100%;
		margin-bottom: 14px;
		gap: 10px;
	}

	#contacts #contact_form td {
		display: block;
		width: 100% !important;
		box-sizing: border-box;
		padding: 0;
		text-align: left !important;
	}

	#contacts #contact_form input[type="text"],
	#contacts #contact_form input[name="kapcha"],
	#contacts #contact_form textarea,
	#contacts #contact_form input[type="submit"],
	#contacts #contact_form input[type="button"] {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100% !important;
		min-height: 48px;
		margin-right: 0 !important;
		margin-bottom: 0 !important;
		padding: 12px 14px !important;
		line-height: 1.35 !important;
		font-size: 16px !important;
	}

	#contacts #contact_form textarea {
		min-height: 160px !important;
		height: auto !important;
	}

	#contacts textarea {
		max-width: 100% !important;
	}

	#contacts #captcha {
		float: none;
		display: block;
		width: 297px !important;
		height: 29px !important;
		min-width: 0;
		max-width: min(297px, 100%) !important;
		margin: 0 auto 4px;
		object-fit: contain;
	}
}
