* {
    margin: 0;
    padding: 0;
    /* font-size: 0; */
    outline: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0,0,0,0);
    -webkit-clip-path: inset(100%);
    clip-path: inset(100%);
}


html, body {
    height: 100vh;
    width: 100%;
    overflow: hidden;
  }

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url(./img/main-background.jpg);
    background-position: bottom left;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    overflow: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    z-index: 1;
    padding:30px 0;
    background-color:rgba(0, 0, 0, 0.4);
}

body::after {
    content: "";
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    overflow: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    z-index: 1;
    padding:30px 0;
    background-image: url(./img/gazelle.png);
    width: 100%;
    height: 85%;
    position: absolute;
    right: 20px;
    bottom:20px;
    background-size:contain;
    background-repeat: no-repeat;
    background-position: bottom right;
}

ul {
    list-style: none;
}



.main_section {
    display: flex;
    flex-direction: column;
}

/* header start */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    box-sizing:border-box;
    padding: 20px 50px;
    background-color: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 999;
}

.main-nav__logo-img {
    width: 150px;
    height: auto;
}

.header-tel {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff6600;
}

/* header end */

/* main start */

main {
    z-index: 3;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing:border-box;
    padding: 150px 100px 0 100px;
    /* background-color:rgba(0, 0, 0, 0.6); */
}

.main-title {
    font-size: 3.6rem;
    font-weight: 700;
    z-index: 3;
    margin-bottom: 20px;
}

.main-subtitle {
    z-index: 3;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 40px;
}

/* services start */

.main-services__item {
    display: flex;
    justify-content: flex-start;
    line-height: 30px;
    font-weight: 400;
}

.main-services__item::before {
    content: "";
    width: 25px;
    height: 25px;
    margin-right: 10px;
    background-image: url(./img/list-style.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

/* services end */

/* contacts start */

.main-contacts__list {
    display: flex;
    justify-content: flex-start;
    margin-top: 40px;
}

.main-contacts__item:not(:first-of-type) {
    width: 25px;
    height: 25px;
    position: absolute;
    bottom: 50px;
}
.main-contacts__item:nth-child(2) {
    margin-left: 0;
}

.main-contacts__item:nth-child(3) {
    margin-left: 35px;
}

.main-contacts__item:nth-child(4) {
    margin-left: 70px;
}

.main-services__phone-link {
    display: flex;
    justify-content: center;
    flex-direction: row-reverse;
    width: 300px;
    text-align: center;
    padding: 10px 40px;
    border-radius: 30px;
    color: #fff;
    font-weight: 400;
    background-color: #fc741c;
    text-decoration: none;
    box-shadow: 0 0 30px rgba(252, 116, 28, 1);
    transition: .2s;
}

.main-services__phone-link:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.main-services__phone-link .main-contacts__link-img {
    width: 20px;
    height: auto;
    margin-right: 20px;
    color: #fff;
}

footer {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    position: absolute;
    color: lightgray;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 3;
    margin: 0;
    text-align: center;
}

.main-copyright {
    font-size: 0.8rem;
    margin: 0 0 25px 95px;
}

/* contacts end */

/* main end */

/* mobile */

@media screen and (min-width: 769px) and (max-width: 1024px) {

    header {
        padding: 20px 40px;
    }

    .main-nav__logo-img {
        width: 150px;
        height: auto;
    }
    
    .header-tel {
        font-size: 1.2rem;
    }

    /* header end */

    /* main start */

    main {
        padding: 120px 80px;
    }

    .main-title {
        font-size: 2.6rem;
    }

    .main-subtitle {
        font-size: 1.4rem;
    }

    /* main end */

    /* footer start */

    .main-copyright {
        margin-left: 75px;
    }

    /* footer end */
}

@media screen and (min-width: 481px) and (max-width: 768px) {
    
        /* header start */

        header {
            padding: 20px 40px;
        }
    
        .main-nav__logo-img {
            width: 125px;
            height: auto;
        }
        
        .header-tel {
            font-size: 1.2rem;
        }
    
        /* header end */

        /* main start */
        
        main {
            justify-content: center;
            padding: 100px 60px;
        }

        .main-title {
            margin-bottom: 10px;
            text-align: center;
            font-size: 2.2rem;
        }
    
        .main-subtitle {
            margin-bottom: 40px;
            text-align: center;
            font-size: 1.2rem;
        }
    
        /* main end */

        /* footer start */

        .main-copyright {
            margin-left: 55px;
        }

        /* footer end */
}

@media screen and (min-width: 1px) and (max-width: 480px) {

        /* header start */

        header {
            padding: 15px 10px;
        }
    
        .main-nav__logo-img {
            width: 100px;
            height: auto;
        }
        
        .header-tel {
            font-size: 1rem;
        }
    
        /* header end */

        /* main start */

        main {
            align-items: center;
            padding: 80px 15px;
        }

        .main-title {
            margin-bottom: 10px;
            text-align: center;
            font-size: 2.2rem;
        }
    
        .main-subtitle {
            margin-bottom: 40px;
            text-align: center;
            font-size: 1.2rem;
        }

        .main-services__phone-link {
            margin-top: 0;
            width: 200px;

        }

        .main-contacts__list {
            justify-content: center;
        }
        
        .main-contacts__item:nth-child(2) {
            margin-right: 34px;
        }
        
        .main-contacts__item:nth-child(3) {
            margin-left: 34px;
        }
        
        /* .main-contacts__item:nth-child(4) {
            margin-left: 70px;
        } */
    
        /* main end */

        /* footer start */

        footer {
            justify-content: center;
        }

        .main-copyright {
            margin-left: 0;
        }

        /* footer end */

        body::after {
            /* z-index: 0; */
            height: 100%;
            background-size: 110%;
            background-position: left bottom;
        }

}