/* ==========================================================
   404 PAGE — matches service.css / terms.css design language
========================================================== */

.error-page .service-intro {
    padding: 100px 0 140px;
}

/* ---------- Hero code ---------- */

.error-code {
    margin: 24px 0 12px;
    font-size: clamp(120px, 22vw, 240px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
    background: linear-gradient(180deg, var(--gold) 0%, rgba(201, 168, 76, .15) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---------- Actions ---------- */

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 34px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform .25s, background .25s, color .25s, border-color .25s;
}

.error-btn-primary {
    background: var(--gold);
    color: var(--ink);
    border: 1px solid var(--gold);
}

.error-btn-primary:hover {
    transform: translateY(-2px);
    background: #b8952f;
    border-color: #b8952f;
}

.error-btn-ghost {
    background: var(--gold);
    color: var(--ink);
    border: 1px solid var(--line-strong);
}

.error-btn-ghost:hover {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

/* ---------- Layout ---------- */

.error-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 72px;
    align-items: start;
}

/* ---------- Body ---------- */

.error-body {
    min-width: 0;
}

.error-num {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .22em;
    color: var(--gold);
}

.error-body h2 {
    position: relative;
    margin: 0 0 22px;
    padding-bottom: 18px;
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--ink);
}

.error-body h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 2px;
    background: var(--gold);
}

.error-body p {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.9;
    color: #4f4f4f;
}

.error-body code {
    display: inline-block;
    padding: 3px 10px;
    margin: 0 2px;
    background: #f4f0e4;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    color: var(--ink);
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 13px;
    letter-spacing: .04em;
}

.error-suggest-list {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}

.error-suggest-list li {
    position: relative;
    padding: 12px 0 12px 32px;
    font-size: 15px;
    line-height: 1.7;
    color: #4f4f4f;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.error-suggest-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 12px;
    color: var(--gold);
    font-weight: 700;
}

/* ---------- Quick links ---------- */

.error-quick {
    position: sticky;
    top: 100px;
    align-self: start;
}

.error-quick-inner {
    padding: 26px 22px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .04);
}

.error-quick-kicker {
    display: block;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--gold);
}

.error-quick ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.error-quick li+li {
    margin-top: 4px;
}

.error-quick a {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 4px;
    color: #4f4f4f;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
    transition: color .25s, background .25s;
}

.error-quick a span {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    color: var(--gold);
}

.error-quick a:hover {
    background: rgba(201, 168, 76, .06);
    color: var(--ink);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .error-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .error-quick {
        position: relative;
        top: 0;
    }
}

@media (max-width: 600px) {
    .error-page .service-intro {
        padding: 60px 0 80px;
    }

    .error-actions {
        flex-direction: column;
    }

    .error-btn {
        width: 100%;
    }
}