﻿:root {
    --ag-bg: #f4f5f6;
    --ag-surface: #ffffff;
    --ag-dark: #111518;
    --ag-dark-2: #171c20;
    --ag-dark-3: #20262b;
    --ag-border: #e6e8eb;
    --ag-muted: #7b848c;
    --ag-text: #161a1e;
    --ag-red: #e42626;
    --ag-red-dark: #bf1818;
    --ag-yellow: #f7b500;
    --ag-container: 1180px;
    --ag-radius: 10px;
    --ag-shadow: 0 14px 40px rgba(15, 23, 42, .12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.ag-body {
    margin: 0;
    min-height: 100vh;
    background: var(--ag-bg);
    color: var(--ag-text);
    font-family: Roboto, Arial, sans-serif;
    font-size: 14px;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.ag-container {
    width: min(var(--ag-container), calc(100% - 32px));
    margin-inline: auto;
}

.ag-main {
    min-height: 50vh;
    background: var(--ag-bg);
}

.ag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
}

.ag-btn--primary {
    background: var(--ag-red);
    color: #fff;
}

.ag-btn--ghost {
    background: #fff;
    color: var(--ag-text);
    border-color: var(--ag-border);
}

.ag-backtop {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 80;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    background: rgba(17, 21, 24, .88);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

    .ag-backtop.is-visible {
        display: inline-flex;
    }

    .ag-backtop svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

@media (max-width: 768px) {
    .ag-container {
        width: min(100% - 24px, var(--ag-container));
    }
}
