/* ========== ИМПОРТ ШРИФТОВ ========== */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

/* ========== BASE ========== */
html, body {
  overflow-x: hidden;
}
body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Open Sans', system-ui, sans-serif;
  background: #1A0E0E;
  background-attachment: fixed;
  color: #e6d9f5;
  position: relative;
}

/* Упрощенный декоративный фон без градиентов */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #1A0E0E;
  pointer-events: none;
  z-index: -1;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.sidebar {
 position: fixed;
 top: 0;
 left: 0;
 width: 250px;
 height: 100vh;
 background: #1A0E0E;
 border-right: 3px solid #2C1B1B;
 box-shadow: 5px 0 20px rgba(0, 0, 0, 0.4);
 padding: 1.5rem 1rem;
 display: flex;
 flex-direction: column;
 gap: 1.5rem;
 z-index: 900;
 box-sizing: border-box;
 transition: width 0.3s ease;
}

.sidebar::before {
 content: '';
 position: absolute;
 top: 10px;
 left: 10px;
 right: 10px;
 bottom: 10px;
 border: 2px solid #2b1b1b;
 border-radius: 12px;
 opacity: 0.2;
 pointer-events: none;
}

/* Свёрнутое меню */
.sidebar.collapsed {
 width: 72px;
}


.menu a {
 display: flex;
 align-items: center;
 gap: 12px;
 padding: 12px 18px;
 color: #fff;
 text-decoration: none;
 border-radius: 25px;
 transition: background 0.2s, padding 0.2s;
}

.menu a:hover {
 background: #2b1b1b;
}

.menu a .icon {
 font-size: 20px;
 min-width: 24px;
 text-align: center;
}

.menu a .menu-label {
 transition: opacity 0.2s, visibility 0.2s;
 white-space: nowrap;
}

.sidebar.collapsed .menu a .menu-label {
 opacity: 0;
 visibility: hidden;
 width: 0;
 overflow: hidden;
}


.logo {
 font-family: 'Open Sans', sans-serif;
 font-size: 1.5rem;
 font-weight: 600;
 color: #e6d9f5;
 text-align: center;
 text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.logo .chip {
 color: #FFD700;
 text-shadow: none;
}

.menu {
 display: flex;
 flex-direction: column;
 gap: 0.75rem;
 flex: 1;
}

.menu a {
 display: flex;
 align-items: center;
 gap: 0.75rem;
 padding: 0.425rem 0.6375rem;
 border-radius: 25px;
 font-size: 0.8075rem;
 font-weight: 500;
 transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
 background: #2b1b1b;
 border: 1px solid #2C1B1B;
 position: relative;
 overflow: hidden;
}

.menu a::before {
 content: '';
 position: absolute;
 top: 0;
 left: -100%;
 width: 100%;
 height: 100%;
 background: #FFD700;
 transition: left 0.5s;
}

.menu a:hover::before {
 left: 100%;
}

.menu a:hover {
 background: #2b1b1b;
 border-color: #FFD700;
 transform: translateX(5px);
 box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
 color: #FFD700;
}

.icon {
 font-size: 1.02rem;
 color: #e6d9f5;
 text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.support-btn {
 display: block;
 width: auto;
 min-width: 85px;
 text-align: center;
 background: #FFD700;
 color: #1A0E0E;
 padding: 0.34rem 0.6375rem;
 border-radius: 25px;
 font-family: 'Open Sans', sans-serif;
 font-weight: 600;
 font-size: 0.7225rem;
 transition: all 0.3s ease;
 box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
 border: 2px solid #FFD700;
 text-shadow: none;
 position: relative;
 overflow: hidden;
}

.support-btn::before {
 content: '✨';
 position: absolute;
 top: 50%;
 left: -30px;
 transform: translateY(-50%);
 font-size: 1.275rem;
 animation: sparkle 2s infinite;
}

@keyframes sparkle {
 0%, 100% { left: -30px; opacity: 0; }
 50% { left: calc(100% + 10px); opacity: 1; }
}

.support-btn:hover {
 background: #e6c200;
 box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6);
 transform: translateY(-3px);
}

/* Скрыть sidebar на планшетах и мобильных */
@media (max-width: 1024px) {
 .sidebar {
   display: none;
 }
}

/* ========== BURGER ========== */
.burger {
 display: none;
 position: absolute;
 top: 1rem;
 left: 1rem;
 z-index: 1100;
 background: #1A0E0E;
 color: #e6d9f5;
 border: none;
 font-size: 1.275rem;
 padding: 0.425rem 0.85rem;
 border-radius: 25px;
 cursor: pointer;
}

/* ========== HEADER / TOPBAR ========== */
.topbar {
 display: flex;
 align-items: center;
 justify-content: space-between;
 background: #1A0E0E;
 border-bottom: 3px solid #2C1B1B;
 padding: 0.6375rem 0.85rem;
 height: 60px;
 position: relative;
 z-index: 100;
 box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.topbar-logo img {
 padding-left: 280px;
 height: 34px;
 display: flex;
}

@media (max-width: 1024px) {
 .topbar-logo {
   display: none;
 }
}

/* Декоративные элементы для топбара */
.topbar::after {
 content: '';
 position: absolute;
 bottom: -3px;
 left: 0;
 right: 0;
 height: 3px;
 background: #2b1b1b;
}

/*========== LANGUAGE SWITCHER ========== */
/* ========== ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКОВ ========== */
.language-switcher {
position: relative;
font-size: 14px;
z-index: 1000;
flex-shrink: 0;
margin-left: 1rem;
}

.lang-current {
background: transparent;
color: #FFD700;
border: 2px solid #FFD700;
border-radius: 25px;
padding: 0.5rem 0.75rem;
cursor: pointer;
display: flex;
align-items: center;
position: relative;
max-width: 100%;
font-family: 'Open Sans', sans-serif;
font-weight: 600;
font-size: 0.9rem;
transition: all 0.3s ease;
text-transform: uppercase;
letter-spacing: 0.5px;
width: 80px;
justify-content: center;
-webkit-tap-highlight-color: transparent;
user-select: none;
}

.lang-current::after {
content: '▼';
margin-left: 0.5rem;
font-size: 0.7rem;
transition: transform 0.3s ease;
}

.language-switcher.active .lang-current::after {
transform: rotate(180deg);
}

.lang-current:hover,
.language-switcher.active .lang-current {
background: #FFD700;
color: #1A0E0E;
border-color: #FFD700;
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.lang-dropdown {
display: none;
position: absolute;
top: calc(100% + 10px);
left: 0;
right: 0;
background: #1A0E0E;
border: 2px solid #FFD700;
border-radius: 15px;
overflow: hidden;
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
z-index: 9999;
}

.language-switcher.active .lang-dropdown {
display: block;
animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
from {
  opacity: 0;
  transform: translateY(-10px);
}
to {
  opacity: 1;
  transform: translateY(0);
}
}

.lang-option {
display: block;
padding: 0.5rem 0.75rem;
color: #e6d9f5;
text-decoration: none;
transition: all 0.3s ease;
word-wrap: break-word;
white-space: normal;
font-family: 'Open Sans', sans-serif;
font-weight: 500;
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 0.5px;
border-bottom: 1px solid #4A2F2F;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
}

.lang-option:last-child {
border-bottom: none;
}

.lang-option:hover {
background: #FFD700;
color: #1A0E0E;
transform: translateX(5px);
}

/* ====== BURGER (mobile only) ====== */
.subnav-toggle {
 font-size: 0.7225rem !important;
 line-height: 1 !important;
 padding: 0.085rem !important;
 width: 1.275rem !important;
 height: 1.275rem !important;
 display: none;
 background: none;
 border: none;
 color: #e6d9f5;
 cursor: pointer;
}

/* ====== SUBNAV (левое меню) ====== */
.subnav {
display: flex;
margin-left: 250px;
gap: 0.85rem;
}

.subnav a {
display: inline-block;
padding: 0.25rem 0.5rem;
border-radius: 20px;
color: #e6d9f5;
text-decoration: none;
font-weight: 600;
font-size: 0.85rem;
transition: all 0.3s ease;
background: #2b1b1b;
border: 2px solid #2C1B1B;
position: relative;
overflow: hidden;
}

.subnav a::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: #FFD700;
transform: translateX(-100%);
transition: transform 0.6s;
}

.subnav a:hover::before {
transform: translateX(100%);
}

.subnav a:hover, .subnav a:focus {
background: #2b1b1b;
border-color: #FFD700;
color: #FFD700;
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

/* обёртка для правых кнопок */
.topbar-right {
 display: flex;
 align-items: center;
 gap: 0.6375rem;
}

.topbar-right .btn {
 font-family: 'Open Sans', sans-serif;
 font-weight: 600;
 font-size: 0.765rem;
 border-radius: 25px;
 padding: 0.425rem 0.85rem;
 text-align: center;
 text-decoration: none;
 transition: all 0.3s ease;
 white-space: nowrap;
 position: relative;
 overflow: hidden;
}

/* Фон и текст для Register */
.topbar-right .btn-register {
 background: #FFD700;
 color: #1A0E0E;
 border: 2px solid #FFD700;
 box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
 text-shadow: none;
}

.topbar-right .btn-register:hover {
 background: #e6c200;
 box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6);
 transform: translateY(-3px);
}

/* Обводка для Log In */
.topbar-right .btn-login {
 background: transparent;
 color: #FFD700;
 border: 2px solid #FFD700;
}

.topbar-right .btn-login:hover {
 background: #FFD700;
 color: #1A0E0E;
 box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
 transform: translateY(-2px);
}

/* ====== БРЕЙКПОИНТЫ ====== */
@media (max-width: 1024px) {
 .subnav {
   margin-left: 0;
 }
}

@media (max-width: 768px) {
 .topbar {
   justify-content: space-between;
   padding: 0.6375rem 0.85rem;
 }
 
 .subnav-toggle {
   display: block;
   order: -1;
   background: #1A0E0E;
   border: none;
   color: #e6d9f5;
   font-size: 1.275rem;
   cursor: pointer;
   padding: 0.425rem;
   border-radius: 25px;
   box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
 }
 
 .subnav {
   display: none;
   position: absolute;
   top: 100%;
   left: 0;
   right: 0;
   background: #1A0E0E;
   flex-direction: column;
   padding: 0.85rem;
   margin-left: 0;
   box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
 }
 
 .subnav.active {
   display: flex;
 }
 
 .subnav.active {
   gap: 0;
 }
 
 .subnav a {
   padding: 0.6375rem;
   border-bottom: 1px solid rgba(255, 255, 255, 0.1);
 }
 
 .subnav a:last-child {
   border-bottom: none;
 }
 
 .topbar-right {
   margin-left: auto;
 }
}
/* ========== MAIN ========== */
.main {
  padding: 1.7rem 0.85rem;
  margin-top: 20px;
  margin-left: 240px;
  width: calc(100% - 240px);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .main {
    margin-left: 0;
    width: 100%; 
  }
}

/* === Обёртка всей карусели === */
.banner-carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* === Лента слайдов === */
.banner-carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

/* === Один слайд (группа из 3 баннеров) === */
.carousel-slide {
  display: flex;
  justify-content: center;
  gap: 17px;
  padding: 0 17px;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}
/* === Один баннер (десктоп) === */
/* Баннеры уже и ниже */
.hero-section {
  flex: 0 0 calc((100% - 34px) / 3); /* 3 баннера + 2 gaps по 17px = 34px */
  max-width: calc((100% - 34px) / 3);
  aspect-ratio: 2.3;
  min-height: 204px;
  padding: 17px 13.6px;
  border-radius: 13.6px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  color: #fff;
  box-shadow: 0 6.8px 21.25px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 13.6px;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* === Тексты и кнопка === */
.hero-subtitle {
  font-size: 0.765rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  padding: 5.1px 10.2px;
  border-radius: 17px;
  display: inline-block;
  margin-bottom: 10.2px;
  text-transform: uppercase;
  letter-spacing: 0.425px;
}

.hero-title {
  font-size: 1.53rem;
  font-weight: bold;
  margin-bottom: 8.5px;
}

.hero-btn {
  display: inline-block;
  padding: 5.1px 11.9px; /* уменьшенные отступы */
  font-size: 0.68rem; /* меньше размер текста */
  background: #FFD700;
  color: #1A0E0E;
  font-weight: 600;
  border-radius: 17px;
  text-transform: uppercase;
  text-decoration: none;
  margin-top: 6.8px;
  transition: background 0.3s ease;
}

.hero-btn:hover {
  background: #e6c200;
}

/* === Индикаторы === */
.carousel-indicators {
  position: absolute;
  bottom: 17px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8.5px;
  z-index: 3;
}

.indicator {
  width: 8.5px;
  height: 8.5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #FFD700;
  transform: scale(1.2);
}

/* === Стрелки навигации === */
.carousel-nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 20.4px;
  padding: 10.2px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
  border-radius: 50%;
}

.carousel-nav:hover {
  background: rgba(255, 215, 0, 0.3);
}

.carousel-nav.prev {
  left: 8.5px;
}

.carousel-nav.next {
  right: 8.5px;
}

/* === Мобильная адаптация === */
@media (max-width: 768px) {
  .carousel-slide {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    padding: 0;
  }

  .hero-section {
    flex: 0 0 100%;
    min-width: 100%;
    min-height: 255px;
    scroll-snap-align: start;
    border-radius: 0;
    padding: 85px 17px 34px; /* под хедер + отступ снизу */
    box-sizing: border-box;
  }

  .carousel-nav {
    display: none;
  }

  .hero-title {
    font-size: 1.275rem;
  }

  .hero-subtitle {
    font-size: 0.68rem;
  }

  .hero-btn {
    padding: 10.2px 20.4px;
    font-size: 0.765rem;
  }
}

/* ========== GAME SECTIONS ========== */
.game-section {
  margin: 2.55rem 0;
  padding: 1.7rem;
  background: #1A0E0E;
  border: 3.4px solid #2C1B1B;
  border-radius: 12.75px;
  box-shadow: 0 12.75px 34px rgba(0, 0, 0, 0.4);
  position: relative;
}

.game-section::before {
  content: '';
  position: absolute;
  top: 8.5px;
  left: 8.5px;
  right: 8.5px;
  bottom: 8.5px;
  border: 1.7px solid #2b1b1b;
  border-radius: 10.2px;
  pointer-events: none;
  opacity: 0.3;
}

.game-section.hidden {
  display: none;
}

/* ========== GAME SECTION HEADER ========== */
.game-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.7rem;
  padding-bottom: 0.85rem;
  border-bottom: 1.7px solid #2C1B1B;
}

.game-section-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: #e6d9f5;
  margin: 0;
  text-shadow: 1.7px 1.7px 3.4px rgba(0, 0, 0, 0.5);
}

.game-section-controls {
  display: flex;
  gap: 0.425rem;
}

.game-nav-prev,
.game-nav-next {
  background: #FFD700;
  color: #1A0E0E;
  border: 1.7px solid #FFD700;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.275rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3.4px 12.75px rgba(255, 215, 0, 0.4);
}

.game-nav-prev:hover,
.game-nav-next:hover {
  background: #e6c200;
  box-shadow: 0 6.8px 21.25px rgba(255, 215, 0, 0.6);
  transform: translateY(-1.7px);
}

.game-nav-prev:active,
.game-nav-next:active {
  transform: translateY(0);
  box-shadow: 0 1.7px 8.5px rgba(255, 215, 0, 0.4);
}

/* ========== GAMES GRID ========== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 1.275rem;
  padding: 0.85rem 0;
}

@media (max-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(212.5px, 1fr));
    gap: 0.85rem;
  }
}

@media (max-width: 480px) {
  .games-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

/* ===== GAME NAVIGATION ===== */
.game-nav {
  background: #2b1b1b;
  padding-right: 17px; 
  padding-left: 17px;
  margin-bottom: 25.5px;
  border-radius: 12.75px;
  overflow: hidden;
}

.game-nav-container {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.game-nav-container::-webkit-scrollbar {
  display: none;
}

.game-nav-tab {
  background: transparent;
  border: none;
  color: #e6d9f5;
  padding: 13.6px 20.4px;
  cursor: pointer;
  font-size: 11.9px;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
  border-bottom: 2.55px solid transparent;
}

.game-nav-tab:hover {
  color: #FFD700;
  background: #2C1B1B;
}

.game-nav-tab.active {
  color: #FFD700;
  border-bottom-color: #FFD700;
  background: rgba(255, 215, 0, 0.1);
}

.game-card {
  background: #2b1b1b;
  border-radius: 12.75px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 3.4px 10.2px rgba(0, 0, 0, 0.3);
}

.game-card:hover {
  transform: translateY(-4.25px);
  box-shadow: 0 12.75px 34px rgba(0, 0, 0, 0.4);
}

.game-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.game-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-card:hover .game-image {
  transform: scale(1.05);
}

/* ===== GAME ACTIONS OVERLAY ===== */
.game-actions {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 14, 14, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10.2px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover .game-actions {
  opacity: 1;
}

.btn-demo,
.btn-play,
.btn-play-single {
  padding: 8.5px 17px;
  border-radius: 21.25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 11.9px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.425px;
  display: inline-block;
}

.btn-demo {
  background: #2b1b1b;
  color: #e6d9f5;
  border: 1.7px solid #2C1B1B;
}

.btn-demo:hover {
  background: #2C1B1B;
  color: #FFD700;
}

.btn-play,
.btn-play-single {
  background: #FFD700;
  color: #1A0E0E;
  border: 1.7px solid #FFD700;
}

.btn-play:hover,
.btn-play-single:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-1.7px);
}

/* ===== BADGES ===== */
.jackpot-badge {
  position: absolute;
  bottom: 8.5px;
  left: 8.5px;
  background: #FFD700;
  color: #1A0E0E;
  padding: 5.1px 10.2px;
  border-radius: 17px;
  font-size: 10.2px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3.4px;
  box-shadow: 0 1.7px 8.5px rgba(0, 0, 0, 0.3);
}

.jackpot-icon {
  font-size: 11.9px;
}

.exclusive-badge {
  position: absolute;
  top: 8.5px;
  left: 8.5px;
  background: #FFD700;
  color: #1A0E0E;
  padding: 3.4px 6.8px;
  border-radius: 17px;
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.425px;
}

.game-title {
  padding: 13.6px;
  font-size: 13.6px;
  font-weight: 600;
  color: #e6d9f5;
  text-align: center;
  line-height: 1.4;
}

/* ========== BONUS TILES ========== */
.bonus-tiles {
  display: grid;
  gap: 1.275rem;
  margin: 2.55rem 0;
  padding: 0 0.85rem;
  grid-auto-rows: 1fr;
}

@media (max-width: 768px) { 
  .bonus-tiles { 
    grid-template-columns: 1fr; 
    padding: 0 0.425rem; 
  } 
}
@media (min-width: 769px) and (max-width: 1024px) { 
  .bonus-tiles { 
    grid-template-columns: repeat(2, 1fr); 
  } 
}
@media (min-width: 1025px) { 
  .bonus-tiles { 
    grid-template-columns: repeat(3, 1fr); 
  } 
}

.bonus-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #1A0E0E;
  border: 2.55px solid #2C1B1B;
  padding: 1.275rem;
  border-radius: 12.75px;
  color: #e6d9f5;
  box-shadow: 0 8.5px 25.5px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bonus-tile::before {
  content: '';
  position: absolute;
  top: 8.5px;
  left: 8.5px;
  right: 8.5px;
  bottom: 8.5px;
  border: 0.85px solid #2b1b1b;
  border-radius: 10.2px;
  pointer-events: none;
  transition: all 0.3s ease;
  opacity: 0.3;
}

.bonus-tile:hover::before {
  border-color: #FFD700;
  box-shadow: 0 0 21.25px rgba(255, 215, 0, 0.3);
}

.bonus-tile:hover {
  transform: translateY(-8.5px);
  border-color: #FFD700;
  box-shadow: 0 17px 34px rgba(255, 215, 0, 0.2);
}

.bonus-tile .image-wrapper {
  height: 127.5px;
  margin-bottom: 0.85rem;
  overflow: hidden;
  border-radius: 10.2px;
}

.bonus-tile .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bonus-tile:hover .image-wrapper img {
  transform: scale(1.1);
}

.bonus-tile h3 {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.425rem;
  color: #e6d9f5;
  text-shadow: 0.85px 0.85px 2.55px rgba(0, 0, 0, 0.5);
}

.bonus-tile p {
  margin-bottom: 0.85rem;
  flex-grow: 1;
}

.bonus-tile a {
  display: inline-block;
  background: #FFD700;
  color: #1A0E0E;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  padding: 0.425rem 0.85rem;
  border-radius: 21.25px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5.1px 17px rgba(255, 215, 0, 0.4);
  border: 1.7px solid #FFD700;
}

.bonus-tile a:hover {
  background: #e6c200;
  box-shadow: 0 8.5px 25.5px rgba(255, 215, 0, 0.6);
  transform: translateY(-2.55px);
}

/* ========== MOBILE NAVIGATION ========== */
.mobile-nav,
.mobile-menu-panel {
  display: none !important;
}

@media (max-width: 768px) {
  .mobile-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1A0E0E;
    border-top: 2.55px solid #2C1B1B;
    padding: 0.425rem 0;
    justify-content: space-around;
    z-index: 999;
    box-shadow: 0 -6.8px 21.25px rgba(0, 0, 0, 0.4);
  }

  .mobile-menu-panel.open {
    display: flex !important;
  }

  .mobile-nav a {
    color: #e6d9f5;
    font-size: 0.595rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.17rem;
    align-items: center;
    justify-content: center;
    flex: 1;
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
  }

  .mobile-nav a:hover,
  .mobile-nav a.active {
    color: #FFD700;
  }

  .mobile-menu-panel {
    display: none;
    position: fixed;
    bottom: 51px;
    left: 0;
    right: 0;
    background: #1A0E0E;
    padding: 0.85rem;
    border-top: 0.85px solid #2C1B1B;
    z-index: 999;
    flex-direction: column;
    gap: 0.425rem;
  }

  .mobile-menu-panel a {
    display: block;
    color: #e6d9f5;
    padding: 0.6375rem 0.85rem;
    background: #2b1b1b;
    border-radius: 21.25px;
    text-align: center;
  }
}

/* ========== TOP NAVIGATION (MOBILE ONLY) ========== */
.topnav {
  background: #1A0E0E;
  padding: 0.34rem 0.425rem;
  border-bottom: 2.55px solid #2C1B1B;
  box-shadow: 0 3.4px 12.75px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .topnav-visible .more-toggle {
    display: none !important;
  }
}
@media (min-width: 769px) {
  .topnav {
    display: none;
  }
}

.topnav-visible {
  display: flex;
  gap: 0.17rem;
  flex-wrap: nowrap;
  justify-content: space-between;
  overflow-x: auto;
}

.topnav-visible a {
  flex: 1 1 18%;
  min-width: 40.8px;
  background: #2b1b1b;
  border: 1.7px solid #2C1B1B;
  border-radius: 21.25px;
  color: #e6d9f5;
  text-align: center;
  font-size: 0.5525rem;
  padding: 0.34rem 0.17rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-family: 'Open Sans', sans-serif;
  font-weight: 500;
}

.topnav-visible a i {
  font-size: 0.765rem;
  margin-bottom: 0.085rem;
  color: #e6d9f5;
}

.topnav-hidden {
  display: none;
}

.topnav-hidden.open {
  display: flex;
  flex-wrap: wrap;
}

.mobile-logo {
  display: none;
  font-size: 1.275rem;
  font-weight: 600;
  color: #e6d9f5;
  margin-bottom: 0.425rem;
  text-align: center;
}

.mobile-logo .chip {
  color: #FFD700;
}

@media (max-width: 768px) {
  .mobile-logo {
    display: block !important;
    text-align: center;
    margin-bottom: 0.425rem;
  }
  .mobile-logo img {
    max-width: 102px !important;
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
  }
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
}

.logo img {
  height: 30.6px;
  object-fit: contain;
}

/* ========== FOOTER ========== */
.footer {
  background: #1A0E0E;
  color: #e6d9f5;
  margin-top: auto;
  border-top: 3.4px solid #2C1B1B;
  box-shadow: 0 -6.8px 21.25px rgba(0, 0, 0, 0.3);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.4px;
  background: #1A0E0E;
}

.footer-container {
  max-width: 1020px;
  margin: 0 auto;
  padding: 1.7rem 0.85rem;
}

/* Основная сетка футера */
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.55rem;
  margin-bottom: 1.7rem;
}

/* Брендинг */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-logo {
  height: 34px;
  width: auto;
}

.footer-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.275rem;
  font-weight: 700;
  margin: 0;
  color: #e6d9f5;
  text-shadow: 1.7px 1.7px 3.4px rgba(0, 0, 0, 0.5);
}

.footer-description {
  color: #FFD700;
  font-size: 0.765rem;
  line-height: 1.6;
  margin: 0;
}

/* Колонки навигации */
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 0.425rem;
}

.footer-column a {
  color: #FFD700;
  text-decoration: none;
  font-size: 0.765rem;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: #e6d9f5;
}

/* Контактная информация */
.footer-contact p {
  margin: 0.425rem 0;
  color: #FFD700;
  font-size: 0.765rem;
}

.footer-contact a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: #e6d9f5;
}

/* Нижняя часть футера */
.footer-bottom {
  border-top: 0.85px solid #2b1b1b;
  padding-top: 1.275rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-bottom-logo {
  height: 20.4px;
  width: auto;
}

.footer-copyright {
  margin: 0;
  font-size: 0.74375rem;
  color: #2b1b1b;
}

.footer-text {
  margin: 0;
  font-size: 0.74375rem;
  color: #2b1b1b;
}

/* Tablet стили */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 1.7rem;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
    align-items: center;
  }
}

/* Мобильные стили */
@media (max-width: 768px) {
  .footer-container {
    padding: 1.275rem 0.85rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.7rem;
    text-align: center;
  }
  
  .footer-brand {
    grid-column: 1;
    align-items: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 0.85rem;
    text-align: center;
  }
  
  .footer-bottom-left {
    flex-direction: column;
    gap: 0.425rem;
  }
  
  .footer-logo {
    height: 27.2px;
  }
  
  .footer-title {
    font-size: 1.0625rem;
  }
}

/* ========== PROSE ========== */
.prose {
  font-size: 0.85rem;
  line-height: 1.8;
  color: #e6d9f5;
  margin-top: 2.55rem;
  font-family: 'Open Sans', sans-serif;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.53rem;
  font-weight: 600;
  color: #e6d9f5;
  text-shadow: 1.7px 1.7px 3.4px rgba(0, 0, 0, 0.5);
}

#TableOfContents {
  border: 2.55px solid #2C1B1B;
  padding: 1.275rem;
  border-radius: 12.75px;
  font-size: 0.85rem;
  margin: 1.7rem 0;
  color: #e6d9f5;
  box-shadow: 0 8.5px 25.5px rgba(0, 0, 0, 0.3);
}

#TableOfContents ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#TableOfContents li {
  margin-bottom: 0.85rem;
}

#TableOfContents a {
  color: #e6d9f5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

#TableOfContents a:hover {
  color: #FFD700;
}

/* ========== TABLES ========== */
.table-container {
  background: #2b1b1b;
  border: 2.55px solid #2C1B1B;
  border-radius: 12.75px;
  margin: 1.7rem 0;
  overflow: hidden;
  box-shadow: 0 8.5px 25.5px rgba(0, 0, 0, 0.3);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8075rem;
  color: #e6d9f5;
  background-color: transparent;
  font-family: 'Open Sans', sans-serif;
}

thead {
  background: #2b1b1b;
}

th {
  padding: 0.85rem 0.6375rem;
  text-align: left;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  color: #e6d9f5;
  border-bottom: 1.7px solid #FFD700;
}

td {
  padding: 0.74375rem 0.6375rem;
  border-bottom: 0.85px solid #2C1B1B;
}

tbody tr:hover {
  background: #2b1b1b;
}

tbody tr:last-child td {
  border-bottom: none;
}

/* Ссылки в таблице */
table a {
  color: #e6d9f5;
  text-decoration: none;
  font-weight: 500;
}

table a:hover {
  color: #FFD700;
  text-decoration: underline;
}

/* ========== FAQ ========== */
.faq-block {
  background: #1A0E0E;
  padding: 1.7rem;
  margin: 2.55rem 0;
  border-radius: 12.75px;
  border: 3.4px solid #FFD700;
  box-shadow: 0 12.75px 34px rgba(0, 0, 0, 0.4);
}

.faq-heading {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #e6d9f5;
  margin-bottom: 1.7rem;
  text-align: center;
  text-shadow: 2.55px 2.55px 5.1px rgba(0, 0, 0, 0.5);
}

.faq-item {
  background: #2b1b1b;
  border: 2.55px solid #2C1B1B;
  border-radius: 12.75px;
  padding: 1.275rem;
  margin-bottom: 1.275rem;
  color: #e6d9f5;
  font-size: 0.95625rem;
  transition: all 0.3s ease;
}

.faq-item h3 {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.19rem;
  color: #e6d9f5;
  margin-bottom: 0.85rem;
}

.faq-item div {
  line-height: 1.7;
}

.faq-item:hover {
  background: #2b1b1b;
  border-color: #FFD700;
}

@media (max-width: 768px) {
  .prose table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    table-layout: fixed;
    border-collapse: collapse;
  }

  .prose thead,
  .prose tbody {
    display: table;
    width: 671.5px;
    table-layout: fixed;
  }

  .prose tr {
    display: table;
    width: 100%;
    table-layout: fixed;
  }

  .prose th,
  .prose td {
    white-space: normal;
    font-size: 0.6375rem;
    padding: 0.34rem 0.425rem;
    text-align: left;
  }

  .prose thead th {
    background-color: #2C1B1B;
    color: #e6d9f5;
  }

  .prose tbody tr {
    border-bottom: 0.85px solid #444;
  }
}

.scroll-top {
  position: fixed;
  bottom: 25.5px;
  right: 17px;
  z-index: 1000;
  padding: 8.5px 11.9px;
  font-size: 15.3px;
  background-color: #FFD700;
  color: #1A0E0E;
  border: 2.55px solid #FFD700;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  background-color: #e6c200;
}