* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    background: #f7ac131a;
    color: #555;
    font-family: sans-serif;
    font-size: 20px;
    font-weight: 300;
    height: 100%;
    line-height: 1.4;
    margin: 0;
    padding: 0;
}

.container {
    overflow: hidden;
    padding: 0 140px;
}

.bg {
    margin: auto;
    max-width: 675px;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bg:after {
    content: "";
    z-index: -1;
    display: block;
    position: absolute;
    top: -150px;
    left: -230px;
    height: 600px;
    width: 600px;
    background-image: radial-gradient(
        circle closest-side,
        #fff 0%,
        rgba(226, 226, 226, 0) 100%
    );
}

h1,
h2,
h3,
h4 {
    color: #444;
    font-weight: 300;
}

h1 {
    font-size: 1.5em;
}

h2 {
    font-size: 1.25em;
}

a {
    color: #c65631;
    text-decoration: none;
}

a:hover,
a:active {
    text-decoration: underline;
}

strong {
    font-weight: 700;
}

abbr {
    text-decoration: none;
}

li {
    margin-bottom: 0.5em;
}

.tel,
.postal-code {
    white-space: nowrap;
}

main {
    flex: 1 0 auto;
    width: 100%;
}

header {
    position: relative;
    flex: none;
    margin-top: 120px;
}

header:before {
    content: "";
    background: url("img/logo.png") no-repeat;
    width: 236px;
    height: 135px;
    display: block;
    position: relative;
    top: 0;
    left: 0;
    background-size: 236px;
}

footer {
    flex: none;
    padding-bottom: 70px;
    font-size: 12px;
}

footer .adr {
    margin-bottom: 0.25em;
}

@media (max-width: 992px) {
    .container {
        padding: 0 70px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 40px;
    }
    header {
        margin-top: 100px;
    }
}

@media (max-width: 568px) {
    .container {
        padding: 0 25px;
        font-size: 15px;
    }
    header {
        margin-top: 25px;
    }
    .bg:after {
        top: -200px;
        left: -200px;
        height: 500px;
        width: 500px;
    }
}

@media (-webkit-min-device-pixel-ratio: 1.5),
    (min-device-pixel-ratio: 1.5),
    (min-resolution: 144dpi),
    (min-resolution: 1.5dppx) {
    header:before {
        background: url("img/logo.png") no-repeat;
        background-size: 236px;
    }
}

header:before,
header h1,
main,
footer {
    opacity: 0;
}

header:before {
    animation: fadeInPrimary 800ms ease forwards;
}

header h1 {
    animation: fadeInPrimary 800ms ease 250ms forwards;
}

main,
footer {
    animation: fadeInPrimary 1600ms ease 400ms forwards;
}

@-webkit-keyframes fadeInPrimary {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes fadeInPrimary {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.not-found main {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.not-found h1 {
    font-size: 4rem;
}
