:root {
  /* --- Основная палитра LIMBO --- */
  --bg-dark: #0A1610;
  --bg-surface: #102118;
  --bg-card: #152B20;
  --bg-card-hover: #1B3629;
  --gold: #DFC7A4;
  --gold-accent: #E5BE8A;
  --gold-glow: rgba(223, 199, 164, 0.22);
  --emerald-deep: #1A382B;
  --emerald-bright: #4E9F6E;
  --text-cream: #F4EBD9;
  --text-muted: #95A99D;
  --border-gold: rgba(223, 199, 164, 0.2);
  --border-subtle: rgba(223, 199, 164, 0.1);
  --terracotta: #C1592F;
  --success: #4E9F6E;
  --danger: #D9614A;
  --taxi-amber: #F0B342;
  --taxi-amber-glow: rgba(240, 179, 66, 0.35);
  --radius-card: 16px;
  --radius-md: 14px;
  --radius-lg: 20px;

  /* --- Те же значения через прежние имена токенов, чтобы все
     существующие шаблоны получили новую тему без переписывания --- */
  --color-bg: var(--bg-dark);
  --color-surface: var(--bg-card);
  --color-surface-alt: var(--bg-card-hover);
  --color-border: var(--border-gold);
  --color-text: var(--text-cream);
  --color-text-muted: var(--text-muted);
  --color-accent: var(--gold);
  --color-accent-hover: var(--gold-accent);
  --color-accent-soft: rgba(223, 199, 164, 0.14);
  --radius-sm: 8px;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --font-heading: "Cinzel", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 1240px;
}

* { box-sizing: border-box; }

html { background: var(--color-bg); }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

#ambientDustCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* Прочий контент должен быть выше холста с частицами */
.top-info-bar, header.site-header, main, .site-footer {
  position: relative;
  z-index: 1;
}

.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
  margin: 0 0 0.6em;
  letter-spacing: 0.3px;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.5rem; margin-top: 2rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.3em; font-family: var(--font-body); font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--gold-accent); }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main { padding: 2.5rem 0 4rem; }

/* --- Верхний инфо-бар --- */

.top-info-bar {
  background: #060E0A;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  color: var(--gold);
  padding: 6px 0;
}
.top-bar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.top-moon-row { display: flex; gap: 8px; }
.top-moon-row .full-moon-dot { filter: drop-shadow(0 0 5px var(--gold-accent)); }
.top-quote { white-space: nowrap; }

@media (max-width: 700px) {
  .top-moon-row, .top-quote { display: none; }
}

/* --- Шапка / Header --- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 16, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-gold);
  padding: 12px 0;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-cream);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; color: var(--text-cream); }
.brand .brand-emblem {
  width: 34px;
  height: 34px;
  flex: none;
}
.brand .brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: nowrap;
  min-width: 0;
}
.nav-links a { min-width: 0; }
.nav-links a {
  color: var(--text-cream);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--gold); text-decoration: none; }
.admin-link { color: var(--gold) !important; font-weight: 700; }

.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.92rem;
  flex-wrap: nowrap;
  margin-left: auto;
  justify-content: flex-end;
  min-width: 0;
}
.nav-auth > * { min-width: 0; }
.btn { text-align: center; }

@media (max-width: 900px) {
  .nav-optional { display: none !important; }
}

/* --- Кнопки --- */

.btn, button, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #FDF4E3 0%, #DFC7A4 60%, #B28C5E 100%);
  color: #12200F;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  box-shadow: 0 4px 16px var(--gold-glow);
}
.btn:hover, button:hover, input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(223, 199, 164, 0.4);
  text-decoration: none;
  color: #12200F;
}
.btn:active, button:active { transform: translateY(0); }

.btn-taxi-accent {
  background: linear-gradient(135deg, #FFE8A3 0%, #F0B342 60%, #D49022 100%);
  color: #0A1610 !important;
  font-weight: 700;
  box-shadow: 0 3px 14px var(--taxi-amber-glow);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn-taxi-accent:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 22px rgba(240, 179, 66, 0.55);
  color: #0A1610 !important;
}
.taxi-icon { font-size: 1.1rem; }

.btn-secondary, .nav-auth form button {
  background: rgba(223, 199, 164, 0.06);
  color: var(--gold);
  border: 1px solid var(--border-gold);
  box-shadow: none;
}
.btn-secondary:hover, .nav-auth form button:hover {
  background: rgba(223, 199, 164, 0.14);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: none;
}

form.inline { display: inline; }

/* --- Карточки / списки --- */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 0.35em; }
.card h3 a { color: var(--text-cream); }
.card h3 a:hover { color: var(--gold); }
.card .meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0; }
.meta { color: var(--text-muted); font-size: 0.9rem; }

.error {
  background: rgba(217, 97, 74, 0.12);
  color: #F1A896;
  border: 1px solid rgba(217, 97, 74, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
.tag-row a {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-gold);
  color: var(--text-muted);
  font-size: 0.86rem;
}
.tag-row a:hover, .tag-row a.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #12200F;
  font-weight: 700;
  text-decoration: none;
}

.hero {
  padding: 1rem 0 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2.5rem;
}
.hero p.lede { color: var(--text-muted); max-width: 60ch; }

/* --- Каталог товаров --- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.1rem;
  margin-top: 0.5rem;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-cream);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  text-decoration: none;
}
.product-card .product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--bg-surface);
  display: block;
}
.product-card .product-info { padding: 0.85rem 1rem 1.05rem; }
.product-price {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 0.25rem;
}
.product-card .product-title { font-size: 0.92rem; margin: 0 0 0.3rem; line-height: 1.3; color: var(--text-cream); }
.product-card .product-seller { font-size: 0.8rem; color: var(--text-muted); }
.product-card .product-unavailable {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.76rem;
  color: var(--danger);
}
.product-hero-image {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  display: block;
  margin-bottom: 1rem;
  border: 1px solid var(--border-gold);
}

/* --- Медиа --- */

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.2rem 0 1.6rem;
}
.media-grid figure { margin: 0; }
.media-grid img, .media-grid video {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-gold);
}
.media-grid figcaption { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.4rem; }

/* --- Формы --- */

form { max-width: 460px; }

label { display: block; margin-top: 1rem; font-size: 0.88rem; color: var(--text-cream); font-weight: 600; }

input, textarea, select {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--text-cream);
  background: var(--bg-dark);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); }

textarea { min-height: 140px; resize: vertical; }

form button, form input[type="submit"] { margin-top: 1.4rem; }

.checkbox-row { display: flex; align-items: center; gap: 8px; margin-top: 1rem; font-size: 0.9rem; }
.checkbox-row input { width: auto; margin-top: 0; }

.row { display: flex; gap: 0.75rem; align-items: center; }
.row > * { flex: 1; }
.small { padding: 0.4rem 0.9rem; font-size: 0.82rem; }
.full-w { width: 100%; }

/* --- Прочее --- */

ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 0.5rem 0; border-bottom: 1px solid var(--border-subtle); }
ul.plain li:last-child { border-bottom: none; }

hr { display: none; }

/* --- Футер --- */

.site-footer {
  background: #060E0A;
  border-top: 1px solid var(--border-gold);
  padding: 50px 0 20px;
  font-size: 0.88rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 30px;
  margin-bottom: 35px;
}
.footer-brand .brand-title { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; color: var(--text-cream); }
.footer-brand .brand-sub { font-size: 0.7rem; letter-spacing: 2px; color: var(--gold); display: block; margin: 4px 0 10px; }
.footer-desc { color: var(--text-muted); font-size: 0.82rem; margin: 10px 0; }
.footer-col h4 { color: var(--gold); font-size: 0.95rem; margin-bottom: 12px; font-family: var(--font-heading); }
.footer-col a { display: block; color: var(--text-muted); text-decoration: none; margin-bottom: 8px; }
.footer-col a:hover { color: var(--text-cream); text-decoration: none; }
.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ГЛАВНАЯ СТРАНИЦА
   ========================================================================== */

.hero-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 50px 0 40px;
  background: radial-gradient(circle at 75% 30%, rgba(32, 62, 47, 0.4) 0%, rgba(10, 22, 16, 0) 70%);
  border-bottom: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(223, 199, 164, 0.08);
  border: 1px solid var(--border-gold);
  margin-bottom: 20px;
}
.hero-heading { font-size: 3rem; line-height: 1.16; margin-bottom: 18px; }
.gold-gradient {
  background: linear-gradient(135deg, #FFF8ED 0%, #DFC7A4 60%, #C49B66 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtext { color: var(--text-muted); font-size: 1.05rem; max-width: 500px; margin-bottom: 1.6rem; }
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-emblem-col { display: flex; justify-content: center; align-items: center; }
.emblem-card-wrapper { position: relative; display: flex; justify-content: center; align-items: center; }
.ambient-glow {
  position: absolute;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(223, 199, 164, 0.25) 0%, rgba(32, 62, 47, 0.3) 50%, transparent 75%);
  filter: blur(25px);
  z-index: 0;
  pointer-events: none;
}
.emblem-circle-frame {
  position: relative;
  width: 400px; height: 400px;
  z-index: 1;
  border-radius: 50%;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
}
.limbo-emblem-svg { width: 100%; height: 100%; border-radius: 50%; filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.4)); }

@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-emblem-col { order: -1; }
  .emblem-circle-frame { width: 280px; height: 280px; }
}

.divider-wrap { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 10px 0 40px; }
.divider-line { height: 1px; width: 140px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.divider-badge { color: var(--gold); font-size: 0.9rem; }

.section-container { padding: 20px 0 50px; }
.bg-surface {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 50px 0;
}
.grid-two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
@media (max-width: 900px) { .grid-two-col { grid-template-columns: 1fr; } }

.section-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 24px; }
.eyebrow { display: block; font-size: 0.72rem; letter-spacing: 1.5px; color: var(--gold); text-transform: uppercase; margin-bottom: 4px; }
.section-title { font-size: 1.7rem; margin: 0; }
.section-sub { color: var(--text-muted); font-size: 0.88rem; margin: 0.3rem 0 0; }
.link-gold { color: var(--gold); font-size: 0.9rem; font-weight: 600; }

.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-card);
  padding: 20px;
  transition: transform 0.2s, border-color 0.2s;
  display: block;
  color: var(--text-cream);
}
.news-card:hover { transform: translateY(-3px); border-color: var(--gold); text-decoration: none; }
.news-badge {
  display: inline-block;
  font-size: 0.7rem;
  background: rgba(32, 62, 47, 0.6);
  color: #D8F3DC;
  border: 1px solid rgba(78, 159, 110, 0.4);
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 6px;
}
.news-date { font-size: 0.78rem; color: var(--text-muted); float: right; }
.news-heading { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; margin: 6px 0 8px; color: var(--text-cream); }

.events-stack { display: flex; flex-direction: column; gap: 14px; }
.event-card {
  display: flex;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-card);
  padding: 16px;
  align-items: center;
  transition: all 0.2s;
}
.event-card:hover { border-color: var(--gold); background: var(--bg-card-hover); }
.event-date-box {
  background: rgba(223, 199, 164, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 10px 14px;
  text-align: center;
  min-width: 60px;
  flex: none;
}
.event-date-box .day { display: block; font-size: 1.4rem; font-weight: 800; color: var(--gold); font-family: var(--font-heading); }
.event-date-box .month { font-size: 0.68rem; letter-spacing: 1px; text-transform: uppercase; }
.event-details { flex: 1; min-width: 0; }
.event-meta { font-size: 0.75rem; color: var(--gold); }
.event-name { font-size: 1rem; margin: 2px 0 4px; font-family: var(--font-body); font-weight: 600; }
.event-name a { color: var(--text-cream); }

.market-teaser-head { margin-bottom: 24px; }

.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.market-grid .product-card { text-decoration: none; }
.product-img-box {
  height: 160px;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}
.product-img-box .product-image { width: 100%; height: 100%; aspect-ratio: auto; }
.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  font-size: 0.68rem;
  padding: 3px 8px;
  background: rgba(10, 22, 16, 0.85);
  border-radius: 6px;
  color: var(--gold);
}
.market-grid .product-info { padding: 16px; gap: 8px; display: flex; flex-direction: column; }
.market-grid .product-title { font-size: 0.95rem; margin: 0; }
.product-pricing { margin: 2px 0 6px; }
.price-usd { font-size: 1.15rem; font-weight: 800; color: var(--gold); font-family: var(--font-heading); }

.transfer-box {
  background: radial-gradient(circle at 0% 50%, rgba(32, 62, 47, 0.45) 0%, rgba(21, 43, 32, 0.95) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-card);
  padding: 36px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
}
.transfer-box h2 { font-size: 1.9rem; margin: 10px 0; }
.transfer-box p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.4rem; }
.transfer-stats { display: flex; flex-direction: column; gap: 12px; }
.stat-pill {
  background: rgba(10, 22, 16, 0.7);
  border: 1px solid var(--border-gold);
  padding: 12px 18px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat-pill .num { font-size: 1.5rem; font-weight: 800; color: var(--gold); font-family: var(--font-heading); }
.stat-pill .txt { font-size: 0.85rem; color: var(--text-muted); }
@media (max-width: 900px) { .transfer-box { grid-template-columns: 1fr; } }

/* ==========================================================================
   АДМИН-ПАНЕЛЬ
   ========================================================================== */

.admin-layout { display: flex; align-items: flex-start; gap: 0; min-height: calc(100vh - 140px); }
.admin-sidebar {
  width: 250px;
  flex: none;
  background: #111B15;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 20px 14px;
  position: sticky;
  top: 90px;
  margin: 2.5rem 0;
}
.admin-brand { font-family: var(--font-heading); font-weight: 700; color: var(--gold); font-size: 0.95rem; padding: 0 10px 14px; border-bottom: 1px solid var(--border-gold); margin-bottom: 14px; letter-spacing: 1px; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  text-decoration: none;
}
.admin-nav a:hover { background: var(--bg-card); color: var(--gold); text-decoration: none; }
.admin-nav a.active { background: var(--bg-card); color: var(--gold); font-weight: 600; }
.counter-badge {
  margin-left: auto;
  background: var(--terracotta);
  color: #fff;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 12px;
  font-weight: 700;
}
.sidebar-bottom { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-gold); }

.admin-main { flex: 1; min-width: 0; padding: 2.5rem 0 4rem 2rem; }
@media (max-width: 900px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; position: static; margin: 1.5rem 0 0; }
  .admin-main { padding: 1.5rem 0 3rem; }
}

.page-title-box { margin-bottom: 24px; }
.page-title-box h2 { font-size: 1.6rem; margin: 0; }
.page-title-box p { font-size: 0.88rem; color: var(--text-muted); margin: 0.3rem 0 0; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.kpi-card { background: var(--bg-card); border: 1px solid var(--border-gold); border-radius: var(--radius-lg); padding: 18px 20px; }
.kpi-icon { font-size: 1.4rem; margin-bottom: 6px; }
.kpi-num { font-size: 1.5rem; font-weight: 700; color: var(--gold); font-family: var(--font-heading); }
.kpi-label { font-size: 0.8rem; color: var(--text-muted); }
@media (max-width: 900px) { .kpi-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .kpi-grid { grid-template-columns: 1fr; } }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.data-table th, .data-table td { padding: 10px 10px; text-align: left; border-bottom: 1px solid var(--border-subtle); }
.data-table th { color: var(--text-muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.4px; }

.status-pill { font-size: 0.75rem; padding: 3px 10px; border-radius: 12px; font-weight: 600; display: inline-block; }
.status-pill.active { background: rgba(78, 159, 110, 0.15); color: var(--success); }
.status-pill.warn { background: rgba(223, 199, 164, 0.15); color: var(--gold); }

/* ==========================================================================
   СТРАНИЦА СПИСКА МЕРОПРИЯТИЙ
   ========================================================================== */

.events-page-header { padding: 0.5rem 0 0; }
.page-title-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; flex-wrap: wrap; gap: 15px; }
.page-title { font-size: 2.1rem; color: var(--text-cream); margin: 0; }
.page-desc { color: var(--text-muted); font-size: 0.95rem; margin-top: 4px; }

.events-toolbar { display: flex; justify-content: flex-end; padding-bottom: 22px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 8px; }
.events-search { position: relative; min-width: 260px; }
.events-search input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 8px 16px 8px 36px;
  color: var(--text-cream);
  outline: none;
  font-size: 0.85rem;
}
.events-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 0.9rem; color: var(--text-muted); }

.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; padding: 10px 0 40px; }

.events-grid .event-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-cream);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.events-grid .event-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  background: var(--bg-card);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  text-decoration: none;
}
.event-thumb {
  height: 170px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-surface);
  display: flex;
  align-items: flex-start;
  padding: 14px;
}
.event-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 16, 0.1) 0%, rgba(20, 39, 30, 0.55) 100%);
}
.event-date-badge {
  position: relative;
  z-index: 2;
  background: rgba(10, 22, 16, 0.88);
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  padding: 6px 12px;
  text-align: center;
  min-width: 52px;
}
.event-date-badge .day { display: block; font-size: 1.3rem; font-weight: 800; color: var(--gold); line-height: 1; font-family: var(--font-heading); }
.event-date-badge .month { font-size: 0.62rem; font-weight: 700; letter-spacing: 1.5px; color: var(--text-cream); text-transform: uppercase; }

.event-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.event-title { font-family: var(--font-body); font-size: 1.12rem; font-weight: 700; color: var(--text-cream); margin: 0 0 12px; line-height: 1.35; }

.event-meta-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: rgba(10, 22, 16, 0.5);
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 14px;
  font-size: 0.85rem;
}
.meta-row { display: flex; align-items: center; gap: 8px; color: var(--text-muted); }
.meta-row strong { color: var(--text-cream); font-weight: 500; }
.meta-row .icon { font-size: 0.95rem; width: 18px; text-align: center; }

.event-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 560px) {
  .events-grid { grid-template-columns: 1fr; }
}
