* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: black;
  color: white;
  font-family: 'Orbitron', sans-serif;
  overflow-x: hidden;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid #444;
  background: rgba(0,0,0,0.8);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar nav {
  display: flex;
  gap: 1.5rem;
}

.navbar nav a {
  color: white;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.navbar nav a:hover {
  transform: scale(1.1);
  color: rgb(167, 141, 26);
}

.navbar .controls button {
  margin-left: 1rem;
  background: none;
  border: 1px solid #666;
  color: white;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
}

.hero {
  text-align: center;
  padding: 15rem 2rem;
  background: url('/src/img/tuun1.png') center/cover no-repeat;
  position: relative;
}

.hero .overlay {
  background: rgba(0, 0, 0, 0.6);
  display: inline-block;
  padding: 2rem;
  border-radius: 12px;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 2rem;
}

.btn {
  background: white;
  color: black;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn:hover {
  transform: scale(1.05);
}

.discord {
  text-align: center;
  padding: 15rem 2rem;
  background: linear-gradient(135deg, #000000, #2e3039);
  color: white;
}

.discord h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(0,0,0,0.6);
}

.discord p {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.discord .btn {
  background: white;
  color: #5865F2;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.discord .btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255,255,255,0.8);
}

.news {
  padding: 3rem 2rem;
}

.news h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.news-card {
  background: #222;
  padding: 1rem;
  border-radius: 8px;
}

.news-card .news-date {
  display: block;
  font-size: 0.85rem;
  color: #888;
  margin: 8px 0 4px 0;
}

.news-card .thumb img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.news-more {
  text-align: right;
  margin-top: 2rem;
}

.footer {
  background: #111;
  padding: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.footer h3 {
  margin-bottom: 1rem;
}

.footer .socials {
  margin-bottom: 1rem;
}

.footer .socials a {
  margin: 0 0.5rem;
  color: #bbb;
  text-decoration: none;
}

.section-divider {
  height: 10px;
  background: linear-gradient(90deg, #5865F2, #8b9cf9, #5865F2);
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1; /* обязательно */
  transition: opacity 0.5s ease; /* можно сделать в CSS, чтобы JS только менял opacity */
}


.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #fff;
  border-top: 6px solid #ff0000; /* цвет крутящейся части */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}