:root {
  --hi: #fff; --head-bg: rgba(10, 10, 12, .96); --navc: #d6d6dc; --hover: rgba(255, 255, 255, .025); --field: #0f0f12; --well: #0d0d10;
  --okc: #6fe0a0; --warnc: #f5c76a; --redc: #ff6b63; --gold: #f2c230; --silver: #c9ccd6; --bronze: #d98b4f;
  --bg: #0a0a0c; --bg2: #111114; --card: #17171b; --card2: #1e1e24; --line: #2a2a31; --line2: #383840;
  --text: #f4f4f6; --muted: #9c9ca6; --red: #e10600; --red2: #ff2a1f; --redbg: rgba(225, 6, 0, .12);
  --ok: #38c172; --warn: #f2b134; --radius: 12px;
  --head: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--red2); }
h1, h2, h3 { font-family: var(--head); font-stretch: condensed; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 .5em; line-height: 1.1; }
h1 { font-size: 34px; font-weight: 800; }
h1 .accent, h2 .accent { color: var(--red); }
/* большой заголовок страницы: с заглавной буквы, обычным шрифтом — чтобы не спорить с названием сайта в шапке */
.hero h1 { font-family: inherit; font-stretch: normal; text-transform: none; letter-spacing: -.01em; font-size: 40px; font-weight: 600; line-height: 1.1; }
h2 { font-size: 22px; font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.red { color: var(--red2); }

/* шапка */
.top { position: sticky; top: 0; z-index: 30; background: var(--head-bg); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.top-in { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 10px 18px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 50px; height: 50px; }
.brand b { font-family: var(--head); font-stretch: condensed; font-weight: 800; text-transform: uppercase; font-size: 34px; letter-spacing: .02em; display: block; line-height: 1; }
.brand b .accent { color: var(--red); }
.brand div > span { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
nav.main { display: flex; gap: 2px; flex-wrap: wrap; flex: 1; }
nav.main a { padding: 7px 9px; border-radius: 8px; color: var(--navc); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
nav.main a.on { background: var(--redbg); color: var(--hi); box-shadow: inset 0 -2px 0 var(--red); }
nav.main a:hover { background: var(--card); color: var(--hi); }
.who { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.burger { display: none; background: none; border: 1px solid var(--line2); color: var(--hi); border-radius: 8px; padding: 6px 10px; font-size: 18px; }
main { max-width: 1320px; margin: 0 auto; padding: 22px 18px 60px; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; padding: 22px; }

/* элементы */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.card.tight { padding: 12px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }
.btn { display: inline-flex; align-items: center; gap: 6px; background: var(--card2); color: var(--hi); border: 1px solid var(--line2); border-radius: 9px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #55555f; color: var(--hi); }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.red:hover { background: var(--red2); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn.ok { background: #1d4d33; border-color: #2c7a4f; color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
input, select, textarea { background: var(--field); color: var(--text); border: 1px solid var(--line2); border-radius: 9px; padding: 8px 10px; font: inherit; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(225, 6, 0, .5); border-color: var(--red); }
textarea { width: 100%; min-height: 140px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
label.f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
label.f > input, label.f > select, label.f > textarea { color: var(--text); font-size: 15px; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--card2); border: 1px solid var(--line2); white-space: nowrap; }
.badge.red { background: var(--redbg); border-color: rgba(225, 6, 0, .5); color: var(--redc); }
.badge.ok { background: rgba(56, 193, 114, .12); border-color: rgba(56, 193, 114, .4); color: var(--okc); }
.badge.warn { background: rgba(242, 177, 52, .12); border-color: rgba(242, 177, 52, .45); color: var(--warnc); }
.badge.gray { color: var(--muted); }
.up { color: var(--okc); font-weight: 700; white-space: nowrap; } .down { color: var(--redc); font-weight: 700; white-space: nowrap; }
.alert { padding: 10px 14px; border-radius: 10px; margin: 10px 0; border: 1px solid; white-space: pre-line; }
.alert.err { background: rgba(225, 6, 0, .1); border-color: rgba(225, 6, 0, .5); }
.alert.ok { background: rgba(56, 193, 114, .08); border-color: rgba(56, 193, 114, .4); }
.alert.warn { background: rgba(242, 177, 52, .08); border-color: rgba(242, 177, 52, .45); }
.hero { background: radial-gradient(1200px 300px at 0% 0%, rgba(225, 6, 0, .25), transparent 60%), var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin-bottom: 18px; }
.stat { background: var(--card2); border-radius: 10px; padding: 12px 14px; }
.stat b { display: block; font-family: var(--head); font-size: 28px; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }

/* таблицы */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 10px; border-bottom: 1px solid var(--line2); background: var(--bg2); position: sticky; top: 0; white-space: nowrap; }
table.t td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:hover td { background: var(--hover); }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.rank { font-family: var(--head); font-weight: 800; font-size: 18px; color: var(--muted); }
tr.top3 .rank { color: var(--red2); }
.pcell { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.ava { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--card2); }
.ava.lg { width: 140px; height: 140px; border-radius: 18px; }
.ava.md { width: 56px; height: 56px; border-radius: 12px; }
.pname { font-weight: 700; }
.pager { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 12px; }

/* карточки */
.profile { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: start; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.hist .hrow { border-top: 1px solid var(--line); padding: 12px 0; }
.boutlist { margin: 6px 0 0; padding: 0; list-style: none; font-size: 14px; }
.boutlist li { padding: 3px 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.w { color: var(--okc); font-weight: 700; } .l { color: var(--redc); font-weight: 700; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: block; transition: border-color .15s; }
.tile:hover { border-color: var(--red); color: var(--text); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs a, .tabs button { padding: 9px 14px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs .on { color: var(--hi); border-bottom-color: var(--red); }
.steps { display: flex; gap: 0; margin: 10px 0 16px; overflow-x: auto; }
.steps div { flex: 1; min-width: 120px; padding: 8px 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--muted); border-top: 3px solid var(--line2); }
.steps div.done { color: var(--text); border-top-color: #7a1a16; }
.steps div.cur { color: var(--hi); border-top-color: var(--red); }
.bracket-wrap { overflow: auto; background: var(--well); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; max-height: 78vh; }
.bracket-wrap svg .bout-hit:hover circle { stroke-width: 2.5; }
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 14px; }
.cross td, .cross th { text-align: center; }
.cross td.self { background: var(--card2); }
.violation { font-size: 13px; }

/* модальные окна */
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .72); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 30px 12px; overflow-y: auto; }
.modal { background: var(--card); border: 1px solid var(--line2); border-radius: 14px; width: min(760px, 100%); padding: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.modal.wide { width: min(1200px, 100%); }
.modal h2 { margin-bottom: 14px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--card2); border: 1px solid var(--line2); padding: 10px 18px; border-radius: 10px; z-index: 200; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.toast.err { border-color: var(--red); }
.print-frame { width: 100%; height: 70vh; border: 1px solid var(--line2); border-radius: 8px; background: #888; }
.logbox { max-height: 360px; overflow: auto; font-size: 13px; }
.formula { background: var(--field); border: 1px solid var(--line2); border-radius: 10px; padding: 12px 14px; font-family: ui-monospace, Consolas, monospace; font-size: 14px; overflow-x: auto; }
.empty { text-align: center; padding: 30px; color: var(--muted); }
.chk { display: inline-flex; align-items: center; gap: 6px; }
.consentbox { border: 1px solid rgba(242, 177, 52, .45); border-radius: var(--radius); padding: 10px 12px; display: grid; gap: 4px; }
.legal { max-width: 860px; margin: 0 auto; line-height: 1.55; }
.legal h2 { margin-top: 22px; }
.legal .fill { background: rgba(242, 177, 52, .15); border-radius: 4px; padding: 0 4px; }

@media (max-width: 1500px) { .who .small { display: none; } }
@media (max-width: 1000px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  h1 { font-size: 26px; }
  .hero h1 { font-size: 30px; }
  .burger { display: block; order: 3; }
  .top-in { flex-wrap: wrap; gap: 8px; padding: 8px 10px; }
  .brand img { width: 40px; height: 40px; }
  .brand b { font-size: 26px; }
  .brand div > span { font-size: 9px; letter-spacing: .06em; }
  .who { order: 2; }
  nav.main { display: none; order: 3; width: 100%; flex-direction: column; }
  nav.main.open { display: flex; }
  .who { margin-left: auto; }
  .who .btn { padding: 5px 9px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 1fr; }
  .ava.lg { width: 110px; height: 110px; }
  main { padding: 14px 10px 50px; }
  .hide-m { display: none; }
  table.t { font-size: 13px; }
  .card { padding: 14px; }
}
@media print { body * { visibility: hidden; } }

/* пояс */
.belt { display: inline-block; width: 26px; height: 8px; border-radius: 2px; vertical-align: middle; border: 1px solid rgba(255,255,255,.35); position: relative; overflow: hidden; }
.belt i { position: absolute; left: 0; right: 0; top: 2.5px; height: 2px; }

/* ===== 1.4: оформление, реклама, вовлечение ===== */
.beltline { display: flex; height: 3px; } .beltline i { flex: 1; }
.theme { font-size: 16px; padding: 4px 9px; }
.grid.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hero { position: relative; overflow: hidden; background:
  radial-gradient(900px 260px at 0% 0%, rgba(225, 6, 0, .28), transparent 60%),
  repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, .025) 79px 80px),
  repeating-linear-gradient(0deg, transparent 0 39px, rgba(255, 255, 255, .025) 39px 40px), var(--bg2); }
.stat b { font-variant-numeric: tabular-nums; }
.home { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.home-side .card h2, .home-main .card h2 { font-size: 20px; }

/* пьедестал */
.pod-f select { padding: 5px 8px; font-size: 13px; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.pod { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; animation: rise .5s ease-out both; }
.pod1 { animation-delay: .15s; } .pod3 { animation-delay: .1s; }
.pod-ava { position: relative; }
.pod .ava.md { width: 76px; height: 76px; border-radius: 50%; border: 3px solid var(--line2); }
.pod1 .ava.md { width: 96px; height: 96px; border-color: var(--gold); box-shadow: 0 0 0 5px rgba(242, 194, 48, .15); }
.pod2 .ava.md { border-color: var(--silver); } .pod3 .ava.md { border-color: var(--bronze); }
.pod-medal { position: absolute; right: -4px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #1a1a1a; background: var(--gold); border: 2px solid var(--card); }
.pod2 .pod-medal { background: var(--silver); } .pod3 .pod-medal { background: var(--bronze); }
.pod-name { font-weight: 800; line-height: 1.2; margin-top: 4px; }
.pod-stand { width: 100%; margin-top: 6px; border-radius: 10px 10px 4px 4px; padding: 10px 6px; background: var(--card2); border-top: 4px solid var(--bronze); display: flex; flex-direction: column; gap: 2px; }
.pod-stand b { font-family: var(--head); font-size: 28px; line-height: 1; }
.pod1 .pod-stand { min-height: 110px; border-top-color: var(--gold); background: linear-gradient(180deg, rgba(242, 194, 48, .16), var(--card2)); }
.pod2 .pod-stand { min-height: 84px; border-top-color: var(--silver); } .pod3 .pod-stand { min-height: 66px; }
.pod:hover .pod-name { color: var(--red2); }
.pod-rest { display: flex; gap: 6px 18px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; }
.pod-rest .rank { font-size: 15px; margin-right: 2px; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* взлёт, афиша, лента */
.rise { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.rise-i { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--card2); animation: rise .45s ease-out both; }
.rise-i > div { min-width: 0; flex: 1; } .rise-i .pname { line-height: 1.2; }
.rise-g { color: var(--okc); font-weight: 800; white-space: nowrap; font-family: var(--head); font-size: 18px; }
.evt { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.evt:first-of-type { border-top: 0; padding-top: 0; }
.evt-date { flex: 0 0 52px; height: 56px; border-radius: 10px; background: var(--red); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.evt-date b { font-family: var(--head); font-size: 24px; } .evt-date span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.evt .small { margin-top: 4px; display: flex; gap: 4px; flex-wrap: wrap; }
.feed { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.feed:first-child { border-top: 0; padding-top: 0; }
.feed-dot { flex: 0 0 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--redbg); }
table.rating tr.r1 .rank { color: var(--gold); } table.rating tr.r2 .rank, table.t tr.r2 .rank { color: var(--silver); } table.t tr.r3 .rank { color: var(--bronze); } table.t tr.r1 .rank { color: var(--gold); }

/* реклама */
.adtop { max-width: 1320px; margin: 14px auto 0; padding: 0 18px; }
.adtop:empty { display: none; }
.ad-wrap { position: relative; margin-bottom: 16px; }
.ad { display: flex; align-items: center; gap: 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden; color: var(--text); }
.ad:hover { border-color: var(--line2); color: var(--text); }
.ad img { display: block; max-width: 100%; }
.ad-txt { padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.ad-txt b { font-size: 16px; } .ad-txt span { color: var(--muted); font-size: 13px; }
.ad-mark { position: absolute; right: 8px; bottom: 6px; font-size: 10px; color: var(--muted); background: var(--head-bg); padding: 1px 6px; border-radius: 6px; max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-s1.has-img img { width: 100%; max-height: 150px; object-fit: cover; }
.ad picture { display: block; width: 100%; }
.ad.house { background: #0b0b0d; } .ad-s1.house img { object-fit: contain; }
@media (max-width: 760px) { .ad-s1.house img { max-height: none; } } /* баннер владельца сайта: целиком, без обрезки */
.ad-s1 .ad-txt { flex-direction: row; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ad-s3 { flex-direction: column; align-items: stretch; min-height: 120px; }
.ad-s3.has-img img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; }
.ad-cap { padding: 10px 14px 22px; display: flex; flex-direction: column; gap: 2px; } .ad-cap span { color: var(--muted); font-size: 13px; }
.ad-empty { border: 1.5px dashed var(--line2); background: transparent; margin-bottom: 16px; }
.ad-empty b { color: var(--muted); font-size: 14px; }
.ad-empty:hover { border-color: var(--red); } .ad-empty:hover b { color: var(--red2); }
.ad-s1.ad-empty .ad-txt { padding: 10px 16px; }
tr.adrow td { padding: 0; background: var(--bg2); position: relative; }
tr.adrow .ad { border: 0; border-radius: 0; background: transparent; padding: 9px 12px; gap: 10px; font-size: 14px; }
tr.adrow .ad img { height: 26px; width: auto; border-radius: 4px; }
tr.adrow .ad-empty { margin: 0; } tr.adrow .ad-empty .ad-txt { padding: 0; flex-direction: row; gap: 10px; align-items: baseline; flex-wrap: wrap; }
tr.adrow .ad-mark { bottom: 50%; transform: translateY(50%); }
.ad-ico { color: var(--gold); }
.plogos { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.plogos .ad-wrap { margin: 0; }
.plogo { display: flex; align-items: center; justify-content: center; min-width: 120px; height: 64px; padding: 6px 12px 16px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line); }
.plogo img { max-height: 44px; max-width: 200px; }
.foot-partners { margin-bottom: 12px; }
footer { display: flex; flex-direction: column; align-items: center; }
footer a { color: var(--muted); text-decoration: underline; }
.adplaces li { margin-bottom: 8px; }

/* достижения */
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
.ach { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 12px 8px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); filter: grayscale(1); opacity: .5; }
.ach.on { filter: none; opacity: 1; border-color: rgba(242, 194, 48, .45); background: linear-gradient(180deg, rgba(242, 194, 48, .12), var(--card2)); animation: rise .4s ease-out both; }
.ach-i { font-size: 30px; line-height: 1.1; } .ach b { font-size: 13px; }
.ach .small { font-size: 11.5px; line-height: 1.3; }

/* график рейтинга */
.rchart { width: 100%; height: auto; margin: 8px 0 4px; display: block; }
.rchart .grid-l { stroke: var(--line); stroke-dasharray: 3 4; } .rchart .ax { fill: var(--muted); font-size: 11px; }
.rchart .rline { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 1.4s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.rchart circle { cursor: pointer; } .rchart circle:hover { r: 7; }

/* пояса */
.beltpath { display: flex; flex-direction: column; gap: 2px; }
.bp { display: grid; grid-template-columns: 52px 1fr auto; grid-template-areas: "bar name date" "bar kyu date"; column-gap: 10px; align-items: center; padding: 5px 8px; border-radius: 8px; opacity: .45; }
.bp-bar { grid-area: bar; height: 12px; border-radius: 3px; border: 1px solid rgba(128, 128, 128, .5); }
.bp b { grid-area: name; font-size: 14px; } .bp > .muted { grid-area: kyu; font-size: 12px; } .bp > span:last-child { grid-area: date; text-align: right; }
.bp.done { opacity: 1; } .bp.cur { opacity: 1; background: var(--redbg); box-shadow: inset 3px 0 0 var(--red); }
.bp.cur .bp-bar { height: 16px; }

/* поделиться */
.share { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; }
.share-prev img { width: 100%; border-radius: 12px; display: block; }

/* клубы */
.clogo { width: 38px; height: 38px; border-radius: 8px; object-fit: contain; flex-shrink: 0; }
.clogo.md { width: 56px; height: 56px; } .clogo.lg { width: 110px; height: 110px; border-radius: 16px; background: var(--card2); padding: 6px; }
.ctile { display: flex; gap: 12px; align-items: flex-start; }
.club-head { border-radius: 16px; margin-bottom: 16px; background: var(--bg2) center / cover no-repeat; border: 1px solid var(--line); overflow: hidden; }
.club-in { display: flex; gap: 18px; align-items: center; padding: 22px; flex-wrap: wrap; }
.club-head.has-photo .club-in { padding-top: 140px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .82) 55%); color: #fff; }
.club-head.has-photo .muted { color: #ddd; }
.club-act { margin-left: auto; }

/* ===== светлая тема ===== */
[data-theme="light"] {
  --hi: #111; --head-bg: rgba(255, 255, 255, .95); --navc: #3a3a44; --hover: rgba(0, 0, 0, .03); --field: #fff; --well: #fafafc;
  --okc: #1d8a4e; --warnc: #a86b00; --redc: #c80500; --gold: #e0aa12; --silver: #9aa0ae; --bronze: #c2753a;
  --bg: #f4f5f8; --bg2: #ffffff; --card: #ffffff; --card2: #f1f2f6; --line: #e3e4ea; --line2: #cfd1da;
  --text: #17171b; --muted: #6b6b78; --redbg: rgba(225, 6, 0, .08);
}
[data-theme="light"] .hero { background:
  radial-gradient(900px 260px at 0% 0%, rgba(225, 6, 0, .12), transparent 60%),
  repeating-linear-gradient(90deg, transparent 0 79px, rgba(0, 0, 0, .03) 79px 80px),
  repeating-linear-gradient(0deg, transparent 0 39px, rgba(0, 0, 0, .03) 39px 40px), #fff; }
[data-theme="light"] .btn:hover { border-color: #9a9aa6; }
[data-theme="light"] .modal { box-shadow: 0 20px 60px rgba(0, 0, 0, .18); }
[data-theme="light"] .modal-bg { background: rgba(20, 20, 30, .45); }
[data-theme="light"] .toast { box-shadow: 0 10px 30px rgba(0, 0, 0, .15); }
[data-theme="light"] .belt { border-color: rgba(0, 0, 0, .3); }
[data-theme="light"] .btn.ok { background: #2c9b5f; border-color: #2c9b5f; }
[data-theme="light"] .card, [data-theme="light"] .tablewrap, [data-theme="light"] .tile { box-shadow: 0 1px 2px rgba(20, 20, 40, .05); }
[data-theme="light"] .pod-medal { border-color: #fff; }

@media (max-width: 1000px) {
  .home { grid-template-columns: 1fr; }
  .grid.g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .share { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .grid.g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pod .ava.md { width: 58px; height: 58px; } .pod1 .ava.md { width: 72px; height: 72px; }
  .pod-stand b { font-size: 22px; } .pod-name { font-size: 13px; }
  .adtop { padding: 0 10px; }
  .theme { order: 2; }
  .club-act { margin-left: 0; }
  .ad-mark { position: static; display: block; margin-top: 2px; background: none; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { .pod, .rise-i, .ach.on { animation: none; } .rchart .rline { animation: none; stroke-dashoffset: 0; } }
@media (max-width: 760px) {
  .brand { flex: 1; min-width: 0; }
  .burger, .theme, .who { order: 2; }
  .who { margin-left: 0; }
  .grid.g5 .stat:last-child { grid-column: 1 / -1; }
}
@media (max-width: 420px) { .brand div > span { display: none; } .brand img { width: 34px; height: 34px; } .brand b { font-size: 19px; } .brand div { min-width: 0; overflow: hidden; } }
