:root {
    --brand: #B9473F;
    --brand-dark: #97372F;
    --amber: #D89A45;
    --ink: #1E2026;
    --text: #2B2D31;
    --muted: #6F706F;
    --bg: #F7F4EF;
    --soft: #EEE9E2;
    --accent: #E06A3B;
    --white: #FFFFFF;
    --line: #DDD6CD;
    --line-dark: #3A3D44;
    --success: #426B52;
    --warning: #8B5F2A;
    --shadow: 0 18px 55px rgba(30, 32, 38, .08);
    --shadow-small: 0 8px 24px rgba(30, 32, 38, .07);
    --radius: 18px;
    --radius-small: 12px;
    --container: 1180px;
    --transition: 160ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
body.modal-open, body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(224, 106, 59, .45); outline-offset: 3px; }
::selection { background: rgba(185, 71, 63, .18); }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; transform: translateY(-160%); background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { transform: none; color: var(--white); }

.utility-bar { background: var(--ink); color: #E8E5DF; font-size: 13px; }
.utility-bar__inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.utility-bar p { margin: 0; }
.utility-bar a { color: #F3C37B; text-decoration: none; }
.site-header { position: relative; z-index: 50; background: rgba(247, 244, 239, .98); border-bottom: 1px solid var(--line); }
.header-main { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; }
.brand__text { display: grid; line-height: 1.25; gap: 3px; }
.brand__text strong { font-size: 20px; letter-spacing: .06em; }
.brand__text small { font-size: 12px; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { border: 1px solid var(--line); background: var(--white); color: var(--ink); min-height: 42px; border-radius: 10px; padding: 0 13px; display: inline-flex; align-items: center; gap: 7px; transition: border-color var(--transition), transform var(--transition); }
.icon-button:hover { border-color: var(--brand); transform: translateY(-1px); }
.menu-toggle { display: none; }
.menu-toggle__lines { display: grid; gap: 4px; }
.menu-toggle__lines i { display: block; width: 18px; height: 2px; background: currentColor; }
.primary-nav { background: #F1ECE5; border-top: 1px solid #E6DED5; }
.primary-nav__inner { min-height: 48px; display: flex; align-items: stretch; gap: 4px; }
.primary-nav a { display: inline-flex; align-items: center; padding: 0 13px; text-decoration: none; font-weight: 650; font-size: 14px; position: relative; }
.primary-nav a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 0; height: 3px; background: transparent; border-radius: 3px 3px 0 0; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--brand); }
.primary-nav a[aria-current="page"]::after { background: var(--brand); }
.nav-faq { margin-left: auto; }

.search-modal[hidden] { display: none !important; }
.search-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: start center; padding: 90px 20px 20px; opacity: 0; transition: opacity 140ms ease; }
.search-modal.is-visible { opacity: 1; }
.search-modal__backdrop { position: absolute; inset: 0; background: rgba(16, 17, 20, .72); backdrop-filter: blur(4px); }
.search-dialog { position: relative; width: min(720px, 100%); background: var(--bg); border-radius: 22px; padding: 28px; box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.search-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.search-dialog h2 { margin: 3px 0 0; font-size: clamp(24px, 4vw, 34px); line-height: 1.2; }
.search-close { border: 0; background: var(--soft); color: var(--ink); border-radius: 50%; width: 42px; height: 42px; font-size: 28px; line-height: 1; }
.search-form label { display: block; font-weight: 650; margin-bottom: 8px; }
.search-form__row { display: flex; gap: 10px; }
.search-form input { min-width: 0; flex: 1; border: 1px solid var(--line); background: var(--white); color: var(--ink); padding: 13px 15px; border-radius: 10px; }
.search-suggestions { margin-top: 17px; display: flex; flex-wrap: wrap; gap: 8px 12px; color: var(--muted); font-size: 14px; }
.search-suggestions a { color: var(--brand); }

.breadcrumb-wrap { padding-top: 18px; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #AAA39A; }
.breadcrumbs a { text-decoration: none; }

.hero { padding: 68px 0 42px; }
.hero--home { padding-top: 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 54px; align-items: center; }
.hero-copy { max-width: 720px; }
.eyebrow { margin: 0 0 8px; color: var(--brand); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.hero h1, .page-hero h1 { margin: 0; color: var(--ink); font-size: clamp(38px, 6vw, 68px); line-height: 1.08; letter-spacing: -.035em; }
.hero h1 span { color: var(--brand); }
.hero-lead, .page-hero__lead { margin: 22px 0 0; max-width: 730px; color: #4B4D51; font-size: clamp(17px, 2vw, 20px); line-height: 1.8; }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.button { border: 0; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; padding: 0 18px; font-weight: 750; text-decoration: none; transition: transform var(--transition), background var(--transition), border-color var(--transition); }
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--accent); color: var(--white); }
.button--primary:hover { background: #C9582D; color: var(--white); }
.button--dark { background: var(--ink); color: var(--white); }
.button--dark:hover { color: var(--white); background: #34363C; }
.button--ghost { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.button--ghost:hover { border-color: var(--brand); color: var(--brand); }
.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: 22px -18px -18px 24px; border: 1px solid #CFC5BA; border-radius: 26px; z-index: -1; }
.hero-visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow); }
.hero-note { position: absolute; left: -26px; bottom: 24px; max-width: 265px; background: var(--ink); color: var(--white); padding: 17px 18px; border-radius: 14px; box-shadow: 0 15px 40px rgba(0,0,0,.22); }
.hero-note strong { display: block; color: #F4B762; margin-bottom: 4px; }
.hero-note p { margin: 0; font-size: 13px; color: #E4E1DA; }

.page-hero { padding: 54px 0 40px; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); align-items: center; gap: 40px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); }
.page-hero__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-small); }
.page-hero__meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.meta-pill { background: var(--soft); border: 1px solid #E3DCD3; color: #54565A; padding: 5px 10px; border-radius: 999px; font-size: 13px; }

.section { padding: 66px 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--ink); color: #ECE9E3; }
.section--compact { padding: 42px 0; }
.section-head { display: flex; justify-content: space-between; gap: 26px; align-items: end; margin-bottom: 28px; }
.section-head__copy { max-width: 760px; }
.section-head h2 { margin: 0; color: var(--ink); font-size: clamp(28px, 4vw, 42px); line-height: 1.2; letter-spacing: -.02em; }
.section--dark .section-head h2 { color: var(--white); }
.section-head p:not(.eyebrow) { margin: 10px 0 0; color: var(--muted); }
.section--dark .section-head p:not(.eyebrow) { color: #BFC0C2; }
.text-link { color: var(--brand); font-weight: 750; text-decoration: none; }
.text-link::after { content: " →"; }
.text-link:hover { text-decoration: underline; }

.route-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.route-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.route-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-small); border-color: #CABFB4; }
.route-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.route-card__body { padding: 20px; }
.route-card h3 { margin: 0 0 8px; color: var(--ink); font-size: 20px; }
.route-card h3 a { text-decoration: none; }
.route-card p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }

.feature-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .62fr); gap: 28px; align-items: stretch; }
.feature-band__main { background: var(--brand); color: var(--white); border-radius: 22px; padding: 32px; display: grid; grid-template-columns: 1fr 240px; gap: 26px; align-items: center; }
.feature-band__main h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.18; }
.feature-band__main p { color: #F6E9E5; }
.feature-band__main img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.feature-band__side { background: var(--ink); color: var(--white); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; }
.feature-band__side h3 { margin: 0 0 10px; font-size: 26px; line-height: 1.25; }
.feature-band__side p { color: #C9C9C8; }
.feature-band .button--ghost { border-color: #5C606A; color: var(--white); align-self: flex-start; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.content-card { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.content-card__image { display: block; overflow: hidden; }
.content-card__image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 300ms ease; }
.content-card:hover .content-card__image img { transform: scale(1.025); }
.content-card__body { padding: 22px; }
.content-card h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.4; color: var(--ink); }
.content-card h3 a { text-decoration: none; }
.content-card p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 14px; }
.tag-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 7px; }
.tag-list li { background: var(--soft); color: #616264; font-size: 12px; padding: 4px 8px; border-radius: 999px; }

.editor-list { border-top: 1px solid var(--line); }
.editor-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 22px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.editor-row__label { color: var(--brand); font-size: 13px; font-weight: 800; }
.editor-row h3 { margin: 0 0 7px; font-size: 20px; color: var(--ink); }
.editor-row h3 a { text-decoration: none; }
.editor-row p { margin: 0; color: var(--muted); }
.editor-row .text-link { white-space: nowrap; }

.topic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.topic-card { border: 1px solid #44474F; background: #26282E; border-radius: var(--radius); padding: 26px; }
.topic-card h3 { margin: 0 0 9px; color: var(--white); font-size: 24px; line-height: 1.35; }
.topic-card h3 a { text-decoration: none; }
.topic-card p:not(.eyebrow) { margin: 0 0 18px; color: #C4C5C5; }
.topic-card .text-link { color: #F0B66B; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr); gap: 46px; align-items: start; }
.prose { font-size: 17px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 42px 0 14px; color: var(--ink); font-size: clamp(25px, 3vw, 34px); line-height: 1.3; }
.prose h3 { margin: 30px 0 10px; color: var(--ink); font-size: 21px; }
.prose p { margin: 0 0 19px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 1.25em; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--brand); }
.article-shell { max-width: 860px; margin: 0 auto; }
.article-intro { font-size: 19px; color: #4F5155; border-left: 4px solid var(--brand); padding-left: 18px; margin: 24px 0 34px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.article-hero-image { margin: 26px 0 34px; border-radius: 22px; overflow: hidden; }
.article-hero-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.sidebar { position: sticky; top: 20px; display: grid; gap: 16px; }
.info-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.info-box--dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.info-box h2, .info-box h3 { margin: 0 0 10px; color: inherit; font-size: 20px; }
.info-box p { margin: 0; color: var(--muted); }
.info-box--dark p { color: #C5C6C8; }
.link-list { list-style: none; margin: 14px 0 0; padding: 0; }
.link-list li + li { border-top: 1px solid var(--line); }
.info-box--dark .link-list li + li { border-color: var(--line-dark); }
.link-list a { display: block; padding: 11px 0; text-decoration: none; font-weight: 650; }

.steps { counter-reset: steps; display: grid; gap: 14px; }
.step-card { counter-increment: steps; position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 24px 72px; }
.step-card::before { content: counter(steps, decimal-leading-zero); position: absolute; left: 22px; top: 23px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--white); font-size: 12px; font-weight: 800; }
.step-card h3 { margin: 0 0 8px; color: var(--ink); }
.step-card p { margin: 0; color: var(--muted); }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: rgba(66,107,82,.12); color: var(--success); display: grid; place-items: center; font-weight: 900; font-size: 12px; }
.caution-list li::before { content: "!"; background: rgba(139,95,42,.12); color: var(--warning); }

.guide-list { display: grid; gap: 24px; }
.guide-block { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 28px; scroll-margin-top: 22px; }
.guide-block h2 { margin: 0; color: var(--ink); font-size: 27px; }
.guide-block__summary { color: var(--muted); margin: 8px 0 20px; }
.guide-steps { list-style: none; margin: 0; padding: 0; counter-reset: guide; }
.guide-steps li { counter-increment: guide; display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.guide-steps li::before { content: counter(guide); width: 28px; height: 28px; margin-top: 1px; border-radius: 8px; display: grid; place-items: center; background: var(--soft); color: var(--brand); font-weight: 850; }

.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq-item h3 { margin: 0; }
.faq-toggle { width: 100%; border: 0; background: transparent; color: var(--ink); text-align: left; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-weight: 750; }
.faq-toggle__mark { color: var(--brand); font-size: 22px; transition: transform var(--transition); }
.faq-item.is-open .faq-toggle__mark { transform: rotate(45deg); }
.faq-panel { padding: 0 20px 20px; color: #54565A; }
.faq-panel p { margin: 0; }

.search-page-form { margin: 0 auto; max-width: 820px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.search-page-form .search-form__row { margin-top: 9px; }
.search-summary { margin: 28px 0 18px; color: var(--muted); }
.search-results { display: grid; gap: 12px; }
.search-result { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.search-result__type { color: var(--brand); font-size: 12px; font-weight: 850; letter-spacing: .08em; }
.search-result h2 { margin: 5px 0 8px; font-size: 21px; }
.search-result h2 a { text-decoration: none; }
.search-result p { margin: 0; color: var(--muted); }
.empty-state { background: var(--soft); border-radius: 18px; padding: 30px; }
.empty-state h2 { margin-top: 0; }

.callout { border-radius: 20px; padding: 28px; background: #F1E3DB; border: 1px solid #E7D2C7; }
.callout h2, .callout h3 { margin-top: 0; color: var(--ink); }
.callout p:last-child { margin-bottom: 0; }
.callout--amber { background: #F4E7D3; border-color: #E7D1AB; }
.callout--dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.callout--dark h2, .callout--dark h3 { color: var(--white); }
.callout--dark p { color: #D0D0D0; }

.definition-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.definition-card { border-top: 3px solid var(--brand); background: var(--white); padding: 20px; }
.definition-card h3 { margin: 0 0 7px; color: var(--ink); }
.definition-card p { margin: 0; color: var(--muted); }

.timeline { position: relative; margin-left: 9px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 3px; top: 7px; bottom: 7px; width: 2px; background: #D1C7BC; }
.timeline-item { position: relative; padding: 0 0 28px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -31px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px var(--bg); }
.timeline-item h3 { margin: 0 0 5px; color: var(--ink); }
.timeline-item p { margin: 0; color: var(--muted); }

.topic-hero { display: grid; grid-template-columns: 1fr 380px; gap: 42px; align-items: center; }
.topic-hero img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 22px; }
.topic-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.topic-point { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.topic-point strong { display: block; color: var(--brand); margin-bottom: 6px; }

.not-found { min-height: 62vh; display: grid; align-items: center; padding: 60px 0; }
.not-found__box { max-width: 780px; margin: 0 auto; text-align: center; }
.not-found__code { font-size: clamp(70px, 16vw, 160px); line-height: .8; font-weight: 900; color: #DED7CE; letter-spacing: -.06em; }
.not-found h1 { color: var(--ink); font-size: clamp(32px, 5vw, 52px); margin: 24px 0 10px; }
.not-found p { color: var(--muted); }
.not-found .hero-actions { justify-content: center; }

.site-footer { background: #17191D; color: #D2D2D1; padding-top: 54px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, .75fr); gap: 36px; }
.brand--footer { color: var(--white); }
.brand--footer:hover { color: var(--white); }
.brand--footer .brand__text small { color: #9EA0A4; }
.footer-brand p { max-width: 420px; color: #AEB0B3; }
.site-footer h2 { margin: 4px 0 14px; color: var(--white); font-size: 15px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li + li { margin-top: 8px; }
.footer-links a { color: #B7B9BC; text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: #F0B66B; }
.footer-bottom { margin-top: 40px; padding: 18px 0 28px; border-top: 1px solid #303238; display: flex; justify-content: space-between; gap: 20px; font-size: 12px; color: #86898E; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #AEB0B3; }
.back-top { position: fixed; right: 20px; bottom: 20px; z-index: 45; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #D6CEC4; background: rgba(247, 244, 239, .96); color: var(--ink); box-shadow: var(--shadow-small); }
.back-top[hidden] { display: none; }

[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 480ms ease, transform 480ms ease; }
[data-reveal].is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
    [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
    .hero-grid { grid-template-columns: 1fr 420px; gap: 34px; }
    .route-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1.3fr repeat(2, 1fr); }
    .footer-grid > section:last-child { grid-column: 2 / 4; }
}

@media (max-width: 900px) {
    .menu-toggle { display: inline-flex; }
    .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 116px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 116px); overflow-y: auto; }
    .primary-nav.is-open { display: block; }
    .primary-nav__inner { display: grid; padding: 12px 20px 20px; }
    .primary-nav a { min-height: 44px; border-bottom: 1px solid var(--line); padding: 0 8px; }
    .primary-nav a::after { display: none; }
    .nav-faq { margin-left: 0; }
    .hero-grid, .page-hero__grid, .topic-hero { grid-template-columns: 1fr; }
    .hero-visual { max-width: 680px; }
    .hero-note { left: 18px; }
    .page-hero__media { max-width: 620px; }
    .feature-band { grid-template-columns: 1fr; }
    .split { grid-template-columns: 1fr; }
    .sidebar { position: static; grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid > section:last-child { grid-column: auto; }
}

@media (max-width: 700px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .utility-bar__inner { min-height: 36px; }
    .utility-bar p { display: none; }
    .header-main { min-height: 72px; }
    .brand__text small, .header-action-label { display: none; }
    .brand img { width: 42px; height: 42px; }
    .brand__text strong { font-size: 18px; }
    .primary-nav { top: 108px; max-height: calc(100vh - 108px); }
    .hero { padding: 48px 0 30px; }
    .hero h1, .page-hero h1 { font-size: clamp(34px, 11vw, 48px); }
    .hero-lead, .page-hero__lead { font-size: 17px; }
    .hero-visual::before { inset: 13px -7px -11px 12px; }
    .hero-note { position: static; margin: -10px 12px 0; max-width: none; }
    .page-hero { padding: 38px 0 28px; }
    .section { padding: 48px 0; }
    .section-head { display: block; }
    .section-head > .text-link { display: inline-block; margin-top: 12px; }
    .route-grid, .card-grid, .topic-grid, .definition-grid, .topic-points, .sidebar { grid-template-columns: 1fr; }
    .feature-band__main { grid-template-columns: 1fr; }
    .feature-band__main img { max-width: 300px; }
    .editor-row { grid-template-columns: 1fr; gap: 7px; }
    .editor-row .text-link { margin-top: 6px; }
    .search-form__row { flex-direction: column; }
    .search-dialog { padding: 22px; }
    .search-modal { padding-top: 56px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { display: block; }
    .footer-bottom p + p { margin-top: 6px; }
}

@media (max-width: 420px) {
    .container { width: min(calc(100% - 22px), var(--container)); }
    .icon-button { min-width: 42px; padding: 0 10px; }
    .hero-actions .button { width: 100%; }
    .route-card__body, .content-card__body { padding: 18px; }
    .guide-block, .callout { padding: 22px; }
    .step-card { padding: 20px 18px 20px 60px; }
    .step-card::before { left: 16px; top: 20px; }
}
