/* Главная: Hero — в одной колонке с шапкой/подвалом (--lf-chrome-pad-x), скругления, Rubik */

.lf-hero {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	background: transparent;
	color: #f8fafc;
}

/* Те же горизонтальные поля, что у .lf-header__inner / .lf-footer__inner */
.lf-hero__gutter {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 5px var(--lf-chrome-pad-x, clamp(18px, 3vw, 48px)) 16px;
}

.lf-hero__frame {
	position: relative;
	width: 100%;
	min-height: min(86vh, 920px);
	border-radius: 14px;
	overflow: hidden;
	box-sizing: border-box;
	background: #0f172a;
	box-shadow: 0 10px 40px rgba(15, 23, 42, 0.14);
	display: flex;
	align-items: center;
	justify-content: center;
	isolation: isolate;
}

.lf-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: #0f172a;
}

.lf-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: #0f172a;
	background-image: linear-gradient(145deg, #1e293b 0%, #0f172a 42%, #1e3a5f 100%);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}

.lf-hero__bg--desktop {
	display: none;
}

.lf-hero__bg--mobile {
	display: block;
}

@media (min-width: 768px) {
	.lf-hero__bg--desktop {
		display: block;
	}

	.lf-hero__bg--mobile {
		display: none;
	}
}

.lf-hero__video {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 1;
	min-width: 100%;
	min-height: 100%;
	width: auto;
	height: auto;
	transform: translate(-50%, -50%);
	object-fit: cover;
	display: none;
}

@media (min-width: 768px) {
	.lf-hero__video {
		display: block;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lf-hero__video {
		display: none !important;
	}
}

.lf-hero__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(0, 0, 0, 0.47);
	pointer-events: none;
}

.lf-hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 40px clamp(16px, 3vw, 28px) 44px;
	display: flex;
	justify-content: center;
}

.lf-hero__content {
	max-width: 42rem;
	margin: 0 auto;
	text-align: center;
	font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lf-hero__title {
	margin: 0 0 16px;
	/* Figma Heading/h1: Academy 400 Regular, 48px, 145%, letter-spacing 0.12%, center, uppercase */
	font-family: "Academy", Georgia, "Times New Roman", serif;
	font-synthesis: none;
	font-size: clamp(1.875rem, 3.5vw + 1rem, 3rem);
	font-weight: 400;
	font-style: normal;
	line-height: 1.45;
	letter-spacing: 0.0012em;
	text-align: center;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

/* Figma Text-xxl/400, 24_32: Rubik 400, 24px, line-height 32px, letter-spacing 0, center */
.lf-hero__lead,
.lf-hero__lead--html {
	margin: 0 0 28px;
	font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: clamp(1.0625rem, 2vw + 0.75rem, 1.5rem);
	font-weight: 400;
	font-style: normal;
	line-height: 1.333333;
	letter-spacing: 0;
	text-align: center;
	color: rgba(248, 250, 252, 0.92);
	text-shadow: 0 1px 16px rgba(0, 0, 0, 0.3);
}

.lf-hero__lead--html {
	max-width: 100%;
}

.lf-hero__lead--html p {
	margin: 0 0 0.65em;
	font: inherit;
}

.lf-hero__lead--html p:last-child {
	margin-bottom: 0;
}

.lf-hero__cta {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: stretch;
	justify-content: center;
	gap: 14px;
	margin: 0 auto;
	width: 100%;
	max-width: 480px;
}

button.lf-hero__btn {
	margin: 0;
	color: inherit;
	cursor: pointer;
	appearance: none;
	background: transparent;
}

.lf-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 0;
	min-width: 0;
	min-height: 50px;
	padding: 0 16px;
	box-sizing: border-box;
	/* Figma Text-l/500, 16_22: Rubik Medium, 16px, line-height 22px, letter-spacing 0, center */
	font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1rem;
	font-weight: 500;
	font-style: normal;
	line-height: 1.375;
	letter-spacing: 0;
	text-align: center;
	text-decoration: none;
	border-radius: 10px;
	border: 2px solid transparent;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
	-webkit-tap-highlight-color: transparent;
}

.lf-hero__btn:focus {
	outline: none;
}

.lf-hero__btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.lf-hero__btn--primary,
.lf-hero__btn--ghost {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.55);
}

.lf-hero__btn--primary:hover,
.lf-hero__btn--ghost:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: #fff;
	color: #fff;
}

.lf-hero__cta .lf-hero__btn:only-child {
	flex: 0 1 auto;
	width: 100%;
	max-width: 280px;
}

@media (max-width: 767px) {
	.lf-hero__gutter {
		padding-top: 5px;
		padding-bottom: 12px;
	}

	.lf-hero__frame {
		min-height: min(76vh, 700px);
		border-radius: 12px;
		box-shadow: 0 6px 24px rgba(15, 23, 42, 0.12);
	}

	.lf-hero__inner {
		padding-top: 32px;
		padding-bottom: 36px;
	}

	.lf-hero__cta {
		max-width: 100%;
		padding: 0 4px;
		gap: 10px;
	}

	.lf-hero__btn {
		min-height: 48px;
		padding: 0 10px;
		font-size: 1rem;
	}
}
