/* ============ RESET & TOKENS ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #07070c;
  --bg-2:      #0c0c14;
  --surface:   #12121c;
  --surface-2: #1a1a28;
  --border:    #232338;
  --border-hi: #35355a;
  --text:      #e9e9f2;
  --muted:     #8a8aa8;
  --dim:       #55557a;
  --cyan:      #00e5ff;
  --magenta:   #ff2e88;
  --violet:    #8b5cf6;
  --yellow:    #ffd60a;
  --radius:    14px;
  --radius-lg: 20px;
  --container: 1240px;
  --shadow:    0 20px 60px rgba(0,0,0,.5);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

/* фоновая текстура-шум */
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ DISCLAIMER BAR ============ */
.disclaimer {
  position: relative; z-index: 2;
  background: linear-gradient(90deg, rgba(255,214,10,.08), rgba(255,46,136,.08));
  border-bottom: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; letter-spacing: .04em;
  color: var(--muted);
}
.disclaimer .container {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; justify-content: center; text-align: center; flex-wrap: wrap;
}
.disclaimer b { color: var(--yellow); font-weight: 600; }
.disclaimer .dot { color: var(--magenta); }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,7,12,.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Orbitron', sans-serif; font-weight: 900; letter-spacing: .06em; font-size: 15px; }
.logo-mark { color: var(--cyan); font-size: 20px; animation: pulse 3s infinite ease-in-out; text-shadow: 0 0 14px var(--cyan); }
.logo-text em { font-style: normal; background: linear-gradient(90deg, var(--cyan), var(--magenta)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

.nav { display: flex; gap: 28px; font-size: 14px; }
.nav a { color: var(--muted); position: relative; transition: color .2s; }
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--magenta)); transition: width .25s;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

@media (max-width: 640px) { .nav { display: none; } }

/* ============ HERO ============ */
.hero { position: relative; padding: 90px 0 70px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(0,229,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,.055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}
.hero::after {
  content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 500px; z-index: -2; pointer-events: none;
  background: radial-gradient(ellipse, rgba(139,92,246,.22), transparent 65%);
  filter: blur(40px);
}
.hero-inner { max-width: 900px; }
.hero-kicker {
  font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: .12em;
  color: var(--cyan); margin-bottom: 22px; text-transform: uppercase;
  text-shadow: 0 0 18px rgba(0,229,255,.45);
}
.hero-title {
  font-family: 'Orbitron', sans-serif; font-weight: 900;
  font-size: clamp(36px, 6.5vw, 78px); line-height: 1.02; letter-spacing: -.02em;
  margin-bottom: 26px;
}
.hero-title .grad {
  background: linear-gradient(100deg, var(--cyan), var(--violet) 45%, var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 30px rgba(139,92,246,.4));
}
.hero-sub { font-size: clamp(15px, 1.6vw, 18px); color: var(--muted); max-width: 620px; margin-bottom: 44px; }

.hero-stats { display: flex; gap: 46px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat b {
  font-family: 'Orbitron', sans-serif; font-size: 30px; font-weight: 900;
  background: linear-gradient(180deg, #fff, #7f7fae);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }

/* ============ TOOLBAR ============ */
.news-section { padding: 60px 0 80px; }
.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; margin-bottom: 34px;
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  font-size: 13px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted); background: var(--surface);
  transition: all .2s; white-space: nowrap;
}
.filter-btn:hover { border-color: var(--border-hi); color: var(--text); }
.filter-btn.active {
  color: #05050a; border-color: transparent; font-weight: 600;
  background: linear-gradient(100deg, var(--cyan), var(--violet));
  box-shadow: 0 0 22px rgba(0,229,255,.25);
}

.search-wrap { position: relative; }
.search-wrap::before {
  content: '⌕'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--dim); font-size: 16px; pointer-events: none;
}
#search {
  width: 260px; padding: 10px 16px 10px 36px; font-size: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  color: var(--text); outline: none; transition: all .2s;
}
#search::placeholder { color: var(--dim); }
#search:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,229,255,.1); width: 300px; }

@media (max-width: 640px) {
  #search, #search:focus { width: 100%; }
  .search-wrap { width: 100%; }
}

/* ============ GRID / CARDS ============ */
.grid {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer; position: relative;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s;
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(20px);
  animation: cardIn .5s forwards;
}
@keyframes cardIn { to { opacity: 1; transform: none; } }

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hi);
  box-shadow: 0 22px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(0,229,255,.12);
}
.card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(160deg, rgba(0,229,255,.14), transparent 40%, rgba(255,46,136,.12));
  opacity: 0; transition: opacity .3s;
}
.card:hover::after { opacity: 1; }

.card-cover { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-cover img { transform: scale(1.06); }

.card-cat {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(7,7,12,.8); backdrop-filter: blur(8px);
  border: 1px solid var(--border-hi); color: var(--cyan);
}
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-date { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--dim); letter-spacing: .05em; }
.card h3 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.card p { font-size: 14px; color: var(--muted); flex: 1; }
.card-more {
  font-size: 13px; font-weight: 600; color: var(--cyan); margin-top: 6px;
  display: inline-flex; align-items: center; gap: 6px; transition: gap .25s;
}
.card:hover .card-more { gap: 12px; }

/* ============ EMPTY ============ */
.empty { text-align: center; padding: 80px 0; color: var(--muted); }
.empty-icon { font-size: 40px; color: var(--dim); margin-bottom: 16px; }
.empty code {
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 3px 8px; border-radius: 6px; color: var(--cyan);
}
.empty-hint { margin-top: 10px; font-size: 13px; color: var(--dim); }

/* ============ ABOUT ============ */
.about-section { padding: 80px 0 100px; border-top: 1px solid var(--border); background: var(--bg-2); }
.about-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; }
.about-text h2 {
  font-family: 'Orbitron', sans-serif; font-size: clamp(26px, 3vw, 38px);
  margin-bottom: 20px; letter-spacing: -.01em;
}
.about-text p { color: var(--muted); margin-bottom: 16px; max-width: 620px; }
.about-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 8px 24px; box-shadow: var(--shadow);
}
.about-card-row {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 16px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.about-card-row:last-child { border-bottom: none; }
.about-card-row span { color: var(--dim); }
.about-card-row b { font-weight: 600; text-align: right; }

@media (max-width: 820px) { .about-inner { grid-template-columns: 1fr; gap: 34px; } }

/* ============ FOOTER ============ */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; background: var(--bg); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.footer-logo { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 14px; letter-spacing: .08em; color: var(--text); margin-bottom: 8px; }
.footer-note { font-size: 13px; color: var(--dim); max-width: 480px; }
.footer-note b { color: var(--yellow); font-weight: 600; }
.footer-copy { font-size: 13px; color: var(--dim); font-family: 'JetBrains Mono', monospace; }

/* ============ ARTICLE VIEW (полная страница) ============ */
.article-view {
  min-height: calc(100vh - 70px);
  padding: 40px 0 100px;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(139,92,246,.12), transparent 70%),
    var(--bg);
}
.article-container { max-width: 900px; }

.back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-size: 13px; font-weight: 500;
  margin-bottom: 30px; transition: all .2s;
}
.back-btn:hover { border-color: var(--border-hi); color: var(--text); }
.back-btn span { color: var(--cyan); }

.article { animation: articleIn .4s cubic-bezier(.2,.9,.3,1); }
@keyframes articleIn { from { opacity: 0; transform: translateY(16px); } }

.article-head { margin-bottom: 26px; }
.article-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; font-size: 12px; font-family: 'JetBrains Mono', monospace; color: var(--dim); flex-wrap: wrap; }
.article-cat {
  font-family: 'Inter', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  font-size: 11px; padding: 5px 11px; border-radius: 999px;
  color: var(--cyan); background: rgba(0,229,255,.08); border: 1px solid rgba(0,229,255,.28);
}
.article-title {
  font-family: 'Orbitron', sans-serif; font-weight: 900;
  font-size: clamp(26px, 4vw, 42px); line-height: 1.12; letter-spacing: -.015em;
}
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.tag {
  font-size: 12px; padding: 4px 11px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
}

/* ============ COMPARE SLIDER ============ */
.compare {
  position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--border-hi);
  margin: 30px 0; user-select: none; background: var(--bg-2);
  --pos: 50%;
}
.compare[hidden] { display: none; }
.compare-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare-label {
  position: absolute; bottom: 14px; z-index: 3; pointer-events: none;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; letter-spacing: .12em;
  padding: 5px 11px; border-radius: 6px;
  background: rgba(7,7,12,.78); backdrop-filter: blur(6px);
  border: 1px solid var(--border-hi); color: var(--text);
}
.compare-label-l { left: 14px; }
.compare-label-r { right: 14px; color: var(--cyan); border-color: rgba(0,229,255,.35); }

.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 2px; background: linear-gradient(180deg, var(--cyan), var(--magenta));
  transform: translateX(-50%); z-index: 4; pointer-events: none;
  box-shadow: 0 0 20px rgba(0,229,255,.6);
}
.compare-handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--cyan);
  box-shadow: 0 0 24px rgba(0,229,255,.5), inset 0 0 12px rgba(0,229,255,.2);
}
.compare-handle span::before {
  content: '⟷'; position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--cyan); font-size: 18px;
}
.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; z-index: 5; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent;
}

/* ============ ARTICLE BODY ============ */
.article-body { font-size: 17px; line-height: 1.75; color: #cfcfe0; }
.article-body p { margin-bottom: 18px; }
.article-body h3 {
  font-family: 'Orbitron', sans-serif; font-size: 20px; margin: 32px 0 14px; color: var(--text);
}
.article-body ul { margin: 0 0 18px 22px; }
.article-body li { margin-bottom: 8px; color: var(--muted); }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body em { color: var(--cyan); font-style: normal; }
.article-body blockquote {
  border-left: 3px solid var(--violet); padding: 6px 0 6px 20px;
  margin: 22px 0; color: var(--muted); font-style: italic;
}

.article-foot { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border); }
.article-src { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--dim); }
.article-disclaimer {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 18px; padding: 12px 14px;
  background: rgba(255,214,10,.06); border: 1px solid rgba(255,214,10,.22);
  border-radius: 10px; font-size: 13px; color: var(--muted); line-height: 1.5;
}
.article-disclaimer b { color: var(--yellow); font-weight: 600; }

/* ============ COMMENTS ============ */
.comments {
  margin-top: 60px; padding-top: 40px;
  border-top: 1px solid var(--border);
}
.comments-title {
  font-family: 'Orbitron', sans-serif; font-size: 22px; font-weight: 900;
  margin-bottom: 22px; display: flex; align-items: center; gap: 12px;
}
.comments-count {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--cyan);
}

.comment-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  margin-bottom: 30px; transition: border-color .2s;
}
.comment-form:focus-within { border-color: var(--border-hi); }

.comment-form-row { margin-bottom: 10px; }
.comment-input, .comment-textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); outline: none;
  font-family: inherit; font-size: 14px; transition: all .2s;
}
.comment-input { padding: 10px 14px; }
.comment-textarea {
  padding: 12px 14px; min-height: 100px; resize: vertical;
  line-height: 1.55;
}
.comment-input::placeholder, .comment-textarea::placeholder { color: var(--dim); }
.comment-input:focus, .comment-textarea:focus {
  border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,229,255,.08);
}

.comment-form-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-top: 12px; flex-wrap: wrap;
}
.comment-hint { font-size: 12px; color: var(--dim); font-family: 'JetBrains Mono', monospace; }
.comment-hint.error { color: var(--magenta); }
.comment-hint.success { color: var(--cyan); }

.comment-submit {
  padding: 10px 22px; border-radius: 999px;
  background: linear-gradient(100deg, var(--cyan), var(--violet));
  color: #05050a; font-weight: 600; font-size: 14px;
  transition: all .2s; box-shadow: 0 0 22px rgba(0,229,255,.2);
}
.comment-submit:hover { box-shadow: 0 0 28px rgba(0,229,255,.4); }
.comment-submit:disabled {
  opacity: .5; cursor: not-allowed; box-shadow: none;
}

.comments-list { display: flex; flex-direction: column; gap: 14px; }

.comment {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px;
  animation: commentIn .3s ease-out;
}
@keyframes commentIn { from { opacity: 0; transform: translateY(-8px); } }

.comment-head {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 8px; flex-wrap: wrap;
}
.comment-author {
  font-weight: 600; color: var(--cyan); font-size: 14px;
}
.comment-date {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--dim);
}
.comment-text {
  font-size: 14.5px; color: #cfcfe0; line-height: 1.6;
  white-space: pre-wrap; word-wrap: break-word;
}

.comments-empty {
  text-align: center; padding: 30px 0;
  color: var(--dim); font-size: 14px;
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
/* ============ LEGAL PAGE ============ */
.legal-page {
  min-height: calc(100vh - 70px);
  padding: 40px 0 100px;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(139,92,246,.12), transparent 70%),
    var(--bg);
}
.legal-container { max-width: 820px; }

.legal-head { margin: 20px 0 50px; }
.legal-kicker {
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 20px;
  text-shadow: 0 0 18px rgba(0,229,255,.45);
}
.legal-title {
  font-family: 'Orbitron', sans-serif; font-weight: 900;
  font-size: clamp(28px, 4.5vw, 48px); line-height: 1.1;
  letter-spacing: -.015em; margin-bottom: 20px;
}
.legal-lead {
  font-size: 17px; color: var(--muted); line-height: 1.65;
  max-width: 640px;
}

.legal-section {
  margin-bottom: 42px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--border);
}
.legal-section:last-of-type { border-bottom: none; }

.legal-section h2 {
  font-family: 'Orbitron', sans-serif; font-weight: 900;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.25; margin-bottom: 20px;
  display: flex; align-items: baseline; gap: 14px;
}
.legal-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75em; color: var(--cyan);
  font-weight: 600; letter-spacing: .05em;
  padding: 3px 10px; border-radius: 6px;
  background: rgba(0,229,255,.08);
  border: 1px solid rgba(0,229,255,.25);
}

.legal-section p {
  font-size: 15.5px; line-height: 1.75;
  color: #cfcfe0; margin-bottom: 16px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section strong { color: var(--text); font-weight: 600; }

.legal-note {
  font-size: 14px; color: var(--muted);
  padding: 14px 18px; border-radius: 10px;
  background: rgba(255,214,10,.05);
  border: 1px solid rgba(255,214,10,.2);
  margin-top: 22px;
}

/* Список вселенных */
.legal-list {
  list-style: none; padding: 0;
  margin: 24px 0 0;
  display: flex; flex-direction: column; gap: 12px;
}
.legal-list li {
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: 12px;
}
.legal-list b {
  display: block; font-size: 15px; font-weight: 600;
  color: var(--text); margin-bottom: 4px;
}
.legal-list span {
  display: block; font-size: 12.5px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--dim); margin-bottom: 8px;
  letter-spacing: .02em;
}
.legal-list em {
  display: block; font-style: normal;
  font-size: 14px; color: var(--muted);
  line-height: 1.55;
}

/* Простой список — без рамок и цветов */
.legal-list-plain li {
  padding: 6px 0 6px 22px;
  background: none; border: none; border-radius: 0;
  position: relative; font-size: 15px; color: #cfcfe0;
}
.legal-list-plain li::before {
  content: '▸'; position: absolute; left: 0;
  color: var(--cyan); font-size: 12px;
  top: 10px;
}

/* Подвал страницы */
.legal-foot {
  margin-top: 50px; padding-top: 34px;
  border-top: 1px solid var(--border);
}
.legal-foot p {
  font-size: 15px; color: var(--muted);
  line-height: 1.7; margin-bottom: 26px;
}
.legal-foot strong { color: var(--yellow); font-weight: 600; }

@media (max-width: 640px) {
  .legal-page { padding: 30px 0 80px; }
  .legal-head { margin: 10px 0 34px; }
  .legal-section { margin-bottom: 32px; padding-bottom: 32px; }
  .legal-section h2 { gap: 10px; }
}
.footer-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--cyan);
  font-size: 13px;
  border-bottom: 1px solid rgba(0,229,255,.3);
  transition: border-color .2s, color .2s;
}
.footer-link:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}
/* ============ ЗАГЛУШКА ДЛЯ ОБЛОЖКИ СТАТЬИ ============ */
.article-cover-empty {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(0,229,255,.18), transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(255,46,136,.16), transparent 60%),
    linear-gradient(135deg, var(--surface-2), var(--bg-2));
}
.article-cover-empty::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,.06) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 80%);
}
.article-cover-empty::after {
  content: '◈';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 96px;
  font-weight: 900;
  background: linear-gradient(100deg, var(--cyan), var(--violet) 50%, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .55;
  filter: drop-shadow(0 0 30px rgba(139,92,246,.5));
}
/* ============ ОБЛОЖКА СТАТЬИ ============ */
.article-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  margin: 30px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border-hi);
  overflow: hidden;
  background: var(--bg-2);
}
.article-cover[hidden] { display: none; }
.article-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 640px) {
  .article-cover { aspect-ratio: 16/11; margin: 22px 0; }
}
/* Символ заглушки для карточки — появляется автоматически,
   даже когда img не было в разметке (вариант через onerror) */
.card-cover-empty::after {
  content: '◈';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 68px;
  font-weight: 900;
  background: linear-gradient(100deg, var(--cyan), var(--violet) 50%, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .55;
  filter: drop-shadow(0 0 24px rgba(139,92,246,.5));
}