* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  background: radial-gradient(circle at top, #151515, #090909);
  color: #fff;
}

/* ===== HEADER ===== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: rgba(15, 15, 18, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-size: 20px;
  letter-spacing: 2px;
}

.logo span {
  color: #ff4500;
}

nav a {
  margin-left: 18px;
  color: #bbb;
  text-decoration: none;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #ff4500;
  transition: 0.3s;
}

nav a:hover {
  color: #fff;
}

nav a:hover::after {
  width: 100%;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== GRID ===== */
/* .grid {
  display: grid;
  gap: 22px;
  padding: 30px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
} */
.grid {
  display: grid;
  gap: 22px;
  padding: 30px;

  /* максимум 4 карточки */
  grid-template-columns: repeat(4, 1fr);
}

/* Планшеты */
@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Мобильные */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Маленькие экраны */
@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* ===== CARD ===== */
.card {
  background: linear-gradient(160deg, #1c1c1f, #121214);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 rgba(255,69,0,0);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 0 30px rgba(255,69,0,0.25);
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card h3 {
  margin: 14px;
}

.card p {
  margin: 0 14px 10px;
  font-size: 13px;
  color: #aaa;
}

/* ===== BUTTON ===== */
.btn {
  display: inline-block;
  margin: 14px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #ff4500, #ff2200);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255,69,0,0.6);
}

.btn.big {
  font-size: 15px;
  padding: 14px 26px;
}

/* ===== SERVER PAGE ===== */
.servertop {
  max-width: 800px;
  margin: 30px auto;
  padding: 20px;
  text-align: center;
}

.servertop img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 20px;
}

/* ===== FORM ===== */
form {
  max-width: 520px;
  margin: 40px auto;
  background: #141417;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 0 25px rgba(0,0,0,0.6);
}

form input,
form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 14px;
  border: none;
  border-radius: 8px;
  background: #1f1f23;
  color: #fff;
}

form input:focus,
form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px #ff4500;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 20px;
  color: #555;
  font-size: 12px;
}



/* ===== SERVER PAGE ===== */
.server-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px;
}

.server-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.server-hero img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

.server-info h1 {
  margin-top: 0;
  font-size: 28px;
}

.short-desc {
  color: #aaa;
  margin: 12px 0 20px;
}

/* ===== DETAILS BLOCK ===== */
.server-details {
  background: linear-gradient(160deg, #16161a, #101014);
  padding: 26px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px #222;
}

.server-details h3 {
  color: #ff4500;
  margin-top: 0;
}

.server-details p {
  line-height: 1.7;
  color: #ddd;
}

.server-details ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.server-details li {
  padding: 10px 0;
  border-bottom: 1px solid #222;
}

.server-details li:last-child {
  border-bottom: none;
}

.server-details .note {
  margin-top: 20px;
  padding: 14px;
  background: rgba(255,69,0,0.08);
  border-left: 4px solid #ff4500;
  border-radius: 8px;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .server-hero {
    grid-template-columns: 1fr;
  }
}



/* ===== SERVER IP BLOCK ===== */
.server-ip {
  margin-top: 20px;
}

.server-ip .label {
  display: block;
  color: #ff4500;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

/* .ip-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #111;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #222;
}

.ip-box code {
  font-size: 14px;
  background: transparent;
  color: #00ffcc;
  letter-spacing: 1px;
}

.copy-btn {
  background: linear-gradient(135deg, #ff4500, #ff2200);
  border: none;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.copy-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255,69,0,0.6);
} */

.ip-box {
  display: flex;
  align-items: center;

  background: #0e0e11;
  border: 1px solid rgba(0,255,204,0.5);
  border-radius: 10px;
  overflow: hidden;

  padding-left: 14px;
}

/* IP */
.ip-box code {
  flex: 1;
  color: #00ffcc;
  font-size: 14px;
  letter-spacing: 1px;
}

/* КНОПКА */
.copy-btn {
  border: none;
  border-left: 1px solid rgba(0,255,204,0.3);
  background: rgba(0,255,204,0.08);

  padding: 10px 14px;
  color: #00ffcc;
  cursor: pointer;
  font-size: 12px;

  transition: background 0.2s ease, color 0.2s ease;
}

.copy-btn:hover {
  background: rgba(0,255,204,0.2);
  color: #ffffff;
}


.server-ip .hint {
  display: block;
  margin-top: 6px;
  color: #777;
  font-size: 11px;
}



/* ===== PULSE ANIMATION ===== */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 rgba(0,255,204,0.0);
  }
  50% {
    box-shadow: 0 0 22px rgba(0,255,204,0.45);
  }
  100% {
    box-shadow: 0 0 0 rgba(0,255,204,0.0);
  }
}

.server-ip.pulse .ip-box {
  animation: pulseGlow 2.5s infinite;
  border: 1px solid rgba(0,255,204,0.4);
}



/* ===== STEAM BUTTON ===== */
.steam-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;

  background: linear-gradient(135deg, #0a2a43, #0e4a6e);
  box-shadow: 0 0 20px rgba(0,140,255,0.25);
}

.steam-btn:hover {
  box-shadow: 0 0 28px rgba(0,140,255,0.6);
}

.steam-icon {
  font-size: 18px;
}




/* ===== SUPPORT PAGE ===== */
.support-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.support-page h1 {
  margin-bottom: 20px;
}

.support-text {
  color: #bbb;
  line-height: 1.7;
  margin-bottom: 30px;
}

.support-box {
  background: linear-gradient(160deg, #16161a, #101014);
  padding: 30px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px #222;
}

.support-box h3 {
  color: #ff4500;
  margin-top: 0;
}

.support-box ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.support-box li {
  padding: 8px 0;
  color: #ddd;
}

/* ===== BOOSTY BUTTON ===== */
.boosty-btn {
  margin-top: 20px;
  background: linear-gradient(135deg, #f15a24, #ff7a18);
  box-shadow: 0 0 25px rgba(255,122,24,0.4);
}

.boosty-btn:hover {
  box-shadow: 0 0 35px rgba(255,122,24,0.7);
}

.support-note {
  display: block;
  margin-top: 20px;
  color: #777;
  font-size: 12px;
}


/* ==== opisanie ==== */
/* ===== SERVER SETTINGS ===== */
.server-settings {
  background: linear-gradient(160deg, #101014, #16161a);
  padding: 25px 30px;
  border-radius: 18px;
  margin-top: 30px;
  box-shadow: inset 0 0 0 1px #222;
}

.server-settings h3 {
  color: #ff4500;
  margin-bottom: 12px;
  text-align: center;
}

.server-settings ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.server-settings li {
  padding: 6px 0;
  color: #ddd;
  border-bottom: 1px solid #222;
}

.server-settings li:last-child {
  border-bottom: none;
}

.server-settings p {
  color: #bbb;
  line-height: 1.6;
}

.server-settings .server-note {
  margin-top: 15px;
  padding: 12px;
  background: rgba(255,69,0,0.08);
  border-left: 4px solid #ff4500;
  border-radius: 8px;
  color: #ddd;
  font-style: italic;
}


/* ===== SERVER MAP ===== */
.server-map {
  background: linear-gradient(160deg, #101014, #16161a);
  padding: 25px 30px;
  border-radius: 18px;
  margin-top: 30px;
  box-shadow: inset 0 0 0 1px #222;
}

.server-map h3 {
  color: #ff4500;
  text-align: center;
  margin-bottom: 15px;
}

.server-map ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.server-map li {
  padding: 8px 0;
  color: #ddd;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.server-map .zone.red {
  color: #ff4c4c;
  font-weight: bold;
}

.server-map .zone.gray {
  color: #aaa;
  font-weight: bold;
}

.server-map .zone.green {
  color: #00ff88;
  font-weight: bold;
}





/* ===== HERO ===== */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 40px 20px;
  background: linear-gradient(135deg, #0d0d0d, #1a1a1a);
  border-radius: 20px;
  margin-bottom: 40px;
}

.hero-content {
  flex: 1 1 400px;
  color: #fff;
  padding-right: 20px;
}

.hero-content h1 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #ff4500;
}

.hero-content p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.hero-image {
  flex: 1 1 300px;
  text-align: center;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(255,69,0,0.3);
}

/* ===== ANNOUNCEMENTS ===== */
.announcements {
  background: #111;
  padding: 25px 30px;
  border-radius: 15px;
  margin-bottom: 40px;
  box-shadow: 0 0 15px rgba(255,69,0,0.2);
}

.announcements h2 {
  color: #ff4500;
  margin-bottom: 15px;
}

.announcements ul {
  list-style: none;
  padding: 0;
}

.announcements li {
  color: #ccc;
  padding: 6px 0;
  font-size: 14px;
}

/* ===== NEWS ===== */
.news-section {
  margin: 50px 0;
}

.news-section h2 {
  color: #ff4500;
  margin-bottom: 25px;
  text-align: center;
}

.news-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.news-card {
  background: #111;
  padding: 20px;
  border-radius: 15px;
  width: 250px;
  text-align: center;
  box-shadow: 0 0 15px rgba(255,69,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(255,69,0,0.4);
}

.news-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.news-card h3 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 10px;
}

.news-card p {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 15px;
}



/* ===== UPDATES SECTION ===== */
.updates-section {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}

.updates-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 100%;
}

/* Объявления */
.announcements {
  flex: 1 1 300px;
  background: #111;
  padding: 25px 20px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(255,69,0,0.2);
}

.announcements h2 {
  color: #ff4500;
  margin-bottom: 15px;
}

.announcements ul {
  list-style: none;
  padding: 0;
}

.announcements li {
  color: #ccc;
  padding: 6px 0;
  font-size: 14px;
}

/* Новости */
.news-section {
  flex: 2 1 600px;
}

.news-section h2 {
  color: #ff4500;
  margin-bottom: 15px;
}

/* .news-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.news-card {
  background: #111;
  padding: 20px;
  border-radius: 15px;
  width: 250px;
  text-align: center;
  box-shadow: 0 0 15px rgba(255,69,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(255,69,0,0.4);
}

.news-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.news-card h3 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 10px;
}

.news-card p {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 15px;
} */
.news-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 4 колонки одинаковой ширины */
  gap: 20px;
}

/* Адаптивность */
@media (max-width: 1200px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 колонки на средних экранах */
  }
}

@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшетах */
  }
}

@media (max-width: 600px) {
  .news-grid {
    grid-template-columns: 1fr; /* 1 колонка на мобильных */
  }
}

.news-card {
  background: #111;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 0 15px rgba(255,69,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(255,69,0,0.4);
}

.news-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.news-card h3 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 10px;
}

.news-card p {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 15px;
}

/* Адаптивность */
@media (max-width: 900px) {
  .updates-container {
    flex-direction: column;
  }

  .news-card {
    width: 100%;
  }
}


.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  padding: 40px 20px;
  background: #0a0a0a;
  border-radius: 15px;
  margin-bottom: 50px;
}

.hero-content {
  flex: 1 1 500px;
  color: #fff;
}

.hero-announcements {
  flex: 1 1 300px;
  background: #111;
  padding: 25px 20px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(255,69,0,0.2);
}

.hero-announcements h2 {
  color: #ff4500;
  margin-bottom: 15px;
}

.hero-announcements ul {
  list-style: none;
  padding: 0;
}

.hero-announcements li {
  color: #ccc;
  padding: 6px 0;
  font-size: 14px;
}

/* Адаптивность */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
  }

  .hero-announcements {
    width: 100%;
  }
}


.news-date {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
}


/*===== News page === */

.news-page {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  color: #fff;
}

.news-page h1 {
  margin-bottom: 10px;
  color: #ff4500;
}

.news-date {
  display: block;
  margin-bottom: 20px;
  color: #888;
  font-size: 14px;
}

.news-main-img {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 20px;
}

.news-content p, .news-content ul {
  margin-bottom: 15px;
  color: #ccc;
}

.news-content ul li {
  margin-left: 20px;
}


/*==== ALL news === */
.all-news-page {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  color: #fff;
}

/**===== Стили для Админки ==== **/
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.admin-table th,
.admin-table td {
  border: 1px solid #333;
  padding: 10px;
}

/* .btn.small {
  padding: 5px 8px;
  font-size: 14px;
}

.btn.danger {
  background: #c0392b;
} */

.admin-title {
  text-align: center;
  margin: 40px 0 20px;
  font-size: 2.5rem;
  color: #2c3e50;
  animation: fadeInDown 0.8s ease forwards;
}

/* Контейнер карточек */
.admin-menu {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* Карточки меню */
.menu-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 180px;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #34495e;
  font-size: 1.2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.menu-card .icon {
  font-size: 3rem;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.menu-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  background: #f0f8ff;
}

.menu-card:hover .icon {
  transform: rotate(10deg) scale(1.2);
}

/* Анимация заголовка */
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}




.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #111;
  border-radius: 10px;
  overflow: hidden;
}

.admin-table th {
  background: #1b1b1b;
  color: #bbb;
  padding: 14px;
  text-align: left;
  font-weight: 500;
}

.admin-table td {
  padding: 14px;
  border-top: 1px solid #222;
}

.admin-table tr {
  transition: background 0.2s ease;
}

.admin-table tr:hover {
  background: #1a1a1a;
}

.server-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.server-name img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #333;
}

.actions {
  /* display: flex; */
  gap: 10px;
}

/* .btn {
  padding: 10px 16px;
  background: linear-gradient(135deg, #3a7bfd, #2255ff);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
} */

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
}

.btn-add {
  font-size: 14px;
}

.btn-icon {
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.btn-icon.edit {
  background: #2a2a2a;
}

.btn-icon.delete {
  background: #2a2a2a;
}

.btn-icon:hover {
  transform: scale(1.1);
}

.btn-icon.delete:hover {
  background: #602020;
}
