/**
 * Front page: hero section (BEM: fazis-hero).
 * Mobile layout & overlay: max-width 550px.
 */

p,
h1,
h2,
h3,
h4,
h5 {
	margin: 0;
}

/* Fluid type scale: bridges ~550px mobile to desktop (see clamp mins/maxes). */
.fazis-hero {
	--fazis-hero-navy: rgb(0 16 53);
	--fazis-hero-blue: rgb(35 101 255);
	--fazis-hero-mobile: 550px;

	position: relative;
	min-height: 56.25rem;
	width: 100%;
	overflow: hidden;
	background-color: var(--fazis-hero-navy);
	border-radius: 0;
}

.fazis-hero__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	border-radius: 0;
	background-color: var(--fazis-hero-navy);
	background-image: url("../images/hero-bg.webp");
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

.fazis-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	min-height: 56.25rem;
	max-width: 120rem;
	margin: 0 auto;
}

.fazis-hero__header {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	gap: clamp(1rem, 5vw, 6.5625rem);
	padding: clamp(1rem, 1.2vw + 0.65rem, 1.5rem) clamp(1.25rem, 7.4vw, 12.5rem);
	box-sizing: border-box;
}

.fazis-hero__brand {
	display: block;
	flex-shrink: 0;
	width: clamp(5.875rem, 18vw, 9.5rem);
	height: clamp(2.125rem, 6.5vw, 3.5rem);
	line-height: 0;
}

.fazis-hero__logo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.fazis-hero__nav--desktop {
	flex: 1;
	display: flex;
	justify-content: center;
	min-width: 0;
}

.fazis-hero__nav-list {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: clamp(0.5rem, 1.5vw, 1rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.fazis-hero__nav-item {
	margin: 0;
	padding: 0;
}

.fazis-hero__nav-link {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	min-height: clamp(2.75rem, 2vw + 2rem, 3.5rem);
	padding: 0.5rem clamp(0.75rem, 1.5vw, 1rem);
	border-radius: 2.5rem;
	color: rgb(255 255 255);
	font-size: clamp(1rem, 0.45vw + 0.88rem, 1.25rem);
	font-weight: 700;
	text-align: left;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.fazis-hero__nav-link:hover,
.fazis-hero__nav-link:focus-visible {
	background-color: rgb(255 255 255 / 0.08);
	outline: none;
}

.fazis-hero__actions--desktop {
	display: flex;
	flex-shrink: 0;
	align-items: center;
}

.fazis-hero__button {
	display: inline-flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	min-height: clamp(2.75rem, 1.5vw + 2.25rem, 3.5rem);
	padding: 0.5rem clamp(1.5rem, 3vw, 2.25rem);
	gap: 0.5rem;
	border: none;
	border-radius: 2.5rem;
	background-color: var(--fazis-hero-blue);
	color: rgb(255 255 255);
	font-size: clamp(1rem, 0.45vw + 0.88rem, 1.25rem);
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.1s ease;
}

.fazis-hero__button:hover,
.fazis-hero__button:focus-visible {
	background-color: rgb(29 84 220);
	outline: none;
}

.fazis-hero__button:active {
	transform: scale(0.98);
}

.fazis-hero__menu-toggle {
	display: none;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	box-shadow: none;
	border-style: none;
	border-radius: 0;
	background: transparent;
	color: rgb(255 255 255);
	cursor: pointer;
}

.fazis-hero__menu-toggle-lines {
	position: relative;
	display: block;
	width: 1.625rem;
	height: 1px;
	background-color: rgb(255 255 255);
	box-shadow:
		0 -6px 0 0 rgb(255 255 255),
		0 6px 0 0 rgb(255 255 255);
}

.fazis-hero__menu-toggle:focus-visible {
	outline: 2px solid rgb(255 255 255);
	outline-offset: 3px;
}

.fazis-hero__main {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
	max-width: 78rem;
	margin: 0 auto;
	padding: clamp(1.5rem, 4vw, 2rem) clamp(1.25rem, 4vw, 1.25rem) clamp(2.5rem, 6vw, 4rem);
	box-sizing: border-box;
	gap: clamp(1.25rem, 3vw, 2rem);
}

.fazis-hero__copy {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 78rem;
	gap: clamp(1rem, 2.5vw, 2rem);
}

.fazis-hero__title {
	max-width: 78rem;
	color: rgb(255 255 255);
	font-size: clamp(2.25rem, 4.5vw + 1rem, 6.25rem);
	font-weight: 700;
	line-height: 1.1;
	text-align: center;
}

.fazis-hero__lead {
	max-width: 43.125rem;
	color: rgb(255 255 255);
	font-size: clamp(1rem, 0.35vw + 0.92rem, 1.25rem);
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
}

.fazis-hero__cta {
	margin-top: 0;
	width: auto;
	align-self: center;
}

/* ——— Mobile overlay (full-screen menu) ——— */

.fazis-hero__mobile[hidden] {
	display: none !important;
}

.fazis-hero__mobile.is-open {
	display: flex !important;
}

.fazis-hero__mobile {
	position: fixed;
	inset: 0;
	z-index: 100000;
	flex-direction: column;
	align-items: stretch;
	background-color: rgb(255 255 255);
}

.fazis-hero__mobile-inner {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	width: 100%;
	max-width: 24.375rem;
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
}

.fazis-hero__mobile-bar {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	gap: 1.75rem;
	padding: 1rem 1.25rem;
	box-sizing: border-box;
}

.fazis-hero__brand--overlay {
	width: 5.875rem;
	height: 2rem;
}

.fazis-hero__logo--dark {
	filter: brightness(0) saturate(100%) invert(8%) sepia(40%) hue-rotate(169deg) brightness(0.95);
}

.fazis-hero__mobile-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: var(--fazis-hero-navy);
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.fazis-hero__mobile-close:hover,
.fazis-hero__mobile-close:focus-visible {
	opacity: 0.75;
	outline: none;
}

.fazis-hero__mobile-close:focus-visible {
	outline: 2px solid var(--fazis-hero-navy);
	outline-offset: 2px;
}

.fazis-hero__mobile-nav {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	min-height: 0;
	padding: 0 1.25rem 2rem;
	box-sizing: border-box;
}

.fazis-hero__mobile-nav-list {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fazis-hero__mobile-nav-item {
	margin: 0;
	padding: 0;
}

.fazis-hero__mobile-nav-link {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	min-height: 2.75rem;
	padding: 0.5rem 1rem;
	border-radius: 2.5rem;
	color: var(--fazis-hero-navy);
	font-size: clamp(1rem, 0.3vw + 0.94rem, 1rem);
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.fazis-hero__mobile-nav-link:hover,
.fazis-hero__mobile-nav-link:focus-visible {
	background-color: rgb(0 16 53 / 0.06);
	outline: none;
}

body.fazis-hero-menu-open {
	overflow: hidden;
}

@media (max-width: 550px) {
	.fazis-hero {
		min-height: min(100dvh, 52.75rem);
	}

	.fazis-hero__bg {
		background-image: url("../images/hero-bg-mobile.jpg");
		background-position: center top;
		background-size: cover;
	}

	.fazis-hero__inner {
		min-height: min(100dvh, 52.75rem);
	}

	.fazis-hero__header {
		gap: 1.75rem;
		padding: 1rem 1.25rem;
	}

	.fazis-hero__brand {
		width: 5.875rem;
		height: 2rem;
	}

	/* На мобільному в герої: лише логотип + гамбургер (як раніше). */
	.fazis-hero .fazis-hero__nav--desktop,
	.fazis-hero .fazis-hero__actions--desktop {
		display: none !important;
	}

	.fazis-hero .fazis-hero__menu-toggle,
	.fazis-legal-shell .fazis-hero__menu-toggle {
		display: flex;
	}

	.fazis-hero__main {
		align-items: stretch;
		padding: 0 1.25rem 2rem;
		gap: 1.5rem;
	}

	.fazis-hero__copy {
		align-items: flex-start;
		gap: 1rem;
	}

	.fazis-hero__title {
		text-align: left;
	}

	.fazis-hero__lead {
		max-width: none;
		font-weight: 400;
		text-align: left;
	}

	.fazis-hero__cta {
		align-self: stretch;
		justify-content: center;
		min-height: 2.75rem;
		padding-top: 0.5rem;
		padding-bottom: 0.5rem;
		font-size: clamp(1rem, 0.25vw + 0.95rem, 1rem);
	}
}

@media (min-width: 551px) and (max-width: 1024px) {
	.fazis-hero__header {
		flex-wrap: wrap;
	}

	.fazis-hero__nav--desktop {
		order: 3;
		flex-basis: 100%;
		justify-content: center;
	}

	.fazis-hero__actions--desktop {
		margin-left: auto;
	}
}
