/* ============================================
   ЦВЕТОВАЯ СИСТЕМА И ПЕРЕМЕННЫЕ
   ============================================ */

:root {
  /* Теплая палитра (Зевс - Олимп) */
  --zeus-primary: #FF6B35;
  --zeus-gold: #FFD700;
  --zeus-light: #FFF4E6;
  
  /* Холодная палитра (Аид - Подземный мир) */
  --hades-primary: #1E3A5F;
  --hades-electric: #00BFFF;
  --hades-dark: #4A5568;
  --hades-light: #F0F4F8;
  
  /* Нейтральные */
  --bg-dark: #0A0E27;
  --bg-darker: #050810;
  --bg-card: rgba(30, 58, 95, 0.3);
  --text-primary: #FFFFFF;
  --text-secondary: #E2E8F0;
  --accent-stone: #8B4513;
  
  /* Градиенты */
  --gradient-zeus: linear-gradient(135deg, #FF6B35 0%, #FFD700 100%);
  --gradient-hades: linear-gradient(135deg, #1E3A5F 0%, #00BFFF 100%);
  --gradient-epic: linear-gradient(135deg, #FF6B35 0%, #1E3A5F 50%, #00BFFF 100%);
  --gradient-bg: linear-gradient(180deg, #0A0E27 0%, #050810 100%);
  
  
  /* Тени */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
  
  /* Переходы */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ============================================
   СБРОС СТИЛЕЙ И БАЗОВЫЕ СТИЛИ
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Предотвращение перевода FS */
[translate="no"],
span[translate="no"] {
  font-variant: normal;
  text-transform: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--gradient-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   ТИПОГРАФИКА
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  background: var(--gradient-zeus);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 2.5rem;
  color: var(--zeus-gold);
}

h3 {
  font-size: 1.8rem;
  color: var(--text-primary);
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  text-decoration: none;
  color: var(--zeus-gold);
  transition: var(--transition-normal);
}

a:hover {
  color: var(--zeus-gold);
}

/* ============================================
   HEADER И НАВИГАЦИЯ
   ============================================ */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

header.scrolled {
  box-shadow: var(--shadow-lg);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-zeus);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu li a {
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-zeus);
  transition: var(--transition-normal);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
  width: 100%;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--gradient-zeus);
  color: var(--bg-dark);
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--gradient-hades);
  color: var(--text-primary);
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Мобильное меню */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--zeus-gold);
  border-radius: 3px;
  transition: var(--transition-normal);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
  opacity: 0;
  transition: var(--transition-normal);
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

/* ============================================
   HERO СЕКЦИЯ
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 20px 80px;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../image/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  filter: blur(5px);
  z-index: 0;
  transform: scale(1.1);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0, 191, 255, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, rgba(10, 14, 39, 0.7) 0%, rgba(10, 14, 39, 0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  animation: fadeInUp 1s ease;
}

.hero-image-wrapper {
  margin-bottom: 2rem;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--zeus-gold);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.9);
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-bonus {
  background: var(--bg-card);
  border: 2px solid var(--zeus-gold);
  border-radius: 15px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
  animation: fadeInUp 1s ease 0.6s both;
}

.hero-bonus h3 {
  color: var(--zeus-gold);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.hero-bonus p {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  animation: fadeInUp 1s ease 0.8s both;
}

.hero-buttons-center {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-buttons-secondary {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   СЕКЦИИ
   ============================================ */

section {
  padding: 80px 20px;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Карточки */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: var(--bg-card);
  border-radius: 15px;
  padding: 2rem;
  transition: var(--transition-normal);
  border: 1px solid rgba(255, 215, 0, 0.2);
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--zeus-gold);
}

.card h3 {
  color: var(--zeus-gold);
  margin-bottom: 1rem;
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 2px solid rgba(255, 215, 0, 0.3);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section-image {
  width: 100%;
  max-width: 300px;
  margin: -2rem 0 2rem auto;
  border-radius: 15px;
  overflow: hidden;
  border: 2px solid rgba(255, 215, 0, 0.3);
  box-shadow: var(--shadow-md);
  float: right;
  margin-left: 2rem;
}

.section-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ============================================
   ФОРМЫ
   ============================================ */

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(30, 58, 95, 0.5);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--zeus-gold);
  box-shadow: var(--shadow-sm);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--bg-darker);
  padding: 3rem 20px 1rem;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--zeus-gold);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section h4 {
  color: var(--zeus-gold);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.footer-section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--text-secondary);
  transition: var(--transition-fast);
  font-size: 0.95rem;
}

.footer-section ul li a:hover {
  color: var(--zeus-gold);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 215, 0, 0.1);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--zeus-gold);
}

/* ============================================
   COOKIE BANNER
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-card);
  border-top: 2px solid var(--zeus-gold);
  padding: 1.5rem;
  z-index: 10000;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  transform: translateY(100%);
  transition: var(--transition-normal);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-text {
  flex: 1;
  min-width: 300px;
  color: var(--text-secondary);
}

.cookie-text a {
  color: var(--zeus-gold);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-buttons button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
}

.cookie-buttons .btn-accept {
  background: var(--gradient-zeus);
  color: var(--bg-dark);
}

.cookie-buttons .btn-decline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-secondary);
}

.cookie-buttons button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   АНИМАЦИИ
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease both;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

@media (max-width: 768px) {
  .hero::after {
    background-attachment: scroll;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero-image-wrapper {
    margin-bottom: 1.5rem;
    max-width: 100%;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }

  /* Hero section min-height для страниц с меньшим контентом */
  .hero[style*="min-height"] {
    min-height: 40vh !important;
    padding-top: 100px !important;
  }

  /* Контент с max-width для мобильных */
  div[style*="max-width: 900px"] {
    padding: 0 1rem;
  }

  /* Улучшение отступов для секций */
  section {
    padding: 3rem 0;
  }

  /* Текст с inline стилями для мобильных */
  p[style*="font-size: 1.1rem"] {
    font-size: 1rem !important;
    line-height: 1.6;
  }
  
  .logo img {
    width: 32px;
    height: 32px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(10, 14, 39, 0.98);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 2rem 2rem;
    gap: 1.5rem;
    transition: var(--transition-normal);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .hero-buttons {
    gap: 1rem;
  }
  
  .hero-buttons-center {
    width: 100%;
  }
  
  .hero-buttons-secondary {
    width: 100%;
  }
  
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    text-align: center;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .cookie-buttons button {
    flex: 1;
    min-width: 120px;
  }
  
  /* İletişim sayfası için */
  .cards-grid[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Turnuva tablosu için */
  .tournament-table {
    font-size: 0.9rem;
  }
  
  .tournament-table th,
  .tournament-table td {
    padding: 0.75rem 0.5rem;
  }
  
  /* Harita için */
  .contact-map {
    padding: 60px 20px;
  }
  
  .map-container iframe {
    height: 300px;
  }
  
  /* Footer için */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .footer-section h3 {
    font-size: 1.1rem;
  }

  /* Изображения секций для планшетов */
  .section-image {
    float: none;
    margin: 0 auto 1.5rem;
    max-width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-bonus h3 {
    font-size: 1.2rem;
  }
  
  .hero-bonus p {
    font-size: 1rem;
  }

  /* Hero section для маленьких экранов */
  .hero[style*="min-height"] {
    min-height: 35vh !important;
    padding-top: 80px !important;
  }

  .hero[style*="min-height"] h1 {
    font-size: 1.75rem;
  }

  .hero[style*="min-height"] p {
    font-size: 0.95rem;
  }
}

/* ============================================
   СПЕЦИАЛЬНЫЕ СТРАНИЦЫ
   ============================================ */

.thank-you-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 80px;
}

.thank-you-content {
  text-align: center;
  max-width: 600px;
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 15px;
  border: 2px solid var(--zeus-gold);
  box-shadow: var(--shadow-md);
}

.thank-you-content h1 {
  margin-bottom: 1.5rem;
}

.thank-you-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Карта */
.contact-map {
  padding: 80px 20px;
}

.contact-map h2 {
  color: var(--zeus-gold);
}

.map-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 2rem;
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: 0;
  display: block;
}

/* Турнирная таблица */
.tournament-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  background: var(--bg-card);
  border-radius: 15px;
  overflow: hidden;
}

.tournament-table th,
.tournament-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.tournament-table th {
  background: rgba(255, 107, 53, 0.2);
  color: var(--zeus-gold);
  font-weight: 600;
}

.tournament-table tr:hover {
  background: rgba(255, 215, 0, 0.1);
}

/* Аккордеон */
.accordion {
  margin-bottom: 1rem;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  box-shadow: var(--shadow-md);
}

.accordion-header {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(30, 58, 95, 0.3);
  transition: background 0.3s ease;
  user-select: none;
}

.accordion-header:hover {
  background: rgba(30, 58, 95, 0.5);
}

.accordion-header.active {
  background: rgba(255, 215, 0, 0.1);
  border-bottom: 1px solid var(--zeus-gold);
}

.accordion-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.accordion-icon {
  font-size: 1.5rem;
  color: var(--zeus-gold);
  transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
}

.accordion-content.active {
  max-height: 2000px;
  padding: 1.5rem;
}

.accordion-content p {
  margin: 0.5rem 0;
  line-height: 1.8;
}

.accordion-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.accordion-content li {
  margin: 0.5rem 0;
  line-height: 1.8;
}

/* Таблицы данных */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.data-table th,
.data-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background: rgba(255, 215, 0, 0.15);
  color: var(--zeus-gold);
  font-weight: 600;
  font-size: 0.95rem;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover {
  background: rgba(255, 215, 0, 0.05);
}

.data-table td strong {
  color: var(--zeus-gold);
}

/* Статьи/Блог карточки */
.article-card {
  background: var(--bg-card);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.article-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 215, 0, 0.2);
  color: var(--zeus-gold);
  border-radius: 20px;
  font-size: 0.85rem;
  margin-right: 0.5rem;
}

.article-title {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.article-excerpt {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.article-link {
  color: var(--zeus-gold);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.article-link:hover {
  color: var(--hades-purple);
}

/* Статистика/Метрики */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--zeus-gold);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--zeus-gold);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Временная шкала */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--zeus-gold);
}

.timeline-item {
  position: relative;
  padding-left: 5rem;
  margin-bottom: 3rem;
}

.timeline-marker {
  position: absolute;
  left: 1.25rem;
  top: 0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--zeus-gold);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  box-shadow: var(--shadow-sm);
}

.timeline-content {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

.timeline-date {
  color: var(--zeus-gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-title {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.timeline-description {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Адаптивность для аккордеонов и таблиц */
@media (max-width: 768px) {
  .accordion-header {
    padding: 1rem;
  }

  .accordion-header h3 {
    font-size: 1rem;
  }

  .accordion-content {
    padding: 0 1rem;
  }

  .accordion-content.active {
    padding: 1rem;
  }

  .data-table {
    font-size: 0.85rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table th,
  .data-table td {
    padding: 0.5rem 0.25rem;
    white-space: nowrap;
    min-width: 100px;
  }

  .data-table th:first-child,
  .data-table td:first-child {
    min-width: 120px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-value {
    font-size: 2rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .timeline::before {
    left: 1rem;
  }

  .timeline-item {
    padding-left: 3.5rem;
  }

  .timeline-marker {
    left: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
  }

  .timeline-content {
    padding: 1rem;
  }

  .article-card {
    padding: 1.5rem;
  }

  .article-title {
    font-size: 1.25rem;
  }

  /* Таблицы в аккордеонах на мобильных */
  .accordion-content .data-table {
    font-size: 0.8rem;
  }

  .accordion-content .data-table th,
  .accordion-content .data-table td {
    padding: 0.4rem 0.2rem;
  }

  /* Oyun Hakkında sayfası için özel düzenlemeler */
  .accordion-content > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .cards-grid[style*="minmax(400px"] {
    grid-template-columns: 1fr !important;
  }

  /* PvP/PvE grid düzenlemesi */
  .accordion-content div[style*="display: grid"][style*="grid-template-columns: 1fr 1fr"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .data-table {
    font-size: 0.75rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.4rem 0.15rem;
    min-width: 80px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  /* Oyun Hakkında sayfası için özel düzenlemeler */
  .accordion-content > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .cards-grid[style*="minmax(400px"] {
    grid-template-columns: 1fr !important;
  }

  .stat-value {
    font-size: 1.75rem;
  }

  .timeline-item {
    padding-left: 3rem;
  }

  .timeline-marker {
    left: 0.125rem;
    width: 1rem;
    height: 1rem;
  }

  /* Oyun Hakkında sayfası için ek düzenlemeler */
  .accordion-content > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .cards-grid[style*="minmax(400px"] {
    grid-template-columns: 1fr !important;
  }

  .article-card {
    padding: 1rem;
  }

  .article-title {
    font-size: 1.1rem;
  }

  .article-excerpt {
    font-size: 0.9rem;
  }

  /* Текст с inline стилями для очень маленьких экранов */
  p[style*="font-size: 1.1rem"] {
    font-size: 0.95rem !important;
  }

  /* Улучшение отступов для списков */
  ul[style*="list-style: none"] {
    padding-left: 0;
  }

  ul[style*="list-style: none"] li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
  }

  /* Изображения секций для мобильных */
  .section-image {
    float: none;
    margin: 0 auto 1.5rem;
    max-width: 100%;
    margin-left: 0;
  }

  /* Изображения в карточках для мобильных */
  .card-image {
    aspect-ratio: 1 / 1;
  }
}

      /* Адаптивность для формы контактов */
      @media (max-width: 768px) {
        #contact-grid {
          grid-template-columns: 1fr !important;
        }

        .contact-map .map-container iframe {
          height: 300px;
        }
      }

      /* ============================================
         МИНИ-ИГРА: FS BONUS TOPLAMA
         ============================================ */

      .mini-game-container {
        max-width: 900px;
        margin: 2rem auto;
        background: 
          linear-gradient(135deg, rgba(30, 58, 95, 0.4) 0%, rgba(10, 14, 39, 0.6) 100%);
        border-radius: 20px;
        padding: 2.5rem;
        box-shadow: var(--shadow-lg);
        border: 3px solid var(--zeus-gold);
        position: relative;
        overflow: hidden;
      }

      .mini-game-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, 
          transparent 0%, 
          var(--zeus-gold) 20%, 
          var(--hades-electric) 50%, 
          var(--zeus-gold) 80%, 
          transparent 100%);
        animation: shimmer 3s ease-in-out infinite;
      }

      @keyframes shimmer {
        0%, 100% {
          opacity: 0.5;
        }
        50% {
          opacity: 1;
        }
      }

      .game-stats {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
        border-bottom: 2px solid rgba(255, 215, 0, 0.3);
      }

      .stat-item {
        text-align: center;
        padding: 1rem;
        background: rgba(30, 58, 95, 0.5);
        border-radius: 10px;
        border: 1px solid rgba(255, 215, 0, 0.2);
      }

      .stat-label {
        display: block;
        color: var(--text-secondary);
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
      }

      .stat-value {
        display: block;
        color: var(--zeus-gold);
        font-size: 2rem;
        font-weight: 700;
      }

      .game-area {
        position: relative;
        min-height: 500px;
        background: 
          radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
          radial-gradient(circle at 80% 70%, rgba(0, 191, 255, 0.15) 0%, transparent 50%),
          linear-gradient(135deg, rgba(10, 14, 39, 0.95) 0%, rgba(30, 58, 95, 0.85) 50%, rgba(10, 14, 39, 0.95) 100%);
        border-radius: 15px;
        border: 3px solid var(--zeus-gold);
        box-shadow: var(--shadow-lg);
        overflow: hidden;
        margin-bottom: 1.5rem;
        padding: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .game-area::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: 
          repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 215, 0, 0.03) 2px,
            rgba(255, 215, 0, 0.03) 4px
          ),
          repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 191, 255, 0.03) 2px,
            rgba(0, 191, 255, 0.03) 4px
          );
        pointer-events: none;
        z-index: 1;
      }

      .game-area::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: 
          radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
        animation: rotateBackground 20s linear infinite;
        pointer-events: none;
        z-index: 0;
      }

      @keyframes rotateBackground {
        0% {
          transform: rotate(0deg);
        }
        100% {
          transform: rotate(360deg);
        }
      }

      .game-instructions {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        z-index: 10;
        background: rgba(10, 14, 39, 0.9);
        padding: 2rem;
        border-radius: 15px;
        border: 2px solid var(--zeus-gold);
        box-shadow: var(--shadow-md);
      }

      .game-instructions p {
        color: var(--text-primary);
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
      }

      .memory-game-board {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        position: relative;
        z-index: 2;
      }

      .memory-card {
        aspect-ratio: 1;
        background: rgba(30, 58, 95, 0.8);
        border: 2px solid var(--zeus-gold);
        border-radius: 10px;
        cursor: pointer;
        position: relative;
        transform-style: preserve-3d;
        transition: transform 0.6s;
        user-select: none;
      }

      .memory-card.flipped {
        transform: rotateY(180deg);
      }

      .memory-card.matched {
        border-color: var(--hades-electric);
        opacity: 0.7;
        cursor: default;
      }

      .memory-card-front,
      .memory-card-back {
        position: absolute;
        width: 100%;
        height: 100%;
        backface-visibility: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
      }

      .memory-card-front {
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 107, 53, 0.2) 100%);
        border: 2px solid var(--zeus-gold);
        font-size: 2.5rem;
        color: var(--zeus-gold);
        font-weight: 700;
      }

      .memory-card-back {
        background: rgba(30, 58, 95, 0.95);
        border: 2px solid rgba(255, 215, 0, 0.5);
        transform: rotateY(180deg);
        flex-direction: column;
        padding: 1rem;
        text-align: center;
      }

      .card-symbol {
        font-size: 1.4rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        letter-spacing: 1px;
        padding: 0 0.25rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .card-title {
        font-size: 0.75rem;
        opacity: 0.9;
        line-height: 1.2;
        padding: 0 0.25rem;
      }

      .memory-card-back.zeus {
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 107, 53, 0.2) 100%);
        border-color: var(--zeus-gold);
      }

      .memory-card-back.zeus .card-symbol {
        color: var(--zeus-gold);
      }

      .memory-card-back.zeus .card-title {
        color: var(--zeus-gold);
      }

      .memory-card-back.hades {
        background: linear-gradient(135deg, rgba(0, 191, 255, 0.15) 0%, rgba(30, 58, 95, 0.3) 100%);
        border-color: var(--hades-electric);
      }

      .memory-card-back.hades .card-symbol {
        color: var(--hades-electric);
      }

      .memory-card-back.hades .card-title {
        color: var(--hades-electric);
      }

      .memory-card-back.poseidon {
        background: linear-gradient(135deg, rgba(0, 191, 255, 0.2) 0%, rgba(30, 58, 95, 0.3) 100%);
        border-color: var(--hades-electric);
      }

      .memory-card-back.poseidon .card-symbol {
        color: var(--hades-electric);
        font-size: 1.1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .memory-card-back.poseidon .card-title {
        color: var(--hades-electric);
        font-size: 0.7rem;
      }

      .memory-card-back.ares {
        background: linear-gradient(135deg, rgba(255, 107, 53, 0.2) 0%, rgba(30, 58, 95, 0.3) 100%);
        border-color: var(--zeus-primary);
      }

      .memory-card-back.ares .card-symbol {
        color: var(--zeus-primary);
      }

      .memory-card-back.ares .card-title {
        color: var(--zeus-primary);
      }

      .fs-popup {
        position: absolute;
        color: var(--zeus-gold);
        font-weight: 700;
        font-size: 1.5rem;
        pointer-events: none;
        animation: fsPopup 1s ease-out forwards;
        z-index: 20;
      }

      @keyframes fsPopup {
        0% {
          opacity: 1;
          transform: translateY(0) scale(1);
        }
        100% {
          opacity: 0;
          transform: translateY(-100px) scale(1.5);
        }
      }

      .game-info {
        background: rgba(30, 58, 95, 0.3);
        padding: 1.5rem;
        border-radius: 10px;
        border: 1px solid rgba(255, 215, 0, 0.2);
      }

      .game-info p {
        margin-bottom: 0.75rem;
        color: var(--text-secondary);
        line-height: 1.6;
      }

      .game-info strong {
        color: var(--zeus-gold);
      }

      .game-active .game-instructions {
        display: none;
      }

      .game-over {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        background: rgba(10, 14, 39, 0.95);
        padding: 2rem;
        border-radius: 15px;
        border: 2px solid var(--zeus-gold);
        z-index: 15;
        display: none;
      }

      .game-over.active {
        display: block;
      }

      .game-over h3 {
        color: var(--zeus-gold);
        margin-bottom: 1rem;
        font-size: 2rem;
      }

      .game-over p {
        color: var(--text-primary);
        margin-bottom: 1.5rem;
        font-size: 1.1rem;
      }

      /* Адаптивность для мини-игры */
      @media (max-width: 768px) {
        .mini-game-container {
          padding: 1.5rem;
        }

        .game-stats {
          grid-template-columns: 1fr;
          gap: 1rem;
        }

        .stat-value {
          font-size: 1.5rem;
        }

        .game-area {
          min-height: 400px;
          padding: 1rem;
        }

        .memory-game-board {
          grid-template-columns: repeat(4, 1fr);
          gap: 0.75rem;
        }

        .memory-card-front {
          font-size: 2rem;
        }

        .card-symbol {
          font-size: 1.4rem;
        }

        .card-title {
          font-size: 0.75rem;
        }

        .game-instructions p {
          font-size: 1rem;
        }
      }

      @media (max-width: 480px) {
        .mini-game-container {
          padding: 1rem;
        }

        .game-area {
          min-height: 350px;
          padding: 0.75rem;
        }

        .memory-game-board {
          grid-template-columns: repeat(4, 1fr);
          gap: 0.5rem;
        }

        .memory-card-front {
          font-size: 1.5rem;
        }

        .card-symbol {
          font-size: 1.2rem;
        }

        .card-title {
          font-size: 0.7rem;
        }
      }

