/* ========== ИМПОРТ ШРИФТОВ ========== */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One:wght@400&family=Fredoka:wght@300;400;500;600;700&display=swap');

/* ========== BASE ========== */
body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Fredoka', system-ui, sans-serif;
  background: linear-gradient(135deg, #3a1c1b 0%, #4c2321 25%, #3a1c1b 50%, #2d1614 100%);
  background-attachment: fixed;
  color: #f7e6d3;
  position: relative;
}

/* Добавляем декоративный фон с магическими элементами */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(247, 197, 82, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(126, 43, 43, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(247, 197, 82, 0.05) 0%, transparent 30%);
  pointer-events: none;
  z-index: -1;
}

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

img {
  max-width: 100%;
  display: block;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ========== SIDEBAR ========== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 180px;
  height: 100vh;
  background: linear-gradient(180deg, #321715 0%, #2d1614 50%, #281412 100%);
  border-right: 3px solid #7e2b2b;
  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;
}

/* Декоративная рамка для сайдбара */
.sidebar::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 2px solid #f7c552;
  border-radius: 20px;
  opacity: 0.3;
  pointer-events: none;
}

.logo {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  font-weight: normal;
  color: #f7c552;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
  background: linear-gradient(45deg, #f7c552 0%, #ff8c42 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo .chip {
  color: #ff6b42;
  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.5rem 0.75rem;
  border-radius: 15px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: linear-gradient(135deg, rgba(126, 43, 43, 0.2) 0%, rgba(247, 197, 82, 0.1) 100%);
  border: 1px solid rgba(247, 197, 82, 0.2);
  position: relative;
  overflow: hidden;
}

.menu a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(247, 197, 82, 0.2), transparent);
  transition: left 0.5s;
}

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

.menu a:hover {
  background: linear-gradient(135deg, #7e2b2b 0%, #a0352f 100%);
  border-color: #f7c552;
  transform: translateX(5px);
  box-shadow: 0 8px 25px rgba(247, 197, 82, 0.3);
}

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

.support-btn {
  display: block;
  width: auto;
  min-width: 100px;
  text-align: center;
  background: linear-gradient(135deg, #4ade80 0%, #f7c552 100%);
  color: #ffffff; /* белый текст */
  padding: 0.4rem 0.75rem; /* меньше высота и ширина */
  border-radius: 20px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 0.85rem; /* меньше шрифт */
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(74, 222, 128, 0.3);
  border: 2px solid #f7c552;
  text-shadow: none;
  position: relative;
  overflow: hidden;
}


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

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

.support-btn:hover {
  background: linear-gradient(135deg, #22c55e 0%, #eab308 100%);
  box-shadow: 0 12px 35px rgba(74, 222, 128, 0.6);
  transform: translateY(-3px);
}

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

/* ========== BURGER ========== */
.burger {
  display: none;
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1100;
  background: linear-gradient(135deg, #504c42 0%, #c4bebb 100%);
  color: #2d1614;
  border: none;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

/* ========== HEADER / TOPBAR ========== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #321715 0%, #2d1614 100%);
  border-bottom: 3px solid #7e2b2b;
  padding: 0.75rem 1rem;
  height: 60px;
  position: relative;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Декоративные элементы для топбара */
.topbar::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f7c552 0%, #ff8c42 50%, #f7c552 100%);
}

/* ====== BURGER (mobile only) ====== */
.subnav-toggle {
  font-size: 0.85rem !important;
  line-height: 1 !important;
  padding: 0.1rem !important;
  width: 1.5rem !important;
  height: 1.5rem !important;
  display: block;
  background: none;
  border: none;
  color: #f7c552;
  cursor: pointer;
}



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

.subnav a {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  color: #f7e6d3;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(126, 43, 43, 0.3) 0%, rgba(247, 197, 82, 0.1) 100%);
  border: 2px solid rgba(247, 197, 82, 0.3);
  position: relative;
  overflow: hidden;
}

.subnav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

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

.subnav a:hover,
.subnav a:focus {
  background: linear-gradient(135deg, #7e2b2b 0%, #a0352f 100%);
  border-color: #f7c552;
  color: #f7c552;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(247, 197, 82, 0.4);
}

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

.topbar-right .btn {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 20px;
  padding: 0.5rem 1rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Фон и текст для Register */
.topbar-right .btn-register {
  background: linear-gradient(135deg, #4ade80 0%, #f7c552 100%);
  color: #2d1614;
  border: 2px solid #f7c552;
  box-shadow: 0 6px 20px rgba(74, 222, 128, 0.4);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.topbar-right .btn-register:hover {
  background: linear-gradient(135deg, #22c55e 0%, #eab308 100%);
  box-shadow: 0 10px 30px rgba(74, 222, 128, 0.6);
  transform: translateY(-3px);
}

/* Обводка для Log In */
.topbar-right .btn-login {
  background: linear-gradient(135deg, rgba(247, 197, 82, 0.1) 0%, rgba(126, 43, 43, 0.2) 100%);
  color: #f7c552;
  border: 2px solid #f7c552;
}

.topbar-right .btn-login:hover {
  background: linear-gradient(135deg, #7e2b2b 0%, #a0352f 100%);
  box-shadow: 0 6px 20px rgba(247, 197, 82, 0.4);
  transform: translateY(-2px);
}

/* ====== МОБИЛЬНЫЕ СТИЛИ ====== */
@media (max-width: 768px) {
  .topbar {
    justify-content: space-between;
    padding: 0.75rem 1rem;
  }
  
  .subnav-toggle {
    display: block;
    order: -1;
    background: linear-gradient(135deg, #f7c552 0%, #ff8c42 100%);
    border: none;
    color: #2d1614;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(247, 197, 82, 0.4);
  }
  
  .subnav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #321715 0%, #2d1614 100%);
    flex-direction: column;
    padding: 1rem;
    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.75rem;
    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: 2rem 1rem;
  margin-top: 20px;
  margin-left: 240px;
  width: calc(100% - 240px);
  box-sizing: border-box;
}


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

/* ========== HERO ========== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #7e2b2b 0%, #a0352f 25%, #7e2b2b 75%, #632823 100%);
  border-radius: 30px;
  border: 4px solid #f7c552;
  min-height: 50vh; /* Половина экрана по высоте */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  margin-bottom: 3rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  width: 100%;
  max-width: 1400px; /* Шире на больших экранах */
  margin-left: auto;
  margin-right: auto;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Декоративная рамка для героя */
.hero-section::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 2px solid rgba(247, 197, 82, 0.5);
  border-radius: 20px;
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 2rem;
  width: 100%;
}
.hero-title {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 0.5em;
  color: #f7c552;
  text-shadow: 
    0 0 30px rgba(0, 0, 0, 1),
    6px 6px 12px rgba(0, 0, 0, 1),
    12px 12px 24px rgba(0, 0, 0, 0.9),
    0 0 60px rgba(126, 43, 43, 0.7);
  line-height: 1.2;
}
.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.8rem);
  margin-bottom: 1.5em;
  color: #f7e6d3;
  text-shadow: 
    0 0 40px rgba(0, 0, 0, 1),
    6px 6px 12px rgba(0, 0, 0, 1),
    12px 12px 24px rgba(0, 0, 0, 0.95),
    0 0 60px rgba(126, 43, 43, 0.8);
  font-weight: 600;
  line-height: 1.4;
}

.hero-btn {
  display: inline-block;
  padding: 0.75em 2em;
  background: linear-gradient(135deg, #4ade80 0%, #f7c552 100%);
  color: #2d1614;
  border-radius: 30px;
  text-decoration: none;
  font-family: 'Fredoka One', cursive;
  font-weight: normal;
  box-shadow: 0 10px 30px rgba(74, 222, 128, 0.4);
  transition: all 0.3s ease;
  border: 3px solid #f7c552;
  text-shadow: 1px 1px 2px rgba(253, 253, 253, 0.3);
  position: relative;
  overflow: hidden;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

.hero-btn:hover {
  background: linear-gradient(135deg, #22c55e 0%, #eab308 100%);
  box-shadow: 0 15px 40px rgba(74, 222, 128, 0.6);
  transform: translateY(-5px);
}

/* Большие экраны - делаем еще шире и выше */
@media (min-width: 1200px) {
  .hero-section {
    max-width: 2200px;
    min-height: 400px;
    border-radius: 40px;
  }
  
  .hero-content {
    padding: 3rem;
  }
}

/* Средние экраны */
@media (min-width: 768px) and (max-width: 1199px) {
  .hero-section {
    max-width: 1200px;
    min-height: 55vh;
  }
}

/* Планшеты */
@media (max-width: 767px) {
  .hero-section {
    border-radius: 25px;
    min-height: 45vh;
    margin-bottom: 2rem;
    border: 3px solid #f7c552;
  }
  
  .hero-content {
    padding: 1.5rem;
  }
  
  .hero-section::before {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 15px;
  }
}

/* Мобильные телефоны */
@media (max-width: 480px) {
  .hero-section {
    border-radius: 20px;
    min-height: 40vh;
    margin-bottom: 1.5rem;
    border: 2px solid #f7c552;
background-size: contain;
background-repeat: no-repeat;
background-position: center;  
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .hero-btn {
    padding: 0.6em 1.5em;
  }
}
/* ========== GRID / GAME CARDS ========== */
.grid {
  display: grid;
  gap: 1.25rem;
  padding: 0 2rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.slot-card {
  position: relative;
  overflow: hidden;
  border-radius: 25px;
  background: linear-gradient(135deg, #321715 0%, #2d1614 100%);
  border: 3px solid #7e2b2b;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Декоративная рамка для карточек */
.slot-card::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(247, 197, 82, 0.3);
  border-radius: 18px;
  pointer-events: none;
  transition: all 0.3s ease;
}

.slot-card:hover::before {
  border-color: #f7c552;
  box-shadow: 0 0 20px rgba(247, 197, 82, 0.3);
}

.slot-card:hover {
  transform: translateY(-3px);
  border-color: #f7c552;
  box-shadow: 0 20px 40px rgba(247, 197, 82, 0.2);
}

.slot-image-wrapper {
  position: relative;
  width: 100%;
}

.slot-card img {
  border-radius: 0.5rem;
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.slot-card:hover img {
  transform: scale(1.05);
}

.slot-actions {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(126, 43, 43, 0.8) 0%, rgba(45, 22, 20, 0.8) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.2s ease-in-out;
  gap: 0.5rem;
}

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

.slot-actions a {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #4ade80 0%, #f7c552 100%);
  color: #2d1614;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(74, 222, 128, 0.4);
  border: 2px solid #f7c552;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  font-family: 'Fredoka', sans-serif;
}

.slot-actions a:hover {
  background: linear-gradient(135deg, #22c55e 0%, #eab308 100%);
  box-shadow: 0 10px 30px rgba(74, 222, 128, 0.6);
  transform: translateY(-2px);
}

/* Слот-карусель (только на мобилке) */
@media (max-width: 768px) {
  .slot-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.75rem;
    padding: 1rem;
  }

  .slot-carousel::-webkit-scrollbar {
    display: none;
  }

  .slot-carousel .slot-card {
    flex: 0 0 auto;
    width: 75%;
    max-width: 300px;
    scroll-snap-align: start;
  }

  .grid {
    display: none !important;
    visibility: hidden !important;
  }
}

@media (min-width: 769px) {
  .slot-carousel {
    display: none !important;
    visibility: hidden !important;
  }
}

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

@media (max-width: 768px) { 
  .bonus-tiles { 
    grid-template-columns: 1fr; 
    padding: 0 0.5rem; 
  } 
}
@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: linear-gradient(135deg, #321715 0%, #2d1614 100%);
  border: 3px solid #7e2b2b;
  padding: 1.5rem;
  border-radius: 25px;
  color: #f7e6d3;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bonus-tile::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(247, 197, 82, 0.3);
  border-radius: 18px;
  pointer-events: none;
  transition: all 0.3s ease;
}

.bonus-tile:hover::before {
  border-color: #f7c552;
  box-shadow: 0 0 25px rgba(247, 197, 82, 0.3);
}

.bonus-tile:hover {
  transform: translateY(-10px);
  border-color: #f7c552;
  box-shadow: 0 20px 40px rgba(247, 197, 82, 0.2);
}

.bonus-tile .image-wrapper {
  height: 150px;
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: 0.5rem;
}

.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: 'Fredoka One', cursive;
  font-size: 1.25rem;
  font-weight: normal;
  margin-bottom: 0.5rem;
  color: #f7c552;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.bonus-tile a {
  display: inline-block;
  background: linear-gradient(135deg, #4ade80 0%, #f7c552 100%);
  color: #2d1614;
  font-family: 'Fredoka', sans-serif;
  font-weight: normal;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(74, 222, 128, 0.4);
  border: 2px solid #f7c552;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.bonus-tile a:hover {
  background: linear-gradient(135deg, #22c55e 0%, #eab308 100%);
  box-shadow: 0 10px 30px rgba(74, 222, 128, 0.6);
  transform: translateY(-3px);
}

/* ========== 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: linear-gradient(135deg, #321715 0%, #2d1614 100%);
    border-top: 3px solid #7e2b2b;
    padding: 0.5rem 0;
    justify-content: space-around;
    z-index: 999;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.4);
  }

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

  .mobile-nav a {
    color: #f7e6d3;
    font-size: 0.7rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-items: center;
    justify-content: center;
    flex: 1;
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
  }

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

  .mobile-menu-panel {
    display: none;
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #321715 0%, #914740 100%);
    padding: 1rem;
    border-top: 1px solid #1e2a3a;
    z-index: 999;
    flex-direction: column;
    gap: 0.5rem;
  }

  .mobile-menu-panel a {
    display: block;
    color: white;
    padding: 0.75rem 1rem;
    background: #2d1614;
    border-radius: 0.5rem;
    text-align: center;
  }
}

/* ========== TOP NAVIGATION (MOBILE ONLY) ========== */
.topnav {
  background: linear-gradient(135deg, #321715 0%, #2d1614 100%);
  padding: 0.4rem 0.5rem;
  border-bottom: 3px solid #7e2b2b;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Показываем только на мобилке */
@media (min-width: 769px) {
  .topnav {
    display: none;
  }
}

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

.topnav-visible a {
  flex: 1 1 18%;
  min-width: 48px;
  background: linear-gradient(135deg, rgba(126, 43, 43, 0.3) 0%, rgba(247, 197, 82, 0.1) 100%);
  border: 2px solid rgba(247, 197, 82, 0.3);
  border-radius: 0.5rem;
  color: #f7e6d3;
  text-align: center;
  font-size: 0.65rem;
  padding: 0.4rem 0.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
}

.topnav-visible a i {
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
  color: #f7c552;
}

.topnav-hidden {
  display: none;
}

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

.mobile-logo {
  display: none;
  font-size: 1.5rem;
  font-weight: normal;
  color: #fff;
  margin-bottom: 0.5rem;
  text-align: center;
}

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

/* ==== Показываем логотип и ограничиваем его размер на мобилке ==== */
@media (max-width: 768px) {
  .mobile-logo {
    display: block !important;
    text-align: center;
    margin-bottom: 0.5rem;
  }
  .mobile-logo img {
    max-width: 120px !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: 36px;
  object-fit: contain;
}

/* ========== FOOTER ========== */
.footer {
  background: linear-gradient(135deg, #321715 0%, #2d1614 100%);
  color: #f7e6d3;
  margin-top: auto;
  border-top: 4px solid #7e2b2b;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.3);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f7c552 0%, #ff8c42 50%, #f7c552 100%);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

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

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

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

.footer-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: #f7c552;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

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

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

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

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

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

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

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

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

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

.footer-copyright {
  margin: 0;
  font-size: 0.875rem;
  color: #71717a;
}

.footer-text {
  margin: 0;
  font-size: 0.875rem;
  color: #71717a;
}

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

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

/* ========== PROSE ========== */
.prose {
  font-size: 1.5rem;
  line-height: 1.8;
  color: #f7e6d3;
  margin-top: 3rem;
  font-family: 'Fredoka', sans-serif;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.8rem;
  font-weight: normal;
  color: #f7c552;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#TableOfContents {
  background: linear-gradient(135deg, #321715 0%, #2d1614 100%);
  border: 3px solid #7e2b2b;
  padding: 1.5rem;
  border-radius: 0.75rem;
  font-size: 1.6rem;
  margin: 2rem 0;
  color: #f7e6d3;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

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

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

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

/* ========== TABLES ========== */
.table-container {
  background: linear-gradient(135deg, #321715 0%, #2d1614 100%);
  border: 3px solid #7e2b2b;
  border-radius: 0.75rem;
  margin: 2rem 0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  color: #f7e6d3;
  background-color: transparent;
  font-family: 'Fredoka', sans-serif;
}

thead {
  background: linear-gradient(135deg, #7e2b2b 0%, #a0352f 100%);
}

th {
  padding: 1rem 0.75rem;
  text-align: left;
  font-family: 'Fredoka One', cursive;
  font-weight: 600;
  color: #f7c552;
  border-bottom: 2px solid #f7c552;
}

td {
  padding: 0.875rem 0.75rem;
  border-bottom: 1px solid #374151;
}

tbody tr:hover {
  background: linear-gradient(135deg, rgba(126, 43, 43, 0.2) 0%, rgba(247, 197, 82, 0.05) 100%);
}

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

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

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

/* ========== FAQ ========== */
.faq-block {
  background: linear-gradient(135deg, #3a1c1b 0%, #4c2321 100%);
  padding: 2rem;
  margin: 3rem 0;
  border-radius: 30px;
  border: 4px solid #f7c552;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.faq-heading {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  font-weight: 700;
  color: #f7c552;
  margin-bottom: 2rem;
  text-align: center;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.faq-item {
  background: linear-gradient(135deg, #321715 0%, #2d1614 100%);
  border: 3px solid #7e2b2b;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  color: #f7e6d3;
  font-size: 1.125rem;
  transition: all 0.3s ease;
}

.faq-item h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.4rem;
  color: #f7c552;
  margin-bottom: 1rem;
}

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

.faq-item:hover {
  background: linear-gradient(135deg, rgba(126, 43, 43, 0.2) 0%, rgba(247, 197, 82, 0.05) 100%);
}
@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: 790px;
    table-layout: fixed;
  }

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

  .prose th,
  .prose td {
    white-space: normal;
    font-size: 0.75rem;
    padding: 0.4rem 0.5rem;
    text-align: left;
  }

  /* Для красоты (опционально) */
  .prose thead th {
    background-color: #7e2b2b;
    color: #f7c552;
  }

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