/* =====================================================
   MELLSTROY - Main Styles
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Manrope:wght@700;800;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* overflow-x на wrapper вместо html/body для работы sticky */

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-dark);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ограничиваем ширину контента, чтобы длинные статьи читались нормально */
.container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Глобальный box-sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

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

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* ==================== HEADER ==================== */

.header {
  background: var(--bg-header);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  position: fixed;
  top: 16px;
  left: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.header-logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: 1px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: opacity var(--transition);
  position: relative;
}

.header-nav a:hover {
  opacity: 0.8;
}

.header-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text-light);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-social {
  display: flex;
  gap: 8px;
}

.header-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 16px;
  transition: all var(--transition);
}

.header-social a:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.btn-primary {
  background: var(--accent-green);
  color: #000;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(62, 207, 76, 0.4);
}

.btn-random .wheel-icon {
  animation: spin 8s linear infinite;
}

.btn-random:hover .wheel-icon {
  animation-duration: 0.5s;
}

/* оставил класс на будущее (если захотите быстрый спин), но сейчас не используем */
.btn-random.is-spinning .wheel-icon {
  animation-duration: 0.2s;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.header-kick {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #53fc18;
  border-radius: 50%;
  color: #000;
  transition: all var(--transition);
}

.header-kick:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(83, 252, 24, 0.5);
}

/* ==================== MAIN CONTENT ==================== */

.main-content {
  padding-top: 100px;
  min-height: 100vh;
  position: relative;
  overflow-x: clip;
}

/* Layout с сайдбаром */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
}

/* Сайдбар */
.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  align-self: start;
}

.kick-widget {
  background: linear-gradient(180deg, #0f0f1a 0%, #12121f 100%);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.kick-widget-header {
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

.kick-widget-logo {
  width: 24px;
  height: 24px;
  background: #53fc18;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kick-widget-logo svg {
  width: 16px;
  height: 16px;
  fill: #000;
}

.kick-widget-title {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex: 1;
}

.kick-widget-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}

.kick-widget-status.online {
  color: #53fc18;
}

.kick-widget-status.offline {
  color: rgba(255, 255, 255, 0.5);
}

.kick-widget-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.kick-widget-status.online .dot {
  background: #53fc18;
  box-shadow: 0 0 8px rgba(83, 252, 24, 0.6);
  animation: pulse-live 1.5s ease-in-out infinite;
}

.kick-widget-status.offline .dot {
  background: rgba(255, 255, 255, 0.4);
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.kick-widget-body {
  padding: 16px;
}

.kick-widget-preview {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
}

.kick-widget-preview iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  top: 0;
  left: 0;
}

.kick-widget-preview .offline-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  font-weight: 600;
}

.kick-widget-channel {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.kick-widget-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #53fc18 0%, #3ecf4c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #000;
}

.kick-widget-info h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 2px;
}

.kick-widget-info p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  margin: 0;
}

.kick-widget-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background: #53fc18;
  color: #000;
  font-weight: 700;
  font-size: 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.kick-widget-btn:hover {
  background: #4ae614;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(83, 252, 24, 0.3);
}

/* ==================== SIDEBAR MINI RATING ==================== */

.sidebar-rating {
  margin-top: 20px;
  background: linear-gradient(180deg, #0f0f1a 0%, #12121f 100%);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.sidebar-rating-header {
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-rating-header .icon {
  font-size: 18px;
}

.sidebar-rating-header h4 {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  margin: 0;
}

.sidebar-rating-list {
  padding: 8px 0;
}

.sidebar-rating-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sidebar-rating-item:last-child {
  border-bottom: none;
}

.sidebar-rating-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-rating-item .rank {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-green);
  min-width: 24px;
}

.sidebar-rating-item .logo {
  width: 40px;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  background: #1a1a2e;
}

.sidebar-rating-item .logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-rating-item .name {
  flex: 1;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}

.sidebar-rating-item .bonus {
  font-size: 11px;
  color: var(--accent-green);
  font-weight: 600;
  background: rgba(62, 207, 76, 0.15);
  padding: 4px 8px;
  border-radius: 6px;
}

.kick-widget-btn svg {
  width: 18px;
  height: 18px;
}

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

/* Декоративные фоновые элементы */
.main-content::before {
  content: "";
  position: absolute;
  top: 100px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(62, 207, 76, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.main-content::after {
  content: "";
  position: absolute;
  top: 600px;
  left: -200px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ==================== ARTICLE / TYPOGRAPHY ==================== */

.article {
  padding: 20px 0 20px;
}

.article-hero {
  padding: 16px 0 20px;
  text-align: left;
}

.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -1px;
  margin: 0 0 24px;
  background: linear-gradient(135deg, #0f0f1a 0%, #3a3a5a 50%, #0f0f1a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article-hero .subtitle {
  color: var(--text-muted);
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.7;
  max-width: 800px;
  position: relative;
  padding-left: 20px;
  border-left: 3px solid var(--accent-green);
}

.article-content {
  max-width: 100%;
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.3;
  font-weight: 800;
  margin: 48px 0 20px;
  letter-spacing: -0.3px;
  position: relative;
  padding-bottom: 14px;
}

.article-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-green) 0%, var(--accent-orange) 100%);
  border-radius: 2px;
}

.article-content h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
  font-weight: 800;
  margin: 36px 0 16px;
  letter-spacing: -0.2px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-content h3::before {
  content: "";
  width: 4px;
  height: 22px;
  background: var(--accent-green);
  border-radius: 2px;
  flex-shrink: 0;
}

.article-content p {
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 18px;
  font-weight: 400;
  color: rgba(26, 26, 46, 0.88);
}

.article-content p strong {
  font-weight: 700;
  color: var(--text-dark);
  background: linear-gradient(180deg, transparent 60%, rgba(62, 207, 76, 0.2) 60%);
}

/* Article Illustrations */
.article-illustration {
  margin: 40px 0;
  text-align: center;
}

.article-illustration img {
  max-width: 100%;
  height: auto;
  max-height: 280px;
  border-radius: 16px;
  background: linear-gradient(180deg, #0f0f1a 0%, #12121f 100%);
  padding: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-illustration img:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(62, 207, 76, 0.15);
}

@media (max-width: 768px) {
  .article-illustration {
    margin: 24px 0;
  }
  
  .article-illustration img {
    max-height: 200px;
    padding: 16px;
    border-radius: 12px;
  }
}

.article-content a {
  color: var(--accent-green);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.2s ease;
}

.article-content a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--accent-green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.article-content a:hover {
  color: var(--accent-orange);
}

.article-content a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
  background: var(--accent-orange);
}

.article-content ul,
.article-content ol {
  padding-left: 0;
  margin: 0 0 28px;
  list-style: none;
}

.article-content li {
  margin: 0 0 12px;
  line-height: 1.7;
  font-size: 16px;
  padding-left: 28px;
  position: relative;
}

.article-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
}

.article-content ol {
  counter-reset: list-counter;
}

.article-content ol li {
  counter-increment: list-counter;
}

.article-content ol li::before {
  content: counter(list-counter);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-green) 0%, #2ba838 100%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================== CHIPS (премиум стиль) ==================== */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 28px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  cursor: default;
}

.chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border-color: rgba(62, 207, 76, 0.3);
}

.chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(62, 207, 76, 0.5);
}

/* Убрал анимацию, чтобы не отвлекала */

/* подсветка чипов была для режима "показать выбранное"; сейчас редирект без вывода выбора */
.chip.active {
  background: linear-gradient(135deg, rgba(62, 207, 76, 0.15) 0%, rgba(62, 207, 76, 0.08) 100%);
  border-color: rgba(62, 207, 76, 0.4);
}

.chip.active .dot {
  box-shadow: 0 0 0 6px rgba(62, 207, 76, 0.2), 0 0 20px rgba(62, 207, 76, 0.6);
}

/* ==================== NOTE BOX (премиум стиль) ==================== */

.note {
  border-radius: 16px;
  padding: 18px 20px 18px 56px;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin: 24px 0 28px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.note::before {
  content: "⚠";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.4));
}

.note strong {
  font-weight: 800;
  color: var(--accent-orange);
}

/* ==================== TOC (Сворачиваемое содержание) ==================== */

.toc-collapsible {
  border-radius: 12px;
  background: linear-gradient(180deg, #0f0f1a 0%, #12121f 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin: 24px 0 32px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.toc-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  transition: background 0.2s ease;
}

.toc-toggle::-webkit-details-marker {
  display: none;
}

.toc-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.toc-toggle-icon {
  font-size: 16px;
}

.toc-arrow {
  margin-left: auto;
  transition: transform 0.3s ease;
}

.toc-collapsible[open] .toc-arrow {
  transform: rotate(180deg);
}

.toc-content {
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.toc-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-content li {
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.toc-content li:last-child {
  border-bottom: none;
}

.toc-content a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.toc-content a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-green);
  flex-shrink: 0;
}

.toc-content a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding-left: 24px;
}

.toc-content li:nth-child(even) a {
  background: rgba(255, 255, 255, 0.02);
}

/* ==================== CASINO RATING ==================== */

.casino-rating {
  margin-bottom: 48px;
}

.casino-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.casino-card {
  display: grid;
  grid-template-columns: auto 140px 1fr auto;
  gap: 16px;
  align-items: center;
  background: linear-gradient(180deg, #0f0f1a 0%, #12121f 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 20px;
  transition: all 0.3s ease;
}

.casino-card:hover {
  border-color: var(--accent-green);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.casino-rank {
  font-size: 20px;
  font-weight: 900;
  color: var(--accent-green);
  min-width: 40px;
  text-align: center;
}

.casino-logo {
  width: 120px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a2e;
}

.casino-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.casino-info {
  color: #fff;
}

.casino-info h3 {
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 8px;
  display: block;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.casino-info h3::before {
  display: none;
}

.casino-bonus {
  display: inline-block;
  background: rgba(62, 207, 76, 0.2);
  border: 1px dashed var(--accent-green);
  color: var(--accent-green);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.casino-info p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.5;
}

.casino-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-casino-play {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--accent-green) 0%, #2ba838 100%);
  color: #fff !important;
  font-weight: 800;
  font-size: 14px;
  border-radius: 10px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(62, 207, 76, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.btn-casino-play:hover {
  background: linear-gradient(135deg, #35b842 0%, var(--accent-green) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(62, 207, 76, 0.4);
}

.btn-casino-review {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-casino-review:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .main-grid {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .article-content {
    max-width: 100%;
    padding: 0 16px;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .casino-rating {
    margin: 0 0 32px;
    width: 100%;
  }

  .casino-rating h2 {
    padding: 0;
    margin-bottom: 20px;
  }

  .casino-rating > p {
    padding: 0;
  }

  .casino-list {
    gap: 16px;
  }

  /* Полноразмерные вертикальные карточки на весь экран */
  .casino-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
    border-radius: 20px;
    position: relative;
    box-sizing: border-box;
  }

  .casino-rank {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 14px;
    min-width: auto;
    background: linear-gradient(135deg, var(--accent-green) 0%, #2ba838 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 10px;
    font-weight: 800;
  }

  .casino-logo {
    width: 110px;
    height: 75px;
    margin-bottom: 16px;
    border-radius: 14px;
  }

  .casino-info {
    width: 100%;
    text-align: center;
  }

  .casino-info h3 {
    font-size: 24px !important;
    margin-bottom: 14px;
    color: #fff;
  }

  .casino-bonus {
    font-size: 14px;
    padding: 12px 20px;
    margin-bottom: 10px;
    max-width: 100%;
    white-space: normal;
    display: block;
    border-radius: 12px;
    line-height: 1.4;
  }

  .casino-info p {
    display: block;
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 20px;
    line-height: 1.5;
  }

  .casino-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 8px;
  }

  .btn-casino-play {
    padding: 16px 28px;
    font-size: 16px;
    border-radius: 14px;
    width: 100%;
  }

  .btn-casino-review {
    display: flex;
    padding: 14px 24px;
    font-size: 15px;
    border-radius: 14px;
    width: 100%;
    justify-content: center;
  }
}

.toc a:hover::before {
  box-shadow: 0 0 0 3px rgba(62, 207, 76, 0.2);
  transform: scale(1.15);
}

.toc li:nth-child(even) a {
  background: rgba(255, 255, 255, 0.02);
}

/* ==================== TABLES (в стиле сайта) ==================== */

.table-wrap {
  margin: 24px 0 32px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #0f0f1a 0%, #12121f 100%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.site-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  line-height: 1.6;
}

.site-table thead th {
  text-align: left;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  font-size: 12px;
}

.site-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.site-table tbody tr:nth-child(2n) td {
  background: rgba(255, 255, 255, 0.03);
}

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

.site-table .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(62, 207, 76, 0.14);
  border: 1px solid rgba(62, 207, 76, 0.24);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}

.muted {
  color: rgba(255, 255, 255, 0.72);
}

.divider {
  height: 1px;
  background: rgba(15, 15, 26, 0.10);
  margin: 18px 0;
}

/* ==================== FOOTER ==================== */

.footer {
  background: var(--bg-header);
  padding: 40px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin-top: 60px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-light);
}

.footer-nav {
  display: flex;
  gap: 32px;
}

.footer-nav a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--text-light);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 18px;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--accent-green);
  color: #000;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.footer-copyright,
.footer-copy {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ==================== MOBILE ==================== */

/* Бургер меню */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 20px;
  cursor: pointer;
  order: 3;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

@media (max-width: 900px) {
  .header {
    top: 12px;
    left: 12px;
    right: 12px;
    padding: 10px 18px;
  }
  
  .header-nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    order: 3;
  }
  
  .header-social {
    display: none;
  }
  
  .header-logo {
    order: 1;
  }
  
  .header-right {
    order: 2;
    margin-left: auto;
  }
  
  .header-logo-text {
    font-size: 18px;
  }
  
  .btn-primary {
    padding: 10px 14px;
    font-size: 11px;
  }
  
  .btn-random span {
    display: none;
  }
  
  .header-kick {
    width: 36px;
    height: 36px;
  }
  
  .header-kick svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  
  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer {
    padding: 30px 20px;
    border-radius: 24px 24px 0 0;
  }
}

@media (max-width: 480px) {
  .header {
    top: 8px;
    left: 8px;
    right: 8px;
    padding: 8px 14px;
  }
  
  .header-logo-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  
  .header-logo-text {
    font-size: 16px;
  }
  
  .main-content {
    padding-top: 80px;
  }
  
  .main-content h1 {
    font-size: 28px !important;
    line-height: 1.2 !important;
  }

  .article {
    padding-top: 16px;
  }

  .article-hero {
    padding: 0 16px;
  }

  .article-content {
    max-width: 100%;
    padding: 0 16px;
  }
  
  .subtitle {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  .chips {
    gap: 8px;
    flex-wrap: wrap;
  }

  .chip {
    font-size: 12px;
    padding: 6px 12px;
  }

  .note {
    padding: 16px 16px 16px 16px;
    margin: 16px 0;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .note::before {
    position: static;
    transform: none;
    display: block;
    font-size: 20px;
    margin-bottom: 4px;
  }

  .toc-collapsible {
    margin: 16px 0;
  }

  .toc-toggle {
    font-size: 12px;
    padding: 12px 16px;
  }

  .toc-content a {
    font-size: 12px;
    padding: 10px 16px;
  }

  .casino-rating {
    margin: 0 0 24px;
    width: 100%;
  }

  .casino-rating h2 {
    padding: 0;
    font-size: 20px !important;
    margin-bottom: 16px;
  }

  .casino-rating > p {
    padding: 0;
    font-size: 14px !important;
  }

  .casino-list {
    gap: 14px;
  }

  /* 480px — такие же полноразмерные карточки */
  .casino-card {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .casino-rank {
    top: 12px;
    left: 12px;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 8px;
  }

  .casino-logo {
    width: 90px;
    height: 60px;
    margin-bottom: 14px;
    border-radius: 12px;
  }

  .casino-info h3 {
    font-size: 20px !important;
    margin-bottom: 12px;
  }

  .casino-bonus {
    font-size: 13px;
    padding: 10px 16px;
    margin-bottom: 8px;
    border-radius: 10px;
  }

  .casino-info p {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .casino-actions {
    gap: 8px;
  }

  .btn-casino-play {
    padding: 14px 24px;
    font-size: 15px;
    border-radius: 12px;
  }

  .btn-casino-review {
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 12px;
  }

  h2 {
    font-size: 20px !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  h3 {
    font-size: 16px !important;
  }

  p, li {
    font-size: 14px !important;
    line-height: 1.6 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .table-wrap {
    border-radius: 10px;
    margin: 16px 0;
    width: 100%;
    overflow-x: auto;
    box-sizing: border-box;
  }

  .site-table {
    font-size: 10px;
    min-width: 100%;
  }

  .site-table th,
  .site-table td {
    padding: 6px 8px;
    word-break: break-word;
  }

  .page-layout {
    padding: 0;
  }

  .article-illustration {
    margin: 20px -16px;
  }

  .article-illustration img {
    border-radius: 0;
    max-height: 180px;
    padding: 16px;
  }

}
