/* =========================================================
   Avanta — new header + hero (brand colors)
   #0D5FA4 / #428ADC / #FED202 / #2A3133
   ========================================================= */

:root {
	--av-blue: #0D5FA4;
	--av-blue-2: #428ADC;
	--av-yellow: #FED202;
	--av-ink: #2A3133;
	--av-ice: #E8F3FC;
	--av-ice-2: #F3F9FE;
	--av-header-h: 78px;
}

/* ---- Site chrome: white header surface ---- */
body {
	background: #fff !important;
	background-image: none !important;
}

#header.av-header {
	background: #54cbfd;
	border-bottom: 1px solid rgba(13, 95, 164, 0.08);
	padding: 12px 0;
	position: relative;
	z-index: 200;
}

#header.av-header .av-header__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	max-width: 1170px;
	margin: 0 auto;
	padding: 0 15px;
}

#header.av-header .logo {
	flex: 0 0 auto;
	min-width: 150px;
}

#header.av-header .logo a {
	display: block;
	border: none;
	line-height: 0;
}

#header.av-header .logo img {
	display: block;
	width: 168px;
	height: auto;
	max-width: 100%;
	object-fit: contain;
}

#header.av-header .av-header__nav {
	flex: 1 1 auto;
	min-width: 0;
}

#header.av-header #nav.av-header__menu {
	display: block;
	position: static;
	height: auto;
	padding: 0;
	background: transparent;
	box-shadow: none;
	border: none;
	overflow: visible;
	text-align: center;
}

#header.av-header #nav.av-header__menu > ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 2px 4px;
	margin: 0;
	padding: 0;
	max-width: none;
	width: auto;
}

#header.av-header #nav.av-header__menu > ul > li {
	display: block;
	margin: 0;
}

#header.av-header #nav.av-header__menu > ul > li > a {
	color: #3a4650 !important;
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	text-transform: none;
	font-size: 14px;
	font-weight: 500;
	padding: 8px 10px;
	text-shadow: none;
	box-shadow: none;
}

#header.av-header #nav.av-header__menu > ul > li > a:hover,
#header.av-header #nav.av-header__menu > ul > li.current-menu-item > a,
#header.av-header #nav.av-header__menu > ul > li.current-menu-parent > a {
	color: var(--av-blue) !important;
	background: transparent !important;
}

#header.av-header .callback.av-header__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	flex: 0 0 auto;
	text-align: right;
}

#header.av-header .callback .phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--av-blue) !important;
	text-shadow: none;
	font-size: 16px;
	font-weight: 700;
	margin: 0;
	padding: 0;
	border: none;
	white-space: nowrap;
}

#header.av-header .callback .phone::before {
	content: "";
    width: 18px;
    height: 22px;
    flex: 0 0 22px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' fill='%230d5fa4' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
	    background-color: #54cbfd;
}

#header.av-header .callback .btn,
#header.av-header .av-header__call {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 16px;
	border-radius: 8px;
	background: var(--av-yellow) !important;
	background-image: none !important;
	color: #151515 !important;
	font-size: 14px;
	font-weight: 600;
	text-shadow: none;
	box-shadow: none;
	white-space: nowrap;
}

#header.av-header .callback .btn:hover,
#header.av-header .av-header__call:hover {
	background: var(--av-blue) !important;
	color: #fff !important;
}

#header.av-header .av-header__max {
	display: inline-flex;
	line-height: 0;
	border: none;
	flex: 0 0 auto;
}

#header.av-header .av-header__max svg {
	width: 18px;
	height: 18px;
}

#header.av-header .burger-menu {
	display: none;
}

#header.av-header .burger-menu label {
	display: block;
	width: 28px;
	cursor: pointer;
}

#header.av-header .burger-menu label span {
	display: block;
	width: 100%;
	height: 2.5px;
	margin: 0 0 6px;
	border-radius: 4px;
	background: var(--av-blue) !important;
	box-shadow: none !important;
}

#header.av-header .burger-menu label span:last-child {
	margin-bottom: 0;
}

/* ---- Hero ---- */
.av-hero {
	position: relative;
	max-width: 1170px;
	margin: 0 auto 24px;
	border-radius: 0 0 28px 28px;
	overflow: hidden;
	background: var(--av-ice-2);
	box-shadow: 0 10px 28px rgba(13, 95, 164, 0.12);
	/* fixed desktop height — no jump between slides */
	--av-hero-h: 520px;
}

.av-hero__viewport {
	position: relative;
	height: var(--av-hero-h);
	overflow: hidden;
}

.av-hero__slide {
	position: absolute;
	inset: 0;
	height: 100%;
	display: block !important; /* override [hidden] so slides can animate */
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateX(36px);
	transition:
		opacity .55s cubic-bezier(.22, .61, .36, 1),
		transform .55s cubic-bezier(.22, .61, .36, 1),
		visibility .55s;
	z-index: 1;
}

.av-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(0);
	z-index: 2;
}

.av-hero__slide.is-exit-left {
	opacity: 0;
	transform: translateX(-36px);
	z-index: 2;
}

.av-hero__slide.is-exit-right {
	opacity: 0;
	transform: translateX(36px);
	z-index: 2;
}

.av-hero__slide.is-enter-left {
	transform: translateX(-36px);
}

.av-hero__slide.is-enter-right {
	transform: translateX(36px);
}

.av-hero__inner {
	display: grid;
	grid-template-columns: minmax(320px, 44%) 1fr;
	height: 100%;
	position: relative;
}

.av-hero__content {
	position: relative;
	z-index: 3;
	padding: 42px 36px 88px 40px;
	height: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	/* overlap into media; soft fade into photo — no hard seam */
	margin-right: -140px;
	padding-right: 160px;
	background:
	radial-gradient(ellipse at 10% 90%, rgba(66, 138, 220, 0.16), transparent 55%),
  linear-gradient(
   90deg,
   #EFF7FF 0%,
    #E8F3FC 78%,
   rgba(232, 243, 252, 0.94) 80%,
   rgba(232, 243, 252, 0.72) 74%,
   rgba(232, 243, 252, 0.4) 84%,
   rgba(232, 243, 252, 0.14) 92%,
   rgba(232, 243, 252, 0) 100%
  )
}

.av-hero__content::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		repeating-linear-gradient(
			-12deg,
			transparent,
			transparent 34px,
			rgba(255, 255, 255, 0.28) 34px,
			rgba(255, 255, 255, 0.28) 36px
		);
	opacity: 0.55;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(90deg, #000 0%, #000 58%, transparent 92%);
	mask-image: linear-gradient(90deg, #000 0%, #000 58%, transparent 92%);
}

.av-hero__content > * {
	position: relative;
	z-index: 1;
}

.av-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 18px;
	padding: 8px 14px 8px 10px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: var(--av-blue);
}

.av-hero__badge--soft {
	background: rgba(255, 255, 255, 0.85);
	box-shadow: 0 2px 10px rgba(13, 95, 164, 0.08);
}

.av-hero__badge--pill {
	background: #FFF4B8;
	color: var(--av-ink);
}

.av-hero__badge-icon {
	display: inline-flex;
	width: 22px;
	height: 22px;
	color: #E0A800;
}

.av-hero__badge-icon svg {
	width: 100%;
	height: 100%;
}

.av-hero__title {
	margin: 0 0 14px;
	font-size: 34px;
	line-height: 1.15;
	max-width: 18ch;
}

.av-hero__subtitle {
	margin: 0 0 22px;
	color: #2A3B4D !important;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.45;
	max-width: 34ch;
}

.av-hero__features {
	list-style: none;
	margin: 0 0 26px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.av-hero__feature {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #1E2F40;
	font-size: 15px;
	font-weight: 500;
	width: fit-content;
}

.av-hero__feature.is-highlight {
	background: #FFF4B8;
	border-radius: 999px;
	padding: 8px 14px 8px 8px;
}

.av-hero__feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	border-radius: 50%;
	border: 1.5px solid rgba(13, 95, 164, 0.35);
	background: rgba(255, 255, 255, 0.65);
	color: var(--av-blue);
}

.av-hero__feature-icon svg {
	width: 18px;
	height: 18px;
}

.av-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	max-width: 100%;
	min-height: 48px;
	padding: 12px 22px;
	border-radius: 10px;
	border: none !important;
	background: var(--av-yellow) !important;
	background-image: none !important;
	color: #151515 !important;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: 0 6px 16px rgba(42, 49, 51, 0.10);
	transition: transform .15s ease, box-shadow .15s ease;
}

.av-hero__btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(42, 49, 51, 0.14);
	color: #000 !important;
}

.av-hero__media {
	position: relative;
	overflow: hidden;
	background: #d9e8f6;
	height: 100%;
	min-height: 0;
	z-index: 1;
}

.av-hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transform: scale(1.02);
	transition: transform 6.5s ease;
}

.av-hero__slide.is-active .av-hero__image {
	transform: scale(1);
}

.av-hero__edge {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: min(58%, 460px);
	z-index: 2;
	pointer-events: none;
	/* same ice-blue as content — no white stripe */
	background: linear-gradient(
		90deg,
		rgba(232, 243, 252, 0.98) 0%,
		rgba(232, 243, 252, 0.82) 16%,
		rgba(232, 243, 252, 0.55) 36%,
		rgba(232, 243, 252, 0.28) 56%,
		rgba(232, 243, 252, 0.1) 74%,
		rgba(232, 243, 252, 0.03) 88%,
		rgba(232, 243, 252, 0) 100%
	);
}

.av-hero__promo-badge {
	position: absolute;
	top: 48px;
	right: 48px;
	z-index: 3;
	width: 168px;
	height: 168px;
	border-radius: 50%;
	background: var(--av-yellow);
	box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 16px;
	color: #13253A;
	font-weight: 800;
	line-height: 1.15;
	text-transform: uppercase;
	font-size: 15px;
}

.av-hero__promo-badge-inner {
	max-width: 9ch;
}

.av-hero__controls {
	position: absolute;
	left: 40px;
	right: 40px;
	bottom: 22px;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 18px;
}

.av-hero__arrows {
	display: flex;
	gap: 8px;
}

.av-hero__arrow {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1.5px solid rgba(66, 138, 220, 0.55);
	background: #fff;
	color: var(--av-blue);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	cursor: pointer;
}

.av-hero__arrow svg {
	width: 16px;
	height: 16px;
}

.av-hero__arrow:hover {
	background: var(--av-blue);
	border-color: var(--av-blue);
	color: #fff;
}

.av-hero__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	align-items: center;
}

.av-hero__tab {
	appearance: none;
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	padding: 4px 0;
	color: #6b7785;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.av-hero__tab.is-active {
	color: var(--av-blue);
	border-bottom-color: var(--av-blue);
	font-weight: 700;
}

.av-hero__tab:hover {
	color: var(--av-blue);
}

/* Layout tweaks */
.av-hero__slide--types .av-hero__title {
	max-width: 16ch;
}

.av-hero__slide--cost .av-hero__title {
	font-size: 30px;
	max-width: 16ch;
}

.av-hero__slide--promo .av-hero__title {
	max-width: 14ch;
	font-size: 36px;
}

/* Hide legacy slider styles when new hero is present */
#page > .av-hero + .container {
	border-top-left-radius: 28px;
	border-top-right-radius: 28px;
}

/* ========== Mobile ========== */
@media (max-width: 980px) {
	#header.av-header .av-header__nav {
		display: block;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		width: 100%;
		z-index: 220;
	}

	#header.av-header .burger-menu {
		display: block;
		order: 0;
		justify-self: end;
	}

	#header.av-header .av-header__row {
		display: grid;
		grid-template-columns: 1fr auto 40px;
		align-items: center;
		gap: 10px;
		position: relative;
	}

	#header.av-header .logo {
		justify-self: start;
		min-width: 0;
	}

	#header.av-header .logo img {
		width: 140px;
		margin: 0;
	}

	#header.av-header .av-header__actions {
		justify-self: end;
	}

	#header.av-header .callback .phone {
		font-size: 0;
		gap: 0;
		width: 36px;
		height: 36px;
		justify-content: center;
	}

	#header.av-header .callback .phone::before {
		width: 22px;
		height: 22px;
	}

	#header.av-header .callback .btn,
	#header.av-header .av-header__call {
		min-height: 34px;
		padding: 6px 10px;
		font-size: 12px;
	}

	/* Mobile menu: blue panel, white text */
	#header.av-header #nav.av-header__menu {
		display: block;
		position: static;
		height: 0;
		overflow: hidden;
		background: var(--av-blue) !important;
		box-shadow: 0 12px 24px rgba(13, 95, 164, 0.28);
		transition: height .2s ease;
		text-align: left;
	}

	#nav-toggle:checked ~ #header.av-header #nav.av-header__menu,
	#nav-toggle:checked ~ #header.av-header .av-header__nav #nav.av-header__menu {
		height: auto;
		max-height: 80vh;
		overflow: auto;
		padding: 10px 0 16px;
		display: block;
	}

	#header.av-header #nav.av-header__menu > ul {
		display: block;
		padding: 0 12px;
	}

	#header.av-header #nav.av-header__menu > ul > li {
		display: block;
		border-bottom: 1px solid rgba(255, 255, 255, 0.18);
	}

	#header.av-header #nav.av-header__menu a,
	#header.av-header #nav.av-header__menu > ul > li > a,
	#header.av-header #nav.av-header__menu .sub-menu a {
		display: block;
		padding: 12px 8px;
		font-size: 15px;
		color: #fff !important;
		background: transparent !important;
	}

	#header.av-header #nav.av-header__menu a:hover,
	#header.av-header #nav.av-header__menu > ul > li.current-menu-item > a,
	#header.av-header #nav.av-header__menu > ul > li.current-menu-parent > a {
		color: #fff !important;
		background: rgba(255, 255, 255, 0.12) !important;
	}

	#header.av-header #nav.av-header__menu .sub-menu {
		background: transparent !important;
		box-shadow: none !important;
		padding-left: 12px;
	}

	.av-hero {
		border-radius: 0;
		margin-bottom: 0;
		box-shadow: none;
	}

	.av-hero {
		--av-hero-h: auto;
	}

	.av-hero__viewport {
		height: auto;
		min-height: 0;
	}

	.av-hero__slide {
		position: relative;
		inset: auto;
		height: auto;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: none;
		display: none !important;
		transition: opacity .4s ease;
	}

	.av-hero__slide.is-active {
		display: block !important;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: none;
	}

	.av-hero__inner {
		display: flex;
		flex-direction: column;
		height: auto;
		min-height: 0;
	}

	.av-hero__content {
		padding: 28px 20px 20px;
		order: 1;
		height: auto;
		justify-content: flex-start;
		margin-right: 0;
		padding-right: 20px;
		background:
			radial-gradient(ellipse at 10% 90%, rgba(66, 138, 220, 0.18), transparent 55%),
			linear-gradient(180deg, #EFF7FF 0%, #E8F3FC 55%, #E4F1FC 100%);
	}

	.av-hero__media {
		order: 2;
		min-height: 260px;
		height: 260px;
	}

	.av-hero__edge {
		left: 0;
		right: 0;
		top: 0;
		bottom: auto;
		width: 100%;
		height: 140px;
		background: linear-gradient(
			180deg,
			rgba(232, 243, 252, 0.98) 0%,
			rgba(232, 243, 252, 0.7) 28%,
			rgba(232, 243, 252, 0.35) 55%,
			rgba(232, 243, 252, 0.1) 78%,
			rgba(232, 243, 252, 0) 100%
		);
	}

	.av-hero__title {
		font-size: 28px;
		max-width: none;
	}

	.av-hero__slide--promo .av-hero__title,
	.av-hero__slide--cost .av-hero__title {
		font-size: 26px;
	}

	.av-hero__controls {
		position: relative;
		left: auto;
		right: auto;
		bottom: auto;
		padding: 14px 16px 18px;
		background: #EAF4FC;
		flex-wrap: wrap;
	}

	.av-hero__promo-badge {
		width: 120px;
		height: 120px;
		top: 24px;
		right: 18px;
		font-size: 12px;
	}

	.av-hero__tabs {
		width: 100%;
		gap: 10px 14px;
	}
}

/* Toggle support without :has for older browsers */
#nav-toggle:checked ~ .av-header-shell #nav.av-header__menu {
	height: auto;
	max-height: 80vh;
	overflow: auto;
	padding: 10px 0 16px;
}

@media (min-width: 981px) {
	#header.av-header #nav.av-header__menu > ul > li {
		position: relative;
	}

	/* Level 2 — under top item */
	#header.av-header #nav.av-header__menu > ul > li > .sub-menu,
	#header.av-header #nav.av-header__menu > ul > li > ul {
		top: 100%;
		left: 0;
		right: auto;
		background: #fff !important;
		background-image: none !important;
		box-shadow: 0 10px 24px rgba(13, 95, 164, 0.15);
		border-radius: 10px;
		padding: 8px 0;
		min-width: 220px;
		z-index: 80;
	}

	#header.av-header #nav.av-header__menu > ul > li > .sub-menu > li,
	#header.av-header #nav.av-header__menu > ul > li > ul > li {
		position: relative;
	}

	/* Level 3+ — to the right of parent .sub-menu, no overlap */
	#header.av-header #nav.av-header__menu .sub-menu .sub-menu,
	#header.av-header #nav.av-header__menu > ul > li > ul ul,
	#header.av-header #nav.av-header__menu ul ul ul {
		top: -8px !important;
		left: calc(100% + 6px) !important;
		right: auto !important;
		margin: 0;
		background: #fff !important;
		background-image: none !important;
		box-shadow: 0 10px 24px rgba(13, 95, 164, 0.15);
		border-radius: 10px;
		padding: 8px 0;
		min-width: 220px;
		z-index: 90;
	}

	/* Keep deep menus inside viewport for last header items */
	#header.av-header #nav.av-header__menu > ul > li:nth-last-child(-n+2) > .sub-menu .sub-menu,
	#header.av-header #nav.av-header__menu > ul > li:nth-last-child(-n+2) > ul ul {
		left: auto !important;
		right: calc(100% + 6px) !important;
	}

	#header.av-header #nav.av-header__menu .sub-menu a,
	#header.av-header #nav.av-header__menu > ul > li > ul li a,
	#header.av-header #nav.av-header__menu ul ul a {
		color: var(--av-ink) !important;
		background: transparent !important;
		text-transform: none;
		padding: 10px 16px;
		font-size: 14px;
		position: relative;
	}

	#header.av-header #nav.av-header__menu .sub-menu .menu-item-has-children > a {
		padding-right: 34px;
	}

	#header.av-header #nav.av-header__menu .sub-menu .menu-item-has-children > a::after {
		content: '';
		position: absolute;
		top: 50%;
		right: 14px;
		width: 6px;
		height: 6px;
		border-top: 2px solid currentColor;
		border-right: 2px solid currentColor;
		transform: translateY(-50%) rotate(45deg);
		opacity: .75;
	}

	#header.av-header #nav.av-header__menu > ul > li:nth-last-child(-n+2) > .sub-menu .menu-item-has-children > a::after {
		right: auto;
		left: 14px;
		transform: translateY(-50%) rotate(-135deg);
	}

	#header.av-header #nav.av-header__menu .sub-menu a:hover,
	#header.av-header #nav.av-header__menu > ul > li > ul li a:hover,
	#header.av-header #nav.av-header__menu ul ul a:hover {
		background: #EAF4FC !important;
		color: var(--av-blue) !important;
	}
}

/* Quick icons row under page H1 */
#page #wrap #content .av-content-icons {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px 14px;
	margin: 0 0 22px;
	padding: 0;
}

#page #wrap #content .av-content-icons .icon {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	width: auto;
	min-width: 0;
	flex: 1 1 180px;
	max-width: 100%;
	padding: 10px 14px;
	border: 1px solid rgba(13, 95, 164, 0.12);
	border-radius: 10px;
	background: #F3F9FE;
	box-shadow: none;
	text-decoration: none !important;
	transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

#page #wrap #content .av-content-icons .icon picture {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	margin: 0;
	background: url(../img/icon-bg.png) center / contain no-repeat;
	border-radius: 5px;
	line-height: 1;
}

#page #wrap #content .av-content-icons .icon picture img {
	width: 24px;
	height: auto;
	max-width: 24px;
}

#page #wrap #content .av-content-icons .icon p {
	display: block;
	margin: 0;
	color: #0D5FA4;
	font-size: 15px;
	line-height: 1.25;
}

#page #wrap #content .av-content-icons .icon:hover {
	background: #E4F1FC;
	border-color: rgba(13, 95, 164, 0.28);
	transform: translateY(-1px);
}

#page #wrap #content .av-content-icons .icon:hover p {
	color: #0a4a80;
}

@media (max-width: 640px) {
	#page #wrap #content .av-content-icons .icon {
		flex: 1 1 100%;
	}
}

