.page-hero { padding: 56px 0 24px; }
.page-hero .eyebrow { color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
.page-hero .lead { color: var(--muted); font-size: 17px; max-width: 760px; margin-top: 14px; }
.page-hero .accent { color: var(--gold-3); }

.g-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; list-style: none; }
.g-cats a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; background: rgba(18, 23, 42, 0.6); transition: border-color .2s ease, color .2s ease, background .2s ease; }
.g-cats a:hover { color: var(--gold-3); border-color: var(--gold-2); }
.g-cats a.on { color: var(--gold-ink); background: var(--gold); border-color: var(--gold); }
.g-cats .n { font-size: 12px; opacity: .75; }

.g-section { padding: 34px 0 10px; scroll-margin-top: 84px; }
.g-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line-soft); padding-bottom: 14px; margin-bottom: 22px; }
.g-sec-head h2 { font-size: 24px; font-weight: 600; }
.g-sec-head p { color: var(--dim); font-size: 15px; margin-top: 4px; max-width: 760px; }
.g-sec-count { color: var(--dim); font-size: 13px; white-space: nowrap; }
.g-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.g-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: border-color .2s ease, transform .2s ease; }
.g-card:hover { border-color: var(--line); transform: translateY(-2px); }
.g-thumb { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #0a0d18; cursor: zoom-in; aspect-ratio: 16 / 10; overflow: hidden; }
.g-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.g-thumb:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.g-zoom { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(7, 10, 20, 0.78); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s ease; }
.g-zoom svg { width: 18px; height: 18px; fill: none; stroke: var(--gold-3); stroke-width: 2; stroke-linecap: round; }
.g-thumb:hover .g-zoom, .g-thumb:focus-visible .g-zoom { opacity: 1; }
.g-card figcaption { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.g-card figcaption strong { font-size: 15.5px; font-weight: 600; color: var(--text); }
.g-card figcaption span { font-size: 14px; color: var(--dim); line-height: 1.5; }
.g-note { color: var(--dim); font-size: 14px; margin: 34px 0 10px; }
.g-note a, .guide a { color: var(--gold-3); }

.vw { position: fixed; inset: 0; z-index: 3000; background: rgba(4, 6, 12, 0.97); display: flex; flex-direction: column; }
.vw[hidden] { display: none; }
.vw-top { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: var(--muted); font-size: 14px; }
.vw-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 500; }
.vw-count { color: var(--dim); white-space: nowrap; }
.vw button { background: rgba(26, 33, 64, 0.9); color: var(--text); border: 1px solid var(--line); border-radius: 10px; min-width: 40px; height: 40px; padding: 0 10px; font: inherit; font-size: 18px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.vw button:hover { border-color: var(--gold-2); color: var(--gold-3); }
.vw button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.vw-stage { position: relative; flex: 1; overflow: hidden; touch-action: none; cursor: grab; }
.vw-stage.drag { cursor: grabbing; }
.vw-stage img { position: absolute; left: 0; top: 0; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; max-width: none; }
.vw-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.vw-prev { left: 12px; }
.vw-next { right: 12px; }
.vw-cap { padding: 10px 16px 16px; text-align: center; color: var(--muted); font-size: 14.5px; }
body.vw-open { overflow: hidden; }

.guide-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; padding-bottom: 40px; }
.toc-col { position: sticky; top: 86px; align-self: start; }
.toc { max-height: calc(100vh - 100px); overflow: auto; padding: 18px 16px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 14px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.toc-h { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.toc ol { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 14px; }
.toc a:hover { color: var(--gold-3); background: rgba(26, 33, 64, 0.6); }
.toc a[aria-current="true"] { color: var(--gold-ink); background: var(--gold); }
.toc-btn { display: none; }
.guide .area { padding: 8px 0 30px; border-bottom: 1px solid var(--line-soft); margin-bottom: 30px; scroll-margin-top: 84px; }
.guide .area:last-child { border-bottom: 0; }
.guide h2 { font-size: 28px; font-weight: 600; margin-bottom: 8px; }
.guide h3 { font-size: 19px; font-weight: 600; margin: 26px 0 8px; color: var(--gold-3); scroll-margin-top: 84px; }
.guide p { color: var(--muted); margin: 8px 0; }
.guide .lead { font-size: 17px; color: var(--text); }
.guide strong { color: var(--text); }
.guide ol.steps, .guide ul.points { margin: 8px 0 8px 22px; color: var(--muted); }
.guide ol.steps > li, .guide ul.points > li { margin: 8px 0; padding-left: 4px; }
.guide .tip { border-left: 3px solid var(--gold); background: rgba(232, 176, 75, 0.07); padding: 10px 14px; border-radius: 0 10px 10px 0; margin: 12px 0; color: var(--muted); }
.guide .tip strong { color: var(--gold-3); }
.guide .quick { margin-top: 22px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 14px; }
.guide .quick h2 { font-size: 18px; margin-bottom: 8px; }
.guide .quick ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 18px; }
.guide .quick a { text-decoration: none; font-size: 15px; }
.guide .quick a:hover { text-decoration: underline; }
.guide figure.gshot { margin: 14px 0 18px; }
.guide .shot-btn { display: block; width: 100%; padding: 0; border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; background: #0a0d18; cursor: zoom-in; }
.guide .shot-btn img { display: block; width: 100%; height: auto; }
.guide .shot-btn:hover { border-color: var(--line); }
.guide .shot-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.guide figure.gshot figcaption { font-size: 14px; color: var(--dim); margin-top: 8px; }
.guide table.ref { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14.5px; }
.guide table.ref th, .guide table.ref td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--muted); }
.guide table.ref th { color: var(--text); font-weight: 600; background: rgba(26, 33, 64, 0.5); }

[dir="rtl"] .vw-prev { left: auto; right: 12px; }
[dir="rtl"] .vw-next { right: auto; left: 12px; }
[dir="rtl"] .guide ol.steps, [dir="rtl"] .guide ul.points { margin: 8px 22px 8px 0; }
[dir="rtl"] .guide .tip { border-left: 0; border-right: 3px solid var(--gold); border-radius: 10px 0 0 10px; }
[dir="rtl"] .guide table.ref th, [dir="rtl"] .guide table.ref td { text-align: right; }

@media (max-width: 960px) {
	.guide-layout { grid-template-columns: 1fr; gap: 16px; }
	.toc-col { position: static; }
	.toc { max-height: none; display: none; }
	.toc.open { display: block; }
	.toc-btn { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
}

@media (max-width: 640px) {
	.page-hero { padding: 36px 0 16px; }
	.g-grid { grid-template-columns: 1fr; }
	.guide h2 { font-size: 24px; }
	.vw-top { padding: 8px 10px; gap: 8px; }
	.vw button { min-width: 36px; height: 36px; }
	.vw-zoom-btns { display: none; }
}
