/* Страница «Контакты»: карта на фон, карточка слева — в стилистике сайта (Rubik, slate) */
/* Заголовок H1 и отступ крошки → H1 задаётся в lf-catalog-pages.css (lf-section-heading-page) */

/* Горизонтальные поля как у .lf-header__inner — та же --lf-chrome-pad-x, что на #bx_eshop_wrap */
/* Ширина как у заголовка: родитель — .workarea с тем же --lf-chrome-pad-x, что у .lf-after-header */
.lf-contacts-fullbleed {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
	position: relative;
	box-sizing: border-box;
	min-height: clamp(420px, 72vh, 880px);
	background: #fff;
	font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lf-contacts-map {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 0;
	background: #cbd5e1;
}

/* Виджет Яндекс.Карт в iframe — как в подвале (lf-footer__map-frame) */
.lf-contacts-map-frame-wrap {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
	background: #cbd5e1;
}

.lf-contacts-map-frame {
	position: absolute;
	left: 0;
	top: 0;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	filter: grayscale(0.15) contrast(1.02);
}

/* JS API 2.1: тот же размер, что у iframe; без встроенных кнопок — только наша ссылка справа */
.lf-contacts-map-frame-wrap--js .lf-contacts-map-js,
#lf-yandex-map.lf-contacts-map-js {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.lf-contacts-map-fallback {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	text-align: center;
	font-size: 15px;
	color: #475569;
	background: linear-gradient(160deg, #e2e8f0 0%, #cbd5e1 100%);
}

.lf-contacts-map-fallback[hidden] {
	display: none !important;
}

.lf-contacts-layout {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: stretch;
	justify-content: flex-start;
	min-height: inherit;
	padding: clamp(20px, 3.5vw, 40px) 0;
	box-sizing: border-box;
	pointer-events: none;
}

.lf-contacts-layout > * {
	pointer-events: auto;
}

.lf-contacts-card {
	width: 100%;
	max-width: 400px;
	margin-left: 20px;
	background: #fff;
	border-radius: 14px;
	border: 1px solid #e2e8f0;
	box-shadow: none;
	overflow: hidden;
	box-sizing: border-box;
	font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lf-contacts-card__photo {
	margin: 0;
	line-height: 0;
	background: #f1f5f9;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.lf-contacts-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.lf-contacts-card__body {
	padding: 22px 22px 8px;
}

.lf-contacts-card__block {
	margin-bottom: 18px;
}

.lf-contacts-card__block:last-of-type {
	margin-bottom: 0;
}

.lf-contacts-card__label {
	display: block;
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #94a3b8;
}

.lf-contacts-card__value {
	margin: 0;
	font-size: 17px;
	line-height: 1.45;
	color: #0f172a;
	font-weight: 400;
}

.lf-contacts-card__value a {
	color: #0f172a;
	font-weight: 400;
	text-decoration: none;
	border-bottom: none;
	transition: color 0.15s ease;
}

.lf-contacts-card__value a:hover {
	color: #1e3a5f;
}

.lf-contacts-card__emails .lf-contacts-card__value {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

button.lf-contacts-card__btn {
	cursor: pointer;
	appearance: none;
	font: inherit;
}

.lf-contacts-card__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: max-content;
	max-width: calc(100% - 44px);
	margin: 18px auto 0;
	padding: 0 28px;
	min-height: 48px;
	box-sizing: border-box;
	font-family: inherit;
	font-size: 17px;
	font-weight: 600;
	color: #0f172a;
	text-decoration: none;
	text-align: center;
	border: 2px solid #0f172a;
	border-radius: 10px;
	background: #fff;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.lf-contacts-card__btn:hover {
	background: #0f172a;
	color: #fff;
	border-color: #0f172a;
}

.lf-contacts-card__btn:focus-visible {
	outline: 2px solid #1e3a5f;
	outline-offset: 3px;
}

.lf-contacts-card__messengers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 10px 22px 22px;
	margin-top: 8px;
}

/* Мессенджеры: поле 42×42 как .lf-header__soc a; SVG/PNG заполняет поле (object-fit: cover) */
.lf-contacts-card__messengers > a {
	line-height: 0;
	text-decoration: none;
	color: inherit;
}

.lf-contacts-card__messengers > a:not(.lf-contacts-card__messenger-text) {
	display: inline-block;
	width: 42px;
	height: 42px;
	vertical-align: top;
	overflow: hidden;
	border-radius: 10px;
}

.lf-contacts-card__messengers > a > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.lf-contacts-card__messengers > a.lf-contacts-card__messenger-text {
	line-height: normal;
	font-size: 17px;
	font-weight: 600;
	color: #1e3a5f;
}

.lf-contacts-empty {
	padding: 20px 22px 24px;
	font-size: 16px;
	line-height: 1.5;
	color: #64748b;
}

.lf-contacts-empty a {
	color: #1e3a5f;
	font-weight: 500;
	text-decoration: none;
	border-bottom: none;
}

.lf-contacts-empty a:hover {
	color: #0f172a;
}

@media (max-width: 767px) {
	.lf-contacts-fullbleed {
		display: flex;
		flex-direction: column;
		gap: clamp(12px, 3.2vw, 18px);
		min-height: auto;
		overflow-x: hidden;
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
		padding-left: 0;
		padding-right: 0;
		padding-bottom: clamp(20px, 6vw, 36px);
		box-sizing: border-box;
	}

	.lf-contacts-map {
		position: relative;
		order: 2;
		top: auto;
		bottom: auto;
		left: 0;
		right: 0;
		width: 100%;
		height: min(46vh, 320px);
		height: min(46dvh, 320px);
		min-height: 220px;
		max-height: 400px;
		border-radius: 14px;
		overflow: hidden;
		background: #cbd5e1;
	}

	.lf-contacts-map-frame-wrap,
	.lf-contacts-map-frame-wrap--js {
		border-radius: inherit;
	}

	.lf-contacts-map-fallback {
		position: relative;
		min-height: min(46vh, 320px);
		min-height: min(46dvh, 320px);
		border-radius: inherit;
	}

	.lf-contacts-layout {
		order: 1;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		min-height: 0;
		padding: 0;
		box-sizing: border-box;
	}

	.lf-contacts-card {
		display: flex;
		flex-direction: column;
		max-width: none;
		width: 100%;
		margin-left: 0;
		margin-top: 0;
		position: relative;
		border-radius: 14px;
		box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
	}

	.lf-contacts-card__body {
		padding: 18px 18px 6px;
	}

	.lf-contacts-card__value {
		font-size: 16px;
		line-height: 1.5;
		overflow-wrap: anywhere;
		word-break: break-word;
	}

	.lf-contacts-card__value a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		padding: 6px 0;
		box-sizing: border-box;
	}

	.lf-contacts-card__emails .lf-contacts-card__value a {
		display: flex;
		align-items: center;
		min-height: 44px;
		padding: 8px 0;
	}

	.lf-contacts-card__btn {
		width: max-content;
		max-width: calc(100% - 32px);
		margin: 16px auto 0;
		min-height: 48px;
		box-sizing: border-box;
		border-radius: 12px;
	}

	.lf-contacts-card__messengers {
		justify-content: center;
		padding: 12px 16px 20px;
		gap: 12px;
	}

	.lf-contacts-empty {
		padding: 16px 18px 20px;
		font-size: 15px;
	}
}

@media (max-width: 479px) {
	.lf-contacts-map {
		min-height: 200px;
		height: min(42vh, 280px);
		height: min(42dvh, 280px);
		border-radius: 12px;
	}

	.lf-contacts-card__body {
		padding: 16px 14px 4px;
	}

	.lf-contacts-card__label {
		font-size: 11px;
	}

	.lf-contacts-card__btn {
		max-width: calc(100% - 28px);
		margin: 16px auto 0;
		font-size: 16px;
	}
}
