:root {
    --bg: #f4f8fc;
    --surface: #ffffff;
    --surface-soft: #eaf3f9;
    --text: #29445c;
    --muted: #5b7287;
    --primary: #256a98;
    --primary-strong: #1f5b84;
    --accent: #df6846;
    --line: #c9dce9;
    --focus: #f09a45;
    --max: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
}

a {
    color: var(--primary-strong);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--accent);
}

a:active {
    color: #b84d31;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

p {
    margin: 0 0 1.1rem;
    font-size: 16px;
}

h1,
h2,
h3 {
    margin-top: 0;
    line-height: 1.18;
    color: var(--primary-strong);
}

h1 {
    margin-bottom: 1.2rem;
    font-size: 40px;
    letter-spacing: -0.02em;
}

h2 {
    margin-bottom: 0.9rem;
    font-size: 28px;
    letter-spacing: -0.01em;
}

h3 {
    margin-bottom: 0.65rem;
    font-size: 20px;
}

ul,
ol {
    margin: 0 0 1.2rem;
    padding-left: 1.35rem;
    font-size: 16px;
}

li + li {
    margin-top: 0.5rem;
}

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.header-inner,
.main-inner,
.footer-inner {
    width: min(calc(100% - 40px), var(--max));
    margin: 0 auto;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--primary-strong);
    font-size: 21px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.logo-mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 2px solid var(--primary);
    border-radius: 8px 2px 8px 2px;
    color: var(--accent);
    font-size: 18px;
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 7px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav li + li {
    margin-top: 0;
}

.site-nav a {
    display: inline-block;
    padding: 8px 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

.hero {
    padding: 72px 0 54px;
    background: linear-gradient(135deg, #edf6fb 0%, #dcecf6 55%, #f8e8e1 100%);
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
    gap: 48px;
    align-items: end;
}

.eyebrow {
    margin-bottom: 0.8rem;
    color: var(--accent);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lead {
    max-width: 780px;
    color: #3e5c74;
    font-size: 19px;
    line-height: 1.65;
}

.hero-note {
    padding: 24px;
    background: rgba(255, 255, 255, 0.78);
    border-left: 4px solid var(--accent);
}

.hero-note p:last-child {
    margin-bottom: 0;
}

main {
    display: block;
}

.main-inner {
    padding-top: 56px;
    padding-bottom: 64px;
}

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

.content > section,
.content > article {
    padding: 0 0 44px;
    margin: 0 0 44px;
    border-bottom: 1px solid var(--line);
}

.content > section:last-child,
.content > article:last-child {
    margin-bottom: 0;
    border-bottom: 0;
}

.sidebar {
    position: sticky;
    top: 24px;
    padding: 24px;
    background: var(--surface-soft);
    border-top: 4px solid var(--primary);
}

.sidebar h2 {
    font-size: 22px;
}

.sidebar ul {
    margin-bottom: 0;
}

.decision-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.decision-item {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 4px solid var(--primary);
}

.decision-item h3 {
    color: var(--accent);
}

.route {
    display: grid;
    gap: 0;
    margin: 24px 0 8px;
    padding: 0;
    list-style: none;
    counter-reset: route;
}

.route li {
    position: relative;
    margin: 0;
    padding: 0 0 26px 52px;
    counter-increment: route;
}

.route li::before {
    content: counter(route);
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-weight: 800;
}

.route li::after {
    content: "";
    position: absolute;
    left: 16px;
    top: 36px;
    bottom: 2px;
    width: 2px;
    background: var(--line);
}

.route li:last-child::after {
    display: none;
}

.callout {
    margin: 26px 0;
    padding: 22px 24px;
    background: #fff3ee;
    border-left: 4px solid var(--accent);
}

.callout p:last-child {
    margin-bottom: 0;
}

.compare {
    width: 100%;
    margin: 24px 0 8px;
    border-collapse: collapse;
    font-size: 15px;
}

.compare th,
.compare td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

.compare th {
    color: var(--primary-strong);
    background: var(--surface-soft);
}

.link-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.link-panel a {
    display: block;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    color: var(--text);
    text-decoration: none;
}

.link-panel a:hover {
    border-left-color: var(--primary);
    color: var(--primary-strong);
}

.link-panel strong {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-strong);
}

.site-footer {
    padding: 34px 0;
    background: #dcebf5;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: center;
}

.footer-inner p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.footer-inner a {
    font-weight: 700;
}

@media (max-width: 920px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .site-nav ul {
        justify-content: flex-start;
    }

    .hero-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 52px;
    }

    .sidebar {
        position: static;
    }

    .decision-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .header-inner,
    .main-inner,
    .footer-inner {
        width: min(calc(100% - 28px), var(--max));
    }

    h1 {
        font-size: 40px;
        overflow-wrap: anywhere;
    }

    h2 {
        font-size: 28px;
    }

    .hero {
        padding: 42px 0 38px;
    }

    .hero-grid {
        gap: 28px;
    }

    .main-inner {
        padding-top: 42px;
        padding-bottom: 48px;
    }

    .link-panel {
        grid-template-columns: 1fr;
    }

    .compare {
        display: block;
        overflow-x: auto;
        white-space: normal;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}
