:root {
    --error-accent: #4fc3ff;
    --error-accent-dark: #0d6efd;
}

html, body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(79, 195, 255, 0.22), transparent 35%),
        linear-gradient(rgba(7, 13, 28, 0.90), rgba(7, 13, 28, 0.96)),
        url('https://images.unsplash.com/photo-1461896836934-ffe607ba8211?auto=format&fit=crop&w=1800&q=80') center center / cover no-repeat;
    color: #fff;
    font-family: "Segoe UI", Arial, sans-serif;
}

.error-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.error-card {
    width: 100%;
    max-width: 780px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    padding: 52px 46px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(10px);
}

.error-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.16), transparent 42%);
    pointer-events: none;
}

.error-content {
    position: relative;
    z-index: 1;
}

.error-icon {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--error-accent), var(--error-accent-dark));
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
    font-size: 2.7rem;
}

.error-code {
    font-size: clamp(4.5rem, 12vw, 8rem);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -0.06em;
    color: var(--error-accent);
    margin-bottom: 16px;
    text-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
}

.error-title {
    font-size: clamp(1.55rem, 4vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 18px;
}

.error-text {
    max-width: 610px;
    margin: 0 auto 34px auto;
    font-size: 1.08rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.82);
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    border: 0;
    background: linear-gradient(135deg, var(--error-accent), var(--error-accent-dark));
    color: #fff;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.btn-home:hover,
.btn-home:focus {
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32);
}

.mini-info {
    margin-top: 32px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.62);
}

.track-line {
    width: 150px;
    height: 5px;
    border-radius: 999px;
    margin: 0 auto 28px auto;
    background: linear-gradient(90deg, transparent, var(--error-accent), transparent);
}

@media (max-width: 576px) {
    .error-card {
        padding: 38px 22px;
        border-radius: 22px;
    }

    .error-icon {
        width: 74px;
        height: 74px;
        font-size: 2.2rem;
    }

    .error-text {
        font-size: 1rem;
    }
}
