.ug-branch-globe,
.ug-branch-globe * {
	box-sizing: border-box;
}

.ug-branch-globe {
	--ug-green: #43ad38;
	--ug-green-dark: #133f20;
	--ug-lime: #7cff91;
	--ug-yellow: #fbba00;
	--ug-background-color: #43ad38;
	--ug-text-color: #ffffff;
	position: relative;
	overflow: hidden;
	width: 100%;
	min-height: 680px;
	margin: 0;
	background-color: var(--ug-background-color);
	background-image:
		radial-gradient(circle at 74% 45%, rgba(114, 255, 137, 0.16), transparent 34%),
		linear-gradient(132deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.07));
	color: var(--ug-text-color);
	isolation: isolate;
}

.ug-branch-globe::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
	background-size: 42px 42px;
	content: "";
	mask-image: linear-gradient(90deg, #000, transparent 78%);
}

.ug-branch-globe__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
	align-items: center;
	width: min(1480px, calc(100% - 64px));
	min-height: 680px;
	margin: 0 auto;
	gap: clamp(24px, 4vw, 72px);
}

.ug-branch-globe__content {
	position: relative;
	z-index: 3;
	padding: 64px 0;
}

.ug-branch-globe__eyebrow {
	display: inline-flex;
	align-items: center;
	margin: 0 0 16px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.35;
	text-transform: uppercase;
	opacity: 0.78;
	color: var(--ug-text-color);
}

.ug-branch-globe__eyebrow::before {
	width: 34px;
	height: 2px;
	margin-right: 12px;
	background: var(--ug-yellow);
	content: "";
}

.ug-branch-globe__title {
	max-width: 680px;
	margin: 0 0 38px;
	color: var(--ug-text-color);
	font-family: inherit;
	font-size: clamp(42px, 4.7vw, 72px);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 0.98;
}

.ug-branch-globe__active {
	min-height: 176px;
}

.ug-branch-globe__location-title {
	max-width: 620px;
	margin: 0 0 12px;
	color: var(--ug-text-color);
	font-family: inherit;
	font-size: clamp(28px, 3vw, 44px);
	font-weight: 750;
	line-height: 1.14;
}

.ug-branch-globe__country {
	margin: 0 0 18px;
	color: var(--ug-text-color);
	font-size: 15px;
	font-weight: 650;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	opacity: 0.74;
}

.ug-branch-globe__address {
	display: flex;
	align-items: center;
	max-width: 620px;
	margin: 0;
	color: var(--ug-text-color);
	font-size: clamp(18px, 1.55vw, 25px);
	font-style: normal;
	font-weight: 650;
	line-height: 1.45;
}

.ug-branch-globe__pin {
	position: relative;
	flex: 0 0 25px;
	width: 25px;
	height: 32px;
	margin-right: 14px;
	border: 7px solid #f33a2f;
	border-radius: 50% 50% 50% 0;
	background: #fff;
	box-shadow: 0 8px 18px rgba(6, 66, 20, 0.28);
	transform: rotate(-45deg);
}

.ug-branch-globe__pin::after {
	position: absolute;
	top: 5px;
	left: 5px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #f33a2f;
	content: "";
}

.ug-branch-globe__locations {
	display: flex;
	flex-wrap: wrap;
	margin: 32px -5px 0;
	gap: 10px;
}

.ug-branch-globe__location-button {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	min-height: 42px;
	margin: 0;
	padding: 9px 14px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 999px;
	background: rgba(17, 76, 27, 0.18);
	box-shadow: none;
	color: rgba(255, 255, 255, 0.84);
	font: inherit;
	font-size: 13px;
	font-weight: 650;
	line-height: 1.25;
	text-align: left;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.ug-branch-globe__location-button:hover,
.ug-branch-globe__location-button:focus-visible,
.ug-branch-globe__location-button.is-active {
	border-color: rgba(255, 255, 255, 0.82);
	background: rgba(15, 64, 23, 0.54);
	color: #fff;
	outline: none;
	transform: translateY(-1px);
}

.ug-branch-globe__location-button:focus-visible {
	box-shadow: 0 0 0 3px rgba(251, 186, 0, 0.45);
}

.ug-branch-globe__location-dot {
	flex: 0 0 9px;
	width: 9px;
	height: 9px;
	margin-right: 8px;
	border: 2px solid rgba(255, 255, 255, 0.82);
	border-radius: 50%;
	background: var(--ug-point-color, var(--ug-yellow));
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.ug-branch-globe__instructions {
	display: flex;
	align-items: center;
	margin: 24px 0 0;
	color: var(--ug-text-color);
	font-size: 13px;
	line-height: 1.45;
	opacity: 0.68;
}

.ug-branch-globe__instructions span {
	margin-right: 8px;
	color: var(--ug-yellow);
	font-size: 20px;
	font-weight: 700;
}

.ug-branch-globe__visual {
	position: relative;
	align-self: stretch;
	min-width: 0;
	min-height: 680px;
}

.ug-branch-globe__canvas {
	position: absolute;
	top: 50%;
	left: 50%;
	width: min(760px, 52vw);
	height: min(760px, 52vw);
	min-width: 420px;
	min-height: 420px;
	outline: none;
  filter: none;
	transform: translate(-50%, -50%);
	touch-action: none;
}

.ug-branch-globe__canvas canvas {
	display: block;
	width: 100% !important;
	height: 100% !important;
}

.ug-branch-globe__controls {
	position: absolute;
	right: clamp(82px, 8vw, 112px);
	bottom: 32px;
	z-index: 5;
	display: flex;
	flex-direction: column;
	border: 1px solid rgba(255, 255, 255, 0.34);
	border-radius: 15px;
	overflow: hidden;
	background: rgba(10, 56, 18, 0.64);
	box-shadow: 0 12px 30px rgba(9, 61, 18, 0.24);
	backdrop-filter: blur(10px);
}

.ug-branch-globe__control {
	display: grid;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.17);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #fff;
	font: inherit;
	font-size: 24px;
	font-weight: 500;
	line-height: 1;
	place-items: center;
	cursor: pointer;
	transition: background-color 150ms ease, color 150ms ease;
}

.ug-branch-globe__control:last-child {
	border-bottom: 0;
}

.ug-branch-globe__control:hover,
.ug-branch-globe__control:focus-visible {
	background: rgba(255, 255, 255, 0.16);
	color: var(--ug-yellow);
	outline: none;
}

.ug-branch-globe__control:focus-visible {
	box-shadow: inset 0 0 0 2px var(--ug-yellow);
}

.ug-branch-globe__control--reset {
	font-size: 19px;
}

.ug-branch-globe__country-label {
	display: block;
	max-width: 145px;
	overflow: hidden;
	padding: 2px 4px;
	border-radius: 3px;
	background: rgba(7, 36, 13, 0.55);
	color: rgba(255, 255, 255, 0.96);
	font-family: Arial, sans-serif;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.025em;
	line-height: 1.15;
	text-align: center;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
	text-overflow: ellipsis;
	white-space: nowrap;
	pointer-events: none;
	transform: translate(-50%, -50%);
}

.ug-branch-globe__tooltip {
	max-width: 280px;
	padding: 11px 13px;
	border: 1px solid rgba(111, 255, 139, 0.35);
	border-radius: 10px;
	background: rgba(5, 37, 12, 0.94);
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
	color: #fff;
	font-family: Arial, sans-serif;
	line-height: 1.35;
	pointer-events: none;
}

.ug-branch-globe__tooltip strong,
.ug-branch-globe__tooltip span,
.ug-branch-globe__tooltip address {
	display: block;
}

.ug-branch-globe__tooltip strong {
	margin-bottom: 5px;
	color: #fff;
	font-size: 14px;
}

.ug-branch-globe__tooltip span {
	margin-bottom: 4px;
	color: var(--ug-lime);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.ug-branch-globe__tooltip address {
	color: rgba(255, 255, 255, 0.8);
	font-size: 12px;
	font-style: normal;
}

.ug-branch-globe__tooltip--country strong {
	margin: 0;
}

.ug-branch-globe .scene-tooltip {
	z-index: 20;
}

.ug-branch-globe__status {
	position: absolute;
	right: 58px;
	bottom: 30px;
	z-index: 4;
	max-width: 280px;
	margin: 0;
	color: rgba(255, 255, 255, 0.74);
	font-size: 12px;
	text-align: right;
}

.ug-branch-globe__noscript {
	margin: 0;
	padding: 20px 32px 32px 52px;
}

.ug-branch-globe.has-error .ug-branch-globe__canvas {
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #86f59a, #174322 48%, #0b2411 80%);
}

@media (max-width: 1100px) {
	.ug-branch-globe__inner {
		grid-template-columns: minmax(0, 0.92fr) minmax(390px, 1.08fr);
		width: min(100% - 40px, 1120px);
	}

	.ug-branch-globe__title {
		font-size: clamp(40px, 5.3vw, 60px);
	}

	.ug-branch-globe__canvas {
		width: min(680px, 58vw);
		height: min(680px, 58vw);
	}
}

@media (max-width: 820px) {
	.ug-branch-globe {
		min-height: auto;
	}

	.ug-branch-globe__inner {
		grid-template-columns: 1fr;
		width: min(100% - 32px, 680px);
		min-height: auto;
		gap: 0;
	}

	.ug-branch-globe__content {
		padding: 54px 0 18px;
	}

	.ug-branch-globe__title {
		margin-bottom: 28px;
		font-size: clamp(40px, 10vw, 58px);
	}

	.ug-branch-globe__active {
		min-height: 154px;
	}

	.ug-branch-globe__location-title {
		font-size: clamp(27px, 6vw, 38px);
	}

	.ug-branch-globe__visual {
		min-height: min(680px, 94vw);
	}

	.ug-branch-globe__canvas {
		width: min(680px, 100vw);
		height: min(680px, 100vw);
		min-width: 320px;
		min-height: 320px;
	}

	.ug-branch-globe__controls {
		right: 76px;
		bottom: 18px;
	}

	.ug-branch-globe__status {
		right: 58px;
		bottom: 20px;
	}
}

@media (max-width: 480px) {
	.ug-branch-globe__inner {
		width: calc(100% - 24px);
	}

	.ug-branch-globe__content {
		padding-top: 42px;
	}

	.ug-branch-globe__eyebrow {
		font-size: 11px;
	}

	.ug-branch-globe__title {
		font-size: 42px;
	}

	.ug-branch-globe__active {
		min-height: 164px;
	}

	.ug-branch-globe__location-title {
		font-size: 28px;
	}

	.ug-branch-globe__address {
		font-size: 17px;
	}

	.ug-branch-globe__location-button {
		width: 100%;
	}

	.ug-branch-globe__instructions {
		margin-top: 18px;
	}

	.ug-branch-globe__visual {
		min-height: 102vw;
		margin-right: -12px;
		margin-left: -12px;
	}

	.ug-branch-globe__canvas {
		width: 108vw;
		height: 108vw;
	}

	.ug-branch-globe__controls {
		right: 70px;
		bottom: 14px;
	}

	.ug-branch-globe__control {
		width: 40px;
		height: 40px;
	}

	.ug-branch-globe__status {
		right: 62px;
		bottom: 14px;
		max-width: 190px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ug-branch-globe__location-button,
	.ug-branch-globe__control {
		transition: none;
	}
}
