@font-face { font-family: Poppins; src: url('../fonts/poppins/Poppins-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Poppins; src: url('../fonts/poppins/Poppins-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Poppins; src: url('../fonts/poppins/Poppins-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
:root { color-scheme: light; --bg: #f5f7f8; --surface: #fff; --text: #273b4a; --muted: #526777; --border: #dce4e8; --primary: #084fb9; --soft: #edf3ff; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 400 14px/1.8 Poppins, sans-serif; }
body[data-theme="dark"] { color-scheme: dark; --bg: #19283b; --surface: #121f30; --text: #edf4ff; --muted: #a8b9cc; --border: #2c4059; --primary: #90baff; --soft: #263f61; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font: inherit; cursor: pointer; }
:is(a,button):focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
.error-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; padding: 18px clamp(20px,4vw,64px); border-bottom: 1px solid var(--border); background: var(--surface); }
.error-brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 17px; }
.error-brand img { object-fit: contain; }
.error-brand strong { font-weight: 600; }
.error-header-label { color: var(--muted); font-size: 12px; }
.error-main { flex: 1; display: grid; place-items: center; width: 100%; padding: 48px 24px; }
.error-panel { display: grid; grid-template-columns: .85fr 1.15fr; width: min(100%,1000px); border: 1px solid var(--border); border-radius: 24px; background: var(--surface); overflow: hidden; }
.error-visual { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 400px; padding: 40px 24px; background: #103c80; color: #bcfe5a; overflow: hidden; }
.error-visual::before { content: ''; position: absolute; z-index: -1; top: -160px; left: -140px; width: 360px; height: 360px; border: 1px solid #ffffff24; border-radius: 50%; box-shadow: 0 0 0 48px #ffffff07, 0 0 0 96px #ffffff05; }
.error-code { font-size: clamp(80px,10vw,140px); font-weight: 700; line-height: 1.15; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.error-visual-label { color: #dce8f8; font-size: 12px; text-align: center; }
.error-content { align-self: center; min-width: 0; padding: clamp(28px,4vw,52px); }
.error-context { color: var(--primary); font-size: 12px; font-weight: 600; margin: 0 0 14px; }
h1 { margin: 0 0 18px; font-size: clamp(24px,2.5vw,32px); line-height: 1.4; letter-spacing: -.025em; font-weight: 700; }
.error-description { color: var(--muted); margin: 0; font-size: 13px; line-height: 1.9; }
.error-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.error-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 18px; border: 1px solid transparent; border-radius: 10px; font-size: 12px; font-weight: 600; line-height: 1.6; text-align: center; }
.error-button-primary { background: #bcfe5a; color: #183a24; border-color: #82b82f; }
.error-button-primary:hover { background: #a9ed44; }
.error-button-secondary { color: var(--text); background: var(--surface); border-color: var(--muted); }
.error-button-secondary:hover { color: var(--primary); background: var(--soft); }
.error-help { padding-top: 20px; border-top: 1px solid var(--border); margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.error-help strong { font-weight: 600; color: var(--text); }
.error-footer { padding: 0 24px 24px; text-align: center; color: var(--muted); font-size: 11px; line-height: 1.9; }
@media (max-width: 767.98px) {
    .error-main { padding: 28px 20px; }
    .error-panel { grid-template-columns: 1fr; max-width: 520px; border-radius: 18px; }
    .error-visual { min-height: auto; padding: 28px 20px; gap: 5px; }
    .error-code { font-size: 80px; }
    .error-content { padding: 28px; }
}
@media (max-width: 479.98px) {
    .error-header { min-height: 72px; padding: 14px 20px; }
    .error-header-label { display: none; }
    .error-main { padding: 20px 12px; }
    .error-content { padding: 24px 20px; }
    .error-actions { flex-direction: column; gap: 12px; margin: 24px 0; }
    .error-button { width: 100%; min-height: 48px; }
}
