:root {
    --site-bg: #f9fafc;
    --site-surface: #ffffff;
    --site-surface-soft: #f3f7fb;
    --site-ink: #1e1f2a;
    --site-ink-strong: #0b1e33;
    --site-muted: #4a5c6c;
    --site-muted-soft: #6f8192;
    --site-line: #e2e6ea;
    --site-line-strong: #d7dee6;
    --site-primary: #0a66c2;
    --site-primary-dark: #084d96;
    --site-accent: #1e3a5f;
    --site-shadow: 0 10px 28px rgba(14, 31, 53, 0.05), 0 2px 8px rgba(14, 31, 53, 0.03);
    --site-radius-xl: 32px;
    --site-radius-lg: 24px;
    --site-radius-md: 20px;
    --site-radius-sm: 16px;
    --site-radius-pill: 999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--site-bg);
    color: var(--site-ink);
    font-family: "Inter", "Open Sans", sans-serif;
    line-height: 1.5;
}

.site-main {
    min-height: 60vh;
}

.container {
    max-width: 1280px;
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
table,
ul,
ol {
    margin-bottom: 20px;
}

h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--site-ink-strong);
}

h2 {
    font-size: 1.6rem;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--site-ink-strong);
}

h3 {
    font-size: 1.1rem;
    color: var(--site-ink-strong);
}

p,
li {
    color: var(--site-muted);
    font-size: 0.98rem;
    line-height: 1.75;
}

a {
    color: var(--site-primary);
}

img {
    max-width: 100%;
    height: auto;
}

table {
    width: 100%;
    font-size: 15px;
}

.main-container,
.section-card,
.summary-card,
.page-hero,
.sidebar-card {
    border-radius: var(--site-radius-lg);
    border: 1px solid var(--site-line);
    box-shadow: var(--site-shadow);
}

.main-container {
    padding: 28px;
    margin-bottom: 24px;
    background: var(--site-surface);
}

.page-shell {
    display: grid;
    gap: 22px;
    margin: 24px 0 32px;
}

.page-hero {
    padding: 34px 30px;
    background:
        radial-gradient(circle at top left, rgba(10, 102, 194, 0.12), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
}

.page-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--site-primary);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.page-hero h1 {
    margin-bottom: 12px;
}

.page-hero p:last-child,
.page-hero div > p:last-child,
.prose-content > *:last-child {
    margin-bottom: 0;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.content-main,
.content-sidebar {
    min-width: 0;
}

.content-sidebar {
    position: sticky;
    top: 18px;
}

.sidebar-card {
    padding: 22px;
    background: var(--site-surface);
}

.sidebar-card h3 {
    margin-bottom: 14px;
    font-size: 1rem;
    font-weight: 700;
}

.sidebar-card ul {
    list-style: none;
}

.sidebar-card li {
    margin-bottom: 8px;
}

.sidebar-card a {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--site-accent);
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 14px;
    background: var(--site-surface-soft);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.sidebar-card a:hover {
    color: var(--site-primary);
    border-color: #c9dbef;
    background: #eef5fc;
}

.section-card {
    padding: 28px;
    background: var(--site-surface);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.section-title h2,
.section-title h3 {
    margin: 0;
    padding-left: 14px;
    border-left: 4px solid var(--site-primary);
}

.summary-list {
    display: grid;
    gap: 18px;
}

.summary-card {
    display: block;
    padding: 22px;
    text-decoration: none;
    color: inherit;
    background: var(--site-surface);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
    border-color: #c7d8ea;
    box-shadow: 0 18px 34px rgba(10, 102, 194, 0.08);
}

.summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--site-muted-soft);
}

.summary-card h2 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.summary-card p {
    margin-bottom: 0;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: var(--site-radius-pill);
    background: #ecf4fd;
    color: var(--site-primary);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.site-header {
    padding: 14px 0 8px;
}

.site-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 18px 0;
    border-bottom: 1px solid var(--site-line);
}

.site-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
}

.site-brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #0a66c2 0%, #1e3a5f 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    box-shadow: 0 12px 20px rgba(10, 102, 194, 0.16);
}

.site-brand-lockup {
    display: inline-flex;
    flex-direction: column;
    min-width: 0;
}

.site-brand-title {
    color: var(--site-ink-strong);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.site-brand-tagline {
    margin-top: 3px;
    color: var(--site-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--site-line);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(14, 31, 53, 0.04);
}

.site-nav a {
    color: var(--site-accent);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 9px 14px;
    border-radius: 999px;
    transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover {
    color: var(--site-primary);
    background: #eef5fc;
}

.site-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: var(--site-radius-pill);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.site-btn-outline {
    background: transparent;
    color: var(--site-accent);
    border: 1.5px solid var(--site-accent);
}

.site-btn-outline:hover {
    background: var(--site-accent);
    color: #ffffff;
}

.site-btn-primary {
    background: var(--site-primary);
    color: #ffffff;
    border: 1.5px solid var(--site-primary);
}

.site-btn-primary:hover {
    background: var(--site-primary-dark);
    border-color: var(--site-primary-dark);
    color: #ffffff;
}

.site-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--site-line-strong);
    border-radius: 14px;
    background: var(--site-surface);
    color: var(--site-accent);
    cursor: pointer;
}

.site-footer {
    margin-top: 40px;
    padding: 52px 0 32px;
    background: #111b26;
    color: #eef3f9;
    border-radius: 36px 36px 0 0;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.5fr;
    gap: 30px;
}

.site-footer-logo {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
}

.site-footer-desc,
.site-footer-note {
    color: #b0c2d3;
    font-size: 0.95rem;
    line-height: 1.7;
}

.site-footer h4 {
    margin-bottom: 18px;
    color: #ffffff;
    font-size: 1.06rem;
    font-weight: 600;
}

.site-footer-links {
    list-style: none;
}

.site-footer-links li {
    margin-bottom: 12px;
}

.site-footer-links a,
.site-footer-copy a {
    color: #c2d2e3;
    text-decoration: none;
}

.site-footer-links a:hover,
.site-footer-copy a:hover {
    color: #ffffff;
}

.site-footer-social {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    color: #9bb7d4;
    font-size: 1.2rem;
}

.site-subscribe {
    display: flex;
    max-width: 280px;
    margin-top: 12px;
}

.site-subscribe input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 40px 0 0 40px;
    background: #253544;
    color: #ffffff;
    outline: none;
}

.site-subscribe input::placeholder {
    color: #9aafc2;
}

.site-subscribe button {
    padding: 0 20px;
    border: none;
    border-radius: 0 40px 40px 0;
    background: var(--site-primary);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

.site-footer-copy {
    margin-top: 44px;
    padding-top: 26px;
    border-top: 1px solid #253a4e;
    text-align: center;
    color: #8da0b5;
    font-size: 0.9rem;
}

.block {
    background: var(--site-surface);
    border-radius: var(--site-radius-md);
    border: 1px solid var(--site-line);
    box-shadow: var(--site-shadow);
    margin: 20px 0;
}

.bar-home {
    width: 100%;
    height: 10px;
    background-color: #e7edf3;
    border-radius: 999px;
    overflow: hidden;
}

.fill-home {
    height: 100%;
    background-color: var(--site-primary);
}

@media (max-width: 980px) {
    .site-navbar {
        align-items: flex-start;
    }

    .site-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px;
        border-radius: 20px;
    }

    .site-nav.is-open {
        display: flex;
    }

    .content-layout,
    .site-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(1280px, calc(100% - 32px));
    }

    .main-container,
    .section-card,
    .summary-card,
    .page-hero,
    .sidebar-card {
        padding: 20px;
    }

    .content-layout,
    .site-footer-grid {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        position: static;
    }

    .site-btn,
    .site-subscribe {
        width: 100%;
        max-width: none;
    }

    .site-subscribe input,
    .site-subscribe button {
        min-height: 44px;
    }

    .site-footer {
        border-radius: 28px 28px 0 0;
    }
}
