#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 400;
    font-size: 20px;
    color: #0E0E11;
    padding-bottom: 200px;
    padding-top: 80px;
}

#header-text {
    flex-basis: 55%;
    font-weight: 400;
    font-size: 20px;
    color: #0E0E11;
}

#header-images {
    position: relative;
}

#header-images img:not(:last-child) {
    position: absolute;
}

#office {
    right: -227px;
    top: 70px;
    border-radius: 50%;
}

#header-ellipse {
    right: -227px;
    top: -130px;
}

#header-woman {
    top: -30px;
}

#construction-worker {
    top: 250px;
    left: -150px;
    border-radius: 50%;
}

#header-work-bag, #header-user, #header-ellipse-big {
    display: none;
}


/** Reasons section */
#reasons-wrapper {
    flex-direction: row-reverse;
    justify-content: space-evenly;
}

#reasons-wrapper > div > img {
    border-radius: 0 220px 0 0;
    width: 80%;
    height: 100%;
    object-fit: contain;
    max-width: 1200px;
}

.reason-title-text {
    display: flex;
    align-items: center;
    gap: 20px;
}


/** Team section */
#team h4, #team h2, #branches h4, #branches h2 {
    text-align: center;
}

#employees {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 100px;
    font-weight: 400;
    line-height: 180%;
    color: #808080;
}

#employees a, #branches-wrapper a {
    color: #D52827;
    text-decoration-line: underline;
}

#employees > div {
    width: 47%;
    max-height: 350px;
    display: flex;
    justify-content: space-around;
    background-color: #e0e0e0;
    border-radius: 75px;
}

#employees > div > div {
    max-width: 265px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

#employees h5, #branches-wrapper h5 {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 700;
    font-size: 23px;
    line-height: 26px;
    color: #112B3C;
}

#employees img {
    width: 30%;
    height: 100%;
    object-fit: contain;
    padding: 20px 0;
}


/** Branches section */
#branches {
    margin-bottom: 100px;
}

#branches-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 80px;
}

.branch {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.map {
    min-width: 350px;
    height: 300px;
    z-index: 1;
}


/** Screen size specific styling */
@media screen and (min-width: 0px) and (max-width: 936px) {
    #header {
        flex-direction: column;
        margin-bottom: 300px;
    }

    #header-ellipse {
        display: none;
    }

    #header-ellipse-big {
        display: initial;
        right: -350px;
        top: 50px;
    }

    #construction-worker {
        top: 400px;
        left: 0;
        z-index: 1;
    }

    #header-woman {
        top: 220px;
        left: -80px;
    }

    #header-work-bag {
        display: initial;
        bottom: -240px;
        left: -50px;
        z-index: 2;
    }

    #header-user {
        display: initial;
        top: 20px;
        right: -70px;
    }

    #reasons-wrapper > div > img {
        border-radius: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

@media screen and (min-width: 801px) and (max-width: 936px) {
    #office {
        right: -350px;
    }
}

@media screen and (min-width: 576px) and (max-width: 800px) {
    #office {
        right: -270px;
    }
}

@media screen and (min-width: 0px) and (max-width: 575px) {
    #office {
        right: -170px;
    }
}

@media screen and (min-width: 0px) and (max-width: 1044px) {
    #employees {
        flex-direction: column;
        align-items: center;
        row-gap: 40px;
        column-gap: 0;
    }

    #employees > div {
        width: 100%;
        justify-content: space-around;
        border-radius: 35px;
    }

    #employees img {
        width: 20%;
        height: 10%;
    }
}

@media screen and (min-width: 937px) and (max-width: 1600px) {
    #office {
        right: -100px;
    }

    #construction-worker {
        left: -180px;
    }
}