/* === ОБЩИЙ СТИЛЬ ДЛЯ ВСЕХ СТРАНИЦ === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #0d0d0d;
  color: #fff;
  line-height: 1.6;
  text-align: center;
}

/* === ШАПКА === */
header {
  background-color: #111;
  padding: 20px;
  text-align: center;
  border-bottom: 2px solid #00ff7f;
}

header h1 {
  color: #00ff7f;
  margin-bottom: 12px;
  font-size: 1.8em;
}

/* === НАВИГАЦИЯ === */
nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

nav a {
  color: #fff;
  text-decoration: none;
  background-color: #00ff7f20;
  padding: 10px 20px;
  border-radius: 12px;
  transition: 0.3s;
  font-size: 1em;
}

nav a:hover,
nav a.active {
  background-color: #00ff7f;
  color: #111;
}

/* === ОСНОВНОЙ КОНТЕНТ === */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  background-color: #1a1a1a;
  border: 2px solid #00ff7f;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0, 255, 127, 0.15);
}

/* === ЗАГОЛОВКИ === */
h2, h3 {
  color: #00ff7f;
  margin-bottom: 10px;
}

/* === ТЕКСТ === */
p {
  color: #ccc;
  margin-bottom: 25px;
  font-size: 1.1em;
  max-width: 700px;
}

/* === НОВОСТИ === */
.news-item {
  background-color: #1a1a1a;
  border: 2px solid #00ff7f;
  padding: 20px;
  border-radius: 12px;
  margin: 15px 0;
  box-shadow: 0 0 20px rgba(0, 255, 127, 0.1);
  width: 100%;
  max-width: 600px;
}

.news-item h3 {
  color: #00ff7f;
  margin-bottom: 10px;
}

.news-item p {
  color: #ddd;
}

.news-item .date {
  display: block;
  margin-top: 10px;
  font-size: 0.9em;
  color: #aaa;
}

/* === ФУТЕР === */
footer {
  text-align: center;
  padding: 20px;
  background-color: #111;
  color: #999;
  font-size: 0.9em;
  border-top: 2px solid #00ff7f;
  margin-top: auto;
}

/* === АДАПТИВ (ТЕЛЕФОНЫ) === */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.5em;
  }

  nav a {
    padding: 8px 12px;
    font-size: 0.9em;
  }

  main {
    padding: 25px 10px;
  }

  .news-item {
    padding: 15px;
  }

  footer {
    font-size: 0.8em;
    text-align: center;
  }
}
/* === ТОРГОВАЯ ПЛОЩАДКА === */
.market {
  text-align: center;
  padding: 40px 20px;
}

.market-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.item {
  background-color: #1a1a1a;
  border: 2px solid #00ff7f;
  border-radius: 12px;
  padding: 20px;
  width: 200px;
  box-shadow: 0 0 15px rgba(0, 255, 127, 0.1);
  transition: 0.3s;
}

.item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(0, 255, 127, 0.3);
}

.item img {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
}

.item h3 {
  color: #00ff7f;
  margin-bottom: 5px;
}

.item p {
  color: #ccc;
  margin-bottom: 10px;
}

.item button {
  background-color: #00ff7f;
  border: none;
  color: #111;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.item button:hover {
  background-color: #00cc66;
}

/* === МОБИЛЬНЫЙ ВИД === */
@media (max-width: 600px) {
  .item {
    width: 90%;
  }
}
.sold {
  color: #ff5555;
  font-weight: bold;
  text-align: center;
  margin-top: 10px;
  background: rgba(255, 85, 85, 0.1);
  border: 1px solid #ff5555;
  border-radius: 8px;
  padding: 5px;
}