.guide {
    width: min(100% - 48px, 1120px);
    margin: 0 auto;
    padding-bottom: 92px;
    color: var(--text);
}
.guide-crumbs, .guide-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.guide-crumbs { padding-top: 28px; font-size: .86rem; color: var(--text-secondary); }
.guide-crumbs a { color: var(--text-secondary); }
.guide a:hover { text-decoration: underline; text-underline-offset: .23em; }
.guide-intro {
    padding: clamp(34px, 6vw, 72px) 0 clamp(32px, 4vw, 58px);
    border-bottom: 1px solid var(--border-light);
}
.guide h1 {
    max-width: 18ch;
    font-size: clamp(2.45rem, 6vw, 4.6rem);
    letter-spacing: -.055em;
    line-height: 1.04;
    text-wrap: balance;
}
.guide-intro p { max-width: 63ch; margin: 1.05rem 0 1.6rem; color: #b7c4d6; font-size: clamp(1rem, 2vw, 1.2rem); }
.guide-actions { gap: 12px 24px; font-weight: 650; }
.guide-actions a, .guide-body a { color: #b8baff; }
.guide-actions .guide-action {
    display: inline-flex;
    gap: 16px;
    align-items: center;
    padding: 10px 18px;
    min-height: 44px;
    background: #ceceff;
    color: #151936;
    border-radius: 10px;
}
.guide-action:hover { background: #e0e0ff; }
.guide-layout {
    display: grid;
    grid-template-columns: minmax(180px, 215px) minmax(0, 730px);
    justify-content: space-between;
    gap: clamp(40px, 6vw, 92px);
    align-items: start;
}
.guide-toc { position: sticky; top: 88px; margin-top: 52px; border-left: 1px solid var(--border-light); padding-left: 18px; }
.guide-toc strong { display: block; margin: 0 0 .65rem; font-size: .88rem; }
.guide-toc ul { list-style: none; }
.guide-toc a { display: block; padding: 6px 0; color: #b5c1d2; line-height: 1.4; font-size: .92rem; }
.guide-toc a:hover, .guide-crumbs a:hover { color: white; }
.guide-body { min-width: 0; }
.guide-body section { padding: 44px 0; border-bottom: 1px solid var(--border-light); scroll-margin-top: 82px; }
.guide-body section:last-child { border-bottom: 0; }
.guide-body h2 { font-size: clamp(1.55rem, 3vw, 2.12rem); letter-spacing: -.035em; line-height: 1.17; text-wrap: balance; }
.guide-body h3 { margin-top: 1.4rem; font-size: 1.15rem; }
.guide-body p, .guide-body ol, .guide-body ul, .guide-body dl { margin-top: 1rem; }
.guide-body p, .guide-body li, .guide-body dd { color: #c0ccdb; line-height: 1.7; }
.guide-body strong, .guide-body dt { color: #f1f5f9; }
.guide-body ul, .guide-body ol { padding-left: 1.45em; }
.guide-body li { margin-top: .55rem; padding-left: .25em; }
.guide-body li::marker { color: #acafff; font-weight: 700; }
.guide-body dt { margin: 1rem 0 .12rem; font-weight: 650; }
.guide-body code, .guide-body kbd { font-family: var(--font-mono); font-size: .9em; }
.guide-body code { color: #d7d8ff; overflow-wrap: anywhere; }
.guide-body kbd { background: var(--bg-elevated); border: 1px solid var(--border-light); padding: .12em .4em; border-radius: 4px; white-space: nowrap; }
.guide-body .guide-keys { display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1rem; align-items: baseline; }
.guide-keys dt { margin: 0; }
.guide-body pre { margin-top: 1rem; overflow-x: auto; border: 1px solid var(--border-light); border-radius: 10px; padding: 16px 20px; background: #121b2c; line-height: 1.65; }
.guide-body details { margin-top: .65rem; border-bottom: 1px solid var(--border-light); }
.guide-body summary { padding: .72rem 0; cursor: pointer; font-weight: 600; }
.guide-body summary::marker { color: #acafff; }
.guide-body details p { margin: 0 0 1rem; }
.guide :focus-visible { outline: 2px solid #b8baff; outline-offset: 4px; }
@media (max-width: 760px) {
    .guide { width: min(100% - 32px, 680px); padding-bottom: 48px; }
    .guide-layout { display: block; }
    .guide-toc { position: static; padding: 18px 0 0; margin: 0; border: 0; }
    .guide-toc ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
    .guide-body section { padding: 30px 0; scroll-margin-top: 68px; }
    .guide-toc a { min-height: 34px; }
}
@media (max-width: 360px) {
    .guide-toc ul { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html:has(.guide) { scroll-behavior: auto; }
}

@media (prefers-reduced-motion: no-preference) {
    .guide-action span { transition: transform .18s ease-out; }
    .guide-action:is(:hover, :focus-visible) span { transform: translate(2px, -2px); }
    .guide-body details[open] p { animation: guide-disclosure .16s ease-out; }
}
@keyframes guide-disclosure {
    from { opacity: .5; transform: translateY(-3px); }
    to { opacity: 1; transform: none; }
}

.guide-document h1 { max-width: 25ch; overflow-wrap: anywhere; }
@media print {
    html:has(.guide-document), body:has(.guide-document) {
        padding: 0; margin: 0; overflow: visible; background: #fff !important; color: #151923;
    }
    .guide-document { width: auto; padding: 0; }
    body:has(.guide-document) > :not(main), .guide-document .guide-toc,
    .guide-document .guide-crumbs, .guide-document .guide-actions { display: none !important; }
    .guide-document .guide-layout { display: block; }
    .guide-document .guide-intro { padding: 0 0 1em; border-bottom: 1px solid #bbc2cb; }
    .guide-document .guide-intro h1 { font-size: 24pt; }
    .guide-document .guide-body section { border: 0; padding: 12pt 0 0; }
    .guide-document .guide-body h2 { font-size: 16pt; }
    .guide-document .guide-body h3 { font-size: 12pt; }
    .guide-document :is(h1, h2, h3, dt) { break-after: avoid; }
    .guide-document :is(li, dd) { break-inside: avoid; }
    .guide-document :is(h1, h2, h3, dt, dd, p, li, strong, code, kbd, a) { color: #151923; }
    .guide-document :is(kbd, pre) { background: #f0f2f5; border: 0; }
    .guide-document .guide-body :is(p, ol, ul, dl) { margin-top: .6em; }
    .guide-document .guide-body :is(p, dd, li) { font-size: 10.5pt; line-height: 1.4; }
    .guide-document .guide-body a { text-decoration: underline; }
}

.guide-price-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-variant-numeric: tabular-nums; }
.guide-price-table th, .guide-price-table td { padding: .6em .5em; border-bottom: 1px solid var(--border-light); text-align: left; }
.guide-price-table th { font-weight: 650; }
.guide-price-table :is(td, th):last-child { text-align: right; white-space: nowrap; }
.guide-estimate { margin-top: 1.3rem; border: 1px solid var(--border-light); border-radius: 10px; padding: 1rem; scroll-margin-top: 80px; }
.guide-estimate h3 { margin: 0 0 .65rem; }
.guide-estimate label { display: block; margin-bottom: .3rem; }
.guide-estimate-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.guide-estimate-controls input, .guide-estimate-controls button { font: inherit; border-radius: 5px; padding: .55em .7em; min-height: 42px; }
.guide-estimate-controls input { width: 9em; background: #121b2c; color: #f1f5f9; border: 1px solid #69768b; }
.guide-estimate-controls button { background: #ceceff; color: #151936; border: 1px solid transparent; font-weight: 650; cursor: pointer; }
@media (max-width: 480px) {
    .guide-price-table :is(th, td) { padding: .55em .18em; }
}
@media print {
    .guide-estimate { display: none; }
    .guide-price-table { margin-top: 5pt; font-size: 10pt; }
    .guide-price-table th, .guide-price-table td { border-color: #c5ccdf; padding: 3pt 4pt; color: #151923; }
}
