/* ---- All animation ---- */
.underline {
    position: absolute;
    top: 0;
    left: 0;
    transition: 
	transform 0.4s cubic-bezier(.33, 1.61, 0, .83),
	width 0.4s cubic-bezier(.33, 1.61, 0, .83),
	height 0.4s cubic-bezier(.33, 1.61, 0, .83);
    pointer-events: none;
    z-index: -1;
	width: 0;
	height: 0;
}

.underline.background {
    background: var(--bg-olive-light); 
    opacity: 0.7; 
}

@media(max-width: 1279px) {
	.underline {
		z-index: 0;
	}
	.header__nav.active .underline {
		left: -20px;
		width: 120% !important;
	}
}

/* ---- Header ---- */
header {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	z-index: 100;
	background-color: var(--white-color);
	padding: 20px 0;
}

.header__nav {
	position: relative;
}

header .wrapper {
	gap: 63px;
}

.header__logo-image {
	display: block;
	width: 100%;
	object-fit: cover;
}

.header__menu {
	flex-direction: row;
	align-items: center;
	gap: 20px;
}

.header__menu-item {
	position: relative;
	overflow: hidden;
}

.header__menu-link {
	display: inline-block; 
	color: var(--primary-color);
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	letter-spacing: 0.28px;
	text-transform: uppercase;
	width: 100%;
}

/*
.header__menu-link:hover, .header__menu-link.active {
    color: var(--white-color);
}

.header__menu:has(.header__menu-link:hover) .header__menu-link.active:not(:hover) {
	color: var(--primary-color);
}*/

.header__burger, .header__menu-item--mobile {
    display: none;
}

@media (max-width: 1279px) {
    .header__burger{
        width: 30px;
        height: 30px;
        position: relative;
        z-index: 5;
        overflow: hidden;
        cursor: pointer;
        display: flex;
    }

    .header__burger-line {
        width: 30px;
        height: 2px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        background: var(--primary-color);
        transition: all .5s;
    }

    .header__burger.active span:nth-of-type(1) {
        display: none;
    }

    .header__burger-line:nth-of-type(2) {
        top: calc(50% - 5px);
    }

    .header__burger.active span:nth-of-type(2) {
        top: 50%;
        transform: translate(-50%,0%) rotate(45deg);
    }

    .header__burger-line:nth-of-type(3) {
        top: calc(50% + 5px);
    }

    .header__burger.active span:nth-of-type(3) {
        top: 50%;
        transform: translate(-50%,0%) rotate(-45deg);
    }

    .header__burger.active span{
        background: var(--nortland-color);
    }

    body.hidden{
        overflow: hidden;
    }

    .header__nav{
        position: fixed;
        z-index: 4;
        top: 62px;
        left: -5000px;
        width: 100%;
        max-width: unset;
        height: 100%;
        background-color: var(--primary-color);
        transform: translateX(-100%);
        transition: transform .5s;
    }

    .header__nav.active {
        transform: translateX(0);
        left: 0;
        display: flex;
        justify-content: end;
		overflow: hidden;
    }

    .header__menu {
        width: 100%;
        background: var(--white-color);
        align-items: start;
        flex-direction: column;
		padding: 12px 30px 0 30px;
        gap: 0;
    }

	.header .wrapper {
		justify-content: space-between;
	}

	.header {
		padding: 16px 0;
	}

	.header__menu-item {
		width: 100%;
		padding: 12px 0;
	}

	.header__menu-item:after {
		content: "";
		position: absolute;
		top: 50%; 
		right: 0;
		transform: translateY(-50%); 
		background-color: currentColor;
        -webkit-mask: url(/assets/image/chevron.svg) center / contain no-repeat;
        mask: url(/assets/image/chevron.svg) center / contain no-repeat;
		width: 16px;
		height: 16px;
		-webkit-transition: .4s linear;
		-o-transition: .4s linear;
		transition: .4s linear;
	}

	.header__menu-link:hover ~ .header__menu-item:after, .header__menu-item:hover:after, .header__menu-item:has(.header__menu-link.active)::after {
		background-color: var(--bg-olive-light);
	}

	.header__menu:has(.header__menu-link:hover) .header__menu-item:has(.header__menu-link.active:not(:hover))::after {
		filter: unset;
	}

	.header__menu-item--mobile {
		display: flex;
	}
}

@media(max-width: 767px) {
	.header__menu {
		padding: 12px 20px 0 20px;
	}
}

/* ---- Footer ---- */
.footer {
	position: relative;
	overflow: hidden;
	background: #101C24;
}

.footer:before {
	content: "";
	position: absolute;
	left: 0;
	top: -22px;
	width: 100%;
	height: 44px;
	border-radius: 22px;
	background: var(--white-color);
	z-index: 1;
}

.footer-img {
	display: block;
    width: 100%;
    object-fit: cover;
}

.footer .wrapper {
	padding-top: 28px;
	padding-bottom: 28px;
}

.footer__nav {
	position: relative;
}

.footer__menu {
	position: relative;
	display: grid;
	grid-template-columns: 150px 240px auto;
	align-items: start;
	gap: 16px 55px;
}

.footer__menu-item:nth-child(1), .footer__menu-item:nth-child(2), .footer__menu-item:nth-child(3) {
    grid-column: 1;
}

.footer__menu-item:nth-child(4), .footer__menu-item:nth-child(5), .footer__menu-item:nth-child(6) {
    grid-column: 2; 
}

.footer__menu-item:nth-child(4) {
	grid-row: 1;
}

.footer__menu-item:nth-child(5) {
	grid-row: 2;
}

.footer__menu-item:nth-child(6) {
	grid-row: 3;
}

.footer__menu-item:nth-child(7) {
	grid-column: 3;
    grid-row: 1; 
    align-self: start; 
    text-align: right;
}

.footer__menu-link {
	color: var(--white-color);
	display: inline-block;
	width: max-content;
	position: relative;
}

.footer__line {
	width: 100%;
	margin: 25px 0;
	background: var(--color-dark-grey);
	height: 1px;
}

.footer__copyright {
	color: var(--white-color);
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	letter-spacing: 0.28px;
	text-transform: uppercase;
}

.footer__info, .footer__info a {
	color: var(--color-dark-grey);
	font-size: 12px;
	font-weight: 400;
	line-height: 16px;
	margin-top: 12px;
}

@media(max-width: 767px) {
	.footer .wrapper {
		padding-top: 24px;
		padding-bottom: 24px;
	}

	.footer__menu {
		display: flex;
        flex-direction: column;
		gap: 16px;
		
	}

	.footer__menu-item:nth-child(7) {
		margin-top: 12px;
	}

	.footer-img {
		height: 100px;
	}
}

/* Общая анимация */
.header__menu-link::before, .footer__menu-link::before {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	width: 0;
	height: 2px;
	background: var(--bg-olive-light); 
	transition: width .3s;
}

.footer__menu-link::before {
	bottom: -2px;
}

.header__menu-link.active::before, .header__menu-link:hover::before, .footer__menu-link.active::before, .footer__menu-link:hover::before {
	width: 100%;
    right: auto;
    left: 0;
}

.header__menu-link:hover, .header__menu-link.active, .footer__menu-link:hover, .footer__menu-link.active {
    color: var(--bg-olive-light);
}

@media(max-width: 767px) {
	.header__menu-link::before {
		bottom: 6px;
	}
}
/* Общая анимация */