/* === KERBEROS HI‑TECH NUCLEAR STYLE — improved legibility === */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&family=Share+Tech+Mono&display=swap');

body {
  background: radial-gradient(circle at 20% 30%, #040404 0%, #000 95%);
  color: #f1f1f1;
  font-family: 'Share Tech Mono', monospace;
  line-height: 1.8;
  letter-spacing: 0.15px;
  margin: 0;
  overflow-x: hidden;
  word-wrap: break-word;
  text-shadow: 0 0 3px rgba(255,150,0,0.07);
}

.mono { font-family: 'Orbitron', sans-serif; letter-spacing: 0.5px; }
.bright { color: #ffb300; }
p { margin: 12px 0 18px; }

/* HEADER */
.hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(20, 20, 20, 0.92);
  border-bottom: 2px solid #ff5100;
  padding: 14px 24px;
  box-shadow: 0 0 25px rgba(255, 90, 0, 0.35);
  backdrop-filter: blur(8px);
}
.logo { height: 52px; filter: drop-shadow(0 0 8px #ffb300); }

.onion-btn {
  background: linear-gradient(90deg, #ff6a00, #ff3d00);
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  transition: 0.3s;
}
.onion-btn:hover { box-shadow: 0 0 30px #ff9100; transform: scale(1.05); }

.menu-toggle {
  background: none;
  border: none;
  color: #ffb74d;
  font-size: 26px;
  display: none;
}

/* LAYOUT */
.container.page-wrapper {
  display: flex;
  min-height: 100vh;
  background: rgba(10,10,10,0.65);
  backdrop-filter: blur(6px);
}
.sidebar {
  width: 250px;
  background: rgba(15,15,15,0.9);
  border-right: 1px solid rgba(255,140,0,0.25);
  padding: 20px;
  color: #cfcfcf;
  line-height: 1.7;
  transition: transform 0.3s;
}
.sidebar.open { transform: translateX(0); }

@media(max-width:900px){
  .menu-toggle{display:inline;}
  .sidebar{
    transform:translateX(-100%);
    position:fixed;top:0;left:0;
    height:100%;
    z-index:999;
  }
}

.nav-block .nav-link {
  display: block;
  margin: 8px 0;
  color: #ddd;
  text-decoration: none;
  font-family: 'Share Tech Mono', monospace;
  transition: 0.25s;
}
.nav-block .nav-link.active,
.nav-block .nav-link:hover {
  color: #ff9100;
  text-shadow: 0 0 8px #ff6d00;
}

/* HERO */
.hero-panel {
  position: relative;
  text-align: center;
  background: linear-gradient(160deg, rgba(24,24,24,0.85), rgba(10,10,10,0.7));
  border: 1px solid rgba(255,200,0,0.15);
  border-radius: 14px;
  padding: 90px 30px;
  margin-bottom: 40px;
  overflow: hidden;
  box-shadow: 0 0 35px rgba(255,120,0,0.25);
}
.hero-panel h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.1em;
  color: #ffe082;
  text-shadow: 0 0 25px #ff9800;
  margin-bottom: 18px;
}
.hero-panel p {
  font-family: 'Share Tech Mono', monospace;
  max-width: 720px;
  margin: 15px auto;
  background: rgba(25,25,25,0.65);
  padding: 12px 16px;
  border-radius: 8px;
  line-height: 1.9;
}
.hero-glow {
  position:absolute;
  top:0;left:0;width:100%;height:100%;
  background: repeating-linear-gradient(
              45deg,
              rgba(255,150,0,0.03) 0,
              rgba(255,150,0,0.05) 4px,
              transparent 8px),
              radial-gradient(circle at 50% 30%, rgba(255,150,0,0.07), transparent 60%);
  mix-blend-mode: overlay;
  animation: glowAnim 7s infinite alternate;
}
@keyframes glowAnim {
  0% { opacity: 0.4; }
  100% { opacity: 0.8; }
}
.cta-btn {
  background: linear-gradient(90deg,#ffaa00,#ff6f00);
  color: #000;
  border: none;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
  padding: 14px 28px;
  border-radius: 5px;
  margin-top: 20px;
  cursor: pointer;
  transition: 0.3s;
}
.cta-btn:hover { box-shadow: 0 0 20px #ffb74d; transform: translateY(-3px); }

/* MAIN + CARDS */
.main-content { flex: 1; padding: 30px; }

.card {
  background: rgba(32,32,32,0.8);
  border: 1px solid rgba(255,180,0,0.35);
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 25px;
  box-shadow: 0 0 20px rgba(255,160,0,0.1);
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}
.card:hover {
  box-shadow: 0 0 30px rgba(255,180,0,0.4);
  transform: translateY(-3px);
}
.card p {
  background: rgba(20,20,20,0.55);
  padding: 10px 14px;
  border-radius: 6px;
  line-height: 1.8;
}

/* GRID CARDS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
  gap: 20px;
}
.mini-card {
  background: rgba(30,30,30,0.85);
  border: 1px solid rgba(255,200,0,0.25);
  border-radius: 8px;
  padding: 22px 18px;
  text-align: center;
  transition: 0.3s;
}
.mini-card i { font-size: 28px; color: #ffb300; margin-bottom: 10px; }
.mini-card h3 {
  font-family: 'Orbitron', sans-serif;
  color: #ffd54f;
  margin-bottom: 8px;
}
.mini-card p {
  font-family: 'Share Tech Mono', monospace;
  line-height: 1.8;
}
.mini-card:hover {
  box-shadow: 0 0 25px rgba(255,180,0,0.35);
  transform: translateY(-5px);
}

/* LISTS & TOC */
ul, li {
  line-height: 1.8;
  margin-bottom: 6px;
}
.toc-list { list-style: none; padding:0; }
.toc-list li { margin: 8px 0; }
.toc-list a {
  color: #fff; text-decoration: none; transition: 0.2s;
}
.toc-list a:hover {
  color:#ffb300; text-shadow:0 0 8px #ff9100;
}

/* FOOTER */
.site-footer {
  background: #0a0a0a;
  color: #ccc;
  padding: 40px 20px;
  border-top: 2px solid rgba(255,100,0,0.25);
  word-wrap: break-word;
  line-height: 1.8;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 30px;
}
.footer-col h3 {
  font-family: 'Orbitron', sans-serif;
  color: #ff8f00;
  margin-bottom: 10px;
}
.footer-col p {
  background: rgba(25,25,25,0.65);
  padding: 8px 10px;
  border-radius: 5px;
  font-family: 'Share Tech Mono', monospace;
}
.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col ul li { margin: 6px 0; }
.footer-col ul a {
  color: #bbb;
  text-decoration: none;
  transition:0.3s;
}
.footer-col ul a:hover {
  color:#ffb74d; text-shadow:0 0 6px #ff9100;
}

/* RESPONSIVE */
@media(max-width:900px){
  .page-wrapper{flex-direction:column;}
  .main-content{padding:20px;}
  .footer-grid{grid-template-columns:1fr;}
}

/* HEADINGS & GENERAL */
.section h2, .card h2 { margin-bottom: 14px; font-family: 'Orbitron', sans-serif; }
.card, .neon-card { box-shadow: 0 0 25px rgba(255,170,0,0.1); }


p, li, code, .hero-text {
  white-space: normal;        /* разрешает перенос строк */
  word-wrap: break-word;      /* старый синтаксис */
  overflow-wrap: anywhere;    /* современный вариант */
  hyphens: auto;              /* мягкие переносы слов */
}
