/**
 * Блок reb/contacts-map (блок 03 страницы «Контакты»).
 * Заглушка карты 520px + панель головного офиса (500px).
 */

.reb-contacts-map {
	background: #fff;
}

.reb-contacts-map__inner {
	display: flex;
	align-items: stretch;
	gap: 24px;
	padding-top: 32px;
	padding-bottom: 56px;
}

/* Подложка карты. */
.reb-contacts-map__map {
	position: relative;
	flex: 1;
	min-width: 0;
	min-height: 520px;
	overflow: hidden;
	background:
		repeating-linear-gradient(0deg, transparent 0 39px, rgba(20, 48, 36, 0.07) 39px 40px),
		repeating-linear-gradient(90deg, transparent 0 39px, rgba(20, 48, 36, 0.07) 39px 40px),
		var(--reb-bg);
	border: 1px solid var(--reb-border);
}

.reb-contacts-map__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.reb-contacts-map__pin {
	position: absolute;
	left: 50%;
	top: 46%;
	transform: translate(-50%, -100%);
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 14px;
	background: var(--reb-text);
	color: #fff;
}

.reb-contacts-map__pin::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -8px;
	transform: translateX(-50%);
	border: 8px solid transparent;
	border-top-color: var(--reb-text);
	border-bottom: none;
}

.reb-contacts-map__pin-label {
	font-size: 13px;
	font-weight: 800;
}

.reb-contacts-map__pin-address {
	font-size: 12px;
	color: #CFE6D9;
}

.reb-contacts-map__zoom {
	position: absolute;
	right: 16px;
	top: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.reb-contacts-map__zoom-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	background: #fff;
	border: 1px solid var(--reb-border);
	font-size: 18px;
	font-weight: 700;
	color: var(--reb-text-muted);
}

.reb-contacts-map__note {
	position: absolute;
	left: 16px;
	bottom: 12px;
	max-width: 300px;
	font-size: 11px;
	line-height: 1.4;
	color: var(--reb-text-faint);
}

/* Панель офиса. */
.reb-contacts-map__panel {
	flex: 0 0 500px;
	width: 500px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 28px 30px;
	background: var(--reb-bg);
	border: 1px solid var(--reb-border);
}

.reb-contacts-map__city {
	margin: 0;
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.reb-contacts-map__rows {
	display: flex;
	flex-direction: column;
}

.reb-contacts-map__row {
	display: flex;
	gap: 18px;
	padding: 12px 0;
	border-top: 1px solid var(--reb-border);
	font-size: 14px;
	line-height: 1.5;
}

.reb-contacts-map__row-label {
	flex: 0 0 110px;
	font-family: var(--reb-font-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--reb-text-faint);
	padding-top: 2px;
}

.reb-contacts-map__row-value {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-weight: 600;
}

.reb-contacts-map__row-note {
	font-weight: 400;
	font-size: 13px;
	color: var(--reb-text-muted);
}

.reb-contacts-map__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: auto;
}

/* Адаптив. */
@media (max-width: 1024px) {
	.reb-contacts-map__inner {
		flex-wrap: wrap;
	}

	.reb-contacts-map__map,
	.reb-contacts-map__panel {
		flex: 1 1 100%;
		width: auto;
	}

	.reb-contacts-map__map {
		min-height: 380px;
	}
}

@media (max-width: 768px) {
	.reb-contacts-map__inner {
		padding-top: 24px;
		padding-bottom: 40px;
	}

	/* Мобильная карта 210px по макету. */
	.reb-contacts-map__map {
		min-height: 210px;
	}

	.reb-contacts-map__note {
		display: none;
	}

	.reb-contacts-map__city {
		font-size: 24px;
	}

	.reb-contacts-map__panel {
		padding: 22px 20px;
	}

	.reb-contacts-map__row {
		flex-direction: column;
		gap: 4px;
	}
}
