* {
    box-sizing: border-box;
}

html, body {
    min-width: 320px !important;
    background-color: #f2f4f6;
    padding: 0 !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

iframe {
    max-width: 100%;
}

.page {
    width: 100%;
}

.page__image {
    width: 240px;
    height: 198px;
    background-color: #d8d8d8;
}

.content {
    max-width: 320px;
    margin: 0 auto;
}

.page-error {
    position: relative;
    height: 255px;
    margin-bottom: 25px;
    background-color: #fff;
}

.page-error--denied {
    height: 188px;
}

.page-error:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 50px;
    background-image: url("../images/img-craft-1680.png");
    background-position: center bottom;
    background-repeat: repeat-x;
}

.page-error--denied .page-error__content {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 30px 27px 0;
}

.page-error__content {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 20px 37px 0;
}

.page-error__image {
    display: inline-block;
    margin-bottom: 30px;
    min-width: 234px;
    width: 234px;
    height: 98px;
    background-image: url("../images/img-404.png");
    background-size: contain;
    background-repeat: no-repeat;
}

.page-error--denied .page-error__image {
    min-width: 20px;
    width: 20px;
    height: 20px;
    margin-right: 11px;
    margin-bottom: 0;
    background-image: url("../images/ic-block.png");
}

.page-error__text {
    position: relative;
    font-family: Roboto, Arial, serif;
    font-size: 16px;
    line-height: normal;
    font-weight: 500;
    color: #e30611;
}

.page-error__desc {
    padding-top: 15px;
    font-size: 13px;
    color: #e30611;
    font-weight: 400;
}

.page-error__toggle {
    position: absolute;
    bottom: -15px;
    left: 0;
    margin: 0 !important;
    font-size: 12px;
    font-weight: 400;
}

@media (min-width: 768px) {

    .page__image {
        width: 640px;
        height: 200px;
    }

    .content {
        max-width: 726px;
    }

    .page-error {
        height: 188px;
        margin-bottom: 100px;
    }

    .page-error__image {
        margin: 0;
        margin-right: 52px;
    }

    .page-error--denied .page-error__content {
        align-items: center;
    }

    .page-error--denied .page-error__image {
        min-width: 147px;
        width: 147px;
        height: 116px;
        margin-right: 36px;
        background-image: url("../images/img-phone-plock.png");
    }

    .page-error__content {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        height: 100%;
        max-width: 760px;
        text-align: left;
        padding-top: 10px;
    }

    .page-error__text {
        font-size: 24px;
    }

    .page__content {
        width: 100%;
        max-width: 100%;
    }
}

@media (min-width: 980px) {
    .page-error__content {
        max-width: 820px;
    }
}

@media (min-resolution: 144dpi), (min-resolution: 1.5dppx) {
    .page-error:after {
        background-image: url("../images/img-craft-1680@2x.png");
    }
    .page-error__image {
        background-image: url("../images/img-404@2x.png");
    }
}

@media (orientation: landscape) and (min-resolution: 144dpi), (orientation: landscape) and (min-resolution: 1.5dppx) {
    .page-error--denied .page-error__image {
        background-image: url("../images/img-phone-plock.png");
    }
}

@media (max-width: 414px) and (min-resolution: 144dpi), (max-width: 320px) and (min-resolution: 1.5dppx) {
    .page-error:after {
        background-image: url("../images/img-craft-1680.png");
    }
    .page-error--denied .page-error__image {
        background-image: url("../images/ic-block@2x.png");
    }
}
