.not-found {
    display: flex;
    align-items: center;
    min-height: 80vh;
    padding: 112px 0 48px;
    background-color: var(--theme-page);
    text-align: center;
}

.not-found__code {
    margin: 0 0 8px;
    color: var(--brand-primary);
    font-size: clamp(4.5rem, 3rem + 6vw, 8rem);
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.site .not-found__title {
    margin: 0 0 16px;
    font-size: clamp(1.35rem, 1.15rem + .7vw, 1.75rem);
    font-weight: 600;
}

.not-found__text {
    max-width: 520px;
    margin: 0 auto 36px;
    color: var(--theme-muted);
    font-size: 1.05rem;
    line-height: 1.9;
}

.not-found__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.not-found__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 50px;
    padding: 0 24px;
    border: 1px solid var(--theme-line);
    border-radius: 12px;
    background-color: var(--theme-surface);
    color: var(--theme-text) !important;
    font-weight: 600;
    transition: background-color .2s ease, border-color .2s ease, transform .15s ease;
}

.not-found__button:hover {
    border-color: var(--theme-text);
}

.not-found__button--primary {
    border-color: var(--brand-primary);
    background-color: var(--brand-primary);
    color: #FFFFFF !important;
}

.not-found__button--primary:hover {
    border-color: var(--brand-primary-deep);
    background-color: var(--brand-primary-deep);
}

.not-found__button:active {
    transform: scale(.97);
}

@media (max-width: 575.98px) {
    .not-found {
        padding-top: 100px;
    }

    .not-found__button {
        flex: 1 1 100%;
        justify-content: center;
    }
}
