/* =========================================
   NAME CASINO — style.css
   Dark luxury aesthetic | Gold accents
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* ─── CSS Variables ─────────────────────── */
:root {
  --bg:           #0a0a0a;
  --bg-card:      #111111;
  --bg-card2:     #161616;
  --gold:         #c9a84c;
  --gold-light:   #f0c96e;
  --gold-dark:    #9a7230;
  --red:          #c0392b;
  --red-dark:     #8e1c12;
  --text:         #e8e2d5;
  --text-muted:   #888070;
  --border:       rgba(201,168,76,.18);
  --border-strong:rgba(201,168,76,.45);
  --radius:       6px;
  --header-h:     72px;
  --transition:   .25s ease;
}

/* ─── Reset & Base ──────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* No fade-in animations — everything visible immediately */
* { animation: none !important; transition: color var(--transition), background-color var(--transition), border-color var(--transition), box-shadow var(--transition), opacity var(--transition), transform var(--transition); }

/* ─── Typography ────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--gold-light);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.8rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); font-weight: 700; }

p { margin-bottom: 1em; color: var(--text); }
p:last-child { margin-bottom: 0; }

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

img { max-width: 100%; display: block; }

/* ─── Scrollbar ─────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* ─── Utility ───────────────────────────── */
.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.gold-line {
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 12px 0 24px;
}

/* ─── Buttons (global) ──────────────────── */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
  color: #0a0a0a;
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(201,168,76,.3);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #0a0a0a;
  box-shadow: 0 6px 28px rgba(201,168,76,.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline:hover {
  background: rgba(201,168,76,.1);
  color: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-color: rgba(255,255,255,.12);
  font-size: 14px;
  padding: 9px 22px;
}
.btn-ghost:hover {
  background: rgba(201,168,76,.12);
  color: var(--gold-light);
  border-color: var(--gold);
}

/* ─── HEADER ────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(10,10,10,.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-link { flex-shrink: 0; display: flex; align-items: center; }
.logo-link img { height: 44px; width: auto; object-fit: contain; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.main-nav a {
  padding: 7px 14px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
}
.main-nav a:hover {
  color: var(--gold-light);
  background: rgba(201,168,76,.07);
  border-color: var(--border);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: rgba(10,10,10,.99);
  border-bottom: 1px solid var(--border);
  padding: 20px;
  z-index: 999;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  padding: 12px 16px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.mobile-menu a:hover { color: var(--gold-light); border-color: var(--gold); background: rgba(201,168,76,.07); }
.mobile-menu .mobile-actions { display: flex; gap: 10px; margin-top: 8px; }
.mobile-menu .mobile-actions .btn { flex: 1; text-align: center; }

/* ─── CTA SECTION ───────────────────────── */
.cta-section {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://placehold.co/1920x900/1a1008/c9a84c?text=CASINO+BACKGROUND');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,.88) 0%,
    rgba(10,8,2,.75) 50%,
    rgba(0,0,0,.6) 100%
  );
  z-index: 1;
}

/* Decorative gold corners */
.cta-bg::before, .cta-bg::after {
  content: '';
  position: absolute;
  width: 120px; height: 120px;
  border: 2px solid rgba(201,168,76,.4);
  z-index: 2;
}
.cta-bg::before { top: 24px; left: 24px; border-right: none; border-bottom: none; }
.cta-bg::after  { bottom: 24px; right: 24px; border-left: none; border-top: none; }

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 40px 0;
}

.cta-content h1 {
  text-shadow: 0 2px 30px rgba(0,0,0,.8);
  margin-bottom: 8px;
}

.cta-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 24px;
}

.cta-text {
  font-size: 15px;
  color: rgba(232,226,213,.7);
  max-width: 520px;
  border-left: 3px solid var(--gold-dark);
  padding-left: 16px;
  margin-bottom: 0;
}

/* ─── DISCLAIMER ────────────────────────── */
.disclaimer {
  background: var(--red-dark);
  border-top: 2px solid #e74c3c;
  border-bottom: 2px solid #e74c3c;
  padding: 16px 0;
}

.disclaimer-inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.disclaimer-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  margin-top: 2px;
}

.disclaimer-text {
  font-size: 13px;
  line-height: 1.6;
  color: #fff;
  font-weight: 500;
  margin: 0;
}

.disclaimer-text strong { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* ─── CONTENT SECTION ───────────────────── */
.content-section {
  padding: 72px 0;
}

.content-section .section-title {
  margin-bottom: 6px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 36px 0;
}

.content-img-full {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
  object-fit: cover;
  max-height: 340px;
}

/* ── Content Image ─ */
.content-figure {
  margin: 28px 0;
}
.content-figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: cover;
  max-height: 400px;
}
.content-figure figcaption {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
  font-style: italic;
}

/* ── Lists (automatic global styles) ─────── */
.content-section ul,
article ul, main ul {
  list-style: none;
  margin: 16px 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.content-section ul li,
article ul li, main ul li {
  position: relative;
  padding: 12px 16px 12px 46px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 16px;
}

.content-section ul li::before,
article ul li::before, main ul li::before {
  content: '♦';
  position: absolute;
  left: 16px;
  color: var(--gold);
  font-size: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.content-section ol,
article ol, main ol {
  list-style: none;
  counter-reset: casino-counter;
  margin: 16px 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.content-section ol li,
article ol li, main ol li {
  counter-increment: casino-counter;
  position: relative;
  padding: 12px 16px 12px 56px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 16px;
}

.content-section ol li::before,
article ol li::before, main ol li::before {
  content: counter(casino-counter);
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--gold-dark), var(--gold));
  color: #0a0a0a;
  font-weight: 900;
  font-size: 14px;
  border-radius: var(--radius) 0 0 var(--radius);
}

/* ── Tables (automatic global styles) ────── */
.content-section table,
article table, main table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
}

.content-section table thead,
article table thead, main table thead {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
}

.content-section table thead th,
article table thead th, main table thead th {
  padding: 14px 18px;
  color: #0a0a0a;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-align: left;
  border: none;
}

.content-section table tbody tr,
article table tbody tr, main table tbody tr {
  border-bottom: 1px solid var(--border);
}

.content-section table tbody tr:last-child,
article table tbody tr:last-child, main table tbody tr:last-child {
  border-bottom: none;
}

.content-section table tbody tr:nth-child(even),
article table tbody tr:nth-child(even), main table tbody tr:nth-child(even) {
  background: rgba(201,168,76,.04);
}

.content-section table tbody tr:hover,
article table tbody tr:hover, main table tbody tr:hover {
  background: rgba(201,168,76,.09);
}

.content-section table tbody td,
article table tbody td, main table tbody td {
  padding: 13px 18px;
  color: var(--text);
  vertical-align: middle;
}

/* Responsive table wrapper — add .table-wrap around each <table> */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
  padding: 0 4px;
}

/* ─── AUTHOR BLOCK ──────────────────────── */
.author-section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.author-card {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  max-width: 780px;
}

.author-avatar {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 0 20px rgba(201,168,76,.25);
}

.author-info { flex: 1; min-width: 0; }

.author-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.author-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.author-bio {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

/* ─── FOOTER ────────────────────────────── */
.site-footer {
  background: #070707;
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.footer-nav a {
  padding: 9px 24px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 40px;
}
.footer-nav a:hover {
  color: var(--gold-light);
  border-color: var(--gold);
  background: rgba(201,168,76,.07);
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 20px;
}

.footer-copy {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-logo-small {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--gold);
  font-weight: 700;
}

/* ─── SCROLL-TO-TOP BUTTON ──────────────── */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 28px;
  z-index: 800;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(201,168,76,.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(201,168,76,.55); }

.scroll-top svg { width: 20px; height: 20px; fill: none; stroke: #0a0a0a; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ─── RESPONSIVE ────────────────────────── */
@media (max-width: 900px) {
  .main-nav, .header-actions { display: none; }
  .burger { display: flex; }

  .content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }

  .cta-content { padding: 40px 0; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; text-align: center; }

  .author-card { flex-direction: column; align-items: center; text-align: center; gap: 18px; }
  .author-avatar { width: 80px; height: 80px; }

  .content-section table { font-size: 13px; }
  .content-section table thead th,
  .content-section table tbody td { padding: 10px 12px; }
}
.slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 36px 0;
}

.slot-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.slot-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.slot-name {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: var(--gold-light);
  padding: 12px 14px 8px;
  margin: 0;
  font-weight: 700;
}

.slot-actions {
  display: flex;
  gap: 8px;
  padding: 0 14px 14px;
  margin-top: auto;
  flex-wrap: wrap;
}

.slot-actions .btn {
  flex: 1;
  padding: 9px 10px;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 640px) {
  .slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .slot-actions .btn {
    font-size: 11px;
    padding: 8px 6px;
  }
}
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .table-wrap table {
    min-width: 500px; /* минимальная ширина — подберите под свои таблицы */
    width: 100%;
    border-collapse: collapse;
  }

  @media (max-width: 768px) {
    .table-wrap {
      border-radius: 4px;
      box-shadow: inset -8px 0 8px -8px rgba(0,0,0,0.12); /* тень-подсказка, что можно скроллить */
    }
  }