/* Информационные страницы (/about /faq /methodology /safety /rules /terms /privacy /payment). Светлая тема + тёмная внизу. */
*, *::before, *::after { box-sizing: border-box; }
:root {
    --bg: #f4f6fa; --card: #ffffff; --border: #e8ecf3; --text: #1e293b; --muted: #64748b; --green: #10b981; --blue: #0099ff;
    --lg-ink: #0f172a; --lg-ink-2: #334155; --lg-ink-3: #64748b; --lg-line: #e6ebf2; --lg-soft: #f6f8fb;
    --lg-acc: #0ea5e9; --lg-acc-2: #10b981; --lg-card: #fff;
    --lg-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px -18px rgba(15, 23, 42, .25);
}
body.lg-body { margin: 0; padding-top: 67.8px; background: var(--bg); color: var(--lg-ink-2); font-family: 'Inter', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
@media (max-width: 992px) { body.lg-body { padding-top: 34px; } }
.lg-main { min-width: 0; background: #f4f7fb; min-height: calc(100vh - 68px); }
@media (min-width: 993px) { html body .lg-main { padding: 14px 18px 0 !important; } }
@media (max-width: 992px) { html body .lg-main { padding: 8px 8px 0 !important; } }

.lg-crumbs { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--lg-ink-3); margin: 2px 2px 12px; }
.lg-crumbs a { color: var(--lg-ink-3); text-decoration: none; } .lg-crumbs a:hover { color: var(--lg-acc); }
.lg-crumbs b { color: var(--lg-ink-2); font-weight: 600; }

/* шапка страницы: «северное сияние» + пунктир полёта с самолётиками + крупная иконка раздела */
.lg-hero {
    position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; gap: 16px; min-height: 118px; padding: 22px 26px; border-radius: 22px; color: #fff;
    background:
        radial-gradient(60% 120% at 8% 0%, rgba(16, 185, 129, .55) 0%, transparent 60%),
        radial-gradient(50% 110% at 45% 120%, rgba(14, 165, 233, .45) 0%, transparent 65%),
        radial-gradient(40% 90% at 100% 0%, rgba(99, 102, 241, .35) 0%, transparent 70%),
        linear-gradient(120deg, #072b3f 0%, #0a2a52 55%, #0d1f45 100%);
    box-shadow: 0 22px 44px -26px rgba(10, 37, 64, .8), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.lg-hero-glow { position: absolute; z-index: -1; inset: -40% -10% auto 30%; height: 220%; background: conic-gradient(from 200deg at 50% 50%, rgba(45, 212, 191, .0), rgba(45, 212, 191, .28), rgba(56, 189, 248, .18), rgba(167, 139, 250, .16), rgba(45, 212, 191, 0)); filter: blur(38px); animation: lgAur 16s ease-in-out infinite alternate; }
@keyframes lgAur { to { transform: translate3d(-8%, 4%, 0) rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { .lg-hero-glow { animation: none; } }
.lg-hero-planes { position: absolute; z-index: -1; right: 0; top: 0; height: 100%; width: 70%; pointer-events: none; }
.lg-hero-big { position: absolute; z-index: -1; right: 34px; top: 50%; transform: translateY(-50%) rotate(-8deg); width: 128px; height: 128px; color: rgba(255, 255, 255, .09); }
.lg-hero-big svg { width: 100%; height: 100%; stroke-width: 1.3; }
.lg-hero-ic { flex: 0 0 54px; width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06)); border: 1px solid rgba(255, 255, 255, .3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 24px -10px rgba(0, 0, 0, .5); }
.lg-hero-ic svg { width: 26px; height: 26px; }
.lg-hero-tx { min-width: 0; }
.lg-hero h1 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.lg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.lg-chips span { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 8px; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .88);
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); }

/* вкладки между страницами */
.lg-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0 4px; margin-bottom: 8px; }
.lg-tabs::-webkit-scrollbar { display: none; }
.lg-tab {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 11px;
    background: var(--lg-card); border: 1px solid var(--lg-line); color: var(--lg-ink-2); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
    transition: border-color .15s, color .15s, background .15s;
}
.lg-tab svg { width: 15px; height: 15px; color: var(--lg-ink-3); }
.lg-tab:hover { border-color: rgba(14, 165, 233, .45); color: var(--lg-ink); }
.lg-tab.on { background: linear-gradient(135deg, #10b981, #0ea5e9); border-color: transparent; color: #fff; box-shadow: 0 8px 18px -10px rgba(14, 165, 233, .7); }
.lg-tab.on svg { color: #fff; }

/* сетка: оглавление + текст */
.lg-grid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 18px; align-items: start; padding-bottom: 24px; }
.lg-toc { position: sticky; top: 84px; background: var(--lg-card); border: 1px solid var(--lg-line); border-radius: 16px; padding: 14px 10px; box-shadow: var(--lg-shadow); }
.lg-toc-t { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--lg-ink-3); padding: 0 8px 8px; }
.lg-toc a { display: block; padding: 7px 8px; border-radius: 8px; font-size: 13px; line-height: 1.35; color: var(--lg-ink-2); text-decoration: none; border-left: 2px solid transparent; }
.lg-toc a:hover { background: var(--lg-soft); color: var(--lg-ink); }
.lg-toc a.on { color: var(--lg-acc); background: rgba(14, 165, 233, .08); border-left-color: var(--lg-acc); font-weight: 600; }

.lg-doc { background: var(--lg-card); border: 1px solid var(--lg-line); border-radius: 18px; padding: 28px 34px 30px; box-shadow: var(--lg-shadow); }
.lg-lead { margin: 0 0 6px; font-size: 16.5px; line-height: 1.65; color: var(--lg-ink); }
.lg-sec { scroll-margin-top: 84px; padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--lg-line); }
.lg-sec h2 { margin: 0 0 12px; font-size: 20px; line-height: 1.3; font-weight: 800; color: var(--lg-ink); letter-spacing: -.01em; }
.lg-doc p { margin: 0 0 12px; font-size: 15px; line-height: 1.7; }
.lg-doc ul, .lg-doc ol { margin: 0 0 12px; padding-left: 0; list-style: none; }
.lg-doc ol { counter-reset: lg; }
.lg-doc li { position: relative; padding-left: 24px; margin: 0 0 9px; font-size: 15px; line-height: 1.65; }
.lg-doc ul > li::before { content: ""; position: absolute; left: 6px; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, #10b981, #0ea5e9); }
.lg-doc ol > li { counter-increment: lg; padding-left: 30px; }
.lg-doc ol > li::before { content: counter(lg); position: absolute; left: 0; top: .15em; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #10b981, #0ea5e9); }
.lg-doc b { color: var(--lg-ink); font-weight: 700; }
.lg-doc a { color: var(--lg-acc); text-decoration: none; font-weight: 600; } .lg-doc a:hover { text-decoration: underline; }

.lg-dl { margin: 0 0 12px; display: grid; gap: 10px; }
.lg-dl dt { font-weight: 700; color: var(--lg-ink); font-size: 15px; margin: 0; }
.lg-dl dd { margin: -6px 0 0; font-size: 15px; line-height: 1.65; padding: 0 0 10px; border-bottom: 1px dashed var(--lg-line); }
.lg-dl dd:last-child { border-bottom: 0; padding-bottom: 0; }

.lg-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 4px 0 14px; }
.lg-doc a.lg-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--lg-line); background: var(--lg-soft); color: var(--lg-ink-2); font-weight: 400; transition: border-color .15s, transform .15s; }
.lg-doc a.lg-card:hover { text-decoration: none; border-color: rgba(14, 165, 233, .5); transform: translateY(-1px); }
.lg-card b { color: var(--lg-acc); font-size: 15px; } .lg-card span { font-size: 13.5px; line-height: 1.5; }

/* FAQ */
.lg-faq { display: grid; gap: 8px; }
.lg-qa { border: 1px solid var(--lg-line); border-radius: 12px; background: var(--lg-soft); transition: border-color .15s, background .15s; }
.lg-qa[open] { background: var(--lg-card); border-color: rgba(14, 165, 233, .4); box-shadow: 0 6px 18px -12px rgba(14, 165, 233, .5); }
.lg-qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px 13px 16px; font-size: 15px; font-weight: 700; color: var(--lg-ink); line-height: 1.4; }
.lg-qa summary::-webkit-details-marker { display: none; }
.lg-qa summary i { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 7px; position: relative; background: rgba(14, 165, 233, .1); }
.lg-qa summary i::before, .lg-qa summary i::after { content: ""; position: absolute; left: 6px; right: 6px; top: 10px; height: 2px; border-radius: 2px; background: var(--lg-acc); transition: transform .2s; }
.lg-qa summary i::after { transform: rotate(90deg); }
.lg-qa[open] summary i::after { transform: rotate(0); }
.lg-qa-a { padding: 0 16px 14px; font-size: 14.5px; line-height: 1.65; color: var(--lg-ink-2); }

/* «остались вопросы» */
.lg-help { margin-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(135deg, rgba(16, 185, 129, .1), rgba(14, 165, 233, .1)); border: 1px solid rgba(14, 165, 233, .25); }
.lg-help b { display: block; color: var(--lg-ink); font-size: 15.5px; } .lg-help span { font-size: 13.5px; color: var(--lg-ink-3); }
.lg-doc a.lg-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; color: #fff; font-size: 14px; font-weight: 700; background: linear-gradient(135deg, #10b981, #0ea5e9); box-shadow: 0 10px 22px -12px rgba(14, 165, 233, .8); }
.lg-doc a.lg-btn:hover { text-decoration: none; filter: brightness(1.06); }
.lg-btn svg { width: 16px; height: 16px; }

/* телефон */
@media (max-width: 992px) {
    .lg-crumbs { display: none; }
    .lg-hero { padding: 16px; border-radius: 16px; gap: 12px; min-height: 0; }
    .lg-hero-big { width: 84px; height: 84px; right: 10px; }
    .lg-chips { margin-top: 7px; } .lg-chips span { height: 21px; font-size: 11px; padding: 0 8px; }
    .lg-hero-ic { flex-basis: 42px; width: 42px; height: 42px; border-radius: 13px; } .lg-hero-ic svg { width: 21px; height: 21px; }
    .lg-hero h1 { font-size: 21px; }
    .lg-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 10px 8px 2px; margin: 0 -8px 6px; gap: 6px; }
    .lg-tabs::-webkit-scrollbar { display: none; }
    .lg-tab { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 10px; }
    .lg-grid { grid-template-columns: 1fr; gap: 10px; padding-bottom: 14px; }
    .lg-toc { display: none; }
    .lg-doc { padding: 18px 16px 20px; border-radius: 16px; }
    .lg-lead { font-size: 15px; }
    .lg-sec { padding-top: 16px; margin-top: 16px; scroll-margin-top: 64px; }
    .lg-sec h2 { font-size: 17.5px; }
    .lg-doc p, .lg-doc li, .lg-dl dt, .lg-dl dd { font-size: 14.5px; }
    .lg-cards { grid-template-columns: 1fr; }
    .lg-qa summary { font-size: 14.5px; padding: 12px 12px 12px 14px; }
    .lg-qa-a { font-size: 14px; padding: 0 14px 12px; }
    .lg-help { flex-direction: column; align-items: stretch; text-align: center; }
    .lg-doc a.lg-btn { justify-content: center; }
}

/* =================================================================== ТЁМНАЯ ТЕМА */
html[data-theme="dark"] {
    --lg-ink: var(--tgd-text, #e6edf7); --lg-ink-2: var(--tgd-text-2, #c6d4e6); --lg-ink-3: var(--tgd-text-3, #9fb2cb);
    --lg-line: var(--tgd-line, rgba(125, 165, 220, .16)); --lg-soft: var(--tgd-ink-2, #16243f); --lg-card: var(--tgd-ink-1, #111d33);
    --lg-acc: #38bdf8; --lg-shadow: var(--tgd-card-shadow, 0 12px 32px -12px rgba(0, 0, 0, .6));
}
html[data-theme="dark"] .lg-main { background: transparent; }
html[data-theme="dark"] .lg-qa summary i { background: rgba(56, 189, 248, .14); }
