@font-face {
	font-family: 'Kaspersky Sans Display';
	src: url('/report/KasperskySansDisplay/Kaspersky_Sans_Display_Light.woff2')
		format('woff2');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Kaspersky Sans Display';
	src: url('/report/fonts/KasperskySansDisplay/Kaspersky_Sans_Display_Regular.woff2')
		format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Kaspersky Sans Display';
	src: url('/report/fonts/KasperskySansDisplay/Kaspersky_Sans_Display_Medium.woff2')
		format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Kaspersky Sans Display';
	src: url('/report/fonts/KasperskySansDisplay/Kaspersky_Sans_Display_SemiBold.woff2')
		format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Kaspersky Sans Display';
	src: url('/report/fonts/KasperskySansDisplay/Kaspersky_Sans_Display_Bold.woff2')
		format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Kaspersky Sans Display';
	src: url('/report/fonts/KasperskySansDisplay/Kaspersky_Sans_Display_ExtraBold.woff2')
		format('woff2');
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family:
		'Kaspersky Sans Display',
		-apple-system,
		BlinkMacSystemFont,
		'Segoe UI',
		Roboto,
		sans-serif;
	overflow-x: hidden;
}

.container {
	position: relative;
	width: 100vw;
	min-height: 100vh;
}

/* Background image */
.background-image {
	position: fixed;
	height: 100%;
	left: 0;
	top: 0;
	width: 100%;
	overflow: hidden;
}

.background-image::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url('/report/images/bg.png');
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}

.background-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, #f3fbfe 29.808%, #8ccafe);

	opacity: 0.6;
	pointer-events: none;
}

/* Logo */
.logo {
	position: absolute;
	height: 23px;
	left: calc(4.167% + 40px);
	top: 42px;
	transform: translateX(-50%);
	width: 120px;
	z-index: 10;
}

.logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Frame button */
.frame-button {
	position: absolute;
	height: 51px;
	left: calc(83.333% + 70px);
	top: 40px;
	width: 130px;
	z-index: 10;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
}

.frame-button img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Back button */
.back-button {
	display: flex;
	gap: 8px;
	align-items: center;
	z-index: 10;
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
	font-family: inherit;
}

.back-icon {
	display: flex;
	align-items: center;
	gap: 8px;
}

.back-icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	position: absolute;
	inset: 25% 6.25% 25% 12.5%;
}

.back-text {
	font-family: 'Kaspersky Sans Display', sans-serif;
	font-weight: 400;
	line-height: 1.2;
	font-size: 16px;
	color: #264e8a;
	white-space: nowrap;
	position: relative;
	flex-shrink: 0;
	display: inline-block;
}

/* Language switcher */
.language-switcher {
	display: flex;
	gap: 15px;
	align-items: center;
	width: 358px;
	z-index: 10;
}

.lang-btn {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
	justify-content: center;
	padding: 10px 15px;
	border-radius: 10px;
	border: none;
	cursor: pointer;
	box-shadow: 2px 4px 4px 0px rgba(27, 55, 97, 0.05);
	font-family: 'Kaspersky Sans Display', sans-serif;
	font-weight: 400;
	line-height: 1.2;
	font-size: 16px;
	flex-shrink: 0;
	transition: background-color 0.2s ease;
}

.lang-btn.active {
	background-color: #264e8a;
	color: #ffffff;
}

.lang-btn:not(.active) {
	background-color: #f4fcfe;
	color: #264e8a;
}

.lang-btn:hover:not(.active) {
	background-color: #e8f7fc;
}

.main-title {
	font-family: 'Kaspersky Sans Display', sans-serif;
	font-weight: 400;
	line-height: 1.2;
	font-style: normal;
	color: #264e8a;
	font-size: 44px;
	z-index: 10;
	max-width: 100%;
}

.language-switcher-wrapper {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.main-content {
	position: absolute;
	left: 0;
	top: 154px;
	width: 100%;
	z-index: 10;
	display: flex;
	justify-content: center;
	gap: 40px;
	padding: 0 20px 40px 20px;
}

.main-description-wrapper {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
	max-width: 640px;
}

.main-description {
	font-family: 'Kaspersky Sans Display', sans-serif;
	font-weight: 400;
	line-height: 1.2;
	font-style: normal;
	color: #4c627e;
	font-size: 16px;
	width: 100%;
	z-index: 10;
}

.right-placeholder {
	border-radius: 16px;
	width: 454px;
	z-index: 5;
	flex-shrink: 0;
	object-fit: contain;
	display: block;
}

/* Download button */
.download-btn {
	background-color: #f4fcfe;
	border: none;
	border-radius: 10px;
	padding: 10px 20px;
	box-shadow: 2px 4px 4px 0px rgba(27, 55, 97, 0.05);
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	transition: background-color 0.2s ease;
	width: fit-content;
	margin-top: 30px;
}

.download-btn:hover {
	background-color: #e8f7fc;
}

.download-text {
	font-family: 'Kaspersky Sans Display', sans-serif;
	font-weight: 500;
	line-height: 1.2;
	font-style: normal;
	color: #264e8a;
	font-size: 16px;
	white-space: nowrap;
	position: relative;
	flex-shrink: 0;
	display: inline-block;
}

.download-icon {
	overflow: clip;
	position: relative;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.download-icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	position: absolute;
	inset: 6.25% 12.5% 12.5% 12.5%;
}

/* Legal button wrapper */
.legal-wrapper {
	position: fixed;
	right: 40px;
	bottom: 40px;
	z-index: 100;
}

/* Legal button */
.legal-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 18px;
	border-radius: 10px;
	box-shadow:
		0 8px 16px -6px rgba(24, 39, 75, 0.08),
		0 6px 8px -6px rgba(24, 39, 75, 0.12),
		inset 0 0 20px 0 hsla(0, 0%, 100%, 0.5);
	background-color: #f1fbff;
	border: none;
	cursor: pointer;
	font-family: 'Kaspersky Sans Display', sans-serif;
	font-weight: 400;
	font-size: 14px;
	color: #264e8a;
	transition: background-color 0.2s ease;
	position: relative;
	height: 40px;
}

.legal-btn:hover {
	background-color: #e8f7fc;
}

.legal-btn[aria-expanded='true'] {
	background-color: #e8f7fc;
}

.legal-btn svg {
	flex-shrink: 0;
}

.legal-btn span {
	white-space: nowrap;
}

/* Legal dropdown popup */
.legal-popup {
	position: absolute;
	bottom: 100%;
	transform: translateX(-50%) translateY(-8px);
	margin-bottom: 8px;
	border-radius: 10px;
	padding: 20px;
	border: none;
	background-color: #f1fbff;
	-webkit-box-shadow:
		0 4px 14px 0 rgba(38, 78, 138, 0.2),
		inset -3px 4px 25px 0 hsla(0, 0%, 100%, 0.65);
	box-shadow:
		0 4px 14px 0 rgba(38, 78, 138, 0.2),
		inset -3px 4px 25px 0 hsla(0, 0%, 100%, 0.65);
	min-width: 200px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity 0.2s ease,
		visibility 0.2s ease,
		transform 0.2s ease;
	z-index: 101;
}

.legal-popup a,
button {
	border-bottom: 1px solid rgba(83, 135, 205, 0.302);
}

.legal-popup button {
	width: 100%;
	background: none;
	border: none;
	cursor: pointer;
}

.legal-popup[aria-hidden='false'] {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-55%) translateY(0);
}

[dir='rtl'] .legal-popup {
	transform: translateY(-8px);
}

[dir='rtl'] .legal-popup[aria-hidden='false'] {
	transform: translateY(0);
}

.legal-link {
	display: block;
	padding: 12px 0;
	font-family: 'Kaspersky Sans Display', sans-serif;
	font-weight: 400;
	font-size: 12px;
	color: #264e8a;
	text-decoration: none;
	transition: background-color 0.2s ease;
	border-bottom: 1px solid #f0f0f0;
	display: flex;
	justify-content: space-between;
}

.legal-link:first-child {
	border-radius: 10px 10px 0 0;
	padding-top: 0;
}

.legal-link:last-child {
	border-bottom: none;
	border-radius: 0 0 10px 10px;
}

/* Responsive adjustments */
@media (max-width: 1440px) {
	.container {
		width: 100%;
	}

	.background-image {
		width: 100%;
		max-width: 1440px;
	}
}

@media (max-width: 1024px) {
	.main-title {
		font-size: 36px;
		width: 90%;
		max-width: 640px;
	}

	.background-overlay {
		background: none;
	}

	.container {
		background: linear-gradient(to bottom, #f3fbfe 29.808%, #8ccafe);
	}

	.main-description {
		width: 90%;
		max-width: 454px;
	}

	.right-placeholder {
		width: 100%;
		max-width: 100%;
		height: auto;
	}

	.language-switcher {
		flex-wrap: wrap;
	}

	.frame-button {
		right: 20px;
		left: auto;
	}
}

@media (max-width: 768px) {
	.legal-btn span {
		display: none;
		visibility: hidden;
	}

	.main-content {
		position: relative;
		flex-direction: column;
		top: 0;
		padding-top: 134px;
		gap: 20px;
		padding-bottom: 40px;
		padding-left: 15px;
		padding-right: 15px;
	}
	.main-title {
		font-size: 28px;
	}

	.logo {
		left: 20px;
		transform: none;
	}

	.frame-button {
		right: 20px;
		left: auto;
		top: 25px;
	}

	.back-button,
	.main-title,
	.main-description,
	.download-btn {
		left: 20px;
	}

	.download-btn {
		width: 100%;
		margin-top: 0;
	}

	.legal-wrapper {
		left: auto;
		right: 20px;
		transform: none;
	}

	.legal-popup {
		left: auto;
		right: 0;
		transform: translateY(-8px);
	}

	.legal-popup[aria-hidden='false'] {
		transform: translateY(0);
	}

	.language-switcher {
		width: 100%;
		gap: 9px;
		justify-content: center;
	}

	.lang-btn {
		padding-left: 14px;
		padding-right: 14px;
	}

	.background-image::before {
		opacity: 0;
	}
}

@media (max-width: 360px) {
	.lang-btn {
		padding-left: 12px;
		padding-right: 12px;
	}
}
