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

/***-------------------------------------------*** Header ***-------------------------------------------***/
header { position: fixed; z-index: 1000; inset: 0 0 auto 0; display: flex; flex-direction: column; height: 150px; background: transparent; transition: var(--transition); }
body.scrolled header { background: var(--white); box-shadow: var(--box-shadow-header); }
.hContent { display: flex; width: 100%; }
#hContent1 { height: 30px; background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%); }
#hContent2 { height: 120px; }
header .cms_container_wide { position: relative; display: flex; padding: 0 30px; }
#hContent1 .cms_container_wide { align-items: center; }

/***-------------------------------------------*** Hamburger ***-------------------------------------------***/
header #hHamburger { cursor: pointer; position: absolute; top: 50%; right: 30px; transform: translateY(-50%); display: none; }
#hHamburgerIcon { position: relative; cursor: pointer; width: 40px; height: 14px; }
#hHamburgerIcon span { position: absolute; left: 0; display: block; width: 100%; height: 2px; background: var(--white); transform: rotate(0deg); transition: var(--transition); }
body.scrolled #hHamburgerIcon span { background: var(--primary); }
#hHamburgerIcon span:nth-child(1),
#hHamburgerIcon span:nth-child(2) { transform-origin: left center; }
#hHamburgerIcon span:nth-child(1) { top: 0px; }
#hHamburgerIcon span:nth-child(2) { top: 12px; }
body.navi #hHamburgerIcon span:nth-child(1) { top: -8px; left: 6px; transform: rotate(45deg); }
body.navi #hHamburgerIcon span:nth-child(2) { top: 20px; left: 6px; transform: rotate(-45deg); }

/***-------------------------------------------*** Close ***-------------------------------------------***/
header #hClose { cursor: pointer; position: absolute; z-index: 1; top: 30px; right: 30px; display: none; width: 39px; height: 39px; }
header #hClose > span { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(45deg); background: var(--white); }
header #hClose > span:first-of-type { width: 100%; height: 2px; }
header #hClose > span:last-of-type { width: 2px; height: 100%; }

/***-------------------------------------------*** Logo ***-------------------------------------------***/
header #hLogo { position: absolute; z-index: 1; top: 50%; left: 30px; transform: translateY(-50%); display: flex; }
header #hLogo > svg { width: 200px; height: auto; }
header #hLogo > svg > path { fill: var(--white); transition: var(--transition); }
body.scrolled header #hLogo > svg > path { fill: var(--primary); }
body.scrolled header .hPathHide { opacity: 0; visibility: hidden; }

/***-------------------------------------------*** Service Navigation ***-------------------------------------------***/
header #hService { display: flex; justify-content: flex-end; width: 100%; }
header #hService > ul { display: flex; align-items: center; gap: 51px; }
header #hService > ul > li { display: block; }
header #hService > ul > li > a { display: block; font-weight: 600; font-size: 13px; line-height: 16px; color: var(--white); transition: var(--transition); }
header #hService > ul > li.current > a,
header #hService > ul > li:hover > a { text-decoration: underline; }

/***-------------------------------------------*** Service Navigation Mobile ***-------------------------------------------***/
header .hSubLinkArrow { display: none; }
header #hFooterArt { display: none; }

/***-------------------------------------------*** Desktop ***-------------------------------------------***/
@media screen and (min-width: 1201px) {
	/* Start: First-Level */
	header #hNavigation { width: 100%; }
	header #hNavigation > ul { display: flex; justify-content: flex-end; align-items: center; gap: 60px; width: 100%; padding: 51px 0 0 230px; }
	header #hNavigation > ul > li { cursor: pointer; position: relative; display: flex; align-items: center; gap: 15px; padding: 0 0 46px 0; }
	header #hNavigation > ul > li > a { display: block; font-weight: 600; font-size: 18px; line-height: 18px; color: var(--white); white-space: nowrap; transition: var(--transition); }
	header #hNavigation > ul > li.current > a,
	header #hNavigation > ul > li:hover > a { color: var(--primary); }
	/* End: First-Level */

	/* Start: Toggler */
	header #hNavigation > ul > li > .toggler { display: block; width: 12px; height: 7px; }
	header #hNavigation > ul > li > .toggler > svg { display: block; width: 12px; height: 7px; will-change: transform; }
	header #hNavigation > ul > li > .toggler > svg > path { stroke: var(--primary); }
	header #hNavigation > ul > li:hover > .toggler > svg { transform: rotate(180deg); }
	/* End: Toggler */

	/* Start: Second-Level */
	header #hNavigation > ul > li > ul { position: absolute; top: 64px; left: 50%; transform: translateX(-50%); display: none; flex-direction: column; gap: 11px; min-width: 100%; padding: 25px 30px; background: var(--white); border-radius: var(--border-radius-submenue); box-shadow: var(--box-shadow-submenue); }
	header #hNavigation > ul > li:hover > ul { display: flex; }
	header .hSubArrow { position: absolute; z-index: 1; inset: 0; }
	header .hSubArrow:before { content: ""; position: absolute; z-index: 1; top: -13px; left: 50%; width: 25px; height: 25px; background: var(--white); box-shadow: var(--box-shadow-submenue); transform: translateX(-50%) rotate(45deg); }
	header .hSubArrow:after { content: ""; position: absolute; z-index: 2; inset: 0; background: var(--white); border-radius: var(--border-radius-submenue); }
	header #hNavigation > ul > li > ul > li { position: relative; z-index: 2; display: block; padding: 0 0 11px 0; border-bottom: 1px solid var(--hr-submenue); }
	header #hNavigation > ul > li > ul > li > a { display: block; font-weight: 600; font-size: 18px; line-height: 18px; color: var(--black); white-space: nowrap; transition: var(--transition); }
	header #hNavigation > ul > li > ul > li.current > a,
	header #hNavigation > ul > li > ul > li > a:hover { color: var(--primary); }
	/* End: Second-Level */

	/* Start: Scrolled */
	header,
	#hContent1,
	#hContent2,
	header #hLogo,
	header #hLogo > svg,
	header #hService,
	header #hNavigation > ul,
	header #hNavigation > ul > li > a { transition: var(--transition); }

	body.scrolled header { height: 85px; }
	body.scrolled #hContent1 { height: 5px; }
	body.scrolled #hContent2 { height: 80px; }
	body.scrolled header #hLogo { top: calc(50% + 7px); }
	body.scrolled header #hLogo > svg { width: 150px; }
	body.scrolled header #hService { opacity: 0; visibility: hidden; }
	body.scrolled header #hNavigation > ul { gap: 55px; padding: 31.5px 0 0 180px; }
	body.scrolled header #hNavigation > ul > li > a { color: var(--black); }
	/* End: Scrolled */
}

/***-------------------------------------------*** Tablet ***-------------------------------------------***/
@media screen and (min-width: 960px) and (max-width: 1200px) {
	/* Start: Header */
	#cmsgrid > div:first-of-type { padding-top: 130px; }
	header { height: 130px; }
	#hContent2 { height: 100px; }
	header #hHamburger { display: block; }
	header #hClose { display: block; }
	header #hLogo > svg { width: 180px; }
	/* End: Header */

	/* Start: Navigation */
	header #hNavigation { position: fixed; z-index: 1; top: 0; right: -100%; bottom: 0; display: flex; flex-direction: column; padding: 109px 30px 15px 30px; background: linear-gradient(0deg, var(--secondary) 0%, var(--primary) 100%); overflow-y: auto; transition: var(--transition); }
	body.navi header #hNavigation { right: 0; }
	/* End: Navigation */

	/* Start: First-Level */
	header #hNavigation > ul { display: flex; flex-direction: column; gap: 20px; }
	header #hNavigation > ul > li { position: relative; display: block; padding: 0 28px 20px 0; border-bottom: 1px solid rgba(255,255,255,0.3); }
	header #hNavigation > ul > li > a { display: block; font-weight: 600; font-size: 24px; line-height: 29px; color: var(--white); white-space: nowrap; transition: var(--transition); will-change: transform; }
	header #hNavigation > ul > li.current > a,
	header #hNavigation > ul > li:hover > a { transform: translateX(15px); }
	/* End: First-Level */

	/* Start: Toggler */
	header #hNavigation > ul > li > .toggler { cursor: pointer; position: absolute; top: 0; right: 0; display: flex; align-items: center; justify-content: flex-end; width: 28px; height: 29px; }
	header #hNavigation > ul > li > .toggler > svg { display: block; width: 13px; height: 7px; will-change: transform; }
	header #hNavigation > ul > li > .toggler > svg > path { stroke: var(--white); }
	header #hNavigation > ul > li.open > .toggler > svg { transform: rotate(180deg); }
	/* End: Toggler */

	/* Start: Second-Level */
	header #hNavigation > ul > li > ul { display: none; flex-direction: column; gap: 20px; width: 100%; padding: 25px 0 0 0; }
	header #hNavigation > ul > li.open > ul { display: flex; }
	header .hSubArrow { display: none; }
	header #hNavigation > ul > li > ul > li { display: block; }
	header #hNavigation > ul > li > ul > li > a { display: flex; align-items: center; gap: 20px; font-weight: 600; font-size: 20px; line-height: 24px; color: var(--white); white-space: nowrap; transition: var(--transition); will-change: transform; }
	header #hNavigation > ul > li > ul > li.current > a,
	header #hNavigation > ul > li > ul > li:hover > a { transform: translateX(15px); }
	header .hSubLinkArrow,
	header .hSubLinkArrow > svg { display: flex; width: 18px; height: 13px; }
	header .hSubLinkArrow > svg > path { stroke: var(--white); }
	/* End: Second-Level */

	/* Start: Header Footer Article */
	header #hFooterArt { display: flex; justify-content: flex-end; padding: 30px 0 0 0; margin: auto 0 0 0; }
	header #hFooterArt p { display: flex; flex-wrap: wrap; align-items: center; gap: 15px 37px; color: var(--white); }
	/* End: Header Footer Article */

	/* Start: Scrolled */
	header,
	#hContent1,
	#hContent2,
	header #hLogo,
	header #hLogo > svg,
	header #hService { transition: var(--transition); }

	body.scrolled header { height: 85px; }
	body.scrolled #hContent1 { height: 5px; }
	body.scrolled #hContent2 { height: 80px; }
	body.scrolled header #hLogo { top: calc(50% + 7px); }
	body.scrolled header #hLogo > svg { width: 150px; }
	body.scrolled header #hService { opacity: 0; visibility: hidden; }
	/* End: Scrolled */
}

/***-------------------------------------------*** Smartphone ***-------------------------------------------***/
@media screen and (max-width: 959px) {
	/* Start: Header */
	#cmsgrid > div:first-of-type { padding-top: 100px; }
	header { height: 100px; }
	#hContent2 { height: 70px; }
	header #hHamburger { display: block; }
	header #hClose { display: block; }
	header #hLogo > svg { width: 150px; }
	header #hService > ul { gap: 16px; }
	header #hService > ul > li > a {font-size: 10px; line-height: 12px; }
	/* End: Header */

	/* Start: Navigation */
	header #hNavigation { position: fixed; z-index: 1; top: 0; right: -100vW; bottom: 0; display: flex; flex-direction: column; width: 100vW; padding: 109px 30px 15px 30px; background: linear-gradient(0deg, var(--secondary) 0%, var(--primary) 100%); overflow-y: auto; transition: var(--transition); }
	body.navi header #hNavigation { right: 0; }
	/* End: Navigation */

	/* Start: First-Level */
	header #hNavigation > ul { display: flex; flex-direction: column; gap: 20px; }
	header #hNavigation > ul > li { position: relative; display: block; padding: 0 28px 20px 0; border-bottom: 1px solid rgba(255,255,255,0.3); }
	header #hNavigation > ul > li > a { display: block; font-weight: 600; font-size: 24px; line-height: 29px; color: var(--white); white-space: nowrap; transition: var(--transition); will-change: transform; }
	header #hNavigation > ul > li.current > a,
	header #hNavigation > ul > li:hover > a { transform: translateX(15px); }
	/* End: First-Level */

	/* Start: Toggler */
	header #hNavigation > ul > li > .toggler { cursor: pointer; position: absolute; top: 0; right: 0; display: flex; align-items: center; justify-content: flex-end; width: 28px; height: 29px; }
	header #hNavigation > ul > li > .toggler > svg { display: block; width: 13px; height: 7px; will-change: transform; }
	header #hNavigation > ul > li > .toggler > svg > path { stroke: var(--white); }
	header #hNavigation > ul > li.open > .toggler > svg { transform: rotate(180deg); }
	/* End: Toggler */

	/* Start: Second-Level */
	header #hNavigation > ul > li > ul { display: none; flex-direction: column; gap: 20px; width: 100%; padding: 25px 0 0 0; }
	header #hNavigation > ul > li.open > ul { display: flex; }
	header .hSubArrow { display: none; }
	header #hNavigation > ul > li > ul > li { display: block; }
	header #hNavigation > ul > li > ul > li > a { display: flex; align-items: center; gap: 20px; font-weight: 600; font-size: 20px; line-height: 24px; color: var(--white); white-space: nowrap; transition: var(--transition); will-change: transform; }
	header #hNavigation > ul > li > ul > li.current > a,
	header #hNavigation > ul > li > ul > li:hover > a { transform: translateX(15px); }
	header .hSubLinkArrow,
	header .hSubLinkArrow > svg { display: flex; width: 18px; height: 13px; }
	header .hSubLinkArrow > svg > path { stroke: var(--white); }
	/* End: Second-Level */

	/* Start: Header Footer Article */
	header #hFooterArt { display: flex; justify-content: flex-end; padding: 30px 0 0 0; margin: auto 0 0 0; }
	header #hFooterArt p { display: flex; flex-wrap: wrap; align-items: center; gap: 15px 37px; color: var(--white); }
	/* End: Header Footer Article */

	/* Start: Scrolled */
	header,
	#hContent1,
	#hContent2,
	header #hLogo,
	header #hLogo > svg,
	header #hService { transition: var(--transition); }

	body.scrolled header { height: 70px; }
	body.scrolled #hContent1 { height: 0; }
	body.scrolled #hContent2 { height: 70px; }
	body.scrolled header #hLogo { top: calc(50% + 4.5px); }
	body.scrolled header #hLogo > svg { width: 120px; }
	body.scrolled header #hService { opacity: 0; visibility: hidden; }
	/* End: Scrolled */
}