:root {
--bg: #0f0f0f;
--bg2: #161616;
--panel: #1b1b1b;
--text: #d6d1c7;
--muted: #9e978a;
--line: #343434;
--link: #c9c2b2;
--link-hover: #f0ead7;
--accent: #7d776a;
--warn: #b8a58c;
}

* {
  box-sizing: border-box;
  }

html {
scroll-behavior: smooth;
}

body {
margin: 0;
background: linear-gradient(to bottom, #0c0c0c, #121212 220px, #0f0f0f);
color: var(--text);
font-family: Georgia, "Times New Roman", serif;
line-height: 1.6;
letter-spacing: 0.1px;
}

/* лёгкий эффект "старого экрана" */
body::before {
content: "";
position: fixed;
inset: 0;
pointer-events: none;
opacity: 0.09;
background-image:
repeating-linear-gradient(
to bottom,
rgba(255,255,255,0.05) 0px,
rgba(255,255,255,0.05) 1px,
transparent 2px,
transparent 4px
);
}

.wrapper {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

header {
padding: 38px 0 24px;
border-bottom: 1px solid var(--line);
}

.topline {
display: flex;
justify-content: space-between;
gap: 16px;
flex-wrap: wrap;
font-size: 0.9rem;
color: var(--muted);
text-transform: uppercase;
letter-spacing: 1.6px;
}

h1 {
margin: 16px 0 8px;
font-size: clamp(2.5rem, 7vw, 4.9rem);
line-height: 0.95;
letter-spacing: 3px;
text-transform: uppercase;
color: #ece7da;
}

.subtitle {
color: var(--muted);
max-width: 720px;
}

nav {
margin-top: 18px;
display: flex;
gap: 18px;
flex-wrap: wrap;
}

nav a,
a {
color: var(--link);
text-decoration: none;
border-bottom: 1px solid transparent;
}

nav a:hover,
a:hover {
color: var(--link-hover);
border-color: var(--link-hover);
}

main {
padding: 28px 0 56px;
}

section,
.panel {
background: rgba(255,255,255,0.02);
border: 1px solid var(--line);
padding: 22px;
margin: 0 0 20px;
}

.grid {
display: grid;
grid-template-columns: 1.3fr 0.9fr;
gap: 20px;
}

@media (max-width: 820px) {
.grid {
grid-template-columns: 1fr;
}
}

h2 {
margin: 0 0 12px;
font-size: 1.25rem;
letter-spacing: 1px;
text-transform: uppercase;
color: #eee8dc;
}

h3 {
margin: 18px 0 8px;
font-size: 1rem;
text-transform: uppercase;
color: #d8d1c3;
letter-spacing: 1px;
}

p {
margin: 0 0 14px;
}

ul {
margin: 0;
padding-left: 20px;
}

li {
margin: 0 0 8px;
}

.meta {
color: var(--muted);
font-size: 0.95rem;
}

.note,
.ghost,
.fragment {
color: var(--muted);
font-style: italic;
}

.fragment {
border-left: 2px solid var(--accent);
padding-left: 12px;
margin: 14px 0;
}

.members li {
margin-bottom: 10px;
}

.badge {
display: inline-block;
padding: 3px 8px;
border: 1px solid var(--accent);
color: var(--warn);
font-size: 0.82rem;
letter-spacing: 0.8px;
text-transform: uppercase;
}

.smallcaps {
text-transform: uppercase;
letter-spacing: 1.2px;
color: var(--muted);
font-size: 0.9rem;
}

.terminal {
background: #101010;
border: 1px dashed #4a4a4a;
padding: 14px;
font-family: "Courier New", monospace;
color: #cfc7b8;
font-size: 0.94rem;
white-space: pre-wrap;
}

.footer {
border-top: 1px solid var(--line);
padding: 20px 0 40px;
color: var(--muted);
font-size: 0.92rem;
}

.return {
display: inline-block;
margin-bottom: 18px;
}

.hr {
border-top: 1px solid var(--line);
margin: 18px 0;
}

/* почти незаметная "скрытая ссылка" */
.hidden-link {
color: #6a665d;
}

.hidden-link:hover {
color: #918b7d;
}

.site-header {
  margin: 0 0 18px;
  border: 1px solid var(--line);
  background: linear-gradient(to bottom, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  overflow: hidden;
}

.site-header-top {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.site-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0d0d;
  border-right: 1px solid var(--line);
  min-height: 96px;
  text-decoration: none;
}

.site-mark img {
  width: 42px;
  height: 42px;
  display: block;
  image-rendering: auto;
}

.site-banner {
  position: relative;
  min-height: 160px;
  background: #111;
}

.site-banner-image {
  position: absolute;
  inset: 0;
  opacity: 0.72;
}

.site-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  filter: grayscale(100%) contrast(105%);
}

.site-banner-text {
  position: relative;
  z-index: 1;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 160px;
  background: linear-gradient(
  to bottom,
  rgba(0,0,0,0.08),
  rgba(0,0,0,0.18) 45%,
  rgba(0,0,0,0.38)
);
}

.site-banner-title {
  font-size: 1.12rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ece7da;
  margin-bottom: 2px;
}

.site-banner-subtitle {
  color: #c4bfb4;
  font-size: 0.8rem;
  letter-spacing: 0.4px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  background: rgba(255,255,255,0.015);
}

.nav-tile {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid #4a463f;
  background: linear-gradient(to bottom, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  color: #ddd6c7;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  min-width: 96px;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.nav-tile:hover {
  color: #f0ead7;
  border-color: #8a8476;
  background: linear-gradient(to bottom, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
}

@media (max-width: 720px) {
  .site-header-top {
    grid-template-columns: 1fr;
  }

  .site-mark {
    min-height: 72px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .site-mark img {
    width: 36px;
    height: 36px;
  }

  .site-banner,
  .site-banner-text {
    min-height: 78px;
  }

  .site-nav {
    gap: 6px;
  }

  .nav-tile {
    min-width: 0;
    flex: 1 1 calc(50% - 6px);
  }
}
.nav-tile.active {
  border-color: #b0a88f;
  color: #f0ead7;
  background: rgba(255,255,255,0.06);
}
