/* === ОСНОВНЫЕ СТИЛИ === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Orbitron', monospace;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

/* === ГЛАВНЫЙ КОНТЕНТ === */
.main-content {
  min-height: 100vh;
  width: 100%;
  background-image: url('logo.jpg');
  background-size: 60px;
  background-position: 20px 20px;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.main-content.visible {
  opacity: 1;
}

/* === ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКОВ === */
.language-switcher {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.lang-btn .flag {
  font-size: 1.1rem;
  line-height: 1;
}

.lang-btn .lang-text {
  font-size: 0.75rem;
  letter-spacing: 1px;
}

/* === КОНТЕНТ ПОВЕРХ ФОНА === */
.content-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* Легкое затемнение для лучшей читаемости */
  z-index: 1;
}

.main-text {
  position: absolute;
  top: 2%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.main-text h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.main-text p {
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 1px;
  opacity: 0.9;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
  .main-content {
    background-attachment: scroll;
    background-size: 45px;
  }
  
  .language-switcher {
    top: 15px;
    right: 15px;
    gap: 6px;
  }
  
  .lang-btn {
    padding: 6px 10px;
    font-size: 0.7rem;
  }
  
  .lang-btn .flag {
    font-size: 1rem;
  }
  
  .lang-btn .lang-text {
    font-size: 0.65rem;
  }
  
  .main-text h1 {
    font-size: 2rem;
    letter-spacing: 2px;
  }
  
  .main-text p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .main-content {
    background-size: 40px;
  }
  
  .language-switcher {
    top: 10px;
    right: 10px;
    gap: 4px;
  }
  
  .lang-btn {
    padding: 5px 8px;
    font-size: 0.65rem;
  }
  
  .lang-btn .flag {
    font-size: 0.9rem;
  }
  
  .lang-btn .lang-text {
    font-size: 0.6rem;
  }
  
  .main-text h1 {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }
  
  .main-text p {
    font-size: 0.9rem;
  }
}
