@font-face {
	font-family: "PHG Unbounded";
	src: url("../fonts/unbounded-cyrillic-800-normal.woff2") format("woff2");
	font-weight: 800;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: "PHG Unbounded";
	src: url("../fonts/unbounded-latin-800-normal.woff2") format("woff2");
	font-weight: 800;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.phg-hero-host {
	container-type: inline-size;
	container-name: phg;
	width: 100%;
}

.phg-hero {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	width: 100%;
	height: var(--phg-height, 100vh);
	max-height: var(--phg-max-height, 900px);
	min-height: 480px;
	overflow: hidden;
	box-sizing: border-box;
	background: transparent;
	color: var(--phg-text, #fff);
	container-type: inline-size;
	container-name: phg;
}

.phg-hero *,
.phg-hero *::before,
.phg-hero *::after {
	box-sizing: border-box;
}

.phg-hero__globe {
	position: relative;
	height: 100%;
	overflow: hidden;
	touch-action: pan-y;
}

.phg-hero__stage {
	position: absolute;
	top: 0;
	height: 100%;
	cursor: grab;
}

.phg-hero--crop-half .phg-hero__stage {
	width: 200%;
	left: -100%;
}

.phg-hero--crop-none .phg-hero__stage {
	width: 100%;
	left: 0;
}

.phg-hero__stage:active {
	cursor: grabbing;
}

.phg-hero__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: 3% 4% 3% 2%;
	transform: translateX(calc(-1 * var(--phg-text-pull, 0px)));
}

.phg-title {
	width: fit-content;
	max-width: 100%;
	margin: 0;
	font-family: "PHG Unbounded", system-ui, sans-serif;
	font-weight: 800;
	font-size: clamp(2.5rem, 9cqi, 10rem);
	/* Unbounded: caps 0.75em, Й/Ё marks reach 0.99–1.01em, Д/Ц/Щ tails 0.15em below baseline. */
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	/* 90deg keeps the repeated gradient tiles seamless while shifting. */
	background-image: linear-gradient(90deg, var(--phg-c1), var(--phg-c2), var(--phg-c3), var(--phg-c4), var(--phg-c1));
	background-size: 200% 100%;
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 0 24px color-mix(in srgb, var(--phg-c1) 35%, transparent));
	animation: phg-flow 6s linear infinite;
}

.phg-title__line {
	display: block;
	width: fit-content;
	white-space: nowrap;
}

.phg-title.phg-title--date {
	margin-top: 0.35em;
	/* Half of the 6s cycle: the date always shows the opposite colours of the title. */
	animation-delay: -3s;
}

@keyframes phg-flow {
	from { background-position: 0% 50%; }
	to { background-position: -200% 50%; }
}

.phg-subtitle {
	margin: 1.2em 0 0;
	color: var(--phg-text, #fff);
	font-size: clamp(1rem, 1.6cqi, 1.5rem);
	opacity: 0.8;
}

.phg-hero__activate {
	position: absolute;
	z-index: 4;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	max-width: calc(100% - 24px);
	padding: 10px 16px;
	border-radius: 999px;
	background: rgba(12, 14, 28, 0.72);
	color: #fff;
	font: 600 14px/1.3 system-ui, sans-serif;
	text-align: center;
	pointer-events: auto;
}

.phg-hero__activate[hidden] {
	display: none;
}

.phg-hero__fallback {
	position: relative;
	z-index: 2;
	max-height: 100%;
	overflow: auto;
	padding: 24px;
	color: var(--phg-text, #fff);
}

.phg-hero__fallback[hidden] {
	display: none;
}

.phg-fallback__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.phg-fallback__list li + li {
	margin-top: 8px;
}

.phg-fallback__list a {
	color: var(--phg-text, #fff);
}

.phg-card {
	position: absolute;
	z-index: 5;
	width: min(340px, 90vw);
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 18px;
	background: rgba(12, 14, 28, 0.82);
	color: #fff;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(14px);
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px) scale(0.98);
	transition: opacity 0.25s, transform 0.25s;
}

.phg-card.is-open {
	opacity: 1;
	pointer-events: auto;
	transform: none;
}

.phg-card.is-open.is-hidden-behind {
	opacity: 0;
	pointer-events: none;
}

.phg-card::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -8px;
	transform: translateX(-50%);
	border: 8px solid transparent;
	border-top-color: rgba(12, 14, 28, 0.82);
	border-bottom: 0;
}

.phg-card.is-below::after {
	top: -8px;
	bottom: auto;
	border-top: 0;
	border-bottom: 8px solid rgba(12, 14, 28, 0.82);
}

.phg-card::before {
	content: "";
	display: none;
}

.phg-card .phg-card__close,
.phg-card .phg-card__close:hover,
.phg-card .phg-card__close:focus,
.phg-card .phg-card__close:active {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	box-shadow: none;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	text-transform: none;
	cursor: pointer;
}

.phg-card__body {
	padding-right: 28px;
}

.phg-card__geo-line {
	margin: 0 0 4px;
	font-size: 13px;
}

.phg-card__geo-line span {
	font-weight: 500;
	opacity: 0.65;
}

.phg-card__geo-line strong {
	font-weight: 700;
}

.phg-card__geo-line--city {
	margin-top: 6px;
	font-size: 18px;
}

.phg-card__section h3 {
	margin: 14px 0 8px;
	color: rgba(255, 255, 255, 0.7);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Themes style a:hover and button:hover (often red); keep the card colours fixed in every state. */
.phg-card .phg-card__item {
	margin: 10px 0 0;
}

.phg-card .phg-card__item-link,
.phg-card .phg-card__item-link:hover,
.phg-card .phg-card__item-link:focus,
.phg-card .phg-card__item-link:active,
.phg-card .phg-card__item-link:visited,
.phg-card .phg-card__thumb,
.phg-card .phg-card__thumb:hover,
.phg-card .phg-card__thumb:focus,
.phg-card .phg-card__thumb:active,
.phg-card .phg-card__thumb:visited {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background-color: #222;
	box-shadow: none;
	color: #fff;
	font: inherit;
	text-align: left;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	transform: none;
	cursor: pointer;
}

.phg-card .phg-card__item-link,
.phg-card .phg-card__item-link:hover,
.phg-card .phg-card__item-link:focus,
.phg-card .phg-card__item-link:active,
.phg-card .phg-card__item-link:visited {
	background: none;
}

.phg-card .phg-card__thumb:focus-visible,
.phg-card .phg-card__item-link:focus-visible {
	outline: 2px solid var(--phg-c2, #ffb800);
	outline-offset: 3px;
}

.phg-card .phg-card__thumb {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
}

.phg-card__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.phg-card__thumb--empty {
	background-image: linear-gradient(135deg, var(--phg-c1), var(--phg-c2), var(--phg-c3), var(--phg-c4));
}

.phg-card__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	transform: translate(-50%, -50%);
}

.phg-card__play::before {
	content: "";
	position: absolute;
	top: 12px;
	left: 16px;
	width: 14px;
	height: 18px;
	background: #fff;
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.phg-card__item-title {
	display: -webkit-box;
	margin-top: 8px;
	overflow: hidden;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.phg-card__item-date {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	opacity: 0.7;
}

.phg-card .phg-card__all,
.phg-card .phg-card__all:hover,
.phg-card .phg-card__all:focus,
.phg-card .phg-card__all:visited {
	display: inline-block;
	margin-top: 14px;
	color: var(--phg-c2, #ffb800);
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.phg-card .phg-card__all::after {
	content: " \203A";
}

.phg-tip {
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(12, 14, 28, 0.92);
	color: #fff;
	font: 600 13px/1.3 system-ui, sans-serif;
	white-space: nowrap;
	pointer-events: none;
}

.phg-hero .float-tooltip-kap {
	padding: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
}

@container phg (max-width: 767px) {
	.phg-hero {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto;
		height: auto;
		max-height: none;
		min-height: 0;
	}

	.phg-hero__text {
		order: -1;
		align-items: center;
		padding: 32px 20px 8px;
		text-align: center;
	}

	.phg-title__line {
		margin-inline: auto;
	}

	.phg-hero__globe {
		height: min(100vw, 75vh);
	}

	.phg-hero--crop-half .phg-hero__stage,
	.phg-hero--crop-none .phg-hero__stage {
		width: 100%;
		left: 0;
	}
}

@media (max-width: 767px) {
	.phg-hero {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto;
		height: auto;
		max-height: none;
		min-height: 0;
	}

	.phg-hero__text {
		order: -1;
		align-items: center;
		padding: 32px 20px 8px;
		text-align: center;
	}

	.phg-title__line {
		margin-inline: auto;
	}

	.phg-hero__globe {
		height: min(100vw, 75vh);
	}

	.phg-hero--crop-half .phg-hero__stage,
	.phg-hero--crop-none .phg-hero__stage {
		width: 100%;
		left: 0;
	}
}

/* Containers create a containing block for position: fixed, so the sheet is moved to <body> by globe.js. */
.phg-card.phg-card--sheet {
	position: fixed;
	top: auto;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99999;
	width: auto;
	max-height: 70vh;
	overflow: auto;
	border-radius: 20px 20px 0 0;
	transform: translateY(100%);
	box-sizing: border-box;
}

.phg-card--sheet *,
.phg-card--sheet *::before,
.phg-card--sheet *::after {
	box-sizing: border-box;
}

.phg-card.phg-card--sheet.is-open {
	transform: translateY(0);
}

.phg-card.phg-card--sheet::after {
	display: none;
}

.phg-card.phg-card--sheet::before {
	display: block;
	width: 40px;
	height: 4px;
	margin: 0 auto 12px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.4);
}
