/* Карта запуска — start-guide */
:root {
    --sg-bg: #f1f5f9;
    --sg-card: #ffffff;
    --sg-ink: #0f172a;
    --sg-muted: #64748b;
    --sg-line: #e2e8f0;
    --sg-cam: #2563eb;
    --sg-aat: #e11d48;
    --sg-equip: #0891b2;
    --sg-core: #0d9488;
    --sg-tech: #7c3aed;
    --sg-map: #0f766e;
    --sg-guide: #0d9488;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    background: var(--sg-bg);
    color: var(--sg-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.45;
}

.mes-mark {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: baseline;
    gap: 0;
}
.mes-mark .mes { color: #0f172a; }
.mes-mark .suf { font-size: 0.85em; }
.mes-mark--cam .suf { color: var(--sg-cam); }
.mes-mark--aat .suf { color: var(--sg-aat); }
.mes-mark--equip .suf { color: var(--sg-equip); }
.mes-mark--core .suf { color: var(--sg-core); }
.mes-mark--tech .suf { color: var(--sg-tech); }
.mes-mark--map .suf { color: var(--sg-map); }
.mes-mark--guide .suf { color: var(--sg-guide); }
.mes-mark--parts .suf { color: #4f46e5; }
.mes-mark--route .suf { color: #059669; }
.mes-mark--dash .suf { color: var(--sg-cam); }

a { color: var(--sg-cam); text-decoration: none; }
a:hover { text-decoration: underline; }

.sg-top {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--sg-line);
    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.04);
}
.sg-top-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sg-top-brand h1 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sg-top-brand p {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--sg-muted);
    font-weight: 600;
}
.sg-top-actions { display: flex; gap: 8px; flex-shrink: 0; }

.sg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 10px;
    border: 1px solid var(--sg-line);
    background: #fff;
    color: var(--sg-ink);
    font: inherit;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 14px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.15s;
}
.sg-btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08); }
.sg-btn-primary {
    background: var(--sg-cam);
    border-color: #1d4ed8;
    color: #fff;
}
.sg-btn-primary:hover { background: #1d4ed8; color: #fff; }

.sg-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 0;
    max-width: 1280px;
    margin: 0 auto;
    min-height: calc(100vh - 64px);
}

.sg-nav {
    position: sticky;
    top: 64px;
    align-self: start;
    max-height: calc(100vh - 64px);
    overflow: auto;
    padding: 18px 14px 28px;
    border-right: 1px solid var(--sg-line);
    background: #fff;
}
.sg-nav-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 0 8px 8px;
}
.sg-nav-item {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 12px;
    padding: 10px 10px;
    cursor: pointer;
    font: inherit;
    color: inherit;
    margin-bottom: 4px;
}
.sg-nav-item:hover { background: #f8fafc; border-color: #e2e8f0; }
.sg-nav-item.active {
    background: #eff6ff;
    border-color: #bfdbfe;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.08);
}
.sg-nav-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    color: #fff;
    background: #94a3b8;
}
.sg-nav-item.active .sg-nav-num { background: var(--sg-cam); }
.sg-nav-text { min-width: 0; }
.sg-nav-text strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}
.sg-nav-text span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: var(--sg-muted);
    font-weight: 600;
    line-height: 1.3;
}

.sg-main { padding: 22px 24px 48px; min-width: 0; }

.sg-hero {
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 55%, #f0fdfa 100%);
    border: 1px solid var(--sg-line);
    border-radius: 18px;
    padding: 22px 24px;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.sg-hero h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 900;
}
.sg-hero p { margin: 0; color: var(--sg-muted); font-weight: 600; max-width: 62ch; }
.sg-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}
.sg-flow span {
    font-size: 11px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--sg-line);
    color: #334155;
}

.sg-block { display: none; }
.sg-block.active { display: block; }
.sg-block[hidden] { display: none !important; }

.sg-block-head {
    background: var(--sg-card);
    border: 1px solid var(--sg-line);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 14px;
    border-left: 5px solid var(--sg-cam);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}
.sg-block-head .kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.sg-block-head h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 900;
}
.sg-block-head .goal,
.sg-block-head .need {
    margin: 6px 0 0;
    font-size: 13px;
    color: #334155;
    font-weight: 600;
}
.sg-block-head .need b { color: #0f766e; }
.sg-block-head .goal b { color: var(--sg-cam); }
.sg-rules {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 13px;
    line-height: 1.45;
}
.sg-rules b { color: #34d399; }

.sg-steps { display: flex; flex-direction: column; gap: 14px; }

.sg-step {
    background: var(--sg-card);
    border: 1px solid var(--sg-line);
    border-radius: 16px;
    padding: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 16px;
    align-items: start;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}
.sg-step.reverse { direction: rtl; }
.sg-step.reverse > * { direction: ltr; }

.sg-step-body .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--sg-cam);
    color: #fff;
    font-weight: 900;
    font-size: 13px;
    margin-right: 8px;
    vertical-align: middle;
}
.sg-step-body h3 {
    display: inline;
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    vertical-align: middle;
}
.sg-step-body .prog {
    display: inline-block;
    margin: 8px 0 0;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.sg-step-body p {
    margin: 10px 0 0;
    font-size: 13px;
    color: #334155;
    line-height: 1.55;
    font-weight: 500;
}
.sg-step-body .tip {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 12px;
    font-weight: 600;
}

.sg-figure {
    margin: 0;
    position: relative;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
}
.sg-figure img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
    background: #e2e8f0;
    min-height: 120px;
}
.sg-figure .placeholder {
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}
.sg-figure figcaption {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    background: #fff;
    border-top: 1px solid var(--sg-line);
}
.sg-marks {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.sg-mark {
    position: absolute;
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 4px 10px rgba(15, 23, 42, 0.25);
    z-index: 2;
}

.sg-pager {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
}
.sg-checklist {
    margin-top: 18px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 16px;
    padding: 16px 18px;
}
.sg-checklist h3 { margin: 0 0 10px; font-size: 16px; }
.sg-checklist ul { margin: 0; padding-left: 18px; }
.sg-checklist li { margin: 6px 0; font-weight: 600; color: #065f46; font-size: 13px; }

@media (max-width: 960px) {
    .sg-shell { grid-template-columns: 1fr; }
    .sg-nav {
        position: relative;
        top: 0;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid var(--sg-line);
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
        padding: 12px;
    }
    .sg-nav-label { grid-column: 1 / -1; }
    .sg-main { padding: 16px 12px 36px; }
    .sg-step { grid-template-columns: 1fr; }
    .sg-step.reverse { direction: ltr; }
    .sg-top h1 { font-size: 13px; }
    .sg-hero h2 { font-size: 20px; }
}

@media (max-width: 560px) {
    .sg-nav { grid-template-columns: 1fr; }
    .sg-top { padding: 10px 12px; }
    .sg-top-brand p { display: none; }
}
