/* Шапка */

* {
    font-family: Arial;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #fff;
    position: fixed;
    box-shadow: 0px 2px 17px 1px rgba(18, 31, 41, 0.24);
}

header .flex {
    max-width: 1500px;
    width: 80%;
    min-width: 300px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 auto 0 auto;
}

header .message {
    font-size: 24px;
    color: #100e81;
}

.message p {
    margin: 10px 0 0 0;
}

.message a {
    color: #100e81;
    text-decoration: none;
}

header a, header img{
    height: 85px;
}

header a {
    padding: 2px 0 2px 0;
}

/* Тело */

body {
    margin: 0;
}

main p, footer p {
    color: #474747;
}

h1 {
    margin-top: 0;
    margin-bottom: 100px;
    text-align: center;
    color: #fff;
}

.flex {
    max-width: 1500px;
    width: 80%;
    min-width: 300px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 50px auto 0 auto;
}

h2 {
    margin-top: 0;
}

.inflex {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* О НАС */

.inflex p {
    text-align: justify;
    width: 50%;
    font-size: 24px;
    margin: 0;
    line-height: 45px;
}

.photo {
    width: 30%;
    border-radius: 10px;
}

.photo img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 1px 2px 6px 3px rgba(34, 60, 80, 0.2);
}

/* УСЛУГИ */

.service {
    width: 400px;
    height: 200px;
    border-radius: 10px;
    box-shadow: 1px 2px 6px 3px rgba(34, 60, 80, 0.2);
}

.service:nth-child(-n+3) {
    margin-bottom: 75px;
}

.service h3 {
    margin-top: 30px;
    font-size: 22px;
    text-align: center;
}

.service p {
    line-height: 30px;
    width: 70%;
    margin: 0 auto 0 auto;
    font-size: 20px;
    text-align: center;
    font-weight: 600;
    color: #696969;
}

/* ПРИМЕРЫ РАБОТ */

.flex-example {
    width: 100%;
}

.example {
    width: 400px;
    min-width: 300px;
    box-shadow: 1px 2px 2px 1px rgba(34, 60, 80, 0.2);
    border-radius: 10px;
    padding: 0 0 10px 0;
}

.example img {
    width: 100%;
    border-radius: 10px 10px 0 0;
}

.example p {
    text-align: center;
    margin: 5px auto 5px auto;
    width: 70%;
    font-size: 20px;
    line-height: normal;
    font-weight: 600;
    color: #696969;
}

/* Обратная связь */

#feedback {
    display: none;
    font-size: 20px;
    text-align: center;
    margin: 30px auto 0 auto;
}

/* Подвал */

footer {
    margin-top: 50px;
    box-shadow: 0 -2px 2px 0 rgba(34, 60, 80, 0.2);
}

footer p {
    margin: 0;
    padding: 10px 0 10px 0; 
    text-align: center;
    font-size: 20px;
    line-height: 25px;
    font-weight: 600;
    color: #696969;
}

/* Адаптив */

@media (max-width:1600px) {
    .photo {
        width: 35%;
    }

    .inflex {
        gap: 50px;
    }

    .service:nth-child(-n+6) {
        width: 25%;
        min-width: 300px;
        height: 210px;
        margin: 0;
    }

    .example {
        width: 25%;
    }
}

@media (max-width:1250px) {
    header .flex {
        max-width: 700px;
    }

    header a, header img{
        height: 60px;
    }

    header .message {
        font-size: 20px;
        color: #100e81;
    }

    .message p {
        margin: 5px 0 0 0;
    }

    h1 {
        margin-bottom: 70px;
    }

    .flex {
        margin-top: 30px;
        max-width: 700px;
    }

    #about .inflex {
        display: block;
    }

    #about p {
        margin-bottom: 30px;
    }

    #about p, #about .photo {
        width: 100%;
    }

    .example:last-child {
        margin: auto;
    }
}

@media (max-width:815px) {
    #about .inflex p {
        font-size: 18px;
        line-height: 30px;
    }

    .inflex {
        justify-content: center;
    }

    .service:nth-child(-n+6) {
        height: auto;
        padding-bottom: 20px;
    }
}

@media (max-width:700px) {
    header .flex {
        justify-content: center;
    }

    header p {
        display: none;
    }

    #feedback {
        display: block;
    }

    #feedback p {
        margin: 10px 0 0 0;
    }

    #feedback a {
        text-decoration: none;
    }

    .message {
        color: #100e81;
    }

    footer {
        margin-top: 30px;
    }
}

@media (max-width:400px) {
    h1 {
        font-size: 26px;
        margin-bottom: 55px;
    }

    #feedback {
        max-width: 300px;
        font-size: 20px;
        line-height: 25px;
    }
}