/* =========================================================
   Lucien Template — static build (8XBET-style structure)
   Primary navy #183059 · Accent blue #276FBF
   ========================================================= */
:root{
  --navy:#183059;
  --blue:#276FBF;
  --navy-dark:#0f2038;
  --heading:#183059;
  --text:#333333;
  --muted:#5a5a5a;
  --border:#e6e6e6;
  --bg-soft:#f4f7fb;
  --max:1140px;
  --content:820px;
  --radius:10px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Inter","Segoe UI",Arial,Helvetica,sans-serif;
  color:var(--text);
  background:#fff;
  line-height:1.7;
  font-size:16px;
}
img{max-width:100%;height:auto;display:block}
a{text-decoration:none;color:var(--blue)}
a:hover{color:var(--navy)}
.container{width:min(var(--max),calc(100% - 32px));margin:0 auto}

h1,h2,h3,h4,h5,h6{font-family:"Inter",sans-serif;color:var(--heading);line-height:1.3}
h1{font-size:30px;margin:0 0 18px}
h2{font-size:24px;margin:34px 0 14px}
h3{font-size:19px;margin:24px 0 10px}
p{margin:0 0 15px}
ul{margin:0 0 16px;padding-left:22px}
li{margin-bottom:8px}

/* ---------------- Buttons ---------------- */
.btn{display:inline-block;padding:10px 22px;border-radius:6px;font-weight:600;font-size:15px;color:#fff;transition:.25s;white-space:nowrap}
.btn-register{background:var(--navy)}
.btn-login{background:var(--blue)}
.btn:hover{color:#fff;filter:brightness(1.08);transform:translateY(-1px)}

/* ---------------- Header ---------------- */
.site-header{background:#fff;box-shadow:0 2px 14px rgba(0,0,0,.08);position:sticky;top:0;z-index:1000}
.header-top{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:70px}
.logo img{height:38px;width:auto}
.header-buttons{display:flex;gap:10px}
.nav-toggle{display:none;flex-direction:column;gap:5px;width:44px;height:44px;background:none;border:none;cursor:pointer;padding:9px}
.nav-toggle span{display:block;height:3px;width:100%;background:var(--navy);border-radius:2px;transition:.3s}

/* Bottom nav bar */
.header-nav{background:var(--navy)}
.main-nav{display:flex;flex-wrap:wrap;justify-content:center;gap:2px;list-style:none;margin:0;padding:0}
.main-nav>li>a{display:block;padding:13px 16px;color:#fff;font-weight:600;font-size:15px}
.main-nav>li>a:hover,.main-nav>li.active>a{color:#fff;background:var(--blue)}

/* ---------------- Hero ---------------- */
.hero{padding:24px 0}
.hero-slide img{width:100%;border-radius:var(--radius);box-shadow:0 8px 26px rgba(24,48,89,.15)}

/* ---------------- Article ---------------- */
.article{padding:10px 0 40px}
.article-inner{max-width:var(--content);margin:0 auto}
.article-inner p strong,.article-inner a{color:var(--blue)}
.article-figure{margin:22px auto;text-align:center}
.article-figure img{width:100%;border-radius:var(--radius);box-shadow:0 6px 22px rgba(24,48,89,.12)}
.article-figure figcaption{font-size:13px;color:var(--muted);margin-top:8px;font-style:italic}
.note-center{text-align:center;background:var(--bg-soft);border-left:4px solid var(--blue);padding:14px 18px;border-radius:8px}

/* ---------------- FAQ table ---------------- */
.faq-section{padding:20px 0}
.faq-section h2{text-align:center}
.table-wrap{overflow-x:auto;margin:18px auto;max-width:var(--content)}
table{width:100%;min-width:560px;border-collapse:collapse;border:1px solid var(--border)}
th,td{padding:13px 16px;border:1px solid var(--border);text-align:left;vertical-align:top;font-size:15px}
th{background:var(--navy);color:#fff;font-weight:700}
tbody tr:nth-child(even){background:var(--bg-soft)}

/* ---------------- Game grid ---------------- */
.block{padding:26px 0}
.block h2{text-align:center;margin-bottom:22px}
.game-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:14px}
.game-grid .cell{background:var(--bg-soft);border-radius:12px;padding:14px;display:flex;align-items:center;justify-content:center;transition:.25s}
.game-grid .cell:hover{transform:translateY(-4px);box-shadow:0 8px 20px rgba(24,48,89,.15)}
.game-grid img{width:100%;height:auto;border-radius:8px}

/* ---------------- Payment grid ---------------- */
.pay-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.pay-grid .cell{background:#fff;border:1px solid var(--border);border-radius:10px;padding:12px;display:flex;align-items:center;justify-content:center;min-height:74px}
.pay-grid img{max-height:48px;width:auto}

/* ---------------- Footer ---------------- */
.site-footer{background:var(--navy);color:#d7deea;padding:44px 0 0;margin-top:30px}
.footer-grid{display:grid;grid-template-columns:2fr 1.2fr 1.2fr 1.4fr;gap:28px}
.site-footer h4,.site-footer h5,.site-footer h6{color:#fff;margin:0 0 14px;font-size:16px}
.footer-logo{max-width:150px;margin:0 0 12px}
.site-footer p{color:#c3cddd;font-size:14px}
.footer-links{list-style:none;padding:0;margin:0}
.footer-links li{margin-bottom:10px}
.footer-links a{color:#c3cddd;font-size:14px;display:flex;align-items:center;gap:8px}
.footer-links a:hover{color:#fff}
.footer-links .ico{color:var(--blue);font-weight:700}
.dmca{margin-top:16px}
.hashtags{font-size:12px;color:#96a3ba;word-spacing:2px}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);margin-top:30px;padding:16px 0}
.footer-bottom-inner{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.footer-bottom p{margin:0;font-size:13px;color:#c3cddd}
.socials{display:flex;gap:10px}
.socials a{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;color:#fff;font-size:13px;font-weight:700;transition:.25s}
.socials a:hover{background:var(--blue)}

/* ---------------- Back to top ---------------- */
.back-to-top{position:fixed;right:20px;bottom:20px;width:46px;height:46px;border-radius:50%;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center;font-size:22px;opacity:0;visibility:hidden;transition:.3s;z-index:900;border:none;cursor:pointer}
.back-to-top.show{opacity:1;visibility:visible}

/* ---------------- Responsive ---------------- */
@media (max-width:1024px){
  .game-grid{grid-template-columns:repeat(4,1fr)}
  .pay-grid{grid-template-columns:repeat(4,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:768px){
  .nav-toggle{display:flex}
  .header-nav{display:none}
  .header-nav.open{display:block}
  .main-nav{flex-direction:column}
  .main-nav>li>a{padding:12px 16px;border-top:1px solid rgba(255,255,255,.1)}
  h1{font-size:24px}h2{font-size:21px}
  .game-grid{grid-template-columns:repeat(3,1fr)}
  .pay-grid{grid-template-columns:repeat(3,1fr)}
  .footer-grid{grid-template-columns:1fr}
}
@media (max-width:480px){
  .game-grid{grid-template-columns:repeat(2,1fr)}
  .pay-grid{grid-template-columns:repeat(2,1fr)}
}

/* ---------------- Mobile fixes (header overflow + body width) ---------------- */
html,body{max-width:100%}
.article-inner,.site-footer{overflow-wrap:anywhere}
@media (max-width:768px){
  .header-top{min-height:60px;gap:10px;flex-wrap:nowrap}
  .logo{flex:0 0 auto}
  .logo svg,.logo img{height:32px!important}
  .header-buttons{gap:6px;flex:0 1 auto;min-width:0}
  .header-buttons .btn{padding:8px 12px;font-size:13px}
  .nav-toggle{flex:0 0 44px;margin-left:auto}
  .article-figure{margin:16px auto}
  table{min-width:480px}
  th,td{padding:10px 12px;font-size:14px}
}
@media (max-width:400px){
  .header-top{gap:8px}
  .logo svg,.logo img{height:28px!important}
  .header-buttons{gap:4px}
  .header-buttons .btn{padding:7px 9px;font-size:12px}
  .nav-toggle{flex:0 0 40px;width:40px;padding:8px}
  h1{font-size:22px}h2{font-size:19px}h3{font-size:17px}
  table{min-width:420px}
}

/* ---------------- Sticky header (desktop + mobile) ---------------- */
html,body{overflow-x:clip}
.site-header{position:sticky;top:0;z-index:1000}
h1[id],h2[id],h3[id],section[id],div[id]{scroll-margin-top:130px}
html{scroll-behavior:smooth}
@media (max-width:768px){
  h1[id],h2[id],h3[id],section[id],div[id]{scroll-margin-top:70px}
  .header-nav.open{max-height:calc(100vh - 60px);overflow-y:auto}
}

/* ---------------- Promo banner (global, fixed bottom) ---------------- */
.promo-banner{position:fixed;bottom:0;left:0;right:0;z-index:9999;display:flex;width:1250px;max-width:100%;margin:auto;justify-content:center}
.banner-item img{width:100%;display:block}
body{padding-bottom:90px}
.back-to-top{bottom:100px}
@media (max-width:767px){
  .promo-banner{display:block;background:#fff;width:100%;margin:auto}
  body{padding-bottom:calc(100vw * 90 / 728)}
  .back-to-top{bottom:calc(100vw * 90 / 728 + 12px)}
}


/* ===== 8xbetcom.eu.com parity fixes v1.2 ===== */
/* Match the original static site's heading palette even inside Elementor widgets. */
.elementor-widget-heading .elementor-heading-title,
.article h1,.article h2,.article h3,.article h4,.article h5,.article h6,
.article .elementor-widget-text-editor h1,.article .elementor-widget-text-editor h2,
.article .elementor-widget-text-editor h3,.article .elementor-widget-text-editor h4{
  color:var(--heading)!important;
}
.site-footer .elementor-widget-heading .elementor-heading-title,
.site-footer h1,.site-footer h2,.site-footer h3,.site-footer h4,.site-footer h5,.site-footer h6{color:#fff!important}

/* Full-width top banner: full image, natural aspect ratio, no crop. */
.hero.elementor-section,
.elementor-section.hero{width:100%!important;max-width:none!important;padding:0!important;margin:0!important}
.hero.elementor-section>.elementor-container,
.elementor-section.hero>.elementor-container{width:100%!important;max-width:none!important}
.hero .elementor-column-gap-default>.elementor-column>.elementor-element-populated,
.hero .elementor-widget-image{padding:0!important;margin:0!important}
.hero .elementor-widget-image img,
.hero-slide img{width:100%!important;max-width:none!important;height:auto!important;object-fit:contain!important;border-radius:0!important;box-shadow:none!important}

/* All non-hero content images keep their natural size while remaining responsive. */
.article .elementor-widget-image img,
.article-figure img{width:auto!important;max-width:100%!important;height:auto!important;margin-left:auto!important;margin-right:auto!important;border-radius:var(--radius)!important;box-shadow:0 6px 22px rgba(24,48,89,.12)}
.game-grid img{width:100%!important;border-radius:8px!important}
.pay-grid img{width:auto!important;max-width:100%!important;border-radius:0!important;box-shadow:none!important}

/* About-column inline 8xbet link: readable default + correct light hover on navy footer. */
.site-footer p a{color:#7fb7f0!important;text-decoration:none}
.site-footer p a:hover,.site-footer p a:focus{color:#fff!important}


/* ===== 8xbetcom.eu.com layout parity v1.2.2 =====
   Original static geometry: 1140px hero shell + 820px article reading column. */
.xbet-page-content{width:100%;}

/* Elementor page body: every non-hero section belongs to the original 820px article column. */
.xbet-page-content > .elementor > .elementor-section:not(.hero) > .elementor-container,
.xbet-page-content > .elementor > .e-con:not(.hero){
  width:min(var(--content),calc(100% - 32px))!important;
  max-width:var(--content)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.xbet-page-content > .elementor > .elementor-section:not(.hero){
  width:100%!important;
  max-width:none!important;
}
.xbet-page-content > .elementor > .elementor-section:not(.hero) > .elementor-container > .elementor-column > .elementor-element-populated{
  padding-left:0!important;
  padding-right:0!important;
}

/* Hero matches the original static .container: 1140px, centered, with 24px vertical breathing room. */
.xbet-page-content > .elementor > .elementor-section.hero{
  width:100%!important;
  max-width:none!important;
  padding:24px 0!important;
  margin:0!important;
}
.xbet-page-content > .elementor > .elementor-section.hero > .elementor-container{
  width:min(var(--max),calc(100% - 32px))!important;
  max-width:var(--max)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.xbet-page-content > .elementor > .elementor-section.hero .elementor-column > .elementor-element-populated{
  padding:0!important;
}
.xbet-page-content > .elementor > .elementor-section.hero .elementor-widget-image,
.xbet-page-content > .elementor > .elementor-section.hero .elementor-widget-image .elementor-widget-container{
  margin:0!important;
  padding:0!important;
}
.xbet-page-content > .elementor > .elementor-section.hero .elementor-widget-image img,
.xbet-page-content .hero-slide img{
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  object-fit:contain!important;
  border-radius:var(--radius)!important;
  box-shadow:0 8px 26px rgba(24,48,89,.15)!important;
}

/* Match original first article block spacing below hero. */
.xbet-page-content > .elementor > .elementor-section.hero + .elementor-section{
  margin-top:10px!important;
}

@media (max-width:768px){
  .xbet-page-content > .elementor > .elementor-section:not(.hero) > .elementor-container,
  .xbet-page-content > .elementor > .e-con:not(.hero){
    width:calc(100% - 32px)!important;
  }
  .xbet-page-content > .elementor > .elementor-section.hero > .elementor-container{
    width:calc(100% - 32px)!important;
  }
}
