* {
    margin: 0;
    padding: 0;
    font-family: 'Fira Sans Condensed', sans-serif;
    background-color: #f4e3d1;
}


/* Хедер */


header {
    width: 100%;
    height: 150px;
}

.bar {
    width: 1200px;
    height: 150px;
    margin-left: auto;
    margin-right: auto;
}

.bar>li {
    width: 300px;
    list-style: none;
    float: left;
    height: 150px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    text-align: center;
}

.bar>li:nth-child(2) {
    width: 600px;
}

a {
    text-decoration: none;
    color: black;
    transition: ease-out 0.2s;
}

a:hover {
    color: crimson;
}

li i {
    font-size: 25px;
    padding: 8px;
}

.contacts_phone {
    padding: 10px;
    width: 200px;
}

.contacts_vk {
    padding: 10px;
}


/* Main */

.row:after {
    clear: both;
    content: " ";
    display: table;
} 

article {
    width: 1200px;
    margin-right: auto;
    margin-left: auto;
    margin-top: 35px;
}

h2 {
    text-align: center;
    font-weight: 400;
    text-decoration: underline;
    font-size: 30px;
}

span {
    color: crimson;
    font-weight: 600;
}

section {
    margin-top: 25px;
    float: left;
    margin-right: 30px;
}


/* Акции месяца */


.month_sale {
    width: 376px;
    text-align: center;
    border: 2px solid #293947;
    padding: 15px  0;
    font-size: 20px;
}

.month_sale:last-child {
    margin-right: 0px;
}


/* Услуги */


.services_item {
    width: 380px;
}

.services_item:nth-child(3) {
    margin-right: 0px;
}

.services_item:nth-child(6) {
    margin-right: 0px;
}

.services_item:last-child {
    margin-left: 410px;
}

.services_item img {
    width: 100%;
}

.img_container {
    display: block;
    position: relative;
}

.img_container:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: ease-out 0.2s;
}

.img_container:hover:after {
    background: #f4e3d1;
    opacity: 0.5;
}

h3 {
    font-weight: 400;
    text-align: center;
    font-size: 20px;
    margin-top: 15px;
}

/*Запчасти*/

.spares_item {
    width: 240px;
    margin-left: auto;
    margin-right: auto;
}

.spares_item img {
    width: 100%
}

.spare {
    display: flex;
    margin-bottom: 35px;
}

.spares_img img {
    height: 250px;
}

.spares_img {
    display: flex;
    justify-content: center;
    margin-bottom: 35px;
}

/* Адрес */


.adress_hours {
    text-align: center;
    font-size: 20px;
    margin-top: 10px;
}

iframe {
    margin-top: 25px;
    border: 2px solid #293947;
    float: right;
    width: 500px;
    height: 502px;
}

.adress_photos {
    width: 318px;
    float: left;
}

.adress_photos img {
    width: 100%;
}


/* Футер */


footer {
    width: 100%;
    min-width: 1200px;
    text-align: center;
    background-color: #dcac8c;
    margin-top: 35px;
    padding-bottom: 70px;
}

footer h2 {
    text-decoration: none;
    font-weight: 600;
    padding: 15px 0;
    background-color: #dcac8c;
}

footer h5 {
    text-decoration: none;
    font-weight: 200;
    padding: 0 0 15px;
    background-color: #dcac8c;
}

#toTop {
    font-size: 20px;
    width: 180px;
    background-color: #f4e3d1;
    padding: 10px 0;
    border: 2px solid #293947;
    border-radius: 15px;
    margin-right: auto;
    margin-left: auto;
    text-transform: uppercase;
    font-weight: 600;
}

#toTop:hover {
    background-color: #293947;
    color: #f4e3d1;
    transition: ease-out 0.2s;
}


/* Страницы с услугами */


table {
    width: 70%;
    margin-right: auto;
    margin-left: auto;
    border: 2px solid #293947;
    border-collapse: collapse;
    margin-bottom: 35px;
}

caption {
    font-size: 25px;
    background-color: #293947;
    color: #f4e3d1;
    padding: 10px;
}

th {
    padding: 10px 0;
    font-size: 20px;
}

td {
    padding: 10px 15px;
    font-size: 18px;
    border: 2px solid #293947;
}

.category {
    text-align: center;
    text-transform: uppercase;
    background-color: #dcac8c;
}

.description {
    margin-bottom: 35px;
    width: 70%;
    margin-right: auto;
    margin-left: auto;
    font-size: 16px;
}

.button_back {
    font-size: 20px;
    width: 180px;
    background-color: #f4e3d1;
    padding: 10px 0;
    border: 2px solid #293947;
    border-radius: 15px;
    margin-right: auto;
    margin-left: auto;
    text-transform: uppercase;
    font-weight: 600;
    text-align: center;
}

.page_article h2 {
    text-decoration: none;
    font-size: 25px;
    margin-bottom: 15px;
}

.page_article {
    margin-bottom: 35px;
    margin-right: auto;
    margin-left: auto;
    width: 70%;
    font-size: 18px;
    line-height: 25px;
}

.page_article_item {
    width: 100%;
    white-space: pre-line;
    text-align: justify;
}

figure img {
    width: 320px;
}

figure {
    display: block;
    float: right;
    margin: 0 20px;
}

figcaption {
    text-align: center;
    font-size: 15px;
}

.articles {
    position: absolute;
    width: 12%;
    left: 35px;
    font-size: 18px;
}

.articles h2 {
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 25px;
}

.page_article_item img {
    width: 450px;
}

.page_article_img {
    text-align: center;
}

/* Покупки */

.purchase_item {
    width: 380px;
}

.purchase_item img {
    width: 100%;
}

.purchase_item:last-child {
    margin-right: 0px;
    margin-bottom: 35px;
}

.purchase_description {
    font-size: 18px;
    text-align: center;
    padding: 0 40px 35px 40px;
}



/* Медиа запросы*/


@media (min-width: 790px) and (max-width: 1199px) {
    
    article {
        width: 790px;
    }
    
    .services_item:nth-child(even) {
        margin-right: 0;
    }
    
    .services_item:nth-child(3) {
        margin-right: 30px;
    }
    
    .services_item:last-child {
    margin-left: 205px;
    }
        
    footer {
        min-width: 790px;
    }
    
    .bar {
        width: 790px;
    }
    
    .bar>li {
        width: 200px;
        font-size: 18px;
    }
    
    .bar>li:first-child {
        width: 230px;
    }
    
    .bar>li:nth-child(2) {
        width: 360px;
    }
    
    .month_sale {
        width: 246px;
        margin-right: 20px;
        font-size: 18px;
        height: 72px;
        line-height: 36px;
    }
    
    .month_sale:nth-child(2) {
        line-height: 24px;
    }
    
    .month_sale:nth-child(3) {
        line-height: 24px;
    }
    
    iframe {
        float: none;
        margin-left: 143px;
    }
    
    .adress_photos:nth-child(odd) {
        margin-left: 62px;
    }
    
    table {
        width: 95%;
    }
    
    .description {
        width: 95%;
    }
    
    .page_article {
        width: 95%;
    }
    
    .purchase_item:nth-child(2) {
        margin-right: 0px;
    }
    
    .purchase_item:last-child {
        margin-left: 205px;
    }
    
}


@media (min-width: 380px) and (max-width: 789px) {
    
    article {
        width: 380px;
    }
    
    footer {
        min-width: 380px;
    }
    
    .month_sale {
        width: 380px;
        padding: 15px 0;
        line-height: normal;
        height: auto;
    }
    
    
    .services_item:last-child {
    margin-left: 0px;
    }
        
    
    iframe {
        width: 380px;
        height: 377.72px;
        float: right;
    }
    
    .adress_photos {
        padding-right: 0;
        margin-left: 31px;
    }
    
    .adress_photos:nth-child(odd) {
        margin-left: 31px;
    }
    
    .bar {
        width: 380px;
    }
    
    .bar>li:first-child {
        width: 380px;
    }
    
    .bar>li:nth-child(2) {
        width: 380px;
    }
    
    .bar>li:last-child {
        width: 380px;
        margin-bottom: 35px;
    }
    
    table {
        width: 100%;
    }
    
    .description {
        width: 100%;
    }
    
    .page_article {
        width: 100%;
    }
    
    .page_article h2 {
        margin-bottom: 0px;
    }
    
    figure {
        float: none;
        text-align: center;
    }
    
        .articles {
        position: static;
        width: 380px;
        margin-right: auto;
        margin-left: auto;
        text-align: center;
    }
    
    .articles li {
        list-style: none;
    }
    
    .page_article_item img {
    width: 380px;
}
    
    .page_article h2 {
        margin-bottom: 20px;
    }
    
}

@media screen and (max-width: 379px) {
    
    .bar {
        width: 320px;
    }
    
    .bar>li {
        width: 320px;
    }
    
    .bar>li:nth-child(2) {
        width: 320px;
    }
    
    article {
        width: 300px;
    }
    
    .services_item {
        width: 300px;
    }
    
    .services_item:last-child {
    margin-left: 0px;
    }   
    
    .month_sale {
        width: 296px;
        font-size: 18px;
    }
    
    iframe {
        width: 300px;
        height: 350px;
    }
    
    .adress_photos {
        width: 300px;
    }
    
    footer {
        min-width: 320px;
    }
    
    table {
        width: 100%;
    }
    
    caption {
        font-size: 22px;
    }
    
    th {
        font-size: 17px;
    }
    
    td {
        font-size:  15px;
    }
    
    .description {
        font-size: 13px;
        width: 100%;
    }
    
    .button_back {
        font-size: 17px;
    }
    
    .page_article {
        width: 100%;
        margin-top: 35px;
    }
    
    figure {
        float: none;
        margin: 0px;
    }
    
    .page_article h2 {
        margin-bottom: 0px;
    }
    
    figure img {
        width: 300px;
    }
    
        .articles {
        position: static;
        width: 320px;
        margin-right: auto;
        margin-left: auto;
        text-align: center;
    }
    
    .articles li {
        list-style: none;
    }
    
    .page_article img {
        width: 300px;
    }
    
    .page_article h2 {
        margin-bottom: 20px;
    }
    
}

@media screen and  (min-width: 790px) and (max-width: 1084px) {
    
    .articles {
        position: static;
        width: 790px;
        margin-right: auto;
        margin-left: auto;
        text-align: center;
    }
    
    .articles li {
        list-style: none;
    }
    
}