/* Карта районов Татарстана — элемент Elementor «Карта районов Татарстана». */

.mvm-tmap,
.mvm-tmap-modal {
	--mvm-tmap-fill: #00924f;
	--mvm-tmap-label: #ffffff;
	--mvm-tmap-label-outline: #00401f;
	--mvm-tmap-tooltip: #00401f;
	--mvm-tmap-empty: #e7eef3;
	--mvm-tmap-low: #cdeadb;
	--mvm-tmap-high: #00924f;
	--mvm-tmap-hover: #005c30;
	--mvm-tmap-border: #ffffff;
	--mvm-tmap-river: #a9d8f5;
	--mvm-tmap-ink: #17283c;
	--mvm-tmap-muted: #4a5b70;
	--mvm-tmap-line: #dbe6ed;
	--mvm-tmap-accent: #00924f;
	--mvm-tmap-accent-dark: #007d43;
	--mvm-tmap-surface: #f3f8fb;
	--mvm-tmap-radius: 24px;
}

.mvm-tmap {
	--mvm-tmap-l1: var(--mvm-tmap-low);
	--mvm-tmap-l2: #8fd0ae;
	--mvm-tmap-l2: color-mix(in srgb, var(--mvm-tmap-low) 62%, var(--mvm-tmap-high));
	--mvm-tmap-l3: #4fb585;
	--mvm-tmap-l3: color-mix(in srgb, var(--mvm-tmap-low) 30%, var(--mvm-tmap-high));
	--mvm-tmap-l4: var(--mvm-tmap-high);
	position: relative;
	box-sizing: border-box;
	padding: clamp(20px, 3.4vw, 48px);
	border-radius: calc(var(--mvm-tmap-radius) + 6px);
	background: var(--mvm-tmap-surface);
	color: var(--mvm-tmap-ink);
	font-family: inherit;
	line-height: 1.45;
}

.mvm-tmap *,
.mvm-tmap-modal * {
	box-sizing: border-box;
}

/* Шапка */

.mvm-tmap__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px 40px;
	margin-bottom: clamp(12px, 2vw, 28px);
}

.mvm-tmap__intro {
	flex: 1 1 420px;
	max-width: 780px;
}

.mvm-tmap .mvm-tmap__eyebrow {
	margin: 0 0 8px;
	color: var(--mvm-tmap-accent);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.mvm-tmap .mvm-tmap__title {
	margin: 0;
	color: var(--mvm-tmap-ink);
	font-size: clamp(26px, 3vw, 42px);
	font-weight: 800;
	line-height: 1.12;
}

.mvm-tmap .mvm-tmap__subtitle {
	margin: 12px 0 0;
	color: var(--mvm-tmap-muted);
	font-size: clamp(15px, 1.2vw, 17px);
}

.mvm-tmap__picker {
	display: flex;
	flex: 0 1 320px;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}

.mvm-tmap__picker-label {
	color: var(--mvm-tmap-muted);
	font-size: 13px;
	font-weight: 600;
}

.mvm-tmap .mvm-tmap__select {
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 0 44px 0 16px;
	border: 1px solid var(--mvm-tmap-line);
	border-radius: 14px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2317283c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
	color: var(--mvm-tmap-ink);
	font: inherit;
	font-size: 16px;
	box-shadow: 0 6px 18px rgb(16 64 101 / 6%);
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.mvm-tmap .mvm-tmap__select:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--mvm-tmap-accent) 35%, transparent);
	outline-offset: 2px;
	border-color: var(--mvm-tmap-accent);
}

/* Карта */

.mvm-tmap__stage {
	position: relative;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
}

/*
 * Производительность: карта не несёт ни фильтров, ни анимаций, поэтому
 * наведение её не перерисовывает. Тень и подсвеченный район — отдельные
 * слои (will-change), их браузер сдвигает и проявляет на видеокарте.
 */
.mvm-tmap__svg {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.mvm-tmap__shadow,
.mvm-tmap__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
	will-change: transform;
}

.mvm-tmap__shadow path {
	fill: rgb(0 70 38 / 22%);
}

.mvm-tmap__shadow {
	filter: blur(14px);
	transform: translateY(16px);
}

.mvm-tmap__district {
	fill: var(--mvm-tmap-empty);
	fill-rule: evenodd;
	stroke: var(--mvm-tmap-border);
	stroke-width: 1.3;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
	cursor: pointer;
	outline: none;
	-webkit-tap-highlight-color: transparent;
}

.mvm-tmap__district--l1 { fill: var(--mvm-tmap-l1); }
.mvm-tmap__district--l2 { fill: var(--mvm-tmap-l2); }
.mvm-tmap__district--l3 { fill: var(--mvm-tmap-l3); }
.mvm-tmap__district--l4 { fill: var(--mvm-tmap-l4); }

/* Единый цвет: границы чуть толще, иначе на ровной заливке они теряются. */
.mvm-tmap__district--flat {
	fill: var(--mvm-tmap-fill);
	stroke-width: 1.8;
}

.mvm-tmap__rivers {
	pointer-events: none;
}

.mvm-tmap__river {
	fill: none;
	stroke: var(--mvm-tmap-river);
	stroke-width: 1.1;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: 0.9;
}

.mvm-tmap__river--major {
	stroke-width: 3.2;
}

/* Подсвеченный район рисуется поверх карты копией контура в своём слое. */
.mvm-tmap__overlay {
	opacity: 0;
	filter: drop-shadow(0 6px 8px rgb(0 50 26 / 38%));
	transform: translateY(0);
	transition: opacity 0.16s ease, transform 0.16s ease;
}

.mvm-tmap__stage.is-hovering .mvm-tmap__overlay {
	opacity: 1;
	transform: translateY(-3px);
}

.mvm-tmap__active-path {
	fill: var(--mvm-tmap-hover);
	fill-opacity: 0.94;
	fill-rule: evenodd;
	stroke: #fff;
	stroke-width: 2.6;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

/* Подписи городов */

.mvm-tmap__cities {
	position: absolute;
	inset: 0;
	pointer-events: none;
	will-change: transform;
}

.mvm-tmap__city {
	position: absolute;
	width: 0;
	height: 0;
}

.mvm-tmap__city-dot {
	position: absolute;
	top: 0;
	left: 0;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--mvm-tmap-label);
	box-shadow: 0 0 0 1.5px var(--mvm-tmap-label-outline);
	transform: translate(-50%, -50%);
}

.mvm-tmap__city--major .mvm-tmap__city-dot {
	width: 9px;
	height: 9px;
	box-shadow: 0 0 0 2px var(--mvm-tmap-label-outline);
}

.mvm-tmap__city--capital .mvm-tmap__city-dot {
	width: 15px;
	height: 15px;
	border: 3px solid var(--mvm-tmap-label);
	background: var(--mvm-tmap-label-outline);
	box-shadow: 0 0 0 1.5px var(--mvm-tmap-label-outline), 0 2px 6px rgb(0 0 0 / 30%);
}

.mvm-tmap__city-name {
	position: absolute;
	top: 0;
	left: 0;
	/* Белые подписи с тёмно-зелёной обводкой читаются и на зелёной заливке,
	   и на светлом фоне за краем карты. */
	color: var(--mvm-tmap-label);
	font-size: clamp(9px, 0.82vw, 12px);
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	text-shadow: -1px 0 0 var(--mvm-tmap-label-outline), 1px 0 0 var(--mvm-tmap-label-outline), 0 -1px 0 var(--mvm-tmap-label-outline), 0 1px 0 var(--mvm-tmap-label-outline), 0 1px 3px rgb(0 0 0 / 35%);
}

.mvm-tmap__city--major .mvm-tmap__city-name {
	font-size: clamp(11px, 1.3vw, 18px);
	font-weight: 800;
	letter-spacing: -0.01em;
}

.mvm-tmap__city--r .mvm-tmap__city-name { transform: translate(7px, -50%); }
.mvm-tmap__city--l .mvm-tmap__city-name { transform: translate(calc(-100% - 7px), -50%); }
.mvm-tmap__city--t .mvm-tmap__city-name { transform: translate(-50%, calc(-100% - 7px)); }
.mvm-tmap__city--b .mvm-tmap__city-name { transform: translate(-50%, 7px); }
.mvm-tmap__city--tl .mvm-tmap__city-name { transform: translate(calc(-100% - 3px), calc(-100% - 5px)); }
.mvm-tmap__city--tr .mvm-tmap__city-name { transform: translate(3px, calc(-100% - 5px)); }
.mvm-tmap__city--major.mvm-tmap__city--r .mvm-tmap__city-name { transform: translate(9px, -50%); }
.mvm-tmap__city--capital.mvm-tmap__city--r .mvm-tmap__city-name { transform: translate(13px, -50%); }

.mvm-tmap__city.is-active .mvm-tmap__city-name {
	color: #fff;
	text-shadow: -1px 0 0 var(--mvm-tmap-hover), 1px 0 0 var(--mvm-tmap-hover), 0 -1px 0 var(--mvm-tmap-hover), 0 1px 0 var(--mvm-tmap-hover), 0 0 6px var(--mvm-tmap-hover);
}

.mvm-tmap__city.is-active .mvm-tmap__city-dot {
	background: #fff;
	box-shadow: 0 0 0 2px var(--mvm-tmap-hover);
}

.mvm-tmap__city--capital.is-active .mvm-tmap__city-dot {
	border-color: #fff;
	background: var(--mvm-tmap-hover);
	box-shadow: 0 0 0 2px var(--mvm-tmap-hover);
}

.mvm-tmap__stage--major-only .mvm-tmap__city--minor .mvm-tmap__city-name {
	display: none;
}

/* Подсказка при наведении */

.mvm-tmap__tooltip {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 150px;
	padding: 10px 14px;
	white-space: nowrap;
	border-radius: 14px;
	background: var(--mvm-tmap-tooltip);
	color: #fff;
	box-shadow: 0 14px 30px rgb(9 30 52 / 28%);
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	/* Положение задаёт скрипт через transform: так подсказка едет без пересчёта раскладки. */
	will-change: transform;
	transition: opacity 0.12s ease, visibility 0s linear 0.12s;
}

.mvm-tmap__tooltip.is-visible {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.12s ease;
}

.mvm-tmap__tooltip[hidden] {
	display: none;
}

.mvm-tmap__tooltip::after {
	position: absolute;
	bottom: -6px;
	left: 50%;
	width: 12px;
	height: 12px;
	background: var(--mvm-tmap-tooltip);
	content: "";
	transform: translateX(-50%) rotate(45deg);
}

.mvm-tmap__tooltip.is-below::after {
	top: -6px;
	bottom: auto;
}

.mvm-tmap__tooltip-title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
}

.mvm-tmap__tooltip-meta {
	color: rgb(255 255 255 / 78%);
	font-size: 13px;
}

/* Легенда */

.mvm-tmap__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 28px;
	margin-top: clamp(14px, 2vw, 26px);
}

.mvm-tmap .mvm-tmap__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 0;
	padding: 0;
	color: var(--mvm-tmap-muted);
	font-size: 14px;
	list-style: none;
}

.mvm-tmap__legend li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.mvm-tmap__swatch {
	display: inline-block;
	width: 16px;
	height: 16px;
	border-radius: 5px;
	background: var(--mvm-tmap-empty);
	box-shadow: inset 0 0 0 1px rgb(23 40 60 / 8%);
}

.mvm-tmap__swatch--l1 { background: var(--mvm-tmap-l1); }
.mvm-tmap__swatch--l2 { background: var(--mvm-tmap-l2); }
.mvm-tmap__swatch--l3 { background: var(--mvm-tmap-l3); }
.mvm-tmap__swatch--l4 { background: var(--mvm-tmap-l4); }

.mvm-tmap .mvm-tmap__total {
	margin: 0;
	color: var(--mvm-tmap-ink);
	font-size: 15px;
	font-weight: 700;
}

/* Карточка района */

html.mvm-tmap-lock,
html.mvm-tmap-lock body {
	overflow: hidden;
}

/* Место исчезнувшей полосы прокрутки, чтобы страница не прыгала вбок. */
html.mvm-tmap-lock body {
	padding-right: var(--mvm-tmap-scrollbar, 0px);
}

.mvm-tmap-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	color: var(--mvm-tmap-ink);
	font-family: inherit;
	line-height: 1.45;
}

.mvm-tmap-modal[hidden] {
	display: none;
}

/* Невидимая разовая отрисовка окна после загрузки страницы. */
.mvm-tmap-modal.is-warming {
	opacity: 0;
	pointer-events: none;
}

.mvm-tmap-modal__backdrop {
	position: absolute;
	inset: 0;
	/* Без backdrop-filter: размытие всей страницы под окном и давало рывок при открытии. */
	background: rgb(9 24 40 / 64%);
	will-change: opacity;
	animation: mvm-tmap-fade 0.2s ease;
}

.mvm-tmap-modal__dialog {
	position: relative;
	display: flex;
	width: min(1120px, 100%);
	max-height: min(780px, calc(100vh - 48px));
	max-height: min(780px, calc(100dvh - 48px));
	overflow: hidden;
	border-radius: var(--mvm-tmap-radius);
	background: #fff;
	box-shadow: 0 30px 80px rgb(4 18 33 / 35%);
	will-change: transform, opacity;
	animation: mvm-tmap-rise 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mvm-tmap-modal__dialog:focus {
	outline: none;
}

.mvm-tmap-card {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	width: 100%;
	min-height: 0;
}

.mvm-tmap-card__place,
.mvm-tmap-card__info {
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
}

/* Слева — город */

.mvm-tmap-card__place {
	display: flex;
	flex-direction: column;
	background: var(--mvm-tmap-surface);
}

.mvm-tmap-card__gallery {
	flex: 0 0 auto;
	background: #fff;
}

.mvm-tmap-card__media {
	position: relative;
	flex: 0 0 auto;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: linear-gradient(135deg, var(--mvm-tmap-hover), var(--mvm-tmap-accent));
}

.mvm-tmap-card__media-stage {
	position: absolute;
	inset: 0;
}

.mvm-tmap-card__media-stage > img,
.mvm-tmap-card__media-stage > video {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	background: #071c2c;
}

.mvm-tmap-card__media-stage > video {
	position: relative;
	z-index: 2;
}

.mvm-tmap-card__media::after {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgb(4 18 33 / 0%) 45%, rgb(4 18 33 / 72%) 100%);
	content: "";
	pointer-events: none;
}

.mvm-tmap-card__silhouette {
	position: absolute;
	inset: 12% 18% 22%;
	width: 64%;
	height: 66%;
	overflow: visible;
}

.mvm-tmap-card__silhouette path {
	fill: rgb(255 255 255 / 18%);
	fill-rule: evenodd;
	stroke: rgb(255 255 255 / 85%);
	stroke-width: 2;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.mvm-tmap-card__caption {
	position: absolute;
	right: 24px;
	bottom: 20px;
	left: 24px;
	z-index: 2;
	color: #fff;
	pointer-events: none;
}

.mvm-tmap-card__media.is-video .mvm-tmap-card__caption {
	bottom: 56px;
}

.mvm-tmap-card__gallery-thumbs {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding: 12px 14px;
	border-bottom: 1px solid var(--mvm-tmap-line);
	background: #fff;
	scrollbar-width: thin;
	scroll-snap-type: x proximity;
}

.mvm-tmap-modal .mvm-tmap-card__gallery-thumb,
.mvm-tmap-modal .mvm-tmap-card__gallery-thumb:hover,
.mvm-tmap-modal .mvm-tmap-card__gallery-thumb:focus {
	position: relative;
	flex: 0 0 86px;
	width: 86px;
	height: 58px;
	overflow: hidden;
	margin: 0;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 11px;
	background: var(--mvm-tmap-surface);
	box-shadow: none;
	cursor: pointer;
	scroll-snap-align: start;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.mvm-tmap-modal .mvm-tmap-card__gallery-thumb:hover {
	border-color: color-mix(in srgb, var(--mvm-tmap-accent) 55%, #fff);
	background: var(--mvm-tmap-surface);
	transform: translateY(-1px);
}

.mvm-tmap-modal .mvm-tmap-card__gallery-thumb.is-active,
.mvm-tmap-modal .mvm-tmap-card__gallery-thumb.is-active:hover,
.mvm-tmap-modal .mvm-tmap-card__gallery-thumb.is-active:focus {
	border-color: var(--mvm-tmap-accent);
	background: var(--mvm-tmap-surface);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--mvm-tmap-accent) 18%, transparent);
}

.mvm-tmap-modal .mvm-tmap-card__gallery-thumb:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--mvm-tmap-accent) 34%, transparent);
	outline-offset: 2px;
}

.mvm-tmap-card__gallery-thumb img,
.mvm-tmap-card__gallery-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mvm-tmap-card__gallery-placeholder {
	background: linear-gradient(135deg, var(--mvm-tmap-hover), var(--mvm-tmap-accent));
}

.mvm-tmap-card__gallery-play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	padding-left: 2px;
	border-radius: 50%;
	background: rgb(4 18 33 / 72%);
	color: #fff;
	font-size: 12px;
	line-height: 1;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.mvm-tmap-modal .mvm-tmap-card__caption-eyebrow {
	margin: 0 0 4px;
	color: rgb(255 255 255 / 80%);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.mvm-tmap-modal .mvm-tmap-card__caption-title {
	margin: 0;
	color: #fff;
	font-size: clamp(20px, 2vw, 26px);
	font-weight: 800;
	line-height: 1.15;
}

.mvm-tmap-card__place-body {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 22px 26px 26px;
}

.mvm-tmap-modal .mvm-tmap-card__text {
	margin: 0;
	color: var(--mvm-tmap-muted);
	font-size: 15px;
	line-height: 1.6;
	white-space: pre-line;
}

.mvm-tmap-modal .mvm-tmap-card__text--empty {
	color: var(--mvm-tmap-muted);
	font-style: italic;
}

.mvm-tmap-card__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mvm-tmap-card__facts li {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 12px 14px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 4px 14px rgb(16 64 101 / 6%);
}

.mvm-tmap-card__fact-value {
	color: var(--mvm-tmap-accent);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.15;
}

.mvm-tmap-card__fact-label {
	color: var(--mvm-tmap-muted);
	font-size: 12px;
	line-height: 1.3;
}

.mvm-tmap-modal .mvm-tmap-card__subhead {
	margin: 0 0 10px;
	color: var(--mvm-tmap-ink);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.mvm-tmap-card__sights {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mvm-tmap-card__sights li {
	margin: 0;
}

.mvm-tmap-modal a.mvm-tmap-card__sight {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: 14px;
	background: #fff;
	color: var(--mvm-tmap-ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.mvm-tmap-modal a.mvm-tmap-card__sight:hover,
.mvm-tmap-modal a.mvm-tmap-card__sight:focus-visible {
	color: var(--mvm-tmap-ink);
	box-shadow: 0 8px 20px rgb(16 64 101 / 12%);
	transform: translateY(-1px);
}

.mvm-tmap-card__sight-thumb {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	overflow: hidden;
	border-radius: 10px;
	background: var(--mvm-tmap-line);
}

.mvm-tmap-card__sight-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

/* Справа — вакансии */

.mvm-tmap-card__info {
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding: 30px 30px 26px;
}

.mvm-tmap-modal .mvm-tmap-card__eyebrow {
	margin: 0 0 6px;
	color: var(--mvm-tmap-accent);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.mvm-tmap-modal .mvm-tmap-card__title {
	margin: 0;
	padding-right: 44px;
	color: var(--mvm-tmap-ink);
	font-size: clamp(24px, 2.4vw, 32px);
	font-weight: 800;
	line-height: 1.12;
}

.mvm-tmap-modal .mvm-tmap-card__centre {
	margin: 8px 0 0;
	color: var(--mvm-tmap-muted);
	font-size: 15px;
}

.mvm-tmap-card__stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.mvm-tmap-card__stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 18px;
	border-radius: 18px;
	background: var(--mvm-tmap-surface);
}

.mvm-tmap-card__stat--accent {
	background: var(--mvm-tmap-accent);
	color: #fff;
}

.mvm-tmap-modal a.mvm-tmap-card__stat--accent,
.mvm-tmap-modal a.mvm-tmap-card__stat--accent:visited {
	color: #fff;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.mvm-tmap-modal a.mvm-tmap-card__stat--accent:hover,
.mvm-tmap-modal a.mvm-tmap-card__stat--accent:focus-visible {
	background: var(--mvm-tmap-accent-dark);
	color: #fff;
	box-shadow: 0 10px 24px rgb(0 146 79 / 22%);
	transform: translateY(-2px);
}

.mvm-tmap-modal a.mvm-tmap-card__stat--accent:focus-visible {
	outline: 3px solid rgb(0 146 79 / 25%);
	outline-offset: 3px;
}

.mvm-tmap-card__stat-value {
	font-size: clamp(24px, 2.4vw, 32px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.mvm-tmap-card__stat-label {
	color: var(--mvm-tmap-muted);
	font-size: 13px;
	line-height: 1.3;
}

.mvm-tmap-card__stat--accent .mvm-tmap-card__stat-label {
	color: rgb(255 255 255 / 85%);
}

.mvm-tmap-card__stat--zero {
	background: var(--mvm-tmap-surface);
	color: var(--mvm-tmap-ink);
}

.mvm-tmap-card__stat--zero .mvm-tmap-card__stat-label {
	color: var(--mvm-tmap-muted);
}

.mvm-tmap-modal .mvm-tmap-card__source {
	margin: -12px 0 0;
	color: var(--mvm-tmap-muted);
	font-size: 12px;
	opacity: 0.8;
}

.mvm-tmap-card__orgs {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mvm-tmap-card__orgs li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 0;
	padding: 10px 0;
	border-bottom: 1px solid var(--mvm-tmap-line);
	font-size: 15px;
	line-height: 1.35;
}

.mvm-tmap-card__orgs li:first-child {
	padding-top: 0;
}

.mvm-tmap-modal .mvm-tmap-card__org-name {
	color: var(--mvm-tmap-ink);
	font-weight: 600;
	text-decoration: none;
}

.mvm-tmap-modal a.mvm-tmap-card__org-name:hover,
.mvm-tmap-modal a.mvm-tmap-card__org-name:focus-visible {
	color: var(--mvm-tmap-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mvm-tmap-card__pill {
	flex: 0 0 auto;
	padding: 4px 10px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--mvm-tmap-accent) 12%, #fff);
	color: var(--mvm-tmap-accent-dark);
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.mvm-tmap-modal .mvm-tmap-card__more {
	margin: 8px 0 0;
	color: var(--mvm-tmap-muted);
	font-size: 14px;
}

.mvm-tmap-card__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mvm-tmap-card__chips li {
	margin: 0;
	padding: 7px 12px;
	border: 1px solid var(--mvm-tmap-line);
	border-radius: 999px;
	color: var(--mvm-tmap-ink);
	font-size: 14px;
	line-height: 1.2;
}

.mvm-tmap-card__chips b {
	margin-left: 4px;
	color: var(--mvm-tmap-accent);
}

.mvm-tmap-modal .mvm-tmap-card__empty {
	margin: 0;
	padding: 16px 18px;
	border-radius: 16px;
	background: var(--mvm-tmap-surface);
	color: var(--mvm-tmap-muted);
	font-size: 15px;
}

.mvm-tmap-card__actions {
	position: sticky;
	bottom: 0;
	margin: auto -30px -26px;
	padding: 16px 30px 26px;
	background: linear-gradient(180deg, rgb(255 255 255 / 0%), #fff 28%);
}

.mvm-tmap-modal a.mvm-tmap-card__button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 56px;
	padding: 14px 22px;
	border: 0;
	border-radius: 16px;
	background: var(--mvm-tmap-accent);
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	box-shadow: 0 12px 24px color-mix(in srgb, var(--mvm-tmap-accent) 30%, transparent);
	transition: background-color 0.18s ease, transform 0.18s ease;
}

.mvm-tmap-modal a.mvm-tmap-card__button:hover,
.mvm-tmap-modal a.mvm-tmap-card__button:focus-visible {
	background: var(--mvm-tmap-accent-dark);
	color: #fff;
	transform: translateY(-1px);
}

.mvm-tmap-modal a.mvm-tmap-card__button--ghost {
	background: var(--mvm-tmap-surface);
	color: var(--mvm-tmap-ink);
	box-shadow: none;
}

.mvm-tmap-modal a.mvm-tmap-card__button--ghost:hover,
.mvm-tmap-modal a.mvm-tmap-card__button--ghost:focus-visible {
	background: var(--mvm-tmap-line);
	color: var(--mvm-tmap-ink);
}

.mvm-tmap-card__button svg {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
}

/* Кнопка закрытия: тема Hello Elementor красит button:hover в #c36. */
.mvm-tmap-modal button.mvm-tmap-modal__close,
.mvm-tmap-modal button.mvm-tmap-modal__close:hover,
.mvm-tmap-modal button.mvm-tmap-modal__close:focus {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 5;
	display: grid;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: rgb(255 255 255 / 94%);
	color: var(--mvm-tmap-ink);
	box-shadow: 0 6px 18px rgb(4 18 33 / 18%);
	cursor: pointer;
	transition: transform 0.18s ease;
}

.mvm-tmap-modal button.mvm-tmap-modal__close:hover {
	transform: rotate(90deg);
}

.mvm-tmap-modal button.mvm-tmap-modal__close:focus-visible {
	outline: 3px solid var(--mvm-tmap-accent);
	outline-offset: 2px;
}

.mvm-tmap-modal__close svg {
	width: 20px;
	height: 20px;
}

@keyframes mvm-tmap-fade {
	from { opacity: 0; }
}

@keyframes mvm-tmap-rise {
	from { opacity: 0; transform: translateY(18px) scale(0.98); }
}

@keyframes mvm-tmap-sheet {
	from { transform: translateY(100%); }
}

/* Десктоп: крупное окно почти на весь экран. */

@media (min-width: 1025px) {
	.mvm-tmap-modal {
		padding: 20px;
	}

	.mvm-tmap-modal__dialog {
		width: min(1360px, 100%);
		min-height: min(760px, calc(100vh - 40px));
		min-height: min(760px, calc(100dvh - 40px));
		max-height: min(940px, calc(100vh - 40px));
		max-height: min(940px, calc(100dvh - 40px));
		border-radius: 28px;
	}

	.mvm-tmap-card {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	}

	.mvm-tmap-card__caption {
		right: 32px;
		bottom: 26px;
		left: 32px;
	}

	.mvm-tmap-modal .mvm-tmap-card__caption-eyebrow {
		font-size: 14px;
	}

	.mvm-tmap-modal .mvm-tmap-card__caption-title {
		font-size: clamp(24px, 2.2vw, 32px);
	}

	.mvm-tmap-card__place-body {
		gap: 22px;
		padding: 28px 34px 34px;
	}

	.mvm-tmap-modal .mvm-tmap-card__text {
		font-size: 17px;
		line-height: 1.65;
	}

	.mvm-tmap-card__facts li {
		padding: 16px 18px;
	}

	.mvm-tmap-card__fact-value {
		font-size: 22px;
	}

	.mvm-tmap-card__fact-label {
		font-size: 13px;
	}

	.mvm-tmap-modal a.mvm-tmap-card__sight {
		font-size: 15px;
	}

	.mvm-tmap-card__sight-thumb {
		flex-basis: 64px;
		width: 64px;
		height: 64px;
	}

	.mvm-tmap-card__info {
		gap: 26px;
		padding: 42px 44px 32px;
	}

	.mvm-tmap-modal .mvm-tmap-card__eyebrow,
	.mvm-tmap-modal .mvm-tmap-card__subhead {
		font-size: 14px;
	}

	.mvm-tmap-modal .mvm-tmap-card__title {
		font-size: clamp(28px, 2.6vw, 40px);
	}

	.mvm-tmap-modal .mvm-tmap-card__centre {
		font-size: 17px;
	}

	.mvm-tmap-card__stats {
		gap: 14px;
	}

	.mvm-tmap-card__stat {
		padding: 20px 22px;
		border-radius: 20px;
	}

	.mvm-tmap-card__stat-value {
		font-size: clamp(30px, 2.8vw, 42px);
	}

	.mvm-tmap-card__stat-label {
		font-size: 14px;
	}

	.mvm-tmap-card__orgs li {
		padding: 13px 0;
		font-size: 16px;
	}

	.mvm-tmap-card__pill {
		font-size: 14px;
	}

	.mvm-tmap-card__chips li {
		padding: 8px 14px;
		font-size: 15px;
	}

	.mvm-tmap-card__actions {
		margin: auto -44px -32px;
		padding: 18px 44px 32px;
	}

	.mvm-tmap-modal a.mvm-tmap-card__button {
		min-height: 62px;
		font-size: 18px;
	}

	.mvm-tmap-modal button.mvm-tmap-modal__close,
	.mvm-tmap-modal button.mvm-tmap-modal__close:hover,
	.mvm-tmap-modal button.mvm-tmap-modal__close:focus {
		top: 18px;
		right: 18px;
		width: 46px;
		height: 46px;
	}
}

/* Планшет */

@media (max-width: 1024px) {
	.mvm-tmap-card__info {
		padding: 26px 24px 22px;
	}

	.mvm-tmap-card__actions {
		bottom: 0;
		margin: auto -24px -22px;
		padding: 14px 24px 22px;
	}

	.mvm-tmap-card__place-body {
		padding: 20px 22px 24px;
	}
}

/* Телефон: карточка выезжает снизу, колонки идут одна под другой. */

@media (max-width: 760px) {
	.mvm-tmap {
		padding: 20px 14px 18px;
		border-radius: 22px;
	}

	.mvm-tmap__head {
		gap: 14px;
	}

	.mvm-tmap__intro,
	.mvm-tmap__picker {
		flex-basis: 100%;
	}

	.mvm-tmap__city-name {
		font-size: 8px;
	}

	.mvm-tmap__city--major .mvm-tmap__city-name {
		font-size: 10px;
	}

	.mvm-tmap__city--minor .mvm-tmap__city-name,
	.mvm-tmap__city--m-hide .mvm-tmap__city-name {
		display: none;
	}

	.mvm-tmap .mvm-tmap__city--m-t .mvm-tmap__city-name {
		transform: translate(-50%, calc(-100% - 6px));
	}

	.mvm-tmap__city--minor .mvm-tmap__city-dot {
		width: 4px;
		height: 4px;
		box-shadow: 0 0 0 1px var(--mvm-tmap-label-outline);
	}

	.mvm-tmap__city--major .mvm-tmap__city-dot {
		width: 7px;
		height: 7px;
	}

	.mvm-tmap__city--capital .mvm-tmap__city-dot {
		width: 11px;
		height: 11px;
		border-width: 2px;
	}

	.mvm-tmap__footer {
		flex-direction: column;
		align-items: flex-start;
	}

	.mvm-tmap .mvm-tmap__legend {
		gap: 6px 12px;
		font-size: 13px;
	}

	.mvm-tmap-modal {
		align-items: flex-end;
		padding: 0;
	}

	.mvm-tmap-modal__dialog {
		width: 100%;
		max-height: 92vh;
		max-height: 92dvh;
		border-radius: 22px 22px 0 0;
		animation: mvm-tmap-sheet 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
	}

	.mvm-tmap-card {
		display: flex;
		flex-direction: column;
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.mvm-tmap-card__place,
	.mvm-tmap-card__info {
		flex: 0 0 auto;
		overflow: visible;
	}

	.mvm-tmap-card__info {
		order: -1;
		padding: 24px 18px 0;
	}

	.mvm-tmap-card__actions {
		bottom: 0;
		margin: 0 -18px;
		padding: 12px 18px 16px;
		padding-bottom: max(16px, env(safe-area-inset-bottom));
	}

	.mvm-tmap-card__media {
		aspect-ratio: 16 / 9;
	}

	.mvm-tmap-card__gallery-thumbs {
		gap: 8px;
		padding: 10px 12px;
	}

	.mvm-tmap-modal .mvm-tmap-card__gallery-thumb,
	.mvm-tmap-modal .mvm-tmap-card__gallery-thumb:hover,
	.mvm-tmap-modal .mvm-tmap-card__gallery-thumb:focus {
		flex-basis: 72px;
		width: 72px;
		height: 50px;
		border-radius: 9px;
	}

	.mvm-tmap-card__place-body {
		padding: 18px 18px 28px;
	}

	.mvm-tmap-card__stats {
		gap: 10px;
	}

	.mvm-tmap-card__stat {
		padding: 14px;
	}

	.mvm-tmap-modal button.mvm-tmap-modal__close,
	.mvm-tmap-modal button.mvm-tmap-modal__close:hover,
	.mvm-tmap-modal button.mvm-tmap-modal__close:focus {
		top: 10px;
		right: 10px;
		width: 38px;
		height: 38px;
		background: var(--mvm-tmap-surface);
	}
}

@media (prefers-reduced-motion: reduce) {
	.mvm-tmap *,
	.mvm-tmap-modal * {
		animation: none !important;
		transition: none !important;
	}
}
