.mio-home-cover {
	--mio-text: #fffdf6;
	--mio-cream: #faf3e7;
	--mio-gold: #ffbf08;
	--mio-green: #00472c;
	--mio-deep: #052d22;
	position: relative;
	isolation: isolate;
	color: var(--mio-text);
	background: var(--mio-deep);
	font: 400 16px/1.4 Inter, system-ui, -apple-system, sans-serif;
}

.mio-home-cover a { color: inherit; text-decoration: none; }
.mio-home-cover svg { width: 24px; height: 24px; flex: none; vertical-align: middle; }
.mio-home-cover :focus-visible { outline: 3px solid var(--mio-gold); outline-offset: 4px; }
.mio-home-cover :where(button, input, summary) { font: inherit; }

.mio-home-wrap { width: min( calc(100% - 112px), 1264px ); margin-inline: auto; }

.mio-home-photo, .mio-home-cover::before {
	position: absolute;
	inset: 0;
	z-index: -2;
	pointer-events: none;
}

.mio-home-photo { left: 30%; overflow: hidden; }
.mio-home-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 25%;
	filter: saturate(.88) brightness(.96);
}

.mio-home-cover::before {
	z-index: -1;
	content: "";
	background:
		linear-gradient(0deg, #042b20c9, #042b2033 27%, transparent 52%),
		linear-gradient(90deg, #04291f 0%, #04291f 30%, #04291ff0 36%, #062e26cf 46%, #092e296e 61%, #0b302518 76%, transparent 93%);
}

.mio-home-header { position: relative; z-index: 2; background: linear-gradient(100deg, #031f16f2 55%, #042b20d6); }
.mio-home-header-inner { min-height: 95px; display: flex; align-items: center; gap: 36px; }
.mio-home-brand { flex: none; display: inline-flex; align-items: center; }
.mio-home-brand img { width: 195px; height: auto; }
.mio-home-navigation { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: clamp(17px, 2.7vw, 43px); }
.mio-home-navigation :where(a, summary) { font-size: 15px; font-weight: 700; }
.mio-home-navigation details { position: relative; }
.mio-home-navigation summary { display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; min-height: 44px; }
.mio-home-navigation summary::-webkit-details-marker { display: none; }
.mio-home-navigation summary svg { width: 15px; height: 15px; }
.mio-home-navigation details[open] summary svg { transform: rotate(180deg); }
.mio-home-navigation > :is(a, details):hover, .mio-home-submenu a:hover { color: var(--mio-gold); }

.mio-home-submenu {
	position: absolute;
	top: 100%;
	left: -14px;
	z-index: 1;
	min-width: 208px;
	max-height: calc(100vh - 90px);
	overflow-y: auto;
	padding: 8px;
	border: 1px solid #ffffff32;
	border-radius: 12px;
	background: var(--mio-deep);
	box-shadow: 0 12px 30px #01160fc0;
}
.mio-home-submenu a { display: block; padding: 10px 12px; }
.mio-home-submenu .mio-home-submenu-child { padding:7px 12px 7px 24px; border-left:2px solid #c4ad42; font-size:12px; line-height:1.35; }

.mio-home-navigation .mio-home-commercial {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 19px;
	border: 1.5px solid var(--mio-gold);
	border-radius: 100px;
	color: var(--mio-gold);
	white-space: nowrap;
}

.mio-home-commercial:hover { background: #ffbf0818; }
.mio-home-commercial svg { width: 21px; height: 21px; }
.mio-home-search-link, .mio-home-menu-button { display: none; }

.mio-home-skip {
	position: absolute;
	top: 6px;
	left: 10px;
	z-index: 5;
	padding: 8px 16px;
	border-radius: 6px;
	background: var(--mio-deep);
	transform: translateY(-160%);
}
.mio-home-skip:focus { transform: translateY(0); }

.mio-home-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.mio-home-hero { position: relative; padding: clamp(34px, 3vw, 49px) 0 clamp(74px, 6.2vw, 96px); }
.mio-home-hero .mio-home-lema { margin: 0 0 14px; color: var(--mio-text); font-weight: 750; letter-spacing: .35em; text-transform: uppercase; }
.mio-home-lema::after { content: ""; display: block; width: 116px; height: 2px; margin-top: 12px; background: var(--mio-gold); }

.mio-home-hero h1 {
	position: relative;
	width: fit-content;
	margin: 0;
	color: var(--mio-text);
	font: 700 clamp(53px, 5.25vw, 82px)/.98 Georgia, "Times New Roman", serif;
	letter-spacing: -.05em;
}

.mio-home-hero h1 span { display: block; }
.mio-home-hero h1 em { position: relative; color: var(--mio-gold); font-weight: 700; }
.mio-home-hero h1 em::after {
	position: absolute;
	inset: auto 7% -.03em 36%;
	height: .09em;
	border-top: .035em solid currentColor;
	border-radius: 55%;
	transform: rotate(-2deg);
	content: "";
}

.mio-home-hero .mio-home-description {
	max-width: 36ch;
	margin: 23px 0 21px;
	color: var(--mio-text);
	font-size: clamp(17px, 1.63vw, 23px);
	line-height: 1.25;
	letter-spacing: -.026em;
}

.mio-home-search {
	display: flex;
	align-items: center;
	gap: 11px;
	width: min(100%, 625px);
	min-height: 60px;
	margin: 0;
	padding: 6px 7px 6px 20px;
	border-radius: 100px;
	background: #faf8f3;
	color: var(--mio-deep);
	box-shadow: 0 5px 18px #061d1740;
}
.mio-home-search input {
	flex: 1;
	min-width: 0;
	height: 44px;
	margin: 0;
	padding: 0 2px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--mio-deep);
	font-size: 17px;
	box-shadow: none;
}
.mio-home-search input::placeholder { color: #3f4541; opacity: 1; }
.mio-home-search input:focus-visible { outline: 2px solid var(--mio-green); outline-offset: 2px; }
.mio-home-search button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 46px;
	min-width: 138px;
	padding: 0 17px;
	border: 0;
	border-radius: 100px;
	background: var(--mio-green);
	color: white;
	font-weight: 750;
	cursor: pointer;
}
.mio-home-search button:hover { background: #00643d; }
.mio-home-search button svg { width: 20px; height: 20px; }

.mio-home-categories { width: min(100%, 690px); margin-top: 19px; }
.mio-home-categories ul { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; list-style: none; }
.mio-home-categories li { position: relative; margin: 0; min-width: 0; }
.mio-home-categories li + li::before { position: absolute; left: 0; top: 15%; height: 72%; width: 1px; background: #ffffff42; content: ""; }
.mio-home-categories a { display: flex; width: fit-content; min-width: 44px; margin: auto; flex-direction: column; align-items: center; gap: 7px; font-weight: 700; font-size: 15px; line-height: 1.2; text-align: center; }
.mio-home-category-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: #165d3def; }
.mio-home-category-icon svg { width: 30px; height: 30px; }
.mio-home-categories a:hover .mio-home-category-icon { background: var(--mio-green); color: var(--mio-gold); }
.mio-home-category-short { display: none; }
.mio-home-cover .mio-home-wave { position: absolute; inset: auto 0 -1px; width: 100%; height: clamp(44px, 6.35vw, 92px); fill: var(--mio-cream); pointer-events: none; }
.mio-home-existing { background: #faf3e7; }

@media (max-width: 1070px) {
	.mio-home-wrap { width: calc(100% - 64px); }
	.mio-home-header-inner { gap: 22px; }
	.mio-home-brand img { width: 156px; }
	.mio-home-navigation { gap: 15px; }
	.mio-home-navigation :where(a, summary) { font-size: 14px; }
}

@media (max-width: 880px) {
	.mio-home-header-inner { display: grid; grid-template-columns: 44px 1fr 44px; min-height: 75px; gap: 12px; }
	.mio-home-brand { grid-area: 1 / 2; justify-self: center; }
	.mio-home-brand img { width: 153px; }
	.mio-home-search-link, .mio-home-ready .mio-home-menu-button {
		display: grid;
		place-items: center;
		width: 44px;
		height: 44px;
		border: 0;
		border-radius: 8px;
		background: transparent;
		color: var(--mio-text);
	}
	.mio-home-search-link { grid-area: 1 / 3; }
	.mio-home-menu-button { grid-area: 1 / 1; cursor: pointer; }
	.mio-home-navigation {
		grid-area: 2 / 1 / auto / -1;
		display: flex;
		align-items: stretch;
		flex-direction: column;
		gap: 0;
		padding: 12px 14px;
		border-radius: 14px;
		background: var(--mio-deep);
	}
	.mio-home-ready .mio-home-navigation {
		position: absolute;
		top: calc(100% + 4px);
		inset-inline: 18px;
		border: 1px solid #ffffff32;
		box-shadow: 0 12px 30px #01160fc0;
	}
	.mio-home-ready .mio-home-menu-button[aria-expanded="false"] ~ .mio-home-navigation { display: none; }
	.mio-home-navigation > a:not(.mio-home-commercial) { display: flex; align-items: center; min-height: 44px; }
	.mio-home-navigation .mio-home-commercial { align-self: flex-start; margin: 8px 0 0; }
	.mio-home-submenu { position: static; max-height: none; overflow: visible; padding: 0 0 0 10px; border: 0; box-shadow: none; }
}

@media (max-width: 740px) {
	.mio-home-wrap { width: calc(100% - 36px); }
	.mio-home-photo { left: 23%; top: 60px; }
	.mio-home-photo img { object-position: 9% center; }
	.mio-home-cover::before {
		background:
			linear-gradient(0deg, #031e17 4%, #042b20f4 17%, #042b2070 37%, transparent 61%),
			linear-gradient(90deg, #042b22 23%, #042b22ef 40%, #042b2299 60%, #042b222e 80%, transparent);
	}
	.mio-home-hero { padding: 27px 0 54px; }
	.mio-home-hero .mio-home-lema { font-size: 12px; letter-spacing: .28em; margin-bottom: 14px; }
	.mio-home-lema::after { width: 74px; margin-top: 10px; }
	.mio-home-hero h1 { max-width: 9ch; font-size: clamp(41px, 11.8vw, 64px); line-height: .98; }
	.mio-home-hero h1 span { display: contents; }
	.mio-home-hero .mio-home-description { max-width: 22ch; margin: 15px 0 21px; font-size: 16px; line-height: 1.34; }
	.mio-home-search { min-height: 52px; gap: 7px; padding: 4px 5px 4px 13px; }
	.mio-home-search > svg { width: 21px; height: 21px; }
	.mio-home-search input { font-size: 16px; }
	.mio-home-search button { min-width: 96px; min-height: 44px; padding: 0 11px; gap: 5px; font-size: 14px; }
	.mio-home-search button svg { width: 16px; height: 16px; }
	.mio-home-categories { margin-top: 16px; }
	.mio-home-categories li + li::before { display: none; }
	.mio-home-categories a { width: 100%; gap: 6px; font-size: 12px; }
	.mio-home-category-icon { width: 44px; height: 44px; border-radius: 12px; }
	.mio-home-category-icon svg { width: 25px; height: 25px; }
	.mio-home-category-long:has(+.mio-home-category-short) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	.mio-home-category-short { display: block; }
	.mio-home-cover .mio-home-wave { height: 34px; }
}

@media (max-width: 360px) {
	.mio-home-search input { font-size: 14px; }
}
