/* Стили сайта (tumancommand.com), общие для всех страниц */
:root { --bg: #0d100c; --card: rgba(21, 25, 19, .88); --line: #3a4330; --line2: #5a6547; --text: #dbd7c1; --dim: #979580; --gold: #c9a14a; --olive: #3d4a2c; --red: #c9483e; --head: 'PT Sans Narrow', 'Arial Narrow', sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 'PT Sans', 'Segoe UI', sans-serif; }
body { min-height: 100vh; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wrap { width: min(1120px, 100%); margin: 0 auto; padding: 0 16px; }

.bar { position: sticky; top: 0; z-index: 5; background: rgba(13, 16, 12, .94); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 16px; min-height: 52px; }
.brand { flex: none; font: 700 18px var(--head); letter-spacing: .08em; text-decoration: none; color: #ece6cc; }
.nav { flex: 1; min-width: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: none; padding: 6px 10px; color: var(--dim); text-decoration: none; font: 700 14px var(--head); letter-spacing: .06em; text-transform: uppercase; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.langs { flex: none; display: flex; gap: 2px; }
.langs button { background: none; border: 0; border-bottom: 1px solid transparent; padding: 4px 6px; color: var(--dim); cursor: pointer; font: 700 13px var(--head); letter-spacing: .1em; }
.langs button[aria-pressed="true"] { color: var(--text); border-color: var(--gold); }

.hero { position: relative; display: flex; align-items: center; min-height: min(760px, 88vh); padding: 64px 0;
  background: linear-gradient(90deg, rgba(13,16,12,.96) 0%, rgba(13,16,12,.82) 42%, rgba(13,16,12,.3) 100%), linear-gradient(180deg, transparent 70%, var(--bg) 100%), url(/shots/front.webp) center / cover no-repeat var(--bg); }
.logo { margin: 0; font: 700 clamp(60px, 11vw, 112px)/.9 var(--head); letter-spacing: .03em; color: #ece6cc; }
.logo small { display: block; margin-top: 10px; font-size: clamp(15px, 2.4vw, 22px); letter-spacing: .45em; color: var(--gold); }
.lead { max-width: 560px; margin: 26px 0 28px; font-size: clamp(17px, 2vw, 20px); line-height: 1.4; }
.lead b { display: block; margin-bottom: 4px; color: #ece6cc; }
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; max-width: 560px; }
.btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 14px 18px; text-decoration: none; border: 1px solid var(--line2); background: var(--card); transition: border-color .15s, background .15s; }
.btn:hover { border-color: var(--gold); }
.btn.main { background: var(--olive); border-color: var(--gold); color: #f3e6bf; }
.btn.main:hover { background: #4a5a35; }
.btn b { font: 700 17px var(--head); letter-spacing: .12em; text-transform: uppercase; }
.btn span { color: var(--dim); font-size: 13px; white-space: nowrap; }
.btn.main span { color: #cbbf98; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 14px 0 0; color: var(--dim); font-size: 14px; min-height: 1.5em; }
.meta a { color: var(--gold); text-underline-offset: 3px; }
.live::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #7fae57; }

section { padding: 56px 0 8px; }
.page-h { margin: 0 0 24px; padding-top: 44px; font: 700 clamp(34px, 5vw, 48px)/1.1 var(--head); letter-spacing: .04em; color: #ece6cc; }
.page-h + section { padding-top: 0; }
h2 { margin: 0 0 22px; font: 700 clamp(26px, 4vw, 36px)/1.1 var(--head); letter-spacing: .04em; color: #ece6cc; }
h3 { margin: 0 0 6px; font: 700 18px var(--head); letter-spacing: .06em; color: #e2c278; }
p { margin: 0; }

.shots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.shot { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--line); background: #000; cursor: zoom-in; color: inherit; font: inherit; text-align: left; }
.shot { grid-column: span 2; }
.shot:first-child { grid-column: 1 / -1; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: opacity .15s; }
.shot[data-s="supply"], .shot[data-s="combat"] { grid-column: span 3; }
.shot[data-s="research"] { grid-column: span 4; }
.shot[data-s="research"] img { aspect-ratio: 965 / 582; }
/* вертикальное окно: плитка высотой с соседнюю, снимок целиком */
.shot[data-s="decisions"] { grid-column: span 2; }
.shot[data-s="decisions"] img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-fit: contain; }
.shot:hover { border-color: var(--gold); }
.shot span { position: absolute; left: 0; bottom: 0; padding: 5px 12px; background: rgba(13, 16, 12, .9); font: 700 14px var(--head); letter-spacing: .06em; }
dialog { width: min(1500px, 96vw); max-width: none; max-height: 96vh; padding: 0; overflow: visible; border: 1px solid var(--line2); background: #000; color: var(--text); }
dialog::backdrop { background: rgba(0, 0, 0, .9); }
dialog img { display: block; width: 100%; height: auto; max-height: 88vh; object-fit: scale-down; }
.lb-bar { display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: var(--bg); }
.lb-bar b { flex: 1; font: 700 15px var(--head); letter-spacing: .06em; }
.lb-bar button { width: 44px; height: 40px; border: 1px solid var(--line2); background: var(--card); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
.lb-bar button:hover { border-color: var(--gold); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.card { padding: 16px 18px; border: 1px solid var(--line); background: var(--card); }
.card p { color: #bdb9a4; font-size: 15px; }

.modes { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: 10px; margin-bottom: 48px; }
.mode { padding: 20px; border: 1px solid var(--line); background: var(--card); }
.mode.full { border-color: var(--gold); }
.mode h3 { margin: 0; font-size: 26px; color: #ece6cc; }
.mode.full h3 { color: #e2c278; }
.mode-sub { margin-bottom: 16px; color: var(--dim); }
.mode ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.mode li { padding: 3px 0 3px 18px; text-indent: -18px; color: #bdb9a4; }
.mode li::before { display: inline-block; width: 18px; text-indent: 0; content: '+'; color: var(--gold); font-weight: 700; }
.mode ul.no li { color: var(--dim); }
.mode ul.no li::before { content: '–'; color: var(--dim); }
.mode h4 { margin: 16px 0 4px; font: 700 13px var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.mode-grid h4 { margin: 0 0 3px; font-size: 17px; letter-spacing: .05em; text-transform: none; color: #e2c278; }
.mode-grid p { color: #bdb9a4; font-size: 15px; }
.wins { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.side-ua { border-left: 3px solid #4c7fc4; }
.side-ru { border-left: 3px solid var(--red); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.row { display: flex; flex-wrap: wrap; gap: 8px; }
.row .btn { padding: 11px 16px; }
.row .btn b { font-size: 15px; }
.lines { margin: 0 0 16px; padding-left: 18px; color: #bdb9a4; }
.lines li { margin: 3px 0; }
/* лучшие (site/src/top.ts): аватарка, погон и ник, звание, рейтинг; погон и значок онлайна — как в игре (src/profile.css) */
.top { list-style: none; margin: 0; padding: 4px 0; border: 1px solid var(--line); background: var(--card);
  max-height: 432px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.top li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid rgba(58, 67, 48, .6); }
.top li:first-child { border-top: 0; }
.top-n { width: 1.8em; flex: none; text-align: right; color: var(--dim); font: 700 14px var(--head); }
.top li:nth-child(-n+3) .top-n { color: var(--gold); }
.top-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top-who b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-who small { color: var(--dim); font-size: 12px; }
.top-rt { flex: none; color: #e2c278; font: 700 15px var(--head); letter-spacing: .04em; }
.top-none { margin: 0; padding: 14px; color: var(--dim); }
.top-more { display: none; }
.pf-av { display: inline-block; flex: none; overflow: hidden; background: #151913; outline: 1px solid rgba(90, 101, 71, .9); outline-offset: -1px; }
.pf-av svg, .pf-av img { display: block; width: 100%; height: 100%; object-fit: cover; }
.on-tag { display: inline-flex; align-items: center; margin-left: 5px; vertical-align: -2px; color: #e2c278; }
.on-tag svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.rk-b { display: inline-flex; flex: none; width: .9em; height: 1.4em; margin: -.15em .32em -.15em 0; vertical-align: -.32em; }
.rk-b svg { width: 100%; height: 100%; overflow: visible; }
.rk-b .bd { fill: #20261b; stroke: #8f9a76; stroke-width: 1.1; stroke-linejoin: round; }
.rk-b .ln { fill: none; stroke: #b9c09a; stroke-width: 1.2; }
.rk-b rect { fill: #b9c09a; }
.rk-b polygon { fill: #e2c278; }
.rk-b.off .bd { stroke: #c9a14a; }
.rk-b.off .ln { stroke: #c9a14a; stroke-width: 1; }
.rk-b.gen .bd { fill: #c9a14a; stroke: #f0d58a; }
.rk-b.gen polygon { fill: #20261b; }

/* обновления: лента релизов; большой релиз — разделы, которые раскрываются, чтобы не было стены текста */
.rls { list-style: none; position: relative; margin: 0 0 14px; padding: 0 0 0 26px; }
.rls::before { content: ''; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.rls:empty { display: none; }
.rl { position: relative; margin-bottom: 10px; padding: 18px 20px; border: 1px solid var(--line); background: var(--card); }
.rl::before { content: ''; position: absolute; left: -25px; top: 25px; width: 12px; height: 12px; border-radius: 50%; background: var(--line2); box-shadow: 0 0 0 4px var(--bg); }
.rl:first-child { border-color: var(--gold); }
.rl:first-child::before { background: var(--gold); }
.rl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-bottom: 10px; }
.rl-v { font: 700 26px/1.1 var(--head); letter-spacing: .03em; color: #ece6cc; text-decoration: none; }
.rl-v:hover { color: #e2c278; }
.rl-date { color: var(--dim); font-size: 14px; }
.rl-tag { padding: 1px 7px; border: 1px solid var(--gold); color: #e2c278; font: 700 12px var(--head); letter-spacing: .1em; text-transform: uppercase; }
.rl-intro { max-width: 760px; margin-bottom: 14px; color: var(--text); }
.rl-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px 28px; }
.rl h4 { margin: 0 0 4px; font: 700 13px var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.rl ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.rl li { position: relative; padding: 3px 0 3px 18px; color: #bdb9a4; }
.rl li::before { content: '+'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.rl li.fix::before { content: '✓'; color: #7fae57; }
.rl-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 8px; align-items: start; }
.rl-t { border: 1px solid var(--line); background: rgba(13, 16, 12, .5); }
.rl-t[open] { border-color: var(--line2); }
.rl-t summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 12px; cursor: pointer; list-style: none; font: 700 15px var(--head); letter-spacing: .04em; color: #e2c278; }
.rl-t summary::-webkit-details-marker { display: none; }
.rl-t summary::before { content: '+'; width: 12px; flex: none; color: var(--gold); }
.rl-t[open] summary::before { content: '–'; }
.rl-t summary:hover { background: rgba(201, 161, 74, .08); }
.rl-t summary span { margin-left: auto; color: var(--dim); font: 400 13px 'PT Sans', sans-serif; }
.rl-t ul { padding: 0 12px 10px; }

.faq details { border: 1px solid var(--line); border-top: 0; background: var(--card); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { padding: 13px 18px; cursor: pointer; font-weight: 700; }
.faq summary:hover { color: #e2c278; }
.faq p { padding: 0 18px 14px; color: #bdb9a4; }
.author { padding: 20px; border: 1px solid var(--line); background: var(--card); }
.author p { max-width: 620px; margin-bottom: 18px; }
.links { display: grid; grid-template-columns: auto auto auto; justify-content: start; gap: 18px 36px; }
.links h3 { margin-bottom: 8px; }
.author p b { color: #ece6cc; font: 700 20px var(--head); letter-spacing: .05em; }
footer { margin-top: 64px; padding: 22px 0 28px; color: var(--dim); font-size: 13px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: space-between; }

.burger { display: none; }
@media (max-width: 900px) {
  .bar .wrap { gap: 4px; }
  .langs { margin-left: auto; }
  .langs button { min-width: 38px; min-height: 44px; }
  .burger { display: block; flex: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; overflow: visible; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 16px; font-size: 15px; border-top: 1px solid rgba(58, 67, 48, .6); }
}
@media (max-width: 820px) {
  .hero { min-height: 0; padding: 44px 0 40px; background: linear-gradient(180deg, rgba(13,16,12,.84) 0%, rgba(13,16,12,.92) 70%, var(--bg) 100%), url(/shots/front-s.webp) center / cover no-repeat var(--bg); }
  .modes, .wins, .split { grid-template-columns: 1fr; }
  .links { grid-template-columns: 1fr; justify-content: stretch; }
  .modes { margin-bottom: 36px; }
  .top { max-height: none; overflow: visible; }
  .top:not(.all) li:nth-child(n+11) { display: none; }
  .top-more { display: flex; justify-content: center; width: 100%; margin-top: 8px; color: var(--text); font: inherit; cursor: pointer; }
  .top:not(:has(li:nth-child(11))) + .top-more { display: none; }
  .grid { grid-template-columns: 1fr 1fr; }
  .shot { grid-column: span 3; }
  .shot[data-s="combat"] { grid-column: 1 / -1; }
  section { padding-top: 44px; }
}
@media (max-width: 480px) {
  .bs { display: none; }
  .rls { padding-left: 20px; }
  .rls::before { left: 3px; }
  .rl { padding: 16px; }
  .rl::before { left: -22px; }
  .row .btn { flex: 1 1 calc(50% - 8px); justify-content: center; }
  .shot[data-s] { grid-column: 1 / -1; }
  .mode-grid, .grid { grid-template-columns: 1fr; }
  .shot[data-s="decisions"] img { position: static; height: auto; aspect-ratio: 386 / 559; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
