.tt-header {
	position: sticky;
	z-index: 1000;
	top: 0;
	width: 100%;
	height: 96px;
	background: rgba(13, 19, 33, 0.98);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 0 0 rgba(0, 0, 0, 0);
	transition:
		height 220ms ease,
		box-shadow 220ms ease,
		background-color 220ms ease;
}

.tt-header.is-scrolled {
	height: 68px;
	background: rgba(13, 19, 33, 0.94);
	box-shadow: 0 10px 35px rgba(3, 8, 18, 0.2);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

.tt-header__inner {
	display: grid;
	grid-template-columns: 220px 1fr 220px;
	align-items: center;
	height: 100%;
}

.tt-brand {
	justify-self: start;
	min-width: 0;
}

.tt-brand .custom-logo-link {
	display: block;
}

.tt-brand .custom-logo {
	width: auto;
	max-width: 185px;
	height: 62px;
	object-fit: contain;
	transition: height 220ms ease;
}

.is-scrolled .tt-brand .custom-logo {
	height: 47px;
}

.tt-brand__fallback {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--tt-white);
	font-size: 26px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
}

.tt-brand__mark {
	position: relative;
	display: grid;
	width: 54px;
	height: 54px;
	place-items: center;
	border: 6px solid var(--tt-white);
	border-radius: 50%;
	transition:
		width 220ms ease,
		height 220ms ease,
		border-width 220ms ease;
}

.tt-brand__mark::before {
	width: 30px;
	height: 30px;
	border: 5px solid var(--tt-red);
	border-radius: 50%;
	content: "";
}

.tt-brand__mark::after {
	position: absolute;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--tt-red);
	content: "";
}

.tt-brand__mark i {
	position: absolute;
	top: -10px;
	right: -5px;
	width: 38px;
	height: 6px;
	background: var(--tt-red);
	border-radius: 999px;
	transform: rotate(-45deg);
	transform-origin: right center;
}

.is-scrolled .tt-brand__fallback {
	font-size: 22px;
}

.is-scrolled .tt-brand__mark {
	width: 48px;
	height: 48px;
	border-width: 5px;
}

.tt-nav {
	justify-self: center;
}

.tt-nav__list {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: clamp(28px, 4vw, 68px);
	padding: 0;
	margin: 0;
	list-style: none;
}

.tt-nav .menu-item {
	position: relative;
}

.tt-nav .menu-item > a {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 48px;
	color: rgba(255, 255, 255, 0.88);
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	transition: color 160ms ease;
}

.tt-nav .menu-item > a::after {
	position: absolute;
	right: 50%;
	bottom: 0;
	width: 0;
	height: 3px;
	border-radius: 999px;
	background: var(--tt-red);
	content: "";
	transform: translateX(50%);
	transition: width 180ms ease;
}

.tt-nav .menu-item > a:hover,
.tt-nav .menu-item > a:focus-visible,
.tt-nav .current-menu-item > a,
.tt-nav .current_page_item > a,
.tt-nav .current-menu-ancestor > a,
.tt-nav .current_page_parent > a {
	color: var(--tt-white);
}

.tt-nav .menu-item > a:hover::after,
.tt-nav .menu-item > a:focus-visible::after,
.tt-nav .current-menu-item > a::after,
.tt-nav .current_page_item > a::after,
.tt-nav .current-menu-ancestor > a::after,
.tt-nav .current_page_parent > a::after {
	width: 35px;
}

.tt-header__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	justify-self: end;
	width: 168px;
	height: 54px;
	border: 1px solid transparent;
	border-radius: 12px;
	background: linear-gradient(135deg, #fa2c32, #e91d2c);
	box-shadow: 0 10px 25px rgba(230, 57, 70, 0.13);
	color: var(--tt-white);
	font-size: 16px;
	font-weight: 800;
	transition:
		width 220ms ease,
		height 220ms ease,
		border-radius 220ms ease,
		transform 160ms ease,
		box-shadow 160ms ease;
}

.is-scrolled .tt-header__cta {
	width: 148px;
	height: 44px;
	border-radius: 10px;
	font-size: 14px;
}

.tt-header__cta:hover {
	box-shadow: 0 12px 28px rgba(230, 57, 70, 0.28);
	transform: translateY(-2px);
}

.tt-header__cta:focus-visible,
.tt-menu-toggle:focus-visible,
.tt-nav a:focus-visible {
	outline: 3px solid var(--tt-white);
	outline-offset: 4px;
}

.tt-menu-toggle {
	display: none;
	width: 48px;
	height: 48px;
	padding: 10px 7px;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.tt-menu-toggle span {
	display: block;
	width: 34px;
	height: 4px;
	margin-block: 5px;
	border-radius: 999px;
	background: var(--tt-white);
	transition:
		transform 180ms ease,
		opacity 180ms ease;
}

.tt-menu-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(9px) rotate(45deg);
}

.tt-menu-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.tt-menu-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-9px) rotate(-45deg);
}

.tt-menu-backdrop {
	display: none;
}

@media (max-width: 1100px) {
	.tt-header__inner {
		grid-template-columns: 190px 1fr 175px;
	}

	.tt-nav__list {
		gap: 24px;
	}

	.tt-nav .menu-item > a {
		font-size: 15px;
	}

	.tt-header__cta {
		width: 158px;
	}
}

@media (max-width: 860px) {
	.tt-header,
	.tt-header.is-scrolled {
		height: 78px;
	}

	.tt-header.is-scrolled {
		height: 62px;
	}

	.tt-header__inner {
		display: flex;
		justify-content: space-between;
	}

	.tt-brand {
		order: 1;
	}

	.tt-menu-toggle {
		position: relative;
		z-index: 4;
		display: block;
		order: 3;
	}

	.tt-header.menu-is-open .tt-menu-toggle {
		position: relative;
		top: auto;
		left: auto;
	}

	.tt-header__cta {
		display: none;
	}

	.tt-brand .custom-logo,
	.is-scrolled .tt-brand .custom-logo {
		max-width: 155px;
		height: 56px;
	}

	.is-scrolled .tt-brand .custom-logo {
		height: 44px;
	}

	.tt-brand__fallback {
		gap: 10px;
		font-size: 24px;
	}

	.tt-brand__mark {
		width: 53px;
		height: 53px;
		border-width: 5px;
	}

	.is-scrolled .tt-brand__fallback {
		font-size: 21px;
	}

	.tt-nav {
		position: absolute;
		z-index: 2;
		top: 100%;
		right: auto;
		bottom: auto;
		left: 0;
		visibility: hidden;
		width: min(84vw, 360px);
		height: calc(100dvh - 78px);
		max-height: calc(100dvh - 78px);
		padding: 18px 24px 28px;
		overflow-y: auto;
		overscroll-behavior: contain;
		background: rgba(13, 19, 33, 0.985);
		border-right: 1px solid rgba(255, 255, 255, 0.08);
		box-shadow: 18px 0 50px rgba(0, 0, 0, 0.32);
		transform: translateX(-102%);
		transition:
			transform 220ms ease,
			visibility 220ms ease;
	}

	.tt-header.is-scrolled .tt-nav {
		height: calc(100dvh - 62px);
		max-height: calc(100dvh - 62px);
	}

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

	.tt-nav__list {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		justify-content: stretch;
		justify-items: stretch;
		width: min(100%, 520px);
		margin-inline: auto;
		direction: rtl;
		text-align: right;
	}

	.tt-nav .menu-item {
		display: block;
		width: 100%;
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	}

	.tt-nav .menu-item > a {
		display: block;
		width: 100%;
		min-height: 0;
		padding: 17px 8px;
		border-bottom: 0;
		font-size: 17px;
		line-height: 1.5;
		text-align: right;
	}

	.tt-nav .menu-item > a::after {
		right: 8px;
		bottom: -1px;
		transform: none;
	}

	.tt-menu-backdrop {
		position: fixed;
		z-index: 1;
		inset: 0;
		display: block;
		visibility: hidden;
		width: 100%;
		height: 100%;
		padding: 0;
		border: 0;
		background: rgba(3, 8, 18, 0.58);
		opacity: 0;
		cursor: default;
		touch-action: none;
		transition:
			opacity 180ms ease,
			visibility 180ms ease;
	}

	.tt-header.menu-is-open .tt-menu-backdrop {
		visibility: visible;
		opacity: 1;
	}

	.tt-header__inner {
		position: static;
		z-index: auto;
	}
}

@media (max-width: 480px) {
	.tt-header,
	.tt-header.is-scrolled {
		height: 72px;
	}

	.tt-header.is-scrolled {
		height: 60px;
	}

	.tt-brand .custom-logo,
	.is-scrolled .tt-brand .custom-logo {
		max-width: 145px;
		height: 52px;
	}

	.is-scrolled .tt-brand .custom-logo {
		height: 44px;
	}

	.tt-brand__fallback,
	.is-scrolled .tt-brand__fallback {
		font-size: 20px;
	}

	.tt-brand__mark,
	.is-scrolled .tt-brand__mark {
		width: 45px;
		height: 45px;
		border-width: 4px;
	}

	.tt-brand__mark::before {
		width: 22px;
		height: 22px;
		border-width: 4px;
	}

	.tt-brand__mark i {
		top: -6px;
		right: -3px;
		width: 29px;
		height: 5px;
	}

	.tt-menu-toggle {
		width: 44px;
		height: 44px;
	}

	.tt-menu-toggle span {
		width: 30px;
		height: 3px;
	}

	.tt-nav,
	.is-scrolled .tt-nav {
		height: calc(100dvh - 72px);
		max-height: calc(100dvh - 72px);
		padding-top: 14px;
	}

	.tt-header.is-scrolled .tt-nav {
		height: calc(100dvh - 60px);
		max-height: calc(100dvh - 60px);
	}
}
