@font-face {
    font-family: 'Fira Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/fira-sans-v16-latin-regular.eot');
    src: local(''), url('../fonts/fira-sans-v16-latin-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/fira-sans-v16-latin-regular.woff2') format('woff2'), url('../fonts/fira-sans-v16-latin-regular.woff') format('woff'), url('../fonts/fira-sans-v16-latin-regular.ttf') format('truetype'), url('../fonts/fira-sans-v16-latin-regular.svg#FiraSans') format('svg');
}

@font-face {
    font-family: 'Fira Sans';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/fira-sans-v16-latin-700.eot');
    src: local(''), url('../fonts/fira-sans-v16-latin-700.eot?#iefix') format('embedded-opentype'), url('../fonts/fira-sans-v16-latin-700.woff2') format('woff2'), url('../fonts/fira-sans-v16-latin-700.woff') format('woff'), url('../fonts/fira-sans-v16-latin-700.ttf') format('truetype'), url('../fonts/fira-sans-v16-latin-700.svg#FiraSans') format('svg');
}

@font-face {
    font-display: swap;
    font-family: 'Fira Sans';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/fira-sans-v18-latin-300.eot');
    src: url('../fonts/fira-sans-v18-latin-300.eot?#iefix') format('embedded-opentype'), url('../fonts/fira-sans-v18-latin-300.woff2') format('woff2'), url('../fonts/fira-sans-v18-latin-300.woff') format('woff'), url('../fonts/fira-sans-v18-latin-300.ttf') format('truetype'), url('../fonts/fira-sans-v18-latin-300.svg#FiraSans') format('svg');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    color: #40454a;
    font-family: 'Fira Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 20px;
    font-weight: 300;
}

#wrapper {
    max-width: 522px;
    height: 525px;
    margin: 1rem auto;
    border: 1px solid #40454a;
    background: url('../images/background.jpg') no-repeat;
    position: relative;
    padding-left: 206px;
}

header figure {
    display: none
}

header p {
    position: absolute;
    bottom: 26px;
    left: 30px;
    font-size: 25px;
    line-height: 1;
    color: #fff;
}

header p span {
    display: block;
    padding-left: 20px;
}

header p strong {
    font-size: 35px;
    font-style: italic;
}

article {
    padding: 30px 0 0;
}

.title {
    margin: 35px 0 0;
    padding: 10px;
}

.padding {
    padding: 30px 20px 0 95px;
}

.padding p {
    padding-top: 7px;
}

.padding p img {
    display: inline;
    margin: 0 0 -1px;
}

.logo {
    position: absolute;
    bottom: 30px;
    right: 32px;
}

h1 {
    font-size: 32px;
    line-height: 1.1;
    font-style: italic;
}

h1 sup {
    font-weight: 300;
    font-size: 47%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
    top: -0.5em;
}

h2 {
    font-size: 31px;
    line-height: 1.1;
    text-align: center;
    color: #2592cf;
    font-style: italic;
}

h2 span {
    display: block;
    font-weight: 300;
    font-size: 20px;
    line-height: 21px;
    color: #40454a;
    font-style: normal;
}

h3 {
    font-size: 20px;
    line-height: 21px;
    padding-left: 20px;
}

:is(h1, h3) {
    color: #fff;
}

:is(h1, h2, h3) {
    text-align: center;
}

h3 small {
    font-weight: 300;
    font-size: 16px;
}

h3 img {
    display: inline;
    margin: 0 8px -2px 0;
}

h4 {
    font-size: 21px;
    line-height: 1.2;
    color: #009fda;
    font-style: italic;
}

img {
    max-width: 100%;
    display: block;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #40454a;
    text-decoration: none;
    white-space: nowrap;
}

@media only screen and (max-width:522px) {
    #wrapper {
        border: none;
        margin: 0;
    }

    .padding {
        padding: 30px 20px 0 75px;
    }

    p {
        hyphens: auto;
        text-wrap: pretty
    }

    p span {
        white-space: nowrap;
    }

    .logo {
        width: 30%
    }
}

@media only screen and (max-width:495px) {
    #wrapper {
        background: none;
        height: auto;
        padding: 0
    }

    header {
        position: relative;
    }

    header figure {
        display: block;
    }

    article {
        padding: 16px;
    }

    .title {
        background: #1c9bc3 url('../images/background-title.jpg') repeat-y;
        padding: 10px
    }

    :is(h1, h4) br {
        display: none
    }

    h3 {
        padding: 10px 0 0 0
    }

    .padding {
        padding: 16px 20px 0 0;
    }

    .logo {
        width: auto;
        right: 10px
    }
}

@media only screen and (max-width:440px) {
    .logo {
        position: static;
        display: flex;
        justify-content: center;
    }

    .padding :is(h4, p) {
        text-align: center;
    }
}