@import url('https://fonts.googleapis.com/css2?family=Grenze+Gotisch:wght@300;400;600;700;900&display=swap');

:root {
  --clr-header: #8e73a8;
  --clr-header-dark: #7a609a;
  --clr-btn-gold: #efc33b;
  --clr-btn-blue: #424586;
  --clr-btn-blue-dark: #353775;
  --clr-bg: #6f1611;
  --clr-bg-dark: #580f0a;
  --clr-surface: rgba(0,0,0,.35);
  --clr-surface2: rgba(0,0,0,.5);
  --clr-text: #f5f0e8;
  --clr-text-muted: #d4c8e0;
  --clr-accent: #efc33b;
  --clr-border: rgba(239,195,59,.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --ff: 'Grenze Gotisch', serif;
  --transition: .25s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: var(--clr-accent); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: .82; }
img { max-width: 100%; height: auto; display: block; }

.wrapper { position: relative; min-height: 100vh; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 18px; }

.box { border-radius: var(--radius-md); }

.section-gap { margin-top: 32px; }

/* ── HEADER ─────────────────────────────────────────── */
.site-header {
  background: var(--clr-header);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 3px 18px rgba(0,0,0,.45);
}
.hdr-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 18px;
}
.hdr-logo img { height: 52px; width: auto; }
.hdr-jackpot {
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border);
  border-radius: 50px;
  padding: 4px 18px;
  font-size: .82rem;
  color: var(--clr-accent);
  letter-spacing: .03em;
  white-space: nowrap;
}
.hdr-jackpot span { font-weight: 700; font-size: 1rem; }
.hdr-nav { display: flex; align-items: center; gap: 6px; }
.hdr-nav a {
  display: flex; align-items: center; gap: 5px;
  color: var(--clr-text); font-size: .88rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.hdr-nav a:hover { background: rgba(255,255,255,.12); opacity: 1; }
.hdr-nav a svg { width: 16px; height: 16px; flex-shrink: 0; }
.hdr-btns { display: flex; align-items: center; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; border-radius: 50px;
  font-family: var(--ff); font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; transition: transform .15s, box-shadow .15s, filter .15s;
  text-decoration: none; white-space: nowrap;
  position: relative; z-index: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
/* :hover only for devices that truly have a mouse — on iOS/touch, a plain
   :hover rule makes the first tap register as "hover" and requires a
   second tap to actually activate the link/button */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.4); opacity: 1; }
  .btn-gold:hover { filter: brightness(1.1); }
  .btn-blue:hover { filter: brightness(1.15); }
}
.btn:active { transform: translateY(0); }
.btn-gold {
  background: linear-gradient(135deg,#f7d86b,var(--clr-btn-gold),#c9a020);
  color: #1a0f00; padding: 9px 22px; font-size: .9rem;
}
.btn-blue {
  background: linear-gradient(135deg,#5d61b8,var(--clr-btn-blue),#2d2f60);
  color: #fff; padding: 9px 22px; font-size: .9rem;
}
.btn-lg { padding: 13px 34px; font-size: 1.08rem; min-height: 44px; }
.btn-sm { padding: 7px 16px; font-size: .82rem; }

/* burger */
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: none; }
.burger span { width: 24px; height: 2px; background: var(--clr-text); border-radius: 2px; transition: var(--transition); display: block; }
.burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  background: var(--clr-header-dark);
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  display: flex; align-items: center; gap: 8px;
  color: var(--clr-text); padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  transition: background var(--transition);
}
.mobile-menu a:hover { background: rgba(255,255,255,.1); opacity: 1; }
.mobile-menu a svg { width: 18px; height: 18px; }

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 480px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--clr-bg-dark);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('/hero-banner.jpg');
  background-size: cover; background-position: center top;
  filter: brightness(.65) saturate(1.1);
  transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1.04); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(111,22,17,.0) 0%, rgba(111,22,17,.7) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 60px 18px 80px;
  max-width: 780px;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900; line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.7);
  margin-bottom: 14px;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--clr-text-muted);
  margin-bottom: 26px;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.hero-rating { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 28px; }
.hero-rating .stars { color: var(--clr-accent); font-size: 1.3rem; letter-spacing: 2px; }
.hero-rating .rating-val { font-weight: 700; color: var(--clr-accent); font-size: 1.1rem; }
.hero-rating .rating-label { font-size: .85rem; color: var(--clr-text-muted); }
.hero-btns { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ── BREADCRUMBS ──────────────────────────────────────── */
.breadcrumbs {
  padding: 10px 0;
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; list-style: none; font-size: .82rem; }
.breadcrumbs li { display: flex; align-items: center; gap: 4px; }
.breadcrumbs li + li::before { content: '/'; color: var(--clr-text-muted); margin-right: 4px; }
.breadcrumbs a { color: var(--clr-accent); }
.breadcrumbs span { color: var(--clr-text-muted); }

/* ── MAIN CONTENT AREA ───────────────────────────────── */
.main-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 32px 0;
}

/* ── SECTION BLOCKS ──────────────────────────────────── */
.block-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  margin: 0 0 12px;
}
.block-title {
  font-size: clamp(1.2rem, 2.8vw, 1.75rem);
  font-weight: 700; color: var(--clr-accent);
  margin-bottom: 18px; line-height: 1.2;
  display: flex; align-items: center; gap: 10px;
}
.block-title svg { width: 26px; height: 26px; flex-shrink: 0; }

/* ── TABLE OF CONTENTS ───────────────────────────────── */
.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.toc-item {
  display: flex; align-items: center; gap: 8px;
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: .88rem;
  color: var(--clr-text);
  transition: background var(--transition), border-color var(--transition);
}
.toc-item:hover { background: rgba(239,195,59,.12); border-color: var(--clr-accent); opacity: 1; }
.toc-item svg { width: 18px; height: 18px; color: var(--clr-accent); flex-shrink: 0; }

/* ── DEMO GAME BLOCK ─────────────────────────────────── */
.demo-wrap {
  position: relative;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/9;
  max-height: 520px;
}
.demo-wrap iframe {
  width: 100%; height: 100%;
  border: none;
  display: block;
}
.demo-cta {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap; margin-top: 16px;
}
@media (max-width: 640px) {
  .demo-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .demo-cta .btn { width: 100%; }
}

/* ── ADVANTAGES TILES ────────────────────────────────── */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.adv-tile {
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}
.adv-tile:hover { transform: translateY(-4px); border-color: var(--clr-accent); }
.adv-tile svg { width: 36px; height: 36px; color: var(--clr-accent); margin: 0 auto 10px; }
.adv-tile h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--clr-accent); }
.adv-tile p { font-size: .85rem; color: var(--clr-text-muted); line-height: 1.45; }

/* ── FAQ ─────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px;
  font-family: var(--ff); font-size: 1rem; font-weight: 600;
  color: var(--clr-text); text-align: left;
  transition: background var(--transition);
}
.faq-q:hover { background: rgba(255,255,255,.06); }
.faq-q .faq-icon {
  flex-shrink: 0; width: 22px; height: 22px;
  background: var(--clr-btn-blue); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--transition), background var(--transition);
}
.faq-q .faq-icon svg { width: 14px; height: 14px; color: #fff; transition: transform var(--transition); }
.faq-item.is-open .faq-q .faq-icon { background: var(--clr-accent); }
.faq-item.is-open .faq-q .faq-icon svg { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1), padding .3s;
  padding: 0 20px;
}
.faq-item.is-open .faq-a { max-height: 600px; padding: 0 20px 16px; }
.faq-a p { font-size: .92rem; color: var(--clr-text-muted); line-height: 1.6; }

/* ── AUTHOR ──────────────────────────────────────────── */
.author-card {
  display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start;
}
.author-photo {
  width: 100px; height: 100px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 3px solid var(--clr-accent);
}
.author-info { flex: 1; min-width: 220px; }
.author-name { font-size: 1.3rem; font-weight: 700; color: var(--clr-accent); margin-bottom: 2px; }
.author-job { font-size: .88rem; color: var(--clr-text-muted); margin-bottom: 10px; }
.author-bio { font-size: .9rem; line-height: 1.55; color: var(--clr-text-muted); margin-bottom: 12px; }
.author-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: .8rem; color: var(--clr-text-muted); margin-bottom: 10px; }
.author-meta span { background: var(--clr-surface2); border: 1px solid var(--clr-border); padding: 3px 10px; border-radius: 50px; }
.author-links { display: flex; flex-wrap: wrap; gap: 8px; }
.author-links a {
  display: flex; align-items: center; gap: 5px;
  background: var(--clr-btn-blue); color: #fff;
  padding: 6px 14px; border-radius: 50px; font-size: .82rem; font-weight: 600;
  transition: filter var(--transition);
}
.author-links a:hover { filter: brightness(1.15); opacity: 1; }
.author-links a svg { width: 14px; height: 14px; }
.author-dates { margin-top: 8px; font-size: .78rem; color: var(--clr-text-muted); }

/* ── CONTENT BODY (голые теги) ───────────────────────── */
.content-body h1, .content-body h2, .content-body h3,
.content-body h4, .content-body h5, .content-body h6 {
  color: var(--clr-accent); margin: 20px 0 10px; line-height: 1.25;
  font-weight: 700;
}
.content-body h1 { font-size: 1.8rem; }
.content-body h2 { font-size: 1.4rem; }
.content-body h3 { font-size: 1.2rem; }
.content-body p { margin-bottom: 14px; font-size: .95rem; line-height: 1.6; }
.content-body ul, .content-body ol { margin: 0 0 14px 24px; }
.content-body li { margin-bottom: 5px; font-size: .95rem; line-height: 1.55; }
.content-body a { color: var(--clr-accent); }
.content-body table {
  width: 100%; border-collapse: collapse; margin: 16px auto; display: block; overflow-x: auto;
}
.content-body th, .content-body td {
  padding: 10px 14px; text-align: left; border: 1px solid var(--clr-border);
  font-size: .9rem;
}
.content-body th { background: var(--clr-surface2); color: var(--clr-accent); font-weight: 700; }
.content-body tr:nth-child(even) td { background: rgba(0,0,0,.18); }
.content-body blockquote {
  border-left: 3px solid var(--clr-accent); padding: 10px 18px;
  background: var(--clr-surface2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 16px 0; font-style: italic; color: var(--clr-text-muted);
}
.content-body strong { color: var(--clr-text); }
.content-body em { color: var(--clr-text-muted); }
.content-body img { border-radius: var(--radius-sm); margin: 10px 0; }
.content-body code {
  background: rgba(0,0,0,.3); padding: 2px 6px; border-radius: 4px; font-size: .85rem;
}

/* ── FOOTER ──────────────────────────────────────────── */
.site-footer {
  background: var(--clr-header);
  padding: 40px 0 20px;
  margin-top: 40px;
}
.footer-top {
  display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  margin-bottom: 24px;
}
.footer-brand { max-width: 260px; }
.footer-logo img { height: 48px; margin-bottom: 12px; }
.footer-desc { font-size: .85rem; color: var(--clr-text-muted); line-height: 1.5; }
.footer-col h4 { font-size: 1rem; font-weight: 700; color: var(--clr-accent); margin-bottom: 12px; }
.footer-nav-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.footer-nav-list a { font-size: .88rem; color: var(--clr-text-muted); transition: color var(--transition); }
.footer-nav-list a:hover { color: var(--clr-accent); opacity: 1; }
.footer-logos { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.footer-logos img { height: 28px; width: auto; filter: brightness(1.1) saturate(.9); opacity: .85; transition: opacity var(--transition); }
.footer-logos img:hover { opacity: 1; }
.footer-trust { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.trust-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm); padding: 5px 10px; font-size: .78rem;
  color: var(--clr-text-muted);
}
.trust-badge svg { width: 18px; height: 18px; }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.footer-social a:hover { background: var(--clr-accent); opacity: 1; }
.footer-social a svg { width: 18px; height: 18px; color: var(--clr-text); }
.footer-bottom {
  text-align: center; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-bottom p { font-size: .8rem; color: var(--clr-text-muted); line-height: 1.6; margin-bottom: 6px; }
.footer-flag { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--clr-text-muted); margin-top: 6px; }
.footer-email { color: var(--clr-accent); }

/* ── STICKY WIDGET ───────────────────────────────────── */
.sticky-widget {
  position: fixed; bottom: 22px; right: 18px; z-index: 998;
  background: var(--clr-header-dark);
  border: 2px solid var(--clr-accent);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.55);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  max-width: 180px;
  text-align: center;
  animation: widgetPulse 3s ease infinite;
}
@keyframes widgetPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(0,0,0,.55); }
  50% { box-shadow: 0 8px 42px rgba(239,195,59,.35); }
}
.sticky-widget img { height: 44px; width: auto; margin: 0 auto; }
.widget-bonus { font-size: .78rem; color: var(--clr-text-muted); line-height: 1.35; }
.widget-bonus strong { color: var(--clr-accent); display: block; font-size: .88rem; }
.widget-close {
  position: absolute; top: 6px; right: 8px;
  background: none; border: none; color: var(--clr-text-muted);
  cursor: pointer; font-size: 1rem; line-height: 1;
}
.widget-close:hover { color: var(--clr-text); }

/* ── GAME INFO TABLE ─────────────────────────────────── */
.game-info-table {
  width: 100%; border-collapse: collapse; margin: 0;
}
.game-info-table tr { border-bottom: 1px solid var(--clr-border); }
.game-info-table tr:last-child { border-bottom: none; }
.game-info-table td {
  padding: 10px 14px; font-size: .9rem;
  vertical-align: top;
}
.game-info-table td:first-child { color: var(--clr-text-muted); width: 44%; font-weight: 600; }
.game-info-table td:last-child { color: var(--clr-text); }

/* ── TRANSITIONS & ANIMATIONS ────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp .55s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }

/* scroll reveal (progressive enhancement: content is visible by default;
   JS opts elements into the hidden pre-animation state so a script
   failure never leaves content permanently invisible) */
.js-reveal-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── INFO PAGES ──────────────────────────────────────── */
.info-content {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  margin: 28px 0;
}
.info-content h2 { font-size: 1.3rem; color: var(--clr-accent); margin: 20px 0 8px; }
.info-content p { font-size: .93rem; line-height: 1.6; margin-bottom: 12px; color: var(--clr-text-muted); }
.info-content ul { margin: 0 0 12px 22px; }
.info-content li { font-size: .9rem; line-height: 1.55; color: var(--clr-text-muted); margin-bottom: 4px; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  .hdr-nav { display: none; }
  .burger { display: flex; }
  .hdr-jackpot { display: none; }
  .hero { min-height: 360px; }
  .hero-title { font-size: 2rem; }
}
@media (max-width: 640px) {
  .hdr-inner { padding: 8px 14px; }
  .hdr-logo img { height: 40px; }
  .btn-lg { padding: 11px 24px; font-size: 1rem; }
  .block-card { padding: 20px 14px; }
  .adv-grid { grid-template-columns: 1fr 1fr; }
  .author-card { flex-direction: column; align-items: center; text-align: center; }
  .author-links { justify-content: center; }
  .footer-top { flex-direction: column; gap: 20px; }
  .sticky-widget { right: 10px; bottom: 14px; max-width: 155px; }
  .toc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .adv-grid { grid-template-columns: 1fr; }
  .toc-grid { grid-template-columns: 1fr; }
}

/* ── UNUSED UTILITY CLASSES (uniqualizer) ────────────── */
.xk9r2-hidden { display: none !important; }
.bw4m1-spacer { margin: 0; padding: 0; visibility: hidden; }
.q7z3n-layer { pointer-events: none; opacity: 0; position: absolute; }
.jd82k-placeholder { width: 0; height: 0; overflow: hidden; }
.wp-caption-text { font-size: .78rem; color: var(--clr-text-muted); text-align: center; margin-top: 4px; }
.wp-image-full { width: 100%; }
.post-thumbnail { display: block; }
.entry-content p:last-child { margin-bottom: 0; }
.elementor-widget-text-editor p { line-height: 1.6; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.alignleft { float: left; margin-right: 18px; }
.alignright { float: right; margin-left: 18px; }
.aligncenter { display: block; margin: 0 auto; }
.size-full { max-width: 100%; }
