/* ============================================================================
   SERVICE PAGES (404 / 500 / maintenance) — the mascot on the left, the code and
   the way out on the right, straight on the surface without a plate.
   ========================================================================= */

.svc {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0;
    width: 100%;
    min-height: 100dvh;
    padding: 16px;
    background: var(--surface);
    text-align: center;
    font-family: var(--font-ui, var(--font-family));
    color: var(--text-primary);
}

.svc__illus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

    .svc__illus img {
        max-width: 100%;
        height: auto;
        display: block;
    }

.svc__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 640px;
    box-sizing: border-box;
    padding: 8px 0;
}

.svc__code {
    margin: 0;
    font-family: var(--font-display, var(--third-family));
    font-weight: 600;
    font-size: 72px;
    line-height: 1;
    color: var(--surface-sunken);
}

.svc__title {
    margin: 0;
    font-family: var(--font-display, var(--third-family));
    font-weight: 600;
    font-size: 24px;
    line-height: 32px;
    color: var(--text-primary);
}

.svc__sub {
    margin: 0;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: var(--text-secondary);
}

.svc__fine {
    margin: 0;
    font-size: 12px;
    color: var(--text-tertiary);
}

.svc__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    width: 100%;
}

.svc__btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 250px;
    height: 44px;
    padding: 0 20px;
    border: none;
    border-radius: 12px;
    background: var(--green-500);
    color: #fff;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.svc__btn--ghost {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .svc {
        flex-direction: row;
        gap: 24px;
        padding: 20px;
    }

    .svc__illus {
        flex: 0 0 40%;
    }

    .svc__body {
        max-width: 555px;
        gap: 24px;
        padding: 0;
    }

    .svc__code {
        font-size: 96px;
    }

    .svc__title {
        font-size: 28px;
        line-height: 40px;
    }

    .svc__sub {
        font-size: 18px;
        line-height: 28px;
    }

    .svc__btn {
        min-width: 220px;
    }
}

@media (min-width: 1024px) {
    .svc {
        gap: 32px;
        padding: 28px;
    }

    .svc__code {
        font-size: 120px;
    }

    .svc__title {
        font-size: 32px;
        line-height: 48px;
    }
}
