:root {
    --brand: #B93A4A;
    --brand-soft: #D9828D;
    --ink: #2B2528;
    --text: #332D2F;
    --muted: #756B6E;
    --paper: #FFF9F7;
    --surface: #F6ECEB;
    --accent: #E45B4F;
    --line: #E9DAD8;
    --white: #FFFFFF;
    --shadow: 0 18px 48px rgba(65, 41, 45, 0.10);
    --shadow-soft: 0 10px 28px rgba(65, 41, 45, 0.07);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --shell: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input { font: inherit; }
button { cursor: pointer; }

.site-shell { width: var(--shell); margin-inline: auto; }
.visually-hidden {
    position: absolute !important;
    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;
    left: 18px;
    top: 12px;
    z-index: 1000;
    transform: translateY(-180%);
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--ink);
    color: var(--white);
    text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(185, 58, 74, 0.08);
    background: rgba(255, 249, 247, 0.95);
    backdrop-filter: blur(16px);
}
.header-inner {
    min-height: 76px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
}
.brand img {
    border-radius: 13px;
    box-shadow: 0 5px 14px rgba(185, 58, 74, 0.14);
}
.brand-copy { display: grid; line-height: 1.25; }
.brand-copy strong { font-size: 18px; color: var(--ink); letter-spacing: 0.02em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.primary-nav { justify-self: center; }
.primary-nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.primary-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 999px;
    text-decoration: none;
    color: #51484B;
    font-size: 14px;
    font-weight: 650;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
    background: var(--surface);
    color: var(--brand);
}
.menu-toggle { display: none; }
.search-trigger,
.button,
.search-form button {
    border: 0;
    border-radius: 999px;
    background: var(--brand);
    color: var(--white);
    font-weight: 750;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.search-trigger {
    padding: 11px 18px;
    white-space: nowrap;
}
.search-trigger:hover,
.button:hover,
.search-form button:hover {
    background: #A93242;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(185, 58, 74, 0.18);
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
}
.button.secondary {
    background: transparent;
    color: var(--brand);
    border: 1px solid rgba(185, 58, 74, 0.28);
    box-shadow: none;
}
.button.secondary:hover { background: var(--surface); }
.button.dark { background: var(--ink); }

.search-modal[hidden] { display: none !important; }
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: grid;
    place-items: start center;
    padding: 11vh 20px 20px;
}
.search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(43, 37, 40, 0.56);
}
.search-dialog {
    position: relative;
    width: min(720px, 100%);
    padding: 38px;
    border-radius: 26px;
    background: var(--paper);
    box-shadow: 0 24px 80px rgba(30, 20, 22, 0.24);
}
.search-dialog h2 { margin: 0 0 20px; color: var(--ink); font-size: clamp(26px, 4vw, 40px); line-height: 1.18; }
.search-close {
    position: absolute;
    right: 18px;
    top: 16px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    font-size: 25px;
}
.search-form label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 14px; }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.search-row input {
    min-width: 0;
    height: 52px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    padding: 0 18px;
    color: var(--ink);
    outline: none;
}
.search-row input:focus { border-color: var(--brand-soft); box-shadow: 0 0 0 4px rgba(185, 58, 74, 0.08); }
.search-form button { min-width: 94px; padding-inline: 20px; }

.hero {
    padding: 64px 0 54px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 54px;
    align-items: center;
}
.hero-copy { max-width: 650px; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 12px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 4px;
    background: var(--brand);
}
.hero h1,
.page-hero h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(40px, 5.4vw, 74px);
    line-height: 1.06;
    letter-spacing: -0.035em;
}
.hero .lead,
.page-hero .lead {
    margin: 24px 0 0;
    max-width: 720px;
    color: #554B4E;
    font-size: clamp(17px, 1.8vw, 20px);
    line-height: 1.85;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}
.hero-visual {
    position: relative;
    min-width: 0;
}
.hero-visual::before {
    content: "";
    position: absolute;
    width: 64%;
    aspect-ratio: 1;
    left: -9%;
    bottom: -10%;
    border-radius: 50%;
    background: rgba(217, 130, 141, 0.18);
    filter: blur(1px);
}
.hero-visual img {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}
.hero-floating {
    position: absolute;
    right: -18px;
    bottom: 28px;
    max-width: 230px;
    padding: 18px 20px;
    border: 1px solid rgba(185, 58, 74, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
}
.hero-floating strong { display: block; color: var(--ink); margin-bottom: 5px; }
.hero-floating span { color: var(--muted); font-size: 13px; line-height: 1.55; }

.section { padding: 64px 0; }
.section.compact { padding: 44px 0; }
.section.soft { background: var(--surface); }
.section.dark {
    background: var(--ink);
    color: #F8EEEC;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 28px;
    margin-bottom: 28px;
}
.section-header > div { max-width: 760px; }
.section-header h2,
.content-panel h2,
.prose h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(28px, 3.5vw, 46px);
    line-height: 1.16;
    letter-spacing: -0.02em;
}
.section.dark .section-header h2 { color: var(--white); }
.section-header p {
    margin: 10px 0 0;
    color: var(--muted);
    max-width: 720px;
}
.section.dark .section-header p { color: #D5C6C8; }
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand);
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}
.text-link::after { content: "→"; }
.text-link:hover { text-decoration: underline; }
.section.dark .text-link { color: #F2B9C0; }

.path-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.path-card {
    overflow: hidden;
    border: 1px solid rgba(185, 58, 74, 0.10);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 8px 28px rgba(55, 33, 38, 0.05);
}
.path-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.path-card-body { padding: 23px; }
.path-card h3 { margin: 0 0 10px; color: var(--ink); font-size: 21px; line-height: 1.35; }
.path-card p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }

.split-layout {
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    gap: 42px;
    align-items: start;
}
.split-layout.reverse { grid-template-columns: 1.08fr .92fr; }
.split-layout.reverse .split-media { order: 2; }
.split-media img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    object-fit: cover;
    aspect-ratio: 4 / 3;
}
.content-panel {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,.72);
}
.content-panel h2 { font-size: clamp(27px, 3vw, 40px); }
.content-panel h3 { margin: 26px 0 8px; color: var(--ink); font-size: 19px; }
.content-panel p { color: #5A5053; }
.content-panel ul, .content-panel ol { padding-left: 1.4em; }
.content-panel li + li { margin-top: 8px; }

.check-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.check-card {
    padding: 23px;
    border-radius: 18px;
    background: var(--white);
    border: 1px solid var(--line);
}
.check-card::before {
    content: "✓";
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--brand);
    font-weight: 850;
}
.check-card h3 { margin: 0 0 9px; color: var(--ink); font-size: 18px; }
.check-card p { margin: 0; color: var(--muted); font-size: 14px; }

.flow-list { display: grid; gap: 0; }
.flow-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}
.flow-item:last-child { border-bottom: 0; }
.flow-number {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: var(--brand);
    color: var(--white);
    font-weight: 850;
    font-size: 18px;
}
.flow-item h3 { margin: 0 0 8px; color: var(--ink); font-size: 22px; }
.flow-item p { margin: 0; color: var(--muted); }
.flow-links { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 14px; }

.editorial-band {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--brand);
    color: white;
}
.editorial-copy { padding: clamp(34px, 5vw, 64px); }
.editorial-copy h2 { margin: 0; font-size: clamp(32px, 4vw, 52px); line-height: 1.12; }
.editorial-copy p { margin: 18px 0 0; max-width: 620px; color: #FFECEF; }
.editorial-copy .button { margin-top: 24px; background: var(--white); color: var(--brand); }
.editorial-band img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }

.topic-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.12);
}
.topic-strip article { padding: 28px; background: rgba(255,255,255,.05); }
.topic-strip h3 { margin: 0 0 10px; color: white; font-size: 21px; }
.topic-strip p { margin: 0; color: #D8C9CB; font-size: 14px; }
.topic-strip a { display: inline-flex; margin-top: 16px; color: #FFD8DD; font-weight: 750; text-decoration: none; }

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

.faq-item summary {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 19px 20px;
    color: var(--ink);
    text-align: left;
    font-weight: 760;
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--brand);
    font-size: 20px;
}
.faq-item[open] summary::after { content: "−"; }

.faq-item button {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 19px 20px;
    border: 0;
    background: transparent;
    color: var(--ink);
    text-align: left;
    font-weight: 760;
}
.faq-item button::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--brand);
    font-size: 20px;
}
.faq-item button[aria-expanded="true"]::after { content: "−"; }
.faq-answer { padding: 0 20px 20px; color: var(--muted); }
.faq-answer p { margin: 0; }
.faq-answer[hidden] { display: none; }

.page-hero { padding: 56px 0 36px; }
.page-hero-grid {
    display: grid;
    grid-template-columns: 1fr minmax(300px, .62fr);
    gap: 44px;
    align-items: center;
}
.page-hero h1 { font-size: clamp(38px, 5vw, 64px); }
.page-hero figure { margin: 0; }
.page-hero figure img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}
.breadcrumbs { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 7px; color: #B7A5A8; }
.breadcrumbs a { color: var(--brand); text-decoration: none; }

.prose-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 42px;
    align-items: start;
}
.prose {
    min-width: 0;
    font-size: 16px;
}
.prose h2 { margin-top: 54px; font-size: clamp(27px, 3.1vw, 40px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 30px 0 8px; color: var(--ink); font-size: 21px; line-height: 1.4; }
.prose p { margin: 14px 0; color: #51484B; }
.prose ul, .prose ol { padding-left: 1.45em; color: #51484B; }
.prose li + li { margin-top: 8px; }
.prose strong { color: var(--ink); }
.callout {
    margin: 26px 0;
    padding: 22px 24px;
    border-left: 4px solid var(--brand);
    border-radius: 0 15px 15px 0;
    background: var(--surface);
}
.callout strong { display: block; margin-bottom: 4px; }
.callout p { margin: 0; }
.sidebar {
    position: sticky;
    top: 98px;
    display: grid;
    gap: 16px;
}
.sidebar-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
}
.sidebar-card h2 { margin: 0 0 12px; color: var(--ink); font-size: 17px; }
.sidebar-card p { margin: 0; color: var(--muted); font-size: 13px; }
.sidebar-card ul { display: grid; gap: 9px; padding: 0; margin: 14px 0 0; list-style: none; }
.sidebar-card a { color: var(--brand); font-size: 14px; font-weight: 700; text-decoration: none; }
.sidebar-card a:hover { text-decoration: underline; }

.table-scroll { overflow-x: auto; margin: 20px 0; }
.info-table { width: 100%; border-collapse: collapse; min-width: 650px; }
.info-table th, .info-table td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.info-table th { background: var(--surface); color: var(--ink); font-size: 14px; }
.info-table td { color: #5A5053; font-size: 14px; }

.issue-list { display: grid; gap: 16px; }
.issue-card {
    display: grid;
    grid-template-columns: minmax(170px, .34fr) 1fr;
    gap: 24px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
}
.issue-card h3 { margin: 0; color: var(--ink); font-size: 18px; }
.issue-card ul { margin: 0; padding-left: 1.25em; color: var(--muted); }
.issue-card li + li { margin-top: 5px; }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
    padding: 23px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
}
.related-card h3 { margin: 0 0 8px; color: var(--ink); font-size: 18px; }
.related-card p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }

.search-page { padding: 54px 0 76px; }
.search-page h1 { margin: 0; color: var(--ink); font-size: clamp(34px, 4.8vw, 58px); }
.search-page .search-form { margin-top: 22px; max-width: 720px; }
.search-summary { margin: 28px 0 18px; color: var(--muted); }
.search-results { display: grid; gap: 14px; max-width: 850px; }
.search-result {
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
}
.search-result h2 { margin: 0 0 7px; color: var(--ink); font-size: 21px; }
.search-result h2 a { text-decoration: none; }
.search-result h2 a:hover { color: var(--brand); text-decoration: underline; }
.search-result p { margin: 0; color: var(--muted); }
.empty-state {
    max-width: 760px;
    padding: 30px;
    border-radius: 18px;
    background: var(--surface);
}
.empty-state h2 { margin-top: 0; color: var(--ink); }
.empty-state p:last-child { margin-bottom: 0; }

.error-page { min-height: 62vh; display: grid; place-items: center; padding: 70px 20px; }
.error-box { max-width: 760px; text-align: center; }
.error-code { color: var(--brand-soft); font-size: clamp(72px, 16vw, 160px); font-weight: 900; line-height: .8; letter-spacing: -.06em; }
.error-box h1 { margin: 24px 0 8px; color: var(--ink); font-size: clamp(30px, 5vw, 48px); }
.error-box p { color: var(--muted); }
.error-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.site-footer {
    border-top: 1px solid var(--line);
    background: #2B2528;
    color: #EDE2E4;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr repeat(3, .75fr);
    gap: 38px;
    padding: 54px 0 38px;
}
.footer-about { max-width: 390px; }
.footer-about p { color: #CDBFC1; font-size: 14px; }
.footer-brand .brand-copy strong { color: white; }
.footer-brand .brand-copy small { color: #BDAFB1; }
.footer-links h2 { margin: 0 0 13px; color: white; font-size: 15px; }
.footer-links ul { display: grid; gap: 9px; padding: 0; margin: 0; list-style: none; }
.footer-links a { color: #CFC1C3; font-size: 14px; text-decoration: none; }
.footer-links a:hover { color: white; text-decoration: underline; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(255,255,255,.10);
    color: #AFA0A3;
    font-size: 12px;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #D6C8CA; }
.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 80;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    color: white;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: .2s ease;
}
.back-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

@media (max-width: 1100px) {
    .header-inner { grid-template-columns: auto auto 1fr auto; }
    .menu-toggle {
        display: inline-grid;
        place-items: center;
        width: 42px;
        height: 42px;
        border: 1px solid var(--line);
        border-radius: 50%;
        background: var(--white);
        color: var(--ink);
        order: 2;
    }
    .primary-nav {
        display: none;
        position: absolute;
        left: 20px;
        right: 20px;
        top: 68px;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: var(--paper);
        box-shadow: var(--shadow-soft);
    }
    .primary-nav.is-open { display: block; }
    .primary-nav ul { justify-content: flex-start; }
    .search-trigger { grid-column: 4; }
    .hero-grid, .page-hero-grid { gap: 34px; }
    .check-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1.2fr repeat(3, 1fr); gap: 26px; }
}

@media (max-width: 900px) {
    :root { --shell: min(100% - 32px, 760px); }
    .hero-grid, .page-hero-grid, .split-layout, .split-layout.reverse, .editorial-band { grid-template-columns: 1fr; }
    .split-layout.reverse .split-media { order: 0; }
    .hero { padding-top: 42px; }
    .hero-visual { max-width: 700px; }
    .hero-floating { right: 14px; }
    .path-grid, .related-grid { grid-template-columns: 1fr 1fr; }
    .topic-strip { grid-template-columns: 1fr; }
    .prose-wrap { grid-template-columns: 1fr; }
    .sidebar { position: static; grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; max-width: 650px; }
}

@media (max-width: 650px) {
    :root { --shell: min(100% - 26px, 560px); }
    .header-inner { min-height: 68px; gap: 10px; grid-template-columns: 1fr auto auto; }
    .brand-copy small { display: none; }
    .brand img { width: 38px; height: 38px; }
    .menu-toggle { order: initial; width: 38px; height: 38px; }
    .search-trigger { grid-column: auto; padding: 9px 12px; font-size: 13px; }
    .primary-nav { top: 64px; left: 13px; right: 13px; }
    .primary-nav ul { display: grid; grid-template-columns: 1fr 1fr; }
    .primary-nav a { justify-content: center; }
    .hero, .section, .page-hero { padding-top: 42px; padding-bottom: 42px; }
    .hero h1, .page-hero h1 { font-size: clamp(36px, 12vw, 52px); }
    .hero .lead, .page-hero .lead { font-size: 16px; }
    .hero-actions .button { width: 100%; }
    .hero-floating { position: static; max-width: none; margin-top: 12px; }
    .section-header { display: block; }
    .section-header .text-link { margin-top: 14px; }
    .path-grid, .check-grid, .related-grid, .sidebar { grid-template-columns: 1fr; }
    .flow-item { grid-template-columns: 48px 1fr; gap: 14px; }
    .flow-number { width: 42px; height: 42px; border-radius: 13px; }
    .issue-card { grid-template-columns: 1fr; gap: 12px; }
    .search-dialog { padding: 30px 20px 22px; }
    .search-row { grid-template-columns: 1fr; }
    .search-row button { min-height: 48px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-about { grid-column: auto; }
    .footer-bottom { display: block; }
    .footer-bottom p + p { margin-top: 8px; }
}

@media (max-width: 390px) {
    :root { --shell: calc(100% - 22px); }
    .brand-copy strong { font-size: 16px; }
    .search-trigger { font-size: 12px; padding-inline: 10px; }
    .primary-nav ul { grid-template-columns: 1fr; }
    .content-panel, .path-card-body, .related-card, .check-card { padding: 19px; }
    .back-top { right: 14px; bottom: 14px; }
}
