:root {
    color-scheme: light;
    font-family: Inter, 'Segoe UI', Arial, sans-serif;
    color: #20242c;
    background: #f7f7f5;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    background: #f7f7f5;
}

button {
    font: inherit;
}

.status-header {
    height: 78px;
    border-bottom: 2px solid #bd1f2d;
    background: #fff4cf url('../images/background-header.png') center / cover no-repeat;
}

.status-header__inner {
    width: min(1040px, calc(100% - 40px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.status-header__logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.status-header__name {
    margin: 0;
    color: #1e1b16;
    font-size: clamp(14px, 2vw, 17px);
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
}

.status-main {
    width: min(680px, calc(100% - 40px));
    min-height: calc(100vh - 80px);
    margin: 0 auto;
    padding: clamp(58px, 12vh, 120px) 0 56px;
}

.status-panel {
    text-align: center;
}

.status-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #b91c2b;
    background: #f8e5e7;
}

.status-icon svg {
    width: 58px;
    height: 58px;
}

.status-title {
    margin: 0;
    color: #171a20;
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.18;
}

.status-summary {
    max-width: 620px;
    margin: 20px auto 0;
    color: #60656f;
    font-size: 19px;
    line-height: 1.6;
}

.status-message {
    max-width: 600px;
    margin: 26px auto 0;
    padding: 15px 18px;
    display: grid;
    gap: 4px;
    border-radius: 8px;
    color: #5b4723;
    background: #f5eddd;
    font-size: 16px;
    line-height: 1.55;
    text-align: left;
}

.status-message strong {
    color: #4c3a19;
    font-size: 14px;
}

.status-message[hidden] {
    display: none;
}

.status-guidance {
    max-width: 600px;
    margin: 30px auto 0;
    padding: 20px 22px;
    border: 1px solid #e0e2e5;
    border-radius: 10px;
    background: #f1f2f3;
    text-align: left;
}

.status-guidance h2 {
    margin: 0 0 8px;
    color: #252a32;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.status-guidance p {
    margin: 0;
    color: #4d535d;
    font-size: 17px;
    line-height: 1.6;
}

.status-actions {
    margin-top: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.status-button {
    min-height: 52px;
    padding: 13px 26px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.2;
    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.status-button:focus-visible {
    outline: 3px solid rgba(35, 97, 184, 0.25);
    outline-offset: 2px;
}

.status-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.status-button--primary {
    min-width: 170px;
    color: #fff;
    background: #b91c2b;
}

.status-button--primary:hover {
    background: #a31724;
}

.status-button--secondary {
    color: #353a43;
    border-color: #d7d9dd;
    background: transparent;
}

.status-button--secondary:hover {
    border-color: #b8bbc1;
    background: #fff;
}

.status-exit-note {
    margin: 14px 0 0;
    color: #777c85;
    font-size: 14px;
    line-height: 1.5;
}

.status-reference {
    margin: 34px 0 0;
    color: #989ba1;
    font-size: 12px;
    letter-spacing: 0.02em;
}

@media (max-width: 520px) {
    .status-header {
        height: 66px;
    }

    .status-header__inner {
        width: calc(100% - 24px);
        gap: 10px;
    }

    .status-header__logo {
        width: 46px;
        height: 46px;
    }

    .status-main {
        width: calc(100% - 32px);
        min-height: calc(100vh - 68px);
        padding: 46px 0 40px;
    }

    .status-title {
        font-size: 36px;
    }

    .status-icon {
        width: 76px;
        height: 76px;
        margin-bottom: 22px;
    }

    .status-icon svg {
        width: 50px;
        height: 50px;
    }

    .status-summary {
        font-size: 18px;
    }

    .status-guidance {
        padding: 18px;
    }

    .status-guidance h2,
    .status-guidance p {
        font-size: 16px;
    }

    .status-actions {
        display: grid;
    }

    .status-button {
        width: min(100%, 280px);
        margin: 0 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .status-button {
        transition: none;
    }
}
