/* === ОБЩИЕ СТИЛИ === */
:root {
  --primary: #00ff88;
  --secondary: #03c6fc;
  --danger: #e81717;
  --purple: #7202fa;
  --pink: #bd34eb;
  --green: #6ca16d;
  --blue: #344ceb;
  --orange: #ffaa00;
  --dark: #0d0d0d;
  --dark-light: #1a1a2e;
  --text: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-image: url('/background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

html {
  scroll-behavior: smooth;
}

.dropdown-toggle {
  position: relative;
  padding-right: 35px !important;
}

.dropdown-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 12px;
  padding: 10px 0;
  min-width: 250px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.dropdown-item:hover {
  background: rgba(0, 255, 136, 0.1);
  color: var(--primary);
  border-left-color: var(--primary);
}

.dropdown-item i {
  margin-right: 10px;
  width: 16px;
  text-align: center;
}

.dropdown-divider {
  height: 1px;
  background: rgba(0, 255, 136, 0.2);
  margin: 8px 0;
}

/* === ОБЩИЙ КОНТЕЙНЕР === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  margin-top: 80px; /* Отступ для фиксированной панели */
}

/* === ОБЩИЙ ХЕДЕР === */
header {
  text-align: center;
  padding: 40px 20px;
  margin-bottom: 40px;
}

header h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

header p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
  color: #aaa;
}

/* === ОБЩИЙ СЕКЦИОННЫЙ ЗАГОЛОВОК === */
.section-title {
  font-size: 2.2rem;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
  color: var(--text);
}

/* === ФУТЕР (ОБЩИЙ) === */
.footer {
  text-align: center;
  padding: 30px 20px;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #aaa;
}

/* === КНОПКА "НАВЕРХ" === */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  background: var(--secondary);
  transform: translateY(-5px);
}

/* === ДОПОЛНИТЕЛЬНЫЕ ЭЛЕМЕНТЫ: PRELOADER и ПЕРЕВОД === */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0d0d0d;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    animation: glow 1.5s infinite alternate;
}

.preloader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto 15px;
}

.preloader-progress {
    width: 0%;
    height: 100%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    transition: width 0.3s linear;
}

.preloader-text {
    color: #aaa;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Переключатель языка */
.lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-btn:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--primary);
}

.lang-menu {
    position: absolute;
    top: 130%;
    right: 0;
    background: rgba(13, 13, 13, 0.95);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    min-width: 120px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.lang-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu a {
    color: var(--text);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.lang-menu a:hover {
    background: rgba(0, 255, 136, 0.15);
    color: var(--primary);
}

/* Логотип на главной */
.logo h1 {
  font-size: 3rem;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
  margin-bottom: 10px;
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 10px rgba(0, 255, 136, 0.3); }
  to { text-shadow: 0 0 20px rgba(0, 255, 136, 0.6), 0 0 30px rgba(0, 255, 136, 0.4); }
}

/* Анимированный фон (только для index) */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.bg-animation::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0,255,136,0.05) 0%, rgba(13,13,13,1) 70%);
  animation: pulse 15s infinite alternate;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 0.8; }
}

.particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  animation: float 20s infinite linear;
  opacity: 0.3;
}

@keyframes float {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-100vh) translateX(100px); opacity: 0; }
}

/* Социальные кнопки в углу */
.social-corner {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.social-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.social-btn:hover::after {
  transform: translateY(0);
}

.social-btn:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 255, 255, 0.3);
}

.social-telegram { background: #0088cc; }
.social-discord { background: #5865F2; }
.social-register { background: var(--pink); }

.social-tooltip {
  position: absolute;
  right: 50px;
  background: rgba(0, 0, 0, 0.8);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.social-btn:hover .social-tooltip {
  opacity: 1;
}

/* Основной контент главной */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  position: relative;
  margin-top: 80px;
}

.content {
  max-width: 900px;
  width: 100%;
  z-index: 10;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo p {
  font-size: 1.2rem;
  color: #aaa;
  margin-bottom: 30px;
}

/* Информация о сервере */
.server-info {
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
  margin: 25px 0;
  border: 1px solid rgba(0, 255, 136, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.server-info:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 255, 136, 0.4);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.info-item {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 15px;
  border-radius: 8px;
}

.info-item i {
  margin-right: 10px;
  color: var(--primary);
  font-size: 1.2rem;
}

/* Стили для кликабельного IP-блока */
.info-item.clickable {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.info-item.clickable:hover {
  background: rgba(0, 255, 136, 0.15);
  transform: translateY(-2px);
}

.info-item.clickable:active {
  transform: translateY(0);
}

.info-item.clickable::after {
  content: 'Кликните чтобы скопировать';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: var(--primary);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.info-item.clickable:hover::after {
  opacity: 1;
}

/* Кнопка "Начать играть" */
.play-button {
  display: inline-block;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: #000;
  padding: 18px 40px;
  margin: 30px 0;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.play-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.5s;
}

.play-button:hover::before {
  left: 100%;
}

.play-button:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.play-button i {
  margin-right: 10px;
}

/* Остальные кнопки */
.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 30px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  min-width: 200px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 255, 255, 0.2);
}

.btn i {
  margin-right: 8px;
  font-size: 1.1rem;
}

.btn-primary { background: var(--primary); color: #000; }
.btn-primary:hover { box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 255, 136, 0.6); }

.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 162, 255, 0.6); }

.btn-orange { background: var(--orange); color: #000; }
.btn-orange:hover { box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 107, 0, 0.6); }

/* Социальные кнопки в тексте */
.btn-telegram {
  background: #0088cc;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-telegram:hover { box-shadow: 0 0 15px rgba(0, 136, 204, 0.5);
  background-color: #005580;
}

.btn-telegram i {
  margin-right: 5px;
}

.btn-discord {
  background: #7289da;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-discord:hover { box-shadow: 0 0 15px rgba(114, 137, 218, 0.5);
  background-color: #5865f2;
}

.btn-discord i {
  margin-right: 5px;
}

.copy-icon {
  cursor: pointer;
  margin-left: 5px;
}

.copy-icon:hover {
  color: #007bff;
}

/* Статус сервера */
.server-status {
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
  margin: 30px 0;
  border: 1px solid rgba(0, 255, 136, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.server-status:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 255, 136, 0.4);
}

.status-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

.online { background: var(--primary); }
.offline { background: var(--danger); }
.loading { background: var(--orange); }

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

/* Кнопка обновления статистики */
.btn-refresh {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    width: 100%;
}

.btn-refresh:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-refresh:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cooldown-timer {
    font-size: 12px;
    color: #ff6b6b;
    margin-top: 5px;
    display: none;
    text-align: center;
}

/* Модальное окно правил */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  margin: 5% auto;
  padding: 30px;
  border-radius: 15px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 136, 0.3);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: var(--primary);
  transition: color 0.3s;
}

.close-modal:hover {
  color: var(--danger);
}

.rules-list {
  text-align: left;
  margin: 20px 0;
}

.rules-list li {
  margin-bottom: 15px;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
}

/* === СПЕЦИФИЧНЫЕ СТИЛИ ДЛЯ RULES.HTML === */

.rules-section {
  margin-bottom: 40px;
}

.rule-card {
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-left: 4px solid var(--primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 1;
  animation: none;
}

.rule-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.rule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.rule-number {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.rule-title {
  font-size: 1.4rem;
  font-weight: 600;
  flex: 1;
  margin-left: 15px;
  color: var(--text);
}

.rule-content {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.rule-content p {
  margin-bottom: 10px;
}

.punishment {
  background: rgba(220, 53, 69, 0.2);
  border-left: 4px solid var(--danger);
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
  font-weight: bold;
  color: #ff6b6b;
}

/* Chat Rules Specific */
.chat-rule {
  border-left-color: var(--pink);
}

.chat-rule .rule-number {
  background: linear-gradient(135deg, var(--pink), #ff4b2b);
}

/* === СПЕЦИФИЧНЫЕ СТИЛИ ДЛЯ START.HTML === */

.tutorial-section {
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 50px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-left: 4px solid var(--primary);
}

.tutorial-steps {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 20px;
}

.tutorial-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.step-number {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(3, 198, 252, 0.3);
}

.step-content {
  flex-grow: 1;
  width: 100%;
  box-sizing: border-box;
}

.step-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.step-description {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 900px) {
  .tutorial-section,
  .download-card {
    backdrop-filter: none;
  }
}

/* Download Section */
.download-section {
  margin-bottom: 50px;
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.download-card {
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-left: 4px solid var(--primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.download-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary);
  text-align: center;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text);
}

.card-description {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  flex-grow: 1;
  margin-bottom: 20px;
}

.download-btn {
  display: inline-block;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: #000;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

.download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.5s;
}

.download-btn:hover::before {
  left: 100%;
}

.download-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(3, 198, 252, 0.4);
}

.download-btn i {
  margin-right: 8px;
}

/* === СПЕЦИФИЧНЫЕ СТИЛИ ДЛЯ GALLERY.HTML === */

.gallery-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  margin-top: 80px;
}

.gallery-header h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Сетка галереи */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border-color: var(--primary);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Улучшенное модальное окно с перелистыванием */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  animation: fadeIn 0.3s ease;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.gallery-modal-content {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
  animation: zoomIn 0.3s ease;
  object-fit: contain;
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Кнопки навигации */
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 24px;
  padding: 15px 20px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2002;
  backdrop-filter: blur(10px);
  border: none;
  outline: none;
}

.modal-nav:hover {
  background: var(--primary);
  color: var(--dark);
  transform: translateY(-50%) scale(1.1);
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

/* Счетчик изображений */
.modal-counter {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--primary);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.7);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 1rem;
  user-select: none;
  backdrop-filter: blur(10px);
}

/* Информация о изображении */
#imageCaption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--primary);
  font-weight: 600;
  text-align: center;
  user-select: none;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 1.1rem;
  backdrop-filter: blur(10px);
}

/* Кнопка закрытия */
.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  color: var(--primary);
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
  z-index: 2001;
  background: rgba(0, 0, 0, 0.7);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: none;
}

.modal-close:hover {
  color: var(--secondary);
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

/* === СПЕЦИФИЧНЫЕ СТИЛИ ДЛЯ INFO.HTML === */

.info-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  margin-top: 80px;
}

.info-header h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Быстрые ссылки */
.quick-links {
  margin-bottom: 50px;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 255, 136, 0.2);
  text-align: center;
}

.quick-link:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.quick-link i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.quick-link span {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Секции информации */
.info-section {
  margin-bottom: 60px;
  padding: 30px;
  background: rgba(30, 30, 30, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 136, 0.1);
}

.section-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #ccc;
  line-height: 1.7;
}

/* Сетка зон */
.zones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.zone-card {
  background: rgba(30, 30, 30, 0.8);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
  border-left: 4px solid;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.zone-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.zone-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.zone-color-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.zone-header h3 {
  font-size: 1.4rem;
  color: var(--text);
}

.zone-header h3 i {
  margin-right: 10px;
}

.zone-subtitle {
  font-size: 1rem;
  color: #aaa;
  margin-bottom: 15px;
  font-style: italic;
}

.zone-rules {
  list-style: none;
  margin-bottom: 15px;
}

.zone-rules li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.zone-rules li i {
  margin-right: 10px;
  width: 16px;
}

.zone-description {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.6;
}

/* Цвета зон */
.red-zone { border-left-color: #ff4444; }
.red { background: #ff4444; }

.blue-zone { border-left-color: #44aaff; }
.blue { background: #44aaff; }

.lime-zone { border-left-color: #88ff44; }
.lime { background: #88ff44; }

.yellow-zone { border-left-color: #ffcc44; }
.yellow { background: #ffcc44; }

.green-zone { border-left-color: #44ff88; }
.green { background: #44ff88; }

/* Команды */
.commands-list {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}

.command-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.command-item code {
  background: rgba(0, 255, 136, 0.2);
  padding: 5px 10px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: var(--primary);
  margin-right: 15px;
  min-width: 150px;
}

.command-item span {
  color: #ccc;
}

.section-note {
  margin-top: 20px;
  font-style: italic;
  color: #aaa;
  text-align: center;
}

.section-note code {
  background: rgba(0, 255, 136, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--primary);
}

/* Советы новичкам */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.tip-card {
  background: rgba(30, 30, 30, 0.8);
  border-radius: 12px;
  padding: 30px 25px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 255, 136, 0.2);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.tip-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.tip-card i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.tip-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text);
}

.tip-card p {
  color: #ccc;
  line-height: 1.6;
}

/* Легенда зон */
.zones-legend {
  margin-top: 50px;
  padding: 30px;
  background: rgba(30, 30, 30, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 136, 0.1);
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Спецификации сервера */
.specs-list {
  max-width: 600px;
  margin: 0 auto;
}

.spec-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  margin-bottom: 10px;
  border-left: 4px solid var(--primary);
}

.spec-item i {
  font-size: 1.2rem;
  color: var(--primary);
  margin-right: 15px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.spec-text {
  color: #ccc;
  flex-grow: 1;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
  .container, .info-container, .gallery-container {
    margin-top: 140px;
  }

  .start-page {
    padding-top: var(--nav-offset, 0px);
  }

  .start-page .container {
    margin-top: 0;
  }

  header h1, .info-header h1, .gallery-header h1 {
    font-size: 2.5rem;
  }

  .rule-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .rule-title {
    margin-left: 0;
    margin-top: 15px;
  }

  .download-cards {
    grid-template-columns: 1fr;
  }

  .tutorial-step {
    flex-direction: column;
    text-align: center;
  }

  .step-number {
    align-self: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 15px 0;
  }

  .gallery-item img {
    height: 200px;
  }

  .links-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }

  .quick-link {
    padding: 20px 15px;
  }

  .quick-link i {
    font-size: 2rem;
  }

  .zones-grid, .tips-grid, .legend-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .info-section {
    padding: 20px;
    margin-bottom: 40px;
  }

  .hero {
    margin-top: 120px;
  }

  /* Адаптивность для выпадающего меню */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(0, 0, 0, 0.3);
    margin-top: 10px;
    display: none;
  }
  
  .dropdown-toggle {
    padding-right: 12px !important;
  }
  
  .dropdown-arrow {
    display: none;
  }

  /* Адаптивность для модального окна галереи */
  .modal-nav {
    padding: 12px 16px;
    font-size: 20px;
  }
  
  .modal-prev {
    left: 10px;
  }
  
  .modal-next {
    right: 10px;
  }
  
  .modal-close {
    top: 10px;
    right: 15px;
    font-size: 28px;
    width: 35px;
    height: 35px;
  }
  
  .modal-counter {
    top: 15px;
    font-size: 0.9rem;
    padding: 6px 12px;
  }
  
  #imageCaption {
    bottom: 15px;
    font-size: 1rem;
    padding: 8px 16px;
  }
  
  .gallery-modal-content {
    max-width: 95vw;
    max-height: 85vh;
  }
}

@media (max-width: 480px) {
  .container, .info-container, .gallery-container {
    margin-top: 160px;
    padding: 10px;
  }

  header h1, .info-header h1, .gallery-header h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .rule-card, .download-card, .tutorial-section, .zone-card, .tip-card {
    padding: 20px;
  }

  .rule-number {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gallery-item img {
    height: 180px;
  }

  .hero {
    margin-top: 140px;
  }

  .command-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .command-item code {
    min-width: auto;
    width: 100%;
    text-align: center;
  }

  /* Адаптивность для модального окна на маленьких экранах */
  .modal-nav {
    padding: 10px 14px;
    font-size: 18px;
    bottom: 20px;
    top: auto;
    transform: none;
  }
  
  .modal-prev {
    left: 20px;
    right: auto;
  }
  
  .modal-next {
    right: 20px;
    left: auto;
  }
  
  .modal-counter {
    top: 60px;
  }
}

/* Мобильное меню для выпадающих пунктов */
@media (max-width: 768px) {
  .dropdown-toggle {
      cursor: pointer;
  }
  
  .dropdown-menu {
      display: none;
      position: static;
      opacity: 1;
      visibility: visible;
      transform: none;
      background: rgba(0, 0, 0, 0.4);
      margin-top: 10px;
      animation: none;
  }
}

/* === СТИЛИ ДЛЯ СТРАНИЦЫ НОВОСТЕЙ === */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.news-card {
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 255, 136, 0.1);
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  border-color: var(--primary);
}

.news-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.1);
}

.news-date {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  backdrop-filter: blur(10px);
}

.news-date i {
  margin-right: 5px;
}

.news-content {
  padding: 25px;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.85rem;
  color: #aaa;
}

.news-author, .news-status {
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-author i {
  color: var(--secondary);
}

.news-status i {
  color: var(--primary);
  font-size: 0.6rem;
}

.news-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--text);
  line-height: 1.4;
}

.news-description {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 20px;
  max-height: 100px;
  overflow: hidden;
  position: relative;
}

.news-description::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(30, 30, 30, 0.9));
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.news-read-more:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

/* Пагинация */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 50px 0 30px;
}

#page-info {
  color: var(--text);
  font-weight: 600;
  min-width: 120px;
  text-align: center;
}

/* Сообщения */
.loading-spinner {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  color: var(--primary);
}

.loading-spinner i {
  font-size: 3rem;
  margin-bottom: 20px;
}

.loading-spinner p {
  font-size: 1.2rem;
  color: #aaa;
}

.error-message, .no-news {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 0, 0, 0.3);
}

.error-message i {
  font-size: 3rem;
  color: #ff4444;
  margin-bottom: 20px;
}

.no-news i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.error-message h3, .no-news h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--text);
}

.error-message p, .no-news p {
  color: #aaa;
  margin-bottom: 25px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Анимация появления */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Адаптивность */
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .news-image {
    height: 180px;
  }
  
  .pagination {
    flex-direction: column;
    gap: 15px;
  }
  
  #page-info {
    order: -1;
  }
}

/* Исправление для кнопок на мобильных устройствах */
.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 30px 0;
  align-items: center; /* Выравнивание по центру по вертикали */
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  min-width: 200px;
  text-align: center;
  height: auto; /* Убираем фиксированную высоту */
  line-height: 1.4;
}

/* Кнопки социальных сетей */
.btn-telegram {
  background: #0088cc;
  color: white;
}

.btn-discord {
  background: #7289da;
  color: white;
}

.btn-blue {
  background: var(--blue);
  color: white;
}

/* Исправление для мобильных устройств */
@media (max-width: 768px) {
  /* Кнопки на мобильных */
  .buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    min-width: unset;
  }
  
  /* Информационная сетка на мобильных */
  .info-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  /* Статус сервера на мобильных */
  .status-box {
    flex-direction: column;
    align-items: center;
  }
  
  .status-indicator {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  /* Уменьшаем размер кнопок */
  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  /* Логотип главной страницы */
  .logo h1 {
    font-size: 2rem;
    line-height: 1.3;
  }
}

/* Исправление для кнопок - предотвращаем съезжание */
.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 30px 0;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  min-width: 200px;
  text-align: center;
  height: auto;
  line-height: 1.4;
  flex-shrink: 0; /* Предотвращаем сжатие кнопок */
}

/* Специальные классы для кнопок социальных сетей */
.btn-telegram {
  background: #0088cc;
  color: white;
  flex: 1;
  max-width: 250px;
}

.btn-discord {
  background: #7289da;
  color: white;
  flex: 1;
  max-width: 250px;
}

.btn-blue {
  background: var(--blue);
  color: white;
  flex: 1;
  max-width: 250px;
}

/* Адаптивность */
@media (max-width: 1024px) {  
  .btn {
    min-width: 180px;
  }
}

@media (max-width: 768px) {
  /* Кнопки на мобильных */
  .buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-telegram,
  .btn-discord,
  .btn-blue {
    max-width: 100%;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    min-width: unset;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

/* Дополнительное исправление для вертикального выравнивания кнопок */
.btn i {
  margin-right: 8px;
  flex-shrink: 0;
}

.btn span {
  flex-grow: 1;
  text-align: center;
}

/* Фикс для кнопок в блоке server-info */
.info-item.clickable {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.copy-icon {
  margin-left: auto;
  flex-shrink: 0;
}

/* Фикс для кнопки обновления статистики */
.btn-refresh {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* === СТИЛИ ДЛЯ СТРАНИЦЫ ОБРАЩЕНИЙ === */

/* Стили для формы обращений */
.registration-form {
  background: rgba(30, 30, 30, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 30px;
  border: 1px solid rgba(0, 255, 136, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  margin: 20px 0;
}

.registration-form:hover {
  transform: translateY(-5px);
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--primary);
}

.form-group small {
  display: block;
  margin-top: 5px;
  font-size: 0.8rem;
  color: #aaa;
  line-height: 1.4;
}

/* Тёмные поля ввода */
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
  background: rgba(0, 0, 0, 0.8);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Стили для выпадающих списков */
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2300ff88' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
}

/* Стили для файлового инпута */
.form-group input[type="file"] {
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed rgba(0, 255, 136, 0.3);
  padding: 15px;
  cursor: pointer;
}

.form-group input[type="file"]:hover {
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.6);
}

/* Скрываемые поля */
.hidden-field {
  display: none;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Информационные блоки */
.info-text {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.info-text p {
  margin-bottom: 10px;
}

.info-text p:last-child {
  margin-bottom: 0;
}

/* Кнопка "Назад" */
.btn-back {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  margin-top: 10px;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Адаптивность для формы */
@media (max-width: 768px) {
  .registration-form {
    padding: 20px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
  
  .info-text {
    padding: 12px;
    font-size: 0.85rem;
  }
}

/* === СТИЛИ ДЛЯ КОМПАНИЙ === */

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.company-card {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 255, 136, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

.company-card.invitation {
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(30, 30, 30, 0.6);
}

.company-card.invitation:hover {
    border-color: var(--secondary);
    background: rgba(30, 30, 30, 0.8);
}

.company-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.company-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-right: 15px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 12px;
}

.company-card.invitation .company-icon {
    color: var(--secondary);
    background: rgba(3, 198, 252, 0.1);
}

.company-header h3 {
    font-size: 1.6rem;
    color: var(--text);
    flex-grow: 1;
    margin: 0;
}

.company-status {
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
}

.company-status.active {
    background: rgba(0, 255, 136, 0.2);
    color: var(--primary);
    border: 1px solid rgba(0, 255, 136, 0.4);
}

.company-content {
    flex-grow: 1;
}

.company-description {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

.company-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    font-size: 0.9rem;
}

.info-item i {
    color: var(--primary);
    font-size: 0.9rem;
}

.company-website-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: #000;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    text-align: center;
}

.company-website-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.company-website-btn i {
    font-size: 1rem;
}

.invitation-text {
    color: var(--secondary);
    font-style: italic;
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: rgba(3, 198, 252, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(3, 198, 252, 0.2);
}

/* Адаптивность для компаний */
@media (max-width: 768px) {
    .companies-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .company-card {
        padding: 20px;
    }
    
    .company-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .company-icon {
        margin-right: 0;
    }
    
    .company-info {
        grid-template-columns: 1fr;
    }
}

 .rules-navigation {
            background: rgba(30, 30, 30, 0.8);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            padding: 20px;
            margin: 30px 0;
            border: 1px solid rgba(0, 255, 136, 0.2);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            position: sticky;
            top: 90px;
            z-index: 99;
        }

        .rules-nav-container h3 {
            font-size: 1.2rem;
            margin-bottom: 15px;
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .rules-nav-container h3 i {
            color: var(--secondary);
        }

        .rules-nav-links {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 10px;
        }

        .rules-nav-link {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 15px;
            background: rgba(0, 0, 0, 0.4);
            border-radius: 8px;
            color: var(--text);
            text-decoration: none;
            transition: all 0.3s ease;
            border: 1px solid transparent;
        }

        .rules-nav-link:hover {
            background: rgba(0, 255, 136, 0.1);
            border-color: rgba(0, 255, 136, 0.3);
            transform: translateY(-2px);
        }

        .rules-nav-link.active {
            background: rgba(0, 255, 136, 0.15);
            border-color: var(--primary);
            color: var(--primary);
        }

        .rules-nav-link i {
            font-size: 1rem;
            color: var(--secondary);
        }

        .rules-nav-link.active i {
            color: var(--primary);
        }

        /* Адаптивность для навигационной панели */
        @media (max-width: 768px) {
            .rules-navigation {
                position: static;
                margin: 20px 0;
                padding: 15px;
            }
            
            .rules-nav-links {
                grid-template-columns: 1fr;
            }
            
            .rules-nav-link {
    margin: 0;
}

.company-status {
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
}

.company-status.active {
    background: rgba(0, 255, 136, 0.2);
    color: var(--primary);
    border: 1px solid rgba(0, 255, 136, 0.4);
}

.company-content {
    flex-grow: 1;
}

.company-description {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

.company-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    font-size: 0.9rem;
}

.info-item i {
    color: var(--primary);
    font-size: 0.9rem;
}

.company-website-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: #000;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    text-align: center;
}

.company-website-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.company-website-btn i {
    font-size: 1rem;
}

.invitation-text {
    color: var(--secondary);
    font-style: italic;
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: rgba(3, 198, 252, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(3, 198, 252, 0.2);
}

/* Адаптивность для компаний */
@media (max-width: 768px) {
    .companies-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .company-card {
        padding: 20px;
    }
    
    .company-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .company-icon {
        margin-right: 0;
    }
    
    .company-info {
        grid-template-columns: 1fr;
    }
}

        .rules-navigation {
            background: rgba(30, 30, 30, 0.8);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            padding: 20px;
            margin: 30px 0;
            border: 1px solid rgba(0, 255, 136, 0.2);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            position: sticky;
            top: 90px;
            z-index: 99;
        }

        .rules-nav-container h3 {
            font-size: 1.2rem;
            margin-bottom: 15px;
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .rules-nav-container h3 i {
            color: var(--secondary);
        }

        .rules-nav-links {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 10px;
        }

        .rules-nav-link {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 15px;
            background: rgba(0, 0, 0, 0.4);
            border-radius: 8px;
            color: var(--text);
            text-decoration: none;
            transition: all 0.3s ease;
            border: 1px solid transparent;
        }

        .rules-nav-link:hover {
            background: rgba(0, 255, 136, 0.1);
            border-color: rgba(0, 255, 136, 0.3);
            transform: translateY(-2px);
        }

        .rules-nav-link.active {
            background: rgba(0, 255, 136, 0.15);
            border-color: var(--primary);
            color: var(--primary);
        }

        .rules-nav-link i {
            font-size: 1rem;
            color: var(--secondary);
        }

        .rules-nav-link.active i {
            color: var(--primary);
        }

        @media (max-width: 480px) {
            .rules-navigation {
                padding: 12px;
            }
            
            .rules-nav-container h3 {
                font-size: 1rem;
            }
            
            .rules-nav-link {
                padding: 8px 10px;
                font-size: 0.85rem;
            }
        }

/* === КАСТОМНЫЙ КУРСОР === */
@media (min-width: 768px) {
  body {
      cursor: none; /* Скрываем стандартный курсор только на ПК */
  }

  a, button, .clickable, input, textarea {
      cursor: none !important;
  }
}

a, button, .clickable, input, textarea {
    cursor: none !important;
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: difference;
}

.custom-cursor-tail {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--secondary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.2s, height 0.2s;
    box-shadow: 0 0 10px var(--secondary), 0 0 20px var(--secondary);
}

.cursor-hover {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 255, 136, 0.2);
    border-color: var(--secondary);
}

.tail-hover {
    width: 0;
    height: 0;
}
}

/* === НАВИГАЦИОННАЯ ПАНЕЛЬ (ПОЛНАЯ ВЕРСИЯ) === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 255, 136, 0.2);
  z-index: 1000;
  padding: 12px 0;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 20px;
}

/* ЛОГОТИП */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo img {
  height: 30px;
  width: auto;
  display: block;
}

.nav-logo h1 {
  display: none;
}

/* ОБЁРТКА МЕНЮ */
.nav-menu-wrapper {
  display: flex;
  flex: 1;
  justify-content: center;
}

/* МЕНЮ - на десктопе в одну строку, на мобилках переносится */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-item {
  position: relative;
}

/* ССЫЛКИ */
.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 25px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(0, 255, 136, 0.1);
  color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.nav-link.active {
  background: rgba(0, 255, 136, 0.2);
  color: var(--primary);
}

.nav-link i {
  font-size: 0.9rem;
}

/* === ПЛАНШЕТЫ (768px - 1024px) === */
@media (max-width: 1024px) {
  .nav-container {
    flex-direction: column;
    gap: 12px;
    padding: 10px 15px;
  }
  
  .nav-logo {
    width: 100%;
    justify-content: center;
  }
  
  .nav-logo img {
    height: 30px;
  }
  
  .nav-menu-wrapper {
    width: 100%;
    justify-content: center;
  }
  
  /* Кнопки переносятся на новые строки */
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  
  .nav-link {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
  
  .nav-link i {
    font-size: 0.8rem;
  }
}

/* === ТЕЛЕФОНЫ (до 768px) === */
@media (max-width: 768px) {
  .navbar {
    padding: 10px 0;
  }
  
  .nav-container {
    padding: 8px 12px;
    gap: 10px;
  }
  
  .nav-logo img {
    height: 28px;
  }
  
  /* Кнопки переносятся, горизонтального скролла НЕТ */
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
  
  .nav-link {
    padding: 5px 10px;
    font-size: 0.8rem;
  }
  
  .nav-link i {
    font-size: 0.75rem;
  }
}

/* === ОЧЕНЬ МАЛЕНЬКИЕ ТЕЛЕФОНЫ (до 480px) === */
@media (max-width: 480px) {
  .nav-container {
    padding: 6px 10px;
    gap: 8px;
  }
  
  .nav-logo img {
    height: 26px;
  }
  
  .nav-menu {
    gap: 5px;
  }
  
  .nav-link {
    padding: 4px 8px;
    font-size: 0.7rem;
  }
  
  .nav-link i {
    font-size: 0.7rem;
    margin-right: 4px;
  }
}