/* 3C Web Report — страница «Как это работает» */
.gd {
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --brand: #1e3a8a;
    --brand2: #0f766e;
    --bg: #f6f8fc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    min-height: 100vh;
}

.gd * { box-sizing: border-box; }

.gd-top {
    position: sticky; top: 0; z-index: 10;
    display: flex; align-items: center; gap: 14px;
    padding: 12px 22px;
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.gd-top img { height: 30px; }
.gd-top .name { font-weight: 700; letter-spacing: -.01em; }
.gd-top .spacer { flex: 1; }
.gd-top a {
    color: var(--brand); text-decoration: none; font-size: 14px; font-weight: 600;
    padding: 8px 14px; border-radius: 9px; background: #eef2ff;
}
.gd-top a:hover { background: #e0e7ff; }

.gd-wrap { max-width: 1100px; margin: 0 auto; padding: 0 22px 60px; }

.gd-hero {
    margin: 26px 0 34px;
    padding: 44px 40px;
    border-radius: 22px;
    background: linear-gradient(135deg, #1e3a8a 0%, #155e75 55%, #0f766e 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.gd-hero:after {
    content: ""; position: absolute; right: -120px; top: -120px;
    width: 380px; height: 380px; border-radius: 50%;
    background: rgba(255,255,255,.08);
}
.gd-hero h1 { margin: 0 0 12px; font-size: 34px; line-height: 1.15; letter-spacing: -.02em; }
.gd-hero p { margin: 0; max-width: 720px; font-size: 16px; line-height: 1.6; color: #dbeafe; }
.gd-hero .pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.gd-hero .pills span {
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
    padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
}

.gd h2 {
    font-size: 22px; margin: 42px 0 8px; letter-spacing: -.01em;
    display: flex; align-items: center; gap: 10px;
}
.gd h2 .num {
    width: 28px; height: 28px; border-radius: 9px; background: #e0e7ff; color: var(--brand);
    display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800;
}
.gd .lead { color: var(--muted); margin: 0 0 18px; font-size: 15px; line-height: 1.6; }

.gd-card {
    background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px;
    box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.gd-grid { display: grid; gap: 14px; }
.gd-grid.c3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gd-grid.c2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.gd-card h3 { margin: 0 0 8px; font-size: 15px; }
.gd-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.gd-card .ico { font-size: 22px; margin-bottom: 10px; display: block; }

/* схема */
.gd-flow { display: flex; flex-direction: column; align-items: center; gap: 0; }
.gd-box {
    width: 100%; max-width: 560px; text-align: center;
    border-radius: 14px; padding: 14px 18px;
    background: #fff; border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(16,24,40,.05);
}
.gd-box b { display: block; font-size: 14.5px; }
.gd-box span { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.gd-box.accent { background: #eef2ff; border-color: #c7d2fe; }
.gd-box.accent b { color: var(--brand); }
.gd-box.db { background: #ecfdf5; border-color: #a7f3d0; }
.gd-box.db b { color: #047857; }
.gd-box.one { background: #fff7ed; border-color: #fed7aa; }
.gd-box.one b { color: #c2410c; }
.gd-arrow { color: #94a3b8; font-size: 18px; line-height: 1; padding: 8px 0; }
.gd-side {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    gap: 14px; width: 100%; max-width: 780px; margin-top: 8px;
}
.gd-side .lbl { color: var(--muted); font-size: 12.5px; text-align: center; }
.gd-bidirectional {
    border-top: 2px dashed #cbd5e1; position: relative; height: 2px; width: 100%;
}
.gd-bidirectional:before, .gd-bidirectional:after {
    content: "⇄"; position: absolute; top: -12px; color: #94a3b8; font-size: 14px;
}
.gd-bidirectional:before { left: -4px; }
.gd-bidirectional:after { right: -4px; content: ""; }

/* шаги */
.gd-steps { counter-reset: s; display: grid; gap: 10px; }
.gd-step {
    display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
}
.gd-step .n {
    counter-increment: s; width: 34px; height: 34px; border-radius: 50%;
    background: var(--brand); color: #fff; font-weight: 800; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
}
.gd-step .n:before { content: counter(s); }
.gd-step b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.gd-step p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.gd-step code { background: #f1f5f9; padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }

/* код */
.gd-code {
    background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 16px 18px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px; line-height: 1.7; overflow-x: auto;
}
.gd-code .k { color: #93c5fd; }
.gd-code .s { color: #86efac; }
.gd-code .c { color: #64748b; }

/* глоссарий */
.gd-term { border-left: 3px solid #c7d2fe; padding: 4px 0 4px 14px; }
.gd-term b { display: block; font-size: 14px; }
.gd-term span { color: var(--muted); font-size: 13px; line-height: 1.55; }

.gd-soon {
    border: 2px dashed #cbd5e1; background: #fff; border-radius: 16px;
    padding: 26px; text-align: center; color: var(--muted);
}
.gd-soon b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }

.gd-foot {
    margin-top: 46px; padding-top: 18px; border-top: 1px solid var(--line);
    color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.gd-foot a { color: var(--brand); text-decoration: none; font-weight: 600; }

/* техническая страница */
.gd-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.gd-table th, .gd-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.gd-table th { color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.gd-table tr:last-child td { border-bottom: 0; }
.gd-table code { background: #f1f5f9; padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }

.gd-note {
    border-left: 4px solid #93c5fd; background: #eff6ff; border-radius: 10px;
    padding: 14px 16px; font-size: 13.5px; line-height: 1.6; color: #1e3a8a;
}
.gd-warn {
    border-left: 4px solid #fbbf24; background: #fffbeb; border-radius: 10px;
    padding: 14px 16px; font-size: 13.5px; line-height: 1.6; color: #92400e;
}
.gd-ok {
    border-left: 4px solid #34d399; background: #ecfdf5; border-radius: 10px;
    padding: 14px 16px; font-size: 13.5px; line-height: 1.6; color: #065f46;
}
.gd-code + .gd-code { margin-top: 10px; }
.gd-code .h { color: #fca5a5; }

@media (max-width: 640px) {
    .gd-hero { padding: 30px 22px; }
    .gd-hero h1 { font-size: 25px; }
    .gd-side { grid-template-columns: 1fr; }
    .gd-bidirectional { display: none; }
}
