:root {
	--apetahi-navy: #08233d;
	--apetahi-turquoise: #1597a8;
	--apetahi-white: #ffffff;
	--apetahi-shadow: 0 24px 70px rgba(8, 35, 61, 0.16);
	--apetahi-radius: 18px;
	--apetahi-promo-image: linear-gradient(135deg, #0b5362, #08233d);
}

.apetahi-header,
.apetahi-header * {
	box-sizing: border-box;
}

.apetahi-header {
	position: sticky;
	top: 0;
	z-index: 9999;
	width: 100%;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(14px);
	box-shadow: 0 12px 34px rgba(8, 35, 61, 0.08);
}

.apetahi-header-inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1280px;
	min-height: 84px;
	margin: 0 auto;
	padding: 0 28px;
}

.apetahi-logo,
.apetahi-mobile-logo {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	text-decoration: none;
}

.apetahi-logo img,
.apetahi-mobile-logo img,
.apetahi-logo-img {
	display: block;
	width: auto;
	max-width: 190px;
	max-height: 58px;
}

.apetahi-logo-text {
	color: var(--apetahi-navy);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0;
}

.apetahi-nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex: 1;
}

.apetahi-menu {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.apetahi-menu li {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

.apetahi-menu a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 13px;
	color: var(--apetahi-navy);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.apetahi-menu a:hover,
.apetahi-menu .current-menu-item > a,
.apetahi-menu .current-menu-ancestor > a {
	color: var(--apetahi-turquoise);
}

.apetahi-menu > li.menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-left: 9px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.2s ease, color 0.2s ease;
}

.apetahi-menu > li.menu-item-has-children:hover > a::after,
.apetahi-menu > li.menu-item-has-children:focus-within > a::after {
	transform: translateY(1px) rotate(225deg);
}

.apetahi-menu li.menu-cta > a {
	min-height: 46px;
	margin-left: 10px;
	padding: 13px 22px;
	border-radius: 999px;
	background: var(--apetahi-turquoise);
	color: var(--apetahi-white);
	box-shadow: 0 14px 30px rgba(21, 151, 168, 0.26);
}

.apetahi-menu li.menu-cta > a:hover {
	background: #107f8d;
	color: var(--apetahi-white);
	transform: translateY(-2px);
}

.apetahi-menu > li:not(.mega-menu) > ul {
	position: absolute;
	top: calc(100% + 18px);
	left: 0;
	z-index: 20;
	min-width: 240px;
	margin: 0;
	padding: 12px;
	border-radius: 14px;
	background: var(--apetahi-white);
	box-shadow: var(--apetahi-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.apetahi-menu > li:not(.mega-menu):hover > ul,
.apetahi-menu > li:not(.mega-menu):focus-within > ul {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.apetahi-menu > li:not(.mega-menu) ul a {
	min-height: auto;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 14px;
}

.apetahi-menu > li:not(.mega-menu) ul a:hover {
	background: rgba(21, 151, 168, 0.08);
}

.apetahi-menu > li.mega-menu > ul {
	position: absolute;
	top: calc(100% + 18px);
	left: 50%;
	z-index: 30;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr)) 330px;
	gap: 0;
	width: min(1180px, calc(100vw - 48px));
	margin: 0;
	padding: 28px;
	border-radius: var(--apetahi-radius);
	background: var(--apetahi-white);
	box-shadow: var(--apetahi-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateX(-50%) translateY(14px);
	transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
}

.apetahi-menu > li.mega-menu:hover > ul,
.apetahi-menu > li.mega-menu:focus-within > ul {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

.apetahi-menu > li.mega-menu::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -20px;
	width: 16px;
	height: 16px;
	background: var(--apetahi-white);
	box-shadow: -4px -4px 12px rgba(8, 35, 61, 0.04);
	opacity: 0;
	visibility: hidden;
	transform: translateX(-50%) rotate(45deg);
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.apetahi-menu > li.mega-menu:hover::after,
.apetahi-menu > li.mega-menu:focus-within::after {
	opacity: 1;
	visibility: visible;
}

.apetahi-menu > li.mega-menu > ul > li {
	position: relative;
	padding: 2px 24px;
}

.apetahi-menu > li.mega-menu > ul > li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 4px;
	right: 0;
	width: 1px;
	height: calc(100% - 8px);
	background: linear-gradient(to bottom, transparent, rgba(8, 35, 61, 0.14), transparent);
}

.apetahi-menu > li.mega-menu > ul > li > a {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	min-height: auto;
	padding: 0 0 15px;
	color: var(--apetahi-navy);
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	pointer-events: none;
}

.apetahi-menu > li.mega-menu > ul > li > a::before {
	content: "";
	display: inline-block;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	background: var(--apetahi-navy);
	-webkit-mask: var(--apetahi-column-icon) center/contain no-repeat;
	mask: var(--apetahi-column-icon) center/contain no-repeat;
}

.apetahi-menu > li.mega-menu > ul > li:nth-child(1) {
	--apetahi-column-icon: url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 48 48' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 22v18M10 40h28M24 22c-7-8-14-7-18-2 8 0 13 2 18 2Zm0 0c-1-10 4-15 11-16-1 8-5 13-11 16Zm0 0c6-8 14-8 18-3-8 0-13 3-18 3Zm0 0c-5-8-5-14 0-18 4 7 4 13 0 18Z' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.apetahi-menu > li.mega-menu > ul > li:nth-child(2) {
	--apetahi-column-icon: url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 48 48' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='24' cy='24' r='17' stroke='black' stroke-width='3'/%3E%3Cpath d='m30 14-4 13-10 7 4-13 10-7Z' stroke='black' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='M24 6v5M24 37v5M6 24h5M37 24h5' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

.apetahi-menu > li.mega-menu > ul > li:nth-child(3) {
	--apetahi-column-icon: url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 48 48' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 10h11c4 0 7 3 7 7v23c0-4-3-7-7-7H8V10Z' stroke='black' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='M40 10H29c-4 0-7 3-7 7v23c0-4 3-7 7-7h11V10Z' stroke='black' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='M14 18h6M14 25h6M28 18h6M28 25h6' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

.apetahi-menu > li.mega-menu > ul > li > ul {
	display: grid;
	gap: 7px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.apetahi-menu > li.mega-menu > ul > li > ul a {
	min-height: auto;
	padding: 11px 12px;
	border-radius: 12px;
	color: rgba(8, 35, 61, 0.84);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
}

.apetahi-menu > li.mega-menu > ul > li > ul a:hover {
	background: rgba(21, 151, 168, 0.09);
	color: var(--apetahi-turquoise);
	transform: translateX(3px);
}

.apetahi-mega-promo {
	min-height: 100%;
	padding: 0 !important;
}

.apetahi-mega-promo::after {
	display: none !important;
}

.apetahi-mega-promo-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 290px;
	overflow: hidden;
	padding: 24px;
	border-radius: 16px;
	background:
		linear-gradient(135deg, rgba(8, 35, 61, 0.82), rgba(21, 151, 168, 0.58)),
		var(--apetahi-promo-image) center/cover no-repeat;
	color: var(--apetahi-white);
}

.apetahi-mega-promo-kicker {
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.11em;
	opacity: 0.86;
}

.apetahi-mega-promo strong {
	display: block;
	margin-bottom: 10px;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.08;
}

.apetahi-mega-promo p {
	margin: 0 0 18px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 14px;
	line-height: 1.55;
}

.apetahi-mega-promo a {
	display: inline-flex !important;
	align-self: flex-start;
	min-height: auto !important;
	padding: 12px 17px !important;
	border-radius: 999px;
	background: var(--apetahi-white);
	color: var(--apetahi-navy) !important;
	font-size: 14px !important;
	font-weight: 800 !important;
	pointer-events: auto !important;
}

.apetahi-mega-promo a:hover {
	background: var(--apetahi-turquoise);
	color: var(--apetahi-white) !important;
	transform: translateY(-2px);
}

.apetahi-burger,
.apetahi-close,
.apetahi-mobile-top,
.apetahi-mobile-rating,
.apetahi-submenu-toggle {
	display: none;
}

@media (max-width: 980px) {
	body.apetahi-menu-open {
		overflow: hidden;
	}

	.apetahi-header-inner {
		min-height: 74px;
		padding: 0 20px;
	}

	.apetahi-burger {
		display: inline-flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		width: 44px;
		height: 44px;
		border: 0;
		border-radius: 999px;
		background: rgba(21, 151, 168, 0.1);
		cursor: pointer;
	}

	.apetahi-burger span {
		display: block;
		width: 20px;
		height: 2px;
		margin: 0 auto;
		border-radius: 999px;
		background: var(--apetahi-navy);
	}

	.apetahi-nav {
		position: fixed;
		inset: 0 0 0 auto;
		z-index: 10000;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		width: min(420px, 100vw);
		height: 100vh;
		padding: 22px;
		background: var(--apetahi-white);
		box-shadow: -28px 0 60px rgba(8, 35, 61, 0.18);
		opacity: 0;
		visibility: hidden;
		transform: translateX(100%);
		transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
		overflow-y: auto;
	}

	.apetahi-nav.is-open {
		opacity: 1;
		visibility: visible;
		transform: translateX(0);
	}

	.apetahi-mobile-top {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 22px;
	}

	.apetahi-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 42px;
		height: 42px;
		border: 0;
		border-radius: 999px;
		background: rgba(8, 35, 61, 0.07);
		color: var(--apetahi-navy);
		font-size: 30px;
		line-height: 1;
		cursor: pointer;
	}

	.apetahi-menu {
		display: block;
		width: 100%;
	}

	.apetahi-menu a {
		justify-content: space-between;
		width: 100%;
		min-height: 50px;
		padding: 13px 0;
		border-bottom: 1px solid rgba(8, 35, 61, 0.08);
		font-size: 17px;
	}

	.apetahi-menu > li.menu-item-has-children > a::after {
		display: none;
	}

	.apetahi-menu li.menu-cta > a {
		justify-content: center;
		margin: 22px 0 8px;
		padding: 16px 20px;
		border-bottom: 0;
		font-size: 16px;
	}

	.apetahi-menu li ul,
	.apetahi-menu > li.mega-menu > ul,
	.apetahi-menu > li:not(.mega-menu) > ul {
		position: static;
		display: none;
		width: 100%;
		min-width: 0;
		margin: 0;
		padding: 0 0 0 14px;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: none;
	}

	.apetahi-menu li.is-open > ul {
		display: block;
	}

	.apetahi-menu > li.mega-menu::after,
	.apetahi-menu > li.mega-menu > ul > li::after,
	.apetahi-mega-promo {
		display: none !important;
	}

	.apetahi-menu > li.mega-menu > ul > li {
		padding: 0;
	}

	.apetahi-menu > li.mega-menu > ul > li > a {
		padding: 13px 0;
		pointer-events: auto;
		font-size: 15px;
		letter-spacing: 0;
		text-transform: none;
	}

	.apetahi-menu > li.mega-menu > ul > li > a::before {
		width: 24px;
		height: 24px;
	}

	.apetahi-menu > li.mega-menu > ul > li > ul a,
	.apetahi-menu > li:not(.mega-menu) ul a {
		padding: 12px 0;
		border-radius: 0;
		font-size: 15px;
	}

	.apetahi-submenu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 auto;
		width: 36px;
		height: 36px;
		margin-left: 8px;
		border: 0;
		border-radius: 999px;
		background: rgba(21, 151, 168, 0.1);
		color: var(--apetahi-navy);
		cursor: pointer;
		transition: transform 0.2s ease, background-color 0.2s ease;
	}

	.apetahi-submenu-toggle::before {
		content: "";
		width: 8px;
		height: 8px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: translateY(-2px) rotate(45deg);
	}

	.apetahi-menu li.is-open > .apetahi-submenu-toggle {
		transform: rotate(180deg);
		background: rgba(21, 151, 168, 0.18);
	}

	.apetahi-mobile-rating {
		display: block;
		margin-top: 14px;
		padding: 14px 16px;
		border-radius: 14px;
		background: rgba(8, 35, 61, 0.05);
		color: var(--apetahi-navy);
		font-size: 14px;
		font-weight: 700;
		text-align: center;
	}
}
