:root {
	--header-h: 56px;
}

@media (min-width: 768px) {
	:root {
		--header-h: 76px;
	}
}

@media (min-width: 1024px) {
	:root {
		--header-h: 80px;
	}
}

.header {
	--header-bg: var(--c-surface);
	--header-fg: var(--c-ink);

	position: sticky;
	top: 0;
	z-index: var(--z-header);
	color: var(--header-fg);
	background-color: var(--header-bg);
	border-bottom: 1px solid transparent;
	transition:
		background-color var(--dur-base) var(--ease-out),
		border-color var(--dur-base) var(--ease-out),
		box-shadow var(--dur-base) var(--ease-out),
		transform var(--dur-base) var(--ease-out);
}

.header.is-scrolled {
	border-bottom-color: var(--c-line);
	box-shadow: var(--shadow-md);
}

.header.is-hidden {
	transform: translateY(-100%);
}

.header.is-open,
.header.is-open.is-hidden {
	transform: none;
}

.header__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: var(--header-h);
}

@media (min-width: 1024px) {
	.header__inner {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		gap: 24px;
	}

	.header__actions {
		justify-self: end;
	}
}

@media (min-width: 1280px) {
	.header__inner {
		gap: 32px;
	}
}

.header__brand {
	display: flex;
	align-items: center;
	flex: none;
}

.header__brand .custom-logo-link,
.header__brand .logo-fallback {
	display: inline-flex;
	align-items: center;
	transition:
		opacity var(--dur-base) var(--ease-out),
		transform var(--dur-base) var(--ease-out);
}

.header__brand .custom-logo-link:hover,
.header__brand .logo-fallback:hover {
	opacity: 0.78;
}

.header__brand .custom-logo-link:active,
.header__brand .logo-fallback:active {
	transform: scale(0.98);
}

.header__brand .custom-logo {
	display: block;
	width: auto;
	height: clamp(24px,2.5vw,34px);
	max-width: 180px;
	object-fit: contain;
	filter: brightness(0.5);
}

@media (min-width: 768px) {
	.header__brand .custom-logo {
		height: 40px;
		max-width: 220px;
	}
}

@media (min-width: 1024px) {
	.header__brand .custom-logo {
		height: 42px;
		max-width: 260px;
	}
}

.logo-fallback {
	font-family: var(--font-display);
	font-size: 1.125rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--header-fg, currentColor);
}

@media (min-width: 1024px) {
	.logo-fallback {
		font-size: 1.375rem;
	}
}

.header__nav {
	display: none;
}

@media (min-width: 1024px) {
	.header__nav {
		display: block;
		flex: 1 1 auto;
		min-width: 0;
	}
}

.header__menu {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2px;
	padding: 0;
	margin: 0;
	list-style: none;
}

@media (min-width: 1200px) {
	.header__menu {
		gap: 10px;
	}
}

.header__menu > li {
	position: relative;
	display: flex;
	align-items: center;
}

.header__menu > li > a {
	position: relative;
	display: block;
	padding: 10px 12px;
	font-family: var(--font-display);
	font-size: var(--fs-nav);
	font-weight: 700;
	line-height: 1;
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--header-fg);
	border-radius: var(--radius-sm);
	transition: color var(--dur-base) var(--ease-out);
}

@media (min-width: 1200px) {
	.header__menu > li > a {
		padding: 10px 16px;
	}
}

.header__menu > li > a:hover {
	color: var(--c-accent-active);
}

.header__menu > li > a::after {
	content: "";
	position: absolute;
	bottom: -4px;
	left: 50%;
	width: 5px;
	height: 5px;
	background-color: var(--c-accent);
	border-radius: 50%;
	opacity: 0;
	transform: translate(-50%, 4px) scale(0.4);
	transition:
		opacity var(--dur-base) var(--ease-out),
		transform var(--dur-base) var(--ease-spring);
}

.header__menu > li:hover > a::after {
	opacity: 0.45;
	transform: translate(-50%, 0) scale(1);
}

.header__menu > li.current-menu-item > a::after,
.header__menu > li.current-menu-ancestor > a::after,
.header__menu > li.current_page_item > a::after,
.header__menu > li.current_page_ancestor > a::after {
	opacity: 1;
	transform: translate(-50%, 0) scale(1);
}

.header__nav .sub-menu {
	position: absolute;
	top: calc(100% + 14px);
	left: 50%;
	z-index: 20;
	min-width: 232px;
	padding: 8px;
	margin: 0;
	list-style: none;
	text-align: left;
	background-color: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, -8px);
	transition:
		opacity var(--dur-base) var(--ease-out),
		transform var(--dur-base) var(--ease-out),
		visibility var(--dur-base) linear;
}

.header__nav .menu-item-has-children::before {
	content: "";
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	height: 16px;
}

.header__nav .menu-item-has-children:hover > .sub-menu,
.header__nav .menu-item-has-children:focus-within > .sub-menu,
.header__nav .menu-item-has-children.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.header__nav .sub-menu li {
	display: block;
}

.header__nav .sub-menu a {
	display: block;
	padding: 10px 12px;
	font-size: var(--fs-sm);
	font-weight: 600;
	line-height: 1.3;
	color: var(--c-ink-70);
	border-radius: var(--radius-sm);
	transition:
		color var(--dur-fast) var(--ease-out),
		background-color var(--dur-fast) var(--ease-out);
}

.header__nav .sub-menu a:hover {
	color: var(--c-ink);
	background-color: var(--c-surface-muted);
}

.header__nav .sub-menu .current-menu-item > a {
	color: var(--c-ink);
	background-color: var(--c-accent-soft);
}

.header__submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	padding: 0;
	color: inherit;
	cursor: pointer;
	background-color: transparent;
	border: 0;
}

.header__submenu-toggle svg {
	transition: transform var(--dur-base) var(--ease-out);
}

.header__nav .header__submenu-toggle {
	width: 16px;
	height: 16px;
	margin-left: -6px;
	pointer-events: none;
}

.header__nav .menu-item-has-children:hover > .header__submenu-toggle svg,
.header__nav .menu-item-has-children.is-open > .header__submenu-toggle svg {
	transform: rotate(180deg);
}

.header__actions {
	display: flex;
	align-items: center;
	gap: 2px;
	flex: none;
	margin-left: auto;
}

@media (min-width: 1024px) {
	.header__actions {
		gap: 10px;
	}
}

.header__cta {
	display: none;
}

@media (min-width: 1024px) {
	.header__cta {
		display: inline-flex;
	}
}

.header__lang,
.header__lang-static {
	display: none;
}

@media (min-width: 1024px) {
	.header__lang {
		display: block;
	}

	.header__lang-static {
		display: inline-block;
	}
}

.header__lang .dropdown__trigger {
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: var(--tracking-wider);
	color: var(--header-fg);
}

.header__lang-static {
	padding: 10px 12px;
	font-size: 0.8125rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: var(--tracking-wider);
	text-transform: uppercase;
	color: var(--c-ink-55);
}

.header__burger {
	margin-right: -10px;
	color: var(--header-fg);
}

@media (min-width: 1024px) {
	.header__burger {
		display: none;
	}
}

.header__drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: var(--z-drawer);
	display: flex;
	flex-direction: column;
	width: min(420px, 100vw);
	padding: 0 var(--container-pad) calc(24px + env(safe-area-inset-bottom));
	overflow-y: auto;
	overscroll-behavior: contain;
	background-color: var(--c-surface);
	box-shadow: var(--shadow-lg);
	visibility: hidden;
	transform: translateX(100%);
	transition:
		transform var(--dur-slow) var(--ease-out),
		visibility var(--dur-slow) linear;
	-webkit-overflow-scrolling: touch;
}

.header__drawer.is-open {
	visibility: visible;
	transform: translateX(0);
}

@media (min-width: 1024px) {
	.header__drawer,
	.header__overlay {
		display: none;
	}
}

.header__drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: var(--header-h);
	border-bottom: 1px solid var(--c-line);
}

.header__drawer-head .custom-logo-link img {
	max-height: 48px;
	width: auto;
}

.header__drawer-close {
	margin-right: -10px;
	color: var(--c-ink);
}

.header__drawer-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 24px;
	padding-top: 12px;
}

.header__mobile-menu {
	padding: 0;
	margin: 0;
	list-style: none;
}

.header__mobile-menu > li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	border-bottom: 1px solid var(--c-line);
}

.header__mobile-menu > li > a {
	flex: 1 1 auto;
	padding: 16px 0;
	font-family: var(--font-display);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: var(--c-ink);
	transition: color var(--dur-fast) var(--ease-out);
}

.header__mobile-menu > li > a:hover {
	color: var(--c-accent-active);
}

.header__mobile-menu > li.current-menu-item > a,
.header__mobile-menu > li.current-menu-ancestor > a,
.header__mobile-menu > li.current_page_item > a {
	color: var(--c-accent-active);
}

.header__drawer .header__submenu-toggle {
	width: 44px;
	height: 44px;
	margin-right: -10px;
	border-radius: var(--radius-sm);
	transition: background-color var(--dur-fast) var(--ease-out);
}

.header__drawer .header__submenu-toggle:hover {
	background-color: var(--c-ink-06);
}

.header__drawer .header__submenu-toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.header__drawer .sub-menu {
	flex: 1 0 100%;
	max-height: 0;
	padding: 0;
	margin: 0;
	overflow: hidden;
	list-style: none;
	transition: max-height var(--dur-base) var(--ease-out);
}

.header__drawer .sub-menu li:last-child {
	padding-bottom: 12px;
}

.header__drawer .sub-menu a {
	display: block;
	padding: 11px 0 11px 16px;
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--c-ink-70);
	border-left: 2px solid var(--c-line);
	transition:
		color var(--dur-fast) var(--ease-out),
		border-color var(--dur-fast) var(--ease-out);
}

.header__drawer .sub-menu a:hover {
	color: var(--c-ink);
	border-left-color: var(--c-accent);
}

.header__drawer.is-open .header__mobile-menu > li,
.header__drawer.is-open .header__drawer-foot {
	animation: header-item-in var(--dur-slow) var(--ease-out) backwards;
}

.header__drawer.is-open .header__mobile-menu > li:nth-child(1) {
	animation-delay: 0.08s;
}

.header__drawer.is-open .header__mobile-menu > li:nth-child(2) {
	animation-delay: 0.12s;
}

.header__drawer.is-open .header__mobile-menu > li:nth-child(3) {
	animation-delay: 0.16s;
}

.header__drawer.is-open .header__mobile-menu > li:nth-child(4) {
	animation-delay: 0.2s;
}

.header__drawer.is-open .header__mobile-menu > li:nth-child(5) {
	animation-delay: 0.24s;
}

.header__drawer.is-open .header__mobile-menu > li:nth-child(6) {
	animation-delay: 0.28s;
}

.header__drawer.is-open .header__mobile-menu > li:nth-child(n + 7) {
	animation-delay: 0.32s;
}

.header__drawer.is-open .header__drawer-foot {
	animation-delay: 0.3s;
}

@keyframes header-item-in {
	from {
		opacity: 0;
		transform: translateX(24px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.header__drawer-foot {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: auto;
	padding-top: 24px;
}

.header__drawer-lang {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.header__drawer-lang-title {
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: var(--tracking-wider);
	text-transform: uppercase;
	color: var(--c-ink-55);
}

.header--transparent:not(.is-scrolled):not(.is-open) {
	--header-bg: transparent;
	--header-fg: #ffffff;

	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	box-shadow: none;
}

.footer {
	padding-top: clamp(28px,4vw,48px);
	padding-bottom: clamp(16px,2.5vw,24px);
	color: var(--c-ink);
	background-color: var(--c-surface);
	border-top: 1px solid var(--c-line);
	margin-top: clamp(48px,6vw,80px);
}

@media (min-width: 768px) {
	.footer {
		padding-top: 48px;
		padding-bottom: 28px;
	}
}

@media (min-width: 1024px) {
	.footer {
		padding-top: 56px;
		padding-bottom: 24px;
	}
}

.footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px;
}

@media (min-width: 600px) {
	.footer__top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 48px 32px;
	}
}

@media (min-width: 1024px) {
	.footer__top {
		grid-template-columns: minmax(200px, 280px) minmax(0, 1fr) auto;
		gap: 64px;
		align-items: start;
	}
}

.footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

@media (min-width: 600px) {
	.footer__brand {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1024px) {
	.footer__brand {
		grid-column: auto;
	}
}

.footer__brand .custom-logo-link,
.footer__brand .logo-fallback {
	display: inline-flex;
	transition: opacity var(--dur-base) var(--ease-out);
}

.footer__brand .custom-logo-link:hover,
.footer__brand .logo-fallback:hover {
	opacity: 0.78;
}

.footer__brand .custom-logo {
	display: block;
	width: auto;
	height: clamp(32px,3vw,40px);
	max-width: 200px;
	object-fit: contain;
	filter: brightness(0.5);
}

@media (min-width: 1024px) {
	.footer__brand .custom-logo {
		height: 62px;
		max-width: 230px;
	}
}

.footer__tagline {
	max-width: 22ch;
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 800;
	line-height: 1.5;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--c-ink);
}

.footer__nav {
	min-width: 0;
}

@media (min-width: 600px) {
	.footer__nav {
		grid-column: 1 / 2;
	}
}

@media (min-width: 1024px) {
	.footer__nav {
		grid-column: auto;
	}
}

.footer__menu {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 40px 32px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.footer__menu > li {
	min-width: 0;
}

.footer__col-title {
	display: block;
	margin-bottom: 22px;
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: var(--c-ink-55);
}

.footer__menu .sub-menu {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.footer__menu .sub-menu a {
	display: inline;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--c-ink);
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0% 1px;
	transition:
		color var(--dur-fast) var(--ease-out),
		background-size var(--dur-base) var(--ease-out);
}

.footer__menu .sub-menu a:hover {
	color: var(--c-accent-active);
	background-size: 100% 1px;
}

.footer__menu .sub-menu .current-menu-item > a {
	color: var(--c-accent-active);
}

.footer__socials {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

@media (min-width: 1024px) {
	.footer__socials {
		align-items: flex-end;
		justify-self: end;
		text-align: right;
	}
}

.footer__socials .social {
	margin-left: -11px;
}

@media (min-width: 1024px) {
	.footer__socials .social {
		margin-right: -11px;
		margin-left: 0;
		justify-content: flex-end;
	}
}

.footer__bottom {
	margin-top: clamp(36px,4vw,56px);
	padding-top: clamp(16px,2.5vw,24px);
	border-top: 1px solid var(--c-line);
}

@media (min-width: 1024px) {
	.footer__bottom {
		margin-top: 64px;
		padding-top: 28px;
	}
}

.footer__copyright {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: var(--c-ink-55);
}

.footer__copyright a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color var(--dur-fast) var(--ease-out);
}

.footer__copyright a:hover {
	color: var(--c-ink);
}

.admin-bar .header,
.admin-bar .header__drawer {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .header,
	.admin-bar .header__drawer {
		top: 46px;
	}
}

@media screen and (max-width: 600px) {
	.admin-bar .header,
	.admin-bar .header__drawer {
		top: 0;
	}
}

@media print {
	.header__actions,
	.header__drawer,
	.header__overlay {
		display: none !important;
	}

	.header {
		position: static;
		box-shadow: none;
	}
}
