/* 404 page */
.error-page-body {
    --error-bg: #e1efff;
    --error-text: var(--color-text);
    --error-line: rgba(64, 64, 64, 0.38);
    background: var(--error-bg);
}

html[data-theme="dark"] .error-page-body,
.error-page-body[data-theme="dark"] {
    --error-bg: #3d5977;
    --error-text: #ffffff;
    --error-line: rgba(255, 255, 255, 0.78);
}

.error-page-body .footer {
    margin-top: 0;
}

.error-page {
    background: var(--error-bg);
    color: var(--error-text);
}

.error-page-body .header {
    position: relative;
    margin-bottom: 0;
    background: var(--color-header);
    border-bottom: 0;
    backdrop-filter: none;
}

.error-page-body .top-nav {
    padding-top: 13px;
    padding-bottom: 13px;
}

.error-page-body .top-nav__inner {
    min-height: 58px;
}

.error-hero {
    min-height: 583px;
    background: var(--error-bg);
    color: var(--error-text);
    padding: 126px 0 0;
}

.error-hero__inner {
    display: grid;
    min-height: 457px;
    grid-template-rows: 1fr auto;
}

.error-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.88fr);
    gap: 70px;
    align-items: center;
}

.error-hero__message h1 {
    max-width: 670px;
    margin: 0 0 54px;
    color: currentColor;
    font-family: var(--h2-font-family);
    font-style: var(--h2-font-style);
    font-size: var(--h2-size);
    font-weight: var(--h2-weight);
    line-height: var(--h2-line-height);
    text-transform: uppercase;
}

.error-hero__action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: currentColor;
    font-family: var(--body-3-font-family);
    font-style: var(--body-3-font-style);
    font-size: var(--body-3-size);
    font-weight: var(--body-3-weight);
    line-height: var(--body-3-line-height);
}

.error-hero__action span:first-child {
    display: inline-flex;
    min-width: 260px;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: var(--radius-pill);
    padding: 12px 32px;
}

.error-hero__arrow {
    position: relative;
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.error-hero__arrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

.error-hero__status {
    text-align: center;
    text-transform: uppercase;
}

.error-hero__status strong {
    display: block;
    color: currentColor;
    font-family: var(--font-heading);
    font-size: 200px;
    font-weight: 400;
    line-height: 0.92;
}

.error-hero__status span {
    display: block;
    margin-top: 30px;
    color: currentColor;
    font-family: var(--font-heading);
    font-size: 70px;
    font-weight: 400;
    line-height: 1;
}

.error-page-body .footer-brand {
    border-top: 1px solid var(--error-line);
    border-bottom-color: var(--footer-line);
    background: var(--error-bg);
    color: var(--error-text);
}

html[data-theme="dark"] .error-page-body .footer {
    --footer-bg: #3d5977;
    --footer-line: #293647;
    color: #ffffff;
}

html[data-theme="dark"] .error-page-body .footer h3,
html[data-theme="dark"] .error-page-body .footer a,
html[data-theme="dark"] .error-page-body .footer p,
html[data-theme="dark"] .error-page-body .footer-brand,
html[data-theme="dark"] .error-page-body .footer-bottom {
    color: #ffffff;
}

@media (max-width: 1250px) {
    .error-page-body .top-nav {
        padding-top: 0;
        padding-bottom: 0;
    }

    .error-hero {
        min-height: 720px;
        padding: 71px 0 0;
    }

    .error-hero__inner {
        min-height: 550px;
    }

    .error-hero__grid {
        display: flex;
        align-items: center;
        flex-direction: column-reverse;
        gap: 52px;
        text-align: center;
    }

    .error-hero__message h1 {
        max-width: 560px;
        margin-bottom: 36px;
        font-size: 42px;
        line-height: 58px;
    }

    .error-hero__status strong {
        font-size: 170px;
        line-height: 0.86;
    }

    .error-hero__status span {
        margin-top: 30px;
        font-size: 58px;
    }

    .error-hero__action span:first-child {
        min-width: 260px;
    }
}

@media (max-width: 575px) {
    .error-hero {
        min-height: 633px;
        padding: 78px 0 0;
    }

    .error-hero__inner {
        min-height: 455px;
    }

    .error-hero__grid {
        gap: 10px;
    }

    .error-hero__status strong {
        font-size: 150px;
        line-height: 0.82;
    }

    .error-hero__status span {
        margin-top: 26px;
        font-size: 50px;
    }

    .error-hero__message h1 {
        max-width: 340px;
        margin: 0 auto 43px;
        font-size: 30px;
        line-height: 41px;
    }

    .error-hero__action {
        gap: 10px;
    }

    .error-hero__action span:first-child {
        min-width: min(260px, calc(100vw - 90px));
        min-height: 56px;
        padding: 10px 22px;
        font-size: 18px;
        line-height: 22px;
    }

    .error-hero__arrow {
        width: 56px;
        height: 56px;
        flex: 0 0 56px;
    }

    .error-page-body .footer-brand {
        justify-content: flex-start;
        min-height: 111px;
        padding: 25px 20px;
    }
}