:root {
  --bg: #121412;
  --bg-alt: #181b18;
  --panel: #1f231f;
  --line: #2f352e;
  --text: #d9d6cc;
  --muted: #8d9186;
  --accent: #c9a24a;      /* выцветшая латунь */
  --accent-ink: #15130c;
  --red: #b5533c;         /* ржавчина */
  --green: #8fb46a;       /* мох */
  --fog: #6f8a8f;         /* холодная вода */
  --mono: "Consolas", "SFMono-Regular", "Menlo", "Liberation Mono", monospace;
  --sans: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  --display: "Bahnschrift", "Arial Narrow", "Roboto Condensed", var(--sans);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
/* Плёночное зерно поверх всего — убирает «стерильность» плоских заливок */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--accent); color: var(--accent-ink); }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: .01em; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.link { color: var(--accent); text-underline-offset: 3px; }

/* ---------- верхняя панель ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(18, 20, 18, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 15px; }
.brand__mark { width: 22px; height: 22px; color: var(--accent); }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 14px; letter-spacing: .03em; }
.nav a:hover { color: var(--text); }
.navtoggle { display: none; }

@media (max-width: 719px) {
  .navtoggle {
    display: block; background: none; color: var(--text);
    border: 1px solid var(--line); padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer;
  }
  .nav {
    display: none; position: absolute; top: 56px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 16px; border-top: 1px solid var(--line); font-size: 16px; }
}

/* ---------- главная ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__bg {
  position: absolute; inset: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='400' viewBox='0 0 600 400'%3E%3Cg fill='none' stroke='%23c9a24a' stroke-opacity='.13' stroke-width='1'%3E%3Cpath d='M-20 300 C80 250 140 320 240 280 S420 180 620 240'/%3E%3Cpath d='M-20 330 C90 280 150 350 250 310 S430 210 620 270'/%3E%3Cpath d='M-20 360 C100 310 160 380 260 340 S440 240 620 300'/%3E%3Cpath d='M380 60 C430 30 500 50 510 100 C520 150 460 170 420 160 C380 150 350 90 380 60Z'/%3E%3Cpath d='M400 80 C430 62 475 72 482 102 C488 132 452 144 428 138 C404 132 384 98 400 80Z'/%3E%3Cpath d='M420 96 C436 88 456 92 459 106 C462 120 446 124 436 122 C424 120 412 104 420 96Z'/%3E%3Cpath d='M60 80 C110 60 170 90 160 140 C150 190 70 180 50 140 C40 115 42 90 60 80Z'/%3E%3Cpath d='M80 100 C110 88 145 105 138 135 C132 160 88 158 76 134 C70 120 70 106 80 100Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 600px 400px;
}
.hero__inner { position: relative; padding: 72px 16px 56px; }
@media (min-width: 720px) { .hero__inner { padding: 120px 32px 88px; } }
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--accent); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 9vw, 88px); text-transform: uppercase; letter-spacing: .02em; max-width: 12ch; }
.hero__lead { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 56px 0 0; background: var(--line); border: 1px solid var(--line); max-width: 720px; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts div { background: var(--bg); padding: 14px 16px; }
.facts dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-size: 15px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; justify-content: center;
  padding: 13px 22px; border: 1px solid var(--accent);
  font: 600 15px/1 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #dbb55c; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); }
.btn__hint { font-size: 12px; font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.btn:focus-visible, .nav a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- секции ---------- */
.section { padding: 64px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .section { padding: 96px 0; } }
.section--alt { background: var(--bg-alt); }
.section__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 32px; }
.section__num { font-family: var(--mono); color: var(--accent); font-size: 14px; }
.section h2 { font-size: clamp(28px, 5vw, 44px); text-transform: uppercase; }
.subhead { font-size: 20px; margin: 56px 0 20px; }

/* подключение */
.address-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px;
  padding: 24px; border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--panel); margin-bottom: 40px;
}
.address-card__row { display: flex; flex-direction: column; gap: 2px; }
.address-card .btn { margin-left: auto; }
@media (max-width: 719px) { .address-card .btn { margin-left: 0; width: 100%; } }
.label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.big { font-size: 26px; color: var(--text); word-break: break-all; }

.cols { display: grid; gap: 32px; }
@media (min-width: 900px) { .cols { grid-template-columns: repeat(3, 1fr); } }
.step-block h3 { font-size: 18px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 34px; margin-bottom: 12px; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 1px; font-family: var(--mono); font-size: 13px; color: var(--accent); }
.steps em { font-style: normal; color: var(--text); border-bottom: 1px dotted var(--muted); }

.faq { margin-top: 40px; border: 1px solid var(--line); padding: 0 20px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; }
.faq ul { margin: 0 0 18px; padding-left: 20px; color: var(--muted); }
.faq li { margin-bottom: 8px; }

/* карта */
.map-intro { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .map-intro { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.prose p { color: #c3c1b7; max-width: 60ch; }
.map-figure { margin: 0; border: 1px solid var(--line); background: var(--bg); padding: 12px; color: var(--text); }
.map-figure .land path { fill: #263026; stroke: #4a5a44; stroke-width: 1.5; }
.map-figure .contours path { stroke: #4a5a44; stroke-dasharray: 3 4; }
.map-figure .pins circle { fill: var(--accent); stroke: var(--bg); stroke-width: 2; }
.map-figure .pins text { fill: var(--text); font: 12px var(--mono); }
.map-figure figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

.places { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .places { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .places { grid-template-columns: repeat(3, 1fr); } }
.place { background: var(--bg-alt); padding: 22px; }
.place h4 { font-size: 18px; margin: 10px 0 8px; }
.place p { color: var(--muted); font-size: 15px; margin: 0; }
.place__tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.tag--red { color: var(--red); }

.shots { display: grid; gap: 12px; margin-top: 40px; }
@media (min-width: 720px) { .shots { grid-template-columns: repeat(3, 1fr); } }
.shot-slot {
  aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 12px; font-size: 13px; color: var(--muted);
  border: 1px dashed var(--line);
  background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(255,255,255,.015) 10px 20px);
}
.shot-slot .mono { font-size: 12px; margin-top: 4px; }
.shot-slot img { width: 100%; height: 100%; object-fit: cover; }
.shot-slot.has-img { padding: 0; border-style: solid; }

/* правила */
.rules { display: grid; gap: 40px; margin-top: 32px; }
@media (min-width: 820px) { .rules { grid-template-columns: repeat(2, 1fr); gap: 48px 64px; } }
.rule-group h3 { font-size: 18px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.rule-group ol { margin: 0; padding-left: 22px; }
.rule-group li { margin-bottom: 10px; }
.rule-group li::marker { color: var(--accent); font-family: var(--mono); font-size: 13px; }

/* контакты */
.contact { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.contact__lead { font-size: 20px; max-width: 40ch; }
@media (max-width: 719px) { .contact .btn { width: 100%; } }

/* подвал */
.footer { padding: 32px 0 48px; font-size: 13px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; }

/* уведомление */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--panel); border: 1px solid var(--accent); color: var(--text);
  padding: 10px 18px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast, .btn { transition: none; }
}

/* =========================================================
   Кабинет, магазин, админка
   ========================================================= */
[hidden] { display: none !important; }
.small { font-size: 13px; }
.plus { color: #8fb46a; }
.minus { color: var(--red); }

.nav { align-items: center; }
.nav a[aria-current="page"] { color: var(--text); }
.nav__user { display: flex; align-items: center; gap: 16px; }
.nav .nav__admin { color: var(--accent); }
.nav .userchip { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 4px 10px; border: 1px solid var(--line); color: var(--text); }
.nav .userchip:hover { border-color: var(--accent); }
.userchip img { width: 24px; height: 24px; margin-left: -6px; }
.userchip__name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.userchip__bal { font-size: 13px; color: var(--accent); }
.nav .btn { color: var(--accent-ink); }
@media (max-width: 719px) {
  .nav { align-items: stretch; }
  .nav__user { flex-direction: column; align-items: stretch; gap: 0; }
  .nav .nav__user .userchip, .nav .nav__user .btn { margin: 12px 16px; padding: 10px 12px; justify-content: flex-start; border-top: 1px solid var(--line); }
}

.btn--small { padding: 9px 14px; font-size: 14px; }
.btn--tiny { padding: 6px 10px; font-size: 13px; font-weight: 400; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.page { padding: 48px 0 80px; min-height: 70vh; }
.page__head { margin-bottom: 32px; }
.page__head h1, .login-card h1 { font-size: clamp(30px, 6vw, 52px); text-transform: uppercase; }
.page__lead { max-width: 64ch; margin-top: 14px; }

.notice { padding: 14px 18px; border: 1px solid var(--line); border-left-width: 3px; margin-bottom: 24px; background: var(--panel); }
.notice--ok { border-left-color: #8fb46a; }
.notice--error { border-left-color: var(--red); }
.notice--info { border-left-color: var(--accent); }

/* магазин */
.shopbar { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.shopbar__bal { display: flex; align-items: baseline; gap: 12px; }
.shopbar__bal .mono { font-size: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 7px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip.is-active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

.products { display: grid; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 640px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .products { grid-template-columns: repeat(3, 1fr); } }
.products > p { padding: 24px; margin: 0; grid-column: 1 / -1; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.product__title { font-size: 20px; }
.product__desc { color: var(--muted); font-size: 15px; margin: 0; }
.product__note { font-size: 13px; color: var(--accent); margin: 0; }
.product__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.product__price { font-family: var(--display); font-size: 22px; }
.itemlist { list-style: none; margin: 4px 0; padding: 0; font-size: 13px; }
.itemlist li { padding: 2px 0; }
.itemlist li::before { content: "\2014\00a0"; color: var(--muted); }

/* модальные окна */
.modal { background: var(--panel); color: var(--text); border: 1px solid var(--line); padding: 0; width: min(560px, calc(100vw - 32px)); }
.modal::backdrop { background: rgba(0, 0, 0, .7); }
.modal__body { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.modal__title { font-size: 22px; }
.modal__body p { margin: 0; }
.modal__actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }

/* формы */
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.field--inline { flex: 0 1 auto; }
.field--grow { flex: 1; }
input, select, textarea {
  background: var(--bg); color: var(--text); border: 1px solid var(--line);
  padding: 10px 12px; font: inherit; font-size: 15px; width: 100%; border-radius: 0;
}
textarea.mono { font-family: var(--mono); font-size: 14px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }

/* кабинет */
.login-card { max-width: 560px; padding: 32px; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--panel); }
.login-card p.muted { margin: 16px 0 24px; }
.profile { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 24px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.profile__avatar { width: 72px; height: 72px; border: 1px solid var(--line); }
.profile__info { flex: 1; min-width: 200px; }
.profile__info .eyebrow { margin-bottom: 8px; }
.profile__name { font-size: clamp(26px, 5vw, 40px); word-break: break-word; }
.profile__info .mono { font-size: 13px; margin: 6px 0 0; }
.profile__bal { display: flex; flex-direction: column; align-items: flex-end; }
.profile__sum { font-size: 32px; color: var(--accent); }
@media (max-width: 719px) { .profile__bal { align-items: flex-start; } }

.cabinet-grid { display: grid; gap: 24px; margin-bottom: 24px; }
@media (min-width: 900px) { .cabinet-grid { grid-template-columns: 1.2fr 1fr; } }
.panel { border: 1px solid var(--line); background: var(--bg-alt); padding: 22px; margin-bottom: 24px; }
.cabinet-grid .panel { margin-bottom: 0; }
.panel__title { font-size: 18px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .03em; }
.topup { display: flex; flex-direction: column; gap: 16px; }
.topup .btn { align-self: flex-start; }
.topup p { margin: 0; }
.logout { margin-top: 8px; }

/* таблицы */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 400; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.st { font-size: 12px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.st--wait { color: var(--accent); }
.st--ok { color: #8fb46a; }
.st--muted { color: var(--muted); }
.st--bad { color: var(--red); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 719px) {
  .table thead { display: none; }
  .table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .table td { display: flex; gap: 12px; justify-content: space-between; border: 0; padding: 4px 0; text-align: right; }
  .table td::before { content: attr(data-label); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); text-align: left; flex: none; }
  .table td[colspan] { justify-content: flex-start; }
  .table td[colspan]::before { content: none; }
}

/* админка */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 32px; }
@media (max-width: 819px) { .stat:last-child:nth-child(odd) { grid-column: span 2; } }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(5, 1fr); } }
.stat { background: var(--bg); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.stat__v { font-size: 20px; }
.tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 12px 18px; font: inherit; cursor: pointer; white-space: nowrap; }
.tab.is-active { color: var(--text); border-bottom-color: var(--accent); }
.toolbar { display: flex; gap: 12px; align-items: flex-end; margin-bottom: 16px; flex-wrap: wrap; }

/* документ */
.doc { max-width: 760px; }
.doc h1 { font-size: clamp(30px, 6vw, 48px); text-transform: uppercase; margin-bottom: 8px; }
.doc h2 { font-size: 20px; margin: 32px 0 12px; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 8px; }

/* подвал */
.footer__links { display: flex; gap: 20px; }
.footer__links a { color: var(--muted); }
.footer__legal { flex-basis: 100%; }
.toast--error { border-color: var(--red); }

/* =========================================================
   Главная: живая сводка, неделя, сводки, схема
   ========================================================= */
.section__head { flex-direction: column; align-items: flex-start; gap: 8px; }
.section--tight { padding: 40px 0 56px; }
.section .h-small { font-size: 15px; text-transform: uppercase; letter-spacing: .12em; font-family: var(--mono); font-weight: 400; color: var(--muted); }
.headline { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.tag-soft { font: 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--green); margin-left: 6px; vertical-align: middle; }

.hero__grid { position: relative; display: grid; gap: 40px; padding: 64px 16px 56px; align-items: end; }
@media (min-width: 720px) { .hero__grid { padding: 96px 32px 72px; } }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1fr 380px; gap: 56px; } }
.hero h1 { max-width: 11ch; }
.hero__lead { color: #b9b7ad; }

/* табло */
.board {
  position: relative; background: rgba(24, 27, 24, .92); border: 1px solid var(--line);
  padding: 18px 20px 20px; font-size: 15px;
}
.board::before, .board::after {
  content: ""; position: absolute; width: 12px; height: 12px; border-color: var(--accent); border-style: solid;
}
.board::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.board::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.board__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.board__title { font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-size: 14px; color: var(--accent); }
.board__checked { font-size: 11px; color: var(--muted); }
.board__rows { margin: 0; }
.board__row { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.board__row dt { font: 11px/1.9 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.board__row dd { margin: 0; }
#st-restart { font-size: 20px; letter-spacing: .04em; }
.raid { font-weight: 600; }
.raid--open { color: var(--red); }
.board__addr {
  margin-top: 14px; width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: var(--bg); border: 1px solid var(--line); color: var(--text); padding: 10px 12px; font: inherit; cursor: pointer;
}
.board__addr:hover { border-color: var(--accent); }
.board__copy { font: 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); margin-right: 8px; vertical-align: 1px; }
.dot--on { background: var(--green); box-shadow: 0 0 0 0 rgba(143, 180, 106, .6); animation: ping 2.4s infinite; }
.dot--off { background: var(--red); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(143, 180, 106, .55); } 70% { box-shadow: 0 0 0 9px rgba(143, 180, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(143, 180, 106, 0); } }

/* сводки (лента) */
.newsstrip { display: grid; gap: 24px; }
@media (min-width: 820px) { .newsstrip { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.dispatch { border-top: 2px solid var(--line); padding-top: 14px; }
.dispatch__meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.dispatch__tag { font: 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; padding: 2px 6px; border: 1px solid currentColor; color: var(--accent); }
.tag--вайп { color: var(--red); }
.tag--обновление { color: var(--green); }
.tag--техработы { color: var(--fog); }
.tag--новость { color: var(--accent); }
.dispatch__title { font-size: 19px; margin-bottom: 8px; }
.dispatch__title a { text-decoration: none; }
.dispatch__title a:hover { color: var(--accent); }
.dispatch__body { color: #b9b7ad; font-size: 15px; margin-bottom: 8px; }
.dispatch__sign { font-style: italic; color: var(--muted); font-size: 14px; margin: 0; }

/* подключение */
.connect { display: grid; gap: 32px; }
@media (min-width: 900px) { .connect { grid-template-columns: 340px 1fr; gap: 48px; } }
.connect__card { display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--panel); align-self: start; }
.connect__card .btn { width: 100%; }
.connect__card p { margin: 0; }
.connect__ways { display: grid; gap: 32px; }
@media (min-width: 640px) { .connect__ways { grid-template-columns: 1fr 1fr; } }

/* режим и неделя */
.how { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .how { grid-template-columns: 1fr 1.15fr; gap: 56px; } }
.facts-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.facts-list li { background: var(--bg-alt); padding: 12px 14px; display: flex; flex-direction: column; }
.facts-list .mono { font-size: 17px; color: var(--text); }
.facts-list li > span:last-child { font-size: 13px; color: var(--muted); }

.week { margin: 0; }
.week__grid { display: grid; grid-template-columns: 26px repeat(24, 1fr); gap: 2px; }
.week__corner { }
.week__hour { font-size: 10px; color: var(--muted); }
.week__day { font-size: 11px; color: var(--muted); line-height: 18px; }
.week__day.is-today { color: var(--accent); }
.week__cell { height: 18px; background: #1d211d; position: relative; }
.week__cell.is-raid { background: rgba(181, 83, 60, .55); }
.week__cell.is-restart::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 2px; background: var(--fog); }
.week__cell.is-now { outline: 2px solid var(--accent); outline-offset: -1px; z-index: 1; }
.week__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.lg { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; }
.lg--raid { background: rgba(181, 83, 60, .55); }
.lg--restart { width: 2px; background: var(--fog); margin-right: 10px; }
.lg--now { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (max-width: 520px) { .week__grid { gap: 1px; grid-template-columns: 22px repeat(24, 1fr); } .week__cell { height: 14px; } .week__day { line-height: 14px; font-size: 10px; } }

/* схема */
.atlas { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .atlas { grid-template-columns: 1.1fr 1fr; gap: 48px; } }
.atlas__map { margin: 0; border: 1px solid var(--line); background: #0f1210; padding: 10px; color: var(--text); }
.atlas__map figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.atlas .land path { fill: #222b22; stroke: #485845; stroke-width: 1.5; }
.atlas .contours path { stroke: #3a4838; stroke-dasharray: 3 4; }
.route { fill: none; stroke: var(--fog); stroke-width: 1.2; stroke-dasharray: 2 5; opacity: .7; }
.rig rect, .rig path { fill: none; stroke: var(--muted); stroke-width: 1.2; }
.pin { cursor: pointer; }
:root { --z-safe: var(--green); --z-pve: var(--accent); --z-dungeon: #9a86c4; --z-pvp: var(--red); }
.pin circle:not(.pin__ring):not(.pin__area) { fill: var(--z-pve); stroke: #0f1210; stroke-width: 2; }
.pin.zone-safe circle:not(.pin__ring):not(.pin__area) { fill: var(--z-safe); }
.pin.zone-dungeon circle:not(.pin__ring):not(.pin__area) { fill: var(--z-dungeon); }
.pin.zone-pvp circle:not(.pin__ring):not(.pin__area) { fill: var(--z-pvp); }
.pin__area { fill: rgba(181, 83, 60, .12); stroke: var(--z-pvp); stroke-width: 1; stroke-dasharray: 3 3; }
.pin.zone-safe .pin__area { fill: rgba(143, 180, 106, .1); stroke: var(--z-safe); }
.pin__ring { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0; }
.pin.is-active .pin__ring { opacity: 1; }
.pin text { fill: var(--muted); font: 12px var(--mono); pointer-events: none; }
.pin.is-active text, .pin:hover text { fill: var(--text); }

.placecard { border: 1px solid var(--line); border-left: 3px solid var(--z-pve); background: var(--bg-alt); padding: 20px 22px; min-height: 170px; }
.placecard--safe { border-left-color: var(--z-safe); }
.placecard--dungeon { border-left-color: var(--z-dungeon); }
.placecard--pvp { border-left-color: var(--z-pvp); }
.placecard .placecard__note { margin-top: 12px; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.zonetag { font: 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; padding: 2px 6px; border: 1px solid currentColor; }
.zonetag--safe { color: var(--z-safe); } .zonetag--pve { color: var(--z-pve); } .zonetag--dungeon { color: var(--z-dungeon); } .zonetag--pvp { color: var(--z-pvp); }
.mk { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 0; background: var(--z-pve); }
.mk--safe { background: var(--z-safe); } .mk--dungeon { background: var(--z-dungeon); } .mk--pvp { background: var(--z-pvp); }
.maplegend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 6px; color: var(--text); }

/* режим: зоны вместо сетки рейдов */
.nopvp__zones { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.zone { background: var(--bg); padding: 14px 16px 14px 18px; display: flex; flex-direction: column; gap: 2px; border-left: 3px solid var(--z-pve); }
.zone--safe { border-left-color: var(--z-safe); } .zone--dungeon { border-left-color: var(--z-dungeon); } .zone--pvp { border-left-color: var(--z-pvp); }
.zone__name { font-family: var(--display); font-size: 18px; }
.zone__rule { font-size: 14px; color: var(--muted); }
.nopvp__raid { margin: 16px 0 0; padding: 12px 16px; border: 1px dashed var(--line); }

/* модпак */
.modpack { padding: 12px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.modpack p { margin: 4px 0 0; }
.modpack .mono { font-size: 15px; color: var(--accent); white-space: nowrap; }
.placecard__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.placecard__name { font-size: 26px; margin: 10px 0 10px; }
.placecard p { color: #c3c1b7; margin: 0; }
.risk { display: inline-flex; gap: 3px; }
.risk i { width: 14px; height: 6px; background: var(--line); }
.risk i.on { background: var(--red); }
.risk--sm i { width: 9px; height: 4px; }
.placelist { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line); }
.placelist button { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--muted); padding: 10px 2px; font: inherit; font-size: 15px; cursor: pointer; text-align: left; }
.placelist button:hover, .placelist button.is-active { color: var(--text); }
.placelist button.is-active { padding-left: 10px; box-shadow: inset 2px 0 0 var(--accent); }

.rules__lead { max-width: 62ch; }
.rules__scale { margin-top: 32px; padding-top: 16px; border-top: 1px dashed var(--line); }
.contact .label { display: block; margin-bottom: 10px; }

/* журнал сводок */
.journal { margin-top: 24px; border-top: 1px solid var(--line); }
.entry { display: grid; gap: 12px 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .entry { grid-template-columns: 120px 1fr; } }
.entry__date { display: flex; flex-direction: column; }
@media (max-width: 719px) { .entry__date { flex-direction: row; gap: 10px; align-items: baseline; } }
.entry__day { font-family: var(--display); font-size: 44px; line-height: 1; color: var(--accent); }
.entry__title { font-size: 26px; margin: 12px 0 12px; }
.entry__body .prose p { max-width: 68ch; color: #c3c1b7; }

@media (prefers-reduced-motion: reduce) { .dot--on { animation: none; } }

/* Фото в шапке главной: туманный лес, затемнён слева, чтобы читался текст */
.home .hero {
  background-color: var(--bg);
  background-image:
    linear-gradient(90deg, rgba(18, 20, 18, .94) 0%, rgba(18, 20, 18, .7) 45%, rgba(18, 20, 18, .15) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(18, 20, 18, 0) 35%),
    url("images/hero.jpg");
  background-size: cover;
  background-position: center 40%;
}
.home .hero__bg { opacity: .35; }
@media (max-width: 959px) {
  .home .hero { background-image: linear-gradient(180deg, rgba(18, 20, 18, .7) 0%, rgba(18, 20, 18, .92) 55%, var(--bg) 100%), url("images/hero.jpg"); background-position: 30% top; background-size: auto 520px; background-repeat: no-repeat; }
}

/* галерея */
.gallery { display: grid; gap: 12px; margin-top: 40px; }
@media (min-width: 720px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery__item--wide { grid-column: 1 / -1; } }
.gallery__item { margin: 0; position: relative; overflow: hidden; border: 1px solid var(--line); background: #0f1210; }
.gallery__item img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(.85) contrast(1.03); transition: transform .6s ease, filter .6s ease; }
.gallery__item--wide img { aspect-ratio: 21 / 9; }
.gallery__item:hover img { transform: scale(1.025); filter: saturate(1) contrast(1.03); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px; font-size: 14px; color: #e4e1d6;
  background: linear-gradient(0deg, rgba(10, 12, 10, .85), rgba(10, 12, 10, 0));
}
@media (max-width: 719px) {
  .gallery__item figcaption { position: static; background: none; padding: 10px 12px 12px; color: var(--muted); }
  .gallery__item--wide img { aspect-ratio: 16 / 9; }
}
.credit { font-size: 12px; color: var(--muted); margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .gallery__item img { transition: none; } }

/* квесты и торговцы */
.eco-tab > .chips { margin-bottom: 28px; }
.eco-legend { margin: 0 0 24px; }
.chain, .tzone { margin-bottom: 44px; }
.chain__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.chain__title { font-size: 24px; text-transform: uppercase; }
.chain__head p { margin: 0; }
.quests { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.quest { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--line); }
.quest:hover { border-left-color: var(--accent); }
.quest__num { color: var(--accent); font-size: 14px; padding-top: 3px; }
.quest__body { min-width: 0; }
.quest__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.quest__title { font-size: 19px; margin-right: 4px; }
.quest__task { margin: 6px 0 0; }
.quest__text { margin: 6px 0 0; font-size: 14px; font-style: italic; }
.quest__facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 12px 0 0; align-items: baseline; }
.quest__facts dd { margin: 0; min-width: 0; }
.quest__reward { display: flex; flex-wrap: wrap; gap: 6px; }
.quest__money { color: var(--accent); }
.quest__item { padding: 0 6px; border: 1px solid var(--line); overflow-wrap: anywhere; }
.qbadge { font: 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; padding: 2px 6px; border: 1px solid currentColor; color: var(--fog); }
.qbadge--group { color: var(--green); }
.qbadge--pvp { color: var(--red); }
.tcats { list-style: none; margin: 4px 0 0; padding: 0; font-size: 15px; }
.tcats li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.tcats li:last-child { border-bottom: 0; }
.tcats li > .mono { text-align: right; white-space: nowrap; }
@media (max-width: 520px) { .quest { grid-template-columns: 1fr; gap: 4px; padding: 14px; } }
