/* Общие стили */
body{
    margin:0;
    padding:0;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 16px;
    margin-bottom:40px;
    color: #000000;
    min-height: 100%;




    align-content: center;
    align-items: center;
    background: white;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    /* height: 100vh; */
    justify-content: flex-start;
    /* margin: 0px; */
    /* width: 100vw; */
}

@-ms-viewport {
    width: device-width;
    }
@-o-viewport {
    width: device-width;
    }
@viewport {
    width: device-width;
    }
  


img{
    max-width: 100%;
}

a{
    text-decoration: none;
    color:white;
}
a:focus {
    outline: 1px solid #ff0000;
}

h1{
    padding:0;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 50px;
    margin:0px;
    margin-bottom:20px;
    color: #650000;
    text-shadow:  #3a353f 1px 1px 0, #3a353f 2px 2px 0, 
    #3a353f 2px 2px 0, #3a353f 2px 2px 0, 
    #3a353f 2px 2px 0;
    /* min-height: 100%; */
    display: block;
    width:auto; 
    text-align: center; 
    margin-bottom:50px;
}

h3{
    padding:0;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 50px;
    margin:0px;
    margin-bottom:20px;
    color: #000000;
    display: block;
    /* width:auto;  */
    text-align: center;
    /* background-color: rgb(231 66 70);    */
}

hr {
    /* display: block; */
    /* box-sizing: border-box; */
    border: none; /* Убираем границу */
    background-color: rgb(238, 238, 238); /* Цвет линии */
    color: rgb(238, 238, 238); /* Цвет линии для IE6-7 */
    height: 2px; /* Толщина линии */
    /* width:1440px; */
    margin-top:70px;
    margin-bottom:70px;
    margin-left:0px;
    width:100%;
    /* clear:left; */
   }


.visually-hidden{
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.clearfix::after{
    content: "";
    display: table;
    clear: both;
}

.block{
    box-sizing: border-box;
}

.index-background-image,
.company-background-image,
.contacts-background-image,
.orders-background-image,
.assortment-background-image
{
    margin:0px;
    position: absolute;
    /* width: 1440px; */
    z-index: -1;
    background-color:  rgb(207, 205, 205);
    background-image: url("../Img/image_index.jpg");
    background-position-x: -830px;
    background-position-y: 150px;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.2;
}

.company-background-image{
    background-color:  rgb(207, 205, 205);
    background-position-x: 0px;
    background-position-y: -80px;
    background-image: url("../Img/auto_image.jpg");    
}
.contacts-background-image{
    background-color:  rgb(207, 205, 205);
    background-position-x: -100px;
    background-position-y: -400px;
    background-image: url("../Img/yale.jpg");    
}
.orders-background-image{
    background-color:  rgb(207, 205, 205);
    background-position-x: 0px;
    background-position-y: -100px;
    background-image: url("../Img/Mechanism.jpg");    
}
.assortment-background-image{
    background-color:  rgb(207, 205, 205);
    background-position-x: -300px;
    background-position-y: -230px;
    background-image: url("../Img/Mercedes.jpg");    
}


/* Стили для элементов разметки */

/* Блок позиционера */
.header-background{
    background-color: rgb(180, 180, 180);
    width: 1440px;
    margin-bottom:80px;
}
.layout-positioner {
    /* border: 2px dashed #3498db; */
    width:1160px;
    margin-left: 140px;
    margin-right: 100px;
}

.layout-positioner::after {
    display:table;
    content: "";
    clear: both;
}

/* Блок навигации */
.logo{
    margin:0px;
    width:218px;
    height:189px;
    display:inline-block;
    /* background: #e6e6ff; */
    background-image:url("../img/nikmos.png");
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left:0px;
}
.logo:hover{
    /* width:160px; */
    /* height:65px; */
    opacity: 0.8;
}

.logo:active{
    /* width:160px; */
    /* height:65px; */
    opacity: 0.3;
}




.nav-container{
    width:1160px;
    display:flex;
    flex-direction: row;
    justify-content: space-between;
    margin-left: auto;
    margin-right:auto;
}

/* Стиль для меню*/
.nav-container .item {
    margin-left: auto;
    margin-right:auto;
    margin-top: auto;
    margin-bottom:auto;
    text-transform: uppercase;
    /* display:inline-block; */
    /* vertical-align: middle; */
    /* background: #e6e6ff; */
}
.nav-container .item:last-child {
    margin-right:0px;
}

/* Стиль для блока контактов */
.nav-container .phone-item {
    margin-left: auto;
    margin-right:auto;
    margin-top: auto;
    margin-bottom:auto;
    text-transform: uppercase;
    /* margin-right:200px; */
    /* text-transform: uppercase; */
    display:block;
    text-align: right;
    color: rgb(0, 0, 0);
}
/* .nav-container .phone-item:last-child { 
    margin-right:0px;
} */

/* Стиль для списка меню */
.nav-container .item ul {
    display:inline-block;
}

.nav-container .item ul li {
    list-style: none;
    display:inline-block;
    margin-right: 30px;
}
.nav-container .item ul li:last-child {
    margin-right: 0px;
}


.nav-container .phone-item ul {
    display:block;
}

.nav-container .phone-item ul li {
    list-style: none;
    text-align: right;
    display:block;
    /* margin-right: 35px; */
}
.nav-container .phone-item ul li:last-child {
    margin-right: 0px;
}

.nav-button{
    color: rgb(0, 0, 0);
    display:inline-block;
    height:25px;
}

.selected:hover,
.nav-button:hover{
    color: rgb(251, 86, 90);
}

.nav-button:focus,
.nav-button:active,
.selected:focus,
.selected:active
{
    color: rgb(166, 20, 20);
    border-bottom: 3px solid rgb(251, 86, 90);
}


.selected {
    display:inline-block;
    height:25px;
    color: rgb(166, 55, 50);
    border-bottom: 3px solid rgb(251, 86, 90);
}


/* Блок стилей advantage */

.advantages-container {
    width:1180px;
    display:flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    /* background-color: rgb(231 66 70); */
}


.advantages-item {
    flex-basis: 320px;
    display:block;
    width: auto;
    margin-left:auto;
    margin-right:auto;
    margin-top:40px;
    margin-bottom:40px;
    padding-top:40px;
    padding-bottom:40px;   
    /* float:left; */
    /* margin-right:100px; */

}


.advantages-item:last-child {
    margin-right: 0px;
}



.advantages-text {
    text-align: left;
    font-size: 16px;
    line-height: 24px;
    margin-bottom:40px;
}


/* Кнопки блока стилей advantage */

.advantages-button{
    font-family: Roboto;
    font-size: 16px;
    /* font-weight: bold; */
    line-height: 24px;
    text-transform: uppercase;
    width: 160px;
    height:50px;
    text-align: center;
    display: table-cell;
    vertical-align: middle;
    text-decoration: none;
    color: #ffffff;
    border-radius: 3px;
}


.advantages-button-assortment{
    background-color: rgb(251, 86, 90);

}

.advantages-button-speed{
    background-color: rgb(0, 202, 116);

}


.advantages-button-sholder{
    background-color: rgb(0, 202, 116);

}

.advantages-button-assortment:hover{
    background-color: rgb(231, 66, 70);
}

.advantages-button-assortment:active{
    color: rgb(227, 115, 118);
    background-color: rgb(215, 55, 59);
    box-shadow: inset 0 3px 0 0 rgb(193, 49, 53);
}


.advantages-button-speed:hover{
    background-color: rgb(0, 188, 108);
}

.advantages-button-speed:active{
    color: rgb(77, 196, 145);
    background-color: rgb(0, 170, 98);
    box-shadow: inset 0 3px 0 0 rgb(0, 153, 88);
}

.advantages-button-sholder:hover{
    background-color: rgb(0, 188, 108);
}

.advantages-button-sholder:active{
    color: rgb(77, 196, 145);
    background-color: rgb(0, 170, 98);
    box-shadow: inset 0 3px 0 0 rgb(0, 153, 88);
}


/* Стили страницы о компании */

.company-container {
    width:1180px;
    display:flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    /* background-color: rgb(231 66 70); */
}


.company-item {
    flex-basis: 320px;
    display:block;
    width: auto;
    margin-left:auto;
    margin-right:auto;
    margin-top:40px;
    margin-bottom:40px;
    padding-top:40px;
    padding-bottom:40px; 
    /* float:left; */
    /* margin-right:100px; */
    background-color: rgba(231, 66, 70, 0.2);
    border-radius: 20px;

}


.company-title-text {
    text-align:justify;
    font-size: 30px;
    line-height: 30px;
    margin:20px;
    margin-left:0px;
    vertical-align: top;
    padding-left:50px;
    padding-right:50px;
}

.company-text {
    text-align:justify;
    font-size: 20px;
    line-height: 30px;
    margin:0px;
    vertical-align: top;
    padding-left:50px;
    padding-right:50px;
}

.li-text {
    margin-bottom:20px;
}


/* Блок стилей для ассортимента */

.assortment-container {
    width:1160px;
    min-height:500px;
    display:flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
}


.assortment-container1 {
    width:1160px;
    min-height:500px;
    display:flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: stretch;
}

.assortment-item {
    flex-basis: 320px;
    /* background-color: rgb(231 66 70); */
    border: 3px solid black;
    text-align: center;
    box-sizing: border-box;
}


.assortment-item:last-child {
    margin-right: 0px;
}

.assortment-logo {
    margin-top: 20px;
}

.assortment-item ul {
    width:auto;
    box-sizing: border-box;
    margin-left:0px;
    margin-bottom:10px;
}

.assortment-item ul li {
    list-style: none;
    display:flex;
    flex-direction: column;
    display:flex;
    flex-direction: column;
    margin-left: -30px;
    margin-right: auto;
    box-sizing: border-box;
}
.assortment-item ul li:last-child {
    margin-right: 0px;
}







/* Кнопки блока стилей для страницы ассортимента */

.assortment-button{
    font-family: Roboto;
    font-size: 16px;
    line-height: 24px;
    text-transform: uppercase;
    width: 160px;
    height:50px;
    text-align: center;
    display: block;
    text-decoration: none;
    color: #ffffff;
    border-radius: 3px;
    margin: auto;
    box-sizing: border-box;
    padding-top:10px;
    padding-bottom:auto;
    margin-bottom: 20px;
}



.assortment-item img{
    position: relative;
    right: auto;
    left: auto;
    top:-250px;
}

.assortment-item h2{
    position: relative;
    right: auto;
    left: auto;
    top:220px;
}

.assortment-item ul{
    position: relative;
    right: auto;
    left: auto;
    top:230px;
}

.assortment-item a{
    position: relative;
    right: auto;
    left: auto;
    top:250px;
}

.assortment-button-producers{
    background-color: rgb(0, 202, 116);
    position: relative;
}


.assortment-button-producers:hover{
    background-color: rgb(0, 188, 108);
}

.assortment-button-producers:active{
    color: rgb(77, 196, 145);
    background-color: rgb(0, 170, 98);
    box-shadow: inset 0 3px 0 0 rgb(0, 153, 88);
}




/* Блок стилей контактов */

.contacts-container  {
    width:1160px;
    display:flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
}


.contacts-item {
    flex-basis: 50px;
}


.advantages-item:last-child {
    margin-right: 0px;
}

.contacts-bold-text {
    text-align: left;
    font-weight: bold;
    font-size: 25px;
    line-height: 30px;
    margin:0px;
    vertical-align: top;
}

.contacts-text {
    text-align: left;
    font-size: 25px;
    line-height: 30px;
    margin:0px;
    vertical-align: top;
}



/* Стили блока производителей */

.producer-container1{
    width:100%;
    display:flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top:20px;
}

.producer-container2{
    width:100%;
    display:flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top:20px;
}

.producer-item{
    width:100%;
    display:flex;
    flex-direction: row;
    justify-content: space-around;
    margin:auto;
    padding:0px;
}



.producer-button{
    opacity: 0.5;
    /* filter: brightness(0.2); */

}

.producer-button:hover{
    opacity: 1;
    /* filter: brightness(1); */
}

.producer-button:active{
    opacity: 0.1;
    /* filter: brightness(0.1); */
}


/* Стили страницы заказа */

.order-container{
    width:auto;
    height:700px;
    margin-left:100px;
    margin-right:100px;    
    margin-top:70px;
    margin-bottom:80px;
}

.order-item-left {
    display:block;
    width:50%;
    float:left;
    margin:0px;
    padding:0px;
    /* background-color: rgb(255 0 0); */
    margin-bottom: 40px;
    /* width:100px; */
}

.order-item-right {
    display:block;
    width:50%;
    float:right;
    margin:0px;
    padding:0px;
    /* background-color: rgb(0 255 0); */
    /* margin-right:200px; */
}

.order-item-center {
    clear:both;
    width:auto;
    margin:0px;
    padding:0px;
    /* width:762px; */
    margin-bottom:50px;
}


.order-button-container {
    width:auto;
    display:flex;
    flex-direction: row;
    justify-content: space-between;
}

.order-button{
    font-family: Roboto;
    font-size: 16px;
    font-weight: bold;
    line-height: 24px;
    text-transform: uppercase;
    width: 220px;
    height:50px;
    text-align: center;
    display: table-cell;
    vertical-align: middle;
    text-decoration: none;
    color: #ffffff;
    border-radius: 3px;
    background-color: rgb(251, 86, 90);
}


.order-button:hover{
    background-color: rgb(231, 66, 70);
 }
    
.order-button:active{
    color: rgb(227, 115, 118);
    background-color: rgb(215,55, 59);
    box-shadow: inset 0 3px 0 0 rgb(193, 49, 53);
}


.order-text-box{
    width:400px;  
    height:52px;
    border: 2px solid #f5f5f5;
    text-indent: 10px;
    border-radius: 3px;
    background-color: rgb(220, 220, 220);
    word-break: break-all;
}

.order-text-box:hover{
    border: 2px solid rgb(180, 185, 187);
}

.order-text-box:focus{
    border: 2px solid rgb(0, 0, 0);
}

.order-letter-box{
    width:955px; 
    height:320px;
    border: 2px solid #f5f5f5;
    text-indent: 10px;
    border-radius: 3px;
    
}


input:valid:not(:placeholder-shown) {
    border: 2px solid rgb(66, 231, 70); 
}

input:invalid:not(:placeholder-shown) {
    border: 2px solid rgb(231, 66, 70); 
}



/* Стили блока карты */

.map-container{
    width:320px;
    height:308px;
    box-sizing: border-box;
    background-color: black;
    padding:50px;
    padding-top:40px;
    margin-top:55px;
    margin-left:839px;
    /* position: absolute; */

}

.map-image {
    width: 1440px;
    height: 415px;
    background: #e6e6ff;
    background-image:url("../img/map.png");
    background-repeat: no-repeat;
    background-position-y: -180px;
    background-position-x: -40px;
    display: table;
    margin-top: 0px;
    max-width: none;
    margin-bottom: -40px;
    }


.map-title{
    font:inherit;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff;


}

.map-text{
    font:inherit;
    margin-top: 0px;
    margin-bottom: 25px;
    color: rgb(148, 148, 148);
    /* background-color: #ff0000; */

}



.map-button{
    font-family: Roboto;
    font-size: 16px;
    font-weight: bold;
    line-height: 24px;
    text-transform: uppercase;
    width: 220px;
    height:50px;
    text-align: center;
    display: table-cell;
    vertical-align: middle;
    text-decoration: none;
    color: #ffffff;
    border-radius: 3px;
    background-color: rgb(251, 86, 90);
    
}


.map-button:hover{
    background-color: rgb(231, 66, 70);
 }
    
.map-button:active{
    color: rgb(227, 115, 118);
    background-color: rgb(215, 55, 59);
    box-shadow: inset 0 3px 0 0 rgb(193, 49, 53);
}




.footer-background{
    background-color: rgb(200, 200, 200);
    width: 1440px;
    margin-bottom:80px;
}


.bottom-footer-container{
    width:auto;
    display:flex;
    flex-direction: row;
    justify-content: space-between;
    margin:0px;
    margin-top:40px;
    padding:0px;

}
.bottom-footer-item1{
    width:500px;
    margin:0px;
    padding:0px;
    padding-top:50px;
    margin-top:30px;
    /* background-color: rgb(255, 0, 0); */
}

.bottom-footer-item2{
    /* flex-grow: 1; */
    width:280px;
    height: 200px;
    margin:0px;
    /* margin-left:-100px;    */
    /* padding-top:50px; */
    margin-top:40px;
    /* margin-right:62px;  */
    background-image:url("../img/nikmos.png");
    background-repeat: no-repeat;
}


.bottom-footer-item3{
    flex-grow: 1;
    width:615px;
    margin:0px;
    /* margin-left:-100px;    */
    padding-top:30px;
    /* margin-right:62px;  */
}

.bottom-footer-container ul{
    width:290px;
    display:block;
    padding:0px;
    margin:0px;
    margin-right:20px;

    /* text-align: center; */
    /* background-color: rgb(215 55 59); */
}


.bottom-footer-container ul li{
    display:inline-block;
    text-align: center;
    vertical-align: bottom;
    /* background-color: rgb(225, 225, 225); */
    width: 40px; /* задаете свои размеры */
    height: 40px;
    /* border-radius: 50%; */
    border-radius: 10px;
    /* padding:10px; */
    padding-bottom:30px;
    padding-top:-10px;
    padding-left:10px;
    padding-right:10px;
    margin:0px;
    margin-top:10px;
    margin-right:7px;
    
}

.bottom-footer-title{
    font: inherit;
    font-size: 36px;
    font-weight: bold;
    line-height: 36px;
}


.footer-button{
    font-family: Roboto;
    font-size: 16px;
    font-weight: bold;
    line-height: 24px;
    text-transform: uppercase;
    width: 220px;
    height:50px;
    text-align: center;
    display: table-cell;
    vertical-align: middle;
    text-decoration: none;
    border-radius: 3px;
    background-color: rgb(251, 193, 86);   
}


.footer-button:hover{
    background-color: rgb(18, 126, 45);
 }
    
.footer-button:active{
    color: rgb(2, 220, 155);
    background-color: rgb(81, 200, 2);
    box-shadow: inset 0 3px 0 0 rgb(81, 200, 100);
}


/* Стили модальной формы */

#WriteYour {
    width: 962px;
    height: 592px;;
    padding: 15px;
    position: absolute;
    top: 1700px;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    background: #fff;
    box-shadow: 5px 5px 10px #cccccc;
    display: none;
  }

  #WriteYour:target {display: block;}
  .close {
    display: inline-block;
    border: 1px solid #0000cc;
    padding: 0 12px;
    margin: 10px;
    text-decoration: none;
    background: #f2f2f2;
    font-size: 14pt;
    cursor:pointer;
  }
  .close:hover {background: #e6e6ff;}


  h3{
    font-family: inherit;
    font-size: 45px;
    font-weight: bold;
    line-height: 45px;
}

.modal-container{
    width:762px;
    height:592px;
    margin-left:100px;
    margin-right:100px;    
    margin-top:70px;
    margin-bottom:80px;
}

.modal-item-left {
    display:block;
    float:left;
    margin:0px;
    padding:0px;
    /* background-color: rgb(255 0 0); */
    margin-bottom: 40px;
    /* width:100px; */
}

.modal-item-right {
    display:block;
    float:right;
    margin:0px;
    padding:0px;
    /* background-color: rgb(0 255 0); */
    /* margin-right:200px; */
}

.modal-item-center {
    clear:both;
    margin:0px;
    padding:0px;
    /* background-color: rgb(0 255 0); */
    width:762px;
    margin-bottom:50px;
}

.button-container {
    width:750px;
    display:flex;
    flex-direction: row;
    justify-content: space-between;
}



.modal-button{
    font-family: Roboto;
    font-size: 16px;
    font-weight: bold;
    line-height: 24px;
    text-transform: uppercase;
    width: 220px;
    height:50px;
    text-align: center;
    display: block;
    /* vertical-align: middle; */
    text-decoration: none;
    color: #ffffff;
    border-radius: 3px;
    background-color: rgb(251, 86, 90);
}


.modal-button:hover{
    background-color: rgb(231, 66, 70);
 }
    
.modal-button:active{
    color: rgb(227, 115, 118);
    background-color: rgb(215,55, 59);
    box-shadow: inset 0 3px 0 0 rgb(193, 49, 53);
}


.modal-text-box{
    width:360px; 
    height:52px;
    border: 2px solid #f5f5f5;
    text-indent: 10px;
    border-radius: 3px;
}

.modal-text-box:hover{
    border: 2px solid rgb(180, 185, 187);
}

.modal-text-box:focus{
    border: 2px solid rgb(0, 0, 0);
}

.letter-box{
    width:760px; 
    height:120px;
    border: 2px solid #f5f5f5;
    text-indent: 10px;
    border-radius: 3px;
    
}


input:valid:not(:placeholder-shown) {
    border: 2px solid rgb(66, 231, 70); 
}

input:invalid:not(:placeholder-shown) {
    border: 2px solid rgb(231, 66, 70); 
}







