* {
    box-sizing: border-box;
}

:root {
    --bg: #f5f7fb;
    --panel: #ffffff;
    --text: #161a22;
    --muted: #637083;
    --line: #e4e9f1;
    --accent: #c92a2a;
    --accent-soft: #fff1f1;
    --focus: #2563eb;
}

body {
    margin: 0;
    min-height: 100vh;
    padding: 32px 18px;
    background:
            linear-gradient(135deg, rgba(201, 42, 42, .08), transparent 34%),
            linear-gradient(315deg, rgba(37, 99, 235, .08), transparent 30%),
            var(--bg);
    color: var(--text);
    font-family: 'ALKATIP Basma Tom', Arial, "Microsoft YaHei", sans-serif;
}

.page {
    width: min(100%, 920px);
    min-height: calc(100vh - 64px);
    margin: 0 auto;
    display: grid;
    align-items: center;
}

.panel {
    overflow: hidden;
    border-radius: 8px;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: 0 24px 70px rgba(22, 26, 34, .12);
}

.hero {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    min-height: 430px;
}

.visual {
    position: relative;
    display: grid;
    align-content: center;
    justify-items: center;
    padding: 34px;
    background: linear-gradient(160deg, #2b3445, #111827);
    color: #fff;
    isolation: isolate;
}

.visual::before {
    content: "";
    position: absolute;
    inset: 28px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    z-index: -1;
}

.visual::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    border: 28px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    bottom: -38px;
    left: -34px;
    z-index: -1;
}

.status-label {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}

.code {
    margin: 0;
    font-size: clamp(74px, 13vw, 132px);
    font-weight: 800;
    letter-spacing: 0;
    text-shadow: 0 16px 30px rgba(0, 0, 0, .26);
}

.content {
    display: grid;
    align-content: center;
    padding: 46px;
}

h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: 0;
}

.summary {
    margin: 0 0 22px;
    max-width: 560px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.message {
    margin: 0;
    padding: 16px 18px;
    border: 1px solid #ffd6d6;
    border-right: 4px solid var(--accent);
    border-radius: 8px;
    background: var(--accent-soft);
    color: #541313;
    font-size: 15px;
    line-height: 1.8;
    word-break: break-word;
}

.details {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfe;
}

.details h2 {
    margin: 0;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: #f8fafc;
    font-size: 15px;
    font-weight: 800;
}

.details ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.details li {
    display: grid;
    grid-template-columns: minmax(110px, 180px) 1fr;
    gap: 18px;
    padding: 15px 18px;
    border-top: 1px solid var(--line);
}

.details li:first-child {
    border-top: 0;
}

.detail-key {
    color: #334155;
    font-size: 14px;
    font-weight: 800;
    word-break: break-word;
}

.detail-value {
    color: var(--muted);
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid var(--line);
    color: var(--text);
    background: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

.action.primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.action:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .22);
    outline-offset: 2px;
}

@media (max-width: 720px) {
    body {
        padding: 14px;
    }

    .page {
        min-height: calc(100vh - 28px);
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .visual {
        min-height: 230px;
        padding: 28px;
    }

    .content {
        padding: 28px 22px;
    }

    .details li {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .actions {
        display: grid;
    }
}
