@font-face {
    font-family: 'Apex New';
    src: url('ApexNew-Book.woff2') format('woff2'), url('ApexNew-Book.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Apex New';
    src: url('ApexNew-Medium.woff2') format('woff2'), url('ApexNew-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Apex Serif Book';
    src: url('ApexSerifBook-Regular.woff2') format('woff2'), url('ApexSerifBook-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Apex Serif Book';
    src: url('ApexSerifMedium-Regular.woff2') format('woff2'), url('ApexSerifMedium-Regular.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
}

body {
    background: none;
}

#wrapper {
    max-width: 900px;
    margin: 16px auto;
    border: 1px solid #000;
    background-image: url(background.png), linear-gradient(#e1edf6, #c1daed);
    background-repeat: no-repeat;
    background-position: center;
    overflow: hidden;
    font-family: 'Apex New', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.3;
    color: #000;
}

#wrapper .ava>img {
    box-shadow: 6px 20px 30px rgba(0, 0, 0, 0.1), 1px 1px 6px rgba(0, 0, 0, 0.08);
    border-radius: 100%;
    max-width: 140px;
}

#wrapper .nobr {
    white-space: nowrap;
}

#wrapper .hide {
    display: none;
}

#wrapper .ava {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

#wrapper .button a {
    border: 2px solid #d9132b;
    transition: .2s all cubic-bezier(0, 0.98, 0.52, 0.96);
    border-radius: 30px;
    display: inline-block;
    padding: 12px 15px;
    background: #d9132b;
    color: #fff !important;
    letter-spacing: 1px;
}

#wrapper .button a:hover {
    border-color: #d9132b;
    box-shadow: 0 3px 11px 2px rgba(0, 0, 0, 0.4);
    text-decoration: none;
    transform: translateY(-5px);
}

#wrapper .ava p img {
    margin-right: 5px;
    position: relative;
    top: -2px;
}

#wrapper .ava a {
    color: #000 !important;
}

#wrapper .article {
    padding: 20px 70px;
}

#wrapper .footer {
    padding: 0 70px 40px;
}

#wrapper .logo {
    padding: 50px 70px 20px;
    display: flex;
    justify-content: end;
}

#wrapper .logo a:hover {
    border: none;
}

#wrapper p {
    margin-bottom: 30px;
}

#wrapper p.mb-0 {
    margin-bottom: 3px;
}

#wrapper strong {
    font-weight: 500;
}

#wrapper h1 {
    color: #d9132b;
    margin-bottom: 30px;
    font-size: 29px;
    font-weight: 500;
    letter-spacing: 2px;
    font-family: 'Apex Serif Book', "Times New Roman", serif;
    margin-top: 10px;
    line-height: 1.3;
}

#wrapper h1 span.small {
    font-size: 22px;
    display: block;
    font-weight: 400;
    padding-top: 5px;
}

#wrapper h3 {
    font-size: 19px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

#wrapper h4 {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
}

#wrapper h4 span {
    font-size: 16px;
    line-height: 1.2;
    display: block;
    font-weight: 400;
}

#wrapper :is(a:link, a:visited, a:active) {
    color: #d9132b;
    text-decoration: none;
}

#wrapper a:hover {
    border-bottom: 1px solid #d9132b;
}

#wrapper ul {
    margin: 4px 0 30px;
    list-style: none;
}

#wrapper ul li {
    padding-left: 20px;
    margin-bottom: 8px;
    position: relative;
}

#wrapper ul li:before {
    content: '\2010';
    color: #d9132b;
    font-size: 38px;
    position: absolute;
    top: -14px;
    left: 0;
    line-height: 1;
}

#wrapper img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

@media (max-width: 899px) {
    #wrapper {
        font-size: 15px;
        margin: 0;
        border: none;
    }

    #wrapper :is(p, ul) {
        hyphens: auto;
        -webkit-hyphens: auto;
    }

    #wrapper h1 {
        font-size: 24px;
    }

    #wrapper h1 span.small {
        font-size: 18px;
        line-height: 1.2;
    }

    #wrapper .no {
        display: none;
    }
}

@media (max-width: 600px) {

    #wrapper .logo,
    #wrapper .footer,
    #wrapper .article {
        padding: 16px;
    }
}

@media (max-width: 500px) {
    #wrapper .logo {
        justify-content: center;
    }

    #wrapper .button {
        text-align: center;
    }
}

@media (max-width: 390px) {
    #wrapper .ava>img {
        width: 73px;
        top: -6px;
        position: relative;
    }
}