/*╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗*/
/*║ HEADER I                                                                                                                                                                                                                                              ║*/
/*╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝*/
/***-------------------------------------------*** Space for Header ***-------------------------------------------***/
#cmsgrid > div:first-of-type { padding-top: 140px; }

/***-------------------------------------------*** Header ***-------------------------------------------***/
header { position: fixed; z-index: 1000; inset: 0 0 auto 0; height: 140px; background: var(--white); transition: var(--transition); }
body.scrolled header { box-shadow: 0 4px 4px 0 rgba(0,0,0,0.25); }
header .cms_container_wide { position: relative; height: 140px; padding: 0 30px; }

/***-------------------------------------------*** Hamburger ***-------------------------------------------***/
header #hHamburger { position: absolute; top: 50%; right: 30px; transform: translateY(-50%); display: none; width: 30px; height: 23px; }
#nav-icon4 { cursor: pointer; position: relative; display: inline-block; width: 30px; height: 23px; transition: var(--transition); }
#nav-icon4 span { position: absolute; left: 0; display: block; width: 100%; height: 3px; background: var(--black); border-radius: 5px; opacity: 1; transform: rotate(0deg); transition: var(--transition); }
#nav-icon4 span:nth-child(1),
#nav-icon4 span:nth-child(2),
#nav-icon4 span:nth-child(3) { transform-origin: left center; }
#nav-icon4 span:nth-child(1) { top: 0px; }
#nav-icon4 span:nth-child(2) { top: 10px; }
#nav-icon4 span:nth-child(3) { top: 20px; }
body.navi #nav-icon4 span:nth-child(1) { top: -1px; left: 4px; transform: rotate(45deg); }
body.navi #nav-icon4 span:nth-child(2) { width: 0%; opacity: 0; }
body.navi #nav-icon4 span:nth-child(3) { top: 20px; left: 4px; transform: rotate(-45deg); }

/***-------------------------------------------*** Logo ***-------------------------------------------***/
body #logo_container { position: absolute; z-index: 1; top: 57px; left: 30px; width: 304px; height: 63px; }
body #logo_container > a { position: absolute; z-index: 2; inset: 0; background: center / contain no-repeat url("/pages/img/logo.svg"); }

/***-------------------------------------------*** Service Navigation ***-------------------------------------------***/
header #hService { display: flex; justify-content: flex-end; padding: 16px 0 0 0; }
header #hService > ul { display: flex; align-items: center; gap: 20px; }
header #hService > ul > li { display: block; }
header #hService > ul > li > a { display: block; font-family: "Onest", sans-serif; font-weight: 500; font-size: 18px; line-height: 23px; color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: transparent; transition: var(--transition); }
header #hService > ul > li.current > a,
header #hService > ul > li > a:hover { text-decoration-color: var(--black); }
header #hServiceMobile { display: none; }

/***-------------------------------------------*** Desktop ***-------------------------------------------***/
@media screen and (min-width: 1201px) {
	header #hNavigation > ul { display: flex; justify-content: flex-end; align-items: center; gap: 30px; width: 100%; padding: 44px 0 0 334px; }
	header #hNavigation > ul > li { position: relative; display: block; padding: 0 0 31px 0; }
	header #hNavigation > ul > li > a { display: block; font-family: "Onest", sans-serif; font-weight: 400; font-size: 20px; line-height: 26px; color: var(--black); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: transparent; transition: var(--transition); }
	header #hNavigation > ul > li.current > a,
	header #hNavigation > ul > li:hover > a { text-decoration-color: var(--primary); }
	header #hNavigation > ul > li > .toggler { display: none; }
	header #hNavigation > ul > li > ul { display: none; flex-direction: column; position: absolute; left: 0; top: 57px; min-width: 100%; background: var(--white); box-shadow: 0 4px 4px 0 rgba(0,0,0,0.25); }
	header #hNavigation > ul > li:hover > ul { display: flex; }
	header #hNavigation > ul > li > ul > li { display: block; }
	header #hNavigation > ul > li > ul > li > a { display: block; font-family: "Onest", sans-serif; font-weight: 400; font-size: 20px; line-height: 26px; color: var(--black); padding: 9px 29px; transition: var(--transition); }
	header #hNavigation > ul > li > ul > li.current > a,
	header #hNavigation > ul > li > ul > li:hover > a { background: var(--secondary-100); }

	/* Start: Scrolled */
	header,
	header .cms_container_wide,
	body #logo_container,
	header #hNavigation > ul,
	header #hNavigation > ul > li,
	header #hNavigation > ul > li > ul { transition: var(--transition); }

	body.scrolled header { height: 108px; }
	body.scrolled header .cms_container_wide { height: 108px; }
	body.scrolled #logo_container { top: 33px; }
	body.scrolled header #hNavigation > ul { padding: 20px 0 0 334px; }
	body.scrolled header #hNavigation > ul > li { padding: 0 0 23px 0; }
	body.scrolled header #hNavigation > ul > li > ul { top: 49px; }
	/* End: Scrolled */
}

/***-------------------------------------------*** Tablet ***-------------------------------------------***/
@media screen and (min-width: 960px) and (max-width: 1200px) {
	header #hHamburger { display: block; top: 86px; transform: none; }
	header #hNavigation { position: fixed; top: 140px; right: -100%; bottom: 0; overflow-y: auto; transition: var(--transition); }
	body.navi header #hNavigation { right: 0; }
	header #hNavigation > ul { display: flex; flex-direction: column; gap: 7px; padding: 15px 20px; background: var(--white); border: 1px solid var(--secondary-100); }
	header #hNavigation > ul > li { position: relative; display: block; }
	header #hNavigation > ul > li > a { display: block; font-family: "Onest", sans-serif; font-weight: 400; font-size: 25px; line-height: 29px; color: var(--black); padding: 20px 15px; background: var(--secondary-100); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; text-decoration-color: transparent; transition: var(--transition); }
	header #hNavigation > ul > li > a:has(+ .toggler) { padding: 20px 55px 20px 15px; }
	header #hNavigation > ul > li.current > a,
	header #hNavigation > ul > li:hover > a { text-decoration-color: var(--primary); }
	header #hNavigation > ul > li > .toggler { cursor: pointer; position: absolute; z-index: 1; top: 28px; right: 15px; width: 25px; height: 13px; }
	header #hNavigation > ul > li > .toggler > svg { display: flex; width: 25px; height: 13px; }
	header #hNavigation > ul > li.open > .toggler > svg { transform: rotate(180deg); }
	header #hNavigation > ul > li > ul { display: none; flex-direction: column; gap: 28px; padding: 28px 15px 21px 15px; }
	header #hNavigation > ul > li.open > ul { display: flex; }
	header #hNavigation > ul > li > ul > li { display: block; }
	header #hNavigation > ul > li > ul > li > a { display: block; font-family: "Onest", sans-serif; font-weight: 400; font-size: 25px; line-height: 28px; color: var(--black); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; text-decoration-color: transparent; transition: var(--transition); }
	header #hNavigation > ul > li > ul > li.current > a,
	header #hNavigation > ul > li > ul > li:hover > a { text-decoration-color: var(--primary); }

	/* Start: Scrolled */
	header,
	header .cms_container_wide,
	body #logo_container,
	header #hHamburger,
	header #hNavigation { transition: var(--transition); }

	body.scrolled header { height: 108px; }
	body.scrolled header .cms_container_wide { height: 108px; }
	body.scrolled #logo_container { top: 33px; }
	body.scrolled header #hHamburger { top: 69px; }
	body.scrolled header #hNavigation { top: 108px; }
	/* End: Scrolled */
}

/***-------------------------------------------*** Smartphone ***-------------------------------------------***/
@media screen and (max-width: 959px) {
	#cmsgrid > div:first-of-type { padding-top: 80px; }
	header { height: 80px; }
	header .cms_container_wide { height: 80px; }
	header #hHamburger { display: block; }
	body #logo_container { top: 50%; transform: translateY(-50%); width: 200px; height: 41px; }
	header #hService { display: none; }
	header #hNavigation { position: fixed; top: 80px; right: -100vW; bottom: 0; width: 100vW; overflow-y: auto; background: var(--white); transition: var(--transition); }
	body.navi header #hNavigation { right: 0; }
	header #hNavigation > ul { display: flex; flex-direction: column; gap: 7px; padding: 15px 20px; }
	header #hNavigation > ul > li { position: relative; display: block; }
	header #hNavigation > ul > li > a { display: block; font-family: "Onest", sans-serif; font-weight: 400; font-size: 25px; line-height: 29px; color: var(--black); padding: 20px 15px; background: var(--secondary-100); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; text-decoration-color: transparent; transition: var(--transition); }
	header #hNavigation > ul > li > a:has(+ .toggler) { padding: 20px 55px 20px 15px; }
	header #hNavigation > ul > li.current > a,
	header #hNavigation > ul > li:hover > a { text-decoration-color: var(--primary); }
	header #hNavigation > ul > li > .toggler { cursor: pointer; position: absolute; z-index: 1; top: 28px; right: 15px; width: 25px; height: 13px; }
	header #hNavigation > ul > li > .toggler > svg { display: flex; width: 25px; height: 13px; }
	header #hNavigation > ul > li.open > .toggler > svg { transform: rotate(180deg); }
	header #hNavigation > ul > li > ul { display: none; flex-direction: column; gap: 28px; padding: 28px 15px 21px 15px; }
	header #hNavigation > ul > li.open > ul { display: flex; }
	header #hNavigation > ul > li > ul > li { display: block; }
	header #hNavigation > ul > li > ul > li > a { display: block; font-family: "Onest", sans-serif; font-weight: 400; font-size: 25px; line-height: 28px; color: var(--black); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; text-decoration-color: transparent; transition: var(--transition); }
	header #hNavigation > ul > li > ul > li.current > a,
	header #hNavigation > ul > li > ul > li:hover > a { text-decoration-color: var(--primary); }
	header #hServiceMobile { display: block; width: 100%; padding: 15px 20px 30px 20px; }
	header #hServiceMobile > ul { display: flex; flex-direction: column; gap: 7px; width: 100%; }
	header #hServiceMobile > ul > li { display: block; }
	header #hServiceMobile > ul > li > a { display: block; font-family: "Onest", sans-serif; font-weight: 500; font-size: 20px; line-height: 24px; color: var(--black); background: var(--tertiary); padding: 7px 15px; transition: var(--transition); }
	header #hServiceMobile > ul > li.current > a,
	header #hServiceMobile > ul > li > a:hover { background: var(--secondary-100); }

	/* Start: Scrolled */
	header,
	header .cms_container_wide,
	body #logo_container,
	header #hNavigation { transition: var(--transition); }

	body.scrolled header { height: 60px; }
	body.scrolled header .cms_container_wide { height: 60px; }
	body.scrolled #logo_container { width: 166px; height: 34px; }
	body.scrolled header #hNavigation { top: 60px; }
	/* End: Scrolled */
}