/* =======================
   MORTAL KOMBAT 11 STYLE
   Темная палитра с золотыми и красными акцентами
   ======================= */
@font-face{
  font-family:'AlbertusNovaThin';
  src:url('/albertusnovathin.otf') format('opentype');
  font-weight:400; font-style:normal;
}

/* =======================
   ЗАГРУЗОЧНЫЙ ЭКРАН
   ======================= */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--mk11-dark);
  background-image: url('/more_img/dc82e27b6c5aa9824ccecd7ddc095916.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 99999 !important; /* Выше всего контента */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
  visibility: visible;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--mk11-border);
  border-top-color: var(--mk11-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loading-text {
  color: var(--mk11-gold);
  font-family: 'AlbertusNovaThin', Arial, sans-serif;
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  margin: 0;
  animation: textFade 1.5s ease-in-out infinite;
}

@keyframes textFade {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* MK Mobile Палитра - реалистичное золото, темный */
:root {
  --mk11-gold: #c9a961;
  --mk11-gold-bright: #e5c76a;
  --mk11-gold-dark: #a68a4a;
  --mk11-gold-subtle: rgba(201, 169, 97, 0.4);
  --mk11-red: #c41e3a;
  --mk11-red-bright: #ff1a3d;
  --mk11-red-dark: #8b1528;
  --mk11-orange: #ff6b35;
  --mk11-dark: #0a0a0a;
  --mk11-darker: #050505;
  --mk11-card: #0d0a08; /* Темный коричневатый оттенок как на скриншоте */
  --mk11-card-light: #1a1512; /* Светлее для hover эффектов */
  --mk11-border: rgba(201, 169, 97, 0.25);
  --mk11-border-gold: rgba(201, 169, 97, 0.5);
  --mk11-border-active: rgba(229, 199, 106, 0.6);
  --mk11-border-red: rgba(196, 30, 58, 0.4);
  --text-main: #e8e8e8;
  --text-bright: #ffffff;
  --text-muted: #999999;
  --text-gold: #c9a961;
  --text-red: #c41e3a;
}

/* Медленная плавная анимация фона */
@keyframes slowBackgroundMove {
  0% {
    transform: translate(0%, 0%) scale(1);
  }
  25% {
    transform: translate(2%, 1.5%) scale(1.01);
  }
  50% {
    transform: translate(0%, 2%) scale(1);
  }
  75% {
    transform: translate(-2%, 1.5%) scale(1.01);
  }
  100% {
    transform: translate(0%, 0%) scale(1);
  }
}

body{ 
  font-family:'AlbertusNovaThin',Arial,sans-serif; 
  background-color: var(--mk11-card); /* Fallback цвет, если фон не загрузится */
  color: var(--text-main); 
  margin:0; 
  padding:0;
  -webkit-text-size-adjust:100%; 
  font-size:16px; 
  line-height:1.5; 
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  /* НЕ используем background-image здесь - фон через ::before */
  /* Фон статичен и не двигается при прокрутке */
}

/* =======================
   ФИКСИРОВАННЫЙ СТАТИЧНЫЙ ФОН
   НЕ ДВИГАЕТСЯ ПРИ ПРОКРУТКЕ
   ======================= */
body::before {
  content: "";
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-width: 100vw !important;
  min-height: 100vh !important;
  background-image: url('/more_img/dc82e27b6c5aa9824ccecd7ddc095916.jpg');
  background-position: center center;
  background-size: 100% 100%; /* Растягиваем фон точно по размеру экрана */
  background-repeat: no-repeat;
  background-attachment: fixed; /* Дополнительная фиксация фона */
  z-index: -1 !important;
  pointer-events: none; /* Не перехватывает клики/скролл */
  /* Оптимизация для плавности */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0); /* GPU ускорение */
  /* Гарантия покрытия всего экрана */
  margin: 0 !important;
  padding: 0 !important;
}


h1,h2,h3{ 
  font-family:'AlbertusNovaThin',sans-serif; 
  font-weight:700; 
  letter-spacing:3px; 
  text-transform:uppercase;
  color: var(--mk11-gold-bright);
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.8);
}
.trial-info .char-name,.trial-info .event-name{ 
  font-family:'AlbertusNovaThin',sans-serif;
  color: var(--mk11-gold);
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.6);
}

/* =======================
   SKELETON LOADING
   ======================= */
.skeleton-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--mk11-card);
  border: 1px solid var(--mk11-border);
  border-radius: 8px;
  padding: 18px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  min-height: 286px;
}

.skeleton-card::before {
  content: "";
  width: 200px;
  height: 250px;
  flex-shrink: 0;
  background: linear-gradient(90deg, 
    var(--mk11-card) 0%, 
    var(--mk11-card-light) 50%, 
    var(--mk11-card) 100%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-card::after {
  content: "";
  flex: 1;
  height: 200px;
  background: linear-gradient(90deg, 
    var(--mk11-card) 0%, 
    var(--mk11-card-light) 50%, 
    var(--mk11-card) 100%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* =======================
   КОНТЕЙНЕР - ВЕСЬ КОНТЕНТ ПОВЕРХ ФОНА
   ======================= */
#container{ 
  background: transparent;
  border: none;
  padding:24px; 
  padding-bottom: 24px; /* Обычный отступ снизу */
  border-radius:0px; 
  width:100%; 
  max-width:1200px; 
  margin:30px auto; 
  margin-bottom: 0;
  box-sizing:border-box;
  box-shadow: none;
  position: relative;
  z-index: 1; /* Контент поверх фона */
  min-height: calc(100vh - 200px); /* Минимальная высота */
}

#container::before,
#container::after {
  display: none;
}

/* =======================
   ШАПКА - MK11 STYLE
   ======================= */
.banner{ 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  gap:150px; 
  margin:20px 0 30px; 
  width:100%; 
  text-align:center;
  position: relative;
  z-index: 2;
}
.logo{ 
  width:270px; 
  height:auto; 
  display:block;
  filter: 
    drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8));
  transition: filter 0.3s;
}
.logo:hover {
  filter: 
    drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8));
}
.promo-banner{ 
  flex-grow:1; 
  max-width:700px; 
  border-radius:8px; 
  overflow:hidden;
  border: 1px solid var(--mk11-border-gold);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.8),
    inset 0 0 20px rgba(0, 0, 0, 0.4);
  background: var(--mk11-card);
}
.promo-banner img{ width:100%; display:block; }
@media (max-width:1200px){ .logo{ width:180px; } .promo-banner{ max-width:500px; } }
@media (max-width:768px){ .banner{ flex-direction:column; gap:10px; margin:10px 0 20px; } .logo{ width:140px; margin:0 auto; } .promo-banner{ max-width:100%; } }
@media (max-width:480px){ .promo-banner{ min-height:100px; } }

/* =======================
   МЕНЮ - MK Mobile Style (современное, в одну строку)
   ======================= */
/* =======================
   MK BAR MENU (NEW STYLE)
   ======================= */
.mk-bar{
  --gold-1:#f7e6a6;
  --gold-2:#d6b35a;
  --gold-3:#8a6a22;
  --bg-0:#0a0a0a;
  --bg-1:#111111;

  position: relative;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(255,214,120,.10), transparent 55%),
    linear-gradient(#0b0b0b, #070707);
  padding: 10px 12px;
  overflow: hidden;
  margin-bottom: 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  /* Гарантируем видимость меню на десктопе */
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Верхняя/нижняя золотые линии */
.mk-bar::before,
.mk-bar::after{
  content:"";
  position:absolute;
  left:0; right:0;
  height:2px;
  background: linear-gradient(90deg,
    transparent,
    var(--gold-3),
    var(--gold-1),
    var(--gold-2),
    transparent
  );
  opacity:.9;
  filter: drop-shadow(0 0 6px rgba(255,210,120,.22));
}
.mk-bar::before{ top:0; }
.mk-bar::after{ bottom:0; }

/* Внутренняя "плашка" */
.mk-bar__inner{
  max-width: 1100px;
  margin: 0 auto;
  display:flex;
  gap: 4px;
  align-items:center;
  justify-content:center;
  flex-wrap: wrap;

  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0)),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
  border: 1px solid rgba(214,179,90,.25);
  border-radius: 10px;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 8px 24px rgba(0,0,0,.55);
  padding: 8px 10px;
  /* Гарантируем видимость на десктопе */
  visibility: visible !important;
  opacity: 1 !important;
  max-height: none !important;
}

/* Пункты меню */
.mk-item{
  position:relative;
  display:flex;
  align-items:center;
  gap:6px;
  padding: 5px 10px;
  color: rgba(255,235,190,.92);
  text-decoration:none;
  letter-spacing: 0.3px;
  font-size: 12px;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 8px;
  transition: transform .12s ease, background .12s ease, color .12s ease;
  cursor: pointer;
  flex-shrink: 0;
}

/* Вертикальный разделитель между пунктами */
.mk-item + .mk-item::before{
  content:"";
  position:absolute;
  left:-2px;
  top: 20%;
  bottom: 20%;
  width:1px;
  background: linear-gradient(180deg, transparent, rgba(214,179,90,.55), transparent);
}

/* Наведение */
.mk-item:hover{
  background: radial-gradient(120% 130% at 50% 0%, rgba(255,214,120,.18), rgba(255,214,120,.04) 55%, transparent);
  color: rgba(255,245,210,.98);
  transform: translateY(-1px);
}

/* Активный пункт */
.mk-item.is-active{
  background: radial-gradient(120% 130% at 50% 0%, rgba(255,214,120,.22), rgba(255,214,120,.06) 60%, transparent);
  box-shadow: inset 0 0 0 1px rgba(214,179,90,.35);
  color: rgba(255,245,210,.98);
}

/* Правая часть: иконка + число */
.mk-meta{
  display:flex;
  align-items:center;
  gap:6px;
  opacity:.95;
}

.mk-count{
  font-variant-numeric: tabular-nums;
}

/* "Монетка" чисто CSS */
.mk-coin{
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #fff3c9 0 25%, transparent 26%),
    radial-gradient(circle at 50% 50%, var(--gold-1) 0, var(--gold-2) 55%, var(--gold-3) 100%);
  box-shadow:
    0 0 10px rgba(255,214,120,.18),
    inset 0 0 0 1px rgba(0,0,0,.35);
}

/* =======================
   АДАПТИВНОЕ МЕНЮ
   ======================= */

/* Планшеты и средние экраны (до 1024px) */
@media (max-width: 1024px){
  .mk-bar__inner{
    padding: 8px 12px;
    gap: 6px;
  }
  
  .mk-item{
    padding: 5px 12px;
    font-size: 13px;
    letter-spacing: 0.3px;
  }
}

/* Планшеты в портретной ориентации (до 768px) */
@media (max-width: 768px){
  .mk-bar{
    padding: 8px 10px;
  }
  
  .mk-bar__inner{
    padding: 8px 10px;
    gap: 5px;
  }
  
  .mk-item{
    padding: 5px 10px;
    font-size: 12px;
    letter-spacing: 0.2px;
  }
  
  /* Скрываем разделители на маленьких экранах для экономии места */
  .mk-item + .mk-item::before{
    display: none;
  }
}

/* Кнопка гамбургера */
.mk-menu-toggle{
  display: none;
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid rgba(214,179,90,.4);
  border-radius: 6px;
  cursor: pointer;
  z-index: 101;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 6px;
  transition: all .2s ease;
}

.mk-menu-toggle:hover{
  border-color: rgba(214,179,90,.7);
  background: rgba(255,214,120,.1);
}

.mk-menu-toggle span{
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(255,235,190,.9);
  border-radius: 2px;
  transition: all .3s ease;
}

.mk-menu-toggle[aria-expanded="true"] span:nth-child(1){
  transform: rotate(45deg) translate(5px, 5px);
}

.mk-menu-toggle[aria-expanded="true"] span:nth-child(2){
  opacity: 0;
}

.mk-menu-toggle[aria-expanded="true"] span:nth-child(3){
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Мобильные устройства (до 640px) */
@media (max-width: 640px){
  .mk-bar{
    padding: 6px 8px;
    margin-bottom: 15px;
    /* На мобильных тоже видимо */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .mk-menu-toggle{
    display: flex;
  }
  
  .mk-bar__inner{
    position: absolute;
    top: calc(100% + 8px);
    left: 8px;
    right: 8px;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease, 
                padding 0.3s ease, 
                visibility 0.3s ease;
    padding: 0;
    gap: 0;
    margin-top: 0;
    border-radius: 8px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0)),
      linear-gradient(180deg, var(--bg-1), var(--bg-0));
    border: 1px solid rgba(214,179,90,.25);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.06),
      0 8px 24px rgba(0,0,0,.55);
    z-index: 102;
    transform: translateY(-10px);
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease, 
                padding 0.3s ease, 
                visibility 0.3s ease,
                transform 0.3s ease;
  }
  
  .mk-bar__inner.menu-open{
    max-height: 600px;
    opacity: 1;
    visibility: visible;
    padding: 10px;
    gap: 4px;
    transform: translateY(0);
  }
  
  .mk-item{
    width: 100%;
    padding: 12px 14px;
    font-size: 13px;
    letter-spacing: 0.2px;
    justify-content: center;
    border-bottom: 1px solid rgba(214,179,90,.15);
    transition: background 0.2s ease, transform 0.2s ease;
  }
  
  .mk-item:last-child{
    border-bottom: none;
  }
  
  .mk-item:active{
    background: radial-gradient(120% 130% at 50% 0%, rgba(255,214,120,.18), rgba(255,214,120,.04) 55%, transparent);
    transform: scale(0.98);
  }
  
  /* Скрываем разделители */
  .mk-item + .mk-item::before{
    display: none;
  }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px){
  .mk-bar{
    padding: 5px 6px;
  }
  
  .mk-bar__inner{
    padding: 6px 8px;
    gap: 3px;
  }
  
  .mk-item{
    padding: 5px 8px;
    font-size: 10px;
    letter-spacing: 0;
  }
  
  /* Сокращаем длинные названия */
  .mk-item span{
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Обратная совместимость со старыми классами (скрываем) */
.tabs {
  display: none;
}

.tab {
  display: none;
}


.tab-content{ 
  display:none; 
  /* Оптимизация: используем content-visibility для скрытых вкладок */
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}
.tab-content.active{ 
  display:block; 
  content-visibility: visible;
}

/* =======================
   КАРТОЧКИ - MK11 STYLE (как панели в игре)
   ======================= */
.trials-container{ 
  display:grid; 
  grid-template-columns:repeat(auto-fill,minmax(420px,1fr)); 
  gap:20px;
  align-items: start;
  /* Оптимизация рендеринга */
  contain: layout;
}
.trial-card{
  display:flex; 
  align-items:center; 
  gap:12px; 
  background: var(--mk11-card);
  border: 1px solid var(--mk11-border);
  border-radius:8px; 
  padding:12px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.8),
    inset 0 0 20px rgba(0, 0, 0, 0.6);
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  position: relative;
  overflow: hidden;
  /* Оптимизация рендеринга */
  contain: layout style paint;
  will-change: transform;
}

/* Рамка как на скринах - тонкая золотая */
.trial-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--mk11-border);
  pointer-events: none;
  opacity: 1;
  transition: border-color 0.2s;
  z-index: 1;
}

.trial-card:hover::before {
  border-color: var(--mk11-border-gold);
}

.trial-card:hover{ 
  transform:translateY(-2px); 
  border-color: var(--mk11-border-gold);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.9),
    inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.trial-card:hover{ 
  transform:translateY(-4px); 
  border-color: var(--mk11-border-gold);
  box-shadow:
    0 0 30px rgba(212, 175, 55, 0.4),
    0 0 50px rgba(212, 175, 55, 0.2),
    0 8px 20px rgba(0, 0, 0, 0.9),
    inset 0 0 40px rgba(212, 175, 55, 0.1);
}

/* рекламная карточка - наследует стиль обычной карточки */
.trial-card.ad-card{ 
  /* Наследует все стили от .trial-card */
}

/* изображение */
.trial-img{ 
  width:170px; 
  height:170px; 
  flex-shrink:0; 
  border-radius:6px; 
  overflow:hidden;
  border: 1px solid var(--mk11-border);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.8),
    inset 0 0 20px rgba(0, 0, 0, 0.6);
  background: var(--mk11-card);
  transition: all 0.2s ease;
  position: relative;
  /* Оптимизация изображений */
  contain: layout style paint;
  will-change: transform;
}

.trial-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  /* Оптимизация загрузки */
  loading: lazy;
  decoding: async;
}

.trial-card:hover .trial-img {
  border-color: var(--mk11-border-gold);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.9),
    inset 0 0 20px rgba(0, 0, 0, 0.6);
}
.trial-img img{ width:100%; height:100%; object-fit:cover; }

/* мобильная колонка */
@media (max-width:768px){
  .trials-container{ gap:12px; grid-template-columns:1fr; }
  .trial-card{ flex-direction:column; padding:12px; gap:12px; text-align:center; }
  .trial-img{ width:120px; height:150px; }
}

/* =======================
   СПЕЦ. СЕКЦИИ
   ======================= */
#challenges .trial-img{ background:url(/more_img/TrialMenuBG.webp) center/cover no-repeat; }
#relics .trial-img{ background:url(/more_img/Tutorial_Background.webp) center/cover no-repeat; }
#reptile .trial-img{ background:url(/more_img/yama.webp) center/cover no-repeat; }
#passes .trial-img{ background:url(/more_img/combat_pas.webp) center/cover no-repeat; }
#towers .trial-img{ background:url(/more_img/Challenge_HardBG.webp) center/cover no-repeat; width:170px; height:170px; border-radius:0px; position:relative; overflow:hidden; }
#towers .trial-img img{ width:250%; height:100%; object-fit:cover; object-position:top; transform:translateX(-11%) scale(1.1); transition:all .3s ease; }

/* фоны - стандартизированы для всех секций */
#challenges .trials-container,
#relics .trials-container,
#reptile .trials-container,
#passes .trials-container,
#towers .trials-container,
#faction-wars .trials-container,
#krypt .trials-container{
  position:relative; padding:20px; border-radius:8px; overflow:hidden;
  border: 1px solid var(--mk11-border);
  background: url(/more_img/fon_battlepass.webp) center/cover no-repeat;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.8),
    inset 0 0 20px rgba(0, 0, 0, 0.6);
}

/* Затемнение фона для читаемости */
#challenges .trials-container::before,
#relics .trials-container::before,
#reptile .trials-container::before,
#passes .trials-container::before,
#towers .trials-container::before,
#faction-wars .trials-container::before,
#krypt .trials-container::before{
  content:""; position:absolute; inset:0; background:rgba(10, 10, 10, .85); backdrop-filter:blur(4px); z-index:1; pointer-events:none;
}

/* Карточки поверх фона */
#challenges .trial-card,
#relics .trial-card,
#reptile .trial-card,
#passes .trial-card,
#towers .trial-card,
#faction-wars .trial-card,
#krypt .trial-card{
  position:relative; z-index:10;
}

/* =======================
   ТЕКСТ / ТАЙМЕРЫ - MK11 STYLE
   ======================= */
.trial-info{ flex:1; display:flex; flex-direction:column; gap:6px; position: relative; z-index: 1; text-align:center; align-items:center; }
.trial-info-row{ display:flex; gap:8px; flex-wrap:wrap; justify-content:center; }
.trial-info .char-name{ 
  font-size:18px; 
  font-weight:700; 
  margin-bottom:4px;
  color: var(--mk11-gold-bright);
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.8);
  letter-spacing: 1px;
  text-align:center;
  width:100%;
}
.trial-countdown{ 
  font-size:14px; 
  font-weight:700; 
  margin-top:8px; 
  display:block;
  color: var(--mk11-gold);
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.5px;
  text-align:center;
  width:100%;
}
.trial-countdown img{ 
  width:18px; 
  height:18px; 
  vertical-align:middle; 
  margin-right:4px; 
  position:relative; 
  top:-2px; 
}
.trial-countdown.active,.trial-countdown.upcoming{ 
  color: var(--mk11-gold-bright);
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.6);
}
.trial-countdown.finished{ 
  color: var(--text-muted);
  text-shadow: none;
}
@media (max-width:768px){ 
  .trial-info .char-name{ font-size:18px; margin-bottom:15px; } 
  .trial-countdown{ font-size:15px; margin-top:15px; } 
  .trial-countdown img{ width:18px; height:18px; margin-right:3px; } 
}

/* =======================
   ТАБЛИЦЫ - MK11 STYLE
   ======================= */
table{ width:100%; border-collapse:separate; border-spacing:0; margin-top:15px; border: 1px solid var(--mk11-border); border-radius:8px; overflow:hidden; }
th,td{ 
  border:1px solid var(--mk11-border); 
  padding:8px; 
  text-align:center;
  background: var(--mk11-card);
}
th{ 
  background: rgba(201, 169, 97, 0.15);
  color: var(--mk11-gold-bright);
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.6);
  font-weight: 700;
  letter-spacing: 1px;
}
td {
  color: var(--text-main);
}
tr:hover td {
  background: rgba(201, 169, 97, 0.08);
}
@media (max-width:768px){ table{ font-size:13px; } th,td{ padding:6px; } }

/* =======================
   ЗАМЕТКИ - MK11 STYLE
   ======================= */
.tab-note{
  background: var(--mk11-card);
  border: 1px solid var(--mk11-border);
  border-radius:8px; 
  padding:16px; 
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.8),
    inset 0 0 20px rgba(0, 0, 0, 0.6);
  transition:all .2s ease; 
  margin-top:25px; 
  font-size:14px; 
  color: var(--text-muted); 
  line-height:1.6; 
  text-align:center;
  position: relative;
}
.tab-note strong{ 
  color: var(--mk11-gold-bright);
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.6);
}
.tab-note:hover{ 
  transform:translateY(-2px); 
  border-color: var(--mk11-border-gold);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.9),
    inset 0 0 20px rgba(0, 0, 0, 0.6);
}
@media (max-width:768px){
  .tab-note{ 
    padding: 14px 12px; 
    margin-top: 15px; 
    margin-left: auto;
    margin-right: auto;
    font-size: 13px; 
    line-height: 1.6; 
    max-width: 100%;
    width: calc(100% - 24px);
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .tab-note.expanded{ 
    max-height: none; 
  }
  .tab-note-btn{ 
    display: block; 
    text-align: center; 
    margin-top: 8px; 
    cursor: pointer; 
    color: var(--mk11-gold); 
    font-size: 12px; 
  }
}

/* =======================
   ФУТЕР - MK11 STYLE
   ======================= */
.site-footer{ 
  background: var(--mk11-card);
  border: 1px solid var(--mk11-border-gold);
  color: var(--text-muted); 
  margin: 40px auto 0;
  padding: 20px 24px; 
  border-radius: 8px; 
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  box-shadow:
    0 -2px 8px rgba(0, 0, 0, 0.8),
    inset 0 0 20px rgba(0, 0, 0, 0.6);
  position: relative; /* Прокручивается вместе с контентом */
  z-index: 1; /* Поверх фона, но в потоке документа */
  box-sizing: border-box;
}
.footer-container{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-start; gap:30px; width:100%; position: relative; z-index: 1; }
.footer-left h3{ 
  color: var(--mk11-gold-bright);
  margin-bottom:10px;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.8);
  letter-spacing: 2px;
}
.footer-center ul{ list-style:none; padding:0; margin:0; }
.footer-center li{ margin:8px 0; }
.footer-center a{ 
  color: var(--mk11-gold);
  text-decoration:none; 
  transition:.2s;
}
.footer-center a:hover{ 
  color: var(--mk11-gold-bright);
}
.footer-right{ text-align:right; }
.footer-right .brand{ 
  color: var(--mk11-gold-bright);
  font-weight:700;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.8);
  letter-spacing: 2px;
}
.footer-right .small-text{ font-size:13px; color: var(--text-muted); margin-top:6px; }

/* =======================
   АДАПТИВ
   ======================= */
@media (max-width:1200px){
  #container{ max-width:1000px; padding:24px; }
  .tab{ min-width:120px; padding:12px 20px; font-size:14px; }
  .trial-img{ width:150px; height:187.5px; }
  .trial-card{ padding:16px; gap:14px; }
  .trial-info .char-name{ font-size:20px; margin-bottom:18px; }
  .trial-countdown{ font-size:16px; margin-top:18px; }
  .trial-countdown img{ width:20px; height:20px; margin-right:4px; }
  .tab-note{ padding:14px 16px; margin-top:20px; font-size:13px; }
  .site-footer{ width:100%; padding:25px 24px; }
}
@media (max-width:768px){
  #container{ 
    max-width:100%; 
    margin:10px auto; 
    padding:12px; 
    padding-bottom: 12px; /* Обычный отступ */
    width:calc(100% - 24px);
  }
  
  .site-footer {
    padding: 15px 12px;
  }
  
  /* Баннер */
  .banner{ 
    flex-direction:column; 
    gap:12px; 
    margin:10px 0 20px; 
  }
  .logo{ 
    width:140px; 
    margin:0 auto; 
  }
  .promo-banner{ 
    max-width:100%; 
    border-radius:6px;
  }
  
  /* Меню - улучшенная мобильная версия */
  .tabs{ 
    margin:20px 0 15px; 
    padding:6px; 
    gap:4px; 
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--mk11-border-gold) rgba(0, 0, 0, 0.3);
  }
  .tabs::-webkit-scrollbar {
    height: 6px;
  }
  .tabs::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
  }
  .tabs::-webkit-scrollbar-thumb {
    background: var(--mk11-border-gold);
    border-radius: 3px;
  }
  .tab{ 
    padding:10px 14px; 
    font-size:12px; 
    min-width:auto;
    flex-shrink: 0;
    letter-spacing: 0.5px;
  }
  
  /* Блоки контента */
  .trials-container{ 
    grid-template-columns:1fr !important; 
    gap:12px; 
    padding:15px !important;
  }
  .trial-card{ 
    flex-direction:column; 
    padding:15px; 
    gap:15px; 
    text-align:center; 
  }
  .trial-img{ 
    width:140px; 
    height:175px; 
    margin:0 auto; 
    border-radius:6px;
  }
  .trial-info{ 
    align-items:center; 
    text-align:center; 
    width:100%;
  }
  .trial-info-row{ 
    flex-direction:column; 
    gap:8px; 
    width:100%;
  }
  .trial-info .char-name{ 
    font-size:18px; 
    margin-bottom:12px; 
    text-align:center;
  }
  .trial-countdown{ 
    font-size:15px; 
    margin-top:12px; 
    text-align:center;
  }
  .trial-countdown img{ 
    width:18px; 
    height:18px; 
    margin-right:4px; 
  }
  
  /* Крипта */
  .krypt-header-row{ 
    grid-template-columns:1fr !important;
    flex-direction:column; 
    gap:12px; 
    margin-bottom:16px;
  }
  .krypt-header-row .trial-card{ 
    min-height:auto;
    flex-direction:column !important;
  }
  .krypt-block{ 
    width:100%; 
  }
  
  /* Главная страница */
  .home-intro{ 
    padding:20px 15px; 
    margin-bottom:20px;
  }
  .home-intro h1{ 
    font-size:22px; 
    margin-bottom:12px; 
  }
  .intro-text{ 
    font-size:15px; 
    line-height:1.6; 
    margin-bottom:20px;
  }
  .intro-stats{ 
    grid-template-columns:1fr; 
    gap:12px; 
  }
  .stat-item{
    padding:15px;
  }
  .stat-value{
    font-size:28px;
  }
  .categories-grid{ 
    grid-template-columns:1fr; 
    gap:16px; 
  }
  .category-card{ 
    flex-direction:column; 
    text-align:center; 
    padding:18px; 
  }
  .category-icon{ 
    font-size:40px; 
    margin-bottom:10px;
  }
  
  /* Футер */
  .site-footer{ 
    width:100%;
    padding:20px 15px; 
    margin-top:30px; 
    max-width:100%;
    margin-left: auto;
    margin-right: auto;
  }
  .footer-container{ 
    flex-direction:column; 
    align-items:center; 
    text-align:center; 
    gap:20px; 
  }
  .footer-left{ 
    width:100%; 
  }
  .footer-left h3{ 
    font-size:16px; 
    margin-bottom:8px; 
  }
  .footer-left p{ 
    font-size:13px; 
    margin:0; 
  }
  .footer-center{ 
    width:100%; 
  }
  .footer-center ul{ 
    display:flex; 
    flex-direction:column; 
    align-items:center; 
    gap:8px; 
  }
  .footer-center li{ 
    margin:0; 
    font-size:13px; 
  }
  .footer-right{ 
    width:100%; 
    text-align:center; 
  }
  .footer-right .brand{ 
    font-size:14px; 
  }
  .footer-right .small-text{ 
    font-size:11px; 
    margin-top:4px; 
  }
  
  /* Таблицы */
  table{ 
    font-size:12px; 
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  th,td{ 
    padding:8px 6px; 
    font-size:12px;
  }
  
  /* Заметки */
  .tab-note{ 
    padding: 12px 10px; 
    margin-top: 15px; 
    margin-left: auto;
    margin-right: auto;
    font-size: 12px; 
    line-height: 1.5;
    max-width: 100%;
    width: calc(100% - 20px);
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}
@media (max-width:480px){
  #container{ 
    padding:10px; 
    padding-bottom: 160px; /* Отступ для маленького экрана */
    width:calc(100% - 20px);
    margin:5px auto;
  }
  
  .site-footer {
    padding: 12px 10px;
    font-size: 12px;
  }
  
  /* Баннер */
  .banner{ 
    margin:5px 0 15px; 
    gap:10px;
  }
  .logo{ 
    width:120px; 
  }
  .promo-banner{ 
    min-height:80px; 
    border-radius:6px;
  }
  
  /* Меню - компактная версия */
  .tabs{ 
    margin:15px 0 12px; 
    padding:4px; 
    gap:3px;
  }
  .tab{ 
    padding:8px 10px; 
    font-size:11px; 
    letter-spacing:0.5px;
  }
  
  /* Блоки */
  .trials-container{ 
    padding:12px !important;
    gap:10px;
  }
  .trial-card{ 
    padding:12px; 
    gap:12px; 
  }
  .trial-img{ 
    width:120px; 
    height:150px; 
  }
  .trial-info .char-name{ 
    font-size:16px; 
    margin-bottom:10px;
  }
  .trial-countdown{ 
    font-size:14px; 
    margin-top:10px;
  }
  .trial-countdown img{ 
    width:16px; 
    height:16px; 
  }
  
  /* Главная */
  .home-intro{ 
    padding:15px 12px; 
    margin-bottom:15px;
  }
  .home-intro h1{ 
    font-size:18px; 
    margin-bottom:10px;
  }
  .intro-text{ 
    font-size:14px; 
    line-height:1.5;
    margin-bottom:15px;
  }
  .stat-item{
    padding:12px;
  }
  .stat-value{
    font-size:24px;
  }
  .stat-label{
    font-size:12px;
  }
  .category-card{ 
    padding:15px; 
  }
  .category-icon{ 
    font-size:36px; 
  }
  
  /* Футер */
  .site-footer{ 
    width:100%;
    padding:15px 12px; 
    margin-top:20px;
  }
  .footer-container{ 
    gap:15px; 
  }
  .footer-left h3{ 
    font-size:14px; 
    margin-bottom:6px;
  }
  .footer-left p{ 
    font-size:12px; 
  }
  .footer-center li{ 
    font-size:12px; 
  }
  .footer-right .brand{ 
    font-size:13px; 
  }
  .footer-right .small-text{ 
    font-size:10px; 
    margin-top:3px;
  }
  
  /* Таблицы */
  table{ 
    font-size:11px; 
  }
  th,td{ 
    padding:6px 4px; 
    font-size:11px;
  }
  
  /* Заметки */
  .tab-note{ 
    padding: 10px 8px; 
    margin-left: auto;
    margin-right: auto;
    font-size: 11px; 
    line-height: 1.5;
    max-width: 100%;
    width: calc(100% - 16px);
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* =======================
   БЛОК «ЗАВЕРШЕНО»
   ======================= */
.status-finished-block{ 
  display:flex; 
  align-items:center; 
  justify-content:center;
  gap:8px; 
  font-weight:600; 
  color: var(--text-muted);
  margin-top:10px;
  letter-spacing: 1px;
  width:100%;
  text-align:center;
}
.status-finished-block img{ width:40px; height:40px; align-self:flex-start; margin-top:7px; }

/* =========================================
   «КРИПТА»: Шапка (ресет + реклама)
   ========================================= */
.krypt-header-row{
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:stretch; gap:16px; margin-bottom:24px;
}
.krypt-header-row .trial-card{ min-height:220px; height:100%; flex-direction:row !important; }
.krypt-header-row > *{ min-width:0; height:100%; }

/* =========================================
   Универсальный первый ряд TOP-2
   ========================================= */
.top2-row{
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:16px; align-items:stretch; margin-bottom:16px;
}
.top2-row > .trial-card,
.top2-row > a{ height:100%; }
@media (max-width:900px){
  .top2-row{ grid-template-columns:repeat(2,1fr); }
}

.krypt-block{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
  height:100%;
}

.krypt-block > h3{
  margin:0;
  line-height:1.25;
  color: var(--mk11-gold-bright);
  text-shadow: 
    0 0 12px rgba(212, 175, 55, 1),
    0 0 20px rgba(212, 175, 55, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.8);
  letter-spacing: 2px;
}

.krypt-header-row .trial-card{
  min-height:220px;
  height:100%;
  flex-direction:row !important;
  flex:1;
}

.krypt-header-row a[data-ad-wrap]{
  display:flex;
  height:100%;
  margin:0 !important;
  padding:0 !important;
}

@media (max-width: 900px){
  .krypt-header-row{ grid-template-columns:1fr; }
}

html, body{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.trial-info .char-name{
  font-family:'AlbertusNovaThin', Arial, sans-serif;
  line-height: 1.25;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.krypt-header-row .trial-card .char-name{
  margin-bottom: 18px !important;
}
.krypt-header-row .trial-card .trial-info{
  gap: 10px;
}

.trial-info .time{ 
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 13px;
  text-align:center;
}

.trials-container{
  align-items: start;
}

.trials-container > *{
  margin: 0 !important;
  align-self: start !important;
}

.trials-container > a[data-ad-wrap]{
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  outline: none;
}

.trials-container .ad-card{
  height: 100%;
}

/* =======================
   ГЛАВНАЯ СТРАНИЦА - MK11 STYLE
   ======================= */
.home-page {
  padding: 20px 0;
}

.home-intro {
  background: var(--mk11-card);
  border: 1px solid var(--mk11-border-gold);
  border-radius:8px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.8),
    inset 0 0 20px rgba(0, 0, 0, 0.6);
  text-align: center;
  position: relative;
}

.home-intro h1 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--mk11-gold-bright);
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.8);
}

.intro-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.intro-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 600px;
  margin: 0 auto;
}

.stat-item {
  background: rgba(201, 169, 97, 0.1);
  border: 1px solid var(--mk11-border);
  border-radius:8px;
  padding: 20px;
  transition: all 0.2s ease;
  position: relative;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.8),
    inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.stat-item:hover {
  transform: translateY(-2px);
  border-color: var(--mk11-border-gold);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.9),
    inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.stat-value {
  font-size: 36px;
  font-weight: 900;
  color: var(--mk11-gold-bright);
  margin-bottom: 8px;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.8);
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.category-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--mk11-card);
  border: 1px solid var(--mk11-border);
  border-radius:8px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.8),
    inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--mk11-border-gold);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.9),
    inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.category-icon {
  font-size: 48px;
  line-height: 1;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.category-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.category-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--mk11-gold-bright);
  text-shadow: 
    0 0 12px rgba(212, 175, 55, 1),
    0 0 20px rgba(212, 175, 55, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.8);
}

.category-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.category-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.stat-badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(201, 169, 97, 0.15);
  border: 1px solid var(--mk11-border);
  border-radius:6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--mk11-gold);
}

.stat-badge.active {
  background: rgba(255, 107, 53, 0.15);
  border-color: rgba(255, 107, 53, 0.4);
  color: var(--mk11-orange);
}

.category-active-event {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--mk11-border);
}

.active-event-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--mk11-gold-bright);
  margin-bottom: 4px;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.6);
}

.active-event-time {
  font-size: 13px;
  color: var(--text-muted);
}

.category-arrow {
  font-size: 24px;
  color: var(--mk11-gold);
  opacity: 0.5;
  transition: all 0.2s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.category-card:hover .category-arrow {
  opacity: 1;
  transform: translateX(4px);
  color: var(--mk11-gold-bright);
}

@media (max-width: 768px) {
  .home-intro {
    padding: 24px;
  }
  
  .home-intro h1 {
    font-size: 24px;
  }
  
  .intro-text {
    font-size: 16px;
  }
  
  .intro-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .category-card {
    flex-direction: column;
    text-align: center;
  }
  
  .category-icon {
    font-size: 40px;
  }
}

/* =======================
   БОКОВОЕ МЕНЮ СПРАВА
   ======================= */
.side-menu {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
  pointer-events: none; /* Позволяет кликать сквозь пустые области */
}

.side-menu__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  min-height: 90px;
  padding: 10px 8px;
  /* Наследуем фон из главного меню (.mk-bar__inner) */
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0)),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
  border: none;
  border-radius: 12px;
  box-shadow: none;
  transition: all .2s ease;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: visible;
  pointer-events: auto; /* Восстанавливаем кликабельность для элементов */
  gap: 6px;
}

.side-menu__icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0)),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
  border: 1px solid rgba(214,179,90,.3);
  border-radius: 10px;
  box-shadow: none;
}

.side-menu__label {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,235,190,.85);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
  transition: color .2s ease;
}

.side-menu__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    var(--gold-3),
    var(--gold-1),
    var(--gold-2),
    transparent
  );
  opacity: 0;
  transition: opacity .2s ease;
}

.side-menu__item:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: none;
  /* При hover используем тот же стиль, что и главное меню (.mk-item:hover) */
  background: 
    radial-gradient(120% 130% at 50% 0%, rgba(255,214,120,.18), rgba(255,214,120,.04) 55%, transparent),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0)),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
}

.side-menu__item:hover::before {
  opacity: 1;
}

.side-menu__item:active {
  transform: translateY(-1px) scale(1.02);
}

.side-menu__icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
  transition: filter .2s ease, transform .2s ease;
}

.side-menu__item:hover .side-menu__icon {
  filter: drop-shadow(0 4px 8px rgba(255,214,120,.3));
  transform: scale(1.1);
}

.side-menu__item:hover .side-menu__icon-wrapper {
  border-color: rgba(214,179,90,.5);
  box-shadow: none;
}

.side-menu__item:hover .side-menu__label {
  color: rgba(255,245,210,.98);
}

/* Адаптивность для бокового меню */
@media (max-width: 768px) {
  .side-menu {
    right: 12px;
    gap: 0;
  }
  
  .side-menu__item {
    width: 70px;
    min-height: 80px;
    padding: 8px 6px;
  }
  
  .side-menu__icon-wrapper {
    width: 44px;
    height: 44px;
  }
  
  .side-menu__icon {
    width: 28px;
    height: 28px;
  }
  
  .side-menu__label {
    font-size: 8px;
  }
}

@media (max-width: 480px) {
  .side-menu {
    /* Перемещаем меню вниз на мобильных */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    transform: none;
    flex-direction: row; /* Горизонтальное расположение */
    gap: 8px;
    z-index: 1001;
    /* Темная непрозрачная подложка на всю ширину */
    padding: 12px;
    justify-content: center;
    background: #0a0a0a !important; /* Полностью непрозрачный темный фон */
    border-top: 1px solid rgba(214,179,90,.25);
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-radius: 0;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.06),
      0 -8px 24px rgba(0,0,0,.55);
  }
  
  .side-menu__item {
    width: 70px;
    min-height: 70px;
    padding: 8px 6px;
    border-radius: 10px;
    background: transparent !important; /* Прозрачный фон элементов, чтобы видна была подложка */
  }
  
  .side-menu__icon-wrapper {
    width: 38px;
    height: 38px;
    /* Подложка под иконки в мобильной версии */
    background:
      linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0)),
      linear-gradient(180deg, var(--bg-1), var(--bg-0));
  }
  
  .side-menu__icon {
    width: 24px;
    height: 24px;
  }
  
  .side-menu__label {
    font-size: 7px;
    letter-spacing: 0.3px;
  }
}
