/* === V2 Header === */
.v2-header {
	position: sticky;
	top: -58px;
	z-index: 100;
	width: 100%;
	background: transparent;
	color: #000;
	font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
	overflow: visible;
}

.v2-header__space {
	height: 58px;
	background: transparent;
}

.v2-header__inner {
	position: relative;
	z-index: 10;
	max-width: 1000px;
	min-height: 80px;
	margin: 0 auto;
	padding: 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	background: #fff;
	border-radius: 100px;
	transition: border-radius 0.25s ease, max-width 0.25s ease;
}

.v2-header.is-stuck .v2-header__inner {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

.v2-header__logo {
	width: 53px;
	min-width: 53px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	text-decoration: none;
}

.v2-header__logo img {
	display: block;
	width: 53px;
	height: auto;
}

.v2-header__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	min-width: 0;
}

.v2-header__nav a {
	position: relative;
	min-height: 40px;
	margin: 0 15px;
	padding: 10px 2px;
	display: inline-flex;
	align-items: center;
	color: #000;
	font-size: 16px;
	font-weight: 500;
	line-height: 20px;
	white-space: nowrap;
	text-decoration: none;
	transition: color 0.3s ease;
}

.v2-header__nav a:first-child {
	margin-right: 0;
}

.v2-header__nav a:last-child {
	margin-left: 0;
}

.v2-header__nav a::after {
	content: "";
	position: absolute;
	right: 2px;
	left: 2px;
	bottom: 4px;
	height: 2px;
	background: #ffcf3d;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.3s ease;
}

.v2-header__nav a:hover,
.v2-header__nav a.is-active {
	color: #ffcf3d;
}

.v2-header__nav a:hover::after,
.v2-header__nav a.is-active::after {
	transform: scaleX(1);
}

.v2-header__cta,
.v2-header__mobile-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-direction: row-reverse;
	gap: 16px;
	padding: 8px 29px 8px 8px;
	background: #ffcf3d;
	color: #000;
	border-radius: 100px;
	border: 0;
	text-decoration: none;
	font-size: 16px;
	font-weight: 500;
	line-height: 16px;
	white-space: nowrap;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.v2-header__cta {
	min-width: 163px;
	height: 48px;
	flex: 0 0 auto;
}

.v2-header__cta:hover,
.v2-header__mobile-cta:hover {
	color: #000;
	transform: translateY(-1px);
	box-shadow: 0 12px 24px rgba(255, 207, 61, 0.22);
}

.v2-header__cta-icon {
	width: 32px;
	height: 32px;
	padding: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #000;
	color: #fff;
	border-radius: 100%;
	font-size: 16px;
	line-height: 1;
}

.v2-header__menu-btn,
.v2-header__close {
	width: 44px;
	height: 44px;
	padding: 0;
	display: none;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 10px;
	background: #fff;
	color: #1c274c;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.v2-header__mobile-panel {
	position: fixed;
	inset: 0 0 0 auto;
	z-index: 50;
	width: min(80vw, 400px);
	height: 100vh;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	background: #fff;
	box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, 0.2);
	overflow-y: auto;
	transform: translateX(105%);
	opacity: 0;
	visibility: hidden;
	transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
}

.v2-header__mobile-panel.is-open {
	transform: translateX(0);
	opacity: 1;
	visibility: visible;
}

.v2-header__mobile-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}

.v2-header__mobile-nav {
	display: flex;
	flex-direction: column;
	margin: 0 -20px;
}

.v2-header__mobile-nav a {
	display: flex;
	padding: 10px 20px;
	color: #af8400;
	font-size: 16px;
	font-weight: 500;
	line-height: 20px;
	text-decoration: none;
}

.v2-header__mobile-nav a:hover,
.v2-header__mobile-nav a.is-active {
	background: #3f444b;
	color: #fff;
}

.v2-header__mobile-cta {
	width: fit-content;
	font-size: 13px;
	align-self: center;
}

.v2-header__overlay {
	position: fixed;
	inset: 0;
	z-index: 45;
	background: rgba(0, 0, 0, 0.8);
}

body.v2-header-menu-open {
	overflow: hidden;
}

@media (max-width: 1024px) {
	.v2-header {
		padding-inline: 20px;
	}

	.v2-header__nav a {
		margin: 0 8px;
		font-size: 14px;
	}
}

@media (max-width: 767px) {
	.v2-header {
		top: -12px;
		padding-inline: 12px;
	}

	.v2-header__space {
		height: 12px;
	}

	.v2-header__inner {
		min-height: 58px;
		padding: 8px 16px;
		gap: 12px;
		border-radius: 24px;
		box-shadow: 0 16px 42px rgba(11, 16, 38, 0.16);
	}

	.v2-header.is-stuck .v2-header__inner {
		border-top-left-radius: 0;
		border-top-right-radius: 0;
		border-bottom-left-radius: 50px;
		border-bottom-right-radius: 50px;
	}

	.v2-header__nav,
	.v2-header__cta {
		display: none;
	}

	.v2-header__logo,
	.v2-header__logo img {
		width: 42px;
		min-width: 42px;
	}

	.v2-header__menu-btn,
	.v2-header__close {
		display: inline-flex;
		width: 38px;
		height: 38px;
		border-radius: 12px;
		background: transparent;
		color: #17213f;
		font-size: 0;
		transition: background 0.25s ease, transform 0.25s ease;
	}

	.v2-header__menu-btn::before {
		content: "";
		width: 22px;
		height: 14px;
		background:
			linear-gradient(currentColor, currentColor) 0 0 / 22px 2px no-repeat,
			linear-gradient(currentColor, currentColor) 0 6px / 22px 2px no-repeat,
			linear-gradient(currentColor, currentColor) 0 12px / 22px 2px no-repeat;
		border-radius: 2px;
	}

	.v2-header__menu-btn:hover,
	.v2-header__close:hover {
		background: rgba(23, 33, 63, 0.06);
		transform: translateY(-1px);
	}
}

@media (max-width: 480px) {
	.v2-header {
		padding-inline: 10px;
	}

	.v2-header__inner {
		min-height: 54px;
		padding: 7px 14px;
		border-radius: 22px;
	}

	.v2-header.is-stuck .v2-header__inner {
		border-top-left-radius: 0;
		border-top-right-radius: 0;
		border-bottom-left-radius: 50px;
		border-bottom-right-radius: 50px;
	}

	.v2-header__logo,
	.v2-header__logo img {
		width: 38px;
		min-width: 38px;
	}

	.v2-header__menu-btn {
		width: 36px;
		height: 36px;
	}
}
