/* ============================================
   Страницы входа: «Бирюза-кабинет»
   ============================================
   Вход, регистрация, восстановление и смена пароля, приглашение. Слева тёмная
   панель того же вида, что заголовок кабинета (кольца логотипа, --shell-band),
   справа плотная карточка на холодном меше. Подключается через
   `{% block head %}` только этих страниц.

   Поверхности плотные, без blur: карточка лежит на ровном фоне, и полупрозрачность
   съедала бы её границу. Оболочка кабинета (shell.css) этих страниц не касается —
   у них нет `body.qq-cab`, поэтому палитра продублирована токенами ниже. */

:root {
    --au-band: #0b3c47;
    --au-band-2: #0b3c47;
    --au-mint: #9fd0d8;
    --au-btn-1: #0b4f5b;
    --au-btn-2: #0b3c47;
    --au-btn-glow: rgba(11, 101, 115, 0.30);
    --au-ink: #1e293b;
    --au-dim: #64748b;
    --au-muted: #94a3b8;
    --au-field-border: #e2e8f0;
    --au-bad: #dc2626;
    --au-bad-bg: #fef2f2;
    --au-warn: #92400e;
    --au-warn-bg: #fef3c7;
    --au-rings: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700' fill='none' stroke='%2362b9b1' stroke-width='1.2'%3E%3Ccircle cx='350' cy='350' r='340' stroke-opacity='.30'/%3E%3Ccircle cx='350' cy='350' r='260' stroke-opacity='.24'/%3E%3Ccircle cx='350' cy='350' r='180' stroke-opacity='.20'/%3E%3Ccircle cx='350' cy='350' r='100' stroke-opacity='.16'/%3E%3C/svg%3E");
}

/* Холст — тот же меш, что у кабинета. На <html>, как в shell.css: у html в
   style.css свой background-color, и фон body его не перекрывает. */
html:has(.au) {
    background:
        radial-gradient(900px 700px at 0% 10%, rgba(14, 124, 138, 0.34), transparent 65%),
        radial-gradient(900px 700px at 100% 0%, rgba(20, 160, 200, 0.30), transparent 65%),
        radial-gradient(1000px 800px at 60% 110%, rgba(139, 124, 246, 0.20), transparent 65%),
        #f1f5f9;
    background-attachment: fixed;
}

body:has(.au) {
    background: transparent;
}

body:has(.au) .global-watermark,
body:has(.au) .navbar,
body:has(.au) .footer-custom {
    display: none !important;
}

.auth-body {
    background: transparent;
}

.au {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
}

/* ───────── Левая панель: Чистый арт-сплит ───────── */
.au-art {
    display: none;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    width: 44%;
    max-width: 760px;
    flex-shrink: 0;
    flex-direction: column;
    justify-content: flex-start;
    padding: 3rem 3.5rem;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    background-image:
        linear-gradient(180deg, rgba(8, 40, 48, 0.78) 0%, rgba(8, 40, 48, 0.12) 20%, rgba(8, 40, 48, 0.12) 80%, rgba(8, 40, 48, 0.88) 100%),
        url('/static/img/auth-qazquality-dashboard.jpg?v=2');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: var(--au-band);
}

.au-art--register {
    background-image:
        linear-gradient(180deg, rgba(8, 40, 48, 0.78) 0%, rgba(8, 40, 48, 0.12) 20%, rgba(8, 40, 48, 0.12) 80%, rgba(8, 40, 48, 0.88) 100%),
        url('/static/img/auth-qazquality-register.jpg?v=2');
}

@media (min-width: 992px) {
    .au-art { display: flex; }
}

.au-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-pill, 9999px);
    background: rgba(11, 60, 71, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    width: fit-content;
    transition: background 0.2s ease, transform 0.2s ease;
}

.au-brand:hover {
    text-decoration: none;
    color: #fff;
    background: rgba(11, 60, 71, 0.75);
    transform: translateY(-1px);
}

.au-brand img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.au-brand b {
    display: block;
    font: 800 1.25rem/1 'Outfit', system-ui, sans-serif;
    letter-spacing: var(--ls-caps);
}

.au-brand span {
    display: block;
    margin-top: 4px;
    font-size: var(--fs-micro);
    letter-spacing: var(--ls-caps);
    color: var(--au-mint);
    text-transform: uppercase;
    font-weight: 600;
}

.au-main {
    display: flex;
    flex-direction: column;
}

.au-main h1 {
    margin: 0 0 1rem;
    max-width: 15em;
    font: 700 2.15rem/1.18 'Outfit', system-ui, sans-serif;
    letter-spacing: var(--ls-tight);
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.au-main h1 em {
    font-style: normal;
    color: var(--au-mint);
}

.au-main > p {
    margin: 0 0 1.4rem;
    max-width: 31em;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.au-art-spacer {
    min-height: 160px;
    flex: 1 1 auto;
}

.au-zscale {
    margin: 0 0 2.1rem;
    max-width: 470px;
}

.au-zscale svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.au-zscale-cap {
    display: flex;
    justify-content: space-between;
    margin-top: 0.55rem;
    font-size: var(--fs-micro);
    color: rgba(255, 255, 255, 0.55);
}

.au-facts {
    display: grid;
    gap: 0.75rem;
    max-width: 470px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.au-facts li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: rgba(11, 60, 71, 0.58);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 0.65rem 0.95rem;
    border-radius: var(--r-md, 10px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.au-facts i {
    flex: none;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: var(--r-md, 8px);
    background: rgba(38, 166, 154, 0.28);
    border: 1px solid rgba(143, 227, 214, 0.38);
    color: var(--au-mint);
}

.au-facts svg { width: 18px; height: 18px; }

.au-facts b {
    display: block;
    font-size: var(--fs-md);
    font-weight: 600;
}

.au-facts span {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.75);
}

.au-foot {
    max-width: 470px;
    padding: 0.75rem 1rem;
    border-radius: var(--r-md, 10px);
    background: rgba(11, 60, 71, 0.58);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.au-foot q {
    font-style: italic;
    quotes: "«" "»";
}

/* Низкие окна: панель не прокручивается, поэтому убираем второстепенное. */
@media (min-width: 992px) and (max-height: 860px) {
    .au-art { padding: 2rem 2.6rem; gap: 1rem; }
    .au-main h1 { font-size: var(--fs-2xl); margin-bottom: 0.7rem; }
    .au-main > p { margin-bottom: 1.1rem; }
    .au-zscale { margin-bottom: 1.2rem; }
    .au-facts { gap: 0.65rem; }
    .au-facts span { display: none; }
}

@media (min-width: 992px) and (max-height: 700px) {
    .au-foot,
    .au-main > p { display: none; }
}

/* Узкий экран: вместо панели — компактная полоса с логотипом. */
.au-mhead {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: #fff;
    background:
        var(--au-rings) no-repeat right -200px top -330px / 600px 600px,
        radial-gradient(90% 220% at 100% 0%, #0b4f5b 0, rgba(20, 96, 107, 0) 60%),
        var(--au-band);
}

.au-mhead img { width: 34px; height: 34px; object-fit: contain; }

.au-mhead b {
    font: 800 1.05rem 'Outfit', system-ui, sans-serif;
    letter-spacing: var(--ls-caps);
}

@media (min-width: 992px) {
    .au-mhead { display: none; }
}

/* ───────── Правая часть ───────── */
.au-side {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.au-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.au-card {
    width: 100%;
    max-width: 440px;
    padding: 2.25rem 2.1rem 1.75rem;
    border-radius: var(--r-xl);
    background: var(--surface);
    border: 1px solid var(--surface-border);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 18px 40px -16px rgba(16, 24, 40, 0.22);
}

.au-card--wide { max-width: 520px; }

.au-head { margin-bottom: 1.6rem; }

.au-head h2 {
    margin: 0 0 0.3rem;
    font: 800 1.65rem/1.15 'Outfit', system-ui, sans-serif;
    letter-spacing: var(--ls-tight);
    color: var(--au-ink);
}

.au-head p {
    margin: 0;
    font-size: var(--fs-md);
    color: var(--au-dim);
}

.au-step[hidden] { display: none; }

/* Поля: плавающая подпись, как в остальном проекте, но легче. */
.au-field {
    position: relative;
    margin-bottom: 1.05rem;
}

.au-field input {
    width: 100%;
    height: 58px;
    padding: 1.6rem 1rem 0.4rem;
    line-height: var(--lh-tight);
    border-radius: var(--r-md);
    background: #f2f9fa;
    border: 1.5px solid var(--au-field-border);
    color: var(--au-ink);
    font-size: var(--fs-base);
    font-weight: 500;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.au-field input:hover:not(:disabled) {
    background: #fff;
    border-color: #cbd5e1;
}

.au-field input:focus {
    outline: 0;
    background: #fff;
    border-color: var(--field-focus);
    box-shadow: var(--field-ring);
}

.au-field input:disabled {
    color: var(--au-dim);
    background: #f1f5f9;
}

.au-field input:-webkit-autofill,
.au-field input:-webkit-autofill:hover,
.au-field input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--au-ink);
    -webkit-box-shadow: 0 0 0 1000px #f2f9fa inset;
    box-shadow: 0 0 0 1000px #f2f9fa inset;
    transition: background-color 5000s ease-in-out 0s;
}

.au-field label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64788a;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.au-field input:focus + label,
.au-field input:not(:placeholder-shown) + label {
    top: 9px;
    transform: none;
    font-size: var(--fs-micro);
    font-weight: 600;
    line-height: var(--lh-none);
    letter-spacing: var(--ls-wide);
    color: #0b4f5b;
}

.au-field--pw input { padding-right: 3rem; }

.au-eye {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: var(--r-md);
    background: none;
    color: #64748b;
    cursor: pointer;
}

.au-eye:hover { background: rgba(14, 124, 138, 0.1); color: #0b4f5b; }
.au-eye:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(14, 124, 138, 0.3); }
.au-eye svg { width: 20px; height: 20px; }
.au-eye .au-eye-off { display: none; }
.au-eye[aria-pressed="true"] .au-eye-on { display: none; }
.au-eye[aria-pressed="true"] .au-eye-off { display: inline; }

.au-caps {
    display: none;
    align-items: center;
    gap: 8px;
    margin: -0.35rem 0 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--r-md);
    font-size: var(--fs-sm);
    background: var(--au-warn-bg);
    color: var(--au-warn);
}

.au-caps.is-on { display: flex; }
.au-caps svg { width: 16px; height: 16px; flex: none; }

.au-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 0.2rem 0 1.35rem;
    font-size: var(--fs-sm);
}

.au-row a { font-weight: 500; }

.au-check {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
    color: var(--text-primary);
    font-weight: 500;
}

.au-check input { position: absolute; opacity: 0; }

.au-check s {
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    border-radius: var(--r-sm);
    border: 1.5px solid var(--au-field-border);
    background: #f2f9fa;
    text-decoration: none;
    transition: all 0.15s;
}

.au-check s svg { width: 12px; height: 12px; stroke: #fff; opacity: 0; }
.au-check input:checked + s { background: var(--au-btn-1); border-color: var(--au-btn-1); }
.au-check input:checked + s svg { opacity: 1; }
.au-check input:focus-visible + s { box-shadow: 0 0 0 4px rgba(14, 124, 138, 0.2); }

.au-alert {
    display: none;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 1.1rem;
    padding: 0.7rem 0.85rem;
    border-radius: var(--r-md);
    background: var(--au-bad-bg);
    color: var(--au-bad);
    font-size: var(--fs-sm);
}

.au-alert.is-on { display: flex; }
.au-alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

.au-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.au-btn:disabled { opacity: 0.65; cursor: default; transform: none; }

.au-btn--primary {
    color: #fff;
    font-size: var(--fs-md);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--au-btn-1), var(--au-btn-2));
    box-shadow: 0 8px 20px var(--au-btn-glow);
}

.au-btn--primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(11, 101, 115, 0.38);
}

.au-btn--primary:focus-visible,
.au-btn--ghost:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(14, 124, 138, 0.28);
}

.au-btn--ghost {
    background: #fff;
    color: var(--au-ink);
    border: 1.5px solid var(--au-field-border);
    font-size: var(--fs-md);
}

.au-btn--ghost:hover:not(:disabled) {
    border-color: var(--primary);
    background: #f2f9fa;
    color: #0b3c47;
}

.au-btn--ghost svg { width: 20px; height: 20px; color: #0b4f5b; }

/* Кнопка «Войти» и Passkey в одном ряду: ключ — иконка, а не вторая кнопка. */
.au-actions {
    display: flex;
    gap: 10px;
}

.au-actions .au-btn--primary { flex: 1; min-width: 0; }

.au-btn--icon {
    flex: none;
    width: 50px;
    padding: 0;
}

.au-btn--icon svg { width: 22px; height: 22px; }

.au-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: -0.5rem 0 1.1rem -0.2rem;
    padding: 4px 0;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--au-dim);
    text-decoration: none;
}

.au-home:hover { color: #0b4f5b; text-decoration: none; }
.au-home svg { width: 16px; height: 16px; }

.au-or {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 1.3rem 0;
    color: var(--au-muted);
    font-size: var(--fs-xs);
    letter-spacing: var(--ls-caps);
    text-transform: uppercase;
}

.au-or::before,
.au-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.au-foot-links {
    margin-top: 1.5rem;
    padding-top: 1.1rem;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-size: var(--fs-md);
    color: var(--au-dim);
}

.au-foot-links a { font-weight: 600; }

/* Юридический подвал лежит под карточкой, на меше, а не внутри неё: карточка
   заканчивается действием («Создать аккаунт»), а документы не отвлекают.
   Текст темнее, чем внутри карточки: фон здесь не белый. */
.au-legal {
    width: 100%;
    max-width: 440px;
    margin-top: 1rem;
    text-align: center;
}

.au-card--wide + .au-legal { max-width: 520px; }

.au-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.15rem 0;
    font-size: var(--fs-xs);
}

.au-legal-links a {
    padding: 2px 0;
    color: #475569;
    font-weight: 500;
    text-decoration: none;
}

.au-legal-links a:hover {
    color: #0b4f5b;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Разделитель — точка у второй ссылки, а не символ в тексте: при переносе
   строки она не остаётся висеть в конце. */
.au-legal-links a + a::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 3px;
    margin: 0 0.6rem;
    border-radius: 50%;
    background: #64748b;
    vertical-align: middle;
}

@media (max-width: 640px) {
    .au-legal-links { flex-direction: column; align-items: center; }
    .au-legal-links a + a::before { display: none; }
}

.au-copy {
    margin-top: 0.35rem;
    font-size: var(--fs-micro);
    color: var(--au-dim);
}

/* Форма регистрации: два столбца там, где поля короткие. */
.au-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 0.85rem;
}

@media (max-width: 640px) {
    .au-grid { grid-template-columns: 1fr; }
}

.au-section {
    margin: 1.3rem 0 0.8rem;
    font-size: var(--fs-micro);
    font-weight: 700;
    letter-spacing: var(--ls-caps);
    text-transform: uppercase;
    color: var(--au-muted);
}

.au-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

/* Шаг двухфакторной проверки */
.au-twofa-ico {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1.1rem;
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, var(--au-band), var(--au-band-2));
    color: var(--au-mint);
}

.au-twofa-ico svg { width: 26px; height: 26px; }

.au-otp {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 9px;
    margin: 1.3rem 0 1.4rem;
}

.au-otp input {
    width: 100%;
    height: 58px;
    text-align: center;
    font: 700 1.5rem 'Outfit', system-ui, sans-serif;
    color: var(--au-ink);
    border-radius: var(--r-md);
    background: #f2f9fa;
    border: 1.5px solid var(--au-field-border);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.au-otp input:focus {
    outline: 0;
    background: #fff;
    border-color: var(--field-focus);
    box-shadow: var(--field-ring);
}

.au-otp input.is-filled { border-color: #9fd0d8; background: #fff; }

.au-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 1.1rem;
    padding: 6px 0;
    border: 0;
    background: none;
    color: var(--au-dim);
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
}

.au-back:hover { color: #0b4f5b; }
.au-back svg { width: 16px; height: 16px; }

/* Проверка Altcha */
.au-captcha { margin-bottom: 1rem; }

@media (max-width: 640px) {
    .au-wrap { padding: 1rem 0.75rem; justify-content: flex-start; }
    .au-card { padding: 1.6rem 1.25rem 1.3rem; border-radius: var(--r-lg); }
    .au-otp { gap: 6px; }
    .au-otp input { height: 52px; }
}

@media (prefers-reduced-motion: no-preference) {
    .au-card { animation: auRise 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }

    @keyframes auRise {
        from { opacity: 0; transform: translateY(10px); }
    }
}


/* ───────── Регистрация ───────── */

/* Три шага на левой панели вместо общих пунктов: человеку важно знать, что
   после заявки нужно подтверждение администратора. */
.au-steps { list-style: none; }

.au-steps i {
    font-style: normal;
    font: 700 0.95rem 'Outfit', system-ui, sans-serif;
}

.au-section--first { margin-top: 0; }

.au-btn--link {
    text-decoration: none;
}

a.au-btn:hover { text-decoration: none; color: #fff; }

/* Согласие на ПДн: разметка и логика у consent.css, вид — как у остальных
   флажков кабинета входа. */
.au .consent-check {
    align-items: flex-start;
    gap: 11px;
    margin: 0.4rem 0 1.2rem;
    padding: 0.75rem 0.85rem;
    border-radius: var(--r-md);
    background: #f2f9fa;
    border: 1.5px solid var(--au-field-border);
    font-size: var(--fs-sm);
    color: var(--au-dim);
    transition: border-color 0.2s, background 0.2s;
}

.au .consent-check:hover { background: #fff; border-color: #cbd5e1; }
.au .consent-check:has(input:checked) { background: #f2f9fa; border-color: #9fd0d8; }
.au .consent-check:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(14, 124, 138, 0.2); }

.au .consent-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex: none;
    width: 19px;
    height: 19px;
    margin: 1px 0 0;
    border-radius: var(--r-sm);
    border: 1.5px solid var(--au-field-border);
    background: #fff center / 12px no-repeat;
    transition: all 0.15s;
}

.au .consent-check input[type="checkbox"]:checked {
    background-color: var(--au-btn-1);
    border-color: var(--au-btn-1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6.2l2.6 2.6L10 3.4'/%3E%3C/svg%3E");
}

.au .consent-check a { color: #0b4f5b; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Заявка отправлена */
.au-done-ico {
    background: linear-gradient(135deg, var(--au-btn-1), var(--au-btn-2));
    color: #fff;
}

.au-done .au-head p { line-height: var(--lh-loose); }

.au-card:has(#regDone:not([hidden])) .au-foot-links,
.au-card:has(#regDone:not([hidden])) .au-home { display: none; }

/* ───────── Прокрутка ─────────
   Резиновая прокрутка всего документа открывала светлый фон по краям
   тёмной панели. На десктопе страница стоит на месте, а прокручивается только
   правая колонка; на узких экранах прокручивается документ, но без отскока. */
html:has(.au) {
    overscroll-behavior: none;
}

@media (min-width: 992px) {
    html:has(.au),
    html:has(.au) body {
        height: 100%;
        overflow: hidden;
    }

    .au {
        height: 100vh;
        height: 100dvh;
        min-height: 0;
    }

    .au-art { position: relative; }

    .au-side {
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
    }
}
