/* Сайт клуба «Арго» — тёмная «приборная» тема. */
:root {
  --bg: #0b0e12;
  --surface: #131820;
  --surface-2: #1a212b;
  --line: #232c38;
  --line-2: #33404f;
  --ink: #e9eff7;
  --ink-2: #a8b8ca;
  --ink-3: #74849a;
  --accent: #5aa9ff;
  --accent-ink: #06121f;
  --ok: #4ec98a;
  --warn: #e8b84b;
  --danger: #ef6a6a;
  --radius: 12px;
  --wrap: 68rem;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(120% 60% at 50% -10%, #16202c 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.3rem; margin-top: 1.6em; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
small, .small { font-size: .8125rem; }
.muted { color: var(--ink-2); }
.hint { color: var(--ink-3); font-size: .8125rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.clip { max-width: 22rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 34rem; margin: 0 auto; }
.hp { position: absolute; left: -9999px; }

/* --- шапка --- */
.site-header { border-bottom: 1px solid var(--line); background: rgba(11,14,18,.85); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .625rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 2.25rem; height: 2.25rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2);
  color: var(--accent); font-size: 1.1rem;
}
.brand__name { font-weight: 700; display: flex; flex-direction: column; line-height: 1.15; }
.brand__name small { font-weight: 400; font-size: .75rem; color: var(--ink-3); }
.site-nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.site-nav a { color: var(--ink-2); font-size: .9375rem; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav .is-cta {
  color: var(--ink); border: 1px solid var(--line-2); border-radius: 999px;
  padding: .375rem .875rem;
}
.site-nav .is-cta:hover { border-color: var(--accent); color: var(--accent); }

.site-main { padding: 2rem 1.25rem 4rem; }

/* --- главная --- */
.hero { padding: 2rem 0 1rem; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 2.75rem); }
.lead { font-size: 1.125rem; color: var(--ink-2); max-width: 42rem; }
.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin: 2rem 0; }
.stat { background: var(--surface); padding: 1.125rem 1rem; }
.stat b { display: block; font-size: 1.5rem; letter-spacing: -.02em; }
.stat span { color: var(--ink-3); font-size: .8125rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.125rem; }
.post-card h3 { margin: 0 0 .25rem; color: var(--ink); }
.post-card a:hover h3 { color: var(--accent); }

.prose { max-width: 44rem; }
.prose p { color: var(--ink-2); }

/* --- карточки и формы --- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; margin: 0 0 1.25rem; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: .875rem; }
label { display: block; font-size: .8125rem; color: var(--ink-2); }
input, select, textarea {
  width: 100%; margin-top: .3125rem; padding: .625rem .75rem;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 8px;
  font: inherit; font-size: .9375rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
textarea { resize: vertical; }
.chk { display: flex; align-items: center; gap: .5rem; color: var(--ink-2); }
.chk input { width: auto; margin: 0; }

.btn {
  display: inline-block; padding: .625rem 1.125rem; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink);
  font: inherit; font-size: .9375rem; cursor: pointer; text-align: center;
}
.btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn--primary:hover { filter: brightness(1.08); color: var(--accent-ink); }
.lnk { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; }
.inline { display: inline; }

.flash { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; border: 1px solid var(--line-2); background: var(--surface); }
.flash--err { border-color: var(--danger); color: #ffd9d9; }
.flash--ok { border-color: var(--ok); }

/* --- кабинет --- */
.cab-nav { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 1.5rem;
  border-bottom: 1px solid var(--line); padding-bottom: .75rem; }
.cab-nav a { color: var(--ink-2); font-size: .9375rem; padding: .25rem .625rem; border-radius: 999px; }
.cab-nav a:hover { color: var(--ink); text-decoration: none; }
.cab-nav a.is-active { background: var(--surface-2); color: var(--ink); }

.cols { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 60rem) { .cols { grid-template-columns: 1.6fr 1fr; } }
.col { min-width: 0; }

.filters { display: flex; gap: .75rem; align-items: end; flex-wrap: wrap; margin-bottom: 1rem; }
.filters label { font-size: .75rem; }
.filters input, .filters select { width: auto; min-width: 9rem; }

.totals { display: flex; gap: 1.5rem; flex-wrap: wrap; color: var(--ink-2);
  font-size: .875rem; margin-bottom: .75rem; }
.totals b { color: var(--ink); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1.25rem; }
.tbl { width: 100%; border-collapse: collapse; font-size: .875rem; background: var(--surface); }
.tbl th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: .75rem;
  text-transform: uppercase; letter-spacing: .03em; padding: .625rem .75rem;
  border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: .625rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .empty { color: var(--ink-3); text-align: center; padding: 2rem; }
.tbl--mini { border: 0; font-size: .8125rem; }
.tbl--mini td, .tbl--mini th { padding: .4375rem .5rem; }
.tbl small { display: block; color: var(--ink-3); font-size: .75rem; }

.tag { display: inline-block; font-style: normal; font-size: .6875rem; padding: .0625rem .375rem;
  border-radius: 4px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line-2); }
.tag--ok { color: var(--ok); border-color: rgba(78,201,138,.4); }
.tag--warn { color: var(--warn); border-color: rgba(232,184,75,.4); }
.tag--muted { color: var(--ink-3); }

.dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem .875rem; margin: 0; font-size: .875rem; }
.dl dt { color: var(--ink-3); }
.dl dd { margin: 0; }
.plain { list-style: none; padding: 0; margin: 0 0 1rem; font-size: .875rem; }
.plain li { padding: .25rem 0; border-bottom: 1px solid var(--line); }
.plain li:last-child { border-bottom: 0; }

.balance { font-size: 1.75rem; font-weight: 700; margin: 0 0 .25rem; }
.is-pos { color: var(--ok); }
.is-neg { color: var(--danger); }

.bars { list-style: none; padding: 0; margin: 0; font-size: .8125rem; }
.bars li { display: grid; grid-template-columns: 3rem 1fr 5rem; gap: .625rem; align-items: center; padding: .1875rem 0; }
.bars__bar { background: var(--surface-2); border-radius: 999px; height: .5rem; overflow: hidden; }
.bars__bar i { display: block; height: 100%; background: var(--accent); }
.bars__v { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.pager { display: flex; gap: 1rem; align-items: center; justify-content: center; margin: 1.5rem 0; }

/* --- подвал --- */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--ink-2); font-size: .875rem; }
.foot-in { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.foot-links { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
