@import url('../vendors/fonts.css');

.page{
  background-image: url(images/main_picture_mmz.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  object-fit: cover;
  width: 100%;
  margin: 0;
  font-family: "Albertus Nova Regular";
  font-weight: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 646px;
}

.header {
display: flex;
justify-content: space-between;
height: auto;
box-sizing: border-box;
flex-direction: column;
padding-top: 40px;
padding-bottom: 0px;
}

.header__title {
  margin: auto;
  font-size: 16px;
  color: #000000;
}

.header__subtitle {
  margin: auto;
  font-size: 20px;
  color: #000000;
}

.search {
    position: absolute;
    top: 20px;
    right: 50px;
}
.ya-site-form {
    width: 300px;
}

.models__models-cards {
    display: grid;
    margin-top: -300px;
    grid-template-columns: repeat(6, 12%);
    justify-content: center;
    box-sizing: border-box;
    gap: 5px;
}
.model {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    height: 150px;
    box-sizing: border-box;
    background-color: rgba(250, 247, 247, 0.979);
    border: solid 2px rgb(145, 144, 144);
}
.model:hover {
    transform: scale(1.2);
    z-index: 1;
    transition: transform .5s ease-in;
    background-color: rgb(119, 119, 153);
    color: white;
    border: solid 2px rgb(252, 250, 250);
}
.model__subtitle {
    font-family: "Albertus Nova";
    font-weight: 300;
    font-size: 11px;
    margin-top: 12px;
    text-align: center;
}

.type__subtitle {
    font-family: "Albertus Nova";
    font-weight: 100;
    font-size: 10px;
    margin-top: 3px;
    color: rgb(253, 253, 255);
    opacity: 1;
}

.photo_model {
    position: absolute;
    margin-top: 40px;
    max-width: 90%;
    max-height: 90%;
    align-self: center;
    object-fit: cover;
    box-sizing: border-box;
}
.engine-menu {
    display: flex;
    margin-top: 0px;
    list-style: none;
    text-decoration: none;
    width: 130px;
    font-weight: 300;
    font-size: 9px;
}
.engine-menu:hover {
    display: flex;
    list-style: none;
    font-weight: 300;
    font-size: 10px;
    flex-direction: column;
}
.serial-item {
    display: flex;
    list-style: none;
    text-decoration: none;
    width: 100px;
    font-weight: 300;
    font-size: 9px;
    flex-direction: column;
    
}
.serial-item:hover {
    display: flex;
    list-style: none;
    text-decoration: none;
    width: 100px;
    font-weight: 300;
    font-size: 10px;
    flex-direction: column;
}
.models-item {
    display: flex;
    list-style: none;
    text-decoration: none;
    width: 80px;
    font-weight: 300;
    font-size: 9px;
    flex-direction: column;
    opacity: 0;
}
.models-item:hover {
    position: absolute;
    top: 20%;
    left: 0;
    display: flex;
    list-style: none;
    text-decoration: none;
    width: 130px;
    background-color: rgb(119, 119, 153);
    font-weight: 300;
    font-size: 10px;
    opacity: 1;
}
.model-item {
    display: flex;
    list-style: none;
    text-decoration: none;
    width: 70px;
    font-weight: 300;
    font-size: 9px;
    flex-direction: column;
}
.model-item:hover {
    display: flex;
    list-style: none;
    text-decoration: none;
    width: 90px;
    font-weight: 300;
    font-size: 10px;
    flex-direction: column;
}

.column {
    float: left;
    width: 100px;
    padding: 5px;
    background-color: rgb(119, 119, 153);
    height: max-content;
    color: rgb(255, 255, 255);
  }

ul{
	list-style: none;
	background-color: rgb(119, 119, 153);
	font-size: 12px;
    width: max-content;
	border: 1px solid #b1c1d1;
	border-bottom: none;
    margin: 0;
    padding-left: 0;
	color: #fafafa;
}
ul li{
	border-bottom: 1px solid #79839259;
	position: relative;
}
ul li:hover{
	background-color: #f5f7f591;
    z-index: 1000;
}
ul li:hover ul{
	display: block;
    left: 90px;
    z-index: 1000;
}
ul li:hover ul li ul{
	display: none;
    z-index: 1000;
}
ul li a{
	color: rgb(255, 255, 255);
	padding: 1px 1px;
	display: block;
	text-decoration: none;
	font-weight: normal;
}
ul li a:hover{
	background-color: #f5f7f591;
    color: rgb(119, 119, 153);
}

ul li ul li:hover .model-item {
	display: block;
    left: 55px;
    z-index: 1000;
}

ul li ul{
	position: absolute;
	left: 95px;
	top: 0px;
	display: none;
}

ul li ul li ul li:hover ul{
	display: block;
    z-index: 1000;
}

.footer {
    display: flex;
    background-color: rgba(75, 73, 73, 0.808);
    margin-top: 20px;
  }
  .footer__copyright {
    margin-left: 30px; 
    margin-top: 0px;
    margin-bottom: 0px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 100;
    text-align: left;
    color: #fcf8f8;
    }