/* Текстовые разделы главной: о сообществе, шаги вступления, FAQ.
   Использует переменные тем, поэтому подстраивается под каждую игру. */

.lore { padding-block: 58px 0; }
.lore-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(250px, .6fr); gap: clamp(24px, 4vw, 54px); align-items: start; }
.lore-text { display: grid; gap: 15px; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.lore-text strong { color: var(--ink); font-weight: 650; }
.lore-note { position: sticky; top: 24px; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 22px 24px; }
.lore-note h3 { font-family: var(--heading-font); font-weight: var(--heading-weight); letter-spacing: var(--heading-spacing); font-size: 1.2rem; color: var(--ink); }
.lore-note ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 11px; font-size: .92rem; line-height: 1.55; color: var(--muted); }
.lore-note li { display: flex; gap: 10px; align-items: baseline; }
.lore-note li::before { content: ""; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); flex: 0 0 auto; }
.lore-note b { color: var(--ink); font-weight: 650; }

.join { padding-block: 58px 0; }
.step-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 24px 24px 22px; }
.step::before { counter-increment: step; content: "0" counter(step); color: var(--gold); font-size: .72rem; font-weight: 750; letter-spacing: .14em; }
.step h3 { font-family: var(--heading-font); font-weight: var(--heading-weight); letter-spacing: var(--heading-spacing); font-size: 1.4rem; line-height: 1.15; color: var(--ink); }
.step p { color: var(--muted); font-size: .93rem; line-height: 1.65; }
.step-link { margin-top: auto; padding-top: 6px; color: var(--gold); font-size: .86rem; font-weight: 700; }
.step-link:hover { color: var(--gold-bright); }

.faq { padding-block: 58px 0; }
.faq-list { margin-top: 24px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; cursor: pointer; list-style: none; color: var(--ink); font-size: 1.02rem; font-weight: 600; line-height: 1.4; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: 0 0 auto; color: var(--gold); font-size: 1.35rem; line-height: 1; font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:hover { color: var(--gold-bright); }
.faq-answer { padding: 0 0 22px; max-width: 780px; color: var(--muted); font-size: .96rem; line-height: 1.72; }
.faq-answer a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.faq-answer a:hover { color: var(--gold-bright); }

@media (max-width: 900px) {
    .lore-grid { grid-template-columns: 1fr; }
    .step-list { grid-template-columns: 1fr; }
}

/* На узких экранах шапка не должна переноситься: пункт «Как вступить» скрываем. */
@media (max-width: 620px) {
    .topbar nav a[href="#join"] { display: none; }
}
