﻿.ag-site-page {
    background: #f4f5f6;
    padding: 20px 0 42px;
}

.ag-site-page__bc {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #7b848c;
    font-size: 12px;
    margin-bottom: 18px;
}

    .ag-site-page__bc a:hover {
        color: var(--ag-red);
    }

    .ag-site-page__bc strong {
        color: #171c20;
        font-weight: 800;
    }

.ag-site-page__hero {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    min-height: 190px;
    padding: 34px 38px;
    margin-bottom: 24px;
    background: radial-gradient(circle at 90% 10%, rgba(228, 38, 38, .18), transparent 30%), linear-gradient(120deg, #151a1e 0%, #20262b 100%);
    color: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .14);
}

    .ag-site-page__hero span {
        display: inline-flex;
        min-height: 30px;
        align-items: center;
        padding: 0 12px;
        border-radius: 999px;
        background: var(--ag-red);
        color: #fff;
        font-size: 11px;
        font-weight: 900;
        letter-spacing: .12em;
        text-transform: uppercase;
    }

    .ag-site-page__hero h1 {
        margin: 16px 0 10px;
        max-width: 780px;
        font-family: Montserrat, Roboto, Arial, sans-serif;
        font-size: clamp(30px, 4vw, 48px);
        line-height: 1.05;
        font-weight: 900;
        letter-spacing: -1.4px;
    }

    .ag-site-page__hero p {
        max-width: 680px;
        margin: 0;
        color: #d8dde2;
        font-size: 14px;
        line-height: 1.65;
    }

.ag-site-page__card {
    background: #fff;
    border: 1px solid #e7eaee;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .04);
}

.ag-prose,
.ag-page-modal-content {
    max-width: 920px;
    color: #2f3740;
    font-size: 14px;
    line-height: 1.75;
}

    .ag-prose > *:first-child,
    .ag-page-modal-content > *:first-child {
        margin-top: 0;
    }

    .ag-prose > *:last-child,
    .ag-page-modal-content > *:last-child {
        margin-bottom: 0;
    }

    .ag-prose p,
    .ag-page-modal-content p {
        margin: 0 0 13px;
        line-height: 1.75;
    }

    .ag-prose h2,
    .ag-page-modal-content h2 {
        margin: 26px 0 11px;
        color: #171c20;
        font-family: Montserrat, Roboto, Arial, sans-serif;
        font-size: 22px;
        line-height: 1.25;
        font-weight: 900;
    }

    .ag-prose h3,
    .ag-page-modal-content h3 {
        margin: 20px 0 9px;
        color: #171c20;
        font-family: Montserrat, Roboto, Arial, sans-serif;
        font-size: 18px;
        line-height: 1.3;
        font-weight: 900;
    }

    .ag-prose h4,
    .ag-page-modal-content h4 {
        margin: 18px 0 8px;
        color: #171c20;
        font-size: 15px;
        font-weight: 900;
    }

    .ag-prose ul,
    .ag-prose ol,
    .ag-page-modal-content ul,
    .ag-page-modal-content ol {
        margin: 12px 0 16px;
        padding-left: 22px;
    }

    .ag-prose li,
    .ag-page-modal-content li {
        margin: 7px 0;
        line-height: 1.7;
    }

    .ag-prose a,
    .ag-page-modal-content a {
        color: var(--ag-red);
        font-weight: 800;
        text-decoration: underline;
        text-underline-offset: 2px;
    }

        .ag-prose a:hover,
        .ag-page-modal-content a:hover {
            color: var(--ag-red-dark);
        }

    .ag-prose blockquote,
    .ag-page-modal-content blockquote {
        margin: 18px 0;
        padding: 14px 16px;
        border-left: 4px solid var(--ag-red);
        background: #fff5f5;
        border-radius: 8px;
        color: #4b5563;
    }

    .ag-prose code,
    .ag-page-modal-content code {
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
        font-size: 12px;
        padding: 2px 6px;
        border-radius: 6px;
        background: #f1f5f9;
        color: #111827;
    }

    .ag-prose pre,
    .ag-page-modal-content pre {
        overflow: auto;
        padding: 14px;
        border-radius: 8px;
        background: #111827;
        color: #e5e7eb;
        font-size: 12px;
        line-height: 1.7;
    }

    .ag-prose table,
    .ag-page-modal-content table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        margin: 16px 0;
        border: 1px solid #e7eaee;
        border-radius: 8px;
        overflow: hidden;
    }

    .ag-prose th,
    .ag-prose td,
    .ag-page-modal-content th,
    .ag-page-modal-content td {
        padding: 11px 13px;
        border-bottom: 1px solid #edf0f2;
        vertical-align: top;
    }

    .ag-prose th,
    .ag-page-modal-content th {
        background: #f8fafc;
        color: #171c20;
        font-size: 12px;
        font-weight: 900;
        text-transform: uppercase;
    }

    .ag-prose tr:last-child td,
    .ag-page-modal-content tr:last-child td {
        border-bottom: 0;
    }

    .ag-prose img,
    .ag-page-modal-content img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
    }

@media (max-width: 700px) {
    .ag-site-page {
        padding-top: 16px;
    }

    .ag-site-page__hero {
        padding: 26px;
        min-height: 0;
    }

        .ag-site-page__hero h1 {
            font-size: 30px;
        }

    .ag-site-page__card {
        padding: 22px;
    }
}
