main:not(:empty),
main > .not-found-page {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

h1.error-404 {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
}

.not-found-page > img.error-404 {
    width: 166px;
    display: block;
    margin: 100px auto 30px;
}

.not-found-page > p.error-404 {
    margin: 0;
    width: 100%;
    text-align: center;
    color: var(--default-text-color);
}

.not-found-page a.error-404 {
    color: #000;
    width: 285px;
    height: 40px;
    display: flex;
    overflow: hidden;
    border-radius: 3px;
    margin: 40px auto 0;
    background: #f5b105;
    align-items: center;
    justify-content: center;
}

.not-found-page a.error-404:hover {
    background: var(--a-hover-color);
}

.not-found-page a.error-404:active {
    background: var(--a-active-color);
}

.not-found-page footer.error-404 {
    padding: 0;
    border: none;
    flex-wrap: wrap;
    margin: 90px 0 0;
}

.not-found-page footer.error-404 img {
    width: auto;
    height: 40px;
    margin-bottom: 18px;
}

.not-found-page footer.error-404 img:not(:first-child) {
    margin-left: 60px;
}

.not-found-page footer.error-404 p {
    width: 100%;
    font-size: inherit;
    text-align: center;
    letter-spacing: inherit;
}