/* Контакты — flow-layout (центрированный контейнер, без Figma absolute) */

body.page-contacts {
	margin: 0;
	overflow-x: hidden;
	background: #848899;
	color: #ffffff;
	font-family: 'Manrope', 'Noto Sans Display', sans-serif;
}

html:has(body.page-contacts) {
	background-color: #848899;
	overflow-x: hidden;
}

body.page-contacts .wrap {
	position: relative;
	overflow-x: hidden;
	background: #848899;
}

/* ——— Основной блок ——— */
.ap-contacts {
	width: 100%;
	background: #848899;
	padding: 0 0 72px;
	box-sizing: border-box;
}

.ap-contacts__inner {
	width: 100%;
	max-width: 1920px;
	margin: 0 auto;
	padding: 0 clamp(16px, 5vw, 98px);
	box-sizing: border-box;
	overflow: hidden;
}

.ap-contacts__title-wrap {
	display: block;
}

.ap-contacts__title {
	margin: 0 0 36px;
	padding: 0;
	color: #ffffff;
	font-family: 'Manrope', sans-serif;
	font-weight: 800;
	font-style: normal;
	font-size: 36px;
	line-height: 100%;
	letter-spacing: 0;
	text-transform: none;
	text-align: left;
}

.ap-contacts__office-wrap {
	display: block;
}

.ap-contacts__office {
	box-sizing: border-box;
	width: 100%;
	max-width: 1662px;
	height: auto;
	margin: 0 0 28px;
	padding: 1px;
	border: none;
	border-radius: 25px;
	background: linear-gradient(180deg, #000000 0%, #FFFFFF 100%);
	overflow: visible;
	box-shadow: 0px 4px 4px 0px #00000040;
	line-height: 0;
}

.ap-contacts__office img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 1662px;
	border-radius: calc(25px - 1px);
	object-fit: contain;
	object-position: center center;
}

.ap-contacts__address-wrap,
.ap-contacts__line-wrap,
.ap-contacts__map-wrap,
.ap-contacts__form-intro-wrap {
	display: block;
}

.ap-contacts__figma-line-6 {
	margin: 24px 0;
	padding: 0;
	border: none;
	border-top: 1px solid #ffffff;
}

.ap-contacts__address {
	margin: 0 0 32px;
	font-family: 'Manrope', sans-serif;
	font-size: 24px;
	font-weight: 400;
	line-height: 100%;
	letter-spacing: 0;
	color: #000000;
}

.ap-contacts__address-label {
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	font-style: normal;
	font-size: 24px;
	line-height: 100%;
	letter-spacing: 0;
	color: #000000;
}

.ap-contacts__address-value {
	font-family: 'Manrope', sans-serif;
	font-weight: 300;
	font-style: normal;
	font-size: 18px;
	line-height: 100%;
	letter-spacing: 0;
	color: #000000;
}

.ap-contacts__map {
	box-sizing: border-box;
	margin: 0 0 40px;
	padding: 1px;
	border: none;
	border-radius: 25px;
	background: linear-gradient(90deg, #000000 0%, #FFFFFF 100%);
	overflow: visible;
	box-shadow: 0px 4px 4px 0px #00000040;
	height: 420px;
}

.ap-contacts__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: calc(25px - 1px);
}

.ap-contacts__form-intro {
	margin: 0 0 32px;
	max-width: 983px;
	font-family: 'Manrope', sans-serif;
	font-weight: 300;
	font-size: 16px;
	line-height: 1.45;
	letter-spacing: 0;
	color: #000000;
}

.ap-contacts__bottom {
	display: flex;
	align-items: flex-start;
	gap: 80px;
}

/* ——— Форма ——— */
.ap-contacts__form {
	flex: 0 0 720px;
	max-width: 720px;
}

.ap-contacts__field {
	margin-bottom: 22px;
}

.ap-contacts__field label {
	display: block;
	margin-bottom: 10px;
	font-size: 18px;
	font-weight: 500;
	color: #ffffff;
}

.ap-contacts__field input,
.ap-contacts__field textarea {
	width: 100%;
	box-sizing: border-box;
	border: none;
	border-radius: 8px;
	background: #e8e8e8;
	color: #1a1a1a;
	font-family: inherit;
	font-size: 18px;
	font-weight: 400;
	padding: 14px 18px;
}

.ap-contacts__field input::placeholder,
.ap-contacts__field textarea::placeholder {
	color: #8a8a8a;
	font-style: italic;
}

.ap-contacts__field--phone input,
.ap-contacts__field--phone input::placeholder {
	font-family: 'Manrope', sans-serif;
	font-weight: 300;
	font-style: normal;
	font-size: 16px;
	line-height: 100%;
	letter-spacing: 0;
	text-transform: capitalize;
}

.ap-contacts__field--message textarea,
.ap-contacts__field--message textarea::placeholder {
	font-family: 'Manrope', sans-serif;
	font-weight: 300;
	font-style: normal;
	font-size: 16px;
	line-height: 100%;
	letter-spacing: 0;
}

.ap-contacts__field textarea {
	min-height: 160px;
	resize: vertical;
}

/* «Отправить» — как кнопка «Подробнее» в каталоге, 415×74 */
.ap-contacts__submit-wrap {
	display: inline-block;
	box-sizing: border-box;
	width: 415px;
	min-width: 415px;
	max-width: 415px;
	height: 74px;
	min-height: 74px;
	max-height: 74px;
	margin-top: 8px;
	flex: none;
	padding: 0;
	border: none;
	border-radius: 11.25px;
	background: transparent;
	overflow: visible;
	box-shadow: 0px 4px 4px 0px #00000040;
}

.ap-contacts__submit-wrap:hover:not(:active) {
	background: transparent;
}

.ap-contacts__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	min-height: 0;
	margin: 0;
	padding: 0 16px;
	border: 0.75px solid transparent;
	border-radius: 11.25px;
	background-color: #017344;
	background-image:
		linear-gradient(358.41deg, #12332d 0.9%, #017344 98.2%),
		linear-gradient(97.62deg, #76F8CC 16.37%, #11322B 76.29%);
	background-origin: padding-box, border-box;
	background-clip: padding-box, border-box;
	box-shadow:
		0px 3px 3px 0px #000000CC,
		-6.75px 3.75px 1px 3px #A9F89D42 inset,
		-3px -3px 1px 0px #00000040 inset;
	color: #ffffff;
	font-family: 'Manrope', sans-serif;
	font-size: 26px;
	font-weight: 500;
	font-style: normal;
	line-height: 100%;
	letter-spacing: 0;
	text-align: center;
	text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
	text-transform: none;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: background-image 0.2s ease, box-shadow 0.2s ease;
}

.ap-contacts__submit-wrap:hover:not(:active) .ap-contacts__submit,
.ap-contacts__submit:hover:not(:active) {
	background-image:
		linear-gradient(358.41deg, #282c35 0.9%, #596476 98.2%),
		linear-gradient(97.62deg, #ffffff 16.37%, #75819b 76.29%);
	box-shadow:
		0 3px 3px 0 rgba(0, 0, 0, 0.8),
		inset -4px 2px 1px 2px #848899,
		inset -2px -2px 1px 0 #282c35;
}

.ap-contacts__submit:active {
	background-image:
		linear-gradient(358.41deg, #017344 0.9%, #309b4d 98.2%),
		linear-gradient(97.62deg, #76F8CC 16.37%, #11322B 76.29%);
}

.ap-contacts__submit:focus-visible {
	outline: 2px solid #07ac69;
	outline-offset: 4px;
}

/* ——— Блок менеджера ——— */
.ap-contacts__staff {
	flex: 0 1 418px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 28px;
	padding-top: 8px;
}

.ap-contacts__staff-photo {
	flex: 0 1 418px;
	width: 100%;
	max-width: 418px;
	padding: 1px;
	border: none;
	border-radius: 20px;
	overflow: visible;
	line-height: 0;
	background: linear-gradient(180deg, #000000 0%, #FFFFFF 100%);
	box-sizing: border-box;
	box-shadow: 0px 4px 4px 0px #00000040;
}

.ap-contacts__staff-photo img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 418px;
	border-radius: 19px;
	background: #ffffff;
	object-fit: contain;
	object-position: center center;
}

.ap-contacts__staff-info {
	flex: 1;
}

.ap-contacts__staff-name {
	margin: 0 0 6px;
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	font-style: normal;
	font-size: 24px;
	line-height: 100%;
	letter-spacing: 0;
	color: #000000;
}

.ap-contacts__staff-role {
	margin: 0 0 24px;
	font-family: 'Manrope', sans-serif;
	font-weight: 300;
	font-style: normal;
	font-size: 18px;
	line-height: 100%;
	letter-spacing: 0;
	color: #ffffff;
}

.ap-contacts__staff-social {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 28px;
}

.ap-contacts__staff-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	transition: background 0.2s ease;
}

.ap-contacts__staff-social a:hover {
	background: rgba(255, 255, 255, 0.22);
}

.ap-contacts__staff-social .ap-contacts__social-icon {
	display: block;
	filter: none;
}

.ap-contacts__staff-social .ap-contacts__social-icon--instagram {
	width: 26px;
	height: 26px;
}

.ap-contacts__staff-social .ap-contacts__social-icon--telegram {
	width: 28px;
	height: 28px;
}

.ap-contacts__staff-social .ap-contacts__social-icon--whatsapp {
	width: 27px;
	height: 27px;
}

.ap-contacts__staff-social .ap-contacts__social-icon--viber {
	width: 25px;
	height: 27px;
}

.ap-contacts__staff-phones {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ap-contacts__staff-phones a {
	font-family: 'Manrope', sans-serif;
	font-weight: 300;
	font-style: normal;
	font-size: 24px;
	line-height: 100%;
	letter-spacing: 0;
	color: #000000;
	text-decoration: none;
}

.ap-contacts__staff-phones a:hover {
	color: #000000;
}

@media (max-width: 767px) {
	body.page-contacts .ap-contacts__inner {
		padding: 24px 16px 0;
	}

	body.page-contacts .ap-contacts__title {
		font-size: 28px;
	}

	body.page-contacts .ap-contacts__address {
		font-size: 18px;
		line-height: 1.35;
	}

	body.page-contacts .ap-contacts__address-label {
		display: block;
		margin-bottom: 6px;
		font-size: 20px;
	}

	body.page-contacts .ap-contacts__address-value {
		font-size: 16px;
		line-height: 1.35;
	}

	body.page-contacts .ap-contacts__map {
		height: 280px;
	}
}

@media (max-width: 480px) {
	body.page-contacts .ap-contacts__title {
		font-size: 24px;
	}

	body.page-contacts .ap-contacts__map {
		height: 220px;
		border-radius: 16px;
	}

	body.page-contacts .ap-contacts__map iframe {
		border-radius: calc(16px - 1px);
	}

	body.page-contacts .ap-contacts__submit {
		font-size: 22px;
	}

	body.page-contacts .ap-contacts__staff-photo {
		max-width: 100%;
	}

	body.page-contacts .ap-contacts__staff-photo img {
		width: 100%;
		height: auto;
	}
}
