:root {
    --button_background: #3f45e0;
    --button_background_hover: #3d63d7;
    --button_text_color: #fff;
    --background-color: #fff;
    --text-color: #000;
}

body {
    margin: 0;
    background-color: var(--background-color);
    font-family: -apple-system, system-ui, Helvetica Neue, Roboto, sans-serif;
    color: var(--text-color);
}

body[scheme="space_gray"] {
    --button_background: #e1e3e6;
    --button_background_hover: #e2e4e7;
    --button_text_color: #19191a;
    --background-color: #19191a;
    --text-color: #e1e3e6;
}

.page__wrapper {
    padding: 8px;
}

.page__content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page__img-wrapper {
    width: 100%;
    max-width: 350px;
    margin-top: 48px;
    margin-bottom: 64px;
}

.page__img {
    width: 100%;
}

.page__text {
    margin-bottom: 28px;
    text-align: center;
}

.page__heading {
    margin: 0 0 28px 0;
    font-size: 24px;
    font-weight: 500;
}

.page__button-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

@media (min-width: 768px) {
    .page__content {
        margin-block: 50px;
    }

    .page__img-wrapper {
        margin-top: 64px;
    }

    .page__text {
        max-width: 425px;
    }

    .page__button-group {
        flex-direction: row;
        width: unset;
    }
}

.button {
    height: 42px;
    width: 100%;
    background-color: var(--button_background);
    font-family: inherit;
    word-wrap: break-word;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    outline: none !important;
    border: none;
    border-radius: 12px;
    margin: 0;
    padding: 0;
    user-select: none;
    cursor: pointer;
    color: var(--button_text_color);
    transition: all 0.15s ease-out;
}

.button:hover {
    background-color: var(--button_background_hover);
}

.button:active {
    opacity: 0.7;
}

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

.button__icon-wrapper {
    padding-left: 16px;
}

.button__text {
    line-height: 20px;
    font-size: 16px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 20px;
    margin-left: 8px;
}

.page__caption {
    line-height: 150%;
}
