* {
    box-sizing: border-box;
    font-family: Lato, Verdana, Arial, Helvetica, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%), url("../img/bg_mobile.webp");
    background-attachment: fixed;
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: center 50px;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #1C2B4C url("../img/header_mobile.webp");
    background-size: auto 100%;
    background-repeat: no-repeat;
    padding: 15px 0;
    height: 50px;
    box-shadow: 0 10px 10px 0 rgba(0, 0, 0, .2);
}

header a {
    float: left;
}

header img {
    display: block;
    width: 50px;
    height: auto;
    margin: -15px 0;
}

header h1 {
    float: left;
    color: #efefef;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0 0 0 10px;
    padding: 0;
    line-height: 1;
}

main {
    flex: 1;
    width: 100%;
    padding: 20px 0;
    margin: 50px 0 0;
}

main .box {
    background-color: rgba(255, 255, 255, .75);
    margin: 0 0 20px;
    padding: 15px;
    border-radius: 3px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, .1);
}

main h2 {
    margin: 0 0 15px;
    padding: 0;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
    color: #304A7F;
}

main h3 {
    margin: 0 0 5px;
    padding: 0;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    font-style: italic;
    color: #304A7F;
}

main p,
main ul {
    margin: 0 0 15px;
    padding: 0;
    line-height: 1.4;
}

main li {
    margin: 0 0 5px 18px;
    padding: 0;
}

main p:last-child,
main ul:last-child,
main li:last-child,
main .box:last-child {
    margin-bottom: 0;
}

footer {
    width: 100%;
    border-top: #333;
    background-color: #eee;
    padding: 25px 0;
}

footer p {
    font-size: .75rem;
}

.wrapper {
    margin: 0 auto;
    padding: 0 15px;
    max-width: 1000px;
}

a {
    color: #304A7F;
    text-decoration: underline;
}

a:hover {
    color: #4870BF;
    text-decoration: none;
}

@media screen and (min-device-width: 500px) {
    body {
        background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%), url("../img/bg_desktop.webp");
        background-position: center 90px;
    }

    header {
        height: 90px;
        background-image: url("../img/header_desktop.webp");
    }

    header img {
        width: 90px;
    }

    header h1 {
        font-size: 2rem;
        line-height: 60px;
    }

    main {
        margin: 90px 0 0;
    }
}