.not-found-state {
    width: min(100%, 980px);
    min-height: 320px;
    display: grid;
    grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(24px, 5vw, 64px);
    margin: 28px auto;
    padding: clamp(25px, 5vw, 56px);
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    background: transparent;
    box-shadow: none;
}

.not-found-visual {
    position: relative;
    min-height: 190px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 16px;
    background: radial-gradient(circle at 50% 45%, #f8f0df 0%, #f1e7d2 53%, #e9ddc4 100%);
}

.not-found-visual::after {
    position: absolute;
    inset: -45% auto -45% -35%;
    width: 28%;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
    transform: skewX(-18deg);
    animation: not-found-shimmer 5s ease-in-out infinite;
}

.not-found-visual h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #b8965a;
    font: 800 clamp(4.5rem, 10vw, 7rem)/1 Manrope, sans-serif;
    letter-spacing: -.09em;
    animation: not-found-float 3.6s ease-in-out infinite;
}

.not-found-visual.is-404-animation {
    min-height: clamp(300px, 35vw, 460px);
    background: transparent url("https://cdn.dribbble.com/users/285475/screenshots/2083086/dribbble_1.gif") center / contain no-repeat;
}

.not-found-page .not-found-state {
    width: min(100%, 1180px);
    min-height: 480px;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 76px);
}

.not-found-page .not-found-visual.is-404-animation {
    min-height: clamp(340px, 38vw, 500px);
}

.not-found-page .not-found-copy h2 {
    font-size: clamp(2.4rem, 4.2vw, 3.6rem);
}

.not-found-page .not-found-copy p {
    font-size: 1.1rem;
    line-height: 1.85;
}

.not-found-visual.is-404-animation::after { display: none; }

.not-found-visual.is-404-animation h1 {
    color: #fff;
    text-shadow: 0 4px 22px rgba(0, 0, 0, .45);
}

@keyframes not-found-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

@keyframes not-found-shimmer {
    0%, 20% { left: -35%; }
    70%, 100% { left: 120%; }
}

.not-found-copy h2 {
    margin: 0 0 10px;
    color: #0b1f33;
    font: 700 clamp(1.8rem, 4vw, 2.6rem)/1.15 Manrope, sans-serif;
    letter-spacing: -.04em;
}

.not-found-copy p {
    max-width: 470px;
    margin: 0;
    color: #687582;
    font: 400 1rem/1.75 Manrope, sans-serif;
}

.not-found-action {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 23px;
    padding: 0 18px;
    border: 1px solid #b8965a;
    border-radius: 7px;
    color: #fff;
    background: #0b1f33;
    font: 700 .82rem/1 Manrope, sans-serif;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease;
}

.not-found-action:hover {
    color: #fff;
    background: #173a59;
    transform: translateY(-2px);
}

.not-found-state.is-offline {
    width: min(100% - 32px, 900px);
    min-height: 420px;
    margin: min(10vh, 100px) auto;
}

@media (max-width: 640px) {
    .not-found-state {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 20px;
    }

    .not-found-visual { min-height: 150px; }
    .not-found-copy { text-align: center; }
    .not-found-copy p { margin-inline: auto; }
    .not-found-page .not-found-state { min-height: 0; }
    .not-found-page .not-found-visual.is-404-animation { min-height: 240px; }
    .not-found-page .not-found-copy h2 { font-size: 2rem; }
    .not-found-page .not-found-copy p { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .not-found-action { transition: none; }
    .not-found-visual::after,
    .not-found-visual h1 { animation: none; }
}
