body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('https://i.pinimg.com/1200x/51/c9/de/51c9de1f883159047ae82628dd33fb6a.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.3) blur(8px);
  z-index: -1;
  transform: scale(1.1);
  pointer-events: none;
}
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  color: #e0e0e0;
  background: transparent;
  backdrop-filter: blur(4px);
}

.topbar-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(30,30,30,0.85);
  backdrop-filter: blur(8px);
  padding: 0.75rem 2rem;
  border-bottom: 1px solid #555;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 0.75rem 2rem;
  background: rgba(30,30,30,0.85);
  backdrop-filter: blur(8px);
  color: white;
  border-bottom: 1px solid #555;
}

.topbar-nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}
.topbar-nav a {
  color: #f1f1f1;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  user-select: none;
  flex-shrink: 0;
}
.logo img {
  width: 40px;
  height: 40px;
}
.logo span {
  font-weight: 700;
  font-size: 1.75rem;
  color: #facc15;
  white-space: nowrap;
}

.search-input {
  padding: 6px 10px;
  border-radius: 4px;
  border: none;
  font-size: 14px;
  width: 200px;
  flex-shrink: 0;
}
.search-input::placeholder {
  color: #000000;
}
.search-input:focus {
  outline: none;
  background-color: #333;
}

#search-results {
  position: absolute;
  top: 64px;
  left: calc(1rem + 180px);
  max-height: 300px;
  overflow-y: auto;
  width: 320px;
  background-color: rgba(30,30,30,0.95);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  z-index: 1000;
  display: none;
  overflow-x: hidden;
  max-width: 90vw;
}
#search-results a {
  display: block;
  padding: 0.5rem 1rem;
  color: #facc15;
  text-decoration: none;
  border-radius: 0.3rem;
  transition: background-color 0.3s;
}
#search-results a:hover {
  background-color: #fde047;
  color: #1a1a1a;
}

.content-wrapper {
  display: flex;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
  gap: 1.5rem;
  background-color: transparent;
  position: relative;
  z-index: 1;
}

aside {
  position: sticky;
  top: 64px;
  max-height: calc(100vh - 64px);
  width: 280px;
  background-color: rgba(30,30,30,0.85);
  backdrop-filter: blur(8px);
  padding: 2rem 1.5rem;
  box-sizing: border-box;
  border-radius: 0.5rem;
  border: 1px solid #555;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  height: auto;
  flex-shrink: 0;
}
nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: #e0e0e0;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 0.5rem;
  margin-bottom: 0.4rem;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}
nav a:hover,
nav a.active {
  background-color: #fde047;
  color: #1a1a1a;
}
nav a.nav-link {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 16px;
  margin-right: 20px;
  transition: color 0.3s;
}
nav a.nav-link:hover {
  color: #facc15;
}


main {
  max-width: 720px;
  background-color: rgba(30,30,30,0.8);
  backdrop-filter: blur(8px);
  padding: 2.5rem 3rem;
  box-sizing: border-box;
  color: #ddd;
  border-radius: 0.5rem;
  flex-shrink: 0;
}
main h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #fde047;
  margin-bottom: 1rem;
}
main p, main ul {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #ccc;
}
main ul {
  list-style: inside disc;
  margin-left: 1rem;
  margin-bottom: 1rem;
}
main h3 {
  color: #fde047;       /* ярко-жёлтый цвет */
  font-size: 1.5rem;    /* увеличить шрифт (можно подкорректировать) */
  margin-top: 2rem;  /* отступ снизу, чтобы отделить вопрос от текста или следующего вопроса */
  line-height: 1.4;     /* увеличенный межстрочный интервал для удобства чтения */
}
main a[href*="discord.gg"] {
  color: #fff8b3; /* светло-жёлтый оттенок */
  text-decoration: underline; /* чтобы было видно, что это ссылка */
}

main a[href*="discord.gg"]:hover {
  color: #fde047; /* при наведении более яркий желтый */
}

aside.right-sidebar {
  width: 240px;
  background-color: rgba(30,30,30,0.85);
  backdrop-filter: blur(8px);
  padding: 2rem 1.5rem;
  box-sizing: border-box;
  border-radius: 0.5rem;
  border: 1px solid #555;
  overflow-y: auto;
  color: #ccc;
  flex-shrink: 0;
}
aside.right-sidebar h2 {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #facc15;
}
aside.right-sidebar ul {
  list-style: none;
  padding-left: 0;
}
aside.right-sidebar ul li {
  margin-bottom: 0.5rem;
}
aside.right-sidebar ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}
aside.right-sidebar ul li a:hover {
  color: #fde047;
}

/* Скроллы */
aside, main {
  scrollbar-width: thin;
  scrollbar-color: #facc15 transparent;
}
aside::-webkit-scrollbar,
main::-webkit-scrollbar {
  width: 8px;
}
aside::-webkit-scrollbar-thumb,
main::-webkit-scrollbar-thumb {
  background-color: #facc15;
  border-radius: 4px;
}
aside::-webkit-scrollbar-track,
main::-webkit-scrollbar-track {
  background: transparent;
}

/* Адаптив */
@media (max-width: 1024px) {
  aside.right-sidebar {
    display: none;
  }
  main {
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  aside {
    position: fixed;
    z-index: 10;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  aside.open {
    transform: translateX(0);
  }
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    color: #facc15;
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 1rem;
  }
}
