*,
*::after,
*::before {
    box-sizing: border-box;
    margin: 0;
}

body {
    margin: 0;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    color: #f1f1f3;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}

p {
    margin: 0, 0, 10px, 0;
}

/*====================================================
CONTAINER
====================================================*/

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}




/*====================================================
HEADER
====================================================*/

.header {
    height: 100px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
}

.header.fixed {
    position: fixed;
    background-color: #30344e;
    height: auto;
}

.header.fixed .header__inner {
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: 0;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    padding: 37px 0;
    border-bottom: 1px solid #4d5066;
}


/*====================================================
NAV
====================================================*/
.nav {
    font-size: 13px;
    font-weight: 700;
    display: flex;
}

.half__link {
    text-transform: uppercase;
    text-decoration: none;
    color: #a5a8be;
    margin-left: 50px;
    transition-property: color;
    transition-duration: 0.2s;
}

.half__link:first-child {
    margin: 0;
}

.half__link:hover {
    color: white;
}

/*====================================================
INTRO
====================================================*/

.intro {
    display: flex;
    flex-direction: column;
    padding-top: 100px;
    justify-content: center;
    height: 750px;
    background: url("images/intro-bg.jpg") center no-repeat;
    background-size: cover;
}

.intro__inner {
    max-width: 970px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.intro__title {
    font-size: 65px;
    font-family: 'Open Sans', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.1;
    margin-bottom: 30px;
}

.intro__subtitle {
    font-size: 22px;
    line-height: 1.5;
    font-weight: 400;
    margin-bottom: 80px;
}

/*====================================================
BUTTON
====================================================*/

.btn {
    background-color: #e84545;
    text-transform: uppercase;
    padding: 18px 55px 18px 47px;
    border: none;
    border-radius: 2px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background .1s linear;
    text-align: center;
}

.btn--red {
    color: #f1f1f3;
}
.btn--red:hover {
    background-color: #f12828;
}

/*====================================================
FEATURES
====================================================*/

.features {
    display: flex;
    flex-wrap: wrap;
    margin: 90px;
}

.features__item {
    width: 33.33333%;
    text-align: center;
    padding: 0 40px;
    margin: 38px 0;
}

.features__icon {
    margin-bottom: 25px;
}

.features__title {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
    color: #2d3033;
    margin-bottom: 30px;
}

.features__text {
    color: #6c7279;
    font-size: 14px;
    line-height: 1.5;
    width: 100%
}


/*====================================================
WORKS
====================================================*/

.works {
    display: flex;
    flex-wrap: wrap;
}
.works__item {
    width: 25%;
    height: 350px;
    position: relative;
    overflow: hidden;
    border-right: 1px solid white;
    border-bottom: 1px solid white;
}

.works__item:hover .works__content {
    opacity: 1;
}

.works__photo {
    min-width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    transform: translate3d(-50%, -50%, 0)
}

.works__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    background-color: rgba(232, 69, 69, 0.9);
    opacity: 0;
    transition: opacity .2s linear;
}

.works__title {
    font-size: 14px;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    margin-bottom: 12px;
}

.works__text {
    font-size: 14px;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
}


/*====================================================
TEAM
====================================================*/

.team {
    margin: 100px 0 70px;
}

.team__inner {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;;
}

.team__item {
    width: 25%;
    padding: 0 15px;
    margin-bottom: 30px;
}

.team__photo {
    display: block;
    max-width: 100%;
    height: auto;
    margin-bottom: 30px;
}

.team__name {
    color: #2d3033;
    font-size: 22px;
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    margin-bottom: 15px;
}

.team__prof {
    color: #e84545;
    font-size: 13px;
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.team__text {
    color: #6c7279;
    font-style: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

/*====================================================
SOCIAL
====================================================*/

.social {
display: flex;
}

.social--footer {
    justify-content: center;
}

.social__item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e8ecee;
    margin-right: 5px;
    background-color: #fff;
    transition: background .1s linear;
}

.social__item:last-child {
    margin-right: 0px;
}

.social__item:hover {
   background-color: #e8ecee;
}

.social__item:hover .social__icon {
    fill: black;
}

.social--footer .social__item {
    background-color: transparent;
    border-width: 2px;
    border-color: white;
    border-radius: 2px;
}

.social--footer .social__item:hover {
    background-color: white;
}

.social__icon {
    display: block;
    height: 18px;
    fill: #c6cacc;
    transition: fill .1s linear;
}

.social--footer .social__icon {
    fill: white;
}

/*====================================================
REVIEWS
====================================================*/

.reviews {
    background-color: #53354a;
    overflow: hidden;
}

.reviews__item {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
}

.reviews__photo {
    width: 50%;
    height: 500px;
    position: relative
}

.reviews__Slider {
    height: 500px;
    overflow: hidden;
}

.reviews__img {
    position: absolute;
    top: 50%;
    right: 0;
    z-index: 1;
    transform: translateY(-50%);
}

.reviews__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
    padding-left: 80px;
}

.reviews__text {
    font-family: 'Cardo', sans-serif;
    font-size: 36px;
    font-style: italic;
    line-height: 1.2;
    margin-bottom: 30px;
}


.reviews__author {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
}

/*====================================================
DOWNLOAD
====================================================*/

.download {
   margin: 95px 0;
}

.download__inner {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
}


.download__title {
    font-size: 28px;
    color: #2d3033;
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
}

.download__subtitle {
    font-size: 13px;
    color: #2d3033;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 20px;
}

.download_btn {
    margin-top: 40px;
    background-color: #e84545;
    min-width: 280px;
    min-height: 45px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    color: white;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 13px;
    transition: background .1s linear;
    text-align: center;
}

.btn--red {
    color: #f1f1f3;
}
.btn--red:hover {
    background-color: #f12828;
}

/*====================================================
FOOTER
====================================================*/

.footer {
    background-color: #3a3e64;
}

.footer__inner {
    padding: 70px 0 90px;
    display: flex;
    flex-wrap: wrap;
}

.footer__block {
    width: 33.33333%;
    text-align: center;
    justify-content: center;
}

.footer__title {
    font-size: 14px;
    font-weight: 700;
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
    color: white;
    margin-bottom: 20px;
}

.footer__address {
    color: rgba(255, 255, 255, .5);
    opacity: 50px;
    font-style: normal;
    font-size: 14;
    line-height: 1.5;
}

.footer__text {
    color: rgba(255, 255, 255, .5);
    opacity: 50px;
    font-style: normal;
    font-size: 14;
    line-height: 1.5;
}

/*====================================================
COPYRIGHT
====================================================*/

.copyright {
    padding: 25px 0;
    background-color: #313454;
}

.copyright__text {
    text-align: center;
    margin-top: 25px;
    line-height: 1.5;
    color: #676872;
    font-size: 14px;
}

.name__author {
    color: white;
}

/*====================================================
MEDIA
====================================================*/

.burger {
    display: none;
    border: 0;
    background: none;
    cursor: pointer;
    padding: 9px 2px;
}

.burger__item {
    display: block;
    width: 30px;
    height: 3px;
    background-color: white;
    font-size: 0;
    color: transparent;
    position: relative;
}

.burger__item::before,
.burger__item::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    z-index: 1;
    background-color: white;
}

.burger__item::before {
    top: -7px;
}

.burger__item::after {
    bottom: -7px;
}

/*=====================================================*/

@media (max-width: 1300px) {

    /*works*/
    .works__item {
        width: 50%;
    }
}

@media (max-width: 991px) {

    /*nav*/
    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        right: 0;
        top: 100%;
        width: 100%;
        text-align: right;
    }

    .nav.show {
        display: flex;
    }

    .half__link {
        padding: 9px 15px;
        background-color: #2b2f49;
        margin-left: 0;
    }

    /*burger*/
    .burger {
        display: block;
    }

    /*intro*/
    .intro__title{
        font-size: 40px;
    }

    /*features*/
    .features__item {
        width: 50%;
    }

    /*team*/*/
    .team {
        margin: 50px 0 30px;
    }

    .team__item {
        width: 50%;
        text-align: center;
    }

    .team__photo {
        margin-left: auto;
        margin-right: auto;
    }

    .social {
        justify-content: center;
    }

    /*reviews*/
    .reviews__item {
        padding-top: 15px;
    }

    .reviews__photo {
        width: 100%;
        overflow: hidden;
    }

    .reviews__content {
        width: 100%;
        padding: 25px;
    }

    .reviews__author {
        margin-bottom: 5px;
    }

    /*download*/
    .download {
        margin: 75px 0;
    }
}

@media (max-width: 767px) {

    /*intro*/
    .intro {
        height: auto;
        padding-top: 130px;
        padding-bottom: 30px;
    }

    .intro__title{
        font-size: 30px;
    }

    .intro__subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /*features*/
    .features {
        margin: 40px 0;
    }

    .features__item {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    /*works*/
    .works__item {
        width: 100%;
        height: 300px;
    }

    /*team*/
    .team {
        margin: 50px 0 30px;
    }

    .team__item {
        width: 100%;
        text-align: center;
    }

    .team__text {
        padding: 0 75px;
    }

    /*reviews*/
    .reviews__text {
        font-size: 27px;
    }

    /*download*/
    .download {
        margin: 55px 0;
    }

    .download__title {
       text-align: center;
        font-size: 25px;
    }

    .download_btn btn--red {
        max-width: 255px;
    }

    /*footer*/
    .footer__inner {
        padding-bottom: 60px;
        padding-top: 25px;
        padding-bottom: 50px;
    }

    .footer__block {
        width: 100%;
        margin-top: 50px;
        padding-left: 0;
        padding-right: 0;
    }

    .footer__text {
        text-align: center;
        padding: 0 15px;
    }
}

@media (max-width: 414px) {

    /*reviews*/
    .reviews__img{
        right: -130px;
    }
}



