html,
body {
    height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.l-wrapper,
.l-wrapper--other {
    flex: 1 0 auto;
}

footer,
.l-footer {
    margin-top: auto;
}

.error404_logo {
    margin: 0 auto 40px;
    width: 300px;
}

.error404_message {
    text-align: center;
}

.error404_title {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.8;
    margin-bottom: 32px;
}

.error404_text {
    font-size: 1.2rem;
    line-height: 2;
}

.error404_btn_wrap {
    margin-top: 40px;
    text-align: center;
}

.error404_btn {
    display: inline-block;
    min-width: 250px;
    padding: 10px 32px;
    border: 4px solid #d9d9d9;
    border-radius: 24px;
    background: #fff;
    color: #222;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.error404_btn:hover {
    background: #7fcbbe;
    border-color: #7fcbbe;
    color: #fff;
}

.error404_btn:visited {
    color: #222;
}

.error404_btn:hover:visited {
    color: #fff;
}

@media screen and (max-width: 767px) {
    .error404_logo {
        display: none;
    }

    .error404_btn {
        min-width: auto;
        width: 100%;
        max-width: 320px;
        padding: 16px 20px;
        font-size: 20px;
        border-radius: 20px;
    }
}
