﻿:root {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    line-height: 1.375rem;
    font-size: 1rem;
    font-family: "Open Sans", sans-serif;
    color: #000;
    font-weight: 400;
}

#wrapper {
    position: relative;
    max-width: 530px;
    margin: 1rem auto;
    border: 1px solid #000;
    overflow: hidden;
    background-color: #fff;
}

header {
    margin: 1rem;
    display: flex;
    justify-content: flex-end;
}

article {
    padding: 0 0 0 30px;
}

footer {
    margin: 20px 0 0;
}

:is(strong, h1, h2, h3) {
    font-weight: 700;
}

h1 {
    margin: 1rem 0 7px;
    font-size: 16px;
    line-height: 20px;
}

h2 {
    font-size: 18px;
    margin: 1rem 0;
    line-height: 22px;
}

h3 {
    font-size: 0.8125rem;
    margin: 1rem 0;
    line-height: 1.125rem;
}

p {
    margin: -4px 0 8px;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #000000;
    white-space: nowrap;
    text-decoration: none;
}

img {
    max-width: 100%;
}

ul {
    margin: 0;
    list-style: none;
}

ul li {
    padding-left: 1rem;
    background: url(icon.jpg) no-repeat 0 5px;
}


.box {
    background: #d11438;
    padding: 13px 15px 1px;
    font-weight: bold;
    width: 202px;
    margin: -25px 0 0;
    font-size: 14px;
    color: #FFF;
    line-height: 1;
}

.box img {
    margin: 0 0 8px;
}

.flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

@media all and (max-width:529px) {
    #wrapper {
        margin: 0 auto;
        border: none;
        hyphens: auto;

    }

    article {
        padding: 0 1rem;
    }

    .box {
        margin: 1rem 0 0;
    }

    br {
        display: none;
    }

    .flex {
        display: block;
    }

    footer br {
        display: inline;
    }
}