
:root {
	--font-family: 'GraphikLCG';
	--gray-900: #101828;
	--gray-700: #3F444A;
	--gray-300: #D3D6D9;
	--gray-200: #E7E8E9;
	--gray-600: #475467;
	--gray-100: #F2F4F7;
}

.clear {
	clear: both;
}

* {
	outline: none;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: var(--font-family);
	user-select: none;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

svg g, svg g * {
	pointer-events: all;
}

.header_full {
	position: fixed;
	display: flex;
	align-items: center;
	padding: 0 4px 0 20px;
	z-index: 9999;
	top: 20px;
	left: 20px;
	right: 20px;
	height: 67px;
	border-radius: 8px;
	background-color: #fff;
	box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.2);
}

.header_full.opened {
	border-radius: 8px 8px 0 8px;
}

.header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.header__logo_wrap {
	position: relative;
	display: flex;
	gap: 12px;
	align-items: center;
}

.header__logo {
	position: relative;
	display: flex;
	width: 153px;
}

.header__logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.header__title {
	position: relative;
	display: flex;
	align-items: center;
	height: 44px;
	padding-left: 12px;
	font-size: 16px;
	line-height: 140%;
	border-left: 2px solid var(--gray-900);
	color: var(--gray-700);
}

.header__block {
	position: relative;
	display: block;
}

.header__block__btns {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
}

.header__block__butt {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	/* padding: 20px 88px; */
	width: 250px;
	flex: none;
	border-radius: 4px;
	height: 64px;
	cursor: pointer;
}

.header__block__butt>span {
	font-family: var(--font-family);
	font-weight: 500;
	font-size: 16px;
	line-height: 120%;
	color: #000;
}

.header__block__divider {
	position: relative;
	display: block;
	background: var(--gray-300);
	height: 40px;
	width: 2px;
}

.header__block__butt:hover,
.header__block__butt.active {
	background: var(--gray-200);
}

.header__block__butt:hover .header__block__list__item {
	display: block;
}

.header__block__list {
	position: absolute;
	display: none;
	top: 68px;
	left: 0;
	right: -4px;
	border-radius: 0 0 8px 8px;
	overflow: hidden;
	border: 1px solid var(--gray-300);
	border-top: none;
}

.header__block__butt[tab="countries"] .header__block__list {
	left: -2px;
	right: auto;
	top: 64px;
	border-top: 4px solid transparent;
	width: calc(200% + 16px);
}

.header__block__butt[tab="regions"] .header__block__list {
	left: auto;
	right: -4px;
	top: 64px;
	border-top: 4px solid transparent;
	width: calc(200% + 16px);
}

.header__block__list.active {
	display: block;
}


.header__block__list__item {
	position: relative;
	display: none;
	background-color: #fff;
}

.header__block__list__item.active {
	display: block;
}

.header__block__list__item__head {
	position: relative;
	display: flex;
	width: 100%;
	justify-content: space-between;
	background-color: #E7E8E9;
	font-family: var(--font-family);
	font-weight: 500;
	font-size: 11px;
	line-height: 140%;
	text-align: right;
	color: var(--gray-600);
	padding: 0 15px;
}

.header__block__list__item__head__1 {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 5px;
	width: 48%;
}

.header__block__list__item__head__2 {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	height: 40px;
	padding: 0 5px;
	width: calc(52% / 3);
	white-space: nowrap;
}

.header__block__list__item__head__3 {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	height: 40px;
	padding: 0 5px 0 10px;
	width: calc(52% / 3);
	white-space: nowrap;
}

.header__block__list__item__head__4 {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	height: 40px;
	padding: 0 0px 0 5px;
	width: calc(52% / 3);
	min-width: 90px;
	white-space: nowrap;
}

.header__block__list__item__body {
	position: relative;
	display: block;
	height: auto;
	max-height: calc(100vh - 160px);
	overflow: hidden;
}

.header__block__list__item__body_wrap {
	position: relative;
	display: block;
	height: auto;
	max-height: calc(100vh - 160px);
	overflow-y: auto;

	scrollbar-width: thin; /* Firefox */
	scrollbar-color: #888 #f0f0f0; /* Firefox */
	overflow-y: auto; /* Показываем скролл только если контент не влезает */
	-webkit-overflow-scrolling: touch; /* Улучшает прокрутку на macOS/iOS */
	scrollbar-gutter: stable both-edges; /* Оставляет место для скролла */
}

/* WebKit (Chrome, Safari) */
.header__block__list__item__body_wrap::-webkit-scrollbar {
	width: 8px; /* Ширина скролла */
}

.header__block__list__item__body_wrap::-webkit-scrollbar-track {
	background: #f0f0f0; /* Фон скроллбара */
	border-radius: 4px;
}

.header__block__list__item__body_wrap::-webkit-scrollbar-thumb {
	background-color: #888; /* Цвет скролла */
	border-radius: 4px;
	border: 2px solid #f0f0f0; /* Чуть тоньше */
}

.header__block__list__item__body_wrap::-webkit-scrollbar-thumb:hover {
	background-color: #555; /* Темнее при наведении */
}





.header__block__list__item__body_scroll {
	position: relative;
	display: block;
}

.header__block__list__item__body__row {
	position: relative;
	display: flex;
	width: 100%;
	justify-content: space-between;
	font-family: var(--font-family);
	font-weight: 500;
	font-size: 16px;
	line-height: 140%;
	color: var(--gray-900);
	padding: 0 15px;
}

.header__block__list__item__body__row:nth-child(2n) {
	background-color: var(--gray-100);
}

.header__block__list__item__body__row.green {
	background-color: #79b928;
	color: #fff;
}


.header__block__list__item__body__row__1 {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	height: 60px;
	padding: 0 5px 0 0px;
	width: 48%;
	border-bottom: 1px solid var(--gray-300);
}

.header__block__list__item__body__row__2 {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	height: 60px;
	padding: 0 5px;
	width: calc(52% / 3);
	white-space: nowrap;
	border-bottom: 1px solid var(--gray-300);
}

.header__block__list__item__body__row__3 {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	height: 60px;
	padding: 0 5px 0 10px;
	width: calc(52% / 3);
	white-space: nowrap;
	border-bottom: 1px solid var(--gray-300);
}

.header__block__list__item__body__row__4 {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	height: 60px;
	padding: 0 0px 0 5px;
	width: calc(52% / 3);
	min-width: 90px;
	white-space: nowrap;
	border-bottom: 1px solid var(--gray-300);
}

.header__block__list__item__body__row:last-of-type .header__block__list__item__body__row__1 {
	border-bottom: 1px solid transparent;
}

.header__block__list__item__body__row:last-of-type .header__block__list__item__body__row__2 {
	border-bottom: 1px solid transparent;
}

.header__block__list__item__body__row:last-of-type .header__block__list__item__body__row__3 {
	border-bottom: 1px solid transparent;
}

.header__block__list__item__body__row:last-of-type .header__block__list__item__body__row__4 {
	border-bottom: 1px solid transparent;
}


#open-all-modals {
	position: fixed;
	display: flex;
	left: 20px;
	bottom: 20px;
	background: none;
	border: none;
	box-shadow: none;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	background-color: #fff;
	border-radius: 6px;
}

#open-all-modals img {
	width: 26px;
	max-width: 26px;
	
	/* filter: brightness(0) saturate(100%) invert(6%) sepia(33%) saturate(1178%) hue-rotate(181deg) brightness(99%) contrast(94%); */
}

#open-all-modals.opened img {
filter: brightness(0) saturate(100%) invert(90%) sepia(11%) saturate(63%) hue-rotate(169deg) brightness(97%) contrast(85%);
}

.open-all-modals__hint {
	position: absolute;
	display: block;
	opacity: 0;
	right: -80px;
	top: 14px;
	font-family: var(--font-family);
	font-weight: 500;
	font-size: 16px;
	line-height: 140%;
	color: #000;
	transition: .1s;
	white-space: nowrap;
}

#open-all-modals:hover .open-all-modals__hint {
	opacity: 1;
	right: -110px;
}



html, body {
		touch-action: none; /* Для блокировки жестов на мобильных */
		width: 100%;
		height: 100%;
		margin: 0;
		padding: 0;
		overflow: hidden; /* Не нужно включать прокрутку */
		background-color: #dce8f4;
	font-family: GraphikLCG;
}

/* .map_fake {
	position: relative;
	display: block;
	width: 100%;
	height: 87px;
} */

#map-container {
		width: 100%;
		height: 100vh;
		/* height: calc(100vh - 87px);
		margin-top: 87px; */
		position: relative; /* Используем relative, чтобы карта правильно двигалась */
}

#map-container.closed {
	display: none;
}

#map-wrapper {
		width: 100%;
		height: 100%;
		overflow: hidden;
		position: absolute;
		display: flex;
		align-items: center;
		justify-content: center;
		cursor: grab;
		transform-origin: 0 0;
}

#map-svg {
		width: 100%;
		height: 100%;
		pointer-events: none; /* Важно: отключает события, чтобы перетаскивание работало на div */
}


#map-wrapper svg {
	width: 100%;
	height: 100%;
	pointer-events: none; /* Важно: отключает события, чтобы перетаскивание работало на div */
}

#zoom-controls {
		position: fixed;
		left: 20px;
		top: 50%;
		transform: translateY(-50%);
		display: flex;
		flex-direction: column;
		gap: 10px;
}

#zoom-controls button {
	display: flex;
	align-items: center;
	justify-content: center;
		width: 50px;
		height: 50px;
		font-size: 20px;
		background-color: #fff;
		border: 1px solid #ccc;
		border-radius: 5px;
		cursor: pointer;
		box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#zoom-controls button:hover {
		background-color: #f0f0f0;
}

#zoom-controls button img {
	width: 22px;
	height: 22px;
}

#tooltip {
	pointer-events: auto;
	cursor: default;
	position: absolute;
	background: rgba(0, 0, 0, 0.8);
	color: #000;
	padding: 5px 0px;
	border-radius: 4px;
	font-size: 14px;
	transition: transform 0.1s ease;
}



g {
		stroke: red;
		stroke-width: 1px;
		fill: rgba(255, 0, 0, 0.1);
		pointer-events: all; 
}




/*card begin*/
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 350px;
	border: 2px solid #d4d6d9;
	border-radius: 8px;
	overflow: hidden;
	box-sizing: border-box;
	background-color: transparent;
}

.card.card_country_upcoming {
	/* border: none; */
}

.card__header {
	position: relative;
	display: flex;
	align-self: center;
	justify-content: space-between;
	gap: 15px;
	padding: 0px 10px 0px 10px;
	width: auto;
	height: 65px;
	background: #F2F4F7;
	flex: none;
	width: 100%;
	box-sizing: border-box;
}

.card.card_country_upcoming > .card__header {
	display: none;
}

.card__header__item {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 33.33%;
	gap: 2px;
	height: 100%;
}

.card__header__item__number {
	position: relative;
	display: block;
	font-weight: 700;
	font-size: 24px;
	line-height: 120%;
	color: #101828;
}

.card__header__item__description {
	position: relative;
	display: block;
	white-space: nowrap;
	font-weight: 500;
	font-size: 10px;
	line-height: 140%;
	color: #6a7281;
}

.card__list {
	position: relative;
	display: block;
	width: 100%;
	height: calc(100% - 65px);
	max-height: 315px;
	background-color: #fff;
	overflow-y: auto;
	scrollbar-width: thin; /* Firefox */
	scrollbar-color: #888 #f0f0f0; /* Firefox */
	overflow-y: auto; /* Показываем скролл только если контент не влезает */
	-webkit-overflow-scrolling: touch; /* Улучшает прокрутку на macOS/iOS */
	/* scrollbar-gutter: stable both-edges;  */
	/* Оставляет место для скролла */
	padding: 0;
}

/* WebKit (Chrome, Safari) */
.card__list::-webkit-scrollbar {
	width: 8px; /* Ширина скролла */
}

.card__list::-webkit-scrollbar-track {
	background: #f0f0f0; /* Фон скроллбара */
	border-radius: 4px;
}

.card__list::-webkit-scrollbar-thumb {
	background-color: #888; /* Цвет скролла */
	border-radius: 4px;
	border: 2px solid #f0f0f0; /* Чуть тоньше */
}

.card__list::-webkit-scrollbar-thumb:hover {
	background-color: #555; /* Темнее при наведении */
}


.card.card_country_upcoming > .card__list {
	height: 100%;
}

.card__list_scroll {
	position: relative;
	display: block;
	padding: 0 10px;
	overflow-x: hidden;
}

.card.card_country_upcoming > .card__list .card__list_scroll {
	/* padding: 0; */
}

.card__list__item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	border-top: 1px solid #D3D6D9;
	padding: 11px 0 8px;
}

.card__list__item:first-child {
	border-top: none;
}

.card_upcoming {
	/* position: relative;
	display: block; */
	border: 2px dashed var(--gray-200);
	border-radius: 9px;
	padding: 4px 4px 8px;
	margin-bottom: 5px;	
	background-color: #fff;
	margin-left: -8px;
	margin-right: -8px;
	gap: 10px;
}

.card.card_country_upcoming .card_upcoming {
	margin-bottom: 0px;
}

.card_upcoming .card__list__item {
	padding-left: 15px;
	padding-right: 15px;
	background-color: #fff;
}

.card__list__item__title {
	position: relative;
	display: flex;
	justify-content: space-between;
	gap: 15px;
}

.card__list__item__title__name {
	position: relative;
	display: block;
	font-weight: 500;
	font-size: 11px;
	line-height: 140%;
	color: #101828;
}

.card__list__item__title__value {
	position: relative;
	display: block;
	font-weight: 500;
	font-size: 11px;
	line-height: 140%;
	color: #475467;
	text-align: right;
	white-space: nowrap;
}

.card__list__item__stripe {
	position: relative;
	display: flex;
}

.card__list__item__stripe__self {
	position: relative;
	display: block;
	background-color: #fff;
	width: 100%;
	height: 10px;
	border-radius: 5px;
	/* overflow: hidden; */
}

.card__list__item__stripe__self__value {
	position: relative;
	display: flex;
	height: 10px;
	border-radius: 5px;
	/* overflow: hidden; */
	/* min-width: 10px; */
}

.card__list__item__stripe__self__value__part {
	position: relative;
	display: block;
	height: 10px;
	border-radius: 5px;
	width: 50px;
}

.card__list__item__stripe__self__value__part img {
	width: 100%;
	max-width: 100%;
	height: auto;
}

.card__list__item__stripe__self__value__part:nth-child(2) {
	left: -10px;
}

.card__list__item__stripe__self__value__part:nth-child(3) {
	left: -20px;
}
.tooltip {
	position: absolute;
	top: -22px;
	left: 50%;
	transform: translateX(-25px);
	opacity: 0;
	visibility: hidden;
	background-color: #0c1221;
	color: #fff;
	padding: 4px 8px;
	border-radius: 10px;
	font-size: 10px;
	white-space: nowrap;
	transition: opacity 0.3s, visibility 0.3s;
	text-align: center;
}

.tooltip::after {
	content: '';
	position: absolute;
	bottom: -14px;
	left: 18px;
	border-width: 8px;
	border-style: solid;
	border-color: #0c1221 transparent transparent transparent;
}

.card__list__item__stripe__self__value__part:hover .tooltip {
	opacity: 1;
	visibility: visible;
}

.card__top {
	position: relative;
	display: flex;
	align-items: center;
	padding: 8px 15px 8px 10px;
	width: 100%;
	height: 35px;
}

.card__top__title {
	position: relative;
	display: block;
	font-family: var(--font-family);
	font-weight: 700;
	font-size: 16px;
	line-height: 120%;
	color: #fff;
}
/*card end*/


#tooltip {
	position: absolute; 
	display: none; 
	background: transparent;
	padding: 0;
	margin: 0;
	width: 282px;
}

.all {
	position: absolute;
	display: block;
	left: 20px;
	bottom: 20px;
	width: 50px;
	height: 50px;
	cursor: pointer;
}

.all img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.all.closed .all_closed {
	display: block;
}

.all.opened .all_closed {
	display: none;
}


.all.closed .all_opened {
	display: none;
}

.all.opened .all_opened {
	display: block;
}

.legend {
	position: absolute;
	display: flex;
	bottom: 20px;
	left: 90px;
	align-items: center;
	gap: 10px;
	background-color: #fff;
	height: 50px;
	border-radius: 6px;
	padding: 0 17px;
}

.legend__divider {
	position: relative;
	display: block;
	height: 33px;
	width: 1px;
	background-color: var(--gray-300);
}

.legend__item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
}

.legend__item__icon {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	flex: none;
}

.legend__item__icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.legend__item__title {
	position: relative;
	display: block;
	font-family: var(--font-family);
	font-weight: 500;
	font-size: 12px;
	line-height: 120%;
	color: var(--gray-900);
}

.view {
	position: fixed;
	display: none;
	left: 0px; 
	top: 97px;
	width: 100%;
	height: calc(100vh - 180px);
	overflow: hidden;
	background-color: #dfe5f2;
}

.view.opened {
	display: block;
}

.view__block {
	/* position: absolute; */
	position: relative;
	display: block;
	top: 0px;
	left: 0px;
	width: 100%;
	/* height: 100%; */
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%); /* Центрирование */
	transform-origin: center center; /* Масштабирование от центра */
	transition: transform 0.3s ease;
}

.view__block__map {
	/* position: absolute; */
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	/* left: 0px; 
	top: 0px;
	width: 100%;
	height: 100%; */
	overflow: hidden;
}

.view__block__map__wrap {
	position: relative;
	display: block;
	width: 100%;
}

.view__block__map img {
	width: 100%;
	max-width: 100%;
	height: auto;
	/* object-fit: contain; */
}

.view__block__lines {
	position: absolute;
	display: block;
	left: 0px; 
	top: 0px;
	width: 100%;
	height: 100%;
}

.view__block__tips {
	position: absolute;
	display: block;
	top: 97px;
	left: 80px;
	right: 20px;
	bottom: 80px;
}

.scaled .view__block__tips {
		position: absolute;
		display: block;
		top: 0px;
		left: 0px;
		right: 0px;
		bottom: 0px;
}

.view .card {
	position: absolute;
	max-width: 15%;
}

.view .card__list {
	max-height: 210px;
}

.line_dot {
	position: absolute;
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 4px;
}

.line_end {
	position: absolute;
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 4px;
}

.lines-svg {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	pointer-events: none; /* Чтобы SVG не перехватывал события мыши */
}

@media (min-width: 1500px) {
	.view {
		width: 1410px;
		left: 50%;
		margin-left: -705px;
	}
}

@media (max-width: 1400px) {
	.view {
		top: 40px;
		width: 100%;
		height: calc(100vh - 160px);
	}
	.view .card__header__item__number {
		font-size: 18px;
	}
	.view .card__header__item__description {
		font-size: 8px;
	}
	.view .card__list__item__title__name {
		font-size: 9px;
	}
	.view .card__list__item__title {
		gap: 5px;
	}
	.view .card__list {
		overflow-x: hidden;
		overflow-y: visible;
	}
	.view .card__list {
			max-height: 150px;
	}
}

@media (max-width: 992px) {
	.view {
		display: none !important;
	}
	.all {
		display: none !important;
	}
	#map-container.closed {
		display: block;
	}
	.header__title {
		font-size: 14px;
		line-height: 120%;
	}
	.header__block__butt {
		padding: 20px 20px;
		width: auto;
	}
	.legend {
		height: 30px;
	}
	.legend__item__icon {
		width: 25px;
	}
	
	.legend__item__title {
		font-size: 10px;
	}
	
	.header__block__list__item__head__4 {
		width: 90px;
		min-width: 90px;
		font-size: 10px;
	}
	.header__block__list__item__body__row__4 {
		width: 90px;
		min-width: 90px;
	}
	.header__block__list__item__head__3 {
			width: 86px;
			min-width: 86px;
		font-size: 10px;
	}
	.header__block__list__item__body__row__3 {
			width: 86px;
			min-width: 86px;
	}
}

/* @media (max-height: 550px) {
	.view .card__list {
		max-height: 150px;
	}
} */

@media (max-width: 768px) {
	.header_full {
		top: 10px;
		left: 10px;
		right: 10px;
	}
	.legend {
		height: auto;
		flex-direction: column;
		align-items: flex-start;
		padding-top: 5px;
		padding-bottom: 5px;
		bottom: 10px;
		left: 10px;
	}
	#zoom-controls {
		left: 10px;
	}	
	.legend__divider {
		display: none;
	}
	.header__block__list {
		position: fixed;
		left: 0;
		right: 0;
	}
	.header__block__butt[tab="countries"]:hover .header__block__list {
		width: auto;
		left: 10px;
		right: 10px;
	}
	.header__block__butt[tab="regions"]:hover .header__block__list {
		width: auto;
		left: 10px;
		right: 10px;
	}
	.header__block__list__item__body__row {
		font-size: 13px;
	}
	.header__block__list__item__body {
		max-height: calc(100vh - 170px);
	}
	.header__block__list__item__body_wrap {
		max-height: calc(100vh - 170px);
	}
	.header__logo {
		width: 93px;
		flex: none;
	}
}

@media (max-width: 580px) {
	.header_full {
		height: 57px;
	}
	.header__block__list__item__body__row 
	.header__logo {
		width: 100px;
		flex: none;
	}
	.header__title {
		font-size: 8px;
		padding-left: 6px;
		border-left: 1px solid var(--gray-900);
		height: 34px;
	}
	
	.header__block__butt {
		padding: 10px 5px;
		height: 34px;
	}
	.header__block__butt>span {
		font-size: 12px;
	}
	.header__logo_wrap {
		gap: 6px;
	}
	.header__block__divider {
		height: 34px;
		width: 1px;
	}
}

@media (max-height: 550px) {
	.view {
		display: none !important;
	}
	.all {
		display: none !important;
	}
}