:root {
    --primary: #6F5AE8;
    --primary-soft: #9A8CF2;
    --ink: #242433;
    --text: #30303A;
    --muted: #70707D;
    --bg: #F8F8FC;
    --bg-soft: #F0EEFA;
    --accent: #F29A4A;
    --white: #FFFFFF;
    --line: #E3E0F0;
    --line-strong: #D4CEE9;
    --shadow: 0 16px 48px rgba(36, 36, 51, 0.08);
    --shadow-soft: 0 8px 24px rgba(36, 36, 51, 0.06);
    --radius-lg: 26px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.75;
    text-rendering: optimizeLegibility;
}

body.modal-open,
body.menu-open {
    overflow: hidden;
}

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

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
p,
ul,
ol,
dl {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--ink);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(1.65rem, 3vw, 2.5rem);
    margin-bottom: 18px;
}

h3 {
    font-size: 1.18rem;
    margin-bottom: 10px;
}

p {
    margin-bottom: 18px;
}

ul,
ol {
    padding-left: 1.3rem;
}

::selection {
    background: var(--primary-soft);
    color: var(--white);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    transform: translateY(-180%);
    background: var(--ink);
    color: var(--white);
    padding: 10px 16px;
    border-radius: 10px;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 248, 252, 0.94);
    border-bottom: 1px solid rgba(227, 224, 240, 0.92);
    backdrop-filter: blur(14px);
}

.header-inner {
    width: min(calc(100% - 40px), var(--max));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    flex: 0 0 auto;
}

.brand:hover {
    text-decoration: none;
}

.brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
}

.brand-copy {
    display: grid;
    line-height: 1.15;
}

.brand-copy strong {
    font-size: 1.05rem;
}

.brand-copy small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.74rem;
}

.primary-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.primary-nav a {
    position: relative;
    color: var(--text);
    font-size: 0.94rem;
    padding: 10px 12px;
    border-radius: 10px;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
    color: var(--primary);
    background: var(--bg-soft);
    text-decoration: none;
}

.search-open {
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    border-radius: 12px;
    min-height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.search-open:hover {
    border-color: var(--primary-soft);
}

.search-icon {
    width: 15px;
    height: 15px;
    border: 2px solid currentColor;
    border-radius: 50%;
    position: relative;
}

.search-icon::after {
    content: "";
    width: 6px;
    height: 2px;
    background: currentColor;
    position: absolute;
    right: -5px;
    bottom: -2px;
    transform: rotate(45deg);
    border-radius: 2px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 12px;
    padding: 10px;
}

.menu-toggle > span:not(.sr-only) {
    display: block;
    height: 2px;
    background: var(--ink);
    margin: 5px 0;
    border-radius: 4px;
}

.section {
    padding: 88px 0;
}

.section.compact {
    padding: 64px 0;
}

.section.tint {
    background: var(--bg-soft);
}

.section.dark {
    color: rgba(255, 255, 255, 0.8);
    background: var(--ink);
}

.section.dark h2,
.section.dark h3,
.section.dark a {
    color: var(--white);
}

.section.dark .section-lead {
    color: rgba(255, 255, 255, 0.72);
}

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

.container.narrow {
    width: min(calc(100% - 40px), 860px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 3px;
    background: currentColor;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 36px;
}

.section-heading.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-lead {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 760px;
}

.hero {
    padding: 72px 0 76px;
    overflow: hidden;
}

.hero-grid {
    width: min(calc(100% - 40px), var(--max));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 58px;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
}

.hero-copy h1 {
    max-width: 780px;
}

.hero-copy .lead {
    max-width: 700px;
    color: var(--muted);
    font-size: clamp(1.04rem, 1.5vw, 1.2rem);
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 12px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.button:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.button.primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 12px 26px rgba(111, 90, 232, 0.22);
}

.button.accent {
    background: var(--accent);
    color: #251C13;
    box-shadow: 0 12px 26px rgba(242, 154, 74, 0.22);
}

.button.ghost {
    background: var(--white);
    border-color: var(--line-strong);
    color: var(--ink);
}

.hero-note {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: var(--muted);
    font-size: 0.9rem;
}

.hero-note span::before {
    content: "✓";
    color: var(--primary);
    margin-right: 6px;
    font-weight: 700;
}

.hero-visual {
    position: relative;
    padding: 28px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 36px;
    min-height: 430px;
    display: grid;
    place-items: center;
}

.hero-visual::before,
.hero-visual::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(111, 90, 232, 0.12);
    pointer-events: none;
}

.hero-visual::before {
    width: 180px;
    height: 180px;
    top: -44px;
    right: -34px;
}

.hero-visual::after {
    width: 110px;
    height: 110px;
    left: -26px;
    bottom: 20px;
    background: rgba(242, 154, 74, 0.14);
}

.hero-visual img {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.info-strip {
    width: min(calc(100% - 40px), var(--max));
    margin: -24px auto 0;
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.info-strip > div {
    padding: 22px 24px;
}

.info-strip > div + div {
    border-left: 1px solid var(--line);
}

.info-strip strong {
    display: block;
    color: var(--ink);
    margin-bottom: 4px;
}

.info-strip span {
    color: var(--muted);
    font-size: 0.9rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 26px;
    min-width: 0;
}

.card:hover {
    border-color: var(--primary-soft);
    box-shadow: var(--shadow-soft);
}

.card .meta {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    margin-bottom: 9px;
}

.card p:last-child,
.card ul:last-child {
    margin-bottom: 0;
}

.card-link {
    display: inline-flex;
    margin-top: 6px;
    font-weight: 700;
}

.route-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.route-card {
    position: relative;
    min-height: 310px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.route-card .number {
    color: var(--primary-soft);
    font-weight: 800;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 24px;
}

.route-card p {
    color: var(--muted);
}

.route-card a {
    margin-top: auto;
    font-weight: 700;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 54px;
    align-items: center;
}

.split.reverse .split-media {
    order: 2;
}

.split-media {
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    padding: 18px;
}

.split-media img {
    width: 100%;
    border-radius: 18px;
}

.split-copy > *:last-child {
    margin-bottom: 0;
}

.check-list {
    display: grid;
    gap: 14px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 30px;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: 800;
}

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.inline-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
}

.inline-links a:hover {
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
}

.article-list {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}

.article-row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) auto;
    gap: 24px;
    align-items: start;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.article-row .label {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.86rem;
}

.article-row p {
    color: var(--muted);
    margin-bottom: 0;
}

.article-row > a {
    align-self: center;
    font-weight: 700;
    white-space: nowrap;
}

.steps {
    counter-reset: step;
    display: grid;
    gap: 18px;
}

.step {
    position: relative;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 22px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
}

.step-number {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--bg-soft);
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 800;
}

.step p {
    color: var(--muted);
    margin-bottom: 0;
}

.note {
    padding: 22px 24px;
    border-left: 4px solid var(--accent);
    background: #FFF6ED;
    border-radius: 0 14px 14px 0;
}

.note strong {
    color: var(--ink);
}

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

.warning {
    border-left-color: var(--primary);
    background: var(--bg-soft);
}

.topic-band {
    border-radius: 32px;
    padding: 46px;
    background: var(--ink);
    color: rgba(255, 255, 255, 0.8);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    align-items: center;
}

.topic-band h2 {
    color: var(--white);
}

.topic-band p {
    max-width: 760px;
    margin-bottom: 0;
}

.topic-band .button {
    min-width: 180px;
}

.page-hero {
    padding: 56px 0 36px;
}

.page-hero-grid {
    width: min(calc(100% - 40px), var(--max));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 50px;
    align-items: center;
}

.page-hero h1 {
    font-size: clamp(2.15rem, 4.5vw, 3.8rem);
    max-width: 900px;
}

.page-hero .lead {
    color: var(--muted);
    max-width: 780px;
    font-size: 1.05rem;
}

.page-hero-media {
    border-radius: 24px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    padding: 14px;
}

.page-hero-media img {
    border-radius: 16px;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.breadcrumbs {
    width: min(calc(100% - 40px), var(--max));
    margin: 24px auto 0;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--muted);
    font-size: 0.87rem;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
}

.breadcrumbs li + li::before {
    content: "›";
    margin-right: 6px;
    color: #A6A2B7;
}

.breadcrumbs a {
    color: var(--muted);
}

.prose {
    font-size: 1.02rem;
}

.prose h2 {
    margin-top: 44px;
}

.prose h3 {
    margin-top: 30px;
}

.prose p {
    color: #42424D;
}

.prose ul,
.prose ol {
    margin-bottom: 22px;
}

.prose li + li {
    margin-top: 8px;
}

.guide-blocks {
    display: grid;
    gap: 22px;
}

.guide-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 34px;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.guide-block p {
    color: var(--muted);
}

.guide-block ul {
    margin: 0;
    background: var(--bg-soft);
    border-radius: 14px;
    padding: 20px 22px 20px 40px;
}

.guide-block li + li {
    margin-top: 7px;
}

.matrix {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
}

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

.matrix th {
    color: var(--ink);
    background: var(--bg-soft);
    font-size: 0.9rem;
}

.matrix tr:last-child td {
    border-bottom: 0;
}

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

.problem-card {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1fr) minmax(0, 1fr);
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.problem-card > div {
    padding: 24px;
}

.problem-card > div + div {
    border-left: 1px solid var(--line);
}

.problem-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
}

.problem-card p {
    color: var(--muted);
    margin-bottom: 0;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    text-align: left;
    border: 0;
    background: transparent;
    color: var(--ink);
    padding: 20px 22px;
    font-weight: 700;
}

.faq-question::after {
    content: "+";
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--primary);
    font-size: 1.15rem;
}

.faq-question[aria-expanded="true"]::after {
    content: "–";
}

.faq-answer {
    padding: 0 22px 20px;
    color: var(--muted);
}

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

.faq-answer[hidden] {
    display: none !important;
}

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

.side-nav {
    position: sticky;
    top: 104px;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
}

.side-nav h2 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.side-nav a {
    display: block;
    padding: 9px 0;
    color: var(--text);
    border-bottom: 1px solid var(--line);
}

.side-nav a:last-child {
    border-bottom: 0;
}

.side-nav a:hover {
    color: var(--primary);
    text-decoration: none;
}

.search-result-head {
    padding: 62px 0 34px;
}

.search-page-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 24px;
}

.search-page-form input {
    min-width: 0;
    min-height: 50px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    padding: 0 16px;
    color: var(--text);
    background: var(--white);
}

.search-page-form button {
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: var(--white);
    padding: 0 20px;
    font-weight: 700;
}

.search-results {
    display: grid;
    gap: 14px;
}

.search-result {
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.search-result h2 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.search-result p {
    color: var(--muted);
    margin-bottom: 10px;
}

.search-empty {
    padding: 36px;
    border: 1px dashed var(--line-strong);
    background: var(--white);
    border-radius: 18px;
}

.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.66);
    padding: 62px 0 24px;
}

.footer-main {
    width: min(calc(100% - 40px), var(--max));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 42px;
}

.footer-main h2 {
    color: var(--white);
    font-size: 0.98rem;
    margin-bottom: 14px;
}

.footer-main ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-main li + li {
    margin-top: 8px;
}

.footer-main a {
    color: rgba(255, 255, 255, 0.72);
}

.footer-main a:hover {
    color: var(--white);
}

.footer-brand {
    display: inline-block;
    color: var(--white) !important;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.footer-intro p {
    max-width: 400px;
}

.footer-bottom {
    width: min(calc(100% - 40px), var(--max));
    margin: 42px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0;
}

.search-modal[hidden] {
    display: none !important;
}

.search-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: grid;
    place-items: start center;
    padding-top: min(12vh, 110px);
}

.search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(25, 24, 37, 0.72);
    backdrop-filter: blur(5px);
}

.search-panel {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 32px), 720px);
    padding: 34px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 26px 80px rgba(20, 18, 33, 0.26);
}

.search-panel h2 {
    margin-bottom: 10px;
}

.search-panel > p {
    color: var(--muted);
}

.search-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    font-size: 1.25rem;
}

.search-form label {
    display: block;
    color: var(--ink);
    font-weight: 700;
    margin-bottom: 8px;
}

.search-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.search-input-row input {
    min-width: 0;
    min-height: 50px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    padding: 0 15px;
}

.search-input-row button {
    border: 0;
    border-radius: 12px;
    padding: 0 18px;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
}

.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 14px;
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.18s ease;
    z-index: 80;
}

.back-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.callout-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.callout {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
}

.callout .kicker {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.82rem;
    margin-bottom: 8px;
}

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

.timeline {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--line-strong);
}

.timeline li {
    position: relative;
    padding-left: 48px;
}

.timeline li + li {
    margin-top: 28px;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 7px;
    width: 18px;
    height: 18px;
    border: 4px solid var(--bg);
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 1px var(--line-strong);
}

.timeline strong {
    display: block;
    color: var(--ink);
    margin-bottom: 6px;
}

.timeline p {
    color: var(--muted);
    margin-bottom: 0;
}

.stateless-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stateless-item {
    background: var(--white);
    border-top: 3px solid var(--primary);
    padding: 22px;
    box-shadow: var(--shadow-soft);
}

.stateless-item strong {
    display: block;
    color: var(--ink);
    margin-bottom: 8px;
}

.stateless-item span {
    color: var(--muted);
    font-size: 0.9rem;
}

.simple-table {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.simple-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
    background: var(--white);
}

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

.simple-table th {
    background: var(--bg-soft);
    color: var(--ink);
    font-size: 0.9rem;
}

.simple-table tr:last-child td {
    border-bottom: 0;
}

.resource-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.resource-link {
    display: block;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
}

.resource-link:hover {
    color: var(--primary);
    border-color: var(--primary-soft);
    text-decoration: none;
}

.resource-link span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.88rem;
}

.media-band {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    gap: 36px;
    align-items: center;
    padding: 28px;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: var(--radius-lg);
}

.media-band img {
    width: 100%;
    border-radius: 18px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

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

.mini-list {
    display: grid;
    gap: 12px;
    padding: 0;
    list-style: none;
}

.mini-list li {
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--bg-soft);
}

.mini-list strong {
    color: var(--ink);
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.not-found {
    min-height: 64vh;
    display: grid;
    place-items: center;
    padding: 70px 0;
}

.not-found-card {
    width: min(calc(100% - 40px), 820px);
    padding: 54px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
}

.not-found-code {
    display: block;
    color: var(--primary-soft);
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 24px;
}

.not-found p {
    max-width: 620px;
    margin: 0 auto 26px;
    color: var(--muted);
}

@media (max-width: 1100px) {
    .primary-nav a {
        padding-left: 9px;
        padding-right: 9px;
    }

    .brand-copy small {
        display: none;
    }

    .hero-grid {
        gap: 34px;
    }

    .card-grid,
    .route-grid {
        gap: 16px;
    }

    .footer-main {
        grid-template-columns: 1.2fr 1fr 1fr;
    }

    .footer-main > div:last-child {
        grid-column: 2 / 4;
    }

    .stateless-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .header-inner {
        min-height: 70px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
        order: 2;
    }

    .search-open {
        order: 3;
    }

    .primary-nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 120;
        margin: 0;
        padding: 18px 20px 36px;
        background: var(--bg);
        overflow-y: auto;
        align-content: start;
    }

    .primary-nav.is-open {
        display: grid;
    }

    .primary-nav a {
        padding: 14px 16px;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        font-size: 1rem;
    }

    .primary-nav a:hover,
    .primary-nav a[aria-current="page"] {
        background: transparent;
    }

    .hero-grid,
    .page-hero-grid,
    .split,
    .side-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 52px;
    }

    .hero-visual {
        min-height: 0;
    }

    .page-hero-media {
        max-width: 560px;
    }

    .split.reverse .split-media {
        order: 0;
    }

    .info-strip {
        grid-template-columns: 1fr;
        margin-top: 0;
    }

    .info-strip > div + div {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .card-grid,
    .route-grid,
    .resource-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guide-block {
        grid-template-columns: 1fr;
    }

    .problem-card {
        grid-template-columns: 1fr;
    }

    .problem-card > div + div {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .topic-band {
        grid-template-columns: 1fr;
        padding: 36px;
    }

    .media-band {
        grid-template-columns: 1fr;
    }

    .side-nav {
        position: static;
        order: -1;
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main > div:last-child {
        grid-column: auto;
    }
}

@media (max-width: 700px) {
    .section {
        padding: 68px 0;
    }

    .section.compact {
        padding: 50px 0;
    }

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

    .header-inner,
    .container,
    .hero-grid,
    .page-hero-grid,
    .breadcrumbs,
    .footer-main,
    .footer-bottom,
    .info-strip {
        width: min(calc(100% - 28px), var(--max));
    }

    .brand img {
        width: 40px;
        height: 40px;
    }

    .brand-copy strong {
        font-size: 0.98rem;
    }

    .search-open span:last-child {
        display: none;
    }

    .search-open {
        width: 44px;
        justify-content: center;
        padding: 0;
    }

    .card-grid,
    .route-grid,
    .callout-grid,
    .resource-links,
    .stateless-list {
        grid-template-columns: 1fr;
    }

    .article-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .article-row > a {
        justify-self: start;
    }

    .step {
        grid-template-columns: 1fr;
    }

    .step-number {
        width: 50px;
        height: 50px;
    }

    .topic-band {
        padding: 28px;
        border-radius: 22px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

    .search-panel {
        padding: 28px 22px;
    }

    .search-input-row,
    .search-page-form {
        grid-template-columns: 1fr;
    }

    .search-input-row button,
    .search-page-form button {
        min-height: 48px;
    }

    .not-found-card {
        padding: 38px 24px;
    }

    .page-hero {
        padding-top: 38px;
    }
}

@media (max-width: 430px) {
    .brand-copy {
        display: none;
    }

    .header-inner {
        gap: 10px;
    }

    h1 {
        font-size: 2.15rem;
    }

    .hero-actions,
    .page-actions {
        display: grid;
    }

    .button {
        width: 100%;
    }

    .hero-visual {
        padding: 16px;
        border-radius: 24px;
    }

    .route-card,
    .card,
    .guide-block {
        padding: 22px;
    }

    .search-modal {
        padding-top: 30px;
    }

    .back-top {
        right: 14px;
        bottom: 14px;
    }
}
