/* Figma RU Web: 1440px frame / 120px gutters; mobile: 390px / 20px.
 * Content width excludes gutters. Full-width backgrounds stay outside this grid.
 */
:root {
    --site-content-max: 1200px;
    --site-gutter: 120px;
    --site-frame-max: calc(var(--site-content-max) + 2 * var(--site-gutter));
    --site-content-width: min(var(--site-content-max), calc(100% - 2 * var(--site-gutter)));
}

/* Short pages fill the viewport; long pages keep the footer after the content. */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

body.ac-auth-body > .ac-auth {
    flex: 1 0 auto;
    min-height: 0;
}

@media (max-width: 1239px) {
    :root {
        --site-content-max: 580px;
        --site-gutter: 20px;
    }
}
