/* Общие настройки страницы */
body {
  background-color: #181818;
  color: #e0e0e0;
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}	

h1, h2, h3 {
  color: #ff9e00; /* Цвет для заголовков */
  font-weight: bold;
}

h2 {
  border-bottom: 2px solid #333;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

h3 {
  color: #ffcd00; /* Более светлый оттенок для подзаголовков */
}

header {
  text-align: center;
  margin-bottom: 30px;
}


main {
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
}


.post-layout {
  background-color: #1a1a1a;
  border: 2px solid #00ffff;
  border-radius: 12px;
  box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
  padding: 20px;
  margin: 20px auto;
  max-width: 600px;
  color: #e0e0e0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
}

/* Вращающееся и светящееся лого */
.floating-logo {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 80px;
  height: 80px;
  animation: spin 10s linear infinite, glow 2s ease-in-out infinite alternate;
  z-index: 999;
}

.floating-logo img {
  width: 100%;
  height: auto;
  display: block;
}


/* Стилизация ссылок */
a {
  color: #ff9e00;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: #ffdd44;
}

.media-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}


.nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  text-decoration: none;
  color: #ddd;
  font-weight: bold;
  padding: 6px 12px;
  transition: background 0.3s, color 0.3s;
}

.nav-menu li a:hover {
  background: #333;
  color: #fff;
  border-radius: 4px;
}

.item-header {
  text-align: center;
  padding: 20px 0 0;
}

.item-header h1 {
  font-size: 2em;
  color: #f0c040;
  margin: 0;
}

.item-header img {
  display: block;
  margin: 10px auto 0;
}


/* Вращающееся и светящееся лого */
.floating-logo {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 80px;
  height: 80px;
  animation: spin 10s linear infinite, glow 2s ease-in-out infinite alternate;
  z-index: 999;
}

.floating-logo img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes glow {
  0% {
    filter: drop-shadow(0 0 4px #fdd835);
  }
  100% {
    filter: drop-shadow(0 0 15px #fdd835);
  }
}

.main-header {
  background-color: #1b1b1b;
  padding-bottom: 15px;
  border-bottom: 2px solid #444;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #111;
}

.logo img {
  height: 40px;
}


.nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  text-decoration: none;
  color: #ddd;
  font-weight: bold;
  padding: 6px 12px;
  transition: background 0.3s, color 0.3s;
}

.nav-menu li a:hover {
  background: #333;
  color: #fff;
  border-radius: 4px;
}

.item-header {
  text-align: center;
  padding: 20px 0 0;
}

.item-header h1 {
  font-size: 2em;
  color: #f0c040;
  margin: 0;
}

.item-header img {
  display: block;
  margin: 10px auto 0;
}


.description-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.description-text {
  flex: 1 1 60%;
}

.description-text img {
  vertical-align: middle;
  margin-right: 10px;
}

.description-image {
  flex: 1 1 35%;
  max-width: 400px;
}

.description-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 158, 0, 0.5);
}

.top-bar {
  display: flex;
  justify-content: center; /* Центрируем всё меню */
  align-items: center;
  padding: 10px 20px;
  background: #111;
}

section h2 {
  margin-top: 0;
  margin-bottom: 16px;
}

section p, ul {
  margin-bottom: 16px;
}

section.description {
  border: 1px solid #ff9e00;
  box-shadow: 0 0 10px #ff9e00;
}