.contact-map {
	box-sizing: border-box;
	width: 100%;
	max-width: min(100%, var(--layout-container-min));
	margin-left: auto;
	margin-right: auto;
}

.contact-map.flex.--col {
	gap: 0.75rem;
	align-items: center;
}

.contact-map .contact-map__viewport {
	gap: 0;
}

.contact-map__tabs {
	display: flex;
	align-items: stretch;
	align-self: stretch;
	box-sizing: border-box;
	width: 100%;
	padding: 0.5rem;
	border-radius: 0.75rem;
	background-color: var(--color-blue-blue-150);
	flex-shrink: 0;
	gap: 0.5rem;
}

.contact-map__tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	min-width: 0;
	padding: 0.625rem 1.25rem;
	border: none;
	border-radius: 0.75rem;
	background-color: transparent;
	color: var(--color-gray-gray-900);
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition:
		background-color 0.24s ease,
		color 0.24s ease;
	-webkit-appearance: none;
	appearance: none;
}

.contact-map__tab:hover:not(.--active),
.contact-map__tab:focus-visible:not(.--active) {
	background-color: var(--color-base-white);
	color: var(--color-gray-gray-900);
}

.contact-map__tab.--active {
	background-color: var(--color-orange-orange-800);
	color: var(--color-base-white);
}

.contact-map__tab.--active:hover {
	background-color: var(--color-orange-orange-800);
	color: var(--color-base-white);
}

.contact-map__tab:focus-visible {
	outline: 0.125rem solid var(--color-primary-300);
	outline-offset: 0.125rem;
}

.contact-map__viewport {
	position: relative;
	box-sizing: border-box;
	align-self: stretch;
	width: 100%;
	height: 36.625rem;
	border-radius: 1.25rem;
	overflow: hidden;
}

.contact-map__map {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: var(--color-blue-blue-150);
}

.contact-map__map.--load-error {
	background-color: var(--color-gray-surface);
}

.contact-map__map > * {
	width: 100%;
	height: 100%;
}

.contact-map__map [class*="ymaps-"][class*="-ground-pane"] {
	filter: grayscale(100%);
	-webkit-filter: grayscale(100%);
}

.contact-map__card {
	position: absolute;
	z-index: 1;
	box-sizing: border-box;
	width: calc(100% - 1.5rem);
	max-width: 19.5rem;
	padding: 1.5rem;
	border-radius: 1.125rem;
	background-color: var(--color-base-white);
	box-shadow: 0 0.25rem 1.5rem rgba(33, 33, 33, 0.12);
}

.contact-map .contact-map__card {
	gap: 1.25rem;
}

.contact-map .contact-map__card[hidden] {
	display: none !important;
}

.contact-map__card--terapiya {
	left: 0.75rem;
	right: 0.75rem;
	bottom: 0.75rem;
	width: auto;
	max-width: none;
}

.contact-map .contact-map__card-body {
	gap: 0.5rem;
}

.contact-map .contact-map__field {
	gap: 0.25rem;
}

.contact-map__card-title.--mipz {
	color: #d9b57c;
}

.contact-map__card-title.--centr {
	color: #1f904f;
}

.contact-map__field-label {
	color: var(--color-gray-gray-600);
}

.contact-map__field-value {
	color: var(--color-gray-gray-900);
	font-family: 'Manrope', sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
}

.contact-map__link {
	color: inherit;
	text-decoration: none;
	transition: color 0.24s ease;
}

.contact-map__link:hover {
	color: var(--color-orange-orange-800);
}

.contact-map .contact-map__card-actions {
	gap: 0.5rem;
}

.contact-map .contact-map__card-actions .btn {
	width: 100%;
}

.contact-map__ymap-marker {
	position: relative;
	width: 0;
	height: 0;
	overflow: visible;
}

.contact-map__ymap-marker-pin {
	position: absolute;
	left: 0;
	top: 0;
	display: block;
	width: 59px;
	height: 59px;
	border-radius: 50%;
	transform: translate(-50%, -50%);
}

.contact-map__ymap-marker-label {
	position: absolute;
	left: calc(29.5px + 5px);
	top: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	max-width: 139px;
	padding: 7px 17px;
	border-radius: 8px;
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: normal;
	color: var(--color-base-white);
	white-space: nowrap;
	transform: translateY(-50%);
}

.contact-map__ymap-marker--centr .contact-map__ymap-marker-label {
	left: auto;
	right: calc(29.5px + 5px);
}

.contact-map__ymap-marker--terapiya .contact-map__ymap-marker-pin {
	background-color: var(--color-blue-blue-800);
	background-image: url('/assets/img/contact-map-marker-terapiya-logo.png');
	background-repeat: no-repeat;
	background-position: center;
	background-size: 22px auto;
}

.contact-map__ymap-marker--terapiya .contact-map__ymap-marker-label {
	background-color: var(--color-blue-blue-800);
}

.contact-map__ymap-marker--mipz .contact-map__ymap-marker-pin {
	background-color: var(--color-base-white);
	background-image: url('/assets/img/contact-map-marker-mipz-logo.png');
	background-repeat: no-repeat;
	background-position: center;
	background-size: 140% auto;
}

.contact-map__ymap-marker--mipz .contact-map__ymap-marker-label {
	background-color: #d9b57c;
}

.contact-map__ymap-marker--centr .contact-map__ymap-marker-pin {
	background-color: #1f904f;
	background-image: url('/assets/img/contact-map-marker-centr-icon.svg');
	background-repeat: no-repeat;
	background-position: center;
	background-size: 32px auto;
}

.contact-map__ymap-marker--centr .contact-map__ymap-marker-label {
	background-color: #1f904f;
	display: block;
	max-width: 168px;
	white-space: pre-line;
	text-align: center;
	line-height: 1.2;
}

@media screen and (min-width: 64rem) {
	.contact-map.flex.--col {
		gap: 1rem;
	}

	.contact-map__tabs {
		width: auto;
		align-self: center;
	}

	.contact-map__tab {
		flex: 0 1 auto;
	}

	.contact-map__tab[data-contact-map-tab="partners"] {
		flex: 0 0 auto;
		width: 12rem;
	}

	.contact-map__viewport {
		height: 31.5rem;
		border-radius: 1.5rem;
	}

	.contact-map__card {
		width: auto;
		max-width: none;
		padding: 1.5rem;
	}

	.contact-map .contact-map__card {
		gap: 1.25rem;
	}

	.contact-map__card--terapiya,
	.contact-map__card.--mipz,
	.contact-map__card.--centr {
		width: 19.875rem;
		max-width: 19.875rem;
	}

	.contact-map__card--terapiya {
		right: auto;
		left: 1.5rem;
		bottom: 1.5rem;
	}

	.contact-map__card.--mipz {
		left: 1.5rem;
		bottom: 1.5rem;
	}

	.contact-map__card.--centr {
		right: 1.5rem;
		bottom: 1.5rem;
		left: auto;
	}

	.contact-map .contact-map__card-body {
		gap: 1rem;
	}

	.contact-map__card-title {
		font-size: 1.25rem;
		line-height: 1.2;
	}

	.contact-map__field-label {
		font-size: 0.875rem;
		line-height: 1.4;
	}

	.contact-map__field-value {
		font-size: 1.125rem;
		line-height: 1.2;
	}

	.contact-map .contact-map__card-actions {
		gap: 0.75rem;
	}

	.contact-map__ymap-marker-pin {
		width: 86px;
		height: 86px;
	}

	.contact-map__ymap-marker-label {
		left: calc(43px + 5px);
		max-width: 203px;
		padding: 10px 24px;
		border-radius: 12px;
		font-size: 20px;
	}

	.contact-map__ymap-marker--centr .contact-map__ymap-marker-label {
		right: calc(43px + 5px);
		max-width: 248px;
	}

	.contact-map__ymap-marker--terapiya .contact-map__ymap-marker-pin {
		background-size: 32px auto;
	}

	.contact-map__ymap-marker--centr .contact-map__ymap-marker-pin {
		background-size: 47px auto;
	}
}
