.not-found {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    margin: clamp(2rem, 6vw, 4rem) 0;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.75rem 2rem rgba(29, 31, 56, 0.08);
}

.not-found__art {
    margin: 0;
    overflow: hidden;
    border-radius: 0.35rem;
    background: #263d50;
    line-height: 0;
}

.not-found__art img {
    display: block;
    width: 100%;
    height: auto;
}

.not-found__eyebrow {
    margin: 0 0 0.75rem;
    color: #c96a16;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.not-found__title {
    margin: 0;
    color: #1d1f38;
    font-family: Comfortaa, sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.25;
}

.not-found__description {
    max-width: 34rem;
    margin: 1rem 0 1.5rem;
    color: #444;
    line-height: 1.7;
}

.not-found__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
}

.not-found__primary {
    display: inline-block;
    padding: 0.8rem 1.1rem;
    border-radius: 0.25rem;
    background: #d6751b;
    font-weight: 700;
    text-decoration: none;
}

.bilberry-hugo-theme .main .not-found__primary,
.bilberry-hugo-theme .main .not-found__primary:hover,
.bilberry-hugo-theme .main .not-found__primary:focus {
    color: #fff;
}

.bilberry-hugo-theme .main .not-found__primary:hover,
.bilberry-hugo-theme .main .not-found__primary:focus {
    background: #b95e12;
}

.not-found__primary:focus-visible {
    outline: 3px solid #263d50;
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .not-found {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .not-found__actions {
        justify-content: flex-start;
    }
}
