/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #071510;
  --color-bg-alt: #0c1f18;
  --color-surface: #122a22;
  --color-surface-light: #1a3d32;
  --color-gold: #c9a227;
  --color-gold-light: #e8c84a;
  --color-accent: #2ecc71;
  --color-text: #edf5f1;
  --color-text-muted: #8fa89c;
  --color-border: rgba(255, 255, 255, 0.08);
  --font-main: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --header-height: 64px;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

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

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100vw;
}

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

a {
  color: var(--color-gold-light);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-gold);
}

ul,
ol {
  padding-left: 1.5rem;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 21, 16, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--color-gold);
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  padding: 0;
}

.site-nav a {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--color-gold-light);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-text);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform 0.3s;
}

/* ===== Hero intro (above widget) ===== */
.hero--intro {
  padding: 2.5rem 1.25rem 2rem;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.hero__badge {
  display: inline-block;
  background: rgba(201, 162, 39, 0.12);
  color: var(--color-gold);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  border: 1px solid rgba(201, 162, 39, 0.28);
}

.hero h1 {
  font-size: clamp(1.625rem, 4vw, 2.375rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero__lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--color-text-muted);
  max-width: 780px;
  line-height: 1.75;
}

/* ===== Widget ===== */
.widget-section {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  touch-action: pan-y;
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.widget-section__hint {
  display: none;
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--color-border);
}

#casino-widget-iframe {
  width: 100%;
  max-width: 100%;
  border: none;
  display: block;
  overflow: hidden;
  min-height: 400px;
  height: 750px;
}

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

  #casino-widget-iframe {
    pointer-events: none;
  }

  .widget-section.is-interactive #casino-widget-iframe {
    pointer-events: auto;
  }

  .widget-section.is-interactive .widget-section__hint {
    background: rgba(46, 204, 113, 0.12);
    color: var(--color-accent);
  }
}

/* ===== Layout ===== */
.page-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  flex: 1;
  width: 100%;
}

.page-layout--single {
  grid-template-columns: 1fr;
  max-width: 900px;
}

/* ===== TOC ===== */
.toc {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  align-self: start;
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  max-height: calc(100vh - var(--header-height) - 3rem);
  overflow-y: auto;
}

.toc__title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.toc ol {
  list-style: none;
  padding: 0;
}

.toc li {
  margin-bottom: 0.35rem;
}

.toc a {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  padding: 0.25rem 0;
  line-height: 1.4;
}

.toc a:hover {
  color: var(--color-gold-light);
}

/* ===== Content ===== */
.content section {
  margin-bottom: 2.5rem;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.content h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
  padding-left: 0.875rem;
  border-left: 3px solid var(--color-gold);
}

.content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: var(--color-gold-light);
}

.content p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.content ul,
.content ol {
  color: var(--color-text-muted);
  margin: 0.75rem 0 1.25rem;
}

.content li {
  margin-bottom: 0.5rem;
}

.content li strong {
  color: var(--color-text);
}

.casino-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.casino-card h3 {
  margin-top: 0;
}

/* ===== Contact Page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-card h2 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--color-gold-light);
}

.contact-item {
  margin-bottom: 1.25rem;
}

.contact-item__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
  color: var(--color-text-muted);
  font-size: 1rem;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 4 / 3;
  min-height: 280px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ===== 404 ===== */
.error-page {
  text-align: center;
  padding: 4rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error-page__code {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 800;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-page h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.error-page p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
}

.btn {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-bg);
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover {
  background: var(--color-gold-light);
  color: var(--color-bg);
  transform: translateY(-1px);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 1.25rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 2rem;
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  max-width: 320px;
}

.footer-contacts h3,
.footer-form h3 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.footer-contacts p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 0.35rem;
}

.footer-contacts a {
  color: var(--color-text-muted);
}

.footer-contacts a:hover {
  color: var(--color-gold-light);
}

.footer-form label {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.footer-form input,
.footer-form textarea {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.625rem 0.875rem;
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  max-width: 100%;
}

.footer-form input:focus,
.footer-form textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}

.footer-form textarea {
  min-height: 80px;
  resize: vertical;
}

.footer-form button {
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: var(--color-gold);
  color: var(--color-bg);
  border: none;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.footer-form button:hover {
  background: var(--color-gold-light);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
}

/* ===== Cookie Banner ===== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
  max-width: 100vw;
}

#cookie-banner[hidden] {
  display: none;
}

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-inner p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  flex: 1;
  min-width: 200px;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-actions button {
  padding: 0.625rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

#cookie-accept {
  background: var(--color-gold);
  color: var(--color-bg);
}

#cookie-accept:hover {
  background: var(--color-gold-light);
}

#cookie-decline {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

#cookie-decline:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    max-height: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg-alt);
    flex-direction: column;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav li {
    border-bottom: 1px solid var(--color-border);
  }

  .site-nav a {
    display: block;
    padding: 0.875rem 0;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions button {
    flex: 1;
  }
}
