/* 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; }


/* === FAQ ACCORDION (class: faq-accordion) ===
   Controls the <details>/<summary> accordion used in content HTML.
   Change styles here to affect ALL projects quickly.
*/
.faq-accordion { margin: 28px 0; }
.faq-accordion > h2 { margin: 0 0 14px; }
.faq-accordion__item {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: 0;
  margin: 10px 0;
  overflow: hidden;
  background: rgba(0,0,0,.02);
}
.faq-accordion__question {
  list-style: none;
  cursor: pointer;
  padding: 14px 44px 14px 14px;
  font-weight: 700;
  position: relative;
  user-select: none;
}
/* hide default marker (Chrome/Safari) */
.faq-accordion__question::-webkit-details-marker { display: none; }
/* chevron */
.faq-accordion__question::after{
  content: "";
  width: 10px; height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  position: absolute;
  right: 16px;
  top: 50%;
  margin-top: -7px;
  opacity: .85;
  transition: transform .2s ease, opacity .2s ease;
}
.faq-accordion__item[open] .faq-accordion__question::after{
  transform: rotate(-135deg);
  opacity: 1;
}
.faq-accordion__answer{
  padding: 0 14px 14px;
}
.faq-accordion__answer > :first-child{ margin-top: 0; }
.faq-accordion__answer > :last-child{ margin-bottom: 0; }


/* --- SITE OVERRIDES (glorycasino-az-com) --- */
/* =========================================================
   1WIN-LIKE THEME — site.css
   ---------------------------------------------------------
   Цель: визуально ближе к 1Win (по скрину):
   - очень тёмный фон с лёгким синим оттенком
   - холодные “плоские” панели и тонкие бордеры
   - акцент: яркий синий для активных состояний/пилюль
   - основной CTA: зелёный (регистрация/установить)
   - таблицы: аккуратные, без “красного” акцента
   - мобайл: таблицы в карточки, без горизонтального скролла
   ========================================================= */


/* =========================================================
   1) THEME VARIABLES
   ========================================================= */
:root{
  /* Base background */
  --bg:#f5f7fc;          /* общий фон (светлый, как Glory) */
  --bg2:#edf2ff;         /* глубина */
  --panel:#ffffff;       /* панели/карточки */
  --panel2:#f3f7ff;      /* панели чуть темнее */
  --panelBorder:#e6ecf7; /* тонкие границы */
  --panelBorder2:#dbe6ff;

  /* Text */
  --text:#0f1f3a;
  --muted:rgba(15,31,58,0.72);
  --muted2:rgba(15,31,58,0.56);

  /* Accents */
  --accent:#2f6bff;        /* Glory blue */
  --accentHover:#1e4fe0;
  --accentSoft:rgba(47,107,255,0.12);

  --cta:#2f6bff;           /* CTA: синий */
  --ctaHover:#1e4fe0;
  --ctaText:#ffffff;

  /* Layout */
  --containerMax: 1120px;
  --containerPad: 18px;

  /* UI */
  --radiusCard: 14px;
  --radiusBtn: 12px;
  --shadowCard: 0 12px 28px rgba(16,34,58,0.10);
  --shadowCta: 0 14px 26px rgba(47,107,255,0.22);

  /* Focus */
  --focus: 0 0 0 3px rgba(47,107,255,0.25);
}

/* =========================================================
   2) GLOBAL / BODY
   ========================================================= */
body{
  color: var(--text);
  background: var(--bg);
  position: relative;

  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* лёгкая глубина, как у “платформы” */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 50% -20%, rgba(47,107,255,0.10), transparent 62%),
    radial-gradient(700px 520px at 85% 20%, rgba(49,183,255,0.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  background-repeat: no-repeat;
}

/* =========================================================
   3) GLOBAL CONTAINER
   ========================================================= */
.container{
  width: min(var(--containerMax), calc(100% - (var(--containerPad) * 2)));
  margin-inline: auto;
}

main,
.headerInner,
.footerInner,
.heroContent,
.content{
  width: min(var(--containerMax), calc(100% - (var(--containerPad) * 2)));
  margin-inline: auto;
}


/* =========================================================
   4) HEADER (1Win-like)
   - тёмный, аккуратный
   - тонкий бордер снизу
   ========================================================= */
.header{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panelBorder);
  box-shadow: 0 10px 22px rgba(16,34,58,0.08);
}

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

.brand{display:flex; align-items:center; gap:10px;}
.brandLogo{
  width:118px;
  height:auto;
  display:block;
  flex:0 0 auto;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.35));
}

@media (max-width:520px){ .brandLogo{ width:104px; } }

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

/* ссылки в меню — “пилюли” как в 1Win */
.nav a{
  color: rgba(15,31,58,0.88);
  font-size:13px;
  font-weight:900;
  padding:8px 10px;
  border-radius:999px;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease, border-color 140ms ease;
  background: rgba(47,107,255,0.06);
  border: 1px solid rgba(47,107,255,0.14);
}

.nav a:hover{
  background: rgba(47,107,255,0.12);
  border-color: rgba(47,107,255,0.28);
  color: rgba(15,31,58,0.95);
  transform: translateY(-1px);
}

.nav a:focus-visible{
  outline: none;
  box-shadow: var(--focus);
}


/* =========================================================
   5) CTA BUTTON (1Win green)
   ========================================================= */
.ctaBtn{
  appearance:none;
  border:0;
  cursor:pointer;
  padding:11px 18px;
  border-radius: var(--radiusBtn);
  font-weight:950;
  letter-spacing:0.2px;

  background: linear-gradient(180deg, var(--cta) 0%, #2a60ff 100%);
  color: var(--ctaText);

  box-shadow: var(--shadowCta);
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:8px;
}

.ctaBtn:hover{
  filter: brightness(1.02);
  box-shadow: 0 18px 34px rgba(47,107,255,0.26);
}

.ctaBtn:active{ transform: translateY(1px) scale(0.99); }

.ctaBtn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(47,107,255,0.22), 0 18px 34px rgba(47,107,255,0.20);
}

.ctaBtnSm{ padding:9px 14px; font-size:13px; border-radius:999px; }
.ctaBtnLg{ padding:13px 22px; font-size:15px; border-radius:14px; }


/* =========================================================
   6) HERO (платформенный, как в 1Win)
   ========================================================= */
.hero{
  position:relative;
  min-height:520px;
  display:grid;
  align-items:center;
  overflow:hidden;
  border-bottom: 1px solid var(--panelBorder);
}

.heroMedia{
  position:absolute;
  inset:0;
  z-index:0;
}

/* Next/Image wrappers */
.heroMedia > *{
  position:absolute !important;
  inset:0 !important;
}

.heroImage{
  width:100% !important;
  height:100% !important;
  object-fit:cover;
  filter: saturate(1.03) contrast(1.03);
}

.heroOverlay{
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(90deg, rgba(245,247,252,0.92) 0%, rgba(245,247,252,0.70) 48%, rgba(245,247,252,0.30) 100%),
    radial-gradient(700px 520px at 20% 20%, rgba(47,107,255,0.18), transparent 60%);
}

.heroContent{
  position:relative;
  z-index:2;
  text-align:center;
  padding:52px 0 40px;
}

.heroTitle{
  margin:0 0 12px;
  font-size:clamp(28px,4vw,52px);
  line-height:1.08;
  font-weight:980;
  color: var(--text);
  text-shadow: 0 10px 22px rgba(16,34,58,0.10);
}

.heroSubtitle{
  margin:0 auto 18px;
  max-width:72ch;
  color: rgba(15,31,58,0.70);
  font-size:clamp(15px,1.7vw,18px);
  line-height:1.55;
  text-shadow: 0 10px 22px rgba(16,34,58,0.06);
}

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

/* если у тебя есть вторичная кнопка/ссылка рядом с CTA */
.heroCta a:not(.ctaBtn),
.heroCta button:not(.ctaBtn){
  color: rgba(234,240,255,0.88);
}


/* =========================================================
   7) CONTENT (карточки/панели)
   ========================================================= */
.content{
  padding:28px 0 52px;
}

.contentCard{
  background: var(--panel);
  border: 1px solid var(--panelBorder);
  border-radius: var(--radiusCard);
  padding:20px;
  box-shadow: var(--shadowCard);
}

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

.contentCard p,
.contentCard li{
  color: rgba(15,31,58,0.78);
  line-height:1.7;
}

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

.contentCard img{
  width:100%;
  height:auto;
  border-radius:14px;
  border:1px solid rgba(47,107,255,0.14);
  background: rgba(47,107,255,0.04);
  margin:16px 0;
}

.contentCard .ctaBtn{
  appearance:none;
  border:0;
  cursor:pointer;
  padding:11px 18px;
  border-radius: var(--radiusBtn);
  font-weight:950;
  letter-spacing:0.2px;

  background: linear-gradient(180deg, var(--cta) 0%, #2a60ff 100%);
  color: var(--ctaText);

  box-shadow: var(--shadowCta);
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:8px;
}

/* =========================================================
   8) FIGURES / INLINE IMAGES
   ========================================================= */
.inlineFigure{
  margin:22px 0;
  width:100%;
  display:block;
}

.inlineFigure > img{
  display:block;
  margin:0 auto;
  max-width:100%;
  height:auto;
}

.inlineFigureCta{
  display:flex;
  justify-content:center;
  margin-top:14px;
  width:100%;
}

.content-image{
  display:block;
  margin:28px 0;
  width:100%;
}

.content-image img{
  display:block;
  margin:0 auto;
  max-width:100%;
  height:auto;
}


/* =========================================================
   9) TABLES (Desktop) — 1Win-like (тонкие бордеры, синяя шапка)
   ========================================================= */
.tbl{
  width:100%;
  margin:18px 0;
  border-radius:14px;
  overflow:hidden;
  border: 1px solid var(--panelBorder);
  background: var(--panel);
  box-shadow: 0 12px 26px rgba(16,34,58,0.08);

  display: table;
  border-collapse: separate;
  border-spacing: 0;
}

.tblRow{ display: table-row; }

.tblCell{
  display: table-cell;
  padding: 12px 12px;
  vertical-align: top;
  color: rgba(15,31,58,0.86);
  line-height: 1.55;
  word-break: break-word;
  border-top: 1px solid var(--panelBorder);
}

/* шапка — синий акцент */
.tblRow:first-child .tblCell{
  border-top: 0;
  background: rgba(47,107,255,0.08);
  color: rgba(15,31,58,0.94);
  font-weight: 980;
  box-shadow: inset 0 -2px 0 rgba(47,107,255,0.45);
}

.tblRow:nth-child(odd):not(:first-child) .tblCell{
  background: rgba(245,247,252,0.65);
}

.tblRow:hover .tblCell{
  background: rgba(47,107,255,0.06);
}

/* ширины */
.tbl.tbl--2 .tblRow .tblCell:nth-child(1){ width: 42%; }
.tbl.tbl--2 .tblRow .tblCell:nth-child(2){ width: 58%; }

.tbl.tbl--3 .tblRow .tblCell:nth-child(1){ width: 34%; }
.tbl.tbl--3 .tblRow .tblCell:nth-child(2){ width: 20%; white-space: nowrap; }
.tbl.tbl--3 .tblRow .tblCell:nth-child(3){ width: 46%; }

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


/* =========================================================
   10) TABLES (Mobile) — CARDS, NO SCROLL
   ========================================================= */
@media (max-width: 680px){

  .tbl{
  width:100%;
  margin:18px 0;
  border-radius:14px;
  overflow:hidden;
  border: 1px solid var(--panelBorder);
  background: var(--panel);
  box-shadow: 0 12px 26px rgba(16,34,58,0.08);

  display: table;
  border-collapse: separate;
  border-spacing: 0;
}

.tblRow{
    display:block;
    padding:14px 14px;
    border-radius:14px;
    border:1px solid rgba(31,42,61,0.85);
    background: linear-gradient(180deg, rgba(17,24,39,0.98) 0%, rgba(15,23,42,0.98) 100%);
    box-shadow: 0 10px 24px rgba(0,0,0,0.30);
  }

  .tblCell{
  display: table-cell;
  padding: 12px 12px;
  vertical-align: top;
  color: rgba(15,31,58,0.86);
  line-height: 1.55;
  word-break: break-word;
  border-top: 1px solid var(--panelBorder);
}

/* скрываем шапку */
  .tblRow:first-child{ display:none; }

  /* 2 columns: label pill -> value */
  .tbl.tbl--2 .tblRow{
    padding:14px 14px 12px;
  }

  .tbl.tbl--2 .tblRow .tblCell:first-child{
    display:inline-flex;
    align-items:center;
    max-width:100%;
    font-size:12px;
    font-weight:980;
    letter-spacing:.25px;
    text-transform:uppercase;
    color: rgba(234,240,255,0.78);

    background: rgba(45,125,255,0.10);
    border: 1px solid rgba(45,125,255,0.20);
    border-left: 3px solid var(--accent);
    border-radius: 999px;
    padding:8px 10px;
    margin:0 0 10px;
  }

  .tbl.tbl--2 .tblRow .tblCell:nth-child(2){
    font-size:14px;
    font-weight:800;
    color: rgba(234,240,255,0.92);
  }

  /* 3 / 4 columns: fields list */
  .tbl.tbl--3 .tblCell,
  .tbl.tbl--4 .tblCell{
  display: table-cell;
  padding: 12px 12px;
  vertical-align: top;
  color: rgba(15,31,58,0.86);
  line-height: 1.55;
  word-break: break-word;
  border-top: 1px solid var(--panelBorder);
}

.tbl.tbl--3 .tblCell:first-child,
  .tbl.tbl--4 .tblCell:first-child{
    border-top:0;
    padding-top:0;
  }

  .tbl.tbl--3 .tblCell[data-label]::before,
  .tbl.tbl--4 .tblCell[data-label]::before{
    content: attr(data-label);
    display:block;
    font-size:12px;
    font-weight:980;
    letter-spacing:.25px;
    text-transform:uppercase;
    color: rgba(234,240,255,0.58);
    margin-bottom:6px;
  }

  /* fallback labels if data-label is missing */
  .tbl.tbl--3 .tblCell:not([data-label]):nth-child(1)::before{ content:"Campo 1"; }
  .tbl.tbl--3 .tblCell:not([data-label]):nth-child(2)::before{ content:"Campo 2"; }
  .tbl.tbl--3 .tblCell:not([data-label]):nth-child(3)::before{ content:"Campo 3"; }

  .tbl.tbl--4 .tblCell:not([data-label]):nth-child(1)::before{ content:"Campo 1"; }
  .tbl.tbl--4 .tblCell:not([data-label]):nth-child(2)::before{ content:"Campo 2"; }
  .tbl.tbl--4 .tblCell:not([data-label]):nth-child(3)::before{ content:"Campo 3"; }
  .tbl.tbl--4 .tblCell:not([data-label]):nth-child(4)::before{ content:"Campo 4"; }

  .tbl.tbl--3 .tblCell:not([data-label])::before,
  .tbl.tbl--4 .tblCell:not([data-label])::before{
    display:block;
    font-size:12px;
    font-weight:980;
    letter-spacing:.25px;
    text-transform:uppercase;
    color: rgba(234,240,255,0.58);
    margin-bottom:6px;
  }

  .tbl.tbl--3 .tblCell,
  .tbl.tbl--4 .tblCell{
  display: table-cell;
  padding: 12px 12px;
  vertical-align: top;
  color: rgba(15,31,58,0.86);
  line-height: 1.55;
  word-break: break-word;
  border-top: 1px solid var(--panelBorder);
}

}


/* =========================================================
   11) FAQ (аккордеон) — синие акценты
   ========================================================= */
.faq{
  margin-top:22px;
  background: var(--panel);
  border: 1px solid var(--panelBorder);
  border-radius:14px;
  padding:18px;
  box-shadow: 0 12px 26px rgba(16,34,58,0.08);
}

.faqTitle{ margin:0 0 12px; font-size:20px; }

.faqItem{
  border-top:1px solid var(--panelBorder);
  padding:10px 0;
}

.faqItem:first-child{ border-top:0; }

.faqQ{
  cursor:pointer;
  font-weight:950;
  color: rgba(15,31,58,0.94);
  list-style:none;
}

.faqQ::-webkit-details-marker{ display:none; }

.faqQ::after{
  content:"+";
  float:right;
  opacity:0.95;
  color: var(--accent);
}

.faqItem[open] .faqQ::after{
  content:"+";
  float:right;
  opacity:0.95;
  color: var(--accent);
}

.faqA{
  color: rgba(15,31,58,0.72);
  line-height:1.7;
  padding-top:8px;
}

/* =========================================================
   12) FOOTER
   ========================================================= */
.footer{
  margin-top:42px;
  border-top:1px solid var(--panelBorder);
  background: rgba(255,255,255,0.85);
}

.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(15,31,58,0.90);
  font-size:14px;
  font-weight:950;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(47,107,255,0.06);
  border: 1px solid rgba(47,107,255,0.14);
  transition: background 140ms ease, transform 140ms ease, border-color 140ms ease;
}

.footerLinks a:hover{
  background: rgba(47,107,255,0.12);
  border-color: rgba(47,107,255,0.28);
  transform: translateY(-1px);
}

.footerNote,
.footerText{
  color: rgba(15,31,58,0.60);
  font-size:13px;
  line-height:1.5;
}

/* =========================================================
   13) RESPONSIVE
   ========================================================= */
@media (max-width: 640px){
  .hero{
  position:relative;
  min-height:520px;
  display:grid;
  align-items:center;
  overflow:hidden;
  border-bottom: 1px solid var(--panelBorder);
}

.headerInner{ padding:12px 0; }
  .brandLogo{ width:110px; }
  .nav{ gap:8px; }
  .nav a{
  color: rgba(15,31,58,0.88);
  font-size:13px;
  font-weight:900;
  padding:8px 10px;
  border-radius:999px;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease, border-color 140ms ease;
  background: rgba(47,107,255,0.06);
  border: 1px solid rgba(47,107,255,0.14);
}

.contentCard{
  background: var(--panel);
  border: 1px solid var(--panelBorder);
  border-radius: var(--radiusCard);
  padding:20px;
  box-shadow: var(--shadowCard);
}

}
