/* Раздел «Корабли» (/ships/ и /ships/<id>/). Стиль — «альбом распознавания» пилота: чертёжная сетка,
   голубые линии чертежа, оранжевый — цвет лётных комбинезонов повстанцев. Текст — на всю ширину колонки. */
.sh-page {
  --sh-blue: #7fd4ff;
  --sh-orange: #ff8a3d;
  --sh-glass: rgba(6, 12, 22, .82);
  --sh-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
  --sh-ease: cubic-bezier(.2, .8, .2, 1);
  --sh-grid: linear-gradient(rgba(127, 212, 255, .06) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(127, 212, 255, .06) 1px, transparent 1px) 0 0 / 32px 32px;
}
.sh-page svg { direction: ltr; }
.sh-page:is(:lang(ar), :lang(fa), :lang(th)) { --sh-mono: var(--f-text); }
.sh-page:is(:lang(ar), :lang(fa), :lang(th)) :not(svg *) { letter-spacing: 0 !important; }
.sh-page :is(h1, h2, h3) { -webkit-hyphens: auto; hyphens: auto; }
.sh-page p { line-height: 1.6; }

/* ---------- общие элементы ---------- */
.sh-kicker { margin: 0 0 10px; font-family: var(--sh-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--sh-blue); }
.sh-kicker::before { content: '▸ '; color: var(--sh-orange); }
.sh-h1 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(40px, 7vw, 92px); line-height: .98; letter-spacing: .01em; text-transform: uppercase; color: #fff; }
.sh-lead { margin: 16px 0 0; font-size: clamp(17px, 1.6vw, 20px); color: #cfd6e6; }
.sh-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border: 1px solid rgba(127, 212, 255, .3); border-radius: 99px; background: var(--sh-glass); color: #e8eef9; font-family: var(--sh-mono); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; transition: border-color .2s, color .2s, background .2s; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sh-btn:hover { border-color: var(--sh-orange); color: #fff; }
.sh-btn[aria-pressed="true"] { border-color: var(--sh-orange); background: rgba(255, 138, 61, .16); color: #ffd9c2; }
.sh-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sh-btn-hot { border-color: var(--sh-orange); background: var(--sh-orange); color: #1a0d04; font-weight: 700; }
.sh-btn-hot:hover { background: #ffa465; color: #1a0d04; }
.sh-sec { margin-top: 64px; scroll-margin-top: 80px; }
.sh-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 18px; }
.sh-sec-head h2, .sh-sources h2, .sh-scale-h { position: relative; margin: 0; padding-top: 14px; font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.05; text-transform: uppercase; color: #fff; }
.sh-sec-head h2::before, .sh-sources h2::before, .sh-scale-h::before { content: ''; position: absolute; top: 0; inset-inline-start: 0; width: 56px; height: 3px; background: linear-gradient(90deg, var(--sh-orange) 0 60%, transparent 60% 70%, var(--sh-orange) 70%); }
.sh-sec-p { margin: 0 0 18px; color: var(--muted); font-size: 17px; }
.sh-ref a { color: var(--sh-blue); text-decoration: none; font-size: .78em; }

/* ---------- хаб: шкала размеров ---------- */
.sh-hero-in { padding-top: 34px; }
.sh-scale { position: relative; height: min(72vh, 680px); min-height: 440px; margin-top: 26px; border-block: 1px solid rgba(127, 212, 255, .14); background: var(--sh-grid), radial-gradient(80% 90% at 50% 60%, rgba(30, 60, 100, .25), transparent 70%), #02040a; overflow: hidden; }
.sh-3d { display: none; width: 100%; height: 100%; }
.sh-3d-on .sh-3d { display: block; }
.sh-scale .sh-3d { cursor: grab; touch-action: pan-y; }
.sh-labels { position: absolute; inset: 0; pointer-events: none; }
.sh-lab { position: absolute; left: 0; top: 0; padding: 3px 8px; border-inline-start: 2px solid var(--fc, var(--sh-blue)); background: rgba(3, 6, 12, .72); color: #eef3fb; font-family: var(--sh-mono); font-size: 11.5px; letter-spacing: .04em; white-space: nowrap; pointer-events: auto; text-decoration: none; transform: translate(-50%, -100%); transition: opacity .2s; }
.sh-lab small { margin-inline-start: 6px; color: var(--sh-orange); }
.sh-lab-off { opacity: 0; pointer-events: none; }
.sh-scale-ui { position: absolute; z-index: 2; inset-inline: 16px; bottom: 16px; display: flex; align-items: center; gap: 14px; padding: 10px 16px; border: 1px solid rgba(127, 212, 255, .22); border-radius: 14px; background: var(--sh-glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sh-zoom { display: flex; flex: 1; align-items: center; gap: 12px; font-family: var(--sh-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sh-zoom input { flex: 1; accent-color: var(--sh-orange); }
.sh-zoom-v { min-width: 8em; font-family: var(--sh-mono); font-size: 14px; color: var(--sh-orange); text-align: end; }
.sh-hint { position: absolute; top: 12px; inset-inline: 0; margin: 0; text-align: center; font-family: var(--sh-mono); font-size: 11.5px; color: var(--dim); }
.sh-hint, .sh-scale .sh-3d { display: none; }
.sh-3d-on .sh-scale .sh-3d, .sh-3d-on .sh-hint { display: block; }
/* без 3D шкала — только лестница ниже, пустое поле не оставляем */
html:not(.sh-3d-on) .sh-hub .sh-scale { display: none; }
.sh-scale-txt { margin-top: 30px; }
.sh-scale-txt > p { margin: 14px 0 20px; color: #cfd6e6; font-size: 17px; }
/* лестница размеров: подпись · полоса (логарифм) · размер */
.sh-ladder { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.sh-rung > a, .sh-rung > .sh-rung-n:first-child { }
.sh-rung > a, .sh-rung-lm { display: grid; grid-template-columns: minmax(150px, 22%) 1fr auto; align-items: center; gap: 14px; padding: 5px 10px; border-radius: 8px; color: inherit; text-decoration: none; }
.sh-rung > a:hover { background: rgba(255, 255, 255, .04); }
.sh-rung-n { font-size: 15px; font-weight: 700; color: #eef3fb; overflow-wrap: anywhere; }
.sh-rung-bar { position: relative; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .05); }
.sh-rung-bar::after { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--p); border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--fc) 35%, transparent), var(--fc)); }
.sh-rung-v { min-width: 6.5em; font-family: var(--sh-mono); font-size: 13px; color: var(--sh-orange); text-align: end; }
.sh-rung-lm .sh-rung-n { font-weight: 400; font-style: italic; color: var(--muted); }
.sh-rung-lm .sh-rung-bar::after { background: repeating-linear-gradient(90deg, rgba(154, 163, 183, .5) 0 6px, transparent 6px 10px); }
.sh-rung-lm .sh-rung-v { color: var(--dim); }

/* ---------- каталог ---------- */
.sh-catalog { margin-top: 64px; scroll-margin-top: 70px; }
.sh-count { margin: 0; font-family: var(--sh-mono); font-size: 13px; color: var(--muted); }
.sh-tools { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 10px; margin: 0 0 18px; }
.sh-f { display: grid; gap: 4px; min-width: 0; }
.sh-f > span { font-family: var(--sh-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.sh-f input, .sh-f select { width: 100%; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(6, 10, 20, .9); color: var(--text); font: inherit; font-size: 15px; }
.sh-f input:focus, .sh-f select:focus { border-color: var(--sh-blue); outline: none; }
/* каталог — 12 колонок без пустых дорожек: 15 главных кораблей по 3 в ряд, 16 остальных по 4 */
.sh-cards { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.sh-card { grid-column: span 3; }
.sh-card a { display: grid; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: rgba(8, 12, 22, .82); color: inherit; text-decoration: none; transition: border-color .25s, transform .25s var(--sh-ease); }
.sh-card a:hover { border-color: var(--fc); transform: translateY(-3px); }
.sh-card-img { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--sh-grid), #03050b; }
.sh-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sh-card-img::after { content: ''; position: absolute; inset-inline-start: 0; bottom: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--fc), transparent); }
.sh-card-txt { display: grid; gap: 3px; padding: 12px 14px 14px; }
.sh-card-k { font-family: var(--sh-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--sh-blue); }
.sh-card-n { font-family: var(--f-display); font-size: 20px; line-height: 1.1; text-transform: uppercase; color: #fff; overflow-wrap: anywhere; }
.sh-card-m { font-size: 14px; color: var(--muted); }
.sh-card-m b { font-family: var(--sh-mono); font-weight: 400; color: var(--sh-orange); }
.sh-card-1 { grid-column: span 4; }
.sh-card-1 .sh-card-n { font-size: 26px; }
.sh-card[hidden] { display: none; }
.sh-nothing { margin: 20px 0 0; color: var(--muted); }

/* ---------- аркада ---------- */
.sh-game { margin-top: 64px; scroll-margin-top: 70px; }
.sh-game-in { padding: clamp(18px, 3vw, 30px); border: 1px solid rgba(255, 138, 61, .3); border-radius: 18px; background: var(--sh-grid), radial-gradient(70% 90% at 50% 0, rgba(255, 138, 61, .1), transparent 70%), rgba(6, 10, 18, .9); }
.sh-game-head h2 { margin: 0 0 6px; font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 3.4vw, 40px); text-transform: uppercase; color: #fff; }
.sh-game-head p { margin: 0 0 16px; color: #cfd6e6; font-size: 17px; }
.sh-game-stage { position: relative; }
/* поле игры: холст 16:9, табло сверху, прицельный компьютер снизу по центру, меню поверх */
.tr-box { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #020306; outline: none; }
.tr-box:focus-visible { box-shadow: 0 0 0 2px var(--yellow); }
.tr-3d { display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.tr-hud { position: absolute; inset: 10px 12px auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-family: var(--sh-mono); font-size: 13px; letter-spacing: .06em; color: #ffd36b; text-shadow: 0 0 8px rgba(255, 180, 60, .6); pointer-events: none; }
.tr-msg { position: absolute; inset-inline: 0; top: 18%; margin: 0; text-align: center; font-family: var(--f-display); font-size: clamp(18px, 3vw, 34px); text-transform: uppercase; color: #fff; text-shadow: 0 0 20px rgba(255, 138, 61, .8); pointer-events: none; }
.tr-tc { position: absolute; inset-inline: 0; bottom: 12px; display: none; justify-content: center; pointer-events: none; }
.tr-tc.on { display: flex; }
.tr-tc svg { width: min(260px, 40%); height: auto; fill: none; stroke: #ffb03b; stroke-width: 1.4; }
.tr-tc rect { fill: rgba(30, 12, 0, .55); }
.tr-tc .tr-tc-g { stroke: rgba(255, 176, 59, .35); }
.tr-tc text { fill: #ffb03b; stroke: none; font-family: var(--sh-mono); font-size: 10px; }
.tr-tc.lock svg { stroke: #ff5a3c; }
.tr-tc.lock text { fill: #ff5a3c; }
.tr-menu { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 16px; background: radial-gradient(60% 60% at 50% 50%, rgba(2, 3, 6, .55), rgba(2, 3, 6, .85)); text-align: center; }
.tr-menu[hidden] { display: none; }
.tr-force { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: #dfe5f1; cursor: pointer; }
.tr-force input { accent-color: var(--sh-orange); width: 18px; height: 18px; }
.tr-keys { margin: 0; font-family: var(--sh-mono); font-size: 12px; color: var(--muted); }

/* ---------- фракции и FAQ ---------- */
.sh-factions { margin-top: 64px; }
.sh-fac { padding: 16px 18px; border: 1px solid var(--line); border-top: 3px solid var(--fc); border-radius: 12px; background: rgba(8, 12, 22, .75); }
.sh-fac h3 { margin: 0 0 6px; font-family: var(--f-display); font-weight: 400; font-size: 19px; text-transform: uppercase; color: #fff; }
.sh-fac p { margin: 0; color: var(--muted); font-size: 15px; }
.sh-fac .sh-fac-ships { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.sh-fac-ships a { padding: 2px 9px; border: 1px solid var(--line-2); border-radius: 99px; color: #dfe6f4; font-size: 13px; text-decoration: none; }
.sh-fac-ships a:hover { border-color: var(--fc); color: #fff; }
.sh-faq { margin-top: 64px; }
.sh-faq-list { display: grid; gap: 8px; }
.sh-faq-list details { border: 1px solid var(--line); border-radius: 12px; background: rgba(8, 12, 22, .75); }
.sh-faq-list summary { padding: 14px 18px; font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; }
.sh-faq-list summary::-webkit-details-marker { display: none; }
.sh-faq-list summary::before { content: '+'; display: inline-block; width: 1.2em; color: var(--sh-orange); font-family: var(--sh-mono); }
.sh-faq-list details[open] summary::before { content: '–'; }
.sh-faq-list details p { margin: 0; padding: 0 18px 16px; color: #cfd6e6; }

/* ---------- страница корабля ---------- */
.sh-ship { background: radial-gradient(900px 520px at 25% 4%, color-mix(in srgb, var(--fc) 13%, transparent), transparent 70%), var(--bg); }
.sh-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 16px 0 0; padding: 0; list-style: none; font-family: var(--sh-mono); font-size: 12px; letter-spacing: .06em; color: var(--dim); }
.sh-crumbs li + li::before { content: '/'; margin: 0 10px; color: var(--line-2); }
.sh-crumbs a { color: var(--muted); text-decoration: none; }
.sh-crumbs a:hover { color: var(--sh-blue); }
.sh-shero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3.5vw, 48px); align-items: center; padding-block: 18px 10px; }
.sh-hangar { position: relative; min-width: 0; aspect-ratio: 16 / 11; border: 1px solid rgba(127, 212, 255, .16); border-radius: 18px; background: var(--sh-grid), radial-gradient(70% 70% at 50% 55%, rgba(40, 70, 110, .3), transparent 70%), #02040a; overflow: hidden; }
.sh-hangar .sh-3d { position: absolute; inset: 0; cursor: grab; touch-action: pan-y; }
.sh-hangar .sh-3d:active { cursor: grabbing; }
.sh-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.sh-3d-on .sh-fallback { display: none; }
.sh-hangar-ui { position: absolute; z-index: 2; inset-inline: 10px; bottom: 10px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.sh-hangar-ui[hidden] { display: none; }
.sh-views, .sh-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.sh-views .sh-btn { min-height: 30px; padding: 4px 10px; font-size: 11px; }
.sh-drag { position: absolute; top: 10px; inset-inline: 0; margin: 0; text-align: center; font-family: var(--sh-mono); font-size: 11.5px; color: var(--dim); pointer-events: none; }
.sh-shero-txt { min-width: 0; }
.sh-shero-txt .sh-h1 { font-size: clamp(40px, 6vw, 84px); text-shadow: 0 0 40px color-mix(in srgb, var(--sg) 35%, transparent); overflow-wrap: anywhere; }
/* табличка характеристик: как шильдик — моноширинные подписи, линии тенью внутрь */
.sh-plate { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin: 22px 0 0; border: 1px solid rgba(127, 212, 255, .2); border-radius: 12px; background: rgba(4, 8, 16, .92); overflow: hidden; }
.sh-plate div { min-width: 0; padding: 10px 14px; box-shadow: inset -1px -1px 0 rgba(127, 212, 255, .12); }
.sh-plate dt { font-family: var(--sh-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--sh-blue); }
.sh-plate dd { margin: 3px 0 0; font-size: 15.5px; color: #eef2fa; overflow-wrap: anywhere; }
.sh-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; }
.sh-chip { padding: 3px 10px 3px 8px; border: 1px solid color-mix(in srgb, var(--fc) 60%, transparent); border-inline-start-width: 4px; border-radius: 6px; font-family: var(--sh-mono); font-size: 12px; letter-spacing: .04em; color: #e8eef9; }
.sh-chip-scale { border-color: rgba(255, 138, 61, .5); border-inline-start-width: 1px; color: var(--sh-orange); text-decoration: none; }
.sh-chip-scale:hover { background: rgba(255, 138, 61, .12); }
.sh-toc ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 26px 0 0; padding: 14px 0; border-block: 1px solid var(--line); list-style: none; }
.sh-toc a { display: inline-block; padding: 4px 12px; border-radius: 99px; background: rgba(255, 255, 255, .05); color: var(--muted); font-size: 14px; text-decoration: none; }
.sh-toc a:hover { color: var(--sh-orange); background: rgba(255, 138, 61, .1); }

/* обзор и чертёж */
.sh-overview { display: grid; gap: 22px; }
.sh-overview-txt p { margin: 0 0 14px; font-size: 18px; color: #dfe5f1; }
.sh-overview-txt p:first-child::first-letter { float: inline-start; margin: 4px 10px 0 0; font-family: var(--f-display); font-size: 3.2em; line-height: .8; color: var(--sh-orange); }
/* чертёжная доска во всю ширину: виды сбоку и сверху рядом, одной высоты — колонки по пропорциям картинок
   (--cols из сборки), высота вида не больше --hmax; плоские корабли (.sh-bp-stack) — видами друг под другом */
.sh-bp { --hmax: 420px; display: grid; gap: 16px; margin: 0; padding: 22px; border: 1px solid rgba(127, 212, 255, .25); border-radius: 14px; background: var(--sh-grid), #030712; }
.sh-bp-views { display: grid; grid-template-columns: var(--cols, minmax(0, 1fr) minmax(0, 1fr)); gap: 28px 40px; align-items: center; }
.sh-bp-stack .sh-bp-views { grid-template-columns: minmax(0, 1fr); }
.sh-bp-view { display: grid; gap: 6px; justify-self: center; width: min(100%, calc(var(--hmax) / var(--a))); }
.sh-bp-side, .sh-bp-top { position: relative; }
.sh-bp img { display: block; width: 100%; height: auto; }
/* эталон масштаба: ширина = доля длины корабля, стоит у носа на «земле» (картинки не зеркалятся, поэтому left и в RTL) */
.sh-bp-ref { position: absolute; left: 0; bottom: 0; width: var(--k); }
.sh-bp-ref .sh-human { position: absolute; bottom: 0; left: 0; height: auto; width: 28%; fill: var(--sh-orange); }
.sh-bp-ref-ship img { opacity: .9; filter: sepia(1) saturate(4) hue-rotate(-20deg); }
.sh-dim { position: relative; margin: 0; padding-top: 8px; border-top: 1px solid var(--sh-blue); text-align: center; font-family: var(--sh-mono); font-size: 12.5px; letter-spacing: .06em; color: var(--sh-blue); }
.sh-dim::before, .sh-dim::after { content: ''; position: absolute; top: -6px; width: 1px; height: 11px; background: var(--sh-blue); }
.sh-dim::before { inset-inline-start: 0; }
.sh-dim::after { inset-inline-end: 0; }
/* вертикальная размерная линия сбоку: ширина на виде сверху, длина стоящего B-wing на виде сбоку.
   Свойства физические: в вертикальном письме логические inline-start/end — это верх и низ */
.sh-bp-view-v { grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 12px; }
.sh-bp-view-v .sh-dim { padding: 0 0 0 8px; border-top: 0; border-left: 1px solid var(--sh-blue); writing-mode: vertical-rl; text-align: center; }
.sh-bp-view-v .sh-dim::before, .sh-bp-view-v .sh-dim::after { inset: auto; left: -6px; width: 11px; height: 1px; }
.sh-bp-view-v .sh-dim::before { top: 0; }
.sh-bp-view-v .sh-dim::after { bottom: 0; }
[dir="rtl"] .sh-bp-view-v .sh-dim { padding: 0 8px 0 0; border-left: 0; border-right: 1px solid var(--sh-blue); }
[dir="rtl"] .sh-bp-view-v .sh-dim::before, [dir="rtl"] .sh-bp-view-v .sh-dim::after { left: auto; right: -6px; }
.sh-bp figcaption { font-size: 13.5px; color: var(--muted); }
.sh-bp-key::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-inline-end: 6px; border-radius: 2px; background: var(--sh-orange); vertical-align: -1px; }
.sh-cols { column-count: 2; column-gap: 36px; }
.sh-cols p { margin: 0 0 14px; font-size: 17px; color: #dfe5f1; break-inside: avoid; }
.sh-cols p:only-child { column-span: all; }

/* пилоты */
.sh-person { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(8, 12, 22, .75); }
.sh-person-i { flex: 0 0 50px; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: linear-gradient(135deg, var(--sh-orange), #a8441a); color: #fff; font-family: var(--f-display); font-size: 17px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .15); }
.sh-person h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 18px; text-transform: uppercase; color: #fff; }
.sh-person p { margin: 0; color: var(--muted); font-size: 15px; }
.sh-person .sh-person-rel { margin: 2px 0 6px; font-family: var(--sh-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--sh-orange); }

/* хроника */
.sh-axis { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 0 0 22px; padding: 0; list-style: none; }
.sh-axis-era { display: grid; gap: 6px; padding: 8px 8px 10px; border-top: 2px solid var(--line-2); opacity: .5; }
.sh-axis-on { border-top-color: var(--sh-orange); opacity: 1; }
.sh-axis-n { font-family: var(--sh-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sh-axis-dots { display: flex; flex-wrap: wrap; gap: 5px; min-height: 10px; }
.sh-axis-dot { width: 10px; height: 10px; border-radius: 2px; background: var(--sh-orange); box-shadow: 0 0 8px var(--sh-orange); }
.sh-axis-sp { background: none; border: 2px solid var(--sh-orange); box-shadow: none; }
.sh-events { position: relative; margin: 0; padding: 0; list-style: none; }
.sh-events::before { content: ''; position: absolute; top: 8px; bottom: 8px; inset-inline-start: 104px; width: 1px; background: linear-gradient(var(--sh-orange), rgba(255, 138, 61, .1)); }
.sh-ev { position: relative; display: grid; grid-template-columns: 92px 1fr; gap: 26px; padding: 0 0 22px; scroll-margin-top: 80px; }
.sh-ev::before { content: ''; position: absolute; top: 7px; inset-inline-start: 99px; width: 11px; height: 11px; transform: rotate(45deg); background: var(--bg); border: 2px solid var(--sh-orange); }
.sh-ev-when { font-family: var(--sh-mono); font-size: 14px; font-weight: 700; color: var(--sh-orange); text-align: end; }
.sh-ev-era { font-size: 11px; font-weight: 400; line-height: 1.3; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 138, 61, .75); -webkit-hyphens: auto; hyphens: auto; }
.sh-ev-body p { margin: 0; font-size: 16.5px; color: #dfe5f1; }
.sh-ev-body .sh-ev-items { margin-bottom: 6px; font-family: var(--sh-mono); font-size: 12px; letter-spacing: .04em; }
.sh-ev-items a { color: var(--sh-blue); text-decoration: none; }
.sh-ev-items a:hover { text-decoration: underline; }
.sh-spoiler summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 14px; border: 1px dashed rgba(255, 138, 61, .45); border-radius: 10px; background: repeating-linear-gradient(-45deg, rgba(255, 138, 61, .06) 0 8px, transparent 8px 16px); cursor: pointer; list-style: none; }
.sh-spoiler summary::-webkit-details-marker { display: none; }
.sh-spoiler-t { color: var(--muted); font-size: 15px; }
.sh-spoiler-b { padding: 2px 10px; border-radius: 99px; background: var(--sh-orange); color: #1a0d04; font-family: var(--sh-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sh-spoiler-auto { display: none; font-family: var(--sh-mono); font-size: 11.5px; color: var(--green); }
.sh-spoiler[open] summary { margin-bottom: 8px; padding: 6px 10px; border-style: solid; background: none; }
.sh-spoiler[open] .sh-spoiler-b { display: none; }
.sh-spoiler.sh-auto .sh-spoiler-auto { display: inline; }

/* ряды карточек без пустых мест: --n карточек в ряд (из сборки), неполный последний ряд растягивается */
.sh-flow { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 0; list-style: none; }
.sh-flow > li { flex: 1 1 calc((100% - (var(--n, 3) - 1) * 14px) / var(--n, 3)); min-width: 0; }

/* где летал: планеты */
.sh-where a { display: flex; align-items: center; gap: 14px; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(8, 12, 22, .75); color: inherit; text-decoration: none; transition: border-color .2s; }
.sh-where a:hover { border-color: var(--sh-blue); }
.sh-where-disc { flex: 0 0 64px; width: 64px; height: 64px; }
.sh-where-disc svg { width: 100%; height: 100%; }
.sh-where-txt { display: grid; gap: 4px; min-width: 0; }
.sh-where-txt b { font-family: var(--f-display); font-weight: 400; font-size: 18px; text-transform: uppercase; color: #fff; }
.sh-where-txt span { font-size: 15px; color: var(--muted); }

/* где увидеть: постер, рядом название, год и короткое описание с карточки хронологии */
.sh-appears a { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: start; height: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(8, 12, 22, .75); color: inherit; text-decoration: none; transition: border-color .2s; }
.sh-appears a:hover { border-color: var(--sh-orange); }
.sh-appears img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; }
.sh-ap-txt { display: grid; gap: 6px; padding-top: 4px; }
.sh-ap-t { font-family: var(--f-display); font-size: 17px; line-height: 1.2; text-transform: uppercase; color: #fff; }
.sh-ap-m { font-family: var(--sh-mono); font-size: 11.5px; letter-spacing: .06em; color: var(--sh-orange); }
.sh-ap-d { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* варианты, закулисье, факты */
.sh-variants { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.sh-variants li { padding: 16px 18px; border: 1px solid var(--line); border-inline-start: 3px solid var(--sh-blue); border-radius: 12px; background: rgba(8, 12, 22, .75); }
.sh-variants h3 { margin: 0 0 6px; font-family: var(--f-display); font-weight: 400; font-size: 18px; text-transform: uppercase; color: #fff; }
.sh-variants p { margin: 0; color: var(--muted); }
.sh-bts { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: bts; }
.sh-bts li { position: relative; padding: 14px 18px 14px 64px; border: 1px solid var(--line); border-radius: 12px; background: rgba(8, 12, 22, .75); font-size: 16.5px; color: #dfe5f1; counter-increment: bts; }
.sh-bts li::before { content: 'ILM ' counter(bts, decimal-leading-zero); position: absolute; top: 16px; inset-inline-start: 14px; font-family: var(--sh-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--sh-orange); }
[dir="rtl"] .sh-bts li { padding: 14px 64px 14px 18px; }
.sh-trivia { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.sh-trivia li { position: relative; padding: 18px 18px 18px 54px; border: 1px solid var(--line); border-radius: 14px; background: rgba(8, 12, 22, .75); font-size: 16px; line-height: 1.55; color: #dfe5f1; }
.sh-trivia li::before { content: '!'; position: absolute; top: 16px; inset-inline-start: 16px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: rgba(127, 212, 255, .15); color: var(--sh-blue); font-family: var(--f-display); }
[dir="rtl"] .sh-trivia li { padding: 18px 54px 18px 18px; }

/* соседи и навигация; тот же флот из одного-двух кораблей — широкие карточки: картинка сбоку и описание */
.sh-near-wide .sh-card a { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; }
.sh-near-wide .sh-card-txt { gap: 6px; padding: 18px 26px; }
.sh-near-wide .sh-card-n { font-size: 28px; }
.sh-card-d { margin-top: 4px; font-size: 16px; line-height: 1.5; color: #c9d1e0; }
.sh-pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; margin-top: 56px; }
.sh-pager a { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(8, 12, 22, .75); color: inherit; text-decoration: none; transition: border-color .2s; }
.sh-pager a:hover { border-color: var(--sh-orange); }
.sh-pager-n { justify-content: flex-end; text-align: end; }
.sh-pager-l { font-family: var(--sh-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.sh-pager b { min-width: 0; overflow-wrap: anywhere; font-family: var(--f-display); font-weight: 400; font-size: 18px; text-transform: uppercase; color: #fff; }
.sh-pager-all svg { width: 22px; height: 22px; fill: none; stroke: var(--sh-orange); stroke-width: 1.6; stroke-linejoin: round; }
.sh-pager-all span { font-size: 14px; }
.sh-sources { margin-top: 56px; }
.sh-refs { margin: 14px 0 0; padding-inline-start: 22px; color: var(--muted); font-size: 14px; }
.sh-refs a { color: var(--sh-blue); word-break: break-word; }

/* ---------- адаптив ---------- */
@media (max-width: 1000px) {
  .sh-shero-in, .sh-overview { grid-template-columns: minmax(0, 1fr); }
  .sh-tools { grid-template-columns: 1fr 1fr; }
  .sh-f-q { grid-column: 1 / -1; }
  .sh-card, .sh-card-1 { grid-column: span 6; }
  .sh-flow > li { flex-basis: calc((100% - 14px) / 2); }
}
@media (max-width: 640px) {
  .sh-scale { height: 64vh; min-height: 380px; }
  /* телефон: кнопки ангара — под моделью, а не поверх неё */
  .sh-hangar { aspect-ratio: 1; }
  .sh-3d-on .sh-hangar { aspect-ratio: auto; }
  .sh-3d-on .sh-hangar .sh-3d { position: relative; height: auto; aspect-ratio: 1; }
  .sh-hangar-ui { position: static; padding: 4px 10px 12px; }
  .sh-card, .sh-card-1 { grid-column: 1 / -1; }
  .sh-flow > li { flex-basis: 100%; }
  .sh-near-wide .sh-card a { grid-template-columns: minmax(0, 1fr); }
  .sh-near-wide .sh-card-txt { padding: 12px 14px 14px; }
  .sh-appears a { grid-template-columns: 84px minmax(0, 1fr); }
  .sh-bp { --hmax: 300px; padding: 14px; }
  .sh-bp-views { grid-template-columns: minmax(0, 1fr); }
  .sh-rung > a, .sh-rung-lm { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .sh-rung-bar { grid-column: 1 / -1; grid-row: 2; }
  .sh-axis { grid-template-columns: repeat(4, 1fr); }
  .sh-events::before { inset-inline-start: 70px; }
  .sh-ev { grid-template-columns: 58px 1fr; gap: 24px; }
  .sh-ev::before { inset-inline-start: 65px; }
  .sh-ev-when { font-size: 12.5px; }
  .sh-pager { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sh-pager a { flex-wrap: wrap; gap: 4px 8px; padding: 12px 14px; }
  .sh-pager-all { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
  .sh-cols { column-count: 1; }
  .sh-overview-txt p { font-size: 17px; }
  .sh-scale-ui { flex-wrap: wrap; }
}
@media (max-width: 380px) {
  .sh-tools { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .sh-page *, .sh-page *::before, .sh-page *::after { animation: none !important; transition: none !important; }
}
