/* ==========================================
   404
========================================== */

.page-404 {
    width: 100%;
    min-height: calc(100vh - var(--header-height));
}


.page-404-container {
    width: 100%;
    max-width: 1120px;

    margin: 0 auto;
    padding-top: 35px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    align-items: center;
    gap: 60px;

    box-sizing: border-box;
}


/* ==========================================
   CONTENT
========================================== */

.page-404-content {

    display: flex;

    max-width: 500px;

    flex-direction: column;

    align-items: flex-start;

}

.page-404-image {
    width: 510px;
    height: 799px;
}


/* ==========================================
   IMAGE
========================================== */

.page-404-image img {

    width: 100%;

    height: auto;

    display: block;

}

/* ==========================================
   404 CONTENT
========================================== */

#error-title {
    margin: 0;

    font-family: "MabryPro";
    font-size: 60px;
    font-weight: 900;
    line-height: 1.05;

    color: var(--text);

}


#error-description {
    margin: 18px 0 0;

    font-family: "Inter";
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;

    color: var(--text-60);

    max-width: 500px;
}


/* ==========================================
   SEARCH
========================================== */

.page-404-search {
    width: 100%;
    max-width: 500px;

    margin-top: 35px;
    position: relative;
}

.page-404-search-button {
    position: absolute;

    top: 50%;
    right: 16px;

    width: 20px;
    height: 20px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    border: none;
    background: transparent;

    cursor: pointer;
}


.page-404-search-button img {
    width: 20px;
    height: 20px;

    display: block;
}


.page-404-search .form-input {
    width: 100%;

    padding-right: 48px;

    box-sizing: border-box;
}


/* ==========================================
   OR
========================================== */

.page-404-or {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 28px 0;
}

.page-404-or::before,
.page-404-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--separator);
}

.page-404-or span {
    color: var(--separator);
    font-size: 13px;
}


/* ==========================================
   HOME BUTTON
========================================== */

.page-404-button {
    width: fit-content;

    box-sizing: border-box;

    margin-inline: auto;

    text-align: center;
}

.page-404-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

@media (max-width: 700px) {

    .page-404-container {
        grid-template-columns: 1fr;

        gap: 30px;

        padding: 20px;
    }


    .page-404-content {
        align-items: center;
    }


    #error-title {
        font-size: 36px;
        max-width: 400px;
    }


    #error-description {
        margin-top: 12px;

        font-size: 16px;

        max-width: 400px;
    }


    .page-404-search {
        margin-top: 25px;

        max-width: 100%;
    }


    .page-404-or {
        margin: 20px 0;
    }


    .page-404-button {
        max-width: 100%;
    }


    .page-404-image {
        display: none;
    }

}