* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.body {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    padding: 0;
    margin: 0;
}


.mask{
    width: 100%;
    height: 100%;
    background: rgb(226, 226, 226);
    position: fixed;
    top: 0;
    z-index: 1000;
    transition:  .6s;
    display: flex;
    justify-content: center;
    align-items: center;
}   

.loader {
    margin: auto;
    width: 75px;
    height: 75px;
    border:10px solid rgb(190, 190, 190);
    border-radius: 50%;
    border-left-color: grey;
    animation: loader 1.3s linear infinite;
   }
   @keyframes loader {
    100% {
     transform: rotate(360deg);
    }
   }

.hide{
    opacity: 0;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
}

.header {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 24px 60px 0 43px;
    list-style: none;
}

.menu_1 {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
}

.menu_2 {
    padding: 0;
    display: flex;
    list-style: none;
}

.menu_2 .menu_item {
    margin: 0 30px;
}

.menu_item {
    text-decoration: none;
    font-style: normal;
    font-weight: 600;
    font-size: 15px;
    line-height: 18px;
    color: #000000;
    transition: .3s;
}

.menu_item:hover {
    padding: 8px;
    padding-bottom: 6px;
    border: 1px solid;
    border-radius: 20px;
    border-bottom: 2px solid;
    color: #E51937;
}

.menu_item.item2:hover {
    padding-bottom: 6px;
    border-bottom: 2px solid;
    color: grey;
}

.menu_item.item3:hover {
    padding-bottom: 6px;
    border-bottom: 2px solid;
    color: #b6031e;
}

.menu_item.item4:hover {
    padding-bottom: 6px;
    border-bottom: 2px solid;
    color: #1e41b6;
}

.item1 {
    margin-right: 45px;
}

.item2 {
    margin-right: 45px;
}

.item3 {
    margin-right: 45px;
}

.item4 {
    margin-right: 45px;
}

.tesla_title {
    margin-top: 70px;
    text-align: center;
    background-image: url(/img/modely.png);
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 594px;
    z-index: 100;
}

.tesla_title h1 {
    margin: 0;
    padding: 0;
    font-style: normal;
    font-weight: 600;
    font-size: 90px;
    line-height: 110px;
    color: #000000;
}

.tesla_title p {
    font-style: normal;
    font-weight: 500;
    font-size: 15px;
    line-height: 18px;
    color: #000000;
}

.tesla_info {
    display: flex;
    justify-content: center;
}

.info_block {
    display: flex;
    align-items: center;
    margin-right: 100px;
}

.info_block_img {
    width: 46px;
    margin-right: 14px;
}

.info_block_text1 {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 35px;
    line-height: 43px;
    color: #000000;
}

.info_block_text1 span {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    color: #000000;
}

.info_block_text2 {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 12px;
    line-height: 15px;
    color: #000000;
}

.info_block_text3 {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: bold;
    font-size: 13px;
    line-height: 16px;
    text-align: center;
    text-transform: uppercase;
    color: #000000;
}

.info_block_img3 {
    width: 22px;
    margin-right: 7px;
}

.order {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: bold;
    font-size: 13px;
    line-height: 16px;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
}

.main {
    margin-top: 57px;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    color: #fff;
}

.main_inner {
    background-image: url(/img/salony.png);
    background-repeat: no-repeat;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.left_section h2 {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    margin-right: 250px;
    margin-top: 75px;
    font-weight: 600;
    font-size: 70px;
    line-height: 85px;
    color: grey;
}

.right_section {
    width: 440px;
    background: grey;
    padding-top: 35px;
    padding-left: 50px;
    padding-right: 75px;
}

.main_top h3 {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 30px;
    line-height: 37px;
    color: #fff;
    padding: 0;
    margin: 0;
}

.main_top p {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 15px;
    line-height: 18px;
    color: #fff;
    margin: 0;
    margin-top: 11px;
    margin-bottom: 54px;
}

.features {
    display: flex;
    align-items: center;
    margin-bottom: 35px;
}

.features img {
    margin-right: 19px;
    align-self: center;
}

.features__accent {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 35px;
    line-height: 43px;
    color: #fff;
}

.features__title {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    color: #fff;
    margin: 0;
    padding: 0;
}

.features__text {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: normal;
    font-size: 12px;
    line-height: 15px;
    color: #fff;
    margin: 0;
    padding: 0;
}

.main_bottom {
    display: flex;
    align-items: center;
}

.main_bottom img {
    align-self: center;
}

.information {
    display: flex;
    align-items: center;
}

.information img {
    align-self: center;
}

.info__text {
    font-style: normal;
    font-weight: bold;
    font-size: 13px;
    line-height: 16px;
    text-align: center;
    text-transform: uppercase;
    color: #FFFFFF;
}


/*---------------------------slider---------------------------------------------*/

.all {
    margin: 0 auto;
}

#slider {
    /*положение слайдера*/
    position: relative;
    text-align: center;
    top: 10px;
}

#slider {
    /*центровка слайдера*/
    margin: 0 auto;
}

#slides article {
    /*все изображения справа друг от доруга*/
    width: 20%;
    float: left;
}

#slides .image {
    /*устанавливает общий размер блока с изображениями*/
    width: 500%;
    line-height: 0;
}

#overflow {
    /*сркывает все, что находится за пределами этого блока*/
    max-width: 100%;
    overflow: hidden;
}

article img {
    /*размер изображений слайдера*/
    max-width: 100%;
}

#desktop:checked~#slider {
    /*размер всего слайдера*/
    max-width: 100%;
    /*максимальнная длинна*/
}


/*настройка переключения и положения для левой стрелки*/


/*если свич1-5 активны, то идет обращение к лейблу из блока с id контролс*/

#switch1:checked~#controls label:nth-child(5),
#switch2:checked~#controls label:nth-child(1),
#switch3:checked~#controls label:nth-child(2),
#switch4:checked~#controls label:nth-child(3),
#switch5:checked~#controls label:nth-child(4) {
    background-image: url(/prev.png) no-repeat;
    /*заливка фона картинкой без повторений*/
    float: left;
    margin: 0 0 0 -84px;
    /*сдвиг влево*/
    display: block;
    height: 68px;
    width: 68px;
}


/*настройка переключения и положения для правой стрелки*/

#switch1:checked~#controls label:nth-child(2),
#switch2:checked~#controls label:nth-child(3),
#switch3:checked~#controls label:nth-child(4),
#switch4:checked~#controls label:nth-child(5),
#switch5:checked~#controls label:nth-child(1) {
    background-image: url(/next.png) no-repeat;
    /*заливка фона картинкой без повторений*/
    float: right;
    margin: 0 -84px 0 0;
    /*сдвиг вправо*/
    display: block;
    height: 68px;
    width: 68px;
}

label,
a {
    /*при наведении на стрелки или переключатели - курсор изменится*/
    cursor: pointer;
}

.all input {
    /*скрывает стандартные инпуты (чекбоксы) на странице*/
    display: none;
}


/*позиция изображения при активации переключателя*/

#switch1:checked~#slides .image {
    margin-left: 0;
}

#switch2:checked~#slides .image {
    margin-left: -100%;
}

#switch3:checked~#slides .image {
    margin-left: -200%;
}

#switch4:checked~#slides .image {
    margin-left: -300%;
}

#switch5:checked~#slides .image {
    margin-left: -400%;
}

#controls {
    /*положение блока всех управляющих элементов*/
    margin: -25% 0 0 0;
    max-width: 100%;
    height: 50px;
}

#active label {
    /*стиль отдельного переключателя*/
    border-radius: 10px;
    /*скругление углов*/
    display: inline-block;
    /*расположение в строку*/
    width: 15px;
    height: 15px;
    background: #bbb;
}

#active {
    /*расположение блока с переключателями*/
    margin: 22% 0 0;
    text-align: center;
}

#active label:hover {
    /*поведение чекбокса при наведении*/
    background: #76c8ff;
    border-color: #777 !important;
    /*выполнение в любом случае*/
}


/*цвет активного лейбла при активации чекбокса*/

#switch1:checked~#active label:nth-child(1),
#switch2:checked~#active label:nth-child(2),
#switch3:checked~#active label:nth-child(3),
#switch4:checked~#active label:nth-child(4),
#switch5:checked~#active label:nth-child(5) {
    background: #1e41b6;
    border-color: #1e41b6 !important;
}

#slides .image {
    /*анимация пролистывания изображений*/
    transition: all 800ms cubic-bezier(0.770, 0.000, 0.175, 1.000);
}

#controls label:hover {
    /*прозрачность стрелок при наведении*/
    opacity: 0.6;
}

#controls label {
    /*прозрачность стрелок при отводе курсора*/
    transition: opacity 0.2s ease-out;
}


/*---------------------------slider---------------------------------------------*/


/*---------------------------FOOTER START----------------------------------------------*/

.footer {
    max-width: 1440px;
    margin: 0;
    padding: 0;
}

.footer_inner {
    display: flex;
}

.footer_left {
    color: #fff;
    background: grey;
    max-width: 440px;
}

.footer_left_head {
    margin: 35px 60px 55px 50px;
}

.footer_left_head h3 {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 30px;
    line-height: 37px;
}

.footer_left_head p {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 15px;
    line-height: 18px;
}

.footer_left_body h3 {
    margin-left: 56px;
    margin-bottom: 29px;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 30px;
    line-height: 37px;
}

.rating {
    margin-right: 60px;
    margin-left: 56px;
    margin-bottom: 16px;
    display: flex;
    font-style: normal;
    font-weight: bold;
    font-size: 17px;
    line-height: 21px;
    text-transform: uppercase;
    align-items: center;
    justify-content: space-between;
}

.rating_title span {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: bold;
    font-size: 10px;
    line-height: 12px;
    text-transform: uppercase;
    color: #FFFFFF;
    opacity: 0.8;
}

.footer_left_bottom {
    margin-top: 90px;
    margin-left: 66px;
}

.features__title_model {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 50px;
    line-height: 61px;
}

.features__title_model p {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 25px;
    line-height: 30px;
}

.features__title2 {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 50px;
    line-height: 61px;
    margin: 0;
    padding: 0;
}

.features__text2 {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 25px;
    line-height: 30px;
    margin: 0;
    padding: 0;
}

.main_bottom2 {
    display: flex;
    align-items: center;
    margin-top: 90px;
    margin-bottom: 60px;
}

.footer_right {
    position: relative;
}

.footer_model_text {
    max-width: 931px;
    margin-top: 140px;
    margin-left: 60px;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 200px;
    line-height: 244px;
    color: grey;
    opacity: 0.1;
}

.footer_img {
    position: absolute;
    top: 110px;
    left: -220px;
    width: 1250px;
}

.footer_info {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 17px;
    line-height: 15px;
    color: #000000;
    position: absolute;
    display: flex;
    align-items: flex-start;
}

.footer_info img {
    align-self: center;
}

.footer_info.item_1 {
    left: 10px;
    top: 354px;
}

.footer_info.item_2 {
    left: 410px;
    top: 170px;
}

.footer_info.item_3 {
    left: 520px;
    top: 580px;
    align-items: flex-end;
}

.footer_logo {
    margin-top: 630px;
    margin-left: 365px;
}

.menu_item22 {
    text-decoration: none;
    font-style: normal;
    font-weight: 600;
    font-size: 25px;
    line-height: 18px;
    color: #fff;
    transition: .3s;
}

.menu_item22:hover {
    padding-bottom: 1px;
    border-bottom: 1px solid;
    color: #E51937;
}


/*-----------------------------FOOTER END-------------------------------------------------------*/


/*


















/
/
/
/
/*-----------------------------button------------------------*/

.frame {
    width: 90%;
    margin: 40px auto;
    text-align: center;
}

button {
    margin: 20px;
}

.custom-btn {
    width: 130px;
    height: 40px;
    color: grey;
    border-radius: 5px;
    padding: 10px 25px;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5), 7px 7px 20px 0px rgba(0, 0, 0, .1), 4px 4px 5px 0px rgba(0, 0, 0, .1);
    outline: none;
}

.btn-5 {
    width: 130px;
    height: 40px;
    line-height: 42px;
    padding: 0;
    border: none;
    background: rgb(114, 114, 114);
    background: linear-gradient(0deg, rgb(109, 109, 109) 0%, rrgb(116, 116, 116)100%);
}

.btn-5:hover {
    color: grey;
    background: transparent;
    box-shadow: none;
}

.btn-5:before,
.btn-5:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 2px;
    width: 0;
    background: grey;
    box-shadow: -1px -1px 5px 0px grey, 7px 7px 20px 0px #0003, 4px 4px 5px 0px #0002;
    transition: 400ms ease all;
}

.btn-5:after {
    right: inherit;
    top: inherit;
    left: 0;
    bottom: 0;
}

.btn-5:hover:before,
.btn-5:hover:after {
    width: 100%;
    transition: 800ms ease all;
}


/*-----------------------------button_end--------------------------------------*/


/*-----------------------------button------------------------*/

.frame {
    width: 90%;
    margin: 40px auto;
    text-align: center;
}

button {
    margin: 20px;
}

.custom-btn {
    width: 130px;
    height: 40px;
    color: #fff;
    border-radius: 5px;
    padding: 10px 25px;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5), 7px 7px 20px 0px rgba(0, 0, 0, .1), 4px 4px 5px 0px rgba(0, 0, 0, .1);
    outline: none;
}

.btn-6 {
    width: 130px;
    height: 40px;
    line-height: 42px;
    padding: 0;
    border: none;
    background: grey;
    background: linear-gradient(0deg, grey 0%, grey 100%);
}

.btn-6:hover {
    color: black;
    background: transparent;
    box-shadow: none;
}

.btn-6:before,
.btn-6:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 2px;
    width: 0;
    background: grey;
    box-shadow: -1px -1px 5px 0px #fff, 7px 7px 20px 0px #0003, 4px 4px 5px 0px #0002;
    transition: 400ms ease all;
}

.btn-6:after {
    right: inherit;
    top: inherit;
    left: 0;
    bottom: 0;
}

.btn-6:hover:before,
.btn-6:hover:after {
    width: 100%;
    transition: 800ms ease all;
}


/*-----------------------------button_end--------------------------------------*/


/*-----------------------------АДАПТАЦИЯ старт-------------------------------------------------*/

@media (max-width: 375px) {
    .container {
        width: 375px;
    }
    .menu_item {
        display: none;
    }
    .tesla_title {
        min-height: 200px;
        background-position: center bottom;
    }
    .tesla_title h1 {
        font-weight: 600;
        font-size: 50px;
        line-height: 61px;
    }
    .tesla_title p {
        font-weight: 500;
        font-size: 10px;
        line-height: 12px;
    }
    .tesla_info {
        flex-wrap: wrap;
    }
    nav {
        margin: 5px 31px 43px 2px;
    }
    .info_block {
        margin-right: 40px;
    }
}

@media (max-width: 765px) {
    .container {
        max-width: 765px;
    }
    .menu_item {
        display: none;
    }
}


/*------------------------------------АДАПТАЦИЯ- конец---------------------*/