.map-container {
	position: relative;
	overflow: hidden;

}

.mobile-balloon {
	position: absolute;
	bottom: 40px;
	left: 0;
	right: 0;
	background: black;
	color: white;
	padding: 10px;
	border-radius: 8px;
	z-index: 999;
	max-height: 50%;
	overflow: hidden;
	/* Меняем auto на hidden */
	display: none;
	box-sizing: border-box;
	margin: 8px;
}

.mobile-balloon .contact-text-balloon {
	max-height: 100%;
	overflow: hidden;
	/* Отключаем скролл для содержимого */
}

.mobile-balloon.show {
	display: block;
}

.graphic-container {
	display: flex;
	justify-content: space-around;
	align-items: center;
	width: 40%;
	border: 1px solid #B9B9B9;
	border-radius: 40px;
	padding: 8px;
	margin-top: 20px;
	margin-bottom: 35px;
	position: relative;
	gap: 10px;
}

.selection-indicator {
	position: absolute;
	top: 8px;
	bottom: 8px;
	left: 0;
	background-color: #F4F3EF;
	border-radius: 40px;
	z-index: 0;
	transition: all 0.5s ease-in-out;
}

.filter-button {
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	z-index: 1;
	padding: 8px 7px;
	border-radius: 40px;
	flex: 1;
	margin: 0;
	text-align: center;
	white-space: nowrap;
}

.filter-button.active {
	color: #000;
	cursor: default;
}

.filter-button:not(.active):hover {
	outline: 1px solid #539E53;
	background-color: rgba(244, 243, 239, 0.3);
}


.column {
	border-radius: 40px;
	padding: 8px 7px;
	flex: 1;
	margin: 0;
	text-align: center;
	white-space: nowrap;
}

.transparent-input {
	background: transparent;
	border: none;
	color: #6F6F6F;
	outline: none;
}

.transparent-input::placeholder {
	color: #B9B9B9;
	font-size: 12px;
}

.search-box {
	background: #F4F3EF;
	border: 1px solid #F4F3EF;
	border-radius: 40px;
	padding: 8px 25px;
	position: static;
	width: 100%;
	box-sizing: border-box;
	white-space: nowrap;
}

.search-container {
	background: #FBFBFB;
	position: sticky;
	top: 0;
	z-index: 10;
	padding-bottom: 20px;
}

.search-box span {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
}

.search-box input {
	flex: 1;
	/* Занимает все доступное пространство */
	min-width: 0;
	/* Позволяет input сжиматься */
}

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

.search-wrapper {
	background-color: #FBFBFB;
	padding: 16px;
	margin-bottom: 20px;
}

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

.contacts-list {
	position: relative;
	height: 100%;
}

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

.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;
	text-align: left;
}

.contact-text-balloon-mobile {
	color: white;
	text-align: left;
	font-size: 12px;
}

.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;
	}

	.graphic-container {
		width: 100%;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.graphic-container::-webkit-scrollbar {
		display: none;
	}
}

/* 💻 Планшеты: от 768px до 1024px */
@media (min-width: 768px) and (max-width: 1025px) {
	.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;
	}

	.graphic-container {
		width: 100%;
	}
}

/* 🖥️ Десктоп: от 1025px до 1299 */
@media (min-width: 1025px) and (max-width: 1299px) {
	.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;
		box-sizing: border-box;
	}

	.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;
	}

	.graphic-container {
		width: 55%;
	}
}


/* 🖥️ Десктоп: от 1300px и выше */
@media (min-width: 1300px) {
	.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;
		box-sizing: border-box;
	}

	.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;
	}

	.graphic-container {
		width: auto;
		max-width: 55%;
	}

	.column {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		padding: 8px 12px;
	}
}


.store-card {
	border: 1px solid #F4F3EF;
	border-radius: 8px;
	background: #F4F3EF;
	position: relative;
	overflow: hidden;
	height: 100%;
}

.store-card-link {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%;
	width: 100%;
	text-decoration: none;
	position: relative;
}

.store-card-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #F4F3EF;
	z-index: 1;
}

.store-card-logo {
	position: relative;
	z-index: 2;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.grayscale-effect {
	filter: grayscale(100%);
}

.store-card:hover .grayscale-effect {
	filter: grayscale(0%);
}