*{
    box-sizing: border-box;
}

:root{
    --main-color:#2e739b;
    --main-hover:#6991a8;
    --secon-color:#940f15;
    --text-dark:#242424;
    --text-light:#ffffff;
}

html{
    scroll-behavior: smooth;
    width:100%;

    /*<weight>: Use a value from 100 to 900*/
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 100;
    font-style: normal;
    overflow-x: hidden;
}

body{
    margin: 0;
    overflow-x: hidden;
}

img{
    max-width: 100%;
    height: auto;
}

header{
    display: inline-flex;
    justify-content: center;
    width:100%;
    background-color: var(--text-light);
    align-items: center;
    flex-direction: column;
}

header hr{
    margin: 0;
    width: 100%;
    height: 2px;
    color: var(--main-color);
    background-color: var(--main-color);
}

header > div {
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header > div{
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

header div div {
    width: fit-content;
    height:max-content;
    align-items: center;
    justify-content: center;
}

header .cont-data{
    margin-left: 30px;
    color:var(--main-color);
    white-space: nowrap;
}

.logo-img{
    height: 98px;
    margin-right: 10px;
}

.scroll-button{
    margin-right: 6px;
    background-color:var(--main-color);
    color:var(--text-light);
    padding: 10px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 25px;
}

.cont-data{
    font-size: 24px;
    margin: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
    flex-direction: row;
}
.cont-data img{
    height: 36px;
    margin: 0;
    margin-right: 10px;
}
.cont-data h4{
    margin: 0;
}

.scroll-button:hover{
    background-color:var(--main-hover);
}

.about-us{
    background-image: url('./img/containers-railways-view.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover; /* Растягивает картинку на весь блок [5] */

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-wrap: wrap;
    width: 100%;
}

.about-us h2{
    margin: 0;
    color: var(--text-light);
    font-size: 50px;
    margin: 20px;
}

.about-us-main{
    width: min(900px, 90%);
    color:var(--text-light);
    background-color: rgba(46, 115, 155, 0.5);
    margin: 20px;
    margin-top: 0;
    padding: 20px;
    border-radius: 25px;
}
.about-us-main p{
    font-size: clamp(18px, 2vw, 30px);
}

.services{
    width: 70%;
    background-color: rgba(46, 115, 155, 0.5);
    padding: 20px;
    margin:0;
    border-radius: 25px;
    margin-bottom: 20px;
}

.services h3{
    color: var(--text-light);
    font-size: 40px;
    margin:0;
    margin-bottom: 20px;
}

.services div{
    flex-wrap: wrap;
    justify-content: center;
    display: flex;
}

.serv-block{
    margin:0;
    width: 40%;
    background-color: var(--text-light);
    color:var(--text-dark);
    padding: 15px;
    margin: 10px;
    border-radius: 25px;
}

.serv-block h4{
    margin: 5px;
    color:var(--main-color);
}


footer{
    display: flex;
    justify-content: center;
    text-align: center;
    background-color: var(--main-color);
    color:var(--text-light);
}

footer h5{
    font-size: 24px;
    margin: 10px;
}

footer div{
    margin: 20px;
}









/* =========================
   MOBILE ADAPTATION
   ========================= */

@media (max-width: 900px){

    header div{
        justify-content: right;
    }

    header div div{
        justify-content: left;
    }
    header div div h1{
        margin-top: 5px;
    }

    .logo-img{
        height: 70px;
    }

    .cont-data{
        font-size: 14px;
        margin: 6px;
    }

    header .cont-data{
        font-size: 14px;
        margin: 6px;
        text-align: right;
        width:100%;
    }
    header .cont-data img{
        display: none;
    }
    header .cont-data h4{
        width:100%;
        text-align:right;
    }

    .about-us h2{
        font-size: 32px;
    }

    .about-us-main{
        width: 90%;
        padding: 15px;
    }

    .about-us-main p{
        font-size: 20px;
    }

    .services{
        width: 90%;
    }

    .services h3{
        font-size: 28px;
    }

    .services div{
        flex-direction: column;
        align-items: center;
    }

    .serv-block{
        width: 90%;
    }

    .serv-block p{
        font-size: 16px;
    }

    footer h5{
        font-size: 16px;
    }

}

@media (max-width: 800px){

    .serv-block{
        width: 90%;
    }

}


@media (max-width: 600px){

    .logo-img{
        height: 70px;
    }

    header h1{
        font-size: 20px;
    }

    .cont-data{
        font-size: 16px;
    }

    .cont-data img{
        height: 24px;
    }

}