section:is(.content-404) {
    height: 700px;
    position: relative;
    margin-top: var(--header-height);
}

.header-404 {
    position: relative;
}

.header-404-h1 {
    padding-top: 20px;
    letter-spacing: 1px;
    font-weight: 400;
}

.main-404 {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: -40px;
    height: 435px;
}

.wrapper-404 {
    display: flex;
    margin-top: -10px;
    gap: 20px;
}

.content-4 {
    font-size: 210px;
    color: var(--gray);
}

.main-0 {
    position: relative;
    width: 300px;
    justify-content: center;
    display: flex;
}

.content-0 {
    font-size: 210px;
    color: var(--gray);
    z-index: 1;
    position: relative;
}

.content-0-upper,
.content-0-bottom {
    width: 210px;
    position: absolute;
    background-color: var(--main-accent-color);
    z-index: 0;
}

.content-0-upper {
    height: 150px;
    top: 40px;
    right: 45px;
    border-bottom-left-radius: 30%;
    border-top-left-radius: 20%;
    border-top-right-radius: 10%;
}

.content-0-bottom {
    height: 230px;
    top: 180px;
    right: 45px;
    border-top-left-radius: 40%;
    border-bottom-left-radius: 10%;
    border-bottom-right-radius: 10%;
}

.text-404 {
    height: 100%;
    display: flex;
    width: 95%;
    margin: auto;
    justify-content: end;
    flex-direction: column;
    text-align: center;
}

.text-404 :is(.img-404, svg) {
    width: 160px;
    height: unset;
    object-fit: cover;
    align-self: center;
    margin-bottom: 30px;
}

.links-404 {
    gap: 25px;
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.content-detail-a {
    color: var(--white-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
}

.content-detail-a:hover {
    color: var(--white-color);
}

.back-to-404 {
    position: absolute;
    top: 32px;
    left: 60px;
    color: var(--white-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    text-decoration: none;
}

.back-to-404 svg {
    width: 18px;
    fill: var(--white-color);
}

.back-to-i {
    padding-right: 6px;
    font-size: 12px;
}

.back-to-404:hover {
    color: var(--white-color);
}

.alt-content-404 {
    margin-top: 12px;
}

@media (max-width: 900px) {
    .main-404 {
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .content-404 {
        padding-top: 25px;
        height: 410px;
    }

    .header-404-h1 {
        padding-top: 10px;
        font-size: 16px;
    }

    .main-404 {
        gap: 20px;
        margin-top: -20px;
        height: 230px;
    }

    .content-4 {
        font-size: 100px;
    }

    .main-0 {
        width: 100px;
    }

    .content-0 {
        font-size: 100px;
    }

    .content-0-upper {
        width: 85px;
        height: 60px;
        right: 10px;
        top: 30px;
        border-bottom-left-radius: 34%;
    }

    .content-0-right {
        width: 60px;
        top: 89px;
        height: 20px;
        right: 10px;
    }

    .content-0-bottom {
        width: 85px;
        top: 100px;
        z-index: 0;
        height: 100px;
        right: 10px;
    }

    .text-404 :is(.img-404, svg) {
        width: 60px;
        object-fit: cover;
        align-self: center;
        margin-bottom: 15px;
    }

    .content-detail-a {
        padding: 5px 10px;
        margin-top: -20px;
        margin-bottom: 30px;
        font-size: 12px;
    }

    .back-to-404 {
        top: 24px;
        left: 16px;
    }

    .wrapper-404 {
        margin-top: 30px;
    }

    .alt-content-404 {
        margin-top: 30px;
    }

    .links-404 {
        display: block;
    }

    .header-bg-404 {
        height: 90px;
    }

    .back-to-i {
        padding-right: 4px;
    }
}
