/* Base CSS shared across all sites.
   Keep ONLY non-design resets/structure here.
   Put colors, backgrounds, component styling in data/sites/<siteSlug>/site.css
*/
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  /* Default site-wide typography (body text). */
  font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Keep headings customizable per site via CSS variables if desired. */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading, inherit); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1120px, 92vw); margin: 0 auto; }

/* -------- Responsive tables (structure only) -------- */
.tbl { width: 100%; }
.tblRow { width: 100%; }
.tblCell { min-width: 0; }

/* Support 4-column tables (prevents the last column from collapsing). */
.tbl.tbl--4 .tblRow .tblCell:nth-child(1) { width: 34%; }
.tbl.tbl--4 .tblRow .tblCell:nth-child(2) { width: 26%; }
.tbl.tbl--4 .tblRow .tblCell:nth-child(3) { width: 14%; white-space: nowrap; }
.tbl.tbl--4 .tblRow .tblCell:nth-child(4) { width: 26%; }

/* Fallback for 5+ columns: allow natural widths (site CSS can refine). */
.tbl.tbl--auto .tblCell { width: auto; }

/* -------- FAQ accordion (structure only, no colors) -------- */
.faq { margin: 24px 0; }
.faqItem { display: block; }
.faqQ { cursor: pointer; }
.faqQ::-webkit-details-marker { display: none; }
.faqA { padding-top: 10px; }


/* --- SITE OVERRIDES (20bet-slots-cl) --- */
:root{
  --bg:#05060b;
  --panel:rgba(255,255,255,0.055);
  --panelBorder:rgba(255,255,255,0.09);
  --text:rgba(255,255,255,0.92);
  --muted:rgba(255,255,255,0.72);
  --muted2:rgba(255,255,255,0.60);
  --accent:#2bd97c;
  --accentText:#06110b;
}

/* Global site look */
body{
  color: var(--text);
  background: var(--bg);
  position: relative;
}

/* единый фон на весь сайт, без “полос” */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 650px at 18% 0%, rgba(43,217,124,0.10), transparent 60%),
    radial-gradient(900px 540px at 85% 10%, rgba(0,150,255,0.10), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, #060811 100%);
  background-repeat: no-repeat;
}

/* Header */
.header{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(5,6,11,0.82);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.headerInner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
}

.brand{display:flex; align-items:center; gap:10px;}
.brandLogo{width:120px; height:auto; display:block; flex:0 0 auto;}
@media (max-width:520px){ .brandLogo{ width:104px; } }

.nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  flex-wrap:wrap;
}

.nav a{
  color: rgba(255,255,255,0.86);
  font-size:14px;
  font-weight:600;
  padding:8px 10px;
  border-radius:10px;
  transition: background 120ms ease, color 120ms ease;
}

.nav a:hover{
  background: rgba(255,255,255,0.06);
  color:#fff;
}

/* CTA button */
.ctaBtn{
  appearance:none;
  border:0;
  cursor:pointer;
  padding:12px 18px;
  border-radius:999px;
  font-weight:800;
  background: var(--accent);
  color: var(--accentText);
  box-shadow:0 16px 34px rgba(43,217,124,0.18);
  transition: filter 120ms ease, transform 120ms ease;
}
.ctaBtn:hover{ filter: brightness(1.05); }
.ctaBtn:active{ transform: translateY(1px); }
.ctaBtnSm{ padding:10px 14px; font-size:14px; }
.ctaBtnLg{ padding:14px 22px; font-size:15px; }

/* Hero */
.hero{
  position:relative;
  min-height:520px;
  display:grid;
  align-items:center;
  overflow:hidden;
  border-bottom:1px solid rgba(255,255,255,0.06);
}
.heroMedia{ position:absolute; inset:0; }
.heroImage{ object-fit:cover; }
.heroOverlay{
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(5,6,11,0.92), rgba(5,6,11,0.55), rgba(5,6,11,0.20));
}
.heroContent{
  position:relative;
  z-index:2;
  text-align:center;
  padding:0 18px;
}
.heroTitle{
  margin:0 0 14px;
  font-size:clamp(28px,4vw,54px);
  line-height:1.05;
}
.heroSubtitle{
  margin:0 auto 22px;
  max-width:70ch;
  color: rgba(255,255,255,0.86);
  font-size:clamp(15px,1.7vw,18px);
  line-height:1.55;
}
.heroCta{ display:flex; justify-content:center; }

/* Content */
.content{ padding:34px 0 56px; }

.contentCard{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius:18px;
  padding:22px;
}

.contentCard h2{ margin:26px 0 12px; font-size:22px; }
.contentCard h3{ margin:18px 0 8px; font-size:18px; }

.contentCard p, .contentCard li{
  color: rgba(255,255,255,0.84);
  line-height:1.7;
}

.contentCard ul{ padding-left:18px; }

.contentCard img{
  width:100%;
  height:auto;
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.18);
  margin:16px 0;
}

.inlineFigure{ margin:18px 0; }
.inlineFigureCta{ display:flex; justify-content:center; margin-top:10px; }

/* ===== TABLE RENDERING ===== */
.tbl{
  display: table;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 18px 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}
.tblRow{ display: table-row; }
.tblCell{
  display: table-cell;
  padding: 12px 14px;
  vertical-align: top;
  color: rgba(255,255,255,.86);
  line-height: 1.55;
  word-break: break-word;
  border-top: 1px solid rgba(255,255,255,.08);
}
.tblRow:first-child .tblCell{ border-top: 0; }
.tblRow .tblCell:first-child{
  font-weight: 900;
  color: rgba(255,255,255,.96);
}

/* 2 cols */
.tbl.tbl--2 .tblRow .tblCell:nth-child(1){ width: 38%; }
.tbl.tbl--2 .tblRow .tblCell:nth-child(2){ width: 62%; }

/* 3 cols */
.tbl.tbl--3 .tblRow .tblCell:nth-child(1){ width: 34%; }
.tbl.tbl--3 .tblRow .tblCell:nth-child(2){ width: 18%; white-space: nowrap; }
.tbl.tbl--3 .tblRow .tblCell:nth-child(3){ width: 48%; }

.tblCell[data-label]::before{ display:none; }

@media (max-width: 680px){
  .tbl{
    display: grid;
    gap: 10px;
    border: 0;
    background: transparent;
  }
  .tblRow{
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
  }
  .tblCell{
    display: block;
    padding: 0;
    border: 0;
  }
  .tblCell[data-label]::before{
    content: attr(data-label);
    display: block;
    font-weight: 900;
    color: rgba(255,255,255,.96);
    margin-bottom: 4px;
  }
}

/* FAQ accordion */
.faq{
  margin-top:22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius:18px;
  padding:18px;
}
.faqTitle{ margin:0 0 12px; font-size:20px; }
.faqItem{ border-top:1px solid rgba(255,255,255,0.08); padding:10px 0; }
.faqItem:first-child{ border-top:0; }
.faqQ{
  cursor:pointer;
  font-weight:800;
  color: rgba(255,255,255,0.92);
  list-style:none;
}
.faqQ::-webkit-details-marker{ display:none; }
.faqQ::after{ content:"+"; float:right; opacity:0.9; }
.faqItem[open] .faqQ::after{ content:"–"; }
.faqA{ color: rgba(255,255,255,0.78); line-height:1.7; padding-top:8px; }

/* Footer */
.footer{
  margin-top:42px;
  border-top:1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.22);
}
.footerInner{
  padding:26px 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  text-align:center;
}
.footerLinks{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
}
.footerLinks a{
  color: rgba(255,255,255,0.86);
  font-size:14px;
  font-weight:700;
  padding:8px 10px;
  border-radius:10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.footerLinks a:hover{ background: rgba(255,255,255,0.07); }
.footerNote, .footerText{
  color: var(--muted2);
  font-size:13px;
  line-height:1.5;
}

@media (max-width: 640px){
  .hero{ min-height:380px; }
  .headerInner{ padding:12px 0; }
  .brandLogo{ width:110px; }
  .nav{ gap:8px; }
  .nav a{ padding:7px 8px; font-size:13px; }
  .contentCard{ padding:16px; }
}
/* если у тебя контент лежит внутри .content — используй его.
   если класс другой (например .article / .pageContent) — подставь свой */
.content .inlineFigure {
  display: flex;
  justify-content: center;
  margin: 28px 0;
  width: 100%;
}

.content .inlineFigure img {
  display: block;
  max-width: 100%;
  height: auto;
}
.content-image {
  display: flex;
  justify-content: center;
  margin: 32px 0;
}

.content-image img {
  display: block;
  max-width: 100%;
  height: auto;
}
/* 1) figure — блочный контейнер, не flex-колонка */
.content .inlineFigure{
  display: block;
  width: 100%;
  margin: 28px 0;
}

/* 2) Центруем именно картинку */
.content .inlineFigure > img{
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

/* 3) CTA всегда отдельной строкой под картинкой */
.content .inlineFigureCta{
  display: flex;
  justify-content: center;
  margin-top: 14px;
  width: 100%;
}
