.fv-error404 {
    --fv-error-bg: linear-gradient(180deg, #f8faff 0%, #eef3ff 100%);
    --fv-error-card: rgba(255, 255, 255, 0.92);
    --fv-error-text: #1f2a44;
    --fv-error-muted: #5f6e95;
    --fv-error-primary: #325de6;
    --fv-error-primary-hover: #1739a6;
    --fv-error-border: rgba(95, 110, 149, 0.16);
    --fv-error-shadow: 0 30px 80px rgba(31, 42, 68, 0.12);
    min-height: calc(100vh - 120px);
    display: grid;
    align-items: center;
    padding: clamp(24px, 4vw, 48px) 16px;
}

.fv-error404__shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    padding: clamp(24px, 4vw, 48px);
    border: 1px solid var(--fv-error-border);
    border-radius: 32px;
    background: var(--fv-error-card);
    box-shadow: var(--fv-error-shadow);
    backdrop-filter: blur(16px);
    overflow: hidden;
}

.fv-error404__copy {
    display: grid;
    gap: 18px;
    max-width: 560px;
}

.fv-error404__eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(50, 93, 230, 0.1);
    color: var(--fv-error-primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.fv-error404 h1 {
    margin: 0;
    color: var(--fv-error-text);
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.fv-error404__lead {
    margin: 0;
    color: var(--fv-error-muted);
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.7;
}

.fv-error404__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.fv-error404__btn {
    min-height: 52px;
    padding: 0 20px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}

.fv-error404__btn:hover {
    transform: translateY(-1px);
}

.fv-error404__btn--primary {
    background: var(--fv-error-primary);
    color: #fff;
    box-shadow: 0 16px 30px rgba(50, 93, 230, 0.24);
}

.fv-error404__btn--primary:hover {
    background: var(--fv-error-primary-hover);
    color: #fff;
}

.fv-error404__btn--ghost {
    color: var(--fv-error-text);
    border: 1px solid rgba(95, 110, 149, 0.22);
    background: rgba(255, 255, 255, 0.78);
}

.fv-error404__tips {
    display: grid;
    gap: 10px;
    margin-top: 6px;
    color: var(--fv-error-muted);
    font-size: 14px;
    line-height: 1.6;
}

.fv-error404__tips span {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.fv-error404__tips span::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    margin-top: 7px;
    border-radius: 999px;
    background: rgba(50, 93, 230, 0.42);
}

.fv-error404__art {
    position: relative;
    display: grid;
    align-items: center;
    justify-items: center;
    min-height: clamp(260px, 38vw, 520px);
}

.fv-error404__art::before {
    content: "";
    position: absolute;
    inset: 10% 6% 6%;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(234, 240, 255, 0.9)),
        radial-gradient(circle at top, rgba(50, 93, 230, 0.12), transparent 65%);
    border: 1px solid rgba(95, 110, 149, 0.12);
}

.fv-error404__art img {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: min(58vh, 520px);
    object-fit: contain;
}

.fv-error404--partner {
    min-height: calc(100vh - 96px);
}

@media (max-width: 980px) {
    .fv-error404__shell {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 24px;
    }

    .fv-error404__copy {
        max-width: none;
        text-align: center;
        justify-items: center;
    }

    .fv-error404__actions {
        justify-content: center;
    }

    .fv-error404__tips {
        width: min(100%, 560px);
        text-align: left;
    }

    .fv-error404__art {
        order: -1;
        min-height: 240px;
    }
}

@media (max-width: 640px) {
    .fv-error404 {
        min-height: calc(100vh - 72px);
        padding: 14px;
    }

    .fv-error404__shell {
        padding: 18px;
        border-radius: 24px;
    }

    .fv-error404__copy {
        gap: 14px;
    }

    .fv-error404__actions {
        width: 100%;
        display: grid;
    }

    .fv-error404__btn {
        width: 100%;
    }

    .fv-error404__lead {
        font-size: 16px;
    }

    .fv-error404__tips {
        font-size: 13px;
    }

    .fv-error404__art {
        min-height: 200px;
    }

    .fv-error404__art img {
        max-height: 240px;
    }
}
