* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    background: #f5f7fa;
    color: #172033;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.page {
    min-height: 100vh;
    min-height: 100svh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
}

.profile-card {
    width: min(760px, 100%);

    padding: 56px;

    background: #ffffff;

    border: 1px solid #e5e9f0;
    border-radius: 24px;

    box-shadow:
        0 20px 50px rgba(15, 35, 70, 0.08);
}

h1 {
    color: #0b1f3a;

    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;

    letter-spacing: -0.04em;
    line-height: 1.05;

    margin-bottom: 18px;
}

.subtitle {
    color: #1769e0;

    font-size: 1rem;
    font-weight: 600;

    line-height: 1.6;

    margin-bottom: 36px;
}

.subtitle span {
    color: #9aa6b5;
    padding: 0 4px;
}

.profile-card p:not(.subtitle) {
    color: #4a5568;

    font-size: 1.08rem;
    line-height: 1.8;

    margin-bottom: 22px;
}

.profile-card p:last-of-type {
    margin-bottom: 36px;
}

strong {
    color: #172033;
    font-weight: 600;
}

.actions {
    display: flex;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 0 22px;

    border-radius: 4px;

    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:focus-visible {
    outline: 3px solid rgba(23, 105, 224, 0.25);
    outline-offset: 3px;
}

.button-primary {
    background: #1769e0;
    color: #ffffff;
}

.button-primary:hover {
    background: #0f5dcc;
}

.button-secondary {
    background: #ffffff;
    color: #1769e0;

    border: 1px solid #cdd8e8;

    cursor: pointer;
}

.button-secondary:hover {
    background: #f5f8fc;
}

/* Toast notification */

.toast {
    position: fixed;

    left: 50%;
    bottom: 32px;

    transform: translate(-50%, 20px);

    padding: 12px 18px;

    background: #172033;
    color: #ffffff;

    border-radius: 10px;

    font-size: 0.9rem;
    font-weight: 500;

    box-shadow: 0 10px 30px rgba(15, 35, 70, 0.18);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;

    pointer-events: none;

    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    visibility: visible;

    transform: translate(-50%, 0);
}

@media (max-width: 600px) {

    .page {
        padding: 16px;
    }

    .profile-card {
        padding: 32px 24px;
        border-radius: 20px;
    }

    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 28px;
    }

    .profile-card p:not(.subtitle) {
        font-size: 1rem;
        line-height: 1.7;
    }

    .actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .toast {
        bottom: 20px;

        max-width: calc(100% - 32px);

        white-space: normal;
        text-align: center;
    }
}
