:root {
  --bg: #000;
  --fg: #d8d8d8;
  --dim: #a71c23;
  --mid: #6b6b6b;
  --line: #121212;
  --accent: #ff2a35;
  --mono: "IBM Plex Mono", "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }

/* ---------- Экран ---------- */
.screen {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  padding: 22px clamp(16px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.screen::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 25%, transparent 80%);
}

.screen::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: min(60vw, 620px);
  height: min(60vw, 620px);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 14%, transparent), transparent 62%);
  pointer-events: none;
  animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: .75; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.06); }
}

/* ---------- Верх ---------- */
header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dim);
}

.logo { display: inline-flex; align-items: center; height: 40px; }
.logo img { height: 40px; width: auto; }

.meta { display: flex; gap: clamp(14px, 3vw, 32px); align-items: center; }
.meta .live { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.meta .live::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

/* ---------- Центр ---------- */
.center {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  gap: 18px;
}

.hero-figure {
  position: relative;
  display: block;
  line-height: 0;
}

.hero-figure::after {
  content: "";
  position: absolute;
  inset: -3% -2%;
  background: radial-gradient(ellipse at 50% 46%, transparent 62%, rgba(0,0,0,.78) 100%);
  pointer-events: none;
}

.ghost-img {
  display: block;
  height: min(56vh, 520px);
  width: auto;
  max-width: min(88vw, 520px);
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  filter: saturate(.98) drop-shadow(0 0 28px rgba(255, 42, 53, .10));
  -webkit-mask-image: linear-gradient(to bottom, #000 0 95%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0 95%, transparent 100%);
  animation: ghostIn 1.2s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes ghostIn {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

.code {
  font-size: clamp(1.42rem, 1.1vw, .85rem);
  letter-spacing: .16em;
  color: var(--mid);
  min-height: 1.4em;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
}
.code .typed { color: var(--fg); }
.code .caret {
  display: inline-block;
  width: .55em;
  height: 1em;
  background: var(--accent);
  vertical-align: -.15em;
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Ссылка ---------- */
.nav { margin-top: 4px; }

.nav a,
.nav button {
  position: relative;
  font-size: clamp(.78rem, 1.1vw, .9rem);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--mid);
  padding: 6px 4px;
  cursor: pointer;
  transition: color .25s;
  background: none;
  border: none;
}
.nav a::before,
.nav button::before {
  content: ">";
  color: var(--accent);
  margin-right: 8px;
  opacity: 0;
  transition: opacity .25s;
}
.nav a:hover,
.nav button:hover { color: var(--fg); }
.nav a:hover::before,
.nav button:hover::before { opacity: 1; }

/* ---------- Низ ---------- */
footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
}

.footer-links { display: flex; flex-wrap: wrap; row-gap: 6px; gap: clamp(12px, 2.4vw, 26px); }
.footer-links a { transition: color .25s; }
.footer-links a:hover { color: var(--accent); }

/* ---------- Адаптив ---------- */
@media (max-width: 620px) {
  .screen { padding: 16px; }
.ghost-img { height: min(48vh, 380px); max-width: 92vw; }
  .center.has-latest .ghost-img { height: min(38vh, 300px); }
  .code { font-size: clamp(.72rem, 3.2vw, .86rem); letter-spacing: .04em; }
  .meta .hide-sm { display: none; }
  .logo, .logo img { height: 32px; }
  footer { font-size: .58rem; letter-spacing: .14em; flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .code .caret { display: none; }
}

/* ---------- Кнопка меню в шапке ---------- */
.hdr-menu {
  background: none;
  border: 1px solid var(--line);
  padding: 5px 9px;
  color: var(--mid);
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.hdr-menu:hover,
.hdr-menu:focus-visible { color: var(--fg); border-color: #333; outline: none; }

/* ---------- Оверлей-меню ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .9);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.menu-overlay.open { opacity: 1; visibility: visible; }

.menu-panel {
  width: min(640px, 100%);
  max-height: min(86vh, 720px);
  overflow-y: auto;
  border: 1px solid #1e1e1e;
  background: #050505;
  padding: 20px 20px 16px;
  box-shadow: 0 0 0 1px #0a0a0a, 0 0 70px rgba(255, 42, 53, .08);
  transform: translateY(8px);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
}
.menu-overlay.open .menu-panel { transform: none; opacity: 1; }

.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mid);
}

.menu-list { list-style: none; margin: 6px 0 0; counter-reset: menu; }
.menu-list li { border-bottom: 1px dashed var(--line); counter-increment: menu; }
.menu-list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 4px;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color .18s, background .18s;
}
.menu-list a::before {
  content: ">";
  color: var(--accent);
  opacity: .35;
  transition: opacity .18s;
}
.menu-list a::after {
  content: "[" counter(menu, decimal-leading-zero) "]";
  margin-left: auto;
  color: #2f2f2f;
  font-size: .64rem;
  letter-spacing: .1em;
}
.menu-list a:hover,
.menu-list a:focus-visible { color: #fff; background: #0b0b0b; outline: none; }
.menu-list a:hover::before,
.menu-list a:focus-visible::before { opacity: 1; }
.menu-list li.active a { color: var(--accent); }
.menu-list li.active a::before { opacity: 1; }

.menu-sub {
  margin-top: 16px;
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips a {
  border: 1px solid var(--line);
  padding: 3px 9px;
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color .2s, border-color .2s;
}
.chips a:hover { color: var(--fg); border-color: #333; }
.chips .count { color: var(--dim); margin-left: 4px; }

.menu-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid #1b1b1b;
  padding: 8px 10px;
}
.menu-search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: var(--fg);
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .04em;
}
.menu-search input::placeholder { color: #3a3a3a; }
C:\Users\MAPC2012

/* ---------- Последние записи на главной ---------- */
.latest {
  width: min(560px, 86vw);
  margin-top: 4px;
  text-align: left;
  font-size: .68rem;
}
.latest-h {
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}
.latest ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.latest a { display: flex; gap: 10px; color: var(--mid); letter-spacing: .04em; transition: color .2s; }
.latest a:hover { color: var(--fg); }
.latest .d { color: var(--dim); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.latest .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 620px) {
  .latest { font-size: .62rem; }
}

/* когда включён список последних записей — уменьшаем портрет */
.center.has-latest .ghost-img { height: min(46vh, 400px); }