/* Centers — один или несколько филиалов */
.centers {
	padding: clamp(32px, 5vw, 56px) 0;
}

.centers__container {
	display: flex;
	flex-direction: column;
	align-items: center;
/*	width: 100%;*/
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

.centers__title {
	align-self: stretch;
	width: 100%;
	text-align: center;
	margin: 0 0 clamp(14px, 3vw, 20px);
	padding-inline: 4px;
	font-size: clamp(1.25rem, 4.2vw, 2rem);
	line-height: 1.25;
	text-wrap: balance;
}

.centers__city {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	max-width: 100%;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 clamp(20px, 4vw, 32px);
	padding: 10px 18px;
	font-size: clamp(13px, 2.5vw, 15px);
	font-weight: 700;
	color: #3fa8a3;
	background: var(--medik-white, #fff);
	border: 1px solid var(--medik-gray-200, #e3eeed);
	border-radius: 999px;
	box-shadow: 0 2px 12px rgba(46, 61, 60, 0.06);
}

.centers__city-icon {
	display: flex;
	flex-shrink: 0;
	color: var(--medik-accent, #47aaa5);
}

.centers__list {
	display: flex;
	flex-direction: column;
	align-self: stretch;
	gap: clamp(20px, 4vw, 28px);
	width: 100%;
	max-width: 100%;
}

.item_center {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(16px, 3vw, 24px);
	align-items: stretch;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	padding: clamp(16px, 3vw, 24px);
	background: var(--medik-white, #fff);
	border: 1px solid var(--medik-gray-200, #e3eeed);
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(46, 61, 60, 0.06);
}

.item_center__contact {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: clamp(16px, 3vw, 20px);
	min-width: 0;
}

.item_center__contact-info {
	display: flex;
	flex-direction: column;
	gap: clamp(14px, 2.5vw, 18px);
}

.item_center__info-row {
	display: flex;
	align-items: flex-start;
	gap: clamp(10px, 2vw, 14px);
}

.item_center__info-icon {
	flex: 0 0 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	color: var(--medik-accent-dark, #3da8a3);
	background: var(--medik-accent-soft, rgba(71, 170, 165, 0.14));
}

.item_center__info-icon svg {
	display: block;
	width: 20px;
	height: 20px;
}

.item_center__info-body {
	flex: 1;
	min-width: 0;
}

.item_center__info-body p {
	margin: 0 0 8px;
	font-size: clamp(14px, 2.5vw, 15px);
	line-height: 1.45;
	color: var(--medik-text, #2e3d3c);
	word-break: break-word;
}

.item_center__info-body p:last-child {
	margin-bottom: 0;
}

.item_center__info-body h3 {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--medik-muted, #6b7c7b);
}

.item_center__info-body a {
	color: #3fa8a3;
	font-weight: 700;
	text-decoration: none;
}

.item_center__info-body a:hover {
	color: var(--medik-accent-dark, #3da8a3);
}

.item_center__contact-btn-wr {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 4px;
	min-width: 0;
}

.item_center__contact-btn-wr .item_center__contact-btn {
	margin-top: 0;
}

.item_center__contact-btn-wr .item_center__contact-btn .btn {
	width: 100%;
	justify-content: center;
}

.item_center__contact-btn-wr .item_center__images {
	overflow: hidden;
	border-radius: 10px;
	background: var(--medik-gray-100, #f5faf9);
	min-height: clamp(180px, 42vw, 240px);
	max-height: 320px;
}

.item_center__contact-btn-wr .item_center__images img {
	width: 100%;
	height: 100%;
	min-height: inherit;
	max-height: inherit;
	object-fit: cover;
	display: block;
}

.item_center__contact-btn-wr .item_center__images--contain {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(16px, 3vw, 24px);
	max-height: 280px;
}

.item_center__contact-btn-wr .item_center__images--contain img {
	width: auto;
	max-width: 100%;
	min-height: auto;
	max-height: min(180px, 40vw);
	object-fit: contain;
}

.item_center__map {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	min-height: 260px;
	aspect-ratio: 4 / 3;
	background: var(--medik-gray-100, #f5faf9);
	border: 1px solid var(--medik-gray-200, #e3eeed);
}

.item_center__map iframe {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	border: 0;
}

.item_center__btn-wr {
	display: none;
	grid-column: 1 / -1;
}

.item_center__btn-wr .btn {
	width: 100%;
	justify-content: center;
}

.hide_mobile {
	display: block;
}

.show_mobile {
	display: none;
}

/* Tablet */
@media (min-width: 640px) {
	.item_center__map {
		aspect-ratio: 16 / 10;
		min-height: 300px;
	}

	.item_center__contact-btn-wr .item_center__images {
		min-height: 220px;
		max-height: 320px;
	}
}

/* Desktop: контакты + карта в две колонки */
@media (min-width: 1024px) {
	.item_center {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 24px;
	}

	.item_center__contact {
		height: 100%;
	}

	.item_center__contact-btn-wr {
		flex: 1;
		margin-top: auto;
		min-height: 0;
	}

	.item_center__contact-btn-wr .item_center__images {
		flex: 1;
		min-height: 200px;
		max-height: none;
	}

	.item_center__contact-btn-wr .item_center__images img {
		min-height: 200px;
		max-height: none;
	}

	.item_center__map {
		aspect-ratio: auto;
		height: 100%;
		min-height: 400px;
	}
}

@media (min-width: 1200px) {
	.item_center {
		grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.12fr);
		gap: 28px;
	}

	.item_center__map {
		min-height: 460px;
	}
}

/* Mobile */
@media (max-width: 768px) {
	.item_center__info-icon {
		flex: 0 0 36px;
		width: 36px;
		height: 36px;
	}

	.item_center__info-icon svg {
		width: 18px;
		height: 18px;
	}

	.hide_mobile {
		display: none;
	}

	.show_mobile {
		display: block;
	}
}

@media (max-width: 479px) {
	.item_center {
		padding: 16px;
		border-radius: 10px;
	}

	.item_center__map {
		min-height: 240px;
	}
}

/* Без hover-подъёма на тач-устройствах */
@media (hover: none) {
	.item_center:hover {
		transform: none;
	}
}
