:root {
    --white: #fff;
    --black: #000;
    --accent: #003471;
    --grey: #C4C4C4;
}

@font-face {
    font-family: 'Montserrat';
    src: local('Montserrat-Regular'), url('../fonts/Montserrat-Regular.woff2') format('woff2');
    src: local('Montserrat-Regular'), url('../fonts/Montserrat-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: local('Montserrat-SemiBold'), url('../fonts/Montserrat-SemiBold.woff2') format('woff2');
    src: local('Montserrat-SemiBold'), url('../fonts/Montserrat-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

html {
    box-sizing: border-box;
    height: 100%;
}
  
*,
*::before,
*::after {
    box-sizing: inherit;
}
  
a {
    color: inherit;
    text-decoration: none;
}
  
img {
    max-width: 100%;
    object-fit: cover;
}

ul {
    padding: 0;
    list-style: none;
}

button {
    padding: 0;
    border: none;
    background-color: transparent;
}

body {
    height: 100%;
    font-family: 'Montserrat' , sans-serif;
    font-size: 16px;
    line-height: 1;
    font-weight: 600;
    color: var(--black);
    background-color: var(--white);
}

.wrapper {
    min-width: 100%;
    display: flex;
    flex-direction: column;
}

.main {
    padding-top: 250px;
    flex-grow: 1;
}

.container {
    margin: 0 auto;
    padding: 0 15px;
    max-width: 1230px;
}

.hidden {
    display: none;
}

.black__text {
    color: var(--black);
}

.white__text {
    color: var(--white);
}

.title {
    margin: 0;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 35px;
    color: var(--accent);
    text-transform: uppercase;
}


/***header**/

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 20px solid var(--accent);
    background-color: var(--white);
    z-index: 100;
}

.header__top {
    width: 100%;
    background-color: var(--accent);
}

.contacts {
    margin: 0;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contacts__item {
    font-weight: 600;
    font-size: 16px;
    line-height: 12px;
    transition: opacity 0.3s ease-in-out;
}

.contacts__link span {
    padding: 0;
    padding-left: 50px;
    font-size: 12px;
}

.contacts__item:not(:last-child) {
    margin-right: 10px;
}

.contacts__item:hover {
    opacity: 0.8;
}

.phone {
    fill: var(--white);
}

.pointer {
    stroke: var(--white);
}

.whatsapp {
    fill: var(--white);
}

.header__bottom {
    width: 100%;
    background-color: var(--white);
    background-image: url(/img/road.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.header__bottom-inner {
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__bottom-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo__text {
    margin-bottom: 10px;
    padding-left: 5px;
    font-weight: 600;
    font-size: 25px;
    text-transform: uppercase;
}

.logo__img-black {
    fill: var(--black);
}

.nav {
    flex-basis: 50%;
}

.nav__list {
    display: flex;
    justify-content: space-between;
}

.nav__item {
    font-weight: 600;
    font-size: 20px;
    text-transform: uppercase;
    transition: opacity 0.3s ease-in-out;
}

.nav__item:hover {
    color: var(--accent);
}

.nav__item:not(:last-child) {
    margin-right: 20px;
}


/***promo***/

.promo {
    padding: 5px 0;
    width: 100%;
    height: 8vh;
    position: relative;
    text-align: center;
    border-bottom: 20px solid var(--accent);
    overflow: hidden;
}

.promo__text {
    padding: 0;
    margin: 0;
    position: absolute;
    font-weight: 600;
    font-size: 20px;
    line-height: 20px;
    color: var(--black);
    text-transform: uppercase;
    animation: line-text 20s linear 3;
}

@keyframes line-text {
    0%{
        transform: translateX(0%);
    }
    100%{
        transform: translateX(300%);
    }
}

/***services***/

.services {
    margin-bottom: 50px;
}

.services__title {
    text-align: center;
}

.services__list {
    margin: 0 auto;
    width: 100%;
}

.services__item {
    margin: 0 auto;
    padding: 10px;
    width: 80%;
    text-align: center;
    font-weight: 400;
    font-size: 20px;
    color: var(--accent);
    text-transform: uppercase;
    border: 1px solid var(--accent);
    border-radius: 10px;
    cursor: pointer;
    transition: width .6s ease-in-out;
}

.services__item:not(:last-child) {
    margin-bottom: 10px;
}

.services__item:hover {
    width: 100%;
    color: var(--white);
    background-color: var(--accent);
}

.services__dscr {
    margin: 0 auto;
    padding: 10px 0;
    width: 80%;
}

.card {
    margin: 0;
    padding: 10px;
    padding-left: 20px;
    border: 1px solid var(--grey);
    border-radius: 10px;
}

.card__item {
    margin-bottom: 12px;
    padding-left: 30px;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: var(--black);
    text-transform: uppercase;
}

.car__icon {
    background-image: url(/img/icons/car_icon.svg);
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 20px 20px;
}

/***contacts***/

.contact {
    padding-top: 50px;
    margin-bottom: 50px;
}

.contact__list {
    margin: 0;
    padding: 0;
}

.contact__item {
    font-weight: 600;
    font-size: 20px;
}

.contact__link:hover {
    color: var(--accent);
}

.contact__item:not(:last-child) {
    margin-bottom: 40px;
}

.phone__black {
    fill: var(--black);
}

.whatsapp__black {
    fill: var(--black);
}

.pointer__black {
    stroke: var(--black);
}

/***footer***/

.footer {
    background-color: var(--black);
}

.footer__inner {
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--white);
}

.logo__img-white {
    fill: var(--white);
}






@media (max-width: 650px) {

    .yandex {
        width: 210px;
        height: 70px;
    }

    .header {
        border-bottom: 10px solid var(--accent);
    }

    .header__top-inner {
        display: flex; 
        align-items: center;
        justify-content: space-between;
    }

    .contacts {
        padding-top: 10px;
        margin-bottom: 10px;
    }

    .contacts__item {
        font-size: 12px;
    }

    .contacts__item:not(:last-child) {
        font-size: 12px;
    }

    .contacts__link span {
        padding-left: 20px;
        font-size: 9px;
    }

    .pointer {
        width: 16px;
        height: 16px;
    }

    .phone {
        width: 16px;
        height: 16px;
    }

    .media-650 {
        display: none;
    }

    .burger-menu {
        position: relative;
        width: 30px;
        height: 18px;
        cursor: pointer;
    }
    
    .burger-menu::after,
    .burger-menu::before,
    .burger-menu span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 10%;
        background-color: var(--white);
        transition: all 0.3s ease-in-out;
    }
    
    .burger-menu::before {
        content: '';
        top: 0;
    }
    
    .burger-menu::after {
        content: '';
        bottom: 0;
    }

    .burger-menu span {
        top: 50%;
        transform: scale(1) translate(0, -50%);
    }

    .burger-menu.active span {
        transform: scale(0) translate(0, -50%);
    }
    
    .burger-menu.active::before {
        top: 50%;
        transform: rotate(-45deg) translate(0, -50%);
    }
    
    .burger-menu.active::after {
        top: 50%;
        transform: rotate(45deg) translate(0, -50%);
    }

    .header__bottom-logo {
        margin: 0 auto;
    }

    .nav {
        position: absolute;
        top: 52px;
        right: -300px;
        padding: 20px 10px;
        width: 300px;
        background-color: var(--white);
        overflow: auto;
    }

    .nav.active {
        position: absolute;
        top: 52px;
        right: -300px;
        padding: 20px 10px;
        width: 300px;
        background-color: var(--white);
        overflow: auto;
        right: 0px;
    }

    .nav__list {
        flex-direction: column;
    }

    .nav__item {
        color: var(--black)
    }
        
    .nav__item:not(:last-child) {
        margin: 0;
        margin-bottom: 30px;
    }

    .main {
        padding-top: 180px;
    }

    .promo {
        padding: 5px 0;
        width: 100%;
        height: 5vh;
        position: relative;
        text-align: center;
        border-bottom: 10px solid var(--accent);
        overflow: hidden;
    }

    .promo__text {
        font-size: 12px;
        line-height: 12px;
    }

    .services {
        padding-top: 30px;
        margin-bottom: 30px;
    }

    .title {
        margin-bottom: 15px;
        font-size: 20px;
    }

    
}

@media(max-width:430px) {

    .main {
        padding-top: 230px;
    }

    .promo__text {
        font-size: 12px;
        line-height: 12px;
    }

    .title {
        margin-bottom: 30px;
    }

    .contacts {
        flex-direction: column;
        align-items: flex-start;
    }

    .contacts__item:not(:last-child) {
        margin-bottom: 10px;
    }


    .logo__text {
        font-size: 20px;
    }

    .nav.active {
        position: absolute;
        top: 90px;
        right: -300px;
        padding: 20px 10px;
        width: 300px;
        background-color: var(--white);
        overflow: auto;
        right: 0px;
    }

    .nav__list {
        top: 72px;
        font-size: 18px;
    }

    .services {
        padding-top: 20px;
        margin-bottom: 20px;
    }

    .services__item {
        font-size: 16px;
    }

    .services__item:not(:last-child) {
        margin-bottom: 5px;
    }

    .card__item {
        font-size: 12px;
    }

    .contact__item {
        font-size: 18px;
    }

    .footer__inner {
        padding: 10px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        color: var(--white);
    }

}

