/* ==========================================================================
   MSG — Monopoly · Security · Group
   Дизайн-система сайта клана. Чистый CSS, без внешних зависимостей и шрифтов.
   ========================================================================== */

:root {
  --bg: #0a0c10;
  --bg-2: #0e1116;
  --panel: #12161c;
  --panel-2: #171c23;
  --panel-3: #1d232b;
  --border: #242c36;
  --border-2: #313b47;
  --text: #e9eef4;
  --muted: #93a2b3;
  --dim: #667380;

  --accent: #ff6a1a;
  --accent-2: #ffb020;
  --accent-3: #ff3d00;
  --accent-soft: rgba(255, 106, 26, 0.13);
  --accent-line: rgba(255, 106, 26, 0.35);

  --ok: #3fbf6a;
  --ok-soft: rgba(63, 191, 106, 0.14);
  --warn: #f2b13c;
  --warn-soft: rgba(242, 177, 60, 0.14);
  --info: #4a9df0;
  --info-soft: rgba(74, 157, 240, 0.14);
  --danger: #ef4d4d;
  --danger-soft: rgba(239, 77, 77, 0.14);
  --violet: #a56bf0;
  --violet-soft: rgba(165, 107, 240, 0.14);

  --radius: 12px;
  --radius-sm: 8px;
  --font: "Segoe UI", system-ui, -apple-system, "Inter", Roboto, Arial, sans-serif;
  --mono: "Cascadia Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
  --shadow: 0 18px 45px -22px rgba(0, 0, 0, 0.85);
  --cut: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 12% -8%, rgba(255, 106, 26, 0.12), transparent 60%),
    radial-gradient(700px 500px at 92% 4%, rgba(74, 157, 240, 0.09), transparent 60%),
    linear-gradient(180deg, #0b0e13 0%, #0a0c10 45%, #080a0d 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
}

img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #ffd27a; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 750; text-transform: uppercase; letter-spacing: .01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
small { font-size: .82rem; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.wrap-narrow { max-width: 880px; }
.section { padding: 76px 0; position: relative; z-index: 1; }
.section-sm { padding: 46px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 26px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.gap { display: flex; gap: 12px; flex-wrap: wrap; }
.gap-sm { display: flex; gap: 8px; flex-wrap: wrap; }
.gap-center { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hidden { display: none !important; }
.spacer { flex: 1; }

/* ------------------------------------------------------------------ NAV --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(9, 11, 15, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 800; letter-spacing: .04em; }
.brand:hover { color: var(--text); }
.brand img { width: 40px; height: 40px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-tag { font-size: 1.12rem; text-transform: uppercase; }
.brand-sub { font-size: .62rem; color: var(--muted); letter-spacing: .22em; text-transform: uppercase; font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--muted);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-weight: 600;
  transition: .18s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.045); }
.nav-links a.active { color: var(--accent-2); background: var(--accent-soft); }
.nav-links .nav-cta {
  margin-left: 10px;
  color: #160b02;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  font-weight: 800;
}
.nav-links .nav-cta:hover { color: #160b02; filter: brightness(1.08); }
.burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 40px;
  background: var(--panel-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }

/* --------------------------------------------------------------- BUTTONS --- */
.btn {
  --btn-bg: var(--panel-2);
  --btn-fg: var(--text);
  --btn-bd: var(--border-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .14s, filter .18s, background .18s, border-color .18s;
  clip-path: var(--cut);
  text-transform: uppercase;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.12); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; filter: none; }
.btn-primary {
  --btn-bg: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 55%, var(--accent-3) 100%);
  --btn-fg: #180c02;
  --btn-bd: transparent;
  box-shadow: 0 10px 26px -12px rgba(255, 106, 26, 0.9);
}
.btn-ghost { --btn-bg: transparent; }
.btn-danger { --btn-bg: var(--danger-soft); --btn-fg: #ff8b8b; --btn-bd: rgba(239, 77, 77, .45); }
.btn-ok { --btn-bg: var(--ok-soft); --btn-fg: #7ee2a0; --btn-bd: rgba(63, 191, 106, .45); }
.btn-warn { --btn-bg: var(--warn-soft); --btn-fg: #ffd479; --btn-bd: rgba(242, 177, 60, .45); }
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }
.btn-sm { padding: 8px 14px; font-size: .82rem; }
.btn-block { width: 100%; }
.btn-icon { padding: 9px 11px; }

/* ----------------------------------------------------------------- HERO --- */
.hero { position: relative; overflow: hidden; padding: 74px 0 84px; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(700px 380px at 78% 20%, rgba(255, 106, 26, 0.16), transparent 62%),
    radial-gradient(520px 340px at 8% 78%, rgba(74, 157, 240, 0.12), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 15px; margin-bottom: 22px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-2);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(63,191,106,.7); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(63, 191, 106, .6); }
  70% { box-shadow: 0 0 0 12px rgba(63, 191, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 191, 106, 0); }
}
.hero h1 { margin-bottom: 6px; }
.hero-words { display: block; font-size: clamp(1.05rem, 2.6vw, 1.7rem); font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin: 10px 0 18px; }
.hero-words b { color: var(--accent-2); }
.hero-lead { font-size: 1.06rem; color: var(--muted); max-width: 620px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-note { margin-top: 22px; font-size: .86rem; color: var(--dim); display: flex; align-items: center; gap: 8px; }

.emblem-wrap { display: flex; justify-content: center; align-items: center; position: relative; }
.emblem { width: min(340px, 82%); filter: drop-shadow(0 24px 46px rgba(255, 106, 26, 0.35)); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.emblem-ring {
  position: absolute; width: min(420px, 96%); aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed rgba(255, 106, 26, 0.28); animation: spin 34s linear infinite;
}
.emblem-ring::after {
  content: ""; position: absolute; top: -5px; left: 50%; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent-2); box-shadow: 0 0 14px var(--accent);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------------- STATS --- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  padding: 22px 20px;
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--accent-2), var(--accent-3)); }
.stat-num { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.stat-lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: .11em; color: var(--muted); font-weight: 700; }

/* ---------------------------------------------------------------- CARDS --- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: linear-gradient(165deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .2s, transform .2s;
  position: relative;
}
.card:hover { border-color: var(--border-2); }
.card-glow:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.card-icon {
  width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 14px;
  border-radius: 11px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-2);
}
.card-icon svg { width: 24px; height: 24px; }
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.panel-2 { background: var(--panel-2); }
.eyebrow {
  display: block; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 800; margin-bottom: 12px;
}
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--muted); margin: 0; }

/* --------------------------------------------------------------- BADGES --- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge-pending { background: var(--info-soft); color: #86c4ff; border-color: rgba(74,157,240,.4); }
.badge-hold { background: var(--warn-soft); color: #ffd479; border-color: rgba(242,177,60,.4); }
.badge-approved { background: var(--ok-soft); color: #7ee2a0; border-color: rgba(63,191,106,.4); }
.badge-rejected { background: var(--danger-soft); color: #ff9a9a; border-color: rgba(239,77,77,.4); }
.badge-blacklist { background: rgba(0,0,0,.55); color: #ff6b6b; border-color: rgba(239,77,77,.65); }
.badge-left { background: rgba(255,255,255,.06); color: var(--muted); border-color: var(--border-2); }
.badge-rank { background: var(--violet-soft); color: #c9a4ff; border-color: rgba(165,107,240,.4); }
.badge-soft { background: rgba(255,255,255,.05); color: var(--muted); border-color: var(--border-2); }

/* ------------------------------------------------------------------ FORMS -- */
.field { margin-bottom: 20px; }
.field > label, .field-label {
  display: block; margin-bottom: 8px;
  font-size: .9rem; font-weight: 700; color: var(--text);
}
.field-q { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 9px; }
.field-n {
  flex: none; min-width: 26px; height: 26px; padding: 0 6px;
  display: grid; place-items: center; border-radius: 7px;
  background: var(--accent-soft); color: var(--accent-2);
  font-size: .78rem; font-weight: 800; font-family: var(--mono); margin-top: 2px;
}
.req { color: var(--accent); }
.hint { display: block; margin-top: 8px; font-size: .83rem; color: var(--dim); }
.err-msg { display: block; margin-top: 7px; font-size: .84rem; color: #ff9a9a; font-weight: 600; }
.req-note { font-size: .82rem; color: var(--dim); }

input[type="text"], input[type="number"], input[type="url"], input[type="password"],
input[type="search"], select, textarea {
  width: 100%;
  padding: 12px 15px;
  background: #0c1015;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color .16s, box-shadow .16s, background .16s;
  outline: none;
}
textarea { resize: vertical; min-height: 108px; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: #55616d; }
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 106, 26, .18);
  background: #0e1319;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393a2b3' stroke-width='2.4'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 17px;
  padding-right: 42px;
  cursor: pointer;
}
select option { background: #0c1015; color: var(--text); }
.invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(239, 77, 77, .16) !important; }

/* варианты ответа (радио / чекбоксы) */
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 16px 11px 13px;
  background: #0c1015;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: .92rem;
  transition: .15s;
  user-select: none;
}
.opt:hover { border-color: var(--border-2); background: #10151b; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .box {
  flex: none; width: 19px; height: 19px;
  border: 2px solid var(--border-2);
  border-radius: 5px;
  display: grid; place-items: center;
  transition: .15s;
}
.opt.radio .box { border-radius: 50%; }
.opt .box::after { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); transform: scale(0); transition: transform .14s; }
.opt.radio .box::after { border-radius: 50%; }
.opt input:checked ~ .box { border-color: var(--accent); background: rgba(255,106,26,.12); }
.opt input:checked ~ .box::after { transform: scale(1); }
.opt:has(input:checked) { border-color: var(--accent-line); background: rgba(255, 106, 26, .07); }
.opt:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(255, 106, 26, .2); }

/* шкала 1-10 */
.scale { display: flex; flex-wrap: wrap; gap: 8px; }
.scale label {
  position: relative; width: 48px; height: 48px;
  display: grid; place-items: center;
  background: #0c1015; border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  font-weight: 800; font-family: var(--mono); cursor: pointer; transition: .15s;
}
.scale label input { position: absolute; opacity: 0; }
.scale label:hover { border-color: var(--accent-line); }
.scale label:has(input:checked) {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #180c02; border-color: transparent;
  box-shadow: 0 8px 20px -10px rgba(255, 106, 26, .9);
}
.scale-legend { display: flex; justify-content: space-between; font-size: .78rem; color: var(--dim); margin-top: 8px; max-width: 560px; }

/* переключатели (админка) */
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 48px; height: 27px; border-radius: 999px; background: #232b34; border: 1px solid var(--border-2); position: relative; transition: .18s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #8492a1; transition: .18s; }
.switch input:checked ~ .track { background: rgba(63, 191, 106, .25); border-color: rgba(63, 191, 106, .5); }
.switch input:checked ~ .track::after { left: 24px; background: var(--ok); }

/* чекбокс-строка */
.check {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 15px 17px; margin-bottom: 11px;
  background: #0c1015; border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  cursor: pointer; transition: .15s; font-size: .93rem;
}
.check:hover { border-color: var(--accent-line); }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { flex: none; width: 21px; height: 21px; margin-top: 1px; border: 2px solid var(--border-2); border-radius: 6px; display: grid; place-items: center; transition: .15s; }
.check .box::after { content: ""; width: 10px; height: 6px; border-left: 2.5px solid #180c02; border-bottom: 2.5px solid #180c02; transform: rotate(-45deg) scale(0); transition: transform .15s; margin-top: -2px; }
.check input:checked ~ .box { background: var(--accent); border-color: var(--accent); }
.check input:checked ~ .box::after { transform: rotate(-45deg) scale(1); }
.check:has(input:checked) { border-color: var(--accent-line); background: rgba(255, 106, 26, .06); }
.check.locked { opacity: .55; cursor: not-allowed; }
.check.done { border-color: rgba(63, 191, 106, .45); background: rgba(63, 191, 106, .06); }

/* -------------------------------------------------------------- PROGRESS --- */
.steps { display: flex; gap: 8px; margin-bottom: 34px; flex-wrap: wrap; }
.step {
  flex: 1; min-width: 130px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-top: 3px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .84rem; color: var(--muted); font-weight: 700;
  display: flex; align-items: center; gap: 10px;
  transition: .2s;
}
.step .num {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: #232b34; color: var(--muted);
  font-size: .76rem; font-family: var(--mono);
}
.step.active { border-top-color: var(--accent); background: var(--panel-2); color: var(--text); box-shadow: 0 12px 30px -20px rgba(255,106,26,.9); }
.step.active .num { background: var(--accent); color: #180c02; }
.step.done { border-top-color: var(--ok); color: #a9e8c1; }
.step.done .num { background: var(--ok); color: #06210f; }
.progress { height: 4px; background: #1a2028; border-radius: 99px; overflow: hidden; margin-bottom: 30px; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-2), var(--accent-3)); transition: width .4s ease; }

.form-nav { display: flex; gap: 12px; align-items: center; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--border); flex-wrap: wrap; }

/* --------------------------------------------------------------- TIMELINE --- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 22px 30px; border-left: 2px solid var(--border); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -8px; top: 3px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--panel); border: 2px solid var(--border-2);
}
.timeline li.on::before { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 4px rgba(255,106,26,.1); }
.timeline li.done::before { border-color: var(--ok); background: var(--ok); }
.timeline .tl-title { font-weight: 700; }
.timeline .tl-time { font-size: .8rem; color: var(--dim); font-family: var(--mono); }

/* ---------------------------------------------------------------- TABLES --- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
thead th {
  text-align: left; padding: 13px 15px;
  background: var(--panel-2);
  color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em;
  border-bottom: 1px solid var(--border); white-space: nowrap; font-weight: 800;
}
tbody td { padding: 13px 15px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .14s; }
tbody tr:hover { background: rgba(255, 255, 255, .028); }
tbody tr.clickable { cursor: pointer; }
td.t-actions { white-space: nowrap; text-align: right; }

/* ----------------------------------------------------------------- MODAL --- */
.overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
  background: rgba(4, 6, 9, .78);
  backdrop-filter: blur(6px);
  animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 640px; max-height: 90vh; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: pop .2s ease;
}
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-wide { max-width: 900px; }
.modal-head { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; }
.modal-body { padding: 24px; overflow-y: auto; }
.modal-foot { padding: 18px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; background: var(--panel-2); }
.x-btn { margin-left: auto; background: transparent; border: 1px solid var(--border-2); color: var(--muted); width: 36px; height: 36px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; font-size: 1.1rem; }
.x-btn:hover { color: var(--text); border-color: var(--accent-line); }

/* -------------------------------------------------------------- ANSWERS ---- */
.answers { display: grid; gap: 2px; }
.answer-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 18px; padding: 13px 0; border-bottom: 1px dashed var(--border); }
.answer-row:last-child { border-bottom: none; }
.answer-q { color: var(--muted); font-size: .9rem; }
.answer-q b { color: var(--accent-2); font-family: var(--mono); margin-right: 6px; }
.answer-a { font-weight: 600; word-break: break-word; }
.answer-sec { padding: 10px 0 4px; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); font-weight: 800; border-bottom: 1px solid var(--accent-line); margin-top: 14px; }

/* ----------------------------------------------------- FILE:// WARNING ---- */
.file-warning {
  background: linear-gradient(90deg, rgba(242, 177, 60, .22), rgba(239, 77, 77, .18));
  border-bottom: 1px solid rgba(242, 177, 60, .5);
  padding: 13px 0;
  position: relative;
  z-index: 80;
}
.file-warning-inner { display: flex; gap: 10px 16px; align-items: baseline; flex-wrap: wrap; }
.file-warning-inner b { color: #ffd479; }
.file-warning-inner span { color: #e6d3ab; font-size: .9rem; max-width: 900px; }
.file-warning code {
  font-family: var(--mono); background: rgba(0, 0, 0, .35);
  padding: 1px 6px; border-radius: 4px; color: #ffd479;
}

/* ---------------------------------------------------------------- TOASTS --- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.toast {
  padding: 14px 18px;
  background: var(--panel-2);
  border: 1px solid var(--border-2);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-size: .92rem;
  animation: slideIn .22s ease;
}
.toast.ok { border-left-color: var(--ok); }
.toast.err { border-left-color: var(--danger); }
.toast.warn { border-left-color: var(--warn); }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ------------------------------------------------------------ MISC BLOCKS -- */
.rules-body { counter-reset: r; }
.rule-block { padding: 26px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 92px; }
.rule-block:last-child { border-bottom: none; }
.rule-block h3 { color: var(--accent-2); font-size: 1.12rem; letter-spacing: .05em; text-transform: uppercase; }
.rule-item { display: flex; gap: 12px; padding: 9px 0; }
.rule-item .rid { flex: none; font-family: var(--mono); font-weight: 800; color: var(--accent); font-size: .88rem; padding-top: 2px; min-width: 34px; }
.rule-item p { margin: 0; color: #ccd6e0; }

/* блок-исключение: инсайд — мгновенный кик */
.penalty-exception {
  margin: 20px 0 6px;
  padding: 22px 24px;
  border: 1px solid rgba(239, 77, 77, .5);
  border-left: 5px solid var(--danger);
  border-radius: var(--radius-sm);
  background: linear-gradient(140deg, rgba(239, 77, 77, .13), rgba(239, 77, 77, .04));
}
.penalty-exception h4 {
  margin: 0 0 10px;
  color: #ff9a9a;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.penalty-exception p { color: #e4d3d3; }
.penalty-exception ul { margin: 10px 0 0; padding-left: 22px; color: #e4d3d3; }
.penalty-exception li { margin-bottom: 6px; }
.penalty-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px dashed rgba(239, 77, 77, .35);
  font-size: .9rem;
  color: #cfc0c0;
  font-style: italic;
}

.toc { position: sticky; top: 92px; }
.toc a { display: block; padding: 8px 12px; color: var(--muted); border-left: 2px solid var(--border); font-size: .9rem; transition: .16s; }
.toc a:hover { color: var(--text); border-left-color: var(--accent-line); background: rgba(255,255,255,.03); }

.rules-scroll {
  max-height: 340px; overflow-y: auto;
  padding: 20px; background: #0a0e13;
  border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  font-size: .92rem; color: #c6d0da;
}
.rules-scroll h4 { color: var(--accent-2); font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin: 18px 0 8px; }
.rules-scroll h4:first-child { margin-top: 0; }
.rules-scroll ul { padding-left: 20px; margin: 0 0 10px; }
.rules-scroll li { margin-bottom: 6px; }
.rules-scroll .end { text-align: center; padding: 18px 0 6px; color: var(--ok); font-weight: 700; }

.empty { padding: 56px 24px; text-align: center; color: var(--muted); }
.empty svg { width: 54px; height: 54px; opacity: .35; margin-bottom: 14px; }
.avatar {
  width: 40px; height: 40px; border-radius: 9px; flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: .95rem;
  background: linear-gradient(140deg, rgba(255,176,32,.25), rgba(255,61,0,.2));
  border: 1px solid var(--accent-line); color: var(--accent-2); font-family: var(--mono);
}
.member { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.member .m-name { font-weight: 700; }
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: .9rem; }
.kv:last-child { border-bottom: none; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { font-weight: 600; text-align: right; }
.code-box {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 15px 18px; background: #0a0e13; border: 1px dashed var(--accent-line); border-radius: var(--radius-sm);
}
.code-box code { font-family: var(--mono); font-size: 1.25rem; font-weight: 700; color: var(--accent-2); letter-spacing: .08em; }
.divider { height: 1px; background: var(--border); margin: 26px 0; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.filters input[type="search"] { max-width: 300px; }
.filters select { max-width: 220px; }
.chip {
  padding: 8px 15px; border-radius: 999px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--border-2);
  font-size: .85rem; font-weight: 700; color: var(--muted); transition: .15s;
}
.chip:hover { color: var(--text); border-color: var(--accent-line); }
.chip.active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-2); }
.chip .cnt { font-family: var(--mono); opacity: .8; margin-left: 5px; }

.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel); margin-bottom: 12px; overflow: hidden; }
.faq-item summary { padding: 17px 20px; cursor: pointer; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; margin-left: auto; color: var(--accent); font-size: 1.35rem; font-weight: 700; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 20px 18px; color: var(--muted); }

/* ------------------------------------------------------------------ FOOTER -- */
.footer { border-top: 1px solid var(--border); padding: 46px 0 30px; margin-top: 40px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.footer h4 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.footer a { display: block; color: var(--muted); padding: 5px 0; font-size: .92rem; }
.footer a:hover { color: var(--accent-2); }
.footer-bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: var(--dim); }

/* --------------------------------------------------------------- REVEAL ----- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------- RESPONSIVE -- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .emblem-wrap { order: -1; }
  .emblem { width: min(240px, 60%); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 14px 20px 20px;
    background: rgba(10, 12, 16, .98);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-cta { margin-left: 0; text-align: center; }
  .burger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .answer-row { grid-template-columns: 1fr; gap: 4px; }
  .section { padding: 52px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .toasts { left: 16px; right: 16px; max-width: none; }
  .steps .step { min-width: 100%; }
  .toc { display: none; }
  table { font-size: .86rem; }
  thead th, tbody td { padding: 10px 11px; }
}
@media print {
  .nav, .footer, .btn, .toasts { display: none !important; }
  body { background: #fff; color: #000; }
}
