/* =========================================
   Martin Casino DE — Global Stylesheet
   ========================================= */

:root {
  /* Фон и поверхности */
  --bg: #0c0e17;
  --bg-header: #090b12;
  --bg-footer: #090b12;
  --bg-card: #141926;
  --bg-surf: #1b2234;
  --bg-surf2: #242e47;

  /* Акценты */
  --accent: #ff9f00;
  --accent2: #3b51f1;
  --accent-gold: #ffcc00;
  --neon: #2b66ff;
  --success: #10b981;

  /* Текст */
  --text: #ffffff;
  --text-light: #ffffff;
  --text2: #8a94a6;

  /* Декор */
  --border: rgba(138, 148, 166, 0.15);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.8);

  --radius: 12px;
  --radius-lg: 20px;
  --container: 1200px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-gold); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .8em;
  color: var(--text);
}

h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.05rem); margin-top: 1.8em; letter-spacing: -.01em; }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); margin-top: 1.4em; color: var(--accent-gold); }

p { margin: 0 0 1em; color: #d9dde5; }
p strong { color: var(--text); }

ul, ol { padding-left: 1.4rem; margin: 0 0 1.2em; color: #d9dde5; }
li { margin-bottom: .5em; }
ul li::marker { color: var(--accent); }
ol li::marker { color: var(--accent-gold); font-weight: 700; }

/* =========================================
   Layout
   ========================================= */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

main { flex: 1 0 auto; padding: 32px 0 64px; }

/* =========================================
   Header
   ========================================= */

.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: relative;
  z-index: 30;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 40px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--text2);
  font-weight: 500;
  font-size: 15px;
  transition: color .2s ease;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--text); }
.main-nav a.active { color: var(--accent-gold); }

.play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, #ffb733 100%);
  color: #1a1000 !important;
  font-weight: 700;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 159, 0, 0.35);
  transition: transform .2s ease, box-shadow .2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.play-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 159, 0, 0.5);
  color: #1a1000 !important;
}

.burger-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  color: var(--text);
}
.burger-btn svg { width: 22px; height: 22px; }

.mobile-menu {
  display: none;
  background: var(--bg-header);
  border-top: 1px solid var(--border);
  padding: 12px 20px 20px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  color: var(--text2);
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--accent-gold); }

/* =========================================
   Hero
   ========================================= */

.hero {
  background:
    radial-gradient(1200px 400px at 80% 0%, rgba(59, 81, 241, 0.18) 0%, transparent 60%),
    radial-gradient(900px 500px at 10% 100%, rgba(255, 159, 0, 0.15) 0%, transparent 60%),
    linear-gradient(180deg, #10142080 0%, #0c0e17 100%);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  margin-bottom: 36px;
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 36px;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 50% 120%, rgba(255, 204, 0, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero h1 { margin-top: 0; }
.hero p.lead {
  font-size: 1.05rem;
  color: #e2e5ec;
  margin-bottom: 1.5em;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .play-btn { padding: 14px 30px; font-size: 16px; }
.hero-cta .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(59, 81, 241, 0.12);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  transition: background .2s ease, border-color .2s ease;
}
.hero-cta .btn-secondary:hover {
  background: rgba(59, 81, 241, 0.22);
  border-color: rgba(59, 81, 241, 0.5);
  color: var(--text);
}
.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* Page hero (для внутренних) */
.page-hero {
  background:
    radial-gradient(800px 300px at 90% 0%, rgba(59, 81, 241, 0.15) 0%, transparent 60%),
    linear-gradient(180deg, #101420 0%, #0c0e17 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 32px;
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 32px;
  align-items: center;
}
.page-hero h1 { margin: 0 0 .5em; }
.page-hero-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================
   Content sections
   ========================================= */

article, .content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

article > *:first-child { margin-top: 0; }
article > *:last-child  { margin-bottom: 0; }

/* Info-таблица */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 0 0 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  background: var(--bg-surf);
}
th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: #d9dde5;
  font-size: 15px;
}
th {
  background: var(--bg-surf2);
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(59, 81, 241, 0.05); }

/* Highlight box */
.highlight {
  background: linear-gradient(135deg, rgba(255, 159, 0, 0.1) 0%, rgba(59, 81, 241, 0.1) 100%);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  border-radius: var(--radius);
  margin: 20px 0;
}
.highlight p:last-child { margin-bottom: 0; }

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 24px 0;
}
.info-card {
  background: var(--bg-surf);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .2s ease, border-color .2s ease;
}
.info-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 159, 0, 0.4);
}
.info-card h3 {
  margin: 0 0 .5em;
  color: var(--accent);
  font-size: 1.05rem;
}
.info-card p { margin: 0; font-size: .95rem; color: #c7ccd6; }

/* Bonus/feature badge */
.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-right: 6px;
}
.badge.gold {
  background: rgba(255, 204, 0, 0.13);
  color: var(--accent-gold);
  border-color: rgba(255, 204, 0, 0.35);
}

/* FAQ */
.faq {
  margin: 24px 0;
}
.faq-item {
  background: var(--bg-surf);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 12px;
  transition: border-color .2s ease;
}
.faq-item:hover { border-color: rgba(59, 81, 241, 0.4); }
.faq-item h3 {
  margin: 0 0 .5em;
  color: var(--text);
  font-size: 1.05rem;
}
.faq-item p { margin: 0; color: #c7ccd6; }

/* Final CTA */
.cta-block {
  background: linear-gradient(135deg, rgba(255, 159, 0, 0.15) 0%, rgba(59, 81, 241, 0.15) 100%);
  border: 1px solid rgba(255, 159, 0, 0.3);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin: 32px 0;
}
.cta-block h2 { margin-top: 0; }
.cta-block .play-btn { padding: 15px 40px; font-size: 16px; margin-top: 12px; }

/* =========================================
   Footer
   ========================================= */

.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
  color: var(--text2);
  font-size: 14px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
.footer-col h4 {
  color: var(--text);
  font-size: 15px;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--text2); }
.footer-col a:hover { color: var(--accent-gold); }
.footer-brand p { color: var(--text2); font-size: 13.5px; line-height: 1.6; }
.footer-brand img { height: 40px; margin-bottom: 16px; }

.footer-legal {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text2);
}
.footer-legal .age {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.footer-legal .age .plus {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

/* =========================================
   404
   ========================================= */

.error-page {
  text-align: center;
  padding: 60px 20px;
}
.error-page .code {
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}
.error-page h2 { margin: 12px 0 16px; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.error-page p { max-width: 520px; margin: 0 auto 28px; color: #c7ccd6; }
.error-page .play-btn { padding: 14px 32px; }

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
  .hero-image { aspect-ratio: 16/10; order: -1; }
  .page-hero {
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }
  .page-hero-img { aspect-ratio: 16/9; }
  article, .content { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  main { padding: 20px 0 40px; }
  .main-nav { display: none; }
  .burger-btn { display: inline-flex; }
  .header-inner { gap: 12px; }
  .header-inner .play-btn { padding: 10px 18px; font-size: 14px; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }
  .hero { padding: 26px 20px; border-radius: 14px; }
  .page-hero { padding: 24px 20px; border-radius: 14px; }
  article, .content { padding: 24px 18px; border-radius: 14px; }
  .cta-block { padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-legal { flex-direction: column; text-align: center; }
  th, td { padding: 10px 12px; font-size: 14px; }
  .hero-cta { flex-direction: column; }
  .hero-cta > * { width: 100%; justify-content: center; }
}

@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .logo-img { height: 32px; }
  .header-inner .play-btn { padding: 9px 14px; font-size: 13px; }
  .burger-btn { width: 40px; height: 40px; }
}
