html {
  /* 10px */
  font-size: 62.5%;
}

*{
	font-family: 'Roboto';
}


header{
	background-color: #fff;
	position: static;
	width: 100%;
	transition: transform 0.3s ease;
	z-index: 10000;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	z-index: 1000;
}
header.fixed {
	position: fixed;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Тень при фиксации */
	animation: slideDown 0.3s ease; /* Анимация появления */
	width: 100vw;
}
@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
/* Чтобы контент не прыгал при фиксации хедера */
.header-placeholder {
  display: none;
  height: var(--header-height); /* Должно соответствовать высоте хедера */
}

header.fixed + .header-placeholder {
  display: block;
}

.header{
	height: 9rem;
	padding: 10px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}



.logo{
	height: 100%;
}
.logo img{
	height: 100%;
	max-width: 100px;
}

.header__right{
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-end;
	gap: 5px;
}



.nav__separator{
	width: 100%;
	height: 2px;
	background-color: #00A850;
}



/* nav */
.nav{
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 15px;
}


.nav__item a{
	color: #041c2c;
	font-family: "Roboto";
	font-size: 1.7rem;
	font-weight: 600;
	transition: all .3s;
	position: relative;
	text-transform: uppercase;
}

.nav__item div{
	color: #041c2c;
	font-family: "Roboto";
	font-size: 1.7rem;
	font-weight: 600;
	transition: all .3s;
	position: relative;
	text-transform: uppercase;
}

.nav__item a:hover{
	color:#00A850;
}


.nav__item_thin a{
	font-size: 1.4rem;
	font-weight: 500;
}



.sub-nav.active{
	opacity: 1;
  	visibility: visible;
}

/* sub-nav */
.sub-nav{
	opacity: 0;
  	visibility: hidden;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: 30px;
	position: absolute;
	left: 0px;
	top: 90px;
	width: 100%;
	padding: 1.5rem 2rem;
	background-color: #00A850;
	transition: all .3s;
	z-index: 2000;
}

.sub-nav a{
	color: #fff;
}
.sub-nav a:hover{
	color: #d7d7d7;
}


/* footer */
.footer{
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 3.5rem 0;
}

.footer__left{
	display: flex;
	flex-direction: column;
	gap: 10px;

}

.rights{
	font-family: 'Roboto';
	font-weight: 600;
	font-size: 1.4rem;
	color: #041c2c;
}
.company{
	font-family: 'Roboto';
	font-weight: 600;
	font-size: 1.4rem;
	color: #041c2c;
}

.footer__media{
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

.media__item{
	width: 40px;
	height: 40px;
	background-color: #00A850;
	border-radius: 5px;
	transition: all .1s;
}

.media__item a{
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 2rem;
	color: #fff;
	width: 100%;
	height: 100%;
}


.media__item:hover{
	transform: scale(1.1);
}


/* Большие десктопы */
@media (max-width: 419px) {
	.nav__item a{
		font-size: .6rem;
	}
	.company {
		font-size: 1rem;
	}	
	.rights{
		font-size: 1rem;
	}
	.logo{
		height: 59%;
	}
 }
/* Мобильные устройства (до 576px) */
@media (min-width: 420px) and (max-width: 575px) {
	.nav__item a{
		font-size: 1rem;
	}
 }

/* Планшеты (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) { 
	.nav__item a{
		font-size: 1.4rem;
	}
}



