.app,
.center-wrap {
    max-width: var(--app-width);
    margin: 0 auto;
    min-height: 100vh;
    padding: 24px 18px 32px;
}

.center-wrap {
    display: flex;
    align-items: center;
}

.header h1 {
    margin: 0 0 8px;
    font-size: 2rem;
    line-height: 1.1;
}

.header p {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 1rem;
}

.page-header.page-header {
    position: sticky;
    top: 0;
    z-index: 4;
    width: 100%;
    max-width: var(--app-width);
    min-height: 116px;
    margin: 0 auto;
    padding: 24px 16px 20px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    background: #164571;
    color: #ffffff;
}

.page-header__brand {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    text-decoration: none;
    flex: 0 0 auto;
}

.page-header__brand:focus-visible {
    border-radius: 12px;
    outline: 3px solid rgba(255, 255, 255, 0.32);
    outline-offset: 2px;
}

.page-header__logo {
    width: auto;
    height: 44px;
    max-width: 48px;
    object-fit: contain;
    object-position: left center;
    display: block;
}

.page-header__content {
    min-width: 0;
}

.page-header .page-header__title {
    margin: 0;
    overflow: hidden;
    color: #ffffff;
    font-size: 1.35rem;
    line-height: 1.12;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-header .page-header__subtitle {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.35;
    font-weight: 400;
}

.page-header .page-header__back {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    text-decoration: none;
    font-size: 1.05rem;
    flex: 0 0 auto;
}

.page-header .page-header__avatar {
    width: 44px;
    height: 44px;
    font-size: 1rem;
}

.page-header.page-header--has-avatar {
    grid-template-columns: 58px minmax(0, 1fr) 44px auto;
}

.section-title {
    margin: 0 0 12px;
    font-size: 1rem;
}

@media (max-width: 380px) {
    .page-header.page-header {
        min-height: 104px;
        padding: 20px 14px 18px;
        grid-template-columns: 50px minmax(0, 1fr) auto;
        gap: 12px;
    }

    .page-header__brand {
        width: 50px;
        height: 50px;
    }

    .page-header__logo {
        height: 44px;
    }

    .page-header .page-header__title {
        font-size: 1.35rem;
    }

    .page-header.page-header--has-avatar {
        grid-template-columns: 50px minmax(0, 1fr) 40px auto;
    }
}
