:root {
    --ink: #111827;
    --muted: #697386;
    --soft: #eef1f5;
    --line: #dde2e9;
    --paper: #ffffff;
    --canvas: #f6f7f9;
    --brand: #b52a22;
    --brand-dark: #8c1e18;
    --navy: #17233c;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 1px 1px, rgba(23, 35, 60, .055) 1px, transparent 0) 0 0 / 24px 24px,
        var(--canvas);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.header-inner,
main,
.footer-inner {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    text-decoration: none;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: .01em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 14px rgba(17, 24, 39, .10);
}

nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a {
    color: #536075;
    border-radius: 6px;
    padding: 8px 10px;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 750;
}

nav a:hover,
nav a[aria-current="page"] {
    color: var(--brand-dark);
    background: #f7eceb;
}

main {
    padding: 54px 0 72px;
}

.hero {
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    align-items: center;
    gap: 56px;
    padding: 52px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background:
        linear-gradient(100deg, rgba(255, 255, 255, .98) 0 58%, rgba(238, 241, 245, .92) 58%),
        var(--paper);
    box-shadow: 0 24px 60px rgba(17, 24, 39, .07);
}

.eyebrow {
    color: var(--brand);
    font-size: .72rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 850;
}

h1,
h2,
h3 {
    line-height: 1.16;
    letter-spacing: 0;
}

h1 {
    max-width: 760px;
    margin: 14px 0 18px;
    font-size: clamp(2.25rem, 3vw, 2.75rem);
    font-weight: 820;
}

h2 {
    margin: 0 0 14px;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
}

h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}

.lead {
    max-width: 700px;
    color: #4f5a6d;
    font-size: 1.12rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    border: 1px solid var(--brand);
    border-radius: 6px;
    background: var(--brand);
    color: white;
    padding: 11px 15px;
    font-size: .86rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(181, 42, 34, .14);
}

.button:hover {
    background: var(--brand-dark);
}

.button.secondary {
    background: white;
    color: var(--brand);
    box-shadow: none;
}

.hero-note,
.panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 14px 34px rgba(17, 24, 39, .06);
}

.hero-note {
    padding: 28px;
}

.hero-note p {
    margin: 14px 0 0;
    color: #5c6678;
}

.hero-note strong {
    color: var(--ink);
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding-top: 24px;
}

.section-grid article {
    min-height: 180px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    padding: 24px;
}

.section-grid p {
    color: var(--muted);
    margin: 0;
}

.document-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 760px);
    justify-content: center;
    gap: 44px;
}

.document-nav {
    position: sticky;
    top: 112px;
    align-self: start;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .82);
    padding: 18px;
}

.document-nav strong {
    display: block;
    margin-bottom: 10px;
    color: var(--ink);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.document-nav a {
    display: block;
    border-left: 2px solid transparent;
    color: var(--muted);
    padding: 6px 8px;
    text-decoration: none;
    font-size: .82rem;
}

.document-nav a:hover {
    border-left-color: var(--brand);
    color: var(--brand-dark);
}

.document {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    padding: 54px 64px 64px;
    box-shadow: 0 18px 44px rgba(17, 24, 39, .055);
}

.document-header {
    padding-bottom: 30px;
    border-bottom: 1px solid var(--line);
}

.document-header h1 {
    margin: 10px 0 12px;
    font-size: clamp(2.1rem, 3vw, 2.65rem);
}

.document .meta {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}

.document section {
    scroll-margin-top: 110px;
    padding-top: 34px;
}

.document section+section {
    margin-top: 34px;
    border-top: 1px solid var(--line);
}

.document p,
.document li {
    color: #313b4c;
    font-size: .98rem;
}

.document ul {
    padding-left: 22px;
}

.document li+li {
    margin-top: 7px;
}

.document a {
    color: var(--brand-dark);
    font-weight: 700;
}

.scope-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.scope-list .panel {
    padding: 20px;
    box-shadow: none;
}

.scope-list code {
    border: 1px solid #ecd1ce;
    border-radius: 4px;
    background: #fff7f6;
    color: var(--brand-dark);
    padding: 3px 7px;
    font-size: .86rem;
    overflow-wrap: anywhere;
}

footer {
    border-top: 1px solid var(--line);
    background: var(--paper);
}

.footer-inner {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: .82rem;
}

.footer-inner a {
    color: #536075;
    text-decoration: none;
    font-weight: 700;
}

.footer-inner a:hover {
    color: var(--brand);
}

@media (max-width: 980px) {
    .document-layout {
        grid-template-columns: 1fr;
    }

    .document-nav {
        display: none;
    }
}

@media (max-width: 760px) {

    .header-inner,
    main,
    .footer-inner {
        width: min(100% - 32px, 1180px);
    }

    .header-inner {
        min-height: 68px;
    }

    nav {
        gap: 2px;
    }

    nav a {
        padding: 8px 7px;
        font-size: .78rem;
    }

    main {
        padding: 28px 0 48px;
    }

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px 22px;
        background: var(--paper);
    }

    h1 {
        font-size: clamp(2.7rem, 15vw, 4.2rem);
    }

    .section-grid {
        grid-template-columns: 1fr;
    }

    .document {
        padding: 34px 22px 44px;
    }

    .document-header h1 {
        font-size: 2.55rem;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
    }
}