

.site-main {
    flex: 1; /* всё между header и footer */
    display: flex;
    flex-direction: column;
}

.error-404 {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.page-content{
    min-height: calc(100dvh - var(--masterhead-height));
    display:flex; align-items:center; justify-content:center;
}

.not-found-container {
    text-align: center;
}

.not-found-img {
    max-width: 399px;
    max-height: 140px;
}

.not-found-text {
    padding-top: 15px;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 24px;
    padding-bottom: 15px;
}

.return-to-home {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.return-to-home-button {
    text-transform: uppercase;
    font-weight: 400;
    font-size: 16px;
    width: 249px;
    height: 52px;
    background-color: #0f0f0f;
    color: #FFFFFF;
    font-family: 'Gaisyr', sans-serif;
    cursor: pointer;
}


/* === АДАПТИВ === */

@media (max-width: 768px) {
    .not-found-img {
        max-width: 80%;
        max-height: 100px;
    }

    .not-found-text {
        font-size: 20px;
        padding: 12px 15px;
    }

    .return-to-home-button {
        width: 100%;
        max-width: 249px;
        font-size: 14px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .not-found-img {
        max-width: 75%;
        max-height: 90px;
    }

    .not-found-text {
        font-size: 19px;
        padding: 11px 14px;
    }

    .return-to-home-button {
        width: 100%;
        max-width: 230px;
        font-size: 13.5px;
        height: 46px;
    }
}

@media (max-width: 320px) {
    .not-found-img {
        max-width: 70%;
        max-height: 80px;
    }

    .not-found-text {
        font-size: 18px;
        padding: 10px 12px;
    }

    .return-to-home-button {
        width: 100%;
        max-width: 220px;
        font-size: 13px;
        height: 44px;
        padding: 0;
    }
}