/* ===== 404: «чанк не найден» - метель, сияние, глитч-цифры ===== */
.page-lost .main { padding-top: 0; padding-bottom: 0; }

.lost {
    --lost-ice: #9be7ff;
    --lost-violet: var(--brand-light);
    position: relative; isolation: isolate; overflow: hidden;
    /* full-bleed: секция шире контейнера main */
    width: 100vw; margin-left: calc(50% - 50vw);
    min-height: clamp(560px, calc(100vh - 140px), 920px);
    display: grid; place-items: center;
    padding: clamp(48px, 8vh, 96px) 20px;
    background:
        radial-gradient(120% 80% at 50% 110%, rgba(108, 63, 245, .28), transparent 60%),
        radial-gradient(60% 50% at 85% 0%, rgba(155, 231, 255, .10), transparent 70%),
        linear-gradient(180deg, #070614 0%, var(--bg) 55%, #120d26 100%);
}

/* --- сцена --- */
.lost__scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.lost__vignette { position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 45%, rgba(4, 3, 12, .75) 100%); }

.lost__aurora { position: absolute; inset: -20% -10% auto; height: 70%; z-index: -2;
    filter: blur(48px) saturate(140%); opacity: .7; pointer-events: none; }
.lost__aurora-band { position: absolute; left: 0; right: 0; height: 38%; border-radius: 50%;
    mix-blend-mode: screen; transform-origin: 50% 50%; }
.lost__aurora-band--a { top: 10%; background: linear-gradient(90deg, transparent, rgba(99, 176, 74, .55), rgba(155, 231, 255, .5), transparent);
    animation: lostAurora 14s ease-in-out infinite alternate; }
.lost__aurora-band--b { top: 28%; background: linear-gradient(90deg, transparent, rgba(139, 92, 246, .6), rgba(167, 139, 250, .35), transparent);
    animation: lostAurora 18s ease-in-out -6s infinite alternate-reverse; }
.lost__aurora-band--c { top: 44%; background: linear-gradient(90deg, transparent, rgba(155, 231, 255, .35), rgba(99, 176, 74, .3), transparent);
    animation: lostAurora 22s ease-in-out -11s infinite alternate; }
@keyframes lostAurora {
    0%   { transform: translateX(-12%) skewY(-4deg) scaleY(.8); }
    50%  { transform: translateX(6%) skewY(3deg) scaleY(1.15); }
    100% { transform: translateX(14%) skewY(-2deg) scaleY(.9); }
}

/* --- контент --- */
.lost__inner { position: relative; width: min(100%, 760px); text-align: center; }
[data-parallax] { transition: transform .25s ease-out; will-change: transform; }

.lost__code { display: flex; justify-content: center; align-items: center;
    gap: clamp(8px, 2vw, 22px); margin-bottom: clamp(10px, 2vh, 22px); user-select: none; }
.lost__digit { position: relative; font-weight: 900; line-height: .9; letter-spacing: -.04em;
    font-size: clamp(110px, 22vw, 230px);
    background: linear-gradient(180deg, #ffffff 0%, var(--lost-ice) 38%, var(--lost-violet) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 10px 40px rgba(108, 63, 245, .45));
    animation: lostFloat 6s ease-in-out infinite; }
.lost__digit:last-child { animation-delay: -3s; }
/* глитч-тень: смещённые копии цифры вспыхивают раз в несколько секунд */
.lost__digit[data-text]::before, .lost__digit[data-text]::after {
    content: attr(data-text); position: absolute; inset: 0; opacity: 0;
    -webkit-background-clip: text; background-clip: text; color: transparent; }
.lost__digit[data-text]::before { background-image: linear-gradient(180deg, #ff5ea8, transparent);
    animation: lostGlitch 7s steps(1) infinite; }
.lost__digit[data-text]::after { background-image: linear-gradient(180deg, #5effe1, transparent);
    animation: lostGlitch 7s steps(1) -.15s infinite reverse; }
@keyframes lostFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes lostGlitch {
    0%, 91%, 100% { opacity: 0; transform: none; }
    92% { opacity: .8; transform: translate(-4px, 2px); clip-path: inset(10% 0 55% 0); }
    94% { opacity: .8; transform: translate(4px, -2px); clip-path: inset(60% 0 8% 0); }
    96% { opacity: .6; transform: translate(-2px, 0); clip-path: inset(30% 0 40% 0); }
}

.lost__copy { position: relative; }
.lost__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px;
    padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: var(--lost-ice);
    background: rgba(155, 231, 255, .08); border: 1px solid rgba(155, 231, 255, .25); }
.lost__eyebrow .fa-snowflake { animation: lostSpinFlat 6s linear infinite; }
@keyframes lostSpinFlat { to { transform: rotate(360deg); } }
.lost__title { margin: 0 0 12px; font-size: clamp(26px, 4.2vw, 42px); line-height: 1.15;
    text-wrap: balance; color: var(--text); }
.lost__text { margin: 0 auto 26px; max-width: 54ch; color: var(--muted);
    font-size: clamp(15px, 1.6vw, 17px); line-height: 1.6; text-wrap: pretty; }

.lost__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.lost__btn { min-height: 44px; display: inline-flex; align-items: center; gap: 8px;
    transition: transform .2s ease, box-shadow .2s ease; }
.lost__btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(108, 63, 245, .35); }
.lost__btn:focus-visible { outline: none; box-shadow: var(--ring); }

.lost__path { display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
    margin: 26px 0 0; padding: 8px 14px; border-radius: 10px; font-size: 13px;
    color: var(--muted); background: rgba(12, 10, 26, .6); border: 1px dashed var(--line); }
.lost__path code { color: var(--brand-soft); overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; font-size: 13px; }
.lost__hint { margin: 14px 0 0; font-size: 12px; color: rgba(157, 151, 181, .7);
    letter-spacing: .04em; }
.lost:not(.lost--js) .lost__hint { display: none; }

@media (max-width: 560px) {
    .lost { min-height: calc(100vh - 110px); }
    .lost__actions .lost__btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .lost__aurora-band, .lost__digit, .lost__digit::before, .lost__digit::after,
    .lost__eyebrow .fa-snowflake { animation: none !important; }
    [data-parallax] { transition: none; transform: none !important; }
}
