﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-size: 18px;
    line-height: 18px;
    color: #1D3559;
    font-family: 'Roboto', sans-serif;
}

#wrapper {
    position: relative;
    max-width: 750px;
    margin: 16px auto;
    border: 1px solid #000;
    overflow: hidden;
    background: #FFF url(background-device.jpg) no-repeat;
}

header {
    margin: 0 0 28px 36px;
    position: relative;
    display: flex;
    justify-content: flex-end;
}

header a {
    position: absolute;
    top: 0%;
    width: 19.4%;
    height: 74%;
    right: 0%;
}

article {
    padding: 0 36px 22px;
}

footer {
    margin: 0;
    padding: 16px 136px;
    position: relative;
}

h1 {
    margin: 0 0 3px;
    font-size: 22px;
    line-height: 26px;
    text-align: left;
}

h1 small {
    font-size: 9px;
    line-height: 1.4;
    font-weight: normal;
    display: block;
}

h2 {
    font-size: 20px;
    line-height: 24px;
}

h3 {
    font-size: 25px;
    color: #FFF;
    line-height: 29px;
    flex: 1 1 0;
}

a {
    color: #000;
    text-decoration: none;
}

img {
    max-width: 100%;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
    font-weight: bold;
    width: 224px;
}

ul li {
    position: relative;
    margin: 0 0 7px;
    min-height: 42px;
    display: flex;
    align-items: center;
    column-gap: 10px;
}

ul li:before {
    content: url(icon.png);
}

.flex {
    display: flex;
    flex-wrap: wrap;
}

.flex section {
    width: 274px;
}

.flex section:last-of-type {
    margin: -84px 0 0;
    position: relative;
}

.flex section:last-of-type ul {
    width: 226px;
}

.flex p {
    font-size: 13px;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 19px;
}

ul span {
    font-size: 105%;
}

.text {
    position: absolute;
    top: 348px;
    left: 564px;
    color: #FFF;
    font-size: 12px;
}

h3 a {
    color: #44C9F2;
    font-weight: normal;
    font-size: 21px;
}

h3 small {
    font-size: 16px;
    display: block;
}

.qrcode {
    position: absolute;
    top: 20px;
    right: 142px;
    display: flex;
    align-items: flex-start;
    gap: 19px;
}

.text img {
    display: none;
}

@media all and (max-width:749px) {
    #wrapper {
        border: none;
        background: url(background-mobile.jpg);
        background-size: cover;
        height: auto;
        margin: 0;
    }

    header {
        margin: 0 0 0 16px;
    }

    header img {
        width: 100%;
    }

    .flex {
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 16px;
        margin: 0 0 16px;
    }

    ul {
        width: 100% !important;
    }

    .flex section {
        width: 46%;
    }

    .flex section:last-of-type {
        margin: 0;
    }

    .pad {
        padding-top: 10px;
    }

    br {
        display: none;
    }

    h2 {
        background: #1F3356;
        padding: 4px;
        margin: 0 0 10px;
        display: inline-block;
    }

    .text {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .text img {
        display: block;
    }

    article {
        padding: 1rem
    }

    footer {
        background: #1F3356;
        padding: 1rem;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 14px;
    }

    :is(footer, h2) br {
        display: inline;
    }

    .qrcode {
        position: static;
    }
}

@media all and (max-width:580px) {
    .flex section {
        width: 100%;
    }

    footer {
        flex-direction: column;
        align-items: center;
    }

    h3 {
        text-align: center;
    }
}