.contact-box {
	border: 1px solid #FBFBFB;
	border-radius: 8px;
	background: #FBFBFB;
	margin-top: 20px;
	margin-bottom: 40px;
	box-sizing: border-box;
	padding: 30px;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.contacts-flex {
	flex: 1;
	display: flex;
	flex-direction: column-reverse;
	gap: 20px;
}

.contacts-list,
.contacts-map {
	width: 100%;
}

.contacts-map {
	position: relative;
	min-height: 300px;
	display: flex;
	flex-direction: column;
}

.map-container {
	flex: 1;
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
	height: 100%;
}

#map {
	width: 100%;
	height: 100%;
}

#map ymaps[class$="-ground-pane"] {
	filter: grayscale(100%) !important;
	-webkit-filter: grayscale(100%) !important;
}

#map ymaps[class$="-balloon-pane"],
#map ymaps[class$="-objects-pane"] {
	filter: none !important;
}

.custom-balloon {
	background: black;
	padding: 15px;
	border-radius: 8px;
	width: 300px;
}

.contact-text-balloon {
	color: white;
}

.contact-work-text-balloon {
	color: rgba(255, 255, 255, 0.5);
}

.contact-card-box {
	margin-bottom: 20px;
}

.contact-card-box:last-child {
	margin-bottom: 0;
}

.contact-card {
	border: 1px solid #F4F3EF;
	border-radius: 8px;
	padding: 15px 25px;
	background: #F4F3EF;
}

.contact-card-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	align-items: center;
}

.no-icon {
	padding-left: calc(18px + 10px);
}

.contact-text {
	color: #6F6F6F;
}

.contact-work-text {
	color: #6F6F6F80;
}

.contact-circle {
	--vocation-circle-size: 20px;
	flex-shrink: 0;
	width: var(--vocation-circle-size);
	height: var(--vocation-circle-size);
	background-color: black;
	border-radius: 50%;
}

/* 📱 Мобильная версия: до 767px */
@media (max-width: 767px) {
	.contacts-flex {
		flex-direction: column-reverse;
		gap: 20px;
	}

	.contact-cards-scrollable {
		overflow: visible;
		height: auto;
	}

	.contact-box {
		padding: 20px;
		min-height: auto;
		margin-bottom: 20px;
	}

	.contacts-list {
		margin-bottom: 0;
		width: 100%;
	}

	.map-container {
		height: 300px !important;
		flex: none !important;
		margin-bottom: 0;
	}

	.contact-card-box {
		margin-bottom: 20px;
	}

	.contact-card-box:last-child {
		margin-bottom: 0;
	}
}

/* 💻 Планшеты: от 768px до 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
	.contacts-flex {
		flex-direction: column-reverse;
		gap: 20px;
	}

	.contact-cards-scrollable {
		overflow: visible;
		height: auto;
	}

	.contact-box {
		padding: 25px;
		min-height: auto;
		margin-bottom: 30px;
	}

	.contacts-list {
		flex-basis: 32%;
		flex-grow: 0;
		flex-shrink: 0;
	}

	.map-container {
		height: 400px !important;
		flex: none !important;
		margin-bottom: 0;
	}

	.contact-card-box {
		margin-bottom: 20px;
	}
}

/* 🖥️ Десктоп: от 1025px и выше */
@media (min-width: 1025px) {
	.contacts-flex {
		flex-direction: row;
		align-items: stretch;
		gap: 30px;
	}

	.contacts-list {
		flex-basis: 30%;
		flex-grow: 0;
		flex-shrink: 0;
	}

	.contacts-map {
		flex: 1;
		display: flex;
		flex-direction: column;
		min-height: auto;
	}

	.map-container {
		height: 100%;
	}

	.contact-cards-scrollable {
		height: 100vh;
		overflow-y: auto;
		padding-right: 10px;
	}

	.contact-cards-scrollable::-webkit-scrollbar {
		width: 4px;
	}

	.contact-cards-scrollable::-webkit-scrollbar-track {
		background: #B9B9B9;
		border-radius: 8px;
	}

	.contact-cards-scrollable::-webkit-scrollbar-thumb {
		background: #539E53;
		border-radius: 8px;
	}

	.contact-cards-scrollable::-webkit-scrollbar-thumb:hover {
		background: #3a7a3a;
	}
}