/* BlackSprut — технический монохром, терминальная эстетика */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #030304;
  --bg-alt: #0a0a0c;
  --panel: #0f0f12;
  --panel-soft: #16161a;
  --accent: #ffffff;
  --accent-soft: #c8c8d0;
  --accent-strong: #f8f8fa;
  --muted: #7a7a85;
  --muted-bright: #9e9ea8;
  --danger: #ff4b6a;
  --success: #22c55e;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-soft: 0 24px 48px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.5);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: 
    radial-gradient(circle at center, rgba(255,255,255,0.03) 1px, transparent 1px),
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(40, 40, 50, 0.35) 0, transparent 50%),
    radial-gradient(ellipse 100% 100% at 50% 100%, #0a0a0e 0, #030304 70%);
  background-size: 24px 24px, 100% 100%, 100% 100%;
  color: var(--accent-soft);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Анимированный ambient-фон */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: 
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(34, 197, 94, 0.04) 0, transparent 50%),
    radial-gradient(ellipse 70% 50% at 80% 70%, rgba(255, 255, 255, 0.03) 0, transparent 45%),
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(255, 255, 255, 0.02) 0, transparent 60%);
  animation: bs-ambient 12s ease-in-out infinite alternate;
}

/* Scan-line эффект */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(34, 197, 94, 0.12),
    transparent
  );
  animation: bs-scan 8s linear infinite;
}

@keyframes bs-ambient {
  0% { opacity: 0.6; transform: scale(1) translate(0, 0); }
  100% { opacity: 1; transform: scale(1.05) translate(2%, 1%); }
}

@keyframes bs-scan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

/* Мобильная оптимизация: статичный фон, без анимаций */
@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none !important;
  }
  .bs-grid-overlay {
    animation: none !important;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header — BS: терминальный стиль */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  background: linear-gradient(
    180deg,
    rgba(3, 3, 4, 0.98) 0,
    rgba(3, 3, 4, 0.92) 70%,
    transparent
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.3), transparent);
  opacity: 0.6;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.9;
}

.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  /* белый логотип, без белого фона */
  filter: invert(1);
}

/* 3D logo — мягкий фон, едва заметная текстура */
.bs-bg-logo-subtle {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bs-bg-model-subtle {
  width: 140%;
  max-width: none;
  height: min(95vh, 750px);
  margin-left: -20%;
  opacity: 0.17;
  --poster-color: transparent;
  filter: brightness(1.1) contrast(0.9);
  transition: opacity 0.4s ease;
}

.bs-bg-logo-subtle:hover .bs-bg-model-subtle {
  opacity: 0.24;
}

.logo-text {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  color: var(--muted);
  transition: all 0.2s ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-strong);
}

.nav-primary {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--accent-strong);
  margin-left: 8px;
}

.nav-primary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Hero — BS: overlay с координатной сеткой */
.hero {
  padding: 100px 0 56px;
  position: relative;
}

.bs-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
  animation: bs-dot-pulse 6s ease-in-out infinite;
}

@keyframes bs-dot-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  pointer-events: none;
}

.hero-inner .btn,
.hero-inner a,
.hero-inner button,
.hero-inner aside {
  pointer-events: auto;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "> ";
  color: var(--success);
  opacity: 0.8;
  margin-right: 2px;
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0 0 20px;
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 36rem;
  color: var(--accent-soft);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}

.hero-badge {
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted-bright);
  background: rgba(255, 255, 255, 0.02);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: #ffffff;
  color: #000;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: #f0f0f2;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.2);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--accent-soft);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* Hero panel */
.hero-panel {
  background: linear-gradient(180deg, #0d0d10 0, #08080b 100%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 22px 20px;
  box-shadow: var(--shadow-soft);
  font-family: 'JetBrains Mono', monospace;
  transform: none;
  position: relative;
  align-self: start;
}

.hero-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.8rem;
  color: var(--muted);
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.endpoint-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.endpoint {
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.endpoint:hover {
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.1);
}

.endpoint-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.endpoint-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.endpoint-url {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--accent-strong);
}

.endpoint-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--muted-bright);
}

.endpoint-url-tor {
  font-size: 0.82rem;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tor-copy-block {
  margin-bottom: 12px;
  padding: 12px 16px;
  background: rgba(34, 197, 94, 0.06);
  border: 1px dashed rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tor-copy-block:hover {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.4);
}

.tor-copy-block.copied {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.6);
}

.tor-copy-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.tor-copy-url {
  font-size: 0.78rem;
  font-family: monospace;
  color: var(--accent-strong);
  word-break: break-all;
  background: none;
  padding: 0;
}

.microcopy {
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  line-height: 1.5;
}

/* Sections */
.section {
  padding: 56px 0 48px;
}

.section-header {
  margin-bottom: 28px;
}

.section-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0 0 10px;
}

.section-lead {
  max-width: 560px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--muted);
}

.content-block {
  margin-top: 40px;
  margin-bottom: 24px;
}

.content-block .section-lead {
  max-width: 100%;
}

.grid {
  display: grid;
  gap: 22px;
  align-items: stretch;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Cards */
.card {
  background: linear-gradient(180deg, #0e0e12 0, #14141a 100%);
  border-radius: var(--radius-lg);
  padding: 24px 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.25s ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), var(--shadow-card-hover);
  transform: translateY(-2px);
}

.card a {
  transition: color 0.2s ease;
}

.card a:hover {
  color: var(--accent-strong);
}

.card-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-title {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--accent-strong);
}

.card-title-tor {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-title a {
  color: inherit;
}

.card-text {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--accent-soft);
}

.card-footer {
  margin-top: 8px;
}

/* Skip-link — доступность */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--success);
  color: #000;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

/* Stats section */
.stats-section {
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item {
  padding: 16px;
}
.stat-number {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--success);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* Card icon */
.card-icon {
  margin-bottom: 12px;
}
.card-icon img {
  width: 36px;
  height: 36px;
  opacity: 0.85;
  filter: invert(1);
}

/* Section more */
.section-more {
  text-align: center;
  margin-top: 36px;
}

/* CTA section */
.cta-section {
  background: linear-gradient(180deg, rgba(34,197,94,0.06) 0, transparent 100%);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.cta-inner {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}
.cta-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--accent-strong);
}
.cta-text {
  font-size: 1rem;
  color: var(--accent-soft);
  margin-bottom: 24px;
  line-height: 1.6;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* VPN notice — под шапкой */
.vpn-notice {
  position: fixed;
  top: 58px;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 10px 20px;
  background: rgba(255, 75, 106, 0.95);
  color: #000;
  font-size: 0.88rem;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}
.vpn-notice a {
  color: #000;
  font-weight: 600;
  text-decoration: underline;
}
.vpn-notice-hidden {
  transform: translateY(-100%);
  pointer-events: none;
}
.page-with-vpn-notice .hero {
  padding-top: 130px;
}
.vpn-notice-icon {
  margin-right: 8px;
}

/* Links section — link-box, intro, related */
.section-title-centered {
  text-align: center;
  position: relative;
  padding-top: 24px;
}
.section-title-centered::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34,197,94,0.6), transparent);
}
.links-content-wrapper { max-width: 900px; margin: 0 auto; }
.intro-text-box {
  margin-bottom: 28px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
}
.intro-text-box p { margin: 0 0 12px; color: var(--muted); line-height: 1.65; }
.intro-text-box p:last-child { margin-bottom: 0; }
.link-box-copy {
  cursor: pointer;
}
.link-box-copy {
  position: relative;
}

.link-box-copy-feedback {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #22c55e;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.link-box-copy.copied .link-box-copy-feedback {
  opacity: 1;
}

.link-box-copy.copied {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.5);
}
.link-box {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  transition: transform 0.2s ease;
}
.link-box:hover { transform: translateY(-2px); }
.link-box h3 { margin: 0 0 12px; font-size: 1.15rem; }
.link-icon { margin-right: 8px; }
.link-primary { color: var(--success); font-weight: 600; }
.link-primary:hover { color: #4ade80; }
.link-inline { color: var(--accent-soft); }
.link-inline:hover { color: var(--accent-strong); }
.link-highlight { color: var(--success) !important; }
.onion-code {
  background: rgba(0,0,0,0.3);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.85rem;
  word-break: break-all;
}
.link-box-primary {
  background: linear-gradient(180deg, rgba(34,197,94,0.08), rgba(34,197,94,0.03));
  border-color: rgba(34,197,94,0.25);
}
.link-box-action { margin-top: 16px; text-align: center; }
.related-materials-box {
  margin-top: 32px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
}
.related-materials-box h3 { margin: 0 0 20px; text-align: center; font-size: 1.25rem; }
.related-materials-list { display: grid; gap: 12px; margin-bottom: 20px; }
.related-materials-list p { margin: 0; }
.related-materials-list a {
  color: var(--accent-soft);
  text-decoration: none;
  transition: color 0.2s;
}
.related-materials-list a:hover { color: var(--success); }

/* Footer — BS: статусная строка терминала */
.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 0 28px;
  background: rgba(3, 3, 4, 0.6);
}

.bs-status-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--success);
  opacity: 0.6;
  margin-bottom: 12px;
  letter-spacing: 0.12em;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-strong);
}

/* ========== ARTICLE PAGES ========== */
.page-main .hero {
  padding: 88px 0 48px;
  position: relative;
}

.page-main .hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  border-radius: 2px;
}

.page-main .hero .container {
  max-width: 720px;
}

.page-main .hero .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.page-main .hero .hero-title {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-main .hero .hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--accent-soft);
}

/* Breadcrumb */
.breadcrumb {
  padding: 20px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--accent-soft);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--accent-strong);
}

.breadcrumb .sep {
  margin: 0 8px;
  opacity: 0.5;
}

/* Article content block */
.article-content {
  max-width: 900px;
  margin: 0 auto;
}

.article-intro {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--accent-soft);
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Article cards — премиальный вид */
.page-main .section .card {
  padding: 28px 26px 24px;
  position: relative;
  overflow: hidden;
}

.page-main .section .card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
  border-radius: 2px 0 0 2px;
}

.page-main .section .card .card-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  margin-bottom: 4px;
}

.page-main .section .card .card-title {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.page-main .section .card .card-text {
  font-size: 0.96rem;
  line-height: 1.7;
}

.page-main .section .card .card-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Article CTA block */
.article-cta {
  margin-top: 56px;
  padding: 36px 40px;
  background: linear-gradient(155deg, #0c0c10 0, #121218 100%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.article-cta-title {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0 0 12px;
}

.article-cta-text {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 24px;
}

/* Related articles */
.related-articles {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.related-articles-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.related-articles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-articles-list a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--accent-soft);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.2s ease;
}

.related-articles-list a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--accent-strong);
  border-color: rgba(255,255,255,0.15);
}

/* ========== ARTICLES LIST (vse-stati) ========== */
.articles-list {
  max-width: 820px;
  margin: 0 auto;
}

.article-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 30px;
  margin-bottom: 16px;
  background: linear-gradient(155deg, #0c0c10 0, #121218 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s ease;
}

.article-item:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateX(4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.article-item-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
}

.article-item-body {
  flex: 1;
  min-width: 0;
}

.article-item-title {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 8px;
}

.article-item-title a {
  color: var(--accent-strong);
  transition: color 0.2s ease;
}

.article-item-title a:hover {
  color: #fff;
}

.article-item-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 14px;
}

.article-item-link {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.article-item-link:hover {
  color: var(--accent-strong);
}

.article-item-link::after {
  content: "→";
}

/* Back button */
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  padding: 14px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-soft);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.article-back:hover {
  background: rgba(255,255,255,0.06);
  color: var(--accent-strong);
  border-color: rgba(255,255,255,0.2);
  transform: translateX(-2px);
}

.page-main .section .container {
  max-width: 1160px;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 88px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav {
    display: none;
  }

  .hero-title {
    font-size: clamp(2rem, 5vw, 2.6rem);
  }

  .article-item {
    flex-direction: column;
    gap: 16px;
    padding: 22px 20px;
  }

  .article-item-num {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }
}

/* ========== BS SSYLKA — терминальный стиль, вертикальные блоки ========== */
.page-ssylka .hero-ssylka {
  padding: 80px 0 48px;
}

.page-ssylka .hero-subtitle {
  max-width: 42rem;
}

.container-narrow {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-ssylka {
  padding-top: 32px;
}

.ssylka-endpoints {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ssylka-endpoint {
  background: linear-gradient(180deg, #0a0a0e 0, #08080b 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--success);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  font-family: 'JetBrains Mono', monospace;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ssylka-endpoint:hover {
  border-left-color: var(--success);
  box-shadow: 0 4px 24px rgba(34, 197, 94, 0.08);
}

.ssylka-endpoint-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ssylka-endpoint-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.ssylka-endpoint-badge {
  font-size: 0.68rem;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.2);
  color: var(--success);
  font-weight: 600;
}

.ssylka-badge-reserve {
  background: rgba(255,255,255,0.08);
  color: var(--muted-bright);
}

.ssylka-badge-tor {
  background: rgba(255,193,7,0.15);
  color: #e6b800;
}

.ssylka-endpoint-url-tor {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ssylka-endpoint-url {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-strong);
  margin-bottom: 12px;
  word-break: break-all;
}

.ssylka-endpoint-desc {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 18px;
}

.btn-ssylka {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  padding: 10px 20px;
}

.ssylka-note {
  margin-top: 32px;
  font-size: 0.82rem;
  color: var(--muted);
}

.ssylka-note code {
  background: rgba(255,255,255,0.06);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
}

/* ========== BS VSE-STATI — sidebar + grouped links ========== */
.page-vse-stati .hero-compact {
  padding: 72px 0 40px;
}

.page-vse-stati .hero-subtitle {
  margin-bottom: 0;
}

.vse-stati-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}

.vse-stati-sidebar {
  position: sticky;
  top: 100px;
}

.vse-stati-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vse-stati-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

.vse-stati-nav a:hover {
  color: var(--accent-strong);
  background: rgba(255,255,255,0.04);
  border-left-color: var(--success);
}

.vse-stati-main {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.vse-stati-group-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--success);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.vse-stati-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vse-stati-links li {
  margin-bottom: 4px;
}

.vse-stati-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--accent-soft);
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.vse-stati-links a::before {
  content: "> ";
  color: var(--success);
  opacity: 0.6;
}

.vse-stati-links a:hover {
  color: var(--accent-strong);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
  transform: translateX(4px);
}

.vse-stati-back {
  margin-top: 56px;
  text-align: center;
}

@media (max-width: 900px) {
  .vse-stati-layout {
    grid-template-columns: 1fr;
  }

  .vse-stati-sidebar {
    position: static;
  }

  .vse-stati-nav {
    flex-direction: row;
    flex-wrap: wrap;
   }

  .vse-stati-nav a {
    border-left: none;
    border-bottom: 2px solid transparent;
  }

  .vse-stati-nav a:hover {
    border-left: none;
    border-bottom-color: var(--success);
  }
}
