﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 20px;
    color: #242021;
    font-weight: 400;
}

#wrapper {
    max-width: 997px;
    margin: 1rem auto;
    border: solid thin #777;
    overflow: hidden;
    position: relative;
    background: #fff url('../images/background.jpg') no-repeat right bottom;
}

header {
    background: #5b2873;
    display: flex;
    justify-content: space-between;
}

header div {
    padding: 30px 30px 16px;
}

header div:nth-of-type(2) {
    background: #472973;
    width: 355px;
    display: flex;
    justify-content: center;
}

article {
    padding: 28px 32px 360px;
}

.big {
    font-size: 135%;
}

article .flexbox {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 15px;
}

article .flex {
    width: 48%;
}

article .flex:nth-of-type(1) {
    width: 47%;
}

article .flex:nth-of-type(2) .box p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px -20px;
}

article .flex:nth-of-type(1) p:last-child img {
    vertical-align: middle;
    margin: 3px 8px 0 3px;
}

.font-big {
    font-size: 19px;
}

:is(ul li, p) strong {
    color: #5b2873;
    font-size: 16px;
}

article>p:nth-of-type(1) strong {
    font-size: 16px;
    line-height: 1.5;
}

:is(strong, h1, h2) {
    font-weight: 700;
}

h1 {
    font-size: 82px;
    margin: 0 0 26px;
    line-height: 1.25;
    color: #5b2873;
}

h1 span {
    white-space: nowrap;
}

h1 :is(span, small) {
    font-size: 31px;
}

h1 small {
    display: block;
    margin-left: 17px;
}

h2 {
    font-size: 16px;
    margin: 0 0 6px;
    line-height: 20px;
    color: #00aeef;
}

img {
    max-width: 100%;
    vertical-align: bottom;
}

p:not(:last-child) {
    margin-bottom: 15px;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #5b2873;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

.link img {
    display: inline-block;
    margin: 0px 0 0 9px;
    position: relative;
}

.social {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

ul {
    list-style: none;
    padding: 0 0 10px;
}

ul li {
    padding-left: 17px;
    margin-bottom: 3px;
    font-weight: 400;
}

li:before {
    text-indent: -17px;
    content: "\2012";
    color: #000;
    float: left;
    font-size: 17px;
    font-family: Arial, sans-serif;
    margin-top: -1px;
}

.box {
    margin: 18px 0 18px;
}

.socical {
    display: block;
}

.color {
    color: #009ee3 !important;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer img {
    display: none;
}

@media screen and (max-width:995px) {
    #wrapper {
        border: none;
        margin: 0;
        line-height: 21px;
        background-image: none;
    }

    :is(header div, article) {
        padding: 16px;
    }

    .nowrap {
        white-space: nowrap;
    }

    :is(h1, h2, p, ul li) {
        hyphens: auto;
    }

    h1 {
        font-size: 101px;
    }

    br:not(br.mobile-block) {
        display: none;
    }

    footer img {
        display: block;
    }
}

@media screen and (max-width:888px) {
    h1 {
        font-size: 80px;
    }
}

@media screen and (max-width:820px) {
    article .flexbox {
        flex-direction: column;
    }

    article .flex {
        width: auto !important;
    }

    article .flex:nth-of-type(2) .box p {
        margin-left: 0;
    }

    h1 {
        font-size: 60px;
        margin: 0 0 6px;
    }

    h1 :is(span, small) {
        font-size: 30px;
    }

    footer {
        position: relative;
    }
}

@media screen and (max-width:660px) {
    h1 {
        line-height: 1;
        font-size: 40px;
    }

    :is(h1 small, h1 span) {
        display: inline;
        font-size: 24px;
        margin-left: 0 !important;
    }
}

@media screen and (max-width:510px) {
    p a.normal{
        white-space: normal !important;
        word-break: break-all;
    }

    header {
        flex-direction: column;
        align-items: center;
    }

    header div:nth-of-type(2) {
        width: 100% !important;
    }
}