/* Основные стили для страницы */  
.article-card {
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.article-card:hover {
  transform: translateY(-10px) rotateX(5deg);
}

body {  
  background-color: #1a1a1a;  
  color: #ffffff;  
  font-family: 'Arial', sans-serif;  
  margin: 0;  
  padding: 0;  
}  

/* Интерактивный фон */  
body::before {  
  content: '';  
  position: fixed;  
  top: 0;  
  left: 0;  
  width: 100%;  
  height: 100%;  
  background-image:   
    radial-gradient(circle at 10% 20%, rgba(255, 77, 77, 0.03) 0%, transparent 40%),  
    radial-gradient(circle at 90% 80%, rgba(255, 77, 77, 0.03) 0%, transparent 40%);  
  z-index: -1;  
  opacity: 0.7;  
  animation: backgroundPulse 15s infinite alternate;  
}  

@keyframes backgroundPulse {  
  0% {  
    opacity: 0.5;  
    transform: scale(1);  
  }  
  100% {  
    opacity: 0.7;  
    transform: scale(1.1);  
  }  
}  

/* Стили для информационного блока */  
.info-section {  
  text-align: center;  
  max-width: 60%;  
  /* main уже даёт отступ под шапку — не дублировать vh сверху */
  margin: 20px auto 40px;  
  padding: 40px;  
  background-color: rgba(0, 0, 0, 0.3);  
  border-radius: 10px;  
  animation: fadeInUp 1.2s ease-out forwards;  
}  

.info-section h1 {  
  font-size: 2.5rem;  
  color: #ff4d4d;  
  margin-bottom: 20px;  
  text-shadow: 0 0 10px rgba(255, 77, 77, 0.3);  
  animation: scaleIn 1.4s ease-out forwards;  
  opacity: 0;  
  animation-delay: 0.3s;  
}  

.info-section p {  
  font-size: 1.1rem;  
  color: #cccccc;  
  margin-bottom: 30px;  
  line-height: 1.6;  
  animation: fadeInUp 1.6s ease-out forwards;  
  opacity: 0;  
  animation-delay: 0.5s;  
}  

.info-section .btn {  
  display: inline-block;  
  padding: 12px 25px;  
  background-color: #ff4d4d;  
  color: white;  
  text-decoration: none;  
  border-radius: 5px;  
  font-weight: bold;  
  transition: background-color 0.3s ease, transform 0.3s ease;  
  animation: fadeInUp 1.8s ease-out forwards, glowPulse 3s infinite 2s;  
  opacity: 0;  
  animation-delay: 0.7s;  
}  

.info-section .btn:hover {  
  background-color: #e60000;  
  transform: translateY(-3px);  
}  

/* Стили для карточек статей */  
.articles-preview {
  padding: 40px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  margin: 20px auto;
  max-width: 80%; /* Возвращаем нормальную ширину для десктопа */
  animation: fadeInUp 1.8s ease-out forwards;
  opacity: 0;
  animation-delay: 2.4s;
}

.articles-preview h2 {  
  text-align: center;  
  font-size: 2rem;  
  margin-bottom: 30px;  
  color: #cccccc;  
  animation: fadeInUp 1.2s ease-out;  
  position: relative;  
}  

.articles-preview h2::after {  
  content: '';  
  position: absolute;  
  bottom: -10px;  
  left: 50%;  
  transform: translateX(-50%);  
  width: 50px;  
  height: 3px;  
  background-color: #ff4d4d;  
  transition: width 0.5s ease;  
}  

.articles-preview h2:hover::after {  
  width: 100px;  
}  

.articles-container {  
  display: flex;  
  flex-wrap: wrap;  
  gap: 20px;  
  justify-content: center;  
  animation: fadeInUp 1.4s ease-out;  
}  

.article-card {  
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.9), rgba(40, 40, 40, 0.7));
  border: 1px solid rgba(255, 77, 77, 0.1);
  backdrop-filter: blur(10px);
  flex: 1;  
  min-width: 250px;  
  max-width: 350px;  
  background-color: rgba(30, 30, 30, 0.7);  
  border-radius: 8px;  
  padding: 20px;  
  display: flex;  
  flex-direction: column;  
  transition: transform 0.3s ease, box-shadow 0.3s ease;  
  position: relative;  
  overflow: hidden;  
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);  
}  

.article-card::before {  
  content: '';  
  position: absolute;  
  top: 0;  
  left: -100%;  
  width: 100%;  
  height: 2px;  
  background: linear-gradient(90deg, transparent, #ff4d4d, transparent);  
  transition: left 0.5s ease;  
}  

.article-card:hover::before {  
  left: 100%;  
}  

.article-card:nth-child(odd) {  
  animation-delay: 0.3s;  
}  

.article-card:nth-child(even) {  
  animation-delay: 0.5s;  
}  

.article-card h3 {  
  font-size: 1.5rem;  
  margin-bottom: 10px;  
  color: #c7c7c7;  
  animation: fadeInUp 1.8s ease-out;  
}  

.article-card p {  
  font-size: 1rem;  
  color: rgba(255, 255, 255, 0.85);  
  margin-bottom: 10px;  
  animation: fadeInUp 2s ease-out;  
}  

.article-card .read-more {  
  display: block;  
  margin-top: auto;  
  padding: 10px 20px;  
  background-color: #ff4d4d;  
  color: #fff;  
  text-decoration: none;  
  border-radius: 5px;  
  transition: background-color 0.3s ease;  
  animation: fadeInUp 2.2s ease-out;  
  text-align: center;  
}  

.article-card .read-more:hover {  
  background-color: #e60000;  
}  

/* Статус сервера */  
.server-status {  
  background-color: rgba(30, 30, 30, 0.8);  
  border-radius: 8px;  
  padding: 15px;  
  display: flex;  
  align-items: center;  
  max-width: 350px;  
  margin: 20px auto 40px;  
  border: 1px solid rgba(255, 77, 77, 0.3);  
  animation: fadeInUp 2.2s ease-out forwards;  
  opacity: 0;
  text-align: left; 
}  

.status-indicator {  
  width: 15px;  
  height: 15px;  
  border-radius: 50%;  
  margin-right: 15px;  
  animation: pulse 2s infinite;  
}  

.status-indicator.online {  
  background-color: #2ecc71;  
  box-shadow: 0 0 10px #2ecc71;  
}  

.status-indicator.offline {  
  background-color: #e74c3c;  
  box-shadow: 0 0 10px #e74c3c;  
}  

@keyframes pulse {  
  0% {  
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.6);  
  }  
  70% {  
    box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);  
  }  
  100% {  
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);  
  }  
}  

.status-text {  
  flex: 1;  
}  

.server-name {  
  display: block;  
  font-weight: bold;  
  color: white;  
  margin-bottom: 5px;  
}  

.player-count {  
  font-size: 1.2rem;  
  color: rgba(255, 255, 255, 0.8);  
}  

.connect-button {  
  background-color: #ff4d4d;  
  color: white;  
  border: none;  
  border-radius: 4px;  
  padding: 8px 15px;  
  font-size: 0.9rem;  
  cursor: pointer;  
  transition: background-color 0.3s ease;  
  text-decoration: none;  
}  

.connect-button:hover {  
  background-color: #e60000;  
}  

/* Анимации */  
@keyframes fadeInUp {  
  from {  
    opacity: 0;  
    transform: translateY(40px);  
  }  
  to {  
    opacity: 1;  
    transform: translateY(0);  
  }  
}  

@keyframes scaleIn {  
  from {  
    opacity: 0;  
    transform: scale(0.9);  
  }  
  to {  
    opacity: 1;  
    transform: scale(1);  
  }  
}  

@keyframes glowPulse {  
  0% {  
    box-shadow: 0 0 5px rgba(255, 77, 77, 0.2);  
  }  
  50% {  
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.5);  
  }  
  100% {  
    box-shadow: 0 0 5px rgba(255, 77, 77, 0.2);  
  }  
}  

.info-section h1 {  
  font-family: 'Future Z', sans-serif;  
}  

/* Специальный стиль для слова RED */  
.info-section h1 .server-name {  
  color: #ff4d4d;
  font-family: 'Future Z', sans-serif;  
  text-transform: uppercase;  
  letter-spacing: 3px;  
  text-shadow: 0 0 10px rgba(255, 77, 77, 0.5);
  display: inline-block;
  animation: glowEffect 2s infinite alternate;  
}

/* Стиль для server-name в статусе сервера */
.status-text .server-name {  
  display: block;  
  font-weight: bold;  
  color: white;  
  margin-bottom: 5px;
  animation: none; /* Отключаем анимацию для статуса */
} 

@keyframes glowEffect {  
  from {  
    text-shadow: 0 0 5px rgba(255, 77, 77, 0.3);  
  }  
  to {  
    text-shadow: 0 0 15px rgba(255, 77, 77, 0.7);  
  }  
}  

/* ===== Tablet ===== */
@media (max-width: 1024px) {
  .articles-preview {
    max-width: 90%;
  }
}

/* Мобильные устройства */
@media (max-width: 768px) {
  /* Добавляем box-sizing для всех элементов */
  *, *::before, *::after {
    box-sizing: border-box;
  }
  
  .info-section {
    max-width: 95%;
    margin: 16px auto 24px;
    padding: 20px 15px;
  }
  
  .info-section h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  
  .info-section p {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  
  .info-section .btn {
    display: block; /* Изменяем с inline-block на block */
    padding: 15px 30px;
    font-size: 1rem;
    width: auto; /* Убираем фиксированную ширину */
    max-width: 250px;
    margin: 0 auto; /* Центрируем блочный элемент */
    box-sizing: border-box;
  }
  
  /* Статус сервера */
  .server-status {
    max-width: calc(100% - 30px); /* Учитываем отступы родителя */
    margin: 20px auto 30px;
    padding: 20px 15px;
    flex-direction: column;
    text-align: center;
  }
  
  .status-indicator {
    margin: 0 auto 10px;
  }
  
  .status-text {
    margin-bottom: 15px;
  }
  
  .server-name {
    font-size: 1.1rem;
  }
  
  .player-count {
    font-size: 1rem;
  }
  
  /* Статьи - ИСПРАВЛЕНИЕ */
  .articles-preview {
    max-width: 100% !important; /* Используем всю ширину на мобильных */
    margin: 20px 0 !important;  /* Убираем auto margins */
    padding: 30px 15px !important; /* Уменьшаем отступы */
    box-sizing: border-box;
  }
  
  .articles-container {
    flex-direction: column;
    align-items: stretch; /* Растягиваем карточки на всю ширину */
    gap: 15px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }
  
  .article-card {
    width: 100%;
    max-width: none !important;
    min-width: auto;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    flex: none;
  }
  
  .article-card h3 {
    font-size: 1.3rem;
  }
  
  .article-card .read-more {
    padding: 12px 20px;
    font-size: 1rem;
  }
  
  /* Отключение тяжелых анимаций на мобильных */
  body::before {
    animation: none;
    opacity: 0.3;
  }
  
  .article-card:hover {
    transform: none;
  }
}

/* Маленькие мобильные */
@media (max-width: 480px) {
  .info-section {
    margin: 12px auto 20px;
    padding: 15px 10px;
  }
  
  .info-section .btn {
    max-width: 200px; /* Делаем чуть уже на очень маленьких экранах */
    padding: 15px 20px;
  }

  .info-section h1 {
    font-size: 1.5rem;
  }
  
  .info-section h1 .server-name {
    letter-spacing: 1px;
  }
  
  .articles-preview {
    padding: 20px 10px !important;
  }
  
  .articles-preview h2 {
    font-size: 1.3rem;
  }
  
  .article-card {
    padding: 15px;
  }
  
  .server-status {
    padding: 15px 10px;
  }
}

/* Улучшение touch-элементов */
@media (hover: none) and (pointer: coarse) {
  .info-section .btn,
  .article-card .read-more,
  .connect-button {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .article-card:hover::before,
  .articles-preview h2:hover::after {
    animation: none;
  }
}

.hero-section {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 30px auto;
  border-radius: 15px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 2s ease-out forwards;
  opacity: 0;
  animation-delay: 1s;
  cursor: default; /* По умолчанию обычный курсор */
  transition: cursor 0.3s ease;
}

.hero-video {
  width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  background: #1a1a1a;
}

/* Большая кнопка воспроизведения */
.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  transition: all 0.3s ease;
}

.play-overlay.hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  pointer-events: none;
}

.big-play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 77, 77, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(255, 77, 77, 0.4);
}

.big-play-btn:hover {
  background: rgba(255, 77, 77, 1);
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 77, 77, 0.6);
}

.big-play-btn svg {
  width: 20px;
  height: 20px;
  fill: white;
  margin-left: 3px;
}

/* Контролы */
.video-controls-wrapper {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 10px;
  opacity: 0;
  transform: translateY(10px); /* Легкий сдвиг при появлении */
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none; /* Не блокируем клики когда скрыты */
}

.video-controls-wrapper.show,
.hero-section:hover .video-controls-wrapper {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all; /* Включаем клики когда видны */
}

.hero-section:hover .video-controls-wrapper,
.video-controls-wrapper.show {
  opacity: 1;
}

.video-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}


/* Прогресс бар */
.progress-container {
  width: 100%;
}

.progress-bar {
  position: relative;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  cursor: pointer;
  transition: height 0.2s ease;
}

.progress-bar:hover {
  height: 6px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff4d4d, #ff6b6b);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s ease;
  position: relative;
}

.progress-handle {
  position: absolute;
  top: 50%;
  right: -6px;
  width: 12px;
  height: 12px;
  background: #ff4d4d;
  border-radius: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.progress-bar:hover .progress-handle {
  opacity: 1;
}

/* ВСЕ КОНТРОЛЫ В ОДНУ ЛИНИЮ */
.main-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.control-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* Не сжимаются */
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.control-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.play-pause-btn svg {
  width: 18px;
  height: 18px;
}

.hidden {
  display: none !important;
}

/* Время */
.time-display {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0 4px;
}

/* Слайдер громкости */
.volume-slider-container {
  position: relative;
  width: 60px;
  height: 16px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.volume-slider {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff4d4d;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.volume-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff4d4d;
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.volume-slider-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  transform: translateY(-50%);
  pointer-events: none;
}

.volume-slider-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff4d4d, #ff6b6b);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s ease;
}

/* Адаптивность */
@media (max-width: 768px) {
  /* Добавляем box-sizing для всех элементов */
  *, *::before, *::after {
    box-sizing: border-box;
  }
  
  .info-section {
    max-width: 95%;
    margin: 16px auto 24px;
    padding: 20px 15px;
  }
  
  .info-section h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  
  .info-section p {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  
  .info-section .btn {
    display: block;
    padding: 15px 30px;
    font-size: 1rem;
    width: auto;
    max-width: 250px;
    margin: 0 auto;
    box-sizing: border-box;
  }
  
  /* ИСПРАВЛЕННЫЙ блок articles-preview */
  .articles-preview {
    /* Полностью переопределяем */
    width: 100vw; /* Используем всю ширину экрана */
    margin: 20px 10px !important; /* Центрируем относительно viewport */
    box-sizing: border-box;
    max-width: calc(100% - 20px) !important; /* Отступ по 10px с каждой стороны */
    padding: 30px 15px !important;

    /* Оставляем стили оформления */
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    animation: fadeInUp 1.8s ease-out forwards;
    opacity: 0;
    animation-delay: 2.4s;
  }
  
  .articles-container {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }
  
  .article-card {
    width: 100%;
    max-width: none !important;
    min-width: auto;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    flex: none;
  }
  
  .article-card:last-child {
    margin-bottom: 0;
  }
  
  .article-card h3 {
    font-size: 1.3rem;
  }
  
  .article-card .read-more {
    padding: 12px 20px;
    font-size: 1rem;
  }
  
  /* Остальные стили... */
  body::before {
    animation: none;
    opacity: 0.3;
  }
  
  .article-card:hover {
    transform: translateY(-4px); /* Более мягкая анимация */
  }
}

@media (max-width: 480px) {
  .hero-video {
    max-height: 200px;
  }
  
  .video-controls-wrapper {
    bottom: 4px;
    left: 4px;
    right: 4px;
    padding: 6px;
  }
  
  .main-controls {
    gap: 4px;
  }
  
  .control-btn {
    padding: 3px;
  }
  
  .control-btn svg {
    width: 12px;
    height: 12px;
  }
  
  .play-pause-btn svg {
    width: 14px;
    height: 14px;
  }
  
  .time-display {
    font-size: 0.6rem;
  }
  
  .volume-slider-container {
    width: 40px;
  }
  
  /* На маленьких экранах скрываем restart */
  .restart-btn {
    display: none;
  }
    .articles-preview {
    padding: 20px 10px; /* Еще больше уменьшаем отступы */
  }
  
  .article-card {
    padding: 15px 10px;
  }

}

/* ===== UI Refresh overrides (non-breaking) ===== */
:root {
  --container-w: min(1180px, 92vw);
  --accent: #ff4d4d;
  --glass-bg: linear-gradient(145deg, rgba(20,20,20,0.55), rgba(35,35,35,0.35));
  --glass-border: rgba(255,255,255,0.06);
}

/* Инфо-блок становится компактнее и «стекляннее» */
.info-section {
  max-width: var(--container-w);
  padding: 32px 28px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  justify-content: center;
}

.info-section h1 {
  margin-bottom: 4px;
  line-height: 1.2;
  text-shadow: 0 0 6px rgba(255, 77, 77, 0.25);
}

.info-section p {
  color: #d1d1d1;
  margin-bottom: 12px;
}

.info-section .btn {
  border: 1px solid rgba(255, 77, 77, 0.25);
  background: linear-gradient(180deg, #ff4d4d, #e64141);
  box-shadow: 0 10px 22px rgba(255, 77, 77, 0.25);
}

/* На десктопе — 2 колонки: текст + видео */
@media (min-width: 1024px) {
  .info-section {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 28px;
    text-align: left;
  }
  .info-section .hero-section {
    margin: 0; /* убираем лишние отступы у видео при сетке */
  }
}

/* Статьи: аккуратные отступы и стекло */
.articles-preview {
  max-width: var(--container-w);
  background: linear-gradient(145deg, rgba(20,20,20,0.45), rgba(35,35,35,0.35));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}

.articles-container {
  max-width: var(--container-w);
  margin: 0 auto;
  gap: 24px;
}

/* Карточки легче, без резкого 3D-наклона */
.article-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.article-card:hover {
  transform: translateY(-6px); /* вместо rotateX */
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.article-card::before {
  height: 1px; /* тоньше световой штрих */
}

/* Статус сервера — унифицированный glass-вид */
.server-status {
  max-width: 420px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(145deg, rgba(20,20,20,0.55), rgba(35,35,35,0.35));
  backdrop-filter: blur(8px);
}

/* Hero: чуть аккуратнее тени и граница */
.hero-section {
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--glass-border);
}

.video-controls-wrapper {
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.7);
}

/* Фокус-стили для клавиатуры (доступность) */
.info-section .btn:focus-visible,
.article-card .read-more:focus-visible,
.control-btn:focus-visible,
.connect-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.35);
  border-radius: 8px;
}

/* === Article Card — Restyle (non-breaking override) === */
:root {
  /* на случай, если переменные не объявлены выше */
  --accent: #ff4d4d;
}

/* Базовый вид карточки: стекло + мягкая тень */
.article-card {
  background: linear-gradient(180deg, rgba(18, 18, 20, 0.62), rgba(24, 24, 26, 0.42));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.22s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background 0.4s ease;
  transform: translateZ(0); /* убираем намёк на 3D */
}

/* Лёгкий подъём, усиление тени и бордера при ховере */
.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
  border-color: rgba(255, 77, 77, 0.18);
}

/* Тонкая бегущая линия сверху (более деликатная) */
.article-card::before {
  height: 1px;
  top: 0;
  left: -100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* Добавляем «shine sweep» — световая полоска по диагонали */
.article-card::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -60%;
  width: 60%;
  height: 140%;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 30%,
    rgba(255,255,255,0.10) 50%,
    rgba(255,255,255,0) 70%
  );
  transform: rotate(8deg) translateX(0);
  transition: transform 0.8s ease;
}

.article-card:hover::after {
  transform: rotate(8deg) translateX(250%);
}

/* Типографика */
.article-card h3 {
  font-size: 1.3rem;
  color: #e2e2e6;
  margin: 0 0 10px 0;
  letter-spacing: 0.2px;
  position: relative;
  padding-left: 14px;
}

/* Небольшой акцент-точка слева от заголовка */
.article-card h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--accent), #e64141);
  box-shadow: 0 0 10px rgba(255, 77, 77, 0.5);
}

.article-card p {
  color: rgba(255, 255, 255, 0.86);
  margin: 0 0 14px 0;
  line-height: 1.55;
}

/* Кнопка внутри карточки — ghost/стекло в нормальном состоянии */
.article-card .read-more {
  margin-top: auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border: 1px solid rgba(255, 77, 77, 0.35);
  border-radius: 10px;
  padding: 12px 18px;
  box-shadow: 0 6px 16px rgba(255, 77, 77, 0.16);
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.18s ease;
}

/* При ховере — акцентная заливка */
.article-card .read-more:hover {
  background: linear-gradient(180deg, var(--accent), #e64141);
  box-shadow: 0 10px 24px rgba(255, 77, 77, 0.32);
  transform: translateY(-1px);
}

/* На мобильных — без резких эффектов, карточки «стационарные» */
@media (max-width: 768px) {
  .article-card:hover {
    transform: translateY(-4px);
  }
  .article-card::after {
    display: none; /* экономим ресурсы и избегаем резких бликов */
  }
}

/* Уважение к пользователям с отключенными анимациями */
@media (prefers-reduced-motion: reduce) {
  .article-card,
  .article-card * {
    transition: none !important;
    animation: none !important;
  }
}

/* === Fix: скрываем shine в начальном состоянии и уводим за пределы карточки === */
.article-card {
  position: relative;     /* на всякий случай, для корректного позиционирования ::after */
  overflow: hidden;       /* уже есть, но дублирование не повредит */
  backface-visibility: hidden;
  transform: translateZ(0); /* устраняем микрофликеры на некоторых GPU */
}

.article-card::after {
  content: '';
  position: absolute;
  top: -30%;              /* выше, чтобы «блик» не касался угла */
  left: -80%;             /* дальше влево */
  width: 55%;
  height: 160%;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 35%,
    rgba(255,255,255,0.10) 50%,
    rgba(255,255,255,0) 65%
  );
  transform: rotate(8deg) translate3d(-160%, 0, 0); /* старт вне карточки */
  opacity: 0;                                      /* полностью скрыт на старте */
  transition:
    transform 0.8s ease,
    opacity 0.2s ease;
  will-change: transform, opacity;
}

.article-card:hover::after {
  opacity: 1;                                        /* проявляем только на ховере */
  transform: rotate(8deg) translate3d(260%, 0, 0);   /* проскальзываем через карточку */
}

/* На тач-устройствах отключаем shine для стабильности и экономии GPU */
@media (hover: none), (pointer: coarse) {
  .article-card::after { display: none; }
}

/* Горизонтальная статистика сервера */
.server-stats-horizontal {
  max-width: var(--container-w);
  margin: 25px auto;
  padding: 0 20px;
  animation: fadeInUp 2s ease-out forwards;
  opacity: 0;
  animation-delay: 1s;
}

.stats-container {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 25px 30px;
  position: relative;
  overflow: hidden;
  
  /* Принудительное создание композитного слоя */
  transform: translateZ(0);
  will-change: backdrop-filter;
}

.stats-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ff4d4d, transparent);
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.stats-header {
  text-align: center;
  margin-bottom: 25px;
}

.stats-header h3 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 8px;
  text-shadow: 0 0 15px rgba(255, 77, 77, 0.4);
  font-weight: 700;
}

.stats-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.stats-grid-horizontal {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.stat-item-horizontal {
  flex: 1;
  text-align: center;
  min-width: 120px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.stat-item-horizontal:hover {
  transform: translateY(-5px);
}

.stat-item-horizontal .stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: #ff4d4d;
  text-shadow: 
    0 0 10px rgba(255, 77, 77, 0.4),
    0 0 20px rgba(255, 77, 77, 0.2);
  margin-bottom: 8px;
  line-height: 1;
  transition: all 0.3s ease;
}

.stat-item-horizontal:hover .stat-number {
  text-shadow: 
    0 0 15px rgba(255, 77, 77, 0.6),
    0 0 30px rgba(255, 77, 77, 0.3);
  transform: scale(1.1);
}

.stat-item-horizontal .stat-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 77, 77, 0.3),
    transparent
  );
  margin: 0 10px;
  flex-shrink: 0;
}

/* Анимация для чисел */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-number {
  animation: countUp 0.8s ease-out forwards;
}

.stat-item-horizontal:nth-child(2) .stat-number { animation-delay: 0.1s; }
.stat-item-horizontal:nth-child(4) .stat-number { animation-delay: 0.2s; }
.stat-item-horizontal:nth-child(6) .stat-number { animation-delay: 0.3s; }
.stat-item-horizontal:nth-child(8) .stat-number { animation-delay: 0.4s; }

/* Адаптивность */
@media (max-width: 768px) {
  .stats-grid-horizontal {
    flex-direction: column;
    gap: 25px;
  }
  
  .stat-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent,
      rgba(255, 77, 77, 0.3),
      transparent
    );
    margin: 0;
  }
  
  .stat-item-horizontal {
    min-width: auto;
    width: 100%;
  }
  
  .stats-container {
    padding: 20px;
  }
  
  .stats-header h3 {
    font-size: 1.5rem;
  }
  
  .stat-item-horizontal .stat-number {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .server-stats-horizontal {
    margin: 20px auto;
    padding: 0 15px;
  }
  
  .stats-container {
    padding: 15px;
  }
  
  .stats-header {
    margin-bottom: 20px;
  }
  
  .stats-header h3 {
    font-size: 1.3rem;
  }
  
  .stats-subtitle {
    font-size: 0.85rem;
  }
  
  .stat-item-horizontal .stat-number {
    font-size: 2rem;
  }
  
  .stat-item-horizontal .stat-label {
    font-size: 0.85rem;
  }
}

/* Скрываем старый блок статистики если он остался */
.server-stats {
  display: none;
}

.tagline {
  font-size: 1rem;
  color: #969696;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px !important;
  text-shadow: 0 0 8px rgba(237, 237, 237, 0.3);
}

.features-highlight {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
  justify-content: center;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 77, 77, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 77, 77, 0.3);
  backdrop-filter: blur(5px);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(255, 77, 77, 0.2);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.1rem;
  filter: drop-shadow(0 0 5px rgba(255, 77, 77, 0.5));
}

.cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 25px;
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 77, 77, 0.5);
  color: #fff;
  transition: all 0.3s ease;
}

.btn.secondary:hover {
  background: rgba(255, 77, 77, 0.1);
  border-color: rgba(255, 77, 77, 0.8);
  transform: translateY(-2px);
}

/* Адаптивность для новых элементов */
@media (max-width: 768px) {
  .features-highlight {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn.secondary {
    width: 100%;
    max-width: 250px;
  }
}

/* Заголовок, tagline и кнопки на всю ширину info-section */
.info-section > h1 {
  width: 100%;
  text-align: center;
  margin: 0 0 15px 0;
  order: 1;
}

.info-section > .tagline {
  width: 100%;
  text-align: center;
  margin: 0 0 25px 0;
  order: 2;
  font-size: 1rem;
  color: #c6c6c6;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(255, 107, 107, 0.3);
}

.info-section > .cta-buttons {
  width: 100%;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 25px 0 0 0;
  order: 4; /* Кнопки внизу */
}

/* Контент между tagline и кнопками */
.info-content {
  order: 3;
  width: 100%;
}

/* Обновляем grid для info-section */
@media (min-width: 1024px) {
  .info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .info-content {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 28px;
    text-align: left;
  }
  
  .text-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    justify-content: center;
  }
  
  .hero-section {
    margin: 0;
  }
}

/* На мобильных все остается по центру */
@media (max-width: 1023px) {
  .info-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  
  .info-section > h1 {
    text-align: center;
    margin-bottom: 10px;
  }
  
  .info-section > .tagline {
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
  }
  
  .info-section > .cta-buttons {
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
  }
  
  .info-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    width: 100%;
  }
  
  .text-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    width: 100%;
  }
}

/* Стили для кнопок на уровне info-section */
.info-section > .cta-buttons .btn {
  /* Наследуем стили из основного CSS */
}

.info-section > .cta-buttons .btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 77, 77, 0.5);
  color: #fff;
  transition: all 0.3s ease;
}

.info-section > .cta-buttons .btn.secondary:hover {
  background: rgba(255, 77, 77, 0.1);
  border-color: rgba(255, 77, 77, 0.8);
  transform: translateY(-2px);
}

/* Адаптивность для кнопок */
@media (max-width: 768px) {
  .info-section > .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .info-section > .cta-buttons .btn {
    width: 100%;
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  .info-section > .tagline {
    font-size: 0.85rem;
    line-height: 1.3;
    padding: 0 15px;
  }
  
  .info-section > .cta-buttons {
    padding: 0 15px;
  }
}

/* Убираем старые стили для перенесённых элементов */
.text-content .tagline,
.text-content .cta-buttons {
  display: none;
}

/* Базовые стили для иконок */
.feature-icon {
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(255, 77, 77, 0.4));
}

/* Иконки с их путями и фильтрами */
.feature-icon.rank-icon {
  background-image: url('/media/rankicon.svg');
  filter: invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%) drop-shadow(0 0 8px rgba(255, 77, 77, 0.4));
}

.feature-icon.tech-icon {
  background-image: url('/media/grenadelaunchericon.svg');
  filter: invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%) drop-shadow(0 0 8px rgba(255, 77, 77, 0.4));
}

.feature-icon.team-icon {
  background-image: url('/media/jobtitleicon.svg');
  filter: invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%) drop-shadow(0 0 8px rgba(255, 77, 77, 0.4));
}

.feature-icon.rpg-icon {
  background-image: url('/media/playersicon.svg');
  filter: invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%) drop-shadow(0 0 8px rgba(255, 77, 77, 0.4));
}

/* Hover эффекты */
.feature-item:hover .feature-icon {
  transform: scale(1.1);
  filter: invert(20%) sepia(60%) saturate(3500%) hue-rotate(346deg) brightness(110%) contrast(105%) drop-shadow(0 0 12px rgba(255, 107, 107, 0.6));
}

/* Анимация при загрузке */
.feature-icon {
  animation: iconFadeIn 0.8s ease-out forwards;
  opacity: 0;
}

.feature-item:nth-child(1) .feature-icon { animation-delay: 0.2s; }
.feature-item:nth-child(2) .feature-icon { animation-delay: 0.4s; }
.feature-item:nth-child(3) .feature-icon { animation-delay: 0.6s; }

@keyframes iconFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Адаптивность */
@media (max-width: 768px) {
  .feature-icon {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .feature-icon {
    width: 16px;
    height: 16px;
  }
}

/* Features highlight - плавное появление */
.features-highlight {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 1.5s ease-out forwards;
  opacity: 0;
  animation-delay: 0.8s; /* Появляется после основного контента */
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 77, 77, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 77, 77, 0.3);
  backdrop-filter: blur(5px);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

/* Поэтапное появление feature items */
.feature-item:nth-child(1) { animation-delay: 1s; }
.feature-item:nth-child(2) { animation-delay: 1.1s; }
.feature-item:nth-child(3) { animation-delay: 1.2s; }
.feature-item:nth-child(4) { animation-delay: 1.3s; }

/* CTA кнопки - плавное появление */
.info-section > .cta-buttons {
  width: 100%;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 25px 0 0 0;
  order: 4;
  animation: fadeInUp 1.6s ease-out forwards;
  opacity: 0;
  animation-delay: 1.3s; /* После features */
}

/* Tagline - плавное появление */
.info-section > .tagline {
  width: 100%;
  text-align: center;
  margin: 0 0 25px 0;
  order: 2;
  font-size: 1rem;
  color: #c6c6c6;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(255, 107, 107, 0.3);
  animation: fadeInUp 1.4s ease-out forwards;
  opacity: 0;
  animation-delay: 0.4s; /* После заголовка */
}

/* Горизонтальная статистика - уменьшаем задержку для более гармоничного появления */
.server-stats-horizontal {
  max-width: var(--container-w);
  margin: 25px auto;
  padding: 0 20px;
  animation: fadeInUp 1.8s ease-out forwards;
  opacity: 0;
  animation-delay: 1.6s; /* После видео и основного контента */
}

/* Поэтапное появление статистик */
.stat-item-horizontal {
  flex: 1;
  text-align: center;
  min-width: 120px;
  transition: all 0.3s ease;
  cursor: pointer;
  animation: fadeInUp 0.5s ease-out forwards;
  opacity: 0;
}

.stat-item-horizontal:nth-child(1) { animation-delay: 1.8s; }
.stat-item-horizontal:nth-child(3) { animation-delay: 1.9s; } /* nth-child(3) потому что 2 - это divider */
.stat-item-horizontal:nth-child(5) { animation-delay: 2s; }
.stat-item-horizontal:nth-child(7) { animation-delay: 2.1s; }

/* Плавное появление иконок */
.feature-icon {
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(255, 77, 77, 0.4));
  animation: iconFadeIn 0.6s ease-out forwards;
  opacity: 0;
}

/* Исправленные задержки для иконок */
.feature-item:nth-child(1) .feature-icon { animation-delay: 1.1s; }
.feature-item:nth-child(2) .feature-icon { animation-delay: 1.2s; }
.feature-item:nth-child(3) .feature-icon { animation-delay: 1.3s; }

/* Статус сервера - уменьшаем задержку */
.server-status {
  background-color: rgba(30, 30, 30, 0.8);
  border-radius: 8px;
  padding: 15px;
  display: flex;
  align-items: center;
  max-width: 350px;
  margin: 20px auto 40px;
  border: 1px solid rgba(255, 77, 77, 0.3);
  animation: fadeInUp 1.8s ease-out forwards;
  opacity: 0;
  animation-delay: 2.2s; /* После статистики */
  text-align: left;
}

/* Артикли - уменьшаем задержку */
.articles-preview {
  padding: 40px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  margin: 20px auto;
  max-width: 50%;
  animation: fadeInUp 1.8s ease-out forwards;
  opacity: 0;
  animation-delay: 2.4s;
}

/* Поэтапное появление карточек статей */
.article-card:nth-child(1) {
  animation: fadeInUp 1.6s ease-out forwards;
  opacity: 0;
  animation-delay: 2.6s;
}

.article-card:nth-child(2) {
  animation: fadeInUp 1.6s ease-out forwards;
  opacity: 0;
  animation-delay: 2.7s;
}

.article-card:nth-child(3) {
  animation: fadeInUp 1.6s ease-out forwards;
  opacity: 0;
  animation-delay: 2.8s;
}

/* Убираем статичное появление у основных элементов */
.info-content {
  order: 3;
  width: 100%;
  animation: fadeInUp 1.5s ease-out forwards;
  opacity: 0;
  animation-delay: 0.6s;
}

/* Плавное появление видео */
.hero-section {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 30px auto;
  border-radius: 15px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1.7s ease-out forwards;
  opacity: 0;
  animation-delay: 1.1s; /* После features */
  cursor: default;
  transition: cursor 0.3s ease;
}

/* Более мягкие анимации на мобильных */
@media (max-width: 768px) {
  /* Ускоряем анимации на мобильных */
  .features-highlight,
  .info-section > .tagline,
  .info-section > .cta-buttons,
  .server-stats-horizontal,
  .hero-section,
  .info-content {
    animation-duration: 1.2s;
  }
  
  .feature-item,
  .stat-item-horizontal {
    animation-duration: 0.8s;
  }
  
  /* Уменьшаем задержки */
  .info-section > .tagline { animation-delay: 0.2s; }
  .info-content { animation-delay: 0.4s; }
  .features-highlight { animation-delay: 0.6s; }
  .hero-section { animation-delay: 0.8s; }
  .info-section > .cta-buttons { animation-delay: 1s; }
  .server-stats-horizontal { animation-delay: 1.2s; }
  .server-status { animation-delay: 1.4s; }
  .articles-preview { animation-delay: 1.6s; }
}

/* Уважаем пользователей с отключенными анимациями */
@media (prefers-reduced-motion: reduce) {
  .features-highlight,
  .info-section > .tagline,
  .info-section > .cta-buttons,
  .server-stats-horizontal,
  .hero-section,
  .info-content,
  .feature-item,
  .stat-item-horizontal,
  .feature-icon,
  .article-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Анимация загрузки статистики */
.stat-number.loading {
  animation: statsLoading 1.5s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes statsLoading {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

/* Анимация подсчета */
.stat-number.counting {
  animation: numberGlow 1.5s ease-out;
}

@keyframes numberGlow {
  0% { 
    text-shadow: 
      0 0 10px rgba(255, 77, 77, 0.4),
      0 0 20px rgba(255, 77, 77, 0.2);
  }
  50% { 
    text-shadow: 
      0 0 20px rgba(255, 77, 77, 0.8),
      0 0 40px rgba(255, 77, 77, 0.4),
      0 0 60px rgba(255, 77, 77, 0.2);
    transform: scale(1.05);
  }
  100% { 
    text-shadow: 
      0 0 15px rgba(255, 77, 77, 0.6),
      0 0 30px rgba(255, 77, 77, 0.3);
  }
}

/* Плавный переход для обновления статистики */
.stat-number {
  transition: all 0.3s ease;
}

.stat-number:hover {
  transform: scale(1.1);
  text-shadow: 
    0 0 20px rgba(255, 77, 77, 0.8),
    0 0 40px rgba(255, 77, 77, 0.4);
}

/* Инлайн статус сервера в горизонтальной статистике */
.server-status-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(255, 77, 77, 0.1);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 77, 77, 0.3);
  min-width: 200px;
  position: relative;
  transition: all 0.3s ease;
}

.server-status-inline:hover {
  background: rgba(255, 77, 77, 0.15);
  border-color: rgba(255, 77, 77, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 77, 77, 0.2);
}

/* Индикатор статуса в инлайн блоке */
.server-status-inline .status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff4d4d;
  animation: pulse-offline 2s infinite;
  margin-bottom: 5px;
}

.server-status-inline .status-indicator.online {
  background: #4CAF50;
  animation: pulse-online 2s infinite;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.4);
}

.server-status-inline .status-indicator.offline {
  background: #ff4d4d;
  animation: pulse-offline 2s infinite;
  box-shadow: 0 0 10px rgba(255, 77, 77, 0.4);
}

/* Текст статуса в инлайн блоке */
.server-status-inline .status-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}

.server-status-inline .server-name {
  font-weight: bold;
  font-size: 1rem;
  color: #fff;
}

.server-status-inline .player-count {
  font-size: 0.95rem;
  color: #c6c6c6;
}

.server-status-inline .server-map {
  font-size: 0.85rem;
  color: #999;
  opacity: 0.8;
}

/* Кнопка подключения */
.server-status-inline .server-actions {
  margin-top: 5px;
}

.connect-button.btn-small {
  padding: 6px 12px;
  font-size: 0.75rem;
  background: linear-gradient(135deg, #ff4d4d, #ff6b6b);
  color: white;
  text-decoration: none;
  border-radius: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.connect-button.btn-small:hover:not(.disabled) {
  background: linear-gradient(135deg, #ff3333, #ff5555);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(255, 77, 77, 0.4);
}

.connect-button.btn-small.disabled {
  background: #666;
  cursor: not-allowed;
  opacity: 0.5;
}

/* Анимации пульсации */
@keyframes pulse-online {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(76, 175, 80, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

@keyframes pulse-offline {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 77, 77, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
  }
}

/* Адаптивность для инлайн статуса */
@media (max-width: 768px) {
  .server-status-inline {
    min-width: 180px;
    padding: 12px;
    gap: 6px;
  }
  
  .server-status-inline .server-name {
    font-size: 0.9rem;
  }
  
  .server-status-inline .player-count {
    font-size: 0.8rem;
  }
  
  .connect-button.btn-small {
    font-size: 0.7rem;
    padding: 5px 10px;
  }
}

@media (max-width: 480px) {
  .stats-grid-horizontal {
    flex-direction: column;
    gap: 15px;
  }
  
  .stat-divider {
    display: none;
  }
  
  .server-status-inline {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
}

/* Состояние загрузки для инлайн статуса */
.server-status-inline.loading .status-indicator {
  background: #666;
  animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
  0%, 100% { 
    opacity: 0.5; 
    transform: scale(0.8);
  }
  50% { 
    opacity: 1; 
    transform: scale(1.2);
  }
}

/* =====================================================
   STYLE OVERRIDE — align index with site palette
   accent: #dc3545 | bg-panel: rgba(18,21,28,0.92)
   ===================================================== */
:root {
  --accent: #dc3545;
}

/* Info section */
.info-section {
  background: rgba(10, 12, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  backdrop-filter: none;
}

.info-section h1 {
  color: #fff;
  text-shadow: none;
}

.info-section h1 .server-name {
  color: #dc3545;
  text-shadow: 0 0 12px rgba(220, 53, 69, 0.4);
  font-size: 1em;
}

.info-section p,
.info-section .tagline {
  color: #9ca3af;
}

/* CTA buttons */
.info-section .btn.primary,
.info-section .btn {
  background: #dc3545;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(220, 53, 69, 0.3);
  font-weight: 600;
  color: #fff;
}

.info-section .btn.primary:hover,
.info-section .btn:hover {
  background: #b91c2c;
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.45);
  transform: translateY(-2px);
}

.info-section .btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
  color: #d1d5db;
}

.info-section .btn.secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: none;
}

/* Feature items */
.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92em;
  color: #9ca3af;
}

/* Article cards */
.articles-preview {
  background: rgba(10, 12, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  backdrop-filter: none;
}

.articles-preview h2 {
  color: #fff;
  font-size: 1.6rem;
}

.articles-preview h2::after {
  background-color: #dc3545;
}

.article-card {
  background: rgba(18, 21, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 2px solid rgba(220, 53, 69, 0.25);
  border-radius: 12px;
  backdrop-filter: none;
}

.article-card:hover {
  border-top-color: #dc3545;
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

.article-card::before {
  background: linear-gradient(90deg, transparent, #dc3545, transparent);
}

.article-card h3 {
  color: #e8e8e8;
}

.article-card h3::before {
  background: radial-gradient(circle, #dc3545, #9b1c2c);
  box-shadow: 0 0 8px rgba(220, 53, 69, 0.5);
}

.article-card .read-more {
  background: rgba(220, 53, 69, 0.08);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: 8px;
  color: #fff;
}

.article-card .read-more:hover {
  background: #dc3545;
  box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

/* Server stats — styling lives on .stats-container, not the outer wrapper */
.server-stats-horizontal {
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.stats-container {
  background: rgba(10, 12, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  backdrop-filter: none;
}

.stats-header h3 {
  color: #fff;
}

.stats-subtitle {
  color: #6b7280;
}

.stat-number {
  color: #dc3545;
}

.stat-label {
  color: #9ca3af;
}

/* Progress bar & video controls accent */
.progress-fill,
.volume-slider-fill {
  background: linear-gradient(90deg, #dc3545, #f87171);
}

.progress-handle {
  background: #dc3545;
}

.volume-slider::-webkit-slider-thumb,
.volume-slider::-moz-range-thumb {
  background: #dc3545;
}

.big-play-btn {
  background: rgba(220, 53, 69, 0.9);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.big-play-btn:hover {
  background: #dc3545;
  box-shadow: 0 8px 26px rgba(220, 53, 69, 0.6);
}

.connect-button {
  background-color: #dc3545;
}

.connect-button:hover {
  background-color: #b91c2c;
}

/* Focus styles */
.info-section .btn:focus-visible,
.article-card .read-more:focus-visible,
.control-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.4);
}

/* =====================================================
   MOBILE FIXES
   ===================================================== */

/* На мобильных контролы видео всегда видны (нет hover) */
@media (hover: none), (pointer: coarse) {
  .video-controls-wrapper {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: all !important;
  }
}

@media (max-width: 768px) {
  /* Убираем overflow-x на body */
  body {
    overflow-x: hidden;
  }

  /* info-section — полная ширина */
  .info-section {
    max-width: calc(100vw - 24px) !important;
    margin: 12px auto !important;
    padding: 20px 16px !important;
    box-sizing: border-box;
  }

  .info-section h1 {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  /* Видео: убираем max-width, даём полную ширину блока */
  .hero-section {
    max-width: 100% !important;
    margin: 12px 0 !important;
    border-radius: 10px;
  }

  .hero-video {
    max-height: 220px;
  }

  /* articles-preview — ГЛАВНЫЙ БАГ: max-width: 50% */
  .articles-preview {
    max-width: calc(100vw - 24px) !important;
    width: auto !important;
    margin: 14px auto !important;
    padding: 22px 14px !important;
    box-sizing: border-box;
    border-radius: 12px;
  }

  .articles-container {
    flex-direction: column;
    gap: 12px;
  }

  .article-card {
    max-width: 100% !important;
    min-width: unset !important;
    flex: none !important;
    box-sizing: border-box;
  }

  /* server-stats */
  .server-stats-horizontal {
    padding: 0 12px !important;
    margin: 14px auto !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .stats-grid-horizontal {
    flex-direction: column;
    gap: 16px;
  }

  .stat-divider {
    width: 60%;
    height: 1px;
    margin: 0 auto;
    background: linear-gradient(to right, transparent, rgba(220,53,69,0.3), transparent);
  }

  .server-status-inline {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  /* features-highlight */
  .features-highlight {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: 14px 0;
  }

  .feature-item {
    width: 100%;
    box-sizing: border-box;
  }

  /* CTA кнопки */
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
  }

  /* tagline */
  .tagline {
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .info-section {
    max-width: calc(100vw - 16px) !important;
    margin: 8px auto !important;
    padding: 16px 12px !important;
  }

  .info-section h1 {
    font-size: 1.35rem;
  }

  .hero-video {
    max-height: 180px;
  }

  /* video controls — компактнее */
  .video-controls-wrapper {
    bottom: 4px;
    left: 4px;
    right: 4px;
    padding: 6px 8px;
  }

  .main-controls {
    gap: 4px;
  }

  .control-btn {
    padding: 4px;
    min-width: 28px;
    min-height: 28px;
  }

  .control-btn svg {
    width: 14px;
    height: 14px;
  }

  .play-pause-btn svg {
    width: 16px;
    height: 16px;
  }

  .time-display {
    font-size: 0.62rem;
  }

  .volume-slider-container {
    width: 44px;
  }

  /* articles */
  .articles-preview {
    max-width: calc(100vw - 16px) !important;
    padding: 18px 12px !important;
  }

  .articles-preview h2 {
    font-size: 1.25rem;
  }

  .article-card {
    padding: 16px 14px;
  }

  .stats-container {
    padding: 16px 14px;
  }

  .stats-header h3 {
    font-size: 1.2rem;
  }

  .stats-subtitle {
    font-size: 0.8rem;
  }
}

/* ═══ Главная: оболочка, теглайн-пилюли, блок новостей ═══ */

.home-page {
  position: relative;
  padding-bottom: 2.5rem;
}

.home-page::before {
  content: '';
  position: absolute;
  inset: -20px 0 auto 0;
  height: min(420px, 55vh);
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(220, 53, 69, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(99, 102, 241, 0.12), transparent 50%),
    radial-gradient(ellipse 40% 35% at 0% 40%, rgba(255, 77, 77, 0.08), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.home-page > * {
  position: relative;
  z-index: 1;
}

/* Теглайн — чипы вместо одной строки */
.info-section > .tagline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  text-transform: none;
  letter-spacing: normal;
  text-shadow: none;
  font-weight: 500;
}

.tagline-bit {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 77, 77, 0.1);
  border: 1px solid rgba(255, 77, 77, 0.22);
  color: #e8eaef;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

@media (min-width: 1024px) {
  .info-section > .tagline {
    justify-content: flex-start;
  }
}

/* ─── Новости на главной ─── */
.home-news {
  max-width: var(--container-w);
  margin: 28px auto 36px;
  padding: 0 16px;
}

.home-news-shell {
  background: linear-gradient(155deg, rgba(18, 22, 32, 0.88), rgba(14, 16, 22, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 28px 26px 30px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  position: relative;
}

.home-news-shell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(220, 53, 69, 0.85), rgba(99, 102, 241, 0.5), transparent);
  opacity: 0.9;
}

.home-news-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 24px;
  margin-bottom: 22px;
}

.home-news-eyebrow {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ff8a9a;
}

.home-news-title {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.home-news-lead {
  margin: 0;
  max-width: 34rem;
  color: #aeb4c5;
  font-size: 0.95rem;
  line-height: 1.55;
}

.home-news-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
  background: linear-gradient(135deg, #dc3545, #b02a37);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(220, 53, 69, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.home-news-cta:hover {
  color: #fff;
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(220, 53, 69, 0.38);
}

.home-news-cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.45);
}

.home-news-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px 22px;
  align-items: stretch;
}

.home-news-grid--solo {
  grid-template-columns: 1fr;
  max-width: 820px;
  margin: 0 auto;
}

.home-news-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 200px;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: rgba(10, 12, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.home-news-feature:hover {
  border-color: rgba(220, 53, 69, 0.4);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  transform: translateY(-3px);
}

.home-news-feature-media {
  position: relative;
  min-height: 200px;
  background: #0a0c12;
}

.home-news-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.home-news-feature:hover .home-news-feature-media img {
  transform: scale(1.04);
}

.home-news-kind {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-news-kind--news {
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  color: #fff;
}

.home-news-kind--patch {
  background: linear-gradient(90deg, #dc3545, #f97316);
  color: #fff;
}

.home-news-feature-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.home-news-feature-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  color: #f2f4f8;
}

.home-news-feature-excerpt {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #aeb4c5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: auto;
}

.home-news-author::before {
  content: '·';
  margin-right: 6px;
  margin-left: 2px;
  opacity: 0.55;
}

.home-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-news-compact {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-news-compact:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(220, 53, 69, 0.25);
  transform: translateX(4px);
}

.home-news-compact-thumb {
  flex: 0 0 72px;
  width: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #0a0c12;
  align-self: center;
}

.home-news-compact-thumb img {
  width: 100%;
  height: 56px;
  object-fit: cover;
  display: block;
}

.home-news-compact-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-news-compact-kind {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 6px;
}

.home-news-compact-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e8eaef;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-news-compact-date {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}

.home-news-empty {
  text-align: center;
  padding: 28px 16px 8px;
  color: #aeb4c5;
  font-size: 0.95rem;
  line-height: 1.55;
}

.home-news-empty-link {
  display: inline-flex;
  margin-top: 16px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.home-news-empty-link:hover {
  background: rgba(220, 53, 69, 0.2);
  border-color: rgba(220, 53, 69, 0.4);
  color: #fff;
}

/* ═══ Дашборд под героем: новости слева, статистика справа ═══ */
.home-dashboard {
  max-width: var(--container-w);
  margin: 4px auto 36px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}

@media (min-width: 960px) {
  .home-dashboard {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 22px;
    align-items: stretch;
  }

  /* Одна высота ряда: оба столбца тянутся на высоту самого высокого */
  .home-dashboard .home-news,
  .home-dashboard .home-stats-panel {
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
}

.home-dashboard .home-news {
  margin: 0;
  padding: 0;
  max-width: none;
}

.home-dashboard .home-news-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 24px;
}

.home-dashboard .home-news-head {
  margin-bottom: 14px;
}

.home-dashboard .home-news-title {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.home-dashboard .home-news-lead {
  font-size: 0.82rem;
  line-height: 1.45;
  max-width: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-dashboard .home-news-cta {
  padding: 9px 16px;
  font-size: 0.82rem;
}

.home-dashboard .home-news-grid {
  grid-template-columns: 1fr;
  flex: 1;
  gap: 12px;
}

.home-dashboard .home-news-grid--solo {
  max-width: none;
  margin: 0;
}

.home-dashboard .home-news-feature {
  grid-template-columns: 1fr;
  min-height: 0;
}

.home-dashboard .home-news-feature-media {
  min-height: 120px;
  max-height: 190px;
  aspect-ratio: 16 / 9;
}

.home-dashboard .home-news-feature-body {
  padding: 14px 16px 16px;
}

.home-dashboard .home-news-feature-title {
  font-size: 1.02rem;
}

.home-dashboard .home-news-feature-excerpt {
  -webkit-line-clamp: 2;
  font-size: 0.8rem;
}

.home-dashboard .home-news-list {
  gap: 8px;
}

.home-dashboard .home-news-compact {
  padding: 8px 10px;
}

.home-dashboard .home-news-compact-thumb {
  flex-basis: 60px;
  width: 60px;
}

.home-dashboard .home-news-compact-thumb img {
  height: 46px;
}

.home-dashboard .home-news-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 8px 12px;
}

.home-stats-panel {
  min-width: 0;
}

.home-dashboard .server-stats-horizontal {
  max-width: none;
  margin: 0;
  padding: 0;
  opacity: 1;
  flex: 1;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  animation: none;
}

@media (max-width: 959px) {
  .home-dashboard .server-stats-horizontal {
    flex: none;
    height: auto;
  }
}

.stats-container--dashboard {
  flex: 1;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  padding: 18px 18px 18px;
  background: linear-gradient(165deg, rgba(26, 28, 34, 0.98), rgba(14, 15, 18, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

@media (max-width: 959px) {
  .stats-container--dashboard {
    flex: none;
    height: auto;
  }
}

.stats-container--dashboard::before {
  height: 2px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.35), rgba(220, 53, 69, 0.55), rgba(99, 102, 241, 0.2));
  animation: none;
  opacity: 1;
}

.stats-eyebrow {
  margin: 0 0 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(154, 167, 255, 0.9);
}

.stats-container--dashboard .stats-header {
  text-align: left;
  margin-bottom: 14px;
}

.stats-container--dashboard .stats-header h3 {
  margin: 0 0 4px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  color: #f4f5f8;
  text-shadow: none;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.stats-container--dashboard .stats-subtitle {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 234, 240, 0.45);
  font-weight: 600;
}

/* Сетка: статус → бойцы | техника → деньги на всю ширину → медики → еженедельная статистика */
.stats-grid-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto auto auto;
  grid-template-areas:
    'status status'
    'players vehicles'
    'money money'
    'medics medics'
    'weekly-online weekly-activities';
  gap: 10px;
  flex: 1;
  min-height: 0;
  align-content: start;
}

.stats-grid-dashboard .stat-divider {
  display: none !important;
}

.stats-grid-dashboard .stat-dashboard-status {
  grid-area: status;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
}

.stats-grid-dashboard .server-status-inline:hover {
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.stats-grid-dashboard .server-status-inline .status-indicator {
  margin-bottom: 0;
  flex-shrink: 0;
  margin-top: 3px;
}

.stats-grid-dashboard .server-status-inline .status-text {
  align-items: flex-start;
  text-align: left;
  gap: 3px;
  min-width: 0;
}

.stats-grid-dashboard .server-status-inline .server-name {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
}

.stats-grid-dashboard .server-status-inline .player-count {
  font-size: 0.8rem;
  color: rgba(232, 234, 240, 0.72);
}

.stats-grid-dashboard .server-status-inline .server-map {
  font-size: 0.72rem;
  color: rgba(232, 234, 240, 0.48);
}

.stats-grid-dashboard .stat-dashboard-players,
.stats-grid-dashboard .stat-dashboard-vehicles,
.stats-grid-dashboard .stat-dashboard-money,
.stats-grid-dashboard .stat-dashboard-medics,
.stats-grid-dashboard .stat-dashboard-weekly-online,
.stats-grid-dashboard .stat-dashboard-weekly-activities {
  margin: 0;
  padding: 14px 12px 14px 14px;
  text-align: left;
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  border-left: 3px solid rgba(220, 53, 69, 0.75);
  cursor: default;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.stats-grid-dashboard .stat-dashboard-players {
  grid-area: players;
}

.stats-grid-dashboard .stat-dashboard-vehicles {
  grid-area: vehicles;
}

.stats-grid-dashboard .stat-dashboard-money {
  grid-area: money;
  border-left-color: rgba(74, 222, 128, 0.75);
}

.stats-grid-dashboard .stat-dashboard-medics {
  grid-area: medics;
  border-left-color: rgba(96, 165, 250, 0.85);
}

.stats-grid-dashboard .stat-dashboard-weekly-online {
  grid-area: weekly-online;
  border-left-color: rgba(251, 191, 36, 0.8);
}

.stats-grid-dashboard .stat-dashboard-weekly-activities {
  grid-area: weekly-activities;
  border-left-color: rgba(167, 139, 250, 0.8);
}

.stats-grid-dashboard .stat-dashboard-money .stat-label,
.stats-grid-dashboard .stat-dashboard-medics .stat-label,
.stats-grid-dashboard .stat-dashboard-weekly-online .stat-label,
.stats-grid-dashboard .stat-dashboard-weekly-activities .stat-label {
  font-size: 0.62rem;
  line-height: 1.35;
  max-width: 100%;
}

.stats-grid-dashboard .stat-dashboard-players:hover,
.stats-grid-dashboard .stat-dashboard-vehicles:hover,
.stats-grid-dashboard .stat-dashboard-money:hover,
.stats-grid-dashboard .stat-dashboard-medics:hover,
.stats-grid-dashboard .stat-dashboard-weekly-online:hover,
.stats-grid-dashboard .stat-dashboard-weekly-activities:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.09);
}

.stats-grid-dashboard .stat-item-horizontal .stat-number {
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: #f8f9fb;
  text-shadow: none;
  margin-bottom: 0;
  line-height: 1.1;
}

.stats-grid-dashboard .stat-item-horizontal:hover .stat-number {
  transform: none;
  text-shadow: none;
}

.stats-grid-dashboard .stat-item-horizontal .stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(232, 234, 240, 0.5);
  white-space: normal;
  line-height: 1.3;
}

@media (min-width: 960px) and (max-width: 1100px) {
  .stats-grid-dashboard .stat-item-horizontal .stat-number {
    font-size: 1.4rem;
  }
}

/* Гайды: подзаголовок над h2 */
.home-guides .home-section-eyebrow {
  text-align: center;
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ff9aa8;
}

.home-guides h2 {
  margin-top: 0;
}

.home-guides {
  margin-top: 6px;
}

@media (max-width: 900px) {
  .home-news-grid {
    grid-template-columns: 1fr;
  }

  .home-news-feature {
    grid-template-columns: 1fr;
  }

  .home-news-feature-media {
    min-height: 180px;
    max-height: 220px;
  }

  /* Вне дашборда — прежняя сетка; внутри дашборда колонка уже задана */
  .home-dashboard .home-news-feature-media {
    max-height: 220px;
  }
}

@media (max-width: 768px) {
  .home-news-shell {
    padding: 22px 16px 24px;
    border-radius: 18px;
  }

  .home-news-head {
    flex-direction: column;
    align-items: stretch;
  }

  .home-news-cta {
    width: 100%;
    justify-content: center;
  }

  .home-news-compact:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-news-feature,
  .home-news-feature-media img,
  .home-news-compact,
  .home-news-cta {
    transition: none !important;
  }

  .home-news-feature:hover,
  .home-news-compact:hover {
    transform: none;
  }

  .home-news-feature:hover .home-news-feature-media img {
    transform: none;
  }
}

/* Поверх MOBILE FIXES: дашборд сохраняет сетку статистики */
@media (max-width: 768px) {
  .home-dashboard .server-stats-horizontal {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
  }

  .home-dashboard .stats-grid-horizontal.stats-grid-dashboard {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto auto auto auto !important;
  }

  .home-dashboard .server-status-inline {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
  }
}

@media (max-width: 480px) {
  .home-dashboard .stats-container--dashboard {
    padding: 18px 14px !important;
  }

  .home-dashboard {
    padding: 0 12px;
  }
}
