/* Public guides (/guides, /ru/guides): long-form reading, so a narrow column and calm type. */

.guide-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}

.guide-crumbs {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    font-family: var(--mono), monospace;
    font-size: .8rem;
    color: var(--muted);
    margin-bottom: 1.8rem;
}
.guide-crumbs a { color: var(--muted); text-decoration: none; }
.guide-crumbs a:hover { color: var(--rust-hot); }
.guide-crumbs .guide-lang {
    margin-left: auto;
    border: 1px solid var(--border);
    border-radius: .4rem;
    padding: .2rem .6rem;
}

.guide-article h1,
.guide-index-title {
    font-family: var(--display), sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: .6rem;
}
.guide-meta {
    font-family: var(--mono), monospace;
    font-size: .78rem;
    color: var(--muted);
    margin-bottom: 1.4rem;
}
.guide-lead {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--text);
    opacity: .85;
    margin-bottom: 2rem;
}

.guide-body { color: var(--text); font-size: 1rem; line-height: 1.75; }
.guide-body h2 {
    font-family: var(--display), sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 2.4rem 0 .8rem;
    padding-top: .4rem;
    border-top: 1px solid var(--border);
}
.guide-body h3 {
    font-family: var(--display), sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.6rem 0 .5rem;
}
.guide-body p { margin-bottom: 1rem; }
.guide-body ul, .guide-body ol { margin: 0 0 1.2rem 1.4rem; }
.guide-body li { margin-bottom: .45rem; }
.guide-body a { color: var(--rust-hot); }
.guide-body strong { color: #fff; font-weight: 600; }
.guide-body code {
    font-family: var(--mono), monospace;
    font-size: .9em;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: .3rem;
    padding: .05rem .35rem;
    word-break: break-all;
}
.guide-note {
    border-left: 3px solid var(--rust);
    background: rgba(205, 74, 31, 0.06);
    padding: .9rem 1.1rem;
    border-radius: 0 .5rem .5rem 0;
    margin: 1.2rem 0 1.4rem;
}
.guide-note p:last-child { margin-bottom: 0; }

.guide-cta {
    margin-top: 2.8rem;
    padding: 1.8rem;
    border: 1px solid rgba(205, 74, 31, 0.35);
    border-radius: 1rem;
    background: rgba(205, 74, 31, 0.05);
    text-align: center;
}
.guide-cta h2 {
    font-family: var(--display), sans-serif;
    font-size: 1.5rem;
    margin-bottom: .4rem;
}
.guide-cta p { color: var(--muted); margin-bottom: 1.2rem; }
.guide-cta .cta-btn {
    display: inline-flex;
    padding: .8rem 2rem;
    background: linear-gradient(135deg, var(--rust), var(--rust-hot));
    color: #fff;
    font-family: var(--display), sans-serif;
    font-weight: 600;
    letter-spacing: .04em;
    border-radius: .75rem;
    text-decoration: none;
}

.guide-related { margin-top: 2.5rem; }
.guide-related h2 {
    font-family: var(--display), sans-serif;
    font-size: 1.2rem;
    margin-bottom: .7rem;
}
.guide-related ul { list-style: none; display: grid; gap: .5rem; }
.guide-related a { color: var(--rust-hot); text-decoration: none; }
.guide-related a:hover { text-decoration: underline; }

.guide-list { list-style: none; display: grid; gap: 1rem; }
.guide-list a {
    display: block;
    padding: 1.3rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    text-decoration: none;
    transition: border-color .2s ease;
}
.guide-list a:hover { border-color: rgba(205, 74, 31, 0.45); }
.guide-list h2 {
    font-family: var(--display), sans-serif;
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: .35rem;
}
.guide-list p { color: var(--muted); font-size: .92rem; line-height: 1.55; }

@media (max-width: 600px) {
    .guide-article h1, .guide-index-title { font-size: 1.8rem; }
    .guide-body h2 { font-size: 1.35rem; }
}
