/* ========== Header ========== */
.header {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;

	width: 100%;

	background-color: var(--color-white);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);

	transition: transform 0.3s ease;
}

.header--hidden {
	transform: translateY(-100%);
}

.header-wrapper {
	background-color: var(--color-soft-rose);
}

/* ---------- Логотип ---------- */
.header__logo {
	display: block;

	width: fit-content;
	height: 56px;
	margin: 16px auto;

	transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
	will-change: transform;
}

.header__logo:hover {
	transform: scale(1.03);
}

.header__logo-image {
	width: auto;
	height: 100%;
}

/* ---------- Навигация ---------- */
.header__nav {
	position: relative;

	max-width: 1200px;
	margin: 0 auto;
	padding: 8px 0;

	align-items: center;
	justify-content: flex-end;
}

.header__menu {
	flex-direction: row;
	align-items: center;
	gap: 24px;
}

/* ---------- Ссылки меню ---------- */
.header__menu-link {
	position: relative;
	display: inline-block;

	font-size: 14px;
	font-weight: 300;
	line-height: 20px;
	color: var(--color-charcoal);
	font-style: normal;
}

.header__menu-link::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 50%;

	width: 0;
	height: 1px;

	background-color: var(--color-peach);

	transform: translateX(-50%);
	transition: width 0.3s ease;
}

.header__menu-link:hover,
.header__menu-link.active {
	color: var(--color-peach);
}

.header__menu-link:hover::after,
.header__menu-link.active::after {
	width: 100%;
}

.header__menu:has(.header__menu-link:hover) .header__menu-link.active:not(:hover) {
	color: var(--color-charcoal);
}

/* ---------- Анимация логотипа ---------- */
.shine-img {
	position: relative;
	display: inline-block;
	overflow: hidden;
}

.shine-img::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;

	width: 100%;
	height: 100%;

	background: linear-gradient(90deg,
			transparent 0%,
			rgba(255, 255, 255, 0) 35%,
			rgba(255, 255, 255, 0.7) 50%,
			rgba(255, 255, 255, 0) 65%,
			transparent 100%);
	background-size: 200% 100%;
	background-repeat: no-repeat;

	animation: shineLogo 2s ease-in-out forwards;
	pointer-events: none;
}

@keyframes shineLogo {
	from {
		background-position: 200% 0;
	}

	to {
		background-position: -200% 0;
	}
}

/* ---------- Скрытые элементы по умолчанию ---------- */
.header__menu-title,
.header__mail,
.header__burger {
	display: none;
}


@media (max-width: 1279px) {
	.header-wrapper {
		background-color: var(--color-white);
	}

	.header {
		display: flex;
		flex-direction: row-reverse;
		align-items: center;

		padding: 24px var(--padding-x);
	}

	.header__logo {
		height: 32px;
		margin: 0 auto;

		transition: opacity 0.3s ease, visibility 0.3s ease;
	}

	/* Заголовок меню */
	.header__menu-title {
		position: absolute;
		top: 50%;
		left: 60px;
		display: block;

		white-space: nowrap;

		font-size: 20px;
		font-weight: 400;
		line-height: 26px;
		color: var(--color-charcoal);

		transform: translateY(-50%);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 0.2s ease, visibility 0.2s ease;
	}

	/* Бургер */
	.header__burger {
		position: relative;
		z-index: 5;
		display: flex;

		width: 24px;
		height: 24px;
		margin: 0;
		border: none;
		overflow: hidden;

		background: none;
		cursor: pointer;
		user-select: none;
	}

	.header__burger-line {
		position: absolute;
		top: 50%;
		left: 50%;

		width: 16px;
		height: 1px;

		background: var(--color-charcoal);
		transition: transform 0.5s ease, opacity 0.3s ease;
	}

	.header__burger-line:nth-of-type(1) {
		transform: translate(-50%, calc(-50% - 5px));
	}

	.header__burger.active span:nth-of-type(1) {
		transform: translate(-50%, -50%) rotate(45deg);
	}

	.header__burger-line:nth-of-type(2) {
		transform: translate(-50%, -50%);
	}

	.header__burger.active span:nth-of-type(2) {
		opacity: 0;
	}

	.header__burger-line:nth-of-type(3) {
		transform: translate(-50%, calc(-50% + 5px));
	}

	.header__burger.active span:nth-of-type(3) {
		transform: translate(-50%, -50%) rotate(-45deg);
	}

	.header.header--menu-open {
		transform: none !important;
	}

	.header--menu-open .header__menu-title {
		opacity: 1;
		visibility: visible;
		transition: opacity 0.3s ease 0.2s, visibility 0.3s ease 0.2s;
	}

	.header--menu-open .header__logo {
		opacity: 0;
		visibility: hidden;
	}

	/* Навигация */
	.header__nav {
		position: fixed;
		top: var(--header-height);
		left: 0;
		z-index: 4;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		justify-content: space-between;

		width: 100%;
		height: calc(100dvh - var(--header-height));
		max-width: unset;
		padding: 0;
		padding-bottom: env(safe-area-inset-bottom, 0);
		border-top: 1px solid var(--color-silver);

		background-color: var(--color-white);
		overflow-y: auto;

		transform: translateX(-100%);
		transition: transform 0.5s;
	}

	.header__nav.active {
		transform: translateX(0);
	}

	.header__menu {
		width: 100%;
		padding: 12px 60px;

		flex-direction: column;
		align-items: start;
		gap: 0;

		background: var(--color-white);
	}

	.header__menu-item {
		width: 100%;
		padding: 12px 0;
	}

	.header__mail {
		display: block;

		width: 100%;
		padding: 24px 60px;
		border-top: 1px solid var(--color-silver);

		font-size: 16px;
		font-weight: 300;
		line-height: 22px;
		color: var(--color-charcoal);
	}

	body.hidden {
		overflow: hidden;
	}
}


@media (max-width: 767px) {
	.header__menu-title {
		left: var(--padding-x);
	}

	.header__menu {
		padding: var(--padding-x);
	}

	.header__mail {
		padding: 24px var(--padding-x);
	}

	.header__menu-item {
		padding: 10px 0;
	}
}


/* ========== Footer ========== */
.footer {
	position: relative;
	overflow: hidden;

	background: var(--color-charcoal);
}

.footer .wrapper {
	padding-top: 40px;
	padding-bottom: 24px;
}

/* ---------- Логотип ---------- */
.footer__logo {
	display: block;

	width: 286px;
	margin: 13px 50px 0;

	transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
	will-change: transform;
}

.footer__logo:hover {
	transform: scale(1.03);
}

.footer__logo-image {
	width: 100%;
}

.footer__logo:hover .footer__logo-image {
	filter: drop-shadow(2px 4px 6px #FFFFFF33);
}

/* ---------- Навигация и меню ---------- */
.footer__nav {
	position: relative;
	display: flex;
	justify-content: space-between;
}

.footer__menu {
	display: grid;
	grid-template-columns: 1fr 1fr 1.5fr;
	gap: 20px;
}

.footer__menu_item {
	margin: 0;
}

.footer__menu-heading {
	margin-bottom: 8px;

	font-size: 16px;
	font-weight: 600;
	line-height: 22px;
	letter-spacing: 1.92px;
	color: var(--color-white);
	text-transform: uppercase;
}

.footer__menu-list {
	display: grid;
	gap: 8px;
}

.footer__menu-list li,
.footer__menu-list a {
	position: relative;

	font-size: 16px;
	font-weight: 300;
	line-height: 22px;
	color: var(--color-white);
	text-decoration: none;

	transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer__menu-list a::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 50%;

	width: 0;
	height: 1px;

	background-color: #FFFFFF33;

	transform: translateX(-50%);
	transition: width 0.3s ease;
}

.footer__menu-list a:hover::after {
	width: 100%;
}

.footer__menu-list a:hover {
	text-shadow: 0 0 8px #FFFFFF33;
}

/* ---------- Разделитель и копирайт ---------- */
.footer__line {
	width: 100%;
	height: 1px;
	margin: 24px 0 16px;

	background: #FFFFFF33;
}

.footer__copyright,
.footer__info,
.footer__info a {
	position: relative;

	padding-bottom: 0.5px;
	border-bottom: 1px solid transparent;

	font-size: 10px;
	font-weight: 300;
	line-height: 14px;
	color: var(--color-stone);

	transition: color 0.3s ease;
}

.footer__copyright {
	margin-top: 8px;
}

.footer__info a::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 50%;

	width: 0;
	height: 1px;

	background-color: var(--color-stone);

	transform: translateX(-50%);
	transition: width 0.3s ease;
}

.footer__info a:hover::after {
	width: 100%;
}

@media (max-width: 1279px) {
	.footer__nav {
		flex-direction: column;
		gap: 24px;
	}

	.footer__logo {
		margin: 0;
	}
}

@media (max-width: 767px) {
	.footer__menu {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.footer__logo {
		width: 76.3vw;
		max-width: 286px;
	}
}