/*
 * Стили только для центральной части страницы контактов zabor812.ru.
 * Подключить после main.css и media.css:
 * <link rel="stylesheet" href="/css/contacts-page.css?v=20260807">
 */

#contacts.z812-contacts {
	--z812-green: #00514b;
	--z812-green-dark: #003f3a;
	--z812-green-soft: #edf6f4;
	--z812-orange: #ffad32;
	--z812-text: #263332;
	--z812-muted: #6d7978;
	--z812-line: #dce6e4;
	--z812-surface: #f4f7f6;
	width: auto;
	max-width: 1120px;
	margin: 22px auto 38px;
	padding: 38px 40px 42px;
	border: 1px solid rgba(0, 81, 75, 0.12);
	border-radius: 22px;
	background:
		radial-gradient(circle at 100% 0, rgba(0, 81, 75, 0.09), transparent 31%),
		linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 246, 0.96));
	box-shadow: 0 18px 48px rgba(31, 62, 59, 0.08);
	color: var(--z812-text);
	font-family: Tahoma, Arial, sans-serif;
}

#contacts.z812-contacts,
#contacts.z812-contacts * {
	box-sizing: border-box;
}

#contacts.z812-contacts .z812-contacts__header {
	margin: 0 auto 30px;
	text-align: center;
}

#contacts.z812-contacts .z812-contacts__header h1 {
	margin: 0;
	color: var(--z812-green);
	font-family: BigNoodleTitlingCyr, Tahoma, sans-serif;
	font-size: clamp(2.7rem, 5vw, 4rem);
	font-weight: 400;
	line-height: 1;
	letter-spacing: 4px;
	text-shadow: none;
	text-transform: uppercase;
}

#contacts.z812-contacts .z812-contacts__header p {
	margin: 10px 0 0;
	color: var(--z812-muted);
	font-size: 0.94rem;
	line-height: 1.5;
}

#contacts.z812-contacts .z812-contacts__layout {
	display: grid;
	grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
	gap: 24px;
	align-items: stretch;
}

#contacts.z812-contacts .z812-contacts__info {
	display: grid;
	align-content: start;
	gap: 18px;
}

#contacts.z812-contacts #adress.z812-contacts__channels {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	max-width: none;
	margin: 0;
	text-align: left;
}

#contacts.z812-contacts .z812-contact-card {
	grid-area: auto;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 15px 16px;
	border: 1px solid var(--z812-line);
	border-radius: 13px;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 7px 20px rgba(29, 58, 55, 0.045);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#contacts.z812-contacts .z812-contact-card:hover {
	border-color: rgba(0, 81, 75, 0.32);
	box-shadow: 0 10px 24px rgba(29, 58, 55, 0.09);
	transform: translateY(-2px);
}

#contacts.z812-contacts .z812-contact-card__icon {
	width: 43px;
	height: 43px;
	flex: 0 0 43px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--z812-green-soft);
	color: var(--z812-green);
	font-size: 1rem;
}

#contacts.z812-contacts .z812-contact-card__body {
	min-width: 0;
	display: grid;
	gap: 3px;
}

#contacts.z812-contacts .z812-contact-card__label {
	color: var(--z812-muted);
	font-size: 0.67rem;
	font-weight: 700;
	letter-spacing: 0.055em;
	line-height: 1.3;
	text-transform: uppercase;
}

#contacts.z812-contacts .z812-contact-card a {
	width: fit-content;
	max-width: 100%;
	color: var(--z812-green-dark);
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.45;
	overflow-wrap: anywhere;
	text-decoration: none;
}

#contacts.z812-contacts .z812-contact-card a:hover {
	color: #007b72;
	text-decoration: underline;
	text-underline-offset: 3px;
}

#contacts.z812-contacts .z812-contact-card a span {
	color: var(--z812-muted);
	font-weight: 400;
}

#contacts.z812-contacts .z812-contacts__details {
	display: grid;
	gap: 14px;
	padding: 20px;
	border: 1px solid var(--z812-line);
	border-radius: 15px;
	background: var(--z812-green-soft);
}

#contacts.z812-contacts .z812-contacts__legal {
	display: grid;
	gap: 3px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(0, 81, 75, 0.12);
}

#contacts.z812-contacts .z812-contacts__legal span {
	color: var(--z812-text);
	font-size: 0.82rem;
	font-weight: 700;
}

#contacts.z812-contacts .z812-contacts__legal small {
	color: var(--z812-muted);
	font-size: 0.72rem;
	line-height: 1.45;
}

#contacts.z812-contacts .z812-contacts__address-block {
	display: grid;
	gap: 7px;
}

#contacts.z812-contacts .z812-contacts__caption {
	color: var(--z812-green);
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

#contacts.z812-contacts .adr {
	grid-area: auto;
	margin: 0;
	padding: 0;
	color: var(--z812-muted);
	font-size: 0.78rem;
	font-style: normal;
	line-height: 1.55;
	text-align: left;
	text-shadow: none;
}

#contacts.z812-contacts .adr strong {
	color: var(--z812-text);
	font-weight: 700;
}

#contacts.z812-contacts .adr1,
#contacts.z812-contacts .adr2 {
	grid-area: auto;
	width: 100%;
	max-width: none;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	padding: 11px 12px;
	border-radius: 10px;
	text-align: left;
	text-shadow: none;
}

#contacts.z812-contacts .adr1 {
	background: rgba(255, 173, 50, 0.16);
	color: #81530e;
	font-size: 0.79rem;
	font-weight: 700;
	line-height: 1.45;
}

#contacts.z812-contacts .adr2 {
	background: rgba(255, 255, 255, 0.78);
	color: var(--z812-muted);
	font-size: 0.73rem;
	line-height: 1.55;
}

#contacts.z812-contacts .adr1 i,
#contacts.z812-contacts .adr2 i {
	margin-top: 3px;
	color: var(--z812-green);
}

#contacts.z812-contacts .z812-contacts__map-card {
	min-width: 0;
	min-height: 100%;
	display: grid;
	grid-template-rows: auto minmax(430px, 1fr);
	overflow: hidden;
	border: 1px solid var(--z812-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(29, 58, 55, 0.07);
}

#contacts.z812-contacts .z812-contacts__map-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 16px 18px;
	border-bottom: 1px solid var(--z812-line);
}

#contacts.z812-contacts .z812-contacts__map-header > div {
	min-width: 0;
	display: grid;
	gap: 3px;
}

#contacts.z812-contacts .z812-contacts__map-header span {
	color: var(--z812-muted);
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

#contacts.z812-contacts .z812-contacts__map-header strong {
	color: var(--z812-text);
	font-size: 0.9rem;
	line-height: 1.35;
}

#contacts.z812-contacts .z812-contacts__map-header a {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 12px;
	border: 1px solid rgba(0, 81, 75, 0.24);
	border-radius: 8px;
	color: var(--z812-green);
	font-size: 0.7rem;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

#contacts.z812-contacts .z812-contacts__map-header a:hover {
	background: var(--z812-green);
	color: #fff;
}

#contacts.z812-contacts #map {
	width: 100%;
	height: 100%;
	min-height: 430px;
	max-width: none;
	margin: 0;
	background: #e9efed;
}

#contacts.z812-contacts #map > ymaps,
#contacts.z812-contacts #map .ymaps-2-1-79-map {
	width: 100% !important;
	height: 100% !important;
}

@media (max-width: 900px) {
	#contacts.z812-contacts {
		margin-inline: 14px;
		padding: 32px 28px 34px;
	}

	#contacts.z812-contacts .z812-contacts__layout {
		grid-template-columns: 1fr;
	}

	#contacts.z812-contacts #adress.z812-contacts__channels {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	#contacts.z812-contacts .z812-contact-card {
		align-items: flex-start;
		padding: 14px;
	}

	#contacts.z812-contacts .z812-contact-card__icon {
		width: 36px;
		height: 36px;
		flex-basis: 36px;
	}

	#contacts.z812-contacts .z812-contact-card a {
		font-size: 0.84rem;
	}

	#contacts.z812-contacts .z812-contacts__map-card {
		grid-template-rows: auto 420px;
	}
}

@media (max-width: 650px) {
	#contacts.z812-contacts {
		margin: 14px 8px 26px;
		padding: 27px 14px 16px;
		border-radius: 16px;
	}

	#contacts.z812-contacts .z812-contacts__header {
		margin-bottom: 22px;
	}

	#contacts.z812-contacts .z812-contacts__header h1 {
		font-size: 2.6rem;
		letter-spacing: 2px;
	}

	#contacts.z812-contacts .z812-contacts__header p {
		font-size: 0.82rem;
	}

	#contacts.z812-contacts #adress.z812-contacts__channels {
		grid-template-columns: 1fr;
	}

	#contacts.z812-contacts .z812-contact-card {
		align-items: center;
	}

	#contacts.z812-contacts .z812-contact-card a {
		font-size: 0.96rem;
	}

	#contacts.z812-contacts .z812-contacts__details {
		padding: 17px;
	}

	#contacts.z812-contacts .z812-contacts__map-header {
		align-items: flex-start;
		padding: 14px;
	}

	#contacts.z812-contacts .z812-contacts__map-header a {
		width: 38px;
		height: 38px;
		justify-content: center;
		padding: 0;
		font-size: 0;
	}

	#contacts.z812-contacts .z812-contacts__map-header a i {
		font-size: 0.78rem;
	}

	#contacts.z812-contacts .z812-contacts__map-card {
		grid-template-rows: auto 350px;
		border-radius: 13px;
	}

	#contacts.z812-contacts #map {
		min-height: 350px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#contacts.z812-contacts .z812-contact-card,
	#contacts.z812-contacts .z812-contacts__map-header a {
		transition: none;
	}
}
